Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(web): 首页筛选条、交集条、排序与版式迁到 catalog-filter 岛

longmeidao8e7110eab1b5
diff --git a/docs/BOARD_UI.md b/docs/BOARD_UI.md
index d1341f7de..81f2f39e5 100644
--- a/docs/BOARD_UI.md
+++ b/docs/BOARD_UI.md
@@ -364,9 +364,9 @@ Radio card 沿用 2026-09-08 取得的 `r/checkbox-card.json`(`checkbox-card.t
筛选浮层、排序与图片墙:
-- 筛选条 `.tagbar` 与读数 `.count` 收进同一块 `mountFilterFrame` 浮层。
+- 筛选条与读数收进同一块 `FilterGlassRows` 浮层。
- 上排最左是视频/图片两枚媒体圆键,跟资料页那一组同形,圆玻璃是 `GLIDE_ROWS.media`(资料页那一组在 `entity-filter` 岛里,同一条 `[data-view-glide="round"]` 材质)。隔一道竖杠是四枚状态(全部、未看、已保存、已忽略,不挂计数),与首页四枚视图同一个控件,共用那块滑动玻璃(`GLIDE_ROWS.views` 多认 `.followviews`)。来源图标与标签在右半截横滚,来源类型只在选中时上色。
-- 下排读数照首页写「N 项更新 · 显示 M」,右端是 `sortControlsHtml` 那一组:换一批(切到 `sort=rand&seed=`,整批按种子打散,种子写进地址),然后是更新时间/热度/时长三档排序。换一批等数据时也画首页那段描边忙态(读数行挂 `aria-busy`)。
+- 下排读数照首页写「N 项更新 · 显示 M」,右端是换一批与排序键那一组:换一批(切到 `sort=rand&seed=`,整批按种子打散,种子写进地址),然后是更新时间/热度/时长三档排序。换一批等数据时也画首页那段描边忙态(读数行挂 `aria-busy`)。
- 图片墙上多一枚 30px 见方的「仅显示图片」图标开关,字形是 Lucide `captions-off`,不跟媒体那一档的图片字形撞。开着时垫筛选条那块滑动玻璃(`GLIDE_ROWS.imagesonly`),跟旁边的版式分段器同一块料、同一副尺寸:浮层上的分段器轨道不留内边距,选项 30px 见方、8px 圆角。
- 排序归服务端(`/api/follow?sort=&dir=&seed=`):分页在服务端,浏览器只拿到当前这几页。`FollowStore.group()` 结尾无条件按 `newest_at` 倒序,所以条目层和发布组层都要按同一把尺再排一次(`_sorted_items` 与 `_sorted_groups`)。
- 生效的筛选摊在浮层正下方,用首页那条交集筛选条(`.combo` 容器加 `.cb` 芯片加「全部清除」)。放上方会把吸顶玻璃和两排头像一起推下去;放下方只推列表,而列表本来就要重画。
diff --git a/docs/REUSE.md b/docs/REUSE.md
index 7ff14321e..4c93a2c1b 100644
--- a/docs/REUSE.md
+++ b/docs/REUSE.md
@@ -22,11 +22,11 @@
- 横排滚到头的回弹由 `wireHorizontalScroller` 内的 `edgeBounce` 承载,头像排、厂牌排、新作排、筛选条共用。transitions.dev 的配方里没有这一条(2026-09-23 核对过全部 43 条)。越界位移借 UIScrollView 的橡皮筋公式 `(1 - 1/(x·c/d + 1))·d`,c = 0.55,与 use-gesture 的 `rubberband` 同一条(MIT,https://github.com/pmndrs/use-gesture )。回弹走 `--spring-pane`。只抄了公式,不引依赖:use-gesture 管的是手势识别,而这几排的拖动与滚轮归属已经由 `wireHorizontalScroller` 判定。新作排的自动滚动是同一文件里的 `wireAutoScroll`,同样没有新增依赖。
-- 浮层筛选在首页与关注页由 `web/js/ui-components.js` 的 `mountFilterFrame()` 承载视图、标签、读数、控件四个槽位;实体资料页那块是 React 岛 `entity-filter`(`FilterGlassRows` 两排,滑动玻璃走 `use-view-glide.ts`)。外框负责玻璃与吸顶,壳负责查询状态和取数,岛只画、动作回壳,按下态在发请求之前由 `updateIsland` 推到。身份与观看状态的组合沿用 `/api/items`。
+- 浮层筛选首页是 React 岛 `catalog-filter`,实体资料页是 `entity-filter`,两座共用 `FilterGlassRows` 两排与交集条、排序键组件,滑动玻璃走 `use-view-glide.ts`。外框负责玻璃与吸顶,壳负责查询状态和取数,岛只画、动作回壳,按下态在发请求之前由 `updateIsland` 推到。身份与观看状态的组合沿用 `/api/items`。
- 组件映射、官方公开注册表证据与许可证见 [Board 界面](BOARD_UI.md)。`web/board.css` 共用正式页面结构;登录、首启与错误页共用 `web_entry.entry_page_style()`,登录页是首启 Auth Card 的单字段形态。
- `frontend/src/number-setting.ts` 共用带单位输入、可选 Switch、整数边界和锚定错误提示。关闭保留上次合法值,异步读取后切换也恢复实际值;业务保存仍由调用方负责。
-- 筛选内层复用 `filterChipHtml`、`sortControlsHtml`,首页与关注页提供查询键及读数;`collectionHeaderHtml` 只剩资料页骨架那一排读数。横向行复用 `wireHorizontalScroller`,拖动、滚轮、渐隐与卸载清理归同一个生命周期。
+- 筛选内层的标签胶囊是 `FilterPill`,换一批、排序键与交集条是 `entity-filter-page.tsx` 导出的同一组组件,用到它们的页面各自提供查询键及读数;`collectionHeaderHtml` 只剩资料页骨架那一排读数。横向行复用 `wireHorizontalScroller`,拖动、滚轮、渐隐与卸载清理归同一个生命周期。
- 选择范围与工具条复用 `frontend/src/selection.ts`;馆藏、关注与复核保持各自身份、可见顺序、默认选择及写入权限。批量失败项的保留由业务负责。
- React 设置分区复用 `frontend/src/react/settings/section.tsx`:`Section` 提供标题、卡片与表单外壳,`Footer`、`Note`、`ErrorText`、`FactList`、`Progress`、`Disclosure` 补齐 BoardUI 注册表没有的底栏、行内提示、读数、进度与折叠。`use-action.ts` 的 `useAction` 负责提交互斥、卸载取消与原位错误,`busyProps` 写忙态。密码字段校验与服务端回执仍归各分区,不自动重试写入。后台任务(口味读取、封面采集、amane 桥重建、关注检查与查找)共用 `frontend/src/react/background-job.ts` 的 `useBackgroundJob`。
- 增量列表复用 `frontend/src/react/catalog-grid/catalog-grid-page.tsx` 的 `LoadMore`:请求互斥、失败留原位重试、卸载即停;目录、资料页照片墙与关注页注入读取和可用条件。首页页码在读取成功后推进,照片沿用随机种子,关注合并分组。显式页码继续使用 `pagination.ts`。
diff --git a/frontend/e2e/catalog-filter.test.ts b/frontend/e2e/catalog-filter.test.ts
new file mode 100644
index 000000000..8e8a8a0a7
--- /dev/null
+++ b/frontend/e2e/catalog-filter.test.ts
@@ -0,0 +1,339 @@
+/* 首页上方那一整块:两排头像、玻璃浮层的两排(视图与标签、读数与排序)和网格上面那条交集条
+ * (`catalog-filter` 岛,ADR-0031)。
+ *
+ * 作品、详情与图片沿用 `item-fixture.ts` 的桩;两排头像(`/api/tops`)、标签(`/api/facets` 的 `tags`)
+ * 与目录列表在这里另给一份,好数请求、好让「按了什么」和「重取了几次」对得上。验的是行为:
+ * 点下去发什么请求、按下态与地址怎么变、详情往返时这几排是不是原来那批节点。外观对照另有截图。 */
+import assert from 'node:assert/strict';
+import { after, before, describe, it } from 'node:test';
+
+import type { Browser, Page } from 'playwright-core';
+
+import { launch, layout, settle, VIEWPORTS } from './harness.ts';
+import { CATALOG, ITEM, openItemPage, type ItemVisit } from './item-fixture.ts';
+
+const DESKTOP = VIEWPORTS.find((viewport) => !viewport.mobile)!;
+const PHONE = VIEWPORTS.find((viewport) => viewport.mobile)!;
+const DETAIL_READY = '#stage[open] [data-item-side]';
+const FILTER = '[data-catalog-filter]';
+const READOUT = `${FILTER} [data-count-readout]`;
+
+/** 第一页四十位女优、十个厂牌;女优那排还有一页二十位,再往后就到底了。 */
+const PERFORMERS = Array.from({ length: 60 }, (_, at) => ({
+ id: 95_000 + at, k: `演示女优${String(at + 1).padStart(2, '0')}`, n: 60 - at,
+ has_image: true, has_avatar: false, avatar_focus: null, rep: null,
+}));
+const STUDIOS = Array.from({ length: 10 }, (_, at) => ({ k: `演示厂牌${at + 1}`, n: 20 - at, has_logo: false }));
+const TAGS = Array.from({ length: 40 }, (_, at) => ({ k: `演示标签${String(at + 1).padStart(2, '0')}`, n: 90 - at }));
+
+interface Counts {
+ /** 目录网格那一路:竖屏那一排(`orient=竖屏`)与只探有没有内容的 `limit=1` 各走各的,不算在里面。 */
+ items: URL[];
+ facets: URL[];
+ tops: URL[];
+}
+
+const pathIs = (page: Page, path: string) => page.waitForFunction(
+ (want) => decodeURIComponent(location.pathname) === want, path, { timeout: 10_000 });
+const withoutPlayer = (problems: string[]) => problems.filter((line) => !line.includes('VIDEOJS'));
+
+/** 等 Node 这一侧记下的请求数到位:桩在 Node 里计数,页面里的 `waitForFunction` 读不到。 */
+async function until(done: () => boolean, message: string, timeout = 10_000) {
+ const end = Date.now() + timeout;
+ while (!done()) {
+ if (Date.now() > end) assert.fail(message);
+ await new Promise((resolve) => setTimeout(resolve, 50));
+ }
+}
+
+/** 打开首页:桩装好之后重新载入,等到读数出现、等待态结束。 */
+async function openHome(browser: Browser, path = '/', viewport = DESKTOP): Promise<ItemVisit & { counts: Counts }> {
+ const opened = await openItemPage(browser, '/', viewport, { ready: '#grid [data-media-card]' });
+ const { page } = opened;
+ const counts: Counts = { items: [], facets: [], tops: [] };
+ await page.route((url) => url.pathname === '/api/tops', (route) => {
+ const url = new URL(route.request().url());
+ counts.tops.push(url);
+ const page = Number(url.searchParams.get('page') || 0);
+ const performers = page === 0 ? PERFORMERS.slice(0, 40) : page === 1 ? PERFORMERS.slice(40) : [];
+ return route.fulfill({ json: { performers, studios: page ? [] : STUDIOS } });
+ });
+ await page.route((url) => url.pathname === '/api/facets', async (route) => {
+ counts.facets.push(new URL(route.request().url()));
+ const response = await route.fetch();
+ await route.fulfill({ json: { ...await response.json(), tags: TAGS } });
+ });
+ /* 加一条标签筛选,列表就只剩一半:读数跟着换,才看得出这一趟真按新口径取了。 */
+ await page.route((url) => url.pathname === '/api/items', (route) => {
+ const url = new URL(route.request().url());
+ if (!url.searchParams.has('orient') && url.searchParams.get('limit') !== '1') counts.items.push(url);
+ const ids = url.searchParams.get('tag') ? CATALOG.slice(0, 3) : CATALOG;
+ return route.fulfill({ json: {
+ items: ids.map((id) => ({ id, name: `sample_${id}.mp4`, title: `演示作品 ${id}`, is_jav: false, medium: 'video',
+ location: 'local', has_thumb: true, duration: 3600, studio: 'Peach Studio', performers: [], tags: [] })),
+ total: ids.length, has_more: false,
+ } });
+ });
+ await page.goto(new URL(path, page.url()).toString(), { waitUntil: 'load' });
+ await page.locator(READOUT, { hasText: '个符合' }).waitFor({ timeout: 15_000 });
+ await page.locator(`${FILTER} [data-tier-performer]`).first().waitFor({ timeout: 15_000 });
+ await settle(page);
+ return { ...opened, counts };
+}
+
+const tag = (page: Page, key: string) => page.locator(`${FILTER} [data-catalog-tag="${key}"]`);
+const chips = (page: Page) => page.locator('#combo [data-combo-chip]');
+
+describe('首页筛选条', () => {
+ let browser: Browser;
+ before(async () => { browser = await launch(); });
+ after(async () => { await browser?.close(); });
+
+ it('点头像条一格打开那一位的资料页;地址里的厂牌筛选出一颗交集条,撤掉它重取一次列表', { timeout: 60_000 }, async () => {
+ const opened = await openHome(browser, '/?studio=Peach%20Studio');
+ try {
+ const { page, counts } = opened;
+ await chips(page).filter({ hasText: '厂牌 Peach Studio' }).waitFor();
+ const before = counts.items.length;
+ await chips(page).filter({ hasText: 'Peach Studio' }).getByRole('button', { name: '撤掉 厂牌 Peach Studio' }).click();
+ await page.waitForFunction(() => !new URLSearchParams(location.search).has('studio'));
+ await page.locator(READOUT, { hasText: `${CATALOG.length} 个符合` }).waitFor();
+ assert.equal(await chips(page).count(), 0, '撤掉之后交集条上还有东西');
+ const after = counts.items.slice(before);
+ assert.ok(after.length >= 1 && after.every((url) => !url.searchParams.has('studio')), '撤掉之后没有按新口径重取');
+ await page.locator(`${FILTER} [data-tier-performer]`).first().click();
+ await pathIs(page, `/performers/${PERFORMERS[0]!.k}`);
+ } finally {
+ await opened.close();
+ }
+ });
+
+ it('标签条点选:按下态当场变,出一颗交集条,读数和侧栏计数按新口径各取一次;交集条上撤掉它回到原样', { timeout: 60_000 }, async () => {
+ const opened = await openHome(browser);
+ try {
+ const { page, counts } = opened;
+ /* 首屏那批标签按种子从四十枚里抽,点屏幕上的第一枚,不点清单里的第一枚。 */
+ const key = (await page.locator(`${FILTER} [data-catalog-tag]`).first().getAttribute('data-catalog-tag'))!;
+ await page.evaluate((filter) => {
+ const first = document.querySelector(`${filter} [data-tier-performer]`) as HTMLElement & { __kept?: boolean };
+ first.__kept = true;
+ }, FILTER);
+ const [items, facets] = [counts.items.length, counts.facets.length];
+ const order = () => page.locator(`${FILTER} [data-catalog-tag]`).evaluateAll((pills) =>
+ pills.map((pill) => pill.getAttribute('data-catalog-tag')));
+ const members = await order();
+ /* 计数是标签的附注:隔开一段、字号降一档、字色退一档,不和标签名读成一个词。 */
+ const footnote = await tag(page, key).evaluate((pill) => {
+ const badge = pill.querySelector('[data-count-badge]')!;
+ const [p, b] = [getComputedStyle(pill), getComputedStyle(badge)];
+ return { gap: parseFloat(b.marginLeft), smaller: parseFloat(b.fontSize) < parseFloat(p.fontSize),
+ dimmer: b.color !== p.color, spaced: !/\s$/.test(badge.previousSibling?.textContent ?? '') };
+ });
+ assert.ok(footnote.gap >= 4, `计数离标签只有 ${footnote.gap}px`);
+ assert.deepEqual([footnote.smaller, footnote.dimmer, footnote.spaced], [true, true, true],
+ '计数和标签同字号、同色,或者靠空格文本节点隔开');
+ await tag(page, key).click();
+ await page.locator(`${FILTER} [data-catalog-tag="${key}"][aria-pressed="true"]`).waitFor({ timeout: 2_000 });
+ await chips(page).filter({ hasText: key }).waitFor();
+ await page.locator(READOUT, { hasText: '3 个符合' }).waitFor();
+ assert.equal(new URL(page.url()).searchParams.get('tag'), key);
+ assert.deepEqual(counts.items.slice(items).map((url) => url.searchParams.get('tag')), [key],
+ '点一枚标签应当只按新口径取一次列表');
+ assert.deepEqual(counts.facets.slice(facets).map((url) => url.searchParams.get('tag')), [key],
+ '侧栏计数应当按新口径取一次聚合');
+ /* 口径变了两排头像会按新口径再取一次(`getBarsData`),但同一位的那一格原地换数,不拆了重建。 */
+ assert.equal(await page.evaluate((filter) => !!(document.querySelector(`${filter} [data-tier-performer]`) as
+ (HTMLElement & { __kept?: boolean }) | null)?.__kept, FILTER), true, '加一条筛选把头像条拆了重建');
+ /* 标签条的成员与次序不动:刚点的那枚还在原位,没被挪到最前面去。 */
+ assert.deepEqual(await order(), members, '加一条筛选把标签条重排了');
+ await chips(page).filter({ hasText: key }).getByRole('button').click();
+ await page.locator(READOUT, { hasText: `${CATALOG.length} 个符合` }).waitFor();
+ await page.locator(`${FILTER} [data-catalog-tag="${key}"][aria-pressed="false"]`).waitFor({ timeout: 2_000 });
+ assert.equal(await chips(page).count(), 0);
+ assert.deepEqual(withoutPlayer(opened.problems), []);
+ } finally {
+ await opened.close();
+ }
+ });
+
+ it('头像条横滚到右端先把手上这页摆完,再要下一页,要到空页就停', { timeout: 60_000 }, async () => {
+ const opened = await openHome(browser);
+ try {
+ const { page, counts } = opened;
+ const row = page.locator(`${FILTER} [data-catalog-tier="performers"]`);
+ const shown = () => row.locator('[data-tier-performer]').count();
+ assert.equal(await shown(), 24, '首屏应当只摆 24 枚');
+ for (let at = 0; at < 20 && await shown() < PERFORMERS.length; at += 1) {
+ await row.evaluate((element) => { element.scrollLeft = element.scrollWidth; });
+ await page.waitForTimeout(120);
+ }
+ assert.equal(await shown(), PERFORMERS.length, '续页没有把第二页摆出来');
+ for (let at = 0; at < 5; at += 1) {
+ await row.evaluate((element) => { element.scrollLeft = element.scrollWidth; });
+ await page.waitForTimeout(120);
+ }
+ /* 请求不带是哪一排:厂牌那排第一页就摆得下,挂上时已在右端,也要一次第 1 页(空的)就停。 */
+ assert.deepEqual(counts.tops.map((url) => url.searchParams.get('page') ?? '').sort(), ['', '1', '1', '2'],
+ '续页的页号不对,或到底之后还在要');
+ assert.deepEqual(withoutPlayer(opened.problems), []);
+ } finally {
+ await opened.close();
+ }
+ });
+
+ it('排序键:按下态当场到位,网格只重取一次;再点一次同一枚翻方向', { timeout: 60_000 }, async () => {
+ const opened = await openHome(browser);
+ try {
+ const { page, counts } = opened;
+ const key = page.locator(`${FILTER} [data-entity-sort="new"]`);
+ const before = counts.items.length;
+ await key.click();
+ await page.locator(`${FILTER} [data-entity-sort="new"][aria-pressed="true"]`).waitFor({ timeout: 2_000 });
+ await until(() => counts.items.length > before, '换排序之后没有重取列表');
+ await settle(page);
+ assert.deepEqual(counts.items.slice(before).map((url) => url.searchParams.get('sort')), ['new'],
+ '换一次排序应当只重取一次列表');
+ /* 只数第一页:厂牌那排挂上时在右端,续要的那次空页与排序无关。 */
+ assert.equal(counts.tops.filter((url) => !url.searchParams.has('page')).length, 1, '换排序不该重取两排头像');
+ await key.click();
+ await until(() => counts.items.length > before + 1, '翻方向之后没有重取列表');
+ await settle(page);
+ assert.deepEqual(counts.items.slice(before).map((url) => url.searchParams.get('dir') || ''), ['desc', 'asc']);
+ assert.deepEqual(withoutPlayer(opened.problems), []);
+ } finally {
+ await opened.close();
+ }
+ });
+
+ it('卡片版式:只重画不重取,选择记进设置', { timeout: 60_000 }, async () => {
+ const opened = await openHome(browser);
+ try {
+ const { page, counts } = opened;
+ const choice = (value: string) => page.locator(`${FILTER} input[name="home-layout"][value="${value}"]`);
+ const before = counts.items.length;
+ assert.equal(await choice('small').isChecked(), true);
+ await page.locator(`${FILTER} label:has(input[name="home-layout"][value="big"])`).click();
+ assert.equal(await choice('big').isChecked(), true);
+ const saved = await page.evaluate(() => JSON.parse(localStorage.getItem('peach.settings.v1') || '{}'));
+ assert.equal(saved.homeLayout, 'big');
+ assert.equal(counts.items.length, before, '换版式不该重取列表');
+ assert.deepEqual(withoutPlayer(opened.problems), []);
+ } finally {
+ await opened.close();
+ }
+ });
+
+ it('JAV 开关:下排换成 JAV 那一份版式与「发行时间」,按 JAV 口径重取;再按一次回到首页那一份', { timeout: 60_000 }, async () => {
+ const opened = await openHome(browser);
+ try {
+ const { page, counts } = opened;
+ const before = counts.items.length;
+ await page.locator('button[data-nav="jav"]:visible').first().click();
+ await page.waitForFunction(() => new URLSearchParams(location.search).get('jav') === '1');
+ await page.locator(`${FILTER} input[name="jav-layout"]`).first().waitFor({ state: 'attached' });
+ await page.locator(`${FILTER} [data-entity-sort="release"]`).waitFor();
+ await settle(page);
+ assert.ok(counts.items.slice(before).some((url) => url.searchParams.get('jav') === '1'), 'JAV 口径没有重取列表');
+ assert.equal(await page.locator(`${FILTER} input[name="home-layout"]`).count(), 0);
+ await page.locator('button[data-nav="jav"]:visible').first().click();
+ await page.waitForFunction(() => !new URLSearchParams(location.search).has('jav'));
+ await page.locator(`${FILTER} input[name="home-layout"]`).first().waitFor({ state: 'attached' });
+ assert.equal(await page.locator(`${FILTER} [data-entity-sort="release"]`).count(), 0);
+ assert.deepEqual(withoutPlayer(opened.problems), []);
+ } finally {
+ await opened.close();
+ }
+ });
+
+ it('进详情再关回来:头像条还是原来那批节点,图还是解码过的那一张,也没有多发聚合请求', { timeout: 60_000 }, async () => {
+ const opened = await openHome(browser);
+ try {
+ const { page, counts } = opened;
+ await page.waitForFunction((filter) => {
+ const img = document.querySelector(`${filter} [data-tier-ring] > img`) as HTMLImageElement | null;
+ return !!img && img.complete && img.naturalWidth > 0;
+ }, FILTER, { timeout: 10_000 });
+ await page.evaluate((filter) => {
+ const first = document.querySelector(`${filter} [data-tier-performer]`) as HTMLElement & { __kept?: boolean };
+ first.__kept = true;
+ (first.querySelector('[data-tier-ring] > img') as HTMLImageElement & { __kept?: boolean }).__kept = true;
+ }, FILTER);
+ const [facets, tops] = [counts.facets.length, counts.tops.length];
+ await page.locator(`#grid [data-media-card][data-id="${ITEM.plain}"] [data-media-title]`).first().click();
+ await pathIs(page, `/item/${ITEM.plain}`);
+ await page.locator(DETAIL_READY).waitFor();
+ await page.locator('#closeStage').click();
+ await pathIs(page, '/');
+ await page.locator('#stage[open]').waitFor({ state: 'detached', timeout: 10_000 }).catch(() => {});
+ await settle(page);
+ const kept = await page.evaluate((filter) => {
+ const first = document.querySelector(`${filter} [data-tier-performer]`) as (HTMLElement & { __kept?: boolean }) | null;
+ const img = first?.querySelector('[data-tier-ring] > img') as (HTMLImageElement & { __kept?: boolean }) | null;
+ return { same: !!first?.__kept, img: !!img?.__kept && img.complete && img.naturalWidth > 0 };
+ }, FILTER);
+ assert.deepEqual(kept, { same: true, img: true }, '关掉详情时头像条被重建了');
+ assert.equal(counts.facets.length, facets, '详情往返多取了一遍聚合');
+ assert.equal(counts.tops.length, tops, '详情往返多取了一遍头像');
+ assert.deepEqual(withoutPlayer(opened.problems), []);
+ } finally {
+ await opened.close();
+ }
+ });
+
+ it('去索引页再回首页:收起时不留一套同名的浮层,回来之后玻璃垫在当前视图下面', { timeout: 60_000 }, async () => {
+ const opened = await openHome(browser);
+ try {
+ const { page } = opened;
+ await page.locator('[data-nav="tags"]:visible').first().click();
+ await pathIs(page, '/tags');
+ await settle(page);
+ assert.equal(await page.locator(`${FILTER} [data-catalog-frame]`).count(), 0, '收起的首页浮层还留在页面上');
+ assert.equal(await page.locator(`${FILTER} [data-skeleton], ${FILTER} [aria-busy="true"]`).count(), 0);
+ await page.locator('[data-nav=""]:visible').first().click();
+ await pathIs(page, '/');
+ await page.locator(READOUT, { hasText: '个符合' }).waitFor();
+ await settle(page);
+ const back = await page.evaluate((filter) => {
+ const rect = (node: Element | null) => {
+ if (!node || (node as HTMLElement).hidden) return null;
+ const { left, width } = node.getBoundingClientRect();
+ return { left: Math.round(left), width: Math.round(width) };
+ };
+ return {
+ glide: rect(document.querySelector(`${filter} [data-view-glide]`)),
+ key: rect(document.querySelector(`${filter} [data-catalog-view][aria-pressed="true"]`)),
+ };
+ }, FILTER);
+ assert.ok(back.glide && back.key && Math.abs(back.glide.left - back.key.left) <= 1
+ && Math.abs(back.glide.width - back.key.width) <= 1, `玻璃没有垫在当前视图下面 ${JSON.stringify(back)}`);
+ assert.deepEqual(withoutPlayer(opened.problems), []);
+ } finally {
+ await opened.close();
+ }
+ });
+
+ it('手机 390 宽:视图和标签整段一起横滚,页面本身不被撑宽', { timeout: 60_000 }, async () => {
+ const opened = await openHome(browser, '/', PHONE);
+ try {
+ const { page } = opened;
+ const scroller = page.locator(`${FILTER} [data-catalog-scroll]`);
+ const before = await scroller.evaluate((element) => ({
+ overflow: getComputedStyle(element).overflowX, room: element.scrollWidth - element.clientWidth,
+ view: element.querySelector('[data-catalog-view]')!.getBoundingClientRect().left,
+ }));
+ assert.equal(before.overflow, 'auto', '窄屏下滚的应当是视图与标签外面那一层');
+ assert.ok(before.room > 100, `视图与标签在 390 宽下应当放不下:多出 ${before.room}px`);
+ await scroller.evaluate((element) => { element.scrollLeft = 200; });
+ const moved = await scroller.evaluate((element) => ({
+ left: element.scrollLeft, view: element.querySelector('[data-catalog-view]')!.getBoundingClientRect().left,
+ }));
+ assert.ok(moved.left > 0, '外层滚不动');
+ assert.ok(moved.view < before.view - 100, '四枚视图没有跟着标签一起滚走');
+ const measured = await layout(page);
+ assert.deepEqual(measured.offenders, [], `筛选条把页面撑宽了:${measured.offenders.join('、')}`);
+ assert.deepEqual(withoutPlayer(opened.problems), []);
+ } finally {
+ await opened.close();
+ }
+ });
+});
diff --git a/frontend/e2e/design.test.ts b/frontend/e2e/design.test.ts
index 737edeea3..cc1bfed65 100644
--- a/frontend/e2e/design.test.ts
+++ b/frontend/e2e/design.test.ts
@@ -345,7 +345,7 @@ async function openPlaylistsPage(browser: Browser, viewport = DESKTOP): Promise<
/** 打开目录并等到读数与卡片一起替下首屏骨架。 */
async function openCatalog(browser: Browser): Promise<Visit> {
const opened = await visit(browser, '/', DESKTOP);
- await opened.page.locator('#count [data-count-readout]').waitFor({ timeout: 15_000 });
+ await opened.page.locator('[data-catalog-filter] [data-count-readout]').waitFor({ timeout: 15_000 });
await settle(opened.page);
return opened;
}
@@ -385,7 +385,7 @@ async function openCatalogFixture(
});
});
await opened.page.reload({ waitUntil: 'load' });
- await opened.page.locator('#count [data-count-readout]').waitFor({ timeout: 15_000 });
+ await opened.page.locator('[data-catalog-filter] [data-count-readout]').waitFor({ timeout: 15_000 });
await settle(opened.page);
return opened;
}
@@ -1185,7 +1185,7 @@ describe('设计决定', () => {
const input = opened.page.locator('#q');
await opened.page.evaluate(() => {
document.documentElement.removeAttribute('data-count-animation');
- const count = document.querySelector('#count');
+ const count = document.querySelector('[data-catalog-filter]');
const observer = new MutationObserver(() => {
const digit = count?.querySelector<HTMLElement>('[data-count-readout] .digits.popping > span');
if (!digit) return;
@@ -1201,7 +1201,7 @@ describe('设计决定', () => {
await input.fill('读数变值');
await input.press('Enter');
await opened.page.waitForFunction(() =>
- document.querySelector('#count [data-count-readout]')?.textContent?.includes('34 个符合'));
+ document.querySelector('[data-catalog-filter] [data-count-readout]')?.textContent?.includes('34 个符合'));
/* 读数更新后还可能因自动续页再重画。在触发前观察真实节点,既能验收
动画的计算值,也不把断言绑在之后某一次采样恰好撞上短暂节点。 */
await opened.page.waitForFunction(() =>
@@ -1401,7 +1401,7 @@ describe('设计决定', () => {
const { page } = opened;
const ratio = (index: number) => page.locator('#grid [data-media-grid] > [data-media-card][data-id]').nth(index).locator('[data-media-pic]')
.evaluate((element) => element.getBoundingClientRect().width / element.getBoundingClientRect().height);
- const choice = (value: string) => page.locator(`#count input[name="home-layout"][value="${value}"]`);
+ const choice = (value: string) => page.locator(`[data-catalog-filter] input[name="home-layout"][value="${value}"]`);
try {
assert.equal(await choice('small').isChecked(), true, '首页版式默认不是小图');
assert.ok(Math.abs(await ratio(0) - 16 / 9) < 0.05, '小图下番号卡不是 16:9');
@@ -1647,7 +1647,7 @@ describe('设计决定', () => {
const opened = await openCatalog(browser);
try {
await opened.page.emulateMedia({ reducedMotion: 'no-preference' });
- for (const selector of ['#tiers .av', '#tiers .brandpill']) {
+ for (const selector of ['[data-tier-performer]', '[data-tier-studio]']) {
const entry = opened.page.locator(selector).first();
if (!await entry.count()) continue;
await entry.hover();
diff --git a/frontend/e2e/home-loading.test.ts b/frontend/e2e/home-loading.test.ts
index ca2a00b30..caf1ffd92 100644
--- a/frontend/e2e/home-loading.test.ts
+++ b/frontend/e2e/home-loading.test.ts
@@ -23,7 +23,7 @@ describe('首页加载结构',()=>{
});
if(!(window as any).__firstCard){
const card=document.querySelector('#grid [data-media-card]');
- if(card){(window as any).__firstCard=card;(window as any).__firstTier=document.querySelector('#tiers .tier')}
+ if(card){(window as any).__firstCard=card;(window as any).__firstTier=document.querySelector('[data-catalog-tier]')}
}
}).observe(document,{childList:true,subtree:true});
},{hasFeed});
@@ -59,7 +59,7 @@ describe('首页加载结构',()=>{
await page.waitForTimeout(1100);
const before=(await card.boundingBox())!;
const first=await card.elementHandle();
- const tiers=await page.locator('#tiers .tier').first().elementHandle();
+ const tiers=await page.locator('[data-catalog-tier]').first().elementHandle();
assert.equal(await page.locator('#feedNew .feednewskeleton').count()>0,hasFeed);
if(hasFeed){
const colors=await page.locator('#feedNew .feednewskeleton .pic').first().evaluate(node=>{
diff --git a/frontend/e2e/management-layout.test.ts b/frontend/e2e/management-layout.test.ts
index e3b64e321..0fe0dc616 100644
--- a/frontend/e2e/management-layout.test.ts
+++ b/frontend/e2e/management-layout.test.ts
@@ -71,6 +71,12 @@ describe('管理页面容器与骨架', () => {
await page.reload({ waitUntil: 'load' });
const skeleton = page.locator('[data-skeleton="board/stats"]');
await skeleton.waitFor();
+ /* 冷启动时侧栏展开那段过渡(`body` 的 padding-left 与侧栏宽度)还在走,整页正文跟着它横移。
+ 先等它落定再量:这里比的是骨架与接管后的落位,不是量的那一刻侧栏走到了哪儿。 */
+ await page.evaluate(() => Promise.all(document.getAnimations()
+ .filter((motion) => motion instanceof CSSTransition && ['padding-left', 'width'].includes(motion.transitionProperty)
+ && (motion.effect as KeyframeEffect | null)?.target?.matches('body, #drawer'))
+ .map((motion) => motion.finished.catch(() => undefined))));
const metrics = await box(skeleton.locator('[data-stats-metrics]'));
const chart = await box(skeleton.locator('[data-stats-chart]').first());
const waitingLayout = await layout(page);
diff --git a/frontend/src/catalog-filter-skeleton.ts b/frontend/src/catalog-filter-skeleton.ts
new file mode 100644
index 000000000..d3840f959
--- /dev/null
+++ b/frontend/src/catalog-filter-skeleton.ts
@@ -0,0 +1,42 @@
+/* 首页筛选条(`catalog-filter` 岛)挂上之前的那一份骨架。
+ *
+ * 冷启动时两排头像与标签条要等 `/api/facets` 与 `/api/tops`,约一秒;React 包也还在路上。这段时间
+ * 壳把这一串 HTML 铺进宿主,岛挂上时整块换掉。结构与属性照 `react/catalog-filter/catalog-filter-page.tsx`
+ * 渲染出来的静止态写(浮层几何是 `FilterGlassRows` 合并后的类),几何在
+ * `react/catalog-filter/catalog-filter.css` 一处定,所以换掉那一下不跳。
+ *
+ * 四枚视图由 state 决定,这一趟取数不改它们,所以现在就画成最终样子:`href` 是真地址,壳在宿主上
+ * 委托接住点击。头像与标签只画占位,读数是一条宽度定死的微光。 */
+import type { CatalogView } from '@peach/react';
+
+/** 每排摆多少格,同岛里空馆藏占位的 `EMPTY_SLOTS`,由容器裁到可用宽度。 */
+const EMPTY_SLOTS = 64;
+
+const esc = (value: string): string => value.replace(/[&<>"]/g, (ch) =>
+ ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;' })[ch] as string);
+
+const slots = (html: string): string => html.repeat(EMPTY_SLOTS);
+
+export function catalogFilterSkeletonHtml(views: readonly CatalogView[], state: string): string {
+ const viewHtml = views.map((view) => `<a href="${esc(view.href)}" data-catalog-view="${esc(view.k)}"`
+ + ` data-entity-press="" aria-pressed="${state === view.k}">${esc(view.label)}</a>`).join('');
+ return `<div class="peach-react"><div class="contents" data-catalog-root="" data-loading="">`
+ + `<div data-catalog-tiers="" aria-busy="true">`
+ + `<div data-catalog-tier="performers" data-skeleton="tiers">`
+ + slots('<span data-catalog-placeholder="performer" aria-hidden="true"><span></span><span>&nbsp;</span></span>')
+ + `</div><div data-catalog-tier="studios">`
+ + slots('<span data-catalog-placeholder="studio" aria-hidden="true"><span></span><span>&nbsp;</span></span>')
+ + `</div></div>`
+ + `<div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame=""`
+ + ` data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4">`
+ + `<div role="group" aria-label="视图与标签" data-filter-row="top"`
+ + ` class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible">`
+ + `<div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${viewHtml}`
+ + `<span data-entity-sep="" aria-hidden="true"></span></div>`
+ + `<div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">`
+ + '<span></span>'.repeat(EMPTY_SLOTS) + `</span></div></div></div>`
+ + `<div data-filter-row="bottom" aria-busy="true" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12">`
+ + `<span data-catalog-readout=""><span data-skeleton="count" aria-hidden="true"`
+ + ` class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>`
+ + `</div></div></div></div>`;
+}
diff --git a/frontend/src/catalog-onboarding.ts b/frontend/src/catalog-onboarding.ts
index bcc556f01..574d11d1c 100644
--- a/frontend/src/catalog-onboarding.ts
+++ b/frontend/src/catalog-onboarding.ts
@@ -3,16 +3,6 @@ import { emptyStateHtml } from '@peach/legacy/ui';
type Request = (url: string) => Promise<any>;
const FILTERS = ['loc', 'creator', 'performer', 'studio', 'series', 'agency', 'tag', 'tag_match', 'len', 'dur_min', 'dur_max', 'orient', 'region', 'state', 'jav', 'thumb'];
-/** 空馆藏占位沿横向内容轨道铺开,由容器裁切到可用宽度。 */
-export function emptyCatalogLayout(): { tiers: string; tags: string } {
- const fill = (html: string) => Array(64).fill(html).join('');
- return {
- tiers: '<div class="tier catalog-placeholder" aria-hidden="true">' + fill('<span class="av"><span class="ring"></span><span class="nm">&nbsp;</span></span>')
- + '</div><div class="tier catalog-placeholder" aria-hidden="true">' + fill('<span class="brandpill"><span class="mk"></span><span class="placeholder-name">&nbsp;</span></span>') + '</div>',
- tags: '<span class="catalog-placeholder placeholder-tags" aria-hidden="true">' + fill('<span class="pill">&nbsp;</span>') + '</span>',
- };
-}
-
/** 推荐与当前列表共用筛选,并以实际搜索命中作为展示条件。 */
export async function catalogSuggestions(state: Record<string, string>, request: Request): Promise<string[]> {
const params = new URLSearchParams();
diff --git a/frontend/src/islands.ts b/frontend/src/islands.ts
index 6c6693d3a..cc6e85e65 100644
--- a/frontend/src/islands.ts
+++ b/frontend/src/islands.ts
@@ -25,7 +25,8 @@ export { paginationHtml, pageCount, clampPage } from './pagination';
export { nativeImageFit, faceSourceScale } from './native-image';
export { entitySkeletonHtml } from './entity-skeleton';
export { boardPageSkeleton, detailSkeletonHtml } from './board-skeleton';
-export { catalogSuggestions, catalogEmptyHtml, emptyCatalogLayout } from './catalog-onboarding';
+export { catalogSuggestions, catalogEmptyHtml } from './catalog-onboarding';
+export { catalogFilterSkeletonHtml } from './catalog-filter-skeleton';
export { syncSidebarSurface, sidebarTagCounts, sidebarHasCatalogContent } from './sidebar';
export { cleanupSkeletonHtml } from './management';
export { junkCountSkeletonHtml, junkPath, junkRoute } from './junk-queue';
@@ -33,6 +34,7 @@ export { junkCountSkeletonHtml, junkPath, junkRoute } from './junk-queue';
/** 每个 island 的 props。新增 island 时在这里登记,注册表随之要求实现;
* 页面自己管数据,首屏落在共用的 Query 缓存里。 */
export interface IslandContracts {
+ 'catalog-filter': ReactBundle.CatalogFilterProps;
'catalog-grid': ReactBundle.CatalogGridProps;
'data-cleanup': ReactBundle.DataCleanupProps;
duplicates: ReactBundle.DuplicatesProps;
@@ -65,6 +67,7 @@ interface Island {
}
const REGISTRY: { [N in IslandName]: Island } = {
+ 'catalog-filter': { react: 'catalog-filter' },
'catalog-grid': { react: 'catalog-grid' },
'data-cleanup': { react: 'data-cleanup' },
duplicates: { react: 'duplicates' },
diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.ts
index 536a6c283..b4835de59 100644
--- a/frontend/src/react/bundle.d.ts
+++ b/frontend/src/react/bundle.d.ts
@@ -9,6 +9,7 @@ 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 { CatalogFilterProps, CatalogView } from './catalog-filter/catalog-filter';
import type { EntityBodyProps } from './entity-body/entity-body';
import type { FollowDetailProps } from './follow-detail/follow-detail';
import type { FollowFeedProps } from './follow-feed/follow-feed';
@@ -20,6 +21,7 @@ export type { CatalogGridProps };
export type { JunkQueueProps };
export type { EntityHeroProps };
export type { EntityFilterProps };
+export type { CatalogFilterProps, CatalogView };
export type { EntityBodyProps };
export type { FollowDetailProps };
export type { FollowFeedProps };
@@ -396,6 +398,7 @@ export interface ReactPages {
duplicates: ReactPage<DuplicatesProps>;
'entity-body': ReactPage<EntityBodyProps>;
'entity-filter': ReactPage<EntityFilterProps>;
+ 'catalog-filter': ReactPage<CatalogFilterProps>;
'entity-hero': ReactPage<EntityHeroProps>;
'follow-feed': ReactPage<FollowFeedProps>;
'follow-manage': ReactPage<FollowManageProps>;
diff --git a/frontend/src/react/catalog-filter/catalog-filter-page.tsx b/frontend/src/react/catalog-filter/catalog-filter-page.tsx
new file mode 100644
index 000000000..458acea16
--- /dev/null
+++ b/frontend/src/react/catalog-filter/catalog-filter-page.tsx
@@ -0,0 +1,277 @@
+/* 首页上方那一整块:两排头像(女优、厂牌),加一块两排的玻璃浮层(上排四枚视图与标签,下排读数、
+ * 换一批、卡片版式与排序键),再加正文里网格上面那条交集条。
+ *
+ * 状态全在壳里:筛选、当前视图、排序、成员与读数都当 props 递进来,点下去的动作回壳,壳在发请求之前
+ * 先推一份新的按下态,所以 `aria-pressed` 与滑动玻璃当场就到位,不等这一趟取数。
+ *
+ * 加一条筛选不重画这几排:成员(`tiers.key` 与标签的顺序)不变,React 只改按下态,人横着续到第
+ * 六十枚、停在第 600 像素上的那一排原样留着。换了口径或换了一批,壳给新的 `tiers.key`,两排从头摆。
+ * 详情浮窗打开期间壳不推任何东西,关掉回来还是同一批节点(`buildBars` 那段注释讲了为什么)。 */
+import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState, type RefObject } from 'react';
+import { createPortal } from 'react-dom';
+import { fitSkeleton, popBadges, popCount } from '@peach/legacy/ui';
+
+import { FilterGlassRows, FilterPill } from '../components/filter-glass';
+import { useViewGlide } from '../components/use-view-glide';
+import { Combo, Segments, Shuffle, SortKeys } from '../entity-filter/entity-filter-page';
+import {
+ EMPTY_SLOTS, ROW_AHEAD, ROW_BATCH, ROW_FIRST, type CatalogFilterProps, type CatalogTag, type TierKind,
+ type TierPerformer, type TierStudio,
+} from './catalog-filter';
+
+/* 上一次写出去的读数。读数那一格每次取数都换成微光再建回来,靠它分清「换了个数」和「刚出现」:
+ 只有前者按位错峰长出来。跨查询、跨重挂都要记得,所以放在模块里。 */
+let lastReadout = '';
+
+export function CatalogFilterPage(props: CatalogFilterProps) {
+ const loading = !props.tiers;
+ const combo = useComboHost(props.comboHost);
+ /* 收起时(资料页、索引页与管理页)只留两排头像:回到同一口径的首页时那一批原样还在,不重摆、不重取图。
+ 浮层那两排和资料页、索引页的浮层是同一组组件、同一组属性,藏着一份在页面上,就是两套同名的控件。 */
+ return (
+ <div data-catalog-root="" data-loading={loading || undefined} data-refreshing={props.refreshing || undefined}
+ className="contents">
+ {combo ? createPortal(<Combo items={props.combo} hidden={props.comboHidden} actions={props.actions} />, combo) : null}
+ <Tiers {...props} />
+ {props.offscreen ? null : <Glass {...props} />}
+ </div>
+ );
+}
+
+/** 玻璃浮层两排:上排四枚视图与标签,下排读数、换一批、版式与排序键。 */
+function Glass(props: CatalogFilterProps) {
+ const { actions, helpers } = props;
+ const pane = useRef<HTMLSpanElement>(null);
+ const viewRow = useRef<HTMLDivElement>(null);
+ const scroll = useRef<HTMLDivElement>(null);
+ const tagRow = useRef<HTMLDivElement>(null);
+ const bottomRow = useRef<HTMLDivElement>(null);
+ const glide = useViewGlide(pane, viewRow, '[data-catalog-view][aria-pressed="true"]', props.state);
+
+ /* 标签那一格是 `overflow-x:auto` 加隐藏滚动条,鼠标够不着,所以登记全站横向行那套拖动加滚轮。
+ 窄屏下滚的是外面那层(视图跟着一起走),两层都登记;下排窄屏下整条横滚,同一套。 */
+ useEffect(() => {
+ helpers.wireDrag(tagRow.current);
+ helpers.wireScroller(scroll.current);
+ helpers.wireDrag(bottomRow.current);
+ }, [helpers]);
+
+ const loading = !props.tiers;
+ const tags = usePaged(tagRow, props.tags, props.tiers?.key ?? '', props.tagFirst);
+ /* 计数徽标变了值的那几枚弹一下(遗留层 `popBadges`,按上一次的值判断,不按节点新不新)。 */
+ useLayoutEffect(() => { popBadges(tagRow.current, 'tagbar') }, [tags]);
+
+ return (
+ <FilterGlassRows label="筛选与排序" topLabel="视图与标签"
+ attrs={{ 'data-filter-frame': '', 'data-catalog-frame': '' }}
+ className="mx-4" topClassName="gap-1.5 overflow-visible" bottomClassName={props.trash ? 'hidden' : 'min-h-12'}
+ bottomRef={bottomRow} busy={!props.count || props.refreshing}
+ panes={<span ref={pane} data-view-glide="" aria-hidden="true" />}
+ top={
+ <div ref={scroll} data-catalog-scroll="">
+ <div ref={viewRow} role="group" aria-label="视图" data-catalog-views="" onPointerLeave={glide.leave}>
+ {props.views.map((view) => (
+ <a key={view.k} href={view.href} data-catalog-view={view.k} data-entity-press=""
+ aria-pressed={props.state === view.k} onPointerEnter={glide.hover}
+ onClick={(event) => { event.preventDefault(); actions.setView(view.k) }}>
+ {view.label}
+ </a>
+ ))}
+ <span data-entity-sep="" aria-hidden="true" />
+ </div>
+ <div ref={tagRow} data-catalog-tags="">
+ {props.empty || loading ? <Placeholders kind="tag" /> : null}
+ {tags.map((tag) => <TagPill key={tag.k} tag={tag} onPress={actions.toggleTag} />)}
+ </div>
+ </div>
+ }
+ bottom={props.trash ? null : <Head {...props} />}
+ />
+ );
+}
+
+function TagPill({ tag, onPress }: { tag: CatalogTag; onPress(tag: string): void }) {
+ return (
+ <FilterPill data-catalog-tag={tag.k} data-entity-press="" pressed={tag.selected} onPress={() => onPress(tag.k)}>
+ {tag.label}{tag.n == null ? null : <span data-count-badge={tag.k}>{tag.n.toLocaleString()}</span>}
+ </FilterPill>
+ );
+}
+
+/** 两排头像。空的一排仍占 28px,画出来就是一条什么都没有的空带,所以没人就不画那一排。 */
+function Tiers(props: CatalogFilterProps) {
+ const { actions, helpers } = props;
+ const tiers = props.tiers ?? { key: '', performers: [], studios: [] };
+ const empty = props.empty || !props.tiers;
+ const performers = useRef<HTMLDivElement>(null);
+ const studios = useRef<HTMLDivElement>(null);
+ const more = useCallback((kind: TierKind) => () => actions.moreTops(kind), [actions]);
+ /* 占位那几排没有下一页可要。 */
+ const shownPerformers = usePaged(performers, tiers.performers, tiers.key, ROW_FIRST,
+ empty ? undefined : more('performers'));
+ const shownStudios = usePaged(studios, tiers.studios, tiers.key, ROW_FIRST, empty ? undefined : more('studios'));
+ const hasPerformers = empty || tiers.performers.length > 0;
+ const hasStudios = empty || tiers.studios.length > 0;
+ useEffect(() => {
+ helpers.wireDrag(performers.current);
+ helpers.wireDrag(studios.current);
+ }, [helpers, hasPerformers, hasStudios]);
+ return (
+ <div data-catalog-tiers="" hidden={!hasPerformers && !hasStudios}>
+ {hasPerformers ? (
+ <div ref={performers} data-catalog-tier="performers">
+ {empty ? <Placeholders kind="performer" /> : (shownPerformers as TierPerformer[]).map((person) => (
+ <button key={person.name} type="button" data-tier-performer="" data-entity-kind="performer"
+ data-entity-name={person.name} onClick={() => actions.openEntity('performer', person.name)}>
+ <span data-tier-ring="" dangerouslySetInnerHTML={{ __html: person.ringHtml }} />
+ <span data-tier-name="">{person.name}</span>
+ </button>
+ ))}
+ </div>
+ ) : null}
+ {hasStudios ? (
+ <div ref={studios} data-catalog-tier="studios">
+ {empty ? <Placeholders kind="studio" /> : (shownStudios as TierStudio[]).map((studio) => (
+ <button key={studio.name} type="button" data-tier-studio="" data-entity-kind="studio"
+ data-entity-name={studio.name} onClick={() => actions.openEntity('studio', studio.name)}>
+ <StudioMark studio={studio} />{studio.name}
+ </button>
+ ))}
+ </div>
+ ) : null}
+ </div>
+ );
+}
+
+/** 厂牌标识。兜底只剩「装了但读不出来」这一种:文件坏了,或归一漏掉、图小到看不出是什么;
+ * 没装标识的壳根本不给地址,不出这张图。 */
+function StudioMark({ studio }: { studio: TierStudio }) {
+ const [broken, setBroken] = useState(false);
+ return (
+ <span data-tier-mark="">
+ {studio.logo && !broken ? (
+ <img src={studio.logo} alt="" onError={() => setBroken(true)}
+ onLoad={(event) => { if (event.currentTarget.naturalWidth < 32) setBroken(true) }} />
+ ) : studio.fallback}
+ </span>
+ );
+}
+
+/** 空馆藏的占位:每排六十四格,由容器裁到可用宽度。它不是控件,不接指针。 */
+function Placeholders({ kind }: { kind: 'performer' | 'studio' | 'tag' }) {
+ const slots = Array.from({ length: EMPTY_SLOTS }, (_, index) => index);
+ if (kind === 'tag') {
+ return <span data-catalog-placeholder="tag" aria-hidden="true">{slots.map((i) => <span key={i} />)}</span>;
+ }
+ return (
+ <>
+ {slots.map((i) => (kind === 'performer' ? (
+ <span key={i} data-catalog-placeholder="performer" aria-hidden="true"><span /><span>&nbsp;</span></span>
+ ) : (
+ <span key={i} data-catalog-placeholder="studio" aria-hidden="true"><span /><span>&nbsp;</span></span>
+ )))}
+ </>
+ );
+}
+
+/** 下排:读数、换一批、版式与排序。回收站不出这一排。 */
+function Head({ count, refreshing, layout, sorts, actions }: CatalogFilterProps) {
+ const [shuffling, setShuffling] = useState(false);
+ const shuffle = () => {
+ setShuffling(true);
+ actions.reshuffle().finally(() => setShuffling(false));
+ };
+ return (
+ <>
+ <Readout count={count} />
+ <span data-entity-sorts="">
+ <Shuffle onPress={shuffle} busy={shuffling || refreshing} />
+ {/* 按名字换键:JAV 与首页各一组,React Aria 的单选组挂上之后不改 `name`。 */}
+ {layout ? <Segments key={layout.name} name={layout.name} label={layout.label} value={layout.value} options={layout.options}
+ onChange={actions.setLayout} /> : null}
+ <SortKeys sorts={sorts} onSort={actions.setSort} />
+ </span>
+ </>
+ );
+}
+
+/** 读数:`1,234 个符合 · 显示 24`。等这一趟取数时换成一条宽度定死的微光,180ms 内就到手的一帧都不露。 */
+function Readout({ count }: { count: CatalogFilterProps['count'] }) {
+ const readout = useRef<HTMLSpanElement>(null);
+ const skeleton = useRef<HTMLSpanElement>(null);
+ const text = count ? `${count.total.toLocaleString()} 个符合 · 显示 ${count.shown}` : '';
+ useLayoutEffect(() => {
+ if (!count) { fitSkeleton(skeleton.current); return }
+ const el = readout.current;
+ if (!el) return;
+ if (lastReadout && el.dataset.popCount === undefined) el.dataset.popCount = lastReadout;
+ lastReadout = text;
+ popCount(el, text);
+ }, [count, text]);
+ return count
+ ? <span key="readout" ref={readout} data-catalog-readout="" data-count-readout="" role="status" />
+ : (
+ <span key="skeleton" data-catalog-readout="">
+ <span ref={skeleton} data-skeleton="count" aria-hidden
+ className="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen" />
+ </span>
+ );
+}
+
+/** 交集条的宿主:`#combo` 里另建一层 `.peach-react`,样式作用域要它。卸载时撤掉,行本身还给壳。 */
+function useComboHost(row: Element | null): HTMLElement | null {
+ const [host, setHost] = useState<HTMLElement | null>(null);
+ useLayoutEffect(() => {
+ if (!row) return undefined;
+ const el = row.ownerDocument.createElement('div');
+ el.className = 'peach-react';
+ row.replaceChildren(el);
+ setHost(el);
+ return () => { el.remove(); setHost(null) };
+ }, [row]);
+ return host;
+}
+
+interface Page<T> { key: string; limit: number; fetched: T[]; drained: boolean }
+
+/** 一排先摆 `first` 枚,横滚到离右端 320px 就再续 12 枚,续到这一排真的溢出为止:宽屏上一批可能
+ * 还填不满一行,而没溢出就滚不动,滚不动就再没有第二次 `scroll` 来接着续。手上这份用完再经
+ * `more` 要下一页,要回空的就是到底了。`key` 变了从头摆。 */
+function usePaged<T>(row: RefObject<HTMLElement | null>, items: T[], key: string, first: number,
+ more?: () => Promise<unknown[]>): T[] {
+ const initial = (): Page<T> => ({ key, limit: first, fetched: [], drained: !more });
+ const [page, setPage] = useState(initial);
+ const current = page.key === key ? page : initial();
+ if (current !== page) setPage(current);
+ const all = useMemo(() => (current.fetched.length ? items.concat(current.fetched) : items),
+ [items, current.fetched]);
+ const fetching = useRef(false);
+ const state = useRef({ current, all, more });
+ state.current = { current, all, more };
+ const fill = useCallback(() => {
+ const el = row.current;
+ const { current: now, all: list, more: next } = state.current;
+ if (!el || !el.clientWidth || el.scrollLeft + el.clientWidth < el.scrollWidth - ROW_AHEAD) return;
+ if (now.limit < list.length) {
+ setPage((p) => (p.key === now.key ? { ...p, limit: p.limit + ROW_BATCH } : p));
+ return;
+ }
+ if (now.drained || !next || fetching.current) return;
+ fetching.current = true;
+ /* 要下一页的这段时间里人还在滚,`fetching` 挡住重入,免得同一页要两遍。 */
+ void next().catch(() => []).then((rows) => {
+ fetching.current = false;
+ setPage((p) => {
+ if (p.key !== now.key) return p;
+ return rows.length ? { ...p, fetched: p.fetched.concat(rows as T[]) } : { ...p, drained: true };
+ });
+ });
+ }, [row]);
+ useLayoutEffect(fill);
+ useEffect(() => {
+ const el = row.current;
+ el?.addEventListener('scroll', fill, { passive: true });
+ return () => el?.removeEventListener('scroll', fill);
+ });
+ return all.slice(0, current.limit);
+}
diff --git a/frontend/src/react/catalog-filter/catalog-filter.css b/frontend/src/react/catalog-filter/catalog-filter.css
new file mode 100644
index 000000000..8c249d883
--- /dev/null
+++ b/frontend/src/react/catalog-filter/catalog-filter.css
@@ -0,0 +1,371 @@
+/* 首页筛选条(`catalog-filter-page.tsx`):两排头像、浮层上排的视图与标签、下排读数。
+ *
+ * 下排的换一批、版式与排序键,以及交集条,和资料页那一条是同一组组件、同一份样式
+ * (`../entity-filter/entity-filter.css`,那边的选择器同时认 `[data-catalog-frame]`)。浮层的料与吸顶在
+ * `../styles.css` 的 `[data-filter-glass]`,滑动玻璃的形状与材质在 `web/board.css` 的 `[data-view-glide]`。
+ * 岛挂上之前壳铺的那份骨架(`../../catalog-filter-skeleton.ts`)用同一组属性画,几何在这里一处定。
+ *
+ * 选择器全用 `data-*`:遗留样式表不分层、排在后面,写遗留类名会被接管。颜色读遗留层的
+ * `--glass-text`、`--glass-low`、`--ink-2` 这组:它们在 `:root` 上算好再继承进来。 */
+
+/* ── 宿主 ──
+ * 宿主(`#catalogFilter`)、React 根和岛的根都不生成盒子:两排头像与浮层要直接当 `body` 的孩子排,
+ * 浮层吸顶的范围是 `body` 整页,只裹着它自己的父元素一格都走不动。前两层的规则在
+ * `web/css/03-filterbar.css`,岛的根用 `contents`。 */
+
+/* ── 两排头像 ──
+ * 女优是竖排人像格:48px 圆头像在上、名字在下,格宽 76、圆角 12;厂牌是 40px 高的一枚,28px 圆标识在左、
+ * 名字在右。两排都不描边,悬停铺 primary-hover。 */
+.peach-react [data-catalog-tiers] {
+ position: relative;
+ z-index: 1;
+ padding: 10px 0 8px;
+ font: var(--board-body);
+ letter-spacing: normal;
+}
+
+.peach-react [data-catalog-tier] {
+ display: flex;
+ align-items: center;
+ gap: 4px;
+ margin-top: -3px;
+ padding: 0 16px 6px;
+ overflow-x: auto;
+ scrollbar-width: none;
+}
+.peach-react [data-catalog-tier]::-webkit-scrollbar { display: none; }
+.peach-react [data-catalog-tier]:last-child { padding-bottom: 4px; }
+
+/* 往右翻的时候这几排从侧栏底下穿过去,不在侧栏那条边上被切平:侧栏是一块玻璃,底下有东西在走
+ * 才看得出它是透的。左边界仍停在原处,让出去多少宽度就原样加回内边距。窄屏那一档的抽屉是盖上来的,
+ * 没有这条常驻的边,所以只在留了轨道宽度的档位上开。 */
+@media (min-width: 761px) {
+ .peach-react [data-catalog-tier] {
+ margin-left: calc(-1 * var(--railW));
+ padding-left: calc(var(--railW) + 16px);
+ }
+}
+
+.peach-react :is([data-tier-performer], [data-tier-studio]) {
+ flex: none;
+ border-radius: 12px;
+ background: transparent;
+ color: var(--color-text-secondary);
+ font: var(--board-body-medium);
+ white-space: nowrap;
+ cursor: pointer;
+ transition: transform var(--lift-motion, var(--board-motion)),
+ scale calc(var(--spring-press-ms) * 1ms) var(--spring-press), background-color .2s ease-out, color .2s ease-out;
+}
+.peach-react :is([data-tier-performer], [data-tier-studio]):hover {
+ background: var(--color-background-primary-hover);
+ color: var(--color-text-primary);
+}
+.peach-react :is([data-tier-performer], [data-tier-studio]):active {
+ scale: .96;
+ transition: scale .06s ease-out;
+}
+.peach-react :is([data-tier-performer], [data-tier-studio]):focus-visible {
+ outline: 2px solid var(--tungsten);
+ outline-offset: 2px;
+}
+
+.peach-react [data-tier-performer] {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 6px;
+ width: 76px;
+ padding: 6px 4px;
+ text-align: center;
+}
+
+.peach-react [data-tier-studio] {
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+ height: 40px;
+ padding: 6px 12px 6px 6px;
+ text-align: left;
+}
+
+.peach-react :is([data-tier-ring], [data-tier-mark]) {
+ position: relative;
+ flex: none;
+ overflow: hidden;
+ border-radius: 50%;
+ background: color-mix(in srgb, var(--color-text-primary) 10%, var(--color-background-primary-default));
+ color: var(--color-text-secondary);
+}
+
+.peach-react [data-tier-ring] {
+ display: block;
+ width: 48px;
+ height: 48px;
+ font: 600 18px/24px var(--board-font);
+}
+/* 圆框里那两层由遗留层 `entityFaceImg` 拼:首字母垫在底下居中,头像图铺满盖在上面。 */
+.peach-react [data-tier-ring] > [data-tier-initial] {
+ position: absolute;
+ inset: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+.peach-react :is([data-tier-ring], [data-tier-mark]) > img {
+ position: absolute;
+ inset: 0;
+ display: block;
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+}
+
+.peach-react [data-tier-name] {
+ display: block;
+ max-width: 100%;
+ overflow: hidden;
+ font: var(--board-caption);
+ text-align: center;
+ text-overflow: ellipsis;
+}
+
+/* 厂牌标识文件本身就是不透明方图,边距烤在图里,所以铺满圆片;首两个字只在没图时出。 */
+.peach-react [data-tier-mark] {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 28px;
+ height: 28px;
+ font: 600 12px/16px var(--board-font);
+}
+
+/* ── 上排 ──
+ * 左边四枚是视图,四选一、恒有一枚生效;分隔线右边的标签才是可加可不加的筛选。宽屏只有标签那一格
+ * 横滚,窄屏(760px 以下)换成整段一起滚:四枚视图在 375 上要占掉两百多像素,钉住它们等于把标签挤到
+ * 屏幕外。 */
+.peach-react [data-catalog-scroll] {
+ position: relative;
+ display: flex;
+ flex: 1;
+ align-items: center;
+ gap: 7px;
+ min-width: 0;
+}
+
+.peach-react [data-catalog-views] {
+ display: flex;
+ flex: none;
+ align-items: center;
+ gap: 7px;
+}
+
+/* 自己不铺底:选中那一枚的填充由那块滑动玻璃给。字压在玻璃上面,滑过去时才不被一路盖暗。 */
+.peach-react [data-catalog-view] {
+ position: relative;
+ z-index: 1;
+ display: inline-flex;
+ flex: none;
+ align-items: center;
+ justify-content: center;
+ height: 30px;
+ padding: 0 10px;
+ border-radius: 8px;
+ color: color-mix(in srgb, var(--glass-text) 60%, transparent);
+ font-size: 13px;
+ line-height: 20px;
+ text-decoration: none;
+ white-space: nowrap;
+ cursor: pointer;
+}
+.peach-react [data-catalog-view]:is(:hover, [aria-pressed="true"]) { color: var(--glass-text); }
+.peach-react [data-catalog-view]:focus-visible {
+ outline: 2px solid var(--tungsten);
+ outline-offset: 2px;
+}
+
+.peach-react [data-catalog-tags] {
+ display: flex;
+ flex: 1;
+ align-items: center;
+ gap: 7px;
+ min-width: 0;
+ overflow-x: auto;
+ overflow-y: hidden;
+ overscroll-behavior-inline: contain;
+ scrollbar-width: none;
+}
+.peach-react [data-catalog-tags]::-webkit-scrollbar { display: none; }
+
+@media (max-width: 760px) {
+ .peach-react [data-catalog-scroll] {
+ overflow-x: auto;
+ overflow-y: hidden;
+ overscroll-behavior-inline: contain;
+ scrollbar-width: none;
+ }
+ .peach-react [data-catalog-scroll]::-webkit-scrollbar { display: none; }
+ .peach-react [data-catalog-scroll] > [data-catalog-tags] {
+ flex: 0 0 auto;
+ min-width: auto;
+ overflow: visible;
+ }
+}
+
+/* 标签的圆角同详情里那一颗(`--tag-radius`)。虚线只画在「此刻还没加上去」的那几枚上,悬停只把虚线
+ * 拉成实线、字提到 `--ink`;加上去之后是 `--picked` 的面,同交集条那一颗。
+ *
+ * 计数是标签的附注,不是标签名的一部分:同字号同色贴在一起时「巨乳63」读成一个词。所以 13px 的标签
+ * 配 11px 等宽的数,退到五成五的字色,悬停或按下时回到八成;再小就难以辨认了。间隔只能由外边距给,
+ * 药丸是 flex 容器,标签与计数之间的空格文本节点不参与布局。字色按这块玻璃自己的文字色降档:玻璃上
+ * `--muted` 与 `--ink-2` 是同一个值,照搬 flat 层那一档,计数和标签仍然一样亮。 */
+.peach-react [data-catalog-tag] {
+ gap: 0;
+ border-radius: var(--tag-radius);
+ color: var(--glass-text);
+}
+.peach-react [data-catalog-tag]:hover { color: var(--ink); }
+.peach-react [data-catalog-tag][aria-pressed="true"] {
+ border-style: solid;
+ border-color: var(--field-ring);
+ background: var(--picked);
+}
+.peach-react [data-catalog-tag] [data-count-badge] {
+ margin-left: 6px;
+ color: color-mix(in srgb, var(--glass-text) 55%, transparent);
+ font-family: "Cascadia Mono", Consolas, ui-monospace, "Microsoft YaHei UI", "PingFang SC", monospace;
+ font-size: 11px;
+ font-variant-numeric: tabular-nums;
+}
+.peach-react [data-catalog-tag]:is(:hover, [aria-pressed="true"]) [data-count-badge] {
+ color: color-mix(in srgb, var(--glass-text) 80%, transparent);
+}
+
+/* ── 下排 ──
+ * 读数照 `10,471 个符合` 写:12px 等宽、常规字重,颜色比标签低一档。其余控件同资料页那一排。 */
+.peach-react [data-catalog-frame] > [data-filter-row="bottom"] {
+ color: var(--ink-2);
+ font-family: "Cascadia Mono", Consolas, ui-monospace, "Microsoft YaHei UI", "PingFang SC", monospace;
+ font-size: 12px;
+ line-height: 20px;
+}
+.peach-react [data-catalog-readout] {
+ flex: none;
+ white-space: nowrap;
+}
+
+/* ── 空馆藏占位 ──
+ * 说的是「这里将来会有东西」:形状同真头像与真标签,只铺 `--hover` 的面,不接指针,由容器裁到可用宽度。 */
+.peach-react :is([data-catalog-placeholder]) { pointer-events: none; }
+.peach-react [data-catalog-tier]:has([data-catalog-placeholder]) { overflow: hidden; }
+.peach-react [data-catalog-placeholder="performer"] {
+ display: flex;
+ flex: none;
+ flex-direction: column;
+ align-items: center;
+ gap: 6px;
+ width: 76px;
+ padding: 6px 4px;
+ font: var(--board-caption);
+}
+.peach-react [data-catalog-placeholder="performer"] > :first-child {
+ width: 48px;
+ height: 48px;
+ border-radius: 50%;
+ background: var(--hover);
+}
+.peach-react [data-catalog-placeholder="performer"] > :last-child {
+ width: 60%;
+ border-radius: var(--badge-radius);
+ background: var(--hover);
+}
+.peach-react [data-catalog-placeholder="studio"] {
+ display: inline-flex;
+ flex: none;
+ align-items: center;
+ gap: 8px;
+ height: 40px;
+ padding: 6px 12px 6px 6px;
+}
+.peach-react [data-catalog-placeholder="studio"] > :first-child {
+ width: 28px;
+ height: 28px;
+ border-radius: 50%;
+ background: var(--hover);
+}
+.peach-react [data-catalog-placeholder="studio"] > :last-child {
+ width: 48px;
+ border-radius: var(--badge-radius);
+ background: var(--hover);
+}
+.peach-react [data-catalog-placeholder="tag"] {
+ display: flex;
+ flex: none;
+ gap: 7px;
+}
+.peach-react [data-catalog-placeholder="tag"] > span {
+ flex: none;
+ width: 72px;
+ height: 30px;
+ border-radius: var(--tag-radius);
+ background: var(--hover);
+}
+
+/* 挂上之前壳铺的骨架(`data-loading`)用同一组占位,面上再走一道微光:它说的是「马上就来」,
+ * 空馆藏那一份是静止的。 */
+.peach-react [data-loading] [data-catalog-placeholder] > span {
+ position: relative;
+ overflow: hidden;
+}
+.peach-react [data-loading] [data-catalog-placeholder] > span::after {
+ content: '';
+ position: absolute;
+ inset: 0;
+ right: -200%;
+ border-radius: inherit;
+ background: linear-gradient(to right, var(--hover), var(--skeleton-sheen) 50%, var(--hover));
+ background-size: 50% 100%;
+ animation: peach-skeleton-sweep 1.5s ease-in-out infinite reverse;
+}
+@media (prefers-reduced-motion: reduce) {
+ .peach-react [data-loading] [data-catalog-placeholder] > span::after { animation: none; }
+}
+
+/* ── 换一批 ──
+ * 真实头像与胶囊留在原处,用 `visibility` 藏起来,微光画在 `::after` 上并单独露出来:框就是它们自己的框,
+ * 零位移,藏起来的控件也不可聚焦。四枚视图由 state 决定,这一趟不改它们,不盖。 */
+.peach-react [data-refreshing] :is([data-catalog-tag], [data-tier-ring], [data-tier-name], [data-tier-studio]) {
+ position: relative;
+ overflow: hidden;
+ visibility: hidden;
+ border-color: transparent;
+ background: var(--hover);
+}
+.peach-react [data-refreshing] [data-tier-name] {
+ width: 52px;
+ margin: 0 auto;
+ border-radius: var(--control-radius);
+}
+.peach-react [data-refreshing] :is([data-catalog-tag], [data-tier-ring], [data-tier-name], [data-tier-studio])::after {
+ content: '';
+ position: absolute;
+ inset: 0;
+ right: -200%;
+ visibility: visible;
+ border-radius: inherit;
+ background: linear-gradient(to right, var(--hover), var(--skeleton-sheen) 50%, var(--hover));
+ background-size: 50% 100%;
+ animation: peach-skeleton-sweep 1.5s ease-in-out infinite reverse;
+}
+/* 头像框上那层「图还在路上」的微光(遗留层 `watchPendingImages` 标的类)也画在 `::after` 上,已经收尾的框
+ * 别把它一起藏掉。那枚类名不归岛管,这里按属性认它。 */
+.peach-react [data-refreshing] [data-tier-ring][class~="imgdone"]::after {
+ opacity: 1;
+ filter: none;
+ visibility: visible;
+}
+@media (prefers-reduced-motion: reduce) {
+ .peach-react [data-refreshing] :is([data-catalog-tag], [data-tier-ring], [data-tier-name], [data-tier-studio])::after {
+ animation: none;
+ }
+}
diff --git a/frontend/src/react/catalog-filter/catalog-filter.ts b/frontend/src/react/catalog-filter/catalog-filter.ts
new file mode 100644
index 000000000..9def5b699
--- /dev/null
+++ b/frontend/src/react/catalog-filter/catalog-filter.ts
@@ -0,0 +1,125 @@
+/* 首页筛选条(`catalog-filter` 岛,ADR-0031 第 11b 步):数据形状。
+ *
+ * 壳(`web/app.js` 的 `buildBars` 一族)拥有目录的筛选、路由与取数:两排头像、标签条的成员与
+ * 按下态、四枚视图、读数、排序键和版式都由壳算好当 props 递进来,岛只画。筛选一变壳就用
+ * `updateIsland` 推一份新的,不重挂;按下去的反馈(`aria-pressed` 与滑动玻璃)靠壳在发请求之前
+ * 先推一次。动作全部回壳,岛不自己拼请求:排序、换一批与版式回壳后走 `loadCatalog`,也就是
+ * `catalog-grid` 已有的那条重取入口。
+ *
+ * 交集条与排序键、换一批、版式开关和资料页那一条(`entity-filter`)是同一份清单、同一组组件。 */
+import type { EntityComboItem, EntitySortKey, SegmentOption } from '../entity-filter/entity-filter';
+
+export type { EntityComboItem, EntitySortKey, SegmentOption };
+
+/** 头像条上的一位女优。圆框里那两层(首字母与头像图)由遗留层 `entityFaceImg` 拼:取景、
+ * 回落图与异步解码都在那里,React 不拥有里面的节点。 */
+export interface TierPerformer {
+ name: string;
+ ringHtml: string;
+}
+
+/** 厂牌那一排的一枚。`logo` 是方形图标的地址,没装标识时为空,只画首两个字。 */
+export interface TierStudio {
+ name: string;
+ logo: string;
+ fallback: string;
+}
+
+export type TierKind = 'performers' | 'studios';
+
+/** 两排头像。每排手上这份是壳这一趟取回的整页;岛先摆一屏,横滚到右端再往下续,手上的用完
+ * 再经 `actions.moreTops` 要下一页。`key` 变了(换了口径或换了一批)两排从头摆。 */
+export interface CatalogTiers {
+ key: string;
+ performers: TierPerformer[];
+ studios: TierStudio[];
+}
+
+/** 标签条上的一枚。`n` 为空说明这枚生效的标签不在这一批里,不印数字:印 0 会说成
+ * 「这个标签下什么都没有」,而它此刻正筛着一屏内容。 */
+export interface CatalogTag {
+ k: string;
+ label: string;
+ n: number | null;
+ selected: boolean;
+}
+
+/** 左端四枚视图:全部、没看过、稍后看、已标记。`href` 是它自己的地址,React 包没到时照常换页。 */
+export interface CatalogView {
+ k: string;
+ label: string;
+ href: string;
+}
+
+/** 读数右边那组分段开关:首页与 JAV 各存一份卡片版式。 */
+export interface CatalogLayout {
+ name: 'home-layout' | 'jav-layout';
+ label: string;
+ value: string;
+ options: readonly SegmentOption[];
+}
+
+export interface CatalogFilterActions {
+ /** 头像条上的一格:打开那一位的资料页。 */
+ openEntity(kind: 'performer' | 'studio', name: string): void;
+ /** 四枚视图里的一枚。 */
+ setView(view: string): void;
+ toggleTag(tag: string): void;
+ /** 撤掉交集条上的一颗创作者/厂牌/归属。 */
+ clearFilter(key: string): void;
+ /** 交集条末尾的「全部清除」。 */
+ clearAll(): void;
+ setSort(key: string): void;
+ /** 换一批:网格与三层成员一起换,换批键转圈到这个 Promise 落定。 */
+ reshuffle(): Promise<void>;
+ setLayout(value: string): void;
+ /** 某一排手上这份摆完了,要下一页。返回空数组就是到底了。 */
+ moreTops(kind: TierKind): Promise<TierPerformer[] | TierStudio[]>;
+}
+
+/** 仍由遗留层给的接线。 */
+export interface CatalogFilterHelpers {
+ /** 横滚行接上拖动与滚轮(`wireDrag`)。 */
+ wireDrag(row: Element | null): void;
+ /** 只接滚轮与两端渐隐、不接拖动(`wireHorizontalScroller`):窄屏下才溢出的外层用它。 */
+ wireScroller(row: Element | null): void;
+}
+
+export interface CatalogFilterProps {
+ /** 两排头像。首屏还在等两个聚合查询时为空:两排与标签条摆占位加一道微光,四枚视图与下排照常。 */
+ tiers: CatalogTiers | null;
+ /** 空馆藏:两排与标签条摆一行占位,说的是「这里将来会有东西」。 */
+ empty: boolean;
+ /** 标签条成员,已选的排在最前;前 `tagFirst` 枚先摆,其余横滚到右端再续。 */
+ tags: CatalogTag[];
+ tagFirst: number;
+ views: readonly CatalogView[];
+ /** 当前视图:''、fresh、later、flagged、trash。 */
+ state: string;
+ /** 读数。取数期间为空,换成一条微光。 */
+ count: { total: number; shown: number } | null;
+ /** 回收站是待清理队列:读数挂在说明行上,这里没有下排。 */
+ trash: boolean;
+ sorts: EntitySortKey[];
+ layout: CatalogLayout | null;
+ /** 换一批这一趟:三层与标签铺一层微光,换批键转圈。 */
+ refreshing: boolean;
+ /** 筛选条被收起(资料页、索引页与管理页):浮层两排不画,只留两排头像。 */
+ offscreen: boolean;
+ combo: EntityComboItem[];
+ /** 交集条只在目录铺在屏幕上时有所指;索引页、资料页与管理页盖住目录时收起。 */
+ comboHidden: boolean;
+ /** 交集条的宿主(`#combo`):它住在正文里、网格上面,不和筛选条挨着。 */
+ comboHost: Element | null;
+ actions: CatalogFilterActions;
+ helpers: CatalogFilterHelpers;
+}
+
+/** 首屏先摆多少、往后一次续多少。一排里每个头像都是一张要解码的图,把手上这份全画出来
+ * 等于让首屏替一个多半不会滚到那么远的人买单。 */
+export const ROW_FIRST = 24;
+export const ROW_BATCH = 12;
+/** 离右端还剩这么多就续:滚到那一刻才开始画,手底下已经是一段空白了。 */
+export const ROW_AHEAD = 320;
+/** 空馆藏占位每排摆多少格,由容器裁到可用宽度。 */
+export const EMPTY_SLOTS = 64;
diff --git a/frontend/src/react/catalog-grid/catalog-grid-page.tsx b/frontend/src/react/catalog-grid/catalog-grid-page.tsx
index 07011a24f..8ec522664 100644
--- a/frontend/src/react/catalog-grid/catalog-grid-page.tsx
+++ b/frontend/src/react/catalog-grid/catalog-grid-page.tsx
@@ -4,13 +4,13 @@
* 重读时查询换键,整个网格按新键重挂:先铺壳那份骨架,数据回来后骨架淡出、内容从模糊里清晰
* 起来(同遗留层 `revealSkeleton`),骨架还没到显示门槛就取完的直接落内容。
*
- * 读数行(`#count`)的结构归壳,网格每接一页经 `onCount` 报一次,再把读数按位错峰写进
- * 那一格(遗留层 `popCount`)。无限滚动见下面的 `LoadMore`:哨兵进入视口 320px
+ * 网格每接一页经 `onCount` 报一次总数与显示的卡数,读数画在首页筛选条(`catalog-filter` 岛)的
+ * 下排。无限滚动见下面的 `LoadMore`:哨兵进入视口 320px
* 内自动取下一页,点它等于手动取;失败在哨兵后面留一条可重试的 Note,之后只有手动才重试。 */
import { Fragment, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState, type ReactNode, type RefObject } from 'react';
import { useInfiniteQuery, type InfiniteData, type QueryKey } from '@tanstack/react-query';
import { requestErrorMessage } from '@peach/legacy/core';
-import { loadingDotsHtml, popCount } from '@peach/legacy/ui';
+import { loadingDotsHtml } from '@peach/legacy/ui';
import { apiGet } from '../../api';
import { RetryNote, useSkeletonReveal } from '../components/grid-reveal';
@@ -23,10 +23,6 @@ import {
} from './catalog-grid';
import type { CatalogGridProps, MediaCardLayout, MediaCardHelpers, MediaItem, MediaPage } from './types';
-/* 上一次写出去的读数。读数那一格每次随读数行整块重建,靠它分清「换了个数」和「刚出现」:
- 只有前者按位错峰长出来。跨查询、跨重挂都要记得,所以放在模块里,同遗留层 `lastCountReadout`。 */
-let lastReadout = '';
-
export function CatalogGridPage(props: CatalogGridProps) {
if (props.mode === 'items') return <ItemsGrid {...props} />;
const key = props.mode === 'entity'
@@ -89,16 +85,8 @@ function GridBody(props: CatalogGridProps) {
const body = useRef<HTMLDivElement | null>(null);
const cuts = useShortsStrips(props, result.data, tiles, pageStarts, body);
- /* 读数:先让壳重画读数行,再把数写进它新建的那一格。 */
useLayoutEffect(() => {
- if (!result.data) return;
- props.onCount?.(total, shown);
- const readout = trash ? null : props.countRow?.querySelector<HTMLElement>('[data-count-readout]');
- if (!readout) return;
- const text = `${total.toLocaleString()} 个符合 · 显示 ${shown}`;
- if (lastReadout) readout.dataset.popCount = lastReadout;
- lastReadout = text;
- popCount(readout, text);
+ if (result.data) props.onCount?.(total, shown);
}, [result.data, total, shown]);
const open = useCallback((item: MediaItem, anchor: HTMLElement) => actions.open(item, anchor), [actions]);
diff --git a/frontend/src/react/catalog-grid/types.ts b/frontend/src/react/catalog-grid/types.ts
index 0a1a9e98b..774e79615 100644
--- a/frontend/src/react/catalog-grid/types.ts
+++ b/frontend/src/react/catalog-grid/types.ts
@@ -134,10 +134,7 @@ export interface CatalogGridProps {
mix?: boolean;
/** 每接一页插一条竖屏带。 */
shorts?: boolean;
- /** 读数与排序那一行(`#count`)。行的结构(排序、换一批、版式键)归壳,每次 `onCount`
- * 时重画;读数那一格(`[data-count-readout]`)由网格按位错峰写进去。 */
- countRow?: HTMLElement | null;
- /** 每接一页报一次:总数与此刻显示的卡数(Mix 与竖屏带不算)。壳据此重画读数行、批量条,
+ /** 每接一页报一次:总数与此刻显示的卡数(Mix 与竖屏带不算)。壳据此推筛选条的读数、重画批量条,
* 回收站把读数写在说明行上。 */
onCount?(total: number, shown: number): void;
/** 空态 HTML。`libraryEmpty` 是整个馆藏都还没有作品。 */
diff --git a/frontend/src/react/entity-filter/entity-filter-page.tsx b/frontend/src/react/entity-filter/entity-filter-page.tsx
index 0dfd0aa59..b482aaca9 100644
--- a/frontend/src/react/entity-filter/entity-filter-page.tsx
+++ b/frontend/src/react/entity-filter/entity-filter-page.tsx
@@ -18,7 +18,7 @@ import { spriteGlyph } from '../components/sprite-glyph';
import { useViewGlide } from '../components/use-view-glide';
import {
videoOnly, type EntityComboItem, type EntityFilterActions, type EntityFilterHelpers, type EntityFilterProps,
- type EntityPhotoHead, type EntityVideoHead, type EntityView, type EntityViewKeys, type SegmentOption,
+ type EntityPhotoHead, type EntitySortKey, type EntityVideoHead, type EntityView, type EntityViewKeys, type SegmentOption,
} from './entity-filter';
const Sep = () => <span data-entity-sep="" aria-hidden="true" />;
@@ -118,8 +118,11 @@ function ViewKeys({ keys, view, row, glide, onView }: {
);
}
-/** 生效的作品筛选。跟浮层分开摆在它上面:它说的是「现在加了哪些」,一颗一颗撤得掉。 */
-function Combo({ items, hidden, actions }: { items: EntityComboItem[]; hidden: boolean; actions: EntityFilterActions }) {
+/** 生效的作品筛选。跟浮层分开摆在它上面:它说的是「现在加了哪些」,一颗一颗撤得掉。首页那条
+ * (`catalog-filter`)是同一枚。 */
+export function Combo({ items, hidden, actions }: {
+ items: EntityComboItem[]; hidden: boolean; actions: Pick<EntityFilterActions, 'toggleTag' | 'clearFilter' | 'clearAll'>;
+}) {
return (
<div data-entity-combo="" hidden={hidden}>
{items.length ? (
@@ -168,12 +171,13 @@ function Readout({ text, busy }: { text: string; busy: boolean }) {
);
}
-/** 玻璃上的分段开关:卡片版式、图片布局。选中那一格是浮层选中态那块料。关注页浮层用的是同一枚。 */
-export function Segments({ label, value, options, onChange }: {
- label: string; value: string; options: readonly SegmentOption[]; onChange(value: string): void;
+/** 玻璃上的分段开关:卡片版式、图片布局。选中那一格是浮层选中态那块料。关注页与首页浮层用的是
+ * 同一枚;`name` 给那一组单选框一个表单名(首页那组叫 `home-layout`/`jav-layout`)。 */
+export function Segments({ name, label, value, options, onChange }: {
+ name?: string; label: string; value: string; options: readonly SegmentOption[]; onChange(value: string): void;
}) {
return (
- <RadioGroup aria-label={label} orientation="horizontal" value={value} onChange={onChange}
+ <RadioGroup name={name} aria-label={label} orientation="horizontal" value={value} onChange={onChange}
data-entity-layout="" className={SEGMENTED_GLASS_TRACK}>
{options.map(([option, text, symbol]) => {
const Glyph = spriteGlyph(symbol);
@@ -203,16 +207,26 @@ function VideoControls({ head, actions }: { head: EntityVideoHead; actions: Enti
{head.jav ? (
<Segments label="JAV 卡片版式" value={head.jav.layout} options={head.jav.options} onChange={actions.setJavLayout} />
) : null}
- {head.sorts.map((sort) => {
+ <SortKeys sorts={head.sorts} onSort={actions.setSort} />
+ </span>
+ );
+}
+
+/** 一排排序键。方向只画在选中的那一枚上:箭头既是当前方向,也是「再点一次能翻」的唯一提示。
+ * 无障碍名称播报的是点下去会得到什么,当前状态由 `aria-pressed` 与这枚箭头各自表达。 */
+export function SortKeys({ sorts, onSort }: { sorts: readonly EntitySortKey[]; onSort(key: string): void }) {
+ return (
+ <>
+ {sorts.map((sort) => {
const Arrow = spriteGlyph(sort.dir === 'asc' ? 'arrow-up' : 'arrow-down');
return (
<button key={sort.key} type="button" data-entity-sort={sort.key} data-entity-press=""
- aria-pressed={sort.pressed} aria-label={sort.ariaLabel || undefined} onClick={() => actions.setSort(sort.key)}>
+ aria-pressed={sort.pressed} aria-label={sort.ariaLabel || undefined} onClick={() => onSort(sort.key)}>
{sort.label}{sort.pressed && sort.dir ? <Arrow className="size-3.5" /> : null}
</button>
);
})}
- </span>
+ </>
);
}
diff --git a/frontend/src/react/entity-filter/entity-filter.css b/frontend/src/react/entity-filter/entity-filter.css
index 408ede490..bfecc62d1 100644
--- a/frontend/src/react/entity-filter/entity-filter.css
+++ b/frontend/src/react/entity-filter/entity-filter.css
@@ -8,21 +8,24 @@
* 真浮层时高度才不跳。
*
* 选择器全用 `data-*`:遗留样式表不分层、排在后面,写遗留类名会被接管。颜色读遗留层的 `--glass-text`、
- * `--glass-low`、`--ink-2` 这组:它们在 `:root` 上算好再继承进来,和页面其余部分同一档。 */
+ * `--glass-low`、`--ink-2` 这组:它们在 `:root` 上算好再继承进来,和页面其余部分同一档。
+ *
+ * 首页那块浮层(`catalog-filter`,根上标 `[data-catalog-frame]`)的下排、交集条与这里是同一组组件,
+ * 浮层级的几条规则两边一起认。 */
/* ── 宿主 ──
* 宿主(`[data-entity-filter]`)和 React 根那一层都不生成盒子:浮层要吸顶,吸住的范围是它父元素
* 的盒子,父元素只裹着它自己的话一格都走不动。两层让开之后它的父元素就是 `#index`,和骨架里
* 那块 `.board-filter-frame` 同一个。这两条写在 `web/css/07-entity.css`。 */
-.peach-react [data-entity-filter-glass] {
+.peach-react :is([data-entity-filter-glass], [data-catalog-frame]) {
z-index: 60;
font: var(--board-body);
letter-spacing: normal;
}
/* 全站焦点环(`01-base.css`)把 React 子树排除在外,这里自己画同一副。 */
-.peach-react :is([data-entity-filter-glass], [data-entity-combo]) :is(button, [role="radio"]):focus-visible {
+.peach-react :is([data-entity-filter-glass], [data-catalog-frame], [data-entity-combo]) :is(button, [role="radio"]):focus-visible {
outline: 2px solid var(--tungsten);
outline-offset: 2px;
}
@@ -312,7 +315,7 @@
/* 浮层下半在手机上仍是一横条:读数在左,控件跟在右边,装不下就整条往右滚。 */
@media (max-width: 760px) {
- .peach-react [data-entity-filter-glass] > [data-filter-row="bottom"] {
+ .peach-react :is([data-entity-filter-glass], [data-catalog-frame]) > [data-filter-row="bottom"] {
flex-wrap: nowrap;
gap: 10px;
overflow-x: auto;
@@ -321,7 +324,7 @@
scrollbar-width: none;
touch-action: pan-x pan-y;
}
- .peach-react [data-entity-filter-glass] > [data-filter-row="bottom"]::-webkit-scrollbar { display: none; }
+ .peach-react :is([data-entity-filter-glass], [data-catalog-frame]) > [data-filter-row="bottom"]::-webkit-scrollbar { display: none; }
.peach-react [data-entity-sorts] {
flex: none;
width: max-content;
@@ -333,7 +336,7 @@
/* 窄屏往下滚时浮层让出顶栏下沿,往回滚再落下来;`--filter-free-top` 与标记由壳的
`updateMobileFilterScroll` 写。 */
@media (max-width: 760px) {
- .peach-react [data-entity-filter-glass][data-filter-free] { top: var(--filter-free-top); }
+ .peach-react :is([data-entity-filter-glass], [data-catalog-frame])[data-filter-free] { top: var(--filter-free-top); }
}
/* ── 交集条 ──
diff --git a/frontend/src/react/entry.tsx b/frontend/src/react/entry.tsx
index add8085e5..633df5805 100644
--- a/frontend/src/react/entry.tsx
+++ b/frontend/src/react/entry.tsx
@@ -16,6 +16,7 @@ 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 { CatalogFilterPage } from './catalog-filter/catalog-filter-page';
import { EntityHeroPage } from './entity-hero/entity-hero-page';
import { prefetchFollowFeed } from './follow-feed/follow-feed';
import { FollowFeedPage } from './follow-feed/follow-feed-page';
@@ -87,6 +88,7 @@ export const pages: Bundle.ReactPages = {
'entity-hero': { prefetch: async () => {}, mount: mounter(EntityHeroPage) },
/* 筛选、读数与排序项都由壳算好递进来,挂上就是最终样子。 */
'entity-filter': { prefetch: async () => {}, mount: mounter(EntityFilterPage) },
+ 'catalog-filter': { prefetch: async () => {}, mount: mounter(CatalogFilterPage) },
/* 名册随资料下来,作品第一页与照片由壳和页头并行取好递进来,挂上就是最终样子。 */
'entity-body': { prefetch: async () => {}, mount: mounter(EntityBodyPage) },
/* 关注列表第一页与凭据两趟并行,挂上就是最终样子;换筛选之后的取数由页面自己的查询驱动。 */
diff --git a/frontend/src/react/styles.css b/frontend/src/react/styles.css
index 5111a3627..4699eff8a 100644
--- a/frontend/src/react/styles.css
+++ b/frontend/src/react/styles.css
@@ -20,6 +20,7 @@
@import "./junk-queue/junk-queue.css";
@import "./entity-hero/entity-hero.css";
@import "./entity-filter/entity-filter.css";
+@import "./catalog-filter/catalog-filter.css";
@import "./entity-body/entity-body.css";
@import "./follow-feed/follow-feed.css";
@import "./follow-detail/follow-detail.css";
@@ -31,6 +32,7 @@
@source "./";
@source "../management-skeletons.ts";
+@source "../catalog-filter-skeleton.ts";
/* 扫描不分代码与注释:这几个词各在注释里出现过,生成出来就和旧样式表的 `.ring`、`.grid`、
* `.sr-only` 同名。React 子树三个类都不用——只读屏的文字走 `VisuallyHidden`,它把样式写在
* 元素上。直接不生成。 */
diff --git a/frontend/test/catalog-onboarding.test.ts b/frontend/test/catalog-onboarding.test.ts
index d5c110270..332591626 100644
--- a/frontend/test/catalog-onboarding.test.ts
+++ b/frontend/test/catalog-onboarding.test.ts
@@ -1,5 +1,5 @@
import { describe, expect, it, vi } from 'vitest';
-import { catalogEmptyHtml, catalogSuggestions, emptyCatalogLayout } from '../src/catalog-onboarding';
+import { catalogEmptyHtml, catalogSuggestions } from '../src/catalog-onboarding';
describe('当前馆藏推荐', () => {
it('空实例不显示示例词', async () => {
@@ -18,14 +18,6 @@ describe('当前馆藏推荐', () => {
});
describe('馆藏与资料空状态', () => {
- it('空首页保留横向头像、厂牌和标签的静止布局', () => {
- const layout = emptyCatalogLayout();
- expect(layout.tiers.match(/class="av"/g)).toHaveLength(64);
- expect(layout.tiers.match(/class="brandpill"/g)).toHaveLength(64);
- expect(layout.tags.match(/class="pill"/g)).toHaveLength(64);
- expect(layout.tiers).not.toContain('aria-busy');
- expect(layout.tiers).toContain('aria-hidden="true"');
- });
it('空首页提供添加内容与来源的真实入口', () => {
const html = catalogEmptyHtml({ configurable: true });
expect(html).toContain('data-geist-empty-state');
diff --git a/frontend/test/filter-frame.test.ts b/frontend/test/filter-frame.test.ts
deleted file mode 100644
index 9b31dd048..000000000
--- a/frontend/test/filter-frame.test.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-import { afterEach, expect, it, vi } from 'vitest';
-// @ts-expect-error 遗留模块由浏览器直接加载。
-import { mountFilterFrame } from '../../web/js/ui-components.js';
-
-afterEach(() => document.body.replaceChildren());
-
-it('切换列表只替换读数与控件,保留浮层和筛选事件', () => {
- document.body.innerHTML='<header><button>全部</button><nav>标签</nav></header><main><footer><h3>视频</h3><aside>排序</aside></footer></main>';
- const top=document.querySelector('header')!;
- const views=top.querySelector('button')!;
- const change=vi.fn(); views.addEventListener('click',change);
- const slots={views,tags:top.querySelector('nav'),readout:document.querySelector('h3'),controls:document.querySelector('aside')};
- const frame=mountFilterFrame(top,document.querySelector('footer'),slots);
- const main=document.querySelector('main')!;
- main.innerHTML='<footer><h3>照片</h3><aside>大小</aside></footer><article>照片内容</article>';
- const next=mountFilterFrame(top,main.querySelector('footer'),{...slots,readout:main.querySelector('h3'),controls:main.querySelector('aside')});
- expect(next).toBe(frame);
- expect(frame.querySelectorAll('[data-filter-row="bottom"]')).toHaveLength(1);
- expect([...frame.querySelectorAll('[data-filter-slot]')].map(node=>node.getAttribute('data-filter-slot'))).toEqual(['views','tags','readout','controls']);
- expect(main.textContent).toBe('照片内容');
- expect(frame.textContent).toContain('照片');
- views.click();expect(change).toHaveBeenCalledOnce();
- mountFilterFrame(top,frame.querySelector('footer'),{...slots,readout:frame.querySelector('h3'),controls:frame.querySelector('aside')});
- expect(document.querySelectorAll('[data-filter-frame]')).toHaveLength(1);
-});
-
-it('集合工具条更新后键盘焦点停留在同一排序操作', () => {
- document.body.innerHTML='<header></header><footer><button data-sort="name">名称</button></footer>';
- const top=document.querySelector('header')!,bottom=document.querySelector('footer')!;
- const frame=mountFilterFrame(top,bottom,{});bottom.querySelector('button')!.focus();
- const next=document.createElement('footer');next.innerHTML='<button data-sort="new">最新</button><button data-sort="name">名称</button>';
- mountFilterFrame(top,next,{});
- expect(document.activeElement).toBe(frame.querySelector('[data-sort="name"]'));
-});
diff --git a/frontend/test/islands.test.ts b/frontend/test/islands.test.ts
index a6ba283b9..ecd23e537 100644
--- a/frontend/test/islands.test.ts
+++ b/frontend/test/islands.test.ts
@@ -40,7 +40,7 @@ async function until(ok: () => boolean, what: string): Promise<void> {
describe('island 注册表', () => {
it('登记的名字就是遗留路由能挂载的名字', () => {
expect(islandNames()).toEqual([
- 'catalog-grid', 'data-cleanup', 'duplicates', 'entity-body', 'entity-filter', 'entity-hero', 'follow-feed', 'follow-manage', 'index', 'junk-queue',
+ 'catalog-filter', 'catalog-grid', 'data-cleanup', 'duplicates', 'entity-body', 'entity-filter', 'entity-hero', 'follow-feed', 'follow-manage', 'index', 'junk-queue',
'library-processing', 'playlists',
'scraping', 'quality-goals', 'review', 'configuration', 'configuration-summary', 'activity', 'stats', 'taste']);
});
diff --git a/frontend/test/react/catalog-filter.test.tsx b/frontend/test/react/catalog-filter.test.tsx
new file mode 100644
index 000000000..0e2bd4c24
--- /dev/null
+++ b/frontend/test/react/catalog-filter.test.tsx
@@ -0,0 +1,45 @@
+/* 首页筛选条岛:空馆藏与首屏等待时两排、标签条摆什么。
+ *
+ * 点选、续页、排序、版式与详情往返要真的取数和量布局,由 `frontend/e2e/catalog-filter.test.ts` 在真浏览器里走。 */
+import { describe, expect, it, vi } from 'vitest';
+
+import { CatalogFilterPage } from '../../src/react/catalog-filter/catalog-filter-page';
+import { EMPTY_SLOTS, type CatalogFilterProps } from '../../src/react/catalog-filter/catalog-filter';
+import { mount } from './render';
+
+function props(patch: Partial<CatalogFilterProps> = {}): CatalogFilterProps {
+ return {
+ tiers: { key: 'k', performers: [], studios: [] }, empty: false, tags: [], tagFirst: 0,
+ views: [{ k: '', label: '全部', href: '/' }], state: '', count: { total: 0, shown: 0 }, trash: false,
+ sorts: [], layout: null, refreshing: false, offscreen: false, combo: [], comboHidden: true, comboHost: null,
+ actions: {
+ openEntity: vi.fn(), setView: vi.fn(), toggleTag: vi.fn(), clearFilter: vi.fn(), clearAll: vi.fn(),
+ setSort: vi.fn(), reshuffle: vi.fn(async () => {}), setLayout: vi.fn(), moreTops: vi.fn(async () => []),
+ },
+ helpers: { wireDrag: vi.fn(), wireScroller: vi.fn() },
+ ...patch,
+ };
+}
+
+const count = (host: HTMLElement, selector: string) => host.querySelectorAll(selector).length;
+
+describe('空馆藏', () => {
+ it('两排头像与标签条各铺一行静止占位,不挂忙态、不接指针也不进读屏', async () => {
+ const host = await mount(<CatalogFilterPage {...props({ empty: true })} />);
+ for (const kind of ['performer', 'studio']) {
+ expect(count(host, `[data-catalog-placeholder="${kind}"]`)).toBe(EMPTY_SLOTS);
+ }
+ expect(count(host, '[data-catalog-placeholder="tag"] > span')).toBe(EMPTY_SLOTS);
+ expect([...host.querySelectorAll('[data-catalog-placeholder]')].every((node) => node.getAttribute('aria-hidden') === 'true'))
+ .toBe(true);
+ // 空馆藏说的是「这里将来会有东西」,不是「正在取」:没有微光。
+ expect(host.querySelector('[data-loading]')).toBeNull();
+ expect(host.querySelector('[data-catalog-tier] [aria-busy="true"]')).toBeNull();
+ });
+
+ it('收起时两排头像照留,浮层那两排不画', async () => {
+ const host = await mount(<CatalogFilterPage {...props({ empty: true, offscreen: true })} />);
+ expect(count(host, '[data-catalog-placeholder="performer"]')).toBe(EMPTY_SLOTS);
+ expect(host.querySelector('[data-catalog-frame]')).toBeNull();
+ });
+});
diff --git a/frontend/test/react/entity-filter.test.tsx b/frontend/test/react/entity-filter.test.tsx
index 283b05744..748fe92eb 100644
--- a/frontend/test/react/entity-filter.test.tsx
+++ b/frontend/test/react/entity-filter.test.tsx
@@ -143,6 +143,8 @@ describe('照片与名册视图', () => {
view: 'photos', video: null, actions: shell,
photo: { back: false, shuffle: true, layout: 'fixed', layouts: [['fixed', '固定比例', 'layout-grid']], setId: 0 },
})} />);
+ // 换一批洗的是这一批的成员,不是把同一批重新取一遍:字形是洗牌,不是转圈的刷新。
+ expect($(host, '[data-entity-batch] use')?.getAttribute('href')).toBe('#i-shuffle');
await click($(host, '[data-entity-batch]')!);
expect($(host, '[data-entity-batch]')?.getAttribute('aria-busy')).toBe('true');
await click($(host, '[data-entity-batch]')!);
diff --git a/frontend/test/shared-list-controls.test.ts b/frontend/test/shared-list-controls.test.ts
index 539192109..3acaadeb2 100644
--- a/frontend/test/shared-list-controls.test.ts
+++ b/frontend/test/shared-list-controls.test.ts
@@ -1,6 +1,6 @@
import { afterEach, expect, it, vi } from 'vitest';
// @ts-expect-error 浏览器共享控件使用正式实现。
-import { wireHorizontalScroller, rubberBand, sortControlsHtml, filterChipHtml } from '../../web/js/ui-components.js';
+import { wireHorizontalScroller, rubberBand } from '../../web/js/ui-components.js';
afterEach(async () => {document.body.replaceChildren();await new Promise(resolve=>setTimeout(resolve,0));vi.unstubAllGlobals()});
function button(){const node=document.createElement('button');document.body.append(node);return node}
@@ -80,11 +80,3 @@ it('横排推过头按橡皮筋收敛,顶在边上再推也弹,一次滚轮
expect(animate).toHaveBeenCalledTimes(3);
clock.mockRestore();
});
-
-it('排序空选项可用,标签内容与属性均转义', () => {
- expect(sortControlsHtml()).toContain('aria-label="换一批"');
- const node=document.createElement('div');node.innerHTML=filterChipHtml('<script>',{attr:'data-tag',value:'"<',selected:true,count:0});
- expect(node.querySelector('script')).toBeNull();expect(node.querySelector('button')?.dataset.tag).toBe('"<');
- // 计数前不写空格:`.pill` 是 flex 容器,纯空白文本节点不参与布局,间隔归 `.pill .n` 的外边距。
- expect(node.textContent).toBe('<script>0');
-});
diff --git a/frontend/test/stubs/legacy-ui.ts b/frontend/test/stubs/legacy-ui.ts
index e37516b66..16fd5da4a 100644
--- a/frontend/test/stubs/legacy-ui.ts
+++ b/frontend/test/stubs/legacy-ui.ts
@@ -12,8 +12,8 @@ export const emptyStateHtml = (
+ `<div class="es-icon" data-icon="${iconName}"></div>`
+ `<div class="es-copy"><h3>${title}</h3><p>${description}</p></div>${options.actions || ''}</div>`;
-// @ts-expect-error 索引骨架复用正式模板,折叠开合、覆盖式滚动条、徽标弹跳、滚动判据与补充信息卡用正式实现。
-export {attachOverlayScrollbar, iconSwapHtml, indexSkeletonHtml, popBadges, revealTexts, scrollMovesAnchor, setCollapseOpen, setIconSwap, wireContextCard} from '../../../web/js/ui-components.js';
+// @ts-expect-error 索引骨架复用正式模板,折叠开合、覆盖式滚动条、徽标与读数弹跳、滚动判据与补充信息卡用正式实现。
+export {attachOverlayScrollbar, iconSwapHtml, indexSkeletonHtml, popBadges, popCount, revealTexts, scrollMovesAnchor, setCollapseOpen, setIconSwap, wireContextCard} from '../../../web/js/ui-components.js';
/* 测试环境没有布局,骨架补齐量不出东西,这里什么都不做。 */
export const fitSkeleton = (_root: Element | null): void => {};
export const loadingDotsHtml = (label: string): string => `<span>${label}</span>`;
diff --git a/tests/test_follow_web.py b/tests/test_follow_web.py
index bc9da8166..1c6a76ee8 100644
--- a/tests/test_follow_web.py
+++ b/tests/test_follow_web.py
@@ -3193,7 +3193,6 @@ class FollowWebSourceTests(unittest.TestCase):
def test_follow_horizontal_rails_are_wired_after_each_render(self):
# 两排与筛选条的拖动横滚归 `follow-feed` 岛(`FilterGlassRows`);骨架那两排同形。
self.assertPageContains(".followauthors{padding:3px 0 10px")
- self.assertPageContains(".tagscroll::-webkit-scrollbar{display:none}")
self.assertPageLacks(".followfilters{position:relative")
def test_the_watch_page_does_not_carry_source_management(self):
diff --git a/tests/test_source_assertion_ratchet.py b/tests/test_source_assertion_ratchet.py
index b29aebe80..6b0f7a2b6 100644
--- a/tests/test_source_assertion_ratchet.py
+++ b/tests/test_source_assertion_ratchet.py
@@ -39,7 +39,7 @@ BASELINE: dict[str, int] = {
"test_face_detect.py": 3,
"test_fastapi_api.py": 4,
"test_follow_assets.py": 2,
- "test_follow_web.py": 155,
+ "test_follow_web.py": 154,
"test_frontend_build.py": 80,
"test_job_status.py": 3,
"test_metadata_library.py": 7,
@@ -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": 2946,
+ "test_web_ui.py": 2861,
"test_windows_update.py": 3,
}
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index 2f1c26015..d7b15bcd2 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -760,7 +760,7 @@ class WebUiSourceTests(unittest.TestCase):
"详情不碰表面的条")
self.assertPageContains("const rendered=signature+'\\n'+JSON.stringify([facetData,tops]);")
self.assertPageContains("if(rendered===barsRendered)return;")
- self.assertPageContains("if(!tiers.innerHTML||!views.innerHTML)barsRendered='';")
+ self.assertPageContains(" if(catalogFilterProps?.tiers)return;\n barsRendered='';")
def test_the_page_recedes_so_chrome_and_boxes_can_float_on_it(self):
"""页面底是退到后面那张面,顶栏、窄栏和页面上的盒子填浮在它上面那张。
@@ -1636,7 +1636,6 @@ class WebUiSourceTests(unittest.TestCase):
def test_studio_metadata_is_not_compiled_as_inline_javascript(self):
self.assertPageLacks('onerror="this.parentNode.innerHTML=')
self.assertPageLacks('onload="if(this.naturalWidth')
- self.assertPageContains("img.addEventListener('error',fallback")
def test_brand_icon_declares_the_multi_size_ico_and_draws_the_square_png(self):
"""标签页角标和页面里的品牌标记同出一张原图,取的却是两份资源。
@@ -2108,7 +2107,7 @@ class WebUiSourceTests(unittest.TestCase):
def test_the_waiting_filter_frame_is_one_slab_not_two(self):
"""等待态的筛选条和作品抬头共用一块浮层,和内容回来之后是同一个形状。
- 这两条各自带着玻璃材质和 22px 圆角,`mountFilterFrame` 在运行时把它们收进外框;
+ 这两条各自带着玻璃材质和 22px 圆角,岛里由 `FilterGlassRows` 收进同一块外框;
骨架是一段字符串,进不了那条路径,外框和两个槽位的标记必须写在 HTML 里,
否则等的那几秒钟里它们是上下两块独立浮层,中间一道缝。
"""
@@ -2609,11 +2608,9 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("if(sortDefaultsMigrated)saveSettings()")
self.assertPageContains("const cleanSort=(value,fallback=appSettings.defaultSort)=>")
# 手动换一批仍使用稳定种子,避免分页重复或漏项。
- self.assertPageContains("sortControlsHtml({shuffleId:'batchAction'")
self.assertPageContains("state.sort='seed';state.dir='';state.seed=rollSeed()")
- # 刷新属于列表,不再占顶栏;JAV 与首页的版式开关共用同一计数/筛选行。
+ # 刷新属于列表,不再占顶栏。
self.assertPageLacks('id="refresh"')
- self.assertPageContains("extra:javActive()?javLayoutButtons():homeLayoutActive()?homeLayoutButtons():''")
def test_sort_splits_into_a_column_and_a_direction_on_the_selected_chip(self):
"""排序拆成「列 + 方向」:箭头画在选中的那一枚里,再点一次翻方向。
@@ -2637,7 +2634,7 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("if(key!==current)return{sort:key,dir:defaultSortDir(key,words)};")
self.assertPageContains("if(!words[key])return null;")
self.assertPageContains("return{sort:key,dir:dir==='asc'?'desc':'asc'};")
- self.assertPageContains("const next=nextSortState(b.dataset.sort,state.sort,state.dir);")
+ self.assertPageContains("const next=nextSortState(key,state.sort,state.dir);")
self.assertPageContains("const filters=live(),next=nextSortState(key,filters.sort||'new',filters.dir);")
def test_sort_direction_arrow_is_decorative_and_the_name_announces_the_next_state(self):
@@ -2648,9 +2645,7 @@ class WebUiSourceTests(unittest.TestCase):
`aria-hidden`,所以箭头这一侧已经成立;名称必须取翻转后的方向词,
照抄当前方向会让读屏用户以为点下去还是这个顺序。
"""
- self.assertPageContains(
- "next?` aria-label=\"按${label}${next.dir?sortDirWord(next.sort,next.dir,words):''}排序\"`:''")
- self.assertPageContains("icon(dir==='asc'?'arrow-up':'arrow-down','sortdir')")
+ self.assertPageContains("ariaLabel:next?`按${label}${next.dir?sortDirWord(next.sort,next.dir):''}排序`:''")
# 关注管理页的那一枚归 React:同一条规矩,箭头只是图标,名称取反方向的词。
follow = Path(__file__).resolve().parents[1] / "frontend/src/react/follow-manage"
self.assertIn("`按${SORT_LABELS[sort]}${SORT_DIR_WORDS[sort][dir === 'asc' ? 0 : 1]}排序`",
@@ -2660,9 +2655,6 @@ class WebUiSourceTests(unittest.TestCase):
# 箭头必须真在 sprite 里,否则选中项渲染出一个空 use,方向就完全看不见。
self.assertPageContains('<symbol id="i-arrow-down" viewBox="0 0 24 24">')
self.assertPageContains('<symbol id="i-arrow-up" viewBox="0 0 24 24">')
- # 自带 class 而不是选 `button>svg`:同一排里的批量键是方形图标键,
- # 那样写会给它的图标也加上左边距,把它顶偏。
- self.assertPageContains(".sortdir{width:14px;height:14px;flex:none;margin-left:5px;")
def test_sort_direction_travels_in_the_url_and_the_stored_default(self):
"""方向进地址栏与设置:等于该列默认值时不写,旧默认值迁移到当前键。"""
@@ -2695,8 +2687,6 @@ class WebUiSourceTests(unittest.TestCase):
"background:transparent;color:var(--muted);padding:0 14px;cursor:pointer;font-size:var(--fs-sm);"),
("复核页标签 .reviewtabs button",
"border-radius:var(--control-radius);background:transparent;color:var(--muted);"),
- ("JAV 工具条 .javbar button",
- "background:transparent;color:var(--muted);cursor:pointer;padding:0}"),
("抽屉导航 .dnav button",
"text-align:left;font-size:var(--fs-lg);color:var(--muted)}"),
):
@@ -2710,19 +2700,8 @@ class WebUiSourceTests(unittest.TestCase):
没点上;`.count:empty` 还会把整行折叠,网格跟着往上跳一截。垃圾文件那一屏的
计数行是另一条控件,骨架是 `junk-queue` island 等数据时那一版的静态副本。
"""
- self.assertPageContains("const countSortsHtml=()=>!state?'':")
- # 加载态与最终态取同一份筛选条,两边不可能画得不一样。
- self.assertPageContains(
- "count.innerHTML=state&&state.state==='trash'?''\n"
- " :junk?junkCountSkeletonHtml(junkRoute(location.search))\n"
- " :`<span class=\"mono\"><span class=\"countskeleton\"></span></span>`+countSortsHtml();\n"
- " if(!junk)wireCountRow();")
- self.assertPageContains(" +(trash?'':countSortsHtml());")
- self.assertPageLacks("count.textContent=''",
- "加载态不能清空整行,筛选条要留在原位")
- # 数据到位后摘掉忙碌标记,屏幕阅读器不再把这一行当成还在读取。
- self.assertPageContains(
- "$('#count').removeAttribute('aria-busy');$('#count').removeAttribute('aria-label');")
+ # 加载态与最终态取同一份下排:取数前推的就是最终的排序与版式,只把读数换成微光。
+ self.assertPageContains(" if(state)paintCatalogFilter({count:null,...catalogHeadProps()});")
def test_the_count_placeholder_and_the_redrawn_refresh_key_keep_the_row_height(self):
"""计数骨架宽高定死,等数据时只有换批键在画,行高不变。
@@ -2845,28 +2824,15 @@ class WebUiSourceTests(unittest.TestCase):
def test_the_top_bars_get_a_first_paint_skeleton_shaped_like_the_real_thing(self):
"""顶部三层与标签条的首屏骨架照真实几何画,形状按 Geist 的判据选。
- 首屏这两处还没有内容:标签条有固定高度不塌,头像那一排只有 18px 内边距,
- 内容到位时要长到一百多,会把整页往下推一截。骨架直接套 .av/.ring/.nm 与
- .brandpill、.pill 本身,宽高就是最终内容的宽高,不另算一套;头像因此是圆的
- (Geist 把 pill 变体指给头像),胶囊是圆角。
+ 首屏这两处还没有内容:标签条有固定高度不塌,头像那一排不撑开的话,内容到位时
+ 要长到一百多,会把整页往下推一截。占位格与真格同在 `catalog-filter.css` 里定几何,
+ 宽高就是最终内容的宽高,不另算一套;头像因此是圆的(Geist 把 pill 变体指给头像),
+ 胶囊是圆角。几何本身由 `design.test.ts` 读计算样式。
"""
self.assertPageContains("function renderBarsLoading(filterState){")
self.assertPageContains(" renderBarsLoading(filterState);")
- self.assertPageContains('<span class="av avskeleton"><span class="ring"></span>')
- self.assertPageContains(
- '`<span class="brandpill brandskeleton" style="width:${width}px">'
- '<span class="mk"></span></span>`')
- self.assertPageContains('`<span class="pill tagskeleton" style="width:${width}px"></span>`')
- self.assertPageContains(".avskeleton .ring,.avskeleton .nm{background:var(--hover)}")
# 只在还空着时画:导航到已经有内容的页面不是从无到有,不该铺骨架。
- self.assertPageContains(" if(!tiers.innerHTML){")
- self.assertPageContains(" if(!views.innerHTML){")
- self.assertPageContains(" $('#tiers').removeAttribute('aria-busy');")
- self.assertPageContains(" $('#tagbar').removeAttribute('aria-busy');")
- # 四枚视图胶囊由 state 决定,加载期间就画成最终样子并接上事件,和排序条同规矩。
- self.assertPageContains("const viewPillsHtml=filterState=>VIEW_PILLS.map(v=>")
- self.assertPageContains(" wireViewPills();")
- # 宽度是定值,随机会让同一次冷启动在两台机器上长得不一样,也没法测。
+ self.assertPageContains(" if(catalogFilterProps?.tiers)return;")
def test_the_metric_strip_compresses_before_it_starts_scrolling(self):
"""指标带在窄屏先压宽度,横向滚动留给手机和真放不下的时候。
@@ -2904,10 +2870,8 @@ class WebUiSourceTests(unittest.TestCase):
# 横排的推荐行不是网格,按整行补会把它裁成一张。
self.assertPageContains(" if(!first||style.display!=='grid')continue;")
# 每个铺骨架的表面都要接上,否则那一屏又回到写死的六张。
- for call in ("fitSkeleton($('#grid'));", "fitSkeleton($('#index'));",
- "fitSkeleton(stats);", "fitSkeleton(tiers);"):
+ for call in ("fitSkeleton($('#grid'));", "fitSkeleton($('#index'));", "fitSkeleton(stats);"):
self.assertPageContains(" " + call)
- self.assertPageContains(" fillSkeletonTier(tags,'pill');")
# 一列 fieldset 的两张骨架照自己的轮廓排,补整行会把它们撑成海报网格。
self.assertPageContains("'/data-cleanup':()=>cleanupSkeletonHtml()")
self.assertPageContains("{cards:true,count:3,fill:false,className:'followmanage-skeleton'})}</div>`,")
@@ -2934,7 +2898,7 @@ class WebUiSourceTests(unittest.TestCase):
"""关注页跟首页是同一种海报卡,几何共用一块;它自己多一条作者行和一块两排的浮层。
作者行和浮层的形状取 `.tier`/`.tagbar`/`.count` 本身,跟首页顶栏是同一枚,不另画
- 一套;外框 `mountFilterFrame` 是运行时才建的,骨架得自己写全,否则等的那几秒钟
+ 一套;外框在岛挂上之前没人合并,骨架得自己写全,否则等的那几秒钟
上下两排是两块各带圆角的浮层。真正的差别只有归属行:`follow-feed` 岛的卡片署名行
至少 21px,比首页那条高 3.6px,一页十来行叠起来就是一屏的错位,骨架那一格跟着它。
"""
@@ -2955,14 +2919,13 @@ class WebUiSourceTests(unittest.TestCase):
收起动作只有一处定义,中央清理函数也走它——手抄一份正是筛选条漏在关注页
标题上方那个 bug 的来源。
"""
+ self.assertPageContains("function hideDiscoveryBars(){$('#catalogFilter').style.display='none';syncCatalogFilterScreen()}")
self.assertPageContains(
- "const hideDiscoveryBars=()=>{$('#tiers').style.display='none';"
- "$('#tagbar').style.display='none'};")
- self.assertPageContains(
- " loadRequestSeq++;$('#combo').innerHTML='';\n"
+ " loadRequestSeq++;hideCatalogCombo();\n"
" hideDiscoveryBars();")
- self.assertEqual(self.page.count("hideDiscoveryBars();"), 5,
- "管理页、索引列表、实体资料页、详情页和中央清理函数各调一次,收起动作本身只写一处")
+ self.assertEqual(self.page.count("hideDiscoveryBars();"), 6,
+ "管理页、索引列表、实体资料页、详情页、目录里的管理条和中央清理函数各调一次,"
+ "收起动作本身只写一处")
def test_a_narrow_state_falls_back_to_the_whole_library_for_the_top_tiers(self):
"""状态页收窄到聚合为空时,顶部三层退回全库口径,不整块消失。
@@ -3001,11 +2964,11 @@ class WebUiSourceTests(unittest.TestCase):
/api/facets 冷启动实测 547ms,排在这一页自己的数据前面。要不要跑问屏幕:
判断只写在 renderInitialSurfaceLoading() 一处,两边各抄一张路径表迟早对不上。
"""
- self.assertPageContains("const wantsDiscoveryBars=()=>$('#tiers').style.display!=='none';")
+ self.assertPageContains("const wantsDiscoveryBars=()=>$('#catalogFilter').style.display!=='none';")
self.assertPageContains(" .then(()=>wantsDiscoveryBars()?buildBars():null)")
self.assertPageLacks(" .then(buildBars)")
# 回首页时横条要重新有内容:showHomeSurfaces 放开 display,buildBars 在那条路径上补画。
- self.assertPageContains("$('#tiers').style.display='';$('#tagbar').style.display='';")
+ self.assertPageContains("$('#catalogFilter').style.display='';")
self.assertPageContains("buildManageBar();paintListTitle();")
def test_the_dashboard_skeleton_reserves_the_metric_strip_it_stands_in_for(self):
@@ -3571,11 +3534,6 @@ class WebUiSourceTests(unittest.TestCase):
self.assertIn(".gridstack .card .pic{border-radius:var(--surface-radius);overflow:hidden}", board)
self.assertIn(".card:hover .pic::after,.card.selected .pic::after{box-sizing:border-box;border-radius:inherit}", board)
self.assertIn(".board-filter-frame.board-filter-frame{border-radius:22px;isolation:isolate;color:var(--glass-text);overflow:visible}", board)
- self.assertPageContains("const host=pill.closest(within);if(!host)return null;")
- self.assertPageContains("x-=n.scrollLeft;y-=n.scrollTop;")
- self.assertPageContains("if(rect.right<=viewport.left||rect.left>=viewport.right)return null;")
- self.assertPageContains("if(scroller)scroller.onscroll=()=>syncViewGlide(false,null,kind);")
- self.assertPageContains("if(!box||!box.w){if(glide)glide.pane.hidden=true;return}")
def test_player_tooltips_keep_theme_independent_youtube_style(self):
board_css = (Path(__file__).resolve().parents[1] / "web" / "board.css").read_text(encoding="utf-8")
@@ -4009,7 +3967,7 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("tag:cleanTagFilter(params.get('tag'))")
self.assertPageContains("state={...state,creator:'',studio:'',tag:'',tag_match:'all'")
self.assertPageContains("function enterManagementSurface()")
- self.assertPageContains("loadRequestSeq++;$('#combo').innerHTML=''")
+ self.assertPageContains("loadRequestSeq++;hideCatalogCombo();")
def test_sidebar_add_row_wears_the_shared_input_and_primary_button(self):
"""这一行有三条判据:颜色只走 token、高度只引用 --control-h、主次动作分得开。
@@ -4156,15 +4114,6 @@ class WebUiSourceTests(unittest.TestCase):
# 缓存键跟着 state 变,否则切到已标记会沿用首页那份。
scope = self.page.split("const scope=facetParams.toString();", 1)[0]
self.assertIn("facetParams.set('state'", scope)
- # 收窄到空时不能留下空带:实测已标记页上两排都没人,#tiers 仍占 28px。
- self.assertPageContains("$('#tiers').hidden=!(emptyLayout||perfRow||studioRow);")
- self.assertPageContains(".tiers[hidden]{display:none}")
-
- def test_empty_home_places_tags_after_view_filters_and_clips_identity_tracks(self):
- self.assertPageContains("$('#tiers').innerHTML=emptyLayout?emptyLayout.tiers:tier(perfRow)+tier(studioRow);")
- self.assertPageContains("$('#tagScroll').innerHTML=(emptyLayout?.tags||'')")
- self.assertPageContains(".tier.catalog-placeholder{overflow:hidden}")
- self.assertPageContains("flex:1 0 240px;min-width:240px;overflow:hidden")
def test_the_view_pills_hold_still_while_only_the_tags_scroll(self):
"""筛选条左边钉住不动,横滚只发生在右半截;窄到手机宽度钉住的只剩最左那一档。
@@ -4179,21 +4128,13 @@ class WebUiSourceTests(unittest.TestCase):
关注那一条不在其列:它一整排都是可加可不加的筛选,没有这种分工,钉住开头几枚
只会占掉本来就不宽的一行。
"""
- self.assertPageContains('<div class="tagbar" id="tagbar"><div class="filterscroll">'
- '<div class="viewpills" id="viewPills"></div>'
- '<div class="tagscroll" id="tagScroll"></div></div></div>')
self.assertPageContains(" display:flex;gap:7px;overflow:hidden;align-items:center}")
# 这一层定位不为自己,是给那块滑动玻璃当落脚点:窄屏时它就是横滚的那一层。
self.assertPageContains(".filterscroll{display:flex;gap:7px;flex:1;min-width:0;"
"align-items:center;position:relative}")
- self.assertPageContains(".viewpills{display:flex;gap:7px;flex:none;align-items:center}")
- self.assertPageContains(".tagscroll{display:flex;gap:7px;flex:1;min-width:0;align-items:center;\n"
- " overflow-x:auto;overflow-y:hidden;scrollbar-width:none;"
- "overscroll-behavior-inline:contain}")
self.assertPageContains("@media(max-width:760px){\n"
" .filterscroll{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;"
"overscroll-behavior-inline:contain}")
- self.assertPageContains(" .filterscroll>.tagscroll{flex:0 0 auto;min-width:auto;overflow:visible}")
# 关注页那条归 `follow-feed` 岛,分工同资料页的 `entity-filter`(`frontend/e2e/follow-feed.test.ts`)。
self.assertPageLacks(".followfilters{position:relative")
# 玻璃层只收间距,不改谁滚谁不滚:整条一起滚的话左端那一档也跟着走,而它正是
@@ -4403,9 +4344,9 @@ class WebUiSourceTests(unittest.TestCase):
`showHomeSurfaces` 会先把横条恢复出来,所以隐藏必须排在它之后,否则被立刻覆盖。
"""
- self.assertPageContains("if(current){$('#tiers').style.display='none';$('#tagbar').style.display='none'}")
- home = self.page.split("function showHomeSurfaces(){", 1)[1].split("}", 1)[0]
- self.assertLess(home.index("$('#tiers').style.display=''"), home.index("buildManageBar()"),
+ self.assertPageContains(" if(current)hideDiscoveryBars();")
+ home = self.page.split("function showHomeSurfaces(){", 1)[1].split("\n}", 1)[0]
+ self.assertLess(home.index("$('#catalogFilter').style.display=''"), home.index("buildManageBar()"),
"buildManageBar 必须排在恢复首页横条之后,否则隐藏会被覆盖")
def test_ads_queue_count_does_not_stick_and_disposal_reports_failures(self):
@@ -4445,7 +4386,6 @@ class WebUiSourceTests(unittest.TestCase):
"""
loading = self.app_js.split("function renderCatalogLoading(", 1)[1].split("\n}", 1)[0]
self.assertIn("junkCountSkeletonHtml(junkRoute(location.search))", loading)
- self.assertIn("if(!junk)wireCountRow();", loading)
# 这一行自己的版式类平时由 loadJunk 写,深链冷启动时骨架排在它前面。
self.assertIn("count.classList.toggle('junkcount',junk)", loading)
self.assertIn("count.classList.toggle('manage-static',junk)", loading)
@@ -4553,7 +4493,6 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains('class="pagelede mono" id="manageLede" hidden')
self.assertPageContains(".pagelede{margin:0 0 16px;color:var(--muted);font-size:var(--fs-sm);line-height:1.5}")
self.assertPageContains("if(trash)paintManageLede(`${total.toLocaleString()} 个符合 · 显示 ${n}`,")
- self.assertPageContains(".count.count-actions-only:empty{display:none}")
self.assertPageLacks('class="dupsum mono"')
def test_empty_trash_shares_the_lede_row_instead_of_taking_one_of_its_own(self):
@@ -4571,9 +4510,6 @@ class WebUiSourceTests(unittest.TestCase):
lede = self.app_js.split("if(trash)paintManageLede(", 1)[1].split("$('#count')", 1)[0]
self.assertIn('class="batchaction danger" id="emptyTrash"', lede,
"清空回收站要挂在说明行上,不是自己占一行")
- # 计数栏在回收站页只剩空壳,靠 :empty 收掉;按钮不能同时还留在 .sorts 里。
- sorts = self.app_js.split('const countSortsHtml=', 1)[1].split('});', 1)[0]
- self.assertNotIn('id="emptyTrash"', sorts)
self.assertPageContains(
".pagelede-actions{display:flex;align-items:center;justify-content:space-between;gap:16px}")
# 危险档只有 01-base 那一份,页面各自的 .danger 覆盖已经收掉了。
@@ -5225,7 +5161,7 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("['tags','标签','tags']")
def test_entity_profile_hides_home_facets_and_renders_context(self):
- self.assertPageContains("body.entity-open #tiers,body.entity-open #tagbar,")
+ self.assertPageContains("body.entity-open [data-catalog-filter],body.index-open [data-catalog-filter]{display:none}")
self.assertPageContains("logo:company&&d.has_logo?d.canonical_name:'',")
profile = self.page[self.page.index("async function openEntity("):]
# 资料卡(连同卡底的同台艺人)是 entity-hero island,筛选浮层是 entity-filter
@@ -5259,7 +5195,7 @@ class WebUiSourceTests(unittest.TestCase):
def test_every_home_navigation_restores_the_shared_facets(self):
self.assertPageContains("function showHomeSurfaces()")
- self.assertPageContains("$('#tiers').style.display='';$('#tagbar').style.display=''")
+ self.assertPageContains(" $('#catalogFilter').style.display='';")
self.assertPageContains("function closeStats(push=true){if(push)route('/');showHomeSurfaces();loadCatalog()}")
self.assertPageContains("async function loadCatalog()")
self.assertPageContains("showHomeSurfaces();disposeStage(false)")
@@ -5281,17 +5217,15 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("if(filters.sort==='seed')p.set('seed',state.seed)")
self.assertPageContains("const JAV_RELEASE_SORT=['release','发行时间']")
self.assertPageContains("javActive()?[JAV_RELEASE_SORT,...ordered]:ordered")
- self.assertPageContains("items:sortOptions()")
- self.assertPageContains("renderItem:([k,l])=>sortButtonHtml")
+ self.assertPageContains("function sortKeys(current,dir){\n return sortOptions().map(")
self.assertPageContains(
"if(state.jav!=='1'&&state.sort==='release'){state.sort='seed';state.dir=''}")
self.assertPageContains(
"if(next)void updateEntityCollection(kind,name,{...filters,...next},true)")
self.assertPageContains("key==='sort'&&filters[key]==='new'")
self.assertPageContains("height:var(--filterH);margin:0 -16px;padding:9px 16px")
- self.assertPageContains("mountFilterFrame(top,bottom,")
self.assertPageContains(".tagbar.is-stuck,.count.is-stuck{")
- self.assertPageContains("['.board-filter-frame','#tagbar','#count']")
+ self.assertPageContains("['.board-filter-frame','#count']")
self.assertPageContains("scheduleStickySurfaces();")
# 照片墙没有视频排序语义,切换后直接渲染照片,不复用作品头。
self.assertPageContains("if(media==='photos'){renderPhotoWall(kind,name,filters,entityPhotos);return}")
@@ -5439,7 +5373,7 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains(
"logo:company&&d.has_logo?d.canonical_name:'',logoVariant:'large',")
# 小位仍要方形小标:卡片角标和顶栏那排只有二十来像素,取原图只是白下载。
- self.assertPageContains('variant=icon"')
+ self.assertPageContains("&variant=icon`:''")
def test_a_mark_smaller_than_its_frame_is_not_blown_up(self):
"""图比框还小就不拉伸:原尺寸居中,空出来的一圈用同一张图放大模糊补底。
@@ -5850,9 +5784,8 @@ class WebUiSourceTests(unittest.TestCase):
self.assertCode(
" applyFilterStateInPlace(filters);refreshFacetCounts(barsContext);\n"
" updateEntityCollection(barsContext.kind,barsContext.name,filters,true);return")
- # 两处按下态:筛选条与卡片上的标签、侧栏那些芯片;资料页那排由岛照推过去的 props 画。
- self.assertPageContains(
- " b.setAttribute('aria-pressed',String(tagPressed(filters.tag,b.dataset.tag))));")
+ # 首页筛选条与资料页那排由各自的岛照推过去的 props 画,侧栏那些芯片就地改。
+ self.assertPageContains(" else paintCatalogFilter({tags:catalogTags(filters)});")
self.assertPageContains("$('#drawer').querySelectorAll('.chip[data-key]')")
# 轨道上那截填充由 oninput 算,改 value 不会自己触发。
self.assertPageContains(" durMin.dispatchEvent(new Event('input'));")
@@ -5977,13 +5910,11 @@ class WebUiSourceTests(unittest.TestCase):
换的是成员,不是位置。
"""
self.assertPageContains("const pickedTags=seededSample(tagPool,TAGS_FIRST,`tags:${state.seed||''}`);")
- self.assertPageContains("+appliedTags.concat(pickedTags).map(tagPillHtml).join('');")
self.assertPageLacks("topTags.slice(0,26)",
"取前 26 会把这一批的成员钉死在数量榜的头部")
# 续在后面的是这一批之外的那些,抽样只决定开头露谁,不重排后面的数量序。
self.assertPageContains("const pickedKeys=new Set(pickedTags.map(row=>row.k));")
- self.assertPageContains(
- "wireRowPaging($('#tagScroll'),tagPool.filter(row=>!pickedKeys.has(row.k)),tagPillHtml,wireTagPills);")
+ self.assertPageContains("tagPool.filter(row=>!pickedKeys.has(row.k)))")
# 同一个种子给同一套成员,所以这一批内翻页和刷新都不会让标签跳动。
self.assertPageContains("const seededSample=(rows,count,seed,key=row=>row.k)=>{")
self.assertPageContains(" if(rows.length<=count)return rows;")
@@ -6007,7 +5938,7 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("const byTagKey=new Map(topTags.map(row=>[row.k,row]));")
self.assertPageContains("const appliedTags=appliedKeys.map(k=>byTagKey.get(k)||{k});")
self.assertPageContains("const tagPool=topTags.filter(row=>!appliedKeys.includes(row.k));")
- self.assertPageContains("+appliedTags.concat(pickedTags).map(tagPillHtml).join('');")
+ self.assertPageContains("catalogTagRows=appliedTags.concat(pickedTags,")
def test_every_filter_row_tells_how_much_is_behind_each_tag(self):
"""标签后面带上这个标签下有多少,首页和资料页同一个口径。
@@ -6018,36 +5949,10 @@ class WebUiSourceTests(unittest.TestCase):
生效的标签不一定在这一批抽样里,那时只有键、没有行,不印数字:印 0 会说成
「这个标签下什么都没有」,而它此刻正筛着一屏内容。
"""
- self.assertPageContains("const tagPillHtml=t=>filterChipHtml(tagLabel(t.k),{attr:'data-tag',value:t.k,\n"
- " selected:tagPressed(filterState.tag,t.k),"
- "count:t.n==null?undefined:t.n.toLocaleString()});")
- # 资料页那排的数由 entity-filter island 印,壳只把每枚的 n 照推过去。
+ # 两排的数都由岛印(首页 catalog-filter、资料页 entity-filter),壳只把每枚的 n 照推过去。
+ self.assertPageContains("({k:row.k,label:tagLabel(row.k),n:row.n??null})")
self.assertPageContains("({k:x.k,label:tagLabel(x.k),n:x.n,selected:tagPressed(filters.tag,x.k)})")
- def test_the_count_behind_a_tag_reads_as_a_footnote_not_part_of_the_name(self):
- """计数与标签之间要有间隔,字号和颜色也各降一档。
-
- 同字号同色贴在一起时「巨乳63」读成一个词,那个数看着像这条标签自己就叫这个
- 名字。间隔只能由 CSS 给:`.pill` 是 flex 容器,标签与计数之间写一个空格文本
- 节点不参与布局,量出来仍然是零——所以模板里也不留那个空格,免得两处各存一份
- 真相而其中一份从来没生效过。
-
- 玻璃那一层要自己降档。flat 层降的是 `--muted`,而在 Board 里 `--muted` 和
- `--ink-2` 都映射到 `--color-text-secondary`,是同一个值;照搬过去,计数和标签
- 仍然一样亮。
- """
- board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
- self.assertPageContains('aria-pressed="${selected}">${esc(label)}${count==null?\'\':'
- '`<span class="${esc(countClass)}" data-count-badge="${esc(value)}">'
- '${esc(count)}</span>`}')
- self.assertPageContains(".pill .n{margin-left:7px;color:var(--muted);font-size:var(--fs-xs);"
- "font-variant-numeric:tabular-nums}")
- self.assertPageContains('.pill[aria-pressed="true"] .n,.pill:hover .n{color:var(--ink-2)}')
- self.assertIn(".board-filter-frame.board-filter-frame .pill .n{margin-left:6px;font-size:11px;\n"
- " color:color-mix(in srgb,var(--glass-text) 55%,transparent)}", board)
- self.assertPageLacks(".followfilters .pill .n{margin-left:5px;color:inherit}",
- "跟着标签同色同字号就是没有区分,而且只管关注页一处")
-
def test_the_refresh_key_keeps_redrawing_until_the_bars_land_too(self):
"""忙态动效归「换一批」这一层,不挂在计数行上。
@@ -6056,10 +5961,9 @@ class WebUiSourceTests(unittest.TestCase):
与标签条不铺骨架:它们此刻有内容在屏幕上,撕成灰条再填回去比直接换掉更
晃眼,骨架留给从无到有的首屏。
"""
- self.assertPageContains(" document.body.classList.add('refreshing');")
+ self.assertPageContains(" paintCatalogFilter({refreshing:true});")
self.assertPageContains(" try{await Promise.all([loadCatalog(),buildBars()])}")
- self.assertPageContains(" finally{document.body.classList.remove('refreshing')}")
- self.assertPageContains("body.refreshing #batchAction svg{")
+ self.assertPageContains(" finally{paintCatalogFilter({refreshing:false})}")
# 标签条和顶部三层照旧留着旧内容等新内容,不进骨架。
self.assertPageLacks("tagbarSkeleton", "有内容在屏幕上时不铺骨架")
@@ -6163,10 +6067,8 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("flex:0 0 auto;white-space:nowrap")
self.assertPageContains(".count .sorts button{min-height:36px}")
# 这些行都没有滚动条(scrollbar-width:none),不登记拖动就只剩看得见够不着的半个按钮。
- # 筛选条里滚的那一层随宽度换:宽屏是右半截的标签,窄屏是连视图一起的 `.filterscroll`。
- # 两层都登记,少一层就会在某一个宽度上滚不动;登记在不滚的那层上是空转。
- self.assertPageContains("['#tagScroll','#tagbar .filterscroll','#nrow','#count']"
- ".forEach(s=>wireDrag($(s)))")
+ # 首页筛选条那几排由 catalog-filter 岛经壳交来的 `wireDrag` 登记。
+ self.assertPageContains("['#nrow','#count'].forEach(s=>wireDrag($(s)))")
self.assertPageContains("document.querySelectorAll('.tier,.srow').forEach(wireDrag)")
# 「接着看」每开一次详情就重建,启动时的登记落在旧节点上;作品详情岛画出那一排时经壳
# 交来的 `wireDrag` 当场再登记一次。
@@ -6390,7 +6292,6 @@ class WebUiSourceTests(unittest.TestCase):
r"disabled\s*=\s*true;[^\n]{0,100}(?:setAttribute\('aria-busy'|setActionBusy)",
"请求中的按钮必须保持可聚焦,不能再把 native disabled 和 busy 混用",
)
- self.assertPageContains("setActionBusy(batch)")
# React 档里同一件事由 `busyProps()` 发:同样是 aria-busy 加 aria-disabled,
# 按钮留在 tab 序列上。
self.assertIn("{...busyProps(rowHandlers.busy)}",
@@ -6432,7 +6333,7 @@ class WebUiSourceTests(unittest.TestCase):
`src`:厂牌标识的地址必须带上 studio,也必须带上 variant(哪个位置要哪份图
是另一条契约,见 `test_studio_icon_variants`)。
"""
- marks = re.findall(r'src="(/logo[^"]*)"', self.page)
+ marks = re.findall(r'(?:src="|logo:[^`\n]*`)(/logo[^"`]*)', self.page)
self.assertTrue(marks, "页面里应当仍有厂牌标识取图位")
for url in marks:
with self.subTest(url=url):
@@ -6540,8 +6441,8 @@ class WebUiSourceTests(unittest.TestCase):
def test_state_routes_tag_multiselect_and_header_capabilities_are_explicit(self):
self.assertPageContains("const STATE_ROUTES={fresh:'/unseen',later:'/watch-later',flagged:'/flagged',ads:'/junk-files'}")
- self.assertPageContains('href="${v.k?STATE_ROUTES[v.k]:\'/\'}" data-state="${v.k}"')
- self.assertPageContains("route(homePath());buildBars();loadCatalog()")
+ self.assertPageContains("href:v.k?STATE_ROUTES[v.k]:'/'")
+ self.assertPageContains("route(homePath());buildBars();loadCatalog();")
self.assertPageContains("const canSelect=catalog||entity||path==='/tags'")
self.assertPageContains("$('#selectMode').hidden=!canSelect;$('#density').hidden=!canDensity")
self.assertPageLacks("const canRefresh=")
@@ -6592,9 +6493,8 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("function paintNav(){")
self.assertPageContains(".edge button[data-nav],#drawer .dnav button[data-nav]")
# 组合标签:pill 按按下态逐个命中;combo 芯片显示显示名、操作用原始 key。
- self.assertPageContains("tagPressed(filterState.tag,t.k)")
+ self.assertPageContains("selected:tagPressed(filters.tag,row.k)")
self.assertPageContains("tagList(filters.tag).forEach(t=>items.push({kind:'untag',key:t,label:tagLabel(t)}));")
- self.assertPageContains("${esc(item.label)} <b data-untag=\"${esc(item.key)}\">✕</b>")
# fwarn 提供 dismiss(会话内记忆),关闭钮样式与 toast 关闭钮同量纲。
self.assertPageLacks("data-fwarn-dismiss")
self.assertPageContains(".fwarn{grid-template-columns:16px minmax(0,1fr);")
@@ -7092,8 +6992,6 @@ class WebUiSourceTests(unittest.TestCase):
def test_index_pages_drop_the_home_filter_bars_and_back_button(self):
# 艺人/标签索引和资料页一样是「专注看某一类实体」的表面。
- self.assertCode(
- "body.entity-open #tiers,body.entity-open #tagbar,\nbody.index-open #tiers,body.index-open #tagbar{display:none}")
self.assertPageLacks('id="iClose"', "顶栏入口本身就是返回路径")
self.assertPageLacks("$('#iClose').onclick")
@@ -7166,10 +7064,6 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("if(followSort===FOLLOW_RANDOM_SORT)params.set('seed',String(followSeed));")
self.assertPageContains("followSort=sort===FOLLOW_RANDOM_SORT||FOLLOW_FEED_SORTS.some(([key])=>key===sort)?sort:'new';")
self.assertPageContains("+(followSort===FOLLOW_RANDOM_SORT?`&seed=${followSeed}`:'')")
- # 槽位只剩 extra 一个:排序键一律排在最末,挨着它说明的那批内容。
- self.assertPageContains("export function sortControlsHtml({items=[],renderItem=String,extra='',"
- "shuffleId='',shuffleClass='entitybatch'}={}){")
- self.assertPageLacks("${items.map(renderItem).join('')}${after}")
# 三档排序,每一档的方向词各说各的那一列。
self.assertCode("const FOLLOW_FEED_SORTS=[['new','更新时间'],['hot','热度'],['dur','时长']];")
self.assertPageContains("dur:['从长到短','从短到长']")
@@ -7178,8 +7072,6 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("+(followDir!=='desc'?`&dir=${followDir}`:'');")
# 「仅显示图片」的字形是「收起说明」,不跟左边媒体那一档的图片字形撞。
self.assertPageContains('<symbol id="i-captions-off" viewBox="0 0 24 24">')
- self.assertPageContains("function viewGlideGeometry(pill,within='.board-filter-frame'){\n const host=pill.closest(within);if(!host)return null;")
- self.assertPageContains("Object.keys(GLIDE_ROWS).forEach(kind=>syncViewGlide(false,null,kind))},{passive:true});")
board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
self.assertNotIn("var(--board-blue);color:#fff;font-weight:600}", board)
self.assertNotIn(".followrecheck", board)
@@ -7269,9 +7161,8 @@ class WebUiSourceTests(unittest.TestCase):
self.assertIn("emptyStateHtml('search-x', '当前筛选下没有更新'", feed)
# 转圈只剩「去问来源有没有更新」这一个意思。此前九处动作共用它,读下来全是
# 「刷新」,可它们分别是洗牌、查链接、比差异、读历史和同步删除。
+ # 换一批的洗牌字形由 `frontend/test/react/entity-filter.test.tsx` 钉住(两座筛选岛共用那一枚键)。
for needle in (
- # 换一批洗的是这一批的成员,不是把同一批重新取一遍。
- 'title="换一批" aria-label="换一批">${icon(\'shuffle\')}',
# 同步删除把这个目录在盘上和账本里对齐。
'aria-label="同步删除">${icon(\'folder-sync\')}',
# 保存为播放列表存的是一份列表,在作品详情岛里(item-detail.test.tsx)。沉浸模式入口、
@@ -7412,11 +7303,6 @@ class WebUiSourceTests(unittest.TestCase):
".board-local-nav>.navglide{"
"position:absolute;left:0;top:0;z-index:0;pointer-events:none;", board)
self.assertIn("backdrop-filter:var(--glass-pick);", board)
- self.assertIn("pills.forEach(b=>b.onpointerenter=e=>"
- "{if(e.pointerType!=='touch')syncViewGlide(true,b,kind)});", app)
- # 归位挂在那一排自己身上,不挂整条筛选条:两排共用一条 `pointerleave` 的话,
- # 指针从媒体那组挪到视图那组就算离开,媒体那块会先弹回去再被下一个悬停接住。
- self.assertIn("row.onpointerleave=e=>{if(e.pointerType!=='touch')syncViewGlide(true,null,kind)};", app)
# 位移和形变各占一个独立属性:一条属性上只放得下一段动画,而这两下的时间
# 形状不是同一条曲线。
self.assertPageContains("pane.animate([{translate:axis==='y'?`${box.x}px ${from.y}px`"
@@ -7428,8 +7314,8 @@ class WebUiSourceTests(unittest.TestCase):
self.assertNotIn(".top.top::before", board)
def test_the_view_pane_is_the_only_pane_and_the_follow_row_rides_it_too(self):
- """观看状态那一排的玻璃是一块,首页与关注页共用;关注页左端那一组媒体圆键另有一块
- 圆的。资料页那两排是同一块料,由 entity-filter island 自己挪(`use-view-glide.ts`)。
+ """观看状态那一排的玻璃是一块,首页与关注页同一块料;关注页左端那一组媒体圆键另有一块
+ 圆的。首页、关注页与资料页各由自己的岛挪(`use-view-glide.ts`)。
两排问的不是同一件事,共用一块的话点一下照片,玻璃从「没看过」那儿飞过来,读出来
是两排在抢同一个当前项。圆角跟着按钮走:那几枚是正圆,一块 8px 圆角的方玻璃扣上去,
@@ -7439,12 +7325,8 @@ class WebUiSourceTests(unittest.TestCase):
每重画一次就新建一块,动画从头起跑,看到的只是瞬移。
"""
board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
- # 首页那一排由壳挪;关注页两排归 `follow-feed` 岛,圆的那块是 `data-view-glide="round"`。
- self.assertPageContains("views:{selector:'#viewPills',pressed:'[data-state][aria-pressed=\"true\"]'},")
+ # 首页那一排归 `catalog-filter` 岛;关注页两排归 `follow-feed` 岛,圆的那块是 `data-view-glide="round"`。
self.assertIn('[data-view-glide="round"][data-view-glide]{border-radius:50%}', board)
- self.assertPageContains("const viewGlides=new Map();")
- self.assertPageContains("function syncViewGlide(animate,target,kind='views'){")
- self.assertPageContains("let glide=viewGlides.get(kind);")
# 计数徽标照 tabs.tsx:未选中黑 10% 底半透明,选中换成强调色。
self.assertIn('.board-tab-count{display:inline-block;margin-left:6px;padding:1px 4px;border-radius:4px;', board)
self.assertIn('.board-local-nav button[aria-selected="true"] .board-tab-count{background:color-mix(in srgb,var(--tungsten) 12%,transparent);color:var(--tungsten);opacity:1}', board)
@@ -7512,13 +7394,6 @@ class WebUiSourceTests(unittest.TestCase):
self.assertNotIn("transparent 62%),color-mix(in srgb,var(--ink) 12%,transparent);", board)
# 描边走满一圈,不只压上缘那一道;外影取主题给的那一档。
self.assertIn("box-shadow:inset 0 0 0 1px var(--glass-rim),var(--glass-pick-shadow)}", board)
- # 玻璃由外框承载,几何扣除横滚量,回弹和阴影允许溢出内容边沿。
- self.assertIn("const host=pill.closest(within);if(!host)return null;", app)
- self.assertIn("x-=n.scrollLeft;y-=n.scrollTop;", app)
- self.assertIn("for(let n=pill;n&&n!==host;n=n.offsetParent){x+=n.offsetLeft;y+=n.offsetTop}", app)
- self.assertIn("if(glide.pane.parentElement!==box.host)box.host.prepend(glide.pane);", app)
- # 视口变化时每一排的玻璃都按按钮的新位置重新落位,不只四枚视图那一排。
- self.assertIn("Object.keys(GLIDE_ROWS).forEach(kind=>syncViewGlide(false,null,kind))},{passive:true});", app)
# 冲过落点再弹回:那条曲线是一次弹簧模拟的采样,峰值 1.103、313ms 收住。
self.assertIn("--spring-pane:linear(0,0.1515,", board)
self.assertIn(",1.0477,1.096,1.1029,1.0901,1.0641,", board)
@@ -7635,7 +7510,6 @@ class WebUiSourceTests(unittest.TestCase):
self.assertIn(" syncNavGlide(true);\n}", app)
# 换的是轴,不是另一套动画:竖排缩 Y,走的还是那一块的搬运函数。
self.assertIn("moveGlidePane(navGlide,animate?from:null,box,'y');", app)
- self.assertIn("moveGlidePane(glide.pane,animate?from:null,box,'x');", app)
self.assertPageContains("{scale:axis==='y'?`1 ${grow}`:`${grow} 1`,offset:.3},{scale:'1 1',offset:1}],")
self.assertIn("wireNavigationDrag($('#drawer').querySelector('.dnav'));\n syncNavGlide(false);", app)
@@ -7920,44 +7794,10 @@ class WebUiSourceTests(unittest.TestCase):
手上这份用完再去要下一页:`/api/tops` 一次最多回六十个,而库里六百多位女优,
没有续页那一排就停在第六十位。
"""
- self.assertPageContains("const ROW_FIRST=24,TAGS_FIRST=26,ROW_BATCH=12;")
self.assertPageContains("const params=new URLSearchParams({n:'60',seed:state.seed||''});")
- self.assertPageContains("const perfRow=tops.performers.slice(0,ROW_FIRST).map(avHtml).join('');")
- self.assertCode(
- " while(atEnd()){\n"
- " if(cursor>=rest.length){\n"
- " if(drained)break;\n"
- " fetching=true;"
- )
- self.assertCode(
- " const more=await nextPage().catch(()=>[]);\n"
- " fetching=false;\n"
- " if(!more.length){drained=true;break}\n"
- " rest=rest.concat(more);\n"
- " }\n"
- " row.insertAdjacentHTML('beforeend',rest.slice(cursor,cursor+ROW_BATCH).map(itemHtml).join(''));\n"
- " cursor+=ROW_BATCH;added=true;\n"
- " }"
- )
- # 要页的这段时间里人还在滚:进得来第二遍就会把同一页要两次,续上来的成双。
- self.assertPageContains(" if(fetching)return;")
- self.assertPageContains("if(drained&&cursor>=rest.length)row.removeEventListener('scroll',fill);")
- self.assertPageContains("row.addEventListener('scroll',fill,{passive:true});")
- # 页号各排各记:共用一个的话,先到头的那排会替另一排把页翻过去。
- self.assertCode(
- " const nextTopsPage=kind=>{let page=0;\n"
- " return async()=>(await loadTops(topsQueryParams(context,++page)))[kind]||[]};"
- )
+ # 页号各排各记:共用一个的话,先到头的那排会替另一排把页翻过去。续排本身归岛(`usePaged`)。
+ self.assertPageContains("const rows=(await loadTops(topsQueryParams(pages.context,++pages[kind])))[kind]||[];")
self.assertPageContains("if(page)params.set('page',String(page));")
- self.assertCode(
- " if(perfRow)wireRowPaging(rows[next++],tops.performers.slice(ROW_FIRST),avHtml,\n"
- " wireTierEntities,nextTopsPage('performers'));\n"
- " if(studioRow)wireRowPaging(rows[next++],tops.studios.slice(ROW_FIRST),bpHtml,\n"
- " wireTierEntities,nextTopsPage('studios'));"
- )
- # 续上来的那几个要跟第一屏一样能点开、一样有图片兜底。
- self.assertPageContains("function wireTierEntities(root){")
- self.assertPageContains("root.querySelectorAll('.mk img:not([data-fallback-wired])')")
def test_both_ends_of_a_range_slider_always_report_their_value(self):
"""时长两端的读数常显:这里是唯一报数的地方。
@@ -8408,8 +8248,6 @@ class WebUiSourceTests(unittest.TestCase):
不渐隐的话,浮层圆角那儿最后一个标签被直角硬切掉半个字,也看不出右边还有。
"""
self.assertPageContains("function wireHorizontalScroller(el,")
- self.assertPageContains(
- "if(filterFrame)[boardTagbar,countbar.querySelector('.sorts')].forEach(el=>wireHorizontalScroller(el));")
def test_the_board_layer_rows_that_can_overflow_are_all_registered(self):
"""board.css 与 `frontend/` 画出来的横滚层走名单,不走按 id 点名的那份清单。
@@ -8797,11 +8635,10 @@ class WebUiSourceTests(unittest.TestCase):
for name in ("openStats", "openTaste", "openPlaylists", "openReview", "openFollow"):
self.assertIn("enterManagementSurface()", self._js_function(name),
name + " 没有走中央清理函数,多半又手抄了一份不完整的")
- self.assertPageContains("loadRequestSeq++;$('#combo').innerHTML='';",
+ self.assertPageContains("loadRequestSeq++;hideCatalogCombo();",
"中央清理函数必须同时收掉筛选芯片和在途的目录请求")
- # 手抄正是这个 bug 的来源。除了清理函数自己,只有目录内部的管理条可以直接动
- # 这两个元素——它换的是目录自己的形态,而不是切去另一个页面。
- self.assertEqual(self.page.count("$('#tagbar').style.display='none'"), 2,
+ # 手抄正是这个 bug 的来源:收起筛选条只有 `hideDiscoveryBars` 那一处写法。
+ self.assertEqual(self.page.count("$('#catalogFilter').style.display='none'"), 1,
"又有地方手抄了清理逻辑,请改调 enterManagementSurface()")
def test_the_filter_chips_paint_only_while_the_catalog_is_on_screen(self):
@@ -8819,17 +8656,14 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("const catalogOnScreen=()=>$('#index').hidden&&$('#stats').hidden;",
"整页视图铺开的是这两个容器,它们就是「目录被盖住了」的判据")
combo = self._js_function("renderCombo")
- self.assertIn("if(!catalogOnScreen()){$('#combo').innerHTML='';return}", combo,
+ self.assertIn("paintCatalogFilter({combo:comboItems(state),comboHidden:!catalogOnScreen()});", combo,
"芯片必须先问过屏幕再画,否则每加一个整页视图就复发一次")
# 资料页那条是它自己的,读的是这一页的筛选,不是目录的 `state`;由 entity-filter
# island 画在浮层正上方,照片视图下收起,由 e2e 量。
self.assertIn("pushEntityFilter({combo:comboItems(barsContext.filters)});", combo)
- self.assertLess(combo.index("catalogOnScreen()"), combo.index("$('#combo').innerHTML=\n"),
- "判据要在拼 HTML 之前,不能画完再擦")
# 铺开索引页/资料页与进入管理页是同一件事的两侧,各自的共用函数都要收掉芯片。
self.assertPageContains(
- "$('#stats').hidden=true;$('#index').hidden=false;clearCatalogGrid();"
- "$('#combo').innerHTML='';",
+ "$('#stats').hidden=true;$('#index').hidden=false;clearCatalogGrid();hideCatalogCombo();",
"索引页与资料页的共用铺开函数必须收掉目录的筛选芯片")
for name, loader in (("openIndex", "showIndexSkeleton("), ("openEntity", "showEntityLoading(")):
self.assertIn(loader, self._js_function(name),
@@ -8856,18 +8690,13 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageLacks("state.tag=tg.dataset.tag",
"卡片上的标签绕过语境,在资料页点一下就把人带回目录")
# 顶部标签条、资料页标签、卡片标签、芯片的 ✕ 与「全部清除」:五个入口一个落点。
- self.assertPageContains("wireTagPills($('#tagScroll'));")
- self.assertPageContains("root.querySelectorAll('[data-tag]')"
- ".forEach(b=>b.onclick=()=>{toggleTag(b.dataset.tag)});")
self.assertPageContains("toggleTag:tag=>toggleTag(tag),")
self.assertPageContains("commitContextFilter(filters=>{filters.tag=tagPressed(filters.tag,tag)?'':tag});")
self.assertPageContains("$('#index').dataset.entityKind=kind;$('#index').dataset.entityName=name;")
- self.assertPageContains("root.querySelectorAll('[data-untag]')"
- ".forEach(b=>b.onclick=()=>toggleTag(b.dataset.untag));")
- self.assertCode("if(clear)clear.onclick=()=>commitContextFilter(filters=>{\n"
- " filters.tag='';filters.creator='';filters.studio='';filters.owner=''});")
+ self.assertPageContains("clearAll:()=>commitContextFilter(filters=>{"
+ "filters.tag='';filters.creator='';filters.studio='';filters.owner=''}),")
# 按下态与表头也读同一份判据,资料页的标签因此和目录一样能叠加。
- self.assertPageContains("tagPressed(filterState.tag,t.k)")
+ self.assertPageContains("selected:tagPressed(filters.tag,row.k)")
self.assertPageContains("selected:tagPressed(filters.tag,x.k)")
self.assertPageContains("const entityTags=tagList(filters.tag).map(tagLabel);")
@@ -9203,8 +9032,6 @@ class WebUiSourceTests(unittest.TestCase):
line = next(row for row in board.splitlines() if row.startswith(fallback))
self.assertIn(pane, line, fallback + " 漏了整块玻璃")
self.assertIn(pane + '.board-is-stuck{box-shadow:inset 0 1px 0 var(--glass-rim)', board)
- self.assertPageContains('mountFilterFrame(top,bottom,')
- self.assertPageContains('mountFilterFrame(boardTagbar,countbar,')
self.assertPageContains("'tag','state','dur_min'")
self.assertPageContains("setState:value=>void updateEntityCollection(kind,name,{...live(),state:value},true),")
self.assertNotIn(".entitytagbar.is-stuck::before{", board)
@@ -9222,14 +9049,9 @@ class WebUiSourceTests(unittest.TestCase):
# 资料页那一格由 entity-filter island 画,壳给同一份选项与现值,按下回同一个 setJavLayout。
self.assertPageContains("jav:javActive()?{layout:javLayout(),options:JAV_LAYOUTS}:null")
self.assertPageContains("setJavLayout:value=>{setJavLayout(value);")
- self.assertPageContains("extra:javActive()?javLayoutButtons():homeLayoutActive()")
- # 首页的版式开关和关注列表的紧凑开关是同一个控件:共用 iconSwitchHtml 与 .iconswitch
- # 样式,.javlayout 只留排序行里的位置微调。
- self.assertPageContains("iconSwitchHtml('jav-layout','JAV 卡片版式',JAV_LAYOUTS,javLayout(),")
- self.assertPageContains("{attr:'data-jav-layout',className:'javlayout'}")
+ # 首页那一格归 `catalog-filter` 岛,同一个 `Segments`;设置页那几组开关用 iconSwitchHtml。
self.assertPageContains('type="radio" name="${esc(name)}" value="${esc(value)}" ${attr}')
self.assertPageContains("${value===current?'checked':''}")
- self.assertPageContains("wireIconSwitch(root,'data-jav-layout',setJavLayout)")
self.assertPageContains(".iconswitch label:has(input:checked){background:var(--surface);color:var(--ink)")
self.assertPageContains("let entityRequestSeq=0,entityJavLayout=false")
self.assertPageContains("(items.items||[]).some(item=>item.is_jav)")
@@ -9709,10 +9531,7 @@ class MotionRecipeTests(unittest.TestCase):
# 起点那一帧不带过渡:带的话挂上去只是开始朝零缩,同一次调用里摘掉时回程无处可走。
self.assertPageContains(
".countbadge.popped{transform:scale(0);opacity:0;filter:blur(2px);transition:none}")
- for call in ("popBadges($('#tagScroll'),'tagbar')",
- "popBadges($('#drawerScroll'),'drawer')"):
- with self.subTest(call=call):
- self.assertPageContains(call)
+ self.assertPageContains("popBadges($('#drawerScroll'),'drawer')")
def test_titles_reveal_by_line_and_leave_no_filter_behind(self):
"""按行不按词:这几处标题正是最常被复制走的几段字,拆成一串 span 会散架。
diff --git a/web/app.js b/web/app.js
index e5f045edc..f06bf643c 100644
--- a/web/app.js
+++ b/web/app.js
@@ -15,14 +15,14 @@ import { playUiSound, setUiSoundsEnabled, wireUiSounds } from './js/ui-sounds.js
import { ACCENTS, DEFAULT_ACCENT, DEFAULT_HOME_GLOW, GLASS_NATIVE_PRESET, GLOW_SPOT_LABELS, GLOW_SWATCHES, GLOW_SWATCH_FAMILIES, HOME_GLOW_CHOICES, HOME_GLOW_PRESETS, HOME_GLOW_SPOTS, glowAccent, glowChipFill, glowColor, glowPalette, glowPresetName, isNativeGlass, normalizeAccent, normalizeHomeGlow, paintGlassFaces, paintHomeGlow } from './js/home-glow.js';
import { mountIsland, unmountIsland, updateIsland, islandMounted, preloadIslands, paginationHtml, pageCount, clampPage, preferredDirection, showToast, followJobProgress } from './dist/peach-ui.js';
import { junkCountSkeletonHtml, junkPath, junkRoute } from './dist/peach-ui.js';
-import { catalogSuggestions, catalogEmptyHtml, emptyCatalogLayout, syncSidebarSurface, sidebarTagCounts, sidebarHasCatalogContent, cleanupSkeletonHtml } from './dist/peach-ui.js';
+import { catalogSuggestions, catalogEmptyHtml, catalogFilterSkeletonHtml, syncSidebarSurface, sidebarTagCounts, sidebarHasCatalogContent, cleanupSkeletonHtml } from './dist/peach-ui.js';
import { javImageKind, normalizeJavImage, normalizeJavLayout, normalizeJavPreferences, panelFrame, relayoutJavImages, syncJavImages, nativeImageFit, faceSourceScale, entitySkeletonHtml } from './dist/peach-ui.js';
import { cancelStreamSession, clickPlayerControl, directStreamSource, ensureVideojs, fmtSpeed, loadStage, newStreamSession, playableStreamSource, stageApi, streamSpeedBits, wireTelemetry as playerWireTelemetry } from './dist/peach-ui.js';
import {
attachOverlayScrollbar, breadcrumbHtml, checkboxHtml, closeAnchoredMenu, confirmModal, dialSliderHtml, dismissMenu, emptyStateHtml,
- fillSkeletonTier, fitSkeleton, formModal, iconSwapHtml, iconSwitchHtml, indexSkeletonHtml, loadingDotsHtml,
+ fitSkeleton, formModal, iconSwapHtml, iconSwitchHtml, indexSkeletonHtml, loadingDotsHtml,
dissolveValue, popBadges, revealSkeleton, revealTexts, setIconSwap, swapText,
- boardTabsHtml, mountFilterFrame, filterChipHtml, moveGlidePane, glideEase, sortControlsHtml, collectionHeaderHtml, wireHorizontalScroller, noteHtml, presentMenu, gaugeHtml, scrollerHtml, searchInputHtml, selectFieldHtml,
+ boardTabsHtml, moveGlidePane, glideEase, collectionHeaderHtml, wireHorizontalScroller, noteHtml, presentMenu, gaugeHtml, scrollerHtml, searchInputHtml, selectFieldHtml,
SKELETON_REVEAL_DELAY, setActionBusy, skeletonHtml, spinnerHtml, growCollapse, wireAnchoredMenu, wireBusyActions, wireCollapse, wireDialSlider, wireDragReorder,
wireIconSwitch, wireOverlayScrollbars, wireScrollers, wireSelectField, configurationSkeletonHtml, wireAutoScroll, stopAutoScroll, scrollMovesAnchor,
postSetupTutorialMarker, setPostSetupTutorialMarker, postSetupTutorialCollapsed, setPostSetupTutorialCollapsed,
@@ -69,6 +69,8 @@ const selected=new Set(),followSelected=new Set();
let barsRequestSeq=0,barsDataCache=null,barsDataAt=0,barsDataPromise=null;
// 顶部三层与抽屉上一次画的是哪一份:口径加数据,两样都没变就不必再画一遍。
let barsRendered='';
+/* 首页筛选条(`catalog-filter` 岛)的整份 props、挂载中的那一次、标签条的成员(见 `paintCatalogFilter`)。 */
+let catalogFilterProps=null,catalogFilterMounting=null,catalogTagRows=[],catalogTopsPages=null;
/* 侧栏「更多」摊开时要照最新那份 facets 重画那一列。挂在 buildBars 的闭包上就只能是
画那一遍时的那份——中途改过筛选,摊开看到的是一列旧数字。 */
let barsFacets=null,barsScopedCreators=[];
@@ -213,8 +215,8 @@ const followContentSkeletonHtml=(media=new URLSearchParams(location.search).get(
高一点(岛卡片的署名行至少 21px,见 `follow-feed.css`)。上面是它自己的创作者行、题材行和那块
两排的玻璃浮层,形状取 `.tier`、`.tagbar`、`.count` 本身,所以和首页顶栏那两排是
同一枚:创作者行铺 `av`、题材行铺 `brandpill`,跟内容回来之后的形状一致。外框
- 要自己写全:`mountFilterFrame` 是运行时才建的,骨架进不了那条路径,少了它上下两排
- 会被画成两块各带圆角的浮层,等内容回来又并成一块。 */
+ 要自己写全:岛挂上之前没有别处替它合并外框,少了它上下两排会被画成两块各带圆角的
+ 浮层,等内容回来又并成一块。 */
const followSkeletonHtml=(label='正在读取关注内容')=>`<div class="follow">
<div class="followhead"><h2 class="pagetitle">关注</h2></div>
<div class="tier followauthors" data-skeleton-tier="av"></div>
@@ -239,31 +241,6 @@ const reviewSkeletonHtml=(label='正在读取复核队列')=>`<div class="review
'<div class="skeletoncard" aria-hidden="true"><i></i><b></b><em></em></div>'.repeat(6)}</div></section></div>`;
$('#loadSentinel').innerHTML=loadingDotsHtml('继续载入中…');
$('#tokLoader').insertAdjacentHTML('afterbegin',spinnerHtml('媒体加载中'));
-/* 筛选条只由当前 state 决定,这次加载不会改变它,所以它现在就能画成最终样子。
- `state` 在启动 URL 解析之后才赋值,冷启动第一张骨架比它早,那一次只画计数骨架。 */
-const countSortsHtml=()=>!state?'':sortControlsHtml({shuffleId:'batchAction',shuffleClass:'',
- extra:javActive()?javLayoutButtons():homeLayoutActive()?homeLayoutButtons():'',items:sortOptions(),
- renderItem:([k,l])=>sortButtonHtml(k,l,state.sort,state.dir,'data-sort')});
-function wireCountRow(){
- const batch=$('#batchAction');
- if(batch)batch.onclick=async()=>{
- if(batch.getAttribute('aria-busy')==='true')return;
- const old=batch.innerHTML;setActionBusy(batch);batch.innerHTML=spinnerHtml('正在换一批');
- try{await refreshAll()}finally{setActionBusy(batch,false);batch.innerHTML=old}
- };
- wireJavLayoutButtons($('#count'));
- wireIconSwitch($('#count'),'data-home-layout',setHomeLayout);
- $('#count').querySelectorAll('[data-sort]').forEach(b=>b.onclick=()=>{
- const next=nextSortState(b.dataset.sort,state.sort,state.dir);
- if(!next)return;
- state.sort=next.sort;state.dir=next.dir;
- loadCatalog()});
-}
-/* 骨架只盖这次加载真会变的东西,也就是计数那一串数字。筛选条照常画出来并接上事件:
- 连它一起清空的话,点下去的那一枚会在等数据的这段时间里失去高亮,看着像没点上;
- `.count:empty` 还会让整行折叠,网格跟着往上跳一截。计数骨架宽高固定、行本身有
- `min-height:var(--sortH)` 兜底,所以数字回来时不发生位移。上方的标签条和已选条件
- 同理不动——它们本来就不随这次请求变。 */
/* 网格还没挂上 island 时,壳把骨架写进 `#grid > .grid`。卡片都归 island:目录与回收站是
`catalog-grid`,垃圾文件是 `junk-queue`。同形骨架复用节点,只有骨架交给内容才淡入。 */
const setGridCards=html=>revealSkeleton($('#grid'),()=>{$('#grid').innerHTML=`<div class="grid">${html}</div>`});
@@ -271,28 +248,31 @@ const setGridCards=html=>revealSkeleton($('#grid'),()=>{$('#grid').innerHTML=`<d
和接着看那一排不在其中,它们不在网格的分段里。 */
const gridCards=()=>document.querySelectorAll(
':is(#grid,#index [data-entity-grid]) [data-media-grid] > [data-media-card][data-id]');
+/* 骨架只盖这次加载真会变的东西,也就是读数那一串数字:筛选条下排那一格换成微光,排序键与
+ 版式照当前 state 推过去。连它们一起收掉的话,点下去的那一枚会在等数据的这段时间里失去高亮,
+ 看着像没点上。上方的标签条和已选条件同理不动,它们本来就不随这次请求变。 */
function renderCatalogLoading(label='正在读取作品'){
const count=$('#count');
- count.setAttribute('aria-busy','true');
- count.setAttribute('aria-label',label);
/* 垃圾文件那一屏的计数行是自己的:一块摘要面加一条分类切换,没有排序也没有换批。
- 照目录那条画的话,等待期间摆着一排这一页根本没有的排序键,数据到货整行再换成
- 另一种东西。这一版是 `junk-queue` island 等数据时那一版的静态副本,island 挂上就换掉它;
- 骨架里的分类链接是真的 `<a href>`,React 包没到时点下去照常换页。 */
+ 这一版是 `junk-queue` island 等数据时那一版的静态副本,island 挂上就换掉它;骨架里的
+ 分类链接是真的 `<a href>`,React 包没到时点下去照常换页。目录与回收站的读数在筛选条里,
+ 这一行留空。 */
const junk=decodeURIComponent(location.pathname)==='/junk-files';
count.classList.toggle('manage-static',junk);
count.classList.toggle('junkcount',junk);
- // 回收站的计数挂在说明行上,这一行只剩「清空回收站」,没有会变的数字可占位。
- count.innerHTML=state&&state.state==='trash'?''
- :junk?junkCountSkeletonHtml(junkRoute(location.search))
- :`<span class="mono"><span class="countskeleton"></span></span>`+countSortsHtml();
- if(!junk)wireCountRow();
+ if(junk){
+ count.setAttribute('aria-busy','true');count.setAttribute('aria-label',label);
+ count.innerHTML=junkCountSkeletonHtml(junkRoute(location.search));
+ fitSkeleton(count);
+ }else{
+ count.removeAttribute('aria-busy');count.removeAttribute('aria-label');count.textContent='';
+ if(state)paintCatalogFilter({count:null,...catalogHeadProps()});
+ }
/* 骨架一铺上去就得把底部那颗 Loading Dots 收掉。骨架说的是「等下会出现几张什么
形状的卡」,dots 说的是「上面已经有内容,还在往下接」;两段同时在场时一屏里
铺着两种等待动画,而实际只有一次请求在跑。哨兵的可见性由数据落地后的
`has_more` 重新决定,所以这里只管收,不必记住原值。 */
$('#loadSentinel').hidden=true;
- fitSkeleton(count);
/* 网格已经挂着时骨架归它自己铺:`#grid` 是它的容器,壳往里写会把 React 根冲掉。 */
if(islandMounted($('#grid')))return;
const grid=$('#grid'),placeholder=catalogSkeletonHtml(label);
@@ -342,10 +322,10 @@ const managementPlaceholder=path=>
(MANAGEMENT_PLACEHOLDERS[path]||(()=>pageSkeletonHtml('正在读取页面')))();
/* 顶部三层只属于首页。深链启动时先画一遍再由路由收起来,等于向管理页和索引页
承诺了三条永远不会到货的横条。 */
-const hideDiscoveryBars=()=>{$('#tiers').style.display='none';$('#tagbar').style.display='none'};
+function hideDiscoveryBars(){$('#catalogFilter').style.display='none';syncCatalogFilterScreen()}
/* 启动那一屏收没收横条,就是这一次启动要不要那两个聚合查询。问屏幕不问路径:
判断只写在上面那个函数里一份,两边各抄一张路径表迟早会对不上。 */
-const wantsDiscoveryBars=()=>$('#tiers').style.display!=='none';
+const wantsDiscoveryBars=()=>$('#catalogFilter').style.display!=='none';
/* 资料页形状名单(`loadEntityShapes`)的在途请求,和画骨架前最多等它多久。 */
let entityShapesReady=null;
const ENTITY_SHAPES_WAIT=400;
@@ -2042,7 +2022,7 @@ document.addEventListener('load',event=>{
那层 `::after`。React 索引页的头像框(`[data-person-ring]`)与资料卡的大位、同台艺人
(`[data-entity-portrait]`、`[data-hero-ring]`)里那张图同样由遗留层拼,插进页面时照样
被这里看见。 */
-const PENDING_IMAGES='.pic>img.poster,[data-media-art]>img,.ring>img,[data-person-ring]>img,[data-entity-portrait]>img,[data-hero-ring]>img';
+const PENDING_IMAGES='.pic>img.poster,[data-media-art]>img,.ring>img,[data-tier-ring]>img,[data-person-ring]>img,[data-entity-portrait]>img,[data-hero-ring]>img';
const pendingSince=new WeakMap();
function watchPendingImages(node){
const found=node.matches(PENDING_IMAGES)?[node]:node.querySelectorAll(PENDING_IMAGES);
@@ -2388,10 +2368,8 @@ function scrollFilteredViewToTop(){
所以按下态就地改,成员和滚动位置一概不动。选中的标签排到最前是重画时的事——刚点的
那枚就在他眼皮底下,这一下把它抽走反倒是替他决定现在该看哪儿。 */
function applyFilterStateInPlace(filters){
- const bar=$('#tagScroll');
- if(bar)bar.querySelectorAll('.pill[data-tag]').forEach(b=>
- b.setAttribute('aria-pressed',String(tagPressed(filters.tag,b.dataset.tag))));
if(barsContext.type==='entity')pushEntityFilter({tags:entityFilterTags(filters)});
+ else paintCatalogFilter({tags:catalogTags(filters)});
$('#drawer').querySelectorAll('.chip[data-key]').forEach(b=>
b.setAttribute('aria-pressed',String(String(filters[b.dataset.key]||'')
.split(',').filter(Boolean).includes(b.dataset.val))));
@@ -2446,88 +2424,10 @@ function commitContextFilter(mutate){
applyFilterStateInPlace(state);refreshFacetCounts(barsContext);
loadCatalog();
}
-/* 首屏时顶部三层和标签条还是两个空 div,而这一次请求要花约一秒。Geist 的判据是
- 骨架宽高必须等于最终内容——「200×20 的块变成 80×16 的字读起来像故障」——所以
- 这里直接套真实类名,让几何自己对上。只在还空着时画:导航到已经有内容的页面
- 留着旧内容等新内容,那不是从无到有,不该铺骨架。四枚视图胶囊由 state 决定,
- 这次请求不改它们,所以现在就画成最终样子并接上事件。 */
+/* 左端四枚视图。资料页那一条(`entity-filter` 岛)用同一份清单画自己的观看状态。 */
const VIEW_PILLS=[{k:'',label:'全部'},{k:'fresh',label:'没看过'},
{k:'later',label:'稍后看'},{k:'flagged',label:'已标记'}];
-const viewPillsHtml=filterState=>VIEW_PILLS.map(v=>
- `<a class="pill" href="${v.k?STATE_ROUTES[v.k]:'/'}" data-state="${v.k}" aria-pressed="${
- filterState.state===v.k}">${v.label}</a>`).join('')+`<span class="sep"></span>`;
-/* 视图之间移动的那块玻璃是常驻节点,`#tagbar` 每次重画都把同一个节点挪回去而不是
- 新建:换了元素,动画就从头开始,看到的只是瞬移。节点由 `viewGlides` 按排持有。
- 点下去要立刻动。切换视图会重新取数,`buildBars` 约一秒后才把 `aria-pressed` 写成
- 新值,等它就等于点完先僵一下再跳。 */
-/* 动画层由外框承载,允许回弹与阴影越过内容边沿。横滚只裁剪按钮内容;
- 玻璃坐标扣除祖先滚动量,目标完全滚出可视区域时收起。 */
-/* 玻璃默认挂在整块外框上;`within` 可以把它挂近一点。挂在外框上的那几排都靠左端,坐标
- 只跟自己排里的东西有关;靠右端那一组前面是一段会变宽的读数,旁边的分段器又是插进
- 文档之后才由观察器换成 30px 那副几何——量早了一步,钉在外框坐标上的玻璃就跟键错开
- 半个身位。只有一枚键的开关干脆把玻璃挂在键自己身上:坐标恒为零,量不早也量不晚。 */
-function viewGlideGeometry(pill,within='.board-filter-frame'){
- const host=pill.closest(within);if(!host)return null;
- let x=0,y=0;
- for(let n=pill;n&&n!==host;n=n.offsetParent){x+=n.offsetLeft;y+=n.offsetTop}
- const rect=pill.getBoundingClientRect();
- for(let n=pill.parentElement;n&&n!==host;n=n.parentElement){
- x-=n.scrollLeft;y-=n.scrollTop;
- if(n.scrollWidth>n.clientWidth&&getComputedStyle(n).overflowX!=='visible'){
- const viewport=n.getBoundingClientRect();
- if(rect.right<=viewport.left||rect.left>=viewport.right)return null;
- }
- }
- return {host,x,w:pill.offsetWidth,y,h:pill.offsetHeight};
-}
-/* 首页那排几选一的滑动玻璃。判据是「此刻量得出宽度」,不是「存在」也不是自己那个
- `hidden`:这一排在同一份文档里一直都在,别的页面开着的时候它只是被祖先收起来了,
- `hidden` 上看不出来。零宽度把这一种连同 `display:none` 一起挡住——玻璃留在一排收起来的
- 按钮上,就是在一块空玻璃上亮着。资料页与关注页那几排是同一块料,由各自的岛挪
- (`use-view-glide.ts`)。 */
-const GLIDE_ROWS={
- views:{selector:'#viewPills',pressed:'[data-state][aria-pressed="true"]'},
-};
-function viewPillsRow(kind){
- for(const row of document.querySelectorAll(GLIDE_ROWS[kind].selector)){
- if(row.offsetWidth&&row.closest('.board-filter-frame'))return row;
- }
- return null;
-}
-/* 悬停跟随和离开归位这两下两页是同一回事,接法也只有一种。用属性赋值而不是
- `addEventListener`:资料页每换一次筛选都会把这一排重新接一遍,叠加式的接法会让
- 同一枚按钮上攒下越来越多份同样的监听。点击各自接——那一下要做的事两页不一样。
- 离开归位挂在那一排自己身上,不挂整条筛选条:两排共用一条 `pointerleave` 的话,
- 指针从媒体那组挪到视图那组就算「离开」,媒体那块玻璃会先弹回去再被下一个悬停接住。 */
-function wireViewGlideRow(row,pills,kind='views'){
- pills.forEach(b=>b.onpointerenter=e=>{if(e.pointerType!=='touch')syncViewGlide(true,b,kind)});
- row.onpointerleave=e=>{if(e.pointerType!=='touch')syncViewGlide(true,null,kind)};
- const scroller=row.closest('.filterscroll');
- if(scroller)scroller.onscroll=()=>syncViewGlide(false,null,kind);
- syncViewGlide(false,null,kind);
-}
-/* 每排各存自己那块玻璃和它上一次的落点。键取那一排的用途,不取那一排的元素:资料页
- 每换一次筛选就把整条重画一遍,拿节点当键等于每重画一次就新建一块玻璃,动画从头
- 起跑,看到的只是瞬移。 */
-const viewGlides=new Map();
-function syncViewGlide(animate,target,kind='views'){
- const row=viewPillsRow(kind);
- const active=row&&(target||row.querySelector(GLIDE_ROWS[kind].pressed));
- let glide=viewGlides.get(kind);
- if(!active){if(glide)glide.pane.hidden=true;return}
- const box=viewGlideGeometry(active,GLIDE_ROWS[kind].host);
- if(!box||!box.w){if(glide)glide.pane.hidden=true;return}
- if(!glide){
- const pane=document.createElement('span');
- pane.className=`viewglide${GLIDE_ROWS[kind].className?` ${GLIDE_ROWS[kind].className}`:''}`;
- pane.setAttribute('aria-hidden','true');
- glide={pane,box:null};viewGlides.set(kind,glide);
- }
- if(glide.pane.parentElement!==box.host)box.host.prepend(glide.pane);
- glide.pane.hidden=false;
- const from=glide.box;glide.box=box;
- moveGlidePane(glide.pane,animate?from:null,box,'x');
-}
+const catalogViews=()=>VIEW_PILLS.map(v=>({...v,href:v.k?STATE_ROUTES[v.k]:'/'}));
/* 抽屉那一列跟筛选条那一排是同一块玻璃,只是换了根轴。它挂在 `#drawer` 上而不是那
一列里:切页会把 `#drawerScroll` 整块重画,住在里面的话玻璃跟着一起没,动画在第
一个微任务里就断了,看到的只是当前项换了个地方亮起来。`#drawer` 自己不重画,是这
@@ -2617,87 +2517,109 @@ $('#drawer').addEventListener('pointerout',event=>{
const column=event.target.closest?.('.dnav');
if(column&&!column.contains(event.relatedTarget))syncNavGlide(true);
});
-function wireViewPills(){
- const row=$('#viewPills'),pills=[...row.querySelectorAll('[data-state]')];
- pills.forEach(b=>b.onclick=e=>{
- e.preventDefault();state.state=b.dataset.state;
- pills.forEach(p=>p.setAttribute('aria-pressed',String(p===b)));syncViewGlide(true,b);
- route(homePath());buildBars();loadCatalog()});
- /* 玻璃跟着指针走,不等点击:指到哪一枚就滑过去,指针离开这一排再回到真正选中的
- 那枚。这一排是四选一,滑过去等于先把这一下的结果比划出来,点不点是下一步的事。
- `aria-pressed` 全程不动——移过去不是选中,读屏和键盘那边不该跟着变。 */
- wireViewGlideRow(row,pills);
-}
-// 宽度是一组定值而不是随机数:随机会让同一次冷启动在两台机器上长得不一样,也没法测。
-function renderBarsLoading(filterState){
- const tiers=$('#tiers'),tagbar=$('#tagbar'),views=$('#viewPills'),tags=$('#tagScroll');
- // 铺了骨架就必须有一次真的绘制来顶掉它,哪怕取回的数据跟上一次一模一样。
- if(!tiers.innerHTML||!views.innerHTML)barsRendered='';
- if(!tiers.innerHTML){
- tiers.hidden=false;tiers.setAttribute('aria-busy','true');
- tiers.innerHTML=`<div class="tier" data-skeleton-tier="av"></div>
- <div class="tier" data-skeleton-tier="brandpill"></div>`;
- fitSkeleton(tiers);
- }
- if(!views.innerHTML){
- tagbar.setAttribute('aria-busy','true');
- views.innerHTML=viewPillsHtml(filterState);
- fillSkeletonTier(tags,'pill');
- wireViewPills();
- }
-}
-/* 顶上那几排先画一屏够用的量,横滚到右端再续下一批。一排里每个头像都是一张要解码的
- 图,把手上这份全画出来等于让首屏替一个多半不会滚到那么远的人买单;而滚到头就没有
- 了、还剩大半份在内存里没露面,那一排看起来就是「只有这些」。
- 续的门槛留 320px,不是等真的贴到右端:滚到那一刻才开始拼 HTML,手底下已经是一段
- 空白了。手上这份用完再去要下一页:库里六百多位女优,一次全取回来是替一个多半滚不到
- 那里的人买单,取一页就停下则是另一种「只有这些」。 */
-const ROW_FIRST=24,TAGS_FIRST=26,ROW_BATCH=12;
-function wireRowPaging(row,rest,itemHtml,wire,nextPage){
- if(!row||(!rest.length&&!nextPage))return;
- let cursor=0,fetching=false,drained=!nextPage;
- const atEnd=()=>row.scrollLeft+row.clientWidth>=row.scrollWidth-320;
- /* 续到这一排真的溢出为止再停:宽屏上一批十二个可能还填不满一行,而没溢出就滚不动,
- 滚不动就再没有第二次 `scroll` 来接着续——那一排会停在「还有货但拿不出来」。 */
- const fill=async()=>{
- if(fetching)return;
- let added=false;
- while(atEnd()){
- if(cursor>=rest.length){
- if(drained)break;
- fetching=true;
- // 要下一页的这段时间里人还在滚,`fetching` 挡住重入,免得同一页要两遍。
- const more=await nextPage().catch(()=>[]);
- fetching=false;
- if(!more.length){drained=true;break}
- rest=rest.concat(more);
- }
- row.insertAdjacentHTML('beforeend',rest.slice(cursor,cursor+ROW_BATCH).map(itemHtml).join(''));
- cursor+=ROW_BATCH;added=true;
- }
- if(added)wire(row);
- if(drained&&cursor>=rest.length)row.removeEventListener('scroll',fill);
+/* ── 首页筛选条(`catalog-filter` 岛,ADR-0031) ──
+ 两排头像、浮层上排的视图与标签、下排读数与排序,外加正文里网格上面那条交集条。筛选、路由与
+ 取数仍归壳:成员与按下态在这里算好当 props 递进去,动作回到这里,落点照旧是
+ `commitContextFilter` 与 `loadCatalog`。壳手上留一份完整的 props,每次只改其中几项:岛画好了
+ 就推补丁;还在挂就先记着,挂完再把整份推一次。 */
+/* 顶上那几排先画一屏够用的量,横滚到右端再续下一批(岛里的 `usePaged`)。标签条先摆的是生效
+ 的那几枚加抽出来的这一批。 */
+const TAGS_FIRST=26;
+function catalogFilterBase(){
+ return {tiers:null,empty:false,tags:[],tagFirst:TAGS_FIRST,views:catalogViews(),state:'',count:null,
+ trash:false,sorts:[],layout:null,refreshing:false,offscreen:false,combo:[],comboHidden:true,comboHost:$('#combo'),
+ actions:catalogFilterActions(),
+ helpers:{wireDrag,wireScroller:row=>{if(row)wireHorizontalScroller(row)}}};
+}
+/* 筛选条收起或露出之后补推一次,岛才知道这一刻在不在屏幕上。还没挂过就不必:挂的那一刻自己会算。 */
+function syncCatalogFilterScreen(){if(catalogFilterProps)paintCatalogFilter({})}
+function paintCatalogFilter(patch){
+ const host=$('#catalogFilter');
+ /* 收起时岛只留两排头像:浮层那两排与资料页、索引页的是同一组控件,藏着一份就是两套同名的,
+ 等不来的读数微光也会一直挂在页面上。收起时同样不铺静态骨架。 */
+ const offscreen=host.style.display==='none'||document.body.matches('.entity-open,.index-open');
+ patch={...patch,offscreen};
+ catalogFilterProps={...(catalogFilterProps||catalogFilterBase()),...patch};
+ if(catalogFilterMounting)return;
+ if(islandMounted(host)){updateIsland(host,patch);return}
+ if(!host.firstChild&&!offscreen){host.innerHTML=catalogFilterSkeletonHtml(catalogViews(),catalogFilterProps.state);fitSkeleton(host)}
+ catalogFilterMounting=mountIsland('catalog-filter',host,catalogFilterProps)
+ .then(()=>updateIsland(host,catalogFilterProps))
+ .finally(()=>{catalogFilterMounting=null});
+}
+function catalogFilterActions(){
+ return {
+ openEntity:(kind,name)=>openEntity(kind,name),
+ /* 按下去当场就推新的按下态,滑动玻璃跟着走,不等这一趟取数。 */
+ setView:view=>{
+ state.state=view;paintCatalogFilter({state:view});
+ route(homePath());buildBars();loadCatalog();
+ },
+ toggleTag:tag=>toggleTag(tag),
+ clearFilter:key=>commitContextFilter(filters=>{filters[key]=''}),
+ clearAll:()=>commitContextFilter(filters=>{filters.tag='';filters.creator='';filters.studio='';filters.owner=''}),
+ setSort:key=>{
+ const next=nextSortState(key,state.sort,state.dir);
+ if(!next)return;
+ state.sort=next.sort;state.dir=next.dir;loadCatalog();
+ },
+ reshuffle:()=>refreshAll(),
+ setLayout:value=>{if(javActive())setJavLayout(value);else setHomeLayout(value)},
+ /* 每排各记各的页号:两排的长度不一样,共用一个计数会让先到头的那排替另一排把页翻过去。
+ 页号跟着这一份名单走,`buildBars` 换名单时从头数起。 */
+ moreTops:async kind=>{
+ const pages=catalogTopsPages;if(!pages)return [];
+ const rows=(await loadTops(topsQueryParams(pages.context,++pages[kind])))[kind]||[];
+ return kind==='performers'?rows.map(tierPerformer):rows.map(tierStudio);
+ },
};
- row.addEventListener('scroll',fill,{passive:true});
- fill();
-}
-/* 接线按整排重跑,不只认新添的那几个:`onclick` 是覆盖赋值,旧的那些接第二遍等于没
- 发生,比记住「哪些已经接过」省一份状态。 */
-function wireTierEntities(root){
- root.querySelectorAll('[data-entity-kind]').forEach(b=>b.onclick=()=>
- openEntity(b.dataset.entityKind,b.dataset.entityName));
- // 兜底只剩「装了但读不出来」这一种:文件坏了,或归一漏掉、图小到看不出是什么。
- // 「没装标识」在 bpHtml 就已经不出图了,走不到这里。
- root.querySelectorAll('.mk img:not([data-fallback-wired])').forEach(img=>{
- img.dataset.fallbackWired='1';
- const fallback=()=>{const box=img.parentNode;if(box)box.textContent=box.dataset.fallback||''};
- img.addEventListener('error',fallback,{once:true});
- img.addEventListener('load',()=>{if(img.naturalWidth<32)fallback()},{once:true});
- });
}
-function wireTagPills(root){
- root.querySelectorAll('[data-tag]').forEach(b=>b.onclick=()=>{toggleTag(b.dataset.tag)});
+/* 读数右边那组分段开关:JAV 与首页各存一份卡片版式,别的目录路径上没有。 */
+function catalogLayoutProp(){
+ if(javActive())return {name:'jav-layout',label:'JAV 卡片版式',value:javLayout(),options:JAV_LAYOUTS};
+ if(homeLayoutActive())return {name:'home-layout',label:'首页卡片版式',value:cardLayout(),options:JAV_LAYOUTS};
+ return null;
+}
+/* 下排只由当前 state 决定,这次加载不会改变它,所以每次取数前就推成最终样子。回收站是待清理
+ 队列,不是浏览列表:换一批和排序在那里没有意义,读数挂在说明行上,岛不出下排。 */
+function catalogHeadProps(){
+ return {sorts:sortKeys(state.sort,state.dir),layout:catalogLayoutProp(),
+ state:state.state||'',trash:state.state==='trash'};
+}
+/* 标签条的成员由 `buildBars` 定,按下态跟着筛选走:加一条筛选只改按下态,成员与滚动位置不动。 */
+function catalogTags(filters){
+ return catalogTagRows.map(row=>({...row,selected:tagPressed(filters.tag,row.k)}));
}
+/* 这排圆框只有 48 px,脸在里面本来就小。框越小,同一张图能无损放大的余量越大:
+ `performer-8711` 那种全身站姿照在资料页只放得到 2 倍,在这里放到 3 倍还没碰到
+ 源图 1:1。取景与索引页同一份 sidecar、同一个换算。 */
+function tierPerformer(x){
+ return {name:x.k,ringHtml:`<span data-tier-initial>${esc(x.k.slice(0,1))}</span>${entityFaceImg(
+ {id:x.id,hasImage:x.has_image,rep:x.has_avatar?x.rep:null,style:facePos(x.avatar_focus),focus:x.avatar_focus})}`};
+}
+/* 正规厂牌用官网 logo;缺失时只显示首两个字,绝不把作品截图冒充厂牌图标。
+
+ 没装标识就不给地址,一个 `<img>` 都不出。无条件出图、靠 `/logo` 回 404 换成首字母的
+ 代价是:一排 30 个厂牌里 21 个是 404,而 404 那条响应不可缓存,每次重绘再打一整轮。
+ `has_logo` 由 `/api/tops` 下发,判据和取图同一个函数。 */
+function tierStudio(x){
+ return {name:x.k,fallback:x.k.slice(0,2),
+ logo:x.has_logo?`/logo?studio=${encodeURIComponent(x.k)}&variant=icon`:''};
+}
+/* 首屏时这一块要等两个聚合查询,约一秒。铺上骨架就必须有一次真的绘制来顶掉它,哪怕取回的
+ 数据跟上一次一模一样。只在还没画过时铺:导航到已经有内容的页面留着旧内容等新内容,那不是
+ 从无到有。React 包没到之前宿主里是壳铺的那份静态骨架(`paintCatalogFilter`),四枚视图已经是
+ 真链接,点下去由宿主上的委托接住。 */
+function renderBarsLoading(filterState){
+ if(catalogFilterProps?.tiers)return;
+ barsRendered='';
+ paintCatalogFilter({tiers:null,state:filterState.state||''});
+}
+$('#catalogFilter').addEventListener('click',event=>{
+ const view=event.target.closest?.('[data-catalog-view]');
+ if(!view||event.defaultPrevented)return;
+ event.preventDefault();catalogFilterActions().setView(view.dataset.catalogView);
+});
/* 展开与收起是同一枚键的两面,`aria-expanded` 说的就是这一组眼下摊开到哪一步,箭头照它
翻。一个箭头说得完的事不再配一句字:名单末尾那个位置,字比图标更像名单的最后一项。 */
const sidebarMoreHtml=(key,group)=>`<button class="sidemore" data-more="${key}" aria-expanded="false" aria-label="展开全部${group}"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-down"/></svg></button>`;
@@ -2727,83 +2649,36 @@ async function buildBars(){
if(context.type==='home')facets=facetData;
const topTags=facetData.tags||[];
- // 顶部三层:女优圆头像 / 厂牌 / 内容标签
- /* REP 表只收真能取到头像的代表作:卡片署名圈回落时读的就是它,取不到的进了表
+ /* 顶部三层:女优圆头像 / 厂牌 / 内容标签。
+ REP 表只收真能取到头像的代表作:卡片署名圈回落时读的就是它,取不到的进了表
就是一个必然 404 的 `<img>`。`has_avatar` 说的是「已经裁好或印相还在」,不是
「目录里有没有那张 jpg」——`/avatar` 按需生成,还没抓过的那条路留着。 */
tops.performers.forEach(x=>{if(x.rep&&x.has_avatar)REP[x.k]=x.rep});
tops.studios.forEach(x=>{if(x.rep&&x.has_avatar)REP[x.k]=x.rep});
- /* 这排圆框只有 64 px,脸在里面本来就小。框越小,同一张图能无损放大的余量越大:
- `performer-8711` 那种全身站姿照在资料页只放得到 2 倍,在这里放到 3 倍还没碰到
- 源图 1:1。取景与索引页同一份 sidecar、同一个换算。 */
- const avHtml=x=>`<button class="av" data-entity-kind="performer" data-entity-name="${esc(x.k)}">
- <span class="ring"><span class="ini">${esc(x.k.slice(0,1))}</span>${entityFaceImg(
- {id:x.id,hasImage:x.has_image,rep:x.has_avatar?x.rep:null,
- style:facePos(x.avatar_focus),focus:x.avatar_focus})}</span>
- <span class="nm">${esc(x.k)}</span></button>`;
- /* 正规厂牌用官网 logo;缺失时只显示首字母,绝不把作品截图冒充厂牌图标。
-
- 没装标识就一个 `<img>` 都不输出。无条件出图、靠 `/logo` 回 404 换成首字母的
- 代价是:顶栏一排 30 个厂牌里 21 个是 404,而 404 那条响应不可缓存,每次重绘
- 再打一整轮。`has_logo` 由 `/api/tops` 下发,判据和取图同一个函数。 */
- const bpHtml=x=>{
- const fallback=`${esc(x.k.slice(0,2))}`;
- const mark=x.has_logo
- ? `<img src="/logo?studio=${encodeURIComponent(x.k)}&variant=icon" alt="">`
- : fallback;
- return `<button class="brandpill" data-entity-kind="studio" data-entity-name="${esc(x.k)}">
- <span class="mk" data-fallback="${fallback}">${mark}</span>${esc(x.k)}</button>`;
- };
- // 空的一排仍占 28px,画出来就是一条什么都没有的空带,所以没人就不画那一排。
// 「两排都空」现在只剩全库真的一个人都没有这一种:窄集合已经由 loadTops 退回全库口径。
- const perfRow=tops.performers.slice(0,ROW_FIRST).map(avHtml).join('');
- const studioRow=tops.studios.slice(0,ROW_FIRST).map(bpHtml).join('');
- const tier=html=>html?`<div class="tier">${html}</div>`:'';
const emptyHome=context.type==='home'&&!javActive()&&!state.state&&!state.q&&!facetData.locations.some(row=>row.n>0);
- const emptyLayout=emptyHome?emptyCatalogLayout():null;
- $('#tiers').innerHTML=emptyLayout?emptyLayout.tiers:tier(perfRow)+tier(studioRow);
- $('#tiers').hidden=!(emptyLayout||perfRow||studioRow);
- $('#tiers').removeAttribute('aria-busy');
- wireTierEntities($('#tiers'));
- if(!emptyLayout){
- /* 每排各记各的页号:两排的长度不一样,共用一个计数会让先到头的那排替另一排把页
- 翻过去。同一次重画里建的闭包,重画一次就从头数起。 */
- const nextTopsPage=kind=>{let page=0;
- return async()=>(await loadTops(topsQueryParams(context,++page)))[kind]||[]};
- // 空的那一排根本没画出来,`.tier` 的序号跟着往前挪,认死 0 和 1 会把厂牌续到女优那排。
- const rows=$('#tiers').querySelectorAll('.tier');let next=0;
- if(perfRow)wireRowPaging(rows[next++],tops.performers.slice(ROW_FIRST),avHtml,
- wireTierEntities,nextTopsPage('performers'));
- if(studioRow)wireRowPaging(rows[next++],tops.studios.slice(ROW_FIRST),bpHtml,
- wireTierEntities,nextTopsPage('studios'));
- }
-
- $('#tagbar').removeAttribute('aria-busy');
- $('#viewPills').innerHTML=viewPillsHtml(filterState);
+ catalogTopsPages={context,performers:0,studios:0};
/* 加上去的那几枚排在最前面,按加的先后。它们不一定在抽出来的这一批里,也可能压根不
在榜上——人是从卡片或详情页点进来的。这一排横着滚,一枚生效的标签落在第三十位跟没
画出来是一回事:要撤掉刚加的那一条,得先把整排推过去把它找回来。
第一屏其余的位置由那一批抽样填——「换一批」换的就是这批成员。续上去的是这一批之外
- 剩下的,照数量从多到少读下来:抽样只管开头露谁,后面的顺序不归它管。 */
+ 剩下的,照数量从多到少读下来:抽样只管开头露谁,后面的顺序不归它管。
+ 标签后面带上这个标签下有多少,跟资料页那条筛选条同一个口径;生效的标签不在这一批里
+ 时不印数字(`n` 为空)。 */
const appliedKeys=tagList(filterState.tag);
const byTagKey=new Map(topTags.map(row=>[row.k,row]));
const appliedTags=appliedKeys.map(k=>byTagKey.get(k)||{k});
const tagPool=topTags.filter(row=>!appliedKeys.includes(row.k));
const pickedTags=seededSample(tagPool,TAGS_FIRST,`tags:${state.seed||''}`);
const pickedKeys=new Set(pickedTags.map(row=>row.k));
- /* 标签后面带上这个标签下有多少,跟资料页那条筛选条同一个口径:这一排每一枚都是
- 可加可不加的筛选,加上去还剩几屏,点之前就该看得到。
- `appliedTags` 里可能只有一个键——生效的标签不一定在这一批抽样里,那时不印数字。
- 印 0 会说成「这个标签下什么都没有」,而它此刻正筛着一屏内容。 */
- const tagPillHtml=t=>filterChipHtml(tagLabel(t.k),{attr:'data-tag',value:t.k,
- selected:tagPressed(filterState.tag,t.k),count:t.n==null?undefined:t.n.toLocaleString()});
- $('#tagScroll').innerHTML=(emptyLayout?.tags||'')
- +appliedTags.concat(pickedTags).map(tagPillHtml).join('');
- wireViewPills();
- wireTagPills($('#tagScroll'));
- popBadges($('#tagScroll'),'tagbar');
- wireRowPaging($('#tagScroll'),tagPool.filter(row=>!pickedKeys.has(row.k)),tagPillHtml,wireTagPills);
- renderCombo(); wireAllDrag();
+ catalogTagRows=appliedTags.concat(pickedTags,tagPool.filter(row=>!pickedKeys.has(row.k)))
+ .map(row=>({k:row.k,label:tagLabel(row.k),n:row.n??null}));
+ paintCatalogFilter({
+ tiers:{key:String(barsRequestSeq),performers:tops.performers.map(tierPerformer),studios:tops.studios.map(tierStudio)},
+ empty:emptyHome,tags:catalogTags(filterState),tagFirst:appliedTags.length+pickedTags.length,
+ views:catalogViews(),state:filterState.state||'',
+ });
+ renderCombo();
const chips=(items,key,multi,limit)=>items.length?`<div class="chips">`+items.slice(0,limit||999).map(it=>{
const sel=(filterState[key]||'').split(',').filter(Boolean).includes(String(it.k));
@@ -2906,9 +2781,8 @@ async function buildBars(){
if(expanded)group.querySelector('.board-section-toggle').click();
bind();hold();requestAnimationFrame(hold);});
}
-/* 排序和换批都属于当前列表,放在计数行,不占用全局导航。目录网格每接一页报一次总数与
- 显示的卡数(竖屏带与 Mix 不算);读数那一格(`data-count-readout`)由网格按位错峰写进去,
- 它记着上一次的值,分得清「换了个数」和「刚建出来」。 */
+/* 排序和换批都属于当前列表,放在筛选条下排,不占用全局导航。目录网格每接一页报一次总数与
+ 显示的卡数(竖屏带与 Mix 不算),读数由岛按位错峰写出来。 */
function paintCatalogCount(nextTotal,n){
total=nextTotal;buildManageBar();
const trash=state.state==='trash';
@@ -2916,13 +2790,7 @@ function paintCatalogCount(nextTotal,n){
标题和网格之间会空出一条只放一个按钮的带子。 */
if(trash)paintManageLede(`${total.toLocaleString()} 个符合 · 显示 ${n}`,
total?`<button class="batchaction danger" id="emptyTrash" type="button" title="永久删除回收站内容">清空回收站</button>`:'');
- $('#count').classList.toggle('count-actions-only',trash);
- $('#count').removeAttribute('aria-busy');$('#count').removeAttribute('aria-label');
- $('#count').innerHTML=
- (trash?'':`<span class="mono" data-count-readout></span>`)
- // 回收站是待清理队列,不是浏览列表:换一批和排序在这里没有意义。
- +(trash?'':countSortsHtml());
- wireCountRow();
+ paintCatalogFilter({count:{total,shown:n}});
const emptyTrash=$('#emptyTrash');
if(emptyTrash)emptyTrash.onclick=async(e)=>{
return confirmModal({title:'清空回收站',body:'回收站中的全部文件和馆藏记录将永久删除,无法恢复。',confirmLabel:'清空回收站',danger:true,onConfirm:async()=>{
@@ -2951,7 +2819,7 @@ function toggleTag(t){commitContextFilter(filters=>{filters.tag=t?withTagToggled
const catalogOnScreen=()=>$('#index').hidden&&$('#stats').hidden;
const COMBO_LABELS={creator:'创作者',studio:'厂牌',owner:'归属'};
/* 生效的筛选一颗一颗列出来:先是创作者、厂牌与归属这几条整项的,再是叠加的标签。目录那条
- 拼成 HTML,资料页那条(`entity-filter` 岛)直接拿这份清单画。 */
+ (`catalog-filter` 岛)与资料页那条(`entity-filter` 岛)拿同一份清单画。 */
function comboItems(filters){
const items=[];
if(filters.creator)items.push({kind:'clear',key:'creator',label:`${COMBO_LABELS.creator} ${filters.creator}`});
@@ -2960,31 +2828,14 @@ function comboItems(filters){
tagList(filters.tag).forEach(t=>items.push({kind:'untag',key:t,label:tagLabel(t)}));
return items;
}
-function comboHtml(filters){
- const items=comboItems(filters);
- if(!items.length)return '';
- return items.map(item=>item.kind==='clear'
- ?`<span class="cb">${esc(item.label)}<b data-clear="${item.key}">✕</b></span>`
- :`<span class="cb">${esc(item.label)} <b data-untag="${esc(item.key)}">✕</b></span>`).join('')
- +`<button class="clr" type="button">全部清除</button>`;
-}
-function wireCombo(root){
- root.querySelectorAll('[data-untag]').forEach(b=>b.onclick=()=>toggleTag(b.dataset.untag));
- root.querySelectorAll('[data-clear]').forEach(b=>b.onclick=()=>
- commitContextFilter(filters=>{filters[b.dataset.clear]=''}));
- const clear=root.querySelector('.clr');
- if(clear)clear.onclick=()=>commitContextFilter(filters=>{
- filters.tag='';filters.creator='';filters.studio='';filters.owner=''});
-}
/* 资料页有自己的一条,挂在这一页的玻璃浮层正上方,所指的是这一页的筛选;目录那条这时
- 跟目录一起被盖住。两条是同一样东西,清单和落点都共用。 */
+ 跟目录一起被盖住。两条是同一样东西,清单、组件和落点都共用。 */
function renderCombo(){
if(barsContext.type==='entity')pushEntityFilter({combo:comboItems(barsContext.filters)});
- if(!catalogOnScreen()){$('#combo').innerHTML='';return}
- $('#combo').innerHTML=
- comboHtml(state);
- wireCombo($('#combo'));
+ paintCatalogFilter({combo:comboItems(state),comboHidden:!catalogOnScreen()});
}
+/* 盖住目录的整页入口当场收起目录那条。筛选条还没挂过时没有东西可收。 */
+const hideCatalogCombo=()=>{if(catalogFilterProps)paintCatalogFilter({comboHidden:true})};
/* ── 统计与管理 ── */
/* 账本只读时铺在复核页与关注管理页顶上的那一条,用的就是 Note,不另画一只框:
@@ -3029,7 +2880,7 @@ function showManagementBody({manage=true,placeholder=''}={}){
function enterManagementSurface(){
// A catalog request started before browser Back must not repaint filters over
// the management page after it resolves.
- loadRequestSeq++;$('#combo').innerHTML='';
+ loadRequestSeq++;hideCatalogCombo();
hideDiscoveryBars();
document.body.classList.remove('entity-open','index-open');
}
@@ -3050,14 +2901,14 @@ async function openStats(push=true){
}
function showHomeSurfaces(){
// 两个类都要清:只清 entity-open 会让从索引页回首页时顶栏一直空着,
- // 而且下面那两行 style.display='' 恢复不了被 class 隐藏的元素。
+ // 而且下面那一行 style.display='' 恢复不了被 class 隐藏的元素。
document.body.classList.remove('entity-open','index-open');
/* 索引页和资料页都画进 #index,两条路都先经过这里再 `innerHTML=`:直接盖掉的话,
上一页挂在里面的 React 根(换头像)就没人卸,留着一棵管着已经不在页面上的节点的根。 */
unmountIsland($('#index'));
$('#stats').hidden=true;$('#index').hidden=true;
if(!isFeedNewPath(location.pathname))$('#feedNew').hidden=true;
- $('#tiers').style.display='';$('#tagbar').style.display='';
+ $('#catalogFilter').style.display='';syncCatalogFilterScreen();
buildManageBar();paintListTitle(); // 放在最后:管理区要盖掉上面刚恢复的首页横条
}
function closeStats(push=true){if(push)route('/');showHomeSurfaces();loadCatalog()}
@@ -4129,7 +3980,7 @@ function indexPlaceholderHtml({kind,q,scope,view}){
shimmer 从头放一遍。 */
function showIndexSkeleton(params){
releaseEntityBody();
- $('#stats').hidden=true;$('#index').hidden=false;clearCatalogGrid();$('#combo').innerHTML='';
+ $('#stats').hidden=true;$('#index').hidden=false;clearCatalogGrid();hideCatalogCombo();
$('#count').textContent='';$('#loadSentinel').hidden=true;
const placeholder=indexPlaceholderHtml(params);
if($('#index').querySelector('[data-skeleton]')?.dataset.skeleton!==skeletonKeyOf(placeholder)){
@@ -4167,7 +4018,7 @@ async function openIndex(kind,push=true){
showHomeSurfaces();
// 必须在 showHomeSurfaces 之后加:它会清掉这两个类并恢复顶部横条,
// 写在前面等于自己加完自己删。
- document.body.classList.add('index-open');
+ document.body.classList.add('index-open');syncCatalogFilterScreen();
disposeStage(false);
showIndexSkeleton(params);
await mountIsland('index',$('#index'),{...params,layout:peopleIndexLayout(),selectMode,
@@ -4239,11 +4090,14 @@ function pushEntityFilter(patch){if(entityFilterCurrent())updateIsland(entityFil
决定现在该看哪儿。数的是这个人/厂牌名下带这个标签的视频。 */
function entityFilterTags(filters){
return entityFilterTagRows.map(x=>({k:x.k,label:tagLabel(x.k),n:x.n,selected:tagPressed(filters.tag,x.k)}))}
-/* 排序键同首页那一排:箭头只画在选中那一枚上,无障碍名称播报的是点下去会得到什么。 */
-const entitySortKeys=filters=>sortOptions().map(([key,label])=>{
- const current=filters.sort||'new',pressed=current===key,next=nextSortState(key,current,filters.dir);
- return {key,label,pressed,dir:pressed&&sortDirWord(key,filters.dir)?(filters.dir==='asc'?'asc':'desc'):'',
- ariaLabel:next?`按${label}${next.dir?sortDirWord(next.sort,next.dir):''}排序`:''}});
+/* 首页与资料页的排序键:箭头只画在选中那一枚上,无障碍名称播报的是点下去会得到什么。 */
+function sortKeys(current,dir){
+ return sortOptions().map(([key,label])=>{
+ const pressed=current===key,next=nextSortState(key,current,dir);
+ return {key,label,pressed,dir:pressed&&sortDirWord(key,dir)?(dir==='asc'?'asc':'desc'):'',
+ ariaLabel:next?`按${label}${next.dir?sortDirWord(next.sort,next.dir):''}排序`:''}});
+}
+const entitySortKeys=filters=>sortKeys(filters.sort||'new',filters.dir);
const entityVideoHead=filters=>({sorts:entitySortKeys(filters),
jav:javActive()?{layout:javLayout(),options:JAV_LAYOUTS}:null});
/* 这一页的写操作都回到壳里同一套落点:筛选走 `commitContextFilter`/`updateEntityCollection`,
@@ -4709,8 +4563,8 @@ async function openEntity(kind,name,push=true){
barsContext={type:'entity',kind,name,filters};
showHomeSurfaces();
disposeStage(false);
- document.body.classList.add('entity-open');
- $('#stats').hidden=true;$('#index').hidden=false;clearCatalogGrid();$('#combo').innerHTML='';
+ document.body.classList.add('entity-open');syncCatalogFilterScreen();
+ $('#stats').hidden=true;$('#index').hidden=false;clearCatalogGrid();hideCatalogCombo();
$('#count').textContent='';$('#loadSentinel').hidden=true;
const seq=++entityRequestSeq;
/* 名单启动时就在取;深链直接落在资料页时它可能还在路上,稍等一下再画骨架,画出来
@@ -4742,7 +4596,7 @@ async function openEntity(kind,name,push=true){
语境,避免大图/小图/预览图按钮只在从 JAV 首页点进来时偶然存在。 */
entityJavLayout=(kind==='performer'||kind==='studio')&&
(state.jav==='1'||(items.items||[]).some(item=>item.is_jav));
- document.body.classList.add('entity-open');
+ document.body.classList.add('entity-open');syncCatalogFilterScreen();
$('#index').hidden=false;clearCatalogGrid();$('#count').textContent='';
$('#loadSentinel').hidden=true;
entityFilterTagRows=d.tags||[];
@@ -5080,10 +4934,9 @@ function buildManageBar(){
// 管理区是行政界面,不该顶着首页的人物/厂牌横条和标签筛选。
// 隐藏 tagbar 的同时同步 count 栏的吸顶偏移:它默认按「顶栏+筛选条」留位,
// 筛选条不在时那个偏移会留出一条 58px 的缝,滚动内容从缝里穿出来。
- if(current){$('#tiers').style.display='none';$('#tagbar').style.display='none'}
+ if(current)hideDiscoveryBars();
$('#count').classList.toggle('no-tagbar',!!current);
buildEdge(); // 顶层高亮跟随管理区;否则从首页进来时仍停在「首页」上
- paintJavBar();
paintManageTitle();
if(!current)return;
const entry=MANAGE_SECTIONS.find(([k])=>k===current);
@@ -5204,18 +5057,6 @@ function sortOptions(){
const ordered=SORTS.filter(([key])=>key!=='seed');
return javActive()?[JAV_RELEASE_SORT,...ordered]:ordered;
}
-/* 方向只画在选中的那一枚上:箭头既是当前方向,也是「再点一次能翻」的唯一提示。
- 未选中项不画箭头——那会变成八个方向按钮,其中七个的方向此刻不生效。
- 箭头对辅助技术隐藏(`icon()` 自带 aria-hidden),无障碍名称播报的是「点下去会得到
- 什么」而不是当前状态:Geist Table 的可排序表头就是这么分工的,当前状态由
- `aria-pressed` 和这枚箭头各自表达,名称留给下一步动作。 */
-function sortButtonHtml(key,label,current,dir,attr,words=SORT_DIR_WORDS){
- const on=current===key,next=nextSortState(key,current,dir,words);
- const word=on?sortDirWord(key,dir,words):'';
- return `<button type="button" ${attr}="${key}" aria-pressed="${on}"${
- next?` aria-label="按${label}${next.dir?sortDirWord(next.sort,next.dir,words):''}排序"`:''}>${label}${
- word?icon(dir==='asc'?'arrow-up':'arrow-down','sortdir'):''}</button>`;
-}
/* 点未选中项=换列并用该列的默认方向;点选中项=翻方向。随机没有方向,重复点它
什么都不做——换一批是它旁边那枚按钮的事。 */
function nextSortState(key,current,dir,words=SORT_DIR_WORDS){
@@ -5226,10 +5067,6 @@ function nextSortState(key,current,dir,words=SORT_DIR_WORDS){
function javLayout(){
return normalizeJavLayout(appSettings.javLayout);
}
-function javLayoutButtons(){
- return iconSwitchHtml('jav-layout','JAV 卡片版式',JAV_LAYOUTS,javLayout(),
- {attr:'data-jav-layout',className:'javlayout'});
-}
/* 首页与 JAV 视图分别保存版式。大图统一作品卡与 Mix 的画面框,预览图完整居中并留黑边。 */
function homeLayoutActive(){
return decodeURIComponent(location.pathname)==='/'&&state.jav!=='1';
@@ -5238,39 +5075,30 @@ function cardLayoutActive(){return javActive()||homeLayoutActive()}
function cardLayout(){
return homeLayoutActive()?normalizeJavLayout(appSettings.homeLayout):javLayout();
}
-function homeLayoutButtons(){
- return iconSwitchHtml('home-layout','首页卡片版式',JAV_LAYOUTS,cardLayout(),
- {attr:'data-home-layout',className:'javlayout'});
-}
function setHomeLayout(value){
appSettings.homeLayout=normalizeJavLayout(value);
saveSettings();
- document.querySelectorAll('[data-home-layout]').forEach(input=>{input.checked=input.value===appSettings.homeLayout});
syncVideoLayoutSetting();
if(!$('#grid').hidden)repaintCatalogGrid();
}
-function wireJavLayoutButtons(root){wireIconSwitch(root,'data-jav-layout',setJavLayout)}
function setJavLayout(value){
appSettings.javLayout=normalizeJavLayout(value);
saveSettings();
- document.querySelectorAll('[data-jav-layout]').forEach(input=>{input.checked=input.value===appSettings.javLayout});
syncVideoLayoutSetting();
// 只重画卡片,不重新请求:版式是纯展示层的事。资料页保留已经载入的分页。
repaintCatalogGrid();
}
+/* 版式开关在两处:设置里那一组与筛选条下排那一组,改了哪边都让另一边跟上。 */
function syncVideoLayoutSetting(){
document.querySelectorAll('[data-video-layout]').forEach(input=>{input.checked=input.value===cardLayout()});
+ if(catalogFilterProps)paintCatalogFilter({layout:catalogLayoutProp()});
}
function setVideoLayout(value){
appSettings.homeLayout=appSettings.javLayout=normalizeJavLayout(value);
saveSettings();
- document.querySelectorAll('[data-home-layout],[data-jav-layout],[data-video-layout]').forEach(input=>{input.checked=input.value===appSettings.javLayout});
+ syncVideoLayoutSetting();
repaintCatalogGrid();
}
-function paintJavBar(){
- // 版式按钮现在长在排序行里(见 renderCount),这里只负责收掉旧容器。
- const bar=$('#javbar');if(bar)bar.hidden=true;
-}
function toggleJavMode(){
state.jav=state.jav==='1'?'':'1';
if(state.jav!=='1'&&state.sort==='release'){state.sort='seed';state.dir=''}
@@ -5389,7 +5217,7 @@ function updateMobileFilterScroll(){
}
function updateStickySurfaces(){
updateMobileFilterScroll();
- ['.board-filter-frame','#tagbar','#count'].forEach(selector=>{
+ ['.board-filter-frame','#count'].forEach(selector=>{
const el=$(selector),css=el&&getComputedStyle(el),top=css?parseFloat(css.top):NaN;
const stuck=!!el&&css.position==='sticky'&&el.offsetParent!==null&&window.scrollY>0&&
Number.isFinite(top)&&el.getBoundingClientRect().top-(parseFloat(css.translate.split(' ')[1])||0)<=top+1;
@@ -5411,11 +5239,7 @@ window.addEventListener('scroll',()=>{
releaseHoverPreviews();
clearTimeout(scrollT); scrollT=setTimeout(()=>{window.__scrolling=false},180);
},{passive:true});
-/* 换了宽度就把那块玻璃重新落一次位:过了那道断点,这一排是不是住在横滚容器里
- 会变,玻璃该落在哪一层跟着变,量出来的位置也跟着变。不重落的话它留在旧的那一层上,
- 坐标还是按旧的算的,停在离按钮几百像素远的地方。 */
-window.addEventListener('resize',()=>{scheduleStickySurfaces();
- Object.keys(GLIDE_ROWS).forEach(kind=>syncViewGlide(false,null,kind))},{passive:true});
+window.addEventListener('resize',scheduleStickySurfaces,{passive:true});
$('#scrim').onclick=()=>openDrawer(false);
@@ -6521,13 +6345,12 @@ async function refreshAll(automatic=false){
// 顶部三层(女优头像、厂牌、标签)有 30 秒会话缓存,而 refreshAll 只重载网格:
// 不清掉这两个缓存,「换一批」之后上面还是同一批人。
barsDataCache=null;barsDataPromise=null;
- /* 网格和顶部三层一起换,两边耗时不一样,所以转圈归这一层管:挂在计数行的
- aria-busy 上时,网格先到就被 renderCount 摘掉,标签条还在等的那段时间里
- 按钮已经停了。顶部三层与标签条不铺骨架——它们此刻有内容在屏幕上,撕成
- 灰条再填回去比直接换掉更晃眼;骨架留给从无到有的首屏。 */
- document.body.classList.add('refreshing');
+ /* 网格和顶部三层一起换,两边耗时不一样,所以转圈归这一层管:换批键转到这个 Promise
+ 落定,网格先到时标签条还在等的那段时间里它不停。顶部三层与标签条不铺骨架——它们此刻
+ 有内容在屏幕上,撕成灰条再填回去比直接换掉更晃眼;只铺一层微光,骨架留给从无到有的首屏。 */
+ paintCatalogFilter({refreshing:true});
try{await Promise.all([loadCatalog(),buildBars()])}
- finally{document.body.classList.remove('refreshing')}
+ finally{paintCatalogFilter({refreshing:false})}
if(!automatic)window.scrollTo({top:0,behavior:'smooth'});
return true;
}
@@ -6553,9 +6376,9 @@ $('#censorSetting').onchange=e=>{
};
function wireDrag(el){return wireHorizontalScroller(el,{drag:true})}
-/* `#count` 一起登记:窄屏下排序筛选整行由 `.count` 自己横向滚动,而它没有滚动条,
- 不接拖动和滚轮就只剩看得见够不着的半个按钮。 */
-function wireAllDrag(){['#tagScroll','#tagbar .filterscroll','#nrow','#count'].forEach(s=>wireDrag($(s)));
+/* `#count` 一起登记:窄屏下垃圾文件那一行由 `.count` 自己横向滚动,而它没有滚动条,
+ 不接拖动和滚轮就只剩看得见够不着的半个按钮。首页筛选条那几排由岛自己登记。 */
+function wireAllDrag(){['#nrow','#count'].forEach(s=>wireDrag($(s)));
document.querySelectorAll('.tier,.srow').forEach(wireDrag)}
/* 目录页(首页 + 四个筛选态):筛选全部从 URL 读,路径只决定初始筛选态。
@@ -6708,7 +6531,7 @@ function localTabs(root,sections,host=root){
buttons.push(button);nav.append(button);
});
});
- /* 那块玻璃跟着指针走,跟筛选条那排药丸是同一条连线(`wireViewGlideRow`):一列里只有
+ /* 那块玻璃跟着指针走,跟筛选条那排视图是同一条连线(`use-view-glide.ts`):一列里只有
当前那格铺着面,鼠标停在哪一条得靠字色那一档去读,扫下来分不出自己停在了第几条。
指针离开这一列就滑回当前那格。触点没有「悬停」,碰一下就滑过去等于替用户点了一次,
所以跟那边一样把 touch 挡在外面。配置页那一份没有玻璃,`syncLocalNavGlide` 自己在
@@ -6782,7 +6605,6 @@ function decorate(){
settings.addEventListener('scroll',fade,{passive:true});fade()}}
document.querySelectorAll('#managebar [data-manage]').forEach(button=>{if(button.getAttribute('aria-pressed')==='true')button.setAttribute('aria-current','page');else button.removeAttribute('aria-current')});
}
-let filterFrame;
const boardBrand=document.querySelector('#brandHome');
boardBrand.setAttribute('aria-label','Peach 首页');
const libraryPicker=document.createElement('div');libraryPicker.className='board-library-menu';libraryPicker.id='boardLibraryMenu';libraryPicker.hidden=true;libraryPicker.setAttribute('popover','manual');libraryPicker.setAttribute('role','dialog');libraryPicker.setAttribute('aria-label','媒体库');
@@ -6930,20 +6752,6 @@ placeBrand();
document.addEventListener('board:sidebar',placeBrand);
addEventListener('resize',placeBrand);
new MutationObserver(placeBrand).observe(document.querySelector('#drawer'),{childList:true,subtree:true});
-const boardTagbar=document.querySelector('#tagbar'),countbar=document.querySelector('#count');
-const tagHome=document.createComment('filter position');boardTagbar.before(tagHome);
-const countHome=document.createComment('sort position');countbar.before(countHome);
-function syncFilterFrame(){
- const catalog=!boardTagbar.hidden&&!countbar.hidden&&getComputedStyle(boardTagbar).display!=='none'&&getComputedStyle(countbar).display!=='none';
- if(catalog){filterFrame=mountFilterFrame(boardTagbar,countbar,{views:$('#viewPills'),tags:$('#tagScroll'),readout:countbar.querySelector('.mono'),controls:countbar.querySelector('.sorts')})}
- else if(!catalog&&filterFrame){tagHome.after(boardTagbar);countHome.after(countbar);filterFrame.remove();filterFrame=null}
- if(filterFrame)[boardTagbar,countbar.querySelector('.sorts')].forEach(el=>wireHorizontalScroller(el));
-}
-syncFilterFrame();
-new MutationObserver(syncFilterFrame).observe(countbar,{childList:true,subtree:true});
-new MutationObserver(syncFilterFrame).observe(boardTagbar,{childList:true});
-new MutationObserver(syncFilterFrame).observe(boardTagbar,{attributes:true,attributeFilter:['hidden','style']});
-new MutationObserver(syncFilterFrame).observe(countbar,{attributes:true,attributeFilter:['hidden','style']});
decorate();
new MutationObserver(decorate).observe(document.querySelector('#stats'),{childList:true,subtree:true});
new MutationObserver(decorate).observe(document.querySelector('#managebar'),{childList:true});
@@ -6952,7 +6760,6 @@ let floatingScheduled=false;
function updateFloating(){
floatingScheduled=false;
document.body.classList.toggle('board-scrolled',scrollY>8);
- if(filterFrame){const top=parseFloat(getComputedStyle(document.documentElement).getPropertyValue('--topH'))||64;filterFrame.classList.toggle('board-is-stuck',filterFrame.getBoundingClientRect().top<=top+9)}
}
addEventListener('scroll',()=>{if(!floatingScheduled){floatingScheduled=true;requestAnimationFrame(updateFloating)}},{passive:true});addEventListener('resize',updateFloating);updateFloating();
diff --git a/web/board.css b/web/board.css
index e417c32dc..44f528398 100644
--- a/web/board.css
+++ b/web/board.css
@@ -184,15 +184,6 @@ html[data-theme-snapshot] :is(.board-filter-frame,.entitytagbar,.entitycollectio
.board-filter-frame>[data-filter-row]::before,.board-filter-frame>[data-filter-row]::after{display:none}
/* 资料页骨架那块浮层的上排:微光药丸之间的间距同真浮层上排。 */
.board-filter-frame .entitytagbar .filterscroll{gap:6px}
-/* 标签后面那个数在这块玻璃上要自己降一档。flat 层那条降的是 --muted,而在这一层里
- --muted 和 --ink-2 都映射到 --color-text-secondary,是同一个值——照搬过来,计数
- 和标签仍然一样亮。按这一排自己的文字色降档,口径跟未选中的视图胶囊那一档同源。
- 13px 的标签配 11px 的数:差一档能看出来,再小就不是附注而是难以辨认了。 */
-.board-filter-frame.board-filter-frame .pill .n{margin-left:6px;font-size:11px;
- color:color-mix(in srgb,var(--glass-text) 55%,transparent)}
-.board-filter-frame.board-filter-frame .pill:hover .n,
-.board-filter-frame.board-filter-frame .pill[aria-pressed="true"] .n{
- color:color-mix(in srgb,var(--glass-text) 80%,transparent)}
/* 版式、大小这类分段开关问的也是「你在哪儿」。滑块的位置和几何归分段器自己管,这里
只换材质与配色:那一套是给 flat 面配的,一块灰底衬一枚不透明的白滑块,摆到浮层上
就是整条里唯一一块实心的面,读起来像贴上去的另一个控件;字色取的也是 flat 面的
@@ -341,7 +332,7 @@ body{background:var(--page)}
.top{background:var(--page);backdrop-filter:none;border-bottom:0;height:64px}
:root{--topH:64px}
.top .search{background:var(--ground);border:1px solid var(--line);border-radius:var(--control-radius)}
-.tiers,.tagbar,.javbar{background:var(--page)}
+.tiers,.tagbar{background:var(--page)}
.managebar{background:var(--ground);border:1px solid var(--line);border-radius:14px;padding:6px}
.stats>section,.stats>.fieldset,.fieldset{border-radius:var(--surface-radius)}
.settingscard,.drawer{box-shadow:0 12px 40px light-dark(#0000000d,#00000080)}
diff --git a/web/css/03-filterbar.css b/web/css/03-filterbar.css
index 4bc995922..f9d375a29 100644
--- a/web/css/03-filterbar.css
+++ b/web/css/03-filterbar.css
@@ -6,15 +6,10 @@
在看什么」;右边的标签才是可加可不加的筛选。读数跟着筛选一起滚走的话,滚到一半
这条上就没有任何东西说明现在看的是哪一档了。
这三格是同一个控件,哪一页用到都是这一份:最左端是页面自己的那一档(资料页的媒体
- 类型,首页没有),住在 `.filterscroll` 外,任何宽度下都不滚;`.viewpills` 与
- `.tagscroll` 住在里面。
+ 类型),住在 `.filterscroll` 外,任何宽度下都不滚。
这一层定位不为自己,是给那块滑动玻璃当落脚点:窄屏时它是横滚的那一层,玻璃住进来
才会跟着内容走、越界跟着被裁。 */
.filterscroll{display:flex;gap:7px;flex:1;min-width:0;align-items:center;position:relative}
-.viewpills{display:flex;gap:7px;flex:none;align-items:center}
-.tagscroll{display:flex;gap:7px;flex:1;min-width:0;align-items:center;
- overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-inline:contain}
-.tagscroll::-webkit-scrollbar{display:none}
/* 窄到这个宽度,钉住的东西得让位。四枚视图在 375 上要占掉两百多像素,钉住它们等于把
标签挤到屏幕外——那一条看着满,其实一枚可点的筛选都露不出来。所以换成整段一起滚:
滚动从标签那一格上提到外面这层,视图跟着标签走,只有最左端那一档还钉着。
@@ -24,7 +19,6 @@
@media(max-width:760px){
.filterscroll{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-inline:contain}
.filterscroll::-webkit-scrollbar{display:none}
- .filterscroll>.tagscroll{flex:0 0 auto;min-width:auto;overflow:visible}
}
/* 选中药丸和生效筛选共用高亮填充。 */
.pill{flex:none;height:var(--filterItemH);padding:0 20px;border:1px solid var(--field-ring);
@@ -32,13 +26,6 @@
color:var(--muted);cursor:pointer;font-size:var(--fs-lg);white-space:nowrap;text-decoration:none}
.pill:hover{border-color:var(--field-ring-hover);color:var(--ink)}
.pill[aria-pressed="true"]{border-color:var(--field-ring);background:var(--picked);color:var(--ink)}
-/* 计数是标签的附注,不是标签名的一部分。同字号同色贴在一起时「巨乳63」读成一个词,
- 那个数看着像这条标签自己就叫这个名字;降一档字号、退一档颜色,再留出一个字的间隔,
- 它才回到「这个标签下有多少」的位置上。间隔只能由这里给:`.pill` 是 flex 容器,
- 标签与计数之间写一个空格文本节点不参与布局,量出来仍然是零。
- 等宽数字让一排药丸里的数位对齐,换一批标签时数字不左右跳。 */
-.pill .n{margin-left:7px;color:var(--muted);font-size:var(--fs-xs);font-variant-numeric:tabular-nums}
-.pill[aria-pressed="true"] .n,.pill:hover .n{color:var(--ink-2)}
/* 虚线只画在「可加可不加、此刻还没加上去」的筛选药丸上:首页筛选条右半截的标签是这一条;
关注页的标签与来源、资料页的标签、标签页的类型药丸都住在 Board 的玻璃浮层里,
@@ -76,7 +63,6 @@
.combo .cb b{display:grid;place-items:center;width:28px;height:28px;margin-left:5px;
cursor:pointer;color:var(--muted);font-size:var(--fs-xs);font-weight:400}
.combo .cb b:hover{color:var(--drop);background:color-mix(in srgb,var(--drop) 12%,transparent)}
-.combo .clr{min-height:28px;display:inline-flex;align-items:center;padding:0 6px;background:none;border:0;color:var(--muted);cursor:pointer;font-size:var(--fs-xs);text-decoration:none}
/* 管理页标题下的说明只用这一种字形和间距;不要再让统计容器或吸顶计数栏各画一份。 */
.pagelede{margin:0 0 16px;color:var(--muted);font-size:var(--fs-sm);line-height:1.5}
.pagelede[hidden]{display:none}
@@ -87,6 +73,7 @@
display:inline-flex;align-items:center;border:1px solid transparent;border-radius:var(--control-radius);
background:var(--ink);color:var(--ground);font:inherit;font-size:var(--fs-xs);font-weight:500;cursor:pointer}
.pagelede-actions .batchaction:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}
-/* 实体页与索引页不显示首页顶部的 `#tiers` 与 `#tagbar`。 */
-body.entity-open #tiers,body.entity-open #tagbar,
-body.index-open #tiers,body.index-open #tagbar{display:none}
+/* 首页筛选条(`catalog-filter` 岛)的宿主与 React 根都不生成盒子:两排头像与那块浮层要直接当
+ body 的孩子排,浮层吸顶的范围才是整页。实体页与索引页不显示它。 */
+[data-catalog-filter],[data-catalog-filter]>.peach-react{display:contents}
+body.entity-open [data-catalog-filter],body.index-open [data-catalog-filter]{display:none}
diff --git a/web/css/09-skeleton.css b/web/css/09-skeleton.css
index a518de3e6..cef8b9190 100644
--- a/web/css/09-skeleton.css
+++ b/web/css/09-skeleton.css
@@ -44,13 +44,6 @@
.postercard-skeleton .skeletoncard i{grid-column:1/-1;border-radius:var(--surface-radius)}
.postercard-skeleton .skeletoncard s{display:block;grid-column:1;grid-row:2/span 3;align-self:start;
width:38px;height:38px;margin-top:5px;border-radius:50%;background:var(--hover)}
-.catalog-placeholder{pointer-events:none}
-.catalog-placeholder .ring,.catalog-placeholder .nm,.catalog-placeholder .mk,.catalog-placeholder .placeholder-name,.catalog-placeholder .pill{background:var(--hover)}
-.catalog-placeholder .nm{width:60%;margin-inline:auto;border-radius:var(--badge-radius)}
-.catalog-placeholder .placeholder-name{width:48px;border-radius:var(--badge-radius)}
-.tier.catalog-placeholder{overflow:hidden}
-.placeholder-tags{display:inline-flex;gap:8px;flex:1 0 240px;min-width:240px;overflow:hidden}
-.placeholder-tags .pill{width:64px;border-color:transparent}
.postercard-skeleton .skeletoncard b,
.postercard-skeleton .skeletoncard em,
.postercard-skeleton .skeletoncard u{grid-column:2}
diff --git a/web/css/12-cards.css b/web/css/12-cards.css
index 32a9e818d..f504b799d 100644
--- a/web/css/12-cards.css
+++ b/web/css/12-cards.css
@@ -37,8 +37,6 @@ main{position:relative;z-index:1;padding:14px 16px 90px}
回收站这类页面直接贴着顶栏吸。manage-static(垃圾复核)不吸顶,要压过这条。 */
.count.no-tagbar{top:var(--topH)}
.count.manage-static{position:relative;top:auto;z-index:1}
-.count.count-actions-only{position:relative;top:auto;min-height:0;margin:0 0 16px;padding:0;justify-content:flex-end}
-.count.count-actions-only:empty{display:none}
.resourcesync{scroll-margin-top:calc(var(--topH) + 18px);display:grid;gap:16px}.resourcesync>h2{margin:0;font-size:var(--fs-xl)}
.resourcesyncbox{overflow:clip;border:1px solid var(--field-ring);border-radius:var(--floating-radius);background:var(--ground)}.resourcesyncbody{padding:20px}.resourcesyncbody p{max-width:760px;margin:0;color:var(--muted);font-size:var(--fs-sm);line-height:1.55}.resourcesyncfooter{box-sizing:border-box;min-height:var(--fieldset-bar-h);display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid var(--line-soft);background:var(--overlay-5)}.resourcesyncfooter p{margin:0;color:var(--muted);font-size:var(--fs-xs);line-height:1.5}.resourceaction{box-sizing:border-box;height:36px;padding:0 12px;border:0;border-radius:var(--control-radius);box-shadow:0 0 0 1px var(--line-soft);background:var(--ground);color:var(--ink-2);display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;font:inherit;font-size:var(--fs-sm);font-weight:500;cursor:pointer;transition:background-color .12s,color .12s}.resourceaction:hover:not(:disabled){background:color-mix(in srgb,var(--ink) 8%,var(--ground));color:var(--ink)}.resourceaction:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.resourceaction:disabled{background:var(--sunk);color:var(--muted);cursor:not-allowed}.resourceaction svg{width:16px;height:16px;stroke:currentColor;fill:none}
.tagbar,.count{transition:background-color .16s ease,border-color .16s ease}
@@ -100,10 +98,6 @@ body.refreshing #batchAction svg{
flex:0 0 auto;white-space:nowrap}
.count .sorts button:hover{color:var(--ink)}
.count .sorts button[aria-pressed="true"]{background:var(--picked);color:var(--ink)}
-/* 方向箭头只画在选中的那一枚里,跟着它的文字色走。自带 class 而不是选 `button>svg`:
- 同一排里的批量键是 36px 方形图标键,那条规则会给它的图标也加上左边距。 */
-.sortdir{width:14px;height:14px;flex:none;margin-left:5px;stroke:currentColor;fill:none;stroke-width:2;
- stroke-linecap:round;stroke-linejoin:round}
/* 这一排里的批量键是强调档,面色连同悬停归 `board.css` 一处:那一层按这条工具带的形状
重排过它们,在这里再写一份,算出来生效的仍是那一层。 */
/* 形状按类写,不按 id:换一批键挂在 id 上的话每多一页就要在这里补一个选择器,而漏掉的
diff --git a/web/css/19-immersive.css b/web/css/19-immersive.css
index 3f21d740f..eacc4d45c 100644
--- a/web/css/19-immersive.css
+++ b/web/css/19-immersive.css
@@ -217,11 +217,6 @@ body:has(#batchbar:not([hidden])) #stage{padding-bottom:180px}
#searchBtn{display:none}
.searchback{display:none}
-/* JAV 版式条。只在 JAV 语境出现——首页混着创作者作品与素人流出,
- 给它们切「封面」没有意义。 */
-.javbar{display:flex;align-items:center;gap:8px;padding:0 0 10px;flex-wrap:wrap}
-.javbar[hidden]{display:none}
-.javbar button{width:34px;height:30px;display:inline-grid;place-items:center;border-radius:var(--control-radius);border:1px solid var(--overlay-10);background:transparent;color:var(--muted);cursor:pointer;padding:0}.javbar button svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2}.javbar button:hover{color:var(--ink)}.javbar button[aria-pressed="true"]{background:var(--picked);color:var(--ink)}
.iconswitch{min-width:0;margin:0;padding:3px;border:1px solid var(--line-soft);border-radius:var(--surface-radius);background:var(--overlay-5)}.iconswitch label{position:relative;display:inline-grid;width:34px;height:28px;place-items:center;border-radius:var(--control-radius);color:var(--muted);cursor:pointer}.iconswitch input{position:absolute;inline-size:1px;block-size:1px;opacity:0}.iconswitch label:hover{color:var(--ink)}.iconswitch label:has(input:checked){background:var(--surface);color:var(--ink);box-shadow:0 1px 2px #0005}.iconswitch label:has(input:focus-visible){outline:2px solid var(--tungsten);outline-offset:2px}.iconswitch svg{display:block;width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2}
/* 共用勾选框:站内此前一半地方用原生 checkbox(只调了 accent-color,未选中态由浏览器
diff --git a/web/dist/peach-react.css b/web/dist/peach-react.css
index f81b74a41..6a19bfbe2 100644
--- a/web/dist/peach-react.css
+++ b/web/dist/peach-react.css
@@ -1,3 +1,3 @@
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
-@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:var(--font-inter), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:var(--font-mono-source), ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-950:oklch(28.6% .066 53.813);--color-lime-100:oklch(96.7% .067 122.328);--color-lime-200:oklch(93.8% .127 124.321);--color-lime-300:oklch(89.7% .196 126.665);--color-lime-400:oklch(84.1% .238 128.85);--color-lime-500:oklch(76.8% .233 130.85);--color-lime-600:oklch(64.8% .2 131.684);--color-lime-700:oklch(53.2% .157 131.589);--color-lime-800:oklch(45.3% .124 130.933);--color-lime-950:oklch(27.4% .072 132.109);--color-green-100:oklch(96.2% .044 156.743);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-cyan-200:oklch(91.7% .08 205.041);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-800:oklch(45% .085 224.283);--color-cyan-950:oklch(30.2% .056 229.695);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:#3392ff;--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-800:oklch(39.8% .195 277.366);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-purple-950:oklch(29.1% .149 302.717);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-300:oklch(82.3% .12 346.018);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-500:oklch(65.6% .241 354.308);--color-pink-700:oklch(52.5% .223 3.958);--color-pink-950:oklch(28.4% .109 3.907);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-950:oklch(27.1% .105 12.094);--color-zinc-800:oklch(27.4% .006 286.033);--color-neutral-50:oklch(98.5% 0 none);--color-neutral-100:#f7f7f7;--color-neutral-200:#ebebeb;--color-neutral-300:oklch(87% 0 none);--color-neutral-400:oklch(70.8% 0 none);--color-neutral-500:oklch(55.6% 0 none);--color-neutral-600:oklch(43.9% 0 none);--color-neutral-700:oklch(37.1% 0 none);--color-neutral-800:oklch(26.9% 0 none);--color-neutral-900:oklch(20.5% 0 none);--color-neutral-950:oklch(14.5% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-tight:1.25;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--shadow-sm:var(--elevation-sm);--drop-shadow-sm:0 1px 2px #00000026;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--blur-sm:8px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-neutral-925:#121212;--color-accent-50:var(--color-blue-50);--color-accent-100:var(--color-blue-100);--color-accent-200:var(--color-blue-200);--color-accent-300:var(--color-blue-300);--color-accent-400:var(--color-blue-400);--color-accent-500:var(--color-blue-500);--color-accent-600:var(--color-blue-600);--color-accent-700:var(--color-blue-700);--color-accent-800:var(--color-blue-800);--color-accent-900:var(--color-blue-900);--color-accent-950:var(--color-blue-950);--radius-2lg:10px;--radius-2-5xl:20px;--shadow-checkbox-selected:inset 0 2px 0 0 #ffffff40, inset 0 0 0 1px var(--color-accent-500);--shadow-card:var(--elevation-card);--color-foreground-full:var(--color-foreground-full);--color-foreground-icon-primary:var(--color-foreground-icon-primary);--color-foreground-icon-hover:var(--color-foreground-icon-hover);--color-foreground-icon-secondary:var(--color-foreground-icon-secondary);--color-foreground-icon-tertiary:var(--color-foreground-icon-tertiary);--color-foreground-icon-quaternary:var(--color-foreground-icon-quaternary);--color-foreground-icon-error:var(--color-foreground-icon-error);--color-foreground-icon-disabled:var(--color-foreground-icon-disabled);--color-foreground-disabled:var(--color-foreground-disabled);--color-foreground-disabled-danger:var(--color-foreground-disabled-danger);--color-input-disabled-foreground:var(--color-input-disabled-foreground);--color-icon-button-disabled-foreground:var(--color-icon-button-disabled-foreground);--color-button-primary-disabled-foreground:var(--color-button-primary-disabled-foreground);--color-text-primary:var(--color-text-primary);--color-text-secondary:var(--color-text-secondary);--color-text-tertiary:var(--color-text-tertiary);--color-text-disabled:var(--color-text-disabled);--color-text-disabled-danger:var(--color-text-disabled-danger);--color-text-placeholder:var(--color-text-placeholder);--color-text-error-primary:var(--color-text-error-primary);--color-input-disabled-text:var(--color-input-disabled-text);--color-text-white:var(--color-text-white);--color-background-full:var(--color-background-full);--color-background-primary-default:var(--color-background-primary-default);--color-background-inner-default:var(--color-background-inner-default);--color-background-primary-hover:var(--color-background-primary-hover);--color-background-primary-active:var(--color-background-primary-active);--color-background-primary-disabled:var(--color-background-primary-disabled);--color-input-disabled-background:var(--color-input-disabled-background);--color-background-secondary-default:var(--color-background-secondary-default);--color-background-secondary-hover:var(--color-background-secondary-hover);--color-background-tertiary-default:var(--color-background-tertiary-default);--color-background-tertiary-hover:var(--color-background-tertiary-hover);--color-background-tertiary-error:var(--color-background-tertiary-error);--color-background-recent-hire-role:var(--color-background-recent-hire-role);--color-avatar-neutral-background:var(--color-avatar-neutral-background);--color-background-quaternary-default:var(--color-background-quaternary-default);--color-background-quaternary-hover:var(--color-background-quaternary-hover);--color-background-quaternary-error:var(--color-background-quaternary-error);--color-file-upload-icon-background:var(--color-file-upload-icon-background);--color-file-upload-icon-foreground:var(--color-file-upload-icon-foreground);--color-file-upload-icon-foreground-hover:var(--color-file-upload-icon-foreground-hover);--color-border-button-default:var(--color-border-button-default);--color-border-button-hover:var(--color-border-button-hover);--color-border-button-active:var(--color-border-button-active);--color-border-button-white:var(--color-border-button-white);--color-border-error-default:var(--color-border-error-default);--color-border-checkbox-default:var(--color-border-checkbox-default);--color-border-checkbox-hover:var(--color-border-checkbox-hover);--color-border-checkbox-active:var(--color-border-checkbox-active);--color-border-checkbox-white:var(--color-border-checkbox-white);--color-border-component-detail-container:var(--color-border-component-detail-container);--color-border-ai-profile-card:var(--color-border-ai-profile-card);--color-border-table:var(--color-border-table);--color-border-button-group:var(--color-border-button-group);--color-border-sidebar-profile-hover:var(--color-border-sidebar-profile-hover);--color-separator-border:var(--color-separator-border);--color-separator-border-strong:var(--color-separator-border-strong);--color-border-focus-ring:var(--color-border-focus-ring);--color-state-success-text:var(--color-state-success-text);--color-state-success-base:var(--color-state-success-base);--color-control-indicator-background:var(--color-control-indicator-background);--color-control-indicator-background-subtle:var(--color-control-indicator-background-subtle);--color-switch-off-chip-start:var(--color-switch-off-chip-start);--color-switch-off-chip-end:var(--color-switch-off-chip-end);--color-switch-on-chip-start:var(--color-switch-on-chip-start);--color-switch-on-chip-end:var(--color-switch-on-chip-end);--color-stat-card-icon-background:var(--color-stat-card-icon-background);--color-segmented-control-background:var(--color-segmented-control-background);--color-segmented-control-selected-background:var(--color-segmented-control-selected-background);--color-theme-toggle-sidebar-background:var(--color-theme-toggle-sidebar-background);--color-theme-toggle-sidebar-selected-background:var(--color-theme-toggle-sidebar-selected-background);--color-ai-chat-composer-add-background:var(--color-ai-chat-composer-add-background);--color-ai-chat-composer-add-hover-background:var(--color-ai-chat-composer-add-hover-background);--color-composer-panel-tab-background:var(--color-composer-panel-tab-background);--color-composer-panel-add-background:var(--color-composer-panel-add-background);--color-composer-panel-add-hover-background:var(--color-composer-panel-add-hover-background);--color-composer-panel-tile-border:var(--color-composer-panel-tile-border);--color-composer-panel-rail-background:var(--color-composer-panel-rail-background);--color-questionnaire-key-background:var(--color-questionnaire-key-background);--color-questionnaire-key-hover-background:var(--color-questionnaire-key-hover-background);--color-agent-progress-ring:var(--color-agent-progress-ring);--color-button-ghost-background:var(--color-button-ghost-background);--color-button-ghost-hover:var(--color-button-ghost-hover);--color-button-ghost-active:var(--color-button-ghost-active);--color-button-ghost-disabled:var(--color-button-ghost-disabled);--color-button-ghost-foreground:var(--color-button-ghost-foreground);--color-button-ghost-disabled-foreground:var(--color-button-ghost-disabled-foreground);--color-dropdown-item-hover-background:var(--color-dropdown-item-hover-background);--color-kbd-background:var(--color-kbd-background);--color-kbd-foreground:var(--color-kbd-foreground);--color-docs-file-chip-background:var(--color-docs-file-chip-background);--color-docs-file-chip-border:var(--color-docs-file-chip-border);--color-docs-file-chip-foreground:var(--color-docs-file-chip-foreground);--color-docs-command-accent:var(--color-docs-command-accent);--color-docs-code-background:var(--color-docs-code-background);--color-docs-install-rail:var(--color-docs-install-rail);--color-badge-neutral-background:var(--color-badge-neutral-background);--color-team-menu-count-background:var(--color-team-menu-count-background);--color-team-menu-count-foreground:var(--color-team-menu-count-foreground);--color-badge-new-background:var(--color-badge-new-background);--color-badge-new-text:var(--color-badge-new-text);--color-tab-count-selected-background:var(--color-tab-count-selected-background);--color-pill-tab-blue-selected-background:var(--color-pill-tab-blue-selected-background);--color-pill-tab-blue-hover-background:var(--color-pill-tab-blue-hover-background);--color-notification-information-background:var(--color-notification-information-background);--color-notification-information-foreground:var(--color-notification-information-foreground);--color-notification-success-background:var(--color-notification-success-background);--color-notification-success-foreground:var(--color-notification-success-foreground);--color-notification-error-background:var(--color-notification-error-background);--color-notification-error-foreground:var(--color-notification-error-foreground);--color-notification-center-background:var(--color-notification-center-background);--color-status-lime-background:var(--color-status-lime-background);--color-status-lime-text:var(--color-status-lime-text);--color-status-yellow-background:var(--color-status-yellow-background);--color-status-yellow-text:var(--color-status-yellow-text);--color-status-rose-background:var(--color-status-rose-background);--color-status-rose-text:var(--color-status-rose-text);--color-status-cyan-background:var(--color-status-cyan-background);--color-status-cyan-text:var(--color-status-cyan-text);--color-status-blue-background:var(--color-status-blue-background);--color-status-blue-text:var(--color-status-blue-text);--color-status-purple-background:var(--color-status-purple-background);--color-status-purple-text:var(--color-status-purple-text);--color-status-dot-green-halo:var(--color-status-dot-green-halo);--color-status-dot-yellow-halo:var(--color-status-dot-yellow-halo);--color-status-dot-indigo-halo:var(--color-status-dot-indigo-halo);--color-date-range-background:var(--color-date-range-background);--color-date-range-edge-background:var(--color-date-range-edge-background);--color-calendar-event-blue-background:var(--color-calendar-event-blue-background);--color-calendar-event-blue-title:var(--color-calendar-event-blue-title);--color-calendar-event-blue-time:var(--color-calendar-event-blue-time);--color-calendar-event-pink-background:var(--color-calendar-event-pink-background);--color-calendar-event-pink-title:var(--color-calendar-event-pink-title);--color-calendar-event-pink-time:var(--color-calendar-event-pink-time);--color-calendar-event-purple-background:var(--color-calendar-event-purple-background);--color-calendar-event-purple-title:var(--color-calendar-event-purple-title);--color-calendar-event-purple-time:var(--color-calendar-event-purple-time);--color-calendar-event-lime-background:var(--color-calendar-event-lime-background);--color-calendar-event-lime-title:var(--color-calendar-event-lime-title);--color-calendar-event-lime-time:var(--color-calendar-event-lime-time);--color-calendar-event-emerald-background:var(--color-calendar-event-emerald-background);--color-calendar-event-emerald-title:var(--color-calendar-event-emerald-title);--color-calendar-event-emerald-time:var(--color-calendar-event-emerald-time);--color-text-error-placeholder:var(--color-text-error-placeholder);--color-chart-track:var(--color-chart-track);--color-chart-cursor:var(--color-chart-cursor);--color-chart-neutral:var(--color-chart-neutral);--color-chart-1:var(--color-chart-1);--color-chart-1-active:var(--color-chart-1-active);--color-chart-2:var(--color-chart-2);--color-chart-2-active:var(--color-chart-2-active);--color-chart-3:var(--color-chart-3);--color-chart-3-active:var(--color-chart-3-active);--color-chart-4:var(--color-chart-4);--color-chart-4-active:var(--color-chart-4-active);--color-chart-5:var(--color-chart-5);--color-chart-5-active:var(--color-chart-5-active);--color-chart-6:var(--color-chart-6);--color-chart-6-active:var(--color-chart-6-active);--color-chart-7:var(--color-chart-7);--color-chart-7-active:var(--color-chart-7-active);--color-chart-8:var(--color-chart-8);--color-chart-8-active:var(--color-chart-8-active);--color-chart-9:var(--color-chart-9);--color-chart-9-active:var(--color-chart-9-active);--color-chart-agents-bar:var(--color-chart-agents-bar);--color-chart-agents-bar-active:var(--color-chart-agents-bar-active);--button-transition-ms:.15s;--input-transition-ms:.15s;--text-display-4-medium:2rem;--text-display-4-medium--line-height:2.75rem;--text-display-4-medium--letter-spacing:0;--text-display-4-medium--font-weight:500;--text-title-1-regular:1.5rem;--text-title-1-regular--line-height:2.125rem;--text-title-1-regular--letter-spacing:0;--text-title-1-regular--font-weight:400;--text-title-1-medium:1.5rem;--text-title-1-medium--line-height:2.125rem;--text-title-1-medium--letter-spacing:0;--text-title-1-medium--font-weight:500;--text-title-1-semibold:1.5rem;--text-title-1-semibold--line-height:2.125rem;--text-title-1-semibold--letter-spacing:0;--text-title-1-semibold--font-weight:600;--text-title-2-regular:1.25rem;--text-title-2-regular--line-height:1.625rem;--text-title-2-regular--letter-spacing:0;--text-title-2-regular--font-weight:400;--text-title-2-medium:1.25rem;--text-title-2-medium--line-height:1.625rem;--text-title-2-medium--letter-spacing:0;--text-title-2-medium--font-weight:500;--text-title-2-semibold:1.25rem;--text-title-2-semibold--line-height:1.625rem;--text-title-2-semibold--letter-spacing:0;--text-title-2-semibold--font-weight:600;--text-title-3-medium:1.125rem;--text-title-3-medium--line-height:1.625rem;--text-title-3-medium--letter-spacing:0;--text-title-3-medium--font-weight:500;--text-title-3-semibold:1.125rem;--text-title-3-semibold--line-height:1.625rem;--text-title-3-semibold--letter-spacing:0;--text-title-3-semibold--font-weight:600;--text-headline-medium:1rem;--text-headline-medium--line-height:1.375rem;--text-headline-medium--letter-spacing:0;--text-headline-medium--font-weight:500;--text-body-regular:.875rem;--text-body-regular--line-height:1.25rem;--text-body-regular--letter-spacing:0;--text-body-regular--font-weight:400;--text-body-medium:.875rem;--text-body-medium--line-height:1.25rem;--text-body-medium--letter-spacing:0;--text-body-medium--font-weight:500;--text-body-semibold:.875rem;--text-body-semibold--line-height:1.25rem;--text-body-semibold--letter-spacing:0;--text-body-semibold--font-weight:600;--text-body-bold:.875rem;--text-body-bold--line-height:1.25rem;--text-body-bold--letter-spacing:0;--text-body-bold--font-weight:700;--text-body-2-regular:.8125rem;--text-body-2-regular--line-height:1.125rem;--text-body-2-regular--letter-spacing:0;--text-body-2-regular--font-weight:400;--text-body-2-medium:.8125rem;--text-body-2-medium--line-height:1.125rem;--text-body-2-medium--letter-spacing:0;--text-body-2-medium--font-weight:500;--text-caption-1-regular:.75rem;--text-caption-1-regular--line-height:1rem;--text-caption-1-regular--letter-spacing:.15px;--text-caption-1-regular--font-weight:400;--text-caption-1-medium:.75rem;--text-caption-1-medium--line-height:1rem;--text-caption-1-medium--letter-spacing:.15px;--text-caption-1-medium--font-weight:500;--text-caption-1-semibold:.75rem;--text-caption-1-semibold--line-height:1rem;--text-caption-1-semibold--letter-spacing:.15px;--text-caption-1-semibold--font-weight:600;--container-board:var(--board-content,1120px);--container-card-cover:150px;--aspect-card-cover:16 / 10;--container-avatar-picker:720px;--aspect-avatar-choice:3 / 4;--spacing-crop-frame:50vh;--spacing-crop-preview:96px;--container-cover-crop:880px;--spacing-topbar:var(--topH,64px);--z-index-dialog:var(--layer-dialog,1000);--container-review-tabs:184px;--container-review-card:340px;--container-review-cover:132px;--container-review-cover-narrow:110px;--container-review-asset:92px;--spacing-review-card:440px;--spacing-review-card-tall:560px;--spacing-review-image:220px;--radius-surface:14px;--radius-floating:20px;--radius-glass-key:7px;--color-scrim:#0009}@supports (color:color-mix(in lab, red, red)){:root,:host{--color-scrim:color-mix(in srgb, var(--color-black) 60%, transparent)}}:root,:host{--container-duplicate-cover:112px;--container-duplicate-cover-narrow:88px;--container-index-person:150px;--container-index-company:180px;--container-index-tag:200px;--spacing-empty-glyph:54px;--container-empty-copy:340px;--leading-empty-copy:1.55;--container-form-modal:540px;--tracking-caps:.12em}}.\@container{container-type:inline-size}.bg-button-danger{isolation:isolate;background-image:var(--gradient-button-danger-default);position:relative}.bg-button-danger:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-danger-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-danger:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-danger-active)}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-danger:disabled,.bg-button-danger[aria-disabled=true]{background-image:var(--gradient-button-danger-disabled)}.bg-button-danger:disabled:before,.bg-button-danger[aria-disabled=true]:before{display:none}.bg-button-primary{isolation:isolate;background-image:var(--gradient-button-primary-default);position:relative}.bg-button-primary:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-primary-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-primary:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-primary-active)}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-primary:disabled,.bg-button-primary[aria-disabled=true]{background-image:var(--gradient-button-primary-disabled)}.bg-button-primary:disabled:before,.bg-button-primary[aria-disabled=true]:before{display:none}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.skeleton-sheen{overflow:hidden}.skeleton-sheen:after{content:"";border-radius:inherit;background:linear-gradient(to right, var(--hover), var(--skeleton-sheen) 50%, var(--hover));background-size:50% 100%;animation:1.5s ease-in-out infinite reverse peach-skeleton-sweep;position:absolute;inset:0 -200% 0 0}@media (prefers-reduced-motion:reduce){.skeleton-sheen:after{animation:none}}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{inset-inline:0}.inset-y-0{inset-block:0}.top-\(--crop-b\){top:var(--crop-b)}.top-\(--crop-t\){top:var(--crop-t)}.top-\(--tile-top\){top:var(--tile-top)}.top-0{top:0}.top-0\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-2{top:calc(var(--spacing) * 2)}.top-4{top:calc(var(--spacing) * 4)}.top-\[3px\]{top:3px}.top-topbar{top:var(--spacing-topbar)}.-right-1\.5{right:calc(var(--spacing) * -1.5)}.-right-\[5\.5px\]{right:-5.5px}.right-0{right:0}.right-1{right:var(--spacing)}.right-1\.5{right:calc(var(--spacing) * 1.5)}.right-2\.25{right:calc(var(--spacing) * 2.25)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-1\.5{bottom:calc(var(--spacing) * -1.5)}.-bottom-3{bottom:calc(var(--spacing) * -3)}.bottom-0{bottom:0}.bottom-1{bottom:var(--spacing)}.bottom-2{bottom:calc(var(--spacing) * 2)}.bottom-2\.25{bottom:calc(var(--spacing) * 2.25)}.-left-\[5\.5px\]{left:-5.5px}.left-\(--crop-l\){left:var(--crop-l)}.left-\(--crop-r\){left:var(--crop-r)}.left-\(--tile-left\){left:var(--tile-left)}.left-0{left:0}.left-0\.5{left:calc(var(--spacing) * .5)}.left-1{left:var(--spacing)}.left-1\.5{left:calc(var(--spacing) * 1.5)}.left-\[3px\]{left:3px}.isolate{isolation:isolate}.-z-10{z-index:calc(10 * -1)}.z-1{z-index:1}.z-6{z-index:6}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-dialog{z-index:var(--z-index-dialog)}.col-start-2{grid-column-start:2}.-col-end-1{grid-column-end:calc(1 * -1)}.row-span-2{grid-row:span 2/span 2}.container{width:100%}@media (width>=560px){.container{max-width:560px}}@media (width>=600px){.container{max-width:600px}}@media (width>=601px){.container{max-width:601px}}@media (width>=761px){.container{max-width:761px}}@media (width>=900px){.container{max-width:900px}}@media (width>=901px){.container{max-width:901px}}@media (width>=1000px){.container{max-width:1000px}}@media (width>=1120px){.container{max-width:1120px}}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:0}.m-0\!{margin:0!important}.-mx-4{margin-inline:calc(var(--spacing) * -4)}.-mx-5{margin-inline:calc(var(--spacing) * -5)}.-mx-6{margin-inline:calc(var(--spacing) * -6)}.mx-auto{margin-inline:auto}.my-0\.5{margin-block:calc(var(--spacing) * .5)}.-mt-2{margin-top:calc(var(--spacing) * -2)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-auto{margin-top:auto}.mr-1{margin-right:var(--spacing)}.mr-1\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-auto{margin-right:auto}.-mb-4{margin-bottom:calc(var(--spacing) * -4)}.-mb-5{margin-bottom:calc(var(--spacing) * -5)}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-5\.5{margin-bottom:calc(var(--spacing) * 5.5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.-ml-3{margin-left:calc(var(--spacing) * -3)}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-auto{margin-left:auto}.fieldset-split{grid-template-columns:minmax(0,1fr) auto;align-items:center;display:grid}@media not all and (width>=1001px){.fieldset-split{grid-template-columns:minmax(0,1fr)}}.duplicate-row{grid-template-columns:var(--container-duplicate-cover) minmax(0, 1fr) 84px 84px 84px;display:grid}@media not all and (width>=901px){.duplicate-row{grid-template-columns:var(--container-duplicate-cover-narrow) minmax(0, 1fr) auto auto}}.index-grid-company{grid-template-columns:repeat(auto-fill, minmax(var(--container-index-company), 1fr));display:grid}@media not all and (width>=761px){.index-grid-company{grid-template-columns:repeat(auto-fill, minmax(var(--container-index-person), 1fr))}}.card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));display:grid}.card-grid-cover{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));display:grid}.index-grid-person{grid-template-columns:repeat(auto-fill, minmax(var(--container-index-person), 1fr));display:grid}.index-tag-list{grid-template-columns:repeat(auto-fill, minmax(var(--container-index-tag), 1fr));display:grid}.link-stat-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));display:grid}.review-asset-grid{grid-template-columns:repeat(auto-fill, minmax(var(--container-review-asset), 1fr));display:grid}.review-grid{grid-template-columns:repeat(auto-fill, minmax(min(100%, var(--container-review-card)), 1fr));display:grid}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-3\/4{aspect-ratio:3/4}.aspect-16\/10{aspect-ratio:16/10}.aspect-auto{aspect-ratio:auto}.aspect-avatar-choice{aspect-ratio:var(--aspect-avatar-choice)}.aspect-card-cover{aspect-ratio:var(--aspect-card-cover)}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.size-1{width:var(--spacing);height:var(--spacing)}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-1\.75{width:calc(var(--spacing) * 1.75);height:calc(var(--spacing) * 1.75)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-3\.75{width:calc(var(--spacing) * 3.75);height:calc(var(--spacing) * 3.75)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-4\.5{width:calc(var(--spacing) * 4.5);height:calc(var(--spacing) * 4.5)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-7\.5{width:calc(var(--spacing) * 7.5);height:calc(var(--spacing) * 7.5)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-9\.5{width:calc(var(--spacing) * 9.5);height:calc(var(--spacing) * 9.5)}.size-11{width:calc(var(--spacing) * 11);height:calc(var(--spacing) * 11)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-17\.5{width:calc(var(--spacing) * 17.5);height:calc(var(--spacing) * 17.5)}.size-\[5px\]{width:5px;height:5px}.size-\[7\.5px\]{width:7.5px;height:7.5px}.size-\[10px\]{width:10px;height:10px}.size-\[18px\]{width:18px;height:18px}.size-crop-preview{width:var(--spacing-crop-preview);height:var(--spacing-crop-preview)}.size-empty-glyph{width:var(--spacing-empty-glyph);height:var(--spacing-empty-glyph)}.size-full{width:100%;height:100%}.h-\(--crop-h\){height:var(--crop-h)}.h-\(--crop-t\){height:var(--crop-t)}.h-\(--tile-height\){height:var(--tile-height)}.h-0{height:0}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1{height:var(--spacing)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-7\.5{height:calc(var(--spacing) * 7.5)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-56{height:calc(var(--spacing) * 56)}.h-64{height:calc(var(--spacing) * 64)}.h-70{height:calc(var(--spacing) * 70)}.h-75{height:calc(var(--spacing) * 75)}.h-\[2px\]{height:2px}.h-auto{height:auto}.h-full{height:100%}.h-max{height:max-content}.h-review-card{height:var(--spacing-review-card)}.h-review-card-tall{height:var(--spacing-review-card-tall)}.h-review-image{height:var(--spacing-review-image)}.max-h-22{max-height:calc(var(--spacing) * 22)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-130{max-height:calc(var(--spacing) * 130)}.max-h-\[240px\]{max-height:240px}.max-h-crop-frame{max-height:var(--spacing-crop-frame)}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-4{min-height:calc(var(--spacing) * 4)}.min-h-6{min-height:calc(var(--spacing) * 6)}.min-h-7{min-height:calc(var(--spacing) * 7)}.min-h-9\.5{min-height:calc(var(--spacing) * 9.5)}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-11\.5{min-height:calc(var(--spacing) * 11.5)}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-14{min-height:calc(var(--spacing) * 14)}.min-h-16{min-height:calc(var(--spacing) * 16)}.min-h-24{min-height:calc(var(--spacing) * 24)}.min-h-30{min-height:calc(var(--spacing) * 30)}.min-h-32{min-height:calc(var(--spacing) * 32)}.min-h-33{min-height:calc(var(--spacing) * 33)}.min-h-40{min-height:calc(var(--spacing) * 40)}.min-h-48{min-height:calc(var(--spacing) * 48)}.min-h-52{min-height:calc(var(--spacing) * 52)}.min-h-60{min-height:calc(var(--spacing) * 60)}.min-h-64{min-height:calc(var(--spacing) * 64)}.min-h-80{min-height:calc(var(--spacing) * 80)}.min-h-\[52px\]{min-height:52px}.w-\(--crop-l\){width:var(--crop-l)}.w-\(--crop-w\){width:var(--crop-w)}.w-\(--tile-width\){width:var(--tile-width)}.w-\(--trigger-width\){width:var(--trigger-width)}.w-0{width:0}.w-1{width:var(--spacing)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-2\/3{width:66.6667%}.w-3{width:calc(var(--spacing) * 3)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-14{width:calc(var(--spacing) * 14)}.w-24{width:calc(var(--spacing) * 24)}.w-37\.5{width:calc(var(--spacing) * 37.5)}.w-48{width:calc(var(--spacing) * 48)}.w-52{width:calc(var(--spacing) * 52)}.w-56{width:calc(var(--spacing) * 56)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-\[2px\]{width:2px}.w-\[42px\]{width:42px}.w-\[202px\]{width:202px}.w-\[266px\]{width:266px}.w-auto{width:auto}.w-card-cover{width:var(--container-card-cover)}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-review-cover-narrow{width:var(--container-review-cover-narrow)}.max-w-80{max-width:calc(var(--spacing) * 80)}.max-w-90{max-width:calc(var(--spacing) * 90)}.max-w-190{max-width:calc(var(--spacing) * 190)}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.max-w-avatar-picker{max-width:var(--container-avatar-picker)}.max-w-board{max-width:var(--container-board)}.max-w-cover-crop{max-width:var(--container-cover-crop)}.max-w-empty-copy{max-width:var(--container-empty-copy)}.max-w-form-modal{max-width:var(--container-form-modal)}.max-w-full{max-width:100%}.max-w-none{max-width:none}.max-w-prose{max-width:65ch}.min-w-0{min-width:0}.min-w-7\.5{min-width:calc(var(--spacing) * 7.5)}.min-w-25{min-width:calc(var(--spacing) * 25)}.min-w-31{min-width:calc(var(--spacing) * 31)}.min-w-32{min-width:calc(var(--spacing) * 32)}.min-w-35{min-width:calc(var(--spacing) * 35)}.min-w-40{min-width:calc(var(--spacing) * 40)}.min-w-50{min-width:calc(var(--spacing) * 50)}.min-w-64{min-width:calc(var(--spacing) * 64)}.min-w-80{min-width:calc(var(--spacing) * 80)}.min-w-160{min-width:calc(var(--spacing) * 160)}.flex-1{flex:1}.flex-none{flex:none}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.basis-40{flex-basis:calc(var(--spacing) * 40)}.basis-50{flex-basis:calc(var(--spacing) * 50)}.basis-64{flex-basis:calc(var(--spacing) * 64)}.basis-full{flex-basis:100%}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-3{--tw-translate-x:calc(var(--spacing) * 3);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-6{--tw-translate-x:calc(var(--spacing) * 6);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[18px\]{--tw-translate-x:18px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-full{--tw-translate-y:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-90{rotate:-90deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.button-press-motion{transition:background-color var(--button-transition-ms) ease, border-color var(--button-transition-ms) ease, box-shadow var(--button-transition-ms) ease, color var(--button-transition-ms) ease, transform .42s cubic-bezier(.4, 0, .2, 1)}.button-press-motion:active:not(:disabled):not([aria-disabled=true]){transition-duration:.15s,.15s,.15s,.15s,.22s;transform:scale(.98)}.button-press-motion:disabled,.button-press-motion[aria-disabled=true]{transform:none}@media (prefers-reduced-motion:reduce){.button-press-motion{transition:none;transform:none}}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.dot-wave-0{animation:1.2s ease-in-out infinite peach-dot-wave}.dot-wave-1{animation:1.2s ease-in-out .15s infinite peach-dot-wave}.dot-wave-2{animation:1.2s ease-in-out .3s infinite peach-dot-wave}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-nwse-resize{cursor:nwse-resize}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.resize{resize:both}.scroll-mt-20{scroll-margin-top:calc(var(--spacing) * 20)}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.columns-2{columns:2}.auto-cols-fr{grid-auto-columns:minmax(0,1fr)}.grid-flow-col{grid-auto-flow:column}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-nowrap{flex-wrap:nowrap}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.content-start{align-content:flex-start}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-1\.75{gap:calc(var(--spacing) * 1.75)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-2\.25{gap:calc(var(--spacing) * 2.25)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-4\.5{gap:calc(var(--spacing) * 4.5)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-\[2px\]{gap:2px}.gap-\[5px\]{gap:5px}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-2\.5{column-gap:calc(var(--spacing) * 2.5)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-7{column-gap:calc(var(--spacing) * 7)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}.self-center{align-self:center}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.overscroll-x-contain{overscroll-behavior-x:contain}.rounded{border-radius:.25rem}.rounded-2-5xl{border-radius:var(--radius-2-5xl)}.rounded-2lg{border-radius:var(--radius-2lg)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[0\.5px\]{border-radius:.5px}.rounded-\[0\.75px\]{border-radius:.75px}.rounded-\[1\.5px\]{border-radius:1.5px}.rounded-\[1px\]{border-radius:1px}.rounded-\[2px\]{border-radius:2px}.rounded-\[3px\]{border-radius:3px}.rounded-\[4\.5px\]{border-radius:4.5px}.rounded-floating{border-radius:var(--radius-floating)}.rounded-full{border-radius:2147483647px}.rounded-glass-key{border-radius:var(--radius-glass-key)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-surface{border-radius:var(--radius-surface)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-l-md{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.rounded-r-md{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.rounded-b-2xl{border-bottom-right-radius:var(--radius-2xl);border-bottom-left-radius:var(--radius-2xl)}.rounded-b-surface{border-bottom-right-radius:var(--radius-surface);border-bottom-left-radius:var(--radius-surface)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\[0\.5px\]{border-style:var(--tw-border-style);border-width:.5px}.border-\[0\.25px\]{border-style:var(--tw-border-style);border-width:.25px}.border-\[0\.375px\]{border-style:var(--tw-border-style);border-width:.375px}.border-\[1\.5px\]{border-style:var(--tw-border-style);border-width:1.5px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-solid{--tw-border-style:solid;border-style:solid}.border-\(--glass-low\){border-color:var(--glass-low)}.border-accent-600{border-color:var(--color-accent-600)}.border-border{border-color:var(--color-separator-border)}.border-border-button-default,.border-border-button-default\/50{border-color:var(--color-border-button-default)}@supports (color:color-mix(in lab, red, red)){.border-border-button-default\/50{border-color:color-mix(in oklab, var(--color-border-button-default) 50%, transparent)}}.border-border-checkbox-default{border-color:var(--color-border-checkbox-default)}.border-border-checkbox-hover{border-color:var(--color-border-checkbox-hover)}.border-border-error-default{border-color:var(--color-border-error-default)}.border-border\/50{border-color:var(--color-separator-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/50{border-color:color-mix(in oklab, var(--color-separator-border) 50%, transparent)}}.border-current,.border-current\/15{border-color:currentColor}@supports (color:color-mix(in lab, red, red)){.border-current\/15{border-color:color-mix(in oklab, currentcolor 15%, transparent)}}.border-current\/20{border-color:currentColor}@supports (color:color-mix(in lab, red, red)){.border-current\/20{border-color:color-mix(in oklab, currentcolor 20%, transparent)}}.border-current\/35{border-color:currentColor}@supports (color:color-mix(in lab, red, red)){.border-current\/35{border-color:color-mix(in oklab, currentcolor 35%, transparent)}}.border-separator-border{border-color:var(--color-separator-border)}.border-text-primary\/15{border-color:var(--color-text-primary)}@supports (color:color-mix(in lab, red, red)){.border-text-primary\/15{border-color:color-mix(in oklab, var(--color-text-primary) 15%, transparent)}}.border-transparent{border-color:#0000}.bg-\(--keep\)\/22{background-color:var(--keep)}@supports (color:color-mix(in lab, red, red)){.bg-\(--keep\)\/22{background-color:color-mix(in oklab, var(--keep) 22%, transparent)}}.bg-background{background-color:var(--color-background-primary-default)}.bg-background-full{background-color:var(--color-background-full)}.bg-background-primary-default{background-color:var(--color-background-primary-default)}.bg-background-primary-hover{background-color:var(--color-background-primary-hover)}.bg-background-secondary-default{background-color:var(--color-background-secondary-default)}.bg-background-tertiary-default{background-color:var(--color-background-tertiary-default)}.bg-background-tertiary-error{background-color:var(--color-background-tertiary-error)}.bg-background\/70{background-color:var(--color-background-primary-default)}@supports (color:color-mix(in lab, red, red)){.bg-background\/70{background-color:color-mix(in oklab, var(--color-background-primary-default) 70%, transparent)}}.bg-border-focus-ring{background-color:var(--color-border-focus-ring)}.bg-button-ghost-background{background-color:var(--color-button-ghost-background)}.bg-card-footer{background-color:var(--card-footer,transparent)}.bg-chart-1{background-color:var(--color-chart-1)}.bg-chart-2{background-color:var(--color-chart-2)}.bg-chart-3{background-color:var(--color-chart-3)}.bg-chart-4{background-color:var(--color-chart-4)}.bg-chart-5,.bg-chart-5\/10{background-color:var(--color-chart-5)}@supports (color:color-mix(in lab, red, red)){.bg-chart-5\/10{background-color:color-mix(in oklab, var(--color-chart-5) 10%, transparent)}}.bg-chart-6,.bg-chart-6\/10{background-color:var(--color-chart-6)}@supports (color:color-mix(in lab, red, red)){.bg-chart-6\/10{background-color:color-mix(in oklab, var(--color-chart-6) 10%, transparent)}}.bg-chart-7\/10{background-color:var(--color-chart-7)}@supports (color:color-mix(in lab, red, red)){.bg-chart-7\/10{background-color:color-mix(in oklab, var(--color-chart-7) 10%, transparent)}}.bg-chart-8\/10{background-color:var(--color-chart-8)}@supports (color:color-mix(in lab, red, red)){.bg-chart-8\/10{background-color:color-mix(in oklab, var(--color-chart-8) 10%, transparent)}}.bg-current{background-color:currentColor}.bg-dropdown-item-hover-background{background-color:var(--color-dropdown-item-hover-background)}.bg-foreground{background-color:var(--color-text-primary)}.bg-input-disabled-background{background-color:var(--color-input-disabled-background)}.bg-muted-foreground{background-color:var(--color-text-secondary)}.bg-notification-information-background{background-color:var(--color-notification-information-background)}.bg-notification-success-background{background-color:var(--color-notification-success-background)}.bg-scrim{background-color:var(--color-scrim)}.bg-status-blue-background{background-color:var(--color-status-blue-background)}.bg-status-cyan-background{background-color:var(--color-status-cyan-background)}.bg-status-lime-background{background-color:var(--color-status-lime-background)}.bg-status-lime-text{background-color:var(--color-status-lime-text)}.bg-status-purple-background{background-color:var(--color-status-purple-background)}.bg-status-rose-background{background-color:var(--color-status-rose-background)}.bg-status-yellow-background{background-color:var(--color-status-yellow-background)}.bg-status-yellow-text{background-color:var(--color-status-yellow-text)}.bg-text-primary\/10{background-color:var(--color-text-primary)}@supports (color:color-mix(in lab, red, red)){.bg-text-primary\/10{background-color:color-mix(in oklab, var(--color-text-primary) 10%, transparent)}}.bg-text-tertiary{background-color:var(--color-text-tertiary)}.bg-text-white{background-color:var(--color-text-white)}.bg-transparent{background-color:#0000}.bg-transparent\!{background-color:#0000!important}.bg-linear-to-b{--tw-gradient-position:to bottom}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-b{--tw-gradient-position:to bottom in oklab}}.bg-linear-to-b{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-t{--tw-gradient-position:to top}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-t{--tw-gradient-position:to top in oklab}}.bg-linear-to-t{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-\(image\:--crop-preview\){background-image:var(--crop-preview)}.from-accent-400{--tw-gradient-from:var(--color-accent-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-accent-500{--tw-gradient-from:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-control-indicator-background{--tw-gradient-from:var(--color-control-indicator-background);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-off-chip-start{--tw-gradient-from:var(--color-switch-off-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-on-chip-start{--tw-gradient-from:var(--color-switch-on-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-\[43\.837\%\]{--tw-gradient-from-position:43.837%}.to-accent-500{--tw-gradient-to:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-accent-600{--tw-gradient-to:var(--color-accent-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-control-indicator-background-subtle{--tw-gradient-to:var(--color-control-indicator-background-subtle);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-off-chip-end{--tw-gradient-to:var(--color-switch-off-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-on-chip-end{--tw-gradient-to:var(--color-switch-on-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.bg-\(length\:--crop-preview-size\){background-size:var(--crop-preview-size)}.bg-\(position\:--crop-preview-at\){background-position:var(--crop-preview-at)}.bg-no-repeat{background-repeat:no-repeat}.fill-background-secondary-default{fill:var(--color-background-secondary-default)}.fill-background-tertiary-default{fill:var(--color-background-tertiary-default)}.fill-border-focus-ring{fill:var(--color-border-focus-ring)}.fill-chart-1{fill:var(--color-chart-1)}.fill-chart-2{fill:var(--color-chart-2)}.fill-chart-3{fill:var(--color-chart-3)}.fill-chart-4{fill:var(--color-chart-4)}.fill-chart-5{fill:var(--color-chart-5)}.fill-chart-6{fill:var(--color-chart-6)}.fill-chart-track{fill:var(--color-chart-track)}.fill-current{fill:currentColor}.fill-text-secondary{fill:var(--color-text-secondary)}.stroke-chart-1{stroke:var(--color-chart-1)}.stroke-chart-2{stroke:var(--color-chart-2)}.stroke-chart-3{stroke:var(--color-chart-3)}.stroke-chart-4{stroke:var(--color-chart-4)}.stroke-chart-5{stroke:var(--color-chart-5)}.stroke-chart-6{stroke:var(--color-chart-6)}.stroke-current{stroke:currentColor}.stroke-2{stroke-width:2px}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:var(--spacing)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-\[1\.5px\]{padding:1.5px}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-2\.25{padding-inline:calc(var(--spacing) * 2.25)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\[7px\]{padding-inline:7px}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-1\.25{padding-block:calc(var(--spacing) * 1.25)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-px{padding-block:1px}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-3\.5{padding-top:calc(var(--spacing) * 3.5)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-px{padding-top:1px}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-1{padding-bottom:var(--spacing)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.pb-10\.5{padding-bottom:calc(var(--spacing) * 10.5)}.pl-1{padding-left:var(--spacing)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-body-2-medium{font-size:var(--text-body-2-medium);line-height:var(--tw-leading,var(--text-body-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-medium--font-weight))}.text-body-2-regular{font-size:var(--text-body-2-regular);line-height:var(--tw-leading,var(--text-body-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-regular--font-weight))}.text-body-bold{font-size:var(--text-body-bold);line-height:var(--tw-leading,var(--text-body-bold--line-height));letter-spacing:var(--tw-tracking,var(--text-body-bold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-bold--font-weight))}.text-body-medium{font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight))}.text-body-regular{font-size:var(--text-body-regular);line-height:var(--tw-leading,var(--text-body-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-regular--font-weight))}.text-body-semibold{font-size:var(--text-body-semibold);line-height:var(--tw-leading,var(--text-body-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-body-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-semibold--font-weight))}.text-caption-1-medium{font-size:var(--text-caption-1-medium);line-height:var(--tw-leading,var(--text-caption-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-medium--font-weight))}.text-caption-1-regular{font-size:var(--text-caption-1-regular);line-height:var(--tw-leading,var(--text-caption-1-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-regular--font-weight))}.text-caption-1-semibold{font-size:var(--text-caption-1-semibold);line-height:var(--tw-leading,var(--text-caption-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-semibold--font-weight))}.text-display-4-medium{font-size:var(--text-display-4-medium);line-height:var(--tw-leading,var(--text-display-4-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-display-4-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-display-4-medium--font-weight))}.text-display-4-medium\!{font-size:var(--text-display-4-medium)!important;line-height:var(--tw-leading,var(--text-display-4-medium--line-height))!important;letter-spacing:var(--tw-tracking,var(--text-display-4-medium--letter-spacing))!important;font-weight:var(--tw-font-weight,var(--text-display-4-medium--font-weight))!important}.text-headline-medium{font-size:var(--text-headline-medium);line-height:var(--tw-leading,var(--text-headline-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-headline-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-headline-medium--font-weight))}.text-title-1-medium{font-size:var(--text-title-1-medium);line-height:var(--tw-leading,var(--text-title-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-medium--font-weight))}.text-title-1-regular{font-size:var(--text-title-1-regular);line-height:var(--tw-leading,var(--text-title-1-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-regular--font-weight))}.text-title-1-semibold{font-size:var(--text-title-1-semibold);line-height:var(--tw-leading,var(--text-title-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-semibold--font-weight))}.text-title-2-medium{font-size:var(--text-title-2-medium);line-height:var(--tw-leading,var(--text-title-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-medium--font-weight))}.text-title-2-medium\!{font-size:var(--text-title-2-medium)!important;line-height:var(--tw-leading,var(--text-title-2-medium--line-height))!important;letter-spacing:var(--tw-tracking,var(--text-title-2-medium--letter-spacing))!important;font-weight:var(--tw-font-weight,var(--text-title-2-medium--font-weight))!important}.text-title-2-regular{font-size:var(--text-title-2-regular);line-height:var(--tw-leading,var(--text-title-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-regular--font-weight))}.text-title-2-semibold{font-size:var(--text-title-2-semibold);line-height:var(--tw-leading,var(--text-title-2-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-semibold--font-weight))}.text-title-3-medium{font-size:var(--text-title-3-medium);line-height:var(--tw-leading,var(--text-title-3-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-3-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-3-medium--font-weight))}.text-title-3-semibold{font-size:var(--text-title-3-semibold);line-height:var(--tw-leading,var(--text-title-3-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-3-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-3-semibold--font-weight))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[8px\]{font-size:8px}.leading-4\.5{--tw-leading:calc(var(--spacing) * 4.5);line-height:calc(var(--spacing) * 4.5)}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-empty-copy{--tw-leading:var(--leading-empty-copy);line-height:var(--leading-empty-copy)}.leading-none{--tw-leading:1;line-height:1}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-caps{--tw-tracking:var(--tracking-caps);letter-spacing:var(--tracking-caps)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.text-\(--glass-text\)\/60{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.text-\(--glass-text\)\/60{color:color-mix(in oklab, var(--glass-text) 60%, transparent)}}.text-\(--glass-text\)\/62{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.text-\(--glass-text\)\/62{color:color-mix(in oklab, var(--glass-text) 62%, transparent)}}.text-\(--keep\){color:var(--keep)}.text-accent-600{color:var(--color-accent-600)}.text-background{color:var(--color-background-primary-default)}.text-background-tertiary-default{color:var(--color-background-tertiary-default)}.text-border,.text-border\/60{color:var(--color-separator-border)}@supports (color:color-mix(in lab, red, red)){.text-border\/60{color:color-mix(in oklab, var(--color-separator-border) 60%, transparent)}}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.text-chart-5{color:var(--color-chart-5)}.text-chart-6{color:var(--color-chart-6)}.text-chart-7{color:var(--color-chart-7)}.text-chart-8{color:var(--color-chart-8)}.text-foreground{color:var(--color-text-primary)}.text-foreground-full{color:var(--color-foreground-full)}.text-foreground-icon-error{color:var(--color-foreground-icon-error)}.text-foreground-icon-primary{color:var(--color-foreground-icon-primary)}.text-foreground-icon-quaternary{color:var(--color-foreground-icon-quaternary)}.text-foreground-icon-secondary{color:var(--color-foreground-icon-secondary)}.text-foreground-icon-tertiary{color:var(--color-foreground-icon-tertiary)}.text-inherit{color:inherit}.text-input-disabled-foreground{color:var(--color-input-disabled-foreground)}.text-muted-foreground{color:var(--color-text-secondary)}.text-notification-information-foreground{color:var(--color-notification-information-foreground)}.text-notification-success-foreground{color:var(--color-notification-success-foreground)}.text-status-blue-text{color:var(--color-status-blue-text)}.text-status-cyan-text{color:var(--color-status-cyan-text)}.text-status-lime-text{color:var(--color-status-lime-text)}.text-status-purple-text{color:var(--color-status-purple-text)}.text-status-rose-text{color:var(--color-status-rose-text)}.text-status-yellow-text{color:var(--color-status-yellow-text)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-error-primary{color:var(--color-text-error-primary)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.text-text-tertiary{color:var(--color-text-tertiary)}.text-text-white{color:var(--color-text-white)}.uppercase{text-transform:uppercase}.not-italic{font-style:normal}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.underline-offset-3{text-underline-offset:3px}.underline-offset-4{text-underline-offset:4px}.reveal-content{opacity:0;filter:blur(2px);transition:opacity var(--motion-reveal), filter var(--motion-reveal)}.reveal-content[data-revealed]{opacity:1;filter:none}.reveal-skeleton{transition:opacity var(--motion-reveal), filter var(--motion-reveal)}.reveal-skeleton[data-revealed]{opacity:0;filter:blur(2px)}.opacity-0{opacity:0}.opacity-15{opacity:.15}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_2px_2px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 2px 2px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\,0_0\.75px_0_0_rgb\(0_0_0\/0\.05\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008), 0 .75px 0 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_4px_4px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 4px 4px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1\.5px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.75px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1.5px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .75px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.5px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .5px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-card{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-checkbox-selected{--tw-shadow:inset 0 2px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 1px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-dropdown{--tw-shadow:var(--elevation-dropdown);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:var(--elevation-xl);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:var(--elevation-xs);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow\/xs{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-background-full{--tw-ring-color:var(--color-background-full)}.ring-border-button-active{--tw-ring-color:var(--color-border-button-active)}.ring-border-button-hover{--tw-ring-color:var(--color-border-button-hover)}.ring-border-focus-ring{--tw-ring-color:var(--color-border-focus-ring)}.ring-transparent{--tw-ring-color:transparent}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow-sm{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#00000026));--tw-drop-shadow:drop-shadow(var(--drop-shadow-sm));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-\[2px\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,color\]{transition-property:background-color,border-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,padding\,font-size\]{transition-property:background-color,border-color,box-shadow,padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\]{transition-property:background-color,border-color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,box-shadow\,color\]{transition-property:background-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[padding\,font-size\]{transition-property:padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-\[var\(--input-transition-ms\)\]{--tw-duration:var(--input-transition-ms);transition-duration:var(--input-transition-ms)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.ring-inset{--tw-ring-inset:inset}@media (hover:hover){.group-hover\:border-border-checkbox-hover:is(:where(.group):hover *){border-color:var(--color-border-checkbox-hover)}.group-hover\:bg-background-primary-hover:is(:where(.group):hover *){background-color:var(--color-background-primary-hover)}.group-hover\:bg-foreground:is(:where(.group):hover *){background-color:var(--color-text-primary)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-data-selected\:border-border-focus-ring:is(:where(.group)[data-selected] *){border-color:var(--color-border-focus-ring)}.group-data-selected\:bg-accent-600:is(:where(.group)[data-selected] *){background-color:var(--color-accent-600)}.group-data-selected\:bg-background-primary-hover:is(:where(.group)[data-selected] *){background-color:var(--color-background-primary-hover)}.group-data-selected\:opacity-100:is(:where(.group)[data-selected] *){opacity:1}.placeholder\:text-text-tertiary::placeholder{color:var(--color-text-tertiary)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:inset-y-0:after{content:var(--tw-content);inset-block:0}.after\:-left-4:after{content:var(--tw-content);left:calc(var(--spacing) * -4)}.after\:w-11:after{content:var(--tw-content);width:calc(var(--spacing) * 11)}.after\:content-\[\'\'\]:after{--tw-content:"";content:var(--tw-content)}.first\:border-t-0:first-child{border-top-style:var(--tw-border-style);border-top-width:0}.first\:pt-1:first-child{padding-top:var(--spacing)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.last\:pb-1:last-child{padding-bottom:var(--spacing)}.empty\:hidden:empty{display:none}@media (hover:hover){.hover\:border-solid:hover{--tw-border-style:solid;border-style:solid}.hover\:border-\(--glass-rim\):hover{border-color:var(--glass-rim)}.hover\:border-border-button-hover:hover{border-color:var(--color-border-button-hover)}.hover\:bg-\(--glass-pick-fill\):hover{background-color:var(--glass-pick-fill)}.hover\:bg-background-primary-hover:hover,.hover\:bg-background-primary-hover\/60:hover{background-color:var(--color-background-primary-hover)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-background-primary-hover\/60:hover{background-color:color-mix(in oklab, var(--color-background-primary-hover) 60%, transparent)}}.hover\:bg-button-ghost-hover:hover{background-color:var(--color-button-ghost-hover)}.hover\:bg-dropdown-item-hover-background:hover{background-color:var(--color-dropdown-item-hover-background)}.hover\:text-\(--glass-text\):hover{color:var(--glass-text)}.hover\:text-foreground-icon-primary:hover{color:var(--color-foreground-icon-primary)}.hover\:text-text-primary:hover{color:var(--color-text-primary)}.hover\:text-text-secondary:hover{color:var(--color-text-secondary)}.hover\:underline:hover{text-decoration-line:underline}.not-data-selected\:hover\:bg-card-hover:not([data-selected]):hover{background-color:var(--card-hover,transparent)}}.focus\:placeholder\:text-text-primary:focus::placeholder{color:var(--color-text-primary)}.focus-visible\:bg-dropdown-item-hover-background:focus-visible{background-color:var(--color-dropdown-item-hover-background)}.focus-visible\:stroke-border-focus-ring:focus-visible{stroke:var(--color-border-focus-ring)}.focus-visible\:opacity-100:focus-visible{opacity:1}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-border-focus-ring:focus-visible{--tw-ring-color:var(--color-border-focus-ring)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:ring-offset-3:focus-visible{--tw-ring-offset-width:3px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\:-outline-offset-3:focus-visible{outline-offset:calc(3px * -1)}.focus-visible\:outline-border-focus-ring:focus-visible{outline-color:var(--color-border-focus-ring)}.focus-visible\:ring-inset:focus-visible{--tw-ring-inset:inset}.active\:cursor-grabbing:active{cursor:grabbing}.active\:border-border-button-active:active{border-color:var(--color-border-button-active)}.active\:bg-background-primary-active:active{background-color:var(--color-background-primary-active)}.active\:bg-button-ghost-active:active{background-color:var(--color-button-ghost-active)}.active\:text-accent-800:active{color:var(--color-accent-800)}.active\:text-text-primary:active{color:var(--color-text-primary)}.disabled\:cursor-default:disabled{cursor:default}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:border-border-button-default:disabled{border-color:var(--color-border-button-default)}.disabled\:bg-background-primary-disabled:disabled{background-color:var(--color-background-primary-disabled)}.disabled\:bg-button-ghost-disabled:disabled{background-color:var(--color-button-ghost-disabled)}.disabled\:text-button-ghost-disabled-foreground:disabled{color:var(--color-button-ghost-disabled-foreground)}.disabled\:text-button-primary-disabled-foreground:disabled{color:var(--color-button-primary-disabled-foreground)}.disabled\:text-foreground-disabled-danger:disabled{color:var(--color-foreground-disabled-danger)}.disabled\:text-icon-button-disabled-foreground:disabled{color:var(--color-icon-button-disabled-foreground)}.disabled\:text-input-disabled-text:disabled{color:var(--color-input-disabled-text)}.disabled\:text-text-tertiary:disabled{color:var(--color-text-tertiary)}.disabled\:no-underline:disabled{text-decoration-line:none}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:shadow-none:disabled{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.disabled\:placeholder\:text-input-disabled-text:disabled::placeholder{color:var(--color-input-disabled-text)}.aria-busy\:cursor-wait[aria-busy=true]{cursor:wait}.aria-busy\:opacity-55[aria-busy=true]{opacity:.55}.aria-checked\:bg-background-tertiary-default[aria-checked=true]{background-color:var(--color-background-tertiary-default)}.aria-checked\:text-text-primary[aria-checked=true]{color:var(--color-text-primary)}.aria-disabled\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}.aria-disabled\:cursor-progress[aria-disabled=true]{cursor:progress}.aria-disabled\:border-border-button-default[aria-disabled=true]{border-color:var(--color-border-button-default)}.aria-disabled\:bg-background-primary-disabled[aria-disabled=true]{background-color:var(--color-background-primary-disabled)}.aria-disabled\:bg-button-ghost-disabled[aria-disabled=true]{background-color:var(--color-button-ghost-disabled)}.aria-disabled\:text-button-ghost-disabled-foreground[aria-disabled=true]{color:var(--color-button-ghost-disabled-foreground)}.aria-disabled\:text-button-primary-disabled-foreground[aria-disabled=true]{color:var(--color-button-primary-disabled-foreground)}.aria-disabled\:text-foreground-disabled-danger[aria-disabled=true]{color:var(--color-foreground-disabled-danger)}.aria-disabled\:text-text-tertiary[aria-disabled=true]{color:var(--color-text-tertiary)}.aria-disabled\:no-underline[aria-disabled=true]{text-decoration-line:none}.aria-disabled\:opacity-60[aria-disabled=true]{opacity:.6}.aria-disabled\:shadow-none[aria-disabled=true]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-expanded\:bg-background-primary-hover[aria-expanded=true]{background-color:var(--color-background-primary-hover)}.aria-expanded\:text-foreground-icon-primary[aria-expanded=true]{color:var(--color-foreground-icon-primary)}.aria-invalid\:placeholder\:text-text-error-placeholder[aria-invalid=true]::placeholder{color:var(--color-text-error-placeholder)}.aria-pressed\:bg-chart-1\/10[aria-pressed=true]{background-color:var(--color-chart-1)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-1\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-1) 10%, transparent)}}.aria-pressed\:bg-chart-2\/10[aria-pressed=true]{background-color:var(--color-chart-2)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-2\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-2) 10%, transparent)}}.aria-pressed\:bg-chart-3\/10[aria-pressed=true]{background-color:var(--color-chart-3)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-3\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-3) 10%, transparent)}}.aria-pressed\:bg-chart-4\/10[aria-pressed=true]{background-color:var(--color-chart-4)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-4\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-4) 10%, transparent)}}.aria-pressed\:bg-chart-5\/10[aria-pressed=true]{background-color:var(--color-chart-5)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-5\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-5) 10%, transparent)}}.aria-pressed\:bg-chart-6\/10[aria-pressed=true]{background-color:var(--color-chart-6)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-6\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-6) 10%, transparent)}}.aria-pressed\:ring-1[aria-pressed=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-pressed\:ring-chart-1[aria-pressed=true]{--tw-ring-color:var(--color-chart-1)}.aria-pressed\:ring-chart-2[aria-pressed=true]{--tw-ring-color:var(--color-chart-2)}.aria-pressed\:ring-chart-3[aria-pressed=true]{--tw-ring-color:var(--color-chart-3)}.aria-pressed\:ring-chart-4[aria-pressed=true]{--tw-ring-color:var(--color-chart-4)}.aria-pressed\:ring-chart-5[aria-pressed=true]{--tw-ring-color:var(--color-chart-5)}.aria-pressed\:ring-chart-6[aria-pressed=true]{--tw-ring-color:var(--color-chart-6)}.aria-pressed\:ring-inset[aria-pressed=true]{--tw-ring-inset:inset}.aria-selected\:border-border-focus-ring[aria-selected=true]{border-color:var(--color-border-focus-ring)}.aria-selected\:bg-background-primary-default[aria-selected=true]{background-color:var(--color-background-primary-default)}.aria-selected\:bg-background-tertiary-default[aria-selected=true]{background-color:var(--color-background-tertiary-default)}.aria-selected\:font-medium[aria-selected=true]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.aria-selected\:text-border-focus-ring[aria-selected=true]{color:var(--color-border-focus-ring)}.aria-selected\:text-text-primary[aria-selected=true]{color:var(--color-text-primary)}.aria-selected\:shadow-card[aria-selected=true]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-disabled\:cursor-not-allowed[data-disabled]{cursor:not-allowed}.data-focus-visible\:ring-2[data-focus-visible]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-focus-visible\:ring-border-focus-ring[data-focus-visible]{--tw-ring-color:var(--color-border-focus-ring)}.data-selected\:border-border-button-active[data-selected]{border-color:var(--color-border-button-active)}.data-selected\:bg-background-primary-default[data-selected]{background-color:var(--color-background-primary-default)}.data-selected\:bg-dropdown-item-hover-background[data-selected]{background-color:var(--color-dropdown-item-hover-background)}.data-selected\:text-\(--glass-text\)[data-selected]{color:var(--glass-text)}.data-selected\:text-text-primary[data-selected]{color:var(--color-text-primary)}.data-selected\:shadow-card[data-selected]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-selected\:shadow-none[data-selected]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-selected\:after\:pointer-events-none[data-selected]:after{content:var(--tw-content);pointer-events:none}.data-selected\:after\:absolute[data-selected]:after{content:var(--tw-content);position:absolute}.data-selected\:after\:inset-0[data-selected]:after{content:var(--tw-content);inset:0}.data-selected\:after\:z-1[data-selected]:after{content:var(--tw-content);z-index:1}.data-selected\:after\:rounded-\[inherit\][data-selected]:after{content:var(--tw-content);border-radius:inherit}.data-selected\:after\:border-2[data-selected]:after{content:var(--tw-content);border-style:var(--tw-border-style);border-width:2px}.data-selected\:after\:border-border-focus-ring[data-selected]:after{content:var(--tw-content);border-color:var(--color-border-focus-ring)}.data-\[entering\]\:scale-95[data-entering]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[entering\]\:opacity-0[data-entering]{opacity:0}.data-\[entering\]\:blur-\[2px\][data-entering]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[exiting\]\:scale-95[data-exiting]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[exiting\]\:opacity-0[data-exiting]{opacity:0}.data-\[exiting\]\:blur-\[2px\][data-exiting]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[placement\=bottom\]\:origin-top-left[data-placement=bottom]{transform-origin:0 0}.data-\[placement\=left\]\:origin-right[data-placement=left]{transform-origin:100%}.data-\[placement\=right\]\:origin-left[data-placement=right]{transform-origin:0}.data-\[placement\=top\]\:origin-bottom-left[data-placement=top]{transform-origin:0 100%}@media not all and (width>=1120px){.max-plain-stat-pair\:grid-flow-row{grid-auto-flow:row}.max-plain-stat-pair\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media not all and (width>=1001px){.max-\[1001px\]\:justify-start{justify-content:flex-start}.max-\[1001px\]\:pt-0{padding-top:0}}@media not all and (width>=901px){.max-duplicate-narrow\:col-span-full{grid-column:1/-1}.max-duplicate-narrow\:col-start-2{grid-column-start:2}.max-duplicate-narrow\:-col-end-1{grid-column-end:calc(1 * -1)}}@media not all and (width>=761px){.max-board-narrow\:order-1{order:1}.max-board-narrow\:order-2{order:2}.max-board-narrow\:order-3{order:3}.max-board-narrow\:block{display:block}.max-cleanup-tight\:min-h-0{min-height:0}.max-board-narrow\:max-w-none{max-width:none}.max-board-narrow\:min-w-0{min-width:0}.max-board-narrow\:basis-40{flex-basis:calc(var(--spacing) * 40)}.max-board-narrow\:flex-col{flex-direction:column}.max-board-narrow\:items-stretch{align-items:stretch}.max-board-narrow\:gap-0{gap:0}.max-cleanup-tight\:gap-3{gap:calc(var(--spacing) * 3)}.max-cleanup-tight\:p-4\.5{padding:calc(var(--spacing) * 4.5)}.max-board-narrow\:px-2\.25{padding-inline:calc(var(--spacing) * 2.25)}.max-cleanup-tight\:px-4\.5{padding-inline:calc(var(--spacing) * 4.5)}.max-board-narrow\:text-body-2-regular{font-size:var(--text-body-2-regular);line-height:var(--tw-leading,var(--text-body-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-regular--font-weight))}.max-board-narrow\:text-title-1-medium{font-size:var(--text-title-1-medium);line-height:var(--tw-leading,var(--text-title-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-medium--font-weight))}}@media not all and (width>=601px){.max-compact\:ml-0{margin-left:0}.max-compact\:w-full{width:100%}.max-compact\:flex-col{flex-direction:column}.max-compact\:items-start{align-items:flex-start}.max-compact\:gap-3{gap:calc(var(--spacing) * 3)}.max-compact\:p-4{padding:calc(var(--spacing) * 4)}}@media not all and (width>=560px){.max-plain-stat-single\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}}@media not all and (width>=40rem){.max-sm\:-mx-4{margin-inline:calc(var(--spacing) * -4)}.max-sm\:size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.max-sm\:h-65{height:calc(var(--spacing) * 65)}.max-sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.max-sm\:justify-start{justify-content:flex-start}.max-sm\:gap-1\.5{gap:calc(var(--spacing) * 1.5)}.max-sm\:gap-2{gap:calc(var(--spacing) * 2)}.max-sm\:p-4{padding:calc(var(--spacing) * 4)}.max-sm\:px-3{padding-inline:calc(var(--spacing) * 3)}.max-sm\:px-4{padding-inline:calc(var(--spacing) * 4)}.max-sm\:py-2{padding-block:calc(var(--spacing) * 2)}.max-sm\:pb-3{padding-bottom:calc(var(--spacing) * 3)}}@media (width>=600px){.review-tight\:w-review-cover{width:var(--container-review-cover)}}@media (width>=900px){.review-split\:sticky{position:sticky}.review-split\:top-topbar{top:var(--spacing-topbar)}.review-split\:w-review-tabs{width:var(--container-review-tabs)}.review-split\:shrink-0{flex-shrink:0}.review-split\:flex-col{flex-direction:column}.review-split\:flex-row-reverse{flex-direction:row-reverse}.review-split\:items-start{align-items:flex-start}.review-split\:items-stretch{align-items:stretch}.review-split\:gap-6{gap:calc(var(--spacing) * 6)}}@media (width>=40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:gap-4{gap:calc(var(--spacing) * 4)}}@media (width>=48rem){.md\:w-64{width:calc(var(--spacing) * 64)}.md\:w-72{width:calc(var(--spacing) * 72)}.md\:w-80{width:calc(var(--spacing) * 80)}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:gap-6{gap:calc(var(--spacing) * 6)}.md\:pr-6{padding-right:calc(var(--spacing) * 6)}.md\:pb-0{padding-bottom:0}}@media (width>=64rem){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width>=80rem){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}}@container (width>=28rem){.\@md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width>=32rem){.\@lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.dark\:bg-background-primary-default:where(.dark,.dark *){background-color:var(--color-background-primary-default)}.dark\:bg-background-secondary-default:where(.dark,.dark *){background-color:var(--color-background-secondary-default)}.dark\:text-border:where(.dark,.dark *),.dark\:text-border\/50:where(.dark,.dark *){color:var(--color-separator-border)}@supports (color:color-mix(in lab, red, red)){.dark\:text-border\/50:where(.dark,.dark *){color:color-mix(in oklab, var(--color-separator-border) 50%, transparent)}}@media (hover:hover){.dark\:hover\:bg-background-primary-hover:where(.dark,.dark *):hover{background-color:var(--color-background-primary-hover)}}.dark\:aria-selected\:bg-background-primary-hover:where(.dark,.dark *)[aria-selected=true],.dark\:data-selected\:bg-background-primary-hover:where(.dark,.dark *)[data-selected]{background-color:var(--color-background-primary-hover)}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:var(--color-text-secondary)}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke=\#ccc]{stroke:var(--color-separator-border)}@supports (color:color-mix(in lab, red, red)){.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke=\#ccc]{stroke:color-mix(in oklab, var(--color-separator-border) 50%, transparent)}}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:var(--color-separator-border)}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke=\#fff]{stroke:#0000}.\[\&_\.recharts-layer\]\:outline-hidden .recharts-layer{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-layer\]\:outline-hidden .recharts-layer{outline-offset:2px;outline:2px solid #0000}}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke=\#ccc]{stroke:var(--color-separator-border)}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:var(--color-chart-track)}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke=\#ccc]{stroke:var(--color-separator-border)}.\[\&_\.recharts-sector\]\:outline-hidden .recharts-sector{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-sector\]\:outline-hidden .recharts-sector{outline-offset:2px;outline:2px solid #0000}}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke=\#fff]{stroke:#0000}.\[\&_\.recharts-surface\]\:outline-hidden .recharts-surface{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-surface\]\:outline-hidden .recharts-surface{outline-offset:2px;outline:2px solid #0000}}.\[\&_img\]\:absolute img{position:absolute}.\[\&_img\]\:inset-0 img{inset:0}.\[\&_img\]\:block img{display:block}.\[\&_img\]\:size-full img{width:100%;height:100%}.\[\&_img\]\:max-h-none img{max-height:none}.\[\&_img\]\:max-w-none img{max-width:none}.\[\&_img\]\:object-cover img{object-fit:cover}.\[\&_img\]\:object-\(--face\) img{object-position:var(--face)}.\[\&\>svg\]\:h-2\.5>svg{height:calc(var(--spacing) * 2.5)}.\[\&\>svg\]\:h-3>svg{height:calc(var(--spacing) * 3)}.\[\&\>svg\]\:w-2\.5>svg{width:calc(var(--spacing) * 2.5)}.\[\&\>svg\]\:w-3>svg{width:calc(var(--spacing) * 3)}.\[\&\>svg\]\:text-muted-foreground>svg{color:var(--color-text-secondary)}@scope(.peach-react){*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}:root{--color-foreground-full:var(--color-white);--color-foreground-icon-primary:var(--color-neutral-950);--color-foreground-icon-hover:var(--color-black);--color-foreground-icon-secondary:var(--color-neutral-500);--color-foreground-icon-tertiary:var(--color-neutral-400);--color-foreground-icon-quaternary:var(--color-neutral-300);--color-foreground-icon-error:var(--color-red-600);--color-foreground-icon-disabled:var(--color-neutral-300);--color-foreground-disabled:var(--color-neutral-400);--color-foreground-disabled-danger:var(--color-red-300);--color-input-disabled-foreground:var(--color-neutral-300);--color-icon-button-disabled-foreground:var(--color-neutral-300);--color-button-primary-disabled-foreground:var(--color-neutral-400);--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-disabled-danger:var(--color-red-300);--color-text-placeholder:var(--color-neutral-400);--color-text-error-primary:var(--color-red-500);--color-input-disabled-text:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-inner-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-primary-active:var(--color-neutral-200);--color-background-primary-disabled:var(--color-neutral-100);--color-input-disabled-background:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-secondary-hover:var(--color-neutral-200);--color-background-tertiary-default:var(--color-neutral-200);--color-background-tertiary-hover:var(--color-neutral-300);--color-background-tertiary-error:var(--color-red-100);--color-background-recent-hire-role:var(--color-neutral-100);--color-avatar-neutral-background:var(--color-neutral-300);--color-background-quaternary-default:var(--color-neutral-300);--color-background-quaternary-hover:var(--color-neutral-400);--color-background-quaternary-error:var(--color-red-200);--color-file-upload-icon-background:var(--color-neutral-300);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-500);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-button-white:var(--color-white);--color-border-error-default:var(--color-red-500);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-checkbox-active:var(--color-neutral-400);--color-border-checkbox-white:var(--color-white);--color-border-component-detail-container:var(--color-neutral-200);--color-border-ai-profile-card:var(--color-neutral-200);--color-border-table:var(--color-neutral-200);--color-border-button-group:var(--color-neutral-200);--color-border-sidebar-profile-hover:var(--color-neutral-300);--color-separator-border:var(--color-neutral-200);--color-separator-border-strong:var(--color-neutral-200);--color-border-focus-ring:var(--color-accent-500);--color-state-success-text:var(--color-lime-800);--color-state-success-base:var(--color-lime-200);--color-control-indicator-background:var(--color-white);--color-control-indicator-background-subtle:var(--color-neutral-100);--color-switch-off-chip-start:var(--color-white);--color-switch-off-chip-end:var(--color-neutral-100);--color-switch-on-chip-start:#2673fe}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-start:color-mix(in oklab, var(--color-accent-500) 63%, var(--color-accent-600))}}:root{--color-switch-on-chip-end:#144be9}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-end:color-mix(in oklab, var(--color-accent-600) 16%, var(--color-accent-700))}}:root{--color-stat-card-icon-background:var(--color-white);--color-segmented-control-background:var(--color-neutral-100);--color-segmented-control-selected-background:var(--color-white);--color-theme-toggle-sidebar-background:var(--color-neutral-200);--color-theme-toggle-sidebar-selected-background:var(--color-white);--color-ai-chat-composer-add-background:var(--color-neutral-100);--color-ai-chat-composer-add-hover-background:var(--color-neutral-200);--color-composer-panel-tab-background:var(--color-neutral-200);--color-composer-panel-add-background:var(--color-neutral-200);--color-composer-panel-add-hover-background:var(--color-neutral-300);--color-composer-panel-tile-border:var(--color-neutral-200);--color-composer-panel-rail-background:var(--color-neutral-100);--color-questionnaire-key-background:var(--color-neutral-100);--color-questionnaire-key-hover-background:var(--color-neutral-200);--color-agent-progress-ring:var(--color-neutral-700);--color-button-ghost-background:var(--color-accent-100);--color-button-ghost-hover:var(--color-accent-200);--color-button-ghost-active:var(--color-accent-300);--color-button-ghost-disabled:var(--color-accent-50);--color-button-ghost-foreground:var(--color-accent-700);--color-button-ghost-disabled-foreground:var(--color-accent-300);--color-dropdown-item-hover-background:var(--color-neutral-100);--color-kbd-background:var(--color-neutral-300);--color-kbd-foreground:var(--color-neutral-500);--color-docs-file-chip-background:var(--color-purple-50);--color-docs-file-chip-border:var(--color-purple-100);--color-docs-file-chip-foreground:var(--color-purple-500);--color-docs-command-accent:var(--color-purple-400);--color-docs-code-background:var(--color-background-primary-default);--color-docs-install-rail:var(--color-border-button-default);--color-badge-neutral-background:var(--color-neutral-200);--color-team-menu-count-background:var(--color-neutral-200);--color-team-menu-count-foreground:var(--color-neutral-500);--color-badge-new-background:var(--color-accent-100);--color-badge-new-text:var(--color-accent-600);--color-tab-count-selected-background:var(--color-accent-100);--color-pill-tab-blue-selected-background:var(--color-accent-50);--color-pill-tab-blue-hover-background:var(--color-neutral-100);--color-notification-information-background:var(--color-blue-100);--color-notification-information-foreground:var(--color-blue-600);--color-notification-success-background:var(--color-lime-100);--color-notification-success-foreground:var(--color-lime-600);--color-notification-error-background:var(--color-rose-100);--color-notification-error-foreground:var(--color-rose-600);--color-notification-center-background:var(--color-white);--color-status-lime-background:var(--color-lime-200);--color-status-lime-text:var(--color-lime-800);--color-status-yellow-background:var(--color-yellow-200);--color-status-yellow-text:var(--color-yellow-800);--color-status-rose-background:var(--color-rose-200);--color-status-rose-text:var(--color-rose-800);--color-status-cyan-background:var(--color-cyan-200);--color-status-cyan-text:var(--color-cyan-800);--color-status-blue-background:var(--color-blue-200);--color-status-blue-text:var(--color-blue-800);--color-status-purple-background:var(--color-purple-100);--color-status-purple-text:var(--color-purple-600);--color-status-dot-green-halo:var(--color-green-100);--color-status-dot-yellow-halo:var(--color-yellow-200);--color-status-dot-indigo-halo:var(--color-indigo-100);--color-date-range-background:var(--color-accent-100);--color-date-range-edge-background:var(--color-accent-300);--color-calendar-event-blue-background:var(--color-blue-100);--color-calendar-event-blue-title:var(--color-blue-700);--color-calendar-event-blue-time:var(--color-blue-700);--color-calendar-event-pink-background:var(--color-pink-100);--color-calendar-event-pink-title:var(--color-pink-700);--color-calendar-event-pink-time:var(--color-pink-700);--color-calendar-event-purple-background:var(--color-purple-100);--color-calendar-event-purple-title:var(--color-purple-700);--color-calendar-event-purple-time:var(--color-purple-700);--color-calendar-event-lime-background:var(--color-lime-100);--color-calendar-event-lime-title:var(--color-lime-800);--color-calendar-event-lime-time:var(--color-lime-700);--color-calendar-event-emerald-background:var(--color-emerald-100);--color-calendar-event-emerald-title:var(--color-emerald-800);--color-calendar-event-emerald-time:var(--color-emerald-700);--color-text-error-placeholder:var(--color-red-400);--color-chart-track:var(--color-neutral-200);--color-chart-cursor:var(--color-neutral-300);--color-chart-neutral:var(--color-neutral-300);--color-chart-1:var(--color-teal-400);--color-chart-1-active:var(--color-teal-500);--color-chart-2:var(--color-lime-400);--color-chart-2-active:var(--color-lime-500);--color-chart-3:var(--color-pink-400);--color-chart-3-active:var(--color-pink-500);--color-chart-4:var(--color-sky-400);--color-chart-4-active:var(--color-sky-500);--color-chart-5:var(--color-purple-400);--color-chart-5-active:var(--color-purple-500);--color-chart-6:var(--color-blue-400);--color-chart-6-active:var(--color-blue-500);--color-chart-7:var(--color-emerald-400);--color-chart-7-active:var(--color-emerald-500);--color-chart-8:var(--color-yellow-400);--color-chart-8-active:var(--color-yellow-500);--color-chart-9:var(--color-indigo-400);--color-chart-9-active:var(--color-indigo-500);--color-chart-agents-bar:var(--color-purple-300);--color-chart-agents-bar-active:var(--color-purple-400);--gradient-button-primary-default:linear-gradient(180deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%);--gradient-button-primary-hover:linear-gradient(180deg, var(--color-accent-400) 0%, var(--color-accent-500) 100%);--gradient-button-primary-active:linear-gradient(180deg, var(--color-accent-600) 0%, var(--color-accent-700) 100%);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-200) 0%, var(--color-neutral-300) 100%);--gradient-button-danger-default:linear-gradient(180deg, var(--color-red-500) 0%, var(--color-red-600) 100%);--gradient-button-danger-hover:linear-gradient(180deg, var(--color-red-400) 0%, var(--color-red-500) 100%);--gradient-button-danger-active:linear-gradient(180deg, var(--color-red-600) 0%, var(--color-red-700) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-100) 0%, var(--color-red-200) 100%)}.dark{--color-foreground-full:var(--color-neutral-700);--color-foreground-icon-primary:var(--color-neutral-50);--color-foreground-icon-hover:var(--color-white);--color-foreground-icon-error:var(--color-red-400);--color-foreground-icon-tertiary:var(--color-neutral-600);--color-foreground-icon-quaternary:var(--color-neutral-700);--color-foreground-icon-disabled:var(--color-neutral-800);--color-foreground-disabled:var(--color-neutral-700);--color-foreground-disabled-danger:var(--color-red-400);--color-input-disabled-foreground:var(--color-neutral-600);--color-icon-button-disabled-foreground:var(--color-neutral-500);--color-button-primary-disabled-foreground:var(--color-neutral-500);--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-text-error-primary:var(--color-red-400);--color-input-disabled-text:#73737366}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-text:color-mix(in srgb, var(--color-neutral-500) 40%, transparent)}}.dark{--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-inner-default:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-inner-default:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-background-primary-active:var(--color-neutral-800);--color-background-primary-disabled:var(--color-neutral-800);--color-input-disabled-background:#2626264d}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-background:color-mix(in srgb, var(--color-neutral-800) 30%, transparent)}}.dark{--color-switch-off-chip-start:var(--color-background-tertiary-default);--color-switch-off-chip-end:var(--color-background-tertiary-default);--color-background-secondary-default:var(--color-neutral-900);--color-background-secondary-hover:var(--color-neutral-800);--color-background-tertiary-default:var(--color-neutral-800);--color-background-tertiary-hover:var(--color-neutral-700);--color-background-tertiary-error:#46080999}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-tertiary-error:color-mix(in srgb, var(--color-red-950) 60%, transparent)}}.dark{--color-background-quaternary-default:var(--color-neutral-700);--color-background-quaternary-hover:var(--color-neutral-600);--color-background-recent-hire-role:#17171799}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-recent-hire-role:color-mix(in srgb, var(--color-neutral-900) 60%, transparent)}}.dark{--color-avatar-neutral-background:var(--color-background-primary-default);--color-file-upload-icon-background:var(--color-neutral-600);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-300);--color-stat-card-icon-background:var(--color-neutral-800);--color-segmented-control-background:var(--color-neutral-925);--color-segmented-control-selected-background:var(--color-neutral-800);--color-theme-toggle-sidebar-background:var(--color-neutral-800);--color-theme-toggle-sidebar-selected-background:var(--color-neutral-700);--color-ai-chat-composer-add-background:var(--color-neutral-700);--color-ai-chat-composer-add-hover-background:var(--color-neutral-600);--color-composer-panel-tab-background:#40404080}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tab-background:color-mix(in srgb, var(--color-neutral-700) 50%, transparent)}}.dark{--color-composer-panel-add-background:var(--color-neutral-700);--color-composer-panel-add-hover-background:var(--color-neutral-600);--color-composer-panel-tile-border:#ffffff24}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tile-border:color-mix(in srgb, var(--color-white) 14%, transparent)}}.dark{--color-composer-panel-rail-background:#17171780}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-rail-background:color-mix(in srgb, var(--color-neutral-900) 50%, transparent)}}.dark{--color-questionnaire-key-background:var(--color-neutral-700);--color-questionnaire-key-hover-background:var(--color-neutral-600);--color-agent-progress-ring:#ffffff80}@supports (color:color-mix(in lab, red, red)){.dark{--color-agent-progress-ring:color-mix(in srgb, var(--color-white) 50%, transparent)}}.dark{--color-button-ghost-background:var(--color-accent-900);--color-button-ghost-hover:var(--color-accent-800);--color-button-ghost-active:var(--color-accent-700);--color-button-ghost-disabled:var(--color-neutral-800);--color-button-ghost-foreground:var(--color-accent-300);--color-button-ghost-disabled-foreground:var(--color-neutral-600);--color-dropdown-item-hover-background:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-dropdown-item-hover-background:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-kbd-background:var(--color-neutral-700);--color-kbd-foreground:var(--color-neutral-400);--color-docs-file-chip-background:#3c036680}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-file-chip-background:color-mix(in srgb, var(--color-purple-950) 50%, transparent)}}.dark{--color-docs-file-chip-border:var(--color-purple-800);--color-docs-file-chip-foreground:var(--color-purple-400);--color-docs-code-background:var(--color-background-full);--color-docs-install-rail:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-install-rail:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--shadow-2xs:0 1px #00000029;--shadow-xs:0 1px 2px 0 #0000002e;--shadow-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--shadow-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--shadow-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--shadow-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--shadow-card:0 1px 1px 0 #00000024;--shadow-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--shadow-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--shadow-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014;--color-badge-neutral-background:var(--color-neutral-800);--color-team-menu-count-background:var(--color-neutral-700);--color-team-menu-count-foreground:var(--color-neutral-400);--color-badge-new-background:var(--color-accent-950);--color-badge-new-text:var(--color-accent-400);--color-tab-count-selected-background:#193cb899}@supports (color:color-mix(in lab, red, red)){.dark{--color-tab-count-selected-background:color-mix(in srgb, var(--color-accent-800) 60%, transparent)}}.dark{--color-notification-information-background:#193cb880}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-information-background:color-mix(in srgb, var(--color-blue-800) 50%, transparent)}}.dark{--color-notification-information-foreground:var(--color-blue-300);--color-notification-success-background:#3d630080}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-success-background:color-mix(in srgb, var(--color-lime-800) 50%, transparent)}}.dark{--color-notification-success-foreground:var(--color-lime-300);--color-notification-error-background:#a3003780}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-error-background:color-mix(in srgb, var(--color-rose-800) 50%, transparent)}}.dark{--color-notification-error-foreground:var(--color-rose-300);--color-notification-center-background:var(--color-neutral-900);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-button-white:var(--color-zinc-800);--color-border-error-default:var(--color-red-400);--color-border-checkbox-default:var(--color-neutral-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-border-checkbox-active:var(--color-neutral-500);--color-border-component-detail-container:var(--color-neutral-800);--color-border-ai-profile-card:var(--color-neutral-800);--color-border-table:var(--color-neutral-800);--color-border-button-group:#52525299}@supports (color:color-mix(in lab, red, red)){.dark{--color-border-button-group:color-mix(in srgb, var(--color-neutral-600) 60%, transparent)}}.dark{--color-border-sidebar-profile-hover:var(--color-neutral-600);--color-separator-border:var(--color-neutral-800);--color-separator-border-strong:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-separator-border-strong:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-status-lime-background:#192e0399}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-lime-background:color-mix(in srgb, var(--color-lime-950) 60%, transparent)}}.dark{--color-status-lime-text:var(--color-lime-500);--color-status-yellow-background:#43200499}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-yellow-background:color-mix(in srgb, var(--color-yellow-950) 60%, transparent)}}.dark{--color-status-yellow-text:var(--color-yellow-500);--color-status-rose-background:#4d021899}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-rose-background:color-mix(in srgb, var(--color-rose-950) 60%, transparent)}}.dark{--color-status-rose-text:var(--color-rose-500);--color-status-cyan-background:#05334599}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-cyan-background:color-mix(in srgb, var(--color-cyan-950) 60%, transparent)}}.dark{--color-status-cyan-text:var(--color-cyan-400);--color-status-blue-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-blue-background:color-mix(in srgb, var(--color-blue-950) 60%, transparent)}}.dark{--color-status-blue-text:var(--color-blue-300);--color-status-purple-background:#59168b80}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-purple-background:color-mix(in srgb, var(--color-purple-900) 50%, transparent)}}.dark{--color-status-purple-text:var(--color-purple-300);--color-status-dot-green-halo:#01663066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-green-halo:color-mix(in srgb, var(--color-green-800) 40%, transparent)}}.dark{--color-status-dot-yellow-halo:#874b0066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-yellow-halo:color-mix(in srgb, var(--color-yellow-800) 40%, transparent)}}.dark{--color-status-dot-indigo-halo:#372aac66}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-indigo-halo:color-mix(in srgb, var(--color-indigo-800) 40%, transparent)}}.dark{--color-date-range-background:var(--color-accent-950);--color-date-range-edge-background:var(--color-accent-800);--color-pill-tab-blue-selected-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-pill-tab-blue-selected-background:color-mix(in srgb, var(--color-accent-950) 60%, transparent)}}.dark{--color-pill-tab-blue-hover-background:var(--color-neutral-800);--color-calendar-event-blue-background:var(--color-blue-950);--color-calendar-event-blue-title:var(--color-blue-300);--color-calendar-event-blue-time:var(--color-blue-300);--color-calendar-event-pink-background:var(--color-pink-950);--color-calendar-event-pink-title:var(--color-pink-300);--color-calendar-event-pink-time:var(--color-pink-300);--color-calendar-event-purple-background:var(--color-purple-950);--color-calendar-event-purple-title:var(--color-purple-300);--color-calendar-event-purple-time:var(--color-purple-300);--color-calendar-event-lime-background:var(--color-lime-950);--color-calendar-event-lime-title:var(--color-lime-300);--color-calendar-event-lime-time:var(--color-lime-300);--color-calendar-event-emerald-background:var(--color-emerald-950);--color-calendar-event-emerald-title:var(--color-emerald-300);--color-calendar-event-emerald-time:var(--color-emerald-300);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-700) 0%, var(--color-neutral-800) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-900) 0%, var(--color-red-950) 100%);--color-chart-track:var(--color-neutral-800);--color-chart-cursor:var(--color-neutral-700);--color-chart-neutral:var(--color-neutral-800);--color-chart-agents-bar:var(--color-purple-500);--color-chart-agents-bar-active:var(--color-purple-600)}.dark[data-accent]{--color-badge-new-background:#16245680}@supports (color:color-mix(in lab, red, red)){.dark[data-accent]{--color-badge-new-background:color-mix(in srgb, var(--color-accent-950) 50%, transparent)}}.peach-react [data-media-sections]{flex-direction:column;gap:16px;min-width:0;display:flex}.peach-react [data-media-grid]{grid-template-columns:repeat(auto-fill, minmax(var(--tile), 1fr));gap:24px 16px;display:grid}.peach-react [data-media-grid]>[data-media-card]:not([data-variant=resource],[data-variant=junk]){align-self:start}body[data-surface=\/trash] .peach-react [data-media-grid]>[data-media-card]{align-self:stretch}.peach-react [data-media-next-row]{gap:11px;display:flex}body[data-surface=\/trash] .peach-react [data-media-grid]{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:20px}.peach-react [data-media-card]{font:var(--board-body);border-radius:var(--surface-radius);cursor:pointer;transform-origin:50%;background:0 0;flex-direction:column;gap:8px;min-width:0;transition:transform .18s,filter .18s,background-color .15s,box-shadow .15s;display:flex;position:relative;overflow:visible}.peach-react [data-media-card][data-variant=short]{flex:none;width:214px}.peach-react [data-media-card][data-variant=next]{flex:none;width:216px}body[data-density=dense] .peach-react [data-media-card][data-variant=short]{width:107px}.peach-react [data-media-card]:not([data-variant=resource],[data-variant=junk]):is(:hover,:focus-within){background:var(--hover);box-shadow:0 0 0 8px var(--hover)}.peach-react [data-media-card]:not([data-variant=resource],[data-variant=junk]):hover [data-media-pic]{filter:saturate(.9)brightness(.94)}.peach-react [data-select-mode] [data-media-card]{cursor:default}.peach-react [data-select-mode] :is([data-media-open],[data-media-preview],[data-media-later],[data-media-seek]),.peach-react [data-select-mode] :is([data-media-later],[data-media-seek]) button{pointer-events:none!important}@media (hover:hover) and (pointer:fine){.peach-react [data-media-card][data-longhover]{z-index:8;filter:brightness(1.04);transform:translateY(-7px)scale(1.065)}}body[data-surface=\/trash] .peach-react [data-media-card]{border:1px solid var(--line-soft);background:var(--color-background-primary-default);gap:0;overflow:hidden}body[data-surface=\/trash] .peach-react [data-media-card] [data-media-pic]{border-radius:0}.peach-react [data-media-open]{z-index:1;border-radius:inherit;cursor:pointer;background:0 0;border:0;padding:0;position:absolute;inset:0}.peach-react [data-media-open]:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-media-card]>:is([data-media-pic],[data-media-stack],[data-media-meta]){z-index:2;position:relative}.peach-react [data-media-meta]{--card-meta-byline:1lh;--card-meta-tags:0px;--card-meta-block:calc(var(--fs-md) * 2.7 + 3px + var(--card-meta-byline) + var(--card-meta-tags))}.peach-react [data-media-meta]:has(>[data-media-text]>[data-media-tags]){--card-meta-tags:calc(var(--fs-xs) * 1.45 + var(--tag-pad-y) * 2 + 2px + 3px)}.peach-react [data-media-card]:not([data-variant=next]) :is([data-media-pic],[data-media-meta]){content-visibility:auto}.peach-react [data-media-card]:not([data-variant=next]) [data-media-meta]{pointer-events:none;contain-intrinsic-block-size:auto var(--card-meta-block);flex-shrink:0;margin:-8px;padding:8px}.peach-react [data-media-card]:not([data-variant=next]) [data-media-meta]>*{pointer-events:auto}.peach-react [data-media-pic]{aspect-ratio:var(--card-ratio,16 / 9);border-radius:var(--surface-radius);background:#000;justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.peach-react [data-media-pic]:before{content:"";pointer-events:none;background:var(--cover-blur,none) center / cover no-repeat;filter:blur(26px)brightness(.5);position:absolute;inset:-8%}.peach-react [data-media-pic]:has(>[data-media-art=cover]){background:0 0}.peach-react [data-media-stack] [data-media-pic]:has(>[data-media-art=cover]){background:var(--page)}.peach-react [data-media-card][data-selected] [data-media-pic]:after{content:"";z-index:6;box-sizing:border-box;border:2px solid var(--on-media);border-radius:inherit;pointer-events:none;position:absolute;inset:0}.peach-react [data-media-art]{display:block;position:absolute;inset:0}.peach-react [data-media-nopic]{color:var(--muted);font-size:var(--fs-xs);letter-spacing:.12em;text-transform:uppercase}.peach-react [data-media-pic]>:is(video,img){object-fit:contain;background:#000;width:100%;height:100%;display:block;position:absolute;inset:0}.peach-react [data-media-pic]>video{opacity:0;transition:opacity .2s}.peach-react [data-media-pic]>video[data-playing]{opacity:1}.peach-react [data-media-stack]{isolation:isolate;border-radius:var(--surface-radius);position:relative}.peach-react [data-media-stack]:before,.peach-react [data-media-stack]:after{content:"";z-index:0;border:1px solid var(--border-15);border-radius:inherit;background:var(--surface);position:absolute}@supports (color:color-mix(in lab, red, red)){.peach-react [data-media-stack]:before,.peach-react [data-media-stack]:after{background:color-mix(in srgb, var(--surface) 84%, var(--video-glow,#15202a))}}.peach-react [data-media-stack]:before{opacity:.54;inset:0 12px 8px;transform:translateY(-7px)}.peach-react [data-media-stack]:after{opacity:.78;inset:0 6px 4px;transform:translateY(-4px)}.peach-react [data-media-stack] [data-media-pic]{z-index:1}.peach-react [data-media-badge]{z-index:2;background:var(--glass-fill);min-height:24px;box-shadow:inset 0 1px 0 var(--glass-rim), var(--glass-shadow);-webkit-backdrop-filter:blur(16px)saturate(145%);backdrop-filter:blur(16px)saturate(145%);color:var(--color-text-secondary);font:var(--board-caption);white-space:nowrap;border-radius:10px;justify-content:center;align-items:center;gap:4px;padding:4px;transition:opacity .15s;display:flex;position:absolute;top:6px;left:6px}.peach-react [data-media-badge]>span{background:0 0;width:20px;height:20px;padding:0}.peach-react [data-media-duration]{z-index:2;border-radius:var(--badge-radius);color:#f2eadf;font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums;background:#000000b3;padding:2px 6px;transition:opacity .15s;position:absolute;bottom:6px;right:6px}@media (hover:hover) and (pointer:fine){.peach-react [data-media-card]:hover :is([data-media-badge],[data-media-duration]){opacity:0}}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.peach-react [data-media-badge]{background:var(--ground);-webkit-backdrop-filter:none}}.peach-react [data-media-group]{z-index:6;border-radius:var(--control-radius);color:#fff;min-height:27px;font-size:var(--fs-xs);-webkit-backdrop-filter:blur(10px);background:#0c0808b8;padding:5px 9px;font-weight:600;position:absolute;top:9px;right:9px}.peach-react [data-media-scrub]{z-index:2;background:#00000073;height:3px;position:absolute;bottom:0;left:0;right:0}.peach-react [data-media-scrub]>i{width:var(--media-fill);background:var(--loupe);height:100%;display:block}.peach-react [data-media-progress]{z-index:5;background:#ffffff4d;height:4px;position:absolute;bottom:0;left:0;right:0}.peach-react [data-media-progress]>i{width:var(--media-fill);background:var(--tungsten);height:100%;display:block}.peach-react [data-media-check]{z-index:8;color:#ffffffb8;-webkit-backdrop-filter:saturate(1.8)blur(12px);background:#00000057;border:1px solid #ffffff47;border-radius:50%;place-items:center;width:26px;height:26px;display:none;position:absolute;top:10px;right:10px}.peach-react :is([data-select-mode] [data-media-check],[data-media-card][data-selected] [data-media-check]){display:grid}.peach-react [data-media-card][data-selected] [data-media-check]{border-color:var(--on-media);background:var(--on-media);color:var(--on-media-ink);box-shadow:0 3px 12px #0008}.peach-react [data-media-trash-mark]{z-index:7;border-radius:var(--badge-radius);color:#ffb14a;height:28px;font-size:var(--fs-xs);-webkit-backdrop-filter:saturate(1.8)blur(12px);background:#00000094;border:1px solid #ffb14a66;align-items:center;gap:5px;padding:0 9px;font-weight:600;display:none;position:absolute;bottom:10px;left:10px}.peach-react [data-pending-delete] [data-media-trash-mark]{display:flex}.peach-react [data-pending-delete] :is([data-media-art]>img,[data-media-pic]>:is(video,img)){filter:grayscale(.9)brightness(.54);opacity:.68}.peach-react [data-pending-delete] [data-media-pic]:before{filter:blur(26px)grayscale(.9)brightness(.27);opacity:.68}.peach-react [data-pending-delete] [data-media-meta]{opacity:.58}.peach-react [data-pending-delete]:hover [data-media-meta]{opacity:.76}.peach-react [data-media-card] :is([data-media-check],[data-media-trash-mark],[data-media-later],[data-media-seek],[data-media-glyph],[data-media-kind-glyph],[data-media-resource-action]) svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}.peach-react [data-media-check] svg{width:16px;height:16px}.peach-react [data-media-trash-mark] svg{width:14px;height:14px}.peach-react [data-media-preview]{z-index:4;color:#fff;cursor:pointer;opacity:0;pointer-events:none;-webkit-backdrop-filter:saturate(180%)blur(12px);background:#0000003d;border:0;border-radius:50%;place-items:center;width:36px;height:36px;padding:0;transition:transform .15s,opacity .15s;display:grid;position:absolute;top:12px;right:12px}.peach-react [data-previewing] [data-media-preview]{opacity:1;pointer-events:auto}.peach-react [data-longhover] [data-media-preview]{opacity:0;pointer-events:none}.peach-react [data-media-preview]:hover{transform:scale(1.2)}.peach-react [data-media-preview]>svg:first-child{width:36px;height:36px;position:absolute;inset:0;transform:rotate(-90deg)}.peach-react [data-media-preview] circle{fill:none;stroke-width:2px}.peach-react [data-media-preview] circle:first-child{stroke:#ffffff2e}.peach-react [data-media-preview] circle:last-child{stroke:#fff;stroke-linecap:round;stroke-dasharray:106.814;stroke-dashoffset:106.814px}.peach-react [data-previewing] [data-media-preview] circle:last-child{animation:preview-arc var(--hover-delay) linear forwards}.peach-react [data-longhover] [data-media-preview] circle:last-child{animation:none}@keyframes preview-arc{to{stroke-dashoffset:0}}.peach-react [data-media-ring-play]{fill:none;stroke:#fff;stroke-width:2px;width:14px;height:14px;margin-left:1px;position:relative}.peach-react :is([data-media-later],[data-media-seek]){z-index:4;opacity:0;pointer-events:none;align-items:center;gap:14px;transition:opacity .15s;display:flex;position:absolute}.peach-react [data-media-seek]{inset:50% auto auto 50%;transform:translate(-50%,-50%)}.peach-react [data-media-later]{bottom:12px;right:12px}.peach-react :is([data-longhover] [data-media-seek],[data-media-card]:hover [data-media-later]){opacity:1}.peach-react :is([data-media-later],[data-media-seek]) button{color:#fff;cursor:pointer;pointer-events:none;-webkit-backdrop-filter:saturate(180%)blur(12px);background:#0000003d;border:1px solid #ffffff1f;border-radius:50%;justify-content:center;align-items:center;width:58px;height:58px;transition:transform .15s,background .15s;display:flex;position:relative}.peach-react :is([data-longhover] [data-media-seek],[data-media-card]:hover [data-media-later]) button{pointer-events:auto}.peach-react :is([data-media-later],[data-media-seek]) button:hover{background:#00000057;transform:scale(1.12)}.peach-react [data-media-seek] svg{width:34px;height:34px}.peach-react [data-media-later] button{width:36px;height:36px;padding:0}.peach-react [data-media-later] svg{width:21px;height:21px}.peach-react [data-media-later] button[aria-pressed=true]{background:var(--ink);color:var(--ground)}.peach-react [data-media-meta]{gap:10px;min-width:0;display:flex}.peach-react [data-media-avatar]{background:var(--sunk);width:38px;height:38px;color:inherit;cursor:pointer;border:0;border-radius:50%;flex:none;margin-top:2px;padding:0;position:relative;overflow:hidden}.peach-react button[data-media-avatar]:hover{box-shadow:0 0 0 2px var(--ink-2)}.peach-react [data-media-avatar]>img{object-fit:cover;width:100%;max-width:none;height:100%;max-height:none;display:block;position:absolute;inset:0}.peach-react [data-media-avatar]>span:first-child{color:var(--muted);font-family:Bahnschrift,Microsoft YaHei UI,Microsoft YaHei,PingFang SC,sans-serif;font-size:var(--fs-sm);justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.peach-react [data-media-avatars]{--lift-motion:calc(var(--spring-press-ms) * 1ms) var(--spring-press);flex:none;max-width:calc(100% - 48px);margin:-4px -2px -2px;padding:6px 2px 2px 5px;display:flex}.peach-react [data-media-avatars]:has(:is(:hover,:focus-visible)){--lift-motion:var(--board-motion)}.peach-react [data-media-avatars]>[data-media-avatar]{box-shadow:0 0 0 2px var(--ground);transform:translate(var(--lift-x,0), var(--lift-y,0)) scale(var(--lift-scale,1));transition:transform var(--lift-motion,var(--board-motion));margin-top:0}.peach-react [data-media-avatars]>*+*{margin-left:-22px}.peach-react [data-media-avatars]>:first-child{z-index:5}.peach-react [data-media-avatars]>:nth-child(2){z-index:4}.peach-react [data-media-avatars]>:nth-child(3){z-index:3}.peach-react [data-media-avatars]>:nth-child(4){z-index:2}.peach-react [data-media-avatars]>:nth-child(5){z-index:1}.peach-react [data-media-avatars]>:is(:hover,:focus-visible){z-index:6;box-shadow:0 0 0 2px var(--ink-2);--lift-y:-4px;--lift-scale:1.05}.peach-react [data-media-avatars]>:is(:hover,:focus-visible)+*{--lift-y:-1.8px;--lift-x:10px}.peach-react [data-media-avatars]>:is(:hover,:focus-visible)+*+*{--lift-y:-.81px;--lift-x:20px}.peach-react [data-media-avatars]>:is(:hover,:focus-visible)+*+*+*{--lift-x:30px}.peach-react [data-media-avatars]>:is(:hover,:focus-visible)+*+*+*+*{--lift-x:40px}.peach-react [data-variant=next] [data-media-avatars]>:nth-child(n+3){display:none}.peach-react [data-media-text]{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.peach-react [data-media-title]{width:100%;min-height:2.7em;max-height:2.7em;color:inherit;font-size:var(--fs-md);text-align:left;word-break:break-all;cursor:pointer;-webkit-line-clamp:2;background:0 0;border:0;-webkit-box-orient:vertical;padding:0;line-height:1.35;display:-webkit-box;overflow:hidden}.peach-react span[data-media-title]{cursor:default}.peach-react [data-media-byline]{color:var(--muted);font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums;flex-wrap:wrap;align-items:center;gap:8px;display:flex}.peach-react [data-media-who]{min-width:0;max-width:100%;color:var(--ink-2);text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom;background:0 0;border:0;padding:0;display:inline-block;overflow:hidden}.peach-react button[data-media-who]{cursor:pointer}.peach-react span[data-media-who]{cursor:default}.peach-react [data-media-who-more]{color:var(--muted)}.peach-react [data-media-flags]{gap:3px;margin-left:auto;display:flex}.peach-react [data-media-flags]>i{width:6px;height:6px;display:block}.peach-react [data-flag=dislike]{background:var(--drop)}.peach-react [data-flag=seen]{background:var(--muted)}.peach-react [data-flag=dispose]{background:var(--meter)}.peach-react [data-flag=later]{background:var(--ink)}.peach-react [data-variant=next] [data-media-why]{color:var(--loupe)}.peach-react [data-variant=next] [data-media-byline]{flex-wrap:nowrap;overflow:hidden}.peach-react [data-variant=next] [data-media-who]{flex:0 auto;max-width:55%}.peach-react [data-variant=next] [data-media-who-more]{white-space:nowrap;flex:none}.peach-react [data-variant=next] [data-media-why]{text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-width:0;overflow:hidden}.peach-react [data-variant=next] :is([data-media-size],[data-media-watch-count]){display:none}.peach-react [data-media-tags]{height:calc(var(--fs-xs) * 1.45 + var(--tag-pad-y) * 2 + 2px + 8px);pointer-events:none;flex-wrap:wrap;align-content:flex-start;gap:5px;min-width:0;margin:-4px;padding:4px;display:flex;overflow:hidden}.peach-react [data-media-tags]>*{pointer-events:auto}.peach-react [data-media-tag]{max-width:100%;padding:var(--tag-pad-y) var(--tag-pad-x);border:1px solid var(--line);border-radius:var(--tag-radius);background:var(--tag-fill);color:var(--ink-2);font-size:var(--fs-xs);text-overflow:ellipsis;white-space:nowrap;cursor:pointer;line-height:1.45;overflow:hidden}.peach-react [data-media-tag]:hover{background:var(--hover);color:var(--ink)}.peach-react [data-media-tag]:disabled{cursor:not-allowed}@media (width<=760px){.peach-react [data-media-tags]>:nth-child(n+3){display:none}}body[data-density=dense] .peach-react [data-media-grid]>[data-media-card]{padding-top:7px}body[data-density=dense] .peach-react [data-media-card] [data-media-meta]{--card-meta-block:calc(2.7em + 36px)}body[data-density=dense] .peach-react [data-media-card] [data-media-text]{height:calc(var(--card-meta-block) + 8px);pointer-events:none;grid-template-rows:1.35em 1.35em 30px;gap:3px;margin:-4px;padding:4px;display:grid;overflow:hidden}body[data-density=dense] .peach-react [data-media-card] [data-media-text]>:not([data-media-tags]){pointer-events:auto}body[data-density=dense] .peach-react [data-media-card] [data-media-title]{text-overflow:ellipsis;white-space:nowrap;-webkit-line-clamp:unset;max-width:100%;min-height:1.35em;display:block;overflow:hidden}body[data-density=dense] .peach-react [data-media-card] [data-media-byline]{white-space:nowrap;flex-wrap:nowrap;height:1.35em;min-height:0;overflow:hidden}body[data-density=dense] .peach-react [data-media-card] [data-media-who]{flex:0 auto}body[data-density=dense] .peach-react [data-media-card] :is([data-media-who-more],[data-media-size]){white-space:nowrap;flex:none}body[data-density=dense] .peach-react [data-media-card] :is([data-media-why],[data-media-watch-count]){display:none}body[data-density=dense] .peach-react [data-media-card] [data-media-tags]{flex-wrap:nowrap;align-items:flex-start;height:38px;overflow:hidden}body[data-density=dense] .peach-react [data-media-card] [data-media-tag]:nth-child(n+2){display:none}.peach-react [data-media-glyph]{color:var(--muted);font-size:var(--fs-xs);letter-spacing:.08em;place-items:center;gap:8px;display:grid}.peach-react [data-media-glyph] svg{width:32px;height:32px}.peach-react [data-media-glyph] b{font-weight:inherit}.peach-react [data-media-kind-glyph]{cursor:default;place-items:center;display:grid}.peach-react [data-media-kind-glyph] svg{width:19px;height:19px}.peach-react [data-media-resource-action]{z-index:5;border-radius:var(--control-radius);color:#fff;min-height:32px;font-size:var(--fs-xs);cursor:pointer;-webkit-backdrop-filter:saturate(1.5)blur(10px);background:#000000a3;border:1px solid #ffffff40;align-items:center;gap:6px;padding:0 10px;display:inline-flex;position:absolute;bottom:10px;right:10px}.peach-react [data-media-resource-action]:hover:not([aria-busy]){background:var(--hover);color:var(--ink)}.peach-react [data-media-resource-action]:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-media-resource-action][aria-busy]{cursor:wait;opacity:.72}.peach-react [data-media-resource-action] svg{width:15px;height:15px}.peach-react [data-shorts-strip]{border-radius:var(--floating-radius);background:var(--ground);font:var(--board-body);border:0;padding:16px}.peach-react [data-shorts-strip]>h2{font-size:var(--fs-lg);align-items:center;gap:10px;margin:0 0 11px;font-weight:600;display:flex}.peach-react [data-shorts-count]{color:var(--muted);font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums}.peach-react [data-shorts-enter]{border-radius:var(--pill-radius);background:var(--overlay-5);min-height:48px;color:var(--ink);font-family:inherit;font-size:var(--fs-xs);cursor:pointer;-webkit-backdrop-filter:blur(12px);transition:background .14s, translate .14s, scale calc(var(--spring-press-ms) * 1ms) var(--spring-press);border:0;align-items:center;gap:7px;margin-left:auto;padding:0 16px;display:inline-flex}.peach-react [data-shorts-enter]:hover{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-shorts-enter]:hover{background:color-mix(in srgb, var(--ink) 16%, transparent)}}.peach-react [data-shorts-enter]:hover{translate:0 -1px}.peach-react [data-shorts-enter]:active{transition:scale 60ms ease-out;scale:.96}.peach-react [data-shorts-enter] svg{fill:none;stroke:currentColor;stroke-width:2px;width:20px;height:20px}.peach-react [data-shorts-row]{scrollbar-width:none;gap:13px;padding-bottom:7px;display:flex;overflow-x:auto}.peach-react [data-shorts-row]::-webkit-scrollbar{display:none}@media (width>=761px){.peach-react [data-shorts-strip]{margin-left:calc(-1 * (var(--railW) + 16px));padding-left:calc(var(--railW) + 32px);border-radius:0 var(--floating-radius) var(--floating-radius) 0}.peach-react [data-shorts-row]{margin-left:calc(-1 * (var(--railW) + 32px));padding-left:calc(var(--railW) + 32px)}}.peach-react [data-mix-glyph]{border:1px solid var(--border-10);background:var(--overlay-5);width:40px;height:40px;color:var(--ink);border-radius:50%;flex:none;place-items:center;display:grid}.peach-react [data-mix-glyph] svg{fill:none;stroke:currentColor;stroke-width:2px;width:20px;height:20px}.peach-react [data-media-grid]>[data-mix-card]{border-radius:var(--surface-radius);font:var(--board-body)}.peach-react [data-media-grid]>[data-mix-card] [data-mix-cover]{content-visibility:auto}.peach-react [data-media-grid] [data-mix-cover]:has(>[data-media-art=cover]){background:var(--page)}.peach-react [data-media-grid] [data-mix-badge]{letter-spacing:normal;line-height:inherit}.peach-react [data-media-grid] [data-mix-title]{font-family:inherit;font-size:var(--fs-md);letter-spacing:normal;color:inherit;font-weight:700;line-height:1.45}.peach-react [data-media-grid] [data-mix-caption]{font-family:inherit;font-size:var(--fs-xs);line-height:inherit;letter-spacing:normal;color:var(--muted);margin-top:2px}.peach-react [data-media-grid]>[data-mix-card]:is(:hover,:focus-within){border-radius:var(--surface-radius);background:var(--hover);box-shadow:0 0 0 8px var(--hover)}.peach-react [data-load-more]{min-height:42px;color:var(--muted);text-align:center;margin:18px auto 0;padding:12px}.peach-react [data-entity-more]{border:1px solid var(--line);min-width:124px;height:36px;min-height:36px;color:var(--ink);cursor:pointer;background:0 0;border-radius:10px;justify-content:center;align-items:center;margin:20px auto 0;padding:0 12px;font-size:14px;font-weight:500;display:flex}.peach-react [data-entity-more]:hover{background:var(--hover);color:var(--ink)}.peach-react [data-entity-more][aria-busy]{cursor:wait;opacity:.5}.peach-react [data-grid-reveal]{position:relative}.peach-react [data-grid-reveal]>[data-grid-fade]{z-index:2;pointer-events:none;animation:grid-skeleton-out var(--motion-reveal) forwards;position:absolute;inset:0;overflow:hidden}.peach-react [data-grid-reveal]>:not([data-grid-fade]){animation:skel-reveal-in var(--motion-reveal) backwards}@keyframes grid-skeleton-out{0%{opacity:1;filter:blur()}to{opacity:0;filter:blur(2px)}}.peach-react [data-surface-host]{isolation:isolate;position:relative}.peach-react [data-moving-surface]{pointer-events:none;transform-origin:0 0;z-index:-1;position:absolute;top:0;left:0}.peach-react [data-moving-surface=selection]{border-radius:var(--radius-md);background:var(--color-background-primary-default);box-shadow:var(--shadow-card)}.dark .peach-react [data-moving-surface=selection]{background:var(--color-background-primary-hover)}.peach-react [data-surface-host=selection][data-surface-ready] :is([data-selected],[aria-selected=true]){--tw-shadow:0 0 transparent;background:0 0}.peach-react [data-moving-surface=hover]{border-radius:var(--radius-2lg);background:var(--color-dropdown-item-hover-background)}@media (hover:hover) and (pointer:fine){.peach-react [data-surface-host=hover][data-surface-ready] button:is(:hover,:focus-visible){background:0 0}}.peach-react [data-modal-motion]{transition:opacity .2s var(--ease-out)}.peach-react [data-modal-surface]{transition:transform .2s var(--ease-out), opacity .2s var(--ease-out)}.peach-react [data-modal-motion]:is([data-entering],[data-exiting]){opacity:0}.peach-react [data-modal-surface]:is([data-entering],[data-exiting]){opacity:0;transform:scale(.98)}.peach-react [data-modal-motion][data-exiting],.peach-react [data-modal-surface][data-exiting]{transition-duration:.12s}.peach-react [data-modal-motion][data-motion-instant],.peach-react [data-modal-motion][data-motion-instant] [data-modal-surface]{transition:none}@media (prefers-reduced-motion:reduce){.peach-react [data-modal-motion],.peach-react [data-modal-surface]{transition:none}}.peach-react [data-junk-count]{flex-direction:column;gap:16px;display:flex}.peach-react [data-junk-filters-frame]{min-width:0;position:relative}.peach-react [data-junk-filters]{scrollbar-width:none;border-radius:var(--surface-radius);background:var(--color-background-primary-default);min-width:0;color:var(--ink-2);font-size:var(--fs-xs);align-items:center;gap:8px;padding:12px;display:flex;overflow-x:auto}.peach-react [data-junk-filters]::-webkit-scrollbar{display:none}html:not(.dark) .peach-react [data-junk-filters]{background:var(--color-background-secondary-default)}.peach-react [data-junk-filters] a{box-sizing:border-box;border-radius:var(--control-radius);height:32px;color:var(--muted);font-size:var(--fs-sm);white-space:nowrap;cursor:pointer;flex:none;align-items:center;gap:6px;padding:0 12px;font-weight:400;text-decoration:none;display:inline-flex}.peach-react [data-junk-filters] a:hover{color:var(--ink)}.peach-react [data-junk-filters] a[aria-current=page]{background:var(--picked);color:var(--ink)}.peach-react [data-junk-filters] a:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-junk-filters] a>svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:16px;height:16px}.peach-react [data-junk-filters] [data-count-badge]{color:var(--muted);font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums}.peach-react [data-junk-divider]{background:var(--line-soft);flex:none;width:1px;height:20px;margin:0 6px}.peach-react [data-media-grid][data-junk-grid]{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:20px}.peach-react [data-media-card][data-junk-card]{border:1px solid var(--line-soft);border-radius:var(--surface-radius);background:var(--color-background-primary-default);cursor:default;content-visibility:auto;contain-intrinsic-size:auto 360px;gap:0;overflow:hidden}.peach-react [data-junk-card] [data-media-art]>img{object-fit:contain}.peach-react [data-junk-card] [data-media-glyph] b{font-weight:700}.peach-react [data-junk-meta]{gap:6px;min-width:0;padding:20px;display:grid}.peach-react [data-junk-title]{width:100%;min-width:0;color:var(--ink);font:inherit;text-align:left;background:0 0;border:0;padding:0;font-weight:600;line-height:1.4;display:block}.peach-react button[data-junk-title]{cursor:pointer}.peach-react button[data-junk-title]:hover{color:var(--ink-2)}.peach-react button[data-junk-title]:focus-visible{outline:2px solid var(--tungsten);outline-offset:3px;border-radius:var(--control-radius)}.peach-react [data-junk-facts]{min-width:0;color:var(--muted);font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:7px;display:flex}.peach-react [data-junk-why]{overflow-wrap:anywhere}.peach-react [data-junk-size]{white-space:nowrap;margin-left:auto}.peach-react [data-junk-actions]{border-top:1px solid var(--line-soft);background:var(--color-background-secondary-default);grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:auto;padding:12px;display:grid}.peach-react [data-junk-actions] button{box-sizing:border-box;border:1px solid var(--color-border-button-default);background:var(--color-background-primary-default);min-width:0;height:36px;min-height:36px;box-shadow:var(--elevation-xs);color:var(--ink);font:var(--board-body-medium);white-space:nowrap;cursor:pointer;border-radius:10px;justify-content:center;align-items:center;gap:7px;padding:8px 12px;display:inline-flex}.peach-react [data-junk-actions] button:hover:not([aria-busy]){background:var(--inset);color:var(--ink)}.peach-react [data-junk-actions] button:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-junk-actions] button[aria-busy]{cursor:wait;opacity:.64}.peach-react [data-junk-actions] button svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:15px;height:15px}.peach-react [data-junk-spinner]{flex:none;display:inline-flex}.peach-react [data-junk-actions] button[data-junk-action=dispose]{isolation:isolate;background:var(--board-red);color:#fff;font:inherit;font-size:var(--fs-xs);border:0;padding:0 10px;position:relative}.peach-react [data-junk-actions] button[data-junk-action=dispose]:before{content:"";z-index:-1;border-radius:inherit;background:var(--board-red-hover);opacity:0;pointer-events:none;transition:opacity .15s;position:absolute;inset:0}.peach-react [data-junk-actions] button[data-junk-action=dispose]:hover:not([aria-busy]){background:var(--board-red);color:#fff}.peach-react [data-junk-actions] button[data-junk-action=dispose]:hover:not([aria-busy]):before{opacity:1}.peach-react [data-junk-actions] button[data-junk-action=dispose]:active{background:var(--board-red-active)}.peach-react [data-junk-state]{color:var(--drop);font-size:var(--fs-xs);grid-column:1/-1}.peach-react [data-junk-state]:empty{display:none}.peach-react [data-select-mode] [data-junk-actions]{pointer-events:none;opacity:.52}body[data-density=dense] .peach-react [data-junk-actions] [data-junk-label]{display:none}@media (width<=760px){.peach-react [data-junk-filters] a{height:44px}.peach-react [data-junk-actions] button{min-height:44px}.peach-react [data-junk-actions] button[data-junk-action=dispose]{padding-inline:7px}}.peach-react [data-entity-card]{background:var(--ground);min-width:0;max-width:100%;color:var(--ink);font:var(--board-body);letter-spacing:0;border-radius:18px;flex-direction:column;margin:0 0 22px;display:flex;overflow:hidden}.peach-react [data-entity-card] :is(a,button,[tabindex]):focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-entity-profile]{--portrait-size:120px;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:20px;min-width:0;padding:20px;display:grid}.peach-react [data-entity-profile]:has(>[data-entity-identity]>[data-entity-links]):has(>[data-entity-identity]>[data-entry-marks]){--portrait-size:160px}#index[data-hero-wide] .peach-react [data-entity-profile]:has(>[data-entity-facts]){grid-template-columns:auto minmax(0,1fr) minmax(280px,360px)}.peach-react [data-entity-portrait-wrap]{align-self:stretch;align-items:center;width:max-content;max-width:100%;display:flex;position:relative}.peach-react [data-entity-portrait-wrap]>[data-avatar-picker]{top:calc((100% - var(--portrait-size)) / 2);height:var(--portrait-size);pointer-events:none;position:absolute;left:0;right:0}.peach-react [data-entity-portrait-wrap]>[data-avatar-picker]>*{pointer-events:auto}.peach-react [data-entity-portrait]{width:auto;max-width:100%;height:var(--portrait-size);aspect-ratio:1;background:var(--overlay-5);color:var(--muted);font-size:var(--fs-4xl);border-radius:50%;place-items:center;display:grid;position:relative;overflow:hidden}.peach-react [data-entity-portrait=square]{border-radius:var(--floating-radius)}.peach-react [data-entity-portrait]>span{grid-area:1/1}.peach-react [data-entity-portrait]:has(img)>span{display:none}.peach-react [data-entity-portrait] img{z-index:1;object-fit:cover;width:100%;max-width:none;height:100%;max-height:none;display:block;position:absolute;inset:0}.peach-react [data-entity-portrait]:is([data-fit-native=mark],[data-native-small=true]) img{width:var(--markw,100%);height:var(--markh,100%);object-fit:contain;max-width:100%;max-height:100%;margin:auto}.peach-react [data-entity-identity]{min-width:0;max-width:100%}.peach-react [data-entity-title]{align-items:center;gap:8px;min-width:0;margin:0 0 9px;display:flex}.peach-react [data-entity-title] h2{letter-spacing:0;overflow-wrap:anywhere;margin:0;font-size:24px;font-weight:500;line-height:32px}.peach-react [data-namepick-toggle]{border:1px solid var(--border-10);border-radius:var(--control-radius);background:var(--overlay-5);width:32px;height:32px;color:var(--muted);cursor:pointer;flex:none;place-items:center;padding:0;display:grid}.peach-react [data-namepick-toggle][data-hovered]{background:var(--hover);color:var(--ink)}.peach-react [data-namepick-toggle] svg,.peach-react [data-namepick-menu] svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:16px;height:16px}.peach-react [data-entity-alias]{color:var(--muted);overflow-wrap:anywhere;margin-bottom:0;font-size:14px;line-height:20px}.peach-react [data-entity-alias] b{color:var(--ink);font-weight:inherit}.peach-react [data-entity-alias=meta]{flex-wrap:wrap;align-items:center;gap:4px 18px;display:flex}.peach-react [data-meta-item]{align-items:center;gap:6px;min-width:0;display:inline-flex}.peach-react [data-meta-item=names]{flex-wrap:wrap}.peach-react [data-meta-item]>svg,.peach-react [data-entity-facts] dt svg{width:16px;height:16px;color:var(--muted);fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none}.peach-react [data-alias-names]>span+span:before,.peach-react [data-hero-pop] dd>span+span:before{color:var(--muted);content:"·";margin:0 6px}.peach-react [data-entity-alias] a{color:var(--tungsten);cursor:pointer;text-decoration:none}.peach-react [data-entity-alias] a:hover{color:var(--ink)}.peach-react [data-hero-more]{border:1px solid var(--line);border-radius:var(--pill-radius);height:22px;color:var(--ink);font:inherit;font-size:var(--fs-xs);cursor:pointer;background:0 0;margin-left:4px;padding:0 8px}.peach-react [data-hero-more]:is(:hover,[aria-expanded=true]){background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-hero-more]:is(:hover,[aria-expanded=true]){background:color-mix(in srgb, var(--ink) 8%, var(--ground))}}.peach-react [data-hero-more=fact]{margin-left:0}.peach-react [data-hero-pop]{z-index:var(--layer-popover);box-sizing:border-box;overscroll-behavior:contain;border:1px solid var(--line);background:var(--surface);width:max-content;max-width:min(440px,100vw - 16px);max-height:calc(100dvh - 16px);box-shadow:var(--elevation-dropdown);color:var(--ink);font-size:var(--fs-sm);text-align:left;transform-origin:0 0;border-radius:16px;gap:8px;margin:0;padding:12px 14px;line-height:1.5;animation:.15s ease-out backwards board-menu-in;display:grid;position:fixed;inset:auto;overflow:hidden auto}.peach-react [data-hero-pop]:not(:popover-open){display:none}.peach-react [data-hero-pop-head]{margin:0;font-weight:500}.peach-react [data-hero-pop] dl{grid-template-columns:auto minmax(0,1fr);gap:6px 14px;margin:0;display:grid}.peach-react [data-hero-pop] dt{color:var(--muted);white-space:nowrap}.peach-react [data-hero-pop] dd{overflow-wrap:anywhere;min-width:0;margin:0}.peach-react [data-hero-pop] dd[data-wide]{grid-column:1/-1}.peach-react [data-hero-pop] small{color:var(--muted);font-size:inherit;margin-left:4px}.peach-react [data-entity-facts]{border-left:1px solid var(--line-soft);min-width:0;font-size:var(--fs-sm);text-align:left;grid-template-columns:auto minmax(0,1fr);align-content:center;place-self:stretch stretch;gap:10px 16px;margin:0;padding:2px 0 2px 24px;line-height:22px;display:grid}#index:not([data-hero-wide]) .peach-react [data-entity-facts]{border-top:1px solid var(--line-soft);border-left:0;grid-column:1/-1;padding:14px 0 0}.peach-react [data-entity-facts] dt{color:var(--muted);white-space:nowrap;align-self:start;align-items:center;gap:6px;display:flex}.peach-react [data-entity-facts] dd{min-width:0;color:var(--ink);margin:0}.peach-react [data-entity-facts] :is([data-fact-tone=num],dd[data-fact=num]){font-variant-numeric:tabular-nums}.peach-react [data-entity-facts] [data-fact-tone=sub]{color:var(--muted)}.peach-react [data-entity-facts] dd[data-fact=clip]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.peach-react :is(dd[data-fact=tags],[data-fact-tags]){flex-wrap:wrap;gap:6px;display:flex}.peach-react [data-fact-tag]{padding:0 var(--tag-pad-x);border:1px solid var(--line);border-radius:var(--tag-radius);background:var(--tag-fill);color:var(--ink-2);font-size:var(--fs-xs);white-space:nowrap;line-height:20px}.peach-react [data-entity-links]{flex-wrap:wrap;gap:8px;max-width:100%;margin-top:14px;display:flex}.peach-react [data-entity-card] [data-entity-links]>:is(a,span)[data-link]{box-sizing:border-box;border:1px solid var(--line);min-width:0;max-width:100%;height:36px;min-height:0;box-shadow:none;color:var(--ink);background:0 0;border-radius:10px;align-items:center;gap:8px;padding:0 12px 0 8px;font-size:13px;font-weight:400;text-decoration:none;display:inline-flex;overflow:hidden}.peach-react [data-entity-card] [data-entity-links]>a[data-link]:hover{border-color:var(--line);background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-card] [data-entity-links]>a[data-link]:hover{background:color-mix(in srgb, var(--ink) 8%, var(--ground))}}.peach-react [data-entity-card] [data-entity-links]>a[data-link]:hover{text-decoration:none}.peach-react [data-entity-card] [data-entity-links]>:is([data-link=private],[data-link=gone]){color:var(--muted);border-style:dashed}.peach-react [data-entity-card] [data-entity-links]>:is([data-link=icon],[data-link=gone]){justify-content:center;gap:0;width:36px;padding:0}.peach-react [data-entity-card] [data-entity-links]>[data-link=url]{letter-spacing:.02em}.peach-react [data-link-label]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.peach-react [data-link-icon]{border-radius:var(--badge-radius);background:0 0;flex:none;place-items:center;width:20px;height:20px;display:grid;position:relative;overflow:hidden}.peach-react [data-link-icon] svg{fill:none;stroke:currentColor;stroke-width:2px;width:16px;height:16px}.peach-react [data-link-icon] img{background:var(--sunk);object-fit:cover;width:100%;max-width:none;height:100%;position:absolute;inset:0}.peach-react [data-link-icon=brand] svg{stroke:none;filter:none;width:100%;height:100%}.peach-react [data-entry-marks]{flex-wrap:wrap;align-items:center;gap:32px;max-width:100%;margin-top:14px;display:flex}.peach-react [data-entity-card] [data-entry-marks]>a[data-entry-mark]{border-radius:var(--control-radius);min-width:0;min-height:20px;box-shadow:none;color:var(--ink);background:0 0;border:0;align-items:center;gap:6px;margin:-4px -8px;padding:4px 8px;font-weight:500;text-decoration:none;display:inline-flex}.peach-react [data-entity-card] [data-entry-marks]>a[data-entry-mark]:hover{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-card] [data-entry-marks]>a[data-entry-mark]:hover{background:color-mix(in srgb, var(--ink) 8%, var(--ground))}}.peach-react [data-entity-card] [data-entry-marks]>a[data-entry-mark]:hover{text-decoration:none}.peach-react [data-entry-mark] svg{width:auto;height:22px}.peach-react [data-entry-ordinal]{color:var(--muted);font-size:var(--fs-sm)}.peach-react [data-missav-mark]{font-family:Halant,Georgia,Times New Roman,serif;font-size:var(--fs-xl);letter-spacing:.01em;white-space:nowrap;font-weight:500;line-height:22px}.peach-react [data-missav-mark]>span:last-child{color:#fe628e}@keyframes entryfeed-breathe{0%,to{color:var(--ink)}50%{color:var(--feed-mark)}}.peach-react [data-entry-feed]{border-radius:var(--control-radius);color:var(--ink);cursor:pointer;align-items:center;margin:-4px;padding:4px;display:inline-flex;position:relative}.peach-react [data-entry-feed]:hover{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entry-feed]:hover{background:color-mix(in srgb, var(--ink) 8%, var(--ground))}}.peach-react [data-entry-feed]:has(:checked){color:var(--feed-mark)}.peach-react [data-entry-feed]:has(:focus-visible){outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-entry-feed]:has([aria-busy=true]){opacity:.6;cursor:progress}.peach-react [data-entry-feed]>svg{fill:none;stroke:currentColor;stroke-width:2px;width:22px;height:22px}.peach-react [data-entry-feed]:not(:has(:checked)){animation:2.4s ease-in-out infinite entryfeed-breathe}.peach-react [data-entry-feed]:not(:has(:checked)):is(:hover,:has(:focus-visible)){color:var(--feed-mark);animation:none}.peach-react [data-entity-feed]{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.peach-react [data-entry-feed-tip]{z-index:var(--layer-tooltip);border-radius:var(--surface-radius);background:var(--ink);width:max-content;max-width:250px;color:var(--ground);font-size:var(--fs-sm);white-space:normal;pointer-events:none;border:0;margin:0;padding:6px 8px;font-weight:400;line-height:1.3;position:fixed;inset:auto;overflow:visible}.peach-react [data-entity-foot]{border-top:1px solid var(--line-soft);background:var(--board-card-foot);align-items:center;gap:16px;min-width:0;padding:12px 20px;display:flex}.peach-react [data-related-people]{scrollbar-width:none;overscroll-behavior-inline:contain;flex:1;align-items:center;gap:4px;min-width:0;margin-top:-3px;padding-top:3px;display:flex;overflow-x:auto}.peach-react [data-related-people]::-webkit-scrollbar{display:none}.peach-react [data-related-people]>button{width:76px;max-width:none;height:auto;color:var(--muted);font:var(--board-body-medium);text-align:center;white-space:nowrap;cursor:pointer;transition:transform var(--lift-motion,var(--board-motion)), scale calc(var(--spring-press-ms) * 1ms) var(--spring-press), background-color .2s ease-out, color .2s ease-out;background:0 0;border:0;border-radius:12px;flex-direction:column;flex:none;align-items:center;gap:6px;padding:6px 4px;display:flex}.peach-react [data-related-people]>button:hover{background:var(--hover);color:var(--ink)}.peach-react [data-related-people]>button:active{transition:scale 60ms ease-out;scale:.96}.peach-react [data-hero-ring]{background:var(--ink);border-radius:50%;flex:none;width:48px;height:48px;margin:0;display:block;position:relative;overflow:hidden}@supports (color:color-mix(in lab, red, red)){.peach-react [data-hero-ring]{background:color-mix(in srgb, var(--ink) 10%, var(--surface))}}.peach-react [data-hero-ring]{color:var(--muted);font:600 18px/24px var(--board-font)}.peach-react [data-hero-ring]>span{color:inherit;font:inherit;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.peach-react [data-hero-ring]>img{object-fit:cover;width:100%;max-width:none;height:100%;max-height:none;display:block;position:absolute;inset:0}.peach-react [data-hero-costar-name]{max-width:100%;color:inherit;font:var(--board-caption);text-align:center;text-overflow:ellipsis;display:block;overflow:hidden}.peach-react [data-namepick-menu]{width:min(260px,100vw - 16px);font:var(--board-body);letter-spacing:0}.peach-react [data-namepick-list],.peach-react [data-namepick-list]>section{outline:none;gap:2px;display:grid}.peach-react [data-namepick-menu] [role^=menuitem]{box-sizing:border-box;width:100%;min-height:36px;color:var(--muted);text-align:left;overflow-wrap:anywhere;cursor:pointer;background:0 0;border-radius:10px;outline:none;justify-content:flex-start;align-items:center;gap:8px;padding:8px;display:flex}.peach-react [data-namepick-menu] [role^=menuitem]:is([data-hovered],[data-focus-visible]){background:var(--hover);color:var(--ink)}.peach-react [data-namepick-menu] [role=menuitemradio] svg{visibility:hidden}.peach-react [data-namepick-menu] [aria-checked=true]{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-namepick-menu] [aria-checked=true]{background:color-mix(in srgb, var(--ink) 10%, var(--surface))}}.peach-react [data-namepick-menu] [aria-checked=true]{color:var(--ink)}.peach-react [data-namepick-menu] [aria-checked=true] svg{visibility:visible}.peach-react [data-namepick-rule]{border:0;border-top:1px solid var(--border-10);height:0;margin:4px 1px}@media (width<=760px){.peach-react [data-entity-profile]{text-align:center;grid-template-columns:minmax(0,1fr);justify-items:center;gap:12px;padding:16px}.peach-react [data-entity-portrait-wrap]{--portrait-size:96px}.peach-react [data-entity-portrait]{width:96px}.peach-react [data-entity-identity]{width:100%}.peach-react [data-entity-foot]{padding:10px 16px}.peach-react [data-entity-title]{justify-content:center}.peach-react [data-namepick-toggle]{position:relative}.peach-react [data-namepick-toggle]:after{content:"";width:44px;height:44px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.peach-react [data-namepick-menu] [role^=menuitem]{min-height:44px}.peach-react [data-entity-alias]{margin-bottom:10px}.peach-react :is([data-entity-alias=meta],[data-meta-item=names]){justify-content:center}.peach-react [data-entity-links]{scrollbar-width:none;overscroll-behavior-inline:contain;margin-top:9px;margin-bottom:-4px;flex-wrap:nowrap;justify-content:safe center;max-width:none;margin-inline:-16px;padding-block:4px;padding-inline:16px;scroll-padding-inline:16px;overflow:auto hidden}.peach-react [data-entity-links]::-webkit-scrollbar{display:none}.peach-react [data-entity-card] [data-entity-links]>*{flex:none}.peach-react [data-entry-marks]{justify-content:center}}.peach-react [data-entity-filter-glass]{z-index:60;font:var(--board-body);letter-spacing:normal}.peach-react :is([data-entity-filter-glass],[data-entity-combo]) :is(button,[role=radio]):focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-entity-press]{transition:scale calc(var(--spring-press-ms) * 1ms) var(--spring-press)}.peach-react [data-entity-press]:active{transition:scale 60ms ease-out;scale:.96}.peach-react [data-entity-sep]{background:var(--field-ring-hover);flex:none;width:1px;height:19px;margin:0 3px}.peach-react [data-entity-media]{flex:none;align-items:center;gap:2px;display:inline-flex}.peach-react [data-media-view]{z-index:1;width:30px;height:30px;color:var(--glass-text);border-radius:50%;flex:0 0 30px;place-items:center;display:grid;position:relative}@supports (color:color-mix(in lab, red, red)){.peach-react [data-media-view]{color:color-mix(in srgb, var(--glass-text) 60%, transparent)}}.peach-react [data-media-view]{cursor:pointer}.peach-react [data-media-view]:hover,.peach-react [data-media-view][aria-pressed=true]{color:var(--glass-text)}.peach-react [data-media-view] svg{fill:none;stroke:currentColor;stroke-width:2px;width:20px;height:20px;display:block}.peach-react [data-media-view][data-media-icon=image] svg{fill:currentColor;stroke:none}.peach-react [data-entity-scroll]{flex:1;align-items:center;gap:6px;min-width:0;display:flex;position:relative}.peach-react [data-entity-states]{flex:none;align-items:center;gap:6px;display:flex}.peach-react [data-entity-state]{z-index:1;height:30px;color:var(--glass-text);border-radius:999px;flex:none;justify-content:center;align-items:center;padding:0 10px;display:inline-flex;position:relative}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-state]{color:color-mix(in srgb, var(--glass-text) 60%, transparent)}}.peach-react [data-entity-state]{white-space:nowrap;cursor:pointer;font-size:13px;line-height:20px}.peach-react [data-entity-state]:hover,.peach-react [data-entity-state][aria-pressed=true]{color:var(--glass-text)}.peach-react [data-entity-tags]{overscroll-behavior-inline:contain;scrollbar-width:none;flex-wrap:nowrap;flex:1;align-items:center;gap:6px;min-width:0;display:flex;overflow:auto hidden}.peach-react [data-entity-tags]::-webkit-scrollbar{display:none}.peach-react [data-entity-tag]{color:var(--glass-text);border-style:solid;gap:0}.peach-react [data-entity-tag][aria-pressed=false]:hover{border-color:var(--field-ring);color:var(--ink)}.peach-react [data-entity-tag][aria-pressed=true]{background:linear-gradient(180deg, var(--glass-sheen), transparent 62%), var(--glass-pick-fill);-webkit-backdrop-filter:var(--glass-pick);backdrop-filter:var(--glass-pick);box-shadow:inset 0 0 0 1px var(--glass-rim), var(--glass-pick-shadow);border-color:#0000}.peach-react [data-entity-tag] [data-count-badge]{color:var(--glass-text);margin-left:6px}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-tag] [data-count-badge]{color:color-mix(in srgb, var(--glass-text) 55%, transparent)}}.peach-react [data-entity-tag] [data-count-badge]{font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:11px}.peach-react [data-entity-tag]:is(:hover,[aria-pressed=true]) [data-count-badge]{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-tag]:is(:hover,[aria-pressed=true]) [data-count-badge]{color:color-mix(in srgb, var(--glass-text) 80%, transparent)}}@media (width<=760px){.peach-react [data-entity-scroll]{overscroll-behavior-inline:contain;scrollbar-width:none;overflow:auto hidden}.peach-react [data-entity-scroll]::-webkit-scrollbar{display:none}.peach-react [data-entity-scroll]>[data-entity-tags]{flex:none;min-width:auto;overflow:visible}}.peach-react [data-entity-readout]{color:var(--ink-2);letter-spacing:normal;white-space:nowrap;flex:none;margin:0;font-size:12px;font-weight:400;line-height:20px}.peach-react [data-entity-sorts]{scrollbar-width:none;margin-left:auto;flex-wrap:nowrap;align-items:center;gap:4px;min-width:0;margin-block:-14px;padding:14px 2px;display:flex;overflow-x:auto}.peach-react [data-entity-sorts]::-webkit-scrollbar{display:none}.peach-react [data-entity-sort]{height:30px;min-height:30px;color:var(--glass-text);border-radius:7px;flex:none;align-items:center;padding:0 8px;display:inline-flex}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-sort]{color:color-mix(in srgb, var(--glass-text) 62%, transparent)}}.peach-react [data-entity-sort]{white-space:nowrap;cursor:pointer;font-size:12px;line-height:20px}.peach-react [data-entity-sort]:hover{color:var(--glass-text)}.peach-react [data-entity-sort][aria-pressed=true]{color:var(--glass-text);font-weight:500}.peach-react [data-entity-sort] svg{flex:none;width:14px;height:14px;margin-left:5px}.peach-react [data-entity-batch]{background:var(--board-blue);width:36px;height:30px;min-height:30px;box-shadow:var(--elevation-xs);color:#fff;cursor:pointer;border-radius:7px;flex:none;place-items:center;font-size:12px;font-weight:600;display:inline-grid}.peach-react [data-entity-batch]:hover{background:var(--board-blue-hover);color:#fff}.peach-react [data-entity-batch] svg{fill:none;stroke:currentColor;stroke-width:2px;width:16px;height:16px}.peach-react [data-entity-batch][aria-busy=true]{cursor:wait}.peach-react [data-filter-row=bottom][aria-busy=true] [data-entity-batch] svg{--strand-dash:100;--strand-cycle:2.2s}.peach-react [data-entity-layout]{flex:none;gap:2px;margin:0 6px}.peach-react [data-entity-layout] svg{width:16px;height:16px}.peach-react [data-entity-layout] [data-glass-segment][data-selected]{-webkit-backdrop-filter:var(--glass-pick);backdrop-filter:var(--glass-pick)}@media (pointer:coarse){.peach-react :is([data-entity-sort],[data-entity-batch]){height:36px}}.peach-react [data-photo-back]{border:1px solid var(--glass-low);border-radius:var(--control-radius);height:30px;color:var(--glass-text);white-space:nowrap;cursor:pointer;flex:none;align-items:center;gap:4px;padding:0 10px 0 6px;font-size:12px;display:flex}.peach-react [data-photo-back]:hover{background:var(--overlay-5)}.peach-react [data-photo-back] svg{fill:none;stroke:currentColor;stroke-width:2px;width:15px;height:15px}.peach-react [data-entity-srctools]{display:contents}.peach-react [data-entity-srctools]>*{flex:none;margin:0}.peach-react [data-entity-srctools] [aria-live]{flex:none}@media (width<=760px){.peach-react [data-entity-filter-glass]>[data-filter-row=bottom]{overscroll-behavior-inline:contain;scrollbar-width:none;touch-action:pan-x pan-y;flex-wrap:nowrap;gap:10px;overflow:auto hidden}.peach-react [data-entity-filter-glass]>[data-filter-row=bottom]::-webkit-scrollbar{display:none}.peach-react [data-entity-sorts]{flex:none;width:max-content;max-width:none;overflow:visible}.peach-react [data-entity-filter-glass][data-filter-free]{top:var(--filter-free-top)}}.peach-react [data-entity-combo]{height:auto;font:var(--board-body);interpolate-size:allow-keywords;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 10px;transition:height .22s cubic-bezier(0,0,.2,1),margin-bottom .22s cubic-bezier(0,0,.2,1);display:flex;overflow:hidden}.peach-react [data-entity-combo]:empty{height:0;margin-bottom:0}@media (prefers-reduced-motion:reduce){.peach-react [data-entity-combo]{transition:none}}.peach-react [data-combo-chip]{border:1px solid var(--line);border-radius:var(--tag-radius);background:var(--picked);min-height:30px;color:var(--ink-2);font-size:var(--fs-md);align-items:center;padding:0 0 0 11px;line-height:20px;display:inline-flex;overflow:hidden}.peach-react [data-combo-chip] button{width:28px;height:28px;color:var(--muted);font-size:var(--fs-xs);cursor:pointer;place-items:center;margin-left:5px;font-weight:400;display:grid}.peach-react [data-combo-chip] button:hover{background:var(--drop)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-combo-chip] button:hover{background:color-mix(in srgb, var(--drop) 12%, transparent)}}.peach-react [data-combo-chip] button:hover{color:var(--drop)}.peach-react [data-combo-clear]{min-height:28px;color:var(--muted);font-size:var(--fs-xs);cursor:pointer;align-items:center;padding:0 6px;display:inline-flex}.peach-react [data-photo-wall]{--photo-columns:5;grid-template-columns:repeat(var(--photo-columns), minmax(0, 1fr));gap:10px;display:grid}.peach-react [data-photo-wall][data-size=big]{--photo-columns:3}@media (width<=1400px){.peach-react [data-photo-wall]{--photo-columns:4}.peach-react [data-photo-wall][data-size=big]{--photo-columns:2}}@media (width<=1000px){.peach-react [data-photo-wall]{--photo-columns:3}.peach-react [data-photo-wall][data-size=big]{--photo-columns:1}}@media (width<=640px){.peach-react [data-photo-wall]{--photo-columns:2;gap:8px}.peach-react [data-photo-wall][data-size=big]{--photo-columns:1}}.peach-react [data-photo-wall][data-layout=masonry]{column-count:var(--photo-columns);column-gap:10px;display:block}.peach-react [data-photo-cell]{aspect-ratio:1;border-radius:var(--surface-radius);background:var(--sunk);cursor:zoom-in;border:0;width:100%;margin:0;padding:0;line-height:0;display:block;overflow:hidden}.peach-react [data-photo-cell] img{object-fit:cover;background:var(--sunk);color:#0000;width:100%;height:100%;display:block}.peach-react [data-photo-cell]:hover img{filter:brightness(1.06)}.peach-react [data-photo-cell]:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-photo-wall][data-layout=masonry]>[data-photo-cell]{aspect-ratio:auto;break-inside:avoid;margin:0 0 14px}.peach-react [data-photo-wall][data-layout=masonry]>[data-photo-cell] img{aspect-ratio:auto 1;height:auto}.peach-react [data-photo-wall][data-layout=masonry]>[data-photo-cell]:not(:has(img)){aspect-ratio:3/2}.peach-react [data-photo-group]{min-width:0;color:var(--muted);font-size:var(--fs-sm);align-items:baseline;gap:10px;margin:28px 2px 10px;line-height:20px;display:flex}.peach-react [data-photo-group]>b{color:var(--ink);font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-md);font-variant-numeric:tabular-nums;flex:none}.peach-react [data-photo-group-title]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.peach-react [data-photo-group-meta]{flex:none;margin-left:auto}.peach-react [data-follow-feed]{font:var(--board-body);padding:4px 0 42px}.peach-react [data-follow-head]{justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px;display:flex}.peach-react [data-follow-title]{font:var(--board-title);font-size:var(--fs-2xl);letter-spacing:0;margin:0}@media (width<=760px){.peach-react [data-follow-title]{font:var(--board-figure);font-size:var(--fs-xl)}}.peach-react [data-follow-head-actions]{flex:none;align-items:center;gap:8px;display:inline-flex}.peach-react button:is([data-follow-manage],[data-follow-older]):has(>svg){gap:0;padding-left:12px}.peach-react button:is([data-follow-manage],[data-follow-older])>svg{width:14px;height:14px}.peach-react :is([data-follow-authors],[data-follow-works]){overscroll-behavior-inline:contain;scrollbar-width:none;align-items:center;gap:4px;display:flex;overflow-x:auto}.peach-react :is([data-follow-authors],[data-follow-works])::-webkit-scrollbar{display:none}.peach-react [data-follow-authors]{margin:0 0 2px;padding:3px 0 10px}.peach-react [data-follow-works]{margin:0 0 2px;padding:0 0 10px}@media (width<=640px){.peach-react [data-follow-authors]{margin-right:-12px}}.peach-react :is(button[data-follow-author],button[data-follow-work]){color:var(--color-text-secondary);font:var(--board-body-medium);white-space:nowrap;cursor:pointer;transition:transform var(--lift-motion,var(--board-motion)), scale calc(var(--spring-press-ms) * 1ms) var(--spring-press), background-color .2s ease-out, color .2s ease-out;background:0 0;border:0;flex:none}.peach-react :is(button[data-follow-author],button[data-follow-work]):active{transition:scale 60ms ease-out;scale:.96}.peach-react :is(button[data-follow-author],button[data-follow-work]):hover{background:var(--color-background-primary-hover);color:var(--color-text-primary)}.peach-react :is(button[data-follow-author],button[data-follow-work])[aria-pressed=true]{background:var(--color-background-tertiary-default);color:var(--color-text-primary)}.peach-react :is(button[data-follow-author],button[data-follow-work]):focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react button[data-follow-author]{text-align:center;border-radius:12px;flex-direction:column;align-items:center;gap:6px;width:76px;padding:6px 4px;display:flex}.peach-react button[data-follow-work]{text-align:left;border-radius:12px;align-items:center;gap:8px;height:40px;padding:6px 12px 6px 6px;display:inline-flex}.peach-react :is([data-follow-ring],[data-follow-mark]){background:var(--color-text-primary);border-radius:50%;flex:none;justify-content:center;align-items:center;margin:0;display:flex;position:relative;overflow:hidden}@supports (color:color-mix(in lab, red, red)){.peach-react :is([data-follow-ring],[data-follow-mark]){background:color-mix(in srgb, var(--color-text-primary) 10%, var(--color-background-primary-default))}}.peach-react :is([data-follow-ring],[data-follow-mark]){color:var(--color-text-secondary)}.peach-react [data-follow-ring]{width:48px;height:48px;font:600 18px/24px var(--board-font)}.peach-react [data-follow-mark]{width:28px;height:28px;font:600 12px/16px var(--board-font)}.peach-react [data-follow-ring]>img,.peach-react [data-follow-mark]>img{object-fit:cover;width:100%;max-width:none;height:100%;display:block;position:absolute;inset:0}.peach-react [data-follow-mark]>img{object-position:50% 25%}.peach-react [data-follow-ring]>span{width:100%;height:100%;font:inherit;color:inherit;justify-content:center;align-items:center;display:flex}.peach-react [data-follow-name]{max-width:100%;color:inherit;font:var(--board-caption);text-align:center;text-overflow:ellipsis;display:block;overflow:hidden}.peach-react [data-follow-filter-glass]{z-index:60;font:var(--board-body);letter-spacing:normal}.peach-react [data-follow-filter-glass] :is(button,[role=radio]):focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-follow-filter-glass]>[data-filter-row=bottom]{overscroll-behavior-inline:contain;scrollbar-width:none;overflow-x:auto}.peach-react [data-follow-filter-glass]>[data-filter-row=bottom]::-webkit-scrollbar{display:none}@media (width<=760px){.peach-react [data-follow-filter-glass] [data-entity-sorts]{padding-left:0}}.peach-react [data-follow-filter-glass] :is([data-entity-scroll],[data-entity-states],[data-entity-tags]){gap:7px}.peach-react button[data-follow-provider]{border:1px dashed var(--glass-low);border-radius:var(--tag-radius);cursor:pointer;background:0 0;flex:none;justify-content:center;align-items:center;width:34px;height:30px;padding:0;display:inline-flex}.peach-react button[data-follow-provider]:hover{border-style:solid;border-color:var(--field-ring)}.peach-react button[data-follow-provider][aria-pressed=true]{border-style:solid;border-color:var(--field-ring);background:var(--picked)}.peach-react [data-follow-provider]>img{border-radius:var(--badge-radius);object-fit:contain;width:18px;height:18px;margin:0}.peach-react [data-follow-filter-glass] [data-follow-tag]{--tag-color:#55a7ff;color:var(--glass-text);gap:6px}.peach-react [data-follow-filter-glass] [data-follow-tag][data-tag-cat=r34-artist]{--tag-color:#e36c6c}.peach-react [data-follow-filter-glass] [data-follow-tag][data-tag-cat=r34-character]{--tag-color:#68c76f}.peach-react [data-follow-filter-glass] [data-follow-tag][data-tag-cat=r34-copyright]{--tag-color:#d675d6}.peach-react [data-follow-filter-glass] [data-follow-tag][data-tag-cat=r34-metadata]{--tag-color:#f5a24a}.peach-react [data-follow-filter-glass] [data-follow-tag]:hover{border-color:var(--field-ring)}.peach-react [data-follow-filter-glass] [data-follow-tag][aria-pressed=true]{border-style:solid;border-color:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-filter-glass] [data-follow-tag][aria-pressed=true]{border-color:color-mix(in srgb, var(--tag-color) 72%, transparent)}}.peach-react [data-follow-filter-glass] [data-follow-tag][aria-pressed=true]{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-filter-glass] [data-follow-tag][aria-pressed=true]{background:color-mix(in srgb, var(--tag-color) 22%, transparent)}}.peach-react [data-follow-filter-glass] [data-follow-tag][aria-pressed=true]{color:var(--glass-text,var(--ink))}.peach-react [data-follow-filter-glass] [data-follow-tag] [data-count-badge]{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-filter-glass] [data-follow-tag] [data-count-badge]{color:color-mix(in srgb, var(--glass-text) 55%, transparent)}}.peach-react [data-follow-filter-glass] [data-follow-tag] [data-count-badge]{font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:11px}.peach-react button[data-follow-images-only]{width:30px;height:30px;color:var(--glass-text);background:0 0;border:0;border-radius:7px;flex:none;place-items:center;padding:0;display:grid;position:relative}@supports (color:color-mix(in lab, red, red)){.peach-react button[data-follow-images-only]{color:color-mix(in srgb, var(--glass-text) 60%, transparent)}}.peach-react button[data-follow-images-only]{cursor:pointer}.peach-react button[data-follow-images-only]:is(:hover,[aria-pressed=true]){color:var(--glass-text)}.peach-react button[data-follow-images-only]>[data-view-glide]{inset:0}.peach-react button[data-follow-images-only] svg{z-index:1;fill:none;stroke:currentColor;stroke-width:2px;width:16px;height:16px;position:relative}.peach-react [data-follow-readout]{font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace}.peach-react [data-follow-broken]>[role=alert]{margin:10px 0 14px}.peach-react [data-follow-broken] [data-follow-manage]{color:var(--tungsten);font:inherit;cursor:pointer;background:0 0;border:0;padding:0}.peach-react [data-follow-pagination]{border-top:1px solid var(--line-soft);flex-wrap:wrap;align-items:center;gap:14px 24px;margin-top:18px;padding-top:14px;display:flex;overflow-x:auto}.peach-react [data-follow-page-action]{align-items:center;gap:12px;display:inline-flex}.peach-react [data-follow-pagination] [data-entity-more]{gap:4px;min-width:0;margin:0}.peach-react :is([data-follow-older],[data-follow-recheck])>span{gap:4px}.peach-react button[data-follow-older][aria-busy]{border-color:var(--line);background:var(--ground);color:var(--muted);box-shadow:none}.peach-react [data-follow-backfill]{color:var(--muted);font:var(--board-compact)}.peach-react [data-follow-list]{grid-template-columns:repeat(auto-fill, minmax(var(--tile), 1fr));gap:24px 16px;display:grid}.peach-react [data-follow-list]>[data-media-card]{align-self:start}.peach-react [data-follow-list]>[data-follow-empty]{grid-column:1/-1}.peach-react [data-follow-wall]{--photo-columns:5;grid-template-columns:repeat(var(--photo-columns), minmax(0, 1fr));align-items:start;gap:14px 10px}.peach-react [data-follow-wall][data-size=big]{--photo-columns:3}@media (width<=1400px){.peach-react [data-follow-wall]{--photo-columns:4}.peach-react [data-follow-wall][data-size=big]{--photo-columns:2}}@media (width<=1000px){.peach-react [data-follow-wall]{--photo-columns:3}.peach-react [data-follow-wall][data-size=big]{--photo-columns:1}}@media (width<=640px){.peach-react [data-follow-wall]{--photo-columns:2;gap:12px 8px}.peach-react [data-follow-wall][data-size=big]{--photo-columns:1}}.peach-react [data-follow-wall][data-layout=masonry]{column-count:var(--photo-columns);column-gap:10px;display:block}.peach-react [data-follow-wall][data-layout=masonry]>[data-follow-empty]{column-span:all}.peach-react [data-follow-wall][data-layout=masonry]>[data-media-card]{break-inside:avoid;margin:0 0 14px}.peach-react [data-follow-wall][data-images-only=true] [data-follow-item] :is([data-media-meta],[data-media-badge],[data-follow-collection],[data-follow-state]){display:none}.peach-react [data-follow-wall] [data-media-card] :is([data-media-pic],[data-media-meta]){content-visibility:visible}.peach-react [data-follow-wall] [data-media-card] [data-media-meta]{pointer-events:auto;contain-intrinsic-block-size:none;margin:0;padding:0}.peach-react [data-follow-item] [data-media-meta]{--card-meta-byline:max(1lh, 21px);--card-meta-badges:0px}.peach-react [data-follow-item] [data-media-meta]:has(>[data-media-text]>[data-follow-badges]){--card-meta-badges:calc(1lh + 6px + 3px)}.peach-react [data-follow-list]:not([data-follow-wall]) [data-follow-item] [data-media-meta]{contain-intrinsic-block-size:auto calc(var(--card-meta-block) + var(--card-meta-badges))}.peach-react [data-follow-item][data-status=ignored]{opacity:.62}.peach-react [data-follow-visual]{isolation:isolate;border-radius:var(--surface-radius);position:relative}.peach-react [data-follow-visual]>[data-media-pic]{z-index:1}.peach-react [data-follow-open]{z-index:1;border-radius:inherit;cursor:pointer;background:0 0;border:0;padding:0;position:absolute;inset:0}.peach-react [data-follow-open]:focus-visible{outline:2px solid var(--tungsten);outline-offset:-2px}.peach-react [data-select-mode] :is([data-follow-open],[data-follow-actions],[data-follow-collection]){pointer-events:none!important}.peach-react [data-follow-nothumb]{color:var(--muted);font-size:var(--fs-xs);place-items:center;display:grid;position:absolute;inset:0}.peach-react :is([data-media-badge],[data-follow-nothumb])>img{border-radius:var(--badge-radius);object-fit:contain;width:18px;height:18px;margin:0}.peach-react [data-follow-image] [data-media-pic]{aspect-ratio:4/3;background:var(--sunk);min-height:0}.peach-react [data-follow-image] [data-media-pic]>img,.peach-react [data-follow-image] :is([data-mix-faces],[data-mix-face] img){background:var(--sunk)}.peach-react [data-follow-wall][data-layout=masonry] [data-follow-image] [data-media-pic]{aspect-ratio:1}.peach-react [data-follow-wall][data-layout=masonry] [data-follow-image] [data-media-pic]:has(>img[width][height]){aspect-ratio:auto}.peach-react [data-follow-wall][data-layout=masonry] [data-follow-image] [data-media-pic]>img[width][height]{aspect-ratio:auto 1;height:auto;position:static}.peach-react [data-follow-corner]{z-index:7;pointer-events:none;flex-direction:column;align-items:flex-end;gap:6px;display:flex;position:absolute;top:10px;right:10px}.peach-react [data-follow-collection]{border-radius:var(--control-radius);color:#fff;min-height:28px;font:inherit;cursor:pointer;pointer-events:auto;-webkit-backdrop-filter:blur(10px);background:#0c0808b8;border:0;align-items:center;gap:6px;padding:4px 9px;display:flex}.peach-react [data-follow-collection] svg{fill:none;stroke:currentColor;stroke-width:2px;width:15px;height:15px}.peach-react [data-follow-actions]{opacity:0;pointer-events:none;align-items:center;gap:6px;transition:opacity .15s;display:flex}.peach-react [data-follow-actions] button{color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(10px);background:#0000007a;border:1px solid #ffffff29;border-radius:50%;place-items:center;width:36px;height:36px;padding:0;display:grid}.peach-react [data-follow-actions] button svg{fill:none;stroke:currentColor;stroke-width:2px;width:18px;height:18px}.peach-react [data-follow-actions] button:hover:not(:disabled){background:#ffffff2e;transform:scale(1.08)}.peach-react [data-follow-actions] button:disabled{opacity:.42;cursor:not-allowed}.peach-react [data-follow-actions] button[aria-busy]{cursor:wait;opacity:.72}@media (hover:hover) and (pointer:fine){.peach-react [data-follow-item]:hover [data-follow-actions]{opacity:1;pointer-events:auto}}@media (hover:none),(pointer:coarse){.peach-react [data-follow-item] [data-follow-actions]{opacity:1;pointer-events:auto}}.peach-react [data-follow-avatar]{cursor:default;background:var(--overlay-5);border:1px solid var(--line-soft);place-items:center;display:grid}.peach-react [data-follow-avatar]>img{border-radius:50%}.peach-react [data-follow-avatar]>span:first-child{width:100%;height:100%;color:var(--muted);font-family:var(--board-font);font-size:var(--fs-sm);place-items:center;display:grid}.peach-react [data-follow-byline]{min-width:0;min-height:21px;color:var(--muted);flex-wrap:nowrap;align-items:center;gap:6px;display:flex;overflow:hidden}.peach-react [data-follow-byline]>[data-follow-author]{min-width:0;color:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.peach-react [data-follow-byline]>time{font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums;white-space:nowrap;flex:none}.peach-react [data-follow-credit]{color:var(--muted);font-size:var(--fs-xs);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.peach-react [data-follow-badges]{flex-wrap:nowrap;gap:5px;min-width:0;display:flex;overflow:hidden}.peach-react [data-follow-item] [data-media-tag]{--tag-color:#55a7ff;border-color:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-item] [data-media-tag]{border-color:color-mix(in srgb, var(--tag-color) 42%, transparent)}}.peach-react [data-follow-item] [data-media-tag]{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-item] [data-media-tag]{background:color-mix(in srgb, var(--tag-color) 10%, transparent)}}.peach-react [data-follow-item] [data-media-tag]{cursor:default}.peach-react [data-follow-item] [data-media-tag][data-tag-cat=r34-artist]{--tag-color:#e36c6c}.peach-react [data-follow-item] [data-media-tag][data-tag-cat=r34-character]{--tag-color:#68c76f}.peach-react [data-follow-item] [data-media-tag][data-tag-cat=r34-copyright]{--tag-color:#d675d6}.peach-react [data-follow-item] [data-media-tag][data-tag-cat=r34-metadata]{--tag-color:#f5a24a}.peach-react [data-follow-issue]{color:var(--drop);font-size:var(--fs-sm);margin:18px 0 8px;line-height:1.7;display:block}.peach-react [data-follow-state]{color:var(--drop);font-size:var(--fs-xs);flex:100%}.peach-react [data-follow-detail] [data-follow-detail-media]{--follow-image-arrow-inset:16px}.peach-react [data-follow-detail] [data-follow-detail-media=image]{background:var(--video-glow,#15202a)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-detail] [data-follow-detail-media=image]{background:color-mix(in srgb, var(--video-glow,#15202a) 12%, var(--surface) 88%)}}.peach-react [data-follow-detail] [data-follow-detail-poster]{z-index:1;object-fit:contain;background:0 0;width:auto;max-width:100%;height:auto;max-height:76vh;display:block;position:relative}.peach-react [data-follow-detail] [data-follow-detail-poster][data-zoomable]{cursor:zoom-in}.peach-react [data-follow-detail] [data-framed] [data-follow-detail-poster]{width:100%;aspect-ratio:var(--follow-frame-ratio)}.peach-react [data-follow-detail] [data-follow-detail-placeholder]{aspect-ratio:16/9;color:var(--muted);place-items:center;gap:10px;display:grid}.peach-react [data-follow-detail] [data-follow-detail-placeholder] img{width:34px;height:34px;margin:0}.peach-react [data-follow-detail] [data-follow-image-arrow]{box-sizing:border-box;z-index:4;cursor:pointer;color:#fff;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009;border:0;border-radius:50%;place-items:center;width:48px;height:48px;padding:0;display:grid;position:absolute;top:50%;transform:translateY(-50%)}.peach-react [data-follow-detail] [data-follow-image-arrow]:hover{background:#000000c7}.peach-react [data-follow-detail] [data-follow-image-arrow]:focus-visible{outline:2px solid var(--tungsten);outline-offset:3px}.peach-react [data-follow-detail] [data-follow-image-arrow] svg{stroke:currentColor;fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:24px;height:24px;display:block}.peach-react [data-follow-detail] [data-follow-image-arrow=prev]{left:var(--follow-image-arrow-inset)}.peach-react [data-follow-detail] [data-follow-image-arrow=next]{right:var(--follow-image-arrow-inset)}.peach-react [data-follow-detail] [data-follow-image-dots]{z-index:4;border-radius:var(--pill-radius);background:#00000080;justify-content:center;align-items:center;gap:8px;max-width:calc(100% - 120px);padding:8px 11px;display:flex;position:absolute;bottom:18px;left:50%;overflow:hidden;transform:translate(-50%)}.peach-react [data-follow-detail] [data-follow-image-dots] button{cursor:pointer;background:#ffffff6b;border:0;border-radius:50%;flex:none;width:8px;height:8px;padding:0}.peach-react [data-follow-detail] [data-follow-image-dots] button[aria-current=true]{border-radius:var(--pill-radius);background:#fff;width:20px}.peach-react [data-follow-detail] [data-follow-queue-meta]{align-items:center;gap:6px;display:flex}.peach-react [data-follow-detail] [data-follow-queue-meta]>[data-follow-queue-source]{display:contents}.peach-react [data-follow-detail] [data-follow-queue-meta] img{flex:none;margin:0}.peach-react [data-follow-detail] [data-follow-queue-meta] time{white-space:nowrap;flex:none}.peach-react [data-follow-detail] [data-follow-variant]{border-radius:var(--badge-radius);text-overflow:ellipsis;vertical-align:-2px;background:var(--overlay-5);min-width:0;max-width:120px;color:var(--muted);font-size:var(--fs-xs);flex:0 auto;margin:0;padding:1px 7px;font-style:normal;display:inline-block;overflow:hidden}.peach-react [data-follow-detail] [data-follow-variant=wip]{color:var(--meter)}.peach-react [data-follow-detail] [data-follow-variant=alt]{color:var(--ink-2)}.peach-react [data-follow-detail] [data-follow-nothumb]{width:100%;height:100%;color:var(--muted);font-size:var(--fs-xs);place-items:center;display:grid}.peach-react [data-follow-detail] [data-follow-nothumb] svg{stroke:currentColor;fill:none;stroke-width:2px;width:22px;height:22px}.peach-react [data-follow-detail] [data-follow-detail-title]{align-items:flex-start;gap:5px;margin-bottom:8px;display:flex}.peach-react [data-follow-detail] [data-follow-detail-title]>[data-follow-detail-name]{width:auto;max-width:calc(100% - 35px);margin:0}.peach-react [data-follow-detail] [data-follow-origin]{flex:none;width:30px;height:30px;margin:0}.peach-react [data-follow-detail] [data-follow-detail-identity]{align-items:center;gap:10px;margin:2px 0 12px;display:flex}.peach-react [data-follow-detail] [data-follow-detail-identity] b,.peach-react [data-follow-detail] [data-follow-detail-identity] span{display:block}.peach-react [data-follow-detail] [data-follow-detail-identity]>div>span{color:var(--muted);font-size:var(--fs-xs);margin-top:3px}.peach-react [data-follow-detail] [data-follow-source-avatar]{cursor:default;background:var(--overlay-5);border:1px solid var(--line-soft);flex:none;place-items:center;display:grid}.peach-react [data-follow-detail] [data-follow-source-avatar]:hover{box-shadow:none}.peach-react [data-follow-detail] [data-follow-source-avatar]>*{object-fit:cover;border-radius:50%;outline:0;width:100%;height:100%;position:absolute;inset:0}.peach-react [data-follow-detail] [data-follow-source-avatar]>span{font-size:var(--fs-sm);color:var(--muted);place-items:center;display:grid}.peach-react [data-follow-detail] [data-follow-badges]{flex-wrap:nowrap;gap:5px;min-width:0;display:flex;overflow:hidden}.peach-react [data-follow-detail] [data-follow-detail-summary]{color:var(--ink-2);white-space:pre-line;margin:0 0 16px;line-height:1.6}.peach-react [data-follow-detail] [data-follow-media-issue]{font-size:var(--fs-sm);color:var(--drop);margin:18px 0 8px;line-height:1.7}.peach-react [data-follow-detail] [data-follow-media-issue][hidden]{display:none}.peach-react [data-follow-detail] [data-follow-resources]{flex-wrap:wrap;gap:8px;margin:0 0 16px;display:flex}.peach-react [data-follow-detail] [data-follow-resources] a{height:34px}.peach-react [data-follow-detail] [data-follow-detail-actions] button:disabled{opacity:.45;cursor:not-allowed}.peach-react [data-follow-detail] [data-follow-download]{box-sizing:border-box;background:var(--surface);width:36px;min-width:36px;height:36px;color:var(--ink-2);border:0;border-radius:8px;flex:0 0 36px;place-items:center;padding:0;display:grid}.peach-react [data-follow-detail] [data-follow-download]:hover{background:var(--hover);color:var(--ink)}.peach-react [data-follow-detail] [data-follow-download] svg{stroke:currentColor;fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px;margin:0;display:block}@media (width<=760px){.peach-react [data-follow-detail] [data-follow-detail-actions]{width:max-content;max-width:100%}.peach-react [data-follow-detail] [data-follow-detail-actions] :is(button,[data-follow-download]){flex:none}}.peach-react [data-follow-detail] [data-follow-hidden-media]{align-items:center;gap:10px;margin-top:14px;display:flex}.peach-react [data-follow-detail] [data-follow-hidden-label]{color:var(--muted);white-space:nowrap}.peach-react [data-follow-detail] [data-follow-hidden-thumbs]{flex-wrap:wrap;gap:6px;display:flex}.peach-react [data-follow-detail] [data-follow-hidden-thumbs] button{border:1px solid var(--border-15);border-radius:var(--control-radius);cursor:pointer;background:0 0;width:40px;height:40px;padding:0;position:relative;overflow:hidden}.peach-react [data-follow-detail] [data-follow-hidden-thumbs] button:hover{border-color:var(--ink-3)}.peach-react [data-follow-detail] [data-follow-hidden-thumbs] img{object-fit:cover;opacity:.55;width:100%;height:100%;display:block}.peach-react [data-follow-detail] [data-follow-hidden-thumbs] i{background:var(--hover);width:16px;height:16px;color:var(--ink-2);border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;bottom:2px;right:2px}.peach-react [data-follow-detail] [data-follow-hidden-thumbs] svg{stroke:currentColor;fill:none;width:11px;height:11px}.peach-react [data-follow-detail] [data-follow-state]{font-size:var(--fs-xs);color:var(--drop);flex:none}.peach-react [data-follow-detail] [data-follow-detail-tags]{margin:16px 0 0}.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]{text-overflow:clip;white-space:normal;text-align:left;max-width:none;color:var(--ink-2);border-color:var(--tag-color);font-family:inherit;overflow:visible}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]{border-color:color-mix(in srgb, var(--tag-color) 42%, transparent)}}.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]{background:color-mix(in srgb, var(--tag-color) 10%, transparent)}}.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]:hover{border-color:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]:hover{border-color:color-mix(in srgb, var(--tag-color) 68%, transparent)}}.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]:hover{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]:hover{background:color-mix(in srgb, var(--tag-color) 18%, transparent)}}.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]:hover{color:var(--ink)}@media (width<=640px){.peach-react [data-follow-detail] [data-follow-detail-media]{--follow-image-arrow-inset:10px}.peach-react [data-follow-detail] [data-follow-image-arrow]{width:44px;height:44px}.peach-react [data-follow-detail] [data-follow-image-dots]{bottom:12px}}.peach-react [data-item-detail] [data-item-gate]{box-sizing:border-box;aspect-ratio:auto;border-radius:inherit;background:var(--sunk);border:1px dashed var(--meter);cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:10px;width:100%;height:100%;display:flex}:where(.peach-react [data-item-detail] [data-item-gate]) b{font-size:var(--fs-md)}:where(.peach-react [data-item-detail] [data-item-gate]) span{font-size:var(--fs-xs);color:var(--muted)}.peach-react [data-item-detail] [data-item-gate=offline]{cursor:default;background:var(--ground);min-height:220px;color:var(--ink);border-style:solid;gap:7px;padding:24px}.peach-react [data-item-detail] [data-item-gate=offline] b{letter-spacing:.08em}.peach-react [data-item-detail] [data-item-gate=offline] span{text-align:center;max-width:34ch;color:var(--ink-2);line-height:1.6}.peach-react [data-item-detail] [data-item-gate=offline] button{cursor:pointer;margin-top:4px}.peach-react [data-item-detail] [data-queue-head]{color:var(--ink);align-items:center;gap:5px;margin-top:0;display:flex}.peach-react [data-item-detail] [data-queue-head] b{flex:1;min-width:0}.peach-react [data-item-detail] [data-queue-edition]{flex:none;font-style:normal}.peach-react [data-item-detail] [data-queue-edit]{z-index:3;border-radius:var(--control-radius);color:#fff;background:#0000009e;grid-auto-flow:column;align-items:center;gap:2px;padding:3px;display:grid;position:absolute;top:5px;right:5px}.peach-react [data-item-detail] [data-queue-grip]{width:20px;color:var(--muted);cursor:grab;place-items:center;display:grid}.peach-react [data-item-detail] [data-queue-grip] svg{stroke:currentColor;fill:none;width:16px;height:16px}.peach-react [data-item-detail] [data-queue-edit] button{border-radius:var(--control-radius);color:#fff;cursor:pointer;background:0 0;border:0;place-items:center;width:26px;height:26px;padding:0;display:grid}.peach-react [data-item-detail] [data-queue-edit] button:hover{background:var(--hover)}.peach-react [data-item-detail] [data-queue-edit] svg{stroke:currentColor;fill:none;width:15px;height:15px}.peach-react [data-item-detail] [data-item-title]{margin-bottom:10px;display:block}.peach-react [data-item-detail] [data-item-title] [class~=srcbig]{vertical-align:middle;place-items:center;width:17px;height:28px;margin:0 8px 0 0;display:inline-grid}.peach-react [data-item-detail] [data-item-title] [data-title-line]{min-width:0;margin:0;line-height:1.75}.peach-react [data-item-detail] [data-detail-title]{-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.peach-react [data-item-detail] [data-detail-title][data-expanded]{-webkit-line-clamp:unset;line-clamp:unset;display:block}.peach-react [data-item-detail] [data-detail-title][data-foldable]{cursor:pointer}.peach-react [data-item-detail] [data-title-tools]{flex-wrap:nowrap;align-items:center;gap:6px;margin:6px 0 0;display:flex}.peach-react [data-item-detail] [data-title-tools]:not(:has(button:not([hidden]))){display:none}.peach-react [data-item-detail] [data-title-tools] button{border:1px solid var(--line);background:var(--surface);width:26px;height:26px;color:var(--muted);cursor:pointer;border-radius:8px;flex:none;place-items:center;padding:0;line-height:1;display:inline-grid}.peach-react [data-item-detail] [data-title-tools] button[hidden]{display:none}.peach-react [data-item-detail] [data-title-tools] [data-cover-crop-host]{display:contents}.peach-react [data-item-detail] [data-title-tools] button svg{stroke:currentColor;fill:none;stroke-width:2px;width:15px;height:15px}.peach-react [data-item-detail] [data-title-tools] button>svg{flex-shrink:0;place-self:center;margin:0;display:block}.peach-react [data-item-detail] [data-title-tools] button:hover{background:var(--hover);color:var(--ink)}.peach-react [data-item-detail] [data-title-tools] button:disabled{background:var(--sunk);border-color:var(--line-soft);color:var(--muted);cursor:not-allowed}.peach-react [data-item-detail] [data-title-state]{min-width:0;font-size:var(--fs-xs);color:var(--muted);flex:100%;margin:-4px 0 10px;display:block}.peach-react [data-item-detail] [data-title-state]:empty{display:none}.peach-react [data-item-detail] [data-item-rating]{align-items:center;gap:8px;margin:-6px 0 10px;display:flex}.peach-react [data-item-detail] [data-rating-stars]{align-items:center;gap:2px;margin-left:-4px;display:inline-flex}.peach-react [data-item-detail] [data-rate]{border-radius:var(--control-radius);width:26px;height:26px;color:var(--rating);cursor:pointer;background:0 0;border:0;place-items:center;padding:0;display:grid}.peach-react [data-item-detail] [data-rate] svg{stroke:currentColor;fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:19px;height:19px}.peach-react [data-item-detail] [data-rate][data-on=true] svg{fill:currentColor}.peach-react [data-item-detail] [data-rating-stars]:hover [data-rate] svg{fill:none}.peach-react [data-item-detail] [data-rating-stars]:hover [data-rate]:hover svg,.peach-react [data-item-detail] [data-rating-stars]:hover [data-rate]:has(~[data-rate]:hover) svg{fill:currentColor}.peach-react [data-item-detail] [data-rate]:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-item-detail] [data-rating-value]{color:var(--muted);font-size:var(--fs-xs);font-variant-numeric:tabular-nums}.peach-react [data-item-detail] [data-spec-item]{align-items:center;gap:5px;display:inline-flex}.peach-react [data-item-detail] [data-spec-item] svg{stroke:currentColor;fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:15px;height:15px}.peach-react [data-item-detail] [data-open-region]{font:inherit;color:inherit;cursor:pointer;background:0 0;border:0;padding:0}.peach-react [data-item-detail] [data-open-region]:hover{color:var(--ink)}.peach-react [data-item-detail] [data-item-identity]{flex-direction:column;gap:14px;margin:0 0 18px;display:flex}.peach-react [data-item-detail] [data-identity-primary]{flex-wrap:wrap;align-items:flex-start;gap:14px 26px;display:flex}.peach-react [data-item-detail] [data-identity-primary]>[data-id-group]{width:max-content;max-width:100%}.peach-react [data-item-detail] [data-id-group]{--id-cell:62px;--id-face:46px;min-width:0}.peach-react [data-item-detail] [data-id-group=performer]{--id-cell:58px}.peach-react [data-item-detail] [data-id-label]{font-size:var(--fs-xs);color:var(--muted);letter-spacing:.04em;margin:0 0 7px;font-weight:400}.peach-react [data-item-detail] [data-id-row]{flex-wrap:wrap;align-items:flex-start;gap:10px 12px;display:flex}.peach-react [data-item-detail] [data-id-group=performer] [data-id-row]{gap:10px}.peach-react [data-item-detail] [data-id-cell]{width:var(--id-cell,62px);color:inherit;cursor:default;background:0 0;border:0;flex-direction:column;align-items:flex-start;gap:5px;padding:0;display:flex}.peach-react [data-item-detail] [data-id-cell]:is([data-entity-kind],[data-open-unowned]){color:var(--tungsten);cursor:pointer;text-decoration:none}.peach-react [data-item-detail] [data-id-cell]:is([data-entity-kind],[data-open-unowned]):hover{color:var(--ink)}.peach-react [data-item-detail] [data-id-cell][hidden]{display:none}.peach-react [data-item-detail] [data-id-face]{width:var(--id-face,46px);height:var(--id-face,46px);background:var(--sunk);color:var(--muted);font-size:var(--fs-md);border-radius:50%;place-items:center;display:grid;position:relative;overflow:hidden}.peach-react [data-item-detail] [data-id-face]:not(:has(img)){background:var(--color-text-primary)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-item-detail] [data-id-face]:not(:has(img)){background:color-mix(in srgb, var(--color-text-primary) 10%, var(--color-background-primary-default))}}.peach-react [data-item-detail] [data-id-face]:not(:has(img)){color:var(--color-text-secondary)}.peach-react [data-item-detail] [data-id-cell=studio] [data-id-face]{border-radius:var(--surface-radius);color:#555;background:#fff}.peach-react [data-item-detail] [data-id-face] img{object-fit:cover;width:100%;height:100%;display:block;position:absolute;inset:0}.peach-react [data-item-detail] [data-id-face] svg{stroke:currentColor;fill:none;stroke-width:2px;width:18px;height:18px}.peach-react [data-item-detail] [data-id-name]{font-size:var(--fs-xs);text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%;color:var(--ink-2);line-height:1.5;overflow:hidden}.peach-react [data-item-detail] [data-id-cell]:is([data-entity-kind],[data-open-unowned]):hover [data-id-face]{box-shadow:0 0 0 2px var(--ink-2)}.peach-react [data-item-detail] [data-id-cell]:is([data-entity-kind],[data-open-unowned]):hover [data-id-name]{color:var(--ink)}.peach-react [data-item-detail] [data-cast-more]{border:1px dashed var(--overlay-10);border-radius:var(--floating-radius);height:46px;color:var(--ink-2);font-size:var(--fs-xs);cursor:pointer;background:0 0;align-self:center;padding:0 12px}.peach-react [data-item-detail] [data-cast-more]:hover{background:var(--hover)}.peach-react [data-item-detail] [data-series-rows]{gap:7px;display:grid}.peach-react [data-item-detail] [data-series-link]{width:100%;color:var(--ink-2);font-size:var(--fs-sm);text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:default;background:0 0;border:0;align-items:flex-start;gap:7px;padding:0;line-height:1.4;text-decoration:none;display:flex}.peach-react [data-item-detail] [data-series-link] svg{stroke:currentColor;fill:none;stroke-width:2px;flex:none;width:16px;height:16px;margin-top:1px}.peach-react [data-item-detail] button[data-series-link]{cursor:pointer}.peach-react [data-item-detail] button[data-series-link]:hover{color:var(--tungsten)}.peach-react [data-item-detail] [data-detail-tag]{border:1px solid var(--line);border-radius:var(--tag-radius);background:var(--tag-fill);align-items:center;min-height:30px;display:inline-flex;overflow:hidden}.peach-react [data-item-detail] [data-detail-tag] button{color:var(--ink-2);cursor:pointer;background:0 0;border:0;height:28px}.peach-react [data-item-detail] [data-detail-tag] [data-tag]{padding:3px 8px}.peach-react [data-item-detail] [data-detail-tag] [data-remove-tag]{width:28px;color:var(--muted);place-items:center;padding:0;display:grid}.peach-react [data-item-detail] [data-detail-tag] [data-tag]:hover{background:var(--hover);color:var(--ink)}.peach-react [data-item-detail] [data-detail-tag] [data-remove-tag]:hover{color:var(--drop);background:var(--drop)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-item-detail] [data-detail-tag] [data-remove-tag]:hover{background:color-mix(in srgb, var(--drop) 12%, transparent)}}.peach-react [data-item-detail] [data-detail-tag] svg,.peach-react [data-item-detail] [data-tag-plus] svg{stroke:currentColor;fill:none;stroke-width:2px;width:15px;height:15px}.peach-react [data-item-detail] [data-tag-plus]{border:1px dashed var(--line);width:30px;height:30px;color:var(--muted);cursor:pointer;background:0 0;border-radius:50%;place-items:center;display:grid}.peach-react [data-item-detail] [data-tag-plus]:hover{background:var(--hover);color:var(--ink)}.peach-react [data-item-detail] [data-tag-picker]{z-index:120;border:1px solid var(--ink);max-height:min(480px,70vh);position:absolute;top:calc(100% + 8px);left:12px;right:12px;overflow:hidden}@supports (color:color-mix(in lab, red, red)){.peach-react [data-item-detail] [data-tag-picker]{border:1px solid color-mix(in srgb, var(--ink) 15%, transparent)}}.peach-react [data-item-detail] [data-tag-picker]{border-radius:var(--floating-radius);background:var(--frost-panel);-webkit-backdrop-filter:saturate(1.8)blur(20px);box-shadow:0 24px 70px -24px #000}.peach-react [data-item-detail] [data-tag-picker][hidden]{display:none}.peach-react [data-item-detail] [data-tag-picker]:not([hidden]){transform-origin:0 0;animation:.15s ease-out backwards board-menu-in}.peach-react [data-item-detail] [data-tag-picker][class~=leaving]{animation:.15s ease-out forwards board-menu-out}.peach-react [data-item-detail] [data-tag-search]{border-bottom:1px solid var(--ink);align-items:center;gap:10px;height:54px;padding:0 14px;display:flex}@supports (color:color-mix(in lab, red, red)){.peach-react [data-item-detail] [data-tag-search]{border-bottom:1px solid color-mix(in srgb, var(--ink) 10%, transparent)}}.peach-react [data-item-detail] [data-tag-search] svg{stroke:currentColor;fill:none;stroke-width:2px;width:20px;height:20px;color:var(--muted)}.peach-react [data-item-detail] [data-tag-search] input{min-width:0;padding:revert;font-size:var(--fs-lg);background:0 0;border:0;outline:0;flex:1}.peach-react [data-item-detail] [data-tag-search] input::placeholder{color:revert}.peach-react [data-item-detail] [data-tag-body]{max-height:calc(min(480px,70vh) - 54px);padding:12px;overflow:auto}.peach-react [data-item-detail] [data-tag-section]+[data-tag-section]{border-top:1px solid var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-item-detail] [data-tag-section]+[data-tag-section]{border-top:1px solid color-mix(in srgb, var(--ink) 9%, transparent)}}.peach-react [data-item-detail] [data-tag-section]+[data-tag-section]{margin-top:12px;padding-top:12px}.peach-react [data-item-detail] [data-tag-section] h4{color:var(--muted);font-size:var(--fs-xs);letter-spacing:.12em;margin:0 0 8px;font-weight:600}.peach-react [data-item-detail] [data-tag-grid]{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 12px;display:grid}.peach-react [data-item-detail] [data-pick]{border-radius:var(--control-radius);min-width:0;height:34px;color:var(--ink-2);text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;padding:0 9px;display:flex}.peach-react [data-item-detail] [data-pick]:is(:hover,[data-active],[aria-pressed=true]){background:var(--hover);color:var(--ink)}.peach-react [data-item-detail] [data-pick-name]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.peach-react [data-item-detail] [data-pick-count]{color:var(--muted);font-size:var(--fs-xs);margin-left:auto}.peach-react [data-item-detail] [data-pick] svg{flex:none;width:14px;height:14px}@media (width<=760px){.peach-react [data-item-detail] [data-tag-picker]{position:fixed;inset:auto 12px 12px}.peach-react [data-item-detail] [data-tag-grid]{grid-template-columns:1fr}}.peach-react [data-item-detail] [data-item-trace]{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:8px 0 16px;padding:0;display:grid}.peach-react [data-item-detail] [data-trace-metric]{background:var(--surface);border-radius:12px;min-width:0;padding:14px 12px}.peach-react [data-item-detail] [data-trace-label]{color:var(--muted);font-variant-numeric:tabular-nums;justify-content:space-between;gap:8px;margin:0 0 12px;font-size:13px;line-height:18px;display:flex}.peach-react [data-item-detail] [data-trace-label]>span:last-child{color:var(--ink);font-variant-numeric:tabular-nums}.peach-react [data-item-detail] [data-trace-bar]{background:var(--line);border:0;border-radius:4px;height:4px;position:relative}.peach-react [data-item-detail] [data-trace-bar] u{background:var(--loupe);position:absolute;inset:0 auto 0 0}@supports (color:color-mix(in lab, red, red)){.peach-react [data-item-detail] [data-trace-bar] u{background:color-mix(in srgb, var(--loupe) 26%, transparent)}}.peach-react [data-item-detail] [data-trace-bar] u{text-decoration:none}.peach-react [data-item-detail] [data-trace-bar] b{background:var(--tungsten);border-radius:var(--pill-radius);width:2px;position:absolute;top:-3px;bottom:-3px;left:0}.peach-react [data-item-detail] [data-trace-bar] [data-trace-real]{background:var(--keep)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-item-detail] [data-trace-bar] [data-trace-real]{background:color-mix(in srgb, var(--keep) 40%, transparent)}}.peach-react [data-item-detail] [data-fb=like]:hover{color:var(--ink);background:var(--hover)}.peach-react [data-item-detail] [data-fb=like][aria-pressed=true]{color:var(--ink);background:var(--picked)}.peach-react [data-item-detail] [data-fb=playlist]:hover{color:var(--ink);background:var(--hover)}.peach-react [data-item-detail] [data-fb=reason]:is(:hover,[aria-expanded=true],[data-has-reason=true]){color:#ff669d;background:#ff669d1f}.peach-react [data-item-detail] [data-fb=dispose]{margin-left:auto}.peach-react [data-item-detail] [data-fb=dispose]:is(:hover,[aria-pressed=true]){color:var(--meter);background:var(--meter)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-item-detail] [data-fb=dispose]:is(:hover,[aria-pressed=true]){background:color-mix(in srgb, var(--meter) 12%, transparent)}}.peach-react [data-item-detail] [data-fb=quality]:is(:hover,[aria-pressed=true]){color:#b78cff;background:#b78cff21}.peach-react [data-item-detail] [data-item-preference]{background:0 0;border:0;margin:0 0 14px;padding:0}.peach-react [data-item-detail] [data-item-preference][hidden]{display:none}.peach-react [data-item-detail] [data-item-preference] textarea{resize:vertical;width:100%;min-height:62px;color:var(--ink);background:var(--ground);border:1px solid var(--line);border-radius:var(--control-radius);line-height:1.5;font-size:var(--fs-md);padding:8px 9px;transition:border-color .12s,box-shadow .12s;display:block}.peach-react [data-item-detail] [data-item-preference] textarea:hover{border-color:var(--field-ring-hover)}.peach-react [data-item-detail] [data-item-preference] textarea:focus{box-shadow:inset 0 0 0 2px var(--color-border-button-active);outline:0}.peach-react [data-item-detail] [data-preference-foot]{justify-content:flex-end;align-items:center;gap:8px;margin-top:7px;display:flex}.peach-react [data-item-detail] [data-preference-foot]>span{color:var(--muted);font-size:var(--fs-xs);margin-right:auto}.peach-react [data-item-detail] [data-preference-foot]>span:empty{display:none}.peach-react [data-item-detail] [data-save-preference]{min-width:58px;padding-inline:12px}.peach-react [data-item-detail] [data-kind=o]{border:1px solid var(--line);background:var(--surface);width:100%;min-height:40px;color:var(--ink);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;gap:8px;margin-bottom:10px;padding:8px 12px;font-size:14px;font-weight:500;line-height:20px;transition:background-color .14s;display:flex;box-shadow:inset 0 1px #ffffff0a}.peach-react [data-item-detail] [data-kind=o] svg{fill:currentColor;color:#ff669d;width:20px;height:20px}.peach-react [data-item-detail] [data-kind=o] b{background:var(--picked);border-radius:5px;padding:1px 6px;font-size:12px;font-weight:500;line-height:18px}.peach-react [data-item-detail] [data-kind=o]:hover{background:var(--hover)}.peach-react [data-item-related]{border-top:1px solid var(--line-soft);background:var(--detail-surface);padding:11px 15px 12px}.peach-react [data-item-related] h3{font-size:var(--fs-xs);letter-spacing:.1em;color:var(--muted);text-transform:uppercase;margin:0 0 8px}.peach-react [data-item-related] [data-related-row]{overscroll-behavior-inline:contain;scrollbar-width:none;gap:11px;padding-bottom:6px;display:flex;overflow:auto hidden}.peach-react [data-item-related] [data-related-row]::-webkit-scrollbar{display:none}.peach-react [data-photo-lightbox]{z-index:200;font:var(--board-body);font-kerning:auto;font-variant-ligatures:normal;letter-spacing:0;--photo-card-drop:#00000029;--photo-thumb-drop:#0000001a;background:#000;display:block;position:fixed;inset:0;overflow:hidden}.dark .peach-react [data-photo-lightbox]{--photo-card-drop:#0009;--photo-thumb-drop:#00000080}.peach-react [data-photo-lightbox]:modal{color:#fff;border:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0}.peach-react [data-photo-lightbox] :focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-photo-main]{width:100%;min-width:0;height:100%;min-height:0;position:absolute;inset:0;overflow:hidden}.peach-react [data-photo-main]>.swiper-wrapper{width:100%;height:100%;display:flex}.peach-react [data-photo-main]>.swiper-wrapper>.swiper-slide{flex:0 0 100%;place-items:center;width:100%;min-width:0;height:100%;min-height:0;display:grid}.peach-react [data-photo-main] .swiper-zoom-container{box-sizing:border-box;place-items:center;width:100%;min-width:0;height:100%;min-height:0;padding:24px 72px 76px;display:grid}.peach-react [data-photo-lightbox][data-has-strip] [data-photo-main] .swiper-zoom-container{padding-bottom:148px}.peach-react [data-photo-main] img{object-fit:contain;min-width:0;max-width:100%;min-height:0;max-height:100%;display:block}.peach-react :is([data-photo-close],[data-photo-nav]){box-sizing:border-box;color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009;border:0;border-radius:50%;place-items:center;width:48px;height:48px;padding:0;display:grid;position:absolute}.peach-react [data-photo-close]:hover{background:#000000c7}.peach-react [data-photo-lightbox] :is([data-photo-close],[data-photo-nav]):focus-visible{outline-offset:3px}.peach-react :is([data-photo-close],[data-photo-nav]) svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:24px;height:24px;display:block}.peach-react [data-photo-close]{z-index:5;top:12px;right:14px}.peach-react [data-photo-nav]{z-index:4;border:1px solid var(--line);background:var(--surface);width:36px;height:36px;color:var(--ink-2);box-shadow:var(--elevation-xs);border-radius:10px;top:50%;transform:translateY(-50%)}.peach-react [data-photo-nav]:hover{background:var(--hover)}.peach-react [data-photo-nav] svg{width:20px;height:20px}.peach-react [data-photo-nav=back]{left:14px}.peach-react [data-photo-nav=fwd]{right:14px}.peach-react [data-photo-nav=fwd] svg{transform:rotate(180deg)}.peach-react [data-photo-nav].swiper-button-disabled{visibility:hidden;opacity:.4;pointer-events:none}.peach-react [data-photo-nav].swiper-button-lock{display:none}.peach-react [data-photo-bar]{z-index:4;pointer-events:none;grid-template-columns:1fr auto 1fr;align-items:center;min-height:48px;display:grid;position:absolute;bottom:14px;left:14px;right:14px}.peach-react [data-photo-lightbox][data-has-strip] [data-photo-bar]{bottom:98px}.peach-react [data-photo-bar]>*{pointer-events:auto}.peach-react [data-photo-count]{border-radius:var(--pill-radius);color:#ffffffd1;font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009;justify-self:center;padding:7px 11px}.peach-react [data-photo-pagination]{justify-content:center;align-items:center;gap:8px;max-width:160px;height:28px;margin-inline:auto;display:flex;overflow:hidden}.peach-react [data-photo-pagination] .swiper-pagination-bullet{opacity:1;background:#a3a3a3;border:0;border-radius:999px;flex:none;width:6px;height:6px;padding:0;transition:width .2s ease-out,background .2s ease-out;margin:0!important}.peach-react [data-photo-pagination] .swiper-pagination-bullet-active{background:#fafafa;width:16px}.peach-react [data-photo-detail-toggle]{color:#ffffffd1;cursor:pointer;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009;border:0;border-radius:50%;justify-self:start;place-items:center;width:40px;height:40px;padding:0;display:grid}.peach-react [data-photo-detail-toggle]:is(:hover,[aria-expanded=true]){color:#fff;background:#000000c7}.peach-react [data-photo-detail-toggle] svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px;display:block}.peach-react [data-photo-zoom]{border-radius:var(--pill-radius);color:#ffffffd1;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009;justify-self:end;align-items:center;gap:7px;padding:4px;display:flex}.peach-react [data-photo-zoom] button{color:#fff;cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;width:28px;height:28px;padding:0;display:grid}.peach-react [data-photo-zoom] button:hover{background:#ffffff38}.peach-react [data-photo-zoom] button svg{fill:none;stroke:currentColor;stroke-width:2px;width:15px;height:15px;display:block}.peach-react [data-photo-zoom] [data-photo-scale]{width:30px}.peach-react [data-photo-zoom] [data-photo-scale=original]{border-radius:var(--control-radius);width:38px}.peach-react [data-photo-zoom] :is([data-photo-scale=original],[data-photo-zoom-readout]){font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums}.peach-react [data-photo-zoom-readout]{text-align:right;width:38px;font-weight:400}.peach-react [data-photo-zoom] input{cursor:pointer;appearance:none;background:0 0;width:116px;height:20px;margin:2px}.peach-react [data-photo-zoom] input::-webkit-slider-runnable-track{background:linear-gradient(90deg, var(--color-accent-400) var(--board-range-value,0%), var(--inset) 0);border-radius:999px;height:6px;box-shadow:inset 0 1px 1px #0000000f}.peach-react [data-photo-zoom] input::-moz-range-track{background:linear-gradient(90deg, var(--color-accent-400) var(--board-range-value,0%), var(--inset) 0);border-radius:999px;height:6px}.peach-react [data-photo-zoom] input::-webkit-slider-thumb{border:1px solid var(--line);width:20px;height:20px;box-shadow:0 2px 4px var(--photo-thumb-drop), inset 0 1px 0 #fffc;cursor:grab;transition:scale calc(var(--spring-press-ms) * 1ms) var(--spring-press), box-shadow .15s;appearance:none;background:radial-gradient(circle,#fff 3px,#e5e5e5 3.5px,#fff 4px);border-radius:50%;margin-top:-7px}.peach-react [data-photo-zoom] input::-moz-range-thumb{border:1px solid var(--line);width:18px;height:18px;box-shadow:0 2px 4px var(--photo-thumb-drop);background:radial-gradient(circle,#fff 3px,#e5e5e5 3.5px,#fff 4px);border-radius:50%}.peach-react [data-photo-zoom] input:hover::-webkit-slider-thumb{box-shadow:0 0 0 4px #ffffff38}.peach-react [data-photo-zoom] input:active::-webkit-slider-thumb{transition:scale 60ms ease-out;scale:1.18}.peach-react [data-photo-lightbox] [data-photo-zoom] input:focus-visible{outline:none}.peach-react [data-photo-zoom] input:focus-visible::-webkit-slider-thumb{outline-offset:2px;outline:2px solid #fff}.peach-react [data-photo-detail]{box-sizing:border-box;z-index:var(--layer-popover);overscroll-behavior:contain;border:1px solid var(--line);border-radius:var(--floating-radius);background:var(--ground);width:320px;max-width:calc(100vw - 16px);color:var(--ink);box-shadow:0 8px 24px var(--photo-card-drop);font-size:var(--fs-md);overflow-wrap:anywhere;pointer-events:auto;align-items:start;gap:14px;margin:0;padding:16px;line-height:1.5;display:grid;position:fixed;inset:auto;overflow:auto}.peach-react [data-photo-detail][hidden]{display:none}.peach-react [data-photo-detail-copy]{gap:4px;min-width:0;display:grid}.peach-react [data-photo-detail-copy] h2{font-size:var(--fs-sm);white-space:nowrap;margin:0;font-weight:700;overflow:hidden}.peach-react :is([data-photo-detail-meta],[data-photo-status]){color:var(--muted);font-size:var(--fs-xs)}.peach-react [data-photo-status]{flex:100%;min-width:0}.peach-react [data-photo-status]:empty{display:none}.peach-react [data-photo-reveal]{border:1px solid var(--line);border-radius:var(--control-radius);height:32px;color:var(--ink);cursor:pointer;background:0 0;justify-self:start;align-items:center;gap:7px;padding:0 10px;display:flex}.peach-react [data-photo-reveal]:hover{background:#ffffff1f}.peach-react [data-photo-reveal][hidden]{display:none}.peach-react [data-photo-reveal] svg{fill:none;stroke:currentColor;stroke-width:2px;width:16px;height:16px;display:block}.peach-react [data-photo-strip]{z-index:3;width:auto;height:72px;padding:0;position:absolute;bottom:14px;left:72px;right:72px}.peach-react [data-photo-lightbox]:not([data-has-strip]) [data-photo-strip]{display:none}.peach-react [data-photo-strip] .swiper-slide{border-radius:var(--control-radius);opacity:.5;cursor:pointer;width:auto;height:72px;overflow:hidden}.peach-react [data-photo-strip] .swiper-slide img{object-fit:cover;width:auto;max-width:none;height:100%;display:block}.peach-react [data-photo-strip] .swiper-slide-thumb-active{opacity:1;box-shadow:inset 0 0 0 2px #fff}@media (width<=640px){.peach-react [data-photo-zoom] input{width:72px}.peach-react [data-photo-zoom-readout]{display:none}.peach-react [data-photo-main] .swiper-zoom-container{padding:12px 12px 70px}.peach-react [data-photo-lightbox][data-has-strip] [data-photo-main] .swiper-zoom-container{padding-bottom:136px}.peach-react [data-photo-bar]{min-height:44px;bottom:10px;left:12px;right:12px}.peach-react [data-photo-lightbox][data-has-strip] [data-photo-bar]{bottom:80px}.peach-react [data-photo-reveal]{min-height:44px}.peach-react [data-photo-strip]{bottom:12px;left:56px;right:56px}.peach-react [data-photo-strip],.peach-react [data-photo-strip] .swiper-slide{height:56px}.peach-react [data-photo-close]{top:10px;right:10px}.peach-react [data-photo-nav=back]{left:8px}.peach-react [data-photo-nav=fwd]{right:8px}}@media (prefers-reduced-motion:reduce){.peach-react [data-photo-pagination] .swiper-pagination-bullet{transition:none}}.peach-react [data-index-grid] [data-index-cell]{background:var(--ground)}.peach-react [data-index-grid] [data-index-cell]:hover{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-index-grid] [data-index-cell]:hover{background:color-mix(in srgb, var(--ink) 6%, var(--ground))}}.peach-react [data-index-grid] [data-person-ring]{background:var(--sunk);color:var(--muted);font-family:Bahnschrift,Microsoft YaHei UI,Microsoft YaHei,PingFang SC,sans-serif}.peach-react [data-index-grid] [data-index-readout]{color:var(--muted)}[data-stage-media]{isolation:isolate;background:#000;justify-content:center;align-items:center;display:flex;position:relative}[data-ambient-canvas]{z-index:0;filter:blur(46px)saturate(1.45);opacity:.42;pointer-events:none;width:calc(100% + 68px);height:calc(100% + 68px);position:absolute;inset:-34px;transform:scale(1.06);-webkit-mask-image:radial-gradient(#000 28%,#000000b8 55%,#0000 86%);mask-image:radial-gradient(#000 28%,#000000b8 55%,#0000 86%)}[data-stage]:not([data-ambient]) [data-ambient-canvas]{display:none}[data-stage-media]>video,[data-stage-media]>.video-js{z-index:1;position:relative}[data-stage-media] video{width:100%;max-height:76vh;display:block}[data-stage-media]>video[hidden]{display:none}[data-stage-media]>.video-js{aspect-ratio:16/9;background:#000;width:100%;height:auto;max-height:76vh}[data-stage-media] .video-js .vjs-tech{object-fit:contain;max-height:none}[data-stage-media] .video-js .vjs-big-play-button{width:56px;height:56px;box-shadow:none;background:#0000004d;border:0;border-radius:50%;margin:0;line-height:56px;top:50%;left:50%;transform:translate(-50%,-50%)}[data-stage-media] .video-js .vjs-big-play-button:hover,[data-stage-media] .video-js .vjs-big-play-button:focus{background:#ffffff1a}[data-stage-media] .video-js .vjs-big-play-button .vjs-icon-placeholder:before{content:"";border-top:.72em solid #0000;border-bottom:.72em solid #0000;border-left:1.05em solid #fff;width:0;height:0;top:50%;left:50%;transform:translate(-38%,-50%)}[data-stage-media] .video-js:has(.vjs-peach-bezel) .vjs-big-play-button{display:none}[data-stage-media] .video-js .vjs-loading-spinner{z-index:18;opacity:1;background:0 0;border:0;border-radius:0;width:64px;height:64px;margin:0;padding:0;top:50%;left:50%;transform:translate(-50%,-50%)}[data-stage-media] .video-js .vjs-loading-spinner:before,[data-stage-media] .video-js .vjs-loading-spinner:after{content:none}.vjs-peach-spinner-container{pointer-events:none;width:100%;height:100%;animation:1.56824s linear infinite peach-spinner-linspin;position:absolute;top:0;left:0}.vjs-peach-spinner-rotator{width:100%;height:100%;animation:5.332s cubic-bezier(.4,0,.2,1) infinite both peach-spinner-easespin;position:absolute}.vjs-peach-spinner-left,.vjs-peach-spinner-right{position:absolute;inset:0;overflow:hidden}.vjs-peach-spinner-left{right:49%}.vjs-peach-spinner-right{left:49%}.vjs-peach-spinner-circle{box-sizing:border-box;border:6px solid #ddd;border-bottom-color:#0000;border-radius:50%;width:200%;height:100%;position:absolute}.vjs-peach-spinner-left .vjs-peach-spinner-circle{border-right-color:#0000;animation:1.333s cubic-bezier(.4,0,.2,1) infinite both peach-spinner-left-spin;left:0;right:-100%}.vjs-peach-spinner-right .vjs-peach-spinner-circle{border-left-color:#0000;animation:1.333s cubic-bezier(.4,0,.2,1) infinite both peach-spinner-right-spin;left:-100%;right:0}@keyframes peach-spinner-linspin{to{transform:rotate(1turn)}}@keyframes peach-spinner-easespin{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}to{transform:rotate(3turn)}}@keyframes peach-spinner-left-spin{0%{transform:rotate(130deg)}50%{transform:rotate(-5deg)}to{transform:rotate(130deg)}}@keyframes peach-spinner-right-spin{0%{transform:rotate(-130deg)}50%{transform:rotate(5deg)}to{transform:rotate(-130deg)}}[data-stage-media] .video-js{font-family:inherit}[data-stage-media] .video-js .vjs-control-bar{box-sizing:border-box;-webkit-backdrop-filter:none;backdrop-filter:none;background:0 0;border-radius:0;align-items:flex-end;width:auto;height:59px;padding:3px 0 0;display:flex;bottom:8px;left:12px;right:12px}[data-stage-media] .video-js .vjs-control-bar>.vjs-play-control{width:40px;height:40px;box-shadow:none;background:#0009;border:0;border-radius:50%;flex:0 0 40px;align-self:flex-end;margin:0 0 8px;position:relative;overflow:visible}[data-stage-media] .video-js .vjs-volume-panel>.vjs-mute-control .vjs-icon-placeholder:before,[data-stage-media] .video-js .vjs-peach-right-controls .vjs-icon-placeholder:before{filter:drop-shadow(0 0 1px #000c);place-items:center;width:100%;height:100%;line-height:normal;display:grid}[data-stage-media] .video-js [data-peach-explicit-icon]>.vjs-icon-placeholder:before,[data-stage-media] .video-js [data-peach-explicit-icon]>.vjs-icon-placeholder:after{display:none}[data-stage-media] .video-js .vjs-volume-panel>.vjs-mute-control[data-peach-explicit-icon]>.vjs-icon-placeholder{display:none!important}.vjs-peach-control-icon{z-index:2;fill:currentColor;stroke:none;filter:drop-shadow(0 0 1px #000c);pointer-events:none;width:24px;height:24px;transition:transform .1s cubic-bezier(.05,0,0,1);display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)scale(1)}[data-stage-media] .video-js [data-peach-explicit-icon]:active>.vjs-peach-control-icon{transform:translate(-50%,-50%)scale(.9)}[data-stage-media] .video-js .vjs-control-bar>.vjs-play-control>.vjs-peach-control-icon{width:26px;height:26px}.vjs-peach-morph-icon path{transition:d .2s cubic-bezier(.4,0,.2,1)}.vjs-peach-morph-icon .vjs-peach-volume-arc-inner,.vjs-peach-morph-icon .vjs-peach-volume-arc-outer{transform-box:view-box;transform-origin:0 0;transition:transform .25s cubic-bezier(.4,0,.2,1)}.vjs-peach-morph-icon[data-silent=true] .vjs-peach-volume-arc-inner{transform:translate(18px,12px)scale(0)translate(-18px,-12px)}.vjs-peach-morph-icon[data-silent=true] .vjs-peach-volume-arc-outer,.vjs-peach-morph-icon[data-loud=false] .vjs-peach-volume-arc-outer{transform:translate(22px,12px)scale(0)translate(-22px,-12px)}.vjs-peach-morph-icon .vjs-peach-volume-speaker{opacity:1;transition:opacity linear}.vjs-peach-morph-icon .vjs-peach-volume-speaker-muted,.vjs-peach-morph-icon .vjs-peach-volume-x{opacity:0;transition:opacity linear}.vjs-peach-morph-icon[data-silent=true] .vjs-peach-volume-speaker{opacity:0;transition:opacity 0s linear .25s}.vjs-peach-morph-icon[data-silent=true] .vjs-peach-volume-speaker-muted,.vjs-peach-morph-icon[data-silent=true] .vjs-peach-volume-x{opacity:1;transition:opacity 0s linear .25s}.vjs-peach-hover{z-index:0;border-radius:var(--pill-radius);pointer-events:none;background:0 0;width:100%;height:32px;transition:background .2s cubic-bezier(.05,0,0,1);position:absolute;top:4px;left:0}[data-stage-media] .video-js .vjs-control-bar>.vjs-play-control>.vjs-peach-hover{border-radius:50%;width:auto;height:auto;inset:4px}[data-stage-media] .video-js .vjs-control-bar>.vjs-play-control:hover>.vjs-peach-hover,[data-stage-media] .video-js .vjs-control-bar>.vjs-play-control:focus-visible>.vjs-peach-hover,.vjs-peach-right-controls>.vjs-control:hover>.vjs-peach-hover,.vjs-peach-right-controls>.vjs-control:focus-within>.vjs-peach-hover{background:#ffffff1a}[data-stage-media] .video-js .vjs-control-bar>.vjs-play-control:active>.vjs-peach-hover,.vjs-peach-right-controls>.vjs-control:active>.vjs-peach-hover{background:#fff3}[data-stage-media] .video-js .vjs-control-bar>.vjs-play-control .vjs-icon-placeholder,[data-stage-media] .video-js .vjs-peach-right-controls button,.vjs-peach-settings>button,.vjs-peach-theater>button{z-index:1;position:relative}[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel{box-sizing:border-box;z-index:3;border-radius:var(--pill-radius);width:40px;box-shadow:none;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);isolation:isolate;background:#0009;border:0;flex:0 0 40px;grid-template-columns:40px 0;align-self:flex-end;align-items:center;column-gap:0;margin:0 0 8px 12px;padding:0;transition:width .2s cubic-bezier(.05,0,0,1),flex-basis .2s cubic-bezier(.05,0,0,1),padding-right .2s cubic-bezier(.05,0,0,1);display:grid;position:relative;overflow:visible;height:40px!important}[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel:after{content:"";z-index:0;border-radius:var(--pill-radius);pointer-events:none;background:0 0;transition:background .2s cubic-bezier(.05,0,0,1);position:absolute;inset:4px}[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel:hover:after,[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel:focus-within:after,[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel.vjs-hover:after,[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel.vjs-slider-active:after{background:#ffffff1a}[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel:active:after{background:#fff3}[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel:hover,[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel:focus-within,[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel.vjs-hover,[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel.vjs-slider-active{background:#0009;flex-basis:111px;grid-template-columns:40px 52px;column-gap:3px;width:111px;padding-right:16px}[data-stage][data-theater] [data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel,.video-js.vjs-fullscreen .vjs-control-bar>.vjs-volume-panel{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009!important}[data-stage-media] .video-js .vjs-volume-panel>.vjs-mute-control{box-sizing:border-box;z-index:1;background:0 0;border:0;flex:0 0 40px;align-self:center;min-width:40px;width:40px!important;height:40px!important;margin:0!important;padding:0!important;position:relative!important;top:0!important;left:0!important;transform:none!important}[data-stage-media] .video-js .vjs-volume-panel>.vjs-mute-control>.vjs-peach-control-icon{width:18px;height:18px}[data-stage-media] .video-js .vjs-volume-panel>.vjs-volume-control.vjs-volume-horizontal{box-sizing:border-box;z-index:1;opacity:0;visibility:hidden;pointer-events:none;flex:0 0 52px;align-self:center;min-width:52px;min-height:36px;transition:opacity .1s cubic-bezier(0,0,.2,1);overflow:visible;width:52px!important;height:40px!important;margin:0!important;padding:0!important;display:block!important;position:relative!important;top:0!important;left:0!important}[data-stage-media] .video-js .vjs-volume-panel:hover>.vjs-volume-control.vjs-volume-horizontal,[data-stage-media] .video-js .vjs-volume-panel:focus-within>.vjs-volume-control.vjs-volume-horizontal,[data-stage-media] .video-js .vjs-volume-panel.vjs-hover>.vjs-volume-control.vjs-volume-horizontal,[data-stage-media] .video-js .vjs-volume-panel.vjs-slider-active>.vjs-volume-control.vjs-volume-horizontal{opacity:1;visibility:visible;pointer-events:auto;transition-delay:80ms}[data-stage-media] .video-js .vjs-volume-panel .vjs-volume-bar.vjs-slider-horizontal{box-sizing:border-box;background:0 0;transform:none;width:52px!important;height:40px!important;margin:0!important;position:absolute!important;top:0!important;left:0!important;right:auto!important;overflow:visible!important}[data-stage-media] .video-js .vjs-volume-panel .vjs-volume-bar.vjs-slider-horizontal:before{content:"";background:#ffffff4d;height:2px;margin-top:-1px;position:absolute;top:50%;left:0;right:0}[data-stage-media] .video-js .vjs-volume-panel .vjs-volume-level{background:#fff;height:2px;margin-top:-1px;top:50%;bottom:auto}[data-stage-media] .video-js .vjs-volume-panel .vjs-mouse-display{background:0 0}[data-stage-media] .video-js .vjs-volume-panel .vjs-volume-level:before{background:#fff;border-radius:50%;width:12px;height:12px;margin:0;font-size:0;top:50%;right:-6px;transform:translateY(-50%)}[data-stage-media] .video-js .vjs-volume-panel .vjs-volume-tooltip{float:none;border-radius:var(--surface-radius);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);color:#fff;font-family:inherit;font-size:var(--fs-sm);text-shadow:0 0 2px #000;white-space:nowrap;background:#0009;padding:5px 9px;font-weight:500;line-height:15px;top:auto;bottom:calc(50% + 31px);left:50%;overflow:visible;transform:translate(-50%);z-index:5!important;right:auto!important}.vjs-peach-right-controls{box-sizing:border-box;border-radius:var(--pill-radius);height:40px;box-shadow:none;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009;border:0;flex:none;align-self:flex-end;align-items:center;margin:0 0 8px;padding:0 4px;display:flex;position:relative;overflow:visible}[data-stage-media] .video-js .vjs-peach-right-controls>.vjs-control{box-sizing:border-box;min-width:48px;box-shadow:none;color:#fff;background:0 0;border:0;border-radius:0;flex:0 0 48px;margin:0;padding:0;position:relative;width:48px!important;height:40px!important}[data-stage-media] .video-js .vjs-peach-right-controls>.vjs-control>button{width:100%;height:100%;color:inherit;background:0 0;border:0;margin:0;padding:0}[data-stage-media] .video-js .vjs-peach-right-controls>.vjs-control:focus,[data-stage-media] .video-js .vjs-peach-right-controls>.vjs-control:focus-visible,[data-stage-media] .video-js .vjs-peach-right-controls>.vjs-control>button:focus,[data-stage-media] .video-js .vjs-peach-right-controls>.vjs-control>button:focus-visible{box-shadow:none;outline:0}[data-stage-media] .video-js .vjs-progress-control{z-index:2;align-items:flex-end;width:auto;min-width:0;height:18px;display:flex;position:absolute;top:-12px;left:0;right:0}[data-stage-media] .video-js .vjs-progress-control .vjs-progress-holder{background:#28282899;border-radius:0;width:100%;height:6px;margin:0;transition:transform .2s cubic-bezier(.05,0,0,1);transform:scaleY(.667)}[data-stage-media] .video-js .vjs-progress-control:hover .vjs-progress-holder,[data-stage-media] .video-js .vjs-progress-control:focus-within .vjs-progress-holder{transform:scaleY(1)}[data-stage-media] .video-js .vjs-load-progress{background:#fff6}[data-stage-media] .video-js .vjs-load-progress div{background:#fff3}[data-stage-media] .video-js .vjs-play-progress{background:var(--tungsten)}[data-stage-media] .video-js .vjs-play-progress:before{content:"";background:var(--tungsten);width:12px;height:12px;box-shadow:none;border-radius:50%;transition:transform .2s cubic-bezier(.05,0,0,1);position:absolute;top:50%;right:-6px;transform:translateY(-50%)scaleY(1.5)}[data-stage-media] .video-js .vjs-progress-control:hover .vjs-play-progress:before,[data-stage-media] .video-js .vjs-progress-control:focus-within .vjs-play-progress:before{transform:translateY(-50%)scale(1.67)}[data-stage-media] .video-js .vjs-mouse-display .vjs-time-tooltip,[data-stage-media] .video-js .vjs-play-progress .vjs-time-tooltip{display:none!important}.vjs-peach-seek-preview{z-index:4;pointer-events:none;color:#fff;flex-direction:column;align-items:center;display:flex;position:absolute;bottom:calc(100% - 2px);transform:translate(-50%)}.vjs-peach-seek-preview[hidden]{display:none}.vjs-peach-seek-frame{aspect-ratio:16/9;border-radius:var(--floating-radius);background:#000;border:2px solid #fff;width:240px;display:block;position:relative;overflow:hidden;box-shadow:0 8px 24px #0009}.vjs-peach-seek-frame[hidden]{display:none}.vjs-peach-seek-preview img{object-fit:cover;width:100%;height:100%;display:block;position:absolute;top:0;left:0}.vjs-peach-seek-preview span{border-radius:var(--pill-radius);min-width:58px;font-size:var(--fs-sm);text-align:center;background:#000000ad;margin-top:8px;padding:6px 10px;font-weight:600;line-height:1;box-shadow:0 2px 8px #0006}[data-stage-media] .video-js .vjs-custom-control-spacer{flex:auto;display:block}[data-stage-media] .video-js .vjs-time-control{display:none!important}[data-stage-media] .video-js .vjs-peach-time{box-sizing:border-box;border-radius:var(--pill-radius);color:#fff;cursor:pointer;isolation:isolate;width:auto;height:40px;font-weight:400;font-size:var(--fs-md);font-variant-numeric:tabular-nums;white-space:nowrap;text-shadow:0 0 1px #000c;background:#0009;border:0;flex:none;align-self:flex-end;margin:0 0 8px 12px;padding:0 16px;font-family:inherit;line-height:40px;position:relative;overflow:visible}[data-stage-media] .video-js .vjs-peach-time:after{content:"";z-index:0;border-radius:var(--pill-radius);background:0 0;transition:background .2s cubic-bezier(.05,0,0,1);position:absolute;inset:4px}[data-stage-media] .video-js .vjs-peach-time:hover:after,[data-stage-media] .video-js .vjs-peach-time:focus-visible:after{background:#ffffff1a}[data-stage-media] .video-js .vjs-peach-time:active:after{background:#fff3}[data-stage-media] .video-js .vjs-peach-time:focus-visible{outline:0}.vjs-peach-time-text{z-index:1;position:relative}.vjs-peach-settings,.vjs-peach-theater,.vjs-peach-expand{flex:0 0 48px;min-width:48px;position:relative;width:48px!important}.vjs-peach-settings>button,.vjs-peach-theater>button,.vjs-peach-expand>button{width:100%;height:100%;color:inherit;cursor:pointer;background:0 0;border:0;place-items:center;padding:0;display:grid}.vjs-peach-expand>button>svg{fill:currentColor;stroke:none;filter:drop-shadow(0 0 1px #000c);width:24px;height:24px}.vjs-peach-settings>button>svg,.vjs-peach-theater>button>svg{stroke:currentColor;fill:none;stroke-width:2px;filter:drop-shadow(0 0 1px #000c);width:24px;height:24px}.vjs-peach-settings [data-player-quality-badge]{z-index:2;border-radius:var(--badge-radius);color:#fff;min-width:17px;height:12px;font-size:var(--fs-xs);transform-origin:100% 0;background:#f03;place-items:center;padding:0 2px;font-weight:600;line-height:1;display:grid;position:absolute;top:1px;right:4px;transform:scale(.67)}.vjs-peach-settings [data-player-quality-badge][hidden]{display:none}.vjs-peach-settings-menu{box-sizing:border-box;z-index:2300;border-radius:var(--floating-radius);width:min(274px,100vw - 28px);max-height:min(420px,100vh - 130px);box-shadow:none;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);color:#fff;text-shadow:0 0 1px #000c;font-weight:400;font-size:var(--fs-md);opacity:1;visibility:visible;background:#0009;border:0;padding:0;font-family:inherit;line-height:1.3;transition:opacity .1s cubic-bezier(0,0,.2,1);position:absolute;bottom:52px;right:-100px;overflow:auto}.vjs-peach-settings-menu[aria-hidden=true]{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .1s cubic-bezier(.4,0,1,1),visibility 0s .1s}.vjs-peach-settings-menu.vjs-peach-popup-animating{pointer-events:none;transition:height .25s cubic-bezier(.4,0,.2,1);overflow:hidden}.vjs-peach-panel{position:relative}.vjs-peach-popup-animating .vjs-peach-panel{transition:transform .25s cubic-bezier(.4,0,.2,1),opacity .25s cubic-bezier(.4,0,.2,1)}.vjs-peach-panel-leaving{width:100%;position:absolute;top:0;left:0}.vjs-peach-panel-animate-back{opacity:0;transform:translate(-100%)}.vjs-peach-panel-animate-forward{opacity:0;transform:translate(100%)}.vjs-peach-settings-menu button{box-sizing:border-box;isolation:isolate;border-radius:var(--control-radius);color:#fff;width:100%;min-height:48px;font:inherit;cursor:pointer;background:0 0;border:0;padding:0;position:relative;overflow:hidden}.vjs-peach-settings-menu button:before{content:"";z-index:0;border-radius:inherit;pointer-events:none;background:0 0;transition:background .1s cubic-bezier(.05,0,0,1);position:absolute;inset:0}.vjs-peach-settings-menu button:hover:before,.vjs-peach-settings-menu button:focus-visible:before{background:#ffffff1a}.vjs-peach-settings-menu button:active:before{background:#fff3}.vjs-peach-settings-menu button:focus-visible{outline:0}.vjs-peach-settings-menu button>*{z-index:1;position:relative}.video-js .vjs-peach-menu-row{text-align:left;grid-template-columns:56px minmax(0,1fr) minmax(0,max-content) 32px;align-items:center;gap:0;display:grid;padding:0!important}.vjs-peach-menu-row>svg{fill:currentColor;stroke:none;justify-self:start;width:24px;height:24px;margin-left:8px}.vjs-peach-menu-row>span{font-size:var(--fs-md);line-height:18.2px}.vjs-peach-menu-row>b{font-size:var(--fs-md);color:#ffffffb3;white-space:nowrap;padding-left:8px;font-weight:400;line-height:18.2px}.vjs-peach-menu-row>svg:last-child{color:#ffffffb3;fill:currentColor;stroke:none;justify-self:center;width:18px;height:18px;margin:0}.vjs-peach-menu-row[data-player-ambient]{grid-template-columns:56px minmax(0,1fr) auto;padding-right:8px!important}.vjs-peach-switch{box-sizing:border-box;border-radius:var(--floating-radius);background:#0000004d;width:40px;height:24px;display:block;position:relative}.vjs-peach-switch:after{content:"";width:20px;height:20px;box-shadow:none;background:#ffffffb3;border-radius:50%;transition:transform .2s cubic-bezier(.05,0,0,1),background .2s cubic-bezier(.05,0,0,1);position:absolute;top:2px;left:2px}.vjs-peach-menu-row[aria-checked=true] .vjs-peach-switch{background:#ffffff4d}.vjs-peach-menu-row[aria-checked=true] .vjs-peach-switch:after{background:#fff;transform:translate(16px)}.vjs-peach-panel-header{box-sizing:border-box;color:#eee;white-space:nowrap;border-bottom:1px solid #fff3;align-items:center;gap:0;height:57px;padding:8px 0;display:flex}.vjs-peach-panel-header .vjs-peach-menu-back{color:#eee;flex:0 0 48px;place-items:center;width:48px;min-height:48px;display:grid;border:0!important;border-radius:50%!important;height:48px!important}.vjs-peach-settings-menu .vjs-peach-panel-header .vjs-peach-menu-back:before{inset:4px}.vjs-peach-panel-header .vjs-peach-menu-back svg{fill:currentColor;stroke:none;width:32px;height:32px;display:block}.vjs-peach-panel-header strong{font-size:var(--fs-md);color:#eee;font-weight:500;line-height:18.2px}.vjs-peach-panel-menu{padding:8px}.video-js .vjs-peach-menu-option{text-align:left;grid-template-columns:35px minmax(0,1fr);align-items:center;line-height:18.2px;display:grid;font-size:var(--fs-md)!important;padding:0 20px 0 0!important}.vjs-peach-option-check{place-items:center;width:35px;height:24px;display:grid}.vjs-peach-option-check svg{fill:currentColor;stroke:none;width:24px;height:24px;display:block}.vjs-peach-option-label{min-width:0}.vjs-peach-speed-panel{box-sizing:border-box;flex-direction:column;padding:24px 16px 16px;display:flex}.vjs-peach-speed-display{font-size:var(--fs-lg);color:#fff;justify-content:center;margin-bottom:24px;font-weight:600;line-height:22px;display:flex}.vjs-peach-speed-slider{align-items:center;gap:16px;margin-bottom:24px;display:flex}.vjs-peach-speed-chips{align-items:flex-start;gap:8px;display:flex}.vjs-peach-speed-preset{flex-direction:column;flex:0 53px;align-items:center;min-width:0;display:flex}.vjs-peach-speed-preset-label{font-size:var(--fs-xs);color:#ffffffb3;margin-top:4px;font-weight:400;line-height:14px}.vjs-peach-settings-menu .vjs-peach-speed-button{border-radius:var(--pill-radius);color:#fff;text-align:center;cursor:pointer;background:#ffffff1a;border:0;justify-content:center;align-items:center;height:32px;min-height:32px;padding:0;font-weight:500;line-height:16px;transition:background .2s cubic-bezier(.05,0,0,1);display:flex}.vjs-peach-settings-menu .vjs-peach-speed-button:before{content:none}.vjs-peach-settings-menu .vjs-peach-speed-button:hover{background:#fff3}.vjs-peach-settings-menu .vjs-peach-speed-button:active{background:#ffffff4d}.vjs-peach-speed-slider .vjs-peach-speed-button{flex:none;width:32px}.vjs-peach-speed-slider .vjs-peach-speed-button>svg{stroke:currentColor;fill:none;stroke-width:2px;stroke-linecap:round;width:24px;height:24px;display:block}.vjs-peach-speed-chips .vjs-peach-speed-button{width:100%;font-size:var(--fs-xs);gap:4px}.vjs-peach-speed-range{--peach-speed-percent:0%;appearance:none;cursor:pointer;background:0 0;flex:auto;width:100%;min-width:0;height:24px;margin:0}.vjs-peach-speed-range:focus-visible{outline:0}.vjs-peach-speed-range::-webkit-slider-runnable-track{border-radius:var(--pill-radius);background:linear-gradient(to right,#fff 0,#fff var(--peach-speed-percent),#909090 var(--peach-speed-percent),#909090 100%);height:4px}.vjs-peach-speed-range::-webkit-slider-thumb{appearance:none;background:#fff;border-radius:50%;width:16px;height:16px;margin-top:-6px}.vjs-peach-speed-range::-moz-range-track{border-radius:var(--pill-radius);background:linear-gradient(to right,#fff 0,#fff var(--peach-speed-percent),#909090 var(--peach-speed-percent),#909090 100%);height:4px}.vjs-peach-speed-range::-moz-range-thumb{background:#fff;border:0;border-radius:50%;width:16px;height:16px}.video-js.vjs-peach-xsmall .vjs-peach-speed-panel{padding:16px}.video-js.vjs-peach-xsmall .vjs-peach-speed-display,.video-js.vjs-peach-xsmall .vjs-peach-speed-slider{margin-bottom:16px}.vjs-peach-bezel{z-index:19;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);color:#fff;opacity:0;pointer-events:none;background:#0009;border-radius:50%;place-items:center;width:78px;height:78px;margin:-39px 0 0 -39px;display:grid;position:absolute;top:50%;left:50%}.vjs-peach-bezel[hidden]{display:none}.vjs-peach-bezel-icon{place-items:center;width:54px;height:54px;display:grid}.vjs-peach-bezel-icon svg{fill:currentColor;stroke:none;width:100%;height:100%;display:block}.vjs-peach-bezel-run{animation:1s cubic-bezier(.05,0,0,1) forwards peach-bezel-fadeout}@keyframes peach-bezel-fadeout{0%{opacity:0}25%,75%{opacity:1;transform:scale(1.33)}to{opacity:0;transform:scale(1)}}.video-js.vjs-peach-xsmall .vjs-peach-bezel{width:64px;height:64px;margin:-32px 0 0 -32px}.video-js.vjs-peach-xsmall .vjs-peach-bezel-icon{width:48px;height:48px}.video-js.vjs-waiting .vjs-peach-bezel,.video-js.vjs-seeking .vjs-peach-bezel,.video-js.vjs-error .vjs-peach-bezel{display:none}.vjs-peach-tooltip{z-index:5;border-radius:var(--surface-radius);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);color:#fff;white-space:nowrap;font-size:var(--fs-sm);text-shadow:0 0 2px #000;pointer-events:none;background:#0009;align-items:center;padding:5px 9px;font-weight:500;line-height:15px;display:none;position:absolute;bottom:calc(100% + 12px);right:50%;transform:translate(50%)}.vjs-peach-tooltip,.vjs-volume-tooltip{--surface-radius:8px;--badge-radius:4px}.vjs-peach-tooltip kbd{border-radius:var(--badge-radius);color:#fff;min-width:11px;font:inherit;border:1px solid #ffffff4d;justify-content:center;align-items:center;margin-left:4px;padding:0 2px;display:flex}.vjs-peach-tooltip kbd[hidden]{display:none}[data-stage-media] .video-js .vjs-control-bar button:hover>.vjs-peach-tooltip,[data-stage-media] .video-js .vjs-control-bar button:focus-visible>.vjs-peach-tooltip{display:flex}.vjs-peach-theater>button[aria-pressed=true]{color:#fff}@media (width<=640px){[data-stage-media] .video-js .vjs-control-bar{height:59px;padding:3px 0 0;bottom:6px;left:8px;right:8px}[data-stage-media] .video-js .vjs-progress-control,[data-stage-media] .video-js.vjs-layout-tiny .vjs-progress-control,[data-stage-media] .video-js.vjs-layout-x-small .vjs-progress-control{height:18px;display:flex;top:-12px;left:0;right:0}[data-stage-media] .video-js.vjs-layout-small .vjs-current-time,[data-stage-media] .video-js.vjs-layout-small .vjs-duration,[data-stage-media] .video-js.vjs-layout-small .vjs-time-divider{display:flex}[data-stage-media] .video-js .vjs-time-control{font-size:var(--fs-xs)}.vjs-peach-seek-frame{width:160px}.vjs-peach-settings-menu{border-radius:var(--floating-radius);width:min(274px,100vw - 16px);right:-100px}}.vjs-peach-expand{display:none}.video-js.vjs-peach-xsmall .vjs-peach-right-controls>.vjs-control{flex:0 0 36px;min-width:36px;width:36px!important}.video-js.vjs-peach-xsmall .vjs-peach-right-controls .vjs-peach-control-icon,.video-js.vjs-peach-xsmall .vjs-peach-right-controls>.vjs-control:not(.vjs-peach-expand)>button>svg{width:18px;height:18px}.video-js.vjs-peach-xsmall .vjs-peach-expand>button>svg{width:32px;height:32px}.video-js.vjs-peach-xsmall .vjs-peach-right-controls>.vjs-control>.vjs-peach-hover{border-radius:50%;width:32px;height:32px;left:2px}.video-js.vjs-peach-xsmall .vjs-peach-settings-menu{width:min(274px,100vw - 48px);max-height:calc(var(--peach-player-h,420px) - 74px);right:0}.video-js.vjs-peach-xsmall .vjs-peach-panel-menu{padding:4px 8px}.video-js.vjs-peach-xsmall .vjs-peach-menu-option{min-height:44px}.video-js.vjs-peach-xsmall .vjs-peach-panel-menu:has(>.vjs-peach-menu-option:nth-child(5)){grid-template-columns:1fr 1fr;display:grid}.video-js.vjs-peach-xsmall .vjs-peach-right-controls>.vjs-control:not(.vjs-peach-settings):not(.vjs-peach-expand){display:none}.video-js.vjs-peach-xsmall .vjs-peach-expand,.video-js.vjs-peach-xsmall.vjs-peach-right-expanded .vjs-peach-right-controls>.vjs-control:not(.vjs-peach-settings):not(.vjs-peach-expand){display:block}.video-js.vjs-peach-xsmall.vjs-peach-right-expanded .vjs-peach-time{display:none}.vjs-peach-expand>button>svg{transition:transform .3s cubic-bezier(.05,0,0,1);transform:rotate(180deg)}.video-js.vjs-peach-right-expanded .vjs-peach-expand>button>svg{transform:rotate(0)}[data-stage-media] .video-js.vjs-error .vjs-error-display{background:0 0}[data-stage-media] .video-js.vjs-error .vjs-error-display .vjs-modal-dialog-content{z-index:9;border-radius:var(--surface-radius);text-align:center;overflow-wrap:anywhere;background:#020408db;justify-content:center;align-items:center;width:max-content;max-width:min(560px,100% - 48px);height:auto;padding:14px 18px;display:flex;top:50%;left:50%;transform:translate(-50%,-50%)}[data-stage-media] :is([data-stage-media]>.video-js.vjs-fullscreen,.video-js.vjs-fullscreen,.video-js[data-peach-fullscreen],body.vjs-full-window .video-js,.video-js:fullscreen,.video-js:fullscreen,.video-js:fullscreen,[data-stage-media]:fullscreen>.video-js,[data-stage-media]:fullscreen>.video-js,[data-stage-media]:fullscreen>.video-js){aspect-ratio:auto!important;z-index:10000!important;width:100vw!important;max-width:none!important;height:100vh!important;max-height:none!important;padding:0!important;position:fixed!important;inset:0!important}[data-stage-media] :is([data-stage-media]>.video-js.vjs-fullscreen,.video-js.vjs-fullscreen,.video-js[data-peach-fullscreen],body.vjs-full-window .video-js,.video-js:fullscreen,.video-js:fullscreen,.video-js:fullscreen,[data-stage-media]:fullscreen>.video-js,[data-stage-media]:fullscreen>.video-js,[data-stage-media]:fullscreen>.video-js) .vjs-tech{object-fit:cover!important;width:100vw!important;max-width:none!important;height:100vh!important;max-height:none!important;position:absolute!important;inset:0!important}[data-player-stats-button]{z-index:8;color:#fff;cursor:pointer;width:40px;height:40px;box-shadow:none;isolation:isolate;background:#0009;border:0;border-radius:50%;place-items:center;padding:0;display:grid;position:absolute;top:11px;left:11px;overflow:hidden}[data-player-stats-button][hidden]{display:none}[data-player-stats-button]:after,[data-stage-close]:after{content:"";z-index:0;pointer-events:none;background:0 0;border-radius:50%;transition:background .2s cubic-bezier(.05,0,0,1);position:absolute;inset:4px}[data-player-stats-button]:hover:after,[data-player-stats-button]:focus-visible:after,[data-stage-close]:hover:after,[data-stage-close]:focus-visible:after{background:#ffffff1a}[data-player-stats-button]:active:after,[data-stage-close]:active:after{background:#fff3}[data-player-stats-button]:focus-visible,[data-stage-close]:focus-visible{outline:0}[data-player-stats-button][aria-pressed=true]{background:var(--hover);color:var(--ink)}[data-player-stats-button] svg{z-index:1;stroke:currentColor;fill:none;stroke-width:2px;filter:drop-shadow(0 0 1px #000c);width:20px;height:20px;position:relative}[data-player-stats]{z-index:8;overscroll-behavior:contain;border-radius:var(--surface-radius);color:#eef3f8;-webkit-backdrop-filter:saturate(1.25)blur(14px);backdrop-filter:saturate(1.25)blur(14px);min-width:320px;max-width:min(520px,100% - 22px);max-height:calc(100% - 114px);font-size:var(--fs-xs);background:#020408c7;border:1px solid #ffffff2e;padding:10px 12px;font-family:inherit;line-height:1.5;position:absolute;top:58px;left:11px;overflow-y:auto;box-shadow:0 12px 28px #0008}[data-player-stats] dl{grid-template-columns:max-content minmax(0,1fr);gap:1px 12px;margin:0;display:grid}[data-player-stats] dt{text-align:right;font-weight:600}[data-player-stats] dd{text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}[data-player-stats] dd[data-player-stats-metric]{grid-template-columns:166px minmax(0,1fr);align-items:center;gap:9px;display:grid;overflow:visible}[data-player-stats-metric]>span{text-overflow:ellipsis;overflow:hidden}[data-player-stats-plot]{background:#000;grid-template-columns:repeat(24,minmax(2px,1fr));align-items:end;gap:1px;height:20px;padding:2px;display:grid;overflow:hidden}[data-player-stats-plot] i{background:0 0;min-height:0;display:block}[data-player-stats-plot=speed] i[data-bar]{background:#55b5bd}[data-player-stats-plot=activity] i[data-bar]{background:#4ba8df}[data-player-stats-plot=buffer] i[data-bar]{background:#d8e98a}[data-player-stats-plot=buffer] i[data-bar=mid]{background:#efb55f}[data-player-stats-plot=buffer] i[data-bar=low]{background:#e16962}[data-player-stats][hidden]{display:none}@media (width<=600px){[data-player-stats] dd[data-player-stats-metric]{grid-template-columns:96px minmax(0,1fr)}}[data-player-net]{box-sizing:border-box;z-index:8;white-space:nowrap;border-radius:var(--floating-radius);color:#fff;height:40px;min-height:40px;box-shadow:none;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);font-size:var(--fs-xs);background:#0009;border:0;align-items:center;gap:7px;padding:0 11px;font-family:inherit;line-height:1;display:flex;position:absolute;top:11px;left:58px}[data-player-net] svg{stroke:currentColor;fill:none;stroke-width:2px;stroke-linecap:round;flex:none;width:18px;height:18px}[data-player-net][hidden],[data-stage-media] video[hidden]{display:none}[data-stage-close]{z-index:9;color:#f0e9de;cursor:pointer;width:40px;height:40px;box-shadow:none;isolation:isolate;background:#0009;border:0;border-radius:50%;place-items:center;padding:0;display:grid;position:absolute;top:11px;right:11px;overflow:hidden}[data-stage-close] svg{z-index:1;stroke:currentColor;fill:none;stroke-width:2px;filter:drop-shadow(0 0 1px #000c);width:20px;height:20px;position:relative}#playerMenu[data-player-context-menu]{border-radius:var(--floating-radius);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:none;color:#fff;text-shadow:0 0 1px #000c;background:#0009;border:0;gap:0;min-width:240px;max-width:calc(100vw - 16px);padding:8px}[data-player-context-menu][popover]{margin:0;inset:auto}#playerMenu>[data-player-menu]{box-sizing:border-box;border-radius:var(--control-radius);width:100%;min-height:48px;box-shadow:none;color:#fff;font:inherit;font-size:var(--fs-md);text-align:left;white-space:nowrap;cursor:pointer;background:0 0;border:0;grid-template-columns:56px minmax(0,1fr) 32px;align-items:center;gap:0;margin:0;padding:0;font-weight:400;line-height:18.2px;display:grid}#playerMenu>[data-player-menu]:hover,#playerMenu>[data-player-menu]:focus-visible{color:#fff;background:#ffffff1a;outline:0}#playerMenu>[data-player-menu]:active{background:#fff3}[data-player-menu]>svg{stroke:currentColor;fill:none;stroke-width:2px;justify-self:start;width:24px;height:24px;margin-left:8px}[data-player-menu]>svg[data-player-menu-fill]{fill:currentColor;stroke:none}[data-player-menu]>span{text-overflow:ellipsis;overflow:hidden}[data-player-menu]>[data-player-menu-check]{visibility:hidden;grid-column:3;justify-self:center;width:18px;height:18px;margin:0}[data-player-menu][aria-checked=true]>[data-player-menu-check]{visibility:visible}:root{--stage-shadow:#0000000a;--miniplayer-shadow-near:#00000029;--miniplayer-shadow-far:#0003}.dark{--stage-shadow:#0006;--miniplayer-shadow-near:#00000080;--miniplayer-shadow-far:#0000008c}[data-stage]{--detail-surface:var(--video-glow,#15202a)}@supports (color:color-mix(in lab, red, red)){[data-stage]{--detail-surface:color-mix(in srgb,var(--video-glow,#15202a) 12%,var(--surface) 88%)}}[data-stage]{width:min(1440px,100vw - 32px);max-width:calc(100vw - 32px);height:fit-content;max-height:calc(100dvh - 32px);color:var(--ink);border-radius:var(--floating-radius);overscroll-behavior:contain;background:radial-gradient(circle at 28% 24%,var(--video-glow,#15202a),transparent 58%), var(--surface);margin:auto;padding:0;position:fixed;inset:16px}@supports (color:color-mix(in lab, red, red)){[data-stage]{background:radial-gradient(circle at 28% 24%,color-mix(in srgb,var(--video-glow,#15202a) 40%,transparent),transparent 58%), color-mix(in srgb,var(--surface) 88%,transparent)}}[data-stage]{scroll-margin-top:calc(var(--topH) + 8px);border:1px solid var(--line);overflow:auto}[data-stage]::backdrop{background:var(--scrim)}[data-stage]:focus-visible{outline:none}body[data-detail-open]{overflow:hidden}@supports (color:color-mix(in lab, red, red)){[data-stage]:not([data-ambient]){background:color-mix(in srgb,var(--surface) 88%,transparent)}}[data-stage-grid]{grid-template-columns:minmax(0,1fr) minmax(350px,390px);display:grid}[data-stage-grid][data-with-queue]{grid-template-columns:minmax(0,1fr) minmax(350px,390px);grid-template-areas:"media side""queue queue";align-items:start}[data-stage-grid][data-with-queue]>[data-stage-media]{grid-area:media}[data-stage-grid][data-with-queue]>[data-stage-side]{background:var(--detail-surface);grid-area:side}[data-stage-grid][data-with-queue]>[data-mix-queue]{border-left:0;border-top:1px solid var(--line-soft);background:var(--detail-surface);grid-area:queue;max-height:360px}[data-stage-grid][data-with-queue] [data-mix-queue-actions] [data-queue-close]{display:none}[data-mix-queue]{border-left:1px solid var(--line-soft);background:var(--video-glow,#15202a);flex-direction:column;min-width:0;max-height:76vh;display:flex}@supports (color:color-mix(in lab, red, red)){[data-mix-queue]{background:color-mix(in srgb,var(--video-glow,#15202a) 10%,var(--surface) 90%)}}[data-mix-queue-head]{border-bottom:1px solid var(--line-soft);grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-height:70px;padding:12px 12px 10px 15px;display:grid}[data-mix-queue-head] h2{text-overflow:ellipsis;white-space:nowrap;font-size:var(--fs-lg);margin:0;overflow:hidden}[data-mix-queue-head] span{color:var(--muted);font-size:var(--fs-xs);margin-top:3px;display:block}[data-mix-queue-head] button{border-radius:var(--control-radius);width:36px;height:36px;color:var(--ink);cursor:pointer;background:0 0;border:0;place-items:center;padding:0;display:grid}[data-mix-queue-head] button:hover{background:var(--hover)}[data-mix-queue-head] svg{stroke:currentColor;fill:none;stroke-width:2px;width:20px;height:20px}[data-mix-queue-actions]{align-items:center;gap:2px;display:flex}[data-mix-list]{min-height:0;padding:6px;overflow-y:auto}[data-mix-row]{border-radius:var(--control-radius);grid-template-columns:minmax(0,1fr) auto;align-items:center;display:grid}[data-mix-row]:has([data-mix-item][aria-current=true]){background:var(--hover)}[data-mix-row] [data-mix-item][aria-current=true]{background:0 0}[data-mix-item]{border-radius:var(--control-radius);width:100%;color:var(--ink);text-align:left;cursor:pointer;background:0 0;border:0;grid-template-columns:94px minmax(0,1fr);align-items:center;gap:10px;padding:7px;display:grid}[data-mix-item]:hover{background:var(--overlay-5)}[data-mix-item][aria-current=true]{background:var(--hover)}[data-mix-item-pic]{aspect-ratio:16/9;border-radius:var(--badge-radius);background:#000;position:relative;overflow:hidden}[data-mix-item-pic] img{object-fit:contain;width:100%;height:100%;position:absolute;inset:0}[data-mix-item-pic] [data-mix-item-duration]{bottom:3px;right:4px}[data-mix-item-meta]{align-items:center;gap:10px;min-width:0;display:flex}[data-mix-item-meta] [class~=mav]{cursor:inherit}[data-mix-item-meta] [class~=mav]:hover{box-shadow:none}[data-mix-item-meta] [class~=mavstack] [class~=mav]{box-shadow:0 0 0 2px var(--ground)}[data-mix-item-text]{min-width:0}[data-mix-item-text] b,[data-mix-item-text] span{white-space:nowrap;display:block;overflow:hidden}[data-mix-item-text] [data-truncate-end]{text-overflow:ellipsis}[data-mix-item-text] b{font-size:var(--fs-xs);line-height:1.4}[data-mix-item-text] span{font-size:var(--fs-xs);color:var(--muted);margin-top:3px}[data-mix-row][data-queue-row]{cursor:grab;position:relative}[data-mix-row][data-queue-row]:active{cursor:grabbing}[data-mix-row][class~=dragging]{opacity:.42}[data-mix-row][class~=drop-before]:before,[data-mix-row][class~=drop-after]:after{content:"";z-index:4;border-radius:var(--pill-radius);background:var(--ink);height:2px;position:absolute;left:6px;right:6px}[data-mix-row][class~=drop-before]:before{top:-3px}[data-mix-row][class~=drop-after]:after{bottom:-3px}[data-stage-grid][data-with-queue]>[data-mix-queue]{padding:14px 14px 16px;overflow:hidden}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-queue-head]{border:0;min-height:0;padding:0 0 11px}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-queue-head] h2{font-size:var(--fs-sm);letter-spacing:.06em}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-queue-head] span{text-overflow:ellipsis;white-space:nowrap;max-width:72ch;overflow:hidden}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-list]{overscroll-behavior-inline:contain;scroll-snap-type:x proximity;grid-auto-columns:minmax(190px,220px);grid-auto-flow:column;gap:10px;padding:0 0 3px;display:grid;overflow:auto hidden}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-row]{scroll-snap-align:start;background:0 0;min-width:0;display:block;position:relative}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item]{flex-direction:column;align-items:stretch;gap:7px;padding:0;display:flex}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item]:hover,[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item][aria-current=true]{background:0 0}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item-pic]{border:1px solid #0000;width:100%}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item][aria-current=true] [data-mix-item-pic]{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item-meta]{align-items:flex-start;width:100%;padding:0 2px}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item-meta] [class~=mav],[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item-meta] [class~=mavstack]{margin-top:2px}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item-text]{flex:1;min-width:0}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item-text] b{font-size:var(--fs-sm)}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item][data-media-kind=image] [data-mix-item-pic] img{object-fit:cover}[data-stage-scroll]>.peach-react{font:inherit;color:inherit;-webkit-font-smoothing:inherit;font-variant-ligatures:inherit;font-kerning:inherit;display:contents}@media (width>=1081px){[data-stage]:not([data-theater])>[data-stage-scroll]{flex-direction:column;max-height:calc(100dvh - 34px);display:flex}[data-stage]:not([data-theater])>[data-stage-scroll]>[data-stage-grid],[data-stage]:not([data-theater])>[data-stage-scroll]>.peach-react>[data-stage-grid]{flex:auto;min-height:0}[data-stage]:not([data-theater]) [data-stage-grid]>[data-stage-media]{min-height:0}[data-stage]:not([data-theater]) [data-stage-media]>.video-js{max-height:min(76vh,100%)}[data-stage][data-theater]>[data-stage-scroll]{overscroll-behavior:contain;max-height:calc(100dvh - 34px);overflow:hidden auto}[data-stage-grid][data-with-queue]>[data-stage-media]{align-self:stretch}[data-stage][data-theater] [data-stage-grid]{grid-template-columns:minmax(0,1fr)}[data-stage][data-theater] [data-stage-grid]:not([data-with-queue])>[data-stage-side]{border-left:0;border-top:1px solid var(--line-soft);grid-column:1}[data-stage][data-theater] [data-stage-grid][data-with-queue]{grid-template-areas:"media""side""queue"}[data-stage][data-theater] [data-stage-side-content]:is(*){height:auto;max-height:none}[data-stage][data-theater] [data-stage-media]>.video-js,[data-stage][data-theater] [data-stage-media]>video{max-height:calc(100vh - var(--topH) - 56px)}}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-queue-head]{grid-template-columns:max-content max-content minmax(0,1fr);gap:5px 8px}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-queue-head]>div:first-child{min-width:0}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-queue-actions]{grid-area:1/2;align-self:center}[data-mix-item-duration]{z-index:2;color:#f2eadf;border-radius:var(--badge-radius);background:#000000b3;padding:2px 6px;transition:opacity .15s;position:absolute;bottom:6px;right:6px}[data-stage-side]{border-left:1px solid var(--line-soft);background:var(--detail-surface);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);align-self:stretch;min-width:0;min-height:0;overflow:hidden}[data-stage-side-content]{box-sizing:border-box;flex-direction:column;gap:0;width:100%;height:100%;max-height:76vh;padding:18px;display:flex;overflow:hidden auto}[data-stage-title]{font-size:var(--fs-lg);word-break:break-all;margin-bottom:8px;line-height:1.4}[data-stage-meta]{color:var(--muted);flex-wrap:wrap;gap:9px;margin-bottom:18px;display:flex}[data-stage-tags]{flex-wrap:wrap;align-items:center;gap:7px;margin:0 0 18px;display:flex;position:relative}[data-stage-actions]{border:1px solid var(--border-10);border-radius:var(--control-radius);background:var(--overlay-5);flex:none;align-items:center;gap:0;width:max-content;margin:0 0 12px;padding:0;display:flex;overflow:hidden}[data-stage-actions] button{border:0;border-right:1px solid var(--border-10);cursor:pointer;width:44px;height:42px;color:var(--muted);background:0 0;border-radius:0;place-items:center;padding:0;transition:transform .14s,color .14s,background .14s;display:grid}[data-stage-actions] button svg{stroke:currentColor;fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:21px;height:21px}[data-stage-actions] button:last-child{border-right:0}[data-stage-actions] button:hover{background:var(--hover);transform:none}[data-stage-actions] [data-stage-action=dislike]:hover,[data-stage-actions] [data-stage-action=dislike][aria-pressed=true]{color:var(--drop);background:var(--drop)}@supports (color:color-mix(in lab, red, red)){[data-stage-actions] [data-stage-action=dislike]:hover,[data-stage-actions] [data-stage-action=dislike][aria-pressed=true]{background:color-mix(in srgb,var(--drop) 12%,transparent)}}[data-stage-actions] [data-stage-action=seen]:hover,[data-stage-actions] [data-stage-action=seen][aria-pressed=true]{color:var(--keep);background:var(--keep)}@supports (color:color-mix(in lab, red, red)){[data-stage-actions] [data-stage-action=seen]:hover,[data-stage-actions] [data-stage-action=seen][aria-pressed=true]{background:color-mix(in srgb,var(--keep) 12%,transparent)}}[data-stage-actions] [data-stage-action=later]:hover,[data-stage-actions] [data-stage-action=later][aria-pressed=true]{color:var(--loupe);background:var(--loupe)}@supports (color:color-mix(in lab, red, red)){[data-stage-actions] [data-stage-action=later]:hover,[data-stage-actions] [data-stage-action=later][aria-pressed=true]{background:color-mix(in srgb,var(--loupe) 12%,transparent)}}[data-stage-grid][data-with-queue]>[data-mix-queue] [class~=mavstack] [class~=mav]:nth-child(n+3){display:none}[data-mix-group-label]{color:var(--ink);font-size:var(--fs-xs);align-items:center;gap:8px;margin:12px 10px 6px;font-weight:600;display:flex}[data-mix-group-label]:first-child{margin-top:4px}[data-mix-group-label] span{color:var(--muted);font-variant-numeric:tabular-nums;font-weight:400}@media (width<=1080px){[data-stage-grid],[data-stage-grid][data-with-queue]{grid-template-columns:minmax(0,1fr)}[data-stage-grid][data-with-queue]{grid-template-areas:"media""side""queue"}[data-stage-side],[data-stage-grid][data-with-queue]>[data-stage-side]{border-left:0;border-top:1px solid var(--line-soft);grid-column:auto}[data-stage-side-content]{height:auto;max-height:none}[data-mix-queue],[data-stage-grid][data-with-queue]>[data-mix-queue]{border-left:0;border-top:1px solid var(--line-soft);max-height:420px}}@media (width<=760px){[data-stage-actions]{width:100%}[data-stage-actions] button{flex:1 1 0;min-width:38px}}[data-miniplayer]{z-index:var(--layer-miniplayer);touch-action:none;will-change:opacity,transform;-webkit-user-select:none;user-select:none;width:min(400px,100vw - 32px);max-height:calc(100dvh - 32px);position:fixed}[data-miniplayer][hidden]{display:none}[data-miniplayer][data-corner=br]{bottom:16px;right:16px}[data-miniplayer][data-corner=bl]{bottom:16px;left:16px}[data-miniplayer][data-corner=tr]{right:16px;top:calc(var(--topH) + 16px)}[data-miniplayer][data-corner=tl]{left:16px;top:calc(var(--topH) + 16px)}[data-miniplayer][data-miniplayer-drag],[data-miniplayer][data-miniplayer-drag] [data-miniplayer-card]{cursor:grabbing}[data-miniplayer][data-miniplayer-snap]{transition:transform .5s cubic-bezier(.05,0,0,1)}@media (prefers-reduced-motion:no-preference){[data-miniplayer][data-miniplayer-enter]{animation:.366s cubic-bezier(.05,0,0,1) both miniplayer-fade-in}}@keyframes miniplayer-fade-in{0%{opacity:0}to{opacity:1}}[data-miniplayer-card]{border-radius:var(--floating-radius);background:var(--surface);box-shadow:0 2px 5px var(--miniplayer-shadow-near),0 3px 6px var(--miniplayer-shadow-far);cursor:grab;flex-direction:column;display:flex;overflow:hidden}[data-miniplayer-frame]{width:100%;aspect-ratio:var(--miniplayer-aspect,16/9);background:#000;max-height:calc(100dvh - 108px);position:relative;overflow:hidden}[data-miniplayer-frame] .video-js{background:#000;font-family:inherit;position:absolute;inset:0;width:100%!important;height:100%!important;padding-top:0!important}[data-miniplayer-frame] .video-js .vjs-tech{object-fit:contain}[data-miniplayer-frame] .video-js :is(.vjs-big-play-button,.vjs-peach-bezel,.vjs-peach-settings-menu,.vjs-peach-tooltip,.vjs-loading-spinner,[data-player-seek-preview],.vjs-text-track-display){display:none!important}[data-miniplayer-frame] .video-js .vjs-control-bar{z-index:2;background:0 0;width:auto;height:5px;padding:0;transition:none;display:flex;position:absolute;inset:auto 0 0;opacity:1!important;visibility:visible!important;pointer-events:auto!important}[data-miniplayer-frame] .video-js .vjs-control-bar>:not(.vjs-progress-control){display:none!important}[data-miniplayer-frame] .video-js .vjs-progress-control{align-items:center;width:auto;min-width:0;height:5px;display:flex;position:absolute;inset:0}[data-miniplayer-frame] .video-js .vjs-progress-control .vjs-progress-holder{background:#fff3;border-radius:0;width:100%;height:5px;margin:0}[data-miniplayer-frame] .video-js .vjs-load-progress{background:#fff6}[data-miniplayer-frame] .video-js .vjs-load-progress div{background:#fff3}[data-miniplayer-frame] .video-js .vjs-play-progress{background:var(--tungsten)}[data-miniplayer-frame] .video-js .vjs-play-progress:before{content:"";background:var(--tungsten);width:12px;height:12px;box-shadow:none;border-radius:50%;font-size:0;position:absolute;top:50%;right:-6px;transform:translateY(-50%)}[data-miniplayer-frame] .video-js .vjs-time-tooltip{font-size:var(--fs-xs);font-family:inherit}[data-miniplayer-scrim]{z-index:1;opacity:0;color:#fff;background:#00000080;justify-content:center;align-items:center;gap:6px;transition:opacity .2s cubic-bezier(.4,0,.2,1) .1s;display:flex;position:absolute;inset:0}[data-miniplayer-frame]:hover [data-miniplayer-scrim],[data-miniplayer-frame]:focus-within [data-miniplayer-scrim],[data-miniplayer][data-miniplayer-drag] [data-miniplayer-scrim]{opacity:1}[data-miniplayer-button],[data-miniplayer-play],[data-miniplayer-seek]{isolation:isolate;color:#fff;cursor:pointer;background:0 0;border:0;place-items:center;margin:0;padding:0;display:grid;position:relative}[data-miniplayer-button]{width:40px;height:40px;position:absolute;top:0}[data-miniplayer-button] svg{z-index:1;stroke:currentColor;fill:none;stroke-width:2px;filter:drop-shadow(0 0 1px #000c);width:24px;height:24px;position:relative}[data-miniplayer-button=expand]{left:0}[data-miniplayer-button=close]{right:0}[data-miniplayer-play]{width:42px;height:42px}[data-miniplayer-play] svg{z-index:1;fill:currentColor;stroke:none;filter:drop-shadow(0 0 1px #000c);width:36px;height:36px;position:relative}[data-miniplayer-seek]{width:36px;height:36px}[data-miniplayer-seek] svg{z-index:1;stroke:currentColor;fill:none;stroke-width:2px;filter:drop-shadow(0 0 1px #000c);width:22px;height:22px;position:relative}[data-miniplayer-button]:after,[data-miniplayer-play]:after,[data-miniplayer-seek]:after{content:"";z-index:0;pointer-events:none;background:0 0;border-radius:50%;transition:background .2s cubic-bezier(.05,0,0,1);position:absolute;inset:4px}[data-miniplayer-button]:hover:after,[data-miniplayer-button]:focus-visible:after,[data-miniplayer-play]:hover:after,[data-miniplayer-play]:focus-visible:after,[data-miniplayer-seek]:hover:after,[data-miniplayer-seek]:focus-visible:after{background:#ffffff1a}[data-miniplayer-button]:active:after,[data-miniplayer-play]:active:after,[data-miniplayer-seek]:active:after{background:#fff3}[data-miniplayer-button]:focus-visible,[data-miniplayer-play]:focus-visible,[data-miniplayer-seek]:focus-visible{outline:0}[data-miniplayer-time]{font-size:var(--fs-xs);text-shadow:0 0 2px #000;pointer-events:none;line-height:15px;position:absolute;bottom:16px;left:12px}[data-miniplayer-info]{box-sizing:border-box;width:100%;min-height:76px;color:var(--ink);text-align:left;font:inherit;cursor:grab;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:flex-start;margin:0;padding:12px 16px;display:flex}[data-miniplayer-info]:focus-visible{outline:2px solid var(--tungsten);outline-offset:-2px}[data-miniplayer-title]{white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:var(--fs-md);font-weight:500;line-height:20px;display:block;overflow:hidden}[data-miniplayer-sub]{white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:var(--fs-xs);color:var(--muted);margin-top:4px;line-height:18px;display:block;overflow:hidden}[data-miniplayer-sub]:empty{display:none}[data-stage-reveal]>[data-stage-fade]{z-index:2;pointer-events:none;opacity:1;filter:blur();transition:opacity var(--motion-reveal),filter var(--motion-reveal);position:absolute;inset:0;overflow:hidden}[data-stage-reveal][data-stage-revealing]>[data-stage-fade]{opacity:0;filter:blur(2px)}[data-stage-reveal]>:not([data-stage-fade]){animation:skel-reveal-in var(--motion-reveal) backwards}[data-stage]{border:1px solid var(--line);border-radius:var(--surface-radius);background:var(--ground);box-shadow:0 2px 8px var(--stage-shadow);--detail-surface:var(--ground);overflow:clip}[data-stage]:not([data-ambient]){background:var(--ground)}[data-stage] [data-stage-side]{background:var(--ground);-webkit-backdrop-filter:none;backdrop-filter:none;border-color:var(--line-soft)}[data-stage-side-content]{gap:4px;padding:20px}[data-stage-title]{font-weight:500;line-height:1.5}@media (width<=760px){[data-stage-side-content]{padding:16px}[data-stage]{border-radius:12px}[data-stage] [data-stage-side]{border-left:0;border-top:1px solid var(--line-soft)}}@media (width<=1080px){[data-stage]>[data-stage-scroll]{overscroll-behavior:contain;max-height:calc(100dvh - 34px);overflow:hidden auto}[data-stage] [data-stage-media]:has(>.video-js){z-index:3;position:sticky;top:0}}@media (width<=760px){[data-stage]{inset:calc(env(safe-area-inset-top) + 8px) 8px auto;width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - env(safe-area-inset-top) - 16px);margin:0 auto}[data-stage]>[data-stage-scroll]{max-height:calc(100dvh - env(safe-area-inset-top) - 18px)}[data-stage-media]>.video-js{aspect-ratio:var(--peach-video-ratio,16/9);max-height:56dvh}}[data-stage-close]{background:var(--surface);color:var(--ink);border-radius:50%;place-items:center;padding:0;line-height:1;display:grid}[data-stage-close] svg{place-self:center;margin:0;display:block}[data-stage]{animation:board-dialog-in var(--board-dialog-motion) backwards}[data-stage]::backdrop{animation:.35s cubic-bezier(.4,0,.2,1) both settings-backdrop-in}[data-stage][data-closing]{animation:board-dialog-out var(--board-dialog-motion) both;pointer-events:none}[data-stage][data-closing]::backdrop{animation:.35s cubic-bezier(.4,0,.2,1) both settings-backdrop-out}[data-stage] [data-stage-media]{border-radius:var(--surface-radius);overflow:hidden}[data-stage-side-content] [data-stage-actions]{background:0 0;border:0;flex-wrap:wrap;gap:4px;width:100%;margin:0 0 16px;padding:0;display:flex;overflow:visible}[data-stage-side-content] [data-stage-actions] button{background:var(--surface);border:0;border-radius:8px;flex:0 0 36px;place-items:center;width:36px;min-width:36px;height:36px;padding:0;display:grid}[data-stage-side-content] [data-stage-actions] button svg{width:18px;height:18px;margin:0;display:block}[data-stage-side-content] [data-stage-actions] button[aria-pressed=true]{box-shadow:inset 0 0 0 1px}[data-stage] [data-stage-media]{border-radius:var(--surface-radius) 0 0 0}[data-stage][data-theater] [data-stage-media]{border-radius:var(--surface-radius) var(--surface-radius) 0 0}@media (width<=1080px){[data-stage] [data-stage-media]{border-radius:var(--surface-radius) var(--surface-radius) 0 0}}[data-stage-close],[data-stage-close]:hover{color:#fff;background:#0009}[data-stage-close]:hover:after,[data-stage-close]:focus-visible:after{background:#fff3}[data-stage-close]:active:after{background:#ffffff4d}@keyframes peach-dot-wave{0%,80%,to{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}@keyframes peach-skeleton-sweep{to{transform:translate(-50%)}}:root{--font-inter:"Inter Variable", "Inter";--elevation-2xs:0 1px #0000000d;--elevation-xs:0 1px 2px 0 #0000000d;--elevation-sm:0 1px 2px 0 #0000000f, 0 1px 3px 0 #0000001a;--elevation-md:0 2px 4px -1px #0000000f, 0 4px 6px -1px #0000001a;--elevation-lg:0 4px 6px -2px #0000000d, 0 10px 15px -3px #0000001a;--elevation-xl:0 10px 10px -5px #0000000a, 0 20px 25px -5px #0000001a;--elevation-card:0 1px 1px 0 #0000000d;--elevation-dropdown:0 1px 1px 0 #0000000a, 0 4px 4px 0 #00000005;--elevation-sidebar:0 1px 0 0 #00000005, 0 1px 12px 0 #0000000f, 0 0 1px 0 #00000052;--elevation-waitlist:0 0 6px 0 #0000000f, 0 0 64px 0 #00000029, 0 0 1px 0 #00000052, 0 1px 12px 0 #0000000f, 0 1px 0 0 #00000005}.dark{--elevation-2xs:0 1px #00000029;--elevation-xs:0 1px 2px 0 #0000002e;--elevation-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--elevation-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--elevation-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--elevation-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--elevation-card:0 1px 1px 0 #00000024;--elevation-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--elevation-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--elevation-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014}.peach-react{font-family:var(--font-sans);color:var(--color-text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-variant-ligatures:contextual;font-kerning:normal;--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-tertiary-default:var(--color-neutral-200);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-focus-ring:var(--color-accent-500);--color-separator-border:var(--color-neutral-200);line-height:1.5}.dark .peach-react{--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark .peach-react{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark .peach-react{--color-background-secondary-default:var(--color-neutral-900);--color-background-tertiary-default:var(--color-neutral-800);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-checkbox-default:var(--color-neutral-600);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-700)}:where(.peach-react){--card-footer:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-footer:color-mix(in srgb, var(--color-background-secondary-default) 98%, var(--color-text-primary))}}:where(.peach-react){--card-hover:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-hover:color-mix(in srgb, var(--color-background-secondary-default) 95%, var(--color-text-primary))}}.peach-react button[aria-haspopup=listbox]{height:calc(var(--spacing) * 9);padding-block:0}.peach-react button[aria-haspopup=listbox][class~=text-body-2-medium]{height:calc(var(--spacing) * 8)}.peach-react [class~=overflow-x-auto]{scrollbar-width:none}.peach-react [class~=overflow-x-auto]::-webkit-scrollbar{display:none}.peach-react :is([data-review-filter],[data-filter-glass]){top:calc(var(--topH) + 8px);-webkit-backdrop-filter:var(--glass-optic,blur(22px)) saturate(160%) var(--glass-lume);isolation:isolate;color:var(--glass-text);border-radius:22px;overflow:visible}.peach-react [data-filter-glass][data-stuck]{box-shadow:inset 0 1px 0 var(--glass-rim), inset 1px 0 0 var(--glass-low), inset -1px 0 0 var(--glass-low), inset 0 -1px 0 var(--glass-low), var(--glass-lift)}.peach-react [data-filter-glass][data-stuck]:before{content:"";z-index:-1;background:var(--page);pointer-events:none;height:9px;position:absolute;top:-9px;left:-16px;right:-16px;-webkit-mask-image:linear-gradient(90deg,#0000,#000 24px calc(100% - 24px),#0000);mask-image:linear-gradient(90deg,#0000,#000 24px calc(100% - 24px),#0000)}.peach-react [data-selection-dock]{z-index:180;bottom:max(22px, env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 24px);-webkit-backdrop-filter:var(--glass-optic,blur(22px)) saturate(145%);border-radius:22px;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px;padding:9px 11px;display:flex;position:fixed;left:50%;transform:translate(-50%)}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.peach-react :is([data-review-filter],[data-filter-glass],[data-selection-dock]){background:var(--ground);-webkit-backdrop-filter:none;animation:none}}@media (prefers-reduced-motion:reduce){.peach-react :is([data-review-filter],[data-filter-glass],[data-selection-dock]){animation:none}}.peach-react:has([data-selection-dock]){padding-bottom:96px}.peach-react [data-tab-indicator]{width:var(--tab-width,0px);transform:translateX(var(--tab-x,0px))}.peach-react [data-tab-indicator][data-ready]{transition:transform calc(var(--spring-pane-ms,200) * 1ms) var(--spring-pane,ease), width calc(var(--spring-pane-ms,200) * 1ms) ease}@media (prefers-reduced-motion:reduce){.peach-react [data-tab-indicator][data-ready]{transition:none}}.peach-react [data-glass-segment][data-selected]{background:linear-gradient(180deg, var(--glass-sheen), transparent 62%), var(--glass-pick-fill);box-shadow:inset 0 0 0 1px var(--glass-rim), var(--glass-pick-shadow)}@media not all and (width>=761px){.peach-react :is([data-index-search],[data-playlist-create]) input{font-size:16px}}.peach-react [data-mix-stack]:before,.peach-react [data-mix-stack]:after{content:"";z-index:0;border-radius:inherit;border:1px solid var(--border-15);background:var(--surface);position:absolute}@supports (color:color-mix(in lab, red, red)){.peach-react [data-mix-stack]:before,.peach-react [data-mix-stack]:after{background:color-mix(in srgb, var(--surface) 84%, var(--video-glow,#15202a))}}.peach-react [data-mix-stack]:before{opacity:.54;inset:0 12px 8px;transform:translateY(-7px)}.peach-react [data-mix-stack]:after{opacity:.78;inset:0 6px 4px;transform:translateY(-4px)}.peach-react [data-mix-cover],.peach-react [data-mix-poster]{background:#000}.peach-react [data-mix-faces]{z-index:2;pointer-events:none;background:#000;position:absolute;inset:0}.peach-react [data-mix-face]{opacity:0;transform-origin:50% 88%;transition:transform .46s cubic-bezier(.34,.02,.24,1),opacity .4s;position:absolute;inset:0;transform:scale(.985)}.peach-react [data-mix-face=on]{opacity:1;z-index:2;transition:none;transform:none}.peach-react [data-mix-face=off]{opacity:0;z-index:3;transform:translateY(-11%)rotate(-3.4deg)scale(.94)}.peach-react [data-mix-face] img{object-fit:contain;background:#000;width:100%;height:100%;display:block}.peach-react [data-mix-badge]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#0c0808b8}.peach-react [data-mix-avatars]{--lift-motion:calc(var(--spring-press-ms) * 1ms) var(--spring-press);flex:none;max-width:calc(100% - 48px);margin:-4px -2px -2px;padding:6px 2px 2px 5px;display:flex}.peach-react [data-mix-avatars]:has(:is(:hover,:focus-visible)){--lift-motion:var(--board-motion)}.peach-react [data-mix-avatars]>*{box-shadow:0 0 0 2px var(--ground);transform:translate(var(--lift-x,0), var(--lift-y,0)) scale(var(--lift-scale,1));transition:transform var(--lift-motion,var(--board-motion))}.peach-react [data-mix-avatars]>*+*{margin-left:-22px}.peach-react [data-mix-avatars]>:first-child{z-index:5}.peach-react [data-mix-avatars]>:nth-child(2){z-index:4}.peach-react [data-mix-avatars]>:nth-child(3){z-index:3}.peach-react [data-mix-avatars]>:nth-child(4){z-index:2}.peach-react [data-mix-avatars]>:nth-child(5){z-index:1}.peach-react [data-mix-avatars]>:is(:hover,:focus-visible){z-index:6;box-shadow:0 0 0 2px var(--ink-2);--lift-y:-4px;--lift-scale:1.05}.peach-react [data-mix-avatars]>:is(:hover,:focus-visible)+*{--lift-y:-1.8px;--lift-x:10px}.peach-react [data-mix-avatars]>:is(:hover,:focus-visible)+*+*{--lift-y:-.81px;--lift-x:20px}.peach-react [data-mix-avatars]>:is(:hover,:focus-visible)+*+*+*{--lift-x:30px}.peach-react [data-mix-avatars]>:is(:hover,:focus-visible)+*+*+*+*{--lift-x:40px}.peach-react [data-tag-cat]{--tag-color:#7a91a8}.peach-react [data-tag-cat=general],.peach-react [data-tag-cat=r34-general]{--tag-color:#55a7ff}.peach-react [data-tag-cat=artist]{--tag-color:#f1a454}.peach-react [data-tag-cat=meta]{--tag-color:#7f909e}.peach-react [data-tag-cat=relationship]{--tag-color:#f1a454}.peach-react [data-tag-cat=role]{--tag-color:#ed78af}.peach-react [data-tag-cat=appearance]{--tag-color:#a989f5}.peach-react [data-tag-cat=scene]{--tag-color:#53b8a4}.peach-react [data-tag-cat=story]{--tag-color:#e19a5b}.peach-react [data-tag-cat=position]{--tag-color:#d66e8d}.peach-react [data-tag-cat=r34-artist]{--tag-color:#e36c6c}.peach-react [data-tag-cat=r34-character]{--tag-color:#68c76f}.peach-react [data-tag-cat=r34-copyright]{--tag-color:#d675d6}.peach-react [data-tag-cat=r34-metadata]{--tag-color:#f5a24a}.peach-react [data-tag-cat=r34-unknown]{--tag-color:var(--muted)}.peach-react [data-tag-pill][data-tag-cat=all]{--tag-color:initial}.peach-react [data-tag-dot]{background:var(--tag-color,var(--muted))}.peach-react [data-tag-pill][data-tag-cat=all] [data-tag-dot]{background:linear-gradient(135deg,#55a7ff,#d783ff)}.peach-react [data-tag-chip]{border-color:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-tag-chip]{border-color:color-mix(in srgb, var(--tag-color) 32%, transparent)}}.peach-react [data-tag-chip]{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-tag-chip]{background:color-mix(in srgb, var(--tag-color) 7%, transparent)}}.peach-react [data-tag-chip]:hover{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-tag-chip]:hover{background:color-mix(in srgb, var(--tag-color) 13%, transparent)}}.peach-react [data-tag-chip][aria-pressed=true],.peach-react [data-alpha-tag][aria-pressed=true]{background:var(--picked);color:var(--color-text-primary)}.peach-react [data-tag-pill][aria-pressed=true]{border-color:var(--tag-color,var(--ink))}@supports (color:color-mix(in lab, red, red)){.peach-react [data-tag-pill][aria-pressed=true]{border-color:color-mix(in srgb, var(--tag-color,var(--ink)) 45%, transparent)}}.peach-react [data-tag-pill][aria-pressed=true]{background:var(--tag-color,var(--ink));border-style:solid}@supports (color:color-mix(in lab, red, red)){.peach-react [data-tag-pill][aria-pressed=true]{background:color-mix(in srgb, var(--tag-color,var(--ink)) 12%, transparent)}}.peach-react [data-tag-pill][aria-pressed=true]{color:var(--ink)}.peach-react [data-alpha-tag]:not([aria-pressed=true]):hover{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-alpha-tag]:not([aria-pressed=true]):hover{background:color-mix(in srgb, var(--ink) 6%, transparent)}}.peach-react [data-alpha-group]{scroll-margin-top:calc(var(--topH) + 124px)}.peach-react [data-source-divider]>*+*{border-top:1px solid var(--color-border-button-default)}.peach-react [data-follow-author-header][data-open]{border-bottom:1px solid var(--color-border-button-default)}.peach-react [data-input-size]>div[data-rac]:not([data-hovered]):not([data-focus-within]){outline:1px solid var(--color-border-button-default);outline-offset:-1px}.peach-react [data-board-data-table]{border:1px solid var(--color-border-button-default);border-radius:var(--radius-surface);background:var(--color-background-primary-default);position:relative;overflow:hidden}.peach-react [data-board-data-table] .bui-table th{border-top:0}.peach-react [data-board-data-table] .bui-table th,.peach-react [data-board-data-table] .bui-table tbody tr:not(:last-child){border-color:var(--color-border-button-default)}.peach-react [data-board-data-table] .bui-table tbody tr:hover,.peach-react [data-source-divider]>:hover{background-color:var(--color-background-primary-hover)}.peach-react [data-board-data-table] .bui-table tbody tr[data-follow-selected],.peach-react [data-board-data-table] .bui-table tbody tr[data-board-selected],.peach-react [data-source-divider]>[data-selected]{background-color:var(--color-background-secondary-default)}.peach-react [data-follow-table] [data-sort-indicator]{color:var(--color-text-tertiary);flex:none;transition:transform .15s,color .15s;display:inline-flex}.peach-react [data-follow-table] [data-sort-indicator][data-direction]{color:var(--color-text-secondary)}.peach-react [data-follow-table] [data-sort-indicator][data-direction=ascending]{transform:rotate(180deg)}.peach-react [data-follow-table] [data-sort-indicator] svg{width:24px;height:24px}.peach-react [data-expandable-ranking]{position:relative}.peach-react [data-expandable-ranking][data-expandable]{padding-bottom:28px}.peach-react [data-expandable-ranking-list]{max-height:var(--ranking-collapsed-height,none);overflow:hidden}.peach-react [data-expandable-ranking][data-expanded] [data-expandable-ranking-list]{max-height:var(--ranking-expanded-height,none)}.peach-react [data-expandable-ranking][data-animating] [data-expandable-ranking-list]{transition:max-height .2s var(--ease-in-out)}.peach-react [data-expandable-ranking][data-expandable]:not([data-expanded]) [data-expandable-ranking-list]{-webkit-mask-image:linear-gradient(#000 calc(100% - 44px),#0000);mask-image:linear-gradient(#000 calc(100% - 44px),#0000)}.peach-react [data-ranking-toggle]{z-index:1;border:1px solid var(--color-border-button-default);background:var(--color-background-primary-default);width:40px;height:20px;box-shadow:var(--shadow-sm);color:var(--color-text-secondary);cursor:pointer;border-radius:999px;place-items:center;padding:0;display:grid;position:absolute;bottom:4px;left:50%;transform:translate(-50%)}.peach-react [data-ranking-toggle]:hover{background:var(--color-background-primary-hover);color:var(--color-text-primary)}.peach-react [data-ranking-toggle]:focus-visible{outline:2px solid var(--color-border-focus-ring);outline-offset:2px}.peach-react [data-ranking-toggle] svg{width:14px;height:14px;transition:transform .2s var(--ease-in-out)}.peach-react [data-ranking-toggle][aria-expanded=true] svg{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.peach-react [data-expandable-ranking][data-animating] [data-expandable-ranking-list],.peach-react [data-ranking-toggle] svg{transition:none}}.peach-react label[data-rac] input[type=checkbox]{appearance:none;outline:none;width:1px;height:1px}@keyframes checkbox-mark-enter{0%{opacity:0;transform:scale(.72)}to{opacity:1;transform:scale(1)}}.animate-check-draw{transform-box:fill-box;transform-origin:50%;animation:checkbox-mark-enter .15s var(--ease-out) both}@media (prefers-reduced-motion:reduce){.animate-check-draw{opacity:1;animation:none;transform:none}}.bui-table{border-collapse:collapse;text-align:left;width:100%}.bui-table th{padding-inline:calc(var(--spacing) * 3);padding-block:calc(var(--spacing) * 2.5);text-align:left;vertical-align:middle;font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight));white-space:nowrap;color:var(--color-text-tertiary);--tw-outline-style:none;background-color:var(--color-background-secondary-default);border-top:1px solid var(--color-separator-border);border-bottom:1px solid var(--color-separator-border);outline-style:none;transition:padding .2s,font-size .2s}.bui-table td{padding-inline:calc(var(--spacing) * 3);padding-block:calc(var(--spacing) * 2.5);vertical-align:middle;font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight));color:var(--color-text-primary);--tw-outline-style:none;outline-style:none;transition:padding .2s,font-size .2s}.bui-table tbody tr:not(:last-child){border-bottom:1px solid var(--color-separator-border)}.bui-table tbody tr{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));--tw-duration:.15s;transition-duration:.15s}.bui-table tbody tr[data-focus-visible]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);--tw-ring-color:var(--color-border-focus-ring);--tw-ring-inset:inset}.bui-table.bui-table-sm th,.bui-table.bui-table-sm td{padding-inline:calc(var(--spacing) * 2.5);padding-block:calc(var(--spacing) * 1.5);font-size:var(--text-body-2-medium);line-height:var(--tw-leading,var(--text-body-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-medium--font-weight))}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}
+@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:var(--font-inter), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:var(--font-mono-source), ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-950:oklch(28.6% .066 53.813);--color-lime-100:oklch(96.7% .067 122.328);--color-lime-200:oklch(93.8% .127 124.321);--color-lime-300:oklch(89.7% .196 126.665);--color-lime-400:oklch(84.1% .238 128.85);--color-lime-500:oklch(76.8% .233 130.85);--color-lime-600:oklch(64.8% .2 131.684);--color-lime-700:oklch(53.2% .157 131.589);--color-lime-800:oklch(45.3% .124 130.933);--color-lime-950:oklch(27.4% .072 132.109);--color-green-100:oklch(96.2% .044 156.743);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-cyan-200:oklch(91.7% .08 205.041);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-800:oklch(45% .085 224.283);--color-cyan-950:oklch(30.2% .056 229.695);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:#3392ff;--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-800:oklch(39.8% .195 277.366);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-purple-950:oklch(29.1% .149 302.717);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-300:oklch(82.3% .12 346.018);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-500:oklch(65.6% .241 354.308);--color-pink-700:oklch(52.5% .223 3.958);--color-pink-950:oklch(28.4% .109 3.907);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-950:oklch(27.1% .105 12.094);--color-zinc-800:oklch(27.4% .006 286.033);--color-neutral-50:oklch(98.5% 0 none);--color-neutral-100:#f7f7f7;--color-neutral-200:#ebebeb;--color-neutral-300:oklch(87% 0 none);--color-neutral-400:oklch(70.8% 0 none);--color-neutral-500:oklch(55.6% 0 none);--color-neutral-600:oklch(43.9% 0 none);--color-neutral-700:oklch(37.1% 0 none);--color-neutral-800:oklch(26.9% 0 none);--color-neutral-900:oklch(20.5% 0 none);--color-neutral-950:oklch(14.5% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-tight:1.25;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--shadow-sm:var(--elevation-sm);--drop-shadow-sm:0 1px 2px #00000026;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--blur-sm:8px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-neutral-925:#121212;--color-accent-50:var(--color-blue-50);--color-accent-100:var(--color-blue-100);--color-accent-200:var(--color-blue-200);--color-accent-300:var(--color-blue-300);--color-accent-400:var(--color-blue-400);--color-accent-500:var(--color-blue-500);--color-accent-600:var(--color-blue-600);--color-accent-700:var(--color-blue-700);--color-accent-800:var(--color-blue-800);--color-accent-900:var(--color-blue-900);--color-accent-950:var(--color-blue-950);--radius-2lg:10px;--radius-2-5xl:20px;--shadow-checkbox-selected:inset 0 2px 0 0 #ffffff40, inset 0 0 0 1px var(--color-accent-500);--shadow-card:var(--elevation-card);--color-foreground-full:var(--color-foreground-full);--color-foreground-icon-primary:var(--color-foreground-icon-primary);--color-foreground-icon-hover:var(--color-foreground-icon-hover);--color-foreground-icon-secondary:var(--color-foreground-icon-secondary);--color-foreground-icon-tertiary:var(--color-foreground-icon-tertiary);--color-foreground-icon-quaternary:var(--color-foreground-icon-quaternary);--color-foreground-icon-error:var(--color-foreground-icon-error);--color-foreground-icon-disabled:var(--color-foreground-icon-disabled);--color-foreground-disabled:var(--color-foreground-disabled);--color-foreground-disabled-danger:var(--color-foreground-disabled-danger);--color-input-disabled-foreground:var(--color-input-disabled-foreground);--color-icon-button-disabled-foreground:var(--color-icon-button-disabled-foreground);--color-button-primary-disabled-foreground:var(--color-button-primary-disabled-foreground);--color-text-primary:var(--color-text-primary);--color-text-secondary:var(--color-text-secondary);--color-text-tertiary:var(--color-text-tertiary);--color-text-disabled:var(--color-text-disabled);--color-text-disabled-danger:var(--color-text-disabled-danger);--color-text-placeholder:var(--color-text-placeholder);--color-text-error-primary:var(--color-text-error-primary);--color-input-disabled-text:var(--color-input-disabled-text);--color-text-white:var(--color-text-white);--color-background-full:var(--color-background-full);--color-background-primary-default:var(--color-background-primary-default);--color-background-inner-default:var(--color-background-inner-default);--color-background-primary-hover:var(--color-background-primary-hover);--color-background-primary-active:var(--color-background-primary-active);--color-background-primary-disabled:var(--color-background-primary-disabled);--color-input-disabled-background:var(--color-input-disabled-background);--color-background-secondary-default:var(--color-background-secondary-default);--color-background-secondary-hover:var(--color-background-secondary-hover);--color-background-tertiary-default:var(--color-background-tertiary-default);--color-background-tertiary-hover:var(--color-background-tertiary-hover);--color-background-tertiary-error:var(--color-background-tertiary-error);--color-background-recent-hire-role:var(--color-background-recent-hire-role);--color-avatar-neutral-background:var(--color-avatar-neutral-background);--color-background-quaternary-default:var(--color-background-quaternary-default);--color-background-quaternary-hover:var(--color-background-quaternary-hover);--color-background-quaternary-error:var(--color-background-quaternary-error);--color-file-upload-icon-background:var(--color-file-upload-icon-background);--color-file-upload-icon-foreground:var(--color-file-upload-icon-foreground);--color-file-upload-icon-foreground-hover:var(--color-file-upload-icon-foreground-hover);--color-border-button-default:var(--color-border-button-default);--color-border-button-hover:var(--color-border-button-hover);--color-border-button-active:var(--color-border-button-active);--color-border-button-white:var(--color-border-button-white);--color-border-error-default:var(--color-border-error-default);--color-border-checkbox-default:var(--color-border-checkbox-default);--color-border-checkbox-hover:var(--color-border-checkbox-hover);--color-border-checkbox-active:var(--color-border-checkbox-active);--color-border-checkbox-white:var(--color-border-checkbox-white);--color-border-component-detail-container:var(--color-border-component-detail-container);--color-border-ai-profile-card:var(--color-border-ai-profile-card);--color-border-table:var(--color-border-table);--color-border-button-group:var(--color-border-button-group);--color-border-sidebar-profile-hover:var(--color-border-sidebar-profile-hover);--color-separator-border:var(--color-separator-border);--color-separator-border-strong:var(--color-separator-border-strong);--color-border-focus-ring:var(--color-border-focus-ring);--color-state-success-text:var(--color-state-success-text);--color-state-success-base:var(--color-state-success-base);--color-control-indicator-background:var(--color-control-indicator-background);--color-control-indicator-background-subtle:var(--color-control-indicator-background-subtle);--color-switch-off-chip-start:var(--color-switch-off-chip-start);--color-switch-off-chip-end:var(--color-switch-off-chip-end);--color-switch-on-chip-start:var(--color-switch-on-chip-start);--color-switch-on-chip-end:var(--color-switch-on-chip-end);--color-stat-card-icon-background:var(--color-stat-card-icon-background);--color-segmented-control-background:var(--color-segmented-control-background);--color-segmented-control-selected-background:var(--color-segmented-control-selected-background);--color-theme-toggle-sidebar-background:var(--color-theme-toggle-sidebar-background);--color-theme-toggle-sidebar-selected-background:var(--color-theme-toggle-sidebar-selected-background);--color-ai-chat-composer-add-background:var(--color-ai-chat-composer-add-background);--color-ai-chat-composer-add-hover-background:var(--color-ai-chat-composer-add-hover-background);--color-composer-panel-tab-background:var(--color-composer-panel-tab-background);--color-composer-panel-add-background:var(--color-composer-panel-add-background);--color-composer-panel-add-hover-background:var(--color-composer-panel-add-hover-background);--color-composer-panel-tile-border:var(--color-composer-panel-tile-border);--color-composer-panel-rail-background:var(--color-composer-panel-rail-background);--color-questionnaire-key-background:var(--color-questionnaire-key-background);--color-questionnaire-key-hover-background:var(--color-questionnaire-key-hover-background);--color-agent-progress-ring:var(--color-agent-progress-ring);--color-button-ghost-background:var(--color-button-ghost-background);--color-button-ghost-hover:var(--color-button-ghost-hover);--color-button-ghost-active:var(--color-button-ghost-active);--color-button-ghost-disabled:var(--color-button-ghost-disabled);--color-button-ghost-foreground:var(--color-button-ghost-foreground);--color-button-ghost-disabled-foreground:var(--color-button-ghost-disabled-foreground);--color-dropdown-item-hover-background:var(--color-dropdown-item-hover-background);--color-kbd-background:var(--color-kbd-background);--color-kbd-foreground:var(--color-kbd-foreground);--color-docs-file-chip-background:var(--color-docs-file-chip-background);--color-docs-file-chip-border:var(--color-docs-file-chip-border);--color-docs-file-chip-foreground:var(--color-docs-file-chip-foreground);--color-docs-command-accent:var(--color-docs-command-accent);--color-docs-code-background:var(--color-docs-code-background);--color-docs-install-rail:var(--color-docs-install-rail);--color-badge-neutral-background:var(--color-badge-neutral-background);--color-team-menu-count-background:var(--color-team-menu-count-background);--color-team-menu-count-foreground:var(--color-team-menu-count-foreground);--color-badge-new-background:var(--color-badge-new-background);--color-badge-new-text:var(--color-badge-new-text);--color-tab-count-selected-background:var(--color-tab-count-selected-background);--color-pill-tab-blue-selected-background:var(--color-pill-tab-blue-selected-background);--color-pill-tab-blue-hover-background:var(--color-pill-tab-blue-hover-background);--color-notification-information-background:var(--color-notification-information-background);--color-notification-information-foreground:var(--color-notification-information-foreground);--color-notification-success-background:var(--color-notification-success-background);--color-notification-success-foreground:var(--color-notification-success-foreground);--color-notification-error-background:var(--color-notification-error-background);--color-notification-error-foreground:var(--color-notification-error-foreground);--color-notification-center-background:var(--color-notification-center-background);--color-status-lime-background:var(--color-status-lime-background);--color-status-lime-text:var(--color-status-lime-text);--color-status-yellow-background:var(--color-status-yellow-background);--color-status-yellow-text:var(--color-status-yellow-text);--color-status-rose-background:var(--color-status-rose-background);--color-status-rose-text:var(--color-status-rose-text);--color-status-cyan-background:var(--color-status-cyan-background);--color-status-cyan-text:var(--color-status-cyan-text);--color-status-blue-background:var(--color-status-blue-background);--color-status-blue-text:var(--color-status-blue-text);--color-status-purple-background:var(--color-status-purple-background);--color-status-purple-text:var(--color-status-purple-text);--color-status-dot-green-halo:var(--color-status-dot-green-halo);--color-status-dot-yellow-halo:var(--color-status-dot-yellow-halo);--color-status-dot-indigo-halo:var(--color-status-dot-indigo-halo);--color-date-range-background:var(--color-date-range-background);--color-date-range-edge-background:var(--color-date-range-edge-background);--color-calendar-event-blue-background:var(--color-calendar-event-blue-background);--color-calendar-event-blue-title:var(--color-calendar-event-blue-title);--color-calendar-event-blue-time:var(--color-calendar-event-blue-time);--color-calendar-event-pink-background:var(--color-calendar-event-pink-background);--color-calendar-event-pink-title:var(--color-calendar-event-pink-title);--color-calendar-event-pink-time:var(--color-calendar-event-pink-time);--color-calendar-event-purple-background:var(--color-calendar-event-purple-background);--color-calendar-event-purple-title:var(--color-calendar-event-purple-title);--color-calendar-event-purple-time:var(--color-calendar-event-purple-time);--color-calendar-event-lime-background:var(--color-calendar-event-lime-background);--color-calendar-event-lime-title:var(--color-calendar-event-lime-title);--color-calendar-event-lime-time:var(--color-calendar-event-lime-time);--color-calendar-event-emerald-background:var(--color-calendar-event-emerald-background);--color-calendar-event-emerald-title:var(--color-calendar-event-emerald-title);--color-calendar-event-emerald-time:var(--color-calendar-event-emerald-time);--color-text-error-placeholder:var(--color-text-error-placeholder);--color-chart-track:var(--color-chart-track);--color-chart-cursor:var(--color-chart-cursor);--color-chart-neutral:var(--color-chart-neutral);--color-chart-1:var(--color-chart-1);--color-chart-1-active:var(--color-chart-1-active);--color-chart-2:var(--color-chart-2);--color-chart-2-active:var(--color-chart-2-active);--color-chart-3:var(--color-chart-3);--color-chart-3-active:var(--color-chart-3-active);--color-chart-4:var(--color-chart-4);--color-chart-4-active:var(--color-chart-4-active);--color-chart-5:var(--color-chart-5);--color-chart-5-active:var(--color-chart-5-active);--color-chart-6:var(--color-chart-6);--color-chart-6-active:var(--color-chart-6-active);--color-chart-7:var(--color-chart-7);--color-chart-7-active:var(--color-chart-7-active);--color-chart-8:var(--color-chart-8);--color-chart-8-active:var(--color-chart-8-active);--color-chart-9:var(--color-chart-9);--color-chart-9-active:var(--color-chart-9-active);--color-chart-agents-bar:var(--color-chart-agents-bar);--color-chart-agents-bar-active:var(--color-chart-agents-bar-active);--button-transition-ms:.15s;--input-transition-ms:.15s;--text-display-4-medium:2rem;--text-display-4-medium--line-height:2.75rem;--text-display-4-medium--letter-spacing:0;--text-display-4-medium--font-weight:500;--text-title-1-regular:1.5rem;--text-title-1-regular--line-height:2.125rem;--text-title-1-regular--letter-spacing:0;--text-title-1-regular--font-weight:400;--text-title-1-medium:1.5rem;--text-title-1-medium--line-height:2.125rem;--text-title-1-medium--letter-spacing:0;--text-title-1-medium--font-weight:500;--text-title-1-semibold:1.5rem;--text-title-1-semibold--line-height:2.125rem;--text-title-1-semibold--letter-spacing:0;--text-title-1-semibold--font-weight:600;--text-title-2-regular:1.25rem;--text-title-2-regular--line-height:1.625rem;--text-title-2-regular--letter-spacing:0;--text-title-2-regular--font-weight:400;--text-title-2-medium:1.25rem;--text-title-2-medium--line-height:1.625rem;--text-title-2-medium--letter-spacing:0;--text-title-2-medium--font-weight:500;--text-title-2-semibold:1.25rem;--text-title-2-semibold--line-height:1.625rem;--text-title-2-semibold--letter-spacing:0;--text-title-2-semibold--font-weight:600;--text-title-3-medium:1.125rem;--text-title-3-medium--line-height:1.625rem;--text-title-3-medium--letter-spacing:0;--text-title-3-medium--font-weight:500;--text-title-3-semibold:1.125rem;--text-title-3-semibold--line-height:1.625rem;--text-title-3-semibold--letter-spacing:0;--text-title-3-semibold--font-weight:600;--text-headline-medium:1rem;--text-headline-medium--line-height:1.375rem;--text-headline-medium--letter-spacing:0;--text-headline-medium--font-weight:500;--text-body-regular:.875rem;--text-body-regular--line-height:1.25rem;--text-body-regular--letter-spacing:0;--text-body-regular--font-weight:400;--text-body-medium:.875rem;--text-body-medium--line-height:1.25rem;--text-body-medium--letter-spacing:0;--text-body-medium--font-weight:500;--text-body-semibold:.875rem;--text-body-semibold--line-height:1.25rem;--text-body-semibold--letter-spacing:0;--text-body-semibold--font-weight:600;--text-body-bold:.875rem;--text-body-bold--line-height:1.25rem;--text-body-bold--letter-spacing:0;--text-body-bold--font-weight:700;--text-body-2-regular:.8125rem;--text-body-2-regular--line-height:1.125rem;--text-body-2-regular--letter-spacing:0;--text-body-2-regular--font-weight:400;--text-body-2-medium:.8125rem;--text-body-2-medium--line-height:1.125rem;--text-body-2-medium--letter-spacing:0;--text-body-2-medium--font-weight:500;--text-caption-1-regular:.75rem;--text-caption-1-regular--line-height:1rem;--text-caption-1-regular--letter-spacing:.15px;--text-caption-1-regular--font-weight:400;--text-caption-1-medium:.75rem;--text-caption-1-medium--line-height:1rem;--text-caption-1-medium--letter-spacing:.15px;--text-caption-1-medium--font-weight:500;--text-caption-1-semibold:.75rem;--text-caption-1-semibold--line-height:1rem;--text-caption-1-semibold--letter-spacing:.15px;--text-caption-1-semibold--font-weight:600;--container-board:var(--board-content,1120px);--container-card-cover:150px;--aspect-card-cover:16 / 10;--container-avatar-picker:720px;--aspect-avatar-choice:3 / 4;--spacing-crop-frame:50vh;--spacing-crop-preview:96px;--container-cover-crop:880px;--spacing-topbar:var(--topH,64px);--z-index-dialog:var(--layer-dialog,1000);--container-review-tabs:184px;--container-review-card:340px;--container-review-cover:132px;--container-review-cover-narrow:110px;--container-review-asset:92px;--spacing-review-card:440px;--spacing-review-card-tall:560px;--spacing-review-image:220px;--radius-surface:14px;--radius-floating:20px;--radius-glass-key:7px;--color-scrim:#0009}@supports (color:color-mix(in lab, red, red)){:root,:host{--color-scrim:color-mix(in srgb, var(--color-black) 60%, transparent)}}:root,:host{--container-duplicate-cover:112px;--container-duplicate-cover-narrow:88px;--container-index-person:150px;--container-index-company:180px;--container-index-tag:200px;--spacing-empty-glyph:54px;--container-empty-copy:340px;--leading-empty-copy:1.55;--container-form-modal:540px;--tracking-caps:.12em}}.\@container{container-type:inline-size}.bg-button-danger{isolation:isolate;background-image:var(--gradient-button-danger-default);position:relative}.bg-button-danger:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-danger-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-danger:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-danger-active)}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-danger:disabled,.bg-button-danger[aria-disabled=true]{background-image:var(--gradient-button-danger-disabled)}.bg-button-danger:disabled:before,.bg-button-danger[aria-disabled=true]:before{display:none}.bg-button-primary{isolation:isolate;background-image:var(--gradient-button-primary-default);position:relative}.bg-button-primary:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-primary-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-primary:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-primary-active)}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-primary:disabled,.bg-button-primary[aria-disabled=true]{background-image:var(--gradient-button-primary-disabled)}.bg-button-primary:disabled:before,.bg-button-primary[aria-disabled=true]:before{display:none}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.skeleton-sheen{overflow:hidden}.skeleton-sheen:after{content:"";border-radius:inherit;background:linear-gradient(to right, var(--hover), var(--skeleton-sheen) 50%, var(--hover));background-size:50% 100%;animation:1.5s ease-in-out infinite reverse peach-skeleton-sweep;position:absolute;inset:0 -200% 0 0}@media (prefers-reduced-motion:reduce){.skeleton-sheen:after{animation:none}}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{inset-inline:0}.inset-y-0{inset-block:0}.top-\(--crop-b\){top:var(--crop-b)}.top-\(--crop-t\){top:var(--crop-t)}.top-\(--tile-top\){top:var(--tile-top)}.top-0{top:0}.top-0\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-2{top:calc(var(--spacing) * 2)}.top-4{top:calc(var(--spacing) * 4)}.top-\[3px\]{top:3px}.top-topbar{top:var(--spacing-topbar)}.-right-1\.5{right:calc(var(--spacing) * -1.5)}.-right-\[5\.5px\]{right:-5.5px}.right-0{right:0}.right-1{right:var(--spacing)}.right-1\.5{right:calc(var(--spacing) * 1.5)}.right-2\.25{right:calc(var(--spacing) * 2.25)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-1\.5{bottom:calc(var(--spacing) * -1.5)}.-bottom-3{bottom:calc(var(--spacing) * -3)}.bottom-0{bottom:0}.bottom-1{bottom:var(--spacing)}.bottom-2{bottom:calc(var(--spacing) * 2)}.bottom-2\.25{bottom:calc(var(--spacing) * 2.25)}.-left-\[5\.5px\]{left:-5.5px}.left-\(--crop-l\){left:var(--crop-l)}.left-\(--crop-r\){left:var(--crop-r)}.left-\(--tile-left\){left:var(--tile-left)}.left-0{left:0}.left-0\.5{left:calc(var(--spacing) * .5)}.left-1{left:var(--spacing)}.left-1\.5{left:calc(var(--spacing) * 1.5)}.left-\[3px\]{left:3px}.isolate{isolation:isolate}.-z-10{z-index:calc(10 * -1)}.z-1{z-index:1}.z-6{z-index:6}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-dialog{z-index:var(--z-index-dialog)}.col-start-2{grid-column-start:2}.-col-end-1{grid-column-end:calc(1 * -1)}.row-span-2{grid-row:span 2/span 2}.container{width:100%}@media (width>=560px){.container{max-width:560px}}@media (width>=600px){.container{max-width:600px}}@media (width>=601px){.container{max-width:601px}}@media (width>=761px){.container{max-width:761px}}@media (width>=900px){.container{max-width:900px}}@media (width>=901px){.container{max-width:901px}}@media (width>=1000px){.container{max-width:1000px}}@media (width>=1120px){.container{max-width:1120px}}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:0}.m-0\!{margin:0!important}.-mx-4{margin-inline:calc(var(--spacing) * -4)}.-mx-5{margin-inline:calc(var(--spacing) * -5)}.-mx-6{margin-inline:calc(var(--spacing) * -6)}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mx-auto{margin-inline:auto}.my-0\.5{margin-block:calc(var(--spacing) * .5)}.-mt-2{margin-top:calc(var(--spacing) * -2)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-auto{margin-top:auto}.mr-1{margin-right:var(--spacing)}.mr-1\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-auto{margin-right:auto}.-mb-4{margin-bottom:calc(var(--spacing) * -4)}.-mb-5{margin-bottom:calc(var(--spacing) * -5)}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-5\.5{margin-bottom:calc(var(--spacing) * 5.5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.-ml-3{margin-left:calc(var(--spacing) * -3)}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-auto{margin-left:auto}.fieldset-split{grid-template-columns:minmax(0,1fr) auto;align-items:center;display:grid}@media not all and (width>=1001px){.fieldset-split{grid-template-columns:minmax(0,1fr)}}.duplicate-row{grid-template-columns:var(--container-duplicate-cover) minmax(0, 1fr) 84px 84px 84px;display:grid}@media not all and (width>=901px){.duplicate-row{grid-template-columns:var(--container-duplicate-cover-narrow) minmax(0, 1fr) auto auto}}.index-grid-company{grid-template-columns:repeat(auto-fill, minmax(var(--container-index-company), 1fr));display:grid}@media not all and (width>=761px){.index-grid-company{grid-template-columns:repeat(auto-fill, minmax(var(--container-index-person), 1fr))}}.card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));display:grid}.card-grid-cover{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));display:grid}.index-grid-person{grid-template-columns:repeat(auto-fill, minmax(var(--container-index-person), 1fr));display:grid}.index-tag-list{grid-template-columns:repeat(auto-fill, minmax(var(--container-index-tag), 1fr));display:grid}.link-stat-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));display:grid}.review-asset-grid{grid-template-columns:repeat(auto-fill, minmax(var(--container-review-asset), 1fr));display:grid}.review-grid{grid-template-columns:repeat(auto-fill, minmax(min(100%, var(--container-review-card)), 1fr));display:grid}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-3\/4{aspect-ratio:3/4}.aspect-16\/10{aspect-ratio:16/10}.aspect-auto{aspect-ratio:auto}.aspect-avatar-choice{aspect-ratio:var(--aspect-avatar-choice)}.aspect-card-cover{aspect-ratio:var(--aspect-card-cover)}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.size-1{width:var(--spacing);height:var(--spacing)}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-1\.75{width:calc(var(--spacing) * 1.75);height:calc(var(--spacing) * 1.75)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-3\.75{width:calc(var(--spacing) * 3.75);height:calc(var(--spacing) * 3.75)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-4\.5{width:calc(var(--spacing) * 4.5);height:calc(var(--spacing) * 4.5)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-7\.5{width:calc(var(--spacing) * 7.5);height:calc(var(--spacing) * 7.5)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-9\.5{width:calc(var(--spacing) * 9.5);height:calc(var(--spacing) * 9.5)}.size-11{width:calc(var(--spacing) * 11);height:calc(var(--spacing) * 11)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-17\.5{width:calc(var(--spacing) * 17.5);height:calc(var(--spacing) * 17.5)}.size-\[5px\]{width:5px;height:5px}.size-\[7\.5px\]{width:7.5px;height:7.5px}.size-\[10px\]{width:10px;height:10px}.size-\[18px\]{width:18px;height:18px}.size-crop-preview{width:var(--spacing-crop-preview);height:var(--spacing-crop-preview)}.size-empty-glyph{width:var(--spacing-empty-glyph);height:var(--spacing-empty-glyph)}.size-full{width:100%;height:100%}.h-\(--crop-h\){height:var(--crop-h)}.h-\(--crop-t\){height:var(--crop-t)}.h-\(--tile-height\){height:var(--tile-height)}.h-0{height:0}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1{height:var(--spacing)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-7\.5{height:calc(var(--spacing) * 7.5)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-56{height:calc(var(--spacing) * 56)}.h-64{height:calc(var(--spacing) * 64)}.h-70{height:calc(var(--spacing) * 70)}.h-75{height:calc(var(--spacing) * 75)}.h-\[2px\]{height:2px}.h-auto{height:auto}.h-full{height:100%}.h-max{height:max-content}.h-review-card{height:var(--spacing-review-card)}.h-review-card-tall{height:var(--spacing-review-card-tall)}.h-review-image{height:var(--spacing-review-image)}.max-h-22{max-height:calc(var(--spacing) * 22)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-130{max-height:calc(var(--spacing) * 130)}.max-h-\[240px\]{max-height:240px}.max-h-crop-frame{max-height:var(--spacing-crop-frame)}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-4{min-height:calc(var(--spacing) * 4)}.min-h-6{min-height:calc(var(--spacing) * 6)}.min-h-7{min-height:calc(var(--spacing) * 7)}.min-h-9\.5{min-height:calc(var(--spacing) * 9.5)}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-11\.5{min-height:calc(var(--spacing) * 11.5)}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-14{min-height:calc(var(--spacing) * 14)}.min-h-16{min-height:calc(var(--spacing) * 16)}.min-h-24{min-height:calc(var(--spacing) * 24)}.min-h-30{min-height:calc(var(--spacing) * 30)}.min-h-32{min-height:calc(var(--spacing) * 32)}.min-h-33{min-height:calc(var(--spacing) * 33)}.min-h-40{min-height:calc(var(--spacing) * 40)}.min-h-48{min-height:calc(var(--spacing) * 48)}.min-h-52{min-height:calc(var(--spacing) * 52)}.min-h-60{min-height:calc(var(--spacing) * 60)}.min-h-64{min-height:calc(var(--spacing) * 64)}.min-h-80{min-height:calc(var(--spacing) * 80)}.min-h-\[52px\]{min-height:52px}.w-\(--crop-l\){width:var(--crop-l)}.w-\(--crop-w\){width:var(--crop-w)}.w-\(--tile-width\){width:var(--tile-width)}.w-\(--trigger-width\){width:var(--trigger-width)}.w-0{width:0}.w-1{width:var(--spacing)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-2\/3{width:66.6667%}.w-3{width:calc(var(--spacing) * 3)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-14{width:calc(var(--spacing) * 14)}.w-24{width:calc(var(--spacing) * 24)}.w-37\.5{width:calc(var(--spacing) * 37.5)}.w-48{width:calc(var(--spacing) * 48)}.w-52{width:calc(var(--spacing) * 52)}.w-56{width:calc(var(--spacing) * 56)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-\[2px\]{width:2px}.w-\[42px\]{width:42px}.w-\[202px\]{width:202px}.w-\[266px\]{width:266px}.w-auto{width:auto}.w-card-cover{width:var(--container-card-cover)}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-review-cover-narrow{width:var(--container-review-cover-narrow)}.max-w-80{max-width:calc(var(--spacing) * 80)}.max-w-90{max-width:calc(var(--spacing) * 90)}.max-w-190{max-width:calc(var(--spacing) * 190)}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.max-w-avatar-picker{max-width:var(--container-avatar-picker)}.max-w-board{max-width:var(--container-board)}.max-w-cover-crop{max-width:var(--container-cover-crop)}.max-w-empty-copy{max-width:var(--container-empty-copy)}.max-w-form-modal{max-width:var(--container-form-modal)}.max-w-full{max-width:100%}.max-w-none{max-width:none}.max-w-prose{max-width:65ch}.min-w-0{min-width:0}.min-w-7\.5{min-width:calc(var(--spacing) * 7.5)}.min-w-25{min-width:calc(var(--spacing) * 25)}.min-w-31{min-width:calc(var(--spacing) * 31)}.min-w-32{min-width:calc(var(--spacing) * 32)}.min-w-35{min-width:calc(var(--spacing) * 35)}.min-w-40{min-width:calc(var(--spacing) * 40)}.min-w-50{min-width:calc(var(--spacing) * 50)}.min-w-64{min-width:calc(var(--spacing) * 64)}.min-w-80{min-width:calc(var(--spacing) * 80)}.min-w-160{min-width:calc(var(--spacing) * 160)}.flex-1{flex:1}.flex-none{flex:none}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.basis-40{flex-basis:calc(var(--spacing) * 40)}.basis-50{flex-basis:calc(var(--spacing) * 50)}.basis-64{flex-basis:calc(var(--spacing) * 64)}.basis-full{flex-basis:100%}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-3{--tw-translate-x:calc(var(--spacing) * 3);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-6{--tw-translate-x:calc(var(--spacing) * 6);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[18px\]{--tw-translate-x:18px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-full{--tw-translate-y:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-90{rotate:-90deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.button-press-motion{transition:background-color var(--button-transition-ms) ease, border-color var(--button-transition-ms) ease, box-shadow var(--button-transition-ms) ease, color var(--button-transition-ms) ease, transform .42s cubic-bezier(.4, 0, .2, 1)}.button-press-motion:active:not(:disabled):not([aria-disabled=true]){transition-duration:.15s,.15s,.15s,.15s,.22s;transform:scale(.98)}.button-press-motion:disabled,.button-press-motion[aria-disabled=true]{transform:none}@media (prefers-reduced-motion:reduce){.button-press-motion{transition:none;transform:none}}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.dot-wave-0{animation:1.2s ease-in-out infinite peach-dot-wave}.dot-wave-1{animation:1.2s ease-in-out .15s infinite peach-dot-wave}.dot-wave-2{animation:1.2s ease-in-out .3s infinite peach-dot-wave}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-nwse-resize{cursor:nwse-resize}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.resize{resize:both}.scroll-mt-20{scroll-margin-top:calc(var(--spacing) * 20)}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.columns-2{columns:2}.auto-cols-fr{grid-auto-columns:minmax(0,1fr)}.grid-flow-col{grid-auto-flow:column}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-nowrap{flex-wrap:nowrap}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.content-start{align-content:flex-start}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-1\.75{gap:calc(var(--spacing) * 1.75)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-2\.25{gap:calc(var(--spacing) * 2.25)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-4\.5{gap:calc(var(--spacing) * 4.5)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-\[2px\]{gap:2px}.gap-\[5px\]{gap:5px}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-2\.5{column-gap:calc(var(--spacing) * 2.5)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-7{column-gap:calc(var(--spacing) * 7)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}.self-center{align-self:center}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.overscroll-x-contain{overscroll-behavior-x:contain}.rounded{border-radius:.25rem}.rounded-2-5xl{border-radius:var(--radius-2-5xl)}.rounded-2lg{border-radius:var(--radius-2lg)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[0\.5px\]{border-radius:.5px}.rounded-\[0\.75px\]{border-radius:.75px}.rounded-\[1\.5px\]{border-radius:1.5px}.rounded-\[1px\]{border-radius:1px}.rounded-\[2px\]{border-radius:2px}.rounded-\[3px\]{border-radius:3px}.rounded-\[4\.5px\]{border-radius:4.5px}.rounded-floating{border-radius:var(--radius-floating)}.rounded-full{border-radius:2147483647px}.rounded-glass-key{border-radius:var(--radius-glass-key)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-surface{border-radius:var(--radius-surface)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-l-md{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.rounded-r-md{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.rounded-b-2xl{border-bottom-right-radius:var(--radius-2xl);border-bottom-left-radius:var(--radius-2xl)}.rounded-b-surface{border-bottom-right-radius:var(--radius-surface);border-bottom-left-radius:var(--radius-surface)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\[0\.5px\]{border-style:var(--tw-border-style);border-width:.5px}.border-\[0\.25px\]{border-style:var(--tw-border-style);border-width:.25px}.border-\[0\.375px\]{border-style:var(--tw-border-style);border-width:.375px}.border-\[1\.5px\]{border-style:var(--tw-border-style);border-width:1.5px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-solid{--tw-border-style:solid;border-style:solid}.border-\(--glass-low\){border-color:var(--glass-low)}.border-accent-600{border-color:var(--color-accent-600)}.border-border{border-color:var(--color-separator-border)}.border-border-button-default,.border-border-button-default\/50{border-color:var(--color-border-button-default)}@supports (color:color-mix(in lab, red, red)){.border-border-button-default\/50{border-color:color-mix(in oklab, var(--color-border-button-default) 50%, transparent)}}.border-border-checkbox-default{border-color:var(--color-border-checkbox-default)}.border-border-checkbox-hover{border-color:var(--color-border-checkbox-hover)}.border-border-error-default{border-color:var(--color-border-error-default)}.border-border\/50{border-color:var(--color-separator-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/50{border-color:color-mix(in oklab, var(--color-separator-border) 50%, transparent)}}.border-current,.border-current\/15{border-color:currentColor}@supports (color:color-mix(in lab, red, red)){.border-current\/15{border-color:color-mix(in oklab, currentcolor 15%, transparent)}}.border-current\/20{border-color:currentColor}@supports (color:color-mix(in lab, red, red)){.border-current\/20{border-color:color-mix(in oklab, currentcolor 20%, transparent)}}.border-current\/35{border-color:currentColor}@supports (color:color-mix(in lab, red, red)){.border-current\/35{border-color:color-mix(in oklab, currentcolor 35%, transparent)}}.border-separator-border{border-color:var(--color-separator-border)}.border-text-primary\/15{border-color:var(--color-text-primary)}@supports (color:color-mix(in lab, red, red)){.border-text-primary\/15{border-color:color-mix(in oklab, var(--color-text-primary) 15%, transparent)}}.border-transparent{border-color:#0000}.bg-\(--keep\)\/22{background-color:var(--keep)}@supports (color:color-mix(in lab, red, red)){.bg-\(--keep\)\/22{background-color:color-mix(in oklab, var(--keep) 22%, transparent)}}.bg-background{background-color:var(--color-background-primary-default)}.bg-background-full{background-color:var(--color-background-full)}.bg-background-primary-default{background-color:var(--color-background-primary-default)}.bg-background-primary-hover{background-color:var(--color-background-primary-hover)}.bg-background-secondary-default{background-color:var(--color-background-secondary-default)}.bg-background-tertiary-default{background-color:var(--color-background-tertiary-default)}.bg-background-tertiary-error{background-color:var(--color-background-tertiary-error)}.bg-background\/70{background-color:var(--color-background-primary-default)}@supports (color:color-mix(in lab, red, red)){.bg-background\/70{background-color:color-mix(in oklab, var(--color-background-primary-default) 70%, transparent)}}.bg-border-focus-ring{background-color:var(--color-border-focus-ring)}.bg-button-ghost-background{background-color:var(--color-button-ghost-background)}.bg-card-footer{background-color:var(--card-footer,transparent)}.bg-chart-1{background-color:var(--color-chart-1)}.bg-chart-2{background-color:var(--color-chart-2)}.bg-chart-3{background-color:var(--color-chart-3)}.bg-chart-4{background-color:var(--color-chart-4)}.bg-chart-5,.bg-chart-5\/10{background-color:var(--color-chart-5)}@supports (color:color-mix(in lab, red, red)){.bg-chart-5\/10{background-color:color-mix(in oklab, var(--color-chart-5) 10%, transparent)}}.bg-chart-6,.bg-chart-6\/10{background-color:var(--color-chart-6)}@supports (color:color-mix(in lab, red, red)){.bg-chart-6\/10{background-color:color-mix(in oklab, var(--color-chart-6) 10%, transparent)}}.bg-chart-7\/10{background-color:var(--color-chart-7)}@supports (color:color-mix(in lab, red, red)){.bg-chart-7\/10{background-color:color-mix(in oklab, var(--color-chart-7) 10%, transparent)}}.bg-chart-8\/10{background-color:var(--color-chart-8)}@supports (color:color-mix(in lab, red, red)){.bg-chart-8\/10{background-color:color-mix(in oklab, var(--color-chart-8) 10%, transparent)}}.bg-current{background-color:currentColor}.bg-dropdown-item-hover-background{background-color:var(--color-dropdown-item-hover-background)}.bg-foreground{background-color:var(--color-text-primary)}.bg-input-disabled-background{background-color:var(--color-input-disabled-background)}.bg-muted-foreground{background-color:var(--color-text-secondary)}.bg-notification-information-background{background-color:var(--color-notification-information-background)}.bg-notification-success-background{background-color:var(--color-notification-success-background)}.bg-scrim{background-color:var(--color-scrim)}.bg-status-blue-background{background-color:var(--color-status-blue-background)}.bg-status-cyan-background{background-color:var(--color-status-cyan-background)}.bg-status-lime-background{background-color:var(--color-status-lime-background)}.bg-status-lime-text{background-color:var(--color-status-lime-text)}.bg-status-purple-background{background-color:var(--color-status-purple-background)}.bg-status-rose-background{background-color:var(--color-status-rose-background)}.bg-status-yellow-background{background-color:var(--color-status-yellow-background)}.bg-status-yellow-text{background-color:var(--color-status-yellow-text)}.bg-text-primary\/10{background-color:var(--color-text-primary)}@supports (color:color-mix(in lab, red, red)){.bg-text-primary\/10{background-color:color-mix(in oklab, var(--color-text-primary) 10%, transparent)}}.bg-text-tertiary{background-color:var(--color-text-tertiary)}.bg-text-white{background-color:var(--color-text-white)}.bg-transparent{background-color:#0000}.bg-transparent\!{background-color:#0000!important}.bg-linear-to-b{--tw-gradient-position:to bottom}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-b{--tw-gradient-position:to bottom in oklab}}.bg-linear-to-b{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-t{--tw-gradient-position:to top}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-t{--tw-gradient-position:to top in oklab}}.bg-linear-to-t{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-\(image\:--crop-preview\){background-image:var(--crop-preview)}.from-accent-400{--tw-gradient-from:var(--color-accent-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-accent-500{--tw-gradient-from:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-control-indicator-background{--tw-gradient-from:var(--color-control-indicator-background);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-off-chip-start{--tw-gradient-from:var(--color-switch-off-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-on-chip-start{--tw-gradient-from:var(--color-switch-on-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-\[43\.837\%\]{--tw-gradient-from-position:43.837%}.to-accent-500{--tw-gradient-to:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-accent-600{--tw-gradient-to:var(--color-accent-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-control-indicator-background-subtle{--tw-gradient-to:var(--color-control-indicator-background-subtle);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-off-chip-end{--tw-gradient-to:var(--color-switch-off-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-on-chip-end{--tw-gradient-to:var(--color-switch-on-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.bg-\(length\:--crop-preview-size\){background-size:var(--crop-preview-size)}.bg-\(position\:--crop-preview-at\){background-position:var(--crop-preview-at)}.bg-no-repeat{background-repeat:no-repeat}.fill-background-secondary-default{fill:var(--color-background-secondary-default)}.fill-background-tertiary-default{fill:var(--color-background-tertiary-default)}.fill-border-focus-ring{fill:var(--color-border-focus-ring)}.fill-chart-1{fill:var(--color-chart-1)}.fill-chart-2{fill:var(--color-chart-2)}.fill-chart-3{fill:var(--color-chart-3)}.fill-chart-4{fill:var(--color-chart-4)}.fill-chart-5{fill:var(--color-chart-5)}.fill-chart-6{fill:var(--color-chart-6)}.fill-chart-track{fill:var(--color-chart-track)}.fill-current{fill:currentColor}.fill-text-secondary{fill:var(--color-text-secondary)}.stroke-chart-1{stroke:var(--color-chart-1)}.stroke-chart-2{stroke:var(--color-chart-2)}.stroke-chart-3{stroke:var(--color-chart-3)}.stroke-chart-4{stroke:var(--color-chart-4)}.stroke-chart-5{stroke:var(--color-chart-5)}.stroke-chart-6{stroke:var(--color-chart-6)}.stroke-current{stroke:currentColor}.stroke-2{stroke-width:2px}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:var(--spacing)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-\[1\.5px\]{padding:1.5px}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-2\.25{padding-inline:calc(var(--spacing) * 2.25)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\[7px\]{padding-inline:7px}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-1\.25{padding-block:calc(var(--spacing) * 1.25)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-px{padding-block:1px}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-3\.5{padding-top:calc(var(--spacing) * 3.5)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-px{padding-top:1px}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-1{padding-bottom:var(--spacing)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.pb-10\.5{padding-bottom:calc(var(--spacing) * 10.5)}.pl-1{padding-left:var(--spacing)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-body-2-medium{font-size:var(--text-body-2-medium);line-height:var(--tw-leading,var(--text-body-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-medium--font-weight))}.text-body-2-regular{font-size:var(--text-body-2-regular);line-height:var(--tw-leading,var(--text-body-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-regular--font-weight))}.text-body-bold{font-size:var(--text-body-bold);line-height:var(--tw-leading,var(--text-body-bold--line-height));letter-spacing:var(--tw-tracking,var(--text-body-bold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-bold--font-weight))}.text-body-medium{font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight))}.text-body-regular{font-size:var(--text-body-regular);line-height:var(--tw-leading,var(--text-body-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-regular--font-weight))}.text-body-semibold{font-size:var(--text-body-semibold);line-height:var(--tw-leading,var(--text-body-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-body-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-semibold--font-weight))}.text-caption-1-medium{font-size:var(--text-caption-1-medium);line-height:var(--tw-leading,var(--text-caption-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-medium--font-weight))}.text-caption-1-regular{font-size:var(--text-caption-1-regular);line-height:var(--tw-leading,var(--text-caption-1-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-regular--font-weight))}.text-caption-1-semibold{font-size:var(--text-caption-1-semibold);line-height:var(--tw-leading,var(--text-caption-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-semibold--font-weight))}.text-display-4-medium{font-size:var(--text-display-4-medium);line-height:var(--tw-leading,var(--text-display-4-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-display-4-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-display-4-medium--font-weight))}.text-display-4-medium\!{font-size:var(--text-display-4-medium)!important;line-height:var(--tw-leading,var(--text-display-4-medium--line-height))!important;letter-spacing:var(--tw-tracking,var(--text-display-4-medium--letter-spacing))!important;font-weight:var(--tw-font-weight,var(--text-display-4-medium--font-weight))!important}.text-headline-medium{font-size:var(--text-headline-medium);line-height:var(--tw-leading,var(--text-headline-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-headline-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-headline-medium--font-weight))}.text-title-1-medium{font-size:var(--text-title-1-medium);line-height:var(--tw-leading,var(--text-title-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-medium--font-weight))}.text-title-1-regular{font-size:var(--text-title-1-regular);line-height:var(--tw-leading,var(--text-title-1-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-regular--font-weight))}.text-title-1-semibold{font-size:var(--text-title-1-semibold);line-height:var(--tw-leading,var(--text-title-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-semibold--font-weight))}.text-title-2-medium{font-size:var(--text-title-2-medium);line-height:var(--tw-leading,var(--text-title-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-medium--font-weight))}.text-title-2-medium\!{font-size:var(--text-title-2-medium)!important;line-height:var(--tw-leading,var(--text-title-2-medium--line-height))!important;letter-spacing:var(--tw-tracking,var(--text-title-2-medium--letter-spacing))!important;font-weight:var(--tw-font-weight,var(--text-title-2-medium--font-weight))!important}.text-title-2-regular{font-size:var(--text-title-2-regular);line-height:var(--tw-leading,var(--text-title-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-regular--font-weight))}.text-title-2-semibold{font-size:var(--text-title-2-semibold);line-height:var(--tw-leading,var(--text-title-2-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-semibold--font-weight))}.text-title-3-medium{font-size:var(--text-title-3-medium);line-height:var(--tw-leading,var(--text-title-3-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-3-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-3-medium--font-weight))}.text-title-3-semibold{font-size:var(--text-title-3-semibold);line-height:var(--tw-leading,var(--text-title-3-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-3-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-3-semibold--font-weight))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[8px\]{font-size:8px}.leading-4\.5{--tw-leading:calc(var(--spacing) * 4.5);line-height:calc(var(--spacing) * 4.5)}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-empty-copy{--tw-leading:var(--leading-empty-copy);line-height:var(--leading-empty-copy)}.leading-none{--tw-leading:1;line-height:1}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-caps{--tw-tracking:var(--tracking-caps);letter-spacing:var(--tracking-caps)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.text-\(--glass-text\)\/60{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.text-\(--glass-text\)\/60{color:color-mix(in oklab, var(--glass-text) 60%, transparent)}}.text-\(--glass-text\)\/62{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.text-\(--glass-text\)\/62{color:color-mix(in oklab, var(--glass-text) 62%, transparent)}}.text-\(--keep\){color:var(--keep)}.text-accent-600{color:var(--color-accent-600)}.text-background{color:var(--color-background-primary-default)}.text-background-tertiary-default{color:var(--color-background-tertiary-default)}.text-border,.text-border\/60{color:var(--color-separator-border)}@supports (color:color-mix(in lab, red, red)){.text-border\/60{color:color-mix(in oklab, var(--color-separator-border) 60%, transparent)}}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.text-chart-5{color:var(--color-chart-5)}.text-chart-6{color:var(--color-chart-6)}.text-chart-7{color:var(--color-chart-7)}.text-chart-8{color:var(--color-chart-8)}.text-foreground{color:var(--color-text-primary)}.text-foreground-full{color:var(--color-foreground-full)}.text-foreground-icon-error{color:var(--color-foreground-icon-error)}.text-foreground-icon-primary{color:var(--color-foreground-icon-primary)}.text-foreground-icon-quaternary{color:var(--color-foreground-icon-quaternary)}.text-foreground-icon-secondary{color:var(--color-foreground-icon-secondary)}.text-foreground-icon-tertiary{color:var(--color-foreground-icon-tertiary)}.text-inherit{color:inherit}.text-input-disabled-foreground{color:var(--color-input-disabled-foreground)}.text-muted-foreground{color:var(--color-text-secondary)}.text-notification-information-foreground{color:var(--color-notification-information-foreground)}.text-notification-success-foreground{color:var(--color-notification-success-foreground)}.text-status-blue-text{color:var(--color-status-blue-text)}.text-status-cyan-text{color:var(--color-status-cyan-text)}.text-status-lime-text{color:var(--color-status-lime-text)}.text-status-purple-text{color:var(--color-status-purple-text)}.text-status-rose-text{color:var(--color-status-rose-text)}.text-status-yellow-text{color:var(--color-status-yellow-text)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-error-primary{color:var(--color-text-error-primary)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.text-text-tertiary{color:var(--color-text-tertiary)}.text-text-white{color:var(--color-text-white)}.uppercase{text-transform:uppercase}.not-italic{font-style:normal}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.underline-offset-3{text-underline-offset:3px}.underline-offset-4{text-underline-offset:4px}.reveal-content{opacity:0;filter:blur(2px);transition:opacity var(--motion-reveal), filter var(--motion-reveal)}.reveal-content[data-revealed]{opacity:1;filter:none}.reveal-skeleton{transition:opacity var(--motion-reveal), filter var(--motion-reveal)}.reveal-skeleton[data-revealed]{opacity:0;filter:blur(2px)}.opacity-0{opacity:0}.opacity-15{opacity:.15}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_2px_2px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 2px 2px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\,0_0\.75px_0_0_rgb\(0_0_0\/0\.05\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008), 0 .75px 0 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_4px_4px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 4px 4px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1\.5px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.75px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1.5px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .75px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.5px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .5px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-card{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-checkbox-selected{--tw-shadow:inset 0 2px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 1px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-dropdown{--tw-shadow:var(--elevation-dropdown);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:var(--elevation-xl);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:var(--elevation-xs);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow\/xs{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-background-full{--tw-ring-color:var(--color-background-full)}.ring-border-button-active{--tw-ring-color:var(--color-border-button-active)}.ring-border-button-hover{--tw-ring-color:var(--color-border-button-hover)}.ring-border-focus-ring{--tw-ring-color:var(--color-border-focus-ring)}.ring-transparent{--tw-ring-color:transparent}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow-sm{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#00000026));--tw-drop-shadow:drop-shadow(var(--drop-shadow-sm));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-\[2px\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,color\]{transition-property:background-color,border-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,padding\,font-size\]{transition-property:background-color,border-color,box-shadow,padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\]{transition-property:background-color,border-color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,box-shadow\,color\]{transition-property:background-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[padding\,font-size\]{transition-property:padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-\[var\(--input-transition-ms\)\]{--tw-duration:var(--input-transition-ms);transition-duration:var(--input-transition-ms)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.ring-inset{--tw-ring-inset:inset}@media (hover:hover){.group-hover\:border-border-checkbox-hover:is(:where(.group):hover *){border-color:var(--color-border-checkbox-hover)}.group-hover\:bg-background-primary-hover:is(:where(.group):hover *){background-color:var(--color-background-primary-hover)}.group-hover\:bg-foreground:is(:where(.group):hover *){background-color:var(--color-text-primary)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-data-selected\:border-border-focus-ring:is(:where(.group)[data-selected] *){border-color:var(--color-border-focus-ring)}.group-data-selected\:bg-accent-600:is(:where(.group)[data-selected] *){background-color:var(--color-accent-600)}.group-data-selected\:bg-background-primary-hover:is(:where(.group)[data-selected] *){background-color:var(--color-background-primary-hover)}.group-data-selected\:opacity-100:is(:where(.group)[data-selected] *){opacity:1}.placeholder\:text-text-tertiary::placeholder{color:var(--color-text-tertiary)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:inset-y-0:after{content:var(--tw-content);inset-block:0}.after\:-left-4:after{content:var(--tw-content);left:calc(var(--spacing) * -4)}.after\:w-11:after{content:var(--tw-content);width:calc(var(--spacing) * 11)}.after\:content-\[\'\'\]:after{--tw-content:"";content:var(--tw-content)}.first\:border-t-0:first-child{border-top-style:var(--tw-border-style);border-top-width:0}.first\:pt-1:first-child{padding-top:var(--spacing)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.last\:pb-1:last-child{padding-bottom:var(--spacing)}.empty\:hidden:empty{display:none}@media (hover:hover){.hover\:border-solid:hover{--tw-border-style:solid;border-style:solid}.hover\:border-\(--glass-rim\):hover{border-color:var(--glass-rim)}.hover\:border-border-button-hover:hover{border-color:var(--color-border-button-hover)}.hover\:bg-\(--glass-pick-fill\):hover{background-color:var(--glass-pick-fill)}.hover\:bg-background-primary-hover:hover,.hover\:bg-background-primary-hover\/60:hover{background-color:var(--color-background-primary-hover)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-background-primary-hover\/60:hover{background-color:color-mix(in oklab, var(--color-background-primary-hover) 60%, transparent)}}.hover\:bg-button-ghost-hover:hover{background-color:var(--color-button-ghost-hover)}.hover\:bg-dropdown-item-hover-background:hover{background-color:var(--color-dropdown-item-hover-background)}.hover\:text-\(--glass-text\):hover{color:var(--glass-text)}.hover\:text-foreground-icon-primary:hover{color:var(--color-foreground-icon-primary)}.hover\:text-text-primary:hover{color:var(--color-text-primary)}.hover\:text-text-secondary:hover{color:var(--color-text-secondary)}.hover\:underline:hover{text-decoration-line:underline}.not-data-selected\:hover\:bg-card-hover:not([data-selected]):hover{background-color:var(--card-hover,transparent)}}.focus\:placeholder\:text-text-primary:focus::placeholder{color:var(--color-text-primary)}.focus-visible\:bg-dropdown-item-hover-background:focus-visible{background-color:var(--color-dropdown-item-hover-background)}.focus-visible\:stroke-border-focus-ring:focus-visible{stroke:var(--color-border-focus-ring)}.focus-visible\:opacity-100:focus-visible{opacity:1}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-border-focus-ring:focus-visible{--tw-ring-color:var(--color-border-focus-ring)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:ring-offset-3:focus-visible{--tw-ring-offset-width:3px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\:-outline-offset-3:focus-visible{outline-offset:calc(3px * -1)}.focus-visible\:outline-border-focus-ring:focus-visible{outline-color:var(--color-border-focus-ring)}.focus-visible\:ring-inset:focus-visible{--tw-ring-inset:inset}.active\:cursor-grabbing:active{cursor:grabbing}.active\:border-border-button-active:active{border-color:var(--color-border-button-active)}.active\:bg-background-primary-active:active{background-color:var(--color-background-primary-active)}.active\:bg-button-ghost-active:active{background-color:var(--color-button-ghost-active)}.active\:text-accent-800:active{color:var(--color-accent-800)}.active\:text-text-primary:active{color:var(--color-text-primary)}.disabled\:cursor-default:disabled{cursor:default}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:border-border-button-default:disabled{border-color:var(--color-border-button-default)}.disabled\:bg-background-primary-disabled:disabled{background-color:var(--color-background-primary-disabled)}.disabled\:bg-button-ghost-disabled:disabled{background-color:var(--color-button-ghost-disabled)}.disabled\:text-button-ghost-disabled-foreground:disabled{color:var(--color-button-ghost-disabled-foreground)}.disabled\:text-button-primary-disabled-foreground:disabled{color:var(--color-button-primary-disabled-foreground)}.disabled\:text-foreground-disabled-danger:disabled{color:var(--color-foreground-disabled-danger)}.disabled\:text-icon-button-disabled-foreground:disabled{color:var(--color-icon-button-disabled-foreground)}.disabled\:text-input-disabled-text:disabled{color:var(--color-input-disabled-text)}.disabled\:text-text-tertiary:disabled{color:var(--color-text-tertiary)}.disabled\:no-underline:disabled{text-decoration-line:none}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:shadow-none:disabled{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.disabled\:placeholder\:text-input-disabled-text:disabled::placeholder{color:var(--color-input-disabled-text)}.aria-busy\:cursor-wait[aria-busy=true]{cursor:wait}.aria-busy\:opacity-55[aria-busy=true]{opacity:.55}.aria-checked\:bg-background-tertiary-default[aria-checked=true]{background-color:var(--color-background-tertiary-default)}.aria-checked\:text-text-primary[aria-checked=true]{color:var(--color-text-primary)}.aria-disabled\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}.aria-disabled\:cursor-progress[aria-disabled=true]{cursor:progress}.aria-disabled\:border-border-button-default[aria-disabled=true]{border-color:var(--color-border-button-default)}.aria-disabled\:bg-background-primary-disabled[aria-disabled=true]{background-color:var(--color-background-primary-disabled)}.aria-disabled\:bg-button-ghost-disabled[aria-disabled=true]{background-color:var(--color-button-ghost-disabled)}.aria-disabled\:text-button-ghost-disabled-foreground[aria-disabled=true]{color:var(--color-button-ghost-disabled-foreground)}.aria-disabled\:text-button-primary-disabled-foreground[aria-disabled=true]{color:var(--color-button-primary-disabled-foreground)}.aria-disabled\:text-foreground-disabled-danger[aria-disabled=true]{color:var(--color-foreground-disabled-danger)}.aria-disabled\:text-text-tertiary[aria-disabled=true]{color:var(--color-text-tertiary)}.aria-disabled\:no-underline[aria-disabled=true]{text-decoration-line:none}.aria-disabled\:opacity-60[aria-disabled=true]{opacity:.6}.aria-disabled\:shadow-none[aria-disabled=true]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-expanded\:bg-background-primary-hover[aria-expanded=true]{background-color:var(--color-background-primary-hover)}.aria-expanded\:text-foreground-icon-primary[aria-expanded=true]{color:var(--color-foreground-icon-primary)}.aria-invalid\:placeholder\:text-text-error-placeholder[aria-invalid=true]::placeholder{color:var(--color-text-error-placeholder)}.aria-pressed\:bg-chart-1\/10[aria-pressed=true]{background-color:var(--color-chart-1)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-1\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-1) 10%, transparent)}}.aria-pressed\:bg-chart-2\/10[aria-pressed=true]{background-color:var(--color-chart-2)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-2\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-2) 10%, transparent)}}.aria-pressed\:bg-chart-3\/10[aria-pressed=true]{background-color:var(--color-chart-3)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-3\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-3) 10%, transparent)}}.aria-pressed\:bg-chart-4\/10[aria-pressed=true]{background-color:var(--color-chart-4)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-4\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-4) 10%, transparent)}}.aria-pressed\:bg-chart-5\/10[aria-pressed=true]{background-color:var(--color-chart-5)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-5\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-5) 10%, transparent)}}.aria-pressed\:bg-chart-6\/10[aria-pressed=true]{background-color:var(--color-chart-6)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-6\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-6) 10%, transparent)}}.aria-pressed\:ring-1[aria-pressed=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-pressed\:ring-chart-1[aria-pressed=true]{--tw-ring-color:var(--color-chart-1)}.aria-pressed\:ring-chart-2[aria-pressed=true]{--tw-ring-color:var(--color-chart-2)}.aria-pressed\:ring-chart-3[aria-pressed=true]{--tw-ring-color:var(--color-chart-3)}.aria-pressed\:ring-chart-4[aria-pressed=true]{--tw-ring-color:var(--color-chart-4)}.aria-pressed\:ring-chart-5[aria-pressed=true]{--tw-ring-color:var(--color-chart-5)}.aria-pressed\:ring-chart-6[aria-pressed=true]{--tw-ring-color:var(--color-chart-6)}.aria-pressed\:ring-inset[aria-pressed=true]{--tw-ring-inset:inset}.aria-selected\:border-border-focus-ring[aria-selected=true]{border-color:var(--color-border-focus-ring)}.aria-selected\:bg-background-primary-default[aria-selected=true]{background-color:var(--color-background-primary-default)}.aria-selected\:bg-background-tertiary-default[aria-selected=true]{background-color:var(--color-background-tertiary-default)}.aria-selected\:font-medium[aria-selected=true]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.aria-selected\:text-border-focus-ring[aria-selected=true]{color:var(--color-border-focus-ring)}.aria-selected\:text-text-primary[aria-selected=true]{color:var(--color-text-primary)}.aria-selected\:shadow-card[aria-selected=true]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-disabled\:cursor-not-allowed[data-disabled]{cursor:not-allowed}.data-focus-visible\:ring-2[data-focus-visible]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-focus-visible\:ring-border-focus-ring[data-focus-visible]{--tw-ring-color:var(--color-border-focus-ring)}.data-selected\:border-border-button-active[data-selected]{border-color:var(--color-border-button-active)}.data-selected\:bg-background-primary-default[data-selected]{background-color:var(--color-background-primary-default)}.data-selected\:bg-dropdown-item-hover-background[data-selected]{background-color:var(--color-dropdown-item-hover-background)}.data-selected\:text-\(--glass-text\)[data-selected]{color:var(--glass-text)}.data-selected\:text-text-primary[data-selected]{color:var(--color-text-primary)}.data-selected\:shadow-card[data-selected]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-selected\:shadow-none[data-selected]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-selected\:after\:pointer-events-none[data-selected]:after{content:var(--tw-content);pointer-events:none}.data-selected\:after\:absolute[data-selected]:after{content:var(--tw-content);position:absolute}.data-selected\:after\:inset-0[data-selected]:after{content:var(--tw-content);inset:0}.data-selected\:after\:z-1[data-selected]:after{content:var(--tw-content);z-index:1}.data-selected\:after\:rounded-\[inherit\][data-selected]:after{content:var(--tw-content);border-radius:inherit}.data-selected\:after\:border-2[data-selected]:after{content:var(--tw-content);border-style:var(--tw-border-style);border-width:2px}.data-selected\:after\:border-border-focus-ring[data-selected]:after{content:var(--tw-content);border-color:var(--color-border-focus-ring)}.data-\[entering\]\:scale-95[data-entering]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[entering\]\:opacity-0[data-entering]{opacity:0}.data-\[entering\]\:blur-\[2px\][data-entering]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[exiting\]\:scale-95[data-exiting]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[exiting\]\:opacity-0[data-exiting]{opacity:0}.data-\[exiting\]\:blur-\[2px\][data-exiting]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[placement\=bottom\]\:origin-top-left[data-placement=bottom]{transform-origin:0 0}.data-\[placement\=left\]\:origin-right[data-placement=left]{transform-origin:100%}.data-\[placement\=right\]\:origin-left[data-placement=right]{transform-origin:0}.data-\[placement\=top\]\:origin-bottom-left[data-placement=top]{transform-origin:0 100%}@media not all and (width>=1120px){.max-plain-stat-pair\:grid-flow-row{grid-auto-flow:row}.max-plain-stat-pair\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media not all and (width>=1001px){.max-\[1001px\]\:justify-start{justify-content:flex-start}.max-\[1001px\]\:pt-0{padding-top:0}}@media not all and (width>=901px){.max-duplicate-narrow\:col-span-full{grid-column:1/-1}.max-duplicate-narrow\:col-start-2{grid-column-start:2}.max-duplicate-narrow\:-col-end-1{grid-column-end:calc(1 * -1)}}@media not all and (width>=761px){.max-board-narrow\:order-1{order:1}.max-board-narrow\:order-2{order:2}.max-board-narrow\:order-3{order:3}.max-board-narrow\:block{display:block}.max-cleanup-tight\:min-h-0{min-height:0}.max-board-narrow\:max-w-none{max-width:none}.max-board-narrow\:min-w-0{min-width:0}.max-board-narrow\:basis-40{flex-basis:calc(var(--spacing) * 40)}.max-board-narrow\:flex-col{flex-direction:column}.max-board-narrow\:items-stretch{align-items:stretch}.max-board-narrow\:gap-0{gap:0}.max-cleanup-tight\:gap-3{gap:calc(var(--spacing) * 3)}.max-cleanup-tight\:p-4\.5{padding:calc(var(--spacing) * 4.5)}.max-board-narrow\:px-2\.25{padding-inline:calc(var(--spacing) * 2.25)}.max-cleanup-tight\:px-4\.5{padding-inline:calc(var(--spacing) * 4.5)}.max-board-narrow\:text-body-2-regular{font-size:var(--text-body-2-regular);line-height:var(--tw-leading,var(--text-body-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-regular--font-weight))}.max-board-narrow\:text-title-1-medium{font-size:var(--text-title-1-medium);line-height:var(--tw-leading,var(--text-title-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-medium--font-weight))}}@media not all and (width>=601px){.max-compact\:ml-0{margin-left:0}.max-compact\:w-full{width:100%}.max-compact\:flex-col{flex-direction:column}.max-compact\:items-start{align-items:flex-start}.max-compact\:gap-3{gap:calc(var(--spacing) * 3)}.max-compact\:p-4{padding:calc(var(--spacing) * 4)}}@media not all and (width>=560px){.max-plain-stat-single\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}}@media not all and (width>=40rem){.max-sm\:-mx-4{margin-inline:calc(var(--spacing) * -4)}.max-sm\:size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.max-sm\:h-65{height:calc(var(--spacing) * 65)}.max-sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.max-sm\:justify-start{justify-content:flex-start}.max-sm\:gap-1\.5{gap:calc(var(--spacing) * 1.5)}.max-sm\:gap-2{gap:calc(var(--spacing) * 2)}.max-sm\:p-4{padding:calc(var(--spacing) * 4)}.max-sm\:px-3{padding-inline:calc(var(--spacing) * 3)}.max-sm\:px-4{padding-inline:calc(var(--spacing) * 4)}.max-sm\:py-2{padding-block:calc(var(--spacing) * 2)}.max-sm\:pb-3{padding-bottom:calc(var(--spacing) * 3)}}@media (width>=600px){.review-tight\:w-review-cover{width:var(--container-review-cover)}}@media (width>=900px){.review-split\:sticky{position:sticky}.review-split\:top-topbar{top:var(--spacing-topbar)}.review-split\:w-review-tabs{width:var(--container-review-tabs)}.review-split\:shrink-0{flex-shrink:0}.review-split\:flex-col{flex-direction:column}.review-split\:flex-row-reverse{flex-direction:row-reverse}.review-split\:items-start{align-items:flex-start}.review-split\:items-stretch{align-items:stretch}.review-split\:gap-6{gap:calc(var(--spacing) * 6)}}@media (width>=40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:gap-4{gap:calc(var(--spacing) * 4)}}@media (width>=48rem){.md\:w-64{width:calc(var(--spacing) * 64)}.md\:w-72{width:calc(var(--spacing) * 72)}.md\:w-80{width:calc(var(--spacing) * 80)}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:gap-6{gap:calc(var(--spacing) * 6)}.md\:pr-6{padding-right:calc(var(--spacing) * 6)}.md\:pb-0{padding-bottom:0}}@media (width>=64rem){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width>=80rem){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}}@container (width>=28rem){.\@md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width>=32rem){.\@lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.dark\:bg-background-primary-default:where(.dark,.dark *){background-color:var(--color-background-primary-default)}.dark\:bg-background-secondary-default:where(.dark,.dark *){background-color:var(--color-background-secondary-default)}.dark\:text-border:where(.dark,.dark *),.dark\:text-border\/50:where(.dark,.dark *){color:var(--color-separator-border)}@supports (color:color-mix(in lab, red, red)){.dark\:text-border\/50:where(.dark,.dark *){color:color-mix(in oklab, var(--color-separator-border) 50%, transparent)}}@media (hover:hover){.dark\:hover\:bg-background-primary-hover:where(.dark,.dark *):hover{background-color:var(--color-background-primary-hover)}}.dark\:aria-selected\:bg-background-primary-hover:where(.dark,.dark *)[aria-selected=true],.dark\:data-selected\:bg-background-primary-hover:where(.dark,.dark *)[data-selected]{background-color:var(--color-background-primary-hover)}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:var(--color-text-secondary)}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke=\#ccc]{stroke:var(--color-separator-border)}@supports (color:color-mix(in lab, red, red)){.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke=\#ccc]{stroke:color-mix(in oklab, var(--color-separator-border) 50%, transparent)}}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:var(--color-separator-border)}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke=\#fff]{stroke:#0000}.\[\&_\.recharts-layer\]\:outline-hidden .recharts-layer{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-layer\]\:outline-hidden .recharts-layer{outline-offset:2px;outline:2px solid #0000}}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke=\#ccc]{stroke:var(--color-separator-border)}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:var(--color-chart-track)}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke=\#ccc]{stroke:var(--color-separator-border)}.\[\&_\.recharts-sector\]\:outline-hidden .recharts-sector{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-sector\]\:outline-hidden .recharts-sector{outline-offset:2px;outline:2px solid #0000}}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke=\#fff]{stroke:#0000}.\[\&_\.recharts-surface\]\:outline-hidden .recharts-surface{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-surface\]\:outline-hidden .recharts-surface{outline-offset:2px;outline:2px solid #0000}}.\[\&_img\]\:absolute img{position:absolute}.\[\&_img\]\:inset-0 img{inset:0}.\[\&_img\]\:block img{display:block}.\[\&_img\]\:size-full img{width:100%;height:100%}.\[\&_img\]\:max-h-none img{max-height:none}.\[\&_img\]\:max-w-none img{max-width:none}.\[\&_img\]\:object-cover img{object-fit:cover}.\[\&_img\]\:object-\(--face\) img{object-position:var(--face)}.\[\&\>svg\]\:h-2\.5>svg{height:calc(var(--spacing) * 2.5)}.\[\&\>svg\]\:h-3>svg{height:calc(var(--spacing) * 3)}.\[\&\>svg\]\:w-2\.5>svg{width:calc(var(--spacing) * 2.5)}.\[\&\>svg\]\:w-3>svg{width:calc(var(--spacing) * 3)}.\[\&\>svg\]\:text-muted-foreground>svg{color:var(--color-text-secondary)}@scope(.peach-react){*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}:root{--color-foreground-full:var(--color-white);--color-foreground-icon-primary:var(--color-neutral-950);--color-foreground-icon-hover:var(--color-black);--color-foreground-icon-secondary:var(--color-neutral-500);--color-foreground-icon-tertiary:var(--color-neutral-400);--color-foreground-icon-quaternary:var(--color-neutral-300);--color-foreground-icon-error:var(--color-red-600);--color-foreground-icon-disabled:var(--color-neutral-300);--color-foreground-disabled:var(--color-neutral-400);--color-foreground-disabled-danger:var(--color-red-300);--color-input-disabled-foreground:var(--color-neutral-300);--color-icon-button-disabled-foreground:var(--color-neutral-300);--color-button-primary-disabled-foreground:var(--color-neutral-400);--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-disabled-danger:var(--color-red-300);--color-text-placeholder:var(--color-neutral-400);--color-text-error-primary:var(--color-red-500);--color-input-disabled-text:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-inner-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-primary-active:var(--color-neutral-200);--color-background-primary-disabled:var(--color-neutral-100);--color-input-disabled-background:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-secondary-hover:var(--color-neutral-200);--color-background-tertiary-default:var(--color-neutral-200);--color-background-tertiary-hover:var(--color-neutral-300);--color-background-tertiary-error:var(--color-red-100);--color-background-recent-hire-role:var(--color-neutral-100);--color-avatar-neutral-background:var(--color-neutral-300);--color-background-quaternary-default:var(--color-neutral-300);--color-background-quaternary-hover:var(--color-neutral-400);--color-background-quaternary-error:var(--color-red-200);--color-file-upload-icon-background:var(--color-neutral-300);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-500);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-button-white:var(--color-white);--color-border-error-default:var(--color-red-500);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-checkbox-active:var(--color-neutral-400);--color-border-checkbox-white:var(--color-white);--color-border-component-detail-container:var(--color-neutral-200);--color-border-ai-profile-card:var(--color-neutral-200);--color-border-table:var(--color-neutral-200);--color-border-button-group:var(--color-neutral-200);--color-border-sidebar-profile-hover:var(--color-neutral-300);--color-separator-border:var(--color-neutral-200);--color-separator-border-strong:var(--color-neutral-200);--color-border-focus-ring:var(--color-accent-500);--color-state-success-text:var(--color-lime-800);--color-state-success-base:var(--color-lime-200);--color-control-indicator-background:var(--color-white);--color-control-indicator-background-subtle:var(--color-neutral-100);--color-switch-off-chip-start:var(--color-white);--color-switch-off-chip-end:var(--color-neutral-100);--color-switch-on-chip-start:#2673fe}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-start:color-mix(in oklab, var(--color-accent-500) 63%, var(--color-accent-600))}}:root{--color-switch-on-chip-end:#144be9}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-end:color-mix(in oklab, var(--color-accent-600) 16%, var(--color-accent-700))}}:root{--color-stat-card-icon-background:var(--color-white);--color-segmented-control-background:var(--color-neutral-100);--color-segmented-control-selected-background:var(--color-white);--color-theme-toggle-sidebar-background:var(--color-neutral-200);--color-theme-toggle-sidebar-selected-background:var(--color-white);--color-ai-chat-composer-add-background:var(--color-neutral-100);--color-ai-chat-composer-add-hover-background:var(--color-neutral-200);--color-composer-panel-tab-background:var(--color-neutral-200);--color-composer-panel-add-background:var(--color-neutral-200);--color-composer-panel-add-hover-background:var(--color-neutral-300);--color-composer-panel-tile-border:var(--color-neutral-200);--color-composer-panel-rail-background:var(--color-neutral-100);--color-questionnaire-key-background:var(--color-neutral-100);--color-questionnaire-key-hover-background:var(--color-neutral-200);--color-agent-progress-ring:var(--color-neutral-700);--color-button-ghost-background:var(--color-accent-100);--color-button-ghost-hover:var(--color-accent-200);--color-button-ghost-active:var(--color-accent-300);--color-button-ghost-disabled:var(--color-accent-50);--color-button-ghost-foreground:var(--color-accent-700);--color-button-ghost-disabled-foreground:var(--color-accent-300);--color-dropdown-item-hover-background:var(--color-neutral-100);--color-kbd-background:var(--color-neutral-300);--color-kbd-foreground:var(--color-neutral-500);--color-docs-file-chip-background:var(--color-purple-50);--color-docs-file-chip-border:var(--color-purple-100);--color-docs-file-chip-foreground:var(--color-purple-500);--color-docs-command-accent:var(--color-purple-400);--color-docs-code-background:var(--color-background-primary-default);--color-docs-install-rail:var(--color-border-button-default);--color-badge-neutral-background:var(--color-neutral-200);--color-team-menu-count-background:var(--color-neutral-200);--color-team-menu-count-foreground:var(--color-neutral-500);--color-badge-new-background:var(--color-accent-100);--color-badge-new-text:var(--color-accent-600);--color-tab-count-selected-background:var(--color-accent-100);--color-pill-tab-blue-selected-background:var(--color-accent-50);--color-pill-tab-blue-hover-background:var(--color-neutral-100);--color-notification-information-background:var(--color-blue-100);--color-notification-information-foreground:var(--color-blue-600);--color-notification-success-background:var(--color-lime-100);--color-notification-success-foreground:var(--color-lime-600);--color-notification-error-background:var(--color-rose-100);--color-notification-error-foreground:var(--color-rose-600);--color-notification-center-background:var(--color-white);--color-status-lime-background:var(--color-lime-200);--color-status-lime-text:var(--color-lime-800);--color-status-yellow-background:var(--color-yellow-200);--color-status-yellow-text:var(--color-yellow-800);--color-status-rose-background:var(--color-rose-200);--color-status-rose-text:var(--color-rose-800);--color-status-cyan-background:var(--color-cyan-200);--color-status-cyan-text:var(--color-cyan-800);--color-status-blue-background:var(--color-blue-200);--color-status-blue-text:var(--color-blue-800);--color-status-purple-background:var(--color-purple-100);--color-status-purple-text:var(--color-purple-600);--color-status-dot-green-halo:var(--color-green-100);--color-status-dot-yellow-halo:var(--color-yellow-200);--color-status-dot-indigo-halo:var(--color-indigo-100);--color-date-range-background:var(--color-accent-100);--color-date-range-edge-background:var(--color-accent-300);--color-calendar-event-blue-background:var(--color-blue-100);--color-calendar-event-blue-title:var(--color-blue-700);--color-calendar-event-blue-time:var(--color-blue-700);--color-calendar-event-pink-background:var(--color-pink-100);--color-calendar-event-pink-title:var(--color-pink-700);--color-calendar-event-pink-time:var(--color-pink-700);--color-calendar-event-purple-background:var(--color-purple-100);--color-calendar-event-purple-title:var(--color-purple-700);--color-calendar-event-purple-time:var(--color-purple-700);--color-calendar-event-lime-background:var(--color-lime-100);--color-calendar-event-lime-title:var(--color-lime-800);--color-calendar-event-lime-time:var(--color-lime-700);--color-calendar-event-emerald-background:var(--color-emerald-100);--color-calendar-event-emerald-title:var(--color-emerald-800);--color-calendar-event-emerald-time:var(--color-emerald-700);--color-text-error-placeholder:var(--color-red-400);--color-chart-track:var(--color-neutral-200);--color-chart-cursor:var(--color-neutral-300);--color-chart-neutral:var(--color-neutral-300);--color-chart-1:var(--color-teal-400);--color-chart-1-active:var(--color-teal-500);--color-chart-2:var(--color-lime-400);--color-chart-2-active:var(--color-lime-500);--color-chart-3:var(--color-pink-400);--color-chart-3-active:var(--color-pink-500);--color-chart-4:var(--color-sky-400);--color-chart-4-active:var(--color-sky-500);--color-chart-5:var(--color-purple-400);--color-chart-5-active:var(--color-purple-500);--color-chart-6:var(--color-blue-400);--color-chart-6-active:var(--color-blue-500);--color-chart-7:var(--color-emerald-400);--color-chart-7-active:var(--color-emerald-500);--color-chart-8:var(--color-yellow-400);--color-chart-8-active:var(--color-yellow-500);--color-chart-9:var(--color-indigo-400);--color-chart-9-active:var(--color-indigo-500);--color-chart-agents-bar:var(--color-purple-300);--color-chart-agents-bar-active:var(--color-purple-400);--gradient-button-primary-default:linear-gradient(180deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%);--gradient-button-primary-hover:linear-gradient(180deg, var(--color-accent-400) 0%, var(--color-accent-500) 100%);--gradient-button-primary-active:linear-gradient(180deg, var(--color-accent-600) 0%, var(--color-accent-700) 100%);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-200) 0%, var(--color-neutral-300) 100%);--gradient-button-danger-default:linear-gradient(180deg, var(--color-red-500) 0%, var(--color-red-600) 100%);--gradient-button-danger-hover:linear-gradient(180deg, var(--color-red-400) 0%, var(--color-red-500) 100%);--gradient-button-danger-active:linear-gradient(180deg, var(--color-red-600) 0%, var(--color-red-700) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-100) 0%, var(--color-red-200) 100%)}.dark{--color-foreground-full:var(--color-neutral-700);--color-foreground-icon-primary:var(--color-neutral-50);--color-foreground-icon-hover:var(--color-white);--color-foreground-icon-error:var(--color-red-400);--color-foreground-icon-tertiary:var(--color-neutral-600);--color-foreground-icon-quaternary:var(--color-neutral-700);--color-foreground-icon-disabled:var(--color-neutral-800);--color-foreground-disabled:var(--color-neutral-700);--color-foreground-disabled-danger:var(--color-red-400);--color-input-disabled-foreground:var(--color-neutral-600);--color-icon-button-disabled-foreground:var(--color-neutral-500);--color-button-primary-disabled-foreground:var(--color-neutral-500);--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-text-error-primary:var(--color-red-400);--color-input-disabled-text:#73737366}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-text:color-mix(in srgb, var(--color-neutral-500) 40%, transparent)}}.dark{--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-inner-default:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-inner-default:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-background-primary-active:var(--color-neutral-800);--color-background-primary-disabled:var(--color-neutral-800);--color-input-disabled-background:#2626264d}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-background:color-mix(in srgb, var(--color-neutral-800) 30%, transparent)}}.dark{--color-switch-off-chip-start:var(--color-background-tertiary-default);--color-switch-off-chip-end:var(--color-background-tertiary-default);--color-background-secondary-default:var(--color-neutral-900);--color-background-secondary-hover:var(--color-neutral-800);--color-background-tertiary-default:var(--color-neutral-800);--color-background-tertiary-hover:var(--color-neutral-700);--color-background-tertiary-error:#46080999}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-tertiary-error:color-mix(in srgb, var(--color-red-950) 60%, transparent)}}.dark{--color-background-quaternary-default:var(--color-neutral-700);--color-background-quaternary-hover:var(--color-neutral-600);--color-background-recent-hire-role:#17171799}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-recent-hire-role:color-mix(in srgb, var(--color-neutral-900) 60%, transparent)}}.dark{--color-avatar-neutral-background:var(--color-background-primary-default);--color-file-upload-icon-background:var(--color-neutral-600);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-300);--color-stat-card-icon-background:var(--color-neutral-800);--color-segmented-control-background:var(--color-neutral-925);--color-segmented-control-selected-background:var(--color-neutral-800);--color-theme-toggle-sidebar-background:var(--color-neutral-800);--color-theme-toggle-sidebar-selected-background:var(--color-neutral-700);--color-ai-chat-composer-add-background:var(--color-neutral-700);--color-ai-chat-composer-add-hover-background:var(--color-neutral-600);--color-composer-panel-tab-background:#40404080}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tab-background:color-mix(in srgb, var(--color-neutral-700) 50%, transparent)}}.dark{--color-composer-panel-add-background:var(--color-neutral-700);--color-composer-panel-add-hover-background:var(--color-neutral-600);--color-composer-panel-tile-border:#ffffff24}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tile-border:color-mix(in srgb, var(--color-white) 14%, transparent)}}.dark{--color-composer-panel-rail-background:#17171780}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-rail-background:color-mix(in srgb, var(--color-neutral-900) 50%, transparent)}}.dark{--color-questionnaire-key-background:var(--color-neutral-700);--color-questionnaire-key-hover-background:var(--color-neutral-600);--color-agent-progress-ring:#ffffff80}@supports (color:color-mix(in lab, red, red)){.dark{--color-agent-progress-ring:color-mix(in srgb, var(--color-white) 50%, transparent)}}.dark{--color-button-ghost-background:var(--color-accent-900);--color-button-ghost-hover:var(--color-accent-800);--color-button-ghost-active:var(--color-accent-700);--color-button-ghost-disabled:var(--color-neutral-800);--color-button-ghost-foreground:var(--color-accent-300);--color-button-ghost-disabled-foreground:var(--color-neutral-600);--color-dropdown-item-hover-background:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-dropdown-item-hover-background:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-kbd-background:var(--color-neutral-700);--color-kbd-foreground:var(--color-neutral-400);--color-docs-file-chip-background:#3c036680}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-file-chip-background:color-mix(in srgb, var(--color-purple-950) 50%, transparent)}}.dark{--color-docs-file-chip-border:var(--color-purple-800);--color-docs-file-chip-foreground:var(--color-purple-400);--color-docs-code-background:var(--color-background-full);--color-docs-install-rail:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-install-rail:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--shadow-2xs:0 1px #00000029;--shadow-xs:0 1px 2px 0 #0000002e;--shadow-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--shadow-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--shadow-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--shadow-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--shadow-card:0 1px 1px 0 #00000024;--shadow-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--shadow-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--shadow-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014;--color-badge-neutral-background:var(--color-neutral-800);--color-team-menu-count-background:var(--color-neutral-700);--color-team-menu-count-foreground:var(--color-neutral-400);--color-badge-new-background:var(--color-accent-950);--color-badge-new-text:var(--color-accent-400);--color-tab-count-selected-background:#193cb899}@supports (color:color-mix(in lab, red, red)){.dark{--color-tab-count-selected-background:color-mix(in srgb, var(--color-accent-800) 60%, transparent)}}.dark{--color-notification-information-background:#193cb880}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-information-background:color-mix(in srgb, var(--color-blue-800) 50%, transparent)}}.dark{--color-notification-information-foreground:var(--color-blue-300);--color-notification-success-background:#3d630080}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-success-background:color-mix(in srgb, var(--color-lime-800) 50%, transparent)}}.dark{--color-notification-success-foreground:var(--color-lime-300);--color-notification-error-background:#a3003780}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-error-background:color-mix(in srgb, var(--color-rose-800) 50%, transparent)}}.dark{--color-notification-error-foreground:var(--color-rose-300);--color-notification-center-background:var(--color-neutral-900);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-button-white:var(--color-zinc-800);--color-border-error-default:var(--color-red-400);--color-border-checkbox-default:var(--color-neutral-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-border-checkbox-active:var(--color-neutral-500);--color-border-component-detail-container:var(--color-neutral-800);--color-border-ai-profile-card:var(--color-neutral-800);--color-border-table:var(--color-neutral-800);--color-border-button-group:#52525299}@supports (color:color-mix(in lab, red, red)){.dark{--color-border-button-group:color-mix(in srgb, var(--color-neutral-600) 60%, transparent)}}.dark{--color-border-sidebar-profile-hover:var(--color-neutral-600);--color-separator-border:var(--color-neutral-800);--color-separator-border-strong:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-separator-border-strong:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-status-lime-background:#192e0399}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-lime-background:color-mix(in srgb, var(--color-lime-950) 60%, transparent)}}.dark{--color-status-lime-text:var(--color-lime-500);--color-status-yellow-background:#43200499}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-yellow-background:color-mix(in srgb, var(--color-yellow-950) 60%, transparent)}}.dark{--color-status-yellow-text:var(--color-yellow-500);--color-status-rose-background:#4d021899}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-rose-background:color-mix(in srgb, var(--color-rose-950) 60%, transparent)}}.dark{--color-status-rose-text:var(--color-rose-500);--color-status-cyan-background:#05334599}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-cyan-background:color-mix(in srgb, var(--color-cyan-950) 60%, transparent)}}.dark{--color-status-cyan-text:var(--color-cyan-400);--color-status-blue-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-blue-background:color-mix(in srgb, var(--color-blue-950) 60%, transparent)}}.dark{--color-status-blue-text:var(--color-blue-300);--color-status-purple-background:#59168b80}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-purple-background:color-mix(in srgb, var(--color-purple-900) 50%, transparent)}}.dark{--color-status-purple-text:var(--color-purple-300);--color-status-dot-green-halo:#01663066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-green-halo:color-mix(in srgb, var(--color-green-800) 40%, transparent)}}.dark{--color-status-dot-yellow-halo:#874b0066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-yellow-halo:color-mix(in srgb, var(--color-yellow-800) 40%, transparent)}}.dark{--color-status-dot-indigo-halo:#372aac66}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-indigo-halo:color-mix(in srgb, var(--color-indigo-800) 40%, transparent)}}.dark{--color-date-range-background:var(--color-accent-950);--color-date-range-edge-background:var(--color-accent-800);--color-pill-tab-blue-selected-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-pill-tab-blue-selected-background:color-mix(in srgb, var(--color-accent-950) 60%, transparent)}}.dark{--color-pill-tab-blue-hover-background:var(--color-neutral-800);--color-calendar-event-blue-background:var(--color-blue-950);--color-calendar-event-blue-title:var(--color-blue-300);--color-calendar-event-blue-time:var(--color-blue-300);--color-calendar-event-pink-background:var(--color-pink-950);--color-calendar-event-pink-title:var(--color-pink-300);--color-calendar-event-pink-time:var(--color-pink-300);--color-calendar-event-purple-background:var(--color-purple-950);--color-calendar-event-purple-title:var(--color-purple-300);--color-calendar-event-purple-time:var(--color-purple-300);--color-calendar-event-lime-background:var(--color-lime-950);--color-calendar-event-lime-title:var(--color-lime-300);--color-calendar-event-lime-time:var(--color-lime-300);--color-calendar-event-emerald-background:var(--color-emerald-950);--color-calendar-event-emerald-title:var(--color-emerald-300);--color-calendar-event-emerald-time:var(--color-emerald-300);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-700) 0%, var(--color-neutral-800) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-900) 0%, var(--color-red-950) 100%);--color-chart-track:var(--color-neutral-800);--color-chart-cursor:var(--color-neutral-700);--color-chart-neutral:var(--color-neutral-800);--color-chart-agents-bar:var(--color-purple-500);--color-chart-agents-bar-active:var(--color-purple-600)}.dark[data-accent]{--color-badge-new-background:#16245680}@supports (color:color-mix(in lab, red, red)){.dark[data-accent]{--color-badge-new-background:color-mix(in srgb, var(--color-accent-950) 50%, transparent)}}.peach-react [data-media-sections]{flex-direction:column;gap:16px;min-width:0;display:flex}.peach-react [data-media-grid]{grid-template-columns:repeat(auto-fill, minmax(var(--tile), 1fr));gap:24px 16px;display:grid}.peach-react [data-media-grid]>[data-media-card]:not([data-variant=resource],[data-variant=junk]){align-self:start}body[data-surface=\/trash] .peach-react [data-media-grid]>[data-media-card]{align-self:stretch}.peach-react [data-media-next-row]{gap:11px;display:flex}body[data-surface=\/trash] .peach-react [data-media-grid]{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:20px}.peach-react [data-media-card]{font:var(--board-body);border-radius:var(--surface-radius);cursor:pointer;transform-origin:50%;background:0 0;flex-direction:column;gap:8px;min-width:0;transition:transform .18s,filter .18s,background-color .15s,box-shadow .15s;display:flex;position:relative;overflow:visible}.peach-react [data-media-card][data-variant=short]{flex:none;width:214px}.peach-react [data-media-card][data-variant=next]{flex:none;width:216px}body[data-density=dense] .peach-react [data-media-card][data-variant=short]{width:107px}.peach-react [data-media-card]:not([data-variant=resource],[data-variant=junk]):is(:hover,:focus-within){background:var(--hover);box-shadow:0 0 0 8px var(--hover)}.peach-react [data-media-card]:not([data-variant=resource],[data-variant=junk]):hover [data-media-pic]{filter:saturate(.9)brightness(.94)}.peach-react [data-select-mode] [data-media-card]{cursor:default}.peach-react [data-select-mode] :is([data-media-open],[data-media-preview],[data-media-later],[data-media-seek]),.peach-react [data-select-mode] :is([data-media-later],[data-media-seek]) button{pointer-events:none!important}@media (hover:hover) and (pointer:fine){.peach-react [data-media-card][data-longhover]{z-index:8;filter:brightness(1.04);transform:translateY(-7px)scale(1.065)}}body[data-surface=\/trash] .peach-react [data-media-card]{border:1px solid var(--line-soft);background:var(--color-background-primary-default);gap:0;overflow:hidden}body[data-surface=\/trash] .peach-react [data-media-card] [data-media-pic]{border-radius:0}.peach-react [data-media-open]{z-index:1;border-radius:inherit;cursor:pointer;background:0 0;border:0;padding:0;position:absolute;inset:0}.peach-react [data-media-open]:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-media-card]>:is([data-media-pic],[data-media-stack],[data-media-meta]){z-index:2;position:relative}.peach-react [data-media-meta]{--card-meta-byline:1lh;--card-meta-tags:0px;--card-meta-block:calc(var(--fs-md) * 2.7 + 3px + var(--card-meta-byline) + var(--card-meta-tags))}.peach-react [data-media-meta]:has(>[data-media-text]>[data-media-tags]){--card-meta-tags:calc(var(--fs-xs) * 1.45 + var(--tag-pad-y) * 2 + 2px + 3px)}.peach-react [data-media-card]:not([data-variant=next]) :is([data-media-pic],[data-media-meta]){content-visibility:auto}.peach-react [data-media-card]:not([data-variant=next]) [data-media-meta]{pointer-events:none;contain-intrinsic-block-size:auto var(--card-meta-block);flex-shrink:0;margin:-8px;padding:8px}.peach-react [data-media-card]:not([data-variant=next]) [data-media-meta]>*{pointer-events:auto}.peach-react [data-media-pic]{aspect-ratio:var(--card-ratio,16 / 9);border-radius:var(--surface-radius);background:#000;justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.peach-react [data-media-pic]:before{content:"";pointer-events:none;background:var(--cover-blur,none) center / cover no-repeat;filter:blur(26px)brightness(.5);position:absolute;inset:-8%}.peach-react [data-media-pic]:has(>[data-media-art=cover]){background:0 0}.peach-react [data-media-stack] [data-media-pic]:has(>[data-media-art=cover]){background:var(--page)}.peach-react [data-media-card][data-selected] [data-media-pic]:after{content:"";z-index:6;box-sizing:border-box;border:2px solid var(--on-media);border-radius:inherit;pointer-events:none;position:absolute;inset:0}.peach-react [data-media-art]{display:block;position:absolute;inset:0}.peach-react [data-media-nopic]{color:var(--muted);font-size:var(--fs-xs);letter-spacing:.12em;text-transform:uppercase}.peach-react [data-media-pic]>:is(video,img){object-fit:contain;background:#000;width:100%;height:100%;display:block;position:absolute;inset:0}.peach-react [data-media-pic]>video{opacity:0;transition:opacity .2s}.peach-react [data-media-pic]>video[data-playing]{opacity:1}.peach-react [data-media-stack]{isolation:isolate;border-radius:var(--surface-radius);position:relative}.peach-react [data-media-stack]:before,.peach-react [data-media-stack]:after{content:"";z-index:0;border:1px solid var(--border-15);border-radius:inherit;background:var(--surface);position:absolute}@supports (color:color-mix(in lab, red, red)){.peach-react [data-media-stack]:before,.peach-react [data-media-stack]:after{background:color-mix(in srgb, var(--surface) 84%, var(--video-glow,#15202a))}}.peach-react [data-media-stack]:before{opacity:.54;inset:0 12px 8px;transform:translateY(-7px)}.peach-react [data-media-stack]:after{opacity:.78;inset:0 6px 4px;transform:translateY(-4px)}.peach-react [data-media-stack] [data-media-pic]{z-index:1}.peach-react [data-media-badge]{z-index:2;background:var(--glass-fill);min-height:24px;box-shadow:inset 0 1px 0 var(--glass-rim), var(--glass-shadow);-webkit-backdrop-filter:blur(16px)saturate(145%);backdrop-filter:blur(16px)saturate(145%);color:var(--color-text-secondary);font:var(--board-caption);white-space:nowrap;border-radius:10px;justify-content:center;align-items:center;gap:4px;padding:4px;transition:opacity .15s;display:flex;position:absolute;top:6px;left:6px}.peach-react [data-media-badge]>span{background:0 0;width:20px;height:20px;padding:0}.peach-react [data-media-duration]{z-index:2;border-radius:var(--badge-radius);color:#f2eadf;font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums;background:#000000b3;padding:2px 6px;transition:opacity .15s;position:absolute;bottom:6px;right:6px}@media (hover:hover) and (pointer:fine){.peach-react [data-media-card]:hover :is([data-media-badge],[data-media-duration]){opacity:0}}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.peach-react [data-media-badge]{background:var(--ground);-webkit-backdrop-filter:none}}.peach-react [data-media-group]{z-index:6;border-radius:var(--control-radius);color:#fff;min-height:27px;font-size:var(--fs-xs);-webkit-backdrop-filter:blur(10px);background:#0c0808b8;padding:5px 9px;font-weight:600;position:absolute;top:9px;right:9px}.peach-react [data-media-scrub]{z-index:2;background:#00000073;height:3px;position:absolute;bottom:0;left:0;right:0}.peach-react [data-media-scrub]>i{width:var(--media-fill);background:var(--loupe);height:100%;display:block}.peach-react [data-media-progress]{z-index:5;background:#ffffff4d;height:4px;position:absolute;bottom:0;left:0;right:0}.peach-react [data-media-progress]>i{width:var(--media-fill);background:var(--tungsten);height:100%;display:block}.peach-react [data-media-check]{z-index:8;color:#ffffffb8;-webkit-backdrop-filter:saturate(1.8)blur(12px);background:#00000057;border:1px solid #ffffff47;border-radius:50%;place-items:center;width:26px;height:26px;display:none;position:absolute;top:10px;right:10px}.peach-react :is([data-select-mode] [data-media-check],[data-media-card][data-selected] [data-media-check]){display:grid}.peach-react [data-media-card][data-selected] [data-media-check]{border-color:var(--on-media);background:var(--on-media);color:var(--on-media-ink);box-shadow:0 3px 12px #0008}.peach-react [data-media-trash-mark]{z-index:7;border-radius:var(--badge-radius);color:#ffb14a;height:28px;font-size:var(--fs-xs);-webkit-backdrop-filter:saturate(1.8)blur(12px);background:#00000094;border:1px solid #ffb14a66;align-items:center;gap:5px;padding:0 9px;font-weight:600;display:none;position:absolute;bottom:10px;left:10px}.peach-react [data-pending-delete] [data-media-trash-mark]{display:flex}.peach-react [data-pending-delete] :is([data-media-art]>img,[data-media-pic]>:is(video,img)){filter:grayscale(.9)brightness(.54);opacity:.68}.peach-react [data-pending-delete] [data-media-pic]:before{filter:blur(26px)grayscale(.9)brightness(.27);opacity:.68}.peach-react [data-pending-delete] [data-media-meta]{opacity:.58}.peach-react [data-pending-delete]:hover [data-media-meta]{opacity:.76}.peach-react [data-media-card] :is([data-media-check],[data-media-trash-mark],[data-media-later],[data-media-seek],[data-media-glyph],[data-media-kind-glyph],[data-media-resource-action]) svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}.peach-react [data-media-check] svg{width:16px;height:16px}.peach-react [data-media-trash-mark] svg{width:14px;height:14px}.peach-react [data-media-preview]{z-index:4;color:#fff;cursor:pointer;opacity:0;pointer-events:none;-webkit-backdrop-filter:saturate(180%)blur(12px);background:#0000003d;border:0;border-radius:50%;place-items:center;width:36px;height:36px;padding:0;transition:transform .15s,opacity .15s;display:grid;position:absolute;top:12px;right:12px}.peach-react [data-previewing] [data-media-preview]{opacity:1;pointer-events:auto}.peach-react [data-longhover] [data-media-preview]{opacity:0;pointer-events:none}.peach-react [data-media-preview]:hover{transform:scale(1.2)}.peach-react [data-media-preview]>svg:first-child{width:36px;height:36px;position:absolute;inset:0;transform:rotate(-90deg)}.peach-react [data-media-preview] circle{fill:none;stroke-width:2px}.peach-react [data-media-preview] circle:first-child{stroke:#ffffff2e}.peach-react [data-media-preview] circle:last-child{stroke:#fff;stroke-linecap:round;stroke-dasharray:106.814;stroke-dashoffset:106.814px}.peach-react [data-previewing] [data-media-preview] circle:last-child{animation:preview-arc var(--hover-delay) linear forwards}.peach-react [data-longhover] [data-media-preview] circle:last-child{animation:none}@keyframes preview-arc{to{stroke-dashoffset:0}}.peach-react [data-media-ring-play]{fill:none;stroke:#fff;stroke-width:2px;width:14px;height:14px;margin-left:1px;position:relative}.peach-react :is([data-media-later],[data-media-seek]){z-index:4;opacity:0;pointer-events:none;align-items:center;gap:14px;transition:opacity .15s;display:flex;position:absolute}.peach-react [data-media-seek]{inset:50% auto auto 50%;transform:translate(-50%,-50%)}.peach-react [data-media-later]{bottom:12px;right:12px}.peach-react :is([data-longhover] [data-media-seek],[data-media-card]:hover [data-media-later]){opacity:1}.peach-react :is([data-media-later],[data-media-seek]) button{color:#fff;cursor:pointer;pointer-events:none;-webkit-backdrop-filter:saturate(180%)blur(12px);background:#0000003d;border:1px solid #ffffff1f;border-radius:50%;justify-content:center;align-items:center;width:58px;height:58px;transition:transform .15s,background .15s;display:flex;position:relative}.peach-react :is([data-longhover] [data-media-seek],[data-media-card]:hover [data-media-later]) button{pointer-events:auto}.peach-react :is([data-media-later],[data-media-seek]) button:hover{background:#00000057;transform:scale(1.12)}.peach-react [data-media-seek] svg{width:34px;height:34px}.peach-react [data-media-later] button{width:36px;height:36px;padding:0}.peach-react [data-media-later] svg{width:21px;height:21px}.peach-react [data-media-later] button[aria-pressed=true]{background:var(--ink);color:var(--ground)}.peach-react [data-media-meta]{gap:10px;min-width:0;display:flex}.peach-react [data-media-avatar]{background:var(--sunk);width:38px;height:38px;color:inherit;cursor:pointer;border:0;border-radius:50%;flex:none;margin-top:2px;padding:0;position:relative;overflow:hidden}.peach-react button[data-media-avatar]:hover{box-shadow:0 0 0 2px var(--ink-2)}.peach-react [data-media-avatar]>img{object-fit:cover;width:100%;max-width:none;height:100%;max-height:none;display:block;position:absolute;inset:0}.peach-react [data-media-avatar]>span:first-child{color:var(--muted);font-family:Bahnschrift,Microsoft YaHei UI,Microsoft YaHei,PingFang SC,sans-serif;font-size:var(--fs-sm);justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.peach-react [data-media-avatars]{--lift-motion:calc(var(--spring-press-ms) * 1ms) var(--spring-press);flex:none;max-width:calc(100% - 48px);margin:-4px -2px -2px;padding:6px 2px 2px 5px;display:flex}.peach-react [data-media-avatars]:has(:is(:hover,:focus-visible)){--lift-motion:var(--board-motion)}.peach-react [data-media-avatars]>[data-media-avatar]{box-shadow:0 0 0 2px var(--ground);transform:translate(var(--lift-x,0), var(--lift-y,0)) scale(var(--lift-scale,1));transition:transform var(--lift-motion,var(--board-motion));margin-top:0}.peach-react [data-media-avatars]>*+*{margin-left:-22px}.peach-react [data-media-avatars]>:first-child{z-index:5}.peach-react [data-media-avatars]>:nth-child(2){z-index:4}.peach-react [data-media-avatars]>:nth-child(3){z-index:3}.peach-react [data-media-avatars]>:nth-child(4){z-index:2}.peach-react [data-media-avatars]>:nth-child(5){z-index:1}.peach-react [data-media-avatars]>:is(:hover,:focus-visible){z-index:6;box-shadow:0 0 0 2px var(--ink-2);--lift-y:-4px;--lift-scale:1.05}.peach-react [data-media-avatars]>:is(:hover,:focus-visible)+*{--lift-y:-1.8px;--lift-x:10px}.peach-react [data-media-avatars]>:is(:hover,:focus-visible)+*+*{--lift-y:-.81px;--lift-x:20px}.peach-react [data-media-avatars]>:is(:hover,:focus-visible)+*+*+*{--lift-x:30px}.peach-react [data-media-avatars]>:is(:hover,:focus-visible)+*+*+*+*{--lift-x:40px}.peach-react [data-variant=next] [data-media-avatars]>:nth-child(n+3){display:none}.peach-react [data-media-text]{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.peach-react [data-media-title]{width:100%;min-height:2.7em;max-height:2.7em;color:inherit;font-size:var(--fs-md);text-align:left;word-break:break-all;cursor:pointer;-webkit-line-clamp:2;background:0 0;border:0;-webkit-box-orient:vertical;padding:0;line-height:1.35;display:-webkit-box;overflow:hidden}.peach-react span[data-media-title]{cursor:default}.peach-react [data-media-byline]{color:var(--muted);font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums;flex-wrap:wrap;align-items:center;gap:8px;display:flex}.peach-react [data-media-who]{min-width:0;max-width:100%;color:var(--ink-2);text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom;background:0 0;border:0;padding:0;display:inline-block;overflow:hidden}.peach-react button[data-media-who]{cursor:pointer}.peach-react span[data-media-who]{cursor:default}.peach-react [data-media-who-more]{color:var(--muted)}.peach-react [data-media-flags]{gap:3px;margin-left:auto;display:flex}.peach-react [data-media-flags]>i{width:6px;height:6px;display:block}.peach-react [data-flag=dislike]{background:var(--drop)}.peach-react [data-flag=seen]{background:var(--muted)}.peach-react [data-flag=dispose]{background:var(--meter)}.peach-react [data-flag=later]{background:var(--ink)}.peach-react [data-variant=next] [data-media-why]{color:var(--loupe)}.peach-react [data-variant=next] [data-media-byline]{flex-wrap:nowrap;overflow:hidden}.peach-react [data-variant=next] [data-media-who]{flex:0 auto;max-width:55%}.peach-react [data-variant=next] [data-media-who-more]{white-space:nowrap;flex:none}.peach-react [data-variant=next] [data-media-why]{text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-width:0;overflow:hidden}.peach-react [data-variant=next] :is([data-media-size],[data-media-watch-count]){display:none}.peach-react [data-media-tags]{height:calc(var(--fs-xs) * 1.45 + var(--tag-pad-y) * 2 + 2px + 8px);pointer-events:none;flex-wrap:wrap;align-content:flex-start;gap:5px;min-width:0;margin:-4px;padding:4px;display:flex;overflow:hidden}.peach-react [data-media-tags]>*{pointer-events:auto}.peach-react [data-media-tag]{max-width:100%;padding:var(--tag-pad-y) var(--tag-pad-x);border:1px solid var(--line);border-radius:var(--tag-radius);background:var(--tag-fill);color:var(--ink-2);font-size:var(--fs-xs);text-overflow:ellipsis;white-space:nowrap;cursor:pointer;line-height:1.45;overflow:hidden}.peach-react [data-media-tag]:hover{background:var(--hover);color:var(--ink)}.peach-react [data-media-tag]:disabled{cursor:not-allowed}@media (width<=760px){.peach-react [data-media-tags]>:nth-child(n+3){display:none}}body[data-density=dense] .peach-react [data-media-grid]>[data-media-card]{padding-top:7px}body[data-density=dense] .peach-react [data-media-card] [data-media-meta]{--card-meta-block:calc(2.7em + 36px)}body[data-density=dense] .peach-react [data-media-card] [data-media-text]{height:calc(var(--card-meta-block) + 8px);pointer-events:none;grid-template-rows:1.35em 1.35em 30px;gap:3px;margin:-4px;padding:4px;display:grid;overflow:hidden}body[data-density=dense] .peach-react [data-media-card] [data-media-text]>:not([data-media-tags]){pointer-events:auto}body[data-density=dense] .peach-react [data-media-card] [data-media-title]{text-overflow:ellipsis;white-space:nowrap;-webkit-line-clamp:unset;max-width:100%;min-height:1.35em;display:block;overflow:hidden}body[data-density=dense] .peach-react [data-media-card] [data-media-byline]{white-space:nowrap;flex-wrap:nowrap;height:1.35em;min-height:0;overflow:hidden}body[data-density=dense] .peach-react [data-media-card] [data-media-who]{flex:0 auto}body[data-density=dense] .peach-react [data-media-card] :is([data-media-who-more],[data-media-size]){white-space:nowrap;flex:none}body[data-density=dense] .peach-react [data-media-card] :is([data-media-why],[data-media-watch-count]){display:none}body[data-density=dense] .peach-react [data-media-card] [data-media-tags]{flex-wrap:nowrap;align-items:flex-start;height:38px;overflow:hidden}body[data-density=dense] .peach-react [data-media-card] [data-media-tag]:nth-child(n+2){display:none}.peach-react [data-media-glyph]{color:var(--muted);font-size:var(--fs-xs);letter-spacing:.08em;place-items:center;gap:8px;display:grid}.peach-react [data-media-glyph] svg{width:32px;height:32px}.peach-react [data-media-glyph] b{font-weight:inherit}.peach-react [data-media-kind-glyph]{cursor:default;place-items:center;display:grid}.peach-react [data-media-kind-glyph] svg{width:19px;height:19px}.peach-react [data-media-resource-action]{z-index:5;border-radius:var(--control-radius);color:#fff;min-height:32px;font-size:var(--fs-xs);cursor:pointer;-webkit-backdrop-filter:saturate(1.5)blur(10px);background:#000000a3;border:1px solid #ffffff40;align-items:center;gap:6px;padding:0 10px;display:inline-flex;position:absolute;bottom:10px;right:10px}.peach-react [data-media-resource-action]:hover:not([aria-busy]){background:var(--hover);color:var(--ink)}.peach-react [data-media-resource-action]:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-media-resource-action][aria-busy]{cursor:wait;opacity:.72}.peach-react [data-media-resource-action] svg{width:15px;height:15px}.peach-react [data-shorts-strip]{border-radius:var(--floating-radius);background:var(--ground);font:var(--board-body);border:0;padding:16px}.peach-react [data-shorts-strip]>h2{font-size:var(--fs-lg);align-items:center;gap:10px;margin:0 0 11px;font-weight:600;display:flex}.peach-react [data-shorts-count]{color:var(--muted);font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums}.peach-react [data-shorts-enter]{border-radius:var(--pill-radius);background:var(--overlay-5);min-height:48px;color:var(--ink);font-family:inherit;font-size:var(--fs-xs);cursor:pointer;-webkit-backdrop-filter:blur(12px);transition:background .14s, translate .14s, scale calc(var(--spring-press-ms) * 1ms) var(--spring-press);border:0;align-items:center;gap:7px;margin-left:auto;padding:0 16px;display:inline-flex}.peach-react [data-shorts-enter]:hover{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-shorts-enter]:hover{background:color-mix(in srgb, var(--ink) 16%, transparent)}}.peach-react [data-shorts-enter]:hover{translate:0 -1px}.peach-react [data-shorts-enter]:active{transition:scale 60ms ease-out;scale:.96}.peach-react [data-shorts-enter] svg{fill:none;stroke:currentColor;stroke-width:2px;width:20px;height:20px}.peach-react [data-shorts-row]{scrollbar-width:none;gap:13px;padding-bottom:7px;display:flex;overflow-x:auto}.peach-react [data-shorts-row]::-webkit-scrollbar{display:none}@media (width>=761px){.peach-react [data-shorts-strip]{margin-left:calc(-1 * (var(--railW) + 16px));padding-left:calc(var(--railW) + 32px);border-radius:0 var(--floating-radius) var(--floating-radius) 0}.peach-react [data-shorts-row]{margin-left:calc(-1 * (var(--railW) + 32px));padding-left:calc(var(--railW) + 32px)}}.peach-react [data-mix-glyph]{border:1px solid var(--border-10);background:var(--overlay-5);width:40px;height:40px;color:var(--ink);border-radius:50%;flex:none;place-items:center;display:grid}.peach-react [data-mix-glyph] svg{fill:none;stroke:currentColor;stroke-width:2px;width:20px;height:20px}.peach-react [data-media-grid]>[data-mix-card]{border-radius:var(--surface-radius);font:var(--board-body)}.peach-react [data-media-grid]>[data-mix-card] [data-mix-cover]{content-visibility:auto}.peach-react [data-media-grid] [data-mix-cover]:has(>[data-media-art=cover]){background:var(--page)}.peach-react [data-media-grid] [data-mix-badge]{letter-spacing:normal;line-height:inherit}.peach-react [data-media-grid] [data-mix-title]{font-family:inherit;font-size:var(--fs-md);letter-spacing:normal;color:inherit;font-weight:700;line-height:1.45}.peach-react [data-media-grid] [data-mix-caption]{font-family:inherit;font-size:var(--fs-xs);line-height:inherit;letter-spacing:normal;color:var(--muted);margin-top:2px}.peach-react [data-media-grid]>[data-mix-card]:is(:hover,:focus-within){border-radius:var(--surface-radius);background:var(--hover);box-shadow:0 0 0 8px var(--hover)}.peach-react [data-load-more]{min-height:42px;color:var(--muted);text-align:center;margin:18px auto 0;padding:12px}.peach-react [data-entity-more]{border:1px solid var(--line);min-width:124px;height:36px;min-height:36px;color:var(--ink);cursor:pointer;background:0 0;border-radius:10px;justify-content:center;align-items:center;margin:20px auto 0;padding:0 12px;font-size:14px;font-weight:500;display:flex}.peach-react [data-entity-more]:hover{background:var(--hover);color:var(--ink)}.peach-react [data-entity-more][aria-busy]{cursor:wait;opacity:.5}.peach-react [data-grid-reveal]{position:relative}.peach-react [data-grid-reveal]>[data-grid-fade]{z-index:2;pointer-events:none;animation:grid-skeleton-out var(--motion-reveal) forwards;position:absolute;inset:0;overflow:hidden}.peach-react [data-grid-reveal]>:not([data-grid-fade]){animation:skel-reveal-in var(--motion-reveal) backwards}@keyframes grid-skeleton-out{0%{opacity:1;filter:blur()}to{opacity:0;filter:blur(2px)}}.peach-react [data-surface-host]{isolation:isolate;position:relative}.peach-react [data-moving-surface]{pointer-events:none;transform-origin:0 0;z-index:-1;position:absolute;top:0;left:0}.peach-react [data-moving-surface=selection]{border-radius:var(--radius-md);background:var(--color-background-primary-default);box-shadow:var(--shadow-card)}.dark .peach-react [data-moving-surface=selection]{background:var(--color-background-primary-hover)}.peach-react [data-surface-host=selection][data-surface-ready] :is([data-selected],[aria-selected=true]){--tw-shadow:0 0 transparent;background:0 0}.peach-react [data-moving-surface=hover]{border-radius:var(--radius-2lg);background:var(--color-dropdown-item-hover-background)}@media (hover:hover) and (pointer:fine){.peach-react [data-surface-host=hover][data-surface-ready] button:is(:hover,:focus-visible){background:0 0}}.peach-react [data-modal-motion]{transition:opacity .2s var(--ease-out)}.peach-react [data-modal-surface]{transition:transform .2s var(--ease-out), opacity .2s var(--ease-out)}.peach-react [data-modal-motion]:is([data-entering],[data-exiting]){opacity:0}.peach-react [data-modal-surface]:is([data-entering],[data-exiting]){opacity:0;transform:scale(.98)}.peach-react [data-modal-motion][data-exiting],.peach-react [data-modal-surface][data-exiting]{transition-duration:.12s}.peach-react [data-modal-motion][data-motion-instant],.peach-react [data-modal-motion][data-motion-instant] [data-modal-surface]{transition:none}@media (prefers-reduced-motion:reduce){.peach-react [data-modal-motion],.peach-react [data-modal-surface]{transition:none}}.peach-react [data-junk-count]{flex-direction:column;gap:16px;display:flex}.peach-react [data-junk-filters-frame]{min-width:0;position:relative}.peach-react [data-junk-filters]{scrollbar-width:none;border-radius:var(--surface-radius);background:var(--color-background-primary-default);min-width:0;color:var(--ink-2);font-size:var(--fs-xs);align-items:center;gap:8px;padding:12px;display:flex;overflow-x:auto}.peach-react [data-junk-filters]::-webkit-scrollbar{display:none}html:not(.dark) .peach-react [data-junk-filters]{background:var(--color-background-secondary-default)}.peach-react [data-junk-filters] a{box-sizing:border-box;border-radius:var(--control-radius);height:32px;color:var(--muted);font-size:var(--fs-sm);white-space:nowrap;cursor:pointer;flex:none;align-items:center;gap:6px;padding:0 12px;font-weight:400;text-decoration:none;display:inline-flex}.peach-react [data-junk-filters] a:hover{color:var(--ink)}.peach-react [data-junk-filters] a[aria-current=page]{background:var(--picked);color:var(--ink)}.peach-react [data-junk-filters] a:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-junk-filters] a>svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:16px;height:16px}.peach-react [data-junk-filters] [data-count-badge]{color:var(--muted);font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums}.peach-react [data-junk-divider]{background:var(--line-soft);flex:none;width:1px;height:20px;margin:0 6px}.peach-react [data-media-grid][data-junk-grid]{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:20px}.peach-react [data-media-card][data-junk-card]{border:1px solid var(--line-soft);border-radius:var(--surface-radius);background:var(--color-background-primary-default);cursor:default;content-visibility:auto;contain-intrinsic-size:auto 360px;gap:0;overflow:hidden}.peach-react [data-junk-card] [data-media-art]>img{object-fit:contain}.peach-react [data-junk-card] [data-media-glyph] b{font-weight:700}.peach-react [data-junk-meta]{gap:6px;min-width:0;padding:20px;display:grid}.peach-react [data-junk-title]{width:100%;min-width:0;color:var(--ink);font:inherit;text-align:left;background:0 0;border:0;padding:0;font-weight:600;line-height:1.4;display:block}.peach-react button[data-junk-title]{cursor:pointer}.peach-react button[data-junk-title]:hover{color:var(--ink-2)}.peach-react button[data-junk-title]:focus-visible{outline:2px solid var(--tungsten);outline-offset:3px;border-radius:var(--control-radius)}.peach-react [data-junk-facts]{min-width:0;color:var(--muted);font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:7px;display:flex}.peach-react [data-junk-why]{overflow-wrap:anywhere}.peach-react [data-junk-size]{white-space:nowrap;margin-left:auto}.peach-react [data-junk-actions]{border-top:1px solid var(--line-soft);background:var(--color-background-secondary-default);grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:auto;padding:12px;display:grid}.peach-react [data-junk-actions] button{box-sizing:border-box;border:1px solid var(--color-border-button-default);background:var(--color-background-primary-default);min-width:0;height:36px;min-height:36px;box-shadow:var(--elevation-xs);color:var(--ink);font:var(--board-body-medium);white-space:nowrap;cursor:pointer;border-radius:10px;justify-content:center;align-items:center;gap:7px;padding:8px 12px;display:inline-flex}.peach-react [data-junk-actions] button:hover:not([aria-busy]){background:var(--inset);color:var(--ink)}.peach-react [data-junk-actions] button:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-junk-actions] button[aria-busy]{cursor:wait;opacity:.64}.peach-react [data-junk-actions] button svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:15px;height:15px}.peach-react [data-junk-spinner]{flex:none;display:inline-flex}.peach-react [data-junk-actions] button[data-junk-action=dispose]{isolation:isolate;background:var(--board-red);color:#fff;font:inherit;font-size:var(--fs-xs);border:0;padding:0 10px;position:relative}.peach-react [data-junk-actions] button[data-junk-action=dispose]:before{content:"";z-index:-1;border-radius:inherit;background:var(--board-red-hover);opacity:0;pointer-events:none;transition:opacity .15s;position:absolute;inset:0}.peach-react [data-junk-actions] button[data-junk-action=dispose]:hover:not([aria-busy]){background:var(--board-red);color:#fff}.peach-react [data-junk-actions] button[data-junk-action=dispose]:hover:not([aria-busy]):before{opacity:1}.peach-react [data-junk-actions] button[data-junk-action=dispose]:active{background:var(--board-red-active)}.peach-react [data-junk-state]{color:var(--drop);font-size:var(--fs-xs);grid-column:1/-1}.peach-react [data-junk-state]:empty{display:none}.peach-react [data-select-mode] [data-junk-actions]{pointer-events:none;opacity:.52}body[data-density=dense] .peach-react [data-junk-actions] [data-junk-label]{display:none}@media (width<=760px){.peach-react [data-junk-filters] a{height:44px}.peach-react [data-junk-actions] button{min-height:44px}.peach-react [data-junk-actions] button[data-junk-action=dispose]{padding-inline:7px}}.peach-react [data-entity-card]{background:var(--ground);min-width:0;max-width:100%;color:var(--ink);font:var(--board-body);letter-spacing:0;border-radius:18px;flex-direction:column;margin:0 0 22px;display:flex;overflow:hidden}.peach-react [data-entity-card] :is(a,button,[tabindex]):focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-entity-profile]{--portrait-size:120px;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:20px;min-width:0;padding:20px;display:grid}.peach-react [data-entity-profile]:has(>[data-entity-identity]>[data-entity-links]):has(>[data-entity-identity]>[data-entry-marks]){--portrait-size:160px}#index[data-hero-wide] .peach-react [data-entity-profile]:has(>[data-entity-facts]){grid-template-columns:auto minmax(0,1fr) minmax(280px,360px)}.peach-react [data-entity-portrait-wrap]{align-self:stretch;align-items:center;width:max-content;max-width:100%;display:flex;position:relative}.peach-react [data-entity-portrait-wrap]>[data-avatar-picker]{top:calc((100% - var(--portrait-size)) / 2);height:var(--portrait-size);pointer-events:none;position:absolute;left:0;right:0}.peach-react [data-entity-portrait-wrap]>[data-avatar-picker]>*{pointer-events:auto}.peach-react [data-entity-portrait]{width:auto;max-width:100%;height:var(--portrait-size);aspect-ratio:1;background:var(--overlay-5);color:var(--muted);font-size:var(--fs-4xl);border-radius:50%;place-items:center;display:grid;position:relative;overflow:hidden}.peach-react [data-entity-portrait=square]{border-radius:var(--floating-radius)}.peach-react [data-entity-portrait]>span{grid-area:1/1}.peach-react [data-entity-portrait]:has(img)>span{display:none}.peach-react [data-entity-portrait] img{z-index:1;object-fit:cover;width:100%;max-width:none;height:100%;max-height:none;display:block;position:absolute;inset:0}.peach-react [data-entity-portrait]:is([data-fit-native=mark],[data-native-small=true]) img{width:var(--markw,100%);height:var(--markh,100%);object-fit:contain;max-width:100%;max-height:100%;margin:auto}.peach-react [data-entity-identity]{min-width:0;max-width:100%}.peach-react [data-entity-title]{align-items:center;gap:8px;min-width:0;margin:0 0 9px;display:flex}.peach-react [data-entity-title] h2{letter-spacing:0;overflow-wrap:anywhere;margin:0;font-size:24px;font-weight:500;line-height:32px}.peach-react [data-namepick-toggle]{border:1px solid var(--border-10);border-radius:var(--control-radius);background:var(--overlay-5);width:32px;height:32px;color:var(--muted);cursor:pointer;flex:none;place-items:center;padding:0;display:grid}.peach-react [data-namepick-toggle][data-hovered]{background:var(--hover);color:var(--ink)}.peach-react [data-namepick-toggle] svg,.peach-react [data-namepick-menu] svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:16px;height:16px}.peach-react [data-entity-alias]{color:var(--muted);overflow-wrap:anywhere;margin-bottom:0;font-size:14px;line-height:20px}.peach-react [data-entity-alias] b{color:var(--ink);font-weight:inherit}.peach-react [data-entity-alias=meta]{flex-wrap:wrap;align-items:center;gap:4px 18px;display:flex}.peach-react [data-meta-item]{align-items:center;gap:6px;min-width:0;display:inline-flex}.peach-react [data-meta-item=names]{flex-wrap:wrap}.peach-react [data-meta-item]>svg,.peach-react [data-entity-facts] dt svg{width:16px;height:16px;color:var(--muted);fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none}.peach-react [data-alias-names]>span+span:before,.peach-react [data-hero-pop] dd>span+span:before{color:var(--muted);content:"·";margin:0 6px}.peach-react [data-entity-alias] a{color:var(--tungsten);cursor:pointer;text-decoration:none}.peach-react [data-entity-alias] a:hover{color:var(--ink)}.peach-react [data-hero-more]{border:1px solid var(--line);border-radius:var(--pill-radius);height:22px;color:var(--ink);font:inherit;font-size:var(--fs-xs);cursor:pointer;background:0 0;margin-left:4px;padding:0 8px}.peach-react [data-hero-more]:is(:hover,[aria-expanded=true]){background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-hero-more]:is(:hover,[aria-expanded=true]){background:color-mix(in srgb, var(--ink) 8%, var(--ground))}}.peach-react [data-hero-more=fact]{margin-left:0}.peach-react [data-hero-pop]{z-index:var(--layer-popover);box-sizing:border-box;overscroll-behavior:contain;border:1px solid var(--line);background:var(--surface);width:max-content;max-width:min(440px,100vw - 16px);max-height:calc(100dvh - 16px);box-shadow:var(--elevation-dropdown);color:var(--ink);font-size:var(--fs-sm);text-align:left;transform-origin:0 0;border-radius:16px;gap:8px;margin:0;padding:12px 14px;line-height:1.5;animation:.15s ease-out backwards board-menu-in;display:grid;position:fixed;inset:auto;overflow:hidden auto}.peach-react [data-hero-pop]:not(:popover-open){display:none}.peach-react [data-hero-pop-head]{margin:0;font-weight:500}.peach-react [data-hero-pop] dl{grid-template-columns:auto minmax(0,1fr);gap:6px 14px;margin:0;display:grid}.peach-react [data-hero-pop] dt{color:var(--muted);white-space:nowrap}.peach-react [data-hero-pop] dd{overflow-wrap:anywhere;min-width:0;margin:0}.peach-react [data-hero-pop] dd[data-wide]{grid-column:1/-1}.peach-react [data-hero-pop] small{color:var(--muted);font-size:inherit;margin-left:4px}.peach-react [data-entity-facts]{border-left:1px solid var(--line-soft);min-width:0;font-size:var(--fs-sm);text-align:left;grid-template-columns:auto minmax(0,1fr);align-content:center;place-self:stretch stretch;gap:10px 16px;margin:0;padding:2px 0 2px 24px;line-height:22px;display:grid}#index:not([data-hero-wide]) .peach-react [data-entity-facts]{border-top:1px solid var(--line-soft);border-left:0;grid-column:1/-1;padding:14px 0 0}.peach-react [data-entity-facts] dt{color:var(--muted);white-space:nowrap;align-self:start;align-items:center;gap:6px;display:flex}.peach-react [data-entity-facts] dd{min-width:0;color:var(--ink);margin:0}.peach-react [data-entity-facts] :is([data-fact-tone=num],dd[data-fact=num]){font-variant-numeric:tabular-nums}.peach-react [data-entity-facts] [data-fact-tone=sub]{color:var(--muted)}.peach-react [data-entity-facts] dd[data-fact=clip]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.peach-react :is(dd[data-fact=tags],[data-fact-tags]){flex-wrap:wrap;gap:6px;display:flex}.peach-react [data-fact-tag]{padding:0 var(--tag-pad-x);border:1px solid var(--line);border-radius:var(--tag-radius);background:var(--tag-fill);color:var(--ink-2);font-size:var(--fs-xs);white-space:nowrap;line-height:20px}.peach-react [data-entity-links]{flex-wrap:wrap;gap:8px;max-width:100%;margin-top:14px;display:flex}.peach-react [data-entity-card] [data-entity-links]>:is(a,span)[data-link]{box-sizing:border-box;border:1px solid var(--line);min-width:0;max-width:100%;height:36px;min-height:0;box-shadow:none;color:var(--ink);background:0 0;border-radius:10px;align-items:center;gap:8px;padding:0 12px 0 8px;font-size:13px;font-weight:400;text-decoration:none;display:inline-flex;overflow:hidden}.peach-react [data-entity-card] [data-entity-links]>a[data-link]:hover{border-color:var(--line);background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-card] [data-entity-links]>a[data-link]:hover{background:color-mix(in srgb, var(--ink) 8%, var(--ground))}}.peach-react [data-entity-card] [data-entity-links]>a[data-link]:hover{text-decoration:none}.peach-react [data-entity-card] [data-entity-links]>:is([data-link=private],[data-link=gone]){color:var(--muted);border-style:dashed}.peach-react [data-entity-card] [data-entity-links]>:is([data-link=icon],[data-link=gone]){justify-content:center;gap:0;width:36px;padding:0}.peach-react [data-entity-card] [data-entity-links]>[data-link=url]{letter-spacing:.02em}.peach-react [data-link-label]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.peach-react [data-link-icon]{border-radius:var(--badge-radius);background:0 0;flex:none;place-items:center;width:20px;height:20px;display:grid;position:relative;overflow:hidden}.peach-react [data-link-icon] svg{fill:none;stroke:currentColor;stroke-width:2px;width:16px;height:16px}.peach-react [data-link-icon] img{background:var(--sunk);object-fit:cover;width:100%;max-width:none;height:100%;position:absolute;inset:0}.peach-react [data-link-icon=brand] svg{stroke:none;filter:none;width:100%;height:100%}.peach-react [data-entry-marks]{flex-wrap:wrap;align-items:center;gap:32px;max-width:100%;margin-top:14px;display:flex}.peach-react [data-entity-card] [data-entry-marks]>a[data-entry-mark]{border-radius:var(--control-radius);min-width:0;min-height:20px;box-shadow:none;color:var(--ink);background:0 0;border:0;align-items:center;gap:6px;margin:-4px -8px;padding:4px 8px;font-weight:500;text-decoration:none;display:inline-flex}.peach-react [data-entity-card] [data-entry-marks]>a[data-entry-mark]:hover{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-card] [data-entry-marks]>a[data-entry-mark]:hover{background:color-mix(in srgb, var(--ink) 8%, var(--ground))}}.peach-react [data-entity-card] [data-entry-marks]>a[data-entry-mark]:hover{text-decoration:none}.peach-react [data-entry-mark] svg{width:auto;height:22px}.peach-react [data-entry-ordinal]{color:var(--muted);font-size:var(--fs-sm)}.peach-react [data-missav-mark]{font-family:Halant,Georgia,Times New Roman,serif;font-size:var(--fs-xl);letter-spacing:.01em;white-space:nowrap;font-weight:500;line-height:22px}.peach-react [data-missav-mark]>span:last-child{color:#fe628e}@keyframes entryfeed-breathe{0%,to{color:var(--ink)}50%{color:var(--feed-mark)}}.peach-react [data-entry-feed]{border-radius:var(--control-radius);color:var(--ink);cursor:pointer;align-items:center;margin:-4px;padding:4px;display:inline-flex;position:relative}.peach-react [data-entry-feed]:hover{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entry-feed]:hover{background:color-mix(in srgb, var(--ink) 8%, var(--ground))}}.peach-react [data-entry-feed]:has(:checked){color:var(--feed-mark)}.peach-react [data-entry-feed]:has(:focus-visible){outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-entry-feed]:has([aria-busy=true]){opacity:.6;cursor:progress}.peach-react [data-entry-feed]>svg{fill:none;stroke:currentColor;stroke-width:2px;width:22px;height:22px}.peach-react [data-entry-feed]:not(:has(:checked)){animation:2.4s ease-in-out infinite entryfeed-breathe}.peach-react [data-entry-feed]:not(:has(:checked)):is(:hover,:has(:focus-visible)){color:var(--feed-mark);animation:none}.peach-react [data-entity-feed]{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.peach-react [data-entry-feed-tip]{z-index:var(--layer-tooltip);border-radius:var(--surface-radius);background:var(--ink);width:max-content;max-width:250px;color:var(--ground);font-size:var(--fs-sm);white-space:normal;pointer-events:none;border:0;margin:0;padding:6px 8px;font-weight:400;line-height:1.3;position:fixed;inset:auto;overflow:visible}.peach-react [data-entity-foot]{border-top:1px solid var(--line-soft);background:var(--board-card-foot);align-items:center;gap:16px;min-width:0;padding:12px 20px;display:flex}.peach-react [data-related-people]{scrollbar-width:none;overscroll-behavior-inline:contain;flex:1;align-items:center;gap:4px;min-width:0;margin-top:-3px;padding-top:3px;display:flex;overflow-x:auto}.peach-react [data-related-people]::-webkit-scrollbar{display:none}.peach-react [data-related-people]>button{width:76px;max-width:none;height:auto;color:var(--muted);font:var(--board-body-medium);text-align:center;white-space:nowrap;cursor:pointer;transition:transform var(--lift-motion,var(--board-motion)), scale calc(var(--spring-press-ms) * 1ms) var(--spring-press), background-color .2s ease-out, color .2s ease-out;background:0 0;border:0;border-radius:12px;flex-direction:column;flex:none;align-items:center;gap:6px;padding:6px 4px;display:flex}.peach-react [data-related-people]>button:hover{background:var(--hover);color:var(--ink)}.peach-react [data-related-people]>button:active{transition:scale 60ms ease-out;scale:.96}.peach-react [data-hero-ring]{background:var(--ink);border-radius:50%;flex:none;width:48px;height:48px;margin:0;display:block;position:relative;overflow:hidden}@supports (color:color-mix(in lab, red, red)){.peach-react [data-hero-ring]{background:color-mix(in srgb, var(--ink) 10%, var(--surface))}}.peach-react [data-hero-ring]{color:var(--muted);font:600 18px/24px var(--board-font)}.peach-react [data-hero-ring]>span{color:inherit;font:inherit;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.peach-react [data-hero-ring]>img{object-fit:cover;width:100%;max-width:none;height:100%;max-height:none;display:block;position:absolute;inset:0}.peach-react [data-hero-costar-name]{max-width:100%;color:inherit;font:var(--board-caption);text-align:center;text-overflow:ellipsis;display:block;overflow:hidden}.peach-react [data-namepick-menu]{width:min(260px,100vw - 16px);font:var(--board-body);letter-spacing:0}.peach-react [data-namepick-list],.peach-react [data-namepick-list]>section{outline:none;gap:2px;display:grid}.peach-react [data-namepick-menu] [role^=menuitem]{box-sizing:border-box;width:100%;min-height:36px;color:var(--muted);text-align:left;overflow-wrap:anywhere;cursor:pointer;background:0 0;border-radius:10px;outline:none;justify-content:flex-start;align-items:center;gap:8px;padding:8px;display:flex}.peach-react [data-namepick-menu] [role^=menuitem]:is([data-hovered],[data-focus-visible]){background:var(--hover);color:var(--ink)}.peach-react [data-namepick-menu] [role=menuitemradio] svg{visibility:hidden}.peach-react [data-namepick-menu] [aria-checked=true]{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-namepick-menu] [aria-checked=true]{background:color-mix(in srgb, var(--ink) 10%, var(--surface))}}.peach-react [data-namepick-menu] [aria-checked=true]{color:var(--ink)}.peach-react [data-namepick-menu] [aria-checked=true] svg{visibility:visible}.peach-react [data-namepick-rule]{border:0;border-top:1px solid var(--border-10);height:0;margin:4px 1px}@media (width<=760px){.peach-react [data-entity-profile]{text-align:center;grid-template-columns:minmax(0,1fr);justify-items:center;gap:12px;padding:16px}.peach-react [data-entity-portrait-wrap]{--portrait-size:96px}.peach-react [data-entity-portrait]{width:96px}.peach-react [data-entity-identity]{width:100%}.peach-react [data-entity-foot]{padding:10px 16px}.peach-react [data-entity-title]{justify-content:center}.peach-react [data-namepick-toggle]{position:relative}.peach-react [data-namepick-toggle]:after{content:"";width:44px;height:44px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.peach-react [data-namepick-menu] [role^=menuitem]{min-height:44px}.peach-react [data-entity-alias]{margin-bottom:10px}.peach-react :is([data-entity-alias=meta],[data-meta-item=names]){justify-content:center}.peach-react [data-entity-links]{scrollbar-width:none;overscroll-behavior-inline:contain;margin-top:9px;margin-bottom:-4px;flex-wrap:nowrap;justify-content:safe center;max-width:none;margin-inline:-16px;padding-block:4px;padding-inline:16px;scroll-padding-inline:16px;overflow:auto hidden}.peach-react [data-entity-links]::-webkit-scrollbar{display:none}.peach-react [data-entity-card] [data-entity-links]>*{flex:none}.peach-react [data-entry-marks]{justify-content:center}}.peach-react :is([data-entity-filter-glass],[data-catalog-frame]){z-index:60;font:var(--board-body);letter-spacing:normal}.peach-react :is([data-entity-filter-glass],[data-catalog-frame],[data-entity-combo]) :is(button,[role=radio]):focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-entity-press]{transition:scale calc(var(--spring-press-ms) * 1ms) var(--spring-press)}.peach-react [data-entity-press]:active{transition:scale 60ms ease-out;scale:.96}.peach-react [data-entity-sep]{background:var(--field-ring-hover);flex:none;width:1px;height:19px;margin:0 3px}.peach-react [data-entity-media]{flex:none;align-items:center;gap:2px;display:inline-flex}.peach-react [data-media-view]{z-index:1;width:30px;height:30px;color:var(--glass-text);border-radius:50%;flex:0 0 30px;place-items:center;display:grid;position:relative}@supports (color:color-mix(in lab, red, red)){.peach-react [data-media-view]{color:color-mix(in srgb, var(--glass-text) 60%, transparent)}}.peach-react [data-media-view]{cursor:pointer}.peach-react [data-media-view]:hover,.peach-react [data-media-view][aria-pressed=true]{color:var(--glass-text)}.peach-react [data-media-view] svg{fill:none;stroke:currentColor;stroke-width:2px;width:20px;height:20px;display:block}.peach-react [data-media-view][data-media-icon=image] svg{fill:currentColor;stroke:none}.peach-react [data-entity-scroll]{flex:1;align-items:center;gap:6px;min-width:0;display:flex;position:relative}.peach-react [data-entity-states]{flex:none;align-items:center;gap:6px;display:flex}.peach-react [data-entity-state]{z-index:1;height:30px;color:var(--glass-text);border-radius:999px;flex:none;justify-content:center;align-items:center;padding:0 10px;display:inline-flex;position:relative}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-state]{color:color-mix(in srgb, var(--glass-text) 60%, transparent)}}.peach-react [data-entity-state]{white-space:nowrap;cursor:pointer;font-size:13px;line-height:20px}.peach-react [data-entity-state]:hover,.peach-react [data-entity-state][aria-pressed=true]{color:var(--glass-text)}.peach-react [data-entity-tags]{overscroll-behavior-inline:contain;scrollbar-width:none;flex-wrap:nowrap;flex:1;align-items:center;gap:6px;min-width:0;display:flex;overflow:auto hidden}.peach-react [data-entity-tags]::-webkit-scrollbar{display:none}.peach-react [data-entity-tag]{color:var(--glass-text);border-style:solid;gap:0}.peach-react [data-entity-tag][aria-pressed=false]:hover{border-color:var(--field-ring);color:var(--ink)}.peach-react [data-entity-tag][aria-pressed=true]{background:linear-gradient(180deg, var(--glass-sheen), transparent 62%), var(--glass-pick-fill);-webkit-backdrop-filter:var(--glass-pick);backdrop-filter:var(--glass-pick);box-shadow:inset 0 0 0 1px var(--glass-rim), var(--glass-pick-shadow);border-color:#0000}.peach-react [data-entity-tag] [data-count-badge]{color:var(--glass-text);margin-left:6px}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-tag] [data-count-badge]{color:color-mix(in srgb, var(--glass-text) 55%, transparent)}}.peach-react [data-entity-tag] [data-count-badge]{font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:11px}.peach-react [data-entity-tag]:is(:hover,[aria-pressed=true]) [data-count-badge]{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-tag]:is(:hover,[aria-pressed=true]) [data-count-badge]{color:color-mix(in srgb, var(--glass-text) 80%, transparent)}}@media (width<=760px){.peach-react [data-entity-scroll]{overscroll-behavior-inline:contain;scrollbar-width:none;overflow:auto hidden}.peach-react [data-entity-scroll]::-webkit-scrollbar{display:none}.peach-react [data-entity-scroll]>[data-entity-tags]{flex:none;min-width:auto;overflow:visible}}.peach-react [data-entity-readout]{color:var(--ink-2);letter-spacing:normal;white-space:nowrap;flex:none;margin:0;font-size:12px;font-weight:400;line-height:20px}.peach-react [data-entity-sorts]{scrollbar-width:none;margin-left:auto;flex-wrap:nowrap;align-items:center;gap:4px;min-width:0;margin-block:-14px;padding:14px 2px;display:flex;overflow-x:auto}.peach-react [data-entity-sorts]::-webkit-scrollbar{display:none}.peach-react [data-entity-sort]{height:30px;min-height:30px;color:var(--glass-text);border-radius:7px;flex:none;align-items:center;padding:0 8px;display:inline-flex}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-sort]{color:color-mix(in srgb, var(--glass-text) 62%, transparent)}}.peach-react [data-entity-sort]{white-space:nowrap;cursor:pointer;font-size:12px;line-height:20px}.peach-react [data-entity-sort]:hover{color:var(--glass-text)}.peach-react [data-entity-sort][aria-pressed=true]{color:var(--glass-text);font-weight:500}.peach-react [data-entity-sort] svg{flex:none;width:14px;height:14px;margin-left:5px}.peach-react [data-entity-batch]{background:var(--board-blue);width:36px;height:30px;min-height:30px;box-shadow:var(--elevation-xs);color:#fff;cursor:pointer;border-radius:7px;flex:none;place-items:center;font-size:12px;font-weight:600;display:inline-grid}.peach-react [data-entity-batch]:hover{background:var(--board-blue-hover);color:#fff}.peach-react [data-entity-batch] svg{fill:none;stroke:currentColor;stroke-width:2px;width:16px;height:16px}.peach-react [data-entity-batch][aria-busy=true]{cursor:wait}.peach-react [data-filter-row=bottom][aria-busy=true] [data-entity-batch] svg{--strand-dash:100;--strand-cycle:2.2s}.peach-react [data-entity-layout]{flex:none;gap:2px;margin:0 6px}.peach-react [data-entity-layout] svg{width:16px;height:16px}.peach-react [data-entity-layout] [data-glass-segment][data-selected]{-webkit-backdrop-filter:var(--glass-pick);backdrop-filter:var(--glass-pick)}@media (pointer:coarse){.peach-react :is([data-entity-sort],[data-entity-batch]){height:36px}}.peach-react [data-photo-back]{border:1px solid var(--glass-low);border-radius:var(--control-radius);height:30px;color:var(--glass-text);white-space:nowrap;cursor:pointer;flex:none;align-items:center;gap:4px;padding:0 10px 0 6px;font-size:12px;display:flex}.peach-react [data-photo-back]:hover{background:var(--overlay-5)}.peach-react [data-photo-back] svg{fill:none;stroke:currentColor;stroke-width:2px;width:15px;height:15px}.peach-react [data-entity-srctools]{display:contents}.peach-react [data-entity-srctools]>*{flex:none;margin:0}.peach-react [data-entity-srctools] [aria-live]{flex:none}@media (width<=760px){.peach-react :is([data-entity-filter-glass],[data-catalog-frame])>[data-filter-row=bottom]{overscroll-behavior-inline:contain;scrollbar-width:none;touch-action:pan-x pan-y;flex-wrap:nowrap;gap:10px;overflow:auto hidden}.peach-react :is([data-entity-filter-glass],[data-catalog-frame])>[data-filter-row=bottom]::-webkit-scrollbar{display:none}.peach-react [data-entity-sorts]{flex:none;width:max-content;max-width:none;overflow:visible}.peach-react :is([data-entity-filter-glass],[data-catalog-frame])[data-filter-free]{top:var(--filter-free-top)}}.peach-react [data-entity-combo]{height:auto;font:var(--board-body);interpolate-size:allow-keywords;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 10px;transition:height .22s cubic-bezier(0,0,.2,1),margin-bottom .22s cubic-bezier(0,0,.2,1);display:flex;overflow:hidden}.peach-react [data-entity-combo]:empty{height:0;margin-bottom:0}@media (prefers-reduced-motion:reduce){.peach-react [data-entity-combo]{transition:none}}.peach-react [data-combo-chip]{border:1px solid var(--line);border-radius:var(--tag-radius);background:var(--picked);min-height:30px;color:var(--ink-2);font-size:var(--fs-md);align-items:center;padding:0 0 0 11px;line-height:20px;display:inline-flex;overflow:hidden}.peach-react [data-combo-chip] button{width:28px;height:28px;color:var(--muted);font-size:var(--fs-xs);cursor:pointer;place-items:center;margin-left:5px;font-weight:400;display:grid}.peach-react [data-combo-chip] button:hover{background:var(--drop)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-combo-chip] button:hover{background:color-mix(in srgb, var(--drop) 12%, transparent)}}.peach-react [data-combo-chip] button:hover{color:var(--drop)}.peach-react [data-combo-clear]{min-height:28px;color:var(--muted);font-size:var(--fs-xs);cursor:pointer;align-items:center;padding:0 6px;display:inline-flex}.peach-react [data-catalog-tiers]{z-index:1;font:var(--board-body);letter-spacing:normal;padding:10px 0 8px;position:relative}.peach-react [data-catalog-tier]{scrollbar-width:none;align-items:center;gap:4px;margin-top:-3px;padding:0 16px 6px;display:flex;overflow-x:auto}.peach-react [data-catalog-tier]::-webkit-scrollbar{display:none}.peach-react [data-catalog-tier]:last-child{padding-bottom:4px}@media (width>=761px){.peach-react [data-catalog-tier]{margin-left:calc(-1 * var(--railW));padding-left:calc(var(--railW) + 16px)}}.peach-react :is([data-tier-performer],[data-tier-studio]){color:var(--color-text-secondary);font:var(--board-body-medium);white-space:nowrap;cursor:pointer;transition:transform var(--lift-motion,var(--board-motion)), scale calc(var(--spring-press-ms) * 1ms) var(--spring-press), background-color .2s ease-out, color .2s ease-out;background:0 0;border-radius:12px;flex:none}.peach-react :is([data-tier-performer],[data-tier-studio]):hover{background:var(--color-background-primary-hover);color:var(--color-text-primary)}.peach-react :is([data-tier-performer],[data-tier-studio]):active{transition:scale 60ms ease-out;scale:.96}.peach-react :is([data-tier-performer],[data-tier-studio]):focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-tier-performer]{text-align:center;flex-direction:column;align-items:center;gap:6px;width:76px;padding:6px 4px;display:flex}.peach-react [data-tier-studio]{text-align:left;align-items:center;gap:8px;height:40px;padding:6px 12px 6px 6px;display:inline-flex}.peach-react :is([data-tier-ring],[data-tier-mark]){background:var(--color-text-primary);border-radius:50%;flex:none;position:relative;overflow:hidden}@supports (color:color-mix(in lab, red, red)){.peach-react :is([data-tier-ring],[data-tier-mark]){background:color-mix(in srgb, var(--color-text-primary) 10%, var(--color-background-primary-default))}}.peach-react :is([data-tier-ring],[data-tier-mark]){color:var(--color-text-secondary)}.peach-react [data-tier-ring]{width:48px;height:48px;font:600 18px/24px var(--board-font);display:block}.peach-react [data-tier-ring]>[data-tier-initial]{justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.peach-react :is([data-tier-ring],[data-tier-mark])>img{object-fit:cover;width:100%;height:100%;display:block;position:absolute;inset:0}.peach-react [data-tier-name]{max-width:100%;font:var(--board-caption);text-align:center;text-overflow:ellipsis;display:block;overflow:hidden}.peach-react [data-tier-mark]{width:28px;height:28px;font:600 12px/16px var(--board-font);justify-content:center;align-items:center;display:flex}.peach-react [data-catalog-scroll]{flex:1;align-items:center;gap:7px;min-width:0;display:flex;position:relative}.peach-react [data-catalog-views]{flex:none;align-items:center;gap:7px;display:flex}.peach-react [data-catalog-view]{z-index:1;height:30px;color:var(--glass-text);border-radius:8px;flex:none;justify-content:center;align-items:center;padding:0 10px;display:inline-flex;position:relative}@supports (color:color-mix(in lab, red, red)){.peach-react [data-catalog-view]{color:color-mix(in srgb, var(--glass-text) 60%, transparent)}}.peach-react [data-catalog-view]{white-space:nowrap;cursor:pointer;font-size:13px;line-height:20px;text-decoration:none}.peach-react [data-catalog-view]:is(:hover,[aria-pressed=true]){color:var(--glass-text)}.peach-react [data-catalog-view]:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-catalog-tags]{overscroll-behavior-inline:contain;scrollbar-width:none;flex:1;align-items:center;gap:7px;min-width:0;display:flex;overflow:auto hidden}.peach-react [data-catalog-tags]::-webkit-scrollbar{display:none}@media (width<=760px){.peach-react [data-catalog-scroll]{overscroll-behavior-inline:contain;scrollbar-width:none;overflow:auto hidden}.peach-react [data-catalog-scroll]::-webkit-scrollbar{display:none}.peach-react [data-catalog-scroll]>[data-catalog-tags]{flex:none;min-width:auto;overflow:visible}}.peach-react [data-catalog-tag]{border-radius:var(--tag-radius);color:var(--glass-text);gap:0}.peach-react [data-catalog-tag]:hover{color:var(--ink)}.peach-react [data-catalog-tag][aria-pressed=true]{border-style:solid;border-color:var(--field-ring);background:var(--picked)}.peach-react [data-catalog-tag] [data-count-badge]{color:var(--glass-text);margin-left:6px}@supports (color:color-mix(in lab, red, red)){.peach-react [data-catalog-tag] [data-count-badge]{color:color-mix(in srgb, var(--glass-text) 55%, transparent)}}.peach-react [data-catalog-tag] [data-count-badge]{font-variant-numeric:tabular-nums;font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:11px}.peach-react [data-catalog-tag]:is(:hover,[aria-pressed=true]) [data-count-badge]{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-catalog-tag]:is(:hover,[aria-pressed=true]) [data-count-badge]{color:color-mix(in srgb, var(--glass-text) 80%, transparent)}}.peach-react [data-catalog-frame]>[data-filter-row=bottom]{color:var(--ink-2);font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:12px;line-height:20px}.peach-react [data-catalog-readout]{white-space:nowrap;flex:none}.peach-react [data-catalog-placeholder]{pointer-events:none}.peach-react [data-catalog-tier]:has([data-catalog-placeholder]){overflow:hidden}.peach-react [data-catalog-placeholder=performer]{width:76px;font:var(--board-caption);flex-direction:column;flex:none;align-items:center;gap:6px;padding:6px 4px;display:flex}.peach-react [data-catalog-placeholder=performer]>:first-child{background:var(--hover);border-radius:50%;width:48px;height:48px}.peach-react [data-catalog-placeholder=performer]>:last-child{border-radius:var(--badge-radius);background:var(--hover);width:60%}.peach-react [data-catalog-placeholder=studio]{flex:none;align-items:center;gap:8px;height:40px;padding:6px 12px 6px 6px;display:inline-flex}.peach-react [data-catalog-placeholder=studio]>:first-child{background:var(--hover);border-radius:50%;width:28px;height:28px}.peach-react [data-catalog-placeholder=studio]>:last-child{border-radius:var(--badge-radius);background:var(--hover);width:48px}.peach-react [data-catalog-placeholder=tag]{flex:none;gap:7px;display:flex}.peach-react [data-catalog-placeholder=tag]>span{border-radius:var(--tag-radius);background:var(--hover);flex:none;width:72px;height:30px}.peach-react [data-loading] [data-catalog-placeholder]>span{position:relative;overflow:hidden}.peach-react [data-loading] [data-catalog-placeholder]>span:after{content:"";border-radius:inherit;background:linear-gradient(to right, var(--hover), var(--skeleton-sheen) 50%, var(--hover));background-size:50% 100%;animation:1.5s ease-in-out infinite reverse peach-skeleton-sweep;position:absolute;inset:0 -200% 0 0}@media (prefers-reduced-motion:reduce){.peach-react [data-loading] [data-catalog-placeholder]>span:after{animation:none}}.peach-react [data-refreshing] :is([data-catalog-tag],[data-tier-ring],[data-tier-name],[data-tier-studio]){visibility:hidden;background:var(--hover);border-color:#0000;position:relative;overflow:hidden}.peach-react [data-refreshing] [data-tier-name]{border-radius:var(--control-radius);width:52px;margin:0 auto}.peach-react [data-refreshing] :is([data-catalog-tag],[data-tier-ring],[data-tier-name],[data-tier-studio]):after{content:"";visibility:visible;border-radius:inherit;background:linear-gradient(to right, var(--hover), var(--skeleton-sheen) 50%, var(--hover));background-size:50% 100%;animation:1.5s ease-in-out infinite reverse peach-skeleton-sweep;position:absolute;inset:0 -200% 0 0}.peach-react [data-refreshing] [data-tier-ring][class~=imgdone]:after{opacity:1;filter:none;visibility:visible}@media (prefers-reduced-motion:reduce){.peach-react [data-refreshing] :is([data-catalog-tag],[data-tier-ring],[data-tier-name],[data-tier-studio]):after{animation:none}}.peach-react [data-photo-wall]{--photo-columns:5;grid-template-columns:repeat(var(--photo-columns), minmax(0, 1fr));gap:10px;display:grid}.peach-react [data-photo-wall][data-size=big]{--photo-columns:3}@media (width<=1400px){.peach-react [data-photo-wall]{--photo-columns:4}.peach-react [data-photo-wall][data-size=big]{--photo-columns:2}}@media (width<=1000px){.peach-react [data-photo-wall]{--photo-columns:3}.peach-react [data-photo-wall][data-size=big]{--photo-columns:1}}@media (width<=640px){.peach-react [data-photo-wall]{--photo-columns:2;gap:8px}.peach-react [data-photo-wall][data-size=big]{--photo-columns:1}}.peach-react [data-photo-wall][data-layout=masonry]{column-count:var(--photo-columns);column-gap:10px;display:block}.peach-react [data-photo-cell]{aspect-ratio:1;border-radius:var(--surface-radius);background:var(--sunk);cursor:zoom-in;border:0;width:100%;margin:0;padding:0;line-height:0;display:block;overflow:hidden}.peach-react [data-photo-cell] img{object-fit:cover;background:var(--sunk);color:#0000;width:100%;height:100%;display:block}.peach-react [data-photo-cell]:hover img{filter:brightness(1.06)}.peach-react [data-photo-cell]:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-photo-wall][data-layout=masonry]>[data-photo-cell]{aspect-ratio:auto;break-inside:avoid;margin:0 0 14px}.peach-react [data-photo-wall][data-layout=masonry]>[data-photo-cell] img{aspect-ratio:auto 1;height:auto}.peach-react [data-photo-wall][data-layout=masonry]>[data-photo-cell]:not(:has(img)){aspect-ratio:3/2}.peach-react [data-photo-group]{min-width:0;color:var(--muted);font-size:var(--fs-sm);align-items:baseline;gap:10px;margin:28px 2px 10px;line-height:20px;display:flex}.peach-react [data-photo-group]>b{color:var(--ink);font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-md);font-variant-numeric:tabular-nums;flex:none}.peach-react [data-photo-group-title]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.peach-react [data-photo-group-meta]{flex:none;margin-left:auto}.peach-react [data-follow-feed]{font:var(--board-body);padding:4px 0 42px}.peach-react [data-follow-head]{justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px;display:flex}.peach-react [data-follow-title]{font:var(--board-title);font-size:var(--fs-2xl);letter-spacing:0;margin:0}@media (width<=760px){.peach-react [data-follow-title]{font:var(--board-figure);font-size:var(--fs-xl)}}.peach-react [data-follow-head-actions]{flex:none;align-items:center;gap:8px;display:inline-flex}.peach-react button:is([data-follow-manage],[data-follow-older]):has(>svg){gap:0;padding-left:12px}.peach-react button:is([data-follow-manage],[data-follow-older])>svg{width:14px;height:14px}.peach-react :is([data-follow-authors],[data-follow-works]){overscroll-behavior-inline:contain;scrollbar-width:none;align-items:center;gap:4px;display:flex;overflow-x:auto}.peach-react :is([data-follow-authors],[data-follow-works])::-webkit-scrollbar{display:none}.peach-react [data-follow-authors]{margin:0 0 2px;padding:3px 0 10px}.peach-react [data-follow-works]{margin:0 0 2px;padding:0 0 10px}@media (width<=640px){.peach-react [data-follow-authors]{margin-right:-12px}}.peach-react :is(button[data-follow-author],button[data-follow-work]){color:var(--color-text-secondary);font:var(--board-body-medium);white-space:nowrap;cursor:pointer;transition:transform var(--lift-motion,var(--board-motion)), scale calc(var(--spring-press-ms) * 1ms) var(--spring-press), background-color .2s ease-out, color .2s ease-out;background:0 0;border:0;flex:none}.peach-react :is(button[data-follow-author],button[data-follow-work]):active{transition:scale 60ms ease-out;scale:.96}.peach-react :is(button[data-follow-author],button[data-follow-work]):hover{background:var(--color-background-primary-hover);color:var(--color-text-primary)}.peach-react :is(button[data-follow-author],button[data-follow-work])[aria-pressed=true]{background:var(--color-background-tertiary-default);color:var(--color-text-primary)}.peach-react :is(button[data-follow-author],button[data-follow-work]):focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react button[data-follow-author]{text-align:center;border-radius:12px;flex-direction:column;align-items:center;gap:6px;width:76px;padding:6px 4px;display:flex}.peach-react button[data-follow-work]{text-align:left;border-radius:12px;align-items:center;gap:8px;height:40px;padding:6px 12px 6px 6px;display:inline-flex}.peach-react :is([data-follow-ring],[data-follow-mark]){background:var(--color-text-primary);border-radius:50%;flex:none;justify-content:center;align-items:center;margin:0;display:flex;position:relative;overflow:hidden}@supports (color:color-mix(in lab, red, red)){.peach-react :is([data-follow-ring],[data-follow-mark]){background:color-mix(in srgb, var(--color-text-primary) 10%, var(--color-background-primary-default))}}.peach-react :is([data-follow-ring],[data-follow-mark]){color:var(--color-text-secondary)}.peach-react [data-follow-ring]{width:48px;height:48px;font:600 18px/24px var(--board-font)}.peach-react [data-follow-mark]{width:28px;height:28px;font:600 12px/16px var(--board-font)}.peach-react [data-follow-ring]>img,.peach-react [data-follow-mark]>img{object-fit:cover;width:100%;max-width:none;height:100%;display:block;position:absolute;inset:0}.peach-react [data-follow-mark]>img{object-position:50% 25%}.peach-react [data-follow-ring]>span{width:100%;height:100%;font:inherit;color:inherit;justify-content:center;align-items:center;display:flex}.peach-react [data-follow-name]{max-width:100%;color:inherit;font:var(--board-caption);text-align:center;text-overflow:ellipsis;display:block;overflow:hidden}.peach-react [data-follow-filter-glass]{z-index:60;font:var(--board-body);letter-spacing:normal}.peach-react [data-follow-filter-glass] :is(button,[role=radio]):focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-follow-filter-glass]>[data-filter-row=bottom]{overscroll-behavior-inline:contain;scrollbar-width:none;overflow-x:auto}.peach-react [data-follow-filter-glass]>[data-filter-row=bottom]::-webkit-scrollbar{display:none}@media (width<=760px){.peach-react [data-follow-filter-glass] [data-entity-sorts]{padding-left:0}}.peach-react [data-follow-filter-glass] :is([data-entity-scroll],[data-entity-states],[data-entity-tags]){gap:7px}.peach-react button[data-follow-provider]{border:1px dashed var(--glass-low);border-radius:var(--tag-radius);cursor:pointer;background:0 0;flex:none;justify-content:center;align-items:center;width:34px;height:30px;padding:0;display:inline-flex}.peach-react button[data-follow-provider]:hover{border-style:solid;border-color:var(--field-ring)}.peach-react button[data-follow-provider][aria-pressed=true]{border-style:solid;border-color:var(--field-ring);background:var(--picked)}.peach-react [data-follow-provider]>img{border-radius:var(--badge-radius);object-fit:contain;width:18px;height:18px;margin:0}.peach-react [data-follow-filter-glass] [data-follow-tag]{--tag-color:#55a7ff;color:var(--glass-text);gap:6px}.peach-react [data-follow-filter-glass] [data-follow-tag][data-tag-cat=r34-artist]{--tag-color:#e36c6c}.peach-react [data-follow-filter-glass] [data-follow-tag][data-tag-cat=r34-character]{--tag-color:#68c76f}.peach-react [data-follow-filter-glass] [data-follow-tag][data-tag-cat=r34-copyright]{--tag-color:#d675d6}.peach-react [data-follow-filter-glass] [data-follow-tag][data-tag-cat=r34-metadata]{--tag-color:#f5a24a}.peach-react [data-follow-filter-glass] [data-follow-tag]:hover{border-color:var(--field-ring)}.peach-react [data-follow-filter-glass] [data-follow-tag][aria-pressed=true]{border-style:solid;border-color:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-filter-glass] [data-follow-tag][aria-pressed=true]{border-color:color-mix(in srgb, var(--tag-color) 72%, transparent)}}.peach-react [data-follow-filter-glass] [data-follow-tag][aria-pressed=true]{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-filter-glass] [data-follow-tag][aria-pressed=true]{background:color-mix(in srgb, var(--tag-color) 22%, transparent)}}.peach-react [data-follow-filter-glass] [data-follow-tag][aria-pressed=true]{color:var(--glass-text,var(--ink))}.peach-react [data-follow-filter-glass] [data-follow-tag] [data-count-badge]{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-filter-glass] [data-follow-tag] [data-count-badge]{color:color-mix(in srgb, var(--glass-text) 55%, transparent)}}.peach-react [data-follow-filter-glass] [data-follow-tag] [data-count-badge]{font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:11px}.peach-react button[data-follow-images-only]{width:30px;height:30px;color:var(--glass-text);background:0 0;border:0;border-radius:7px;flex:none;place-items:center;padding:0;display:grid;position:relative}@supports (color:color-mix(in lab, red, red)){.peach-react button[data-follow-images-only]{color:color-mix(in srgb, var(--glass-text) 60%, transparent)}}.peach-react button[data-follow-images-only]{cursor:pointer}.peach-react button[data-follow-images-only]:is(:hover,[aria-pressed=true]){color:var(--glass-text)}.peach-react button[data-follow-images-only]>[data-view-glide]{inset:0}.peach-react button[data-follow-images-only] svg{z-index:1;fill:none;stroke:currentColor;stroke-width:2px;width:16px;height:16px;position:relative}.peach-react [data-follow-readout]{font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace}.peach-react [data-follow-broken]>[role=alert]{margin:10px 0 14px}.peach-react [data-follow-broken] [data-follow-manage]{color:var(--tungsten);font:inherit;cursor:pointer;background:0 0;border:0;padding:0}.peach-react [data-follow-pagination]{border-top:1px solid var(--line-soft);flex-wrap:wrap;align-items:center;gap:14px 24px;margin-top:18px;padding-top:14px;display:flex;overflow-x:auto}.peach-react [data-follow-page-action]{align-items:center;gap:12px;display:inline-flex}.peach-react [data-follow-pagination] [data-entity-more]{gap:4px;min-width:0;margin:0}.peach-react :is([data-follow-older],[data-follow-recheck])>span{gap:4px}.peach-react button[data-follow-older][aria-busy]{border-color:var(--line);background:var(--ground);color:var(--muted);box-shadow:none}.peach-react [data-follow-backfill]{color:var(--muted);font:var(--board-compact)}.peach-react [data-follow-list]{grid-template-columns:repeat(auto-fill, minmax(var(--tile), 1fr));gap:24px 16px;display:grid}.peach-react [data-follow-list]>[data-media-card]{align-self:start}.peach-react [data-follow-list]>[data-follow-empty]{grid-column:1/-1}.peach-react [data-follow-wall]{--photo-columns:5;grid-template-columns:repeat(var(--photo-columns), minmax(0, 1fr));align-items:start;gap:14px 10px}.peach-react [data-follow-wall][data-size=big]{--photo-columns:3}@media (width<=1400px){.peach-react [data-follow-wall]{--photo-columns:4}.peach-react [data-follow-wall][data-size=big]{--photo-columns:2}}@media (width<=1000px){.peach-react [data-follow-wall]{--photo-columns:3}.peach-react [data-follow-wall][data-size=big]{--photo-columns:1}}@media (width<=640px){.peach-react [data-follow-wall]{--photo-columns:2;gap:12px 8px}.peach-react [data-follow-wall][data-size=big]{--photo-columns:1}}.peach-react [data-follow-wall][data-layout=masonry]{column-count:var(--photo-columns);column-gap:10px;display:block}.peach-react [data-follow-wall][data-layout=masonry]>[data-follow-empty]{column-span:all}.peach-react [data-follow-wall][data-layout=masonry]>[data-media-card]{break-inside:avoid;margin:0 0 14px}.peach-react [data-follow-wall][data-images-only=true] [data-follow-item] :is([data-media-meta],[data-media-badge],[data-follow-collection],[data-follow-state]){display:none}.peach-react [data-follow-wall] [data-media-card] :is([data-media-pic],[data-media-meta]){content-visibility:visible}.peach-react [data-follow-wall] [data-media-card] [data-media-meta]{pointer-events:auto;contain-intrinsic-block-size:none;margin:0;padding:0}.peach-react [data-follow-item] [data-media-meta]{--card-meta-byline:max(1lh, 21px);--card-meta-badges:0px}.peach-react [data-follow-item] [data-media-meta]:has(>[data-media-text]>[data-follow-badges]){--card-meta-badges:calc(1lh + 6px + 3px)}.peach-react [data-follow-list]:not([data-follow-wall]) [data-follow-item] [data-media-meta]{contain-intrinsic-block-size:auto calc(var(--card-meta-block) + var(--card-meta-badges))}.peach-react [data-follow-item][data-status=ignored]{opacity:.62}.peach-react [data-follow-visual]{isolation:isolate;border-radius:var(--surface-radius);position:relative}.peach-react [data-follow-visual]>[data-media-pic]{z-index:1}.peach-react [data-follow-open]{z-index:1;border-radius:inherit;cursor:pointer;background:0 0;border:0;padding:0;position:absolute;inset:0}.peach-react [data-follow-open]:focus-visible{outline:2px solid var(--tungsten);outline-offset:-2px}.peach-react [data-select-mode] :is([data-follow-open],[data-follow-actions],[data-follow-collection]){pointer-events:none!important}.peach-react [data-follow-nothumb]{color:var(--muted);font-size:var(--fs-xs);place-items:center;display:grid;position:absolute;inset:0}.peach-react :is([data-media-badge],[data-follow-nothumb])>img{border-radius:var(--badge-radius);object-fit:contain;width:18px;height:18px;margin:0}.peach-react [data-follow-image] [data-media-pic]{aspect-ratio:4/3;background:var(--sunk);min-height:0}.peach-react [data-follow-image] [data-media-pic]>img,.peach-react [data-follow-image] :is([data-mix-faces],[data-mix-face] img){background:var(--sunk)}.peach-react [data-follow-wall][data-layout=masonry] [data-follow-image] [data-media-pic]{aspect-ratio:1}.peach-react [data-follow-wall][data-layout=masonry] [data-follow-image] [data-media-pic]:has(>img[width][height]){aspect-ratio:auto}.peach-react [data-follow-wall][data-layout=masonry] [data-follow-image] [data-media-pic]>img[width][height]{aspect-ratio:auto 1;height:auto;position:static}.peach-react [data-follow-corner]{z-index:7;pointer-events:none;flex-direction:column;align-items:flex-end;gap:6px;display:flex;position:absolute;top:10px;right:10px}.peach-react [data-follow-collection]{border-radius:var(--control-radius);color:#fff;min-height:28px;font:inherit;cursor:pointer;pointer-events:auto;-webkit-backdrop-filter:blur(10px);background:#0c0808b8;border:0;align-items:center;gap:6px;padding:4px 9px;display:flex}.peach-react [data-follow-collection] svg{fill:none;stroke:currentColor;stroke-width:2px;width:15px;height:15px}.peach-react [data-follow-actions]{opacity:0;pointer-events:none;align-items:center;gap:6px;transition:opacity .15s;display:flex}.peach-react [data-follow-actions] button{color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(10px);background:#0000007a;border:1px solid #ffffff29;border-radius:50%;place-items:center;width:36px;height:36px;padding:0;display:grid}.peach-react [data-follow-actions] button svg{fill:none;stroke:currentColor;stroke-width:2px;width:18px;height:18px}.peach-react [data-follow-actions] button:hover:not(:disabled){background:#ffffff2e;transform:scale(1.08)}.peach-react [data-follow-actions] button:disabled{opacity:.42;cursor:not-allowed}.peach-react [data-follow-actions] button[aria-busy]{cursor:wait;opacity:.72}@media (hover:hover) and (pointer:fine){.peach-react [data-follow-item]:hover [data-follow-actions]{opacity:1;pointer-events:auto}}@media (hover:none),(pointer:coarse){.peach-react [data-follow-item] [data-follow-actions]{opacity:1;pointer-events:auto}}.peach-react [data-follow-avatar]{cursor:default;background:var(--overlay-5);border:1px solid var(--line-soft);place-items:center;display:grid}.peach-react [data-follow-avatar]>img{border-radius:50%}.peach-react [data-follow-avatar]>span:first-child{width:100%;height:100%;color:var(--muted);font-family:var(--board-font);font-size:var(--fs-sm);place-items:center;display:grid}.peach-react [data-follow-byline]{min-width:0;min-height:21px;color:var(--muted);flex-wrap:nowrap;align-items:center;gap:6px;display:flex;overflow:hidden}.peach-react [data-follow-byline]>[data-follow-author]{min-width:0;color:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.peach-react [data-follow-byline]>time{font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums;white-space:nowrap;flex:none}.peach-react [data-follow-credit]{color:var(--muted);font-size:var(--fs-xs);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.peach-react [data-follow-badges]{flex-wrap:nowrap;gap:5px;min-width:0;display:flex;overflow:hidden}.peach-react [data-follow-item] [data-media-tag]{--tag-color:#55a7ff;border-color:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-item] [data-media-tag]{border-color:color-mix(in srgb, var(--tag-color) 42%, transparent)}}.peach-react [data-follow-item] [data-media-tag]{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-item] [data-media-tag]{background:color-mix(in srgb, var(--tag-color) 10%, transparent)}}.peach-react [data-follow-item] [data-media-tag]{cursor:default}.peach-react [data-follow-item] [data-media-tag][data-tag-cat=r34-artist]{--tag-color:#e36c6c}.peach-react [data-follow-item] [data-media-tag][data-tag-cat=r34-character]{--tag-color:#68c76f}.peach-react [data-follow-item] [data-media-tag][data-tag-cat=r34-copyright]{--tag-color:#d675d6}.peach-react [data-follow-item] [data-media-tag][data-tag-cat=r34-metadata]{--tag-color:#f5a24a}.peach-react [data-follow-issue]{color:var(--drop);font-size:var(--fs-sm);margin:18px 0 8px;line-height:1.7;display:block}.peach-react [data-follow-state]{color:var(--drop);font-size:var(--fs-xs);flex:100%}.peach-react [data-follow-detail] [data-follow-detail-media]{--follow-image-arrow-inset:16px}.peach-react [data-follow-detail] [data-follow-detail-media=image]{background:var(--video-glow,#15202a)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-detail] [data-follow-detail-media=image]{background:color-mix(in srgb, var(--video-glow,#15202a) 12%, var(--surface) 88%)}}.peach-react [data-follow-detail] [data-follow-detail-poster]{z-index:1;object-fit:contain;background:0 0;width:auto;max-width:100%;height:auto;max-height:76vh;display:block;position:relative}.peach-react [data-follow-detail] [data-follow-detail-poster][data-zoomable]{cursor:zoom-in}.peach-react [data-follow-detail] [data-framed] [data-follow-detail-poster]{width:100%;aspect-ratio:var(--follow-frame-ratio)}.peach-react [data-follow-detail] [data-follow-detail-placeholder]{aspect-ratio:16/9;color:var(--muted);place-items:center;gap:10px;display:grid}.peach-react [data-follow-detail] [data-follow-detail-placeholder] img{width:34px;height:34px;margin:0}.peach-react [data-follow-detail] [data-follow-image-arrow]{box-sizing:border-box;z-index:4;cursor:pointer;color:#fff;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009;border:0;border-radius:50%;place-items:center;width:48px;height:48px;padding:0;display:grid;position:absolute;top:50%;transform:translateY(-50%)}.peach-react [data-follow-detail] [data-follow-image-arrow]:hover{background:#000000c7}.peach-react [data-follow-detail] [data-follow-image-arrow]:focus-visible{outline:2px solid var(--tungsten);outline-offset:3px}.peach-react [data-follow-detail] [data-follow-image-arrow] svg{stroke:currentColor;fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:24px;height:24px;display:block}.peach-react [data-follow-detail] [data-follow-image-arrow=prev]{left:var(--follow-image-arrow-inset)}.peach-react [data-follow-detail] [data-follow-image-arrow=next]{right:var(--follow-image-arrow-inset)}.peach-react [data-follow-detail] [data-follow-image-dots]{z-index:4;border-radius:var(--pill-radius);background:#00000080;justify-content:center;align-items:center;gap:8px;max-width:calc(100% - 120px);padding:8px 11px;display:flex;position:absolute;bottom:18px;left:50%;overflow:hidden;transform:translate(-50%)}.peach-react [data-follow-detail] [data-follow-image-dots] button{cursor:pointer;background:#ffffff6b;border:0;border-radius:50%;flex:none;width:8px;height:8px;padding:0}.peach-react [data-follow-detail] [data-follow-image-dots] button[aria-current=true]{border-radius:var(--pill-radius);background:#fff;width:20px}.peach-react [data-follow-detail] [data-follow-queue-meta]{align-items:center;gap:6px;display:flex}.peach-react [data-follow-detail] [data-follow-queue-meta]>[data-follow-queue-source]{display:contents}.peach-react [data-follow-detail] [data-follow-queue-meta] img{flex:none;margin:0}.peach-react [data-follow-detail] [data-follow-queue-meta] time{white-space:nowrap;flex:none}.peach-react [data-follow-detail] [data-follow-variant]{border-radius:var(--badge-radius);text-overflow:ellipsis;vertical-align:-2px;background:var(--overlay-5);min-width:0;max-width:120px;color:var(--muted);font-size:var(--fs-xs);flex:0 auto;margin:0;padding:1px 7px;font-style:normal;display:inline-block;overflow:hidden}.peach-react [data-follow-detail] [data-follow-variant=wip]{color:var(--meter)}.peach-react [data-follow-detail] [data-follow-variant=alt]{color:var(--ink-2)}.peach-react [data-follow-detail] [data-follow-nothumb]{width:100%;height:100%;color:var(--muted);font-size:var(--fs-xs);place-items:center;display:grid}.peach-react [data-follow-detail] [data-follow-nothumb] svg{stroke:currentColor;fill:none;stroke-width:2px;width:22px;height:22px}.peach-react [data-follow-detail] [data-follow-detail-title]{align-items:flex-start;gap:5px;margin-bottom:8px;display:flex}.peach-react [data-follow-detail] [data-follow-detail-title]>[data-follow-detail-name]{width:auto;max-width:calc(100% - 35px);margin:0}.peach-react [data-follow-detail] [data-follow-origin]{flex:none;width:30px;height:30px;margin:0}.peach-react [data-follow-detail] [data-follow-detail-identity]{align-items:center;gap:10px;margin:2px 0 12px;display:flex}.peach-react [data-follow-detail] [data-follow-detail-identity] b,.peach-react [data-follow-detail] [data-follow-detail-identity] span{display:block}.peach-react [data-follow-detail] [data-follow-detail-identity]>div>span{color:var(--muted);font-size:var(--fs-xs);margin-top:3px}.peach-react [data-follow-detail] [data-follow-source-avatar]{cursor:default;background:var(--overlay-5);border:1px solid var(--line-soft);flex:none;place-items:center;display:grid}.peach-react [data-follow-detail] [data-follow-source-avatar]:hover{box-shadow:none}.peach-react [data-follow-detail] [data-follow-source-avatar]>*{object-fit:cover;border-radius:50%;outline:0;width:100%;height:100%;position:absolute;inset:0}.peach-react [data-follow-detail] [data-follow-source-avatar]>span{font-size:var(--fs-sm);color:var(--muted);place-items:center;display:grid}.peach-react [data-follow-detail] [data-follow-badges]{flex-wrap:nowrap;gap:5px;min-width:0;display:flex;overflow:hidden}.peach-react [data-follow-detail] [data-follow-detail-summary]{color:var(--ink-2);white-space:pre-line;margin:0 0 16px;line-height:1.6}.peach-react [data-follow-detail] [data-follow-media-issue]{font-size:var(--fs-sm);color:var(--drop);margin:18px 0 8px;line-height:1.7}.peach-react [data-follow-detail] [data-follow-media-issue][hidden]{display:none}.peach-react [data-follow-detail] [data-follow-resources]{flex-wrap:wrap;gap:8px;margin:0 0 16px;display:flex}.peach-react [data-follow-detail] [data-follow-resources] a{height:34px}.peach-react [data-follow-detail] [data-follow-detail-actions] button:disabled{opacity:.45;cursor:not-allowed}.peach-react [data-follow-detail] [data-follow-download]{box-sizing:border-box;background:var(--surface);width:36px;min-width:36px;height:36px;color:var(--ink-2);border:0;border-radius:8px;flex:0 0 36px;place-items:center;padding:0;display:grid}.peach-react [data-follow-detail] [data-follow-download]:hover{background:var(--hover);color:var(--ink)}.peach-react [data-follow-detail] [data-follow-download] svg{stroke:currentColor;fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px;margin:0;display:block}@media (width<=760px){.peach-react [data-follow-detail] [data-follow-detail-actions]{width:max-content;max-width:100%}.peach-react [data-follow-detail] [data-follow-detail-actions] :is(button,[data-follow-download]){flex:none}}.peach-react [data-follow-detail] [data-follow-hidden-media]{align-items:center;gap:10px;margin-top:14px;display:flex}.peach-react [data-follow-detail] [data-follow-hidden-label]{color:var(--muted);white-space:nowrap}.peach-react [data-follow-detail] [data-follow-hidden-thumbs]{flex-wrap:wrap;gap:6px;display:flex}.peach-react [data-follow-detail] [data-follow-hidden-thumbs] button{border:1px solid var(--border-15);border-radius:var(--control-radius);cursor:pointer;background:0 0;width:40px;height:40px;padding:0;position:relative;overflow:hidden}.peach-react [data-follow-detail] [data-follow-hidden-thumbs] button:hover{border-color:var(--ink-3)}.peach-react [data-follow-detail] [data-follow-hidden-thumbs] img{object-fit:cover;opacity:.55;width:100%;height:100%;display:block}.peach-react [data-follow-detail] [data-follow-hidden-thumbs] i{background:var(--hover);width:16px;height:16px;color:var(--ink-2);border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;bottom:2px;right:2px}.peach-react [data-follow-detail] [data-follow-hidden-thumbs] svg{stroke:currentColor;fill:none;width:11px;height:11px}.peach-react [data-follow-detail] [data-follow-state]{font-size:var(--fs-xs);color:var(--drop);flex:none}.peach-react [data-follow-detail] [data-follow-detail-tags]{margin:16px 0 0}.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]{text-overflow:clip;white-space:normal;text-align:left;max-width:none;color:var(--ink-2);border-color:var(--tag-color);font-family:inherit;overflow:visible}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]{border-color:color-mix(in srgb, var(--tag-color) 42%, transparent)}}.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]{background:color-mix(in srgb, var(--tag-color) 10%, transparent)}}.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]:hover{border-color:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]:hover{border-color:color-mix(in srgb, var(--tag-color) 68%, transparent)}}.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]:hover{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]:hover{background:color-mix(in srgb, var(--tag-color) 18%, transparent)}}.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]:hover{color:var(--ink)}@media (width<=640px){.peach-react [data-follow-detail] [data-follow-detail-media]{--follow-image-arrow-inset:10px}.peach-react [data-follow-detail] [data-follow-image-arrow]{width:44px;height:44px}.peach-react [data-follow-detail] [data-follow-image-dots]{bottom:12px}}.peach-react [data-item-detail] [data-item-gate]{box-sizing:border-box;aspect-ratio:auto;border-radius:inherit;background:var(--sunk);border:1px dashed var(--meter);cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:10px;width:100%;height:100%;display:flex}:where(.peach-react [data-item-detail] [data-item-gate]) b{font-size:var(--fs-md)}:where(.peach-react [data-item-detail] [data-item-gate]) span{font-size:var(--fs-xs);color:var(--muted)}.peach-react [data-item-detail] [data-item-gate=offline]{cursor:default;background:var(--ground);min-height:220px;color:var(--ink);border-style:solid;gap:7px;padding:24px}.peach-react [data-item-detail] [data-item-gate=offline] b{letter-spacing:.08em}.peach-react [data-item-detail] [data-item-gate=offline] span{text-align:center;max-width:34ch;color:var(--ink-2);line-height:1.6}.peach-react [data-item-detail] [data-item-gate=offline] button{cursor:pointer;margin-top:4px}.peach-react [data-item-detail] [data-queue-head]{color:var(--ink);align-items:center;gap:5px;margin-top:0;display:flex}.peach-react [data-item-detail] [data-queue-head] b{flex:1;min-width:0}.peach-react [data-item-detail] [data-queue-edition]{flex:none;font-style:normal}.peach-react [data-item-detail] [data-queue-edit]{z-index:3;border-radius:var(--control-radius);color:#fff;background:#0000009e;grid-auto-flow:column;align-items:center;gap:2px;padding:3px;display:grid;position:absolute;top:5px;right:5px}.peach-react [data-item-detail] [data-queue-grip]{width:20px;color:var(--muted);cursor:grab;place-items:center;display:grid}.peach-react [data-item-detail] [data-queue-grip] svg{stroke:currentColor;fill:none;width:16px;height:16px}.peach-react [data-item-detail] [data-queue-edit] button{border-radius:var(--control-radius);color:#fff;cursor:pointer;background:0 0;border:0;place-items:center;width:26px;height:26px;padding:0;display:grid}.peach-react [data-item-detail] [data-queue-edit] button:hover{background:var(--hover)}.peach-react [data-item-detail] [data-queue-edit] svg{stroke:currentColor;fill:none;width:15px;height:15px}.peach-react [data-item-detail] [data-item-title]{margin-bottom:10px;display:block}.peach-react [data-item-detail] [data-item-title] [class~=srcbig]{vertical-align:middle;place-items:center;width:17px;height:28px;margin:0 8px 0 0;display:inline-grid}.peach-react [data-item-detail] [data-item-title] [data-title-line]{min-width:0;margin:0;line-height:1.75}.peach-react [data-item-detail] [data-detail-title]{-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.peach-react [data-item-detail] [data-detail-title][data-expanded]{-webkit-line-clamp:unset;line-clamp:unset;display:block}.peach-react [data-item-detail] [data-detail-title][data-foldable]{cursor:pointer}.peach-react [data-item-detail] [data-title-tools]{flex-wrap:nowrap;align-items:center;gap:6px;margin:6px 0 0;display:flex}.peach-react [data-item-detail] [data-title-tools]:not(:has(button:not([hidden]))){display:none}.peach-react [data-item-detail] [data-title-tools] button{border:1px solid var(--line);background:var(--surface);width:26px;height:26px;color:var(--muted);cursor:pointer;border-radius:8px;flex:none;place-items:center;padding:0;line-height:1;display:inline-grid}.peach-react [data-item-detail] [data-title-tools] button[hidden]{display:none}.peach-react [data-item-detail] [data-title-tools] [data-cover-crop-host]{display:contents}.peach-react [data-item-detail] [data-title-tools] button svg{stroke:currentColor;fill:none;stroke-width:2px;width:15px;height:15px}.peach-react [data-item-detail] [data-title-tools] button>svg{flex-shrink:0;place-self:center;margin:0;display:block}.peach-react [data-item-detail] [data-title-tools] button:hover{background:var(--hover);color:var(--ink)}.peach-react [data-item-detail] [data-title-tools] button:disabled{background:var(--sunk);border-color:var(--line-soft);color:var(--muted);cursor:not-allowed}.peach-react [data-item-detail] [data-title-state]{min-width:0;font-size:var(--fs-xs);color:var(--muted);flex:100%;margin:-4px 0 10px;display:block}.peach-react [data-item-detail] [data-title-state]:empty{display:none}.peach-react [data-item-detail] [data-item-rating]{align-items:center;gap:8px;margin:-6px 0 10px;display:flex}.peach-react [data-item-detail] [data-rating-stars]{align-items:center;gap:2px;margin-left:-4px;display:inline-flex}.peach-react [data-item-detail] [data-rate]{border-radius:var(--control-radius);width:26px;height:26px;color:var(--rating);cursor:pointer;background:0 0;border:0;place-items:center;padding:0;display:grid}.peach-react [data-item-detail] [data-rate] svg{stroke:currentColor;fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:19px;height:19px}.peach-react [data-item-detail] [data-rate][data-on=true] svg{fill:currentColor}.peach-react [data-item-detail] [data-rating-stars]:hover [data-rate] svg{fill:none}.peach-react [data-item-detail] [data-rating-stars]:hover [data-rate]:hover svg,.peach-react [data-item-detail] [data-rating-stars]:hover [data-rate]:has(~[data-rate]:hover) svg{fill:currentColor}.peach-react [data-item-detail] [data-rate]:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-item-detail] [data-rating-value]{color:var(--muted);font-size:var(--fs-xs);font-variant-numeric:tabular-nums}.peach-react [data-item-detail] [data-spec-item]{align-items:center;gap:5px;display:inline-flex}.peach-react [data-item-detail] [data-spec-item] svg{stroke:currentColor;fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:15px;height:15px}.peach-react [data-item-detail] [data-open-region]{font:inherit;color:inherit;cursor:pointer;background:0 0;border:0;padding:0}.peach-react [data-item-detail] [data-open-region]:hover{color:var(--ink)}.peach-react [data-item-detail] [data-item-identity]{flex-direction:column;gap:14px;margin:0 0 18px;display:flex}.peach-react [data-item-detail] [data-identity-primary]{flex-wrap:wrap;align-items:flex-start;gap:14px 26px;display:flex}.peach-react [data-item-detail] [data-identity-primary]>[data-id-group]{width:max-content;max-width:100%}.peach-react [data-item-detail] [data-id-group]{--id-cell:62px;--id-face:46px;min-width:0}.peach-react [data-item-detail] [data-id-group=performer]{--id-cell:58px}.peach-react [data-item-detail] [data-id-label]{font-size:var(--fs-xs);color:var(--muted);letter-spacing:.04em;margin:0 0 7px;font-weight:400}.peach-react [data-item-detail] [data-id-row]{flex-wrap:wrap;align-items:flex-start;gap:10px 12px;display:flex}.peach-react [data-item-detail] [data-id-group=performer] [data-id-row]{gap:10px}.peach-react [data-item-detail] [data-id-cell]{width:var(--id-cell,62px);color:inherit;cursor:default;background:0 0;border:0;flex-direction:column;align-items:flex-start;gap:5px;padding:0;display:flex}.peach-react [data-item-detail] [data-id-cell]:is([data-entity-kind],[data-open-unowned]){color:var(--tungsten);cursor:pointer;text-decoration:none}.peach-react [data-item-detail] [data-id-cell]:is([data-entity-kind],[data-open-unowned]):hover{color:var(--ink)}.peach-react [data-item-detail] [data-id-cell][hidden]{display:none}.peach-react [data-item-detail] [data-id-face]{width:var(--id-face,46px);height:var(--id-face,46px);background:var(--sunk);color:var(--muted);font-size:var(--fs-md);border-radius:50%;place-items:center;display:grid;position:relative;overflow:hidden}.peach-react [data-item-detail] [data-id-face]:not(:has(img)){background:var(--color-text-primary)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-item-detail] [data-id-face]:not(:has(img)){background:color-mix(in srgb, var(--color-text-primary) 10%, var(--color-background-primary-default))}}.peach-react [data-item-detail] [data-id-face]:not(:has(img)){color:var(--color-text-secondary)}.peach-react [data-item-detail] [data-id-cell=studio] [data-id-face]{border-radius:var(--surface-radius);color:#555;background:#fff}.peach-react [data-item-detail] [data-id-face] img{object-fit:cover;width:100%;height:100%;display:block;position:absolute;inset:0}.peach-react [data-item-detail] [data-id-face] svg{stroke:currentColor;fill:none;stroke-width:2px;width:18px;height:18px}.peach-react [data-item-detail] [data-id-name]{font-size:var(--fs-xs);text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%;color:var(--ink-2);line-height:1.5;overflow:hidden}.peach-react [data-item-detail] [data-id-cell]:is([data-entity-kind],[data-open-unowned]):hover [data-id-face]{box-shadow:0 0 0 2px var(--ink-2)}.peach-react [data-item-detail] [data-id-cell]:is([data-entity-kind],[data-open-unowned]):hover [data-id-name]{color:var(--ink)}.peach-react [data-item-detail] [data-cast-more]{border:1px dashed var(--overlay-10);border-radius:var(--floating-radius);height:46px;color:var(--ink-2);font-size:var(--fs-xs);cursor:pointer;background:0 0;align-self:center;padding:0 12px}.peach-react [data-item-detail] [data-cast-more]:hover{background:var(--hover)}.peach-react [data-item-detail] [data-series-rows]{gap:7px;display:grid}.peach-react [data-item-detail] [data-series-link]{width:100%;color:var(--ink-2);font-size:var(--fs-sm);text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:default;background:0 0;border:0;align-items:flex-start;gap:7px;padding:0;line-height:1.4;text-decoration:none;display:flex}.peach-react [data-item-detail] [data-series-link] svg{stroke:currentColor;fill:none;stroke-width:2px;flex:none;width:16px;height:16px;margin-top:1px}.peach-react [data-item-detail] button[data-series-link]{cursor:pointer}.peach-react [data-item-detail] button[data-series-link]:hover{color:var(--tungsten)}.peach-react [data-item-detail] [data-detail-tag]{border:1px solid var(--line);border-radius:var(--tag-radius);background:var(--tag-fill);align-items:center;min-height:30px;display:inline-flex;overflow:hidden}.peach-react [data-item-detail] [data-detail-tag] button{color:var(--ink-2);cursor:pointer;background:0 0;border:0;height:28px}.peach-react [data-item-detail] [data-detail-tag] [data-tag]{padding:3px 8px}.peach-react [data-item-detail] [data-detail-tag] [data-remove-tag]{width:28px;color:var(--muted);place-items:center;padding:0;display:grid}.peach-react [data-item-detail] [data-detail-tag] [data-tag]:hover{background:var(--hover);color:var(--ink)}.peach-react [data-item-detail] [data-detail-tag] [data-remove-tag]:hover{color:var(--drop);background:var(--drop)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-item-detail] [data-detail-tag] [data-remove-tag]:hover{background:color-mix(in srgb, var(--drop) 12%, transparent)}}.peach-react [data-item-detail] [data-detail-tag] svg,.peach-react [data-item-detail] [data-tag-plus] svg{stroke:currentColor;fill:none;stroke-width:2px;width:15px;height:15px}.peach-react [data-item-detail] [data-tag-plus]{border:1px dashed var(--line);width:30px;height:30px;color:var(--muted);cursor:pointer;background:0 0;border-radius:50%;place-items:center;display:grid}.peach-react [data-item-detail] [data-tag-plus]:hover{background:var(--hover);color:var(--ink)}.peach-react [data-item-detail] [data-tag-picker]{z-index:120;border:1px solid var(--ink);max-height:min(480px,70vh);position:absolute;top:calc(100% + 8px);left:12px;right:12px;overflow:hidden}@supports (color:color-mix(in lab, red, red)){.peach-react [data-item-detail] [data-tag-picker]{border:1px solid color-mix(in srgb, var(--ink) 15%, transparent)}}.peach-react [data-item-detail] [data-tag-picker]{border-radius:var(--floating-radius);background:var(--frost-panel);-webkit-backdrop-filter:saturate(1.8)blur(20px);box-shadow:0 24px 70px -24px #000}.peach-react [data-item-detail] [data-tag-picker][hidden]{display:none}.peach-react [data-item-detail] [data-tag-picker]:not([hidden]){transform-origin:0 0;animation:.15s ease-out backwards board-menu-in}.peach-react [data-item-detail] [data-tag-picker][class~=leaving]{animation:.15s ease-out forwards board-menu-out}.peach-react [data-item-detail] [data-tag-search]{border-bottom:1px solid var(--ink);align-items:center;gap:10px;height:54px;padding:0 14px;display:flex}@supports (color:color-mix(in lab, red, red)){.peach-react [data-item-detail] [data-tag-search]{border-bottom:1px solid color-mix(in srgb, var(--ink) 10%, transparent)}}.peach-react [data-item-detail] [data-tag-search] svg{stroke:currentColor;fill:none;stroke-width:2px;width:20px;height:20px;color:var(--muted)}.peach-react [data-item-detail] [data-tag-search] input{min-width:0;padding:revert;font-size:var(--fs-lg);background:0 0;border:0;outline:0;flex:1}.peach-react [data-item-detail] [data-tag-search] input::placeholder{color:revert}.peach-react [data-item-detail] [data-tag-body]{max-height:calc(min(480px,70vh) - 54px);padding:12px;overflow:auto}.peach-react [data-item-detail] [data-tag-section]+[data-tag-section]{border-top:1px solid var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-item-detail] [data-tag-section]+[data-tag-section]{border-top:1px solid color-mix(in srgb, var(--ink) 9%, transparent)}}.peach-react [data-item-detail] [data-tag-section]+[data-tag-section]{margin-top:12px;padding-top:12px}.peach-react [data-item-detail] [data-tag-section] h4{color:var(--muted);font-size:var(--fs-xs);letter-spacing:.12em;margin:0 0 8px;font-weight:600}.peach-react [data-item-detail] [data-tag-grid]{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 12px;display:grid}.peach-react [data-item-detail] [data-pick]{border-radius:var(--control-radius);min-width:0;height:34px;color:var(--ink-2);text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;padding:0 9px;display:flex}.peach-react [data-item-detail] [data-pick]:is(:hover,[data-active],[aria-pressed=true]){background:var(--hover);color:var(--ink)}.peach-react [data-item-detail] [data-pick-name]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.peach-react [data-item-detail] [data-pick-count]{color:var(--muted);font-size:var(--fs-xs);margin-left:auto}.peach-react [data-item-detail] [data-pick] svg{flex:none;width:14px;height:14px}@media (width<=760px){.peach-react [data-item-detail] [data-tag-picker]{position:fixed;inset:auto 12px 12px}.peach-react [data-item-detail] [data-tag-grid]{grid-template-columns:1fr}}.peach-react [data-item-detail] [data-item-trace]{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:8px 0 16px;padding:0;display:grid}.peach-react [data-item-detail] [data-trace-metric]{background:var(--surface);border-radius:12px;min-width:0;padding:14px 12px}.peach-react [data-item-detail] [data-trace-label]{color:var(--muted);font-variant-numeric:tabular-nums;justify-content:space-between;gap:8px;margin:0 0 12px;font-size:13px;line-height:18px;display:flex}.peach-react [data-item-detail] [data-trace-label]>span:last-child{color:var(--ink);font-variant-numeric:tabular-nums}.peach-react [data-item-detail] [data-trace-bar]{background:var(--line);border:0;border-radius:4px;height:4px;position:relative}.peach-react [data-item-detail] [data-trace-bar] u{background:var(--loupe);position:absolute;inset:0 auto 0 0}@supports (color:color-mix(in lab, red, red)){.peach-react [data-item-detail] [data-trace-bar] u{background:color-mix(in srgb, var(--loupe) 26%, transparent)}}.peach-react [data-item-detail] [data-trace-bar] u{text-decoration:none}.peach-react [data-item-detail] [data-trace-bar] b{background:var(--tungsten);border-radius:var(--pill-radius);width:2px;position:absolute;top:-3px;bottom:-3px;left:0}.peach-react [data-item-detail] [data-trace-bar] [data-trace-real]{background:var(--keep)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-item-detail] [data-trace-bar] [data-trace-real]{background:color-mix(in srgb, var(--keep) 40%, transparent)}}.peach-react [data-item-detail] [data-fb=like]:hover{color:var(--ink);background:var(--hover)}.peach-react [data-item-detail] [data-fb=like][aria-pressed=true]{color:var(--ink);background:var(--picked)}.peach-react [data-item-detail] [data-fb=playlist]:hover{color:var(--ink);background:var(--hover)}.peach-react [data-item-detail] [data-fb=reason]:is(:hover,[aria-expanded=true],[data-has-reason=true]){color:#ff669d;background:#ff669d1f}.peach-react [data-item-detail] [data-fb=dispose]{margin-left:auto}.peach-react [data-item-detail] [data-fb=dispose]:is(:hover,[aria-pressed=true]){color:var(--meter);background:var(--meter)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-item-detail] [data-fb=dispose]:is(:hover,[aria-pressed=true]){background:color-mix(in srgb, var(--meter) 12%, transparent)}}.peach-react [data-item-detail] [data-fb=quality]:is(:hover,[aria-pressed=true]){color:#b78cff;background:#b78cff21}.peach-react [data-item-detail] [data-item-preference]{background:0 0;border:0;margin:0 0 14px;padding:0}.peach-react [data-item-detail] [data-item-preference][hidden]{display:none}.peach-react [data-item-detail] [data-item-preference] textarea{resize:vertical;width:100%;min-height:62px;color:var(--ink);background:var(--ground);border:1px solid var(--line);border-radius:var(--control-radius);line-height:1.5;font-size:var(--fs-md);padding:8px 9px;transition:border-color .12s,box-shadow .12s;display:block}.peach-react [data-item-detail] [data-item-preference] textarea:hover{border-color:var(--field-ring-hover)}.peach-react [data-item-detail] [data-item-preference] textarea:focus{box-shadow:inset 0 0 0 2px var(--color-border-button-active);outline:0}.peach-react [data-item-detail] [data-preference-foot]{justify-content:flex-end;align-items:center;gap:8px;margin-top:7px;display:flex}.peach-react [data-item-detail] [data-preference-foot]>span{color:var(--muted);font-size:var(--fs-xs);margin-right:auto}.peach-react [data-item-detail] [data-preference-foot]>span:empty{display:none}.peach-react [data-item-detail] [data-save-preference]{min-width:58px;padding-inline:12px}.peach-react [data-item-detail] [data-kind=o]{border:1px solid var(--line);background:var(--surface);width:100%;min-height:40px;color:var(--ink);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;gap:8px;margin-bottom:10px;padding:8px 12px;font-size:14px;font-weight:500;line-height:20px;transition:background-color .14s;display:flex;box-shadow:inset 0 1px #ffffff0a}.peach-react [data-item-detail] [data-kind=o] svg{fill:currentColor;color:#ff669d;width:20px;height:20px}.peach-react [data-item-detail] [data-kind=o] b{background:var(--picked);border-radius:5px;padding:1px 6px;font-size:12px;font-weight:500;line-height:18px}.peach-react [data-item-detail] [data-kind=o]:hover{background:var(--hover)}.peach-react [data-item-related]{border-top:1px solid var(--line-soft);background:var(--detail-surface);padding:11px 15px 12px}.peach-react [data-item-related] h3{font-size:var(--fs-xs);letter-spacing:.1em;color:var(--muted);text-transform:uppercase;margin:0 0 8px}.peach-react [data-item-related] [data-related-row]{overscroll-behavior-inline:contain;scrollbar-width:none;gap:11px;padding-bottom:6px;display:flex;overflow:auto hidden}.peach-react [data-item-related] [data-related-row]::-webkit-scrollbar{display:none}.peach-react [data-photo-lightbox]{z-index:200;font:var(--board-body);font-kerning:auto;font-variant-ligatures:normal;letter-spacing:0;--photo-card-drop:#00000029;--photo-thumb-drop:#0000001a;background:#000;display:block;position:fixed;inset:0;overflow:hidden}.dark .peach-react [data-photo-lightbox]{--photo-card-drop:#0009;--photo-thumb-drop:#00000080}.peach-react [data-photo-lightbox]:modal{color:#fff;border:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0}.peach-react [data-photo-lightbox] :focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-photo-main]{width:100%;min-width:0;height:100%;min-height:0;position:absolute;inset:0;overflow:hidden}.peach-react [data-photo-main]>.swiper-wrapper{width:100%;height:100%;display:flex}.peach-react [data-photo-main]>.swiper-wrapper>.swiper-slide{flex:0 0 100%;place-items:center;width:100%;min-width:0;height:100%;min-height:0;display:grid}.peach-react [data-photo-main] .swiper-zoom-container{box-sizing:border-box;place-items:center;width:100%;min-width:0;height:100%;min-height:0;padding:24px 72px 76px;display:grid}.peach-react [data-photo-lightbox][data-has-strip] [data-photo-main] .swiper-zoom-container{padding-bottom:148px}.peach-react [data-photo-main] img{object-fit:contain;min-width:0;max-width:100%;min-height:0;max-height:100%;display:block}.peach-react :is([data-photo-close],[data-photo-nav]){box-sizing:border-box;color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009;border:0;border-radius:50%;place-items:center;width:48px;height:48px;padding:0;display:grid;position:absolute}.peach-react [data-photo-close]:hover{background:#000000c7}.peach-react [data-photo-lightbox] :is([data-photo-close],[data-photo-nav]):focus-visible{outline-offset:3px}.peach-react :is([data-photo-close],[data-photo-nav]) svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:24px;height:24px;display:block}.peach-react [data-photo-close]{z-index:5;top:12px;right:14px}.peach-react [data-photo-nav]{z-index:4;border:1px solid var(--line);background:var(--surface);width:36px;height:36px;color:var(--ink-2);box-shadow:var(--elevation-xs);border-radius:10px;top:50%;transform:translateY(-50%)}.peach-react [data-photo-nav]:hover{background:var(--hover)}.peach-react [data-photo-nav] svg{width:20px;height:20px}.peach-react [data-photo-nav=back]{left:14px}.peach-react [data-photo-nav=fwd]{right:14px}.peach-react [data-photo-nav=fwd] svg{transform:rotate(180deg)}.peach-react [data-photo-nav].swiper-button-disabled{visibility:hidden;opacity:.4;pointer-events:none}.peach-react [data-photo-nav].swiper-button-lock{display:none}.peach-react [data-photo-bar]{z-index:4;pointer-events:none;grid-template-columns:1fr auto 1fr;align-items:center;min-height:48px;display:grid;position:absolute;bottom:14px;left:14px;right:14px}.peach-react [data-photo-lightbox][data-has-strip] [data-photo-bar]{bottom:98px}.peach-react [data-photo-bar]>*{pointer-events:auto}.peach-react [data-photo-count]{border-radius:var(--pill-radius);color:#ffffffd1;font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009;justify-self:center;padding:7px 11px}.peach-react [data-photo-pagination]{justify-content:center;align-items:center;gap:8px;max-width:160px;height:28px;margin-inline:auto;display:flex;overflow:hidden}.peach-react [data-photo-pagination] .swiper-pagination-bullet{opacity:1;background:#a3a3a3;border:0;border-radius:999px;flex:none;width:6px;height:6px;padding:0;transition:width .2s ease-out,background .2s ease-out;margin:0!important}.peach-react [data-photo-pagination] .swiper-pagination-bullet-active{background:#fafafa;width:16px}.peach-react [data-photo-detail-toggle]{color:#ffffffd1;cursor:pointer;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009;border:0;border-radius:50%;justify-self:start;place-items:center;width:40px;height:40px;padding:0;display:grid}.peach-react [data-photo-detail-toggle]:is(:hover,[aria-expanded=true]){color:#fff;background:#000000c7}.peach-react [data-photo-detail-toggle] svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px;display:block}.peach-react [data-photo-zoom]{border-radius:var(--pill-radius);color:#ffffffd1;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009;justify-self:end;align-items:center;gap:7px;padding:4px;display:flex}.peach-react [data-photo-zoom] button{color:#fff;cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;width:28px;height:28px;padding:0;display:grid}.peach-react [data-photo-zoom] button:hover{background:#ffffff38}.peach-react [data-photo-zoom] button svg{fill:none;stroke:currentColor;stroke-width:2px;width:15px;height:15px;display:block}.peach-react [data-photo-zoom] [data-photo-scale]{width:30px}.peach-react [data-photo-zoom] [data-photo-scale=original]{border-radius:var(--control-radius);width:38px}.peach-react [data-photo-zoom] :is([data-photo-scale=original],[data-photo-zoom-readout]){font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums}.peach-react [data-photo-zoom-readout]{text-align:right;width:38px;font-weight:400}.peach-react [data-photo-zoom] input{cursor:pointer;appearance:none;background:0 0;width:116px;height:20px;margin:2px}.peach-react [data-photo-zoom] input::-webkit-slider-runnable-track{background:linear-gradient(90deg, var(--color-accent-400) var(--board-range-value,0%), var(--inset) 0);border-radius:999px;height:6px;box-shadow:inset 0 1px 1px #0000000f}.peach-react [data-photo-zoom] input::-moz-range-track{background:linear-gradient(90deg, var(--color-accent-400) var(--board-range-value,0%), var(--inset) 0);border-radius:999px;height:6px}.peach-react [data-photo-zoom] input::-webkit-slider-thumb{border:1px solid var(--line);width:20px;height:20px;box-shadow:0 2px 4px var(--photo-thumb-drop), inset 0 1px 0 #fffc;cursor:grab;transition:scale calc(var(--spring-press-ms) * 1ms) var(--spring-press), box-shadow .15s;appearance:none;background:radial-gradient(circle,#fff 3px,#e5e5e5 3.5px,#fff 4px);border-radius:50%;margin-top:-7px}.peach-react [data-photo-zoom] input::-moz-range-thumb{border:1px solid var(--line);width:18px;height:18px;box-shadow:0 2px 4px var(--photo-thumb-drop);background:radial-gradient(circle,#fff 3px,#e5e5e5 3.5px,#fff 4px);border-radius:50%}.peach-react [data-photo-zoom] input:hover::-webkit-slider-thumb{box-shadow:0 0 0 4px #ffffff38}.peach-react [data-photo-zoom] input:active::-webkit-slider-thumb{transition:scale 60ms ease-out;scale:1.18}.peach-react [data-photo-lightbox] [data-photo-zoom] input:focus-visible{outline:none}.peach-react [data-photo-zoom] input:focus-visible::-webkit-slider-thumb{outline-offset:2px;outline:2px solid #fff}.peach-react [data-photo-detail]{box-sizing:border-box;z-index:var(--layer-popover);overscroll-behavior:contain;border:1px solid var(--line);border-radius:var(--floating-radius);background:var(--ground);width:320px;max-width:calc(100vw - 16px);color:var(--ink);box-shadow:0 8px 24px var(--photo-card-drop);font-size:var(--fs-md);overflow-wrap:anywhere;pointer-events:auto;align-items:start;gap:14px;margin:0;padding:16px;line-height:1.5;display:grid;position:fixed;inset:auto;overflow:auto}.peach-react [data-photo-detail][hidden]{display:none}.peach-react [data-photo-detail-copy]{gap:4px;min-width:0;display:grid}.peach-react [data-photo-detail-copy] h2{font-size:var(--fs-sm);white-space:nowrap;margin:0;font-weight:700;overflow:hidden}.peach-react :is([data-photo-detail-meta],[data-photo-status]){color:var(--muted);font-size:var(--fs-xs)}.peach-react [data-photo-status]{flex:100%;min-width:0}.peach-react [data-photo-status]:empty{display:none}.peach-react [data-photo-reveal]{border:1px solid var(--line);border-radius:var(--control-radius);height:32px;color:var(--ink);cursor:pointer;background:0 0;justify-self:start;align-items:center;gap:7px;padding:0 10px;display:flex}.peach-react [data-photo-reveal]:hover{background:#ffffff1f}.peach-react [data-photo-reveal][hidden]{display:none}.peach-react [data-photo-reveal] svg{fill:none;stroke:currentColor;stroke-width:2px;width:16px;height:16px;display:block}.peach-react [data-photo-strip]{z-index:3;width:auto;height:72px;padding:0;position:absolute;bottom:14px;left:72px;right:72px}.peach-react [data-photo-lightbox]:not([data-has-strip]) [data-photo-strip]{display:none}.peach-react [data-photo-strip] .swiper-slide{border-radius:var(--control-radius);opacity:.5;cursor:pointer;width:auto;height:72px;overflow:hidden}.peach-react [data-photo-strip] .swiper-slide img{object-fit:cover;width:auto;max-width:none;height:100%;display:block}.peach-react [data-photo-strip] .swiper-slide-thumb-active{opacity:1;box-shadow:inset 0 0 0 2px #fff}@media (width<=640px){.peach-react [data-photo-zoom] input{width:72px}.peach-react [data-photo-zoom-readout]{display:none}.peach-react [data-photo-main] .swiper-zoom-container{padding:12px 12px 70px}.peach-react [data-photo-lightbox][data-has-strip] [data-photo-main] .swiper-zoom-container{padding-bottom:136px}.peach-react [data-photo-bar]{min-height:44px;bottom:10px;left:12px;right:12px}.peach-react [data-photo-lightbox][data-has-strip] [data-photo-bar]{bottom:80px}.peach-react [data-photo-reveal]{min-height:44px}.peach-react [data-photo-strip]{bottom:12px;left:56px;right:56px}.peach-react [data-photo-strip],.peach-react [data-photo-strip] .swiper-slide{height:56px}.peach-react [data-photo-close]{top:10px;right:10px}.peach-react [data-photo-nav=back]{left:8px}.peach-react [data-photo-nav=fwd]{right:8px}}@media (prefers-reduced-motion:reduce){.peach-react [data-photo-pagination] .swiper-pagination-bullet{transition:none}}.peach-react [data-index-grid] [data-index-cell]{background:var(--ground)}.peach-react [data-index-grid] [data-index-cell]:hover{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-index-grid] [data-index-cell]:hover{background:color-mix(in srgb, var(--ink) 6%, var(--ground))}}.peach-react [data-index-grid] [data-person-ring]{background:var(--sunk);color:var(--muted);font-family:Bahnschrift,Microsoft YaHei UI,Microsoft YaHei,PingFang SC,sans-serif}.peach-react [data-index-grid] [data-index-readout]{color:var(--muted)}[data-stage-media]{isolation:isolate;background:#000;justify-content:center;align-items:center;display:flex;position:relative}[data-ambient-canvas]{z-index:0;filter:blur(46px)saturate(1.45);opacity:.42;pointer-events:none;width:calc(100% + 68px);height:calc(100% + 68px);position:absolute;inset:-34px;transform:scale(1.06);-webkit-mask-image:radial-gradient(#000 28%,#000000b8 55%,#0000 86%);mask-image:radial-gradient(#000 28%,#000000b8 55%,#0000 86%)}[data-stage]:not([data-ambient]) [data-ambient-canvas]{display:none}[data-stage-media]>video,[data-stage-media]>.video-js{z-index:1;position:relative}[data-stage-media] video{width:100%;max-height:76vh;display:block}[data-stage-media]>video[hidden]{display:none}[data-stage-media]>.video-js{aspect-ratio:16/9;background:#000;width:100%;height:auto;max-height:76vh}[data-stage-media] .video-js .vjs-tech{object-fit:contain;max-height:none}[data-stage-media] .video-js .vjs-big-play-button{width:56px;height:56px;box-shadow:none;background:#0000004d;border:0;border-radius:50%;margin:0;line-height:56px;top:50%;left:50%;transform:translate(-50%,-50%)}[data-stage-media] .video-js .vjs-big-play-button:hover,[data-stage-media] .video-js .vjs-big-play-button:focus{background:#ffffff1a}[data-stage-media] .video-js .vjs-big-play-button .vjs-icon-placeholder:before{content:"";border-top:.72em solid #0000;border-bottom:.72em solid #0000;border-left:1.05em solid #fff;width:0;height:0;top:50%;left:50%;transform:translate(-38%,-50%)}[data-stage-media] .video-js:has(.vjs-peach-bezel) .vjs-big-play-button{display:none}[data-stage-media] .video-js .vjs-loading-spinner{z-index:18;opacity:1;background:0 0;border:0;border-radius:0;width:64px;height:64px;margin:0;padding:0;top:50%;left:50%;transform:translate(-50%,-50%)}[data-stage-media] .video-js .vjs-loading-spinner:before,[data-stage-media] .video-js .vjs-loading-spinner:after{content:none}.vjs-peach-spinner-container{pointer-events:none;width:100%;height:100%;animation:1.56824s linear infinite peach-spinner-linspin;position:absolute;top:0;left:0}.vjs-peach-spinner-rotator{width:100%;height:100%;animation:5.332s cubic-bezier(.4,0,.2,1) infinite both peach-spinner-easespin;position:absolute}.vjs-peach-spinner-left,.vjs-peach-spinner-right{position:absolute;inset:0;overflow:hidden}.vjs-peach-spinner-left{right:49%}.vjs-peach-spinner-right{left:49%}.vjs-peach-spinner-circle{box-sizing:border-box;border:6px solid #ddd;border-bottom-color:#0000;border-radius:50%;width:200%;height:100%;position:absolute}.vjs-peach-spinner-left .vjs-peach-spinner-circle{border-right-color:#0000;animation:1.333s cubic-bezier(.4,0,.2,1) infinite both peach-spinner-left-spin;left:0;right:-100%}.vjs-peach-spinner-right .vjs-peach-spinner-circle{border-left-color:#0000;animation:1.333s cubic-bezier(.4,0,.2,1) infinite both peach-spinner-right-spin;left:-100%;right:0}@keyframes peach-spinner-linspin{to{transform:rotate(1turn)}}@keyframes peach-spinner-easespin{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}to{transform:rotate(3turn)}}@keyframes peach-spinner-left-spin{0%{transform:rotate(130deg)}50%{transform:rotate(-5deg)}to{transform:rotate(130deg)}}@keyframes peach-spinner-right-spin{0%{transform:rotate(-130deg)}50%{transform:rotate(5deg)}to{transform:rotate(-130deg)}}[data-stage-media] .video-js{font-family:inherit}[data-stage-media] .video-js .vjs-control-bar{box-sizing:border-box;-webkit-backdrop-filter:none;backdrop-filter:none;background:0 0;border-radius:0;align-items:flex-end;width:auto;height:59px;padding:3px 0 0;display:flex;bottom:8px;left:12px;right:12px}[data-stage-media] .video-js .vjs-control-bar>.vjs-play-control{width:40px;height:40px;box-shadow:none;background:#0009;border:0;border-radius:50%;flex:0 0 40px;align-self:flex-end;margin:0 0 8px;position:relative;overflow:visible}[data-stage-media] .video-js .vjs-volume-panel>.vjs-mute-control .vjs-icon-placeholder:before,[data-stage-media] .video-js .vjs-peach-right-controls .vjs-icon-placeholder:before{filter:drop-shadow(0 0 1px #000c);place-items:center;width:100%;height:100%;line-height:normal;display:grid}[data-stage-media] .video-js [data-peach-explicit-icon]>.vjs-icon-placeholder:before,[data-stage-media] .video-js [data-peach-explicit-icon]>.vjs-icon-placeholder:after{display:none}[data-stage-media] .video-js .vjs-volume-panel>.vjs-mute-control[data-peach-explicit-icon]>.vjs-icon-placeholder{display:none!important}.vjs-peach-control-icon{z-index:2;fill:currentColor;stroke:none;filter:drop-shadow(0 0 1px #000c);pointer-events:none;width:24px;height:24px;transition:transform .1s cubic-bezier(.05,0,0,1);display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)scale(1)}[data-stage-media] .video-js [data-peach-explicit-icon]:active>.vjs-peach-control-icon{transform:translate(-50%,-50%)scale(.9)}[data-stage-media] .video-js .vjs-control-bar>.vjs-play-control>.vjs-peach-control-icon{width:26px;height:26px}.vjs-peach-morph-icon path{transition:d .2s cubic-bezier(.4,0,.2,1)}.vjs-peach-morph-icon .vjs-peach-volume-arc-inner,.vjs-peach-morph-icon .vjs-peach-volume-arc-outer{transform-box:view-box;transform-origin:0 0;transition:transform .25s cubic-bezier(.4,0,.2,1)}.vjs-peach-morph-icon[data-silent=true] .vjs-peach-volume-arc-inner{transform:translate(18px,12px)scale(0)translate(-18px,-12px)}.vjs-peach-morph-icon[data-silent=true] .vjs-peach-volume-arc-outer,.vjs-peach-morph-icon[data-loud=false] .vjs-peach-volume-arc-outer{transform:translate(22px,12px)scale(0)translate(-22px,-12px)}.vjs-peach-morph-icon .vjs-peach-volume-speaker{opacity:1;transition:opacity linear}.vjs-peach-morph-icon .vjs-peach-volume-speaker-muted,.vjs-peach-morph-icon .vjs-peach-volume-x{opacity:0;transition:opacity linear}.vjs-peach-morph-icon[data-silent=true] .vjs-peach-volume-speaker{opacity:0;transition:opacity 0s linear .25s}.vjs-peach-morph-icon[data-silent=true] .vjs-peach-volume-speaker-muted,.vjs-peach-morph-icon[data-silent=true] .vjs-peach-volume-x{opacity:1;transition:opacity 0s linear .25s}.vjs-peach-hover{z-index:0;border-radius:var(--pill-radius);pointer-events:none;background:0 0;width:100%;height:32px;transition:background .2s cubic-bezier(.05,0,0,1);position:absolute;top:4px;left:0}[data-stage-media] .video-js .vjs-control-bar>.vjs-play-control>.vjs-peach-hover{border-radius:50%;width:auto;height:auto;inset:4px}[data-stage-media] .video-js .vjs-control-bar>.vjs-play-control:hover>.vjs-peach-hover,[data-stage-media] .video-js .vjs-control-bar>.vjs-play-control:focus-visible>.vjs-peach-hover,.vjs-peach-right-controls>.vjs-control:hover>.vjs-peach-hover,.vjs-peach-right-controls>.vjs-control:focus-within>.vjs-peach-hover{background:#ffffff1a}[data-stage-media] .video-js .vjs-control-bar>.vjs-play-control:active>.vjs-peach-hover,.vjs-peach-right-controls>.vjs-control:active>.vjs-peach-hover{background:#fff3}[data-stage-media] .video-js .vjs-control-bar>.vjs-play-control .vjs-icon-placeholder,[data-stage-media] .video-js .vjs-peach-right-controls button,.vjs-peach-settings>button,.vjs-peach-theater>button{z-index:1;position:relative}[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel{box-sizing:border-box;z-index:3;border-radius:var(--pill-radius);width:40px;box-shadow:none;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);isolation:isolate;background:#0009;border:0;flex:0 0 40px;grid-template-columns:40px 0;align-self:flex-end;align-items:center;column-gap:0;margin:0 0 8px 12px;padding:0;transition:width .2s cubic-bezier(.05,0,0,1),flex-basis .2s cubic-bezier(.05,0,0,1),padding-right .2s cubic-bezier(.05,0,0,1);display:grid;position:relative;overflow:visible;height:40px!important}[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel:after{content:"";z-index:0;border-radius:var(--pill-radius);pointer-events:none;background:0 0;transition:background .2s cubic-bezier(.05,0,0,1);position:absolute;inset:4px}[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel:hover:after,[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel:focus-within:after,[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel.vjs-hover:after,[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel.vjs-slider-active:after{background:#ffffff1a}[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel:active:after{background:#fff3}[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel:hover,[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel:focus-within,[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel.vjs-hover,[data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel.vjs-slider-active{background:#0009;flex-basis:111px;grid-template-columns:40px 52px;column-gap:3px;width:111px;padding-right:16px}[data-stage][data-theater] [data-stage-media] .video-js .vjs-control-bar>.vjs-volume-panel,.video-js.vjs-fullscreen .vjs-control-bar>.vjs-volume-panel{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009!important}[data-stage-media] .video-js .vjs-volume-panel>.vjs-mute-control{box-sizing:border-box;z-index:1;background:0 0;border:0;flex:0 0 40px;align-self:center;min-width:40px;width:40px!important;height:40px!important;margin:0!important;padding:0!important;position:relative!important;top:0!important;left:0!important;transform:none!important}[data-stage-media] .video-js .vjs-volume-panel>.vjs-mute-control>.vjs-peach-control-icon{width:18px;height:18px}[data-stage-media] .video-js .vjs-volume-panel>.vjs-volume-control.vjs-volume-horizontal{box-sizing:border-box;z-index:1;opacity:0;visibility:hidden;pointer-events:none;flex:0 0 52px;align-self:center;min-width:52px;min-height:36px;transition:opacity .1s cubic-bezier(0,0,.2,1);overflow:visible;width:52px!important;height:40px!important;margin:0!important;padding:0!important;display:block!important;position:relative!important;top:0!important;left:0!important}[data-stage-media] .video-js .vjs-volume-panel:hover>.vjs-volume-control.vjs-volume-horizontal,[data-stage-media] .video-js .vjs-volume-panel:focus-within>.vjs-volume-control.vjs-volume-horizontal,[data-stage-media] .video-js .vjs-volume-panel.vjs-hover>.vjs-volume-control.vjs-volume-horizontal,[data-stage-media] .video-js .vjs-volume-panel.vjs-slider-active>.vjs-volume-control.vjs-volume-horizontal{opacity:1;visibility:visible;pointer-events:auto;transition-delay:80ms}[data-stage-media] .video-js .vjs-volume-panel .vjs-volume-bar.vjs-slider-horizontal{box-sizing:border-box;background:0 0;transform:none;width:52px!important;height:40px!important;margin:0!important;position:absolute!important;top:0!important;left:0!important;right:auto!important;overflow:visible!important}[data-stage-media] .video-js .vjs-volume-panel .vjs-volume-bar.vjs-slider-horizontal:before{content:"";background:#ffffff4d;height:2px;margin-top:-1px;position:absolute;top:50%;left:0;right:0}[data-stage-media] .video-js .vjs-volume-panel .vjs-volume-level{background:#fff;height:2px;margin-top:-1px;top:50%;bottom:auto}[data-stage-media] .video-js .vjs-volume-panel .vjs-mouse-display{background:0 0}[data-stage-media] .video-js .vjs-volume-panel .vjs-volume-level:before{background:#fff;border-radius:50%;width:12px;height:12px;margin:0;font-size:0;top:50%;right:-6px;transform:translateY(-50%)}[data-stage-media] .video-js .vjs-volume-panel .vjs-volume-tooltip{float:none;border-radius:var(--surface-radius);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);color:#fff;font-family:inherit;font-size:var(--fs-sm);text-shadow:0 0 2px #000;white-space:nowrap;background:#0009;padding:5px 9px;font-weight:500;line-height:15px;top:auto;bottom:calc(50% + 31px);left:50%;overflow:visible;transform:translate(-50%);z-index:5!important;right:auto!important}.vjs-peach-right-controls{box-sizing:border-box;border-radius:var(--pill-radius);height:40px;box-shadow:none;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009;border:0;flex:none;align-self:flex-end;align-items:center;margin:0 0 8px;padding:0 4px;display:flex;position:relative;overflow:visible}[data-stage-media] .video-js .vjs-peach-right-controls>.vjs-control{box-sizing:border-box;min-width:48px;box-shadow:none;color:#fff;background:0 0;border:0;border-radius:0;flex:0 0 48px;margin:0;padding:0;position:relative;width:48px!important;height:40px!important}[data-stage-media] .video-js .vjs-peach-right-controls>.vjs-control>button{width:100%;height:100%;color:inherit;background:0 0;border:0;margin:0;padding:0}[data-stage-media] .video-js .vjs-peach-right-controls>.vjs-control:focus,[data-stage-media] .video-js .vjs-peach-right-controls>.vjs-control:focus-visible,[data-stage-media] .video-js .vjs-peach-right-controls>.vjs-control>button:focus,[data-stage-media] .video-js .vjs-peach-right-controls>.vjs-control>button:focus-visible{box-shadow:none;outline:0}[data-stage-media] .video-js .vjs-progress-control{z-index:2;align-items:flex-end;width:auto;min-width:0;height:18px;display:flex;position:absolute;top:-12px;left:0;right:0}[data-stage-media] .video-js .vjs-progress-control .vjs-progress-holder{background:#28282899;border-radius:0;width:100%;height:6px;margin:0;transition:transform .2s cubic-bezier(.05,0,0,1);transform:scaleY(.667)}[data-stage-media] .video-js .vjs-progress-control:hover .vjs-progress-holder,[data-stage-media] .video-js .vjs-progress-control:focus-within .vjs-progress-holder{transform:scaleY(1)}[data-stage-media] .video-js .vjs-load-progress{background:#fff6}[data-stage-media] .video-js .vjs-load-progress div{background:#fff3}[data-stage-media] .video-js .vjs-play-progress{background:var(--tungsten)}[data-stage-media] .video-js .vjs-play-progress:before{content:"";background:var(--tungsten);width:12px;height:12px;box-shadow:none;border-radius:50%;transition:transform .2s cubic-bezier(.05,0,0,1);position:absolute;top:50%;right:-6px;transform:translateY(-50%)scaleY(1.5)}[data-stage-media] .video-js .vjs-progress-control:hover .vjs-play-progress:before,[data-stage-media] .video-js .vjs-progress-control:focus-within .vjs-play-progress:before{transform:translateY(-50%)scale(1.67)}[data-stage-media] .video-js .vjs-mouse-display .vjs-time-tooltip,[data-stage-media] .video-js .vjs-play-progress .vjs-time-tooltip{display:none!important}.vjs-peach-seek-preview{z-index:4;pointer-events:none;color:#fff;flex-direction:column;align-items:center;display:flex;position:absolute;bottom:calc(100% - 2px);transform:translate(-50%)}.vjs-peach-seek-preview[hidden]{display:none}.vjs-peach-seek-frame{aspect-ratio:16/9;border-radius:var(--floating-radius);background:#000;border:2px solid #fff;width:240px;display:block;position:relative;overflow:hidden;box-shadow:0 8px 24px #0009}.vjs-peach-seek-frame[hidden]{display:none}.vjs-peach-seek-preview img{object-fit:cover;width:100%;height:100%;display:block;position:absolute;top:0;left:0}.vjs-peach-seek-preview span{border-radius:var(--pill-radius);min-width:58px;font-size:var(--fs-sm);text-align:center;background:#000000ad;margin-top:8px;padding:6px 10px;font-weight:600;line-height:1;box-shadow:0 2px 8px #0006}[data-stage-media] .video-js .vjs-custom-control-spacer{flex:auto;display:block}[data-stage-media] .video-js .vjs-time-control{display:none!important}[data-stage-media] .video-js .vjs-peach-time{box-sizing:border-box;border-radius:var(--pill-radius);color:#fff;cursor:pointer;isolation:isolate;width:auto;height:40px;font-weight:400;font-size:var(--fs-md);font-variant-numeric:tabular-nums;white-space:nowrap;text-shadow:0 0 1px #000c;background:#0009;border:0;flex:none;align-self:flex-end;margin:0 0 8px 12px;padding:0 16px;font-family:inherit;line-height:40px;position:relative;overflow:visible}[data-stage-media] .video-js .vjs-peach-time:after{content:"";z-index:0;border-radius:var(--pill-radius);background:0 0;transition:background .2s cubic-bezier(.05,0,0,1);position:absolute;inset:4px}[data-stage-media] .video-js .vjs-peach-time:hover:after,[data-stage-media] .video-js .vjs-peach-time:focus-visible:after{background:#ffffff1a}[data-stage-media] .video-js .vjs-peach-time:active:after{background:#fff3}[data-stage-media] .video-js .vjs-peach-time:focus-visible{outline:0}.vjs-peach-time-text{z-index:1;position:relative}.vjs-peach-settings,.vjs-peach-theater,.vjs-peach-expand{flex:0 0 48px;min-width:48px;position:relative;width:48px!important}.vjs-peach-settings>button,.vjs-peach-theater>button,.vjs-peach-expand>button{width:100%;height:100%;color:inherit;cursor:pointer;background:0 0;border:0;place-items:center;padding:0;display:grid}.vjs-peach-expand>button>svg{fill:currentColor;stroke:none;filter:drop-shadow(0 0 1px #000c);width:24px;height:24px}.vjs-peach-settings>button>svg,.vjs-peach-theater>button>svg{stroke:currentColor;fill:none;stroke-width:2px;filter:drop-shadow(0 0 1px #000c);width:24px;height:24px}.vjs-peach-settings [data-player-quality-badge]{z-index:2;border-radius:var(--badge-radius);color:#fff;min-width:17px;height:12px;font-size:var(--fs-xs);transform-origin:100% 0;background:#f03;place-items:center;padding:0 2px;font-weight:600;line-height:1;display:grid;position:absolute;top:1px;right:4px;transform:scale(.67)}.vjs-peach-settings [data-player-quality-badge][hidden]{display:none}.vjs-peach-settings-menu{box-sizing:border-box;z-index:2300;border-radius:var(--floating-radius);width:min(274px,100vw - 28px);max-height:min(420px,100vh - 130px);box-shadow:none;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);color:#fff;text-shadow:0 0 1px #000c;font-weight:400;font-size:var(--fs-md);opacity:1;visibility:visible;background:#0009;border:0;padding:0;font-family:inherit;line-height:1.3;transition:opacity .1s cubic-bezier(0,0,.2,1);position:absolute;bottom:52px;right:-100px;overflow:auto}.vjs-peach-settings-menu[aria-hidden=true]{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .1s cubic-bezier(.4,0,1,1),visibility 0s .1s}.vjs-peach-settings-menu.vjs-peach-popup-animating{pointer-events:none;transition:height .25s cubic-bezier(.4,0,.2,1);overflow:hidden}.vjs-peach-panel{position:relative}.vjs-peach-popup-animating .vjs-peach-panel{transition:transform .25s cubic-bezier(.4,0,.2,1),opacity .25s cubic-bezier(.4,0,.2,1)}.vjs-peach-panel-leaving{width:100%;position:absolute;top:0;left:0}.vjs-peach-panel-animate-back{opacity:0;transform:translate(-100%)}.vjs-peach-panel-animate-forward{opacity:0;transform:translate(100%)}.vjs-peach-settings-menu button{box-sizing:border-box;isolation:isolate;border-radius:var(--control-radius);color:#fff;width:100%;min-height:48px;font:inherit;cursor:pointer;background:0 0;border:0;padding:0;position:relative;overflow:hidden}.vjs-peach-settings-menu button:before{content:"";z-index:0;border-radius:inherit;pointer-events:none;background:0 0;transition:background .1s cubic-bezier(.05,0,0,1);position:absolute;inset:0}.vjs-peach-settings-menu button:hover:before,.vjs-peach-settings-menu button:focus-visible:before{background:#ffffff1a}.vjs-peach-settings-menu button:active:before{background:#fff3}.vjs-peach-settings-menu button:focus-visible{outline:0}.vjs-peach-settings-menu button>*{z-index:1;position:relative}.video-js .vjs-peach-menu-row{text-align:left;grid-template-columns:56px minmax(0,1fr) minmax(0,max-content) 32px;align-items:center;gap:0;display:grid;padding:0!important}.vjs-peach-menu-row>svg{fill:currentColor;stroke:none;justify-self:start;width:24px;height:24px;margin-left:8px}.vjs-peach-menu-row>span{font-size:var(--fs-md);line-height:18.2px}.vjs-peach-menu-row>b{font-size:var(--fs-md);color:#ffffffb3;white-space:nowrap;padding-left:8px;font-weight:400;line-height:18.2px}.vjs-peach-menu-row>svg:last-child{color:#ffffffb3;fill:currentColor;stroke:none;justify-self:center;width:18px;height:18px;margin:0}.vjs-peach-menu-row[data-player-ambient]{grid-template-columns:56px minmax(0,1fr) auto;padding-right:8px!important}.vjs-peach-switch{box-sizing:border-box;border-radius:var(--floating-radius);background:#0000004d;width:40px;height:24px;display:block;position:relative}.vjs-peach-switch:after{content:"";width:20px;height:20px;box-shadow:none;background:#ffffffb3;border-radius:50%;transition:transform .2s cubic-bezier(.05,0,0,1),background .2s cubic-bezier(.05,0,0,1);position:absolute;top:2px;left:2px}.vjs-peach-menu-row[aria-checked=true] .vjs-peach-switch{background:#ffffff4d}.vjs-peach-menu-row[aria-checked=true] .vjs-peach-switch:after{background:#fff;transform:translate(16px)}.vjs-peach-panel-header{box-sizing:border-box;color:#eee;white-space:nowrap;border-bottom:1px solid #fff3;align-items:center;gap:0;height:57px;padding:8px 0;display:flex}.vjs-peach-panel-header .vjs-peach-menu-back{color:#eee;flex:0 0 48px;place-items:center;width:48px;min-height:48px;display:grid;border:0!important;border-radius:50%!important;height:48px!important}.vjs-peach-settings-menu .vjs-peach-panel-header .vjs-peach-menu-back:before{inset:4px}.vjs-peach-panel-header .vjs-peach-menu-back svg{fill:currentColor;stroke:none;width:32px;height:32px;display:block}.vjs-peach-panel-header strong{font-size:var(--fs-md);color:#eee;font-weight:500;line-height:18.2px}.vjs-peach-panel-menu{padding:8px}.video-js .vjs-peach-menu-option{text-align:left;grid-template-columns:35px minmax(0,1fr);align-items:center;line-height:18.2px;display:grid;font-size:var(--fs-md)!important;padding:0 20px 0 0!important}.vjs-peach-option-check{place-items:center;width:35px;height:24px;display:grid}.vjs-peach-option-check svg{fill:currentColor;stroke:none;width:24px;height:24px;display:block}.vjs-peach-option-label{min-width:0}.vjs-peach-speed-panel{box-sizing:border-box;flex-direction:column;padding:24px 16px 16px;display:flex}.vjs-peach-speed-display{font-size:var(--fs-lg);color:#fff;justify-content:center;margin-bottom:24px;font-weight:600;line-height:22px;display:flex}.vjs-peach-speed-slider{align-items:center;gap:16px;margin-bottom:24px;display:flex}.vjs-peach-speed-chips{align-items:flex-start;gap:8px;display:flex}.vjs-peach-speed-preset{flex-direction:column;flex:0 53px;align-items:center;min-width:0;display:flex}.vjs-peach-speed-preset-label{font-size:var(--fs-xs);color:#ffffffb3;margin-top:4px;font-weight:400;line-height:14px}.vjs-peach-settings-menu .vjs-peach-speed-button{border-radius:var(--pill-radius);color:#fff;text-align:center;cursor:pointer;background:#ffffff1a;border:0;justify-content:center;align-items:center;height:32px;min-height:32px;padding:0;font-weight:500;line-height:16px;transition:background .2s cubic-bezier(.05,0,0,1);display:flex}.vjs-peach-settings-menu .vjs-peach-speed-button:before{content:none}.vjs-peach-settings-menu .vjs-peach-speed-button:hover{background:#fff3}.vjs-peach-settings-menu .vjs-peach-speed-button:active{background:#ffffff4d}.vjs-peach-speed-slider .vjs-peach-speed-button{flex:none;width:32px}.vjs-peach-speed-slider .vjs-peach-speed-button>svg{stroke:currentColor;fill:none;stroke-width:2px;stroke-linecap:round;width:24px;height:24px;display:block}.vjs-peach-speed-chips .vjs-peach-speed-button{width:100%;font-size:var(--fs-xs);gap:4px}.vjs-peach-speed-range{--peach-speed-percent:0%;appearance:none;cursor:pointer;background:0 0;flex:auto;width:100%;min-width:0;height:24px;margin:0}.vjs-peach-speed-range:focus-visible{outline:0}.vjs-peach-speed-range::-webkit-slider-runnable-track{border-radius:var(--pill-radius);background:linear-gradient(to right,#fff 0,#fff var(--peach-speed-percent),#909090 var(--peach-speed-percent),#909090 100%);height:4px}.vjs-peach-speed-range::-webkit-slider-thumb{appearance:none;background:#fff;border-radius:50%;width:16px;height:16px;margin-top:-6px}.vjs-peach-speed-range::-moz-range-track{border-radius:var(--pill-radius);background:linear-gradient(to right,#fff 0,#fff var(--peach-speed-percent),#909090 var(--peach-speed-percent),#909090 100%);height:4px}.vjs-peach-speed-range::-moz-range-thumb{background:#fff;border:0;border-radius:50%;width:16px;height:16px}.video-js.vjs-peach-xsmall .vjs-peach-speed-panel{padding:16px}.video-js.vjs-peach-xsmall .vjs-peach-speed-display,.video-js.vjs-peach-xsmall .vjs-peach-speed-slider{margin-bottom:16px}.vjs-peach-bezel{z-index:19;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);color:#fff;opacity:0;pointer-events:none;background:#0009;border-radius:50%;place-items:center;width:78px;height:78px;margin:-39px 0 0 -39px;display:grid;position:absolute;top:50%;left:50%}.vjs-peach-bezel[hidden]{display:none}.vjs-peach-bezel-icon{place-items:center;width:54px;height:54px;display:grid}.vjs-peach-bezel-icon svg{fill:currentColor;stroke:none;width:100%;height:100%;display:block}.vjs-peach-bezel-run{animation:1s cubic-bezier(.05,0,0,1) forwards peach-bezel-fadeout}@keyframes peach-bezel-fadeout{0%{opacity:0}25%,75%{opacity:1;transform:scale(1.33)}to{opacity:0;transform:scale(1)}}.video-js.vjs-peach-xsmall .vjs-peach-bezel{width:64px;height:64px;margin:-32px 0 0 -32px}.video-js.vjs-peach-xsmall .vjs-peach-bezel-icon{width:48px;height:48px}.video-js.vjs-waiting .vjs-peach-bezel,.video-js.vjs-seeking .vjs-peach-bezel,.video-js.vjs-error .vjs-peach-bezel{display:none}.vjs-peach-tooltip{z-index:5;border-radius:var(--surface-radius);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);color:#fff;white-space:nowrap;font-size:var(--fs-sm);text-shadow:0 0 2px #000;pointer-events:none;background:#0009;align-items:center;padding:5px 9px;font-weight:500;line-height:15px;display:none;position:absolute;bottom:calc(100% + 12px);right:50%;transform:translate(50%)}.vjs-peach-tooltip,.vjs-volume-tooltip{--surface-radius:8px;--badge-radius:4px}.vjs-peach-tooltip kbd{border-radius:var(--badge-radius);color:#fff;min-width:11px;font:inherit;border:1px solid #ffffff4d;justify-content:center;align-items:center;margin-left:4px;padding:0 2px;display:flex}.vjs-peach-tooltip kbd[hidden]{display:none}[data-stage-media] .video-js .vjs-control-bar button:hover>.vjs-peach-tooltip,[data-stage-media] .video-js .vjs-control-bar button:focus-visible>.vjs-peach-tooltip{display:flex}.vjs-peach-theater>button[aria-pressed=true]{color:#fff}@media (width<=640px){[data-stage-media] .video-js .vjs-control-bar{height:59px;padding:3px 0 0;bottom:6px;left:8px;right:8px}[data-stage-media] .video-js .vjs-progress-control,[data-stage-media] .video-js.vjs-layout-tiny .vjs-progress-control,[data-stage-media] .video-js.vjs-layout-x-small .vjs-progress-control{height:18px;display:flex;top:-12px;left:0;right:0}[data-stage-media] .video-js.vjs-layout-small .vjs-current-time,[data-stage-media] .video-js.vjs-layout-small .vjs-duration,[data-stage-media] .video-js.vjs-layout-small .vjs-time-divider{display:flex}[data-stage-media] .video-js .vjs-time-control{font-size:var(--fs-xs)}.vjs-peach-seek-frame{width:160px}.vjs-peach-settings-menu{border-radius:var(--floating-radius);width:min(274px,100vw - 16px);right:-100px}}.vjs-peach-expand{display:none}.video-js.vjs-peach-xsmall .vjs-peach-right-controls>.vjs-control{flex:0 0 36px;min-width:36px;width:36px!important}.video-js.vjs-peach-xsmall .vjs-peach-right-controls .vjs-peach-control-icon,.video-js.vjs-peach-xsmall .vjs-peach-right-controls>.vjs-control:not(.vjs-peach-expand)>button>svg{width:18px;height:18px}.video-js.vjs-peach-xsmall .vjs-peach-expand>button>svg{width:32px;height:32px}.video-js.vjs-peach-xsmall .vjs-peach-right-controls>.vjs-control>.vjs-peach-hover{border-radius:50%;width:32px;height:32px;left:2px}.video-js.vjs-peach-xsmall .vjs-peach-settings-menu{width:min(274px,100vw - 48px);max-height:calc(var(--peach-player-h,420px) - 74px);right:0}.video-js.vjs-peach-xsmall .vjs-peach-panel-menu{padding:4px 8px}.video-js.vjs-peach-xsmall .vjs-peach-menu-option{min-height:44px}.video-js.vjs-peach-xsmall .vjs-peach-panel-menu:has(>.vjs-peach-menu-option:nth-child(5)){grid-template-columns:1fr 1fr;display:grid}.video-js.vjs-peach-xsmall .vjs-peach-right-controls>.vjs-control:not(.vjs-peach-settings):not(.vjs-peach-expand){display:none}.video-js.vjs-peach-xsmall .vjs-peach-expand,.video-js.vjs-peach-xsmall.vjs-peach-right-expanded .vjs-peach-right-controls>.vjs-control:not(.vjs-peach-settings):not(.vjs-peach-expand){display:block}.video-js.vjs-peach-xsmall.vjs-peach-right-expanded .vjs-peach-time{display:none}.vjs-peach-expand>button>svg{transition:transform .3s cubic-bezier(.05,0,0,1);transform:rotate(180deg)}.video-js.vjs-peach-right-expanded .vjs-peach-expand>button>svg{transform:rotate(0)}[data-stage-media] .video-js.vjs-error .vjs-error-display{background:0 0}[data-stage-media] .video-js.vjs-error .vjs-error-display .vjs-modal-dialog-content{z-index:9;border-radius:var(--surface-radius);text-align:center;overflow-wrap:anywhere;background:#020408db;justify-content:center;align-items:center;width:max-content;max-width:min(560px,100% - 48px);height:auto;padding:14px 18px;display:flex;top:50%;left:50%;transform:translate(-50%,-50%)}[data-stage-media] :is([data-stage-media]>.video-js.vjs-fullscreen,.video-js.vjs-fullscreen,.video-js[data-peach-fullscreen],body.vjs-full-window .video-js,.video-js:fullscreen,.video-js:fullscreen,.video-js:fullscreen,[data-stage-media]:fullscreen>.video-js,[data-stage-media]:fullscreen>.video-js,[data-stage-media]:fullscreen>.video-js){aspect-ratio:auto!important;z-index:10000!important;width:100vw!important;max-width:none!important;height:100vh!important;max-height:none!important;padding:0!important;position:fixed!important;inset:0!important}[data-stage-media] :is([data-stage-media]>.video-js.vjs-fullscreen,.video-js.vjs-fullscreen,.video-js[data-peach-fullscreen],body.vjs-full-window .video-js,.video-js:fullscreen,.video-js:fullscreen,.video-js:fullscreen,[data-stage-media]:fullscreen>.video-js,[data-stage-media]:fullscreen>.video-js,[data-stage-media]:fullscreen>.video-js) .vjs-tech{object-fit:cover!important;width:100vw!important;max-width:none!important;height:100vh!important;max-height:none!important;position:absolute!important;inset:0!important}[data-player-stats-button]{z-index:8;color:#fff;cursor:pointer;width:40px;height:40px;box-shadow:none;isolation:isolate;background:#0009;border:0;border-radius:50%;place-items:center;padding:0;display:grid;position:absolute;top:11px;left:11px;overflow:hidden}[data-player-stats-button][hidden]{display:none}[data-player-stats-button]:after,[data-stage-close]:after{content:"";z-index:0;pointer-events:none;background:0 0;border-radius:50%;transition:background .2s cubic-bezier(.05,0,0,1);position:absolute;inset:4px}[data-player-stats-button]:hover:after,[data-player-stats-button]:focus-visible:after,[data-stage-close]:hover:after,[data-stage-close]:focus-visible:after{background:#ffffff1a}[data-player-stats-button]:active:after,[data-stage-close]:active:after{background:#fff3}[data-player-stats-button]:focus-visible,[data-stage-close]:focus-visible{outline:0}[data-player-stats-button][aria-pressed=true]{background:var(--hover);color:var(--ink)}[data-player-stats-button] svg{z-index:1;stroke:currentColor;fill:none;stroke-width:2px;filter:drop-shadow(0 0 1px #000c);width:20px;height:20px;position:relative}[data-player-stats]{z-index:8;overscroll-behavior:contain;border-radius:var(--surface-radius);color:#eef3f8;-webkit-backdrop-filter:saturate(1.25)blur(14px);backdrop-filter:saturate(1.25)blur(14px);min-width:320px;max-width:min(520px,100% - 22px);max-height:calc(100% - 114px);font-size:var(--fs-xs);background:#020408c7;border:1px solid #ffffff2e;padding:10px 12px;font-family:inherit;line-height:1.5;position:absolute;top:58px;left:11px;overflow-y:auto;box-shadow:0 12px 28px #0008}[data-player-stats] dl{grid-template-columns:max-content minmax(0,1fr);gap:1px 12px;margin:0;display:grid}[data-player-stats] dt{text-align:right;font-weight:600}[data-player-stats] dd{text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}[data-player-stats] dd[data-player-stats-metric]{grid-template-columns:166px minmax(0,1fr);align-items:center;gap:9px;display:grid;overflow:visible}[data-player-stats-metric]>span{text-overflow:ellipsis;overflow:hidden}[data-player-stats-plot]{background:#000;grid-template-columns:repeat(24,minmax(2px,1fr));align-items:end;gap:1px;height:20px;padding:2px;display:grid;overflow:hidden}[data-player-stats-plot] i{background:0 0;min-height:0;display:block}[data-player-stats-plot=speed] i[data-bar]{background:#55b5bd}[data-player-stats-plot=activity] i[data-bar]{background:#4ba8df}[data-player-stats-plot=buffer] i[data-bar]{background:#d8e98a}[data-player-stats-plot=buffer] i[data-bar=mid]{background:#efb55f}[data-player-stats-plot=buffer] i[data-bar=low]{background:#e16962}[data-player-stats][hidden]{display:none}@media (width<=600px){[data-player-stats] dd[data-player-stats-metric]{grid-template-columns:96px minmax(0,1fr)}}[data-player-net]{box-sizing:border-box;z-index:8;white-space:nowrap;border-radius:var(--floating-radius);color:#fff;height:40px;min-height:40px;box-shadow:none;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);font-size:var(--fs-xs);background:#0009;border:0;align-items:center;gap:7px;padding:0 11px;font-family:inherit;line-height:1;display:flex;position:absolute;top:11px;left:58px}[data-player-net] svg{stroke:currentColor;fill:none;stroke-width:2px;stroke-linecap:round;flex:none;width:18px;height:18px}[data-player-net][hidden],[data-stage-media] video[hidden]{display:none}[data-stage-close]{z-index:9;color:#f0e9de;cursor:pointer;width:40px;height:40px;box-shadow:none;isolation:isolate;background:#0009;border:0;border-radius:50%;place-items:center;padding:0;display:grid;position:absolute;top:11px;right:11px;overflow:hidden}[data-stage-close] svg{z-index:1;stroke:currentColor;fill:none;stroke-width:2px;filter:drop-shadow(0 0 1px #000c);width:20px;height:20px;position:relative}#playerMenu[data-player-context-menu]{border-radius:var(--floating-radius);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:none;color:#fff;text-shadow:0 0 1px #000c;background:#0009;border:0;gap:0;min-width:240px;max-width:calc(100vw - 16px);padding:8px}[data-player-context-menu][popover]{margin:0;inset:auto}#playerMenu>[data-player-menu]{box-sizing:border-box;border-radius:var(--control-radius);width:100%;min-height:48px;box-shadow:none;color:#fff;font:inherit;font-size:var(--fs-md);text-align:left;white-space:nowrap;cursor:pointer;background:0 0;border:0;grid-template-columns:56px minmax(0,1fr) 32px;align-items:center;gap:0;margin:0;padding:0;font-weight:400;line-height:18.2px;display:grid}#playerMenu>[data-player-menu]:hover,#playerMenu>[data-player-menu]:focus-visible{color:#fff;background:#ffffff1a;outline:0}#playerMenu>[data-player-menu]:active{background:#fff3}[data-player-menu]>svg{stroke:currentColor;fill:none;stroke-width:2px;justify-self:start;width:24px;height:24px;margin-left:8px}[data-player-menu]>svg[data-player-menu-fill]{fill:currentColor;stroke:none}[data-player-menu]>span{text-overflow:ellipsis;overflow:hidden}[data-player-menu]>[data-player-menu-check]{visibility:hidden;grid-column:3;justify-self:center;width:18px;height:18px;margin:0}[data-player-menu][aria-checked=true]>[data-player-menu-check]{visibility:visible}:root{--stage-shadow:#0000000a;--miniplayer-shadow-near:#00000029;--miniplayer-shadow-far:#0003}.dark{--stage-shadow:#0006;--miniplayer-shadow-near:#00000080;--miniplayer-shadow-far:#0000008c}[data-stage]{--detail-surface:var(--video-glow,#15202a)}@supports (color:color-mix(in lab, red, red)){[data-stage]{--detail-surface:color-mix(in srgb,var(--video-glow,#15202a) 12%,var(--surface) 88%)}}[data-stage]{width:min(1440px,100vw - 32px);max-width:calc(100vw - 32px);height:fit-content;max-height:calc(100dvh - 32px);color:var(--ink);border-radius:var(--floating-radius);overscroll-behavior:contain;background:radial-gradient(circle at 28% 24%,var(--video-glow,#15202a),transparent 58%), var(--surface);margin:auto;padding:0;position:fixed;inset:16px}@supports (color:color-mix(in lab, red, red)){[data-stage]{background:radial-gradient(circle at 28% 24%,color-mix(in srgb,var(--video-glow,#15202a) 40%,transparent),transparent 58%), color-mix(in srgb,var(--surface) 88%,transparent)}}[data-stage]{scroll-margin-top:calc(var(--topH) + 8px);border:1px solid var(--line);overflow:auto}[data-stage]::backdrop{background:var(--scrim)}[data-stage]:focus-visible{outline:none}body[data-detail-open]{overflow:hidden}@supports (color:color-mix(in lab, red, red)){[data-stage]:not([data-ambient]){background:color-mix(in srgb,var(--surface) 88%,transparent)}}[data-stage-grid]{grid-template-columns:minmax(0,1fr) minmax(350px,390px);display:grid}[data-stage-grid][data-with-queue]{grid-template-columns:minmax(0,1fr) minmax(350px,390px);grid-template-areas:"media side""queue queue";align-items:start}[data-stage-grid][data-with-queue]>[data-stage-media]{grid-area:media}[data-stage-grid][data-with-queue]>[data-stage-side]{background:var(--detail-surface);grid-area:side}[data-stage-grid][data-with-queue]>[data-mix-queue]{border-left:0;border-top:1px solid var(--line-soft);background:var(--detail-surface);grid-area:queue;max-height:360px}[data-stage-grid][data-with-queue] [data-mix-queue-actions] [data-queue-close]{display:none}[data-mix-queue]{border-left:1px solid var(--line-soft);background:var(--video-glow,#15202a);flex-direction:column;min-width:0;max-height:76vh;display:flex}@supports (color:color-mix(in lab, red, red)){[data-mix-queue]{background:color-mix(in srgb,var(--video-glow,#15202a) 10%,var(--surface) 90%)}}[data-mix-queue-head]{border-bottom:1px solid var(--line-soft);grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-height:70px;padding:12px 12px 10px 15px;display:grid}[data-mix-queue-head] h2{text-overflow:ellipsis;white-space:nowrap;font-size:var(--fs-lg);margin:0;overflow:hidden}[data-mix-queue-head] span{color:var(--muted);font-size:var(--fs-xs);margin-top:3px;display:block}[data-mix-queue-head] button{border-radius:var(--control-radius);width:36px;height:36px;color:var(--ink);cursor:pointer;background:0 0;border:0;place-items:center;padding:0;display:grid}[data-mix-queue-head] button:hover{background:var(--hover)}[data-mix-queue-head] svg{stroke:currentColor;fill:none;stroke-width:2px;width:20px;height:20px}[data-mix-queue-actions]{align-items:center;gap:2px;display:flex}[data-mix-list]{min-height:0;padding:6px;overflow-y:auto}[data-mix-row]{border-radius:var(--control-radius);grid-template-columns:minmax(0,1fr) auto;align-items:center;display:grid}[data-mix-row]:has([data-mix-item][aria-current=true]){background:var(--hover)}[data-mix-row] [data-mix-item][aria-current=true]{background:0 0}[data-mix-item]{border-radius:var(--control-radius);width:100%;color:var(--ink);text-align:left;cursor:pointer;background:0 0;border:0;grid-template-columns:94px minmax(0,1fr);align-items:center;gap:10px;padding:7px;display:grid}[data-mix-item]:hover{background:var(--overlay-5)}[data-mix-item][aria-current=true]{background:var(--hover)}[data-mix-item-pic]{aspect-ratio:16/9;border-radius:var(--badge-radius);background:#000;position:relative;overflow:hidden}[data-mix-item-pic] img{object-fit:contain;width:100%;height:100%;position:absolute;inset:0}[data-mix-item-pic] [data-mix-item-duration]{bottom:3px;right:4px}[data-mix-item-meta]{align-items:center;gap:10px;min-width:0;display:flex}[data-mix-item-meta] [class~=mav]{cursor:inherit}[data-mix-item-meta] [class~=mav]:hover{box-shadow:none}[data-mix-item-meta] [class~=mavstack] [class~=mav]{box-shadow:0 0 0 2px var(--ground)}[data-mix-item-text]{min-width:0}[data-mix-item-text] b,[data-mix-item-text] span{white-space:nowrap;display:block;overflow:hidden}[data-mix-item-text] [data-truncate-end]{text-overflow:ellipsis}[data-mix-item-text] b{font-size:var(--fs-xs);line-height:1.4}[data-mix-item-text] span{font-size:var(--fs-xs);color:var(--muted);margin-top:3px}[data-mix-row][data-queue-row]{cursor:grab;position:relative}[data-mix-row][data-queue-row]:active{cursor:grabbing}[data-mix-row][class~=dragging]{opacity:.42}[data-mix-row][class~=drop-before]:before,[data-mix-row][class~=drop-after]:after{content:"";z-index:4;border-radius:var(--pill-radius);background:var(--ink);height:2px;position:absolute;left:6px;right:6px}[data-mix-row][class~=drop-before]:before{top:-3px}[data-mix-row][class~=drop-after]:after{bottom:-3px}[data-stage-grid][data-with-queue]>[data-mix-queue]{padding:14px 14px 16px;overflow:hidden}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-queue-head]{border:0;min-height:0;padding:0 0 11px}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-queue-head] h2{font-size:var(--fs-sm);letter-spacing:.06em}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-queue-head] span{text-overflow:ellipsis;white-space:nowrap;max-width:72ch;overflow:hidden}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-list]{overscroll-behavior-inline:contain;scroll-snap-type:x proximity;grid-auto-columns:minmax(190px,220px);grid-auto-flow:column;gap:10px;padding:0 0 3px;display:grid;overflow:auto hidden}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-row]{scroll-snap-align:start;background:0 0;min-width:0;display:block;position:relative}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item]{flex-direction:column;align-items:stretch;gap:7px;padding:0;display:flex}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item]:hover,[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item][aria-current=true]{background:0 0}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item-pic]{border:1px solid #0000;width:100%}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item][aria-current=true] [data-mix-item-pic]{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item-meta]{align-items:flex-start;width:100%;padding:0 2px}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item-meta] [class~=mav],[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item-meta] [class~=mavstack]{margin-top:2px}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item-text]{flex:1;min-width:0}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item-text] b{font-size:var(--fs-sm)}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-item][data-media-kind=image] [data-mix-item-pic] img{object-fit:cover}[data-stage-scroll]>.peach-react{font:inherit;color:inherit;-webkit-font-smoothing:inherit;font-variant-ligatures:inherit;font-kerning:inherit;display:contents}@media (width>=1081px){[data-stage]:not([data-theater])>[data-stage-scroll]{flex-direction:column;max-height:calc(100dvh - 34px);display:flex}[data-stage]:not([data-theater])>[data-stage-scroll]>[data-stage-grid],[data-stage]:not([data-theater])>[data-stage-scroll]>.peach-react>[data-stage-grid]{flex:auto;min-height:0}[data-stage]:not([data-theater]) [data-stage-grid]>[data-stage-media]{min-height:0}[data-stage]:not([data-theater]) [data-stage-media]>.video-js{max-height:min(76vh,100%)}[data-stage][data-theater]>[data-stage-scroll]{overscroll-behavior:contain;max-height:calc(100dvh - 34px);overflow:hidden auto}[data-stage-grid][data-with-queue]>[data-stage-media]{align-self:stretch}[data-stage][data-theater] [data-stage-grid]{grid-template-columns:minmax(0,1fr)}[data-stage][data-theater] [data-stage-grid]:not([data-with-queue])>[data-stage-side]{border-left:0;border-top:1px solid var(--line-soft);grid-column:1}[data-stage][data-theater] [data-stage-grid][data-with-queue]{grid-template-areas:"media""side""queue"}[data-stage][data-theater] [data-stage-side-content]:is(*){height:auto;max-height:none}[data-stage][data-theater] [data-stage-media]>.video-js,[data-stage][data-theater] [data-stage-media]>video{max-height:calc(100vh - var(--topH) - 56px)}}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-queue-head]{grid-template-columns:max-content max-content minmax(0,1fr);gap:5px 8px}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-queue-head]>div:first-child{min-width:0}[data-stage-grid][data-with-queue]>[data-mix-queue] [data-mix-queue-actions]{grid-area:1/2;align-self:center}[data-mix-item-duration]{z-index:2;color:#f2eadf;border-radius:var(--badge-radius);background:#000000b3;padding:2px 6px;transition:opacity .15s;position:absolute;bottom:6px;right:6px}[data-stage-side]{border-left:1px solid var(--line-soft);background:var(--detail-surface);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);align-self:stretch;min-width:0;min-height:0;overflow:hidden}[data-stage-side-content]{box-sizing:border-box;flex-direction:column;gap:0;width:100%;height:100%;max-height:76vh;padding:18px;display:flex;overflow:hidden auto}[data-stage-title]{font-size:var(--fs-lg);word-break:break-all;margin-bottom:8px;line-height:1.4}[data-stage-meta]{color:var(--muted);flex-wrap:wrap;gap:9px;margin-bottom:18px;display:flex}[data-stage-tags]{flex-wrap:wrap;align-items:center;gap:7px;margin:0 0 18px;display:flex;position:relative}[data-stage-actions]{border:1px solid var(--border-10);border-radius:var(--control-radius);background:var(--overlay-5);flex:none;align-items:center;gap:0;width:max-content;margin:0 0 12px;padding:0;display:flex;overflow:hidden}[data-stage-actions] button{border:0;border-right:1px solid var(--border-10);cursor:pointer;width:44px;height:42px;color:var(--muted);background:0 0;border-radius:0;place-items:center;padding:0;transition:transform .14s,color .14s,background .14s;display:grid}[data-stage-actions] button svg{stroke:currentColor;fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:21px;height:21px}[data-stage-actions] button:last-child{border-right:0}[data-stage-actions] button:hover{background:var(--hover);transform:none}[data-stage-actions] [data-stage-action=dislike]:hover,[data-stage-actions] [data-stage-action=dislike][aria-pressed=true]{color:var(--drop);background:var(--drop)}@supports (color:color-mix(in lab, red, red)){[data-stage-actions] [data-stage-action=dislike]:hover,[data-stage-actions] [data-stage-action=dislike][aria-pressed=true]{background:color-mix(in srgb,var(--drop) 12%,transparent)}}[data-stage-actions] [data-stage-action=seen]:hover,[data-stage-actions] [data-stage-action=seen][aria-pressed=true]{color:var(--keep);background:var(--keep)}@supports (color:color-mix(in lab, red, red)){[data-stage-actions] [data-stage-action=seen]:hover,[data-stage-actions] [data-stage-action=seen][aria-pressed=true]{background:color-mix(in srgb,var(--keep) 12%,transparent)}}[data-stage-actions] [data-stage-action=later]:hover,[data-stage-actions] [data-stage-action=later][aria-pressed=true]{color:var(--loupe);background:var(--loupe)}@supports (color:color-mix(in lab, red, red)){[data-stage-actions] [data-stage-action=later]:hover,[data-stage-actions] [data-stage-action=later][aria-pressed=true]{background:color-mix(in srgb,var(--loupe) 12%,transparent)}}[data-stage-grid][data-with-queue]>[data-mix-queue] [class~=mavstack] [class~=mav]:nth-child(n+3){display:none}[data-mix-group-label]{color:var(--ink);font-size:var(--fs-xs);align-items:center;gap:8px;margin:12px 10px 6px;font-weight:600;display:flex}[data-mix-group-label]:first-child{margin-top:4px}[data-mix-group-label] span{color:var(--muted);font-variant-numeric:tabular-nums;font-weight:400}@media (width<=1080px){[data-stage-grid],[data-stage-grid][data-with-queue]{grid-template-columns:minmax(0,1fr)}[data-stage-grid][data-with-queue]{grid-template-areas:"media""side""queue"}[data-stage-side],[data-stage-grid][data-with-queue]>[data-stage-side]{border-left:0;border-top:1px solid var(--line-soft);grid-column:auto}[data-stage-side-content]{height:auto;max-height:none}[data-mix-queue],[data-stage-grid][data-with-queue]>[data-mix-queue]{border-left:0;border-top:1px solid var(--line-soft);max-height:420px}}@media (width<=760px){[data-stage-actions]{width:100%}[data-stage-actions] button{flex:1 1 0;min-width:38px}}[data-miniplayer]{z-index:var(--layer-miniplayer);touch-action:none;will-change:opacity,transform;-webkit-user-select:none;user-select:none;width:min(400px,100vw - 32px);max-height:calc(100dvh - 32px);position:fixed}[data-miniplayer][hidden]{display:none}[data-miniplayer][data-corner=br]{bottom:16px;right:16px}[data-miniplayer][data-corner=bl]{bottom:16px;left:16px}[data-miniplayer][data-corner=tr]{right:16px;top:calc(var(--topH) + 16px)}[data-miniplayer][data-corner=tl]{left:16px;top:calc(var(--topH) + 16px)}[data-miniplayer][data-miniplayer-drag],[data-miniplayer][data-miniplayer-drag] [data-miniplayer-card]{cursor:grabbing}[data-miniplayer][data-miniplayer-snap]{transition:transform .5s cubic-bezier(.05,0,0,1)}@media (prefers-reduced-motion:no-preference){[data-miniplayer][data-miniplayer-enter]{animation:.366s cubic-bezier(.05,0,0,1) both miniplayer-fade-in}}@keyframes miniplayer-fade-in{0%{opacity:0}to{opacity:1}}[data-miniplayer-card]{border-radius:var(--floating-radius);background:var(--surface);box-shadow:0 2px 5px var(--miniplayer-shadow-near),0 3px 6px var(--miniplayer-shadow-far);cursor:grab;flex-direction:column;display:flex;overflow:hidden}[data-miniplayer-frame]{width:100%;aspect-ratio:var(--miniplayer-aspect,16/9);background:#000;max-height:calc(100dvh - 108px);position:relative;overflow:hidden}[data-miniplayer-frame] .video-js{background:#000;font-family:inherit;position:absolute;inset:0;width:100%!important;height:100%!important;padding-top:0!important}[data-miniplayer-frame] .video-js .vjs-tech{object-fit:contain}[data-miniplayer-frame] .video-js :is(.vjs-big-play-button,.vjs-peach-bezel,.vjs-peach-settings-menu,.vjs-peach-tooltip,.vjs-loading-spinner,[data-player-seek-preview],.vjs-text-track-display){display:none!important}[data-miniplayer-frame] .video-js .vjs-control-bar{z-index:2;background:0 0;width:auto;height:5px;padding:0;transition:none;display:flex;position:absolute;inset:auto 0 0;opacity:1!important;visibility:visible!important;pointer-events:auto!important}[data-miniplayer-frame] .video-js .vjs-control-bar>:not(.vjs-progress-control){display:none!important}[data-miniplayer-frame] .video-js .vjs-progress-control{align-items:center;width:auto;min-width:0;height:5px;display:flex;position:absolute;inset:0}[data-miniplayer-frame] .video-js .vjs-progress-control .vjs-progress-holder{background:#fff3;border-radius:0;width:100%;height:5px;margin:0}[data-miniplayer-frame] .video-js .vjs-load-progress{background:#fff6}[data-miniplayer-frame] .video-js .vjs-load-progress div{background:#fff3}[data-miniplayer-frame] .video-js .vjs-play-progress{background:var(--tungsten)}[data-miniplayer-frame] .video-js .vjs-play-progress:before{content:"";background:var(--tungsten);width:12px;height:12px;box-shadow:none;border-radius:50%;font-size:0;position:absolute;top:50%;right:-6px;transform:translateY(-50%)}[data-miniplayer-frame] .video-js .vjs-time-tooltip{font-size:var(--fs-xs);font-family:inherit}[data-miniplayer-scrim]{z-index:1;opacity:0;color:#fff;background:#00000080;justify-content:center;align-items:center;gap:6px;transition:opacity .2s cubic-bezier(.4,0,.2,1) .1s;display:flex;position:absolute;inset:0}[data-miniplayer-frame]:hover [data-miniplayer-scrim],[data-miniplayer-frame]:focus-within [data-miniplayer-scrim],[data-miniplayer][data-miniplayer-drag] [data-miniplayer-scrim]{opacity:1}[data-miniplayer-button],[data-miniplayer-play],[data-miniplayer-seek]{isolation:isolate;color:#fff;cursor:pointer;background:0 0;border:0;place-items:center;margin:0;padding:0;display:grid;position:relative}[data-miniplayer-button]{width:40px;height:40px;position:absolute;top:0}[data-miniplayer-button] svg{z-index:1;stroke:currentColor;fill:none;stroke-width:2px;filter:drop-shadow(0 0 1px #000c);width:24px;height:24px;position:relative}[data-miniplayer-button=expand]{left:0}[data-miniplayer-button=close]{right:0}[data-miniplayer-play]{width:42px;height:42px}[data-miniplayer-play] svg{z-index:1;fill:currentColor;stroke:none;filter:drop-shadow(0 0 1px #000c);width:36px;height:36px;position:relative}[data-miniplayer-seek]{width:36px;height:36px}[data-miniplayer-seek] svg{z-index:1;stroke:currentColor;fill:none;stroke-width:2px;filter:drop-shadow(0 0 1px #000c);width:22px;height:22px;position:relative}[data-miniplayer-button]:after,[data-miniplayer-play]:after,[data-miniplayer-seek]:after{content:"";z-index:0;pointer-events:none;background:0 0;border-radius:50%;transition:background .2s cubic-bezier(.05,0,0,1);position:absolute;inset:4px}[data-miniplayer-button]:hover:after,[data-miniplayer-button]:focus-visible:after,[data-miniplayer-play]:hover:after,[data-miniplayer-play]:focus-visible:after,[data-miniplayer-seek]:hover:after,[data-miniplayer-seek]:focus-visible:after{background:#ffffff1a}[data-miniplayer-button]:active:after,[data-miniplayer-play]:active:after,[data-miniplayer-seek]:active:after{background:#fff3}[data-miniplayer-button]:focus-visible,[data-miniplayer-play]:focus-visible,[data-miniplayer-seek]:focus-visible{outline:0}[data-miniplayer-time]{font-size:var(--fs-xs);text-shadow:0 0 2px #000;pointer-events:none;line-height:15px;position:absolute;bottom:16px;left:12px}[data-miniplayer-info]{box-sizing:border-box;width:100%;min-height:76px;color:var(--ink);text-align:left;font:inherit;cursor:grab;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:flex-start;margin:0;padding:12px 16px;display:flex}[data-miniplayer-info]:focus-visible{outline:2px solid var(--tungsten);outline-offset:-2px}[data-miniplayer-title]{white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:var(--fs-md);font-weight:500;line-height:20px;display:block;overflow:hidden}[data-miniplayer-sub]{white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:var(--fs-xs);color:var(--muted);margin-top:4px;line-height:18px;display:block;overflow:hidden}[data-miniplayer-sub]:empty{display:none}[data-stage-reveal]>[data-stage-fade]{z-index:2;pointer-events:none;opacity:1;filter:blur();transition:opacity var(--motion-reveal),filter var(--motion-reveal);position:absolute;inset:0;overflow:hidden}[data-stage-reveal][data-stage-revealing]>[data-stage-fade]{opacity:0;filter:blur(2px)}[data-stage-reveal]>:not([data-stage-fade]){animation:skel-reveal-in var(--motion-reveal) backwards}[data-stage]{border:1px solid var(--line);border-radius:var(--surface-radius);background:var(--ground);box-shadow:0 2px 8px var(--stage-shadow);--detail-surface:var(--ground);overflow:clip}[data-stage]:not([data-ambient]){background:var(--ground)}[data-stage] [data-stage-side]{background:var(--ground);-webkit-backdrop-filter:none;backdrop-filter:none;border-color:var(--line-soft)}[data-stage-side-content]{gap:4px;padding:20px}[data-stage-title]{font-weight:500;line-height:1.5}@media (width<=760px){[data-stage-side-content]{padding:16px}[data-stage]{border-radius:12px}[data-stage] [data-stage-side]{border-left:0;border-top:1px solid var(--line-soft)}}@media (width<=1080px){[data-stage]>[data-stage-scroll]{overscroll-behavior:contain;max-height:calc(100dvh - 34px);overflow:hidden auto}[data-stage] [data-stage-media]:has(>.video-js){z-index:3;position:sticky;top:0}}@media (width<=760px){[data-stage]{inset:calc(env(safe-area-inset-top) + 8px) 8px auto;width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - env(safe-area-inset-top) - 16px);margin:0 auto}[data-stage]>[data-stage-scroll]{max-height:calc(100dvh - env(safe-area-inset-top) - 18px)}[data-stage-media]>.video-js{aspect-ratio:var(--peach-video-ratio,16/9);max-height:56dvh}}[data-stage-close]{background:var(--surface);color:var(--ink);border-radius:50%;place-items:center;padding:0;line-height:1;display:grid}[data-stage-close] svg{place-self:center;margin:0;display:block}[data-stage]{animation:board-dialog-in var(--board-dialog-motion) backwards}[data-stage]::backdrop{animation:.35s cubic-bezier(.4,0,.2,1) both settings-backdrop-in}[data-stage][data-closing]{animation:board-dialog-out var(--board-dialog-motion) both;pointer-events:none}[data-stage][data-closing]::backdrop{animation:.35s cubic-bezier(.4,0,.2,1) both settings-backdrop-out}[data-stage] [data-stage-media]{border-radius:var(--surface-radius);overflow:hidden}[data-stage-side-content] [data-stage-actions]{background:0 0;border:0;flex-wrap:wrap;gap:4px;width:100%;margin:0 0 16px;padding:0;display:flex;overflow:visible}[data-stage-side-content] [data-stage-actions] button{background:var(--surface);border:0;border-radius:8px;flex:0 0 36px;place-items:center;width:36px;min-width:36px;height:36px;padding:0;display:grid}[data-stage-side-content] [data-stage-actions] button svg{width:18px;height:18px;margin:0;display:block}[data-stage-side-content] [data-stage-actions] button[aria-pressed=true]{box-shadow:inset 0 0 0 1px}[data-stage] [data-stage-media]{border-radius:var(--surface-radius) 0 0 0}[data-stage][data-theater] [data-stage-media]{border-radius:var(--surface-radius) var(--surface-radius) 0 0}@media (width<=1080px){[data-stage] [data-stage-media]{border-radius:var(--surface-radius) var(--surface-radius) 0 0}}[data-stage-close],[data-stage-close]:hover{color:#fff;background:#0009}[data-stage-close]:hover:after,[data-stage-close]:focus-visible:after{background:#fff3}[data-stage-close]:active:after{background:#ffffff4d}@keyframes peach-dot-wave{0%,80%,to{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}@keyframes peach-skeleton-sweep{to{transform:translate(-50%)}}:root{--font-inter:"Inter Variable", "Inter";--elevation-2xs:0 1px #0000000d;--elevation-xs:0 1px 2px 0 #0000000d;--elevation-sm:0 1px 2px 0 #0000000f, 0 1px 3px 0 #0000001a;--elevation-md:0 2px 4px -1px #0000000f, 0 4px 6px -1px #0000001a;--elevation-lg:0 4px 6px -2px #0000000d, 0 10px 15px -3px #0000001a;--elevation-xl:0 10px 10px -5px #0000000a, 0 20px 25px -5px #0000001a;--elevation-card:0 1px 1px 0 #0000000d;--elevation-dropdown:0 1px 1px 0 #0000000a, 0 4px 4px 0 #00000005;--elevation-sidebar:0 1px 0 0 #00000005, 0 1px 12px 0 #0000000f, 0 0 1px 0 #00000052;--elevation-waitlist:0 0 6px 0 #0000000f, 0 0 64px 0 #00000029, 0 0 1px 0 #00000052, 0 1px 12px 0 #0000000f, 0 1px 0 0 #00000005}.dark{--elevation-2xs:0 1px #00000029;--elevation-xs:0 1px 2px 0 #0000002e;--elevation-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--elevation-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--elevation-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--elevation-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--elevation-card:0 1px 1px 0 #00000024;--elevation-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--elevation-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--elevation-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014}.peach-react{font-family:var(--font-sans);color:var(--color-text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-variant-ligatures:contextual;font-kerning:normal;--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-tertiary-default:var(--color-neutral-200);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-focus-ring:var(--color-accent-500);--color-separator-border:var(--color-neutral-200);line-height:1.5}.dark .peach-react{--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark .peach-react{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark .peach-react{--color-background-secondary-default:var(--color-neutral-900);--color-background-tertiary-default:var(--color-neutral-800);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-checkbox-default:var(--color-neutral-600);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-700)}:where(.peach-react){--card-footer:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-footer:color-mix(in srgb, var(--color-background-secondary-default) 98%, var(--color-text-primary))}}:where(.peach-react){--card-hover:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-hover:color-mix(in srgb, var(--color-background-secondary-default) 95%, var(--color-text-primary))}}.peach-react button[aria-haspopup=listbox]{height:calc(var(--spacing) * 9);padding-block:0}.peach-react button[aria-haspopup=listbox][class~=text-body-2-medium]{height:calc(var(--spacing) * 8)}.peach-react [class~=overflow-x-auto]{scrollbar-width:none}.peach-react [class~=overflow-x-auto]::-webkit-scrollbar{display:none}.peach-react :is([data-review-filter],[data-filter-glass]){top:calc(var(--topH) + 8px);-webkit-backdrop-filter:var(--glass-optic,blur(22px)) saturate(160%) var(--glass-lume);isolation:isolate;color:var(--glass-text);border-radius:22px;overflow:visible}.peach-react [data-filter-glass][data-stuck]{box-shadow:inset 0 1px 0 var(--glass-rim), inset 1px 0 0 var(--glass-low), inset -1px 0 0 var(--glass-low), inset 0 -1px 0 var(--glass-low), var(--glass-lift)}.peach-react [data-filter-glass][data-stuck]:before{content:"";z-index:-1;background:var(--page);pointer-events:none;height:9px;position:absolute;top:-9px;left:-16px;right:-16px;-webkit-mask-image:linear-gradient(90deg,#0000,#000 24px calc(100% - 24px),#0000);mask-image:linear-gradient(90deg,#0000,#000 24px calc(100% - 24px),#0000)}.peach-react [data-selection-dock]{z-index:180;bottom:max(22px, env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 24px);-webkit-backdrop-filter:var(--glass-optic,blur(22px)) saturate(145%);border-radius:22px;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px;padding:9px 11px;display:flex;position:fixed;left:50%;transform:translate(-50%)}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.peach-react :is([data-review-filter],[data-filter-glass],[data-selection-dock]){background:var(--ground);-webkit-backdrop-filter:none;animation:none}}@media (prefers-reduced-motion:reduce){.peach-react :is([data-review-filter],[data-filter-glass],[data-selection-dock]){animation:none}}.peach-react:has([data-selection-dock]){padding-bottom:96px}.peach-react [data-tab-indicator]{width:var(--tab-width,0px);transform:translateX(var(--tab-x,0px))}.peach-react [data-tab-indicator][data-ready]{transition:transform calc(var(--spring-pane-ms,200) * 1ms) var(--spring-pane,ease), width calc(var(--spring-pane-ms,200) * 1ms) ease}@media (prefers-reduced-motion:reduce){.peach-react [data-tab-indicator][data-ready]{transition:none}}.peach-react [data-glass-segment][data-selected]{background:linear-gradient(180deg, var(--glass-sheen), transparent 62%), var(--glass-pick-fill);box-shadow:inset 0 0 0 1px var(--glass-rim), var(--glass-pick-shadow)}@media not all and (width>=761px){.peach-react :is([data-index-search],[data-playlist-create]) input{font-size:16px}}.peach-react [data-mix-stack]:before,.peach-react [data-mix-stack]:after{content:"";z-index:0;border-radius:inherit;border:1px solid var(--border-15);background:var(--surface);position:absolute}@supports (color:color-mix(in lab, red, red)){.peach-react [data-mix-stack]:before,.peach-react [data-mix-stack]:after{background:color-mix(in srgb, var(--surface) 84%, var(--video-glow,#15202a))}}.peach-react [data-mix-stack]:before{opacity:.54;inset:0 12px 8px;transform:translateY(-7px)}.peach-react [data-mix-stack]:after{opacity:.78;inset:0 6px 4px;transform:translateY(-4px)}.peach-react [data-mix-cover],.peach-react [data-mix-poster]{background:#000}.peach-react [data-mix-faces]{z-index:2;pointer-events:none;background:#000;position:absolute;inset:0}.peach-react [data-mix-face]{opacity:0;transform-origin:50% 88%;transition:transform .46s cubic-bezier(.34,.02,.24,1),opacity .4s;position:absolute;inset:0;transform:scale(.985)}.peach-react [data-mix-face=on]{opacity:1;z-index:2;transition:none;transform:none}.peach-react [data-mix-face=off]{opacity:0;z-index:3;transform:translateY(-11%)rotate(-3.4deg)scale(.94)}.peach-react [data-mix-face] img{object-fit:contain;background:#000;width:100%;height:100%;display:block}.peach-react [data-mix-badge]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#0c0808b8}.peach-react [data-mix-avatars]{--lift-motion:calc(var(--spring-press-ms) * 1ms) var(--spring-press);flex:none;max-width:calc(100% - 48px);margin:-4px -2px -2px;padding:6px 2px 2px 5px;display:flex}.peach-react [data-mix-avatars]:has(:is(:hover,:focus-visible)){--lift-motion:var(--board-motion)}.peach-react [data-mix-avatars]>*{box-shadow:0 0 0 2px var(--ground);transform:translate(var(--lift-x,0), var(--lift-y,0)) scale(var(--lift-scale,1));transition:transform var(--lift-motion,var(--board-motion))}.peach-react [data-mix-avatars]>*+*{margin-left:-22px}.peach-react [data-mix-avatars]>:first-child{z-index:5}.peach-react [data-mix-avatars]>:nth-child(2){z-index:4}.peach-react [data-mix-avatars]>:nth-child(3){z-index:3}.peach-react [data-mix-avatars]>:nth-child(4){z-index:2}.peach-react [data-mix-avatars]>:nth-child(5){z-index:1}.peach-react [data-mix-avatars]>:is(:hover,:focus-visible){z-index:6;box-shadow:0 0 0 2px var(--ink-2);--lift-y:-4px;--lift-scale:1.05}.peach-react [data-mix-avatars]>:is(:hover,:focus-visible)+*{--lift-y:-1.8px;--lift-x:10px}.peach-react [data-mix-avatars]>:is(:hover,:focus-visible)+*+*{--lift-y:-.81px;--lift-x:20px}.peach-react [data-mix-avatars]>:is(:hover,:focus-visible)+*+*+*{--lift-x:30px}.peach-react [data-mix-avatars]>:is(:hover,:focus-visible)+*+*+*+*{--lift-x:40px}.peach-react [data-tag-cat]{--tag-color:#7a91a8}.peach-react [data-tag-cat=general],.peach-react [data-tag-cat=r34-general]{--tag-color:#55a7ff}.peach-react [data-tag-cat=artist]{--tag-color:#f1a454}.peach-react [data-tag-cat=meta]{--tag-color:#7f909e}.peach-react [data-tag-cat=relationship]{--tag-color:#f1a454}.peach-react [data-tag-cat=role]{--tag-color:#ed78af}.peach-react [data-tag-cat=appearance]{--tag-color:#a989f5}.peach-react [data-tag-cat=scene]{--tag-color:#53b8a4}.peach-react [data-tag-cat=story]{--tag-color:#e19a5b}.peach-react [data-tag-cat=position]{--tag-color:#d66e8d}.peach-react [data-tag-cat=r34-artist]{--tag-color:#e36c6c}.peach-react [data-tag-cat=r34-character]{--tag-color:#68c76f}.peach-react [data-tag-cat=r34-copyright]{--tag-color:#d675d6}.peach-react [data-tag-cat=r34-metadata]{--tag-color:#f5a24a}.peach-react [data-tag-cat=r34-unknown]{--tag-color:var(--muted)}.peach-react [data-tag-pill][data-tag-cat=all]{--tag-color:initial}.peach-react [data-tag-dot]{background:var(--tag-color,var(--muted))}.peach-react [data-tag-pill][data-tag-cat=all] [data-tag-dot]{background:linear-gradient(135deg,#55a7ff,#d783ff)}.peach-react [data-tag-chip]{border-color:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-tag-chip]{border-color:color-mix(in srgb, var(--tag-color) 32%, transparent)}}.peach-react [data-tag-chip]{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-tag-chip]{background:color-mix(in srgb, var(--tag-color) 7%, transparent)}}.peach-react [data-tag-chip]:hover{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-tag-chip]:hover{background:color-mix(in srgb, var(--tag-color) 13%, transparent)}}.peach-react [data-tag-chip][aria-pressed=true],.peach-react [data-alpha-tag][aria-pressed=true]{background:var(--picked);color:var(--color-text-primary)}.peach-react [data-tag-pill][aria-pressed=true]{border-color:var(--tag-color,var(--ink))}@supports (color:color-mix(in lab, red, red)){.peach-react [data-tag-pill][aria-pressed=true]{border-color:color-mix(in srgb, var(--tag-color,var(--ink)) 45%, transparent)}}.peach-react [data-tag-pill][aria-pressed=true]{background:var(--tag-color,var(--ink));border-style:solid}@supports (color:color-mix(in lab, red, red)){.peach-react [data-tag-pill][aria-pressed=true]{background:color-mix(in srgb, var(--tag-color,var(--ink)) 12%, transparent)}}.peach-react [data-tag-pill][aria-pressed=true]{color:var(--ink)}.peach-react [data-alpha-tag]:not([aria-pressed=true]):hover{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-alpha-tag]:not([aria-pressed=true]):hover{background:color-mix(in srgb, var(--ink) 6%, transparent)}}.peach-react [data-alpha-group]{scroll-margin-top:calc(var(--topH) + 124px)}.peach-react [data-source-divider]>*+*{border-top:1px solid var(--color-border-button-default)}.peach-react [data-follow-author-header][data-open]{border-bottom:1px solid var(--color-border-button-default)}.peach-react [data-input-size]>div[data-rac]:not([data-hovered]):not([data-focus-within]){outline:1px solid var(--color-border-button-default);outline-offset:-1px}.peach-react [data-board-data-table]{border:1px solid var(--color-border-button-default);border-radius:var(--radius-surface);background:var(--color-background-primary-default);position:relative;overflow:hidden}.peach-react [data-board-data-table] .bui-table th{border-top:0}.peach-react [data-board-data-table] .bui-table th,.peach-react [data-board-data-table] .bui-table tbody tr:not(:last-child){border-color:var(--color-border-button-default)}.peach-react [data-board-data-table] .bui-table tbody tr:hover,.peach-react [data-source-divider]>:hover{background-color:var(--color-background-primary-hover)}.peach-react [data-board-data-table] .bui-table tbody tr[data-follow-selected],.peach-react [data-board-data-table] .bui-table tbody tr[data-board-selected],.peach-react [data-source-divider]>[data-selected]{background-color:var(--color-background-secondary-default)}.peach-react [data-follow-table] [data-sort-indicator]{color:var(--color-text-tertiary);flex:none;transition:transform .15s,color .15s;display:inline-flex}.peach-react [data-follow-table] [data-sort-indicator][data-direction]{color:var(--color-text-secondary)}.peach-react [data-follow-table] [data-sort-indicator][data-direction=ascending]{transform:rotate(180deg)}.peach-react [data-follow-table] [data-sort-indicator] svg{width:24px;height:24px}.peach-react [data-expandable-ranking]{position:relative}.peach-react [data-expandable-ranking][data-expandable]{padding-bottom:28px}.peach-react [data-expandable-ranking-list]{max-height:var(--ranking-collapsed-height,none);overflow:hidden}.peach-react [data-expandable-ranking][data-expanded] [data-expandable-ranking-list]{max-height:var(--ranking-expanded-height,none)}.peach-react [data-expandable-ranking][data-animating] [data-expandable-ranking-list]{transition:max-height .2s var(--ease-in-out)}.peach-react [data-expandable-ranking][data-expandable]:not([data-expanded]) [data-expandable-ranking-list]{-webkit-mask-image:linear-gradient(#000 calc(100% - 44px),#0000);mask-image:linear-gradient(#000 calc(100% - 44px),#0000)}.peach-react [data-ranking-toggle]{z-index:1;border:1px solid var(--color-border-button-default);background:var(--color-background-primary-default);width:40px;height:20px;box-shadow:var(--shadow-sm);color:var(--color-text-secondary);cursor:pointer;border-radius:999px;place-items:center;padding:0;display:grid;position:absolute;bottom:4px;left:50%;transform:translate(-50%)}.peach-react [data-ranking-toggle]:hover{background:var(--color-background-primary-hover);color:var(--color-text-primary)}.peach-react [data-ranking-toggle]:focus-visible{outline:2px solid var(--color-border-focus-ring);outline-offset:2px}.peach-react [data-ranking-toggle] svg{width:14px;height:14px;transition:transform .2s var(--ease-in-out)}.peach-react [data-ranking-toggle][aria-expanded=true] svg{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.peach-react [data-expandable-ranking][data-animating] [data-expandable-ranking-list],.peach-react [data-ranking-toggle] svg{transition:none}}.peach-react label[data-rac] input[type=checkbox]{appearance:none;outline:none;width:1px;height:1px}@keyframes checkbox-mark-enter{0%{opacity:0;transform:scale(.72)}to{opacity:1;transform:scale(1)}}.animate-check-draw{transform-box:fill-box;transform-origin:50%;animation:checkbox-mark-enter .15s var(--ease-out) both}@media (prefers-reduced-motion:reduce){.animate-check-draw{opacity:1;animation:none;transform:none}}.bui-table{border-collapse:collapse;text-align:left;width:100%}.bui-table th{padding-inline:calc(var(--spacing) * 3);padding-block:calc(var(--spacing) * 2.5);text-align:left;vertical-align:middle;font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight));white-space:nowrap;color:var(--color-text-tertiary);--tw-outline-style:none;background-color:var(--color-background-secondary-default);border-top:1px solid var(--color-separator-border);border-bottom:1px solid var(--color-separator-border);outline-style:none;transition:padding .2s,font-size .2s}.bui-table td{padding-inline:calc(var(--spacing) * 3);padding-block:calc(var(--spacing) * 2.5);vertical-align:middle;font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight));color:var(--color-text-primary);--tw-outline-style:none;outline-style:none;transition:padding .2s,font-size .2s}.bui-table tbody tr:not(:last-child){border-bottom:1px solid var(--color-separator-border)}.bui-table tbody tr{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));--tw-duration:.15s;transition-duration:.15s}.bui-table tbody tr[data-focus-visible]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);--tw-ring-color:var(--color-border-focus-ring);--tw-ring-inset:inset}.bui-table.bui-table-sm th,.bui-table.bui-table-sm td{padding-inline:calc(var(--spacing) * 2.5);padding-block:calc(var(--spacing) * 1.5);font-size:var(--text-body-2-medium);line-height:var(--tw-leading,var(--text-body-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-medium--font-weight))}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}
/*$vite$:1*/
\ No newline at end of file
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index fad7c925c..00bcd8287 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -5080,7 +5080,7 @@ var te = Object.create, ne = Object.defineProperty, re = Object.getOwnPropertyDe
function Ql(e) {
for (e = e.child; e !== null;) e.tag === 30 ? Wl(e.child, !1) : e.subtreeFlags & 33554432 && Ql(e), e = e.sibling;
}
- function $l(e, t, n, r, i, a, o) {
+ function J(e, t, n, r, i, a, o) {
for (var s = !1; t !== null;) {
if (t.tag === 5) {
var c = t.stateNode;
@@ -5099,12 +5099,12 @@ var te = Object.create, ne = Object.defineProperty, re = Object.getOwnPropertyDe
d && (e.flags |= 4), u.abs ? u = !l.abs : (l = l.rect, u = u.rect, u = l.height !== u.height || l.width !== u.width), u && (e.flags |= 32);
} else e.flags |= 32;
e.flags & 4 && kp(c, Vl === 0 ? n : n + "_" + Vl, i), s && e.flags & 4 || (zl === null && (zl = []), zl.push(c, Vl === 0 ? r : r + "_" + Vl, t.memoizedProps)), Vl++;
- } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : $l(e, t.child, n, r, i, a, o) && (s = !0));
+ } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : J(e, t.child, n, r, i, a, o) && (s = !0));
t = t.sibling;
}
return s;
}
- function J(e, t) {
+ function $l(e, t) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
var n = e.memoizedProps, r = e.stateNode, i = hi(n, r), a = _i(n.default, n.update);
@@ -5114,8 +5114,8 @@ var te = Object.create, ne = Object.defineProperty, re = Object.getOwnPropertyDe
} else o = e.memoizedState, e.memoizedState = null;
r = e;
var s = e.child;
- Vl = 0, i = $l(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || Pd(e, n.onUpdate));
- } else e.subtreeFlags & 33554432 && J(e, t);
+ Vl = 0, i = J(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || Pd(e, n.onUpdate));
+ } else e.subtreeFlags & 33554432 && $l(e, t);
e = e.sibling;
}
}
@@ -5456,7 +5456,7 @@ var te = Object.create, ne = Object.defineProperty, re = Object.getOwnPropertyDe
default: throw Error(i(435, e.tag));
}
}
- function wu(e, t) {
+ function Y(e, t) {
var n = Cu(e);
t.forEach(function(t) {
if (!n.has(t)) {
@@ -5466,7 +5466,7 @@ var te = Object.create, ne = Object.defineProperty, re = Object.getOwnPropertyDe
}
});
}
- function Y(e, t, n) {
+ function wu(e, t, n) {
var r = t.deletions;
if (r !== null) for (var a = 0; a < r.length; a++) {
var o = r[a], s = e, c = t, l = c;
@@ -5505,13 +5505,13 @@ var te = Object.create, ne = Object.defineProperty, re = Object.getOwnPropertyDe
var s = r[o];
s.ref.impl = s.nextImpl;
}
- Y(t, e, n), Du(e), a & 4 && (yl(3, e, e.return), vl(3, e), yl(5, e, e.return));
+ wu(t, e, n), Du(e), a & 4 && (yl(3, e, e.return), vl(3, e), yl(5, e, e.return));
break;
case 1:
- Y(t, e, n), Du(e), a & 512 && (tu || r === null || Cl(r, r.return)), a & 64 && eu && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));
+ wu(t, e, n), Du(e), a & 512 && (tu || r === null || Cl(r, r.return)), a & 64 && eu && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));
break;
case 26:
- if (o = Tu, Y(t, e, n), Du(e), a & 512 && (tu || r === null || Cl(r, r.return)), a & 4) {
+ if (o = Tu, wu(t, e, n), Du(e), a & 512 && (tu || r === null || Cl(r, r.return)), a & 4) {
if (a = r === null ? null : r.memoizedState, n = e.memoizedState, r === null) {
if (n === null) {
if (e.stateNode === null) {
@@ -5553,10 +5553,10 @@ var te = Object.create, ne = Object.defineProperty, re = Object.getOwnPropertyDe
}
break;
case 27:
- Y(t, e, n), Du(e), a & 512 && (tu || r === null || Cl(r, r.return)), r !== null && a & 4 && Al(e, e.memoizedProps, r.memoizedProps);
+ wu(t, e, n), Du(e), a & 512 && (tu || r === null || Cl(r, r.return)), r !== null && a & 4 && Al(e, e.memoizedProps, r.memoizedProps);
break;
case 5:
- if (o = nu, nu = !1, Y(t, e, n), nu = o, Du(e), a & 512 && (tu || r === null || Cl(r, r.return)), e.flags & 32) {
+ if (o = nu, nu = !1, wu(t, e, n), nu = o, Du(e), a & 512 && (tu || r === null || Cl(r, r.return)), e.flags & 32) {
t = e.stateNode;
try {
un(t, ""), Gt = !0;
@@ -5567,7 +5567,7 @@ var te = Object.create, ne = Object.defineProperty, re = Object.getOwnPropertyDe
a & 4 && e.stateNode != null && (t = e.memoizedProps, Al(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (ru = !0);
break;
case 6:
- if (Y(t, e, n), Du(e), a & 4) {
+ if (wu(t, e, n), Du(e), a & 4) {
if (e.stateNode === null) throw Error(i(162));
t = e.memoizedProps, n = e.stateNode;
try {
@@ -5578,7 +5578,7 @@ var te = Object.create, ne = Object.defineProperty, re = Object.getOwnPropertyDe
}
break;
case 3:
- if (Gt = !1, Jm = null, o = Tu, Tu = wm(t.containerInfo), Y(t, e, n), Tu = o, Du(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
+ if (Gt = !1, Jm = null, o = Tu, Tu = wm(t.containerInfo), wu(t, e, n), Tu = o, Du(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
Kh(t.containerInfo);
} catch (t) {
hf(e, e.return, t);
@@ -5586,31 +5586,31 @@ var te = Object.create, ne = Object.defineProperty, re = Object.getOwnPropertyDe
ru && (ru = !1, Ou(e)), Gt = !1;
break;
case 4:
- a = nu, nu = eu, r = Kt(), o = Tu, Tu = wm(e.stateNode.containerInfo), Y(t, e, n), Du(e), Tu = o, Gt && su && (cu = !0), Gt = r, nu = a;
+ a = nu, nu = eu, r = Kt(), o = Tu, Tu = wm(e.stateNode.containerInfo), wu(t, e, n), Du(e), Tu = o, Gt && su && (cu = !0), Gt = r, nu = a;
break;
case 12:
- Y(t, e, n), Du(e);
+ wu(t, e, n), Du(e);
break;
case 31:
- Y(t, e, n), Du(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, wu(e, t)));
+ wu(t, e, n), Du(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Y(e, t)));
break;
case 13:
- Y(t, e, n), Du(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (hd = Be()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, wu(e, t)));
+ wu(t, e, n), Du(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (hd = Be()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Y(e, t)));
break;
case 22:
o = e.memoizedState !== null, s = r !== null && r.memoizedState !== null;
var c = eu, l = tu, u = nu;
- eu = c || o, nu = u || o, tu = l || s, Y(t, e, n), tu = l, nu = u, eu = c, Du(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || eu || tu || (t = s || tu, n = eu, r = tu, eu = o || eu, tu = t, Mu(e, 2), eu = n, tu = r), !o && nu || pu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, wu(e, n))));
+ eu = c || o, nu = u || o, tu = l || s, wu(t, e, n), tu = l, nu = u, eu = c, Du(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || eu || tu || (t = s || tu, n = eu, r = tu, eu = o || eu, tu = t, Mu(e, 2), eu = n, tu = r), !o && nu || pu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Y(e, n))));
break;
case 19:
- Y(t, e, n), Du(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, wu(e, t)));
+ wu(t, e, n), Du(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Y(e, t)));
break;
case 30:
- a & 512 && (tu || r === null || Cl(r, r.return)), a = Kt(), o = su, s = (n & 335544064) === n, c = e.memoizedProps, su = s && _i(c.default, c.update) !== "none", Y(t, e, n), Du(e), s && r !== null && Gt && (e.flags |= 4), su = o, Gt = a;
+ a & 512 && (tu || r === null || Cl(r, r.return)), a = Kt(), o = su, s = (n & 335544064) === n, c = e.memoizedProps, su = s && _i(c.default, c.update) !== "none", wu(t, e, n), Du(e), s && r !== null && Gt && (e.flags |= 4), su = o, Gt = a;
break;
case 21: break;
case 7: a & 512 && (tu || r === null || Cl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
- default: Y(t, e, n), Du(e);
+ default: wu(t, e, n), Du(e);
}
}
function Du(e) {
@@ -5666,7 +5666,7 @@ var te = Object.create, ne = Object.defineProperty, re = Object.getOwnPropertyDe
}
function ku(e, t) {
if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Au(t, e), t = t.sibling;
- else J(t, !1);
+ else $l(t, !1);
}
function Au(e, t) {
var n = e.alternate;
@@ -5718,7 +5718,7 @@ var te = Object.create, ne = Object.defineProperty, re = Object.getOwnPropertyDe
var a = e.memoizedProps, o = e.stateNode;
t = hi(a, o), o = hi(n.memoizedProps, o);
var s = _i(a.default, a.update);
- s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Vl = 0, t = $l(e, n, t, o, s, a, !0), Vl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (Pd(e, e.memoizedProps.onUpdate), zl = i) : i !== null && (i.push.apply(i, zl), zl = i), ou = e.flags & 32 ? !0 : r;
+ s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Vl = 0, t = J(e, n, t, o, s, a, !0), Vl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (Pd(e, e.memoizedProps.onUpdate), zl = i) : i !== null && (i.push.apply(i, zl), zl = i), ou = e.flags & 32 ? !0 : r;
break;
default: ku(t, e);
}
@@ -14601,20 +14601,19 @@ function _o({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
}
//#endregion
//#region src/react/catalog-grid/catalog-grid-page.tsx
-var vo = "";
-function yo(e) {
- if (e.mode === "items") return /* @__PURE__ */ (0, z.jsx)(xo, { ...e });
+function vo(e) {
+ if (e.mode === "items") return /* @__PURE__ */ (0, z.jsx)(bo, { ...e });
let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${ba(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- return /* @__PURE__ */ (0, z.jsx)(So, { ...e }, t);
+ return /* @__PURE__ */ (0, z.jsx)(xo, { ...e }, t);
}
-function bo({ name: e }) {
+function yo({ name: e }) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
});
}
-function xo(e) {
+function bo(e) {
let { actions: t } = e, n = (0, R.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, z.jsx)(ro, {
item: i,
variant: r,
@@ -14635,7 +14634,7 @@ function xo(e) {
children: i
});
}
-function So(e) {
+function xo(e) {
let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Da(e) : Ea(e), s = i && e.initial ? {
pages: [{
...e.initial,
@@ -14666,14 +14665,9 @@ function So(e) {
e.mix,
a,
r.javImage
- ]), f = u.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(c.data?.pages[0]?.total || 0), h = Ra(c.isPending, e.skeletonHtml), g = (0, R.useRef)(null), _ = wo(e, c.data, u, d, g);
+ ]), f = u.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(c.data?.pages[0]?.total || 0), h = Ra(c.isPending, e.skeletonHtml), g = (0, R.useRef)(null), _ = Co(e, c.data, u, d, g);
(0, R.useLayoutEffect)(() => {
- if (!c.data) return;
- e.onCount?.(p, f);
- let t = a ? null : e.countRow?.querySelector("[data-count-readout]");
- if (!t) return;
- let n = `${p.toLocaleString()} 个符合 · 显示 ${f}`;
- vo && (t.dataset.popCount = vo), vo = n, k(t, n);
+ c.data && e.onCount?.(p, f);
}, [
c.data,
p,
@@ -14682,7 +14676,7 @@ function So(e) {
let v = (0, R.useCallback)((e, t) => n.open(e, t), [n]), y = (0, R.useCallback)((e, t) => n.openResource(e, t), [n]), b = (0, R.useCallback)((e) => n.openShort(e), [n]), x = (0, R.useCallback)(async () => {
let e = await c.fetchNextPage({ cancelRefetch: !1 });
if (e.isFetchNextPageError) throw e.error;
- }, [c.fetchNextPage]), S = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, z.jsx)(Do, {
+ }, [c.fetchNextPage]), S = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, z.jsx)(Eo, {
seed: i.seed,
layout: r,
helpers: t,
@@ -14724,12 +14718,12 @@ function So(e) {
children: Ia(u, _).map((t) => /* @__PURE__ */ (0, z.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("div", {
"data-media-grid": "",
children: t.tiles.map(S)
- }), t.strip ? /* @__PURE__ */ (0, z.jsx)(To, {
+ }), t.strip ? /* @__PURE__ */ (0, z.jsx)(wo, {
cut: t.strip,
props: e,
onOpen: b
}) : null] }, t.start))
- }), c.hasNextPage ? /* @__PURE__ */ (0, z.jsx)(Co, {
+ }), c.hasNextPage ? /* @__PURE__ */ (0, z.jsx)(So, {
entity: i,
load: x,
enabled: () => e.canLoadMore?.() !== !1
@@ -14737,7 +14731,7 @@ function So(e) {
})()]
});
}
-function Co({ entity: e, load: t, enabled: n, children: r }) {
+function So({ entity: e, load: t, enabled: n, children: r }) {
let i = (0, R.useRef)(null), a = (0, R.useRef)(!1), o = (0, R.useRef)(!1), [s, c] = (0, R.useState)({
busy: !1,
error: ""
@@ -14803,7 +14797,7 @@ function Co({ entity: e, load: t, enabled: n, children: r }) {
onRetry: () => void u(!0)
}) : null] });
}
-function wo(e, t, n, r, i) {
+function Co(e, t, n, r, i) {
let [a, o] = (0, R.useState)([]), [s, c] = (0, R.useState)(null), l = (0, R.useRef)(0), u = (0, R.useRef)(0), d = (0, R.useRef)([]);
return (0, R.useEffect)(() => () => d.current.forEach((e) => e.abort()), []), (0, R.useEffect)(() => {
let n = t?.pages.length || 0;
@@ -14838,7 +14832,7 @@ function wo(e, t, n, r, i) {
}]);
}, [s]), a;
}
-function To({ cut: e, props: t, onOpen: n }) {
+function wo({ cut: e, props: t, onOpen: n }) {
let r = (0, R.useRef)(null), { wireDrag: i } = t;
return (0, R.useEffect)(() => {
r.current && i(r.current);
@@ -14854,7 +14848,7 @@ function To({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, z.jsx)(bo, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, z.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, z.jsx)(yo, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, z.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, z.jsx)("div", {
ref: r,
@@ -14873,7 +14867,7 @@ function To({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function Eo(e, t, n, r) {
+function To(e, t, n, r) {
let i = t.active && !!e.is_jav;
return e.is_jav ? Va(e, i ? t.size : "small", n, t.javImage, r.coverHtml) : !e.has_thumb && !e.has_local_poster ? {
kind: "",
@@ -14883,17 +14877,17 @@ function Eo(e, t, n, r) {
html: `<img class="poster" src="/poster?id=${e.id}&c=4" alt="" loading="${n ? "eager" : "lazy"}">`
};
}
-function Do({ seed: e, layout: t, helpers: n, actions: r }) {
+function Eo({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, R.useRef)(/* @__PURE__ */ new Map()), a = (0, R.useRef)(t);
a.current = t;
let o = ja(e, n.tagLabel), s = (0, R.useCallback)(async () => {
let t = a.current, o = [e, ...await r.mixRelated(e.id)].filter((e) => Aa(e, t.javImage)).slice(0, 9);
- return i.current = new Map(o.map((e) => [String(e.id), Eo(e, t, !0, n).html])), o.map((e) => String(e.id));
+ return i.current = new Map(o.map((e) => [String(e.id), To(e, t, !0, n).html])), o.map((e) => String(e.id));
}, [
e,
r,
n
- ]), c = t.active && e.is_jav ? t.size : "small", l = Eo(e, t, !1, n);
+ ]), c = t.active && e.is_jav ? t.size : "small", l = To(e, t, !1, n);
return /* @__PURE__ */ (0, z.jsx)(_o, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
@@ -14904,7 +14898,7 @@ function Do({ seed: e, layout: t, helpers: n, actions: r }) {
wholeCard: !0,
poster: null,
artwork: l,
- artworkIdentity: c === "small" ? l.html : Eo(e, {
+ artworkIdentity: c === "small" ? l.html : To(e, {
...t,
size: "small"
}, !1, n).html,
@@ -14922,32 +14916,32 @@ function Do({ seed: e, layout: t, helpers: n, actions: r }) {
}
//#endregion
//#region src/react/media-sources.ts
-var Oo = "/api/sources", ko = ["media-sources"], Ao = (e) => wi(Oo, e);
-async function jo(e) {
+var Do = "/api/sources", Oo = ["media-sources"], ko = (e) => wi(Do, e);
+async function Ao(e) {
await q.fetchQuery({
- queryKey: ko,
- queryFn: () => Ao(e)
+ queryKey: Oo,
+ queryFn: () => ko(e)
});
}
-var Mo = [
+var jo = [
"local",
"115",
"pikpak"
-], No = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Po = "/api/duplicates?limit=120", Fo = ["duplicates"], Io = "/api/batch", Lo = (e) => wi(Po, e);
-async function Ro(e) {
+], Mo = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), No = "/api/duplicates?limit=120", Po = ["duplicates"], Fo = "/api/batch", Io = (e) => wi(No, e);
+async function Lo(e) {
await Promise.all([q.fetchQuery({
- queryKey: Fo,
- queryFn: () => Lo(e)
- }), jo(e)]);
+ queryKey: Po,
+ queryFn: () => Io(e)
+ }), Ao(e)]);
}
-var zo = {
+var Ro = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, Bo = (e, t) => t.filter((t) => e.some((e) => e.location === t)), Vo = (e, t) => Bo(e, t).filter((t) => e.some((e) => e.location !== t)), Ho = (e, t) => t.filter((t) => e.some((e) => Vo(e.files, [t]).length));
-function Uo(e, t) {
+}, zo = (e, t) => t.filter((t) => e.some((e) => e.location === t)), Bo = (e, t) => zo(e, t).filter((t) => e.some((e) => e.location !== t)), Vo = (e, t) => t.filter((t) => e.some((e) => Bo(e.files, [t]).length));
+function Ho(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -14966,47 +14960,47 @@ function Uo(e, t) {
}
return n;
}
-function Wo(e, t) {
+function Uo(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 Go(e, t) {
- for (let n = 0; n < e.length; n += 200) await W(Io, {
+async function Wo(e, t) {
+ for (let n = 0; n < e.length; n += 200) await W(Fo, {
ids: e.slice(n, n + 200),
operation: t
});
}
//#endregion
//#region src/react/library-processing/library-processing.ts
-var Ko = "/api/library-processing", qo = ["library-processing"], Jo = (e) => wi(Ko, e);
-async function Yo(e) {
+var Go = "/api/library-processing", Ko = ["library-processing"], qo = (e) => wi(Go, e);
+async function Jo(e) {
await q.fetchQuery({
- queryKey: qo,
- queryFn: () => Jo(e)
+ queryKey: Ko,
+ queryFn: () => qo(e)
});
}
-var Xo = 2e3, Zo = 1e4, Qo = "连接中断,正在重新读取处理进度";
-function $o(e, t) {
- return e?.status === "running" ? Xo : t ? Zo : !1;
+var Yo = 2e3, Xo = 1e4, Zo = "连接中断,正在重新读取处理进度";
+function Qo(e, t) {
+ return e?.status === "running" ? Yo : t ? Xo : !1;
}
-var es = {
+var $o = {
reading_local: "读取本地资料",
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
writing_candidates: "保存资料候选"
-}, ts = {
+}, es = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function ns(e) {
- let t = Object.entries(e).filter(([e, t]) => ts[e] && t > 0).map(([e, t]) => `${ts[e]} ${t} 部`);
+function ts(e) {
+ let t = Object.entries(e).filter(([e, t]) => es[e] && t > 0).map(([e, t]) => `${es[e]} ${t} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function rs(e) {
- let t = es[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
+function ns(e) {
+ let t = $o[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 is(e) {
+function rs(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -15020,21 +15014,21 @@ function is(e) {
log: e.issues_log || ""
} : null;
}
-var as = "peach.library-processing.announced", os = 120;
-function ss(e, t, n) {
+var is = "peach.library-processing.announced", as = 120;
+function os(e, t, n) {
if (e.status !== "complete") return;
- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < os;
+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < as;
if (!(!n && !r)) {
try {
- if (e.job_id && localStorage.getItem(as) === e.job_id) return;
- e.job_id && localStorage.setItem(as, e.job_id);
+ if (e.job_id && localStorage.getItem(is) === e.job_id) return;
+ e.job_id && localStorage.setItem(is, 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 cs = "/api/media-repair", ls = ["media-repair"], us = ["media-repair", "libraries"], ds = {
+var ss = "/api/media-repair", cs = ["media-repair"], ls = ["media-repair", "libraries"], us = {
status: "idle",
library: "",
stage: "",
@@ -15046,33 +15040,33 @@ var cs = "/api/media-repair", ls = ["media-repair"], us = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, fs = (e) => wi(cs, e), ps = async (e) => (await wi("/api/libraries", e)).libraries || [];
-async function ms(e) {
+}, ds = (e) => wi(ss, e), fs = async (e) => (await wi("/api/libraries", e)).libraries || [];
+async function ps(e) {
await Promise.all([q.fetchQuery({
+ queryKey: cs,
+ queryFn: () => ds(e)
+ }), q.fetchQuery({
queryKey: ls,
queryFn: () => fs(e)
- }), q.fetchQuery({
- queryKey: us,
- queryFn: () => ps(e)
})]);
}
-var hs = (e) => Number(e).toLocaleString();
-function gs(e) {
+var ms = (e) => Number(e).toLocaleString();
+function hs(e) {
if (e.status === "running") {
- let t = e.total ? `${hs(e.checked)} / ${hs(e.total)}` : "准备中";
+ let t = e.total ? `${ms(e.checked)} / ${ms(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${hs(e.repaired)} 部,${hs(e.failed)} 部修不了` : `修好 ${hs(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${ms(e.repaired)} 部,${ms(e.failed)} 部修不了` : `修好 ${ms(e.repaired)} 部` : "";
}
-var _s = (e) => `${hs(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, vs = "/api/quality-goals?limit=200", ys = ["quality-goals"], bs = (e) => wi(vs, e);
-async function xs(e) {
+var gs = (e) => `${ms(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, _s = "/api/quality-goals?limit=200", vs = ["quality-goals"], ys = (e) => wi(_s, e);
+async function bs(e) {
await q.fetchQuery({
- queryKey: ys,
- queryFn: () => bs(e)
+ queryKey: vs,
+ queryFn: () => ys(e)
});
}
-var Ss = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
-function Cs(e, t, n = 1) {
+var xs = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
+function Ss(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;
@@ -15092,21 +15086,21 @@ function Cs(e, t, n = 1) {
t
];
}
-function ws(e, t) {
+function Cs(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function Ts(e, t) {
+function ws(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
//#endregion
//#region src/selection.ts
-function Es(e, t, n, r, i, a = i || !e.has(r)) {
+function Ts(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 Ds(e) {
+function Es(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);
@@ -15115,7 +15109,7 @@ function Ds(e) {
}
//#endregion
//#region src/react/review/review.ts
-var Os = "/api/review", ks = "/api/review/decision", As = "/api/review/genre", js = ["review"], Ms = {
+var Ds = "/api/review", Os = "/api/review/decision", ks = "/api/review/genre", As = ["review"], js = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -15125,15 +15119,15 @@ var Os = "/api/review", ks = "/api/review/decision", As = "/api/review/genre", j
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, Ns = Object.keys(Ms), Ps = "metadata_fields", Fs = (e) => typeof e == "string" && Object.hasOwn(Ms, e), Is = {
+}, Ms = Object.keys(js), Ns = "metadata_fields", Ps = (e) => typeof e == "string" && Object.hasOwn(js, e), Fs = {
creator_tags: "creator",
western_identity: "creator"
};
-function Ls(e, t) {
+function Is(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 Rs(e, t) {
+function Ls(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -15150,43 +15144,43 @@ function Rs(e, t) {
}
return [...n.values()];
}
-function zs(e, t, n) {
- return n && Rs(e, t).find((e) => e.key === n)?.rows || e;
+function Rs(e, t, n) {
+ return n && Ls(e, t).find((e) => e.key === n)?.rows || e;
}
-function Bs(e, t) {
- let n = ws(e.length, 20), r = Ts(t, n);
+function zs(e, t) {
+ let n = Cs(e.length, 20), r = ws(t, n);
return {
page: r,
pages: n,
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function Vs(e) {
+function Bs(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 Hs(e, t, n, r, i, a) {
- return Es(e, t, n, r, i, a);
+function Vs(e, t, n, r, i, a) {
+ return Ts(e, t, n, r, i, a);
}
-function Us(e, t) {
+function Hs(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function Ws(e, t) {
+function Us(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var Gs = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function Ks(e, t) {
- let n = Ws(e, t), r = Gs(e, t);
+var Ws = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function Gs(e, t) {
+ let n = Us(e, t), r = Ws(e, t);
return r ? `${n} · ${r}` : n;
}
-var qs = (e) => e.reason || e.evidence || e.note || e.decision_note || "", Js = (e) => String(e.tags || "").split("|").filter(Boolean), Ys = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function Xs(e) {
+var Ks = (e) => e.reason || e.evidence || e.note || e.decision_note || "", qs = (e) => String(e.tags || "").split("|").filter(Boolean), Js = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function Ys(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function Zs(e, t, n, r) {
+function Xs(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -15202,19 +15196,19 @@ function Zs(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var Qs = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", $s = (e) => wi(Os, e), ec = (e) => W(ks, e), tc = (e, t) => W(As, {
+var Zs = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", Qs = (e) => wi(Ds, e), $s = (e) => W(Os, e), ec = (e, t) => W(ks, {
genre: e,
tag: t
});
-async function nc(e) {
+async function tc(e) {
await q.fetchQuery({
- queryKey: js,
- queryFn: () => $s(e)
+ queryKey: As,
+ queryFn: () => Qs(e)
});
}
-function rc(e, t) {
+function nc(e, t) {
let n = new Set(t);
- n.size && q.setQueryData(js, (t) => {
+ n.size && q.setQueryData(As, (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 : {
@@ -15230,161 +15224,161 @@ function rc(e, t) {
};
});
}
-var ic = () => q.invalidateQueries({
- queryKey: js,
+var rc = () => q.invalidateQueries({
+ queryKey: As,
exact: !0
});
-function ac(e, t) {
- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Ds(e.fetched_at)} 的缓存` : e?.error || t;
+function ic(e, t) {
+ return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Es(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/data-cleanup/links.ts
-var oc = "/api/links", sc = "/api/links/check", cc = "/api/links/prune", lc = ["links"], uc = ["links", "check"], dc = ["links", "prune"], fc = {
+var ac = "/api/links", oc = "/api/links/check", sc = "/api/links/prune", cc = ["links"], lc = ["links", "check"], uc = ["links", "prune"], dc = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function pc(e) {
+async function fc(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var mc = (e) => wi(oc, e), hc = (e) => W(sc, { status_only: !0 }, "POST", e), gc = ({ retry: e, checkId: t }) => pc(W(sc, e ? {
+var pc = (e) => wi(ac, e), mc = (e) => W(oc, { status_only: !0 }, "POST", e), hc = ({ retry: e, checkId: t }) => fc(W(oc, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), _c = (e) => wi(cc, e), vc = (e) => pc(W(cc, {
+} : { restart: !0 })), gc = (e) => wi(sc, e), _c = (e) => fc(W(sc, {
confirm: !0,
check_id: e,
background: !0
-})), yc = (e) => Number(e || 0).toLocaleString(), bc = (e) => `已删除 ${yc(e.removed)} 条;${e.marked ? `已隐退女优的 ${yc(e.marked)} 条留作不可点的记录;` : ""}保留 ${yc(e.recovered)} 条未确认失效的链接。`;
-function xc(e) {
+})), vc = (e) => Number(e || 0).toLocaleString(), yc = (e) => `已删除 ${vc(e.removed)} 条;${e.marked ? `已隐退女优的 ${vc(e.marked)} 条留作不可点的记录;` : ""}保留 ${vc(e.recovered)} 条未确认失效的链接。`;
+function bc(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${yc(e.checked)} / ${yc(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${vc(e.checked)} / ${vc(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/react/data-cleanup/organize.ts
-var Sc = "/api/organize", Cc = "/api/organize/preview", wc = "/api/organize/apply", Tc = "/api/organize/rollback", Ec = "/api/settings", Dc = ["organize"], Oc = (e) => wi(Sc, e);
-async function kc(e) {
+var xc = "/api/organize", Sc = "/api/organize/preview", Cc = "/api/organize/apply", wc = "/api/organize/rollback", Tc = "/api/settings", Ec = ["organize"], Dc = (e) => wi(xc, e);
+async function Oc(e) {
await q.fetchQuery({
- queryKey: Dc,
- queryFn: () => Oc(e)
+ queryKey: Ec,
+ queryFn: () => Dc(e)
});
}
-var Ac = (e) => W(Cc, e), jc = (e) => e.kind === "apply" ? W(wc, {
+var kc = (e) => W(Sc, e), Ac = (e) => e.kind === "apply" ? W(Cc, {
...e.request,
confirm: !0
-}) : W(Tc, { confirm: !0 });
-async function Mc(e) {
- q.setQueryData(Dc, (t) => t && {
+}) : W(wc, { confirm: !0 });
+async function jc(e) {
+ q.setQueryData(Ec, (t) => t && {
...t,
templates: e
});
try {
- await W(Ec, { organizeTemplates: e });
+ await W(Tc, { organizeTemplates: e });
} catch {}
}
-var Nc = (e, t) => e && {
+var Mc = (e, t) => e && {
...e,
...t
-}, Pc = /目录模板|分隔符|盘符|`\.`/;
-function Fc(e) {
+}, Nc = /目录模板|分隔符|盘符|`\.`/;
+function Pc(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var Ic = (e) => Number(e || 0).toLocaleString();
-function Lc(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${Ic(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${Ic(e.counts.change)} 个文件会改名或移动,${Ic(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+var Fc = (e) => Number(e || 0).toLocaleString();
+function Ic(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${Fc(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${Fc(e.counts.change)} 个文件会改名或移动,${Fc(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function Rc(e) {
+function Lc(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${Ic(r)} 个文件${n ? `,${Ic(n)} 行未能退回` : ""}。` : `已整理 ${Ic(r)} 个文件${n ? `,${Ic(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${Fc(r)} 个文件${n ? `,${Fc(n)} 行未能退回` : ""}。` : `已整理 ${Fc(r)} 个文件${n ? `,${Fc(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
//#endregion
//#region src/react/data-cleanup/resource-sync.ts
-var zc = "/api/resource-sync/scan", Bc = "/api/resource-sync/apply", Vc = ["resource-sync", "scan"], Hc = ["resource-sync", "apply"], Uc = (e) => W(zc, {
+var Rc = "/api/resource-sync/scan", zc = "/api/resource-sync/apply", Bc = ["resource-sync", "scan"], Vc = ["resource-sync", "apply"], Hc = (e) => W(Rc, {
background: !0,
status_only: !0
-}, "POST", e), Wc = () => W(zc, {
+}, "POST", e), Uc = () => W(Rc, {
background: !0,
restart: !0
-}), Gc = (e) => wi(Bc, e), Kc = (e) => W(Bc, {
+}), Wc = (e) => wi(zc, e), Gc = (e) => W(zc, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), qc = (e) => (e?.sources ?? []).some((e) => Mo.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function Jc(e) {
- qc(q.getQueryData(ko)) && await Promise.all([q.fetchQuery({
- queryKey: Vc,
- queryFn: () => Uc(e)
+}), Kc = (e) => (e?.sources ?? []).some((e) => jo.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function qc(e) {
+ Kc(q.getQueryData(Oo)) && await Promise.all([q.fetchQuery({
+ queryKey: Bc,
+ queryFn: () => Hc(e)
}), q.fetchQuery({
- queryKey: Hc,
- queryFn: () => Gc(e)
+ queryKey: Vc,
+ queryFn: () => Wc(e)
})]);
}
-var Yc = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Xc = {
+var Jc = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Yc = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, Zc = (e) => Number(e || 0).toLocaleString(), Qc = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", $c = (e) => `将永久删除文件已不在盘上的 ${Zc(e.missing)} 条记录和 ${Zc(e.empty)} 个空文件夹,并清理 ${Zc(e.cache?.files)} 个闲置缓存。这一步不可撤销。`, el = (e) => `将永久删除文件已不在盘上的 ${Zc(e.missing)} 条记录(含回收站里的)、${Zc(e.empty)} 个空文件夹,并清理 ${Zc(e.cache?.files)} 个闲置缓存。来源根目录保留。这一步不可撤销。`, tl = (e) => e.online ? [
- `找不到文件 · 共 ${Zc(e.total)} 项`,
- e.empty ? `空文件夹 ${Zc(e.empty)} 个` : "",
- e.unreadable ? `${Zc(e.unreadable)} 个目录读取失败,已跳过` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${Zc(e.total)} 项`;
-function nl(e) {
+}, Xc = (e) => Number(e || 0).toLocaleString(), Zc = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", Qc = (e) => `将永久删除文件已不在盘上的 ${Xc(e.missing)} 条记录和 ${Xc(e.empty)} 个空文件夹,并清理 ${Xc(e.cache?.files)} 个闲置缓存。这一步不可撤销。`, $c = (e) => `将永久删除文件已不在盘上的 ${Xc(e.missing)} 条记录(含回收站里的)、${Xc(e.empty)} 个空文件夹,并清理 ${Xc(e.cache?.files)} 个闲置缓存。来源根目录保留。这一步不可撤销。`, el = (e) => e.online ? [
+ `找不到文件 · 共 ${Xc(e.total)} 项`,
+ e.empty ? `空文件夹 ${Xc(e.empty)} 个` : "",
+ e.unreadable ? `${Xc(e.unreadable)} 个目录读取失败,已跳过` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${Xc(e.total)} 项`;
+function tl(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 ? `${Zc(t.length)} 条记录没有删除(${o})` : "",
- n ? `${Zc(n)} 个文件夹没有删除` : "",
- r.length ? `${Zc(r.length)} 个缓存没有清理` : ""
+ t.length ? `${Xc(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${Xc(n)} 个文件夹没有删除` : "",
+ r.length ? `${Xc(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var rl = (e, t) => {
- let { rest: n } = nl(e), r = `已永久删除 ${Zc(e.purged)} 条失效记录和 ${Zc(e.dirs_removed)} 个空文件夹,清理 ${Zc(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。`;
+var nl = (e, t) => {
+ let { rest: n } = tl(e), r = `已永久删除 ${Xc(e.purged)} 条失效记录和 ${Xc(e.dirs_removed)} 个空文件夹,清理 ${Xc(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。`;
return n ? `${r}${n},重新检查后可再试。` : r;
-}, il = "/api/review?counts=1", al = ["review", "counts"], ol = "/api/ads?limit=1", sl = ["junk-summary"], cl = "/api/items?state=trash&limit=1", ll = ["trash-summary"], ul = [
+}, rl = "/api/review?counts=1", il = ["review", "counts"], al = "/api/ads?limit=1", ol = ["junk-summary"], sl = "/api/items?state=trash&limit=1", cl = ["trash-summary"], ll = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], dl = (e) => wi(il, e), fl = (e) => wi(ol, e), pl = (e) => {
+], ul = (e) => wi(rl, e), dl = (e) => wi(al, e), fl = (e) => {
let t = sessionStorage.getItem("peach.library");
- return wi(t ? `${cl}&library=${encodeURIComponent(t)}` : cl, e);
-}, ml = (e) => Number(e || 0).toLocaleString();
-function hl(e) {
- let t = Ms, 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 wi(t ? `${sl}&library=${encodeURIComponent(t)}` : sl, e);
+}, pl = (e) => Number(e || 0).toLocaleString();
+function ml(e) {
+ let t = js, 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 gl(e) {
+function hl(e) {
if (!e) return "";
- let t = ul.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${ml(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${ml(e.dismissed_total)}`), t.join(" · ");
-}
-var _l = [
- [al, ({ signal: e }) => dl(e)],
- [ys, ({ signal: e }) => bs(e)],
- [ll, ({ signal: e }) => pl(e)],
+ let t = ll.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${pl(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${pl(e.dismissed_total)}`), t.join(" · ");
+}
+var gl = [
+ [il, ({ signal: e }) => ul(e)],
+ [vs, ({ signal: e }) => ys(e)],
+ [cl, ({ signal: e }) => fl(e)],
+ [cc, ({ signal: e }) => pc(e)],
[lc, ({ signal: e }) => mc(e)],
- [uc, ({ signal: e }) => hc(e)],
- [dc, ({ signal: e }) => _c(e)]
+ [uc, ({ signal: e }) => gc(e)]
];
-async function vl(e) {
- let t = location.hash === "#resource-sync", n = _l.map(([n, r]) => {
+async function _l(e) {
+ let t = location.hash === "#resource-sync", n = gl.map(([n, r]) => {
if (t) return q.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
@@ -15397,40 +15391,40 @@ async function vl(e) {
await Promise.all([
...n,
q.fetchQuery({
- queryKey: sl,
- queryFn: () => fl(e)
+ queryKey: ol,
+ queryFn: () => dl(e)
}),
q.fetchQuery({
- queryKey: Fo,
- queryFn: () => Lo(e)
+ queryKey: Po,
+ queryFn: () => Io(e)
}),
- jo(e).then(() => Jc(e)),
- Yo(e),
- ms(e),
- kc(e)
+ Ao(e).then(() => qc(e)),
+ Jo(e),
+ ps(e),
+ Oc(e)
]);
}
//#endregion
//#region src/react/components/stat-card.tsx
-var yl = [
+var vl = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], bl = [
+], yl = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function xl(e = {}) {
+function bl(e = {}) {
return `${Mi({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var Sl = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", Cl = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function wl({ interactive: e = !1 } = {}) {
+var xl = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", Sl = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+function Cl({ interactive: e = !1 } = {}) {
return Mi({
padding: "none",
radius: "plain",
@@ -15438,8 +15432,8 @@ function wl({ interactive: e = !1 } = {}) {
className: "flex min-h-33 flex-col gap-2 p-4 text-left"
});
}
-var Tl = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function El({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+var wl = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
+function Tl({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",
@@ -15472,13 +15466,13 @@ function El({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta
})
] });
}
-function Dl({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function El({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3",
children: [t ? /* @__PURE__ */ (0, z.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${yl[n % 4]} ${bl[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${vl[n % 4]} ${yl[n % 4]}`,
children: /* @__PURE__ */ (0, z.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -15500,58 +15494,58 @@ function Dl({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/chain.mjs
-function Ol(...e) {
+function Dl(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var kl = typeof document < "u" ? R.useLayoutEffect : () => {}, Al = {
+var Ol = typeof document < "u" ? R.useLayoutEffect : () => {}, kl = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, jl = /*#__PURE__*/ R.createContext(Al), Ml = /*#__PURE__*/ R.createContext(!1);
+}, Al = /*#__PURE__*/ R.createContext(kl), jl = /*#__PURE__*/ R.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var Nl = /* @__PURE__ */ new WeakMap();
-function Pl(e = !1) {
- let t = (0, R.useContext)(jl), n = (0, R.useRef)(null);
+var Ml = /* @__PURE__ */ new WeakMap();
+function Nl(e = !1) {
+ let t = (0, R.useContext)(Al), n = (0, R.useRef)(null);
if (n.current === null && !e) {
let e = R.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = Nl.get(e);
- n == null ? Nl.set(e, {
+ let n = Ml.get(e);
+ n == null ? Ml.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, Nl.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, Ml.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function Fl(e) {
- let t = (0, R.useContext)(jl), n = Pl(!!e), r = `react-aria${t.prefix}`;
+function Pl(e) {
+ let t = (0, R.useContext)(Al), n = Nl(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function Il(e) {
- let t = R.useId(), [n] = (0, R.useState)(Vl()), r = n ? "react-aria" : `react-aria${Al.prefix}`;
+function Fl(e) {
+ let t = R.useId(), [n] = (0, R.useState)(Bl()), r = n ? "react-aria" : `react-aria${kl.prefix}`;
return e || `${r}-${t}`;
}
-var Ll = typeof R.useId == "function" ? Il : Fl;
-function Rl() {
+var Il = typeof R.useId == "function" ? Fl : Pl;
+function Ll() {
return !1;
}
-function zl() {
+function Rl() {
return !0;
}
-function Bl(e) {
+function zl(e) {
return () => {};
}
-function Vl() {
- return typeof R.useSyncExternalStore == "function" ? R.useSyncExternalStore(Bl, Rl, zl) : (0, R.useContext)(Ml);
+function Bl() {
+ return typeof R.useSyncExternalStore == "function" ? R.useSyncExternalStore(zl, Ll, Rl) : (0, R.useContext)(jl);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function Hl(e) {
+function Vl(e) {
let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(t), i = (0, R.useRef)(null), a = (0, R.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
@@ -15561,7 +15555,7 @@ function Hl(e) {
}
r.current === e.value ? a.current() : n(e.value);
});
- return kl(() => {
+ return Ol(() => {
r.current = t, i.current && a.current();
}), [t, (0, R.useCallback)((e) => {
i.current = e(r.current), a.current();
@@ -15569,21 +15563,21 @@ function Hl(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useId.mjs
-var Ul = !!(typeof window < "u" && window.document && window.document.createElement), Wl = /* @__PURE__ */ new Map(), Gl;
-typeof FinalizationRegistry < "u" && (Gl = new FinalizationRegistry((e) => {
- Wl.delete(e);
+var Hl = !!(typeof window < "u" && window.document && window.document.createElement), Ul = /* @__PURE__ */ new Map(), Wl;
+typeof FinalizationRegistry < "u" && (Wl = new FinalizationRegistry((e) => {
+ Ul.delete(e);
}));
-var Kl = /* @__PURE__ */ new WeakMap();
-function ql(e) {
- let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(null), i = Ll(t), a = (0, R.useRef)(null), o = Kl.get(a);
- if (Gl && o !== i && (o != null && Gl.unregister(a), Gl.register(a, i, a), Kl.set(a, i)), Ul) {
- let e = Wl.get(i);
- e && !e.includes(r) ? e.push(r) : Wl.set(i, [r]);
- }
- return kl(() => {
+var Gl = /* @__PURE__ */ new WeakMap();
+function Kl(e) {
+ let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(null), i = Il(t), a = (0, R.useRef)(null), o = Gl.get(a);
+ if (Wl && o !== i && (o != null && Wl.unregister(a), Wl.register(a, i, a), Gl.set(a, i)), Hl) {
+ let e = Ul.get(i);
+ e && !e.includes(r) ? e.push(r) : Ul.set(i, [r]);
+ }
+ return Ol(() => {
let e = i;
return () => {
- Gl && (Gl.unregister(a), Kl.delete(a)), Wl.delete(e);
+ Wl && (Wl.unregister(a), Gl.delete(a)), Ul.delete(e);
};
}, [i]), (0, R.useEffect)(() => {
let e = r.current;
@@ -15592,20 +15586,20 @@ function ql(e) {
};
}), i;
}
-function Jl(e, t) {
+function ql(e, t) {
if (e === t) return e;
- let n = Wl.get(e);
+ let n = Ul.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = Wl.get(t);
+ let r = Ul.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function Yl(e = []) {
- let t = ql(), [n, r] = Hl(t), i = (0, R.useCallback)(() => {
+function Jl(e = []) {
+ let t = Kl(), [n, r] = Vl(t), i = (0, R.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return kl(i, [
+ return Ol(i, [
t,
i,
...e
@@ -15613,38 +15607,38 @@ function Yl(e = []) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function Xl(...e) {
+function Yl(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = Zl(e, t);
+ let r = Xl(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : Zl(e[n], null);
+ typeof t == "function" ? t() : Xl(e[n], null);
});
};
};
}
-function Zl(e, t) {
+function Xl(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
//#endregion
//#region node_modules/clsx/dist/clsx.mjs
-function Ql(e) {
+function Zl(e) {
var t, n, r = "";
if (typeof e == "string" || typeof e == "number") r += e;
else if (typeof e == "object") {
if (Array.isArray(e)) {
var i = e.length;
- for (t = 0; t < i; t++) e[t] && (n = Ql(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = Zl(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function $l() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Ql(e)) && (r && (r += " "), r += t);
+function Ql() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Zl(e)) && (r && (r += " "), r += t);
return r;
}
//#endregion
@@ -15655,14 +15649,14 @@ function J(...e) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = Ol(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = $l(n, i) : e === "id" && n && i ? t.id = Jl(n, i) : e === "ref" && n && i ? t.ref = Xl(n, i) : t[e] = i === void 0 ? n : i;
+ typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = Dl(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = Ql(n, i) : e === "id" && n && i ? t.id = ql(n, i) : e === "ref" && n && i ? t.ref = Yl(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function eu(e) {
+function $l(e) {
let t = (0, R.useRef)(null), n = (0, R.useRef)(void 0), r = (0, R.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
@@ -15685,12 +15679,12 @@ function eu(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var tu = Symbol("default");
-function nu({ values: e, children: t }) {
+var eu = Symbol("default");
+function tu({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ R.createElement(n.Provider, { value: r }, t);
return t;
}
-function ru(e) {
+function nu(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, R.useMemo)(() => {
let e, l, u;
@@ -15724,11 +15718,11 @@ function ru(e) {
c
]);
}
-function iu(e, t) {
+function ru(e, t) {
let n = (0, R.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || tu;
+ let e = t || eu;
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}.`);
@@ -15737,8 +15731,8 @@ function iu(e, t) {
}
return n;
}
-function au(e, t, n) {
- let { ref: r, ...i } = iu(n, e.slot) || {}, a = eu((0, R.useMemo)(() => Xl(t, r), [t, r])), o = J(i, e);
+function iu(e, t, n) {
+ let { ref: r, ...i } = ru(n, e.slot) || {}, a = $l((0, R.useMemo)(() => Yl(t, r), [t, r])), o = J(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,
@@ -15756,46 +15750,46 @@ function au(e, t, n) {
...e.style
}), [o, a];
}
-function ou(e = !0) {
+function au(e = !0) {
let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(!1), i = (0, R.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return kl(() => {
+ return Ol(() => {
r.current || n(!1);
}, []), [i, t];
}
-function su(e) {
+function ou(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function cu(e, t, n) {
- let { render: r, ...i } = t, a = (0, R.useRef)(null), o = (0, R.useMemo)(() => Xl(n, a), [n, a]);
- kl(() => {}, [e, r]);
+function su(e, t, n) {
+ let { render: r, ...i } = t, a = (0, R.useRef)(null), o = (0, R.useMemo)(() => Yl(n, a), [n, a]);
+ Ol(() => {}, [e, r]);
let s = {
...i,
ref: o
};
return r ? r(s, void 0) : /*#__PURE__*/ R.createElement(e, s);
}
-var lu = {}, uu = new Proxy({}, { get(e, t) {
+var cu = {}, lu = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = lu[t];
- return n || (n = /*#__PURE__*/ (0, R.forwardRef)(cu.bind(null, t)), lu[t] = n), n;
-} }), du = "react-aria-clear-focus", fu = "react-aria-focus", pu = (e) => gu(e) ? e.document : _u(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), mu = (e) => pu(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function hu(e) {
+ let n = cu[t];
+ return n || (n = /*#__PURE__*/ (0, R.forwardRef)(su.bind(null, t)), cu[t] = n), n;
+} }), uu = "react-aria-clear-focus", du = "react-aria-focus", fu = (e) => hu(e) ? e.document : gu(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), pu = (e) => fu(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function mu(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function gu(e) {
+function hu(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function _u(e) {
- return hu(e) && e.nodeType === 9;
+function gu(e) {
+ return mu(e) && e.nodeType === 9;
}
-function vu(e) {
- return hu(e) && e.nodeType === 11 && "host" in e;
+function _u(e) {
+ return mu(e) && e.nodeType === 11 && "host" in e;
}
-function yu(e, t, n, r) {
+function vu(e, t, n, r) {
if (n == null || e == null) return () => {};
let i = Array.isArray(e) ? e : [e];
for (let e of i) e.addEventListener(t, n, r);
@@ -15803,7 +15797,7 @@ function yu(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function bu(e, t, n, r) {
+function yu(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -15818,95 +15812,95 @@ function bu(e, t, n, r) {
}
//#endregion
//#region node_modules/react-stately/dist/private/flags/flags.mjs
-var xu = !1;
-function Su() {
- return xu;
+var bu = !1;
+function xu() {
+ return bu;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function Cu(e, t) {
- if (!Su()) return t && e ? e.contains(t) : !1;
+function Su(e, t) {
+ if (!xu()) return t && e ? e.contains(t) : !1;
if (!e || !t) return !1;
let n = t;
for (; n !== null;) {
if (n === e) return !0;
- n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : vu(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : _u(n) ? n.host : n.parentNode;
}
return !1;
}
-var wu = (e = document) => {
- if (!Su()) return e.activeElement;
+var Cu = (e = document) => {
+ if (!xu()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
function Y(e) {
- if (Su() && e.target instanceof Element && e.target.shadowRoot) {
+ if (xu() && e.target instanceof Element && e.target.shadowRoot) {
if ("composedPath" in e) return e.composedPath()[0] ?? null;
if ("composedPath" in e.nativeEvent) return e.nativeEvent.composedPath()[0] ?? null;
}
return e.target;
}
-function Tu(e, t) {
+function wu(e, t) {
if (t === null) return [];
- t ??= mu(e);
+ t ??= pu(e);
let n = [t];
- if (!Su() || !e || e === t) return n;
+ if (!xu() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; vu(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; _u(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function Eu(e) {
+function Tu(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = mu(e);
+ let t = e.getRootNode(), n = pu(e);
if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;
let r = t.activeElement;
return r != null && e.contains(r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function Du(e) {
- let t = Au(pu(e));
- t !== e && (t && Ou(t, e), e && ku(e, t));
+function Eu(e) {
+ let t = ku(fu(e));
+ t !== e && (t && Du(t, e), e && Ou(e, t));
}
-function Ou(e, t) {
+function Du(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function ku(e, t) {
+function Ou(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function Au(e) {
- let t = wu(e), n = t?.getAttribute("aria-activedescendant");
+function ku(e) {
+ let t = Cu(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function ju(e) {
- if (Nu()) e.focus({ preventScroll: !0 });
+function Au(e) {
+ if (Mu()) e.focus({ preventScroll: !0 });
else {
- let t = Pu(e);
- e.focus(), Fu(t);
+ let t = Nu(e);
+ e.focus(), Pu(t);
}
}
-var Mu = null;
-function Nu() {
- if (Mu == null) {
- Mu = !1;
+var ju = null;
+function Mu() {
+ if (ju == null) {
+ ju = !1;
try {
document.createElement("div").focus({ get preventScroll() {
- return Mu = !0, !0;
+ return ju = !0, !0;
} });
} catch {}
}
- return Mu;
+ return ju;
}
-function Pu(e) {
+function Nu(e) {
let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;
for (; t instanceof HTMLElement && t !== r;) (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && n.push({
element: t,
@@ -15919,31 +15913,31 @@ function Pu(e) {
scrollLeft: r.scrollLeft
}), n;
}
-function Fu(e) {
+function Pu(e) {
for (let { element: t, scrollTop: n, scrollLeft: r } of e) t.scrollTop = n, t.scrollLeft = r;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isElementVisible.mjs
-var Iu = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function Lu(e) {
- let t = mu(e);
+var Fu = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function Iu(e) {
+ let t = pu(e);
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";
if (i) {
- let { getComputedStyle: t } = mu(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = pu(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function Ru(e, t) {
+function Lu(e, t) {
return !e.hasAttribute("hidden") && !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
}
-function zu(e, t) {
- return Iu ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && Lu(e) && Ru(e, t) && (!e.parentElement || zu(e.parentElement, e));
+function Ru(e, t) {
+ return Fu ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && Iu(e) && Lu(e, t) && (!e.parentElement || Ru(e.parentElement, e));
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var Bu = [
+var zu = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -15958,38 +15952,38 @@ var Bu = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], Vu = Bu.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-Bu.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var Hu = Bu.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function Uu(e, t) {
- return e.matches(Vu) && !Gu(e) && (t?.skipVisibilityCheck || zu(e));
+], Bu = zu.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+zu.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var Vu = zu.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function Hu(e, t) {
+ return e.matches(Bu) && !Wu(e) && (t?.skipVisibilityCheck || Ru(e));
}
-function Wu(e) {
- return e.matches(Hu) && zu(e) && !Gu(e);
+function Uu(e) {
+ return e.matches(Vu) && Ru(e) && !Wu(e);
}
-function Gu(e) {
+function Wu(e) {
let t = e;
for (; t != null;) {
- if (t instanceof mu(t).HTMLElement && t.inert) return !0;
+ if (t instanceof pu(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/utils.mjs
-function Ku(e) {
+function Gu(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function qu(e, t) {
+function Ku(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function Ju(e) {
+function qu(e) {
let t = (0, R.useRef)({
isFocused: !1,
observer: null
});
- return kl(() => {
+ return Ol(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
@@ -16001,14 +15995,14 @@ function Ju(e) {
let n = r;
n.addEventListener("focusout", (r) => {
if (t.current.isFocused = !1, n.disabled) {
- let t = Ku(r);
+ let t = Gu(r);
e?.(t);
}
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
}, { once: !0 }), t.current.observer = new MutationObserver(() => {
if (t.current.isFocused && n.disabled) {
t.current.observer?.disconnect();
- let e = n === wu() ? null : wu();
+ let e = n === Cu() ? null : Cu();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -16021,87 +16015,87 @@ function Ju(e) {
}
}, [e]);
}
-var Yu = !1;
-function Xu(e) {
- for (; e && !Uu(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = wu(mu(e).document);
+var Ju = !1;
+function Yu(e) {
+ for (; e && !Hu(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = Cu(pu(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && vu(n) ? n : mu(e), i = (t) => t === e || t != null && Cu(e, t), a = (e) => e === t || t != null && e != null && Cu(t, e);
- Yu = !0;
+ let n = e?.getRootNode(), r = n != null && _u(n) ? n : pu(e), i = (t) => t === e || t != null && Su(e, t), a = (e) => e === t || t != null && e != null && Su(t, e);
+ Ju = !0;
let o = !1, s = (e) => {
(a(Y(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(Y(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, ju(t), d()));
+ (a(Y(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, Au(t), d()));
}, l = (e) => {
(i(Y(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(Y(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, ju(t), d()));
+ (i(Y(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, Au(t), d()));
};
r.addEventListener("blur", s, !0), r.addEventListener("focusout", c, !0), r.addEventListener("focusin", u, !0), r.addEventListener("focus", l, !0);
let d = () => {
- cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), Yu = !1, o = !1;
+ cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), Ju = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/platform.mjs
-function Zu(e) {
+function Xu(e) {
if (typeof window > "u" || window.navigator == null) return !1;
let t = window.navigator.userAgentData?.brands;
return Array.isArray(t) && t.some((t) => e.test(t.brand)) || e.test(window.navigator.userAgent);
}
-function Qu(e) {
+function Zu(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function $u(e) {
+function Qu(e) {
let t = null;
return () => (t ??= e(), t);
}
-var ed = $u(function() {
- return Qu(/^Mac/i);
-}), td = $u(function() {
- return Qu(/^iPhone/i);
-}), nd = $u(function() {
- return Qu(/^iPad/i) || ed() && navigator.maxTouchPoints > 1;
-}), rd = $u(function() {
- return td() || nd();
-}), id = $u(function() {
- return ed() || rd();
-}), ad = $u(function() {
- return Zu(/AppleWebKit/i) && (rd() || !od());
-}), od = $u(function() {
- return Zu(/Chrome|CriOS|CrMo/i);
-}), sd = $u(function() {
- return Zu(/Android/i);
-}), cd = $u(function() {
- return Zu(/(Firefox|FxiOS)/i);
+var $u = Qu(function() {
+ return Zu(/^Mac/i);
+}), ed = Qu(function() {
+ return Zu(/^iPhone/i);
+}), td = Qu(function() {
+ return Zu(/^iPad/i) || $u() && navigator.maxTouchPoints > 1;
+}), nd = Qu(function() {
+ return ed() || td();
+}), rd = Qu(function() {
+ return $u() || nd();
+}), id = Qu(function() {
+ return Xu(/AppleWebKit/i) && (nd() || !ad());
+}), ad = Qu(function() {
+ return Xu(/Chrome|CriOS|CrMo/i);
+}), od = Qu(function() {
+ return Xu(/Android/i);
+}), sd = Qu(function() {
+ return Xu(/(Firefox|FxiOS)/i);
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function ld(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : sd() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+function cd(e) {
+ return e.pointerType === "" && e.isTrusted ? !0 : od() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function ud(e) {
- return !sd() && e.width === 0 && e.height === 0 || sd() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function ld(e) {
+ return !od() && e.width === 0 && e.height === 0 || od() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/openLink.mjs
-var dd = /*#__PURE__*/ (0, R.createContext)({
+var ud = /*#__PURE__*/ (0, R.createContext)({
isNative: !0,
- open: gd,
+ open: hd,
useHref: (e) => e
});
-function fd() {
- return (0, R.useContext)(dd);
+function dd() {
+ return (0, R.useContext)(ud);
}
-function pd(e, t) {
+function fd(e, t) {
let n = e.getAttribute("target");
return (!n || n === "_self") && e.origin === location.origin && !e.hasAttribute("download") && !t.metaKey && !t.ctrlKey && !t.altKey && !t.shiftKey;
}
-function md(e, t, n = !0) {
+function pd(e, t, n = !0) {
let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t;
- !ad() && cd() && window.event?.type?.startsWith("key") && e.target === "_blank" && (ed() ? r = !0 : i = !0);
- let s = ad() && ed() && !nd() ? new KeyboardEvent("keydown", {
+ !id() && sd() && window.event?.type?.startsWith("key") && e.target === "_blank" && ($u() ? r = !0 : i = !0);
+ let s = id() && $u() && !td() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -16116,21 +16110,21 @@ function md(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- md.isOpening = n, ju(e), e.dispatchEvent(s), md.isOpening = !1;
+ pd.isOpening = n, Au(e), e.dispatchEvent(s), pd.isOpening = !1;
}
-md.isOpening = !1;
-function hd(e, t) {
+pd.isOpening = !1;
+function md(e, t) {
if (e instanceof HTMLAnchorElement) t(e);
else if (e.hasAttribute("data-href")) {
let n = document.createElement("a");
n.href = e.getAttribute("data-href"), e.hasAttribute("data-target") && (n.target = e.getAttribute("data-target")), e.hasAttribute("data-rel") && (n.rel = e.getAttribute("data-rel")), e.hasAttribute("data-download") && (n.download = e.getAttribute("data-download")), e.hasAttribute("data-ping") && (n.ping = e.getAttribute("data-ping")), e.hasAttribute("data-referrer-policy") && (n.referrerPolicy = e.getAttribute("data-referrer-policy")), e.appendChild(n), t(n), e.removeChild(n);
}
}
-function gd(e, t) {
- hd(e, (e) => md(e, t));
+function hd(e, t) {
+ md(e, (e) => pd(e, t));
}
-function _d(e) {
- let t = fd().useHref(e.href ?? "");
+function gd(e) {
+ let t = dd().useHref(e.href ?? "");
return {
"data-href": e.href ? t : void 0,
"data-target": e.target,
@@ -16140,8 +16134,8 @@ function _d(e) {
"data-referrer-policy": e.referrerPolicy
};
}
-function vd(e) {
- let t = fd().useHref(e?.href ?? ""), n = {};
+function _d(e) {
+ let t = dd().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -16152,94 +16146,94 @@ function vd(e) {
]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);
return n;
}
-function yd(e, t, n, r) {
- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && pd(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
+function vd(e, t, n, r) {
+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && fd(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var bd = null, xd = /* @__PURE__ */ new Set(), Sd = /* @__PURE__ */ new Map(), Cd = !1, wd = !1, Td = {
+var yd = null, bd = /* @__PURE__ */ new Set(), xd = /* @__PURE__ */ new Map(), Sd = !1, Cd = !1, wd = {
Tab: !0,
Escape: !0
};
-function Ed(e, t) {
- for (let n of xd) n(e, t);
+function Td(e, t) {
+ for (let n of bd) n(e, t);
+}
+function Ed(e) {
+ return !(e.metaKey || !$u() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
function Dd(e) {
- return !(e.metaKey || !ed() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+ Sd = !0, !pd.isOpening && Ed(e) && (yd = "keyboard", Td("keyboard", e));
}
function Od(e) {
- Cd = !0, !md.isOpening && Dd(e) && (bd = "keyboard", Ed("keyboard", e));
+ yd = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (Sd = !0, Td("pointer", e));
}
function kd(e) {
- bd = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (Cd = !0, Ed("pointer", e));
+ !pd.isOpening && cd(e) && (Sd = !0, yd = "virtual");
}
function Ad(e) {
- !md.isOpening && ld(e) && (Cd = !0, bd = "virtual");
-}
-function jd(e) {
- if (Yu) return;
- let t = Y(e), n = mu(t), r = pu(t);
+ if (Ju) return;
+ let t = Y(e), n = pu(t), r = fu(t);
if (t === n) {
- wd = !0;
+ Cd = !0;
return;
}
- t === r || !e.isTrusted || (!Cd && !wd && (bd = "virtual", Ed("virtual", e)), Cd = !1, wd = !1);
+ t === r || !e.isTrusted || (!Sd && !Cd && (yd = "virtual", Td("virtual", e)), Sd = !1, Cd = !1);
}
-function Md() {
- Yu || (Cd = !1, wd = !0);
+function jd() {
+ Ju || (Sd = !1, Cd = !0);
}
-function Nd(e) {
+function Md(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = mu(e), n = pu(e);
- if (Sd.get(t)) return;
+ let t = pu(e), n = fu(e);
+ if (xd.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- Cd = !0, r.apply(this, arguments);
+ Sd = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", Od, !0), n.addEventListener("keyup", Od, !0), n.addEventListener("click", Ad, !0), t.addEventListener("focus", jd, !0), t.addEventListener("blur", Md, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", kd, !0), n.addEventListener("pointermove", kd, !0), n.addEventListener("pointerup", kd, !0)), t.addEventListener("beforeunload", () => {
- Pd(e);
- }, { once: !0 }), Sd.set(t, { focus: r });
+ }), n.addEventListener("keydown", Dd, !0), n.addEventListener("keyup", Dd, !0), n.addEventListener("click", kd, !0), t.addEventListener("focus", Ad, !0), t.addEventListener("blur", jd, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Od, !0), n.addEventListener("pointermove", Od, !0), n.addEventListener("pointerup", Od, !0)), t.addEventListener("beforeunload", () => {
+ Nd(e);
+ }, { once: !0 }), xd.set(t, { focus: r });
}
-var Pd = (e, t) => {
- let n = mu(e), r = pu(e);
- t && r.removeEventListener("DOMContentLoaded", t), Sd.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var Nd = (e, t) => {
+ let n = pu(e), r = fu(e);
+ t && r.removeEventListener("DOMContentLoaded", t), xd.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: Sd.get(n).focus
- }), r.removeEventListener("keydown", Od, !0), r.removeEventListener("keyup", Od, !0), r.removeEventListener("click", Ad, !0), n.removeEventListener("focus", jd, !0), n.removeEventListener("blur", Md, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", kd, !0), r.removeEventListener("pointermove", kd, !0), r.removeEventListener("pointerup", kd, !0)), Sd.delete(n));
+ value: xd.get(n).focus
+ }), r.removeEventListener("keydown", Dd, !0), r.removeEventListener("keyup", Dd, !0), r.removeEventListener("click", kd, !0), n.removeEventListener("focus", Ad, !0), n.removeEventListener("blur", jd, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Od, !0), r.removeEventListener("pointermove", Od, !0), r.removeEventListener("pointerup", Od, !0)), xd.delete(n));
};
-function Fd(e) {
- let t = pu(e), n;
+function Pd(e) {
+ let t = fu(e), n;
return t.readyState === "loading" ? (n = () => {
- Nd(e);
- }, t.addEventListener("DOMContentLoaded", n)) : Nd(e), () => Pd(e, n);
+ Md(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : Md(e), () => Nd(e, n);
}
-typeof document < "u" && Fd();
-function Id() {
- return bd !== "pointer";
+typeof document < "u" && Pd();
+function Fd() {
+ return yd !== "pointer";
}
-function Ld() {
- return bd;
+function Id() {
+ return yd;
}
-function Rd(e) {
- bd = e, Ed(e, null);
+function Ld(e) {
+ yd = e, Td(e, null);
}
-function zd() {
- Nd();
- let [e, t] = (0, R.useState)(bd);
+function Rd() {
+ Md();
+ let [e, t] = (0, R.useState)(yd);
return (0, R.useEffect)(() => {
let e = () => {
- t(bd);
+ t(yd);
};
- return xd.add(e), () => {
- xd.delete(e);
+ return bd.add(e), () => {
+ bd.delete(e);
};
- }, []), Vl() ? null : e;
+ }, []), Bl() ? null : e;
}
-var Bd = /* @__PURE__ */ new Set([
+var zd = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -16250,33 +16244,33 @@ var Bd = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Vd(e, t, n) {
- let r = n ? Y(n) : void 0, i = pu(r), a = mu(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = wu(i);
- return e = e || u instanceof o && !Bd.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Td[n.key]);
+function Bd(e, t, n) {
+ let r = n ? Y(n) : void 0, i = fu(r), a = pu(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = Cu(i);
+ return e = e || u instanceof o && !zd.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !wd[n.key]);
}
-function Hd(e = {}) {
- let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, R.useState)(n || Id());
- return Ud((e) => {
+function Vd(e = {}) {
+ let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, R.useState)(n || Fd());
+ return Hd((e) => {
i(e);
}, [t], { isTextInput: t }), { isFocusVisible: r };
}
-function Ud(e, t, n) {
- Nd(), (0, R.useEffect)(() => {
+function Hd(e, t, n) {
+ Md(), (0, R.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- Vd(!!n?.isTextInput, t, r) && e(Id());
+ Bd(!!n?.isTextInput, t, r) && e(Fd());
};
- return xd.add(t), () => {
- xd.delete(t);
+ return bd.add(t), () => {
+ bd.delete(t);
};
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/keyboard.mjs
-function Wd(e) {
- return ed() ? e.metaKey : e.ctrlKey;
+function Ud(e) {
+ return $u() ? e.metaKey : e.ctrlKey;
}
-var Gd = /* @__PURE__ */ new Set([
+var Wd = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -16287,15 +16281,15 @@ var Gd = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Kd(e) {
- return e instanceof HTMLInputElement && !Gd.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
+function Gd(e) {
+ return e instanceof HTMLInputElement && !Wd.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var qd = R.useInsertionEffect ?? kl;
-function Jd(e) {
+var Kd = R.useInsertionEffect ?? Ol;
+function qd(e) {
let t = (0, R.useRef)(null);
- return qd(() => {
+ return Kd(() => {
t.current = e;
}, [e]), (0, R.useCallback)((...e) => {
let n = t.current;
@@ -16304,10 +16298,10 @@ function Jd(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEvent.mjs
-function Yd(e, t, n, r) {
- let i = Jd(n), a = n == null;
+function Jd(e, t, n, r) {
+ let i = qd(n), a = n == null;
(0, R.useEffect)(() => {
- if (!(a || e.current == null)) return yu(e.current, t, i, r);
+ if (!(a || e.current == null)) return vu(e.current, t, i, r);
}, [
e,
t,
@@ -16317,9 +16311,9 @@ function Yd(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLabels.mjs
-function Xd(e, t) {
+function Yd(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = ql(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
+ return n = Kl(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
id: n,
"aria-label": r,
"aria-labelledby": i
@@ -16327,7 +16321,7 @@ function Xd(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/utils.mjs
-var Zd = /* @__PURE__ */ new Set([
+var Xd = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -16338,7 +16332,7 @@ var Zd = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), Qd = /* @__PURE__ */ new Set([
+]), Zd = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -16359,20 +16353,20 @@ var Zd = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function $d(e) {
+function Qd(e) {
if (Intl.Locale) {
let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
if (n) return n.direction === "rtl";
- if (t.script) return Zd.has(t.script);
+ if (t.script) return Xd.has(t.script);
}
let t = e.split("-")[0];
- return Qd.has(t);
+ return Zd.has(t);
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var ef = Symbol.for("react-aria.i18n.locale");
-function tf() {
- let e = typeof window < "u" && window[ef] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var $d = Symbol.for("react-aria.i18n.locale");
+function ef() {
+ let e = typeof window < "u" && window[$d] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -16380,33 +16374,33 @@ function tf() {
}
return {
locale: e,
- direction: $d(e) ? "rtl" : "ltr"
+ direction: Qd(e) ? "rtl" : "ltr"
};
}
-var nf = tf(), rf = /* @__PURE__ */ new Set();
-function af() {
- nf = tf();
- for (let e of rf) e(nf);
+var tf = ef(), nf = /* @__PURE__ */ new Set();
+function rf() {
+ tf = ef();
+ for (let e of nf) e(tf);
}
-function of() {
- let e = Vl(), [t, n] = (0, R.useState)(nf);
- return (0, R.useEffect)(() => (rf.size === 0 && window.addEventListener("languagechange", af), rf.add(n), () => {
- rf.delete(n), rf.size === 0 && window.removeEventListener("languagechange", af);
+function af() {
+ let e = Bl(), [t, n] = (0, R.useState)(tf);
+ return (0, R.useEffect)(() => (nf.size === 0 && window.addEventListener("languagechange", rf), nf.add(n), () => {
+ nf.delete(n), nf.size === 0 && window.removeEventListener("languagechange", rf);
}), []), e ? {
- locale: typeof window < "u" && window[ef] || "en-US",
+ locale: typeof window < "u" && window[$d] || "en-US",
direction: "ltr"
} : t;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var sf = /*#__PURE__*/ R.createContext(null);
-function cf() {
- let e = of();
- return (0, R.useContext)(sf) || e;
+var of = /*#__PURE__*/ R.createContext(null);
+function sf() {
+ let e = af();
+ return (0, R.useContext)(of) || e;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var lf = Symbol.for("react-aria.i18n.locale"), uf = Symbol.for("react-aria.i18n.strings"), df = void 0, ff = class e {
+var cf = Symbol.for("react-aria.i18n.locale"), lf = Symbol.for("react-aria.i18n.strings"), uf = void 0, df = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -16417,39 +16411,39 @@ var lf = Symbol.for("react-aria.i18n.locale"), uf = Symbol.for("react-aria.i18n.
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = pf(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = ff(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[lf];
- if (df === void 0) {
- let t = window[uf];
+ let n = window[cf];
+ if (uf === void 0) {
+ let t = window[lf];
if (!t) return null;
- df = {};
- for (let r in t) df[r] = new e({ [n]: t[r] }, n);
+ uf = {};
+ for (let r in t) uf[r] = new e({ [n]: t[r] }, n);
}
- let r = df?.[t];
+ let r = uf?.[t];
if (!r) throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
return r;
}
};
-function pf(e, t, n = "en-US") {
+function ff(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = mf(e), i = hf(e);
+ let r = pf(e), i = mf(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 mf(e) {
+function pf(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function hf(e) {
+function mf(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var gf = /* @__PURE__ */ new Map(), _f = /* @__PURE__ */ new Map(), vf = class {
+var hf = /* @__PURE__ */ new Map(), gf = /* @__PURE__ */ new Map(), _f = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -16460,39 +16454,39 @@ var gf = /* @__PURE__ */ new Map(), _f = /* @__PURE__ */ new Map(), vf = class {
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = gf.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), gf.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = hf.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), hf.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = _f.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), _f.set(this.locale, t)), t.format(e);
+ let t = gf.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), gf.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, yf = /* @__PURE__ */ new WeakMap();
-function bf(e) {
- let t = yf.get(e);
- return t || (t = new ff(e), yf.set(e, t)), t;
+}, vf = /* @__PURE__ */ new WeakMap();
+function yf(e) {
+ let t = vf.get(e);
+ return t || (t = new df(e), vf.set(e, t)), t;
}
-function xf(e, t) {
- return t && ff.getGlobalDictionaryForPackage(t) || bf(e);
+function bf(e, t) {
+ return t && df.getGlobalDictionaryForPackage(t) || yf(e);
}
-function Sf(e, t) {
- let { locale: n } = cf(), r = xf(e, t);
- return (0, R.useMemo)(() => new vf(n, r), [n, r]);
+function xf(e, t) {
+ let { locale: n } = sf(), r = bf(e, t);
+ return (0, R.useMemo)(() => new _f(n, r), [n, r]);
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var Cf = typeof document < "u" ? R.useInsertionEffect ?? R.useLayoutEffect : () => {};
-function wf(e, t, n) {
+var Sf = typeof document < "u" ? R.useInsertionEffect ?? R.useLayoutEffect : () => {};
+function Cf(e, t, n) {
let [r, i] = (0, R.useState)(e || t), a = (0, R.useRef)(r), o = (0, R.useRef)(e !== void 0), s = e !== void 0;
(0, R.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- Cf(() => {
+ Sf(() => {
a.current = c;
});
let [, l] = (0, R.useReducer)(() => ({}), {});
@@ -16503,7 +16497,7 @@ function wf(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Autocomplete.mjs
-var Tf = /*#__PURE__*/ (0, R.createContext)(null), Ef = /*#__PURE__*/ (0, R.createContext)(null), Df = class {
+var wf = /*#__PURE__*/ (0, R.createContext)(null), Tf = /*#__PURE__*/ (0, R.createContext)(null), Ef = class {
constructor(e) {
this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = this.constructor.type, this.key = e;
}
@@ -16518,22 +16512,22 @@ var Tf = /*#__PURE__*/ (0, R.createContext)(null), Ef = /*#__PURE__*/ (0, R.crea
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, Of = class extends Df {
+}, Df = class extends Ef {
filter(e, t, n) {
- let [r, i] = Nf(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = Mf(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends Df {
+(class extends Ef {
static {
this.type = "header";
}
});
-var kf = class extends Df {
+var Of = class extends Ef {
static {
this.type = "loader";
}
-}, Af = class extends Of {
+}, kf = class extends Df {
static {
this.type = "item";
}
@@ -16544,7 +16538,7 @@ var kf = class extends Df {
}
return null;
}
-}, jf = class extends Of {
+}, Af = class extends Df {
static {
this.type = "section";
}
@@ -16556,7 +16550,7 @@ var kf = class extends Df {
}
return null;
}
-}, Mf = class {
+}, jf = class {
get size() {
return this.itemCount;
}
@@ -16631,14 +16625,14 @@ var kf = class extends Df {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = Nf(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = Mf(this, t, this.firstKey, e);
return t?.commit(n, r), t;
}
constructor() {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;
}
};
-function Nf(e, t, n, r) {
+function Mf(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -16653,7 +16647,7 @@ function Nf(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/Document.mjs
-var Pf = class {
+var Nf = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -16734,7 +16728,7 @@ var Pf = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, Ff = class e extends Pf {
+}, Pf = class e extends Nf {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -16785,7 +16779,7 @@ var Pf = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, If = class extends Pf {
+}, Ff = class extends Nf {
constructor(e) {
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
}
@@ -16793,7 +16787,7 @@ var Pf = class {
return !0;
}
createElement(e) {
- return new Ff(e, this);
+ return new Pf(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -16815,8 +16809,8 @@ var Pf = class {
return this.inSubscription ? this.collection : (this.queuedRender = !1, this.updateCollection(), this.collection);
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof Ff && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof Ff ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
+ for (let e of this.dirtyNodes) e instanceof Pf && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof Pf ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
this.nextCollection && (this.nextCollection.commit(this.firstVisibleChild?.node?.key ?? null, this.lastVisibleChild?.node?.key ?? null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null));
}
queueUpdate() {
@@ -16835,13 +16829,13 @@ var Pf = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function Lf(e) {
+function If(e) {
let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, R.useMemo)(() => void 0, [t]), s = (0, R.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
return (0, R.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = Rf(a) ? a : null, o = n ? s.get(n) : null;
+ let n = Lf(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
@@ -16866,7 +16860,7 @@ function Lf(e) {
i
]);
}
-function Rf(e) {
+function Lf(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -16876,8 +16870,8 @@ function Rf(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var zf = /* @__PURE__ */ new Map(), Bf = /* @__PURE__ */ new Set();
-function Vf() {
+var Rf = /* @__PURE__ */ new Map(), zf = /* @__PURE__ */ new Set();
+function Bf() {
if (typeof window > "u") return;
function e(e) {
return "propertyName" in e;
@@ -16885,48 +16879,48 @@ function Vf() {
let t = (t) => {
let r = Y(t);
if (!e(t) || !r) return;
- let i = zf.get(r);
- i || (i = /* @__PURE__ */ new Set(), zf.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
+ let i = Rf.get(r);
+ i || (i = /* @__PURE__ */ new Set(), Rf.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
}, n = (t) => {
let r = Y(t);
if (!e(t) || !r) return;
- let i = zf.get(r);
- if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), zf.delete(r)), zf.size === 0)) {
- for (let e of Bf) e();
- Bf.clear();
+ let i = Rf.get(r);
+ if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), Rf.delete(r)), Rf.size === 0)) {
+ for (let e of zf) e();
+ zf.clear();
}
};
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
}
-typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", Vf) : Vf());
-function Hf() {
- for (let [e] of zf) "isConnected" in e && !e.isConnected && zf.delete(e);
+typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", Bf) : Bf());
+function Vf() {
+ for (let [e] of Rf) "isConnected" in e && !e.isConnected && Rf.delete(e);
}
-function Uf(e) {
+function Hf(e) {
requestAnimationFrame(() => {
- Hf(), zf.size === 0 ? e() : Bf.add(e);
+ Vf(), Rf.size === 0 ? e() : zf.add(e);
});
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function Wf(e) {
+function Uf(e) {
if (!e.isConnected) return;
- let t = pu(e);
- if (Ld() === "virtual") {
- let n = wu(t);
- Uf(() => {
- let r = wu(t);
- (r === n || r === t.body) && e.isConnected && ju(e);
+ let t = fu(e);
+ if (Id() === "virtual") {
+ let n = Cu(t);
+ Hf(() => {
+ let r = Cu(t);
+ (r === n || r === t.body) && e.isConnected && Au(e);
});
- } else ju(e);
+ } else Au(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function Gf(e) {
+function Wf(e) {
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, R.useCallback)((e) => {
if (Y(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = Ju(a), s = (0, R.useCallback)((e) => {
- let t = Y(e), r = pu(t), a = r ? wu(r) : wu();
+ }, [r, i]), o = qu(a), s = (0, R.useCallback)((e) => {
+ let t = Y(e), r = fu(t), a = r ? Cu(r) : Cu();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -16940,7 +16934,7 @@ function Gf(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function Kf(e) {
+function Gf(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -16965,33 +16959,33 @@ function Kf(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var qf = /* @__PURE__ */ new Set([
+var Kf = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), Jf = [
+]), qf = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function Yf(e) {
+function Jf(e) {
let t = /* @__PURE__ */ new Set();
- return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(ed() ? "Meta" : "Control"), t;
+ return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add($u() ? "Meta" : "Control"), t;
}
-function Xf(e) {
+function Yf(e) {
let t = /* @__PURE__ */ new Set();
return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
}
-function Zf(e) {
- return Jf.filter((t) => e.has(t));
+function Xf(e) {
+ return qf.filter((t) => e.has(t));
}
-function Qf(e) {
+function Zf(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return qf.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
+ return Kf.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
}, {
shift: !1,
alt: !1,
@@ -17003,10 +16997,10 @@ function Qf(e) {
if (t.key === "") throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);
return t;
}
-function $f(e) {
+function Qf(e) {
return e.toLowerCase();
}
-var ep = {
+var $f = {
space: " ",
esc: "escape",
del: "delete",
@@ -17018,26 +17012,26 @@ var ep = {
pageup: "pageup",
pagedown: "pagedown"
};
-function tp(e) {
- let t = $f(e);
- return ep[t] ?? t;
+function ep(e) {
+ let t = Qf(e);
+ return $f[t] ?? t;
}
-function np(e) {
- let t = Zf(Yf(e)), n = tp(e.key);
+function tp(e) {
+ let t = Xf(Jf(e)), n = ep(e.key);
return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
-function rp(e) {
- let t = Zf(Xf(e)), n = $f(e.key);
+function np(e) {
+ let t = Xf(Yf(e)), n = Qf(e.key);
return (t.length > 0 ? `${t.join("+")}+` : "") + n;
}
-function ip(e) {
+function rp(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = Qf(n);
- t.set(np(e), r);
+ let e = Zf(n);
+ t.set(tp(e), r);
}
return (e) => {
- let n = rp(e), r = t.get(n), i = r?.(e);
+ let n = np(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -17049,11 +17043,11 @@ function ip(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function ap(e) {
+function ip(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = ip(t), s = Kf((e) => {
- if (!Cu(e.currentTarget, Y(e))) {
+ let o = rp(t), s = Gf((e) => {
+ if (!Su(e.currentTarget, Y(e))) {
e.continuePropagation();
return;
}
@@ -17062,8 +17056,8 @@ function ap(e) {
return;
}
o(e);
- }), c = Kf((e) => {
- if (!Cu(e.currentTarget, Y(e))) {
+ }), c = Gf((e) => {
+ if (!Su(e.currentTarget, Y(e))) {
e.continuePropagation();
return;
}
@@ -17073,8 +17067,8 @@ function ap(e) {
}
e.continuePropagation();
});
- i = e.onKeyDown ? Ol(e.onKeyDown, s) : s, a = e.onKeyUp ? Ol(e.onKeyUp, c) : c;
- } else i = Kf(e.onKeyDown), a = Kf(e.onKeyUp);
+ i = e.onKeyDown ? Dl(e.onKeyDown, s) : s, a = e.onKeyUp ? Dl(e.onKeyUp, c) : c;
+ } else i = Gf(e.onKeyDown), a = Gf(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
@@ -17082,8 +17076,8 @@ function ap(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function op(e, t) {
- kl(() => {
+function ap(e, t) {
+ Ol(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
@@ -17091,17 +17085,17 @@ function op(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var sp = /*#__PURE__*/ R.createContext(null);
-function cp(e) {
- let t = (0, R.useContext)(sp) || {};
- op(t, e);
+var op = /*#__PURE__*/ R.createContext(null);
+function sp(e) {
+ let t = (0, R.useContext)(op) || {};
+ ap(t, e);
let { ref: n, ...r } = t;
return r;
}
-function lp(e, t) {
- let { focusProps: n } = Gf(e), { keyboardProps: r } = ap(e), i = J(n, r), a = cp(t), o = e.isDisabled ? {} : a, s = (0, R.useRef)(e.autoFocus);
+function cp(e, t) {
+ let { focusProps: n } = Wf(e), { keyboardProps: r } = ip(e), i = J(n, r), a = sp(t), o = e.isDisabled ? {} : a, s = (0, R.useRef)(e.autoFocus);
(0, R.useEffect)(() => {
- s.current && t.current && Wf(t.current), s.current = !1;
+ s.current && t.current && Uf(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
return e.isDisabled && (c = void 0), { focusableProps: J({
@@ -17136,22 +17130,22 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var up = /*#__PURE__*/ (0, R.createContext)(!1);
-function dp(e) {
- if ((0, R.useContext)(up)) return /*#__PURE__*/ R.createElement(R.Fragment, null, e.children);
- let t = /*#__PURE__*/ R.createElement(up.Provider, { value: !0 }, e.children);
+var lp = /*#__PURE__*/ (0, R.createContext)(!1);
+function up(e) {
+ if ((0, R.useContext)(lp)) return /*#__PURE__*/ R.createElement(R.Fragment, null, e.children);
+ let t = /*#__PURE__*/ R.createElement(lp.Provider, { value: !0 }, e.children);
return /*#__PURE__*/ R.createElement("template", null, t);
}
-function fp(e) {
- let t = (t, n) => (0, R.useContext)(up) ? null : e(t, n);
+function dp(e) {
+ let t = (t, n) => (0, R.useContext)(lp) ? null : e(t, n);
return t.displayName = e.displayName || e.name, (0, R.forwardRef)(t);
}
-function pp() {
- return (0, R.useContext)(up);
+function fp() {
+ return (0, R.useContext)(lp);
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var mp = /* @__PURE__ */ ce(((e) => {
+var pp = /* @__PURE__ */ ce(((e) => {
var t = he();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -17189,47 +17183,47 @@ var mp = /* @__PURE__ */ ce(((e) => {
}
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
-})), hp = /* @__PURE__ */ ce(((e, t) => {
- t.exports = mp();
-})), gp = hp(), _p = /*#__PURE__*/ (0, R.createContext)(!1), vp = /*#__PURE__*/ (0, R.createContext)(null);
-function yp(e) {
- if ((0, R.useContext)(vp)) return e.content;
- let { collection: t, document: n } = Cp(e.createCollection);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(dp, null, /*#__PURE__*/ R.createElement(vp.Provider, { value: n }, e.content)), /*#__PURE__*/ R.createElement(bp, {
+})), mp = /* @__PURE__ */ ce(((e, t) => {
+ t.exports = pp();
+})), hp = mp(), gp = /*#__PURE__*/ (0, R.createContext)(!1), _p = /*#__PURE__*/ (0, R.createContext)(null);
+function vp(e) {
+ if ((0, R.useContext)(_p)) return e.content;
+ let { collection: t, document: n } = Sp(e.createCollection);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(up, null, /*#__PURE__*/ R.createElement(_p.Provider, { value: n }, e.content)), /*#__PURE__*/ R.createElement(yp, {
render: e.children,
collection: t
}));
}
-function bp({ collection: e, render: t }) {
+function yp({ collection: e, render: t }) {
return t(e);
}
-function xp(e, t, n) {
- let r = Vl(), i = (0, R.useRef)(r);
+function bp(e, t, n) {
+ let r = Bl(), i = (0, R.useRef)(r);
i.current = r;
let a = (0, R.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, gp.useSyncExternalStore)(e, a);
+ return (0, hp.useSyncExternalStore)(e, a);
}
-var Sp = typeof R.useSyncExternalStore == "function" ? R.useSyncExternalStore : xp;
-function Cp(e) {
- let [t] = (0, R.useState)(() => new If(e?.() || new Mf()));
+var xp = typeof R.useSyncExternalStore == "function" ? R.useSyncExternalStore : bp;
+function Sp(e) {
+ let [t] = (0, R.useState)(() => new Ff(e?.() || new jf()));
return {
- collection: Sp((0, R.useCallback)((e) => t.subscribe(e), [t]), (0, R.useCallback)(() => {
+ collection: xp((0, R.useCallback)((e) => t.subscribe(e), [t]), (0, R.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
}, [t]), (0, R.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var wp = /*#__PURE__*/ (0, R.createContext)(null);
-function Tp(e) {
- return class extends Df {
+var Cp = /*#__PURE__*/ (0, R.createContext)(null);
+function wp(e) {
+ return class extends Ef {
static {
this.type = e;
}
};
}
-function Ep(e, t, n, r, i, a) {
- typeof e == "string" && (e = Tp(e));
+function Tp(e, t, n, r, i, a) {
+ typeof e == "string" && (e = wp(e));
let o = (0, R.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
@@ -17238,62 +17232,62 @@ function Ep(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, R.useContext)(wp);
+ ]), s = (0, R.useContext)(Cp);
if (s) {
let o = s.ownerDocument.nodesByProps.get(t);
- return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ R.createElement(wp.Provider, { value: o }, i) : null;
+ return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ R.createElement(Cp.Provider, { value: o }, i) : null;
}
return /*#__PURE__*/ R.createElement(e.type, { ref: o }, i);
}
-function Dp(e, t) {
+function Ep(e, t) {
let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, R.forwardRef)((r, i) => {
- let a = (0, R.useContext)(sp);
- if (!(0, R.useContext)(_p)) {
+ let a = (0, R.useContext)(op);
+ if (!(0, R.useContext)(gp)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return Ep(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ R.createElement(sp.Provider, { value: a }, /*#__PURE__*/ R.createElement(n, { node: e })));
+ return Tp(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ R.createElement(op.Provider, { value: a }, /*#__PURE__*/ R.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function Op(e, t, n = kp) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, R.forwardRef)((t, i) => Ep(e, t, i, null, n(t), (e) => /*#__PURE__*/ R.createElement(r, { node: e })) ?? /*#__PURE__*/ R.createElement(R.Fragment, null));
+function Dp(e, t, n = Op) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, R.forwardRef)((t, i) => Tp(e, t, i, null, n(t), (e) => /*#__PURE__*/ R.createElement(r, { node: e })) ?? /*#__PURE__*/ R.createElement(R.Fragment, null));
return i.displayName = t.name, i;
}
-function kp(e) {
- return Lf({
+function Op(e) {
+ return If({
...e,
addIdAndValue: !0
});
}
-var Ap = /*#__PURE__*/ (0, R.createContext)(null);
-function jp(e) {
- let t = (0, R.useContext)(Ap), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = kp({
+var kp = /*#__PURE__*/ (0, R.createContext)(null);
+function Ap(e) {
+ let t = (0, R.useContext)(kp), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = Op({
...e,
idScope: r,
dependencies: n
});
- return (0, R.useContext)(vp) && (i = /*#__PURE__*/ R.createElement(Mp, null, i)), t = (0, R.useMemo)(() => ({
+ return (0, R.useContext)(_p) && (i = /*#__PURE__*/ R.createElement(jp, null, i)), t = (0, R.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ R.createElement(Ap.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ R.createElement(kp.Provider, { value: t }, i);
}
-function Mp({ children: e }) {
- let t = (0, R.useContext)(vp), n = (0, R.useMemo)(() => /*#__PURE__*/ R.createElement(vp.Provider, { value: null }, /*#__PURE__*/ R.createElement(_p.Provider, { value: !0 }, e)), [e]);
- return Vl() ? /*#__PURE__*/ R.createElement(wp.Provider, { value: t }, n) : /*#__PURE__*/ (0, be.createPortal)(n, t);
+function jp({ children: e }) {
+ let t = (0, R.useContext)(_p), n = (0, R.useMemo)(() => /*#__PURE__*/ R.createElement(_p.Provider, { value: null }, /*#__PURE__*/ R.createElement(gp.Provider, { value: !0 }, e)), [e]);
+ return Bl() ? /*#__PURE__*/ R.createElement(Cp.Provider, { value: t }, n) : /*#__PURE__*/ (0, be.createPortal)(n, t);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Collection.mjs
-var Np = /*#__PURE__*/ (0, R.createContext)(null), Pp = {
+var Mp = /*#__PURE__*/ (0, R.createContext)(null), Np = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return Fp(e, null, t);
+ return Pp(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return Fp(e, t, n);
+ return Pp(e, t, n);
}
};
-function Fp(e, t, n) {
- return Lf({
+function Pp(e, t, n) {
+ return If({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
@@ -17303,11 +17297,11 @@ function Fp(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, Ip(e, t, n));
+ }), r, Fp(e, t, n));
}
});
}
-function Ip(e, t, n) {
+function Fp(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);
@@ -17326,18 +17320,18 @@ function Ip(e, t, n) {
}
return s;
}
-var Lp = /*#__PURE__*/ (0, R.createContext)(Pp);
-function Rp(e) {
+var Ip = /*#__PURE__*/ (0, R.createContext)(Np);
+function Lp(e) {
return (0, R.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var zp = /* @__PURE__ */ new Set(["id"]), Bp = /* @__PURE__ */ new Set([
+var Rp = /* @__PURE__ */ new Set(["id"]), zp = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), Vp = /* @__PURE__ */ new Set([
+]), Bp = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -17345,71 +17339,71 @@ var zp = /* @__PURE__ */ new Set(["id"]), Bp = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), Hp = /* @__PURE__ */ new Set([
+]), Vp = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate"
-]), Up = /* @__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(".")), Wp = /^(data-.*)$/;
-function Gp(e, t = {}) {
+]), Hp = /* @__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(".")), Up = /^(data-.*)$/;
+function Wp(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) && (zp.has(t) || n && Bp.has(t) || r && Vp.has(t) || i && Hp.has(t) || a && (Up.has(t) || t.endsWith("Capture") && Up.has(t.slice(0, -7))) || o?.has(t) || Wp.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (Rp.has(t) || n && zp.has(t) || r && Bp.has(t) || i && Vp.has(t) || a && (Hp.has(t) || t.endsWith("Capture") && Hp.has(t.slice(0, -7))) || o?.has(t) || Up.test(t)) && (s[t] = e[t]);
return s;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var Kp = "default", qp = "", Jp = /* @__PURE__ */ new WeakMap();
-function Yp(e) {
- if (rd() && ad()) {
- if (Kp === "default") {
- let t = pu(e);
- qp = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- Kp = "disabled";
+var Gp = "default", Kp = "", qp = /* @__PURE__ */ new WeakMap();
+function Jp(e) {
+ if (nd() && id()) {
+ if (Gp === "default") {
+ let t = fu(e);
+ Kp = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ Gp = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- Jp.set(e, e.style[t]), e.style[t] = "none";
+ qp.set(e, e.style[t]), e.style[t] = "none";
}
}
-function Xp(e) {
- if (rd() && ad()) {
- if (Kp !== "disabled") return;
- Kp = "restoring", setTimeout(() => {
- Uf(() => {
- if (Kp === "restoring") {
- let t = pu(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = qp || ""), qp = "", Kp = "default";
+function Yp(e) {
+ if (nd() && id()) {
+ if (Gp !== "disabled") return;
+ Gp = "restoring", setTimeout(() => {
+ Hf(() => {
+ if (Gp === "restoring") {
+ let t = fu(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Kp || ""), Kp = "", Gp = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Jp.has(e)) {
- let t = Jp.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Jp.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && qp.has(e)) {
+ let t = qp.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), qp.delete(e);
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function Zp(e, t) {
- let n = mu(t), r = pu(t);
+function Xp(e, t) {
+ let n = pu(t), r = fu(t);
if (r == null || n == null) return;
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
return o && o instanceof n.HTMLMetaElement && (e === "csp-nonce" && o.nonce && (i ??= o.nonce || void 0), o.content && (i ??= o.content || void 0)), e === "csp-nonce" && (i ??= n.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0), i;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getNonce.mjs
-var Qp = /* @__PURE__ */ new WeakMap();
-function $p(e) {
- let t = pu(e), n = Qp.get(t);
- return n ??= Zp("csp-nonce", t), n !== void 0 && Qp.set(t, n), n;
+var Zp = /* @__PURE__ */ new WeakMap();
+function Qp(e) {
+ let t = fu(e), n = Zp.get(t);
+ return n ??= Xp("csp-nonce", t), n !== void 0 && Zp.set(t, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/context.mjs
-var em = R.createContext({ register: () => {} });
-em.displayName = "PressResponderContext";
+var $p = R.createContext({ register: () => {} });
+$p.displayName = "PressResponderContext";
//#endregion
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function tm() {
+function em() {
let e = (0, R.useRef)(/* @__PURE__ */ new Map()), t = (0, R.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
@@ -17436,15 +17430,15 @@ function tm() {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
-function nm(e) {
- let t = (0, R.useContext)(em);
+function tm(e) {
+ let t = (0, R.useContext)($p);
if (t) {
let { register: n, ref: r, ...i } = t;
e = J(i, e), n();
}
- return op(t, e.ref), e;
+ return ap(t, e.ref), e;
}
-var rm = class {
+var nm = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -17457,9 +17451,9 @@ var rm = class {
get shouldStopPropagation() {
return this.#e;
}
-}, im = Symbol("linkClicked"), am = "react-aria-pressable-style", om = "data-react-aria-pressable";
-function sm(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 } = nm(e), [m, h] = (0, R.useState)(!1), g = (0, R.useRef)({
+}, rm = Symbol("linkClicked"), im = "react-aria-pressable-style", am = "data-react-aria-pressable";
+function om(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 } = tm(e), [m, h] = (0, R.useState)(!1), g = (0, R.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -17469,12 +17463,12 @@ function sm(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = tm(), y = (0, R.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = em(), y = (0, R.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new rm("pressstart", t, e);
+ let n = new nm("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -17488,11 +17482,11 @@ function sm(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new rm("pressend", r, e);
+ let t = new nm("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new rm("press", r, e);
+ let n = new nm("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -17501,19 +17495,19 @@ function sm(e) {
i,
n,
t
- ]), x = Jd(b), S = Jd((0, R.useCallback)((e, t) => {
+ ]), x = qd(b), S = qd((0, R.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new rm("pressup", t, e);
+ let r = new nm("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), C = (0, R.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(um(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Xp(t.target);
+ t.didFirePressStart && t.pointerType != null && b(lm(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Yp(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -17521,7 +17515,7 @@ function sm(e) {
d,
v,
b
- ]), w = Jd(C);
+ ]), w = qd(C);
(0, R.useEffect)(() => {
s && g.current.isPressed && w({
currentTarget: g.current.target,
@@ -17538,39 +17532,39 @@ function sm(e) {
}, [s, o]), D = (0, R.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- qu(n, t), o(Ku(n));
+ Ku(n, t), o(Gu(n));
}
}, [s, o]), O = (0, R.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (lm(t.nativeEvent, t.currentTarget) && Cu(t.currentTarget, Y(t))) {
- fm(Y(t), t.key) && t.preventDefault();
+ if (cm(t.nativeEvent, t.currentTarget) && Su(t.currentTarget, Y(t))) {
+ dm(Y(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;
- _(pu(t.currentTarget), "keyup", Ol((t) => {
- lm(t, i) && !t.repeat && Cu(i, Y(t)) && e.target && S(um(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && ed() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(fu(t.currentTarget), "keyup", Dl((t) => {
+ cm(t, i) && !t.repeat && Su(i, Y(t)) && e.target && S(lm(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && $u() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if (!(t && !Cu(t.currentTarget, Y(t))) && t && t.button === 0 && !e.isTriggeringEvent && !md.isOpening) {
+ if (!(t && !Su(t.currentTarget, Y(t))) && t && t.button === 0 && !e.isTriggeringEvent && !pd.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || ld(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || cd(t.nativeEvent))) {
let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");
E(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(um(t.currentTarget, t), r), a = x(um(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(lm(t.currentTarget, t), r), a = x(lm(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 && lm(t, e.target)) {
- fm(Y(t), t.key) && t.preventDefault();
- let n = Y(t), r = Cu(e.target, n);
- x(um(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && cm(e.target) && Cu(e.target, n) && !t[im] && (t[im] = !0, md(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && cm(t, e.target)) {
+ dm(Y(t), t.key) && t.preventDefault();
+ let n = Y(t), r = Su(e.target, n);
+ x(lm(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && sm(e.target) && Su(e.target, n) && !t[rm] && (t[rm] = !0, pd(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;
@@ -17579,39 +17573,39 @@ function sm(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !Cu(t.currentTarget, Y(t))) return;
- if (ud(t.nativeEvent)) {
+ if (t.button !== 0 || !Su(t.currentTarget, Y(t))) return;
+ if (ld(t.nativeEvent)) {
e.pointerType = "virtual";
return;
}
e.pointerType = t.pointerType;
let i = !0;
if (!e.isPressed) {
- e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Yp(e.target), i = y(t, e.pointerType);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Jp(e.target), i = y(t, e.pointerType);
let a = Y(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(pu(t.currentTarget), "pointerup", n, !1), _(pu(t.currentTarget), "pointercancel", r, !1);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(fu(t.currentTarget), "pointerup", n, !1), _(fu(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (Cu(t.currentTarget, Y(t)) && t.button === 0) {
+ if (Su(t.currentTarget, Y(t)) && t.button === 0) {
if (l) {
- let n = Xu(t.target);
+ let n = Yu(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- !Cu(t.currentTarget, Y(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
+ !Su(t.currentTarget, Y(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(um(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(lm(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(um(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(lm(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (Cu(e.target, Y(t)) && e.pointerType != null) {
+ if (Su(e.target, Y(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (ju(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (Au(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else w(t);
@@ -17621,7 +17615,7 @@ function sm(e) {
w(e);
};
t.onDragStart = (e) => {
- Cu(e.currentTarget, Y(e)) && w(e);
+ Su(e.currentTarget, Y(e)) && w(e);
};
}
return t;
@@ -17638,14 +17632,14 @@ function sm(e) {
]);
return (0, R.useEffect)(() => {
if (!f) return;
- let e = pu(f.current);
- if (!e || !e.head || e.getElementById(am)) return;
+ let e = fu(f.current);
+ if (!e || !e.head || e.getElementById(im)) return;
let t = e.createElement("style");
- t.id = am;
- let n = $p(e);
+ t.id = im;
+ let n = Qp(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${om}] {
+ [${am}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -17653,23 +17647,23 @@ function sm(e) {
}, [f]), (0, R.useEffect)(() => {
let e = g.current;
return () => {
- d || Xp(e.target ?? void 0);
+ d || Yp(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: J(p, O, { [om]: !0 })
+ pressProps: J(p, O, { [am]: !0 })
};
}
-function cm(e) {
+function sm(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function lm(e, t) {
+function cm(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof mu(i).HTMLInputElement && !mm(i, n) || i instanceof mu(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && cm(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof pu(i).HTMLInputElement && !pm(i, n) || i instanceof pu(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && sm(i)) && n !== "Enter");
}
-function um(e, t) {
+function lm(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -17682,13 +17676,13 @@ function um(e, t) {
key: t.key
};
}
-function dm(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !cm(e);
+function um(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !sm(e);
}
-function fm(e, t) {
- return ed() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !mm(e, t) : dm(e);
+function dm(e, t) {
+ return $u() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !pm(e, t) : um(e);
}
-var pm = /* @__PURE__ */ new Set([
+var fm = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -17699,31 +17693,31 @@ var pm = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function mm(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : pm.has(e.type);
+function pm(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : fm.has(e.type);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function hm(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, R.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = tm(), c = (0, R.useCallback)((e) => {
- Cu(e.currentTarget, Y(e)) && a.current.isFocusWithin && !Cu(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function mm(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, R.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = em(), c = (0, R.useCallback)((e) => {
+ Su(e.currentTarget, Y(e)) && a.current.isFocusWithin && !Su(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = Ju(c), u = (0, R.useCallback)((e) => {
- if (!Cu(e.currentTarget, Y(e))) return;
- let t = Y(e), n = pu(t), s = wu(n);
+ ]), l = qu(c), u = (0, R.useCallback)((e) => {
+ if (!Su(e.currentTarget, Y(e))) return;
+ let t = Y(e), n = fu(t), s = Cu(n);
if (!a.current.isFocusWithin && s === t) {
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
let t = e.currentTarget;
o(n, "focus", (e) => {
let r = Y(e);
- if (a.current.isFocusWithin && !Cu(t, r)) {
+ if (a.current.isFocusWithin && !Su(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- qu(e, t);
- let i = Ku(e);
+ Ku(e, t);
+ let i = Gu(e);
c(i);
}
}, { capture: !0 });
@@ -17745,23 +17739,23 @@ function hm(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function gm(e = {}) {
+function hm(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, R.useRef)({
isFocused: !1,
- isFocusVisible: t || Id()
+ isFocusVisible: t || Fd()
}), [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, R.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, R.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = Id(), o(e), l();
+ i.current.isFocused = e, i.current.isFocusVisible = Fd(), o(e), l();
}, [l]);
- Ud((e) => {
+ Hd((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = Gf({
+ let { focusProps: d } = Wf({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = hm({
+ }), { focusWithinProps: f } = mm({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -17773,36 +17767,36 @@ function gm(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var _m = !1, vm = 0;
-function ym() {
- _m = !0, setTimeout(() => {
- _m = !1;
+var gm = !1, _m = 0;
+function vm() {
+ gm = !0, setTimeout(() => {
+ gm = !1;
}, 500);
}
-function bm(e) {
- e.pointerType === "touch" && ym();
+function ym(e) {
+ e.pointerType === "touch" && vm();
}
-function xm() {
- let e = pu(null);
- if (e !== void 0) return vm === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", bm), vm++, () => {
- vm--, !(vm > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", bm);
+function bm() {
+ let e = fu(null);
+ if (e !== void 0) return _m === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", ym), _m++, () => {
+ _m--, !(_m > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", ym);
};
}
-function Sm(e) {
+function xm(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, R.useState)(!1), s = (0, R.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, R.useEffect)(xm, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = tm(), { hoverProps: u, triggerHoverEnd: d } = (0, R.useMemo)(() => {
+ (0, R.useEffect)(bm, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = em(), { hoverProps: u, triggerHoverEnd: d } = (0, R.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !Cu(e.currentTarget, Y(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !Su(e.currentTarget, Y(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(pu(Y(e)), "pointerover", (e) => {
- s.isHovered && s.target && !Cu(s.target, Y(e)) && a(e, e.pointerType);
+ s.target = l, c(fu(Y(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !Su(s.target, Y(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -17817,9 +17811,9 @@ function Sm(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- _m && t.pointerType === "mouse" || e(t, t.pointerType);
+ gm && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && Cu(e.currentTarget, Y(e)) && a(e, e.pointerType);
+ !i && Su(e.currentTarget, Y(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -17842,9 +17836,9 @@ function Sm(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var Cm = /*#__PURE__*/ (0, R.createContext)({}), wm = /*#__PURE__*/ fp(function(e, t) {
- [e, t] = au(e, t, Cm);
- let { elementType: n = "label", ...r } = e, i = uu[n];
+var Sm = /*#__PURE__*/ (0, R.createContext)({}), Cm = /*#__PURE__*/ dp(function(e, t) {
+ [e, t] = iu(e, t, Sm);
+ let { elementType: n = "label", ...r } = e, i = lu[n];
return /*#__PURE__*/ R.createElement(i, {
className: "react-aria-Label",
...r,
@@ -17853,15 +17847,15 @@ var Cm = /*#__PURE__*/ (0, R.createContext)({}), wm = /*#__PURE__*/ fp(function(
});
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function Tm(e) {
+function wm(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = ql(t);
- let o = ql(), s = {};
+ t = Kl(t);
+ let o = Kl(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = Xd({
+ let c = Yd({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -17873,18 +17867,18 @@ function Tm(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function Em(e, t = -Infinity, n = Infinity) {
+function Tm(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ProgressBar.mjs
-var Dm = /*#__PURE__*/ (0, R.createContext)(null), Om = 7e3, km = null;
-function Am(e, t = "assertive", n = Om) {
- km ? km.announce(e, t, n) : (km = new jm(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? km.announce(e, t, n) : setTimeout(() => {
- km?.isAttached() && km?.announce(e, t, n);
+var Em = /*#__PURE__*/ (0, R.createContext)(null), Dm = 7e3, Om = null;
+function km(e, t = "assertive", n = Dm) {
+ Om ? Om.announce(e, t, n) : (Om = new Am(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? Om.announce(e, t, n) : setTimeout(() => {
+ Om?.isAttached() && Om?.announce(e, t, n);
}, 100));
}
-var jm = class {
+var Am = 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,
@@ -17909,7 +17903,7 @@ var jm = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = Om) {
+ announce(e, t = "assertive", n = Dm) {
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(() => {
@@ -17922,7 +17916,7 @@ var jm = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/button/useButton.mjs
-function Mm(e, t) {
+function jm(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,
@@ -17944,7 +17938,7 @@ function Mm(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = sm({
+ let { pressProps: _, isPressed: v } = om({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -17954,9 +17948,9 @@ function Mm(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = lp(e, t);
+ }), { focusableProps: y } = cp(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = J(y, _, Gp(e, { labelable: !0 }));
+ let b = J(y, _, Wp(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: J(g, b, {
@@ -17971,11 +17965,11 @@ function Mm(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Button.mjs
-var Nm = /*#__PURE__*/ (0, R.createContext)({}), Pm = /*#__PURE__*/ fp(function(e, t) {
- [e, t] = au(e, t, Nm);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Mm(e, t);
- i = Im(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = gm(e), { hoverProps: l, isHovered: u } = Sm({
+var Mm = /*#__PURE__*/ (0, R.createContext)({}), Nm = /*#__PURE__*/ dp(function(e, t) {
+ [e, t] = iu(e, t, Mm);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = jm(e, t);
+ i = Fm(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = hm(e), { hoverProps: l, isHovered: u } = xm({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -17985,24 +17979,24 @@ var Nm = /*#__PURE__*/ (0, R.createContext)({}), Pm = /*#__PURE__*/ fp(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = ru({
+ }, f = nu({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = ql(i.id), m = ql(), h = i["aria-labelledby"];
+ }), p = Kl(i.id), m = Kl(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
let g = (0, R.useRef)(r);
(0, R.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && Am(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && km(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = Gp(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ R.createElement(uu.button, {
+ let _ = Wp(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ R.createElement(lu.button, {
...J(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -18016,28 +18010,28 @@ var Nm = /*#__PURE__*/ (0, R.createContext)({}), Pm = /*#__PURE__*/ fp(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ R.createElement(Dm.Provider, { value: { id: m } }, f.children));
-}), Fm = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function Im(e, t) {
+ }, /*#__PURE__*/ R.createElement(Em.Provider, { value: { id: m } }, f.children));
+}), Pm = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function Fm(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !Fm.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !Pm.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 Lm = /*#__PURE__*/ (0, R.createContext)({}), Rm = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = au(e, t, Lm);
- let { children: n, level: r = 3, className: i, ...a } = e, o = uu[`h${r}`];
+var Im = /*#__PURE__*/ (0, R.createContext)({}), Lm = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = iu(e, t, Im);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = lu[`h${r}`];
return /*#__PURE__*/ R.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), zm = /*#__PURE__*/ (0, R.createContext)({}), Bm = /*#__PURE__*/ fp(function(e, t) {
- [e, t] = au(e, t, zm);
- let { elementType: n = "span", ...r } = e, i = uu[n];
+}), Rm = /*#__PURE__*/ (0, R.createContext)({}), zm = /*#__PURE__*/ dp(function(e, t) {
+ [e, t] = iu(e, t, Rm);
+ let { elementType: n = "span", ...r } = e, i = lu[n];
return /*#__PURE__*/ R.createElement(i, {
className: "react-aria-Text",
...r,
@@ -18046,8 +18040,8 @@ var Lm = /*#__PURE__*/ (0, R.createContext)({}), Rm = /*#__PURE__*/ (0, R.forwar
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function Vm(e, t) {
- let n = (0, R.useRef)(!0), r = (0, R.useRef)(null), i = Jd(e);
+function Bm(e, t) {
+ let n = (0, R.useRef)(!0), r = (0, R.useRef)(null), i = qd(e);
(0, R.useEffect)(() => (n.current = !0, () => {
n.current = !1;
}), []), (0, R.useEffect)(() => {
@@ -18057,33 +18051,33 @@ function Vm(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function Hm(e, t) {
+function Vm(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 Um(e, t) {
+function Hm(e, t) {
let n = e;
- for (Hm(n, t) && (n = n.parentElement); n && !Hm(n, t);) n = n.parentElement;
+ for (Vm(n, t) && (n = n.parentElement); n && !Vm(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function Wm(e, t) {
+function Um(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (Hm(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (Vm(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function Gm(e, t, n = {}) {
- e !== t && Km(e, t, t.getBoundingClientRect(), n);
+function Wm(e, t, n = {}) {
+ e !== t && Gm(e, t, t.getBoundingClientRect(), n);
}
-function Km(e, t, n, r = {}) {
+function Gm(e, t, n, r = {}) {
let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, N = e === d ? 0 : D + O, P = e === d ? 0 : T + E, ee = e === d ? 0 : e.offsetWidth - e.clientWidth - N, F = e === d ? 0 : e.offsetHeight - e.clientHeight - P, I = p + (f ? 0 : T) + x, te = m - (f ? 0 : E) - S - F, ne = h + (f ? 0 : D) + C, re = g - (f ? 0 : O) - w;
- rd() && ad() || u.direction === "ltr" ? re -= ee : u.direction === "rtl" && (ne += ee);
+ nd() && id() || u.direction === "ltr" ? re -= ee : u.direction === "rtl" && (ne += ee);
let ie = k < I || A > te, ae = j < ne || M > re;
if (ie && i === "start") o += k - I;
else if (ie && i === "center") o += (k + A) / 2 - (I + te) / 2;
@@ -18104,7 +18098,7 @@ function Km(e, t, n, r = {}) {
top: o
});
}
-function qm(e, t = {}) {
+function Km(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -18117,46 +18111,46 @@ function qm(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = Wm(e, !0);
- for (let t of i) Gm(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = Um(e, !0);
+ for (let t of i) Wm(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? Wm(n, !0) : [];
- for (let e of i) Gm(e, n, {
+ i = n ? Um(n, !0) : [];
+ for (let e of i) Wm(e, n, {
block: "center",
inline: "center"
});
- for (let t of Wm(e, !0)) Gm(t, e);
+ for (let t of Um(e, !0)) Wm(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var Jm = 0, Ym = /* @__PURE__ */ new Map();
-function Xm(e) {
+var qm = 0, Jm = /* @__PURE__ */ new Map();
+function Ym(e) {
let [t, n] = (0, R.useState)();
- return kl(() => {
+ return Ol(() => {
if (!e) return;
- let t = Ym.get(e);
+ let t = Jm.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${Jm++}`;
+ let r = `react-aria-description-${qm++}`;
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
- }, Ym.set(e, t);
+ }, Jm.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), Ym.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), Jm.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var Zm = {
+var Xm = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -18168,26 +18162,26 @@ var Zm = {
width: "1px",
whiteSpace: "nowrap"
};
-function Qm(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, R.useState)(!1), { focusWithinProps: a } = hm({
+function Zm(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, R.useState)(!1), { focusWithinProps: a } = mm({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, R.useMemo)(() => r ? t : t ? {
- ...Zm,
+ ...Xm,
...t
- } : Zm, [r]);
+ } : Xm, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function $m(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = Qm(e);
+function Qm(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = Zm(e);
return /*#__PURE__*/ R.createElement(n, J(a, o), t);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/FieldError.mjs
-var eh = /*#__PURE__*/ (0, R.createContext)(null), th = {
+var $m = /*#__PURE__*/ (0, R.createContext)(null), eh = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -18199,18 +18193,18 @@ var eh = /*#__PURE__*/ (0, R.createContext)(null), th = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, nh = {
- ...th,
+}, th = {
+ ...eh,
customError: !0,
valid: !1
-}, rh = {
+}, nh = {
isInvalid: !1,
- validationDetails: th,
+ validationDetails: eh,
validationErrors: []
-}, ih = (0, R.createContext)({}), ah = "__reactAriaFormValidationState";
-function oh(e) {
+}, rh = (0, R.createContext)({}), ih = "__reactAriaFormValidationState";
+function ah(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[ah];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[ih];
return {
realtimeValidation: t,
displayValidation: n,
@@ -18219,72 +18213,72 @@ function oh(e) {
commitValidation: a
};
}
- return sh(e);
+ return oh(e);
}
-function sh(e) {
+function oh(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: nh
- }, l = (0, R.useMemo)(() => !o || i == null ? null : uh(lh(o, i)), [o, i]);
+ validationDetails: th
+ }, l = (0, R.useMemo)(() => !o || i == null ? null : lh(ch(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, R.useContext)(ih), d = (0, R.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => ch(u[e])) : ch(u[r]) : [], [u, r]), [f, p] = (0, R.useState)(u), [m, h] = (0, R.useState)(!1);
+ let u = (0, R.useContext)(rh), d = (0, R.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => sh(u[e])) : sh(u[r]) : [], [u, r]), [f, p] = (0, R.useState)(u), [m, h] = (0, R.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, R.useMemo)(() => uh(m ? [] : d), [m, d]), _ = (0, R.useRef)(rh), [v, y] = (0, R.useState)(rh), b = (0, R.useRef)(rh), x = () => {
+ let g = (0, R.useMemo)(() => lh(m ? [] : d), [m, d]), _ = (0, R.useRef)(nh), [v, y] = (0, R.useState)(nh), b = (0, R.useRef)(nh), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- dh(e, b.current) || (b.current = e, y(e));
+ uh(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, R.useState)(!1);
return (0, R.useEffect)(x), {
- realtimeValidation: c || g || l || a || rh,
+ realtimeValidation: c || g || l || a || nh,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !dh(v, e) ? y(e) : _.current = e;
+ s === "aria" && !uh(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = rh;
- dh(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = nh;
+ uh(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function ch(e) {
+function sh(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function lh(e, t) {
+function ch(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return ch(n);
+ if (n && typeof n != "boolean") return sh(n);
}
return [];
}
-function uh(e) {
+function lh(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: nh
+ validationDetails: th
} : null;
}
-function dh(e, t) {
+function uh(e, t) {
return e === t || !!e && !!t && e.isInvalid === t.isInvalid && e.validationErrors.length === t.validationErrors.length && e.validationErrors.every((e, n) => e === t.validationErrors[n]) && Object.entries(e.validationDetails).every(([e, n]) => t.validationDetails[e] === n);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Form.mjs
-var fh = /*#__PURE__*/ (0, R.createContext)(null), ph = /* @__PURE__ */ new WeakMap();
+var dh = /*#__PURE__*/ (0, R.createContext)(null), fh = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function mh(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = Tm(e), s = Yl([
+function ph(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = wm(e), s = Jl([
!!t,
!!n,
r,
i
- ]), c = Yl([
+ ]), c = Jl([
!!t,
!!n,
r,
@@ -18303,8 +18297,8 @@ function mh(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function hh(e, t, n) {
- let r = Jd((e) => {
+function mh(e, t, n) {
+ let r = qd((e) => {
n && !e.defaultPrevented && n(t);
});
(0, R.useEffect)(() => {
@@ -18316,21 +18310,21 @@ function hh(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function gh(e, t, n) {
+function hh(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- kl(() => {
+ Ol(() => {
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(vh(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(_h(n.current));
}
});
- let a = (0, R.useRef)(!1), o = Jd(() => {
+ let a = (0, R.useRef)(!1), o = qd(() => {
a.current || t.resetValidation();
- }), s = Jd((e) => {
+ }), s = qd((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && yh(r) === n.current && (i ? i() : n.current?.focus(), Rd("keyboard")), e.preventDefault();
- }), c = Jd(() => {
+ !e.defaultPrevented && n && r && vh(r) === n.current && (i ? i() : n.current?.focus(), Ld("keyboard")), e.preventDefault();
+ }), c = qd(() => {
t.commitValidation();
});
(0, R.useEffect)(() => {
@@ -18344,7 +18338,7 @@ function gh(e, t, n) {
};
}, [n, r]);
}
-function _h(e) {
+function gh(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -18360,14 +18354,14 @@ function _h(e) {
valid: t.valid
};
}
-function vh(e) {
+function _h(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: _h(e),
+ validationDetails: gh(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function yh(e) {
+function vh(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -18376,16 +18370,16 @@ function yh(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSlot.mjs
-function bh(e = !0) {
+function yh(e = !0) {
let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(!1), i = (0, R.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return kl(() => {
+ return Ol(() => {
r.current || n(!1);
}, []), [i, t];
}
-function xh(e = !0) {
- let t = ql(), [n, r] = bh(e);
+function bh(e = !0) {
+ let t = Kl(), [n, r] = yh(e);
return {
id: r ? t : void 0,
ref: n
@@ -18393,15 +18387,15 @@ function xh(e = !0) {
}
//#endregion
//#region node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function Sh(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 = oh({
+function xh(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 = ah({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- gh(e, b, n);
+ hh(e, b, n);
let w = (e) => {
e.stopPropagation(), t.setSelected(Y(e).checked);
- }, { pressProps: T, isPressed: E } = sm({
+ }, { pressProps: T, isPressed: E } = om({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -18409,7 +18403,7 @@ function Sh(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [D, O] = (0, R.useState)(!1), { pressProps: k } = sm({
+ }), [D, O] = (0, R.useState)(!1), { pressProps: k } = om({
onPressStart(e) {
if (e.pointerType === "keyboard" || e.pointerType === "virtual") {
e.continuePropagation();
@@ -18438,13 +18432,13 @@ function Sh(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [ah]: i } = e, { commitValidation: a } = i || b;
+ let { [ih]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: A } = lp(e, n), j = J(T, A), M = Gp(e, { labelable: !0 });
- hh(n, t.defaultSelected, t.setSelected);
- let N = xh(), P = xh();
+ }), { focusableProps: A } = cp(e, n), j = J(T, A), M = Wp(e, { labelable: !0 });
+ mh(n, t.defaultSelected, t.setSelected);
+ let N = bh(), P = bh();
return {
labelProps: J(k, { onClick: (e) => e.preventDefault() }),
inputProps: J(M, {
@@ -18481,8 +18475,8 @@ function Sh(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function Ch(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 } = Sh(e, t, n), { isIndeterminate: m } = e;
+function Sh(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 } = xh(e, t, n), { isIndeterminate: m } = e;
return (0, R.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
@@ -18501,8 +18495,8 @@ function Ch(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function wh(e = {}) {
- let { isReadOnly: t } = e, [n, r] = wf(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, R.useState)(n);
+function Ch(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = Cf(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, R.useState)(n);
function a(e) {
t || r(e);
}
@@ -18518,26 +18512,26 @@ function wh(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function Th(e, t, n) {
- let r = wh({
+function wh(e, t, n) {
+ let r = Ch({
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 } = ph.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = fh.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = oh({
+ let { realtimeValidation: l } = ah({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, R.useRef)(rh), d = () => {
+ }), u = (0, R.useRef)(nh), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, R.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = Ch({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = Sh({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -18545,7 +18539,7 @@ function Th(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [ah]: {
+ [ih]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -18569,35 +18563,35 @@ function Th(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Checkbox.mjs
-var Eh = /*#__PURE__*/ (0, R.createContext)(null), Dh = /*#__PURE__*/ (0, R.createContext)(null), Oh = /*#__PURE__*/ (0, R.createContext)(null), kh = /*#__PURE__*/ (0, R.createContext)(null);
-function Ah(e, t) {
- let { validationBehavior: n } = iu(fh) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useContext)(Oh), a = eu((0, R.useMemo)(() => Xl(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...su(e),
+var Th = /*#__PURE__*/ (0, R.createContext)(null), Eh = /*#__PURE__*/ (0, R.createContext)(null), Dh = /*#__PURE__*/ (0, R.createContext)(null), Oh = /*#__PURE__*/ (0, R.createContext)(null);
+function kh(e, t) {
+ let { validationBehavior: n } = ru(dh) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useContext)(Dh), a = $l((0, R.useMemo)(() => Yl(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...ou(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? Th(o, i, a) : Ch(o, wh(e), a), a];
+ return [i ? wh(o, i, a) : Sh(o, Ch(e), a), a];
}
-var jh = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+var Ah = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = au(r, t, Eh);
- let [i, a] = Ah(e, n);
- return /*#__PURE__*/ R.createElement(kh.Provider, { value: {
+ [e, t] = iu(r, t, Th);
+ let [i, a] = kh(e, n);
+ return /*#__PURE__*/ R.createElement(Oh.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ R.createElement(Mh, {
+ } }, /*#__PURE__*/ R.createElement(jh, {
...e,
ref: t
}));
-}), Mh = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, R.useContext)(kh), { isFocused: p, isFocusVisible: m, focusProps: h } = gm(), g = a || o, { hoverProps: _, isHovered: v } = Sm({
+}), jh = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, R.useContext)(Oh), { isFocused: p, isFocusVisible: m, focusProps: h } = hm(), g = a || o, { hoverProps: _, isHovered: v } = xm({
...e,
isDisabled: g
- }), y = ru({
+ }), y = nu({
...e,
defaultClassName: u,
values: {
@@ -18612,8 +18606,8 @@ var jh = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = Gp(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(uu.label, {
+ }), b = Wp(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(lu.label, {
...J(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -18627,20 +18621,20 @@ var jh = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ R.createElement($m, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
+ }, /*#__PURE__*/ R.createElement(Qm, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
...J(r, h),
ref: l
})), y.children);
-}), Nh = /*#__PURE__*/ (0, R.createContext)({}), Ph = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = au(e, t, Nh);
+}), Mh = /*#__PURE__*/ (0, R.createContext)({}), Nh = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = iu(e, t, Mh);
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 } = Sm({
+ let { hoverProps: l, isHovered: u } = xm({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = gm({ within: !0 }), m = ru({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = hm({ within: !0 }), m = nu({
...e,
values: {
isHovered: u,
@@ -18651,7 +18645,7 @@ var jh = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ R.createElement(uu.div, {
+ return /*#__PURE__*/ R.createElement(lu.div, {
...J(c, p, l),
...m,
ref: t,
@@ -18664,18 +18658,18 @@ var jh = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), Fh = /*#__PURE__*/ (0, R.createContext)({}), Ih = (e) => {
+}), Ph = /*#__PURE__*/ (0, R.createContext)({}), Fh = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Lh = /*#__PURE__*/ fp(function(e, t) {
- [e, t] = au(e, t, Fh);
- let { hoverProps: n, isHovered: r } = Sm({
+}, Ih = /*#__PURE__*/ dp(function(e, t) {
+ [e, t] = iu(e, t, Ph);
+ let { hoverProps: n, isHovered: r } = xm({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = gm({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = hm({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = ru({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = nu({
...e,
values: {
isHovered: r,
@@ -18686,8 +18680,8 @@ var jh = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ R.createElement(uu.input, {
- ...J(Ih(e), o, n),
+ return /*#__PURE__*/ R.createElement(lu.input, {
+ ...J(Fh(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -18699,19 +18693,19 @@ var jh = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
});
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function Rh(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = wf(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = lp(e, t), d = oh({
+function Lh(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = Cf(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = cp(e, t), d = ah({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = mh({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = ph({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = Gp(e, { labelable: !0 }), b = {
+ }), y = Wp(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, R.useState)(c);
- return hh(t, e.defaultValue ?? x, l), gh(e, d, t), {
+ return mh(t, e.defaultValue ?? x, l), hh(e, d, t), {
labelProps: h,
inputProps: J(y, n === "input" ? b : void 0, {
disabled: r,
@@ -18758,8 +18752,8 @@ function Rh(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ar-AE.mjs
-var zh = {};
-zh = {
+var Rh = {};
+Rh = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -18767,8 +18761,8 @@ zh = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var Bh = {};
-Bh = {
+var zh = {};
+zh = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -18776,8 +18770,8 @@ Bh = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var Vh = {};
-Vh = {
+var Bh = {};
+Bh = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -18785,8 +18779,8 @@ Vh = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var Hh = {};
-Hh = {
+var Vh = {};
+Vh = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -18794,8 +18788,8 @@ Hh = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var Uh = {};
-Uh = {
+var Hh = {};
+Hh = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -18803,8 +18797,8 @@ Uh = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var Wh = {};
-Wh = {
+var Uh = {};
+Uh = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -18812,8 +18806,8 @@ Wh = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var Gh = {};
-Gh = {
+var Wh = {};
+Wh = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -18821,8 +18815,8 @@ Gh = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var Kh = {};
-Kh = {
+var Gh = {};
+Gh = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -18830,8 +18824,8 @@ Kh = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var qh = {};
-qh = {
+var Kh = {};
+Kh = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -18839,8 +18833,8 @@ qh = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var Jh = {};
-Jh = {
+var qh = {};
+qh = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -18848,8 +18842,8 @@ Jh = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var Yh = {};
-Yh = {
+var Jh = {};
+Jh = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -18857,8 +18851,8 @@ Yh = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var Xh = {};
-Xh = {
+var Yh = {};
+Yh = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -18866,8 +18860,8 @@ Xh = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var Zh = {};
-Zh = {
+var Xh = {};
+Xh = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -18875,8 +18869,8 @@ Zh = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var Qh = {};
-Qh = {
+var Zh = {};
+Zh = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -18884,8 +18878,8 @@ Qh = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var $h = {};
-$h = {
+var Qh = {};
+Qh = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -18893,8 +18887,8 @@ $h = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var eg = {};
-eg = {
+var $h = {};
+$h = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -18902,8 +18896,8 @@ eg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var tg = {};
-tg = {
+var eg = {};
+eg = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -18911,8 +18905,8 @@ tg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var ng = {};
-ng = {
+var tg = {};
+tg = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -18920,8 +18914,8 @@ ng = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var rg = {};
-rg = {
+var ng = {};
+ng = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -18929,8 +18923,8 @@ rg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var ig = {};
-ig = {
+var rg = {};
+rg = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -18938,8 +18932,8 @@ ig = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var ag = {};
-ag = {
+var ig = {};
+ig = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -18947,8 +18941,8 @@ ag = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var og = {};
-og = {
+var ag = {};
+ag = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -18956,8 +18950,8 @@ og = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var sg = {};
-sg = {
+var og = {};
+og = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -18965,8 +18959,8 @@ sg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var cg = {};
-cg = {
+var sg = {};
+sg = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -18974,8 +18968,8 @@ cg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var lg = {};
-lg = {
+var cg = {};
+cg = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -18983,8 +18977,8 @@ lg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var ug = {};
-ug = {
+var lg = {};
+lg = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -18992,8 +18986,8 @@ ug = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var dg = {};
-dg = {
+var ug = {};
+ug = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -19001,8 +18995,8 @@ dg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var fg = {};
-fg = {
+var dg = {};
+dg = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -19010,8 +19004,8 @@ fg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var pg = {};
-pg = {
+var fg = {};
+fg = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -19019,8 +19013,8 @@ pg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var mg = {};
-mg = {
+var pg = {};
+pg = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -19028,8 +19022,8 @@ mg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var hg = {};
-hg = {
+var mg = {};
+mg = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -19037,8 +19031,8 @@ hg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var gg = {};
-gg = {
+var hg = {};
+hg = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -19046,8 +19040,8 @@ gg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var _g = {};
-_g = {
+var gg = {};
+gg = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -19055,8 +19049,8 @@ _g = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var vg = {};
-vg = {
+var _g = {};
+_g = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -19064,52 +19058,52 @@ vg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var yg = {};
-yg = {
- "ar-AE": zh,
- "bg-BG": Bh,
- "cs-CZ": Vh,
- "da-DK": Hh,
- "de-DE": Uh,
- "el-GR": Wh,
- "en-US": Gh,
- "es-ES": Kh,
- "et-EE": qh,
- "fi-FI": Jh,
- "fr-FR": Yh,
- "he-IL": Xh,
- "hr-HR": Zh,
- "hu-HU": Qh,
- "it-IT": $h,
- "ja-JP": eg,
- "ko-KR": tg,
- "lt-LT": ng,
- "lv-LV": rg,
- "nb-NO": ig,
- "nl-NL": ag,
- "pl-PL": og,
- "pt-BR": sg,
- "pt-PT": cg,
- "ro-RO": lg,
- "ru-RU": ug,
- "sk-SK": dg,
- "sl-SI": fg,
- "sr-SP": pg,
- "sv-SE": mg,
- "tr-TR": hg,
- "uk-UA": gg,
- "zh-CN": _g,
- "zh-TW": vg
+var vg = {};
+vg = {
+ "ar-AE": Rh,
+ "bg-BG": zh,
+ "cs-CZ": Bh,
+ "da-DK": Vh,
+ "de-DE": Hh,
+ "el-GR": Uh,
+ "en-US": Wh,
+ "es-ES": Gh,
+ "et-EE": Kh,
+ "fi-FI": qh,
+ "fr-FR": Jh,
+ "he-IL": Yh,
+ "hr-HR": Xh,
+ "hu-HU": Zh,
+ "it-IT": Qh,
+ "ja-JP": $h,
+ "ko-KR": eg,
+ "lt-LT": tg,
+ "lv-LV": ng,
+ "nb-NO": rg,
+ "nl-NL": ig,
+ "pl-PL": ag,
+ "pt-BR": og,
+ "pt-PT": sg,
+ "ro-RO": cg,
+ "ru-RU": lg,
+ "sk-SK": ug,
+ "sl-SI": dg,
+ "sr-SP": fg,
+ "sv-SE": pg,
+ "tr-TR": mg,
+ "uk-UA": hg,
+ "zh-CN": gg,
+ "zh-TW": _g
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var bg = /*#__PURE__*/ (0, R.createContext)({}), xg = /*#__PURE__*/ (0, R.createContext)(null), Sg = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { render: n } = (0, R.useContext)(xg);
+var yg = /*#__PURE__*/ (0, R.createContext)({}), bg = /*#__PURE__*/ (0, R.createContext)(null), xg = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { render: n } = (0, R.useContext)(bg);
return /*#__PURE__*/ R.createElement(R.Fragment, null, n(e, t));
});
-function Cg(e, t) {
+function Sg(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, R.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ R.createElement(Sg, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ R.createElement(xg, { target: e });
}, [
t?.target,
r,
@@ -19117,7 +19111,7 @@ function Cg(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function wg(e, t, n) {
+function Cg(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;
@@ -19140,18 +19134,18 @@ function wg(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var Tg = /*#__PURE__*/ (0, R.createContext)({}), Eg = /*#__PURE__*/ (0, R.createContext)(null);
-function Dg(e) {
+var wg = /*#__PURE__*/ (0, R.createContext)({}), Tg = /*#__PURE__*/ (0, R.createContext)(null);
+function Eg(e) {
let t = (0, R.useRef)({});
- return /*#__PURE__*/ R.createElement(Eg.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ R.createElement(Tg.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var Og = /*#__PURE__*/ (0, R.createContext)({ isSelected: !1 });
+var Dg = /*#__PURE__*/ (0, R.createContext)({ isSelected: !1 });
//#endregion
//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function kg(e) {
- let t = Gp(e, { labelable: !0 }), n;
+function Og(e) {
+ let t = Wp(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -19160,7 +19154,7 @@ function kg(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Separator.mjs
-var Ag = /*#__PURE__*/ (0, R.createContext)({}), jg = /*#__PURE__*/ Dp(class extends Df {
+var kg = /*#__PURE__*/ (0, R.createContext)({}), Ag = /*#__PURE__*/ Ep(class extends Ef {
static {
this.type = "separator";
}
@@ -19173,14 +19167,14 @@ var Ag = /*#__PURE__*/ (0, R.createContext)({}), jg = /*#__PURE__*/ Dp(class ext
return null;
}
}, function(e, t) {
- [e, t] = au(e, t, Ag);
+ [e, t] = iu(e, t, kg);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = uu[c], { separatorProps: u } = kg({
+ let l = lu[c], { separatorProps: u } = Og({
...s,
elementType: n,
orientation: r
- }), d = Gp(e, { global: !0 });
+ }), d = Wp(e, { global: !0 });
return /*#__PURE__*/ R.createElement(l, {
render: e.render,
...J(d, u),
@@ -19189,18 +19183,18 @@ var Ag = /*#__PURE__*/ (0, R.createContext)({}), jg = /*#__PURE__*/ Dp(class ext
ref: t,
slot: o || void 0
});
-}), Mg = /* @__PURE__ */ new WeakMap();
-function Ng(e) {
+}), jg = /* @__PURE__ */ new WeakMap();
+function Mg(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Pg(e, t) {
- let n = Mg.get(e);
+function Ng(e, t) {
+ let n = jg.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${Ng(t)}`;
+ return `${n.id}-option-${Mg(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var Fg = class {
+var Pg = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -19225,7 +19219,7 @@ var Fg = class {
return this._currentNode;
}
set currentNode(e) {
- if (!Cu(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!Su(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
let t = [], n = e, r = e;
for (this._currentNode = e; n && n !== this.root;) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
let e = n, i = this._doc.createTreeWalker(e, this.whatToShow, { acceptNode: this._acceptNode });
@@ -19239,7 +19233,7 @@ var Fg = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return Cu(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return Su(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -19303,45 +19297,45 @@ var Fg = class {
return null;
}
};
-function Ig(e, t, n, r) {
- return Su() ? new Fg(e, t, n, r) : e.createTreeWalker(t, n, r);
+function Fg(e, t, n, r) {
+ return xu() ? new Pg(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var Lg = /*#__PURE__*/ R.createContext(null), Rg = "react-aria-focus-scope-restore", zg = null;
-function Bg(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)([]), { parentNode: c } = (0, R.useContext)(Lg) || {}, l = (0, R.useMemo)(() => new i_({ scopeRef: s }), [s]);
- kl(() => {
- let e = c || a_.root;
- if (a_.getTreeNode(e.scopeRef) && zg && !Zg(zg, e.scopeRef)) {
- let t = a_.getTreeNode(zg);
+var Ig = /*#__PURE__*/ R.createContext(null), Lg = "react-aria-focus-scope-restore", Rg = null;
+function zg(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)([]), { parentNode: c } = (0, R.useContext)(Ig) || {}, l = (0, R.useMemo)(() => new r_({ scopeRef: s }), [s]);
+ Ol(() => {
+ let e = c || i_.root;
+ if (i_.getTreeNode(e.scopeRef) && Rg && !Xg(Rg, e.scopeRef)) {
+ let t = i_.getTreeNode(Rg);
t && (e = t);
}
- e.addChild(l), a_.addNode(l);
- }, [l, c]), kl(() => {
- let e = a_.getTreeNode(s);
+ e.addChild(l), i_.addNode(l);
+ }, [l, c]), Ol(() => {
+ let e = i_.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), kl(() => {
+ }, [n]), Ol(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(Rg, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(Lg, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(Rg, n);
+ for (let e of t) e.removeEventListener(Lg, n);
};
- }, [t]), tee(s, r, n), Kg(s, n), nee(s, r, n), eee(s, i), (0, R.useEffect)(() => {
- let e = wu(pu(s.current ? s.current[0] : void 0)), t = null;
- if (Jg(e, s.current)) {
- for (let n of a_.traverse()) n.scopeRef && Jg(e, n.scopeRef.current) && (t = n);
- t === a_.getTreeNode(s) && (zg = t.scopeRef);
- }
- }, [s]), kl(() => () => {
- let e = a_.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === zg || Zg(s, zg)) && (!e || a_.getTreeNode(e)) && (zg = e), a_.removeTreeNode(s);
+ }, [t]), tee(s, r, n), Gg(s, n), nee(s, r, n), eee(s, i), (0, R.useEffect)(() => {
+ let e = Cu(fu(s.current ? s.current[0] : void 0)), t = null;
+ if (qg(e, s.current)) {
+ for (let n of i_.traverse()) n.scopeRef && qg(e, n.scopeRef.current) && (t = n);
+ t === i_.getTreeNode(s) && (Rg = t.scopeRef);
+ }
+ }, [s]), Ol(() => () => {
+ let e = i_.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === Rg || Xg(s, Rg)) && (!e || i_.getTreeNode(e)) && (Rg = e), i_.removeTreeNode(s);
}, [s]);
- let u = (0, R.useMemo)(() => Vg(s), []), d = (0, R.useMemo)(() => ({
+ let u = (0, R.useMemo)(() => Bg(s), []), d = (0, R.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ R.createElement(Lg.Provider, { value: d }, /*#__PURE__*/ R.createElement("span", {
+ return /*#__PURE__*/ R.createElement(Ig.Provider, { value: d }, /*#__PURE__*/ R.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -19351,154 +19345,154 @@ function Bg(e) {
ref: o
}));
}
-function Vg(e) {
+function Bg(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || wu(pu(n[0] ?? void 0)), c = n[0].previousElementSibling, l = r_(Hg(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Cu(fu(n[0] ?? void 0)), c = n[0].previousElementSibling, l = n_(Vg(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Jg(s, n) ? s : c;
+ l.currentNode = qg(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && Qg(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && Zg(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || wu(pu(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = r_(Hg(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Cu(fu(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = n_(Vg(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Jg(s, n) ? s : c;
+ l.currentNode = qg(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && Qg(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && Zg(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = r_(Hg(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = n_(Vg(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && Qg(o, !0), o;
+ return o && Zg(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = r_(Hg(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = n_(Vg(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && Qg(o, !0), o;
+ return o && Zg(o, !0), o;
}
};
}
-function Hg(e) {
+function Vg(e) {
return e[0].parentElement;
}
-function Ug(e) {
- let t = a_.getTreeNode(zg);
+function Hg(e) {
+ let t = i_.getTreeNode(Rg);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function Wg(e) {
- if (!e.form) return Array.from(pu(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = mu(e);
+function Ug(e) {
+ if (!e.form) return Array.from(fu(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = pu(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function Gg(e) {
+function Wg(e) {
if (e.checked) return !0;
- let t = Wg(e);
+ let t = Ug(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function Kg(e, t) {
+function Gg(e, t) {
let n = (0, R.useRef)(void 0), r = (0, R.useRef)(void 0);
- kl(() => {
+ Ol(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = pu(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Ug(e) || t.isComposing) return;
- let n = wu(a), r = e.current;
- if (!r || !Jg(n, r)) return;
- let i = r_(Hg(r), { tabbable: !0 }, r);
+ let a = fu(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Hg(e) || t.isComposing) return;
+ let n = Cu(a), r = e.current;
+ if (!r || !qg(n, r)) return;
+ let i = n_(Vg(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 && (Qg(o, !0), o instanceof mu(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 && (Zg(o, !0), o instanceof pu(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!zg || Zg(zg, e)) && Jg(Y(t), e.current) ? (zg = e, n.current = Y(t)) : Ug(e) && !Yg(Y(t), e) ? n.current ? Qg(n.current) : zg && zg.current && e_(zg.current) : Ug(e) && (n.current = Y(t));
+ (!Rg || Xg(Rg, e)) && qg(Y(t), e.current) ? (Rg = e, n.current = Y(t)) : Hg(e) && !Jg(Y(t), e) ? n.current ? Zg(n.current) : Rg && Rg.current && $g(Rg.current) : Hg(e) && (n.current = Y(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = Ld(), i = (r === "virtual" || r === null) && sd() && od(), o = wu(a);
- if (!i && o && Ug(e) && !Yg(o, e)) {
- zg = e;
+ let r = Id(), i = (r === "virtual" || r === null) && od() && ad(), o = Cu(a);
+ if (!i && o && Hg(e) && !Jg(o, e)) {
+ Rg = e;
let r = Y(t);
- r && r.isConnected ? (n.current = r, Qg(n.current)) : zg.current && e_(zg.current);
+ r && r.isConnected ? (n.current = r, Zg(n.current)) : Rg.current && $g(Rg.current);
}
});
};
return a.addEventListener("keydown", o, !1), a.addEventListener("focusin", s, !1), i?.forEach((e) => e.addEventListener("focusin", s, !1)), i?.forEach((e) => e.addEventListener("focusout", c, !1)), () => {
a.removeEventListener("keydown", o, !1), a.removeEventListener("focusin", s, !1), i?.forEach((e) => e.removeEventListener("focusin", s, !1)), i?.forEach((e) => e.removeEventListener("focusout", c, !1));
};
- }, [e, t]), kl(() => () => {
+ }, [e, t]), Ol(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function qg(e) {
- return Yg(e);
+function Kg(e) {
+ return Jg(e);
}
-function Jg(e, t) {
- return !e || !t ? !1 : t.some((t) => Cu(t, e));
+function qg(e, t) {
+ return !e || !t ? !1 : t.some((t) => Su(t, e));
}
-function Yg(e, t = null) {
+function Jg(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of a_.traverse(a_.getTreeNode(t))) if (n && Jg(e, n.current)) return !0;
+ for (let { scopeRef: n } of i_.traverse(i_.getTreeNode(t))) if (n && qg(e, n.current)) return !0;
return !1;
}
-function Xg(e) {
- return Yg(e, zg);
+function Yg(e) {
+ return Jg(e, Rg);
}
-function Zg(e, t) {
- let n = a_.getTreeNode(t)?.parent;
+function Xg(e, t) {
+ let n = i_.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function Qg(e, t = !1) {
+function Zg(e, t = !1) {
if (e != null && !t) try {
- Wf(e);
+ Uf(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function $g(e, t = !0) {
- let n = e[0].previousElementSibling, r = Hg(e), i = r_(r, { tabbable: t }, e);
+function Qg(e, t = !0) {
+ let n = e[0].previousElementSibling, r = Vg(e), i = n_(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = Hg(e), i = r_(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = Vg(e), i = n_(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function e_(e, t = !0) {
- Qg($g(e, t));
+function $g(e, t = !0) {
+ Zg(Qg(e, t));
}
function eee(e, t) {
let n = R.useRef(t);
(0, R.useEffect)(() => {
- n.current && (zg = e, !Jg(wu(pu(e.current ? e.current[0] : void 0)), zg.current) && e.current && e_(e.current)), n.current = !1;
+ n.current && (Rg = e, !qg(Cu(fu(e.current ? e.current[0] : void 0)), Rg.current) && e.current && $g(e.current)), n.current = !1;
}, [e]);
}
function tee(e, t, n) {
- kl(() => {
+ Ol(() => {
if (t || n) return;
- let r = e.current, i = pu(r ? r[0] : void 0), a = (t) => {
+ let r = e.current, i = fu(r ? r[0] : void 0), a = (t) => {
let n = Y(t);
- Jg(n, e.current) ? zg = e : qg(n) || (zg = null);
+ qg(n, e.current) ? Rg = e : Kg(n) || (Rg = 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));
@@ -19509,8 +19503,8 @@ function tee(e, t, n) {
n
]);
}
-function t_(e) {
- let t = a_.getTreeNode(zg);
+function e_(e) {
+ let t = i_.getTreeNode(Rg);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
@@ -19518,34 +19512,34 @@ function t_(e) {
return t?.scopeRef === e;
}
function nee(e, t, n) {
- let r = (0, R.useRef)(typeof document < "u" ? wu(pu(e.current ? e.current[0] : void 0)) : null);
- kl(() => {
- let r = e.current, i = pu(r ? r[0] : void 0);
+ let r = (0, R.useRef)(typeof document < "u" ? Cu(fu(e.current ? e.current[0] : void 0)) : null);
+ Ol(() => {
+ let r = e.current, i = fu(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!zg || Zg(zg, e)) && Jg(wu(i), e.current) && (zg = e);
+ (!Rg || Xg(Rg, e)) && qg(Cu(i), e.current) && (Rg = e);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
};
- }, [e, n]), kl(() => {
- let r = pu(e.current ? e.current[0] : void 0);
+ }, [e, n]), Ol(() => {
+ let r = fu(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Ug(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Hg(e) || t.isComposing) return;
let n = r.activeElement;
- if (!Yg(n, e) || !t_(e)) return;
- let i = a_.getTreeNode(e);
+ if (!Jg(n, e) || !e_(e)) return;
+ let i = i_.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = r_(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = n_(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 || !Yg(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !Jg(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (Yg(s, e));
- t.preventDefault(), t.stopPropagation(), s ? Qg(s, !0) : qg(a) ? Qg(a, !0) : n.blur();
+ while (Jg(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? Zg(s, !0) : Kg(a) ? Zg(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -19555,31 +19549,31 @@ function nee(e, t, n) {
e,
t,
n
- ]), kl(() => {
- let n = pu(e.current ? e.current[0] : void 0);
+ ]), Ol(() => {
+ let n = fu(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = a_.getTreeNode(e);
+ let i = i_.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = a_.getTreeNode(e);
+ let r = i_.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = wu(n);
- if (t && i && (a && Yg(a, e) || a === n.body && t_(e))) {
- let t = a_.clone();
+ let i = r.nodeToRestore, a = Cu(n);
+ if (t && i && (a && Jg(a, e) || a === n.body && e_(e))) {
+ let t = i_.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- n_(n.nodeToRestore);
+ t_(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && a_.getTreeNode(n.scopeRef)) {
- let e = $g(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && i_.getTreeNode(n.scopeRef)) {
+ let e = Qg(n.scopeRef.current, !0);
if (e) {
- n_(e);
+ t_(e);
return;
}
}
@@ -19591,21 +19585,21 @@ function nee(e, t, n) {
};
}, [e, t]);
}
-function n_(e) {
- e.dispatchEvent(new CustomEvent(Rg, {
+function t_(e) {
+ e.dispatchEvent(new CustomEvent(Lg, {
bubbles: !0,
cancelable: !0
- })) && Qg(e);
+ })) && Zg(e);
}
-function r_(e, t, n) {
- let r = t?.tabbable ? Wu : Uu, i = pu(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = Ig(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return Cu(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Gg(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || Jg(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function n_(e, t, n) {
+ let r = t?.tabbable ? Uu : Hu, i = fu(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = Fg(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return Su(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Wg(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || qg(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
var ree = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new i_({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new r_({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -19616,7 +19610,7 @@ var ree = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new i_({ scopeRef: e });
+ let i = new r_({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -19627,7 +19621,7 @@ var ree = 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 && Jg(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 && qg(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);
}
@@ -19639,7 +19633,7 @@ var ree = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, i_ = class {
+}, r_ = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -19649,28 +19643,28 @@ var ree = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, a_ = new ree();
+}, i_ = new ree();
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function o_(e) {
- return id() ? e.altKey : e.ctrlKey;
+function a_(e) {
+ return rd() ? e.altKey : e.ctrlKey;
}
-function s_(e, t) {
+function o_(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 c_ = /* @__PURE__ */ new WeakMap();
+var s_ = /* @__PURE__ */ new WeakMap();
function iee(e) {
- let t = ql();
- return c_.set(e, t), t;
+ let t = Kl();
+ return s_.set(e, t), t;
}
function aee(e) {
- return c_.get(e);
+ return s_.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var l_ = 1e3;
-function u_(e) {
+var c_ = 1e3;
+function l_(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, R.useRef)({
search: "",
timeout: void 0
@@ -19689,12 +19683,12 @@ function u_(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, l_);
+ }, c_);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
let a = oee(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !Cu(e.currentTarget, Y(e)) || i.current.search.length === 0 && a === " ")) {
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !Su(e.currentTarget, Y(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
if (a ??= t.getKeyForSearch(i.current.search), a != null) n.setFocusedKey(a), r && r(a), e.preventDefault(), "continuePropagation" in e || e.stopPropagation();
@@ -19705,7 +19699,7 @@ function u_(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, l_);
+ }, c_);
}
} : void 0
} };
@@ -19715,24 +19709,24 @@ function oee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function d_(e, t) {
+function u_(e, t) {
let n = (0, R.useRef)(!0), r = (0, R.useRef)(null);
- kl(() => (n.current = !0, () => {
+ Ol(() => (n.current = !0, () => {
n.current = !1;
- }), []), kl(() => {
+ }), []), Ol(() => {
n.current ? n.current = !1 : (!r.current || t.some((e, t) => !Object.is(e, r[t]))) && e(), r.current = t;
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function f_(e) {
- let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = cf(), _ = fd(), v = (e, n, i) => {
+function d_(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 } = sf(), _ = dd(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !o_(e)) {
+ if (t.isLink(n) && m === "selection" && l && !a_(e)) {
(0, be.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = s_(r, n), o = t.getItemProps(n);
+ let a = o_(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -19744,7 +19738,7 @@ function f_(e) {
t.extendSelection(n);
return;
}
- if (l && !o_(e)) {
+ if (l && !a_(e)) {
t.replaceSelection(n);
return;
}
@@ -19771,9 +19765,9 @@ function f_(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, Wd(e));
+ let r = n.getFirstKey(t.focusedKey, Ud(e));
if (t.setFocusedKey(r), r != null) {
- if (Wd(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Ud(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -19805,9 +19799,9 @@ function f_(e) {
}, w = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, Wd(e));
+ let r = n.getLastKey(t.focusedKey, Ud(e));
if (t.setFocusedKey(r), r != null) {
- if (Wd(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Ud(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -19844,12 +19838,12 @@ function f_(e) {
return !1;
}, k = () => {
if (!f && r.current) {
- let e = r_(r.current, { tabbable: !0 }), t, n;
+ let e = n_(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = wu();
- t && (!Eu(t) || i && !Wu(i)) && ju(t);
+ let i = Cu();
+ t && (!Tu(t) || i && !Uu(i)) && Au(t);
}
return {
shouldContinuePropagation: !0,
@@ -19859,11 +19853,11 @@ function f_(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), j = (e, t) => ({
- [ed() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [$u() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [ed() ? e + "+Alt" : e + "+Control"]: t,
+ [$u() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: M } = ap({
+ }), { keyboardProps: M } = ip({
shortcuts: {
...j("ArrowDown", y),
...j("ArrowUp", b),
@@ -19873,7 +19867,7 @@ function f_(e) {
...j("PageUp", E)
},
allowRepeats: !0
- }), { keyboardProps: N } = ap({ shortcuts: {
+ }), { keyboardProps: N } = ip({ shortcuts: {
...j("Home", x),
...j("End", w),
"Mod+A": D,
@@ -19884,7 +19878,7 @@ function f_(e) {
top: 0,
left: 0
});
- Yd(p, "scroll", () => {
+ Jd(p, "scroll", () => {
P.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -19892,11 +19886,11 @@ function f_(e) {
});
let ee = (e) => {
if (t.isFocused) {
- Cu(e.currentTarget, Y(e)) || t.setFocused(!1);
+ Su(e.currentTarget, Y(e)) || t.setFocused(!1);
return;
}
- if (!Cu(e.currentTarget, Y(e))) return;
- let i = Ld();
+ if (!Su(e.currentTarget, Y(e))) return;
+ let i = Id();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -19907,27 +19901,27 @@ function f_(e) {
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
} else p.current && (p.current.scrollTop = P.current.top, p.current.scrollLeft = P.current.left);
if (t.focusedKey != null && p.current) {
- let e = s_(r, t.focusedKey);
- e instanceof HTMLElement && (!Eu(e) && !d && ju(e), (i === "keyboard" || h && i === "virtual") && qm(e, { containingElement: r.current }));
+ let e = o_(r, t.focusedKey);
+ e instanceof HTMLElement && (!Tu(e) && !d && Au(e), (i === "keyboard" || h && i === "virtual") && Km(e, { containingElement: r.current }));
}
}, F = (e) => {
- Cu(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ Su(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
}, I = (0, R.useRef)(!1);
- Yd(r, fu, d ? (e) => {
+ Jd(r, du, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (I.current = !0);
} : void 0);
let te = n.getFirstKey?.() ?? null;
- d_(() => {
+ u_(() => {
if (I.current) {
if (te == null) {
- let e = wu();
- Du(r.current), ku(e, null), t.collection.size > 0 && (I.current = !1);
+ let e = Cu();
+ Eu(r.current), Ou(e, null), t.collection.size > 0 && (I.current = !1);
} else t.setFocusedKey(te), I.current = !1;
}
- }, [te, t.collection.size]), d_(() => {
+ }, [te, t.collection.size]), u_(() => {
t.collection.size > 0 && (I.current = !1);
- }, [t.focusedKey]), Yd(r, du, d ? (e) => {
+ }, [t.focusedKey]), Jd(r, uu, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
let ne = (0, R.useRef)(i), re = (0, R.useRef)(!1);
@@ -19942,22 +19936,22 @@ function f_(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && Wf(r.current), t.collection.size > 0 && (ne.current = !1, re.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && Uf(r.current), t.collection.size > 0 && (ne.current = !1, re.current = !0);
}
});
let ie = (0, R.useRef)(t.focusedKey), ae = (0, R.useRef)(null);
(0, R.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ie.current || re.current) && p.current && r.current) {
- let e = Ld(), n = s_(r, t.focusedKey);
+ let e = Id(), n = o_(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || re.current) && (ae.current && cancelAnimationFrame(ae.current), ae.current = requestAnimationFrame(() => {
- p.current && (Gm(p.current, n), e !== "virtual" && qm(n, { containingElement: r.current }));
+ p.current && (Wm(p.current, n), e !== "virtual" && Km(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && ie.current != null && r.current && Wf(r.current), ie.current = t.focusedKey, re.current = !1;
+ !d && t.isFocused && t.focusedKey == null && ie.current != null && r.current && Uf(r.current), ie.current = t.focusedKey, re.current = !1;
}), (0, R.useEffect)(() => () => {
ae.current && cancelAnimationFrame(ae.current);
- }, []), Yd(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), Jd(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let oe = {
@@ -19967,7 +19961,7 @@ function f_(e) {
onMouseDown(e) {
p.current === Y(e) && e.preventDefault();
}
- }, { typeSelectProps: se } = u_({
+ }, { typeSelectProps: se } = l_({
keyboardDelegate: n,
selectionManager: t
});
@@ -19982,14 +19976,14 @@ function f_(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var p_ = class {
+var f_ = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : s_(this.ref, e);
+ let n = e == null ? null : o_(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -20015,12 +20009,12 @@ var p_ = class {
height: e?.clientHeight ?? 0
};
}
-}, m_ = class {
+}, p_ = 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 p_(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 p_(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 f_(t.ref);
+ } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new f_(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -20060,14 +20054,14 @@ var p_ = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = s_(this.ref, e);
+ let t = this.getNextKey(e), n = o_(this.ref, e);
if (t != null) {
- let e = s_(this.ref, t);
+ let e = o_(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = s_(this.ref, r);
+ let e = o_(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -20101,7 +20095,7 @@ var p_ = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !Hm(t)) return this.getFirstKey();
+ if (t && !Vm(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -20116,7 +20110,7 @@ var p_ = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !Hm(t)) return this.getLastKey();
+ if (t && !Vm(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);
@@ -20139,20 +20133,20 @@ var p_ = class {
}
return null;
}
-}, h_ = /* @__PURE__ */ new Map();
-function g_(e) {
- let { locale: t } = cf(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (h_.has(n)) return h_.get(n);
+}, m_ = /* @__PURE__ */ new Map();
+function h_(e) {
+ let { locale: t } = sf(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (m_.has(n)) return m_.get(n);
let r = new Intl.Collator(t, e);
- return h_.set(n, r), r;
+ return m_.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function __(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = g_({
+function g_(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = h_({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, R.useMemo)(() => a || new m_({
+ }), l = t.disabledBehavior, u = (0, R.useMemo)(() => a || new p_({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -20169,7 +20163,7 @@ function __(e) {
c,
l,
s
- ]), { collectionProps: d } = f_({
+ ]), { collectionProps: d } = d_({
...e,
ref: i,
selectionManager: t,
@@ -20180,21 +20174,21 @@ function __(e) {
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
function see(e, t, n) {
- let r = Gp(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+ let r = Wp(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 } = __({
+ let { listProps: s } = g_({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = hm({
+ }), { focusWithinProps: c } = mm({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = ql(e.id);
- Mg.set(t, {
+ }), l = Kl(e.id);
+ jg.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -20204,7 +20198,7 @@ function see(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = Tm({
+ let { labelProps: u, fieldProps: d } = wm({
...e,
id: l,
labelElementType: "span"
@@ -20221,8 +20215,8 @@ function see(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
var cee = 500;
-function v_(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = cee, accessibilityDescription: s } = e, c = (0, R.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = tm(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = sm({
+function __(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = cee, accessibilityDescription: s } = e, c = (0, R.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = em(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = om({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -20230,12 +20224,12 @@ function v_(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), pu(e.target).activeElement !== e.target && ju(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), fu(e.target).activeElement !== e.target && Au(e.target), a && a({
...e,
type: "longpress"
}), c.current = void 0;
}, o), e.pointerType === "touch" && l(e.target, "contextmenu", (e) => e.preventDefault(), { once: !0 });
- let t = mu(e.target);
+ let t = pu(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -20250,15 +20244,15 @@ function v_(e) {
});
}
});
- return { longPressProps: J(f, Xm(a && !t ? s : void 0)) };
+ return { longPressProps: J(f, Ym(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function y_(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 = fd();
- t = ql(t);
+function v_(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 = dd();
+ t = Kl(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && o_(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && a_(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -20269,11 +20263,11 @@ function y_(e) {
}
if (d === "override" || d === "none") return;
}
- n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (Wd(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
+ n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (Ud(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
(0, R.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? Du(i.current) : s ? s() : wu() !== i.current && i.current && Wf(i.current));
+ r === n.focusedKey && n.isFocused && (o ? Eu(i.current) : s ? s() : Cu() !== i.current && i.current && Uf(i.current));
}, [
i,
r,
@@ -20301,20 +20295,20 @@ function y_(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 || x_(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || b_(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" && !b_(e.key)) return;
+ if (e.pointerType === "keyboard" && !y_(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 || x_(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || b_(e.key))) && p(e);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && b_(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 && y_(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
});
let A = aee(n.collection);
if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = J(k, {
@@ -20331,10 +20325,10 @@ function y_(e) {
"onPress",
"onPressUp",
"onClick"
- ]) D[e] && (k[e] = Ol(k[e], D[e]));
- let { pressProps: j, isPressed: M } = sm(k), N = x ? (e) => {
+ ]) D[e] && (k[e] = Dl(k[e], D[e]));
+ let { pressProps: j, isPressed: M } = om(k), N = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: P } = v_({
+ } : void 0, { longPressProps: P } = __({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -20342,7 +20336,7 @@ function y_(e) {
}), ee = (e) => {
C.current === "touch" && T.current && e.preventDefault();
}, F = d !== "none" && n.isLink(r) ? (e) => {
- md.isOpening || e.preventDefault();
+ pd.isOpening || e.preventDefault();
} : void 0, I = J(m, v || b || o && !c ? j : {}, w ? P : {}, {
onDoubleClick: N,
onDragStartCapture: ee,
@@ -20355,7 +20349,7 @@ function y_(e) {
if (e != null) return e !== A;
t = t.parentElement;
}
- return Wu(e);
+ return Uu(e);
}, ne = I.onPointerDown;
I.onPointerDown = (e) => {
let t = Y(e);
@@ -20383,21 +20377,21 @@ function y_(e) {
hasAction: S
};
}
-function b_(e) {
+function y_(e) {
return e === "Enter";
}
-function x_(e) {
+function b_(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function S_(e, t) {
+function x_(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function C_(e) {
- return w_(e, 0);
+function S_(e) {
+ return C_(e, 0);
}
-function w_(e, t) {
+function C_(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -20405,36 +20399,36 @@ function w_(e, t) {
n++;
}
}
-function T_(e) {
+function w_(e) {
let t;
for (let n of e) t = n;
return t;
}
-function E_(e, t, n) {
+function T_(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...D_(e, t), t], i = [...D_(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...E_(e, t), t], i = [...E_(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 D_(e, t) {
+function E_(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 O_ = /* @__PURE__ */ new WeakMap();
-function k_(e) {
- let t = O_.get(e);
+var D_ = /* @__PURE__ */ new WeakMap();
+function O_(e) {
+ let t = D_.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(S_(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(x_(i, e)) : i.type === "item" && n++;
};
- return r(e), O_.set(e, n), n;
+ return r(e), D_.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
function lee(e, t, n) {
- let { key: r } = e, i = Mg.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 = Yl(), f = Yl(), p = {
+ let { key: r } = e, i = jg.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 = Jl(), f = Jl(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -20444,9 +20438,9 @@ function lee(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"] = k_(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = O_(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Pg(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = y_({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Ng(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = v_({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -20455,18 +20449,18 @@ function lee(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? Ol(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? Dl(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = Sm({
+ }), { hoverProps: S } = xm({
isDisabled: a || !c,
onHoverStart() {
- Id() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ Fd() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = Gp(m?.props);
+ }), C = Wp(m?.props);
delete C.id;
- let w = vd(m?.props);
+ let w = _d(m?.props);
return {
optionProps: {
...p,
@@ -20476,7 +20470,7 @@ function lee(e, t, n) {
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && Id(),
+ isFocusVisible: y && t.selectionManager.isFocused && Fd(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -20487,7 +20481,7 @@ function lee(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
function uee(e) {
- let { heading: t, "aria-label": n } = e, r = ql();
+ let { heading: t, "aria-label": n } = e, r = Kl();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -20506,13 +20500,13 @@ function uee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function A_(e) {
+function k_(e) {
let t = R.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 j_ = class {
+var A_ = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -20556,7 +20550,7 @@ var j_ = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, M_ = class e extends Set {
+}, j_ = 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);
}
@@ -20568,8 +20562,8 @@ function dee(e, t) {
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function N_(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, R.useRef)(!1), [, s] = (0, R.useState)(!1), c = (0, R.useRef)(null), l = (0, R.useRef)(null), [, u] = (0, R.useState)(null), [d, f] = wf((0, R.useMemo)(() => P_(e.selectedKeys), [e.selectedKeys]), (0, R.useMemo)(() => P_(e.defaultSelectedKeys, new M_()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, R.useState)(i);
+function M_(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, R.useRef)(!1), [, s] = (0, R.useState)(!1), c = (0, R.useRef)(null), l = (0, R.useRef)(null), [, u] = (0, R.useState)(null), [d, f] = Cf((0, R.useMemo)(() => N_(e.selectedKeys), [e.selectedKeys]), (0, R.useMemo)(() => N_(e.defaultSelectedKeys, new j_()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, R.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, R.useRef)(i);
return (0, R.useEffect)(() => {
@@ -20602,12 +20596,12 @@ function N_(e) {
disabledBehavior: a
};
}
-function P_(e, t) {
- return e ? e === "all" ? "all" : new M_(e) : t;
+function N_(e, t) {
+ return e ? e === "all" ? "all" : new j_(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var F_ = class e {
+var P_ = 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;
}
@@ -20663,7 +20657,7 @@ var F_ = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && E_(this.collection, n, e) < 0) && (e = n);
+ (!e || n && T_(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -20671,7 +20665,7 @@ var F_ = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && E_(this.collection, n, e) > 0) && (e = n);
+ (!e || n && T_(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -20690,10 +20684,10 @@ var F_ = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new M_([t], t, t);
+ if (this.state.selectedKeys === "all") n = new j_([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new M_(e, r, t);
+ n = new j_(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);
}
@@ -20701,7 +20695,7 @@ var F_ = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? E_(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? T_(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);
@@ -20727,19 +20721,19 @@ var F_ = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new M_(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new j_(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 M_([t], t, t) : new M_();
+ let n = this.canSelectItem(t) ? new j_([t], t, t) : new j_();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new M_();
+ let t = new j_();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -20751,7 +20745,7 @@ var F_ = 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(C_(S_(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(S_(x_(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -20762,7 +20756,7 @@ var F_ = 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 M_());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new j_());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -20805,7 +20799,7 @@ var F_ = class e {
}
}, fee = class {
build(e, t) {
- return this.context = t, I_(() => this.iterateCollection(e));
+ return this.context = t, F_(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -20890,7 +20884,7 @@ var F_ = class e {
wrapper: pee(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 <${L_(t.type)}> in <${L_(r?.type ?? "unknown parent type")}>. Only <${L_(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 <${I_(t.type)}> in <${I_(r?.type ?? "unknown parent type")}>. Only <${I_(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -20912,7 +20906,7 @@ var F_ = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: I_(function* () {
+ childNodes: F_(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -20931,7 +20925,7 @@ var F_ = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function I_(e) {
+function F_(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -20944,12 +20938,12 @@ function pee(e, t) {
if (e) return e;
if (t) return t;
}
-function L_(e) {
+function I_(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function R_(e, t, n) {
+function L_(e, t, n) {
let r = (0, R.useMemo)(() => new fee(), []), { children: i, items: a, collection: o } = e;
return (0, R.useMemo)(() => o || t(r.build({
children: i,
@@ -20965,13 +20959,13 @@ function R_(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function z_(e) {
- let { filter: t, layoutDelegate: n } = e, r = N_(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = R_(e, (0, R.useCallback)((e) => t ? new j_(t(e)) : new j_(e), [t]), (0, R.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, R.useMemo)(() => new F_(a, r, { layoutDelegate: n }), [
+function R_(e) {
+ let { filter: t, layoutDelegate: n } = e, r = M_(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = L_(e, (0, R.useCallback)((e) => t ? new A_(t(e)) : new A_(e), [t]), (0, R.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, R.useMemo)(() => new P_(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return B_(a, o), {
+ return z_(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
@@ -20979,13 +20973,13 @@ function z_(e) {
}
function mee(e, t) {
let n = (0, R.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return B_(n, r), {
+ return z_(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function B_(e, t) {
+function z_(e, t) {
let n = (0, R.useRef)(null);
(0, R.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -21013,15 +21007,15 @@ function B_(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function V_(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, R.useRef)(null), s = Jd((e) => {
+function B_(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, R.useRef)(null), s = qd((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- kl(() => {
+ Ol(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: Um(t?.current),
+ root: Hm(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -21037,14 +21031,14 @@ function V_(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var H_ = /*#__PURE__*/ (0, R.createContext)(null), U_ = /*#__PURE__*/ (0, R.createContext)(null), hee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = au(e, t, H_);
- let n = (0, R.useContext)(U_);
- return n ? /*#__PURE__*/ R.createElement(W_, {
+var V_ = /*#__PURE__*/ (0, R.createContext)(null), H_ = /*#__PURE__*/ (0, R.createContext)(null), hee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = iu(e, t, V_);
+ let n = (0, R.useContext)(H_);
+ return n ? /*#__PURE__*/ R.createElement(U_, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ R.createElement(yp, { content: /*#__PURE__*/ R.createElement(jp, e) }, (n) => /*#__PURE__*/ R.createElement(gee, {
+ }) : /*#__PURE__*/ R.createElement(vp, { content: /*#__PURE__*/ R.createElement(Ap, e) }, (n) => /*#__PURE__*/ R.createElement(gee, {
props: e,
listBoxRef: t,
collection: n
@@ -21057,22 +21051,22 @@ function gee({ props: e, listBoxRef: t, collection: n }) {
children: null,
items: null
};
- let { layoutDelegate: r } = (0, R.useContext)(Lp), i = z_({
+ let { layoutDelegate: r } = (0, R.useContext)(Ip), i = R_({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ R.createElement(W_, {
+ return /*#__PURE__*/ R.createElement(U_, {
state: i,
props: e,
listBoxRef: t
});
}
-function W_({ state: e, props: t, listBoxRef: n }) {
- [t, n] = au(t, n, Tf);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = mee(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = cf(), { disabledBehavior: p, disabledKeys: m } = l, h = g_({
+function U_({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = iu(t, n, wf);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = mee(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = sf(), { disabledBehavior: p, disabledKeys: m } = l, h = h_({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, R.useContext)(Lp), b = (0, R.useMemo)(() => t.keyboardDelegate || new m_({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, R.useContext)(Ip), b = (0, R.useMemo)(() => t.keyboardDelegate || new p_({
collection: c,
collator: h,
ref: n,
@@ -21125,7 +21119,7 @@ function W_({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = gm(), j = s.collection.size === 0, M = {
+ let { focusProps: O, isFocused: k, isFocusVisible: A } = hm(), j = s.collection.size === 0, M = {
isDropTarget: T,
isEmpty: j,
isFocused: k,
@@ -21133,7 +21127,7 @@ function W_({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, N = ru({
+ }, N = nu({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -21143,8 +21137,8 @@ function W_({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(M)));
- let ee = Gp(t, { global: !0 });
- return /*#__PURE__*/ R.createElement(Bg, null, /*#__PURE__*/ R.createElement(uu.div, {
+ let ee = Wp(t, { global: !0 });
+ return /*#__PURE__*/ R.createElement(zg, null, /*#__PURE__*/ R.createElement(lu.div, {
...J(ee, N, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -21155,60 +21149,60 @@ function W_({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ R.createElement(nu, { values: [
- [H_, t],
- [U_, s],
- [bg, {
+ }, /*#__PURE__*/ R.createElement(tu, { values: [
+ [V_, t],
+ [H_, s],
+ [yg, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [Ag, { elementType: "div" }],
- [xg, { render: yee }],
- [Np, {
+ [kg, { elementType: "div" }],
+ [bg, { render: yee }],
+ [Mp, {
name: "ListBoxSection",
render: _ee
}]
- ] }, /*#__PURE__*/ R.createElement(Dg, null, /*#__PURE__*/ R.createElement(y, {
+ ] }, /*#__PURE__*/ R.createElement(Eg, null, /*#__PURE__*/ R.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: wg(l, r, C),
- renderDropIndicator: Cg(r, C)
+ persistedKeys: Cg(l, r, C),
+ renderDropIndicator: Sg(r, C)
}))), P, E));
}
function _ee(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, R.useContext)(U_), { dragAndDropHooks: a, dropState: o } = (0, R.useContext)(bg), { CollectionBranch: s } = (0, R.useContext)(Lp), [c, l] = ou(), { headingProps: u, groupProps: d } = uee({
+ let i = (0, R.useContext)(H_), { dragAndDropHooks: a, dropState: o } = (0, R.useContext)(yg), { CollectionBranch: s } = (0, R.useContext)(Ip), [c, l] = au(), { headingProps: u, groupProps: d } = uee({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = ru({
+ }), f = nu({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = Gp(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ R.createElement(uu.section, {
+ }), p = Wp(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ R.createElement(lu.section, {
...J(p, f, d),
ref: t
- }, /*#__PURE__*/ R.createElement(Tg.Provider, { value: {
+ }, /*#__PURE__*/ R.createElement(wg.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ R.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: Cg(a, o)
+ renderDropIndicator: Sg(a, o)
})));
}
-var vee = /*#__PURE__*/ Dp(Af, function(e, t, n) {
- let r = eu(t), i = (0, R.useContext)(U_), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(bg), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = lee({
+var vee = /*#__PURE__*/ Ep(kf, function(e, t, n) {
+ let r = $l(t), i = (0, R.useContext)(H_), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(yg), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = lee({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = Sm({
+ }, i, r), { hoverProps: p, isHovered: m } = xm({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = ap(e), { focusProps: g } = Gf(e), _ = null;
+ }), { keyboardProps: h } = ip(e), { focusProps: g } = Wf(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -21219,7 +21213,7 @@ var vee = /*#__PURE__*/ Dp(Af, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = ru({
+ let y = o && o.isDragging(n.key), b = nu({
...e,
id: void 0,
children: e.children,
@@ -21237,7 +21231,7 @@ var vee = /*#__PURE__*/ Dp(Af, function(e, t, n) {
(0, R.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? uu.a : uu.div, S = Gp(e, { global: !0 });
+ let x = e.href ? lu.a : lu.div, S = Wp(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ R.createElement(x, {
...J(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -21251,15 +21245,15 @@ var vee = /*#__PURE__*/ Dp(Af, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ R.createElement(nu, { values: [[zm, { slots: {
- [tu]: u,
+ }, /*#__PURE__*/ R.createElement(tu, { values: [[Rm, { slots: {
+ [eu]: u,
label: u,
description: d
- } }], [Og, { isSelected: f.isSelected }]] }, b.children));
+ } }], [Dg, { isSelected: f.isSelected }]] }, b.children));
});
function yee(e, t) {
- t = eu(t);
- let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(bg), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ t = $l(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(yg), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
return a ? null : /*#__PURE__*/ R.createElement(xee, {
...e,
dropIndicatorProps: i,
@@ -21268,12 +21262,12 @@ function yee(e, t) {
});
}
function bee(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = ru({
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = nu({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(uu.div, {
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(lu.div, {
...n,
...a,
role: "option",
@@ -21282,9 +21276,9 @@ function bee(e, t) {
}));
}
var xee = /*#__PURE__*/ (0, R.forwardRef)(bee);
-Dp(kf, function(e, t, n) {
- let r = (0, R.useContext)(U_), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
- V_((0, R.useMemo)(() => ({
+Ep(Of, function(e, t, n) {
+ let r = (0, R.useContext)(H_), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
+ B_((0, R.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -21294,7 +21288,7 @@ Dp(kf, function(e, t, n) {
o,
r?.collection
]), c);
- let l = ru({
+ let l = nu({
...s,
id: void 0,
children: n.rendered,
@@ -21307,7 +21301,7 @@ Dp(kf, function(e, t, n) {
width: 0,
height: 0
},
- inert: A_(!0)
+ inert: k_(!0)
}, /*#__PURE__*/ R.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -21316,8 +21310,8 @@ Dp(kf, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(uu.div, {
- ...J(Gp(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(lu.div, {
+ ...J(Wp(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -21326,41 +21320,41 @@ Dp(kf, function(e, t, n) {
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
var See = /*#__PURE__*/ (0, R.createContext)({ placement: "bottom" }), Cee = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function G_(e) {
+function W_(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var K_ = /* @__PURE__ */ new WeakMap(), q_ = [];
-function J_(e, t) {
- let n = mu(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Cee, 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 G_ = /* @__PURE__ */ new WeakMap(), K_ = [];
+function q_(e, t) {
+ let n = pu(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Cee, 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 (Su()) {
+ if (xu()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; vu(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; _u(e) && e !== t;) u.add(e), e = e.host.getRootNode();
}
}
let d = (e) => {
for (let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) o.add(t);
let t = (e) => {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
- for (let t of o) if (Cu(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (Su(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = Ig(pu(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = Fg(fu(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 = K_.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), K_.set(e, t + 1));
+ let t = G_.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), G_.set(e, t + 1));
};
- q_.length && q_[q_.length - 1].disconnect(), d(i);
+ K_.length && K_[K_.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) => Cu(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && G_(e) ? o.add(e) : e instanceof Element && d(e);
- if (Su()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => Su(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && W_(e) ? o.add(e) : e instanceof Element && d(e);
+ if (xu()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -21373,11 +21367,11 @@ function J_(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (Su()) for (let e of u) {
+ if (xu()) 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) => Cu(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && G_(e) ? o.add(e) : e instanceof Element && d(e);
- if (Su()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => Su(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && W_(e) ? o.add(e) : e instanceof Element && d(e);
+ if (xu()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -21403,29 +21397,29 @@ function J_(e, t) {
p.disconnect();
}
};
- return q_.push(h), () => {
- if (p.disconnect(), Su()) for (let e of m) e.disconnect();
+ return K_.push(h), () => {
+ if (p.disconnect(), xu()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = K_.get(e);
- t != null && (t === 1 ? (l(e, !1), K_.delete(e)) : K_.set(e, t - 1));
+ let t = G_.get(e);
+ t != null && (t === 1 ? (l(e, !1), G_.delete(e)) : G_.set(e, t - 1));
}
- h === q_[q_.length - 1] ? (q_.pop(), q_.length && q_[q_.length - 1].observe()) : q_.splice(q_.indexOf(h), 1);
+ h === K_[K_.length - 1] ? (K_.pop(), K_.length && K_[K_.length - 1].observe()) : K_.splice(K_.indexOf(h), 1);
};
}
function wee(e) {
- let t = q_[q_.length - 1];
+ let t = K_[K_.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var Y_ = {
+var J_ = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, X_ = {
+}, Y_ = {
top: "bottom",
bottom: "top",
left: "right",
@@ -21433,20 +21427,20 @@ var Y_ = {
}, Tee = {
top: "left",
left: "top"
-}, Z_ = {
+}, X_ = {
top: "height",
left: "width"
-}, Q_ = {
+}, Z_ = {
width: "totalWidth",
height: "totalHeight"
-}, $_ = {}, Eee = () => typeof document < "u" ? window.visualViewport : null;
-function ev(e, t) {
+}, Q_ = {}, Eee = () => typeof document < "u" ? window.visualViewport : null;
+function $_(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} = ov(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return ad() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
+ } else ({width: n, height: r, top: o, left: s} = av(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return id() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
width: n,
height: r,
totalWidth: i,
@@ -21464,8 +21458,8 @@ function Dee(e) {
height: e.scrollHeight
};
}
-function tv(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[Z_[e]], l = o[e] + r.scroll[Y_[e]] + a, u = o[e] + r.scroll[Y_[e]] + c - a, d = t - s + r.scroll[Y_[e]] + o[e] - r[Y_[e]], f = t - s + n + r.scroll[Y_[e]] + o[e] - r[Y_[e]];
+function ev(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[X_[e]], l = o[e] + r.scroll[J_[e]] + a, u = o[e] + r.scroll[J_[e]] + c - a, d = t - s + r.scroll[J_[e]] + o[e] - r[J_[e]], f = t - s + n + r.scroll[J_[e]] + o[e] - r[J_[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
function Oee(e) {
@@ -21477,55 +21471,55 @@ function Oee(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function nv(e) {
- if ($_[e]) return $_[e];
- let [t, n] = e.split(" "), r = Y_[t] || "right", i = Tee[r];
- Y_[n] || (n = "center");
- let a = Z_[r], o = Z_[i];
- return $_[e] = {
+function tv(e) {
+ if (Q_[e]) return Q_[e];
+ let [t, n] = e.split(" "), r = J_[t] || "right", i = Tee[r];
+ J_[n] || (n = "center");
+ let a = X_[r], o = X_[i];
+ return Q_[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, $_[e];
+ }, Q_[e];
}
-function rv(e, t, n, r, i, a, o, s, c, l, u) {
+function nv(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] = Em(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Q_[h]];
- _[X_[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = Tm(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[Z_[h]];
+ _[Y_[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
function kee(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Q_.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+ let d = (e.top == null ? c[Z_.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 iv(e, t, n, r, i, a, o, s) {
+function rv(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[X_[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[X_[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Y_[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[Y_[l]] - i);
}
function Aee(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = nv(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = rv(t, s, n, v, u, d, l, f, m, h, c), T = u, E = iv(s, l, t, i, a + u, v, c, g);
+ let v = tv(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = nv(t, s, n, v, u, d, l, f, m, h, c), T = u, E = rv(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = nv(`${X_[S]} ${C}`), r = rv(t, s, n, e, u, d, l, f, m, h, c);
- iv(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = tv(`${Y_[S]} ${C}`), r = nv(t, s, n, e, u, d, l, f, m, h, c);
+ rv(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 = tv(b, w[b], n[x], s, c, a, l);
+ let O = ev(b, w[b], n[x], s, c, a, l);
w[b] += O;
let k = kee(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = rv(t, s, n, v, T, d, l, f, m, h, c), O = tv(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[Y_[b]], M = j + .5 * t[x], N = m / 2 + h, P = Y_[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ee = n[x] - P - m / 2 - h;
- A[b] = Em(Em(M, t[b] + m / 2 - (w[b] + i[Y_[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Y_[b]])), N, ee), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = nv(t, s, n, v, T, d, l, f, m, h, c), O = ev(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[J_[b]], M = j + .5 * t[x], N = m / 2 + h, P = J_[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ee = n[x] - P - m / 2 - h;
+ A[b] = Tm(Tm(M, t[b] + m / 2 - (w[b] + i[J_[b]]), t[b] + t[x] - m / 2 - (w[b] + i[J_[b]])), N, ee), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let F = S === "left" || S === "top" ? n[y] : 0, I = {
x: S === "top" || S === "bottom" ? j : F,
y: S === "left" || S === "right" ? j : F
@@ -21540,16 +21534,16 @@ function Aee(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
};
}
function jee(e) {
- let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = Eee(), h = r instanceof HTMLElement ? Mee(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? ov(n, !1, p) : sv(n, h, !1, p);
+ 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 = Eee(), h = r instanceof HTMLElement ? Mee(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? av(n, !1, p) : ov(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 = ov(r, !0), x = Oee(r);
+ let b = av(r, !0), x = Oee(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = Dee(i), C = ev(s, m), w = ev(h, m), T;
+ let S = Dee(i), C = $_(s, m), w = $_(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = av(h, !1);
+ let e = iv(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -21561,11 +21555,11 @@ function jee(e) {
left: 0,
width: 0,
height: 0
- } : sv(s, h, !1);
- let E = Cu(s, h);
+ } : ov(s, h, !1);
+ let E = Su(s, h);
return Aee(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function av(e, t) {
+function iv(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,
@@ -21574,8 +21568,8 @@ function av(e, t) {
height: a
};
}
-function ov(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || av(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function av(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || iv(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -21583,34 +21577,34 @@ function ov(e, t, n) {
height: o
};
}
-function sv(e, t, n, r) {
+function ov(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || av(e, n);
+ if (i.position === "fixed") a = r || iv(e, n);
else {
- a = ov(e, n, r);
- let i = ov(t, n), o = window.getComputedStyle(t);
+ a = av(e, n, r);
+ let i = av(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 Mee(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !cv(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !cv(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !sv(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !sv(t);) t = t.parentElement;
return t || document.documentElement;
}
-function cv(e) {
+function sv(e) {
let t = window.getComputedStyle(e);
return t.transform !== "none" || /transform|perspective/.test(t.willChange) || t.filter !== "none" || t.contain === "paint" || "backdropFilter" in t && t.backdropFilter !== "none" || "WebkitBackdropFilter" in t && t.WebkitBackdropFilter !== "none";
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var lv = /* @__PURE__ */ new WeakMap();
+var cv = /* @__PURE__ */ new WeakMap();
function Nee(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, R.useEffect)(() => !n || r === null ? void 0 : yu(Tu(t.current), "scroll", (e) => {
+ (0, R.useEffect)(() => !n || r === null ? void 0 : vu(wu(t.current), "scroll", (e) => {
let n = Y(e);
- if (!t.current || n instanceof Node && !Cu(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || lv.get(t.current);
+ if (!t.current || n instanceof Node && !Su(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || cv.get(t.current);
i && i();
}, !0), [
n,
@@ -21623,8 +21617,8 @@ function Nee(e) {
function Pee() {
return window.ResizeObserver !== void 0;
}
-function uv(e) {
- let { ref: t, box: n, onResize: r } = e, i = Jd(r);
+function lv(e) {
+ let { ref: t, box: n, onResize: r } = e, i = qd(r);
(0, R.useEffect)(() => {
let e = t?.current;
if (e) {
@@ -21644,9 +21638,9 @@ function uv(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var dv = typeof document < "u" ? window.visualViewport : null;
+var uv = typeof document < "u" ? window.visualViewport : null;
function Fee(e) {
- let { direction: t } = cf(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, R.useState)(null), x = [
+ let { direction: t } = sf(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, R.useState)(null), x = [
p,
s,
i.current,
@@ -21663,15 +21657,15 @@ function Fee(e) {
g,
_,
n
- ], S = (0, R.useRef)(dv?.scale);
+ ], S = (0, R.useRef)(uv?.scale);
(0, R.useEffect)(() => {
- m && (S.current = dv?.scale);
+ m && (S.current = uv?.scale);
}, [m]);
let C = (0, R.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || dv?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || uv?.scale !== S.current) return;
let e = null;
- if (o.current && Eu(o.current)) {
- let t = wu()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && Tu(o.current)) {
+ let t = Cu()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -21690,28 +21684,28 @@ function Fee(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? av(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? iv(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
if (!y.position) return;
h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(y.position).forEach((e) => h.style[e] = y.position[e] + "px"), h.style.maxHeight = y.maxHeight == null ? "" : y.maxHeight + "px";
- let x = wu();
+ let x = Cu();
if (e && x && o.current) {
let t = x.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
o.current.scrollTop += r - e.offset;
}
b(y);
}, x);
- kl(C, x), Iee(C), uv({
+ Ol(C, x), Iee(C), lv({
ref: i,
onResize: C
- }), uv({
+ }), lv({
ref: r,
onResize: C
});
let w = (0, R.useRef)(!1);
- kl(() => {
+ Ol(() => {
let e, t = () => {
w.current = !0, clearTimeout(e), e = setTimeout(() => {
w.current = !1;
@@ -21719,10 +21713,10 @@ function Fee(e) {
}, n = () => {
w.current && t();
};
- dv?.addEventListener("resize", t), dv?.addEventListener("scroll", n);
- let r = yu(Tu(window), "scroll", n);
+ uv?.addEventListener("resize", t), uv?.addEventListener("scroll", n);
+ let r = vu(wu(window), "scroll", n);
return () => {
- dv?.removeEventListener("resize", t), dv?.removeEventListener("scroll", n), r();
+ uv?.removeEventListener("resize", t), uv?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, R.useCallback)(() => {
@@ -21755,7 +21749,7 @@ function Fee(e) {
};
}
function Iee(e) {
- kl(() => (window.addEventListener("resize", e, !1), () => {
+ Ol(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
@@ -21768,18 +21762,18 @@ function Ree(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, R.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = Jd((e) => {
- n && fv(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = Jd((e) => {
+ }), o = qd((e) => {
+ n && dv(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = qd((e) => {
n && n(e);
});
(0, R.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = pu(n);
+ let n = t.current, i = fu(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && fv(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && dv(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);
@@ -21787,34 +21781,34 @@ function Ree(e) {
}
}, [t, r]);
}
-function fv(e, t) {
+function dv(e, t) {
if (e.button > 0) return !1;
let n = Y(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !Cu(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !Su(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
}
return t.current ? !e.composedPath().includes(t.current) : !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var pv = [];
-function mv(e, t) {
+var fv = [];
+function pv(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, R.useRef)(void 0);
(0, R.useEffect)(() => {
- if (i && !pv.includes(t)) return pv.push(t), () => {
- let e = pv.indexOf(t);
- e >= 0 && pv.splice(e, 1);
+ if (i && !fv.includes(t)) return fv.push(t), () => {
+ let e = fv.indexOf(t);
+ e >= 0 && fv.splice(e, 1);
};
}, [i, t]);
let l = () => {
- pv[pv.length - 1] === t && n && n();
+ fv[fv.length - 1] === t && n && n();
}, u = (e) => {
- let n = pv[pv.length - 1];
+ let n = fv[fv.length - 1];
c.current = n, (!s || s(Y(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(Y(e))) && (pv[pv.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = ap({ shortcuts: { Escape: () => {
+ (!s || s(Y(e))) && (fv[fv.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = ip({ shortcuts: { Escape: () => {
if (!o) {
l();
return;
@@ -21826,10 +21820,10 @@ function mv(e, t) {
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = hm({
+ let { focusWithinProps: p } = mm({
isDisabled: !r,
onBlurWithin: (e) => {
- !e.relatedTarget || Xg(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
+ !e.relatedTarget || Yg(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -21842,26 +21836,26 @@ function mv(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var hv = typeof document < "u" && window.visualViewport, gv = 0, _v;
-function vv(e = {}) {
+var mv = typeof document < "u" && window.visualViewport, hv = 0, gv;
+function _v(e = {}) {
let { isDisabled: t } = e;
- kl(() => {
- if (!t) return gv++, gv === 1 && (_v = rd() && ad() ? Bee() : zee()), () => {
- gv--, gv === 0 && _v();
+ Ol(() => {
+ if (!t) return hv++, hv === 1 && (gv = nd() && id() ? Bee() : zee()), () => {
+ hv--, hv === 0 && gv();
};
}, [t]);
}
function zee() {
let e = window.innerWidth - document.documentElement.clientWidth;
- return Ol(e > 0 && ("scrollbarGutter" in document.documentElement.style ? bu(document.documentElement, "scrollbar-gutter", "stable") : bu(document.documentElement, "padding-right", `${e}px`)), bu(document.documentElement, "overflow", "hidden"));
+ return Dl(e > 0 && ("scrollbarGutter" in document.documentElement.style ? yu(document.documentElement, "scrollbar-gutter", "stable") : yu(document.documentElement, "padding-right", `${e}px`)), yu(document.documentElement, "overflow", "hidden"));
}
function Bee() {
- let e = bu(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+ let e = yu(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = Y(e);
- t = Hm(r) ? r : Um(r, !0), n = !1;
+ t = Vm(r) ? r : Hm(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 = $p();
+ }, i = document.createElement("style"), a = Qp();
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)) {
@@ -21873,26 +21867,26 @@ function Bee() {
}
}, s = (e) => {
let t = Y(e), n = e.relatedTarget;
- n && Kd(n) ? (n.focus({ preventScroll: !0 }), yv(n, Kd(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && Gd(n) ? (n.focus({ preventScroll: !0 }), vv(n, Gd(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, c = HTMLElement.prototype.focus;
Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function(e) {
- let t = wu(), n = t != null && Kd(t);
+ let t = Cu(), n = t != null && Gd(t);
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && yv(this, n);
+ }), (!e || !e.preventScroll) && vv(this, n);
}
});
- let l = Ol(yu(document, "touchstart", r, {
+ let l = Dl(vu(document, "touchstart", r, {
passive: !1,
capture: !0
- }), yu(document, "touchmove", o, {
+ }), vu(document, "touchmove", o, {
passive: !1,
capture: !0
- }), yu(document, "blur", s, !0));
+ }), vu(document, "blur", s, !0));
return () => {
e(), l(), i.remove(), Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -21901,18 +21895,18 @@ function Bee() {
});
};
}
-function yv(e, t) {
- t || !hv ? bv(e) : hv.addEventListener("resize", () => bv(e), { once: !0 });
+function vv(e, t) {
+ t || !mv ? yv(e) : mv.addEventListener("resize", () => yv(e), { once: !0 });
}
-function bv(e) {
+function yv(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
- let e = Um(n);
+ let e = Hm(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;
- hv && (n = Math.min(n, hv.offsetTop + hv.height));
+ mv && (n = Math.min(n, mv.offsetTop + mv.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)),
@@ -21926,7 +21920,7 @@ function bv(e) {
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePopover.mjs
function Vee(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 } = mv({
+ let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = pv({
isOpen: t.isOpen,
onClose: t.close,
shouldCloseOnBlur: !0,
@@ -21941,15 +21935,15 @@ function Vee(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)
});
- vv({ isDisabled: a || !t.isOpen }), (0, R.useEffect)(() => {
- if (t.isOpen && r.current) return a ? wee(i?.current ?? r.current) : J_([i?.current ?? r.current], { shouldUseInert: !0 });
+ _v({ isDisabled: a || !t.isOpen }), (0, R.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? wee(i?.current ?? r.current) : q_([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = hm(e);
+ let { focusWithinProps: g } = mm(e);
return {
popoverProps: J(u, f, g),
arrowProps: p,
@@ -21960,189 +21954,189 @@ function Vee(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var xv = {};
-xv = { dismiss: "تجاهل" };
+var bv = {};
+bv = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var Sv = {};
-Sv = { dismiss: "Отхвърляне" };
+var xv = {};
+xv = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var Cv = {};
-Cv = { dismiss: "Odstranit" };
+var Sv = {};
+Sv = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var wv = {};
-wv = { dismiss: "Luk" };
+var Cv = {};
+Cv = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var Tv = {};
-Tv = { dismiss: "Schließen" };
+var wv = {};
+wv = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var Ev = {};
-Ev = { dismiss: "Απόρριψη" };
+var Tv = {};
+Tv = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var Dv = {};
-Dv = { dismiss: "Dismiss" };
+var Ev = {};
+Ev = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var Ov = {};
-Ov = { dismiss: "Descartar" };
+var Dv = {};
+Dv = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var kv = {};
-kv = { dismiss: "Lõpeta" };
+var Ov = {};
+Ov = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var Av = {};
-Av = { dismiss: "Hylkää" };
+var kv = {};
+kv = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var jv = {};
-jv = { dismiss: "Rejeter" };
+var Av = {};
+Av = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var Mv = {};
-Mv = { dismiss: "התעלם" };
+var jv = {};
+jv = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var Nv = {};
-Nv = { dismiss: "Odbaci" };
+var Mv = {};
+Mv = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var Pv = {};
-Pv = { dismiss: "Elutasítás" };
+var Nv = {};
+Nv = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var Fv = {};
-Fv = { dismiss: "Ignora" };
+var Pv = {};
+Pv = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var Iv = {};
-Iv = { dismiss: "閉じる" };
+var Fv = {};
+Fv = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var Lv = {};
-Lv = { dismiss: "무시" };
+var Iv = {};
+Iv = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var Rv = {};
-Rv = { dismiss: "Atmesti" };
+var Lv = {};
+Lv = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var zv = {};
-zv = { dismiss: "Nerādīt" };
+var Rv = {};
+Rv = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var Bv = {};
-Bv = { dismiss: "Lukk" };
+var zv = {};
+zv = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var Vv = {};
-Vv = { dismiss: "Negeren" };
+var Bv = {};
+Bv = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var Hv = {};
-Hv = { dismiss: "Zignoruj" };
+var Vv = {};
+Vv = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var Uv = {};
-Uv = { dismiss: "Descartar" };
+var Hv = {};
+Hv = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var Wv = {};
-Wv = { dismiss: "Dispensar" };
+var Uv = {};
+Uv = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var Gv = {};
-Gv = { dismiss: "Revocare" };
+var Wv = {};
+Wv = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var Kv = {};
-Kv = { dismiss: "Пропустить" };
+var Gv = {};
+Gv = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var qv = {};
-qv = { dismiss: "Zrušiť" };
+var Kv = {};
+Kv = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var Jv = {};
-Jv = { dismiss: "Opusti" };
+var qv = {};
+qv = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var Yv = {};
-Yv = { dismiss: "Odbaci" };
+var Jv = {};
+Jv = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var Xv = {};
-Xv = { dismiss: "Avvisa" };
+var Yv = {};
+Yv = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var Zv = {};
-Zv = { dismiss: "Kapat" };
+var Xv = {};
+Xv = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var Qv = {};
-Qv = { dismiss: "Скасувати" };
+var Zv = {};
+Zv = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var $v = {};
-$v = { dismiss: "取消" };
+var Qv = {};
+Qv = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var ey = {};
-ey = { dismiss: "關閉" };
+var $v = {};
+$v = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var ty = {};
-ty = {
- "ar-AE": xv,
- "bg-BG": Sv,
- "cs-CZ": Cv,
- "da-DK": wv,
- "de-DE": Tv,
- "el-GR": Ev,
- "en-US": Dv,
- "es-ES": Ov,
- "et-EE": kv,
- "fi-FI": Av,
- "fr-FR": jv,
- "he-IL": Mv,
- "hr-HR": Nv,
- "hu-HU": Pv,
- "it-IT": Fv,
- "ja-JP": Iv,
- "ko-KR": Lv,
- "lt-LT": Rv,
- "lv-LV": zv,
- "nb-NO": Bv,
- "nl-NL": Vv,
- "pl-PL": Hv,
- "pt-BR": Uv,
- "pt-PT": Wv,
- "ro-RO": Gv,
- "ru-RU": Kv,
- "sk-SK": qv,
- "sl-SI": Jv,
- "sr-SP": Yv,
- "sv-SE": Xv,
- "tr-TR": Zv,
- "uk-UA": Qv,
- "zh-CN": $v,
- "zh-TW": ey
+var ey = {};
+ey = {
+ "ar-AE": bv,
+ "bg-BG": xv,
+ "cs-CZ": Sv,
+ "da-DK": Cv,
+ "de-DE": wv,
+ "el-GR": Tv,
+ "en-US": Ev,
+ "es-ES": Dv,
+ "et-EE": Ov,
+ "fi-FI": kv,
+ "fr-FR": Av,
+ "he-IL": jv,
+ "hr-HR": Mv,
+ "hu-HU": Nv,
+ "it-IT": Pv,
+ "ja-JP": Fv,
+ "ko-KR": Iv,
+ "lt-LT": Lv,
+ "lv-LV": Rv,
+ "nb-NO": zv,
+ "nl-NL": Bv,
+ "pl-PL": Vv,
+ "pt-BR": Hv,
+ "pt-PT": Uv,
+ "ro-RO": Wv,
+ "ru-RU": Gv,
+ "sk-SK": Kv,
+ "sl-SI": qv,
+ "sr-SP": Jv,
+ "sv-SE": Yv,
+ "tr-TR": Xv,
+ "uk-UA": Zv,
+ "zh-CN": Qv,
+ "zh-TW": $v
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
function Hee(e) {
return e && e.__esModule ? e.default : e;
}
-function ny(e) {
- let { onDismiss: t, ...n } = e, r = Xd(n, Sf(Hee(ty), "@react-aria/overlays").format("dismiss")), i = () => {
+function ty(e) {
+ let { onDismiss: t, ...n } = e, r = Yd(n, xf(Hee(ey), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ R.createElement($m, null, /*#__PURE__*/ R.createElement("button", {
+ return /*#__PURE__*/ R.createElement(Qm, null, /*#__PURE__*/ R.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -22154,56 +22148,56 @@ function ny(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var Uee = /*#__PURE__*/ R.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, R.useRef)(!1), i = (0, R.useContext)(em), a = J(i || {}, {
+var ny = /*#__PURE__*/ R.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, R.useRef)(!1), i = (0, R.useContext)($p), a = J(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
}
});
- return a.ref = eu(n || i?.ref), op(i, a.ref), (0, R.useEffect)(() => {
+ return a.ref = $l(n || i?.ref), ap(i, a.ref), (0, R.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ R.createElement(em.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ R.createElement($p.Provider, { value: a }, e);
});
-function Wee({ children: e }) {
+function ry({ children: e }) {
let t = (0, R.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ R.createElement(em.Provider, { value: t }, e);
+ return /*#__PURE__*/ R.createElement($p.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var ry = /*#__PURE__*/ (0, R.createContext)({});
-function iy(e) {
- let { getContainer: t } = e, { getContainer: n } = ay();
- return /*#__PURE__*/ R.createElement(ry.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var iy = /*#__PURE__*/ (0, R.createContext)({});
+function ay(e) {
+ let { getContainer: t } = e, { getContainer: n } = oy();
+ return /*#__PURE__*/ R.createElement(iy.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function ay() {
- return (0, R.useContext)(ry) ?? {};
+function oy() {
+ return (0, R.useContext)(iy) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var oy = /*#__PURE__*/ R.createContext(null);
-function sy(e) {
- let t = Vl(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, R.useState)(!1), o = (0, R.useMemo)(() => ({
+var sy = /*#__PURE__*/ R.createContext(null);
+function cy(e) {
+ let t = Bl(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, R.useState)(!1), o = (0, R.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = ay();
+ }), [i, a]), { getContainer: s } = oy();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ R.createElement(Bg, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ R.createElement(zg, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ R.createElement(oy.Provider, { value: o }, /*#__PURE__*/ R.createElement(Wee, null, /*#__PURE__*/ R.createElement(sp.Provider, { value: null }, c))), /*#__PURE__*/ be.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ R.createElement(sy.Provider, { value: o }, /*#__PURE__*/ R.createElement(ry, null, /*#__PURE__*/ R.createElement(op.Provider, { value: null }, c))), /*#__PURE__*/ be.createPortal(c, n);
}
-function cy() {
- let e = (0, R.useContext)(oy)?.setContain;
- kl(() => {
+function ly() {
+ let e = (0, R.useContext)(sy)?.setContain;
+ Ol(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function ly(e) {
- let [t, n] = wf(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, R.useState)(null);
+function uy(e) {
+ let [t, n] = Cf(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, R.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -22222,13 +22216,13 @@ function ly(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function uy(e, t = !0) {
+function dy(e, t = !0) {
let [n, r] = (0, R.useState)(!0), i = n && t;
- return kl(() => {
+ return Ol(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), fy(e, i, (0, R.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), py(e, i, (0, R.useCallback)(() => r(!1), [])), i;
}
-function dy(e, t) {
+function fy(e, t) {
let [n, r] = (0, R.useState)(t ? "open" : "closed");
switch (n) {
case "open":
@@ -22238,12 +22232,12 @@ function dy(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return fy(e, i, (0, R.useCallback)(() => {
+ return py(e, i, (0, R.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function fy(e, t, n) {
- kl(() => {
+function py(e, t, n) {
+ Ol(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
n();
@@ -22271,9 +22265,9 @@ function fy(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var py = /*#__PURE__*/ (0, R.createContext)(null), my = /*#__PURE__*/ (0, R.createContext)(null), hy = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = au(e, t, py);
- let n = (0, R.useContext)(cb), r = ly(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = dy(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = pp(), { direction: c } = cf();
+var my = /*#__PURE__*/ (0, R.createContext)(null), hy = /*#__PURE__*/ (0, R.createContext)(null), gy = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = iu(e, t, my);
+ let n = (0, R.useContext)(lb), r = uy(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = fy(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = fp(), { direction: c } = sf();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -22284,7 +22278,7 @@ var py = /*#__PURE__*/ (0, R.createContext)(null), my = /*#__PURE__*/ (0, R.crea
defaultChildren: null
})), /*#__PURE__*/ R.createElement(R.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ R.createElement(Gee, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ R.createElement(Uee, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -22293,13 +22287,13 @@ var py = /*#__PURE__*/ (0, R.createContext)(null), my = /*#__PURE__*/ (0, R.crea
dir: c
});
});
-function Gee({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useContext)(my), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Vee({
+function Uee({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useContext)(hy), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Vee({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = uy(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = ru({
+ }, e), m = i.popoverRef, h = dy(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = nu({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -22309,10 +22303,10 @@ function Gee({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
isExiting: t
}
}), v = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [y, b] = (0, R.useState)(i.trigger === "PreviewTrigger");
- kl(() => {
+ Ol(() => {
m.current && b(v && !m.current.querySelector("[role=dialog]"));
}, [m, v]), (0, R.useEffect)(() => {
- y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || Ld() !== "pointer") && m.current && !Eu(m.current) && Wf(m.current);
+ y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || Id() !== "pointer") && m.current && !Tu(m.current) && Uf(m.current);
}, [
y,
m,
@@ -22325,7 +22319,7 @@ function Gee({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}, [_.children, r]), [S, C] = (0, R.useState)(null), w = (0, R.useCallback)(() => {
i.triggerRef.current && C(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- kl(w, [w]), uv({
+ Ol(w, [w]), lv({
ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: w
});
@@ -22334,8 +22328,8 @@ function Gee({ 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__*/ R.createElement(uu.div, {
- ...J(Gp(i, { global: !0 }), l),
+ }, E = /*#__PURE__*/ R.createElement(lu.div, {
+ ...J(Wp(i, { global: !0 }), l),
..._,
id: y ? i.id : void 0,
role: y ? "dialog" : void 0,
@@ -22350,17 +22344,17 @@ function Gee({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ R.createElement(ny, { onDismiss: e.close }), /*#__PURE__*/ R.createElement(See.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ R.createElement(ty, { onDismiss: e.close }), /*#__PURE__*/ R.createElement(See.Provider, { value: {
...d,
placement: f,
ref: a
- } }, x), /*#__PURE__*/ R.createElement(ny, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ R.createElement(sy, {
+ } }, x), /*#__PURE__*/ R.createElement(ty, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ R.createElement(cy, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, E) : /*#__PURE__*/ R.createElement(sy, {
+ }, E) : /*#__PURE__*/ R.createElement(cy, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -22375,187 +22369,187 @@ function Gee({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ R.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ R.createElement(my.Provider, { value: o }, E)));
+ }, /*#__PURE__*/ R.createElement(hy.Provider, { value: o }, E)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Keyboard.mjs
-var Kee = /*#__PURE__*/ (0, R.createContext)({}), gy = {};
-gy = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+var Wee = /*#__PURE__*/ (0, R.createContext)({}), _y = {};
+_y = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var _y = {};
-_y = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var vy = {};
+vy = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var vy = {};
-vy = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var yy = {};
+yy = { 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 yy = {};
-yy = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var by = {};
+by = { 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 by = {};
-by = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var xy = {};
+xy = { 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 xy = {};
-xy = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var Sy = {};
+Sy = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var Sy = {};
-Sy = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var Cy = {};
+Cy = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var Cy = {};
-Cy = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var wy = {};
+wy = { 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 wy = {};
-wy = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var Ty = {};
+Ty = { 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 Ty = {};
-Ty = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var Ey = {};
+Ey = { 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 Ey = {};
-Ey = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var Dy = {};
+Dy = { 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 Dy = {};
-Dy = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var Oy = {};
+Oy = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var Oy = {};
-Oy = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var ky = {};
+ky = { 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 ky = {};
-ky = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var Ay = {};
+Ay = { 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 Ay = {};
-Ay = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var jy = {};
+jy = { 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 jy = {};
-jy = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var My = {};
+My = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var My = {};
-My = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var Ny = {};
+Ny = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var Ny = {};
-Ny = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var Py = {};
+Py = { 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 Py = {};
-Py = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var Fy = {};
+Fy = { 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 Fy = {};
-Fy = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var Iy = {};
+Iy = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var Iy = {};
-Iy = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var Ly = {};
+Ly = { 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 Ly = {};
-Ly = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var Ry = {};
+Ry = { 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 Ry = {};
-Ry = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var zy = {};
+zy = { 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 zy = {};
-zy = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var By = {};
+By = { 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 By = {};
-By = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var Vy = {};
+Vy = { 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 Vy = {};
-Vy = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var Hy = {};
+Hy = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var Hy = {};
-Hy = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var Uy = {};
+Uy = { 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 Uy = {};
-Uy = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var Wy = {};
+Wy = { 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 Wy = {};
-Wy = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var Gy = {};
+Gy = { 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 Gy = {};
-Gy = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var Ky = {};
+Ky = { 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 Ky = {};
-Ky = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var qy = {};
+qy = { 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 qy = {};
-qy = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var Jy = {};
+Jy = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var Jy = {};
-Jy = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var Yy = {};
+Yy = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var Yy = {};
-Yy = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var Xy = {};
+Xy = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var Xy = {};
-Xy = {
- "ar-AE": gy,
- "bg-BG": _y,
- "cs-CZ": vy,
- "da-DK": yy,
- "de-DE": by,
- "el-GR": xy,
- "en-US": Sy,
- "es-ES": Cy,
- "et-EE": wy,
- "fi-FI": Ty,
- "fr-FR": Ey,
- "he-IL": Dy,
- "hr-HR": Oy,
- "hu-HU": ky,
- "it-IT": Ay,
- "ja-JP": jy,
- "ko-KR": My,
- "lt-LT": Ny,
- "lv-LV": Py,
- "nb-NO": Fy,
- "nl-NL": Iy,
- "pl-PL": Ly,
- "pt-BR": Ry,
- "pt-PT": zy,
- "ro-RO": By,
- "ru-RU": Vy,
- "sk-SK": Hy,
- "sl-SI": Uy,
- "sr-SP": Wy,
- "sv-SE": Gy,
- "tr-TR": Ky,
- "uk-UA": qy,
- "zh-CN": Jy,
- "zh-TW": Yy
+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/interactions/useContextMenu.mjs
-function qee(e) {
- let { onContextMenu: t } = e, n = (0, R.useRef)(!1), { longPressProps: r } = v_({
+function Gee(e) {
+ let { onContextMenu: t } = e, n = (0, R.useRef)(!1), { longPressProps: r } = __({
onLongPressStart() {
n.current = !1;
},
@@ -22567,7 +22561,7 @@ function qee(e) {
});
}
});
- return t ? { contextMenuProps: J(rd() ? r : {}, {
+ return t ? { contextMenuProps: J(nd() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -22578,7 +22572,7 @@ function qee(e) {
});
},
onKeyDown(e) {
- if (ed() && e.ctrlKey && e.key === "Enter") {
+ if ($u() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -22598,14 +22592,14 @@ function qee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function Jee(e, t, n) {
+function Kee(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, R.useEffect)(() => {
- n && n.current && lv.set(n.current, t.close);
+ n && n.current && cv.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = ql();
+ let o = Kl();
return {
triggerProps: {
"aria-haspopup": a,
@@ -22618,14 +22612,14 @@ function Jee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function Yee(e) {
+function qee(e) {
return e && e.__esModule ? e.default : e;
}
-function Zy(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = ql(), { triggerProps: s, overlayProps: c } = Jee({ type: r }, t, n), l = (e, n, r = "first") => {
+function Qy(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Kl(), { triggerProps: s, overlayProps: c } = Kee({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = ap({
+ }, { keyboardProps: u } = ip({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -22637,7 +22631,7 @@ function Zy(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = Sf(Yee(Xy), "@react-aria/menu"), { longPressProps: f } = v_({
+ }), d = xf(qee(Zy), "@react-aria/menu"), { longPressProps: f } = __({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -22649,14 +22643,14 @@ function Zy(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (ju(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (Au(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (ju(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (Au(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = qee({ onContextMenu(e) {
+ let { contextMenuProps: m } = Gee({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -22701,13 +22695,13 @@ function Zy(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/utils.mjs
-var Qy = /* @__PURE__ */ new WeakMap();
+var $y = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenu.mjs
-function Xee(e, t, n) {
+function Jee(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = Gp(e, { labelable: !0 }), { listProps: c } = __({
+ let s = Wp(e, { labelable: !0 }), { listProps: c } = g_({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -22716,7 +22710,7 @@ function Xee(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return Qy.set(t, {
+ return $y.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -22733,15 +22727,15 @@ function Xee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function Zee(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 = Qy.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = fd(), M = () => {
+function Yee(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 = $y.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = dd(), M = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
}
}, N = "menuitem";
w || (C.selectionMode === "single" ? N = "menuitemradio" : C.selectionMode === "multiple" && (N = "menuitemcheckbox"));
- let P = Yl(), ee = Yl(), F = Yl(), I = {
+ let P = Jl(), ee = Jl(), F = Jl(), I = {
id: r,
"aria-disabled": E || void 0,
role: N,
@@ -22758,17 +22752,17 @@ function Zee(e, t, n) {
};
if (C.selectionMode !== "none" && !w && (I["aria-checked"] = D), s) {
let e = Number(k?.index);
- I["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, I["aria-setsize"] = k_(t.collection);
+ I["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, I["aria-setsize"] = O_(t.collection);
}
let te = (0, R.useRef)(!1), ne = (e) => {
f?.(e), te.current = e;
}, re = (0, R.useRef)(null), ie = (e) => {
e.pointerType !== "keyboard" && (re.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (te.current || e.target.click()), u?.(e);
}, ae = (e) => {
- m?.(e), M(), yd(e, j, k.props.href, k?.props.routerOptions);
+ m?.(e), M(), vd(e, j, k.props.href, k?.props.routerOptions);
let t = re.current?.pointerType === "keyboard" ? re.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);
t = o ?? a ?? t, A && !w && t && A(), re.current = null;
- }, { itemProps: oe, isFocused: se } = y_({
+ }, { itemProps: oe, isFocused: se } = v_({
id: r,
selectionManager: C,
key: i,
@@ -22777,27 +22771,27 @@ function Zee(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: O.shouldUseVirtualFocus
- }), { pressProps: ce, isPressed: le } = sm({
+ }), { pressProps: ce, isPressed: le } = om({
onPressStart: l,
onPress: d,
onPressUp: ie,
onPressChange: ne,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: ue } = Sm({
+ }), { hoverProps: ue } = xm({
isDisabled: E,
onHoverStart(e) {
- !Id() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
+ !Fd() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
},
onHoverChange: g,
onHoverEnd: _
- }), { keyboardProps: L } = ap({
+ }), { keyboardProps: L } = ip({
shortcuts: {
" ": (e) => {
re.current = {
pointerType: "keyboard",
key: " "
- }, Y(e).click(), Rd("keyboard");
+ }, Y(e).click(), Ld("keyboard");
},
Enter: (e) => {
re.current = {
@@ -22806,10 +22800,10 @@ function Zee(e, t, n) {
};
let t = Y(e);
if (t.tagName !== "A") {
- t.click(), Rd("keyboard");
+ t.click(), Ld("keyboard");
return;
}
- return Rd("keyboard"), {
+ return Ld("keyboard"), {
shouldPreventDefault: !1,
shouldContinuePropagation: !1
};
@@ -22817,13 +22811,13 @@ function Zee(e, t, n) {
},
onKeyDown: v,
onKeyUp: y
- }), { focusableProps: de } = lp({
+ }), { focusableProps: de } = cp({
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), fe = Gp(k?.props);
+ }, n), fe = Wp(k?.props);
delete fe.id;
- let pe = vd(k?.props);
+ let pe = _d(k?.props);
return {
menuItemProps: {
...I,
@@ -22838,7 +22832,7 @@ function Zee(e, t, n) {
descriptionProps: { id: ee },
keyboardShortcutProps: { id: F },
isFocused: se,
- isFocusVisible: se && C.isFocused && Id() && !T,
+ isFocusVisible: se && C.isFocused && Fd() && !T,
isSelected: D,
isPressed: le,
isDisabled: E
@@ -22846,8 +22840,8 @@ function Zee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function Qee(e) {
- let { heading: t, "aria-label": n } = e, r = ql();
+function Xee(e) {
+ let { heading: t, "aria-label": n } = e, r = Kl();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -22863,8 +22857,8 @@ function Qee(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function $y(e) {
- let t = ly(e), [n, r] = (0, R.useState)(null), [i, a] = (0, R.useState)([]), o = () => {
+function eb(e) {
+ let t = uy(e), [n, r] = (0, R.useState)(null), [i, a] = (0, R.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -22890,7 +22884,7 @@ function $y(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var $ee = class {
+var Zee = 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) => {
@@ -22934,8 +22928,8 @@ var $ee = class {
};
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function ete(e) {
- let { onExpandedChange: t } = e, [n, r] = wf(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = N_(e), a = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = R_(e, (0, R.useCallback)((e) => new $ee(e, { expandedKeys: n }), [n]), null);
+function Qee(e) {
+ let { onExpandedChange: t } = e, [n, r] = Cf(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = M_(e), a = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = L_(e, (0, R.useCallback)((e) => new Zee(e, { expandedKeys: n }), [n]), null);
return (0, R.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -22943,32 +22937,32 @@ function ete(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(tte(n, e));
+ r($ee(n, e));
},
setExpandedKeys: r,
- selectionManager: new F_(o, i)
+ selectionManager: new P_(o, i)
};
}
-function tte(e, t) {
+function $ee(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 eb = /*#__PURE__*/ (0, R.createContext)(null), tb = /*#__PURE__*/ (0, R.createContext)(null), nb = /*#__PURE__*/ (0, R.createContext)(null), rb = /*#__PURE__*/ (0, R.createContext)(null);
-function nte(e) {
- let t = $y(e), n = (0, R.useRef)(null), { menuTriggerProps: r, menuProps: i } = Zy({
+var tb = /*#__PURE__*/ (0, R.createContext)(null), nb = /*#__PURE__*/ (0, R.createContext)(null), rb = /*#__PURE__*/ (0, R.createContext)(null), ib = /*#__PURE__*/ (0, R.createContext)(null);
+function ete(e) {
+ let t = eb(e), n = (0, R.useRef)(null), { menuTriggerProps: r, menuProps: i } = Qy({
...e,
type: "menu"
}, t, n), a = (0, R.useRef)(null);
- return pp() ? null : /*#__PURE__*/ R.createElement(nu, { values: [
- [eb, {
+ return fp() ? null : /*#__PURE__*/ R.createElement(tu, { values: [
+ [tb, {
...i,
ref: a
}],
- [cb, t],
- [nb, t],
- [py, {
+ [lb, t],
+ [rb, t],
+ [my, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -22976,14 +22970,14 @@ function nte(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ R.createElement(Uee, {
+ ] }, /*#__PURE__*/ R.createElement(ny, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var rte = /*#__PURE__*/ (0, R.createContext)(null);
-(class extends Df {
+var tte = /*#__PURE__*/ (0, R.createContext)(null);
+(class extends Ef {
static {
this.type = "submenutrigger";
}
@@ -22996,24 +22990,24 @@ var rte = /*#__PURE__*/ (0, R.createContext)(null);
return null;
}
});
-var ite = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- return [e, t] = au(e, t, eb), /*#__PURE__*/ R.createElement(yp, { content: /*#__PURE__*/ R.createElement(jp, e) }, (n) => /*#__PURE__*/ R.createElement(ate, {
+var nte = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ return [e, t] = iu(e, t, tb), /*#__PURE__*/ R.createElement(vp, { content: /*#__PURE__*/ R.createElement(Ap, e) }, (n) => /*#__PURE__*/ R.createElement(rte, {
props: e,
collection: n,
menuRef: t
}));
});
-function ate({ props: e, collection: t, menuRef: n }) {
- [e, n] = au(e, n, Tf);
- let { filter: r, ...i } = e, a = (0, R.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = ete({
+function rte({ props: e, collection: t, menuRef: n }) {
+ [e, n] = iu(e, n, wf);
+ let { filter: r, ...i } = e, a = (0, R.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Qee({
...e,
collection: a,
children: void 0
- }), s = (0, R.useContext)(nb), { isVirtualized: c, CollectionRoot: l } = (0, R.useContext)(Lp), { menuProps: u } = Xee({
+ }), s = (0, R.useContext)(rb), { isVirtualized: c, CollectionRoot: l } = (0, R.useContext)(Ip), { menuProps: u } = Jee({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = ru({
+ }, o, n), d = nu({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -23023,36 +23017,36 @@ function ate({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = Gp(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(Bg, null, /*#__PURE__*/ R.createElement(uu.div, {
+ let p = Wp(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(zg, null, /*#__PURE__*/ R.createElement(lu.div, {
...J(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ R.createElement(nu, { values: [
- [tb, o],
- [Ag, { elementType: "div" }],
- [Np, {
+ }, /*#__PURE__*/ R.createElement(tu, { values: [
+ [nb, o],
+ [kg, { elementType: "div" }],
+ [Mp, {
name: "MenuSection",
- render: ib
+ render: ab
}],
- [rte, {
+ [tte, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [ob, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [sb, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [wf, null],
[Tf, null],
- [Ef, null],
- [rb, o.selectionManager],
- [nb, s ?? $y({})]
- ] }, /*#__PURE__*/ R.createElement(Dg, null, /*#__PURE__*/ R.createElement(l, {
+ [ib, o.selectionManager],
+ [rb, s ?? eb({})]
+ ] }, /*#__PURE__*/ R.createElement(Eg, null, /*#__PURE__*/ R.createElement(l, {
collection: o.collection,
- persistedKeys: Rp(o.selectionManager.focusedKey),
+ persistedKeys: Lp(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var ote = class extends F_ {
+var ite = class extends P_ {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -23072,11 +23066,11 @@ var ote = class extends F_ {
return this.parent.childFocusStrategy;
}
};
-function ib(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, R.useContext)(tb), { CollectionBranch: a } = (0, R.useContext)(Lp), [o, s] = ou(), { headingProps: c, groupProps: l } = Qee({
+function ab(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, R.useContext)(nb), { CollectionBranch: a } = (0, R.useContext)(Ip), [o, s] = au(), { headingProps: c, groupProps: l } = Xee({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = ru({
+ }), u = nu({
...e,
id: void 0,
children: void 0,
@@ -23084,31 +23078,31 @@ function ib(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, R.useContext)(rb), f = N_(e), p = e.selectionMode == null ? d : new ote(d, f), m = iu(ob)?.shouldCloseOnSelect, h = Gp(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ R.createElement(uu.section, {
+ }), d = (0, R.useContext)(ib), f = M_(e), p = e.selectionMode == null ? d : new ite(d, f), m = ru(sb)?.shouldCloseOnSelect, h = Wp(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ R.createElement(lu.section, {
...J(h, u, l),
ref: t
- }, /*#__PURE__*/ R.createElement(nu, { values: [
- [Tg, {
+ }, /*#__PURE__*/ R.createElement(tu, { values: [
+ [wg, {
...c,
ref: o
}],
- [rb, p],
- [ob, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [ib, p],
+ [sb, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ R.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var ab = /*#__PURE__*/ Op(jf, ib), ob = /*#__PURE__*/ (0, R.createContext)(null), sb = /*#__PURE__*/ Dp(Af, function(e, t, n) {
- [e, t] = au(e, t, ob);
- let r = iu(ob)?.id, i = (0, R.useContext)(tb), a = eu(t), o = (0, R.useContext)(rb), { isVirtualized: s } = (0, R.useContext)(Lp), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Zee({
+var ob = /*#__PURE__*/ Dp(Af, ab), sb = /*#__PURE__*/ (0, R.createContext)(null), cb = /*#__PURE__*/ Ep(kf, function(e, t, n) {
+ [e, t] = iu(e, t, sb);
+ let r = ru(sb)?.id, i = (0, R.useContext)(nb), a = $l(t), o = (0, R.useContext)(ib), { isVirtualized: s } = (0, R.useContext)(Ip), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Yee({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = Sm({ isDisabled: f.isDisabled }), h = ru({
+ }, i, a), { hoverProps: p, isHovered: m } = xm({ isDisabled: f.isDisabled }), h = nu({
...e,
id: void 0,
children: n.rendered,
@@ -23122,7 +23116,7 @@ var ab = /*#__PURE__*/ Op(jf, ib), ob = /*#__PURE__*/ (0, R.createContext)(null)
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? uu.a : uu.div, _ = Gp(e, { global: !0 });
+ }), g = e.href ? lu.a : lu.div, _ = Wp(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ R.createElement(g, {
...J(_, h, c, p),
ref: a,
@@ -23135,19 +23129,19 @@ var ab = /*#__PURE__*/ Op(jf, ib), ob = /*#__PURE__*/ (0, R.createContext)(null)
"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,
"data-has-submenu": !!e["aria-haspopup"] || void 0,
"data-open": e["aria-expanded"] === "true" || void 0
- }, /*#__PURE__*/ R.createElement(nu, { values: [
- [zm, { slots: {
- [tu]: l,
+ }, /*#__PURE__*/ R.createElement(tu, { values: [
+ [Rm, { slots: {
+ [eu]: l,
label: l,
description: u
} }],
- [Kee, d],
- [Og, { isSelected: f.isSelected }]
+ [Wee, d],
+ [Dg, { isSelected: f.isSelected }]
] }, h.children));
});
-Dp(kf, function(e, t, n) {
- let r = (0, R.useContext)(tb), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
- V_((0, R.useMemo)(() => ({
+Ep(Of, function(e, t, n) {
+ let r = (0, R.useContext)(nb), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
+ B_((0, R.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -23157,7 +23151,7 @@ Dp(kf, function(e, t, n) {
o,
r?.collection
]), c);
- let l = ru({
+ let l = nu({
...s,
id: void 0,
children: n.rendered,
@@ -23170,7 +23164,7 @@ Dp(kf, function(e, t, n) {
width: 0,
height: 0
},
- inert: A_(!0)
+ inert: k_(!0)
}, /*#__PURE__*/ R.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -23179,8 +23173,8 @@ Dp(kf, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(uu.div, {
- ...J(Gp(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(lu.div, {
+ ...J(Wp(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
@@ -23188,27 +23182,27 @@ Dp(kf, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function ste(e, t) {
- let { role: n = "dialog" } = e, r = Yl();
+function ate(e, t) {
+ let { role: n = "dialog" } = e, r = Jl();
r = e["aria-label"] ? void 0 : r;
- let i = Yl();
+ let i = Jl();
i = n === "alertdialog" && !e["aria-describedby"] ? i : void 0;
let a = (0, R.useRef)(!1);
(0, R.useEffect)(() => {
- if (t.current && !Eu(t.current)) {
- Wf(t.current);
+ if (t.current && !Tu(t.current)) {
+ Uf(t.current);
let e = setTimeout(() => {
- (wu() === t.current || wu() === document.body) && (a.current = !0, t.current && (t.current.blur(), Wf(t.current)), a.current = !1);
+ (Cu() === t.current || Cu() === document.body) && (a.current = !0, t.current && (t.current.blur(), Uf(t.current)), a.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t]), cy(), (0, R.useRef)(!1), (0, R.useEffect)(() => {});
+ }, [t]), ly(), (0, R.useRef)(!1), (0, R.useEffect)(() => {});
let o = e["aria-describedby"] ?? i;
return {
dialogProps: {
- ...Gp(e, { labelable: !0 }),
+ ...Wp(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? r,
@@ -23223,54 +23217,54 @@ function ste(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var cte = /*#__PURE__*/ (0, R.createContext)(null), cb = /*#__PURE__*/ (0, R.createContext)(null), lb = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+var ote = /*#__PURE__*/ (0, R.createContext)(null), lb = /*#__PURE__*/ (0, R.createContext)(null), ub = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = au(e, t, cte);
- let { dialogProps: r, titleProps: i, contentProps: a } = ste({
+ [e, t] = iu(e, t, ote);
+ let { dialogProps: r, titleProps: i, contentProps: a } = ate({
...e,
"aria-labelledby": n
- }, t), o = (0, R.useContext)(cb);
+ }, t), o = (0, R.useContext)(lb);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = ru({
+ let s = nu({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = Gp(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(uu.section, {
+ }), c = Wp(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(lu.section, {
...J(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ R.createElement(nu, { values: [
- [Lm, { slots: {
- [tu]: {},
+ }, /*#__PURE__*/ R.createElement(tu, { values: [
+ [Im, { slots: {
+ [eu]: {},
title: {
...i,
level: 2
}
} }],
- [zm, { slots: {
- [tu]: {},
+ [Rm, { slots: {
+ [eu]: {},
description: a
} }],
- [Nm, { slots: {
- [tu]: {},
+ [Mm, { slots: {
+ [eu]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
});
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function lte(e = {}) {
- let { locale: t } = cf();
+function ste(e = {}) {
+ let { locale: t } = sf();
return (0, R.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var ub = {};
-ub = {
+var db = {};
+db = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -23284,8 +23278,8 @@ ub = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var db = {};
-db = {
+var fb = {};
+fb = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -23299,8 +23293,8 @@ db = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var fb = {};
-fb = {
+var pb = {};
+pb = {
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",
@@ -23314,8 +23308,8 @@ fb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var pb = {};
-pb = {
+var mb = {};
+mb = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -23329,8 +23323,8 @@ pb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var mb = {};
-mb = {
+var hb = {};
+hb = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -23344,8 +23338,8 @@ mb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var hb = {};
-hb = {
+var gb = {};
+gb = {
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: "Επιλογή",
@@ -23359,8 +23353,8 @@ hb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var gb = {};
-gb = {
+var _b = {};
+_b = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -23374,8 +23368,8 @@ gb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var _b = {};
-_b = {
+var vb = {};
+vb = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -23389,8 +23383,8 @@ _b = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var vb = {};
-vb = {
+var yb = {};
+yb = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -23404,8 +23398,8 @@ vb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var yb = {};
-yb = {
+var bb = {};
+bb = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -23419,8 +23413,8 @@ yb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var bb = {};
-bb = {
+var xb = {};
+xb = {
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",
@@ -23434,8 +23428,8 @@ bb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var xb = {};
-xb = {
+var Sb = {};
+Sb = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -23449,8 +23443,8 @@ xb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var Sb = {};
-Sb = {
+var Cb = {};
+Cb = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -23464,8 +23458,8 @@ Sb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var Cb = {};
-Cb = {
+var wb = {};
+wb = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -23479,8 +23473,8 @@ Cb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var wb = {};
-wb = {
+var Tb = {};
+Tb = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -23494,8 +23488,8 @@ wb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var Tb = {};
-Tb = {
+var Eb = {};
+Eb = {
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: "選択",
@@ -23509,8 +23503,8 @@ Tb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var Eb = {};
-Eb = {
+var Db = {};
+Db = {
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: "선택",
@@ -23524,8 +23518,8 @@ Eb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var Db = {};
-Db = {
+var Ob = {};
+Ob = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -23539,8 +23533,8 @@ Db = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var Ob = {};
-Ob = {
+var kb = {};
+kb = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -23554,8 +23548,8 @@ Ob = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var kb = {};
-kb = {
+var Ab = {};
+Ab = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -23569,8 +23563,8 @@ kb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var Ab = {};
-Ab = {
+var jb = {};
+jb = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -23584,8 +23578,8 @@ Ab = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var jb = {};
-jb = {
+var Mb = {};
+Mb = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -23599,8 +23593,8 @@ jb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var Mb = {};
-Mb = {
+var Nb = {};
+Nb = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -23614,8 +23608,8 @@ Mb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var Nb = {};
-Nb = {
+var Pb = {};
+Pb = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -23629,8 +23623,8 @@ Nb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var Pb = {};
-Pb = {
+var Fb = {};
+Fb = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -23644,8 +23638,8 @@ Pb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var Fb = {};
-Fb = {
+var Ib = {};
+Ib = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -23659,8 +23653,8 @@ Fb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var Ib = {};
-Ib = {
+var Lb = {};
+Lb = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -23674,8 +23668,8 @@ Ib = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var Lb = {};
-Lb = {
+var Rb = {};
+Rb = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -23689,8 +23683,8 @@ Lb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var Rb = {};
-Rb = {
+var zb = {};
+zb = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -23704,8 +23698,8 @@ Rb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var zb = {};
-zb = {
+var Bb = {};
+Bb = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -23719,8 +23713,8 @@ zb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var Bb = {};
-Bb = {
+var Vb = {};
+Vb = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -23734,8 +23728,8 @@ Bb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var Vb = {};
-Vb = {
+var Hb = {};
+Hb = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -23749,8 +23743,8 @@ Vb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var Hb = {};
-Hb = {
+var Ub = {};
+Ub = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -23764,8 +23758,8 @@ Hb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var Ub = {};
-Ub = {
+var Wb = {};
+Wb = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -23779,55 +23773,55 @@ Ub = {
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs
-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
+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
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function ute(e) {
+function cte(e) {
return e && e.__esModule ? e.default : e;
}
-function dte(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Sf(ute(Wb), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, R.useRef)(i), o = (0, R.useCallback)(() => {
+function lte(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = xf(cte(Gb), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, R.useRef)(i), o = (0, R.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = Gb(i, a.current), o = Gb(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = Kb(i, a.current), o = Kb(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)) {
@@ -23847,7 +23841,7 @@ function dte(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 && Am(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 && km(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -23858,7 +23852,7 @@ function dte(e, t) {
n,
r
]);
- Vm(() => {
+ Bm(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -23866,7 +23860,7 @@ function dte(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function Gb(e, t) {
+function Kb(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);
@@ -23874,13 +23868,13 @@ function Gb(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function Kb(e, t) {
+function qb(e, t) {
let n = t?.isDisabled, [r, i] = (0, R.useState)(!1);
- return kl(() => {
+ return Ol(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = r_(e.current, { tabbable: !0 });
+ let t = n_(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -23899,12 +23893,12 @@ function Kb(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function fte(e) {
+function ute(e) {
return e && e.__esModule ? e.default : e;
}
-function pte(e) {
- let t = Sf(fte(Wb), "@react-aria/grid"), n = zd(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return Xm((0, R.useMemo)(() => {
+function dte(e) {
+ let t = xf(ute(Gb), "@react-aria/grid"), n = Rd(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return Ym((0, R.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;
}, [
@@ -23917,14 +23911,14 @@ function pte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function mte(e) {
+function fte(e) {
return e && e.__esModule ? e.default : e;
}
-function hte(e, t) {
- let { key: n } = e, r = t.selectionManager, i = ql(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+function pte(e, t) {
+ let { key: n } = e, r = t.selectionManager, i = Kl(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": Sf(mte(Wb), "@react-aria/grid").format("select"),
+ "aria-label": xf(fte(Gb), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -23932,14 +23926,14 @@ function hte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function gte(e, t, n) {
- let { overlayProps: r, underlayProps: i } = mv({
+function mte(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = pv({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- return vv({ isDisabled: !t.isOpen }), cy(), (0, R.useEffect)(() => {
- if (t.isOpen && n.current) return J_([n.current], { shouldUseInert: !0 });
+ return _v({ isDisabled: !t.isOpen }), ly(), (0, R.useEffect)(() => {
+ if (t.isOpen && n.current) return q_([n.current], { shouldUseInert: !0 });
}, [t.isOpen, n]), {
modalProps: J(r),
underlayProps: i
@@ -23947,46 +23941,46 @@ function gte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useViewportSize.mjs
-var qb = typeof document < "u" && window.visualViewport;
-function _te() {
- let e = Vl(), [t, n] = (0, R.useState)(() => e ? {
+var Jb = typeof document < "u" && window.visualViewport;
+function hte() {
+ let e = Bl(), [t, n] = (0, R.useState)(() => e ? {
width: 0,
height: 0
- } : Jb());
+ } : Yb());
return (0, R.useEffect)(() => {
let e = (e) => {
n((t) => e.width === t.width && e.height === t.height ? t : e);
}, t = () => {
- qb && qb.scale > 1 || e(Jb());
+ Jb && Jb.scale > 1 || e(Yb());
}, r, i = (t) => {
- qb && qb.scale > 1 || Kd(Y(t)) && (r = requestAnimationFrame(() => {
- let t = wu();
- (!t || !Kd(t)) && e({
+ Jb && Jb.scale > 1 || Gd(Y(t)) && (r = requestAnimationFrame(() => {
+ let t = Cu();
+ (!t || !Gd(t)) && e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(Jb()), rd() && ad() && window.addEventListener("blur", i, !0), qb ? qb.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
- cancelAnimationFrame(r), rd() && ad() && window.removeEventListener("blur", i, !0), qb ? qb.removeEventListener("resize", t) : window.removeEventListener("resize", t);
+ return e(Yb()), nd() && id() && window.addEventListener("blur", i, !0), Jb ? Jb.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
+ cancelAnimationFrame(r), nd() && id() && window.removeEventListener("blur", i, !0), Jb ? Jb.removeEventListener("resize", t) : window.removeEventListener("resize", t);
};
}, []), t;
}
-function Jb() {
+function Yb() {
return {
- width: qb ? Math.min(qb.width * qb.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: qb ? qb.height * qb.scale : document.documentElement.clientHeight
+ width: Jb ? Math.min(Jb.width * Jb.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: Jb ? Jb.height * Jb.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var vte = /*#__PURE__*/ (0, R.createContext)(null), Yb = /*#__PURE__*/ (0, R.createContext)(null), yte = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- if ((0, R.useContext)(Yb)) return /*#__PURE__*/ R.createElement(Zb, {
+var gte = /*#__PURE__*/ (0, R.createContext)(null), Xb = /*#__PURE__*/ (0, R.createContext)(null), _te = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ if ((0, R.useContext)(Xb)) return /*#__PURE__*/ R.createElement(Qb, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ R.createElement(Xb, {
+ return /*#__PURE__*/ R.createElement(Zb, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -23996,15 +23990,15 @@ var vte = /*#__PURE__*/ (0, R.createContext)(null), Yb = /*#__PURE__*/ (0, R.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ R.createElement(Zb, {
+ }, /*#__PURE__*/ R.createElement(Qb, {
...f,
modalRef: t
}, s));
});
-function bte(e, t) {
- [e, t] = au(e, t, vte);
- let n = (0, R.useContext)(cb), r = ly(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = eu(t), o = (0, R.useRef)(null), s = dy(a, i.isOpen), c = dy(o, i.isOpen), l = s || c || e.isExiting || !1, u = Vl();
- return !i.isOpen && !l || u ? null : /*#__PURE__*/ R.createElement(xte, {
+function vte(e, t) {
+ [e, t] = iu(e, t, gte);
+ let n = (0, R.useContext)(lb), r = uy(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = $l(t), o = (0, R.useRef)(null), s = fy(a, i.isOpen), c = fy(o, i.isOpen), l = s || c || e.isExiting || !1, u = Bl();
+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ R.createElement(yte, {
...e,
state: i,
isExiting: l,
@@ -24012,9 +24006,9 @@ function bte(e, t) {
modalRef: o
});
}
-var Xb = /*#__PURE__*/ (0, R.forwardRef)(bte);
-function xte({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = gte(t, r, n), o = uy(t.overlayRef) || t.isEntering || !1, s = ru({
+var Zb = /*#__PURE__*/ (0, R.forwardRef)(vte);
+function yte({ UNSTABLE_portalContainer: e, ...t }) {
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = mte(t, r, n), o = dy(t.overlayRef) || t.isEntering || !1, s = nu({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -24022,9 +24016,9 @@ function xte({ UNSTABLE_portalContainer: e, ...t }) {
isExiting: t.isExiting,
state: r
}
- }), c = _te(), l, u;
+ }), c = hte(), l, u;
if (typeof document < "u") {
- let e = Hm(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = Vm(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 = {
@@ -24034,25 +24028,25 @@ function xte({ UNSTABLE_portalContainer: e, ...t }) {
"--page-width": l === void 0 ? void 0 : l + "px",
"--page-height": u === void 0 ? void 0 : u + "px"
};
- return /*#__PURE__*/ R.createElement(sy, {
+ return /*#__PURE__*/ R.createElement(cy, {
isExiting: t.isExiting,
portalContainer: e
- }, /*#__PURE__*/ R.createElement(uu.div, {
- ...J(Gp(t, { global: !0 }), a),
+ }, /*#__PURE__*/ R.createElement(lu.div, {
+ ...J(Wp(t, { global: !0 }), a),
...s,
style: d,
ref: t.overlayRef,
"data-entering": o || void 0,
"data-exiting": t.isExiting || void 0
- }, /*#__PURE__*/ R.createElement(nu, { values: [[Yb, {
+ }, /*#__PURE__*/ R.createElement(tu, { values: [[Xb, {
modalProps: i,
modalRef: n,
isExiting: t.isExiting,
isDismissable: t.isDismissable
- }], [cb, r]] }, s.children)));
+ }], [lb, r]] }, s.children)));
}
-function Zb(e) {
- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, R.useContext)(Yb), a = (0, R.useContext)(cb), o = eu((0, R.useMemo)(() => Xl(e.modalRef, n), [e.modalRef, n])), s = uy(o), c = ru({
+function Qb(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, R.useContext)(Xb), a = (0, R.useContext)(lb), o = $l((0, R.useMemo)(() => Yl(e.modalRef, n), [e.modalRef, n])), s = dy(o), c = nu({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -24061,23 +24055,23 @@ function Zb(e) {
state: a
}
});
- return /*#__PURE__*/ R.createElement(uu.div, {
- ...J(Gp(e, { global: !0 }), t),
+ return /*#__PURE__*/ R.createElement(lu.div, {
+ ...J(Wp(e, { global: !0 }), t),
...c,
ref: o,
"data-entering": s || void 0,
"data-exiting": r || void 0
- }, i && /*#__PURE__*/ R.createElement(ny, { onDismiss: a.close }), c.children);
+ }, i && /*#__PURE__*/ R.createElement(ty, { onDismiss: a.close }), c.children);
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var Qb = /* @__PURE__ */ new WeakMap();
+var $b = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function Ste(e, t, n) {
+function bte(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: _ } = sm({
+ }, { pressProps: g, isPressed: _ } = om({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -24085,7 +24079,7 @@ function Ste(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = sm({
+ }), { pressProps: v, isPressed: y } = om({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -24095,11 +24089,11 @@ function Ste(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = lp(J(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = J(g, b), S = Gp(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = cp(J(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = J(g, b), S = Wp(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 } = Qb.get(t);
- hh(n, t.defaultSelectedValue, t.setSelectedValue), gh({ validationBehavior: O }, t, n);
- let k = xh();
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = $b.get(t);
+ mh(n, t.defaultSelectedValue, t.setSelectedValue), hh({ validationBehavior: O }, t, n);
+ let k = bh();
return {
labelProps: J(v, (0, R.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
@@ -24131,13 +24125,13 @@ function Ste(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function Cte(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = cf(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = mh({
+function xte(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = sf(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = ph({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = Gp(e, { labelable: !0 }), { focusWithinProps: v } = hm({
+ }), _ = Wp(e, { labelable: !0 }), { focusWithinProps: v } = mm({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -24145,13 +24139,13 @@ function Cte(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = r_(n.currentTarget, {
+ let r = n_(n.currentTarget, {
from: Y(n),
- accept: (e) => e instanceof mu(e).HTMLInputElement && e.type === "radio"
+ accept: (e) => e instanceof pu(e).HTMLInputElement && e.type === "radio"
}), i;
return e === "next" ? (i = r.nextNode(), i ||= (r.currentNode = n.currentTarget, r.firstChild())) : (i = r.previousNode(), i ||= (r.currentNode = n.currentTarget, r.lastChild())), i ? (i.focus(), t.setSelectedValue(i.value), !0) : !1;
}
- let { keyboardProps: b } = ap({
+ let { keyboardProps: b } = ip({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -24159,8 +24153,8 @@ function Cte(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = ql(n);
- return Qb.set(t, {
+ }), x = Kl(n);
+ return $b.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -24189,9 +24183,9 @@ function Cte(e, t) {
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var wte = Math.round(Math.random() * 1e10), Tte = 0;
-function Ete(e) {
- let t = (0, R.useMemo)(() => e.name || `radio-group-${wte}-${++Tte}`, [e.name]), [n, r] = wf(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, R.useState)(n), [a, o] = (0, R.useState)(null), s = oh({
+var Ste = Math.round(Math.random() * 1e10), Cte = 0;
+function wte(e) {
+ let t = (0, R.useMemo)(() => e.name || `radio-group-${Ste}-${++Cte}`, [e.name]), [n, r] = Cf(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, R.useState)(n), [a, o] = (0, R.useState)(null), s = ah({
...e,
value: n
}), c = (t) => {
@@ -24214,16 +24208,16 @@ function Ete(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Dte = /*#__PURE__*/ (0, R.createContext)(null), Ote = /*#__PURE__*/ (0, R.createContext)(null), $b = /*#__PURE__*/ (0, R.createContext)(null), ex = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = au(e, t, Dte);
- let { validationBehavior: n } = iu(fh) || {}, r = e.validationBehavior ?? n ?? "native", i = Ete({
+var Tte = /*#__PURE__*/ (0, R.createContext)(null), Ete = /*#__PURE__*/ (0, R.createContext)(null), ex = /*#__PURE__*/ (0, R.createContext)(null), tx = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = iu(e, t, Tte);
+ let { validationBehavior: n } = ru(dh) || {}, r = e.validationBehavior ?? n ?? "native", i = wte({
...e,
validationBehavior: r
- }), [a, o] = ou(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Cte({
+ }), [a, o] = au(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = xte({
...e,
label: o,
validationBehavior: r
- }, i), f = ru({
+ }, i), f = nu({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -24234,8 +24228,8 @@ var Dte = /*#__PURE__*/ (0, R.createContext)(null), Ote = /*#__PURE__*/ (0, R.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = Gp(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(uu.div, {
+ }), p = Wp(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(lu.div, {
...J(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -24244,39 +24238,39 @@ var Dte = /*#__PURE__*/ (0, R.createContext)(null), Ote = /*#__PURE__*/ (0, R.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ R.createElement(nu, { values: [
- [$b, i],
- [Cm, {
+ }, /*#__PURE__*/ R.createElement(tu, { values: [
+ [ex, i],
+ [Sm, {
...c,
ref: a,
elementType: "span"
}],
- [zm, { slots: {
+ [Rm, { slots: {
description: l,
errorMessage: u
} }],
- [eh, d]
- ] }, /*#__PURE__*/ R.createElement(Dg, null, f.children)));
-}), tx = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [$m, d]
+ ] }, /*#__PURE__*/ R.createElement(Eg, null, f.children)));
+}), nx = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = au(r, t, Ote);
- let i = R.useContext($b), a = eu((0, R.useMemo)(() => Xl(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Ste({
- ...su(e),
+ [e, t] = iu(r, t, Ete);
+ let i = R.useContext(ex), a = $l((0, R.useMemo)(() => Yl(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = bte({
+ ...ou(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ R.createElement(nx.Provider, { value: {
+ return /*#__PURE__*/ R.createElement(rx.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ R.createElement(kte, {
+ } }, /*#__PURE__*/ R.createElement(Dte, {
...e,
ref: t
}));
-}), nx = /*#__PURE__*/ (0, R.createContext)(null), kte = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, R.useContext)(nx), l = R.useContext($b), { isFocused: u, isFocusVisible: d, focusProps: f } = gm(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = Sm({
+}), rx = /*#__PURE__*/ (0, R.createContext)(null), Dte = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, R.useContext)(rx), l = R.useContext(ex), { isFocused: u, isFocusVisible: d, focusProps: f } = hm(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = xm({
...e,
isDisabled: p
- }), g = ru({
+ }), g = nu({
...e,
defaultClassName: s,
values: {
@@ -24290,8 +24284,8 @@ var Dte = /*#__PURE__*/ (0, R.createContext)(null), Ote = /*#__PURE__*/ (0, R.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = Gp(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ R.createElement(uu.label, {
+ }), _ = Wp(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ R.createElement(lu.label, {
...J(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -24303,25 +24297,25 @@ var Dte = /*#__PURE__*/ (0, R.createContext)(null), Ote = /*#__PURE__*/ (0, R.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ R.createElement($m, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
+ }, /*#__PURE__*/ R.createElement(Qm, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
...J(r, f),
ref: c
})), g.children);
-}), rx = /* @__PURE__ */ new WeakMap();
-function Ate(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = g_({
+}), ix = /* @__PURE__ */ new WeakMap();
+function Ote(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = h_({
usage: "search",
sensitivity: "base"
- }), u = (0, R.useMemo)(() => r || new m_(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, R.useMemo)(() => r || new p_(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = Zy({
+ ]), { menuTriggerProps: d, menuProps: f } = Qy({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = ap({
+ }, t, n), { keyboardProps: p } = ip({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -24337,21 +24331,21 @@ function Ate(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = u_({
+ }), { typeSelectProps: m } = l_({
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 } = mh({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = ph({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = Gp(e, { labelable: !0 }), C = J(m, d, y), w = ql();
- return rx.set(t, {
+ let S = Wp(e, { labelable: !0 }), C = J(m, d, y), w = Kl();
+ return ix.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -24361,13 +24355,13 @@ function Ate(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), Rd("keyboard"));
+ e.isDisabled || (n.current?.focus(), Ld("keyboard"));
}
},
triggerProps: J(S, {
...C,
isDisabled: i,
- onKeyDown: Ol(C.onKeyDown, p.onKeyDown),
+ onKeyDown: Dl(C.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
w,
@@ -24391,7 +24385,7 @@ function Ate(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- Cu(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ Su(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
},
"aria-labelledby": [y["aria-labelledby"], C["aria-label"] && !y["aria-labelledby"] ? C.id : null].filter(Boolean).join(" ")
},
@@ -24412,13 +24406,13 @@ function Ate(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function jte(e, t, n) {
- let r = rx.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = Qm({ style: {
+function kte(e, t, n) {
+ let r = ix.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = Zm({ style: {
position: "fixed",
top: 0,
left: 0
} });
- hh(e.selectRef, t.defaultValue, t.setValue), gh({
+ mh(e.selectRef, t.defaultValue, t.setValue), hh({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
@@ -24448,8 +24442,8 @@ function jte(e, t, n) {
}
};
}
-function Mte(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, R.useRef)(null), c = (0, R.useRef)(null), { containerProps: l, selectProps: u } = jte({
+function Ate(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, R.useRef)(null), c = (0, R.useRef)(null), { containerProps: l, selectProps: u } = kte({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -24473,7 +24467,7 @@ function Mte(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = rx.get(t) || {};
+ let { validationBehavior: e } = ix.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -24504,12 +24498,12 @@ function Mte(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function Nte(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = ly(e), [i, a] = (0, R.useState)(null), o = (0, R.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function jte(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = uy(e), [i, a] = (0, R.useState)(null), o = (0, R.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = wf((0, R.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = Cf((0, R.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -24521,12 +24515,12 @@ function Nte(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = z_({
+ }, d = R_({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, R.useMemo)(() => Pte(l), [l]),
+ selectedKeys: (0, R.useMemo)(() => Mte(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -24536,7 +24530,7 @@ function Nte(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, R.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = oh({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, R.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = ah({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, R.useState)(!1), [_] = (0, R.useState)(l);
@@ -24563,16 +24557,16 @@ function Nte(e) {
setFocused: g
};
}
-function Pte(e) {
+function Mte(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 Fte(e) {
+function Nte(e) {
return e && e.__esModule ? e.default : e;
}
-var ix = /*#__PURE__*/ (0, R.createContext)(null), ax = /*#__PURE__*/ (0, R.createContext)(null), Ite = /*#__PURE__*/ fp(function(e, t) {
- [e, t] = au(e, t, ix);
+var ax = /*#__PURE__*/ (0, R.createContext)(null), ox = /*#__PURE__*/ (0, R.createContext)(null), Pte = /*#__PURE__*/ dp(function(e, t) {
+ [e, t] = iu(e, t, ax);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, R.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -24587,24 +24581,24 @@ var ix = /*#__PURE__*/ (0, R.createContext)(null), ax = /*#__PURE__*/ (0, R.crea
i,
a
]);
- return /*#__PURE__*/ R.createElement(yp, { content: o }, (n) => /*#__PURE__*/ R.createElement(Rte, {
+ return /*#__PURE__*/ R.createElement(vp, { content: o }, (n) => /*#__PURE__*/ R.createElement(Ite, {
props: e,
collection: n,
selectRef: t
}));
-}), Lte = [
- Cm,
- Nm,
- zm
+}), Fte = [
+ Sm,
+ Mm,
+ Rm
];
-function Rte({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = iu(fh) || {}, i = e.validationBehavior ?? r ?? "native", a = Nte({
+function Ite({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = ru(dh) || {}, i = e.validationBehavior ?? r ?? "native", a = jte({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = gm({ within: !0 }), c = (0, R.useRef)(null), [l, u] = ou(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Ate({
- ...su(e),
+ }), { isFocusVisible: o, focusProps: s } = hm({ within: !0 }), c = (0, R.useRef)(null), [l, u] = au(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Ote({
+ ...ou(e),
label: u,
validationBehavior: i
}, a, c), y = (0, R.useMemo)(() => ({
@@ -24621,48 +24615,48 @@ function Rte({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = ru({
+ ]), b = nu({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = Gp(e, { global: !0 });
+ }), x = Wp(e, { global: !0 });
delete x.id;
let S = (0, R.useRef)(null);
- return /*#__PURE__*/ R.createElement(nu, { values: [
- [ix, e],
- [ax, a],
- [ox, p],
- [Cm, {
+ return /*#__PURE__*/ R.createElement(tu, { values: [
+ [ax, e],
+ [ox, a],
+ [sx, p],
+ [Sm, {
...d,
ref: l,
elementType: "span"
}],
- [Nm, {
+ [Mm, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [cb, a],
- [py, {
+ [lb, a],
+ [my, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: Lte
+ clearContexts: Fte
}],
- [H_, {
+ [V_, {
...m,
ref: S
}],
- [U_, a],
- [zm, { slots: {
+ [H_, a],
+ [Rm, { slots: {
description: h,
errorMessage: g
} }],
- [eh, v]
- ] }, /*#__PURE__*/ R.createElement(uu.div, {
+ [$m, v]
+ ] }, /*#__PURE__*/ R.createElement(lu.div, {
...J(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -24672,14 +24666,14 @@ function Rte({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ R.createElement(Mte, {
+ }, b.children, /*#__PURE__*/ R.createElement(Ate, {
..._,
autoComplete: e.autoComplete
})));
}
-var ox = /*#__PURE__*/ (0, R.createContext)(null), zte = /*#__PURE__*/ fp(function(e, t) {
- [e, t] = au(e, t, ox);
- let n = (0, R.useContext)(ax), { placeholder: r } = iu(ix), i = n.selectedItems.map((e) => {
+var sx = /*#__PURE__*/ (0, R.createContext)(null), Lte = /*#__PURE__*/ dp(function(e, t) {
+ [e, t] = iu(e, t, sx);
+ let n = (0, R.useContext)(ox), { placeholder: r } = ru(ax), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -24691,7 +24685,7 @@ var ox = /*#__PURE__*/ (0, R.createContext)(null), zte = /*#__PURE__*/ fp(functi
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = lte(), o = (0, R.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, R.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = ste(), o = (0, R.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, R.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -24706,7 +24700,7 @@ var ox = /*#__PURE__*/ (0, R.createContext)(null), zte = /*#__PURE__*/ fp(functi
a,
o,
i
- ]), u = Sf(Fte(yg), "react-aria-components"), d = ru({
+ ]), u = xf(Nte(vg), "react-aria-components"), d = nu({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -24717,18 +24711,18 @@ var ox = /*#__PURE__*/ (0, R.createContext)(null), zte = /*#__PURE__*/ fp(functi
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = Gp(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(uu.span, {
+ }), f = Wp(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(lu.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ R.createElement(zm.Provider, { value: void 0 }, d.children));
+ }, /*#__PURE__*/ R.createElement(Rm.Provider, { value: void 0 }, d.children));
});
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function Bte(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = Sh(e, t, n);
+function Rte(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = xh(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -24740,26 +24734,26 @@ function Bte(e, t, n) {
...o
};
}
-for (var Vte = /*#__PURE__*/ (0, R.createContext)(null), sx = /*#__PURE__*/ (0, R.createContext)(null), Hte = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+for (var zte = /*#__PURE__*/ (0, R.createContext)(null), cx = /*#__PURE__*/ (0, R.createContext)(null), Bte = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = au(r, t, Vte);
- let i = eu((0, R.useMemo)(() => Xl(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = wh(e), o = Bte({
- ...su(e),
+ [e, t] = iu(r, t, zte);
+ let i = $l((0, R.useMemo)(() => Yl(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = Ch(e), o = Rte({
+ ...ou(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ R.createElement(nu, { values: [[sx, a], [cx, {
+ return /*#__PURE__*/ R.createElement(tu, { values: [[cx, a], [lx, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ R.createElement(Ute, {
+ }]] }, /*#__PURE__*/ R.createElement(Vte, {
...e,
ref: t
}));
-}), cx = /*#__PURE__*/ (0, R.createContext)(null), Ute = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, R.useContext)(cx), { isFocused: f, isFocusVisible: p, focusProps: m } = gm(), h = a || o, g = (0, R.useContext)(sx), { hoverProps: _, isHovered: v } = Sm({
+}), lx = /*#__PURE__*/ (0, R.createContext)(null), Vte = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, R.useContext)(lx), { isFocused: f, isFocusVisible: p, focusProps: m } = hm(), h = a || o, g = (0, R.useContext)(cx), { hoverProps: _, isHovered: v } = xm({
...e,
isDisabled: h
- }), y = ru({
+ }), y = nu({
...e,
defaultClassName: u,
values: {
@@ -24774,8 +24768,8 @@ for (var Vte = /*#__PURE__*/ (0, R.createContext)(null), sx = /*#__PURE__*/ (0,
isRequired: d || !1,
state: g
}
- }), b = Gp(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(uu.label, {
+ }), b = Wp(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(lu.label, {
...J(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -24788,11 +24782,11 @@ for (var Vte = /*#__PURE__*/ (0, R.createContext)(null), sx = /*#__PURE__*/ (0,
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ R.createElement($m, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
+ }, /*#__PURE__*/ R.createElement(Qm, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
...J(r, m),
ref: l
})), y.children);
-}), lx = 10, ux = 5, Wte = class {
+}), ux = 10, dx = 5, Hte = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -24802,7 +24796,7 @@ for (var Vte = /*#__PURE__*/ (0, R.createContext)(null), sx = /*#__PURE__*/ (0,
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > ux && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > lx && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > dx && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > ux && (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);
@@ -24881,11 +24875,11 @@ for (var Vte = /*#__PURE__*/ (0, R.createContext)(null), sx = /*#__PURE__*/ (0,
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > ux && i) {
+ if (Math.abs(r - c.lastSwitchY) > dx && 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 > lx && a) {
+ if (l > ux && 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;
}
@@ -24900,7 +24894,7 @@ for (var Vte = /*#__PURE__*/ (0, R.createContext)(null), sx = /*#__PURE__*/ (0,
boundaryContext: null
};
}
-}, Gte = class {
+}, Ute = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -24970,8 +24964,8 @@ for (var Vte = /*#__PURE__*/ (0, R.createContext)(null), sx = /*#__PURE__*/ (0,
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, dx = "row-header-column-" + Math.random().toString(36).slice(2), fx = "row-header-column-" + Math.random().toString(36).slice(2); dx === fx;) fx = "row-header-column-" + Math.random().toString(36).slice(2);
-function px(e, t) {
+}, fx = "row-header-column-" + Math.random().toString(36).slice(2), px = "row-header-column-" + Math.random().toString(36).slice(2); fx === px;) px = "row-header-column-" + Math.random().toString(36).slice(2);
+function mx(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -25055,13 +25049,13 @@ function px(e, t) {
textValue: ""
}));
}
-var Kte = class extends Gte {
+var Wte = class extends Ute {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: dx,
+ key: fx,
value: null,
textValue: "",
level: 0,
@@ -25076,7 +25070,7 @@ var Kte = class extends Gte {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: fx,
+ key: px,
value: null,
textValue: "",
level: 0,
@@ -25103,7 +25097,7 @@ var Kte = class extends Gte {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = px(s, a);
+ let l = mx(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -25129,10 +25123,10 @@ var Kte = class extends Gte {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return C_(this.body.childNodes)?.key ?? null;
+ return S_(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return T_(this.body.childNodes)?.key ?? null;
+ return w_(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -25164,19 +25158,19 @@ var Kte = class extends Gte {
};
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function qte(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || N_(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function Gte(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || M_(e), i = (0, R.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 = S_(n, t);
- e = r === "last" ? T_(i)?.key ?? null : C_(i)?.key ?? null;
+ let i = x_(n, t);
+ e = r === "last" ? w_(i)?.key ?? null : S_(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, R.useMemo)(() => new F_(t, r), [t, r]), s = (0, R.useRef)(null);
+ let o = (0, R.useMemo)(() => new P_(t, r), [t, r]), s = (0, R.useRef)(null);
return (0, R.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;
@@ -25196,7 +25190,7 @@ function qte(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...S_(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...x_(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);
}
@@ -25215,11 +25209,11 @@ function qte(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var Jte = {
+var Kte = {
ascending: "descending",
descending: "ascending"
};
-function Yte(e) {
+function qte(e) {
let [t, n] = (0, R.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, R.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -25230,11 +25224,11 @@ function Yte(e) {
i,
r,
a
- ]), c = R_(e, (0, R.useCallback)((e) => new Kte(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = qte({
+ ]), c = L_(e, (0, R.useCallback)((e) => new Wte(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Gte({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = wf(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = Cf(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -25246,7 +25240,7 @@ function Yte(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? Jte[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? Kte[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -25259,7 +25253,7 @@ function Yte(e) {
treeColumn: o
};
}
-function Xte(e, t) {
+function Jte(e, t) {
let n = (0, R.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -25269,10 +25263,10 @@ function Xte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var mx = class {
+var hx = class {
constructor(e) {
if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw Error("Either a layout or a ref must be specified.");
- this.layoutDelegate = e.layoutDelegate || (e.layout ? new Zte(e.layout) : new p_(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new Yte(e.layout) : new f_(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -25308,7 +25302,7 @@ var mx = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of S_(n, this.collection)) {
+ for (let e of x_(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -25342,13 +25336,13 @@ var mx = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = S_(t, this.collection);
- return (this.direction === "rtl" ? T_(e)?.key : C_(e)?.key) ?? null;
+ let e = x_(t, this.collection);
+ return (this.direction === "rtl" ? w_(e)?.key : S_(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = S_(n, this.collection), i = (this.direction === "rtl" ? w_(r, t.index - 1) : w_(r, t.index + 1)) ?? null;
+ let r = x_(n, this.collection), i = (this.direction === "rtl" ? C_(r, t.index - 1) : C_(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;
@@ -25357,13 +25351,13 @@ var mx = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = S_(t, this.collection);
- return (this.direction === "rtl" ? C_(e)?.key : T_(e)?.key) ?? null;
+ let e = x_(t, this.collection);
+ return (this.direction === "rtl" ? S_(e)?.key : w_(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = S_(n, this.collection), i = (this.direction === "rtl" ? w_(r, t.index + 1) : w_(r, t.index - 1)) ?? null;
+ let r = x_(n, this.collection), i = (this.direction === "rtl" ? C_(r, t.index + 1) : C_(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;
@@ -25374,13 +25368,13 @@ var mx = 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 ? C_(S_(e, this.collection))?.key ?? null : null;
+ return e ? S_(x_(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 = C_(S_(e, this.collection))?.key ?? null;
+ n = S_(x_(e, this.collection))?.key ?? null;
}
return n;
}
@@ -25390,13 +25384,13 @@ var mx = 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 ? T_(S_(e, this.collection))?.key ?? null : null;
+ return e ? w_(x_(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 = T_(S_(e, this.collection))?.key ?? null;
+ n = w_(x_(e, this.collection))?.key ?? null;
}
return n;
}
@@ -25432,13 +25426,13 @@ var mx = 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" ? C_(S_(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? S_(x_(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;
}
-}, Zte = class {
+}, Yte = class {
constructor(e) {
this.layout = e;
}
@@ -25451,16 +25445,16 @@ var mx = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, hx = /* @__PURE__ */ new WeakMap();
+}, gx = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function Qte(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 = g_({
+ let h = h_({
usage: "search",
sensitivity: "base"
- }), { direction: g } = cf(), _ = t.selectionManager.disabledBehavior, v = (0, R.useMemo)(() => a || new mx({
+ }), { direction: g } = sf(), _ = t.selectionManager.disabledBehavior, v = (0, R.useMemo)(() => a || new hx({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -25477,7 +25471,7 @@ function Qte(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = f_({
+ ]), { collectionProps: y } = d_({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -25485,8 +25479,8 @@ function Qte(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = ql(e.id);
- hx.set(t, {
+ }), b = Kl(e.id);
+ gx.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -25495,48 +25489,48 @@ function Qte(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = pte({
+ let x = dte({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = Gp(e, { labelable: !0 }), C = (0, R.useCallback)((e) => {
+ }), S = Wp(e, { labelable: !0 }), C = (0, R.useCallback)((e) => {
if (m.isFocused) {
- Cu(e.currentTarget, Y(e)) || m.setFocused(!1);
+ Su(e.currentTarget, Y(e)) || m.setFocused(!1);
return;
}
- Cu(e.currentTarget, Y(e)) && m.setFocused(!0);
+ Su(e.currentTarget, Y(e)) && m.setFocused(!0);
}, [m]), w = (0, R.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = Kb(n, { isDisabled: t.collection.size !== 0 }), E = J(S, {
+ }), [C, y.onBlur]), T = qb(n, { isDisabled: t.collection.size !== 0 }), E = J(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), dte({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), lte({ getRowText: c }, t), { gridProps: E };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var gx = /* @__PURE__ */ new WeakMap();
-function _x(e) {
+var _x = /* @__PURE__ */ new WeakMap();
+function vx(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function $te(e, t) {
- let n = gx.get(e);
+function Zte(e, t) {
+ let n = _x.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${_x(t)}`;
+ return `${n}-${vx(t)}`;
}
-function vx(e, t, n) {
- let r = gx.get(e);
+function yx(e, t, n) {
+ let r = _x.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${_x(t)}-${_x(n)}`;
+ return `${r}-${vx(t)}-${vx(n)}`;
}
-function yx(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => vx(e, t, n)).join(" ");
+function bx(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => yx(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var bx = {};
-bx = {
+var xx = {};
+xx = {
ascending: "تصاعدي",
ascendingSort: (e) => `\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,
collapse: "طي",
@@ -25551,8 +25545,8 @@ bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var xx = {};
-xx = {
+var Sx = {};
+Sx = {
ascending: "възходящ",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,
collapse: "Свиване",
@@ -25567,8 +25561,8 @@ xx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var Sx = {};
-Sx = {
+var Cx = {};
+Cx = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -25583,8 +25577,8 @@ Sx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var Cx = {};
-Cx = {
+var wx = {};
+wx = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -25599,8 +25593,8 @@ Cx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var wx = {};
-wx = {
+var Tx = {};
+Tx = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -25615,8 +25609,8 @@ wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var Tx = {};
-Tx = {
+var Ex = {};
+Ex = {
ascending: "αύξουσα",
ascendingSort: (e) => `\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,
collapse: "Σύμπτυξη",
@@ -25631,8 +25625,8 @@ Tx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var Ex = {};
-Ex = {
+var Dx = {};
+Dx = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -25647,8 +25641,8 @@ Ex = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var Dx = {};
-Dx = {
+var Ox = {};
+Ox = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -25663,8 +25657,8 @@ Dx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var Ox = {};
-Ox = {
+var kx = {};
+kx = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -25679,8 +25673,8 @@ Ox = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var kx = {};
-kx = {
+var Ax = {};
+Ax = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -25695,8 +25689,8 @@ kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var Ax = {};
-Ax = {
+var jx = {};
+jx = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -25711,8 +25705,8 @@ Ax = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var jx = {};
-jx = {
+var Mx = {};
+Mx = {
ascending: "עולה",
ascendingSort: (e) => `\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5E2}\u{5D5}\u{5DC}\u{5D4}`,
collapse: "כווץ",
@@ -25727,8 +25721,8 @@ jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var Mx = {};
-Mx = {
+var Nx = {};
+Nx = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -25743,8 +25737,8 @@ Mx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var Nx = {};
-Nx = {
+var Px = {};
+Px = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -25759,8 +25753,8 @@ Nx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var Px = {};
-Px = {
+var Fx = {};
+Fx = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -25775,8 +25769,8 @@ Px = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var Fx = {};
-Fx = {
+var Ix = {};
+Ix = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -25791,8 +25785,8 @@ Fx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var Ix = {};
-Ix = {
+var Lx = {};
+Lx = {
ascending: "오름차순",
ascendingSort: (e) => `${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,
collapse: "접기",
@@ -25807,8 +25801,8 @@ Ix = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var Lx = {};
-Lx = {
+var Rx = {};
+Rx = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -25823,8 +25817,8 @@ Lx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var Rx = {};
-Rx = {
+var zx = {};
+zx = {
ascending: "augošā secībā",
ascendingSort: (e) => `k\u{101}rtots p\u{113}c kolonnas ${e.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,
collapse: "Sakļaut",
@@ -25839,8 +25833,8 @@ Rx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var zx = {};
-zx = {
+var Bx = {};
+Bx = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -25855,8 +25849,8 @@ zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var Bx = {};
-Bx = {
+var Vx = {};
+Vx = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -25871,8 +25865,8 @@ Bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var Vx = {};
-Vx = {
+var Hx = {};
+Hx = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -25887,8 +25881,8 @@ Vx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var Hx = {};
-Hx = {
+var Ux = {};
+Ux = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -25903,8 +25897,8 @@ Hx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var Ux = {};
-Ux = {
+var Wx = {};
+Wx = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -25919,8 +25913,8 @@ Ux = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var Wx = {};
-Wx = {
+var Gx = {};
+Gx = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -25935,8 +25929,8 @@ Wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var Gx = {};
-Gx = {
+var Kx = {};
+Kx = {
ascending: "возрастание",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{432}\u{43E}\u{437}\u{440}\u{430}\u{441}\u{442}\u{430}\u{43D}\u{438}\u{44F}`,
collapse: "Свернуть",
@@ -25951,8 +25945,8 @@ Gx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var Kx = {};
-Kx = {
+var qx = {};
+qx = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -25967,8 +25961,8 @@ Kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var qx = {};
-qx = {
+var Jx = {};
+Jx = {
ascending: "naraščajoče",
ascendingSort: (e) => `razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v nara\u{161}\u{10D}ajo\u{10D}em vrstnem redu`,
collapse: "Strni",
@@ -25983,8 +25977,8 @@ qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var Jx = {};
-Jx = {
+var Yx = {};
+Yx = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -25999,8 +25993,8 @@ Jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var Yx = {};
-Yx = {
+var Xx = {};
+Xx = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -26015,8 +26009,8 @@ Yx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var Xx = {};
-Xx = {
+var Zx = {};
+Zx = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -26031,8 +26025,8 @@ Xx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var Zx = {};
-Zx = {
+var Qx = {};
+Qx = {
ascending: "висхідний",
ascendingSort: (e) => `\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
collapse: "Згорнути",
@@ -26047,8 +26041,8 @@ Zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var Qx = {};
-Qx = {
+var $x = {};
+$x = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -26063,8 +26057,8 @@ Qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var $x = {};
-$x = {
+var eS = {};
+eS = {
ascending: "遞增",
ascendingSort: (e) => `\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{589E}\u{6392}\u{5E8F}`,
collapse: "收合",
@@ -26079,46 +26073,46 @@ $x = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var eS = {};
-eS = {
- "ar-AE": bx,
- "bg-BG": xx,
- "cs-CZ": Sx,
- "da-DK": Cx,
- "de-DE": wx,
- "el-GR": Tx,
- "en-US": Ex,
- "es-ES": Dx,
- "et-EE": Ox,
- "fi-FI": kx,
- "fr-FR": Ax,
- "he-IL": jx,
- "hr-HR": Mx,
- "hu-HU": Nx,
- "it-IT": Px,
- "ja-JP": Fx,
- "ko-KR": Ix,
- "lt-LT": Lx,
- "lv-LV": Rx,
- "nb-NO": zx,
- "nl-NL": Bx,
- "pl-PL": Vx,
- "pt-BR": Hx,
- "pt-PT": Ux,
- "ro-RO": Wx,
- "ru-RU": Gx,
- "sk-SK": Kx,
- "sl-SI": qx,
- "sr-SP": Jx,
- "sv-SE": Yx,
- "tr-TR": Xx,
- "uk-UA": Zx,
- "zh-CN": Qx,
- "zh-TW": $x
+var tS = {};
+tS = {
+ "ar-AE": xx,
+ "bg-BG": Sx,
+ "cs-CZ": Cx,
+ "da-DK": wx,
+ "de-DE": Tx,
+ "el-GR": Ex,
+ "en-US": Dx,
+ "es-ES": Ox,
+ "et-EE": kx,
+ "fi-FI": Ax,
+ "fr-FR": jx,
+ "he-IL": Mx,
+ "hr-HR": Nx,
+ "hu-HU": Px,
+ "it-IT": Fx,
+ "ja-JP": Ix,
+ "ko-KR": Lx,
+ "lt-LT": Rx,
+ "lv-LV": zx,
+ "nb-NO": Bx,
+ "nl-NL": Vx,
+ "pl-PL": Hx,
+ "pt-BR": Ux,
+ "pt-PT": Wx,
+ "ro-RO": Gx,
+ "ru-RU": Kx,
+ "sk-SK": qx,
+ "sl-SI": Jx,
+ "sr-SP": Yx,
+ "sv-SE": Xx,
+ "tr-TR": Zx,
+ "uk-UA": Qx,
+ "zh-CN": $x,
+ "zh-TW": eS
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var ene = class extends mx {
+var Qte = class extends hx {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -26126,7 +26120,7 @@ var ene = class extends mx {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = C_(S_(n, this.collection));
+ let e = S_(x_(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);
@@ -26147,13 +26141,13 @@ var ene = class extends mx {
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 S_(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of x_(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 = [...S_(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...x_(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -26182,7 +26176,7 @@ var ene = class extends mx {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of S_(o, this.collection)) {
+ for (let r of x_(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);
@@ -26196,14 +26190,14 @@ var ene = class extends mx {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function tne(e) {
+function $te(e) {
return e && e.__esModule ? e.default : e;
}
-function nne(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = g_({
+function ene(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = h_({
usage: "search",
sensitivity: "base"
- }), { direction: c } = cf(), l = t.selectionManager.disabledBehavior, u = (0, R.useMemo)(() => r || new ene({
+ }), { direction: c } = sf(), l = t.selectionManager.disabledBehavior, u = (0, R.useMemo)(() => r || new Qte({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -26222,43 +26216,43 @@ function nne(e, t, n) {
s,
a,
o
- ]), d = ql(e.id);
- gx.set(t, d);
- let { gridProps: f } = Qte({
+ ]), d = Kl(e.id);
+ _x.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 = Sf(tne(eS), "@react-aria/table"), g = (0, R.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = xf($te(tS), "@react-aria/table"), g = (0, R.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
- ]), _ = Xm(g);
- return Vm(() => {
- g && Am(g, "assertive", 500);
+ ]), _ = Ym(g);
+ return Bm(() => {
+ g && km(g, "assertive", 500);
}, [g]), { gridProps: J(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function tS(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = cf(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = hx.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, R.useRef)(null), h = () => {
+function nS(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = sf(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = gx.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, R.useRef)(null), h = () => {
if (n.current) {
- let e = r_(n.current);
+ let e = n_(n.current);
if (p === "child") {
- if (Eu(n.current) && n.current !== wu(pu(n.current))) return;
- let r = t.selectionManager.childFocusStrategy === "last" ? nS(e) : e.firstChild();
+ if (Tu(n.current) && n.current !== Cu(fu(n.current))) return;
+ let r = t.selectionManager.childFocusStrategy === "last" ? rS(e) : e.firstChild();
if (r) {
- Wf(r);
+ Uf(r);
return;
}
}
- (m.current != null && r.key !== m.current || !Eu(n.current)) && Wf(n.current);
+ (m.current != null && r.key !== m.current || !Tu(n.current)) && Uf(n.current);
}
- }, { itemProps: g, isPressed: _ } = y_({
+ }, { itemProps: g, isPressed: _ } = v_({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -26270,47 +26264,47 @@ function tS(e, t, n) {
}), v = J(g, {
role: "gridcell",
onKeyDownCapture: f !== "tab" || o ? (e) => {
- let i = wu(pu(n.current));
- if (!Cu(e.currentTarget, Y(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = r_(n.current);
+ let i = Cu(fu(n.current));
+ if (!Su(e.currentTarget, Y(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
+ let a = n_(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) Wf(t), qm(t, { containingElement: Um(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Uf(t), Km(t, { containingElement: Hm(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" ? (Wf(n.current), qm(n.current, { containingElement: Um(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : nS(a), t && (Wf(t), qm(t, { containingElement: Um(n.current) })));
+ p === "cell" && l === "rtl" ? (Uf(n.current), Km(n.current, { containingElement: Hm(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : rS(a), t && (Uf(t), Km(t, { containingElement: Hm(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) Wf(t), qm(t, { containingElement: Um(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Uf(t), Km(t, { containingElement: Hm(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" ? (Wf(n.current), qm(n.current, { containingElement: Um(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? nS(a) : a.firstChild(), t && (Wf(t), qm(t, { containingElement: Um(n.current) })));
+ p === "cell" && l === "ltr" ? (Uf(n.current), Km(n.current, { containingElement: Hm(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? rS(a) : a.firstChild(), t && (Uf(t), Km(t, { containingElement: Hm(n.current) })));
}
break;
}
case "ArrowUp":
- case "ArrowDown": !e.altKey && Cu(n.current, Y(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && Su(n.current, Y(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
} : void 0,
onKeyDown: f === "tab" ? (e) => {
- let r = wu(pu(n.current));
- if (!(!Cu(e.currentTarget, Y(e)) || t.isKeyboardNavigationDisabled || !n.current || !r)) {
+ let r = Cu(fu(n.current));
+ if (!(!Su(e.currentTarget, Y(e)) || t.isKeyboardNavigationDisabled || !n.current || !r)) {
if (f === "tab" && Y(e) !== n.current && e.key !== "Tab") {
e.stopPropagation();
return;
}
if (e.key === "Tab" && f === "tab") {
- let t = r_(n.current, { tabbable: !0 });
+ let t = n_(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -26320,11 +26314,11 @@ function tS(e, t, n) {
colSpan: i ? void 0 : r.colSpan,
onFocus: (e) => {
if (m.current = r.key, Y(e) !== n.current) {
- Id() || t.selectionManager.setFocusedKey(r.key);
+ Fd() || t.selectionManager.setFocusedKey(r.key);
return;
}
- p === "child" && e.relatedTarget && Cu(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- p === "child" && wu(pu(n.current)) === n.current && h();
+ p === "child" && e.relatedTarget && Su(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ p === "child" && Cu(fu(n.current)) === n.current && h();
});
},
...p === "child" && f === "tab" ? { tabIndex: -1 } : {}
@@ -26339,7 +26333,7 @@ function tS(e, t, n) {
isPressed: _
};
}
-function nS(e) {
+function rS(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -26348,24 +26342,24 @@ function nS(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function rne(e) {
+function tne(e) {
return e && e.__esModule ? e.default : e;
}
-function ine(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = tS({
+function nne(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = nS({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = sm({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = om({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = lp({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
- r.props.allowsSorting && !sd() && (u = d ? f : "none");
- let p = Sf(rne(eS), "@react-aria/table"), m;
- i && (m = `${p.format("sortable")}`, d && f && sd() && (m = `${m}, ${p.format(f)}`));
- let h = Xm(m), g = t.collection.size === 0;
+ }), { focusableProps: l } = cp({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ r.props.allowsSorting && !od() && (u = d ? f : "none");
+ let p = xf(tne(tS), "@react-aria/table"), m;
+ i && (m = `${p.format("sortable")}`, d && f && od() && (m = `${m}, ${p.format(f)}`));
+ let h = Ym(m), g = t.collection.size === 0;
return (0, R.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -26376,7 +26370,7 @@ function ine(e, t, n) {
columnHeaderProps: {
...J(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: $te(t, r.key),
+ id: Zte(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -26385,14 +26379,14 @@ function ine(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function ane(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = hx.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = y_({
+function rne(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = gx.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = v_({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? Ol(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? Dl(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -26407,10 +26401,10 @@ function ane(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRow.mjs
-function one(e) {
+function ine(e) {
return e && e.__esModule ? e.default : e;
}
-var rS = {
+var iS = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -26420,21 +26414,21 @@ var rS = {
rtl: "ArrowRight"
}
};
-function sne(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = ane(e, t, n), { direction: s } = cf();
+function ane(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = rne(e, t, n), { direction: s } = sf();
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 = Sf(one(eS), "@react-aria/table"), u = Xd({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = xf(ine(tS), "@react-aria/table"), u = Yd({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": yx(t, r.key)
+ "aria-labelledby": bx(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = iS(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 = iS(t.collection, a);
+ let n = aS(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = aS(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === rS.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === rS.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
+ n.key === iS.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === iS.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
},
"aria-expanded": i ? t.expandedKeys === "all" || t.expandedKeys.has(r.key) : void 0,
"aria-level": e.level + 1,
@@ -26452,50 +26446,50 @@ function sne(e, t, n) {
};
}
}
- let p = _d(r.props), m = o.hasAction ? p : {};
+ let p = gd(r.props), m = o.hasAction ? p : {};
return {
rowProps: {
...J(a, d, m),
- "aria-labelledby": yx(t, r.key)
+ "aria-labelledby": bx(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function iS(e, t) {
+function aS(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function cne(e, t, n) {
+function one(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
-function lne(e, t, n) {
- let { gridCellProps: r, isPressed: i } = tS(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = vx(t, e.node.parentKey, a)), {
+function sne(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = nS(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = yx(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function une(e) {
+function cne(e) {
return e && e.__esModule ? e.default : e;
}
-function dne(e, t) {
- let { key: n } = e, { checkboxProps: r } = hte(e, t);
+function lne(e, t) {
+ let { key: n } = e, { checkboxProps: r } = pte(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${yx(t, n)}`
+ "aria-labelledby": `${r.id} ${bx(t, n)}`
} };
}
-function fne(e) {
+function une(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": Sf(une(eS), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": xf(cne(tS), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
isSelected: n,
isDisabled: r !== "multiple" || e.collection.size === 0 || e.collection.rows.length === 1 && e.collection.rows[0].type === "loader",
isIndeterminate: !t && !n,
@@ -26504,17 +26498,17 @@ function fne(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function pne() {
+function dne() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function aS() {
- return pne();
+function oS() {
+ return dne();
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-var mne = class extends Mf {
+var fne = class extends jf {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -26529,7 +26523,7 @@ var mne = class extends Mf {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new fS(-2);
+ return new pS(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -26555,7 +26549,7 @@ var mne = class extends Mf {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = px(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 = mx(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;
@@ -26636,11 +26630,11 @@ var mne = class extends Mf {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new lS(-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 uS(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, hne = /*#__PURE__*/ (0, R.createContext)(null), gne = /*#__PURE__*/ (0, R.createContext)(null), oS = /*#__PURE__*/ (0, R.createContext)(null), sS = /*#__PURE__*/ (0, R.createContext)(null), _ne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = au(e, t, gne);
- let n = N_(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, R.useMemo)(() => ({
+}, pne = /*#__PURE__*/ (0, R.createContext)(null), mne = /*#__PURE__*/ (0, R.createContext)(null), sS = /*#__PURE__*/ (0, R.createContext)(null), cS = /*#__PURE__*/ (0, R.createContext)(null), hne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = iu(e, t, mne);
+ let n = M_(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, R.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -26650,26 +26644,26 @@ var mne = class extends Mf {
i,
a,
o
- ]), c = /*#__PURE__*/ R.createElement(bne.Provider, { value: s }, /*#__PURE__*/ R.createElement(jp, e));
- return /*#__PURE__*/ R.createElement(yp, {
+ ]), c = /*#__PURE__*/ R.createElement(vne.Provider, { value: s }, /*#__PURE__*/ R.createElement(Ap, e));
+ return /*#__PURE__*/ R.createElement(vp, {
content: c,
- createCollection: () => new mne()
- }, (r) => /*#__PURE__*/ R.createElement(yne, {
+ createCollection: () => new fne()
+ }, (r) => /*#__PURE__*/ R.createElement(_ne, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), vne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(Lp);
- return n ? /*#__PURE__*/ R.createElement(uu.div, {
+}), gne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(Ip);
+ return n ? /*#__PURE__*/ R.createElement(lu.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(uu.table, {
+ }) : /*#__PURE__*/ R.createElement(lu.table, {
...e,
ref: t
});
-}), cS = {
+}), lS = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -26679,26 +26673,26 @@ var mne = class extends Mf {
rtl: "ArrowRight"
}
};
-function yne({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = au(e, t, Tf);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, R.useContext)(hne);
- t = eu((0, R.useMemo)(() => Xl(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = wf(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+function _ne({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = iu(e, t, wf);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, R.useContext)(pne);
+ t = $l((0, R.useMemo)(() => Yl(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = Cf(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, R.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = Yte({
+ let d = qte({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = Xte(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, R.useContext)(Lp), { dragAndDropHooks: _ } = e, { gridProps: v } = nne({
+ }), f = Jte(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, R.useContext)(Ip), { dragAndDropHooks: _ } = e, { gridProps: v } = ene({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, R.useRef)(b), (0, R.useRef)(x), (0, R.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, R.useRef)(null), { direction: O } = cf(), [k] = (0, R.useState)(() => new Wte());
+ let S, C, w, T = !1, E = null, D = (0, R.useRef)(null), { direction: O } = sf(), [k] = (0, R.useState)(() => new Hte());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -26713,7 +26707,7 @@ function yne({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new m_({
+ let e = new p_({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -26733,12 +26727,12 @@ function yne({ 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 === cS.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === cS.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === lS.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === lS.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 } = gm(), N = ru({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = hm(), N = nu({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -26754,19 +26748,19 @@ function yne({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let I = Gp(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(nu, { values: [
- [oS, f],
- [sS, F],
- [bg, {
+ let I = Wp(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(tu, { values: [
+ [sS, f],
+ [cS, F],
+ [yg, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [xg, { render: Ane }],
- [Tf, null],
- [Ef, null]
- ] }, /*#__PURE__*/ R.createElement(Bg, null, /*#__PURE__*/ R.createElement(vne, {
+ [bg, { render: One }],
+ [wf, null],
+ [Tf, null]
+ ] }, /*#__PURE__*/ R.createElement(zg, null, /*#__PURE__*/ R.createElement(gne, {
...J(I, N, v, A, w?.collectionProps),
style: ee,
ref: t,
@@ -26776,55 +26770,55 @@ function yne({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": j || void 0,
"data-focus-visible": M || void 0
- }, /*#__PURE__*/ R.createElement(Dg, null, /*#__PURE__*/ R.createElement(g, {
+ }, /*#__PURE__*/ R.createElement(Eg, null, /*#__PURE__*/ R.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: wg(y, _, C)
+ persistedKeys: Cg(y, _, C)
})))), E);
}
-var bne = /*#__PURE__*/ (0, R.createContext)(null), lS = class extends Df {
+var vne = /*#__PURE__*/ (0, R.createContext)(null), uS = class extends Ef {
static {
this.type = "tableheader";
}
-}, xne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(Lp);
- return n ? /*#__PURE__*/ R.createElement(uu.div, {
+}, yne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(Ip);
+ return n ? /*#__PURE__*/ R.createElement(lu.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(uu.thead, {
+ }) : /*#__PURE__*/ R.createElement(lu.thead, {
...e,
ref: t
});
-}), uS = /*#__PURE__*/ Op(lS, (e, t) => {
- let n = (0, R.useContext)(oS).collection, r = Lf({
+}), dS = /*#__PURE__*/ Dp(uS, (e, t) => {
+ let n = (0, R.useContext)(sS).collection, r = If({
items: n.headerRows,
children: (0, R.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ R.createElement(Cne, { item: e });
+ case "headerrow": return /*#__PURE__*/ R.createElement(xne, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = aS(), { hoverProps: a, isHovered: o } = Sm({
+ }), { rowGroupProps: i } = oS(), { hoverProps: a, isHovered: o } = xm({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = ru({
+ }), s = nu({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ R.createElement(xne, {
- ...J(Gp(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ R.createElement(yne, {
+ ...J(Wp(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ R.createElement(jp, {
+}, (e) => /*#__PURE__*/ R.createElement(Ap, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), Sne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(Lp);
+}, e.children)), bne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(Ip);
return n ? /*#__PURE__*/ R.createElement("div", {
...e,
ref: t
@@ -26833,41 +26827,41 @@ var bne = /*#__PURE__*/ (0, R.createContext)(null), lS = class extends Df {
ref: t
});
});
-function Cne({ item: e }) {
- let t = (0, R.useRef)(null), n = (0, R.useContext)(oS), { isVirtualized: r, CollectionBranch: i } = (0, R.useContext)(Lp), { rowProps: a } = cne({
+function xne({ item: e }) {
+ let t = (0, R.useRef)(null), n = (0, R.useContext)(sS), { isVirtualized: r, CollectionBranch: i } = (0, R.useContext)(Ip), { rowProps: a } = one({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = fne(n);
- return /*#__PURE__*/ R.createElement(Sne, {
+ }, n, t), { checkboxProps: o } = une(n);
+ return /*#__PURE__*/ R.createElement(bne, {
...a,
ref: t
- }, /*#__PURE__*/ R.createElement(nu, { values: [[Eh, { slots: { selection: o } }], [Dh, { slots: { selection: o } }]] }, /*#__PURE__*/ R.createElement(i, {
+ }, /*#__PURE__*/ R.createElement(tu, { values: [[Th, { slots: { selection: o } }], [Eh, { slots: { selection: o } }]] }, /*#__PURE__*/ R.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var wne = class extends Df {
+var Sne = class extends Ef {
static {
this.type = "column";
}
-}, Tne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(Lp);
- return n ? /*#__PURE__*/ R.createElement(uu.div, {
+}, Cne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(Ip);
+ return n ? /*#__PURE__*/ R.createElement(lu.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(uu.th, {
+ }) : /*#__PURE__*/ R.createElement(lu.th, {
...e,
ref: t
});
-}), dS = /*#__PURE__*/ Dp(wne, (e, t, n) => {
- let r = eu(t), i = (0, R.useContext)(oS), { isVirtualized: a } = (0, R.useContext)(Lp), { columnHeaderProps: o, isPressed: s } = ine({
+}), fS = /*#__PURE__*/ Ep(Sne, (e, t, n) => {
+ let r = $l(t), i = (0, R.useContext)(sS), { isVirtualized: a } = (0, R.useContext)(Ip), { columnHeaderProps: o, isPressed: s } = nne({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = gm(), d = (0, R.useContext)(sS), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = hm(), d = (0, R.useContext)(cS), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = Sm({ isDisabled: !e.allowsSorting }), h = ru({
+ let { hoverProps: p, isHovered: m } = xm({ isDisabled: !e.allowsSorting }), h = nu({
...e,
id: void 0,
children: n.rendered,
@@ -26893,8 +26887,8 @@ var wne = class extends Df {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = Gp(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ R.createElement(Tne, {
+ let _ = Wp(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ R.createElement(Cne, {
...J(_, o, u, p),
...h,
style: g,
@@ -26906,28 +26900,28 @@ var wne = class extends Df {
"data-resizing": f || void 0,
"data-allows-sorting": n.props.allowsSorting || void 0,
"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0
- }, /*#__PURE__*/ R.createElement(nu, { values: [[Ene, {
+ }, /*#__PURE__*/ R.createElement(tu, { values: [[wne, {
column: n,
triggerRef: r
- }], [Lp, Pp]] }, h.children));
-}), Ene = /*#__PURE__*/ (0, R.createContext)(null), fS = class extends Of {
+ }], [Ip, Np]] }, h.children));
+}), wne = /*#__PURE__*/ (0, R.createContext)(null), pS = class extends Df {
static {
this.type = "tablebody";
}
-}, Dne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(Lp);
- return n ? /*#__PURE__*/ R.createElement(uu.div, {
+}, Tne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(Ip);
+ return n ? /*#__PURE__*/ R.createElement(lu.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(uu.tbody, {
+ }) : /*#__PURE__*/ R.createElement(lu.tbody, {
...e,
ref: t
});
-}), pS = /*#__PURE__*/ Op(fS, (e, t, n) => {
- let r = (0, R.useContext)(oS), { isVirtualized: i } = (0, R.useContext)(Lp), a = r.collection, { CollectionBranch: o } = (0, R.useContext)(Lp), { dragAndDropHooks: s, dropState: c } = (0, R.useContext)(bg), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), mS = /*#__PURE__*/ Dp(pS, (e, t, n) => {
+ let r = (0, R.useContext)(sS), { isVirtualized: i } = (0, R.useContext)(Ip), a = r.collection, { CollectionBranch: o } = (0, R.useContext)(Ip), { dragAndDropHooks: s, dropState: c } = (0, R.useContext)(yg), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = ru({
+ }, p = nu({
...e,
id: void 0,
children: void 0,
@@ -26936,33 +26930,33 @@ var wne = class extends Df {
}), m, h = a.columnCount;
if (d && e.renderEmptyState && r) {
let t = {}, n = {}, r = {};
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ R.createElement(hS, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ R.createElement(gS, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ R.createElement(_S, {
+ }, /*#__PURE__*/ R.createElement(vS, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = aS(), _ = Gp(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(Dne, {
+ let { rowGroupProps: g } = oS(), _ = Wp(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(Tne, {
...J(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ R.createElement(Fne, null), /*#__PURE__*/ R.createElement(o, {
+ }, l && /*#__PURE__*/ R.createElement(Nne, null), /*#__PURE__*/ R.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: Cg(s, c)
+ renderDropIndicator: Sg(s, c)
}), m);
});
-(class extends Of {
+(class extends Df {
static {
this.type = "tablefooter";
}
});
-var mS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), One = class extends Df {
+var hS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Ene = class extends Ef {
static {
this.type = "item";
}
@@ -26974,31 +26968,31 @@ var mS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), On
}
return null;
}
-}, hS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(Lp);
- return n ? /*#__PURE__*/ R.createElement(uu.div, {
+}, gS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(Ip);
+ return n ? /*#__PURE__*/ R.createElement(lu.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(uu.tr, {
+ }) : /*#__PURE__*/ R.createElement(lu.tr, {
...e,
ref: t
});
-}), gS = /*#__PURE__*/ Op(One, (e, t, n) => {
- let r = eu(t), i = (0, R.useContext)(oS), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(bg), { isVirtualized: c, CollectionBranch: l } = (0, R.useContext)(Lp), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = sne({
+}), _S = /*#__PURE__*/ Dp(Ene, (e, t, n) => {
+ let r = $l(t), i = (0, R.useContext)(sS), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(yg), { isVirtualized: c, CollectionBranch: l } = (0, R.useContext)(Ip), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = ane({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = gm(), { isFocusVisible: _, focusProps: v } = gm({ within: !0 }), { hoverProps: y, isHovered: b } = Sm({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = hm(), { isFocusVisible: _, focusProps: v } = hm({ within: !0 }), { hoverProps: y, isHovered: b } = xm({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = dne({ key: n.key }, i), S;
+ }), { checkboxProps: x } = lne({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
}, o));
- let C, w = (0, R.useRef)(null), { visuallyHiddenProps: T } = Qm();
+ let C, w = (0, R.useRef)(null), { visuallyHiddenProps: T } = Zm();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -27008,7 +27002,7 @@ var mS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), On
(0, R.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 = ru({
+ 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 = nu({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -27029,11 +27023,11 @@ var mS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), On
isExpanded: j,
level: n.level + 1
}
- }), N = Gp(e, { global: !0 });
- return delete N.id, delete N.onClick, /*#__PURE__*/ R.createElement(R.Fragment, null, C && !C.isHidden && /*#__PURE__*/ R.createElement(hS, {
+ }), N = Wp(e, { global: !0 });
+ return delete N.id, delete N.onClick, /*#__PURE__*/ R.createElement(R.Fragment, null, C && !C.isHidden && /*#__PURE__*/ R.createElement(gS, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ R.createElement(_S, {
+ }, /*#__PURE__*/ R.createElement(vS, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -27042,7 +27036,7 @@ var mS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), On
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ R.createElement(hS, {
+ }))), /*#__PURE__*/ R.createElement(gS, {
...J(N, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -27058,17 +27052,17 @@ var mS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), On
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ R.createElement(nu, { values: [
- [Eh, { slots: {
- [tu]: {},
+ }, /*#__PURE__*/ R.createElement(tu, { values: [
+ [Th, { slots: {
+ [eu]: {},
selection: x
} }],
- [Dh, { slots: {
- [tu]: {},
+ [Eh, { slots: {
+ [eu]: {},
selection: x
} }],
- [Nm, { slots: {
- [tu]: {},
+ [Mm, { slots: {
+ [eu]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -27076,8 +27070,8 @@ var mS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), On
style: { pointerEvents: "none" }
}
} }],
- [Og, { isSelected: p.isSelected }],
- [mS, { isFocusVisibleWithinRow: _ }]
+ [Dg, { isSelected: p.isSelected }],
+ [hS, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ R.createElement(l, {
collection: i.collection,
parent: n
@@ -27085,34 +27079,34 @@ var mS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), On
}, (e) => {
if (e.id == null && typeof e.children == "function") throw Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
let t = [e.value].concat(e.dependencies);
- return /*#__PURE__*/ R.createElement(jp, {
+ return /*#__PURE__*/ R.createElement(Ap, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), kne = class extends Df {
+}), Dne = class extends Ef {
static {
this.type = "cell";
}
-}, _S = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(Lp);
- return n ? /*#__PURE__*/ R.createElement(uu.div, {
+}, vS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(Ip);
+ return n ? /*#__PURE__*/ R.createElement(lu.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(uu.td, {
+ }) : /*#__PURE__*/ R.createElement(lu.td, {
...e,
ref: t
});
-}), vS = /*#__PURE__*/ Dp(kne, (e, t, n) => {
- let r = eu(t), i = (0, R.useContext)(oS), { dragState: a } = (0, R.useContext)(bg), { isVirtualized: o } = (0, R.useContext)(Lp);
+}), yS = /*#__PURE__*/ Ep(Dne, (e, t, n) => {
+ let r = $l(t), i = (0, R.useContext)(sS), { dragState: a } = (0, R.useContext)(yg), { isVirtualized: o } = (0, R.useContext)(Ip);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = lne({
+ let { gridCellProps: s, isPressed: c } = sne({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = gm(), { hoverProps: f, isHovered: p } = Sm({}), { isFocusVisibleWithinRow: m } = (0, R.useContext)(mS), 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 = ru({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = hm(), { hoverProps: f, isHovered: p } = xm({}), { isFocusVisibleWithinRow: m } = (0, R.useContext)(hS), 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 = nu({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -27131,8 +27125,8 @@ var mS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), On
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = Gp(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ R.createElement(_S, {
+ }), S = Wp(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ R.createElement(vS, {
...J(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -27146,14 +27140,14 @@ var mS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), On
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ R.createElement(Lp.Provider, { value: Pp }, x.children));
+ }, /*#__PURE__*/ R.createElement(Ip.Provider, { value: Np }, x.children));
});
-function Ane(e, t) {
- t = eu(t);
- let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(bg), i = (0, R.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function One(e, t) {
+ t = $l(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(yg), i = (0, R.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ R.createElement(Pne, {
+ return /*#__PURE__*/ R.createElement(Mne, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -27162,40 +27156,40 @@ function Ane(e, t) {
ref: t
});
}
-var jne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(Lp);
- return n ? /*#__PURE__*/ R.createElement(uu.div, {
+var kne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(Ip);
+ return n ? /*#__PURE__*/ R.createElement(lu.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(uu.tr, {
+ }) : /*#__PURE__*/ R.createElement(lu.tr, {
...e,
ref: t
});
-}), Mne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(Lp);
- return n ? /*#__PURE__*/ R.createElement(uu.div, {
+}), Ane = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(Ip);
+ return n ? /*#__PURE__*/ R.createElement(lu.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(uu.td, {
+ }) : /*#__PURE__*/ R.createElement(lu.td, {
...e,
ref: t
});
});
-function Nne(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, R.useContext)(oS), { visuallyHiddenProps: c } = Qm(), l = ru({
+function jne(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, R.useContext)(sS), { visuallyHiddenProps: c } = Zm(), l = nu({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ R.createElement(jne, {
- ...Gp(e, { global: !0 }),
+ return /*#__PURE__*/ R.createElement(kne, {
+ ...Wp(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ R.createElement(Mne, {
+ }, /*#__PURE__*/ R.createElement(Ane, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -27206,14 +27200,14 @@ function Nne(e, t) {
ref: i
}), l.children));
}
-var Pne = /*#__PURE__*/ (0, R.forwardRef)(Nne);
-function Fne() {
- let e = (0, R.useContext)(oS), { dragAndDropHooks: t, dropState: n } = (0, R.useContext)(bg), r = (0, R.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = Qm();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ R.createElement(hS, {
+var Mne = /*#__PURE__*/ (0, R.forwardRef)(jne);
+function Nne() {
+ let e = (0, R.useContext)(sS), { dragAndDropHooks: t, dropState: n } = (0, R.useContext)(yg), r = (0, R.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = Zm();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ R.createElement(gS, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ R.createElement(_S, {
+ }, /*#__PURE__*/ R.createElement(vS, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -27224,9 +27218,9 @@ function Fne() {
ref: r
})));
}
-Dp(kf, function(e, t, n) {
- let r = (0, R.useContext)(oS), { isVirtualized: i } = (0, R.useContext)(Lp), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, R.useRef)(null);
- V_((0, R.useMemo)(() => ({
+Ep(Of, function(e, t, n) {
+ let r = (0, R.useContext)(sS), { isVirtualized: i } = (0, R.useContext)(Ip), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, R.useRef)(null);
+ B_((0, R.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -27236,7 +27230,7 @@ Dp(kf, function(e, t, n) {
s,
r?.collection
]), u);
- let d = ru({
+ let d = nu({
...c,
id: void 0,
children: n.rendered,
@@ -27244,10 +27238,10 @@ Dp(kf, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(hS, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(gS, {
style: { height: 0 },
- inert: A_(!0)
- }, /*#__PURE__*/ R.createElement(_S, { style: {
+ inert: k_(!0)
+ }, /*#__PURE__*/ R.createElement(vS, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ R.createElement("div", {
@@ -27258,14 +27252,14 @@ Dp(kf, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ R.createElement(hS, {
- ...J(Gp(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ R.createElement(gS, {
+ ...J(Wp(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ R.createElement(_S, {
+ }, /*#__PURE__*/ R.createElement(vS, {
role: "rowheader",
...p,
style: m
@@ -27273,23 +27267,23 @@ Dp(kf, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var yS = /* @__PURE__ */ new WeakMap();
-function bS(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${yS.get(e)}-${n}-${t}`) : "";
+var bS = /* @__PURE__ */ new WeakMap();
+function xS(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${bS.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function Ine(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 } = y_({
+function SS(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 } = v_({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = bS(t, r, "tab"), m = bS(t, r, "tabpanel"), { tabIndex: h } = d, g = Gp(u?.props, { labelable: !0 });
+ }), p = xS(t, r, "tab"), m = xS(t, r, "tabpanel"), { tabIndex: h } = d, g = Wp(u?.props, { labelable: !0 });
delete g.id;
- let _ = vd(u?.props), { focusableProps: v } = lp({
+ let _ = _d(u?.props), { focusableProps: v } = cp({
...u?.props,
isDisabled: l
}, n);
@@ -27309,12 +27303,12 @@ function Ine(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function Lne(e, t, n) {
- let r = Kb(n) ? void 0 : 0, i = bS(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: J(Xd({
+function CS(e, t, n) {
+ let r = qb(n) ? void 0 : 0, i = xS(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: J(Yd({
...e,
id: i,
- "aria-labelledby": bS(t, t?.selectedKey, "tab")
+ "aria-labelledby": xS(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -27324,7 +27318,7 @@ function Lne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var xS = class {
+var wS = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -27368,11 +27362,11 @@ var xS = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function SS(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = cf(), { collectionProps: l } = f_({
+function TS(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = sf(), { collectionProps: l } = d_({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, R.useMemo)(() => new xS(a, c, r, s), [
+ keyboardDelegate: (0, R.useMemo)(() => new wS(a, c, r, s), [
a,
s,
r,
@@ -27382,9 +27376,9 @@ function SS(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = ql();
- return yS.set(t, u), { tabListProps: {
- ...J(l, Xd({
+ }), u = Kl();
+ return bS.set(t, u), { tabListProps: {
+ ...J(l, Yd({
...e,
id: u
})),
@@ -27395,8 +27389,8 @@ function SS(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function CS(e) {
- let [t, n] = wf(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, R.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = z_({
+function ES(e) {
+ let [t, n] = Cf(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, R.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = R_({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -27419,24 +27413,24 @@ function CS(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function wS(e) {
- let t = CS({
+function DS(e) {
+ let t = ES({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? TS(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? OS(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, R.useRef)(i);
return (0, R.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = TS(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 = OS(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 TS(e, t) {
+function OS(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);
@@ -27446,24 +27440,24 @@ function TS(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var ES = /*#__PURE__*/ (0, R.createContext)(null), DS = /*#__PURE__*/ (0, R.createContext)(null), OS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = au(e, t, ES);
+var kS = /*#__PURE__*/ (0, R.createContext)(null), AS = /*#__PURE__*/ (0, R.createContext)(null), jS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = iu(e, t, kS);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, R.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ R.createElement(yp, { content: n }, (n) => /*#__PURE__*/ R.createElement(kS, {
+ }) : n, [n, r]), /*#__PURE__*/ R.createElement(vp, { content: n }, (n) => /*#__PURE__*/ R.createElement(MS, {
props: e,
collection: n,
tabsRef: t
}));
});
-function kS({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = wS({
+function MS({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = DS({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = gm({ within: !0 }), c = (0, R.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = hm({ within: !0 }), c = (0, R.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -27471,12 +27465,12 @@ function kS({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = ru({
+ ]), l = nu({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = Gp(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(uu.div, {
+ }), u = Wp(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(lu.div, {
...J(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -27484,20 +27478,20 @@ function kS({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ R.createElement(nu, { values: [[ES, e], [DS, i]] }, l.children));
+ }, /*#__PURE__*/ R.createElement(tu, { values: [[kS, e], [AS, i]] }, l.children));
}
-var AS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- return (0, R.useContext)(DS) ? /*#__PURE__*/ R.createElement(jS, {
+var NS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ return (0, R.useContext)(AS) ? /*#__PURE__*/ R.createElement(PS, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ R.createElement(jp, e);
+ }) : /*#__PURE__*/ R.createElement(Ap, e);
});
-function jS({ props: e, forwardedRef: t }) {
- let n = (0, R.useContext)(DS), { CollectionRoot: r } = (0, R.useContext)(Lp), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = iu(ES), o = eu(t), { tabListProps: s } = SS({
+function PS({ props: e, forwardedRef: t }) {
+ let n = (0, R.useContext)(AS), { CollectionRoot: r } = (0, R.useContext)(Ip), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = ru(kS), o = $l(t), { tabListProps: s } = TS({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = ru({
+ }, n, o), c = nu({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -27505,30 +27499,30 @@ function jS({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = Gp(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ R.createElement(uu.div, {
+ }), l = Wp(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ R.createElement(lu.div, {
...J(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ R.createElement(Dg, null, /*#__PURE__*/ R.createElement(r, {
+ }, /*#__PURE__*/ R.createElement(Eg, null, /*#__PURE__*/ R.createElement(r, {
collection: n.collection,
- persistedKeys: Rp(n.selectionManager.focusedKey)
+ persistedKeys: Lp(n.selectionManager.focusedKey)
})));
}
-var MS = /*#__PURE__*/ Dp(class extends Df {
+var FS = /*#__PURE__*/ Ep(class extends Ef {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, R.useContext)(DS), i = eu(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Ine({
+ let r = (0, R.useContext)(AS), i = $l(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = SS({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = gm(), { hoverProps: f, isHovered: p } = Sm({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = hm(), { hoverProps: f, isHovered: p } = xm({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = ru({
+ }), m = nu({
...e,
id: void 0,
children: n.rendered,
@@ -27541,7 +27535,7 @@ var MS = /*#__PURE__*/ Dp(class extends Df {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? uu.a : uu.div, g = Gp(e, { global: !0 });
+ }), h = n.props.href ? lu.a : lu.div, g = Wp(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ R.createElement(h, {
...J(g, m, a, l, f),
ref: i,
@@ -27551,58 +27545,58 @@ var MS = /*#__PURE__*/ Dp(class extends Df {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ R.createElement(Og.Provider, { value: { isSelected: o } }, m.children));
-}), NS = /*#__PURE__*/ fp(function(e, t) {
- let n = (0, R.useContext)(DS), r = eu(t), i = n.selectedKey === e.id, [a, o] = (0, R.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ R.createElement(Dg.Provider, { value: { isSelected: o } }, m.children));
+}), IS = /*#__PURE__*/ dp(function(e, t) {
+ let n = (0, R.useContext)(AS), r = $l(t), i = n.selectedKey === e.id, [a, o] = (0, R.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = dy(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ R.createElement(PS, {
+ let s = fy(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ R.createElement(LS, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function PS(e) {
- let t = (0, R.useContext)(DS), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Lne(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = gm(), d = t.selectedKey === e.id, f = uy(r) && !i, p = ru({
+function LS(e) {
+ let t = (0, R.useContext)(AS), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = CS(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = hm(), d = t.selectedKey === e.id, f = dy(r) && !i, p = nu({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: A_(!d),
+ isInert: k_(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = Gp(o, { global: !0 });
+ }), m = Wp(o, { global: !0 });
delete m.id;
let h = d ? J(m, s, c, p) : J(m, p);
- return /*#__PURE__*/ R.createElement(uu.div, {
+ return /*#__PURE__*/ R.createElement(lu.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: A_(!d || e.inert),
+ inert: k_(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ R.createElement(nu, { values: [[ES, null], [DS, null]] }, /*#__PURE__*/ R.createElement(Lp.Provider, { value: Pp }, p.children)));
+ }, /*#__PURE__*/ R.createElement(tu, { values: [[kS, null], [AS, null]] }, /*#__PURE__*/ R.createElement(Ip.Provider, { value: Np }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var FS = /*#__PURE__*/ (0, R.createContext)({}), IS = /*#__PURE__*/ (0, R.createContext)(null), LS = /*#__PURE__*/ fp(function(e, t) {
- [e, t] = au(e, t, IS);
- let { validationBehavior: n } = iu(fh) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useRef)(null);
- [e, i] = au(e, i, Ef);
- let [a, o] = ou(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, R.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Rh({
- ...su(e),
+var RS = /*#__PURE__*/ (0, R.createContext)({}), zS = /*#__PURE__*/ (0, R.createContext)(null), BS = /*#__PURE__*/ dp(function(e, t) {
+ [e, t] = iu(e, t, zS);
+ let { validationBehavior: n } = ru(dh) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useRef)(null);
+ [e, i] = iu(e, i, Tf);
+ let [a, o] = au(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, R.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Lh({
+ ...ou(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, R.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = ru({
+ }, [i]), h = nu({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -27611,8 +27605,8 @@ var FS = /*#__PURE__*/ (0, R.createContext)({}), IS = /*#__PURE__*/ (0, R.create
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = Gp(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ R.createElement(uu.div, {
+ }), g = Wp(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ R.createElement(lu.div, {
...g,
...h,
ref: t,
@@ -27621,61 +27615,61 @@ var FS = /*#__PURE__*/ (0, R.createContext)({}), IS = /*#__PURE__*/ (0, R.create
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ R.createElement(nu, { values: [
- [Cm, {
+ }, /*#__PURE__*/ R.createElement(tu, { values: [
+ [Sm, {
...l,
ref: a
}],
- [Fh, {
+ [Ph, {
...u,
ref: m
}],
- [FS, {
+ [RS, {
...u,
ref: m
}],
- [Nh, {
+ [Mh, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [zm, { slots: {
+ [Rm, { slots: {
description: d,
errorMessage: f
} }],
- [eh, p]
+ [$m, p]
] }, h.children));
});
//#endregion
//#region node_modules/motion-utils/dist/es/array.mjs
-function RS(e, t) {
+function VS(e, t) {
e.indexOf(t) === -1 && e.push(t);
}
-function zS(e, t) {
+function HS(e, t) {
let n = e.indexOf(t);
n > -1 && e.splice(n, 1);
}
//#endregion
//#region node_modules/motion-utils/dist/es/clamp.mjs
-var BS = (e, t, n) => n > t ? t : n < e ? e : n, VS = {}, HS = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), US = (e) => typeof e == "object" && !!e, WS = (e) => /^0[^.\s]+$/u.test(e);
+var US = (e, t, n) => n > t ? t : n < e ? e : n, WS = {}, GS = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), KS = (e) => typeof e == "object" && !!e, qS = (e) => /^0[^.\s]+$/u.test(e);
//#endregion
//#region node_modules/motion-utils/dist/es/memo.mjs
/*#__NO_SIDE_EFFECTS__*/
-function GS(e) {
+function JS(e) {
let t;
return () => (t === void 0 && (t = e()), t);
}
//#endregion
//#region node_modules/motion-utils/dist/es/noop.mjs
-var KS = /* @__NO_SIDE_EFFECTS__ */ (e) => e, qS = (...e) => e.reduce((e, t) => (n) => t(e(n))), JS = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
+var YS = /* @__NO_SIDE_EFFECTS__ */ (e) => e, XS = (...e) => e.reduce((e, t) => (n) => t(e(n))), ZS = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
let r = t - e;
return r ? (n - e) / r : 1;
-}, YS = class {
+}, QS = class {
constructor() {
this.subscriptions = [];
}
add(e) {
- return RS(this.subscriptions, e), () => zS(this.subscriptions, e);
+ return VS(this.subscriptions, e), () => HS(this.subscriptions, e);
}
notify(e, t, n) {
let r = this.subscriptions.length;
@@ -27693,42 +27687,42 @@ var KS = /* @__NO_SIDE_EFFECTS__ */ (e) => e, qS = (...e) => e.reduce((e, t) =>
clear() {
this.subscriptions.length = 0;
}
-}, XS = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, ZS = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, QS = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, $S = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, eC = 1e-7, tC = 12;
-function nC(e, t, n, r, i) {
+}, $S = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, eC = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, tC = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, nC = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, rC = 1e-7, iC = 12;
+function aC(e, t, n, r, i) {
let a, o, s = 0;
do
- o = t + (n - t) / 2, a = $S(o, r, i) - e, a > 0 ? n = o : t = o;
- while (Math.abs(a) > eC && ++s < tC);
+ o = t + (n - t) / 2, a = nC(o, r, i) - e, a > 0 ? n = o : t = o;
+ while (Math.abs(a) > rC && ++s < iC);
return o;
}
/*#__NO_SIDE_EFFECTS__*/
-function rC(e, t, n, r) {
- if (e === t && n === r) return KS;
- let i = (t) => nC(t, 0, 1, e, n);
- return (e) => e === 0 || e === 1 ? e : $S(i(e), t, r);
+function oC(e, t, n, r) {
+ if (e === t && n === r) return YS;
+ let i = (t) => aC(t, 0, 1, e, n);
+ return (e) => e === 0 || e === 1 ? e : nC(i(e), t, r);
}
//#endregion
//#region node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
-var iC = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, aC = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), oC = /*@__PURE__*/ rC(.33, 1.53, .69, .99), sC = /*@__PURE__*/ aC(oC), cC = /*@__PURE__*/ iC(sC), lC = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * sC(e) : .5 * (2 - 2 ** (-10 * (e - 1))), uC = (e) => 1 - Math.sin(Math.acos(e)), dC = /* @__PURE__ */ aC(uC), fC = /* @__PURE__ */ iC(uC), pC = /*@__PURE__*/ rC(.42, 0, 1, 1), mC = /*@__PURE__*/ rC(0, 0, .58, 1), hC = /*@__PURE__*/ rC(.42, 0, .58, 1), gC = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number", _C = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", vC = {
- linear: KS,
- easeIn: pC,
- easeInOut: hC,
- easeOut: mC,
- circIn: uC,
- circInOut: fC,
- circOut: dC,
- backIn: sC,
- backInOut: cC,
- backOut: oC,
- anticipate: lC
-}, yC = (e) => typeof e == "string", bC = (e) => {
- if (/* @__PURE__ */ _C(e)) {
+var sC = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, cC = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), lC = /*@__PURE__*/ oC(.33, 1.53, .69, .99), uC = /*@__PURE__*/ cC(lC), dC = /*@__PURE__*/ sC(uC), fC = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * uC(e) : .5 * (2 - 2 ** (-10 * (e - 1))), pC = (e) => 1 - Math.sin(Math.acos(e)), mC = /* @__PURE__ */ cC(pC), hC = /* @__PURE__ */ sC(pC), gC = /*@__PURE__*/ oC(.42, 0, 1, 1), _C = /*@__PURE__*/ oC(0, 0, .58, 1), vC = /*@__PURE__*/ oC(.42, 0, .58, 1), yC = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number", bC = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", xC = {
+ linear: YS,
+ easeIn: gC,
+ easeInOut: vC,
+ easeOut: _C,
+ circIn: pC,
+ circInOut: hC,
+ circOut: mC,
+ backIn: uC,
+ backInOut: dC,
+ backOut: lC,
+ anticipate: fC
+}, SC = (e) => typeof e == "string", CC = (e) => {
+ if (/* @__PURE__ */ bC(e)) {
e.length;
let [t, n, r, i] = e;
- return /* @__PURE__ */ rC(t, n, r, i);
+ return /* @__PURE__ */ oC(t, n, r, i);
}
- return yC(e) ? (vC[e], `${e}`, vC[e]) : e;
-}, xC = [
+ return SC(e) ? (xC[e], `${e}`, xC[e]) : e;
+}, wC = [
"setup",
"read",
"resolveKeyframes",
@@ -27740,7 +27734,7 @@ var iC = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 -
];
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/render-step.mjs
-function SC(e) {
+function TC(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, i = !1, a = /* @__PURE__ */ new WeakSet(), o = {
delta: 0,
timestamp: 0,
@@ -27771,25 +27765,25 @@ function SC(e) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/batcher.mjs
-var CC = 40;
-function wC(e, t) {
+var EC = 40;
+function DC(e, t) {
let n = !1, r = !0, i = {
delta: 0,
timestamp: 0,
isProcessing: !1
- }, a = () => n = !0, o = xC.reduce((e, t) => (e[t] = SC(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
- let a = VS.useManualTiming, o = a ? i.timestamp : performance.now();
- n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, CC), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
+ }, a = () => n = !0, o = wC.reduce((e, t) => (e[t] = TC(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
+ let a = WS.useManualTiming, o = a ? i.timestamp : performance.now();
+ n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, EC), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
}, g = () => {
n = !0, r = !0, i.isProcessing || e(h);
};
return {
- schedule: xC.reduce((e, t) => {
+ schedule: wC.reduce((e, t) => {
let r = o[t];
return e[t] = (e, t = !1, i = !1) => (n || g(), r.schedule(e, t, i)), e;
}, {}),
cancel: (e) => {
- for (let t = 0; t < xC.length; t++) o[xC[t]].cancel(e);
+ for (let t = 0; t < wC.length; t++) o[wC[t]].cancel(e);
},
state: i,
steps: o
@@ -27797,59 +27791,59 @@ function wC(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/frame.mjs
-var { schedule: TC, cancel: EC, state: DC, steps: OC } = /* @__PURE__ */ wC(typeof requestAnimationFrame < "u" ? requestAnimationFrame : KS, !0), kC;
-function AC() {
- kC = void 0;
+var { schedule: OC, cancel: kC, state: AC, steps: jC } = /* @__PURE__ */ DC(typeof requestAnimationFrame < "u" ? requestAnimationFrame : YS, !0), MC;
+function NC() {
+ MC = void 0;
}
-var jC = {
- now: () => (kC === void 0 && jC.set(DC.isProcessing || VS.useManualTiming ? DC.timestamp : performance.now()), kC),
+var PC = {
+ now: () => (MC === void 0 && PC.set(AC.isProcessing || WS.useManualTiming ? AC.timestamp : performance.now()), MC),
set: (e) => {
- kC = e, queueMicrotask(AC);
+ MC = e, queueMicrotask(NC);
}
-}, MC = (e) => (t) => typeof t == "string" && t.startsWith(e), NC = /*@__PURE__*/ MC("--"), PC = /*@__PURE__*/ MC("var(--"), FC = (e) => PC(e) ? IC.test(e.split("/*")[0].trim()) : !1, IC = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
-function LC(e) {
+}, FC = (e) => (t) => typeof t == "string" && t.startsWith(e), IC = /*@__PURE__*/ FC("--"), LC = /*@__PURE__*/ FC("var(--"), RC = (e) => LC(e) ? zC.test(e.split("/*")[0].trim()) : !1, zC = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
+function BC(e) {
return typeof e == "string" && e.split("/*")[0].includes("var(--");
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/numbers/index.mjs
-var RC = {
+var VC = {
test: (e) => typeof e == "number",
parse: parseFloat,
transform: (e) => e
-}, zC = {
- ...RC,
- transform: (e) => BS(0, 1, e)
-}, BC = {
- ...RC,
+}, HC = {
+ ...VC,
+ transform: (e) => US(0, 1, e)
+}, UC = {
+ ...VC,
default: 1
-}, VC = (e) => Math.round(e * 1e5) / 1e5, HC = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
+}, WC = (e) => Math.round(e * 1e5) / 1e5, GC = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
-function UC(e) {
+function KC(e) {
return e == null;
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
-var WC = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, GC = (e, t) => (n) => !!(typeof n == "string" && WC.test(n) && n.startsWith(e) || t && !UC(n) && Object.prototype.hasOwnProperty.call(n, t)), KC = (e, t, n) => (r) => {
+var qC = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, JC = (e, t) => (n) => !!(typeof n == "string" && qC.test(n) && n.startsWith(e) || t && !KC(n) && Object.prototype.hasOwnProperty.call(n, t)), YC = (e, t, n) => (r) => {
if (typeof r != "string") return r;
- let [i, a, o, s] = r.match(HC);
+ let [i, a, o, s] = r.match(GC);
return {
[e]: parseFloat(i),
[t]: parseFloat(a),
[n]: parseFloat(o),
alpha: s === void 0 ? 1 : parseFloat(s)
};
-}, Rne = (e) => BS(0, 255, e), qC = {
- ...RC,
- transform: (e) => Math.round(Rne(e))
-}, JC = {
- test: /*@__PURE__*/ GC("rgb", "red"),
- parse: /*@__PURE__*/ KC("red", "green", "blue"),
- transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + qC.transform(e) + ", " + qC.transform(t) + ", " + qC.transform(n) + ", " + VC(zC.transform(r)) + ")"
+}, Pne = (e) => US(0, 255, e), XC = {
+ ...VC,
+ transform: (e) => Math.round(Pne(e))
+}, ZC = {
+ test: /*@__PURE__*/ JC("rgb", "red"),
+ parse: /*@__PURE__*/ YC("red", "green", "blue"),
+ transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + XC.transform(e) + ", " + XC.transform(t) + ", " + XC.transform(n) + ", " + WC(HC.transform(r)) + ")"
};
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/color/hex.mjs
-function zne(e) {
+function Fne(e) {
let t = "", n = "", r = "", i = "";
return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
red: parseInt(t, 16),
@@ -27858,38 +27852,38 @@ function zne(e) {
alpha: i ? parseInt(i, 16) / 255 : 1
};
}
-var YC = {
- test: /*@__PURE__*/ GC("#"),
- parse: zne,
- transform: JC.transform
-}, XC = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
+var QC = {
+ test: /*@__PURE__*/ JC("#"),
+ parse: Fne,
+ transform: ZC.transform
+}, $C = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
parse: parseFloat,
transform: (t) => `${t}${e}`
-}), ZC = /*@__PURE__*/ XC("deg"), QC = /*@__PURE__*/ XC("%"), X = /*@__PURE__*/ XC("px"), Bne = /*@__PURE__*/ XC("vh"), Vne = /*@__PURE__*/ XC("vw"), $C = {
- ...QC,
- parse: (e) => QC.parse(e) / 100,
- transform: (e) => QC.transform(e * 100)
-}, ew = {
- test: /*@__PURE__*/ GC("hsl", "hue"),
- parse: /*@__PURE__*/ KC("hue", "saturation", "lightness"),
- transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + QC.transform(VC(t)) + ", " + QC.transform(VC(n)) + ", " + VC(zC.transform(r)) + ")"
-}, tw = {
- test: (e) => JC.test(e) || YC.test(e) || ew.test(e),
- parse: (e) => JC.test(e) ? JC.parse(e) : ew.test(e) ? ew.parse(e) : YC.parse(e),
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? JC.transform(e) : ew.transform(e),
+}), ew = /*@__PURE__*/ $C("deg"), tw = /*@__PURE__*/ $C("%"), X = /*@__PURE__*/ $C("px"), Ine = /*@__PURE__*/ $C("vh"), Lne = /*@__PURE__*/ $C("vw"), nw = {
+ ...tw,
+ parse: (e) => tw.parse(e) / 100,
+ transform: (e) => tw.transform(e * 100)
+}, rw = {
+ test: /*@__PURE__*/ JC("hsl", "hue"),
+ parse: /*@__PURE__*/ YC("hue", "saturation", "lightness"),
+ transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + tw.transform(WC(t)) + ", " + tw.transform(WC(n)) + ", " + WC(HC.transform(r)) + ")"
+}, iw = {
+ test: (e) => ZC.test(e) || QC.test(e) || rw.test(e),
+ parse: (e) => ZC.test(e) ? ZC.parse(e) : rw.test(e) ? rw.parse(e) : QC.parse(e),
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? ZC.transform(e) : rw.transform(e),
getAnimatableNone: (e) => {
- let t = tw.parse(e);
- return t.alpha = 0, tw.transform(t);
+ let t = iw.parse(e);
+ return t.alpha = 0, iw.transform(t);
}
-}, Hne = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
+}, Rne = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/complex/index.mjs
-function Une(e) {
- return isNaN(e) && typeof e == "string" && (e.match(HC)?.length || 0) + (e.match(Hne)?.length || 0) > 0;
+function zne(e) {
+ return isNaN(e) && typeof e == "string" && (e.match(GC)?.length || 0) + (e.match(Rne)?.length || 0) > 0;
}
-var nw = "number", rw = "color", Wne = "var", Gne = "var(", iw = "${}", Kne = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
-function aw(e) {
+var aw = "number", ow = "color", Bne = "var", Vne = "var(", sw = "${}", Hne = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
+function cw(e) {
let t = e.toString(), n = [], r = {
color: [],
number: [],
@@ -27897,51 +27891,51 @@ function aw(e) {
}, i = [], a = 0;
return {
values: n,
- split: t.replace(Kne, (e) => (tw.test(e) ? (r.color.push(a), i.push(rw), n.push(tw.parse(e))) : e.startsWith(Gne) ? (r.var.push(a), i.push(Wne), n.push(e)) : (r.number.push(a), i.push(nw), n.push(parseFloat(e))), ++a, iw)).split(iw),
+ split: t.replace(Hne, (e) => (iw.test(e) ? (r.color.push(a), i.push(ow), n.push(iw.parse(e))) : e.startsWith(Vne) ? (r.var.push(a), i.push(Bne), n.push(e)) : (r.number.push(a), i.push(aw), n.push(parseFloat(e))), ++a, sw)).split(sw),
indexes: r,
types: i
};
}
-function qne(e) {
- return aw(e).values;
+function Une(e) {
+ return cw(e).values;
}
-function ow({ split: e, types: t }) {
+function lw({ split: e, types: t }) {
let n = e.length;
return (r) => {
let i = "";
for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {
let e = t[a];
- i += e === nw ? VC(r[a]) : e === rw ? tw.transform(r[a]) : r[a];
+ i += e === aw ? WC(r[a]) : e === ow ? iw.transform(r[a]) : r[a];
}
return i;
};
}
-function Jne(e) {
- return ow(aw(e));
-}
-var Yne = (e) => typeof e == "number" ? 0 : tw.test(e) ? tw.getAnimatableNone(e) : e, Xne = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : Yne(e);
-function Zne(e) {
- let t = aw(e);
- return ow(t)(t.values.map((e, n) => Xne(e, t.split[n])));
+function Wne(e) {
+ return lw(cw(e));
}
-var sw = {
- test: Une,
- parse: qne,
- createTransformer: Jne,
- getAnimatableNone: Zne
+var Gne = (e) => typeof e == "number" ? 0 : iw.test(e) ? iw.getAnimatableNone(e) : e, Kne = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : Gne(e);
+function qne(e) {
+ let t = cw(e);
+ return lw(t)(t.values.map((e, n) => Kne(e, t.split[n])));
+}
+var uw = {
+ test: zne,
+ parse: Une,
+ createTransformer: Wne,
+ getAnimatableNone: qne
};
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs
-function cw(e, t, n) {
+function dw(e, t, n) {
return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
}
-function Qne({ hue: e, saturation: t, lightness: n, alpha: r }) {
+function Jne({ hue: e, saturation: t, lightness: n, alpha: r }) {
e /= 360, t /= 100, n /= 100;
let i = 0, a = 0, o = 0;
if (!t) i = a = o = n;
else {
let r = n < .5 ? n * (1 + t) : n + t - n * t, s = 2 * n - r;
- i = cw(s, r, e + 1 / 3), a = cw(s, r, e), o = cw(s, r, e - 1 / 3);
+ i = dw(s, r, e + 1 / 3), a = dw(s, r, e), o = dw(s, r, e - 1 / 3);
}
return {
red: Math.round(i * 255),
@@ -27952,61 +27946,61 @@ function Qne({ hue: e, saturation: t, lightness: n, alpha: r }) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/immediate.mjs
-function lw(e, t) {
+function fw(e, t) {
return (n) => n > 0 ? t : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/number.mjs
-var uw = (e, t, n) => e + (t - e) * n, dw = (e, t, n) => {
+var pw = (e, t, n) => e + (t - e) * n, mw = (e, t, n) => {
let r = e * e, i = n * (t * t - r) + r;
return i < 0 ? 0 : Math.sqrt(i);
-}, $ne = [
- YC,
- JC,
- ew
-], ere = (e) => $ne.find((t) => t.test(e));
-function fw(e) {
- let t = ere(e);
+}, Yne = [
+ QC,
+ ZC,
+ rw
+], Xne = (e) => Yne.find((t) => t.test(e));
+function hw(e) {
+ let t = Xne(e);
if (`${e}`, !t) return !1;
let n = t.parse(e);
- return t === ew && (n = Qne(n)), n;
+ return t === rw && (n = Jne(n)), n;
}
-var pw = (e, t) => {
- let n = fw(e), r = fw(t);
- if (!n || !r) return lw(e, t);
+var gw = (e, t) => {
+ let n = hw(e), r = hw(t);
+ if (!n || !r) return fw(e, t);
let i = { ...n };
- return (e) => (i.red = dw(n.red, r.red, e), i.green = dw(n.green, r.green, e), i.blue = dw(n.blue, r.blue, e), i.alpha = uw(n.alpha, r.alpha, e), JC.transform(i));
-}, mw = /* @__PURE__ */ new Set(["none", "hidden"]);
-function tre(e, t) {
- return mw.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
+ return (e) => (i.red = mw(n.red, r.red, e), i.green = mw(n.green, r.green, e), i.blue = mw(n.blue, r.blue, e), i.alpha = pw(n.alpha, r.alpha, e), ZC.transform(i));
+}, _w = /* @__PURE__ */ new Set(["none", "hidden"]);
+function Zne(e, t) {
+ return _w.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/complex.mjs
-function nre(e, t) {
- return (n) => uw(e, t, n);
+function Qne(e, t) {
+ return (n) => pw(e, t, n);
}
-function hw(e) {
- return typeof e == "number" ? nre : typeof e == "string" ? FC(e) ? lw : tw.test(e) ? pw : are : Array.isArray(e) ? gw : typeof e == "object" ? tw.test(e) ? pw : rre : lw;
+function vw(e) {
+ return typeof e == "number" ? Qne : typeof e == "string" ? RC(e) ? fw : iw.test(e) ? gw : tre : Array.isArray(e) ? yw : typeof e == "object" ? iw.test(e) ? gw : $ne : fw;
}
-function gw(e, t) {
- let n = [...e], r = n.length, i = e.map((e, n) => hw(e)(e, t[n]));
+function yw(e, t) {
+ let n = [...e], r = n.length, i = e.map((e, n) => vw(e)(e, t[n]));
return (e) => {
for (let t = 0; t < r; t++) n[t] = i[t](e);
return n;
};
}
-function rre(e, t) {
+function $ne(e, t) {
let n = {
...e,
...t
}, r = {};
- for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = hw(e[i])(e[i], t[i]));
+ for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = vw(e[i])(e[i], t[i]));
return (e) => {
for (let t in r) n[t] = r[t](e);
return n;
};
}
-function ire(e, t) {
+function ere(e, t) {
let n = [], r = {
color: 0,
var: 0,
@@ -28018,50 +28012,50 @@ function ire(e, t) {
}
return n;
}
-var are = (e, t) => {
- let n = sw.createTransformer(t), r = aw(e), i = aw(t);
- return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? mw.has(e) && !i.values.length || mw.has(t) && !r.values.length ? tre(e, t) : qS(gw(ire(r, i), i.values), n) : (`${e}${t}`, lw(e, t));
+var tre = (e, t) => {
+ let n = uw.createTransformer(t), r = cw(e), i = cw(t);
+ return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? _w.has(e) && !i.values.length || _w.has(t) && !r.values.length ? Zne(e, t) : XS(yw(ere(r, i), i.values), n) : (`${e}${t}`, fw(e, t));
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/index.mjs
-function _w(e, t, n) {
- return typeof e == "number" && typeof t == "number" && typeof n == "number" ? uw(e, t, n) : hw(e)(e, t);
+function bw(e, t, n) {
+ return typeof e == "number" && typeof t == "number" && typeof n == "number" ? pw(e, t, n) : vw(e)(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/drivers/frame.mjs
-var ore = (e) => {
+var nre = (e) => {
let t = ({ timestamp: t }) => e(t);
return {
- start: (e = !0) => TC.update(t, e),
- stop: () => EC(t),
- now: () => DC.isProcessing ? DC.timestamp : jC.now()
+ start: (e = !0) => OC.update(t, e),
+ stop: () => kC(t),
+ now: () => AC.isProcessing ? AC.timestamp : PC.now()
};
-}, vw = (e, t, n = 10) => {
+}, xw = (e, t, n = 10) => {
let r = "", i = Math.max(Math.round(t / n), 2);
for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
return `linear(${r.substring(0, r.length - 2)})`;
-}, yw = 2e4;
-function bw(e) {
+}, Sw = 2e4;
+function Cw(e) {
let t = 0, n = e.next(t);
for (; !n.done && t < 2e4;) t += 50, n = e.next(t);
return t >= 2e4 ? Infinity : t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
-function sre(e, t = 100, n) {
+function rre(e, t = 100, n) {
let r = n({
...e,
keyframes: [0, t]
- }), i = Math.min(bw(r), yw);
+ }), i = Math.min(Cw(r), Sw);
return {
type: "keyframes",
ease: (e) => r.next(i * e).value / t,
- duration: /* @__PURE__ */ ZS(i)
+ duration: /* @__PURE__ */ eC(i)
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/spring.mjs
-var xw = {
+var ww = {
stiffness: 100,
damping: 10,
mass: 1,
@@ -28082,31 +28076,31 @@ var xw = {
minDamping: .05,
maxDamping: 1
};
-function Sw(e, t) {
+function Tw(e, t) {
return e * Math.sqrt(1 - t * t);
}
-var cre = 12;
-function lre(e, t, n) {
+var ire = 12;
+function are(e, t, n) {
let r = n;
- for (let n = 1; n < cre; n++) r -= e(r) / t(r);
+ for (let n = 1; n < ire; n++) r -= e(r) / t(r);
return r;
}
-var Cw = .001;
-function ure({ duration: e = xw.duration, bounce: t = xw.bounce, velocity: n = xw.velocity, mass: r = xw.mass }) {
+var Ew = .001;
+function ore({ duration: e = ww.duration, bounce: t = ww.bounce, velocity: n = ww.velocity, mass: r = ww.mass }) {
let i, a;
- xw.maxDuration;
+ ww.maxDuration;
let o = 1 - t;
- o = BS(xw.minDamping, xw.maxDamping, o), e = BS(xw.minDuration, xw.maxDuration, /* @__PURE__ */ ZS(e)), o < 1 ? (i = (t) => {
- let r = t * o, i = r * e, a = r - n, s = Sw(t, o), c = Math.exp(-i);
- return Cw - a / s * c;
+ o = US(ww.minDamping, ww.maxDamping, o), e = US(ww.minDuration, ww.maxDuration, /* @__PURE__ */ eC(e)), o < 1 ? (i = (t) => {
+ let r = t * o, i = r * e, a = r - n, s = Tw(t, o), c = Math.exp(-i);
+ return Ew - a / s * c;
}, a = (t) => {
- let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = Sw(t ** 2, o);
- return (-i(t) + Cw > 0 ? -1 : 1) * ((a - s) * c) / l;
+ let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = Tw(t ** 2, o);
+ return (-i(t) + Ew > 0 ? -1 : 1) * ((a - s) * c) / l;
}) : (i = (t) => -.001 + Math.exp(-t * e) * ((t - n) * e + 1), a = (t) => Math.exp(-t * e) * ((n - t) * (e * e)));
- let s = 5 / e, c = lre(i, a, s);
- if (e = /* @__PURE__ */ XS(e), isNaN(c)) return {
- stiffness: xw.stiffness,
- damping: xw.damping,
+ let s = 5 / e, c = are(i, a, s);
+ if (e = /* @__PURE__ */ $S(e), isNaN(c)) return {
+ stiffness: ww.stiffness,
+ damping: ww.damping,
duration: e
};
{
@@ -28118,47 +28112,47 @@ function ure({ duration: e = xw.duration, bounce: t = xw.bounce, velocity: n = x
};
}
}
-var dre = ["duration", "bounce"], fre = [
+var sre = ["duration", "bounce"], cre = [
"stiffness",
"damping",
"mass"
];
-function ww(e, t) {
+function Dw(e, t) {
return t.some((t) => e[t] !== void 0);
}
-function pre(e) {
+function lre(e) {
let t = {
- velocity: xw.velocity,
- stiffness: xw.stiffness,
- damping: xw.damping,
- mass: xw.mass,
+ velocity: ww.velocity,
+ stiffness: ww.stiffness,
+ damping: ww.damping,
+ mass: ww.mass,
isResolvedFromDuration: !1,
...e
};
- if (!ww(e, fre) && ww(e, dre)) {
+ if (!Dw(e, cre) && Dw(e, sre)) {
if (t.velocity = 0, e.visualDuration) {
- let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * BS(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
+ let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * US(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
t = {
...t,
- mass: xw.mass,
+ mass: ww.mass,
stiffness: i,
damping: a
};
} else {
- let n = ure({
+ let n = ore({
...e,
velocity: 0
});
t = {
...t,
...n,
- mass: xw.mass
+ mass: ww.mass
}, t.isResolvedFromDuration = !0;
}
}
return t;
}
-function Tw(e = xw.visualDuration, t = xw.bounce) {
+function Ow(e = ww.visualDuration, t = ww.bounce) {
let n = typeof e == "object" ? e : {
visualDuration: e,
keyframes: [0, 1],
@@ -28166,13 +28160,13 @@ function Tw(e = xw.visualDuration, t = xw.bounce) {
}, { restSpeed: r, restDelta: i } = n, a = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], s = {
done: !1,
value: a
- }, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = pre({
+ }, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = lre({
...n,
- velocity: -/* @__PURE__ */ ZS(n.velocity || 0)
- }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ ZS(Math.sqrt(c / u)), v = Math.abs(g) < 5;
- r ||= v ? xw.restSpeed.granular : xw.restSpeed.default, i ||= v ? xw.restDelta.granular : xw.restDelta.default;
+ velocity: -/* @__PURE__ */ eC(n.velocity || 0)
+ }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ eC(Math.sqrt(c / u)), v = Math.abs(g) < 5;
+ r ||= v ? ww.restSpeed.granular : ww.restSpeed.default, i ||= v ? ww.restDelta.granular : ww.restDelta.default;
let y, b, x, S, C, w;
- if (h < 1) x = Sw(_, h), S = (m + h * _ * g) / x, y = (e) => {
+ if (h < 1) x = Tw(_, h), S = (m + h * _ * g) / x, y = (e) => {
let t = Math.exp(-h * _ * e);
return o - t * (S * Math.sin(x * e) + g * Math.cos(x * e));
}, C = h * _ * S + g * x, w = h * _ * g - S * x, b = (e) => Math.exp(-h * _ * e) * (C * Math.sin(x * e) + w * Math.cos(x * e));
@@ -28194,42 +28188,42 @@ function Tw(e = xw.visualDuration, t = xw.bounce) {
}
let T = {
calculatedDuration: p && d || null,
- velocity: (e) => /* @__PURE__ */ XS(b(e)),
+ velocity: (e) => /* @__PURE__ */ $S(b(e)),
next: (e) => {
if (!p && h < 1) {
- let t = Math.exp(-h * _ * e), n = Math.sin(x * e), a = Math.cos(x * e), c = o - t * (S * n + g * a), l = /* @__PURE__ */ XS(t * (C * n + w * a));
+ let t = Math.exp(-h * _ * e), n = Math.sin(x * e), a = Math.cos(x * e), c = o - t * (S * n + g * a), l = /* @__PURE__ */ $S(t * (C * n + w * a));
return s.done = Math.abs(l) <= r && Math.abs(o - c) <= i, s.value = s.done ? o : c, s;
}
let t = y(e);
if (p) s.done = e >= d;
else {
- let n = /* @__PURE__ */ XS(b(e));
+ let n = /* @__PURE__ */ $S(b(e));
s.done = Math.abs(n) <= r && Math.abs(o - t) <= i;
}
return s.value = s.done ? o : t, s;
},
toString: () => {
- let e = Math.min(bw(T), yw), t = vw((t) => T.next(e * t).value, e, 30);
+ let e = Math.min(Cw(T), Sw), t = xw((t) => T.next(e * t).value, e, 30);
return e + "ms " + t;
},
toTransition: () => {}
};
return T;
}
-Tw.applyToOptions = (e) => {
- let t = sre(e, 100, Tw);
- return e.ease = t.ease, e.duration = /* @__PURE__ */ XS(t.duration), e.type = "keyframes", e;
+Ow.applyToOptions = (e) => {
+ let t = rre(e, 100, Ow);
+ return e.ease = t.ease, e.duration = /* @__PURE__ */ $S(t.duration), e.type = "keyframes", e;
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
-var mre = 5;
-function Ew(e, t, n) {
- let r = Math.max(t - mre, 0);
- return /* @__PURE__ */ QS(n - e(r), t - r);
+var ure = 5;
+function kw(e, t, n) {
+ let r = Math.max(t - ure, 0);
+ return /* @__PURE__ */ tC(n - e(r), t - r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
-function Dw({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
+function Aw({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
let d = e[0], f = {
done: !1,
value: d
@@ -28239,9 +28233,9 @@ function Dw({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
let t = v(e), n = y(e);
f.done = Math.abs(t) <= l, f.value = f.done ? _ : n;
}, x, S, C = (e) => {
- p(f.value) && (x = e, S = Tw({
+ p(f.value) && (x = e, S = Ow({
keyframes: [f.value, m(f.value)],
- velocity: Ew(y, e, f.value),
+ velocity: kw(y, e, f.value),
damping: i,
stiffness: a,
restDelta: l,
@@ -28258,59 +28252,59 @@ function Dw({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/interpolate.mjs
-function hre(e, t, n) {
- let r = [], i = n || VS.mix || _w, a = e.length - 1;
+function dre(e, t, n) {
+ let r = [], i = n || WS.mix || bw, a = e.length - 1;
for (let n = 0; n < a; n++) {
let a = i(e[n], e[n + 1]);
- t && (a = qS(Array.isArray(t) ? t[n] || KS : t, a)), r.push(a);
+ t && (a = XS(Array.isArray(t) ? t[n] || YS : t, a)), r.push(a);
}
return r;
}
-function Ow(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
+function jw(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
let a = e.length;
if (t.length, a === 1) return () => t[0];
if (a === 2 && t[0] === t[1]) return () => t[1];
let o = e[0] === e[1];
e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
- let s = hre(t, r, i), c = s.length, l = (n) => {
+ let s = dre(t, r, i), c = s.length, l = (n) => {
if (o && n < e[0]) return t[0];
let r = 0;
if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
- let i = /* @__PURE__ */ JS(e[r], e[r + 1], n);
+ let i = /* @__PURE__ */ ZS(e[r], e[r + 1], n);
return s[r](i);
};
- return n ? (t) => l(BS(e[0], e[a - 1], t)) : l;
+ return n ? (t) => l(US(e[0], e[a - 1], t)) : l;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
-function gre(e, t) {
+function fre(e, t) {
let n = e[e.length - 1];
for (let r = 1; r <= t; r++) {
- let i = /* @__PURE__ */ JS(0, t, r);
- e.push(uw(n, 1, i));
+ let i = /* @__PURE__ */ ZS(0, t, r);
+ e.push(pw(n, 1, i));
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
-function _re(e) {
+function pre(e) {
let t = [0];
- return gre(t, e.length - 1), t;
+ return fre(t, e.length - 1), t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
-function vre(e, t) {
+function mre(e, t) {
return e.map((e) => e * t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
-function yre(e, t) {
- return e.map(() => t || hC).splice(0, e.length - 1);
+function hre(e, t) {
+ return e.map(() => t || vC).splice(0, e.length - 1);
}
-function kw({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
- let i = /* @__PURE__ */ gC(r) ? r.map(bC) : bC(r), a = {
+function Mw({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
+ let i = /* @__PURE__ */ yC(r) ? r.map(CC) : CC(r), a = {
done: !1,
value: t[0]
- }, o = Ow(vre(n && n.length === t.length ? n : _re(t), e), t, { ease: Array.isArray(i) ? i : yre(t, i) });
+ }, o = jw(mre(n && n.length === t.length ? n : pre(t), e), t, { ease: Array.isArray(i) ? i : hre(t, i) });
return {
calculatedDuration: e,
next: (t) => (a.value = o(t), a.done = t >= e, a)
@@ -28318,26 +28312,26 @@ function kw({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
-var bre = (e) => e !== null;
-function Aw(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
- let a = e.filter(bre), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
+var gre = (e) => e !== null;
+function Nw(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
+ let a = e.filter(gre), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
return !o || r === void 0 ? a[o] : r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
-var xre = {
- decay: Dw,
- inertia: Dw,
- tween: kw,
- keyframes: kw,
- spring: Tw
+var _re = {
+ decay: Aw,
+ inertia: Aw,
+ tween: Mw,
+ keyframes: Mw,
+ spring: Ow
};
-function jw(e) {
- typeof e.type == "string" && (e.type = xre[e.type]);
+function Pw(e) {
+ typeof e.type == "string" && (e.type = _re[e.type]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
-var Mw = class {
+var Fw = class {
constructor() {
this.updateFinished();
}
@@ -28355,21 +28349,21 @@ var Mw = class {
then(e, t) {
return this.finished.then(e, t);
}
-}, Sre = (e) => e / 100, Nw = class extends Mw {
+}, vre = (e) => e / 100, Iw = class extends Fw {
constructor(e) {
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
done: !1,
value: void 0
}, this.stop = () => {
let { motionValue: e } = this.options;
- e && e.updatedAt !== jC.now() && this.tick(jC.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
+ e && e.updatedAt !== PC.now() && this.tick(PC.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
}, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause();
}
initAnimation() {
let { options: e } = this;
- jw(e);
- let { type: t = kw, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || kw;
- s !== kw && typeof o[0] != "number" && (this.mixKeyframes = qS(Sre, _w(o[0], o[1])), o = [0, 100]);
+ Pw(e);
+ let { type: t = Mw, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Mw;
+ s !== Mw && typeof o[0] != "number" && (this.mixKeyframes = XS(vre, bw(o[0], o[1])), o = [0, 100]);
let c = s({
...e,
keyframes: o
@@ -28378,7 +28372,7 @@ var Mw = class {
...e,
keyframes: [...o].reverse(),
velocity: -a
- })), c.calculatedDuration === null && (c.calculatedDuration = bw(c));
+ })), c.calculatedDuration === null && (c.calculatedDuration = Cw(c));
let { calculatedDuration: l } = c;
this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
}
@@ -28396,54 +28390,54 @@ var Mw = class {
let v = this.currentTime, y = n;
if (u) {
let e = Math.min(this.currentTime, r) / o, t = Math.floor(e), n = e % 1;
- !n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = BS(0, 1, n) * o;
+ !n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = US(0, 1, n) * o;
}
let b;
_ ? (this.delayState.value = l[0], b = this.delayState) : b = y.next(v), i && !_ && (b.value = i(b.value));
let { done: x } = b;
!_ && s !== null && (x = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
let S = this.holdTime === null && (this.state === "finished" || this.state === "running" && x);
- return S && p !== Dw && (b.value = Aw(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;
+ return S && p !== Aw && (b.value = Nw(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;
}
then(e, t) {
return this.finished.then(e, t);
}
get duration() {
- return /* @__PURE__ */ ZS(this.calculatedDuration);
+ return /* @__PURE__ */ eC(this.calculatedDuration);
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ ZS(e);
+ return this.duration + /* @__PURE__ */ eC(e);
}
get time() {
- return /* @__PURE__ */ ZS(this.currentTime);
+ return /* @__PURE__ */ eC(this.currentTime);
}
set time(e) {
- e = /* @__PURE__ */ XS(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
+ e = /* @__PURE__ */ $S(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
}
getGeneratorVelocity() {
let e = this.currentTime;
if (e <= 0) return this.options.velocity || 0;
if (this.generator.velocity) return this.generator.velocity(e);
let t = this.generator.next(e).value;
- return Ew((e) => this.generator.next(e).value, e, t);
+ return kw((e) => this.generator.next(e).value, e, t);
}
get speed() {
return this.playbackSpeed;
}
set speed(e) {
let t = this.playbackSpeed !== e;
- t && this.driver && this.updateTime(jC.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ ZS(this.currentTime));
+ t && this.driver && this.updateTime(PC.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ eC(this.currentTime));
}
play() {
if (this.isStopped) return;
- let { driver: e = ore, startTime: t } = this.options;
+ let { driver: e = nre, startTime: t } = this.options;
this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
let n = this.driver.now();
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? n : this.startTime = n - this.holdTime, this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
}
pause() {
- this.state = "paused", this.updateTime(jC.now()), this.holdTime = this.currentTime;
+ this.state = "paused", this.updateTime(PC.now()), this.holdTime = this.currentTime;
}
complete() {
this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
@@ -28469,12 +28463,12 @@ var Mw = class {
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
-function Pw(e) {
+function Lw(e) {
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
-var Fw = (e) => e * 180 / Math.PI, Iw = (e) => Lw(Fw(Math.atan2(e[1], e[0]))), Cre = {
+var Rw = (e) => e * 180 / Math.PI, zw = (e) => Bw(Rw(Math.atan2(e[1], e[0]))), yre = {
x: 4,
y: 5,
translateX: 4,
@@ -28482,54 +28476,54 @@ var Fw = (e) => e * 180 / Math.PI, Iw = (e) => Lw(Fw(Math.atan2(e[1], e[0]))), C
scaleX: 0,
scaleY: 3,
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
- rotate: Iw,
- rotateZ: Iw,
- skewX: (e) => Fw(Math.atan(e[1])),
- skewY: (e) => Fw(Math.atan(e[2])),
+ rotate: zw,
+ rotateZ: zw,
+ skewX: (e) => Rw(Math.atan(e[1])),
+ skewY: (e) => Rw(Math.atan(e[2])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
-}, Lw = (e) => (e %= 360, e < 0 && (e += 360), e), Rw = Iw, zw = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Bw = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), wre = {
+}, Bw = (e) => (e %= 360, e < 0 && (e += 360), e), Vw = zw, Hw = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Uw = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), bre = {
x: 12,
y: 13,
z: 14,
translateX: 12,
translateY: 13,
translateZ: 14,
- scaleX: zw,
- scaleY: Bw,
- scale: (e) => (zw(e) + Bw(e)) / 2,
- rotateX: (e) => Lw(Fw(Math.atan2(e[6], e[5]))),
- rotateY: (e) => Lw(Fw(Math.atan2(-e[2], e[0]))),
- rotateZ: Rw,
- rotate: Rw,
- skewX: (e) => Fw(Math.atan(e[4])),
- skewY: (e) => Fw(Math.atan(e[1])),
+ scaleX: Hw,
+ scaleY: Uw,
+ scale: (e) => (Hw(e) + Uw(e)) / 2,
+ rotateX: (e) => Bw(Rw(Math.atan2(e[6], e[5]))),
+ rotateY: (e) => Bw(Rw(Math.atan2(-e[2], e[0]))),
+ rotateZ: Vw,
+ rotate: Vw,
+ skewX: (e) => Rw(Math.atan(e[4])),
+ skewY: (e) => Rw(Math.atan(e[1])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
};
-function Vw(e) {
+function Ww(e) {
return +!!e.includes("scale");
}
-function Hw(e, t) {
- if (!e || e === "none") return Vw(t);
+function Gw(e, t) {
+ if (!e || e === "none") return Ww(t);
let n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u), r, i;
- if (n) r = wre, i = n;
+ if (n) r = bre, i = n;
else {
let t = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
- r = Cre, i = t;
+ r = yre, i = t;
}
- if (!i) return Vw(t);
- let a = r[t], o = i[1].split(",").map(Ere);
+ if (!i) return Ww(t);
+ let a = r[t], o = i[1].split(",").map(Sre);
return typeof a == "function" ? a(o) : o[a];
}
-var Tre = (e, t) => {
+var xre = (e, t) => {
let { transform: n = "none" } = getComputedStyle(e);
- return Hw(n, t);
+ return Gw(n, t);
};
-function Ere(e) {
+function Sre(e) {
return parseFloat(e.trim());
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs
-var Uw = [
+var Kw = [
"transformPerspective",
"x",
"y",
@@ -28547,19 +28541,19 @@ var Uw = [
"skew",
"skewX",
"skewY"
-], Ww = /* @__PURE__ */ new Set([...Uw, "pathRotation"]), Gw = (e) => e === RC || e === X, Dre = /* @__PURE__ */ new Set([
+], qw = /* @__PURE__ */ new Set([...Kw, "pathRotation"]), Jw = (e) => e === VC || e === X, Cre = /* @__PURE__ */ new Set([
"x",
"y",
"z"
-]), Ore = Uw.filter((e) => !Dre.has(e));
-function kre(e) {
+]), wre = Kw.filter((e) => !Cre.has(e));
+function Tre(e) {
let t = [];
- return Ore.forEach((n) => {
+ return wre.forEach((n) => {
let r = e.getValue(n);
r !== void 0 && (t.push([n, r.get()]), r.set(+!!n.startsWith("scale")));
}), t;
}
-var Kw = {
+var Yw = {
width: ({ x: e }, { paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }) => {
let i = e.max - e.min;
return r === "border-box" ? i : i - parseFloat(t) - parseFloat(n);
@@ -28572,18 +28566,18 @@ var Kw = {
left: (e, { left: t }) => parseFloat(t),
bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
- x: (e, { transform: t }) => Hw(t, "x"),
- y: (e, { transform: t }) => Hw(t, "y")
+ x: (e, { transform: t }) => Gw(t, "x"),
+ y: (e, { transform: t }) => Gw(t, "y")
};
-Kw.translateX = Kw.x, Kw.translateY = Kw.y;
+Yw.translateX = Yw.x, Yw.translateY = Yw.y;
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs
-var qw = /* @__PURE__ */ new Set(), Jw = !1, Yw = !1, Xw = !1;
-function Zw() {
- if (Yw) {
- let e = Array.from(qw).filter((e) => e.needsMeasurement), t = new Set(e.map((e) => e.element)), n = /* @__PURE__ */ new Map();
+var Xw = /* @__PURE__ */ new Set(), Zw = !1, Qw = !1, $w = !1;
+function eT() {
+ if (Qw) {
+ let e = Array.from(Xw).filter((e) => e.needsMeasurement), t = new Set(e.map((e) => e.element)), n = /* @__PURE__ */ new Map();
t.forEach((e) => {
- let t = kre(e);
+ let t = Tre(e);
t.length && (n.set(e, t), e.render());
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
e.render();
@@ -28595,22 +28589,22 @@ function Zw() {
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
});
}
- Yw = !1, Jw = !1, qw.forEach((e) => e.complete(Xw)), qw.clear();
+ Qw = !1, Zw = !1, Xw.forEach((e) => e.complete($w)), Xw.clear();
}
-function Qw() {
- qw.forEach((e) => {
- e.readKeyframes(), e.needsMeasurement && (Yw = !0);
+function tT() {
+ Xw.forEach((e) => {
+ e.readKeyframes(), e.needsMeasurement && (Qw = !0);
});
}
-function Are() {
- Xw = !0, Qw(), Zw(), Xw = !1;
+function Ere() {
+ $w = !0, tT(), eT(), $w = !1;
}
-var $w = class {
+var nT = class {
constructor(e, t, n, r, i, a = !1) {
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
}
scheduleResolve() {
- this.state = "scheduled", this.isAsync ? (qw.add(this), Jw || (Jw = !0, TC.read(Qw), TC.resolveKeyframes(Zw))) : (this.readKeyframes(), this.complete());
+ this.state = "scheduled", this.isAsync ? (Xw.add(this), Zw || (Zw = !0, OC.read(tT), OC.resolveKeyframes(eT))) : (this.readKeyframes(), this.complete());
}
readKeyframes() {
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
@@ -28623,70 +28617,70 @@ var $w = class {
}
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
}
- Pw(e);
+ Lw(e);
}
setFinalKeyframe() {}
measureInitialState() {}
renderEndStyles() {}
measureEndState() {}
complete(e = !1) {
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), qw.delete(this);
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), Xw.delete(this);
}
cancel() {
- this.state === "scheduled" && (qw.delete(this), this.state = "pending");
+ this.state === "scheduled" && (Xw.delete(this), this.state = "pending");
}
resume() {
this.state === "pending" && this.scheduleResolve();
}
-}, eT = (e) => e.startsWith("--");
+}, rT = (e) => e.startsWith("--");
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/style-set.mjs
-function tT(e, t, n) {
- eT(t) ? e.style.setProperty(t, n) : e.style[t] = n;
+function iT(e, t, n) {
+ rT(t) ? e.style.setProperty(t, n) : e.style[t] = n;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/flags.mjs
-var jre = {};
+var Dre = {};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/memo.mjs
-function nT(e, t) {
- let n = /* @__PURE__ */ GS(e);
- return () => jre[t] ?? n();
+function aT(e, t) {
+ let n = /* @__PURE__ */ JS(e);
+ return () => Dre[t] ?? n();
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
-var Mre = /* @__PURE__ */ nT(() => window.ScrollTimeline !== void 0, "scrollTimeline"), rT = /*@__PURE__*/ nT(() => {
+var Ore = /* @__PURE__ */ aT(() => window.ScrollTimeline !== void 0, "scrollTimeline"), oT = /*@__PURE__*/ aT(() => {
try {
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
} catch {
return !1;
}
return !0;
-}, "linearEasing"), iT = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, aT = {
+}, "linearEasing"), sT = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, cT = {
linear: "linear",
ease: "ease",
easeIn: "ease-in",
easeOut: "ease-out",
easeInOut: "ease-in-out",
- circIn: /*@__PURE__*/ iT([
+ circIn: /*@__PURE__*/ sT([
0,
.65,
.55,
1
]),
- circOut: /*@__PURE__*/ iT([
+ circOut: /*@__PURE__*/ sT([
.55,
0,
1,
.45
]),
- backIn: /*@__PURE__*/ iT([
+ backIn: /*@__PURE__*/ sT([
.31,
.01,
.66,
-.59
]),
- backOut: /*@__PURE__*/ iT([
+ backOut: /*@__PURE__*/ sT([
.33,
1.53,
.69,
@@ -28695,15 +28689,15 @@ var Mre = /* @__PURE__ */ nT(() => window.ScrollTimeline !== void 0, "scrollTime
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
-function oT(e, t) {
- if (e) return typeof e == "function" ? rT() ? vw(e, t) : "ease-out" : /* @__PURE__ */ _C(e) ? iT(e) : Array.isArray(e) ? e.map((e) => oT(e, t) || aT.easeOut) : aT[e];
+function lT(e, t) {
+ if (e) return typeof e == "function" ? oT() ? xw(e, t) : "ease-out" : /* @__PURE__ */ bC(e) ? sT(e) : Array.isArray(e) ? e.map((e) => lT(e, t) || cT.easeOut) : cT[e];
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
-function Nre(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
+function kre(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
let u = { [t]: n };
c && (u.offset = c);
- let d = oT(s, i);
+ let d = lT(s, i);
Array.isArray(d) && (u.easing = d);
let f = {
delay: r,
@@ -28717,26 +28711,26 @@ function Nre(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTy
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
-function sT(e) {
+function uT(e) {
return typeof e == "function" && "applyToOptions" in e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
-function Pre({ type: e, ...t }) {
- return sT(e) && rT() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
+function Are({ type: e, ...t }) {
+ return uT(e) && oT() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
-var cT = class extends Mw {
+var dT = class extends Fw {
constructor(e) {
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e, e.type;
- let c = Pre(e);
- this.animation = Nre(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
+ let c = Are(e);
+ this.animation = kre(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
if (this.finishedTime = this.time, !i) {
- let e = Aw(r, this.options, o, this.speed);
- this.updateMotionValue && this.updateMotionValue(e), tT(t, n, e), this.animation.cancel();
+ let e = Nw(r, this.options, o, this.speed);
+ this.updateMotionValue && this.updateMotionValue(e), iT(t, n, e), this.animation.cancel();
}
s?.(), this.notifyFinished();
};
@@ -28767,18 +28761,18 @@ var cT = class extends Mw {
}
get duration() {
let e = this.animation.effect?.getComputedTiming?.().duration || 0;
- return /* @__PURE__ */ ZS(Number(e));
+ return /* @__PURE__ */ eC(Number(e));
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ ZS(e);
+ return this.duration + /* @__PURE__ */ eC(e);
}
get time() {
- return /* @__PURE__ */ ZS(Number(this.animation.currentTime) || 0);
+ return /* @__PURE__ */ eC(Number(this.animation.currentTime) || 0);
}
set time(e) {
let t = this.finishedTime !== null;
- this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ XS(e), t && this.animation.pause();
+ this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ $S(e), t && this.animation.pause();
}
get speed() {
return this.animation.playbackRate;
@@ -28796,24 +28790,24 @@ var cT = class extends Mw {
this.manualStartTime = this.animation.startTime = e;
}
attachTimeline({ timeline: e, rangeStart: t, rangeEnd: n, observe: r }) {
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Mre() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), KS) : r(this);
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Ore() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), YS) : r(this);
}
-}, lT = {
- anticipate: lC,
- backInOut: cC,
- circInOut: fC
+}, fT = {
+ anticipate: fC,
+ backInOut: dC,
+ circInOut: hC
};
-function Fre(e) {
- return e in lT;
+function jre(e) {
+ return e in fT;
}
-function Ire(e) {
- typeof e.ease == "string" && Fre(e.ease) && (e.ease = lT[e.ease]);
+function Mre(e) {
+ typeof e.ease == "string" && jre(e.ease) && (e.ease = fT[e.ease]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs
-var uT = 10, Lre = class extends cT {
+var pT = 10, Nre = class extends dT {
constructor(e) {
- Ire(e), jw(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
+ Mre(e), Pw(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
}
updateMotionValue(e) {
let { motionValue: t, onUpdate: n, onComplete: r, element: i, ...a } = this.options;
@@ -28822,48 +28816,48 @@ var uT = 10, Lre = class extends cT {
t.set(e);
return;
}
- let o = new Nw({
+ let o = new Iw({
...a,
autoplay: !1
- }), s = Math.max(uT, jC.now() - this.startTime), c = BS(0, uT, s - uT), l = o.sample(s).value, { name: u } = this.options;
- i && u && tT(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();
+ }), s = Math.max(pT, PC.now() - this.startTime), c = US(0, pT, s - pT), l = o.sample(s).value, { name: u } = this.options;
+ i && u && iT(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();
}
-}, dT = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (sw.test(e) || e === "0") && !e.startsWith("url("));
+}, mT = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (uw.test(e) || e === "0") && !e.startsWith("url("));
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
-function Rre(e) {
+function Pre(e) {
let t = e[0];
if (e.length === 1) return !0;
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
}
-function zre(e, t, n, r) {
+function Fre(e, t, n, r) {
let i = e[0];
if (i === null) return !1;
if (t === "display" || t === "visibility") return !0;
- let a = e[e.length - 1], o = dT(i, t), s = dT(a, t);
- return `${t}${i}${a}${o ? a : i}`, !o || !s ? !1 : Rre(e) || (n === "spring" || sT(n)) && r;
+ let a = e[e.length - 1], o = mT(i, t), s = mT(a, t);
+ return `${t}${i}${a}${o ? a : i}`, !o || !s ? !1 : Pre(e) || (n === "spring" || uT(n)) && r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
-function fT(e) {
+function hT(e) {
e.duration = 0, e.type = "keyframes";
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
-var pT = /* @__PURE__ */ new Set([
+var gT = /* @__PURE__ */ new Set([
"opacity",
"clipPath",
"filter",
"transform",
"backgroundColor"
-]), Bre = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
-function Vre(e) {
- for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && Bre.test(e[t])) return !0;
+]), Ire = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
+function Lre(e) {
+ for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && Ire.test(e[t])) return !0;
return !1;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs
-var Hre = /* @__PURE__ */ new Set([
+var Rre = /* @__PURE__ */ new Set([
"color",
"backgroundColor",
"outlineColor",
@@ -28874,20 +28868,20 @@ var Hre = /* @__PURE__ */ new Set([
"borderRightColor",
"borderBottomColor",
"borderLeftColor"
-]), Ure = /*@__PURE__*/ GS(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
-function Wre(e) {
+]), zre = /*@__PURE__*/ JS(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
+function Bre(e) {
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e, c = t?.owner?.current;
if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;
let { onUpdate: l, transformTemplate: u } = t.owner.getProps();
- return Ure() && n && (pT.has(n) || Hre.has(n) && Vre(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia";
+ return zre() && n && (gT.has(n) || Rre.has(n) && Lre(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia";
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
-var Gre = 40, Kre = class extends Mw {
+var Vre = 40, Hre = class extends Fw {
constructor({ autoplay: e = !0, delay: t = 0, type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: a = "loop", keyframes: o, name: s, motionValue: c, element: l, ...u }) {
super(), this.stop = () => {
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
- }, this.createdAt = jC.now();
+ }, this.createdAt = PC.now();
let d = {
autoplay: e,
delay: t,
@@ -28899,33 +28893,33 @@ var Gre = 40, Kre = class extends Mw {
motionValue: c,
element: l,
...u
- }, f = l?.KeyframeResolver || $w;
+ }, f = l?.KeyframeResolver || nT;
this.keyframeResolver = new f(o, (e, t, n) => this.onKeyframesResolved(e, t, d, !n), s, c, l), this.keyframeResolver?.scheduleResolve();
}
onKeyframesResolved(e, t, n, r) {
this.keyframeResolver = void 0;
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
- this.resolvedAt = jC.now();
+ this.resolvedAt = PC.now();
let u = !0;
- zre(e, i, a, o) || (u = !1, (VS.instantAnimations || !s) && l?.(Aw(e, n, t)), e[0] = e[e.length - 1], fT(n), n.repeat = 0);
+ Fre(e, i, a, o) || (u = !1, (WS.instantAnimations || !s) && l?.(Nw(e, n, t)), e[0] = e[e.length - 1], hT(n), n.repeat = 0);
let d = {
- startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > Gre ? this.resolvedAt : this.createdAt : void 0,
+ startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > Vre ? this.resolvedAt : this.createdAt : void 0,
finalKeyframe: t,
...n,
keyframes: e
- }, f = u && !c && Wre(d), p = d.motionValue?.owner?.current, m;
+ }, f = u && !c && Bre(d), p = d.motionValue?.owner?.current, m;
if (f) try {
- m = new Lre({
+ m = new Nre({
...d,
element: p
});
} catch {
- m = new Nw(d);
+ m = new Iw(d);
}
- else m = new Nw(d);
+ else m = new Iw(d);
m.finished.then(() => {
this.notifyFinished();
- }).catch(KS), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
+ }).catch(YS), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
}
get finished() {
return this._animation ? this.animation.finished : this._finished;
@@ -28934,7 +28928,7 @@ var Gre = 40, Kre = class extends Mw {
return this.finished.finally(e).then(() => {});
}
get animation() {
- return this._animation || (this.keyframeResolver?.resume(), Are()), this._animation;
+ return this._animation || (this.keyframeResolver?.resume(), Ere()), this._animation;
}
get duration() {
return this.animation.duration;
@@ -28975,7 +28969,7 @@ var Gre = 40, Kre = class extends Mw {
cancel() {
this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
}
-}, qre = class {
+}, Ure = class {
constructor(e) {
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
}
@@ -29015,10 +29009,10 @@ var Gre = 40, Kre = class extends Mw {
return this.getAll("startTime");
}
get duration() {
- return mT(this.animations, "duration");
+ return _T(this.animations, "duration");
}
get iterationDuration() {
- return mT(this.animations, "iterationDuration");
+ return _T(this.animations, "iterationDuration");
}
runAll(e) {
this.animations.forEach((t) => t[e]());
@@ -29036,7 +29030,7 @@ var Gre = 40, Kre = class extends Mw {
this.runAll("complete");
}
};
-function mT(e, t) {
+function _T(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) {
let i = e[r][t];
@@ -29046,32 +29040,32 @@ function mT(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
-var Jre = class extends qre {
+var Wre = class extends Ure {
then(e, t) {
return this.finished.finally(e).then(() => {});
}
-}, hT = /* @__PURE__ */ new WeakMap(), Yre = (e, t = "") => `${e}:${t}`;
-function Xre(e) {
- let t = hT.get(e);
- return t || (t = /* @__PURE__ */ new Map(), hT.set(e, t)), t;
+}, vT = /* @__PURE__ */ new WeakMap(), Gre = (e, t = "") => `${e}:${t}`;
+function Kre(e) {
+ let t = vT.get(e);
+ return t || (t = /* @__PURE__ */ new Map(), vT.set(e, t)), t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
-function gT(e, t, n, r = 0, i = 1) {
+function yT(e, t, n, r = 0, i = 1) {
let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/index.mjs
-var _T = 30, Zre = (e) => !isNaN(parseFloat(e)), vT = { current: void 0 }, Qre = class {
+var bT = 30, qre = (e) => !isNaN(parseFloat(e)), xT = { current: void 0 }, Jre = class {
constructor(e, t = {}) {
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
- let t = jC.now();
+ let t = PC.now();
if (this.updatedAt !== t && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(e), this.current !== this.prev && (this.events.change?.notify(this.current), this.dependents)) for (let e of this.dependents) e.dirty();
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
}
setCurrent(e) {
- this.current = e, this.updatedAt = jC.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Zre(this.current));
+ this.current = e, this.updatedAt = PC.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = qre(this.current));
}
setPrevFrameValue(e = this.current) {
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -29080,10 +29074,10 @@ var _T = 30, Zre = (e) => !isNaN(parseFloat(e)), vT = { current: void 0 }, Qre =
return this.on("change", e);
}
on(e, t) {
- this.events[e] || (this.events[e] = new YS());
+ this.events[e] || (this.events[e] = new QS());
let n = this.events[e].add(t);
return e === "change" ? () => {
- n(), TC.read(() => {
+ n(), OC.read(() => {
this.events.change.getSize() || this.stop();
});
} : n;
@@ -29113,16 +29107,16 @@ var _T = 30, Zre = (e) => !isNaN(parseFloat(e)), vT = { current: void 0 }, Qre =
this.dependents && this.dependents.delete(e);
}
get() {
- return vT.current && vT.current.push(this), this.current;
+ return xT.current && xT.current.push(this), this.current;
}
getPrevious() {
return this.prev;
}
getVelocity() {
- let e = jC.now();
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > _T) return 0;
- let t = Math.min(this.updatedAt - this.prevUpdatedAt, _T);
- return /* @__PURE__ */ QS(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
+ let e = PC.now();
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > bT) return 0;
+ let t = Math.min(this.updatedAt - this.prevUpdatedAt, bT);
+ return /* @__PURE__ */ tC(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
}
start(e) {
return this.stop(), new Promise((t) => {
@@ -29144,12 +29138,12 @@ var _T = 30, Zre = (e) => !isNaN(parseFloat(e)), vT = { current: void 0 }, Qre =
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
}
};
-function yT(e, t) {
- return new Qre(e, t);
+function ST(e, t) {
+ return new Jre(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
-function bT(e, t) {
+function CT(e, t) {
if (e?.inherit && t) {
let { inherit: n, ...r } = e;
return {
@@ -29161,26 +29155,26 @@ function bT(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
-function xT(e, t) {
+function wT(e, t) {
let n = e?.[t] ?? e?.default ?? e;
- return n === e ? n : bT(n, e);
+ return n === e ? n : CT(n, e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
-var $re = {
+var Yre = {
type: "spring",
stiffness: 500,
damping: 25,
restSpeed: 10
-}, eie = (e) => ({
+}, Xre = (e) => ({
type: "spring",
stiffness: 550,
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
restSpeed: 10
-}), tie = {
+}), Zre = {
type: "keyframes",
duration: .8
-}, nie = {
+}, Qre = {
type: "keyframes",
ease: [
.25,
@@ -29189,7 +29183,7 @@ var $re = {
1
],
duration: .3
-}, rie = (e, { keyframes: t }) => t.length > 2 ? tie : Ww.has(e) ? e.startsWith("scale") ? eie(t[1]) : $re : nie, iie = /* @__PURE__ */ new Set([
+}, $re = (e, { keyframes: t }) => t.length > 2 ? Zre : qw.has(e) ? e.startsWith("scale") ? Xre(t[1]) : Yre : Qre, eie = /* @__PURE__ */ new Set([
"when",
"delay",
"delayChildren",
@@ -29201,15 +29195,15 @@ var $re = {
"from",
"elapsed"
]);
-function aie(e) {
- for (let t in e) if (!iie.has(t)) return !0;
+function tie(e) {
+ for (let t in e) if (!eie.has(t)) return !0;
return !1;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
-var ST = (e, t, n, r = {}, i, a) => (o) => {
- let s = xT(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
- l -= /* @__PURE__ */ XS(c);
+var TT = (e, t, n, r = {}, i, a) => (o) => {
+ let s = wT(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
+ l -= /* @__PURE__ */ $S(c);
let u = {
keyframes: Array.isArray(n) ? n : [null, n],
ease: "easeOut",
@@ -29226,160 +29220,160 @@ var ST = (e, t, n, r = {}, i, a) => (o) => {
motionValue: t,
element: a ? void 0 : i
};
- aie(s) || Object.assign(u, rie(e, u)), u.duration &&= /* @__PURE__ */ XS(u.duration), u.repeatDelay &&= /* @__PURE__ */ XS(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
+ tie(s) || Object.assign(u, $re(e, u)), u.duration &&= /* @__PURE__ */ $S(u.duration), u.repeatDelay &&= /* @__PURE__ */ $S(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
let d = !1;
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (fT(u), u.delay === 0 && (d = !0)), (VS.instantAnimations || VS.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, fT(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
- let e = Aw(u.keyframes, s);
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (hT(u), u.delay === 0 && (d = !0)), (WS.instantAnimations || WS.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, hT(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
+ let e = Nw(u.keyframes, s);
if (e !== void 0) {
- TC.update(() => {
+ OC.update(() => {
u.onUpdate(e), u.onComplete();
});
return;
}
}
- return s.isSync ? new Nw(u) : new Kre(u);
-}, oie = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
-function sie(e) {
- let t = oie.exec(e);
+ return s.isSync ? new Iw(u) : new Hre(u);
+}, nie = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
+function rie(e) {
+ let t = nie.exec(e);
if (!t) return [,];
let [, n, r, i] = t;
return [`--${n ?? r}`, i];
}
-function CT(e, t, n = 1) {
+function ET(e, t, n = 1) {
`${e}`;
- let [r, i] = sie(e);
+ let [r, i] = rie(e);
if (!r) return;
let a = window.getComputedStyle(t).getPropertyValue(r);
if (a) {
let e = a.trim();
- return HS(e) ? parseFloat(e) : e;
+ return GS(e) ? parseFloat(e) : e;
}
- return FC(i) ? CT(i, t, n + 1) : i;
+ return RC(i) ? ET(i, t, n + 1) : i;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
-function wT(e) {
+function DT(e) {
let t = [{}, {}];
return e?.values.forEach((e, n) => {
t[0][n] = e.get(), t[1][n] = e.getVelocity();
}), t;
}
-function TT(e, t, n, r) {
+function OT(e, t, n, r) {
if (typeof t == "function") {
- let [i, a] = wT(r);
+ let [i, a] = DT(r);
t = t(n === void 0 ? e.custom : n, i, a);
}
if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
- let [i, a] = wT(r);
+ let [i, a] = DT(r);
t = t(n === void 0 ? e.custom : n, i, a);
}
return t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
-function ET(e, t, n) {
+function kT(e, t, n) {
let r = e.getProps();
- return TT(r, t, n === void 0 ? r.custom : n, e);
+ return OT(r, t, n === void 0 ? r.custom : n, e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/keys-position.mjs
-var DT = /* @__PURE__ */ new Set([
+var AT = /* @__PURE__ */ new Set([
"width",
"height",
"top",
"left",
"right",
"bottom",
- ...Uw
-]), OT = (e) => Array.isArray(e);
+ ...Kw
+]), jT = (e) => Array.isArray(e);
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/setters.mjs
-function cie(e, t, n) {
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, yT(n));
+function iie(e, t, n) {
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, ST(n));
}
-function lie(e) {
- return OT(e) ? e[e.length - 1] || 0 : e;
+function aie(e) {
+ return jT(e) ? e[e.length - 1] || 0 : e;
}
-function uie(e, t) {
- let { transitionEnd: n = {}, transition: r = {}, ...i } = ET(e, t) || {};
+function oie(e, t) {
+ let { transitionEnd: n = {}, transition: r = {}, ...i } = kT(e, t) || {};
i = {
...i,
...n
};
- for (let t in i) cie(e, t, lie(i[t]));
+ for (let t in i) iie(e, t, aie(i[t]));
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
-var kT = (e) => !!(e && e.getVelocity);
+var MT = (e) => !!(e && e.getVelocity);
//#endregion
//#region node_modules/motion-dom/dist/es/value/will-change/is.mjs
-function die(e) {
- return !!(kT(e) && e.add);
+function sie(e) {
+ return !!(MT(e) && e.add);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
-function AT(e, t) {
+function NT(e, t) {
let n = e.getValue("willChange");
- if (die(n)) return n.add(t);
- if (!n && VS.WillChange) {
- let n = new VS.WillChange("auto");
+ if (sie(n)) return n.add(t);
+ if (!n && WS.WillChange) {
+ let n = new WS.WillChange("auto");
e.addValue("willChange", n), n.add(t);
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
-function jT(e) {
+function PT(e) {
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
}
-var MT = "data-" + jT("framerAppearId");
+var FT = "data-" + PT("framerAppearId");
//#endregion
//#region node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
-function NT(e) {
- return e.props[MT];
+function IT(e) {
+ return e.props[FT];
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
-function fie({ protectedKeys: e, needsAnimating: t }, n) {
+function cie({ protectedKeys: e, needsAnimating: t }, n) {
let r = e.hasOwnProperty(n) && t[n] !== !0;
return t[n] = !1, r;
}
-function PT(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
+function LT(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
- a = a ? bT(a, c) : c;
+ a = a ? CT(a, c) : c;
let l = a?.reduceMotion, u = a?.skipAnimations;
r && (a = r);
let d = [], f = i && e.animationState && e.animationState.getState()[i], p = a?.path;
p && p.animateVisualElement(e, s, a, n, d);
for (let t in s) {
let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
- if (i === void 0 || f && fie(f, t)) continue;
+ if (i === void 0 || f && cie(f, t)) continue;
let o = {
delay: n,
- ...xT(a || {}, t)
+ ...wT(a || {}, t)
};
u && (o.skipAnimations = !0);
let c = r.get();
if (c !== void 0 && !r.isAnimating() && !Array.isArray(i) && i === c && !o.velocity) {
- TC.update(() => r.set(i));
+ OC.update(() => r.set(i));
continue;
}
let p = !1;
if (window.MotionHandoffAnimation) {
- let n = NT(e);
+ let n = IT(e);
if (n) {
- let e = window.MotionHandoffAnimation(n, t, TC);
+ let e = window.MotionHandoffAnimation(n, t, OC);
e !== null && (o.startTime = e, p = !0);
}
}
- AT(e, t);
+ NT(e, t);
let m = l ?? e.shouldReduceMotion;
- r.start(ST(t, r, i, m && DT.has(t) ? { type: !1 } : o, e, p));
+ r.start(TT(t, r, i, m && AT.has(t) ? { type: !1 } : o, e, p));
let h = r.animation;
h && d.push(h);
}
if (o) {
- let t = () => TC.update(() => {
- o && uie(e, o);
+ let t = () => OC.update(() => {
+ o && oie(e, o);
});
d.length ? Promise.all(d).then(t) : t();
}
@@ -29387,12 +29381,12 @@ function PT(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
-function FT(e, t, n = {}) {
- let r = ET(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0), { transition: i = e.getDefaultTransition() || {} } = r || {};
+function RT(e, t, n = {}) {
+ let r = kT(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0), { transition: i = e.getDefaultTransition() || {} } = r || {};
n.transitionOverride && (i = n.transitionOverride);
- let a = r ? () => Promise.all(PT(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {
+ let a = r ? () => Promise.all(LT(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {
let { delayChildren: a = 0, staggerChildren: o, staggerDirection: s } = i;
- return pie(e, t, r, a, o, s, n);
+ return lie(e, t, r, a, o, s, n);
} : () => Promise.resolve(), { when: s } = i;
if (s) {
let [e, t] = s === "beforeChildren" ? [a, o] : [o, a];
@@ -29400,26 +29394,26 @@ function FT(e, t, n = {}) {
}
return Promise.all([a(), o(n.delay)]);
}
-function pie(e, t, n = 0, r = 0, i = 0, a = 1, o) {
+function lie(e, t, n = 0, r = 0, i = 0, a = 1, o) {
let s = [];
- for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(FT(c, t, {
+ for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(RT(c, t, {
...o,
- delay: n + (typeof r == "function" ? 0 : r) + gT(e.variantChildren, c, r, i, a)
+ delay: n + (typeof r == "function" ? 0 : r) + yT(e.variantChildren, c, r, i, a)
}).then(() => c.notify("AnimationComplete", t)));
return Promise.all(s);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
-function mie(e, t, n = {}) {
+function uie(e, t, n = {}) {
e.notify("AnimationStart", t);
let r;
if (Array.isArray(t)) {
- let i = t.map((t) => FT(e, t, n));
+ let i = t.map((t) => RT(e, t, n));
r = Promise.all(i);
- } else if (typeof t == "string") r = FT(e, t, n);
+ } else if (typeof t == "string") r = RT(e, t, n);
else {
- let i = typeof t == "function" ? ET(e, t, n.custom) : t;
- r = Promise.all(PT(e, i, n));
+ let i = typeof t == "function" ? kT(e, t, n.custom) : t;
+ r = Promise.all(LT(e, i, n));
}
return r.then(() => {
e.notify("AnimationComplete", t);
@@ -29427,58 +29421,58 @@ function mie(e, t, n = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/auto.mjs
-var hie = {
+var die = {
test: (e) => e === "auto",
parse: (e) => e
-}, IT = (e) => (t) => t.test(e), LT = [
- RC,
+}, zT = (e) => (t) => t.test(e), BT = [
+ VC,
X,
- QC,
- ZC,
- Vne,
- Bne,
- hie
-], RT = (e) => LT.find(IT(e));
+ tw,
+ ew,
+ Lne,
+ Ine,
+ die
+], VT = (e) => BT.find(zT(e));
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
-function gie(e) {
- return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || WS(e);
+function fie(e) {
+ return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || qS(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/complex/filter.mjs
-var _ie = /* @__PURE__ */ new Set([
+var pie = /* @__PURE__ */ new Set([
"brightness",
"contrast",
"saturate",
"opacity"
]);
-function vie(e) {
+function mie(e) {
let [t, n] = e.slice(0, -1).split("(");
if (t === "drop-shadow") return e;
- let [r] = n.match(HC) || [];
+ let [r] = n.match(GC) || [];
if (!r) return e;
- let i = n.replace(r, ""), a = +!!_ie.has(t);
+ let i = n.replace(r, ""), a = +!!pie.has(t);
return r !== n && (a *= 100), t + "(" + a + i + ")";
}
-var yie = /\b([a-z-]*)\(.*?\)/gu, zT = {
- ...sw,
+var hie = /\b([a-z-]*)\(.*?\)/gu, HT = {
+ ...uw,
getAnimatableNone: (e) => {
- let t = e.match(yie);
- return t ? t.map(vie).join(" ") : e;
+ let t = e.match(hie);
+ return t ? t.map(mie).join(" ") : e;
}
-}, BT = {
- ...sw,
+}, UT = {
+ ...uw,
getAnimatableNone: (e) => {
- let t = sw.parse(e);
- return sw.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
+ let t = uw.parse(e);
+ return uw.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
...e,
alpha: 1
} : e));
}
-}, VT = {
- ...RC,
+}, WT = {
+ ...VC,
transform: Math.round
-}, HT = {
+}, GT = {
borderWidth: X,
borderTopWidth: X,
borderRightWidth: X,
@@ -29529,18 +29523,18 @@ var yie = /\b([a-z-]*)\(.*?\)/gu, zT = {
fontSize: X,
backgroundPositionX: X,
backgroundPositionY: X,
- rotate: ZC,
- pathRotation: ZC,
- rotateX: ZC,
- rotateY: ZC,
- rotateZ: ZC,
- scale: BC,
- scaleX: BC,
- scaleY: BC,
- scaleZ: BC,
- skew: ZC,
- skewX: ZC,
- skewY: ZC,
+ rotate: ew,
+ pathRotation: ew,
+ rotateX: ew,
+ rotateY: ew,
+ rotateZ: ew,
+ scale: UC,
+ scaleX: UC,
+ scaleY: UC,
+ scaleZ: UC,
+ skew: ew,
+ skewX: ew,
+ skewY: ew,
distance: X,
translateX: X,
translateY: X,
@@ -29550,53 +29544,53 @@ var yie = /\b([a-z-]*)\(.*?\)/gu, zT = {
z: X,
perspective: X,
transformPerspective: X,
- opacity: zC,
- originX: $C,
- originY: $C,
+ opacity: HC,
+ originX: nw,
+ originY: nw,
originZ: X,
- zIndex: VT,
- fillOpacity: zC,
- strokeOpacity: zC,
- numOctaves: VT
-}, bie = {
- ...HT,
- color: tw,
- backgroundColor: tw,
- outlineColor: tw,
- fill: tw,
- stroke: tw,
- borderColor: tw,
- borderTopColor: tw,
- borderRightColor: tw,
- borderBottomColor: tw,
- borderLeftColor: tw,
- filter: zT,
- WebkitFilter: zT,
- mask: BT,
- WebkitMask: BT
-}, UT = (e) => bie[e], xie = /*@__PURE__*/ new Set([zT, BT]);
-function WT(e, t) {
- let n = UT(e);
- return xie.has(n) || (n = sw), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
+ zIndex: WT,
+ fillOpacity: HC,
+ strokeOpacity: HC,
+ numOctaves: WT
+}, gie = {
+ ...GT,
+ color: iw,
+ backgroundColor: iw,
+ outlineColor: iw,
+ fill: iw,
+ stroke: iw,
+ borderColor: iw,
+ borderTopColor: iw,
+ borderRightColor: iw,
+ borderBottomColor: iw,
+ borderLeftColor: iw,
+ filter: HT,
+ WebkitFilter: HT,
+ mask: UT,
+ WebkitMask: UT
+}, KT = (e) => gie[e], _ie = /*@__PURE__*/ new Set([HT, UT]);
+function qT(e, t) {
+ let n = KT(e);
+ return _ie.has(n) || (n = uw), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
-var Sie = /* @__PURE__ */ new Set([
+var vie = /* @__PURE__ */ new Set([
"auto",
"none",
"0"
]);
-function Cie(e, t, n) {
+function yie(e, t, n) {
let r = 0, i;
for (; r < e.length && !i;) {
let t = e[r];
- typeof t == "string" && !Sie.has(t) && aw(t).values.length && (i = e[r]), r++;
+ typeof t == "string" && !vie.has(t) && cw(t).values.length && (i = e[r]), r++;
}
- if (i && n) for (let r of t) e[r] = WT(n, i);
+ if (i && n) for (let r of t) e[r] = qT(n, i);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
-var wie = class extends $w {
+var bie = class extends nT {
constructor(e, t, n, r, i) {
super(e, t, n, r, i, !0);
}
@@ -29606,34 +29600,34 @@ var wie = class extends $w {
super.readKeyframes();
for (let n = 0; n < e.length; n++) {
let r = e[n];
- if (typeof r == "string" && (r = r.trim(), FC(r))) {
- let i = CT(r, t.current);
+ if (typeof r == "string" && (r = r.trim(), RC(r))) {
+ let i = ET(r, t.current);
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
}
}
- if (this.resolveNoneKeyframes(), !DT.has(n) || e.length !== 2) return;
- let [r, i] = e, a = RT(r), o = RT(i);
- if (LC(r) !== LC(i) && Kw[n]) {
+ if (this.resolveNoneKeyframes(), !AT.has(n) || e.length !== 2) return;
+ let [r, i] = e, a = VT(r), o = VT(i);
+ if (BC(r) !== BC(i) && Yw[n]) {
this.needsMeasurement = !0;
return;
}
if (a !== o) {
- if (Gw(a) && Gw(o)) for (let t = 0; t < e.length; t++) {
+ if (Jw(a) && Jw(o)) for (let t = 0; t < e.length; t++) {
let n = e[t];
typeof n == "string" && (e[t] = parseFloat(n));
}
- else Kw[n] && (this.needsMeasurement = !0);
+ else Yw[n] && (this.needsMeasurement = !0);
}
}
resolveNoneKeyframes() {
let { unresolvedKeyframes: e, name: t } = this, n = [];
- for (let t = 0; t < e.length; t++) (e[t] === null || gie(e[t])) && n.push(t);
- n.length && Cie(e, n, t);
+ for (let t = 0; t < e.length; t++) (e[t] === null || fie(e[t])) && n.push(t);
+ n.length && yie(e, n, t);
}
measureInitialState() {
let { element: e, unresolvedKeyframes: t, name: n } = this;
if (!e || !e.current) return;
- n === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Kw[n](e.measureViewportBox(), window.getComputedStyle(e.current)), t[0] = this.measuredOrigin;
+ n === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Yw[n](e.measureViewportBox(), window.getComputedStyle(e.current)), t[0] = this.measuredOrigin;
let r = t[t.length - 1];
r !== void 0 && e.getValue(n, r).jump(r, !1);
}
@@ -29643,23 +29637,23 @@ var wie = class extends $w {
let r = e.getValue(t);
r && r.jump(this.measuredOrigin, !1);
let i = n.length - 1, a = n[i];
- n[i] = Kw[t](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([t, n]) => {
+ n[i] = Yw[t](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([t, n]) => {
e.getValue(t).set(n);
}), this.resolveNoneKeyframes();
}
-}, GT = [
+}, JT = [
"borderTopLeftRadius",
"borderTopRightRadius",
"borderBottomRightRadius",
"borderBottomLeftRadius"
-], Tie = /* @__PURE__ */ new Set([
+], xie = /* @__PURE__ */ new Set([
"borderWidth",
"borderTopWidth",
"borderRightWidth",
"borderBottomWidth",
"borderLeftWidth",
"borderRadius",
- ...GT,
+ ...JT,
"width",
"maxWidth",
"height",
@@ -29703,12 +29697,12 @@ var wie = class extends $w {
]);
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs
-function Eie(e, t) {
- for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Tie.has(t) && (e[n] = e[n] + "px");
+function Sie(e, t) {
+ for (let n = 0; n < e.length; n++) typeof e[n] == "number" && xie.has(t) && (e[n] = e[n] + "px");
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
-function KT(e, t, n) {
+function YT(e, t, n) {
if (e == null) return [];
if (e instanceof EventTarget) return [e];
if (typeof e == "string") {
@@ -29721,34 +29715,34 @@ function KT(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
-var qT = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
+var XT = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-html-element.mjs
-function JT(e) {
- return US(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
+function ZT(e) {
+ return KS(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/microtask.mjs
-var { schedule: YT, cancel: Die } = /* @__PURE__ */ wC(queueMicrotask, !1), XT = {
+var { schedule: QT, cancel: Cie } = /* @__PURE__ */ DC(queueMicrotask, !1), $T = {
x: !1,
y: !1
};
-function ZT() {
- return XT.x || XT.y;
+function eE() {
+ return $T.x || $T.y;
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
-function Oie(e) {
- return e === "x" || e === "y" ? XT[e] ? null : (XT[e] = !0, () => {
- XT[e] = !1;
- }) : XT.x || XT.y ? null : (XT.x = XT.y = !0, () => {
- XT.x = XT.y = !1;
+function wie(e) {
+ return e === "x" || e === "y" ? $T[e] ? null : ($T[e] = !0, () => {
+ $T[e] = !1;
+ }) : $T.x || $T.y ? null : ($T.x = $T.y = !0, () => {
+ $T.x = $T.y = !1;
});
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
-function QT(e, t) {
- let n = KT(e), r = new AbortController();
+function tE(e, t) {
+ let n = YT(e), r = new AbortController();
return [
n,
{
@@ -29761,11 +29755,11 @@ function QT(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/hover.mjs
-function kie(e) {
- return !(e.pointerType === "touch" || ZT());
+function Tie(e) {
+ return !(e.pointerType === "touch" || eE());
}
-function Aie(e, t, n = {}) {
- let [r, i, a] = QT(e, n);
+function Eie(e, t, n = {}) {
+ let [r, i, a] = tE(e, n);
return r.forEach((e) => {
let n = !1, r = !1, a, o = () => {
e.removeEventListener("pointerleave", u);
@@ -29785,7 +29779,7 @@ function Aie(e, t, n = {}) {
}
};
e.addEventListener("pointerenter", (n) => {
- if (!kie(n)) return;
+ if (!Tie(n)) return;
r = !1;
let o = t(e, n);
typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
@@ -29794,130 +29788,130 @@ function Aie(e, t, n = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
-var $T = (e, t) => t ? e === t || $T(e, t.parentElement) : !1, eE = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, jie = /* @__PURE__ */ new Set([
+var nE = (e, t) => t ? e === t || nE(e, t.parentElement) : !1, rE = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Die = /* @__PURE__ */ new Set([
"BUTTON",
"INPUT",
"SELECT",
"TEXTAREA",
"A"
]);
-function Mie(e) {
- return jie.has(e.tagName) || e.isContentEditable === !0;
+function Oie(e) {
+ return Die.has(e.tagName) || e.isContentEditable === !0;
}
-var Nie = /* @__PURE__ */ new Set([
+var kie = /* @__PURE__ */ new Set([
"INPUT",
"SELECT",
"TEXTAREA"
]);
-function Pie(e) {
- return Nie.has(e.tagName) || e.isContentEditable === !0;
+function Aie(e) {
+ return kie.has(e.tagName) || e.isContentEditable === !0;
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs
-var tE = /* @__PURE__ */ new WeakSet();
+var iE = /* @__PURE__ */ new WeakSet();
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
-function nE(e) {
+function aE(e) {
return (t) => {
t.key === "Enter" && e(t);
};
}
-function rE(e, t) {
+function oE(e, t) {
e.dispatchEvent(new PointerEvent("pointer" + t, {
isPrimary: !0,
bubbles: !0
}));
}
-var Fie = (e, t) => {
+var jie = (e, t) => {
let n = e.currentTarget;
if (!n) return;
- let r = nE(() => {
- if (tE.has(n)) return;
- rE(n, "down");
- let e = nE(() => {
- rE(n, "up");
+ let r = aE(() => {
+ if (iE.has(n)) return;
+ oE(n, "down");
+ let e = aE(() => {
+ oE(n, "up");
});
- n.addEventListener("keyup", e, t), n.addEventListener("blur", () => rE(n, "cancel"), t);
+ n.addEventListener("keyup", e, t), n.addEventListener("blur", () => oE(n, "cancel"), t);
});
n.addEventListener("keydown", r, t), n.addEventListener("blur", () => n.removeEventListener("keydown", r), t);
};
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/index.mjs
-function iE(e) {
- return eE(e) && !ZT();
+function sE(e) {
+ return rE(e) && !eE();
}
-var aE = /* @__PURE__ */ new WeakSet();
-function Iie(e, t, n = {}) {
- let [r, i, a] = QT(e, n), o = (e) => {
+var cE = /* @__PURE__ */ new WeakSet();
+function Mie(e, t, n = {}) {
+ let [r, i, a] = tE(e, n), o = (e) => {
let r = e.currentTarget;
- if (!iE(e) || aE.has(e)) return;
- tE.add(r), n.stopPropagation && aE.add(e);
+ if (!sE(e) || cE.has(e)) return;
+ iE.add(r), n.stopPropagation && cE.add(e);
let a = t(r, e), o = {
...i,
capture: !0
}, s = (e, t) => {
- window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), tE.has(r) && tE.delete(r), iE(e) && typeof a == "function" && a(e, { success: t });
+ window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), iE.has(r) && iE.delete(r), sE(e) && typeof a == "function" && a(e, { success: t });
}, c = (e) => {
- s(e, r === window || r === document || n.useGlobalTarget || $T(r, e.target));
+ s(e, r === window || r === document || n.useGlobalTarget || nE(r, e.target));
}, l = (e) => {
s(e, !1);
};
window.addEventListener("pointerup", c, o), window.addEventListener("pointercancel", l, o);
};
return r.forEach((e) => {
- (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), JT(e) && (e.addEventListener("focus", (e) => Fie(e, i)), !Mie(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), ZT(e) && (e.addEventListener("focus", (e) => jie(e, i)), !Oie(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
}), a;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
-function oE(e, t) {
+function lE(e, t) {
let n = window.getComputedStyle(e);
- return eT(t) ? n.getPropertyValue(t) : n[t];
+ return rT(t) ? n.getPropertyValue(t) : n[t];
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
-function sE(e) {
- return US(e) && "ownerSVGElement" in e;
+function uE(e) {
+ return KS(e) && "ownerSVGElement" in e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/handle-element.mjs
-var cE = /* @__PURE__ */ new WeakMap(), lE, uE = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : sE(r) && "getBBox" in r ? r.getBBox()[t] : r[n], Lie = /*@__PURE__*/ uE("inline", "width", "offsetWidth"), Rie = /*@__PURE__*/ uE("block", "height", "offsetHeight");
-function zie({ target: e, borderBoxSize: t }) {
- cE.get(e)?.forEach((n) => {
+var dE = /* @__PURE__ */ new WeakMap(), fE, pE = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : uE(r) && "getBBox" in r ? r.getBBox()[t] : r[n], Nie = /*@__PURE__*/ pE("inline", "width", "offsetWidth"), Pie = /*@__PURE__*/ pE("block", "height", "offsetHeight");
+function Fie({ target: e, borderBoxSize: t }) {
+ dE.get(e)?.forEach((n) => {
n(e, {
get width() {
- return Lie(e, t);
+ return Nie(e, t);
},
get height() {
- return Rie(e, t);
+ return Pie(e, t);
}
});
});
}
-function Bie(e) {
- e.forEach(zie);
+function Iie(e) {
+ e.forEach(Fie);
}
-function Vie() {
- typeof ResizeObserver > "u" || (lE = new ResizeObserver(Bie));
+function Lie() {
+ typeof ResizeObserver > "u" || (fE = new ResizeObserver(Iie));
}
-function Hie(e, t) {
- lE || Vie();
- let n = KT(e);
+function Rie(e, t) {
+ fE || Lie();
+ let n = YT(e);
return n.forEach((e) => {
- let n = cE.get(e);
- n || (n = /* @__PURE__ */ new Set(), cE.set(e, n)), n.add(t), lE?.observe(e);
+ let n = dE.get(e);
+ n || (n = /* @__PURE__ */ new Set(), dE.set(e, n)), n.add(t), fE?.observe(e);
}), () => {
n.forEach((e) => {
- let n = cE.get(e);
- n?.delete(t), n?.size || lE?.unobserve(e);
+ let n = dE.get(e);
+ n?.delete(t), n?.size || fE?.unobserve(e);
});
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/handle-window.mjs
-var dE = /* @__PURE__ */ new Set(), fE;
-function Uie() {
- fE = () => {
+var mE = /* @__PURE__ */ new Set(), hE;
+function zie() {
+ hE = () => {
let e = {
get width() {
return window.innerWidth;
@@ -29926,49 +29920,49 @@ function Uie() {
return window.innerHeight;
}
};
- dE.forEach((t) => t(e));
- }, window.addEventListener("resize", fE);
+ mE.forEach((t) => t(e));
+ }, window.addEventListener("resize", hE);
}
-function Wie(e) {
- return dE.add(e), fE || Uie(), () => {
- dE.delete(e), !dE.size && typeof fE == "function" && (window.removeEventListener("resize", fE), fE = void 0);
+function Bie(e) {
+ return mE.add(e), hE || zie(), () => {
+ mE.delete(e), !mE.size && typeof hE == "function" && (window.removeEventListener("resize", hE), hE = void 0);
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/index.mjs
-function pE(e, t) {
- return typeof e == "function" ? Wie(e) : Hie(e, t);
+function gE(e, t) {
+ return typeof e == "function" ? Bie(e) : Rie(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/stats/buffer.mjs
-var mE = {
+var _E = {
value: null,
addProjectionMetrics: null
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
-function Gie(e) {
- return sE(e) && e.tagName === "svg";
+function Vie(e) {
+ return uE(e) && e.tagName === "svg";
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/transform.mjs
-function Kie(...e) {
- let t = !Array.isArray(e[0]), n = t ? 0 : -1, r = e[0 + n], i = e[1 + n], a = e[2 + n], o = e[3 + n], s = Ow(i, a, o);
+function Hie(...e) {
+ let t = !Array.isArray(e[0]), n = t ? 0 : -1, r = e[0 + n], i = e[1 + n], a = e[2 + n], o = e[3 + n], s = jw(i, a, o);
return t ? s(r) : s;
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/follow-value.mjs
-function qie(e, t, n = {}) {
+function Uie(e, t, n = {}) {
let r = e.get(), i = null, a = r, o, s = typeof r == "string" ? r.replace(/[\d.-]/g, "") : void 0, c = () => {
i &&= (i.stop(), null), e.animation = void 0;
}, l = () => {
- let t = gE(e.get()), r = gE(a);
+ let t = yE(e.get()), r = yE(a);
if (t === r) {
c();
return;
}
let s = i ? i.getGeneratorVelocity() : e.getVelocity();
- c(), i = new Nw({
+ c(), i = new Iw({
keyframes: [t, r],
velocity: s,
type: "spring",
@@ -29983,10 +29977,10 @@ function qie(e, t, n = {}) {
});
};
if (e.attach((e, t) => {
- a = e, o = (e) => t(hE(e, s)), TC.postRender(u);
- }, c), kT(t)) {
+ a = e, o = (e) => t(vE(e, s)), OC.postRender(u);
+ }, c), MT(t)) {
let r = n.skipInitialAnimation === !0, i = t.on("change", (t) => {
- r ? (r = !1, e.jump(hE(t, s), !1)) : e.set(hE(t, s));
+ r ? (r = !1, e.jump(vE(t, s), !1)) : e.set(vE(t, s));
}), a = e.on("destroy", i);
return () => {
i(), a();
@@ -29994,46 +29988,46 @@ function qie(e, t, n = {}) {
}
return c;
}
-function hE(e, t) {
+function vE(e, t) {
return t ? e + t : e;
}
-function gE(e) {
+function yE(e) {
return typeof e == "number" ? e : parseFloat(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/find.mjs
-var Jie = [
- ...LT,
- tw,
- sw
-], Yie = (e) => Jie.find(IT(e)), _E = () => ({
+var Wie = [
+ ...BT,
+ iw,
+ uw
+], Gie = (e) => Wie.find(zT(e)), bE = () => ({
translate: 0,
scale: 1,
origin: 0,
originPoint: 0
-}), vE = () => ({
- x: _E(),
- y: _E()
-}), yE = () => ({
+}), xE = () => ({
+ x: bE(),
+ y: bE()
+}), SE = () => ({
min: 0,
max: 0
-}), bE = () => ({
- x: yE(),
- y: yE()
-}), Xie = /* @__PURE__ */ new WeakMap();
+}), CE = () => ({
+ x: SE(),
+ y: SE()
+}), Kie = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
-function xE(e) {
+function wE(e) {
return typeof e == "object" && !!e && typeof e.start == "function";
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
-function SE(e) {
+function TE(e) {
return typeof e == "string" || Array.isArray(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
-var CE = [
+var EE = [
"animate",
"whileInView",
"whileFocus",
@@ -30041,29 +30035,29 @@ var CE = [
"whileTap",
"whileDrag",
"exit"
-], wE = ["initial", ...CE];
+], DE = ["initial", ...EE];
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
-function TE(e) {
- return xE(e.animate) || wE.some((t) => SE(e[t]));
+function OE(e) {
+ return wE(e.animate) || DE.some((t) => TE(e[t]));
}
-function EE(e) {
- return !!(TE(e) || e.variants);
+function kE(e) {
+ return !!(OE(e) || e.variants);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
-function Zie(e, t, n) {
+function qie(e, t, n) {
for (let r in t) {
let i = t[r], a = n[r];
- if (kT(i)) e.addValue(r, i);
- else if (kT(a)) e.addValue(r, yT(i, { owner: e }));
+ if (MT(i)) e.addValue(r, i);
+ else if (MT(a)) e.addValue(r, ST(i, { owner: e }));
else if (a !== i) {
if (e.hasValue(r)) {
let t = e.getValue(r);
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
} else {
let t = e.getStaticValue(r);
- e.addValue(r, yT(t === void 0 ? i : t, { owner: e }));
+ e.addValue(r, ST(t === void 0 ? i : t, { owner: e }));
}
}
}
@@ -30072,18 +30066,18 @@ function Zie(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
-var DE = { current: null }, OE = { current: !1 }, Qie = typeof window < "u";
-function kE() {
- if (OE.current = !0, Qie) {
+var AE = { current: null }, jE = { current: !1 }, Jie = typeof window < "u";
+function ME() {
+ if (jE.current = !0, Jie) {
if (window.matchMedia) {
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => DE.current = e.matches;
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => AE.current = e.matches;
e.addEventListener("change", t), t();
- } else DE.current = !1;
+ } else AE.current = !1;
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/VisualElement.mjs
-var AE = [
+var NE = [
"AnimationStart",
"AnimationComplete",
"Update",
@@ -30091,38 +30085,38 @@ var AE = [
"LayoutMeasure",
"LayoutAnimationStart",
"LayoutAnimationComplete"
-], jE = {};
-function ME(e) {
- jE = e;
+], PE = {};
+function FE(e) {
+ PE = e;
}
-function $ie() {
- return jE;
+function Yie() {
+ return PE;
}
-var eae = class {
+var Xie = class {
scrapeMotionValuesFromProps(e, t, n) {
return {};
}
constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = $w, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = nT, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
- let e = jC.now();
- this.renderScheduledAt < e && (this.renderScheduledAt = e, TC.render(this.render, !1, !0));
+ let e = PC.now();
+ this.renderScheduledAt < e && (this.renderScheduledAt = e, OC.render(this.render, !1, !0));
};
let { latestValues: c, renderState: l } = o;
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = TE(t), this.isVariantNode = EE(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = OE(t), this.isVariantNode = kE(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
for (let e in d) {
let t = d[e];
- c[e] !== void 0 && kT(t) && t.set(c[e]);
+ c[e] !== void 0 && MT(t) && t.set(c[e]);
}
}
mount(e) {
if (this.hasBeenMounted) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
- this.current = e, Xie.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (OE.current || kE(), this.shouldReduceMotion = DE.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
+ this.current = e, Kie.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (jE.current || ME(), this.shouldReduceMotion = AE.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
}
unmount() {
- this.projection && this.projection.unmount(), EC(this.notifyUpdate), EC(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
+ this.projection && this.projection.unmount(), kC(this.notifyUpdate), kC(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
for (let e in this.events) this.events[e].clear();
for (let e in this.features) {
let t = this.features[e];
@@ -30137,24 +30131,24 @@ var eae = class {
this.children.delete(e), this.enteringChildren && this.enteringChildren.delete(e);
}
bindToMotionValue(e, t) {
- if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && pT.has(e) && this.current instanceof HTMLElement) {
- let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new cT({
+ if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && gT.has(e) && this.current instanceof HTMLElement) {
+ let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new dT({
element: this.current,
name: e,
keyframes: r,
times: i,
ease: a,
- duration: /* @__PURE__ */ XS(o)
+ duration: /* @__PURE__ */ $S(o)
}), c = n(s);
this.valueSubscriptions.set(e, () => {
c(), s.cancel();
});
return;
}
- let n = Ww.has(e);
+ let n = qw.has(e);
n && this.onBindTransform && this.onBindTransform();
let r = t.on("change", (t) => {
- this.latestValues[e] = t, this.props.onUpdate && TC.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
+ this.latestValues[e] = t, this.props.onUpdate && OC.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
}), i;
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
r(), i && i();
@@ -30165,8 +30159,8 @@ var eae = class {
}
updateFeatures() {
let e = "animation";
- for (e in jE) {
- let t = jE[e];
+ for (e in PE) {
+ let t = PE[e];
if (!t) continue;
let { isEnabled: n, Feature: r } = t;
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
@@ -30179,7 +30173,7 @@ var eae = class {
this.build(this.renderState, this.latestValues, this.props);
}
measureViewportBox() {
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : bE();
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : CE();
}
getStaticValue(e) {
return this.latestValues[e];
@@ -30189,13 +30183,13 @@ var eae = class {
}
update(e, t) {
(e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
- for (let t = 0; t < AE.length; t++) {
- let n = AE[t];
+ for (let t = 0; t < NE.length; t++) {
+ let n = NE[t];
this.propEventSubscriptions[n] && (this.propEventSubscriptions[n](), delete this.propEventSubscriptions[n]);
let r = e["on" + n];
r && (this.propEventSubscriptions[n] = this.on(n, r));
}
- this.prevMotionValues = Zie(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
+ this.prevMotionValues = qie(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
}
getProps() {
return this.props;
@@ -30231,11 +30225,11 @@ var eae = class {
getValue(e, t) {
if (this.props.values && this.props.values[e]) return this.props.values[e];
let n = this.values.get(e);
- return n === void 0 && t !== void 0 && (n = yT(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
+ return n === void 0 && t !== void 0 && (n = ST(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
}
readValue(e, t) {
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
- return n != null && (typeof n == "string" && (HS(n) || WS(n)) ? n = parseFloat(n) : !Yie(n) && sw.test(t) && (n = WT(e, t)), this.setBaseTarget(e, kT(n) ? n.get() : n)), kT(n) ? n.get() : n;
+ return n != null && (typeof n == "string" && (GS(n) || qS(n)) ? n = parseFloat(n) : !Gie(n) && uw.test(t) && (n = qT(e, t)), this.setBaseTarget(e, MT(n) ? n.get() : n)), MT(n) ? n.get() : n;
}
setBaseTarget(e, t) {
this.baseTarget[e] = t;
@@ -30243,25 +30237,25 @@ var eae = class {
getBaseTarget(e) {
let { initial: t } = this.props, n;
if (typeof t == "string" || typeof t == "object") {
- let r = TT(this.props, t, this.presenceContext?.custom);
+ let r = OT(this.props, t, this.presenceContext?.custom);
r && (n = r[e]);
}
if (t && n !== void 0) return n;
let r = this.getBaseTargetFromProps(this.props, e);
- return r !== void 0 && !kT(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
+ return r !== void 0 && !MT(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
}
on(e, t) {
- return this.events[e] || (this.events[e] = new YS()), this.events[e].add(t);
+ return this.events[e] || (this.events[e] = new QS()), this.events[e].add(t);
}
notify(e, ...t) {
this.events[e] && this.events[e].notify(...t);
}
scheduleRenderMicrotask() {
- YT.render(this.render);
+ QT.render(this.render);
}
-}, NE = class extends eae {
+}, IE = class extends Xie {
constructor() {
- super(...arguments), this.KeyframeResolver = wie;
+ super(...arguments), this.KeyframeResolver = bie;
}
sortInstanceNodePosition(e, t) {
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
@@ -30276,11 +30270,11 @@ var eae = class {
handleChildMotionValue() {
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
let { children: e } = this.props;
- kT(e) && (this.childSubscription = e.on("change", (e) => {
+ MT(e) && (this.childSubscription = e.on("change", (e) => {
this.current && (this.current.textContent = `${e}`);
}));
}
-}, PE = class {
+}, LE = class {
constructor(e) {
this.isMounted = !1, this.node = e;
}
@@ -30288,7 +30282,7 @@ var eae = class {
};
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
-function FE({ top: e, left: t, right: n, bottom: r }) {
+function RE({ top: e, left: t, right: n, bottom: r }) {
return {
x: {
min: t,
@@ -30300,7 +30294,7 @@ function FE({ top: e, left: t, right: n, bottom: r }) {
}
};
}
-function tae({ x: e, y: t }) {
+function Zie({ x: e, y: t }) {
return {
top: t.min,
right: e.max,
@@ -30308,7 +30302,7 @@ function tae({ x: e, y: t }) {
left: e.min
};
}
-function nae(e, t) {
+function Qie(e, t) {
if (!t) return e;
let n = t({
x: e.left,
@@ -30326,37 +30320,37 @@ function nae(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
-function IE(e) {
+function zE(e) {
return e === void 0 || e === 1;
}
-function LE({ scale: e, scaleX: t, scaleY: n }) {
- return !IE(e) || !IE(t) || !IE(n);
+function BE({ scale: e, scaleX: t, scaleY: n }) {
+ return !zE(e) || !zE(t) || !zE(n);
}
-function RE(e) {
- return LE(e) || zE(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
+function VE(e) {
+ return BE(e) || HE(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
}
-function zE(e) {
- return BE(e.x) || BE(e.y);
+function HE(e) {
+ return UE(e.x) || UE(e.y);
}
-function BE(e) {
+function UE(e) {
return e && e !== "0%";
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
-function VE(e, t, n) {
+function WE(e, t, n) {
return n + t * (e - n);
}
-function HE(e, t, n, r, i) {
- return i !== void 0 && (e = VE(e, i, r)), VE(e, n, r) + t;
+function GE(e, t, n, r, i) {
+ return i !== void 0 && (e = WE(e, i, r)), WE(e, n, r) + t;
}
-function UE(e, t = 0, n = 1, r, i) {
- e.min = HE(e.min, t, n, r, i), e.max = HE(e.max, t, n, r, i);
+function KE(e, t = 0, n = 1, r, i) {
+ e.min = GE(e.min, t, n, r, i), e.max = GE(e.max, t, n, r, i);
}
-function WE(e, { x: t, y: n }) {
- UE(e.x, t.translate, t.scale, t.originPoint), UE(e.y, n.translate, n.scale, n.originPoint);
+function qE(e, { x: t, y: n }) {
+ KE(e.x, t.translate, t.scale, t.originPoint), KE(e.y, n.translate, n.scale, n.originPoint);
}
-var GE = .999999999999, KE = 1.0000000000001;
-function rae(e, t, n, r = !1) {
+var JE = .999999999999, YE = 1.0000000000001;
+function $ie(e, t, n, r = !1) {
let i = n.length;
if (!i) return;
t.x = t.y = 1;
@@ -30364,44 +30358,44 @@ function rae(e, t, n, r = !1) {
for (let s = 0; s < i; s++) {
a = n[s], o = a.projectionDelta;
let { visualElement: i } = a.options;
- i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && (qE(e.x, -a.scroll.offset.x), qE(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, WE(e, o)), r && RE(a.latestValues) && XE(e, a.latestValues, a.layout?.layoutBox));
+ i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && (XE(e.x, -a.scroll.offset.x), XE(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, qE(e, o)), r && VE(a.latestValues) && $E(e, a.latestValues, a.layout?.layoutBox));
}
- t.x < KE && t.x > GE && (t.x = 1), t.y < KE && t.y > GE && (t.y = 1);
+ t.x < YE && t.x > JE && (t.x = 1), t.y < YE && t.y > JE && (t.y = 1);
}
-function qE(e, t) {
+function XE(e, t) {
e.min += t, e.max += t;
}
-function JE(e, t, n, r, i = .5) {
- UE(e, t, n, uw(e.min, e.max, i), r);
+function ZE(e, t, n, r, i = .5) {
+ KE(e, t, n, pw(e.min, e.max, i), r);
}
-function YE(e, t) {
+function QE(e, t) {
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
}
-function XE(e, t, n) {
+function $E(e, t, n) {
let r = n ?? e;
- JE(e.x, YE(t.x, r.x), t.scaleX, t.scale, t.originX), JE(e.y, YE(t.y, r.y), t.scaleY, t.scale, t.originY);
+ ZE(e.x, QE(t.x, r.x), t.scaleX, t.scale, t.originX), ZE(e.y, QE(t.y, r.y), t.scaleY, t.scale, t.originY);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/measure.mjs
-function ZE(e, t) {
- return FE(nae(e.getBoundingClientRect(), t));
+function eD(e, t) {
+ return RE(Qie(e.getBoundingClientRect(), t));
}
-function iae(e, t, n) {
- let r = ZE(e, n), { scroll: i } = t;
- return i && (qE(r.x, i.offset.x), qE(r.y, i.offset.y)), r;
+function eae(e, t, n) {
+ let r = eD(e, n), { scroll: i } = t;
+ return i && (XE(r.x, i.offset.x), XE(r.y, i.offset.y)), r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs
-var aae = {
+var tae = {
x: "translateX",
y: "translateY",
z: "translateZ",
transformPerspective: "perspective"
-}, oae = Uw.length;
-function sae(e, t, n) {
+}, nae = Kw.length;
+function rae(e, t, n) {
let r = "", i = !0;
- for (let a = 0; a < oae; a++) {
- let o = Uw[a], s = e[o];
+ for (let a = 0; a < nae; a++) {
+ let o = Kw[a], s = e[o];
if (s === void 0) continue;
let c = !0;
if (typeof s == "number") c = s === +!!o.startsWith("scale");
@@ -30410,154 +30404,154 @@ function sae(e, t, n) {
c = o.startsWith("scale") ? e === 1 : e === 0;
}
if (!c || n) {
- let e = qT(s, HT[o]);
+ let e = XT(s, GT[o]);
if (!c) {
i = !1;
- let t = aae[o] || o;
+ let t = tae[o] || o;
r += `${t}(${e}) `;
}
n && (t[o] = e);
}
}
let a = e.pathRotation;
- return a && (i = !1, r += `rotate(${qT(a, HT.pathRotation)}) `), r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;
+ return a && (i = !1, r += `rotate(${XT(a, GT.pathRotation)}) `), r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
-function QE(e, t, n) {
+function tD(e, t, n) {
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
for (let e in t) {
let n = t[e];
- if (Ww.has(e)) {
+ if (qw.has(e)) {
o = !0;
continue;
}
- if (NC(e)) {
+ if (IC(e)) {
i[e] = n;
continue;
}
{
- let t = qT(n, HT[e]);
+ let t = XT(n, GT[e]);
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
}
}
- if (t.transform || (o || n ? r.transform = sae(t, e.transform, n) : r.transform &&= "none"), s) {
+ if (t.transform || (o || n ? r.transform = rae(t, e.transform, n) : r.transform &&= "none"), s) {
let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
r.transformOrigin = `${e} ${t} ${n}`;
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/render.mjs
-function $E(e, { style: t, vars: n }, r, i) {
+function nD(e, { style: t, vars: n }, r, i) {
let a = e.style, o;
for (o in t) a[o] = t[o];
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
-function eD(e, t) {
+function rD(e, t) {
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
}
-var tD = { correct: (e, t) => {
+var iD = { correct: (e, t) => {
if (!t.target) return e;
if (typeof e == "string") {
if (X.test(e)) e = parseFloat(e);
else return e;
}
- return `${eD(e, t.target.x)}% ${eD(e, t.target.y)}%`;
-} }, cae = { correct: (e, { treeScale: t, projectionDelta: n }) => {
- let r = e, i = sw.parse(e);
+ return `${rD(e, t.target.x)}% ${rD(e, t.target.y)}%`;
+} }, iae = { correct: (e, { treeScale: t, projectionDelta: n }) => {
+ let r = e, i = uw.parse(e);
if (i.length > 5) return r;
- let a = sw.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
+ let a = uw.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
i[0 + o] /= s, i[1 + o] /= c;
- let l = uw(s, c, .5);
+ let l = pw(s, c, .5);
return typeof i[2 + o] == "number" && (i[2 + o] /= l), typeof i[3 + o] == "number" && (i[3 + o] /= l), a(i);
-} }, nD = {
+} }, aD = {
borderRadius: {
- ...tD,
- applyTo: [...GT]
+ ...iD,
+ applyTo: [...JT]
},
- borderTopLeftRadius: tD,
- borderTopRightRadius: tD,
- borderBottomLeftRadius: tD,
- borderBottomRightRadius: tD,
- boxShadow: cae
+ borderTopLeftRadius: iD,
+ borderTopRightRadius: iD,
+ borderBottomLeftRadius: iD,
+ borderBottomRightRadius: iD,
+ boxShadow: iae
};
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
-function rD(e, { layout: t, layoutId: n }) {
- return Ww.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!nD[e] || e === "opacity");
+function oD(e, { layout: t, layoutId: n }) {
+ return qw.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!aD[e] || e === "opacity");
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
-function iD(e, t, n) {
+function sD(e, t, n) {
let r = e.style, i = t?.style, a = {};
if (!r) return a;
- for (let t in r) (kT(r[t]) || i && kT(i[t]) || rD(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
+ for (let t in r) (MT(r[t]) || i && MT(i[t]) || oD(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
return a;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
-function lae(e) {
+function aae(e) {
return window.getComputedStyle(e);
}
-var uae = class extends NE {
+var oae = class extends IE {
constructor() {
- super(...arguments), this.type = "html", this.renderInstance = $E;
+ super(...arguments), this.type = "html", this.renderInstance = nD;
}
mount(e) {
e.style, super.mount(e);
}
readValueFromInstance(e, t) {
- if (Ww.has(t)) return this.projection?.isProjecting ? Vw(t) : Tre(e, t);
+ if (qw.has(t)) return this.projection?.isProjecting ? Ww(t) : xre(e, t);
{
- let n = lae(e), r = (NC(t) ? n.getPropertyValue(t) : n[t]) || 0;
+ let n = aae(e), r = (IC(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
measureInstanceViewportBox(e, { transformPagePoint: t }) {
- return ZE(e, t);
+ return eD(e, t);
}
build(e, t, n) {
- QE(e, t, n.transformTemplate);
+ tD(e, t, n.transformTemplate);
}
scrapeMotionValuesFromProps(e, t, n) {
- return iD(e, t, n);
+ return sD(e, t, n);
}
-}, dae = {
+}, sae = {
offset: "stroke-dashoffset",
array: "stroke-dasharray"
-}, fae = {
+}, cae = {
offset: "strokeDashoffset",
array: "strokeDasharray"
};
-function pae(e, t, n = 1, r = 0, i = !0) {
+function lae(e, t, n = 1, r = 0, i = !0) {
e.pathLength = 1;
- let a = i ? dae : fae;
+ let a = i ? sae : cae;
e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
-var mae = [
+var uae = [
"offsetDistance",
"offsetPath",
"offsetRotate",
"offsetAnchor"
];
-function aD(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
- if (QE(e, s, l), c) {
+function cD(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
+ if (tD(e, s, l), c) {
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
return;
}
e.attrs = e.style, e.style = {};
let { attrs: d, style: f } = e;
d.transform && (f.transform = d.transform, delete d.transform), (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox);
- for (let e of mae) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
- t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && pae(d, i, a, o, !1);
+ for (let e of uae) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
+ t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && lae(d, i, a, o, !1);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.mjs
-var oD = /* @__PURE__ */ new Set([
+var lD = /* @__PURE__ */ new Set([
"baseFrequency",
"diffuseConstant",
"kernelMatrix",
@@ -30581,68 +30575,68 @@ var oD = /* @__PURE__ */ new Set([
"startOffset",
"textLength",
"lengthAdjust"
-]), sD = (e) => typeof e == "string" && e.toLowerCase() === "svg";
+]), uD = (e) => typeof e == "string" && e.toLowerCase() === "svg";
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
-function hae(e, t, n, r) {
- $E(e, t, void 0, r);
- for (let n in t.attrs) e.setAttribute(oD.has(n) ? n : jT(n), t.attrs[n]);
+function dae(e, t, n, r) {
+ nD(e, t, void 0, r);
+ for (let n in t.attrs) e.setAttribute(lD.has(n) ? n : PT(n), t.attrs[n]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
-function cD(e, t, n) {
- let r = iD(e, t, n);
- for (let n in e) if (kT(e[n]) || kT(t[n])) {
- let t = Uw.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
+function dD(e, t, n) {
+ let r = sD(e, t, n);
+ for (let n in e) if (MT(e[n]) || MT(t[n])) {
+ let t = Kw.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
r[t] = e[n];
}
return r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
-var gae = class extends NE {
+var fae = class extends IE {
constructor() {
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = bE;
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = CE;
}
getBaseTargetFromProps(e, t) {
return e[t];
}
readValueFromInstance(e, t) {
- if (Ww.has(t)) {
- let e = UT(t);
+ if (qw.has(t)) {
+ let e = KT(t);
return e && e.default || 0;
}
- return t = oD.has(t) ? t : jT(t), e.getAttribute(t);
+ return t = lD.has(t) ? t : PT(t), e.getAttribute(t);
}
scrapeMotionValuesFromProps(e, t, n) {
- return cD(e, t, n);
+ return dD(e, t, n);
}
build(e, t, n) {
- aD(e, t, this.isSVGTag, n.transformTemplate, n.style);
+ cD(e, t, this.isSVGTag, n.transformTemplate, n.style);
}
renderInstance(e, t, n, r) {
- hae(e, t, n, r);
+ dae(e, t, n, r);
}
mount(e) {
- this.isSVGTag = sD(e.tagName), super.mount(e);
+ this.isSVGTag = uD(e.tagName), super.mount(e);
}
-}, _ae = wE.length;
-function lD(e) {
+}, pae = DE.length;
+function fD(e) {
if (!e) return;
if (!e.isControllingVariants) {
- let t = e.parent && lD(e.parent) || {};
+ let t = e.parent && fD(e.parent) || {};
return e.props.initial !== void 0 && (t.initial = e.props.initial), t;
}
let t = {};
- for (let n = 0; n < _ae; n++) {
- let r = wE[n], i = e.props[r];
- (SE(i) || i === !1) && (t[r] = i);
+ for (let n = 0; n < pae; n++) {
+ let r = DE[n], i = e.props[r];
+ (TE(i) || i === !1) && (t[r] = i);
}
return t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
-function uD(e, t) {
+function pD(e, t) {
if (!Array.isArray(t)) return !1;
let n = t.length;
if (n !== e.length) return !1;
@@ -30651,13 +30645,13 @@ function uD(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
-var vae = [...CE].reverse(), yae = CE.length;
-function bae(e) {
- return (t) => Promise.all(t.map(({ animation: t, options: n }) => mie(e, t, n)));
+var mae = [...EE].reverse(), hae = EE.length;
+function gae(e) {
+ return (t) => Promise.all(t.map(({ animation: t, options: n }) => uie(e, t, n)));
}
-function xae(e) {
- let t = bae(e), n = fD(), r = !0, i = !1, a = (t) => (n, r) => {
- let i = ET(e, r, t === "exit" ? e.presenceContext?.custom : void 0);
+function _ae(e) {
+ let t = gae(e), n = hD(), r = !0, i = !1, a = (t) => (n, r) => {
+ let i = kT(e, r, t === "exit" ? e.presenceContext?.custom : void 0);
if (i) {
let { transition: e, transitionEnd: t, ...r } = i;
n = {
@@ -30672,12 +30666,12 @@ function xae(e) {
t = n(e);
}
function s(o) {
- let { props: s } = e, c = lD(e.parent) || {}, l = [], u = /* @__PURE__ */ new Set(), d = {}, f = Infinity;
- for (let t = 0; t < yae; t++) {
- let p = vae[t], m = n[p], h = s[p] === void 0 ? c[p] : s[p], g = SE(h), _ = p === o ? m.isActive : null;
+ let { props: s } = e, c = fD(e.parent) || {}, l = [], u = /* @__PURE__ */ new Set(), d = {}, f = Infinity;
+ for (let t = 0; t < hae; t++) {
+ let p = mae[t], m = n[p], h = s[p] === void 0 ? c[p] : s[p], g = TE(h), _ = p === o ? m.isActive : null;
_ === !1 && (f = t);
let v = h === c[p] && h !== s[p] && g;
- if (v && (r || i) && e.manuallyAnimateOnMount && (v = !1), m.protectedKeys = { ...d }, !m.isActive && _ === null || !h && !m.prevProp || xE(h) || typeof h == "boolean") continue;
+ if (v && (r || i) && e.manuallyAnimateOnMount && (v = !1), m.protectedKeys = { ...d }, !m.isActive && _ === null || !h && !m.prevProp || wE(h) || typeof h == "boolean") continue;
if (p === "exit" && m.isActive && _ !== !0) {
m.prevResolvedValues && (d = {
...d,
@@ -30685,7 +30679,7 @@ function xae(e) {
});
continue;
}
- let y = Sae(m.prevProp, h), b = y || p === o && m.isActive && !v && g || t > f && g, x = !1, S = Array.isArray(h) ? h : [h], C = S.reduce(a(p), {});
+ let y = vae(m.prevProp, h), b = y || p === o && m.isActive && !v && g || t > f && g, x = !1, S = Array.isArray(h) ? h : [h], C = S.reduce(a(p), {});
_ === !1 && (C = {});
let { prevResolvedValues: w = {} } = m, T = {
...w,
@@ -30699,7 +30693,7 @@ function xae(e) {
let t = C[e], n = w[e];
if (d.hasOwnProperty(e)) continue;
let r = !1;
- r = OT(t) && OT(n) ? !uD(t, n) || y : t !== n, r ? t == null ? u.add(e) : E(e) : t !== void 0 && u.has(e) ? E(e) : m.protectedKeys[e] = !0;
+ r = jT(t) && jT(n) ? !pD(t, n) || y : t !== n, r ? t == null ? u.add(e) : E(e) : t !== void 0 && u.has(e) ? E(e) : m.protectedKeys[e] = !0;
}
m.prevProp = h, m.prevResolvedValues = C, m.isActive && (d = {
...d,
@@ -30709,10 +30703,10 @@ function xae(e) {
b && (!D || x) && l.push(...S.map((t) => {
let n = { type: p };
if (typeof t == "string" && (r || i) && !D && e.manuallyAnimateOnMount && e.parent) {
- let { parent: r } = e, i = ET(r, t);
+ let { parent: r } = e, i = kT(r, t);
if (r.enteringChildren && i) {
let { delayChildren: t } = i.transition || {};
- n.delay = gT(r.enteringChildren, e, t);
+ n.delay = yT(r.enteringChildren, e, t);
}
}
return {
@@ -30724,7 +30718,7 @@ function xae(e) {
if (u.size) {
let t = {};
if (typeof s.initial != "boolean") {
- let n = ET(e, Array.isArray(s.initial) ? s.initial[0] : s.initial);
+ let n = kT(e, Array.isArray(s.initial) ? s.initial[0] : s.initial);
n && n.transition && (t.transition = n.transition);
}
u.forEach((n) => {
@@ -30748,14 +30742,14 @@ function xae(e) {
setAnimateFunction: o,
getState: () => n,
reset: () => {
- n = fD(), i = !0;
+ n = hD(), i = !0;
}
};
}
-function Sae(e, t) {
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !uD(t, e) : !1;
+function vae(e, t) {
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !pD(t, e) : !1;
}
-function dD(e = !1) {
+function mD(e = !1) {
return {
isActive: e,
protectedKeys: {},
@@ -30763,115 +30757,115 @@ function dD(e = !1) {
prevResolvedValues: {}
};
}
-function fD() {
+function hD() {
return {
- animate: dD(!0),
- whileInView: dD(),
- whileHover: dD(),
- whileTap: dD(),
- whileDrag: dD(),
- whileFocus: dD(),
- exit: dD()
+ animate: mD(!0),
+ whileInView: mD(),
+ whileHover: mD(),
+ whileTap: mD(),
+ whileDrag: mD(),
+ whileFocus: mD(),
+ exit: mD()
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
-function pD(e, t) {
+function gD(e, t) {
e.min = t.min, e.max = t.max;
}
-function mD(e, t) {
- pD(e.x, t.x), pD(e.y, t.y);
+function _D(e, t) {
+ gD(e.x, t.x), gD(e.y, t.y);
}
-function hD(e, t) {
+function vD(e, t) {
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
-var Cae = .9999, wae = 1.0001, Tae = -.01, Eae = .01;
-function gD(e) {
+var yae = .9999, bae = 1.0001, xae = -.01, Sae = .01;
+function yD(e) {
return e.max - e.min;
}
-function Dae(e, t, n) {
+function Cae(e, t, n) {
return Math.abs(e - t) <= n;
}
-function _D(e, t, n, r = .5) {
- e.origin = r, e.originPoint = uw(t.min, t.max, e.origin), e.scale = gD(n) / gD(t), e.translate = uw(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Cae && e.scale <= wae || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Tae && e.translate <= Eae || isNaN(e.translate)) && (e.translate = 0);
+function bD(e, t, n, r = .5) {
+ e.origin = r, e.originPoint = pw(t.min, t.max, e.origin), e.scale = yD(n) / yD(t), e.translate = pw(n.min, n.max, e.origin) - e.originPoint, (e.scale >= yae && e.scale <= bae || isNaN(e.scale)) && (e.scale = 1), (e.translate >= xae && e.translate <= Sae || isNaN(e.translate)) && (e.translate = 0);
}
-function vD(e, t, n, r) {
- _D(e.x, t.x, n.x, r ? r.originX : void 0), _D(e.y, t.y, n.y, r ? r.originY : void 0);
+function xD(e, t, n, r) {
+ bD(e.x, t.x, n.x, r ? r.originX : void 0), bD(e.y, t.y, n.y, r ? r.originY : void 0);
}
-function yD(e, t, n, r = 0) {
- e.min = (r ? uw(n.min, n.max, r) : n.min) + t.min, e.max = e.min + gD(t);
+function SD(e, t, n, r = 0) {
+ e.min = (r ? pw(n.min, n.max, r) : n.min) + t.min, e.max = e.min + yD(t);
}
-function Oae(e, t, n, r) {
- yD(e.x, t.x, n.x, r?.x), yD(e.y, t.y, n.y, r?.y);
+function wae(e, t, n, r) {
+ SD(e.x, t.x, n.x, r?.x), SD(e.y, t.y, n.y, r?.y);
}
-function bD(e, t, n, r = 0) {
- let i = r ? uw(n.min, n.max, r) : n.min;
- e.min = t.min - i, e.max = e.min + gD(t);
+function CD(e, t, n, r = 0) {
+ let i = r ? pw(n.min, n.max, r) : n.min;
+ e.min = t.min - i, e.max = e.min + yD(t);
}
-function xD(e, t, n, r) {
- bD(e.x, t.x, n.x, r?.x), bD(e.y, t.y, n.y, r?.y);
+function wD(e, t, n, r) {
+ CD(e.x, t.x, n.x, r?.x), CD(e.y, t.y, n.y, r?.y);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
-function SD(e, t, n, r, i) {
- return e -= t, e = VE(e, 1 / n, r), i !== void 0 && (e = VE(e, 1 / i, r)), e;
+function TD(e, t, n, r, i) {
+ return e -= t, e = WE(e, 1 / n, r), i !== void 0 && (e = WE(e, 1 / i, r)), e;
}
-function kae(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
- if (QC.test(t) && (t = parseFloat(t), t = uw(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
- let s = uw(a.min, a.max, r);
- e === a && (s -= t), e.min = SD(e.min, t, n, s, i), e.max = SD(e.max, t, n, s, i);
+function Tae(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
+ if (tw.test(t) && (t = parseFloat(t), t = pw(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
+ let s = pw(a.min, a.max, r);
+ e === a && (s -= t), e.min = TD(e.min, t, n, s, i), e.max = TD(e.max, t, n, s, i);
}
-function CD(e, t, [n, r, i], a, o) {
- kae(e, t[n], t[r], t[i], t.scale, a, o);
+function ED(e, t, [n, r, i], a, o) {
+ Tae(e, t[n], t[r], t[i], t.scale, a, o);
}
-var Aae = [
+var Eae = [
"x",
"scaleX",
"originX"
-], jae = [
+], Dae = [
"y",
"scaleY",
"originY"
];
-function wD(e, t, n, r) {
- CD(e.x, t, Aae, n ? n.x : void 0, r ? r.x : void 0), CD(e.y, t, jae, n ? n.y : void 0, r ? r.y : void 0);
+function DD(e, t, n, r) {
+ ED(e.x, t, Eae, n ? n.x : void 0, r ? r.x : void 0), ED(e.y, t, Dae, n ? n.y : void 0, r ? r.y : void 0);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
-function TD(e) {
+function OD(e) {
return e.translate === 0 && e.scale === 1;
}
-function ED(e) {
- return TD(e.x) && TD(e.y);
+function kD(e) {
+ return OD(e.x) && OD(e.y);
}
-function DD(e, t) {
+function AD(e, t) {
return e.min === t.min && e.max === t.max;
}
-function Mae(e, t) {
- return DD(e.x, t.x) && DD(e.y, t.y);
+function Oae(e, t) {
+ return AD(e.x, t.x) && AD(e.y, t.y);
}
-function OD(e, t) {
+function jD(e, t) {
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
}
-function kD(e, t) {
- return OD(e.x, t.x) && OD(e.y, t.y);
+function MD(e, t) {
+ return jD(e.x, t.x) && jD(e.y, t.y);
}
-function AD(e) {
- return gD(e.x) / gD(e.y);
+function ND(e) {
+ return yD(e.x) / yD(e.y);
}
-function jD(e, t) {
+function PD(e, t) {
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs
-function MD(e) {
+function FD(e) {
return [e("x"), e("y")];
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/styles/transform.mjs
-function Nae(e, t, n) {
+function kae(e, t, n) {
let r = "", i = e.x.translate / t.x, a = e.y.translate / t.y, o = n?.z || 0;
if ((i || a || o) && (r = `translate3d(${i}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
let { transformPerspective: e, rotate: t, pathRotation: i, rotateX: a, rotateY: o, skewX: s, skewY: c } = n;
@@ -30882,81 +30876,81 @@ function Nae(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs
-var Pae = GT.length, ND = (e) => typeof e == "string" ? parseFloat(e) : e, PD = (e) => typeof e == "number" || X.test(e);
-function Fae(e, t, n, r, i, a) {
- i ? (e.opacity = uw(0, n.opacity ?? 1, Iae(r)), e.opacityExit = uw(t.opacity ?? 1, 0, Lae(r))) : a && (e.opacity = uw(t.opacity ?? 1, n.opacity ?? 1, r));
- for (let i = 0; i < Pae; i++) {
- let a = GT[i], o = FD(t, a), s = FD(n, a);
- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || PD(o) === PD(s) ? (e[a] = Math.max(uw(ND(o), ND(s), r), 0), (QC.test(s) || QC.test(o)) && (e[a] += "%")) : e[a] = s);
+var Aae = JT.length, ID = (e) => typeof e == "string" ? parseFloat(e) : e, LD = (e) => typeof e == "number" || X.test(e);
+function jae(e, t, n, r, i, a) {
+ i ? (e.opacity = pw(0, n.opacity ?? 1, Mae(r)), e.opacityExit = pw(t.opacity ?? 1, 0, Nae(r))) : a && (e.opacity = pw(t.opacity ?? 1, n.opacity ?? 1, r));
+ for (let i = 0; i < Aae; i++) {
+ let a = JT[i], o = RD(t, a), s = RD(n, a);
+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || LD(o) === LD(s) ? (e[a] = Math.max(pw(ID(o), ID(s), r), 0), (tw.test(s) || tw.test(o)) && (e[a] += "%")) : e[a] = s);
}
- (t.rotate || n.rotate) && (e.rotate = uw(t.rotate || 0, n.rotate || 0, r));
+ (t.rotate || n.rotate) && (e.rotate = pw(t.rotate || 0, n.rotate || 0, r));
}
-function FD(e, t) {
+function RD(e, t) {
return e[t] === void 0 ? e.borderRadius : e[t];
}
-var Iae = /*@__PURE__*/ ID(0, .5, dC), Lae = /*@__PURE__*/ ID(.5, .95, KS);
-function ID(e, t, n) {
- return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ JS(e, t, r));
+var Mae = /*@__PURE__*/ zD(0, .5, mC), Nae = /*@__PURE__*/ zD(.5, .95, YS);
+function zD(e, t, n) {
+ return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ ZS(e, t, r));
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
-function Rae(e, t, n) {
- let r = kT(e) ? e : yT(e);
- return r.start(ST("", r, t, n)), r.animation;
+function Pae(e, t, n) {
+ let r = MT(e) ? e : ST(e);
+ return r.start(TT("", r, t, n)), r.animation;
}
//#endregion
//#region node_modules/motion-dom/dist/es/events/add-dom-event.mjs
-function LD(e, t, n, r = { passive: !0 }) {
+function BD(e, t, n, r = { passive: !0 }) {
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
-var zae = (e, t) => e.depth - t.depth, Bae = class {
+var Fae = (e, t) => e.depth - t.depth, Iae = class {
constructor() {
this.children = [], this.isDirty = !1;
}
add(e) {
- RS(this.children, e), this.isDirty = !0;
+ VS(this.children, e), this.isDirty = !0;
}
remove(e) {
- zS(this.children, e), this.isDirty = !0;
+ HS(this.children, e), this.isDirty = !0;
}
forEach(e) {
- this.isDirty && this.children.sort(zae), this.isDirty = !1, this.children.forEach(e);
+ this.isDirty && this.children.sort(Fae), this.isDirty = !1, this.children.forEach(e);
}
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/delay.mjs
-function Vae(e, t) {
- let n = jC.now(), r = ({ timestamp: i }) => {
+function Lae(e, t) {
+ let n = PC.now(), r = ({ timestamp: i }) => {
let a = i - n;
- a >= t && (EC(r), e(a - t));
+ a >= t && (kC(r), e(a - t));
};
- return TC.setup(r, !0), () => EC(r);
+ return OC.setup(r, !0), () => kC(r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
-function RD(e) {
- return kT(e) ? e.get() : e;
+function VD(e) {
+ return MT(e) ? e.get() : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/shared/stack.mjs
-var Hae = class {
+var Rae = class {
constructor() {
this.members = [];
}
add(e) {
- RS(this.members, e);
+ VS(this.members, e);
for (let t = this.members.length - 1; t >= 0; t--) {
let n = this.members[t];
if (n === e || n === this.lead || n === this.prevLead) continue;
let r = n.instance;
- (!r || r.isConnected === !1) && !n.snapshot && (zS(this.members, n), n.unmount());
+ (!r || r.isConnected === !1) && !n.snapshot && (HS(this.members, n), n.unmount());
}
e.scheduleRender();
}
remove(e) {
- if (zS(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
+ if (HS(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
let e = this.members[this.members.length - 1];
e && this.promote(e);
}
@@ -30987,51 +30981,51 @@ var Hae = class {
removeLeadSnapshot() {
this.lead?.snapshot && (this.lead.snapshot = void 0);
}
-}, zD = {
+}, HD = {
hasAnimatedSinceResize: !0,
hasEverUpdated: !1
-}, BD = {
+}, UD = {
nodes: 0,
calculatedTargetDeltas: 0,
calculatedProjections: 0
-}, VD = [
+}, WD = [
"",
"X",
"Y",
"Z"
-], Uae = 1e3, Wae = 0;
-function HD(e, t, n, r) {
+], zae = 1e3, Bae = 0;
+function GD(e, t, n, r) {
let { latestValues: i } = t;
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
}
-function UD(e) {
+function KD(e) {
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
let { visualElement: t } = e.options;
if (!t) return;
- let n = NT(t);
+ let n = IT(t);
if (window.MotionHasOptimisedAnimation(n, "transform")) {
let { layout: t, layoutId: r } = e.options;
- window.MotionCancelOptimisedAnimation(n, "transform", TC, !(t || r));
+ window.MotionCancelOptimisedAnimation(n, "transform", OC, !(t || r));
}
let { parent: r } = e;
- r && !r.hasCheckedOptimisedAppear && UD(r);
+ r && !r.hasCheckedOptimisedAppear && KD(r);
}
-function WD({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
+function qD({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
return class {
constructor(e = {}, n = t?.()) {
- this.id = Wae++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
+ this.id = Bae++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
x: 1,
y: 1
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
}, this.updateProjection = () => {
- this.projectionUpdateScheduled = !1, mE.value && (BD.nodes = BD.calculatedTargetDeltas = BD.calculatedProjections = 0), this.nodes.forEach(qae), this.nodes.forEach($ae), this.nodes.forEach(eoe), this.nodes.forEach(Jae), mE.addProjectionMetrics && mE.addProjectionMetrics(BD);
+ this.projectionUpdateScheduled = !1, _E.value && (UD.nodes = UD.calculatedTargetDeltas = UD.calculatedProjections = 0), this.nodes.forEach(Uae), this.nodes.forEach(Yae), this.nodes.forEach(Xae), this.nodes.forEach(Wae), _E.addProjectionMetrics && _E.addProjectionMetrics(UD);
}, this.resolvedRelativeTargetAt = 0, this.linkedParentVersion = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = n ? n.root || n : this, this.path = n ? [...n.path, n] : [], this.parent = n, this.depth = n ? n.depth + 1 : 0;
for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
- this.root === this && (this.nodes = new Bae());
+ this.root === this && (this.nodes = new Iae());
}
addEventListener(e, t) {
- return this.eventHandlers.has(e) || this.eventHandlers.set(e, new YS()), this.eventHandlers.get(e).add(t);
+ return this.eventHandlers.has(e) || this.eventHandlers.set(e, new QS()), this.eventHandlers.get(e).add(t);
}
notifyListeners(e, ...t) {
let n = this.eventHandlers.get(e);
@@ -31042,15 +31036,15 @@ function WD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
mount(t) {
if (this.instance) return;
- this.isSVG = sE(t) && !Gie(t), this.instance = t;
+ this.isSVG = uE(t) && !Vie(t), this.instance = t;
let { layoutId: n, layout: r, visualElement: i } = this.options;
if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
- TC.read(() => {
+ OC.read(() => {
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
- e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = Vae(i, 250), zD.hasAnimatedSinceResize && (zD.hasAnimatedSinceResize = !1, this.nodes.forEach(qD)));
+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = Lae(i, 250), HD.hasAnimatedSinceResize && (HD.hasAnimatedSinceResize = !1, this.nodes.forEach(XD)));
});
}
n && this.root.registerSharedNode(n, this), this.options.animate !== !1 && i && (n || r) && this.addEventListener("didUpdate", ({ delta: e, hasLayoutChanged: t, hasRelativeLayoutChanged: n, layout: r }) => {
@@ -31058,23 +31052,23 @@ function WD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.target = void 0, this.relativeTarget = void 0;
return;
}
- let a = this.options.transition || i.getDefaultTransition() || aoe, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !kD(this.targetLayout, r), l = !t && n;
+ let a = this.options.transition || i.getDefaultTransition() || toe, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !MD(this.targetLayout, r), l = !t && n;
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
let t = {
- ...xT(a, "layout"),
+ ...wT(a, "layout"),
onPlay: o,
onComplete: s
};
(i.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
- } else t || qD(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
+ } else t || XD(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
this.targetLayout = r;
});
}
unmount() {
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
let e = this.getStack();
- e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), EC(this.updateProjection);
+ e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), kC(this.updateProjection);
}
blockUpdate() {
this.updateManuallyBlocked = !0;
@@ -31089,7 +31083,7 @@ function WD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
}
startUpdate() {
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(toe), this.animationId++);
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Zae), this.animationId++);
}
getTransformTemplate() {
let { visualElement: e } = this.options;
@@ -31100,7 +31094,7 @@ function WD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.onExitComplete && this.options.onExitComplete();
return;
}
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && UD(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && KD(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
this.isLayoutDirty = !0;
for (let e = 0; e < this.path.length; e++) {
let t = this.path[e];
@@ -31114,39 +31108,39 @@ function WD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
update() {
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
let e = this.updateBlockedByResize;
- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Xae), this.nodes.forEach(GD);
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Kae), this.nodes.forEach(JD);
return;
}
if (this.animationId <= this.animationCommitId) {
- this.nodes.forEach(KD);
+ this.nodes.forEach(YD);
return;
}
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Zae), this.nodes.forEach(Qae), this.nodes.forEach(Gae), this.nodes.forEach(Kae)) : this.nodes.forEach(KD), this.clearAllSnapshots();
- let e = jC.now();
- DC.delta = BS(0, 1e3 / 60, e - DC.timestamp), DC.timestamp = e, DC.isProcessing = !0, OC.update.process(DC), OC.preRender.process(DC), OC.render.process(DC), DC.isProcessing = !1;
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(qae), this.nodes.forEach(Jae), this.nodes.forEach(Vae), this.nodes.forEach(Hae)) : this.nodes.forEach(YD), this.clearAllSnapshots();
+ let e = PC.now();
+ AC.delta = US(0, 1e3 / 60, e - AC.timestamp), AC.timestamp = e, AC.isProcessing = !0, jC.update.process(AC), jC.preRender.process(AC), jC.render.process(AC), AC.isProcessing = !1;
}
didUpdate() {
- this.updateScheduled || (this.updateScheduled = !0, YT.read(this.scheduleUpdate));
+ this.updateScheduled || (this.updateScheduled = !0, QT.read(this.scheduleUpdate));
}
clearAllSnapshots() {
- this.nodes.forEach(Yae), this.sharedNodes.forEach(noe);
+ this.nodes.forEach(Gae), this.sharedNodes.forEach(Qae);
}
scheduleUpdateProjection() {
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, TC.preRender(this.updateProjection, !1, !0));
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, OC.preRender(this.updateProjection, !1, !0));
}
scheduleCheckAfterUnmount() {
- TC.postRender(() => {
+ OC.postRender(() => {
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
});
}
updateSnapshot() {
- this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !gD(this.snapshot.measuredBox.x) && !gD(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
+ this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !yD(this.snapshot.measuredBox.x) && !yD(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
}
updateLayout() {
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
if (this.resumeFrom && !this.resumeFrom.instance) for (let e = 0; e < this.path.length; e++) this.path[e].updateScroll();
let e = this.layout;
- this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected ||= bE(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
+ this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected ||= CE(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
let { visualElement: t } = this.options;
t && t.notify("LayoutMeasure", this.layout.layoutBox, e ? e.layoutBox : void 0);
}
@@ -31165,12 +31159,12 @@ function WD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
resetTransform() {
if (!i) return;
- let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !ED(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
- e && this.instance && (t || RE(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
+ let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !kD(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
+ e && this.instance && (t || VE(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
}
measure(e = !0) {
let t = this.measurePageBox(), n = this.removeElementScroll(t);
- return e && (n = this.removeTransform(n)), ooe(n), {
+ return e && (n = this.removeTransform(n)), noe(n), {
animationId: this.root.animationId,
measuredBox: t,
layoutBox: n,
@@ -31180,42 +31174,42 @@ function WD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
measurePageBox() {
let { visualElement: e } = this.options;
- if (!e) return bE();
+ if (!e) return CE();
let t = e.measureViewportBox();
- if (!(this.scroll?.wasRoot || this.path.some(soe))) {
+ if (!(this.scroll?.wasRoot || this.path.some(roe))) {
let { scroll: e } = this.root;
- e && (qE(t.x, e.offset.x), qE(t.y, e.offset.y));
+ e && (XE(t.x, e.offset.x), XE(t.y, e.offset.y));
}
return t;
}
removeElementScroll(e) {
- let t = bE();
- if (mD(t, e), this.scroll?.wasRoot) return t;
+ let t = CE();
+ if (_D(t, e), this.scroll?.wasRoot) return t;
for (let n = 0; n < this.path.length; n++) {
let r = this.path[n], { scroll: i, options: a } = r;
- r !== this.root && i && a.layoutScroll && (i.wasRoot && mD(t, e), qE(t.x, i.offset.x), qE(t.y, i.offset.y));
+ r !== this.root && i && a.layoutScroll && (i.wasRoot && _D(t, e), XE(t.x, i.offset.x), XE(t.y, i.offset.y));
}
return t;
}
applyTransform(e, t = !1, n) {
- let r = n || bE();
- mD(r, e);
+ let r = n || CE();
+ _D(r, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- !t && n.options.layoutScroll && n.scroll && n !== n.root && (qE(r.x, -n.scroll.offset.x), qE(r.y, -n.scroll.offset.y)), RE(n.latestValues) && XE(r, n.latestValues, n.layout?.layoutBox);
+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (XE(r.x, -n.scroll.offset.x), XE(r.y, -n.scroll.offset.y)), VE(n.latestValues) && $E(r, n.latestValues, n.layout?.layoutBox);
}
- return RE(this.latestValues) && XE(r, this.latestValues, this.layout?.layoutBox), r;
+ return VE(this.latestValues) && $E(r, this.latestValues, this.layout?.layoutBox), r;
}
removeTransform(e) {
- let t = bE();
- mD(t, e);
+ let t = CE();
+ _D(t, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- if (!RE(n.latestValues)) continue;
+ if (!VE(n.latestValues)) continue;
let r;
- n.instance && (LE(n.latestValues) && n.updateSnapshot(), r = bE(), mD(r, n.measurePageBox())), wD(t, n.latestValues, n.snapshot?.layoutBox, r);
+ n.instance && (BE(n.latestValues) && n.updateSnapshot(), r = CE(), _D(r, n.measurePageBox())), DD(t, n.latestValues, n.snapshot?.layoutBox, r);
}
- return RE(this.latestValues) && wD(t, this.latestValues), t;
+ return VE(this.latestValues) && DD(t, this.latestValues), t;
}
setTargetDelta(e) {
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -31231,7 +31225,7 @@ function WD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
}
forceRelativeParentToResolveTarget() {
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== DC.timestamp && this.relativeParent.resolveTargetDelta(!0);
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== AC.timestamp && this.relativeParent.resolveTargetDelta(!0);
}
resolveTargetDelta(e = !1) {
let t = this.getLead();
@@ -31240,36 +31234,36 @@ function WD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if (!(e || n && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
let { layout: r, layoutId: i } = this.options;
if (!this.layout || !(r || i)) return;
- this.resolvedRelativeTargetAt = DC.timestamp;
+ this.resolvedRelativeTargetAt = AC.timestamp;
let a = this.getClosestProjectingParent();
- a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = bE(), this.targetWithTransforms = bE()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Oae(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : mD(this.target, this.layout.layoutBox), WE(this.target, this.targetDelta)) : mD(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), mE.value && BD.calculatedTargetDeltas++);
+ a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = CE(), this.targetWithTransforms = CE()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), wae(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : _D(this.target, this.layout.layoutBox), qE(this.target, this.targetDelta)) : _D(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), _E.value && UD.calculatedTargetDeltas++);
}
getClosestProjectingParent() {
- if (!(!this.parent || LE(this.parent.latestValues) || zE(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
+ if (!(!this.parent || BE(this.parent.latestValues) || HE(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
}
isProjecting() {
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
}
createRelativeTarget(e, t, n) {
- this.relativeParent = e, this.linkedParentVersion = e.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = bE(), this.relativeTargetOrigin = bE(), xD(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), mD(this.relativeTarget, this.relativeTargetOrigin);
+ this.relativeParent = e, this.linkedParentVersion = e.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = CE(), this.relativeTargetOrigin = CE(), wD(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), _D(this.relativeTarget, this.relativeTargetOrigin);
}
removeRelativeTarget() {
this.relativeParent = this.relativeTarget = void 0;
}
calcProjection() {
let e = this.getLead(), t = !!this.resumingFrom || this !== e, n = !0;
- if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === DC.timestamp && (n = !1), n) return;
+ if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === AC.timestamp && (n = !1), n) return;
let { layout: r, layoutId: i } = this.options;
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
- mD(this.layoutCorrected, this.layout.layoutBox);
+ _D(this.layoutCorrected, this.layout.layoutBox);
let a = this.treeScale.x, o = this.treeScale.y;
- rae(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = bE());
+ $ie(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = CE());
let { target: s } = e;
if (!s) {
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
return;
}
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (hD(this.prevProjectionDelta.x, this.projectionDelta.x), hD(this.prevProjectionDelta.y, this.projectionDelta.y)), vD(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !jD(this.projectionDelta.x, this.prevProjectionDelta.x) || !jD(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), mE.value && BD.calculatedProjections++;
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (vD(this.prevProjectionDelta.x, this.projectionDelta.x), vD(this.prevProjectionDelta.y, this.projectionDelta.y)), xD(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !PD(this.projectionDelta.x, this.prevProjectionDelta.x) || !PD(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), _E.value && UD.calculatedProjections++;
}
hide() {
this.isVisible = !1;
@@ -31285,22 +31279,22 @@ function WD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
}
createProjectionDeltas() {
- this.prevProjectionDelta = vE(), this.projectionDelta = vE(), this.projectionDeltaWithTransform = vE();
+ this.prevProjectionDelta = xE(), this.projectionDelta = xE(), this.projectionDeltaWithTransform = xE();
}
setAnimationOrigin(e, t = !1, n) {
- let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = vE();
+ let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = xE();
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
- let s = bE(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !!(c && !u && this.options.crossfade === !0 && !this.path.some(ioe));
+ let s = CE(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !!(c && !u && this.options.crossfade === !0 && !this.path.some(eoe));
this.animationProgress = 0;
let f, p = n?.interpolateProjection(e);
this.mixTargetDelta = (t) => {
let n = t / 1e3, r = p?.(n);
- r ? (o.x.translate = r.x, o.x.scale = uw(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = uw(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (JD(o.x, e.x, n), JD(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (xD(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), roe(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Mae(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= bE(), mD(f, this.relativeTarget)), c && (this.animationValues = a, Fae(a, i, this.latestValues, n, d, u)), r && r.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
+ r ? (o.x.translate = r.x, o.x.scale = pw(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = pw(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (ZD(o.x, e.x, n), ZD(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (wD(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), $ae(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Oae(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= CE(), _D(f, this.relativeTarget)), c && (this.animationValues = a, jae(a, i, this.latestValues, n, d, u)), r && r.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
}
startAnimation(e) {
- this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (EC(this.pendingAnimation), void 0), this.pendingAnimation = TC.update(() => {
- zD.hasAnimatedSinceResize = !0, this.motionValue ||= yT(0), this.motionValue.jump(0, !1), this.currentAnimation = Rae(this.motionValue, [0, 1e3], {
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (kC(this.pendingAnimation), void 0), this.pendingAnimation = OC.update(() => {
+ HD.hasAnimatedSinceResize = !0, this.motionValue ||= ST(0), this.motionValue.jump(0, !1), this.currentAnimation = Pae(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
isSync: !0,
@@ -31319,23 +31313,23 @@ function WD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
e && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
}
finishAnimation() {
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Uae), this.currentAnimation.stop()), this.completeAnimation();
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(zae), this.currentAnimation.stop()), this.completeAnimation();
}
applyTransformsToTarget() {
let e = this.getLead(), { targetWithTransforms: t, target: n, layout: r, latestValues: i } = e;
if (!(!t || !n || !r)) {
- if (this !== e && this.layout && r && $D(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {
- n = this.target || bE();
- let t = gD(this.layout.layoutBox.x);
+ if (this !== e && this.layout && r && nO(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {
+ n = this.target || CE();
+ let t = yD(this.layout.layoutBox.x);
n.x.min = e.target.x.min, n.x.max = n.x.min + t;
- let r = gD(this.layout.layoutBox.y);
+ let r = yD(this.layout.layoutBox.y);
n.y.min = e.target.y.min, n.y.max = n.y.min + r;
}
- mD(t, n), XE(t, i), vD(this.projectionDeltaWithTransform, this.layoutCorrected, t, i);
+ _D(t, n), $E(t, i), xD(this.projectionDeltaWithTransform, this.layoutCorrected, t, i);
}
}
registerSharedNode(e, t) {
- this.sharedNodes.has(e) || this.sharedNodes.set(e, new Hae()), this.sharedNodes.get(e).add(t);
+ this.sharedNodes.has(e) || this.sharedNodes.set(e, new Rae()), this.sharedNodes.get(e).add(t);
let n = t.options.initialPromotionConfig;
t.promote({
transition: n ? n.transition : void 0,
@@ -31372,8 +31366,8 @@ function WD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let t = !1, { latestValues: n } = e;
if ((n.z || n.rotate || n.rotateX || n.rotateY || n.rotateZ || n.skewX || n.skewY) && (t = !0), !t) return;
let r = {};
- n.z && HD("z", e, r, this.animationValues);
- for (let t = 0; t < VD.length; t++) HD(`rotate${VD[t]}`, e, r, this.animationValues), HD(`skew${VD[t]}`, e, r, this.animationValues);
+ n.z && GD("z", e, r, this.animationValues);
+ for (let t = 0; t < WD.length; t++) GD(`rotate${WD[t]}`, e, r, this.animationValues), GD(`skew${WD[t]}`, e, r, this.animationValues);
e.render();
for (let t in r) e.setStaticValue(t, r[t]), this.animationValues && (this.animationValues[t] = r[t]);
e.scheduleRender();
@@ -31386,71 +31380,71 @@ function WD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
let n = this.getTransformTemplate();
if (this.needsReset) {
- this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = RD(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = VD(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
return;
}
let r = this.getLead();
if (!this.projectionDelta || !this.layout || !r.target) {
- this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = RD(t?.pointerEvents) || ""), this.hasProjected && !RE(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
+ this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = VD(t?.pointerEvents) || ""), this.hasProjected && !VE(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
return;
}
e.visibility = "";
let i = r.animationValues || r.latestValues;
this.applyTransformsToTarget();
- let a = Nae(this.projectionDeltaWithTransform, this.treeScale, i);
+ let a = kae(this.projectionDeltaWithTransform, this.treeScale, i);
n && (a = n(i, a)), e.transform = a;
let { x: o, y: s } = this.projectionDelta;
e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, e.opacity = r.animationValues ? r === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : r === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;
- for (let t in nD) {
+ for (let t in aD) {
if (i[t] === void 0) continue;
- let { correct: n, applyTo: o, isCSSVariable: s } = nD[t], c = a === "none" ? i[t] : n(i[t], r);
+ let { correct: n, applyTo: o, isCSSVariable: s } = aD[t], c = a === "none" ? i[t] : n(i[t], r);
if (o) {
let t = o.length;
for (let n = 0; n < t; n++) e[o[n]] = c;
} else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;
}
- this.options.layoutId && (e.pointerEvents = r === this ? RD(t?.pointerEvents) || "" : "none");
+ this.options.layoutId && (e.pointerEvents = r === this ? VD(t?.pointerEvents) || "" : "none");
}
clearSnapshot() {
this.resumeFrom = this.snapshot = void 0;
}
resetTree() {
- this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(GD), this.root.sharedNodes.clear();
+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(JD), this.root.sharedNodes.clear();
}
};
}
-function Gae(e) {
+function Vae(e) {
e.updateLayout();
}
-function Kae(e) {
+function Hae(e) {
let t = e.resumeFrom?.snapshot || e.snapshot;
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source;
- if (i === "size") MD((e) => {
- let r = a ? t.measuredBox[e] : t.layoutBox[e], i = gD(r);
+ if (i === "size") FD((e) => {
+ let r = a ? t.measuredBox[e] : t.layoutBox[e], i = yD(r);
r.min = n[e].min, r.max = r.min + i;
});
else if (i === "x" || i === "y") {
let e = i === "x" ? "y" : "x";
- pD(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
- } else $D(i, t.layoutBox, n) && MD((r) => {
- let i = a ? t.measuredBox[r] : t.layoutBox[r], o = gD(n[r]);
+ gD(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
+ } else nO(i, t.layoutBox, n) && FD((r) => {
+ let i = a ? t.measuredBox[r] : t.layoutBox[r], o = yD(n[r]);
i.max = i.min + o, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[r].max = e.relativeTarget[r].min + o);
});
- let o = vE();
- vD(o, n, t.layoutBox);
- let s = vE();
- a ? vD(s, e.applyTransform(r, !0), t.measuredBox) : vD(s, n, t.layoutBox);
- let c = !ED(o), l = !1;
+ let o = xE();
+ xD(o, n, t.layoutBox);
+ let s = xE();
+ a ? xD(s, e.applyTransform(r, !0), t.measuredBox) : xD(s, n, t.layoutBox);
+ let c = !kD(o), l = !1;
if (!e.resumeFrom) {
let r = e.getClosestProjectingParent();
if (r && !r.resumeFrom) {
let { snapshot: i, layout: a } = r;
if (i && a) {
- let o = e.options.layoutAnchor || void 0, s = bE();
- xD(s, t.layoutBox, i.layoutBox, o);
- let c = bE();
- xD(c, n, a.layoutBox, o), kD(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
+ let o = e.options.layoutAnchor || void 0, s = CE();
+ wD(s, t.layoutBox, i.layoutBox, o);
+ let c = CE();
+ wD(c, n, a.layoutBox, o), MD(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
}
}
}
@@ -31468,59 +31462,59 @@ function Kae(e) {
}
e.options.transition = void 0;
}
-function qae(e) {
- mE.value && BD.nodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
+function Uae(e) {
+ _E.value && UD.nodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
}
-function Jae(e) {
+function Wae(e) {
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
}
-function Yae(e) {
+function Gae(e) {
e.clearSnapshot();
}
-function GD(e) {
+function JD(e) {
e.clearMeasurements();
}
-function Xae(e) {
+function Kae(e) {
e.isLayoutDirty = !0, e.updateLayout();
}
-function KD(e) {
+function YD(e) {
e.isLayoutDirty = !1;
}
-function Zae(e) {
+function qae(e) {
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.layout, e.isLayoutDirty = !0);
}
-function Qae(e) {
+function Jae(e) {
let { visualElement: t } = e.options;
t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
}
-function qD(e) {
+function XD(e) {
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
}
-function $ae(e) {
+function Yae(e) {
e.resolveTargetDelta();
}
-function eoe(e) {
+function Xae(e) {
e.calcProjection();
}
-function toe(e) {
+function Zae(e) {
e.resetSkewAndRotation();
}
-function noe(e) {
+function Qae(e) {
e.removeLeadSnapshot();
}
-function JD(e, t, n) {
- e.translate = uw(t.translate, 0, n), e.scale = uw(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
+function ZD(e, t, n) {
+ e.translate = pw(t.translate, 0, n), e.scale = pw(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
}
-function YD(e, t, n, r) {
- e.min = uw(t.min, n.min, r), e.max = uw(t.max, n.max, r);
+function QD(e, t, n, r) {
+ e.min = pw(t.min, n.min, r), e.max = pw(t.max, n.max, r);
}
-function roe(e, t, n, r) {
- YD(e.x, t.x, n.x, r), YD(e.y, t.y, n.y, r);
+function $ae(e, t, n, r) {
+ QD(e.x, t.x, n.x, r), QD(e.y, t.y, n.y, r);
}
-function ioe(e) {
+function eoe(e) {
return e.animationValues && e.animationValues.opacityExit !== void 0;
}
-var aoe = {
+var toe = {
duration: .45,
ease: [
.4,
@@ -31528,39 +31522,39 @@ var aoe = {
.1,
1
]
-}, XD = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), ZD = XD("applewebkit/") && !XD("chrome/") ? Math.round : KS;
-function QD(e) {
- e.min = ZD(e.min), e.max = ZD(e.max);
+}, $D = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), eO = $D("applewebkit/") && !$D("chrome/") ? Math.round : YS;
+function tO(e) {
+ e.min = eO(e.min), e.max = eO(e.max);
}
-function ooe(e) {
- QD(e.x), QD(e.y);
+function noe(e) {
+ tO(e.x), tO(e.y);
}
-function $D(e, t, n) {
- return e === "position" || e === "preserve-aspect" && !Dae(AD(t), AD(n), .2);
+function nO(e, t, n) {
+ return e === "position" || e === "preserve-aspect" && !Cae(ND(t), ND(n), .2);
}
-function soe(e) {
+function roe(e) {
return e !== e.root && e.scroll?.wasRoot;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
-var coe = WD({
- attachResizeListener: (e, t) => LD(e, "resize", t),
+var ioe = qD({
+ attachResizeListener: (e, t) => BD(e, "resize", t),
measureScroll: () => ({
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
}),
checkIsScrollRoot: () => !0
-}), eO = { current: void 0 }, tO = WD({
+}), rO = { current: void 0 }, iO = qD({
measureScroll: (e) => ({
x: e.scrollLeft,
y: e.scrollTop
}),
defaultParent: () => {
- if (!eO.current) {
- let e = new coe({});
- e.mount(window), e.setOptions({ layoutScroll: !0 }), eO.current = e;
+ if (!rO.current) {
+ let e = new ioe({});
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), rO.current = e;
}
- return eO.current;
+ return rO.current;
},
resetTransform: (e, t) => {
e.style.transform = t === void 0 ? "none" : t;
@@ -31569,18 +31563,18 @@ var coe = WD({
});
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
-function loe(e, t, n, r) {
+function aoe(e, t, n, r) {
if (e == null) return [];
- let i = KT(e, r), a = i.length, o = [];
+ let i = YT(e, r), a = i.length, o = [];
for (let e = 0; e < a; e++) {
let r = i[e], s = { ...n };
typeof s.delay == "function" && (s.delay = s.delay(e, a));
for (let e in t) {
let n = t[e];
Array.isArray(n) || (n = [n]);
- let i = { ...xT(s, e) };
- i.duration &&= /* @__PURE__ */ XS(i.duration), i.delay &&= /* @__PURE__ */ XS(i.delay);
- let a = Xre(r), c = Yre(e, i.pseudoElement || ""), l = a.get(c);
+ let i = { ...wT(s, e) };
+ i.duration &&= /* @__PURE__ */ $S(i.duration), i.delay &&= /* @__PURE__ */ $S(i.delay);
+ let a = Kre(r), c = Gre(e, i.pseudoElement || ""), l = a.get(c);
l && l.stop(), o.push({
map: a,
key: c,
@@ -31596,40 +31590,40 @@ function loe(e, t, n, r) {
}
for (let e = 0; e < o.length; e++) {
let { unresolvedKeyframes: t, options: n } = o[e], { element: r, name: i, pseudoElement: a } = n;
- !a && t[0] === null && (t[0] = oE(r, i)), Pw(t), Eie(t, i), !a && t.length < 2 && t.unshift(oE(r, i)), n.keyframes = t;
+ !a && t[0] === null && (t[0] = lE(r, i)), Lw(t), Sie(t, i), !a && t.length < 2 && t.unshift(lE(r, i)), n.keyframes = t;
}
let s = [];
for (let e = 0; e < o.length; e++) {
- let { map: t, key: n, options: r } = o[e], i = new cT(r);
+ let { map: t, key: n, options: r } = o[e], i = new dT(r);
t.set(n, i), i.finished.finally(() => t.delete(n)), s.push(i);
}
return s;
}
-var uoe = /*@__PURE__*/ ((e) => {
+var ooe = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new Jre(loe(t, n, r, e));
+ return new Wre(aoe(t, n, r, e));
}
return t;
-})(), nO = (e, t) => Math.abs(e - t);
-function doe(e, t) {
- let n = nO(e.x, t.x), r = nO(e.y, t.y);
+})(), aO = (e, t) => Math.abs(e - t);
+function soe(e, t) {
+ let n = aO(e.x, t.x), r = aO(e.y, t.y);
return Math.sqrt(n ** 2 + r ** 2);
}
//#endregion
//#region src/react/components/use-moving-surface.ts
-var foe = {
+var coe = {
selection: {
- type: Tw,
+ type: Ow,
duration: .16,
bounce: 0
},
hover: {
- type: Tw,
+ type: Ow,
duration: .08,
bounce: 0
}
};
-function rO(e) {
+function oO(e) {
let [t, n] = (0, R.useState)(null);
return (0, R.useLayoutEffect)(() => {
if (!t) return;
@@ -31650,7 +31644,7 @@ function rO(e) {
let E = `translate(${b}px, ${x}px) scale(1, 1)`;
if (u && a && !r.matches && T && s !== h) {
let r = `translate(${(T.left - _.left) / v + t.scrollLeft - t.clientLeft}px, ${(T.top - _.top) / y + t.scrollTop - t.clientTop}px) scale(${T.width / v / S}, ${T.height / y / C})`;
- l = uoe(n, { transform: [r, E] }, foe[e]);
+ l = ooe(n, { transform: [r, E] }, coe[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -31687,16 +31681,16 @@ function rO(e) {
}
//#endregion
//#region src/react/components/menu-dialog.tsx
-function iO(e) {
- let t = rO("hover");
- return /* @__PURE__ */ (0, z.jsx)(lb, {
+function sO(e) {
+ let t = oO("hover");
+ return /* @__PURE__ */ (0, z.jsx)(ub, {
...e,
ref: t
});
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var aO = _i({
+var cO = _i({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -31720,15 +31714,15 @@ var aO = _i({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function oO({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = gi(aO.base, aO.size[t], aO.variant[e], a), l = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
+function lO({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = gi(cO.base, cO.size[t], cO.variant[e], a), l = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
n ? /* @__PURE__ */ (0, z.jsx)(n, {
- className: aO.icon[t],
+ className: cO.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, z.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, z.jsx)(r, {
- className: aO.icon[t],
+ className: cO.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -31755,7 +31749,7 @@ function oO({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var sO = [
+var uO = [
"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",
@@ -31763,74 +31757,74 @@ var sO = [
"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(" "), poe = "w-[266px]", moe = "flex w-full flex-col gap-1 outline-none", cO = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), lO = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+].join(" "), loe = "w-[266px]", uoe = "flex w-full flex-col gap-1 outline-none", dO = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), fO = "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 hoe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", goe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", _oe = Mi({
+var doe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", foe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", poe = Mi({
padding: "none",
bordered: "line",
className: "overflow-hidden"
-}), voe = {
+}), moe = {
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"
-}, yoe = {
+}, hoe = {
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"
-}, boe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", xoe = {
+}, goe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", _oe = {
neutral: "border-border-button-default bg-card-footer",
error: "border-border-error-default bg-background-tertiary-error"
-}, Soe = Mi({
+}, voe = Mi({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
-}), uO = "border-t border-border-button-default p-4 first:border-t-0";
-function dO({ tone: e = "neutral", status: t, children: n }) {
+}), pO = "border-t border-border-button-default p-4 first:border-t-0";
+function mO({ tone: e = "neutral", status: t, children: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: `${boe} ${xoe[e]}`,
+ className: `${goe} ${_oe[e]}`,
children: [t ? /* @__PURE__ */ (0, z.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 fO({ id: e, children: t }) {
+function hO({ id: e, children: t }) {
return /* @__PURE__ */ (0, z.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
children: t
});
}
-function pO({ id: e, gap: t = "none", children: n }) {
+function gO({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, z.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function mO({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function _O({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, z.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: `${_oe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
+ className: `${poe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
children: [/* @__PURE__ */ (0, z.jsx)("div", {
- className: voe[e],
+ className: moe[e],
children: a
}), i ? /* @__PURE__ */ (0, z.jsx)("footer", {
- className: yoe[e],
+ className: hoe[e],
children: i
}) : null]
});
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function hO() {
+function vO() {
let e = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
v(e.current);
@@ -31838,7 +31832,7 @@ function hO() {
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var gO = _i({
+var yO = _i({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -31859,21 +31853,21 @@ var gO = _i({
small: "size-4 shrink-0"
}
});
-function _O({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function bO({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, z.jsx)("button", {
ref: i,
type: r,
- className: gi(gO.base, gO.size[t], n),
+ className: gi(yO.base, yO.size[t], n),
...a,
children: /* @__PURE__ */ (0, z.jsx)(e, {
- className: gO.icon[t],
+ className: yO.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/components/path-line.tsx
-function Coe({ className: e }) {
+function yoe({ className: e }) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -31886,8 +31880,8 @@ function Coe({ className: e }) {
children: /* @__PURE__ */ (0, z.jsx)("use", { href: "#i-folder-open" })
});
}
-var woe = "打开文件管理器失败,请重试";
-function vO({ path: e, prefix: t, className: n, onRevealed: r }) {
+var boe = "打开文件管理器失败,请重试";
+function xO({ path: e, prefix: t, className: n, onRevealed: r }) {
let [i, a] = (0, R.useState)(!1), [o, s] = (0, R.useState)(""), c = (0, R.useRef)(!0);
(0, R.useEffect)(() => () => {
c.current = !1;
@@ -31898,7 +31892,7 @@ function vO({ path: e, prefix: t, className: n, onRevealed: r }) {
try {
await W("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof Si ? e.message : woe);
+ c.current && s(e instanceof Si ? e.message : boe);
} finally {
c.current && a(!1);
}
@@ -31911,8 +31905,8 @@ function vO({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, z.jsxs)("p", {
className: gi("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, z.jsx)(_O, {
- icon: Coe,
+ }), /* @__PURE__ */ (0, z.jsx)(bO, {
+ icon: yoe,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
@@ -31927,7 +31921,7 @@ function vO({ path: e, prefix: t, className: n, onRevealed: r }) {
}
//#endregion
//#region src/react/components/task-progress.tsx
-function yO({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function SO({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-task-progress": !0,
className: r ? "flex flex-col gap-1.5" : Mi({
@@ -31947,19 +31941,19 @@ function yO({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function Toe({ className: e, children: t }) {
+function xoe({ className: e, children: t }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
className: gi("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function bO({ className: e, children: t }) {
+function CO({ className: e, children: t }) {
return /* @__PURE__ */ (0, z.jsx)("p", {
className: gi("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function xO({ label: e, description: t, children: n }) {
+function wO({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: gi("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
@@ -31976,14 +31970,14 @@ function xO({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/settings/section.tsx
-function SO({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+function TO({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
let a = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [n ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, z.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, z.jsx)(bO, { children: e })
+ children: /* @__PURE__ */ (0, z.jsx)(CO, { children: e })
}), n]
- }) : /* @__PURE__ */ (0, z.jsx)(bO, { children: e }), /* @__PURE__ */ (0, z.jsx)(Toe, { children: i })] });
+ }) : /* @__PURE__ */ (0, z.jsx)(CO, { children: e }), /* @__PURE__ */ (0, z.jsx)(xoe, { children: i })] });
return r ? /* @__PURE__ */ (0, z.jsx)("form", {
id: t,
"aria-label": e,
@@ -31998,13 +31992,13 @@ function SO({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
children: a
});
}
-function CO({ children: e }) {
+function EO({ children: e }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function wO({ divided: e = !1, children: t }) {
+function DO({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
@@ -32013,7 +32007,7 @@ function wO({ divided: e = !1, children: t }) {
children: t
});
}
-function TO({ status: e, children: t }) {
+function OO({ status: e, children: t }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3",
children: [e ? /* @__PURE__ */ (0, z.jsx)("div", {
@@ -32022,28 +32016,28 @@ function TO({ status: e, children: t }) {
}) : null, t]
});
}
-function EO({ role: e, children: t }) {
+function kO({ role: e, children: t }) {
return /* @__PURE__ */ (0, z.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function DO({ children: e }) {
+function AO({ children: e }) {
return /* @__PURE__ */ (0, z.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function OO({ children: e }) {
+function jO({ children: e }) {
return /* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function kO({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, z.jsx)(oO, {
+function MO({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, z.jsx)(lO, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
@@ -32057,13 +32051,13 @@ function kO({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function AO({ children: e }) {
+function NO({ children: e }) {
return /* @__PURE__ */ (0, z.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function jO({ term: e, children: t }) {
+function PO({ term: e, children: t }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0",
children: [/* @__PURE__ */ (0, z.jsx)("dt", {
@@ -32075,7 +32069,7 @@ function jO({ term: e, children: t }) {
})]
});
}
-function MO({ summary: e, defaultOpen: t = !1, children: n }) {
+function FO({ summary: e, defaultOpen: t = !1, children: n }) {
let r = (0, R.useId)(), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(!1), [s, c] = (0, R.useState)(t);
return /* @__PURE__ */ (0, z.jsxs)("details", {
ref: (e) => {
@@ -32103,7 +32097,7 @@ function MO({ summary: e, defaultOpen: t = !1, children: n }) {
})]
});
}
-function Eoe({ name: e }) {
+function Soe({ name: e }) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -32112,29 +32106,29 @@ function Eoe({ name: e }) {
children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
});
}
-function NO({ mark: e }) {
+function IO({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, z.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, z.jsx)(Eoe, { name: e });
+ }) : /* @__PURE__ */ (0, z.jsx)(Soe, { name: e });
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function PO({ toast: e, mode: t, monitor: n }) {
+function LO({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = Nn({
- queryKey: qo,
- queryFn: ({ signal: e }) => Jo(e),
- refetchInterval: (e) => $o(e.state.data, r)
+ queryKey: Ko,
+ queryFn: ({ signal: e }) => qo(e),
+ refetchInterval: (e) => Qo(e.state.data, r)
}), [a, o] = (0, R.useState)(null), s = (0, R.useRef)(void 0), c = i.data;
return (0, R.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") && ss(c, e, r);
+ r && o(c), (r || t === "notice") && os(c, e, r);
}, [
c,
t,
@@ -32147,7 +32141,7 @@ function PO({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var Doe = [
+var Coe = [
{
label: "扫描并补全资料",
icon: Ne,
@@ -32163,13 +32157,13 @@ var Doe = [
icon: ze,
command: { stage: "collect" }
}
-], Ooe = gi(cO, lO, "text-body-2-medium"), koe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Aoe = (e) => {
+], woe = gi(dO, fO, "text-body-2-medium"), Toe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Eoe = (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(",")}。`;
-}, joe = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + Aoe(e);
-function Moe({ busy: e, onRun: t }) {
+}, Doe = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + Eoe(e);
+function Ooe({ busy: e, onRun: t }) {
let n = (0, R.useRef)(null), [r, i] = (0, R.useState)(!1), a = (n) => {
e || (i(!1), t(n));
};
@@ -32194,19 +32188,19 @@ function Moe({ busy: e, onRun: t }) {
e || i(!0);
}
})]
- }), /* @__PURE__ */ (0, z.jsx)(hy, {
+ }), /* @__PURE__ */ (0, z.jsx)(gy, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: sO,
- children: /* @__PURE__ */ (0, z.jsx)(iO, {
+ className: uO,
+ children: /* @__PURE__ */ (0, z.jsx)(sO, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: Doe.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ children: Coe.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
- className: Ooe,
+ className: woe,
onClick: () => a(n),
children: [/* @__PURE__ */ (0, z.jsx)(t, {
"aria-hidden": !0,
@@ -32216,8 +32210,8 @@ function Moe({ busy: e, onRun: t }) {
})
})] });
}
-function Noe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = is(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = ns(e.notes || {}), c = hO();
+function koe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = rs(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = ts(e.notes || {}), c = vO();
return /* @__PURE__ */ (0, z.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
@@ -32225,7 +32219,7 @@ function Noe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
e.status === "running" && e.stalled ? /* @__PURE__ */ (0, z.jsx)(G, {
tone: "warning",
title: "处理较慢",
- children: koe
+ children: Toe
}) : null,
t || e.status === "failed" ? /* @__PURE__ */ (0, z.jsx)(G, {
tone: "error",
@@ -32237,7 +32231,7 @@ function Noe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
extra: a ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5",
- children: /* @__PURE__ */ (0, z.jsxs)(MO, {
+ children: /* @__PURE__ */ (0, z.jsxs)(FO, {
summary: a.label,
children: [/* @__PURE__ */ (0, z.jsx)("div", {
className: "relative",
@@ -32268,7 +32262,7 @@ function Noe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}), a.log ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",
- children: /* @__PURE__ */ (0, z.jsx)(vO, {
+ children: /* @__PURE__ */ (0, z.jsx)(xO, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -32282,13 +32276,13 @@ function Noe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
n?.status === "complete" ? /* @__PURE__ */ (0, z.jsx)(G, {
tone: "success",
title: "处理完成",
- children: joe(n)
+ children: Doe(n)
}) : null,
e.status !== "running" && s ? /* @__PURE__ */ (0, z.jsx)(G, {
tone: "neutral",
extra: e.issues_log ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",
- children: /* @__PURE__ */ (0, z.jsx)(vO, {
+ children: /* @__PURE__ */ (0, z.jsx)(xO, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -32300,38 +32294,38 @@ function Noe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
]
});
}
-function FO(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = PO(e), o = Pn({
- mutationFn: (e) => W(Ko, e),
+function RO(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = LO(e), o = Pn({
+ mutationFn: (e) => W(Go, e),
onSuccess: (e) => {
- a(), q.setQueryData(qo, e), q.invalidateQueries({ queryKey: qo });
+ a(), q.setQueryData(Ko, e), q.invalidateQueries({ queryKey: Ko });
}
});
(0, R.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? U(o.error) : r.isError ? r.data ? Qo : U(r.error) : "", l = o.isPending || s.status === "running", u = rs(s), d = (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? U(o.error) : r.isError ? r.data ? Zo : U(r.error) : "", l = o.isPending || s.status === "running", u = ns(s), d = (e) => {
l || (o.reset(), o.mutate(e));
};
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, z.jsx)(mO, {
+ children: [/* @__PURE__ */ (0, z.jsx)(_O, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)(oO, {
+ /* @__PURE__ */ (0, z.jsx)(lO, {
href: "/scraping",
size: "small",
trailingIcon: Te,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, z.jsx)(oO, {
+ s.candidates ? /* @__PURE__ */ (0, z.jsx)(lO, {
href: "/review",
size: "small",
trailingIcon: Te,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, z.jsx)(Moe, {
+ /* @__PURE__ */ (0, z.jsx)(Ooe, {
busy: l,
onRun: d
})
@@ -32339,12 +32333,12 @@ function FO(e) {
children: /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(pO, { children: "扫描与采集" }),
+ /* @__PURE__ */ (0, z.jsx)(gO, { children: "扫描与采集" }),
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: hoe
+ children: doe
}),
- s.status === "running" ? /* @__PURE__ */ (0, z.jsx)(yO, {
+ s.status === "running" ? /* @__PURE__ */ (0, z.jsx)(SO, {
embedded: !0,
label: u,
value: s.checked,
@@ -32352,7 +32346,7 @@ function FO(e) {
}) : null
]
})
- }), /* @__PURE__ */ (0, z.jsx)(Noe, {
+ }), /* @__PURE__ */ (0, z.jsx)(koe, {
state: s,
problem: c,
settled: i,
@@ -32368,7 +32362,7 @@ function FO(e) {
}
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function Poe(e) {
+function Aoe(e) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -32382,7 +32376,7 @@ function Poe(e) {
})
});
}
-function Foe(e) {
+function joe(e) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -32396,7 +32390,7 @@ function Foe(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function Ioe(e, t, n) {
+function Moe(e, t, n) {
(0, R.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -32410,7 +32404,7 @@ function Ioe(e, t, n) {
n
]);
}
-function Loe(e, t) {
+function Noe(e, t) {
let n = (0, R.useRef)(!1);
return (0, R.useEffect)(() => {
if (!e) return;
@@ -32424,33 +32418,33 @@ function Loe(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var IO = (0, R.createContext)("md");
-function LO({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var zO = (0, R.createContext)("md");
+function BO({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, R.useRef)(null), u = (0, R.useRef)(null), [d, f] = (0, R.useState)(!1);
- Ioe(d, () => f(!1), [l, u]);
- let p = Loe(d, l);
- return /* @__PURE__ */ (0, z.jsx)(Ite, {
+ Moe(d, () => f(!1), [l, u]);
+ let p = Noe(d, l);
+ return /* @__PURE__ */ (0, z.jsx)(Pte, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
className: gi("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)(Pm, {
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)(Nm, {
ref: l,
className: gi("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
- children: [/* @__PURE__ */ (0, z.jsx)(zte, {
+ children: [/* @__PURE__ */ (0, z.jsx)(Lte, {
className: gi("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, z.jsx)(Poe, { className: gi("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, z.jsx)(hy, {
+ }), /* @__PURE__ */ (0, z.jsx)(Aoe, { className: gi("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, z.jsx)(gy, {
ref: u,
isNonModal: !0,
offset: 4,
- className: gi(poe, sO, "p-2", n),
+ className: gi(loe, uO, "p-2", n),
children: /* @__PURE__ */ (0, z.jsx)(hee, {
items: a,
- className: gi(moe, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, z.jsx)(IO.Provider, {
+ className: gi(uoe, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, z.jsx)(zO.Provider, {
value: r,
children: i
})
@@ -32458,19 +32452,19 @@ function LO({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function RO({ className: e, children: t, ...n }) {
- let r = (0, R.useContext)(IO);
+function VO({ className: e, children: t, ...n }) {
+ let r = (0, R.useContext)(zO);
return /* @__PURE__ */ (0, z.jsx)(vee, {
...n,
- className: (t) => gi(cO, 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) => gi(dO, 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 zO = 2e3, Roe = (e) => e, BO = (e, t) => t;
-function VO(e) {
- let { queryKey: t, jobOf: n = Roe, withJob: r = BO, idlePollMs: i } = e, [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(null), l = (0, R.useRef)(e);
+var HO = 2e3, Poe = (e) => e, UO = (e, t) => t;
+function WO(e) {
+ let { queryKey: t, jobOf: n = Poe, withJob: r = UO, idlePollMs: i } = e, [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(null), l = (0, R.useRef)(e);
(0, R.useEffect)(() => {
l.current = e;
});
@@ -32479,7 +32473,7 @@ function VO(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? zO : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? HO : i ?? !1;
}
}), d = Pn({
mutationFn: (e) => l.current.start(e),
@@ -32510,32 +32504,32 @@ function VO(e) {
}
//#endregion
//#region src/react/media-repair/media-repair-card.tsx
-var zoe = (e) => _[e] || e, HO = (e) => q.setQueryData(ls, e);
-function Boe() {
+var Foe = (e) => _[e] || e, GO = (e) => q.setQueryData(cs, e);
+function Ioe() {
let e = Nn({
- queryKey: ls,
- queryFn: ({ signal: e }) => fs(e),
- refetchInterval: (e) => e.state.data?.status === "running" && zO
+ queryKey: cs,
+ queryFn: ({ signal: e }) => ds(e),
+ refetchInterval: (e) => e.state.data?.status === "running" && HO
}), t = Nn({
- queryKey: us,
- queryFn: ({ signal: e }) => ps(e)
- }), [n, r] = (0, R.useState)(""), i = Bi(), a = e.data ?? ds, 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: ls,
+ queryFn: ({ signal: e }) => fs(e)
+ }), [n, r] = (0, R.useState)(""), i = Bi(), a = e.data ?? us, 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 && y({
title: `修复媒体库「${c.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
confirmLabel: "修复媒体库",
- onConfirm: async () => HO(await W(cs, {
+ onConfirm: async () => GO(await W(ss, {
library: c.id,
restart: !0
}))
});
- }, u = () => void i.run("stop", (e) => W(cs, { stop: !0 }, "POST", e), HO), d = gs(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
+ }, u = () => void i.run("stop", (e) => W(ss, { stop: !0 }, "POST", e), GO), d = hs(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, z.jsx)(mO, {
+ children: [/* @__PURE__ */ (0, z.jsx)(_O, {
layout: "split",
label: "媒体修复",
- footer: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(LO, {
+ footer: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(BO, {
"aria-label": "媒体库",
className: "w-48",
selectedKey: c?.id ?? null,
@@ -32543,10 +32537,10 @@ function Boe() {
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: o.map((e) => /* @__PURE__ */ (0, z.jsxs)(RO, {
+ children: o.map((e) => /* @__PURE__ */ (0, z.jsxs)(VO, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, z.jsx)(NO, { mark: zoe(e.icon) }), e.name]
+ children: [/* @__PURE__ */ (0, z.jsx)(IO, { mark: Foe(e.icon) }), e.name]
}, e.id))
}), s ? /* @__PURE__ */ (0, z.jsx)(H, {
onClick: u,
@@ -32560,10 +32554,10 @@ function Boe() {
children: /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(pO, { children: "媒体修复" }),
+ /* @__PURE__ */ (0, z.jsx)(gO, { children: "媒体修复" }),
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: goe
+ children: foe
}),
s && a.total ? /* @__PURE__ */ (0, z.jsx)(zi, {
label: "修复进度",
@@ -32589,7 +32583,7 @@ function Boe() {
f && a.missing_tool ? /* @__PURE__ */ (0, z.jsx)(G, {
tone: "warning",
title: "缺少 untrunc",
- children: _s(a)
+ children: gs(a)
}) : null,
p ? /* @__PURE__ */ (0, z.jsx)(G, {
tone: "error",
@@ -32601,7 +32595,7 @@ function Boe() {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var UO = {
+var KO = {
md: {
box: "size-4",
glyph: "size-4",
@@ -32615,8 +32609,8 @@ var UO = {
gap: "gap-1.5"
}
};
-function WO({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = UO[t], c = n || r, l = o && !a;
+function qO({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = KO[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, z.jsx)("span", {
"aria-hidden": !0,
className: gi("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? gi("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : gi("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"),
@@ -32643,13 +32637,13 @@ function WO({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function GO({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = UO[n];
- return /* @__PURE__ */ (0, z.jsx)(jh, {
+function JO({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = KO[n];
+ return /* @__PURE__ */ (0, z.jsx)(Ah, {
ref: r,
...i,
className: (t) => gi("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(WO, {
+ children: (e) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(qO, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, z.jsx)("span", {
@@ -32660,10 +32654,10 @@ function GO({ className: e, children: t, size: n = "md", ref: r, ...i }) {
}
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
-function KO({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function YO({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
className: gi("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, z.jsx)(_ne, {
+ children: /* @__PURE__ */ (0, z.jsx)(hne, {
ref: r,
...i,
className: gi("bui-table", e === "sm" && "bui-table-sm", t)
@@ -32672,7 +32666,7 @@ function KO({ size: e = "md", className: t, containerClassName: n, ref: r, ...i
}
//#endregion
//#region src/react/components/row-click.ts
-var qO = [
+var XO = [
"a",
"button",
"input",
@@ -32685,15 +32679,15 @@ var qO = [
"[role=\"link\"]",
"[role=\"menu\"]"
].join(",");
-function JO(e, t) {
+function ZO(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(qO);
+ let r = n.closest(XO);
return !r || !t.contains(r) || r === t;
}
//#endregion
//#region src/react/components/data-table-frame.tsx
-function YO({ children: e, follow: t = !1, onRowClick: n }) {
+function QO({ children: e, follow: t = !1, onRowClick: n }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-board-data-table": !0,
"data-follow-table": t || void 0,
@@ -32701,15 +32695,15 @@ function YO({ 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 && JO(e, r) && n(r.dataset.key);
+ r && ZO(e, r) && n(r.dataset.key);
} : void 0,
children: e
});
}
//#endregion
//#region src/react/data-cleanup/link-manager.tsx
-var Voe = oo("unlink"), XO = oo("rotate-cw"), Hoe = "站点返回 404 或 410,确认这个地址不存在。", Uoe = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Woe = "删除前会逐条重验一次;此操作不可撤销。", ZO = "暂时无法读取进度,正在重新连接…", QO = (e) => Number(e || 0).toLocaleString();
-function $O({ label: e, value: t, note: n }) {
+var Loe = oo("unlink"), $O = oo("rotate-cw"), Roe = "站点返回 404 或 410,确认这个地址不存在。", zoe = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Boe = "删除前会逐条重验一次;此操作不可撤销。", ek = "暂时无法读取进度,正在重新连接…", tk = (e) => Number(e || 0).toLocaleString();
+function nk({ label: e, value: t, note: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-w-0 flex-col gap-0.5",
children: [
@@ -32728,11 +32722,11 @@ function $O({ label: e, value: t, note: n }) {
]
});
}
-function ek({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
+function rk({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
if (!t.length) return null;
let o = r ?? [], s = o.length > 0 && o.length === t.length;
return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: uO,
+ className: pO,
children: [
/* @__PURE__ */ (0, z.jsxs)("h4", {
className: "mb-1 text-body-semibold text-text-primary",
@@ -32745,13 +32739,13 @@ function ek({ 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, z.jsx)(YO, { children: /* @__PURE__ */ (0, z.jsxs)(KO, {
+ /* @__PURE__ */ (0, z.jsx)(QO, { children: /* @__PURE__ */ (0, z.jsxs)(YO, {
"aria-label": e,
size: "sm",
- children: [/* @__PURE__ */ (0, z.jsxs)(uS, { children: [
- i ? /* @__PURE__ */ (0, z.jsx)(dS, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(dS, { children: [
+ i ? /* @__PURE__ */ (0, z.jsx)(fS, {
id: "pick",
- children: /* @__PURE__ */ (0, z.jsx)(GO, {
+ children: /* @__PURE__ */ (0, z.jsx)(JO, {
slot: null,
"aria-label": "全选本次未访问成功的链接",
isSelected: s,
@@ -32759,44 +32753,44 @@ function ek({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
onChange: (e) => i(e ? t.map((e) => e.id) : [])
})
}) : null,
- /* @__PURE__ */ (0, z.jsx)(dS, {
+ /* @__PURE__ */ (0, z.jsx)(fS, {
id: "entity",
isRowHeader: !0,
children: "所属"
}),
- /* @__PURE__ */ (0, z.jsx)(dS, {
+ /* @__PURE__ */ (0, z.jsx)(fS, {
id: "kind",
children: "类型"
}),
- /* @__PURE__ */ (0, z.jsx)(dS, {
+ /* @__PURE__ */ (0, z.jsx)(fS, {
id: "label",
children: "标签"
}),
- /* @__PURE__ */ (0, z.jsx)(dS, {
+ /* @__PURE__ */ (0, z.jsx)(fS, {
id: "note",
children: "结果"
}),
- /* @__PURE__ */ (0, z.jsx)(dS, {
+ /* @__PURE__ */ (0, z.jsx)(fS, {
id: "url",
children: "地址"
})
- ] }), /* @__PURE__ */ (0, z.jsx)(pS, { children: t.map((e) => /* @__PURE__ */ (0, z.jsxs)(gS, {
+ ] }), /* @__PURE__ */ (0, z.jsx)(mS, { children: t.map((e) => /* @__PURE__ */ (0, z.jsxs)(_S, {
id: e.id,
children: [
- i ? /* @__PURE__ */ (0, z.jsx)(vS, { children: /* @__PURE__ */ (0, z.jsx)(GO, {
+ i ? /* @__PURE__ */ (0, z.jsx)(yS, { children: /* @__PURE__ */ (0, z.jsx)(JO, {
slot: null,
"aria-label": `选择 ${e.entity} 的${e.label || e.url}`,
isSelected: o.includes(e.id),
onChange: (t) => i(t ? [...o, e.id] : o.filter((t) => t !== e.id))
}) }) : null,
- /* @__PURE__ */ (0, z.jsx)(vS, { children: e.entity }),
- /* @__PURE__ */ (0, z.jsx)(vS, { children: fc[e.link_kind] || e.link_kind }),
- /* @__PURE__ */ (0, z.jsx)(vS, { children: e.label || "" }),
- /* @__PURE__ */ (0, z.jsx)(vS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, z.jsx)(yS, { children: e.entity }),
+ /* @__PURE__ */ (0, z.jsx)(yS, { children: dc[e.link_kind] || e.link_kind }),
+ /* @__PURE__ */ (0, z.jsx)(yS, { children: e.label || "" }),
+ /* @__PURE__ */ (0, z.jsx)(yS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
className: "tabular-nums text-text-error-primary",
children: e.note
}) }),
- /* @__PURE__ */ (0, z.jsx)(vS, { children: /* @__PURE__ */ (0, z.jsxs)("a", {
+ /* @__PURE__ */ (0, z.jsx)(yS, { children: /* @__PURE__ */ (0, z.jsxs)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer",
@@ -32818,27 +32812,27 @@ function ek({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
]
});
}
-function Goe() {
+function Voe() {
let e = Nn({
- queryKey: lc,
- queryFn: ({ signal: e }) => mc(e)
- }), [t, n] = (0, R.useState)([]), r = VO({
- queryKey: dc,
- queryFn: ({ signal: e }) => _c(e),
- start: vc,
+ queryKey: cc,
+ queryFn: ({ signal: e }) => pc(e)
+ }), [t, n] = (0, R.useState)([]), r = WO({
+ queryKey: uc,
+ queryFn: ({ signal: e }) => gc(e),
+ start: _c,
onFinish: () => {
q.invalidateQueries({
- queryKey: lc,
+ queryKey: cc,
exact: !0
}), q.invalidateQueries({
- queryKey: uc,
+ queryKey: lc,
exact: !0
});
}
- }), i = VO({
- queryKey: uc,
- queryFn: ({ signal: e }) => hc(e),
- start: gc,
+ }), i = WO({
+ queryKey: lc,
+ queryFn: ({ signal: e }) => mc(e),
+ start: hc,
onStarted: () => {
r.dismiss(), n([]);
}
@@ -32868,7 +32862,7 @@ function Goe() {
else if (_) x = /* @__PURE__ */ (0, z.jsx)(G, {
tone: "success",
title: "完成",
- children: bc(_)
+ children: yc(_)
});
else if (v) x = /* @__PURE__ */ (0, z.jsx)(G, {
tone: "error",
@@ -32878,7 +32872,7 @@ function Goe() {
else if (i.query.isError && a) x = /* @__PURE__ */ (0, z.jsx)(G, {
tone: "neutral",
title: "任务状态",
- children: ZO
+ children: ek
});
else if (a?.status === "failed") x = /* @__PURE__ */ (0, z.jsx)(G, {
tone: "error",
@@ -32886,12 +32880,12 @@ function Goe() {
children: a.error || "检查失败"
});
else if (a && a.status !== "idle") {
- b = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, z.jsx)(yO, {
+ b = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, z.jsx)(SO, {
embedded: !0,
- label: xc(a),
+ label: bc(a),
value: a.checked,
total: a.total
- }) : null, c ? /* @__PURE__ */ (0, z.jsx)(yO, {
+ }) : null, c ? /* @__PURE__ */ (0, z.jsx)(SO, {
embedded: !0,
label: r.job?.message || "正在重验并删除失效链接…",
value: r.job?.checked,
@@ -32899,38 +32893,38 @@ function Goe() {
}) : null] });
let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";
x = l || u.length || d.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
- className: Soe,
+ className: voe,
children: [
- /* @__PURE__ */ (0, z.jsx)(ek, {
+ /* @__PURE__ */ (0, z.jsx)(rk, {
title: "地址已失效",
items: u,
- hint: Hoe
+ hint: Roe
}),
- /* @__PURE__ */ (0, z.jsx)(ek, {
+ /* @__PURE__ */ (0, z.jsx)(rk, {
title: "本次未访问成功",
items: d,
- hint: Uoe,
+ hint: zoe,
picked: f.length ? t : void 0,
onPick: f.length ? n : void 0,
children: f.length ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "-mx-4 mt-3 -mb-4",
- children: /* @__PURE__ */ (0, z.jsxs)(dO, { children: [/* @__PURE__ */ (0, z.jsx)(H, {
- leadingIcon: XO,
+ children: /* @__PURE__ */ (0, z.jsxs)(mO, { children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ leadingIcon: $O,
disabled: !t.length,
...K(s),
onClick: () => h(t),
children: e
}), /* @__PURE__ */ (0, z.jsx)(H, {
- leadingIcon: XO,
+ leadingIcon: $O,
...K(s),
onClick: () => h(f.map((e) => e.id)),
children: `全部重试(${f.length})`
})] })
}) : null
}),
- l && u.length ? /* @__PURE__ */ (0, z.jsx)(dO, {
+ l && u.length ? /* @__PURE__ */ (0, z.jsx)(mO, {
tone: "error",
- status: Woe,
+ status: Boe,
children: /* @__PURE__ */ (0, z.jsx)(H, {
variant: "danger",
...K(c),
@@ -32939,7 +32933,7 @@ function Goe() {
})
}) : null,
l && !u.length && !d.length ? /* @__PURE__ */ (0, z.jsx)("p", {
- className: `${uO} text-body-regular text-notification-success-foreground`,
+ className: `${pO} text-body-regular text-notification-success-foreground`,
children: "全部链接均可访问。"
}) : null
]
@@ -32950,21 +32944,21 @@ function Goe() {
"aria-labelledby": "link-manager-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, z.jsx)(fO, {
+ /* @__PURE__ */ (0, z.jsx)(hO, {
id: "link-manager-title",
children: "链接管理"
}),
- /* @__PURE__ */ (0, z.jsxs)(mO, {
+ /* @__PURE__ */ (0, z.jsxs)(_O, {
layout: "stack",
labelledBy: "link-manager-box",
footer: /* @__PURE__ */ (0, z.jsx)(H, {
- leadingIcon: Voe,
+ leadingIcon: Loe,
...K(s),
onClick: () => h(),
children: s ? "检查中" : l ? "重新检查" : "检查死链"
}),
children: [
- /* @__PURE__ */ (0, z.jsx)(pO, {
+ /* @__PURE__ */ (0, z.jsx)(gO, {
id: "link-manager-box",
gap: "small",
children: "站外链接"
@@ -32975,13 +32969,13 @@ function Goe() {
children: U(e.error)
}) : p ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "link-stat-grid mt-4 gap-x-8 gap-y-3",
- children: [/* @__PURE__ */ (0, z.jsx)($O, {
+ children: [/* @__PURE__ */ (0, z.jsx)(nk, {
label: "链接总数",
- value: QO(p.total),
- note: `分布在 ${QO(p.entities)} 个女优、厂牌与系列`
- }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, z.jsx)($O, {
- label: fc[e] || e,
- value: QO(t)
+ value: tk(p.total),
+ note: `分布在 ${tk(p.entities)} 个女优、厂牌与系列`
+ }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(nk, {
+ label: dc[e] || e,
+ value: tk(t)
}, e))]
}), m ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: "mt-4 flex min-w-0 flex-col gap-0.5",
@@ -33010,8 +33004,8 @@ function Goe() {
}
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function Koe({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, z.jsxs)(wm, {
+function Hoe({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, z.jsxs)(Cm, {
"data-label": "true",
...a,
className: gi("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
@@ -33031,8 +33025,8 @@ function Koe({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function qoe({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, z.jsx)(Bm, {
+function Uoe({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, z.jsx)(zm, {
slot: e ? "errorMessage" : "description",
...n,
className: gi("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
@@ -33040,15 +33034,15 @@ function qoe({ isInvalid: e = !1, className: t, ...n }) {
}
//#endregion
//#region src/react/boardui/components/base/input/input.tsx
-var tk = (0, R.createContext)({});
-function nk({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, z.jsx)(tk.Provider, {
+var ik = (0, R.createContext)({});
+function ak({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, z.jsx)(ik.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, z.jsx)(LS, {
+ children: /* @__PURE__ */ (0, z.jsx)(BS, {
...a,
"data-input-size": e,
className: gi("group flex h-max w-full flex-col items-start gap-1", r),
@@ -33056,8 +33050,8 @@ function nk({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
})
});
}
-nk.displayName = "TextField";
-var rk = _i({
+ak.displayName = "TextField";
+var ok = _i({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -33086,44 +33080,44 @@ var rk = _i({
].join(" "),
icon: "size-5 shrink-0"
});
-function ik({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, R.useContext)(tk), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, z.jsx)(Ph, {
+function sk({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, R.useContext)(ik), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, z.jsx)(Nh, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => gi(rk.field, d ? rk.fieldWithAddonSize[u] : rk.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 }) => gi(ok.field, d ? ok.fieldWithAddonSize[u] : ok.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
children: /* @__PURE__ */ (0, z.jsxs)("div", {
- className: rk.content,
+ className: ok.content,
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
- className: rk.leftSection,
+ className: ok.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, z.jsx)(t, {
- className: rk.icon,
+ className: ok.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, z.jsx)(Lh, {
+ }) : null, /* @__PURE__ */ (0, z.jsx)(Ih, {
ref: o,
...c,
- className: gi(rk.input, l.inputClassName, a)
+ className: gi(ok.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, z.jsx)(n, {
- className: rk.icon,
+ className: ok.icon,
"aria-hidden": !0
}) : null]
})
});
}
-ik.displayName = "InputBase";
-function ak({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
- return /* @__PURE__ */ (0, z.jsx)(nk, {
+sk.displayName = "InputBase";
+function ck({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
+ return /* @__PURE__ */ (0, z.jsx)(ak, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- e && /* @__PURE__ */ (0, z.jsx)(Koe, {
+ e && /* @__PURE__ */ (0, z.jsx)(Hoe, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, z.jsx)(ik, {
+ /* @__PURE__ */ (0, z.jsx)(sk, {
ref: c,
groupRef: l,
placeholder: r,
@@ -33132,28 +33126,28 @@ function ak({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, z.jsx)(qoe, {
+ t && /* @__PURE__ */ (0, z.jsx)(Uoe, {
isInvalid: d,
children: t
})
] })
});
}
-ak.displayName = "Input";
+ck.displayName = "Input";
//#endregion
//#region src/react/data-cleanup/organize-card.tsx
-var ok = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, sk = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", ck = 8;
-function lk({ plan: e }) {
+var Woe = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Goe = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Koe = 8;
+function qoe({ plan: e }) {
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("ol", {
className: "mt-2 flex min-w-0 flex-col gap-1",
- children: e.rows.slice(0, ck).map((e) => /* @__PURE__ */ (0, z.jsxs)("li", {
+ children: e.rows.slice(0, Koe).map((e) => /* @__PURE__ */ (0, z.jsxs)("li", {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, z.jsx)("span", {
"data-middle-truncate": !0,
title: e.current_path,
className: "min-w-0 truncate",
- children: Fc(e.current_path)
+ children: Pc(e.current_path)
}),
/* @__PURE__ */ (0, z.jsx)("span", {
"aria-hidden": !0,
@@ -33163,7 +33157,7 @@ function lk({ plan: e }) {
"data-middle-truncate": !0,
title: e.target_path,
className: "min-w-0 truncate text-text-primary",
- children: Fc(e.target_path)
+ children: Pc(e.target_path)
})
]
}, e.current_path))
@@ -33172,10 +33166,10 @@ function lk({ plan: e }) {
children: "只列出前 8 行,完整计划在计划 CSV 里。"
}) : null] });
}
-function uk({ toast: t, failure: n }) {
+function Joe({ toast: t, failure: n }) {
let r = Nn({
- queryKey: Dc,
- queryFn: ({ signal: e }) => Oc(e)
+ queryKey: Ec,
+ queryFn: ({ signal: e }) => Dc(e)
}), i = r.data, a = i?.locations ?? [], [o, s] = (0, R.useState)(""), c = a.some((e) => e.location === o) ? o : a[0]?.location ?? "", l = i?.templates?.[c], [u, d] = (0, R.useState)(null), f = u?.location === c ? u : {
location: c,
file: l?.file ?? "",
@@ -33188,8 +33182,8 @@ function uk({ toast: t, failure: n }) {
file_template: f.file.trim(),
dir_template: f.dir.trim()
}), x = Pn({
- mutationFn: Ac,
- onSuccess: (e, t) => void Mc({
+ mutationFn: kc,
+ onSuccess: (e, t) => void jc({
...i?.templates ?? {},
[t.location]: {
file: t.file_template,
@@ -33197,29 +33191,29 @@ function uk({ toast: t, failure: n }) {
}
}),
onError: (e) => {
- let t = Pc.test(U(e)) ? "dir" : "file";
+ let t = Nc.test(U(e)) ? "dir" : "file";
h(t), (t === "dir" ? v : g).current?.focus();
}
- }), S = VO({
- queryKey: Dc,
- queryFn: ({ signal: e }) => Oc(e),
- start: jc,
+ }), S = WO({
+ queryKey: Ec,
+ queryFn: ({ signal: e }) => Dc(e),
+ start: Ac,
jobOf: (e) => e,
- withJob: Nc,
+ withJob: Mc,
onStarted: () => x.reset(),
onFinish: (e) => {
if (q.invalidateQueries({
- queryKey: Dc,
+ queryKey: Ec,
exact: !0
}), e.status !== "complete") return;
- let { text: r, failed: i } = Rc(e);
+ let { text: r, failed: i } = Lc(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 || (h(null), x.mutate(b()));
}, k = () => void y({
title: "按模板整理文件",
- body: ok(E),
+ body: Woe(E),
confirmLabel: "整理文件",
onConfirm: () => S.start.mutateAsync({
kind: "apply",
@@ -33227,13 +33221,13 @@ function uk({ toast: t, failure: n }) {
})
}), A = () => void y({
title: "回滚上一批整理",
- body: sk,
+ body: Goe,
confirmLabel: "回滚整理",
onConfirm: () => S.start.mutateAsync({ kind: "rollback" })
}), j = null, M = S.job, N = S.outcome;
if (M?.status === "running") {
let e = M.message || M.stage || "正在整理文件…";
- j = /* @__PURE__ */ (0, z.jsx)(yO, {
+ j = /* @__PURE__ */ (0, z.jsx)(SO, {
embedded: !0,
label: e,
value: M.checked,
@@ -33245,7 +33239,7 @@ function uk({ toast: t, failure: n }) {
children: N.error || "请查看任务记录,核对已处理的文件。"
});
else if (N) {
- let { text: e, failed: t } = Rc(N);
+ let { text: e, failed: t } = Lc(N);
j = /* @__PURE__ */ (0, z.jsx)(G, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "整理结果",
@@ -33255,7 +33249,7 @@ function uk({ toast: t, failure: n }) {
tone: "error",
title: "整理失败",
children: U(S.start.error)
- }) : x.isPending ? j = /* @__PURE__ */ (0, z.jsx)(yO, {
+ }) : x.isPending ? j = /* @__PURE__ */ (0, z.jsx)(SO, {
embedded: !0,
label: "正在按模板算计划…"
}) : x.isError ? j = /* @__PURE__ */ (0, z.jsx)(G, {
@@ -33265,9 +33259,9 @@ function uk({ toast: t, failure: n }) {
}) : w && (j = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(G, {
tone: "neutral",
title: "预览结果",
- children: Lc(w)
- }), T ? /* @__PURE__ */ (0, z.jsx)(lk, { plan: w }) : null] }));
- return /* @__PURE__ */ (0, z.jsxs)(mO, {
+ children: Ic(w)
+ }), T ? /* @__PURE__ */ (0, z.jsx)(qoe, { plan: w }) : null] }));
+ return /* @__PURE__ */ (0, z.jsxs)(_O, {
layout: "stack",
id: "organize",
labelledBy: "cleanup-organize-title",
@@ -33291,7 +33285,7 @@ function uk({ toast: t, failure: n }) {
}) : null
] }),
children: [
- /* @__PURE__ */ (0, z.jsx)(pO, {
+ /* @__PURE__ */ (0, z.jsx)(gO, {
id: "cleanup-organize-title",
gap: "medium",
children: "整理"
@@ -33311,20 +33305,20 @@ function uk({ toast: t, failure: n }) {
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "mt-3 flex flex-col gap-3",
children: [
- a.length ? /* @__PURE__ */ (0, z.jsx)(LO, {
+ a.length ? /* @__PURE__ */ (0, z.jsx)(BO, {
"aria-label": "整理哪个来源",
className: "w-fit min-w-25",
selectedKey: c || null,
onSelectionChange: (e) => {
e !== null && (s(String(e)), h(null), x.reset());
},
- children: a.map((t) => /* @__PURE__ */ (0, z.jsxs)(RO, {
+ children: a.map((t) => /* @__PURE__ */ (0, z.jsxs)(VO, {
id: t.location,
textValue: e[t.location] || t.location,
- children: [/* @__PURE__ */ (0, z.jsx)(NO, { mark: _[t.location] || "database" }), e[t.location] || t.location]
+ children: [/* @__PURE__ */ (0, z.jsx)(IO, { mark: _[t.location] || "database" }), e[t.location] || t.location]
}, t.location))
}) : null,
- /* @__PURE__ */ (0, z.jsx)(ak, {
+ /* @__PURE__ */ (0, z.jsx)(ck, {
label: "文件名模板",
placeholder: "{number}[ {title}]",
value: f.file,
@@ -33335,7 +33329,7 @@ function uk({ toast: t, failure: n }) {
p({ file: e }), h(null);
}
}),
- /* @__PURE__ */ (0, z.jsx)(ak, {
+ /* @__PURE__ */ (0, z.jsx)(ck, {
label: "目录模板",
placeholder: "留空表示原地改名",
value: f.dir,
@@ -33375,91 +33369,91 @@ function uk({ toast: t, failure: n }) {
}
//#endregion
//#region src/react/data-cleanup/resource-sync-card.tsx
-var dk = oo("git-compare"), fk = oo("rotate-cw"), pk = "暂时无法读取进度,正在重新连接…", mk = "清理失效条目", hk = "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", gk = (e) => Number(e || 0).toLocaleString();
-function Joe({ scan: e }) {
+var lk = oo("git-compare"), uk = oo("rotate-cw"), dk = "暂时无法读取进度,正在重新连接…", fk = "清理失效条目", pk = "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", mk = (e) => Number(e || 0).toLocaleString();
+function Yoe({ scan: e }) {
let t = e.cache ?? {
files: 0,
bytes: 0
};
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("div", {
- className: hk,
+ className: pk,
children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, z.jsx)("article", {
- className: wl(),
- children: /* @__PURE__ */ (0, z.jsx)(El, {
- label: Xc[e.location] || "媒体来源",
- mark: /* @__PURE__ */ (0, z.jsx)(NO, { mark: _[e.location] ?? "database" }),
+ className: Cl(),
+ children: /* @__PURE__ */ (0, z.jsx)(Tl, {
+ label: Yc[e.location] || "媒体来源",
+ mark: /* @__PURE__ */ (0, z.jsx)(IO, { mark: _[e.location] ?? "database" }),
aside: /* @__PURE__ */ (0, z.jsx)("span", {
className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",
children: e.online ? "可访问" : "离线,已跳过"
}),
- figure: e.online ? `${gk(e.missing)} 项` : "—",
- meta: tl(e),
+ figure: e.online ? `${mk(e.missing)} 项` : "—",
+ meta: el(e),
wrapMeta: !0
})
}, e.location))
}), /* @__PURE__ */ (0, z.jsxs)("div", {
- className: hk,
+ className: pk,
children: [
/* @__PURE__ */ (0, z.jsx)("article", {
- className: wl(),
- children: /* @__PURE__ */ (0, z.jsx)(El, {
+ className: Cl(),
+ children: /* @__PURE__ */ (0, z.jsx)(Tl, {
label: "待永久删除",
- figure: `${gk(e.missing)} 项`,
+ figure: `${mk(e.missing)} 项`,
meta: "文件已不在盘上,含回收站"
})
}),
/* @__PURE__ */ (0, z.jsx)("article", {
- className: wl(),
- children: /* @__PURE__ */ (0, z.jsx)(El, {
+ className: Cl(),
+ children: /* @__PURE__ */ (0, z.jsx)(Tl, {
label: "空文件夹",
- figure: `${gk(e.empty)} 个`,
+ figure: `${mk(e.empty)} 个`,
meta: "保留来源根目录"
})
}),
/* @__PURE__ */ (0, z.jsx)("article", {
- className: wl(),
- children: /* @__PURE__ */ (0, z.jsx)(El, {
+ className: Cl(),
+ children: /* @__PURE__ */ (0, z.jsx)(Tl, {
label: "可清理的缓存",
- figure: `${gk(t.files)} 个`,
+ figure: `${mk(t.files)} 个`,
meta: t.files ? s(t.bytes) : ""
})
})
]
})] });
}
-function Yoe({ toast: e }) {
- let t = VO({
- queryKey: Hc,
- queryFn: ({ signal: e }) => Gc(e),
- start: Kc,
+function Xoe({ toast: e }) {
+ let t = WO({
+ queryKey: Vc,
+ queryFn: ({ signal: e }) => Wc(e),
+ start: Gc,
onFinish: (t) => {
if (q.invalidateQueries({
- queryKey: ll,
+ queryKey: cl,
exact: !0
}), q.invalidateQueries({
- queryKey: Vc,
+ queryKey: Bc,
exact: !0
}), t.status !== "complete") return;
- let { done: n, left: r } = nl(t);
- r ? e(`已完成 ${gk(n)} 项,${gk(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
+ let { done: n, left: r } = tl(t);
+ r ? e(`已完成 ${mk(n)} 项,${mk(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
- }), n = VO({
- queryKey: Vc,
- queryFn: ({ signal: e }) => Uc(e),
- start: Wc,
+ }), n = WO({
+ queryKey: Bc,
+ queryFn: ({ signal: e }) => Hc(e),
+ start: Uc,
onStarted: () => t.dismiss()
}), r = n.job, i = n.running || n.start.isPending, a = t.running || t.start.isPending, o = r?.status === "complete" || r?.status === "failed", c = i ? "扫描中" : o ? "重新扫描" : "检查文件", l = (e) => void y({
- title: mk,
- body: el(e),
- confirmLabel: mk,
+ title: fk,
+ body: $c(e),
+ confirmLabel: fk,
danger: !0,
onConfirm: () => t.start.mutateAsync(e.scan_id || "")
}), u = t.outcome, d = (e) => {
- let t = nl(e).left > 0;
+ let t = tl(e).left > 0;
return /* @__PURE__ */ (0, z.jsx)(G, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "清理结果",
- children: rl(e, s)
+ children: nl(e, s)
});
}, f = null, p = null;
if (u?.status === "failed") p = /* @__PURE__ */ (0, z.jsx)(G, {
@@ -33468,7 +33462,7 @@ function Yoe({ toast: e }) {
children: u.error || "请查看任务记录,核对已处理的文件。"
});
else if (u) p = d(u);
- else if (t.running) f = /* @__PURE__ */ (0, z.jsx)(yO, {
+ else if (t.running) f = /* @__PURE__ */ (0, z.jsx)(SO, {
embedded: !0,
label: t.job?.message || "正在复核并清理失效条目…"
});
@@ -33480,11 +33474,11 @@ function Yoe({ toast: e }) {
else if (n.query.isError && r) p = /* @__PURE__ */ (0, z.jsx)(G, {
tone: "neutral",
title: "任务状态",
- children: pk
+ children: dk
});
else if (r?.status === "running") {
- let e = Qc(r);
- f = /* @__PURE__ */ (0, z.jsx)(yO, {
+ let e = Zc(r);
+ f = /* @__PURE__ */ (0, z.jsx)(SO, {
embedded: !0,
label: e,
value: r.completed_sources,
@@ -33501,13 +33495,13 @@ function Yoe({ toast: e }) {
children: "这次检查的结果已经清理,重新扫描可再核对。"
});
else if (r?.status === "complete") {
- let e = Yc(r);
+ let e = Jc(r);
p = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)(Joe, { scan: r }),
+ /* @__PURE__ */ (0, z.jsx)(Yoe, { scan: r }),
e ? /* @__PURE__ */ (0, z.jsx)(G, {
tone: "neutral",
title: "清理内容",
- children: $c(r)
+ children: Qc(r)
}) : null,
/* @__PURE__ */ (0, z.jsx)("div", {
className: "flex flex-wrap items-center justify-end gap-2",
@@ -33515,7 +33509,7 @@ function Yoe({ toast: e }) {
variant: "danger",
...K(a),
onClick: () => l(r),
- children: a ? "正在复核并清理…" : mk
+ children: a ? "正在复核并清理…" : fk
}) : /* @__PURE__ */ (0, z.jsx)("p", {
className: "mr-auto text-body-regular text-notification-success-foreground",
children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"
@@ -33532,16 +33526,16 @@ function Yoe({ toast: e }) {
"aria-labelledby": "resource-sync-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, z.jsx)(fO, {
+ /* @__PURE__ */ (0, z.jsx)(hO, {
id: "resource-sync-title",
children: "资源同步"
}),
- /* @__PURE__ */ (0, z.jsxs)(mO, {
+ /* @__PURE__ */ (0, z.jsxs)(_O, {
layout: "split",
labelledBy: "resource-sync-box",
footer: /* @__PURE__ */ (0, z.jsx)(H, {
"data-resource-scan": !0,
- leadingIcon: o && !i ? fk : dk,
+ leadingIcon: o && !i ? uk : lk,
...K(i),
onClick: () => {
i || n.start.mutate();
@@ -33549,7 +33543,7 @@ function Yoe({ toast: e }) {
children: c
}),
children: [
- /* @__PURE__ */ (0, z.jsx)(pO, {
+ /* @__PURE__ */ (0, z.jsx)(gO, {
id: "resource-sync-box",
gap: "small",
children: "文件与记录核对"
@@ -33575,16 +33569,16 @@ function Yoe({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/data-cleanup-page.tsx
-function _k(e, t) {
+function hk(e, t) {
return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);
}
-function vk({ section: e, label: t, icon: n, value: r, open: i }) {
+function gk({ section: e, label: t, icon: n, value: r, open: i }) {
return /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
- className: wl({ interactive: !0 }),
+ className: Cl({ interactive: !0 }),
"data-cleanup-go": e,
onClick: () => i(e),
- children: /* @__PURE__ */ (0, z.jsx)(El, {
+ children: /* @__PURE__ */ (0, z.jsx)(Tl, {
label: t,
icon: n,
figure: r.figure,
@@ -33592,80 +33586,80 @@ function vk({ section: e, label: t, icon: n, value: r, open: i }) {
})
});
}
-var Xoe = oo("square-check-big"), Zoe = oo("sparkles"), Qoe = oo("file-stack"), $oe = oo("file-archive"), ese = oo("trash"), tse = [
- al,
- ys,
- Fo
-], nse = () => {
- for (let e of tse) q.invalidateQueries({
+var Zoe = oo("square-check-big"), Qoe = oo("sparkles"), $oe = oo("file-stack"), ese = oo("file-archive"), tse = oo("trash"), nse = [
+ il,
+ vs,
+ Po
+], rse = () => {
+ for (let e of nse) q.invalidateQueries({
queryKey: e,
exact: !0
});
};
-function rse({ toast: e, failure: t, open: n }) {
+function ise({ toast: e, failure: t, open: n }) {
let r = Nn({
- queryKey: al,
- queryFn: ({ signal: e }) => dl(e)
+ queryKey: il,
+ queryFn: ({ signal: e }) => ul(e)
}), i = Nn({
- queryKey: ys,
- queryFn: ({ signal: e }) => bs(e)
+ queryKey: vs,
+ queryFn: ({ signal: e }) => ys(e)
}), a = Nn({
- queryKey: Fo,
- queryFn: ({ signal: e }) => Lo(e)
+ queryKey: Po,
+ queryFn: ({ signal: e }) => Io(e)
}), o = Nn({
- queryKey: sl,
- queryFn: ({ signal: e }) => fl(e)
+ queryKey: ol,
+ queryFn: ({ signal: e }) => dl(e)
}), c = Nn({
- queryKey: ll,
- queryFn: ({ signal: e }) => pl(e)
+ queryKey: cl,
+ queryFn: ({ signal: e }) => fl(e)
}), l = Nn({
- queryKey: ko,
- queryFn: ({ signal: e }) => Ao(e)
+ queryKey: Oo,
+ queryFn: ({ signal: e }) => ko(e)
}), u = (t) => e(t);
return /* @__PURE__ */ (0, z.jsxs)(Ii, { children: [
/* @__PURE__ */ (0, z.jsxs)("div", {
- className: Tl,
+ className: wl,
children: [
- /* @__PURE__ */ (0, z.jsx)(vk, {
+ /* @__PURE__ */ (0, z.jsx)(gk, {
section: "review",
label: "人工复核",
- icon: Xoe,
+ icon: Zoe,
open: n,
- value: _k(r, hl)
+ value: hk(r, ml)
}),
- /* @__PURE__ */ (0, z.jsx)(vk, {
+ /* @__PURE__ */ (0, z.jsx)(gk, {
section: "quality",
label: "高清版",
- icon: Zoe,
+ icon: Qoe,
open: n,
- value: _k(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
+ value: hk(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
}),
- /* @__PURE__ */ (0, z.jsx)(vk, {
+ /* @__PURE__ */ (0, z.jsx)(gk, {
section: "duplicates",
label: "重复文件",
- icon: Qoe,
+ icon: $oe,
open: n,
- value: _k(a, (e) => Number(e.total || 0) ? {
+ value: hk(a, (e) => Number(e.total || 0) ? {
figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,
meta: `可回收 ${s(e.reclaimable || 0)}`
} : { figure: "没有重复内容" })
}),
- /* @__PURE__ */ (0, z.jsx)(vk, {
+ /* @__PURE__ */ (0, z.jsx)(gk, {
section: "ads",
label: "垃圾文件",
- icon: $oe,
+ icon: ese,
open: n,
- value: _k(o, (e) => ({
+ value: hk(o, (e) => ({
figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,
- meta: gl(e)
+ meta: hl(e)
}))
}),
- /* @__PURE__ */ (0, z.jsx)(vk, {
+ /* @__PURE__ */ (0, z.jsx)(gk, {
section: "trash",
label: "回收站",
- icon: ese,
+ icon: tse,
open: n,
- value: _k(c, (e) => ({
+ value: hk(c, (e) => ({
figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,
meta: e.total ? `占用 ${s(e.bytes || 0)}` : ""
}))
@@ -33678,29 +33672,29 @@ function rse({ toast: e, failure: t, open: n }) {
/* @__PURE__ */ (0, z.jsx)("div", {
id: "libraryProcessing",
className: "scroll-mt-20",
- children: /* @__PURE__ */ (0, z.jsx)(FO, {
+ children: /* @__PURE__ */ (0, z.jsx)(RO, {
toast: u,
monitor: !0,
- onComplete: nse
+ onComplete: rse
})
}),
/* @__PURE__ */ (0, z.jsx)("div", {
id: "mediaRepair",
- children: /* @__PURE__ */ (0, z.jsx)(Boe, {})
+ children: /* @__PURE__ */ (0, z.jsx)(Ioe, {})
}),
- /* @__PURE__ */ (0, z.jsx)(uk, {
+ /* @__PURE__ */ (0, z.jsx)(Joe, {
toast: u,
failure: t
})
]
}),
- /* @__PURE__ */ (0, z.jsx)(Goe, {}),
- qc(l.data) ? /* @__PURE__ */ (0, z.jsx)(Yoe, { toast: e }) : null
+ /* @__PURE__ */ (0, z.jsx)(Voe, {}),
+ Kc(l.data) ? /* @__PURE__ */ (0, z.jsx)(Xoe, { toast: e }) : null
] });
}
//#endregion
//#region src/react/components/collection-summary.tsx
-function yk({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function _k({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-collection-summary": "",
className: `${i ? "" : "mb-5 "}flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5
@@ -33727,7 +33721,7 @@ function yk({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
}
//#endregion
//#region src/react/components/use-stuck.ts
-function bk(e) {
+function vk(e) {
(0, R.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -33745,9 +33739,9 @@ function bk(e) {
}
//#endregion
//#region src/react/components/filter-glass.tsx
-function ise({ title: e, children: t }) {
+function ase({ title: e, children: t }) {
let n = (0, R.useRef)(null);
- return bk(n), /* @__PURE__ */ (0, z.jsxs)("div", {
+ return vk(n), /* @__PURE__ */ (0, z.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -33760,9 +33754,9 @@ function ise({ title: e, children: t }) {
}), t]
});
}
-function xk({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+function yk({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
let d = (0, R.useRef)(null);
- return bk(d), /* @__PURE__ */ (0, z.jsxs)("div", {
+ return vk(d), /* @__PURE__ */ (0, z.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
@@ -33789,22 +33783,22 @@ function xk({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
]
});
}
-var ase = "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 Sk({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var ose = "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 bk({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: gi(ase, r),
+ className: gi(ose, r),
onClick: n,
children: e
});
}
-var ose = "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 Ck({ children: e, onPress: t, busy: n = !1 }) {
+var sse = "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 xk({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
- className: ose,
+ className: sse,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -33815,29 +33809,29 @@ function Ck({ children: e, onPress: t, busy: n = !1 }) {
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var sse = oo("play"), cse = oo("file-stack"), lse = Mi({
+var cse = oo("play"), lse = oo("file-stack"), use = Mi({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
-}), wk = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", Tk = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", Ek = "font-mono text-caption-1-regular leading-5 text-text-secondary", Dk = () => {
+}), Sk = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", Ck = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", wk = "font-mono text-caption-1-regular leading-5 text-text-secondary", Tk = () => {
q.invalidateQueries({
- queryKey: Fo,
+ queryKey: Po,
exact: !0
}), q.invalidateQueries({
- queryKey: ll,
+ queryKey: cl,
exact: !0
});
};
-function use(e) {
+function dse(e) {
return e.identical ? /* @__PURE__ */ (0, z.jsx)("span", {
- className: `${Tk} text-(--keep)`,
+ className: `${Ck} text-(--keep)`,
children: "sha1 一致"
}) : /* @__PURE__ */ (0, z.jsx)("span", {
- className: `${Tk} text-text-secondary`,
+ className: `${Ck} text-text-secondary`,
children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"
});
}
-function dse({ file: t, openItem: n }) {
+function fse({ file: t, openItem: n }) {
let r = () => n(t.id);
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",
@@ -33847,7 +33841,7 @@ function dse({ 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, z.jsx)(sse, {
+ children: [/* @__PURE__ */ (0, z.jsx)(cse, {
"aria-hidden": !0,
className: "size-6"
}), /* @__PURE__ */ (0, z.jsx)("img", {
@@ -33871,55 +33865,55 @@ function dse({ file: t, openItem: n }) {
}), t.is_largest || t.is_longest ? /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex flex-none gap-1",
children: [t.is_largest ? /* @__PURE__ */ (0, z.jsx)("i", {
- className: `${wk} not-italic bg-background-primary-hover text-text-secondary`,
+ className: `${Sk} not-italic bg-background-primary-hover text-text-secondary`,
children: "最大"
}) : null, t.is_longest ? /* @__PURE__ */ (0, z.jsx)("i", {
- className: `${wk} not-italic bg-(--keep)/22 text-(--keep)`,
+ className: `${Sk} not-italic bg-(--keep)/22 text-(--keep)`,
children: "最长"
}) : null]
}) : null]
}),
/* @__PURE__ */ (0, z.jsxs)("span", {
- className: `${Ek} flex min-w-0 items-center gap-1.5`,
- children: [/* @__PURE__ */ (0, z.jsx)(NO, { mark: _[t.location] || "database" }), /* @__PURE__ */ (0, z.jsx)("span", {
+ className: `${wk} flex min-w-0 items-center gap-1.5`,
+ children: [/* @__PURE__ */ (0, z.jsx)(IO, { mark: _[t.location] || "database" }), /* @__PURE__ */ (0, z.jsx)("span", {
className: "whitespace-nowrap",
children: e[t.location] || t.location || t.drive
})]
}),
/* @__PURE__ */ (0, z.jsx)("span", {
- className: Ek,
+ className: wk,
children: s(t.size || 0)
}),
/* @__PURE__ */ (0, z.jsx)("span", {
- className: Ek,
+ className: wk,
children: o(t.duration)
}),
/* @__PURE__ */ (0, z.jsx)("span", {
"data-middle-truncate": !0,
title: t.path ?? "",
- className: `${Ek} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
+ className: `${wk} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
children: t.path ?? ""
})
]
});
}
-function fse({ openItem: t, toast: n, failure: r }) {
+function pse({ openItem: t, toast: n, failure: r }) {
let i = Nn({
- queryKey: Fo,
- queryFn: ({ signal: e }) => Lo(e)
+ queryKey: Po,
+ queryFn: ({ signal: e }) => Io(e)
}), a = Nn({
- queryKey: ko,
- queryFn: ({ signal: e }) => Ao(e)
+ queryKey: Oo,
+ queryFn: ({ signal: e }) => ko(e)
}), [o, c] = (0, R.useState)(""), l = Pn({
- mutationFn: (e) => Go(e, "dispose"),
+ mutationFn: (e) => Wo(e, "dispose"),
onSuccess: (e, t) => {
- Dk(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {
+ Tk(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {
try {
- await Go(t, "restore");
+ await Wo(t, "restore");
} catch (e) {
r("撤销移入回收站", e);
} finally {
- Dk();
+ Tk();
}
} });
},
@@ -33933,12 +33927,12 @@ function fse({ openItem: t, toast: n, failure: r }) {
children: i.error ? U(i.error) : "未取得重复文件列表,请刷新页面重试。"
})
});
- let d = u.groups ?? [], f = No(a.data), p = ({ groups: e, keep: t, key: n }) => {
+ let d = u.groups ?? [], f = Mo(a.data), p = ({ groups: e, keep: t, key: n }) => {
if (l.isPending) return;
- let r = Uo(e, t);
+ let r = Ho(e, t);
r.length && y({
title: "移入回收站",
- body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${zo[t] ?? zo.largest}。文件共 ${s(Wo(e, r))},记录可从回收站还原。`,
+ body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${Ro[t] ?? Ro.largest}。文件共 ${s(Uo(e, r))},记录可从回收站还原。`,
confirmLabel: "移入回收站",
onConfirm: () => (c(n), l.mutateAsync(r))
});
@@ -33946,15 +33940,15 @@ function fse({ openItem: t, toast: n, failure: r }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "mx-auto w-full max-w-board pb-10.5",
children: [
- /* @__PURE__ */ (0, z.jsx)(yk, {
+ /* @__PURE__ */ (0, z.jsx)(_k, {
label: "重复内容",
figure: `${Number(u.total || 0).toLocaleString()} 组`,
detail: `${u.files} 个文件 · 可回收 ${s(u.reclaimable)}`
}),
- d.length ? /* @__PURE__ */ (0, z.jsxs)(ise, {
+ d.length ? /* @__PURE__ */ (0, z.jsxs)(ase, {
title: "批量保留",
children: [
- /* @__PURE__ */ (0, z.jsx)(Ck, {
+ /* @__PURE__ */ (0, z.jsx)(xk, {
busy: o === "all:largest",
onPress: () => p({
groups: d,
@@ -33963,7 +33957,7 @@ function fse({ openItem: t, toast: n, failure: r }) {
}),
children: "全部保留最大"
}),
- /* @__PURE__ */ (0, z.jsx)(Ck, {
+ /* @__PURE__ */ (0, z.jsx)(xk, {
busy: o === "all:longest",
onPress: () => p({
groups: d,
@@ -33972,7 +33966,7 @@ function fse({ openItem: t, toast: n, failure: r }) {
}),
children: "全部保留最长"
}),
- Ho(d, f).map((t) => /* @__PURE__ */ (0, z.jsx)(Ck, {
+ Vo(d, f).map((t) => /* @__PURE__ */ (0, z.jsx)(xk, {
busy: o === `all:${t}`,
onPress: () => p({
groups: d,
@@ -33995,7 +33989,7 @@ function fse({ openItem: t, toast: n, failure: r }) {
let i = [n], a = (e) => `${r}:${e}`;
return /* @__PURE__ */ (0, z.jsxs)("section", {
"aria-label": n.code,
- className: lse,
+ className: use,
children: [/* @__PURE__ */ (0, z.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: [
@@ -34007,9 +34001,9 @@ function fse({ openItem: t, toast: n, failure: r }) {
className: "font-mono text-caption-1-regular leading-5 text-text-primary",
children: `${n.count} 个 · 可回收 ${s(n.reclaimable)}`
}),
- use(n),
+ dse(n),
n.cross_drive ? /* @__PURE__ */ (0, z.jsx)("span", {
- className: `${Tk} text-text-secondary`,
+ className: `${Ck} text-text-secondary`,
children: `跨盘 ${n.drives.join(" ")}`
}) : null,
/* @__PURE__ */ (0, z.jsxs)("span", {
@@ -34037,7 +34031,7 @@ function fse({ openItem: t, toast: n, failure: r }) {
}),
children: "留最长"
}),
- Vo(n.files, f).map((t) => /* @__PURE__ */ (0, z.jsx)(H, {
+ Bo(n.files, f).map((t) => /* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
size: "small",
...m(a(t)),
@@ -34062,13 +34056,13 @@ function fse({ openItem: t, toast: n, failure: r }) {
]
})
]
- }), /* @__PURE__ */ (0, z.jsx)("div", { children: n.files.map((e) => /* @__PURE__ */ (0, z.jsx)(dse, {
+ }), /* @__PURE__ */ (0, z.jsx)("div", { children: n.files.map((e) => /* @__PURE__ */ (0, z.jsx)(fse, {
file: e,
openItem: t
}, e.id)) })]
}, `${n.code}-${r}`);
}) : /* @__PURE__ */ (0, z.jsx)(Pi, {
- icon: cse,
+ icon: lse,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
})
@@ -34077,43 +34071,43 @@ function fse({ openItem: t, toast: n, failure: r }) {
}
//#endregion
//#region src/react/follow/online-vocab.ts
-var pse = "/api/follow/authors", mse = "/api/follow/tags", hse = (e) => [
+var mse = "/api/follow/authors", hse = "/api/follow/tags", gse = (e) => [
"follow",
"authors",
e
-], gse = (e, t) => [
+], _se = (e, t) => [
"follow",
"tags",
e,
t
];
-function _se(e, t, n) {
+function vse(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${pse}?${r}`;
+ return e && r.set("q", e), `${mse}?${r}`;
}
-function vse(e, t, n, r) {
+function yse(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), `${mse}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${hse}?${i}`;
}
-var yse = (e, t, n, r) => wi(_se(e, t, n), r), bse = (e, t, n, r, i) => wi(vse(e, t, n, r), i), xse = "/api/index", Ok = {
+var bse = (e, t, n, r) => wi(vse(e, t, n), r), xse = (e, t, n, r, i) => wi(yse(e, t, n, r), i), Sse = "/api/index", Ek = {
performers: "艺人",
creators: "创作者",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, kk = {
+}, Cse = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency"
-}, Ak = [
+}, Dk = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -34123,26 +34117,26 @@ var yse = (e, t, n, r) => wi(_se(e, t, n), r), bse = (e, t, n, r, i) => wi(vse(e
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], jk = [
+], Ok = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], Mk = {
+], kk = {
people: 120,
tags: 180
-}, Nk = (e) => e !== "tags", Pk = (e) => e === "studios" || e === "agencies";
-function Fk(e) {
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? jk : Ak).some(([t]) => t === e.category);
+}, Ak = (e) => e !== "tags", jk = (e) => e === "studios" || e === "agencies";
+function Mk(e) {
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? Ok : Dk).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: e.kind === "tags" && n ? e.category : "all"
};
}
-function Ik(e) {
+function Nk(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -34161,50 +34155,50 @@ function Ik(e) {
q: n
};
}
-var Lk = (e, t, n = "all") => [
+var Pk = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" ? [n] : []
];
-function Rk(e, t, n, r, i) {
+function Fk(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), `${xse}?${a}`;
+ return t && a.set("q", t), e === "tags" && n !== "all" && a.set("category", n), `${Sse}?${a}`;
}
-function zk(e) {
- let t = e.what === "people" || e.what === "online-authors" ? Mk.people : Mk.tags, n = {
+function Ik(e) {
+ let t = e.what === "people" || e.what === "online-authors" ? kk.people : kk.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: Lk(e.kind, e.q),
- queryFn: ({ pageParam: n, signal: r }) => wi(Rk(e.kind, e.q, "all", t, n), r)
+ queryKey: Pk(e.kind, e.q),
+ queryFn: ({ pageParam: n, signal: r }) => wi(Fk(e.kind, e.q, "all", t, n), r)
};
case "tags": return {
...n,
- queryKey: Lk("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => wi(Rk("tags", e.q, e.category, t, n), r)
+ queryKey: Pk("tags", e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => wi(Fk("tags", e.q, e.category, t, n), r)
};
case "online-authors": return {
...n,
- queryKey: hse(e.q),
- queryFn: ({ pageParam: n, signal: r }) => yse(e.q, t, n, r)
+ queryKey: gse(e.q),
+ queryFn: ({ pageParam: n, signal: r }) => bse(e.q, t, n, r)
};
case "online-tags": return {
...n,
- queryKey: gse(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => bse(e.q, e.category, t, n, r)
+ queryKey: _se(e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => xse(e.q, e.category, t, n, r)
};
}
}
-async function Bk(e, t) {
- let n = zk(Ik(Fk(e)));
+async function Lk(e, t) {
+ let n = Ik(Nk(Mk(e)));
q.removeQueries({
queryKey: n.queryKey,
exact: !0
@@ -34218,13 +34212,13 @@ async function Bk(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var Vk = (e) => e ? e.pages.flatMap((e) => e.items) : [], Hk = (e, t) => `${e}${t ? "+" : ""} 项`, Uk = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Wk = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), Gk = {
+var Rk = (e) => e ? e.pages.flatMap((e) => e.items) : [], zk = (e, t) => `${e}${t ? "+" : ""} 项`, Bk = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Vk = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), wse = {
numeric: !0,
sensitivity: "base"
};
-function Kk(e, t) {
+function Tse(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Gk))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", wse))) {
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]);
}
@@ -34232,7 +34226,7 @@ function Kk(e, t) {
}
//#endregion
//#region src/react/index/index-people.tsx
-function qk({ html: e, face: t, company: n, big: r }) {
+function Hk({ html: e, face: t, company: n, big: r }) {
let i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -34244,8 +34238,8 @@ function qk({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var Sse = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
-function Jk({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
+var Ese = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
+function Uk({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
return /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
...a,
@@ -34255,7 +34249,7 @@ function Jk({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
radius: "plain",
padding: "none",
interactive: !0,
- className: `${Sse} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${Ese} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -34272,8 +34266,8 @@ function Jk({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
]
});
}
-function Yk({ kind: e, items: t, layout: n, props: r }) {
- let i = kk[e], a = Pk(e), o = n === "big";
+function Wk({ kind: e, items: t, layout: n, props: r }) {
+ let i = Cse[e], a = jk(e), o = n === "big";
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-index-grid": "",
"data-layout": n,
@@ -34281,14 +34275,14 @@ function Yk({ kind: e, items: t, layout: n, props: r }) {
className: `${a ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
let n = r.personAvatar(t, i, o);
- return /* @__PURE__ */ (0, z.jsx)(Jk, {
+ return /* @__PURE__ */ (0, z.jsx)(Uk, {
"data-k": t.k,
"data-kind": i,
name: t.k,
- readout: Wk(e, t),
+ readout: Vk(e, t),
big: o,
onPress: () => r.openEntity(i, t.k),
- children: /* @__PURE__ */ (0, z.jsx)(qk, {
+ children: /* @__PURE__ */ (0, z.jsx)(Hk, {
html: n.html,
face: n.face,
company: a,
@@ -34298,21 +34292,21 @@ function Yk({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function Cse({ items: e, layout: t, props: n }) {
+function Dse({ items: e, layout: t, props: n }) {
let r = t === "big";
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, z.jsx)(Jk, {
+ children: e.map((e) => /* @__PURE__ */ (0, z.jsx)(Uk, {
"data-follow-author": e.key,
"data-kind": "performer",
name: e.k,
readout: `${e.n.toLocaleString()} 项更新`,
big: r,
onPress: () => n.openFollowAuthor(e.key),
- children: /* @__PURE__ */ (0, z.jsx)(qk, {
+ children: /* @__PURE__ */ (0, z.jsx)(Hk, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -34322,7 +34316,7 @@ function Cse({ items: e, layout: t, props: n }) {
}
//#endregion
//#region src/board-controls.ts
-function wse(e) {
+function Ose(e) {
let t = Number(e.min) || 0, n = Number(e.max) || 100, r = Number(e.value), i = n > t ? Math.max(0, Math.min(100, (r - t) / (n - t) * 100)) : 0;
e.style.setProperty("--board-range-value", `${i}%`);
let a = e.closest(".dual-range");
@@ -34334,8 +34328,8 @@ function wse(e) {
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox.ts
-var Xk = "/vendor/swiper/14.2.0/", Zk = null, Tse = () => Zk ??= Promise.all([new Promise((e, t) => {
- let n = `${Xk}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+var Gk = "/vendor/swiper/14.2.0/", Kk = null, kse = () => Kk ??= Promise.all([new Promise((e, t) => {
+ let n = `${Gk}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@ -34349,11 +34343,11 @@ var Xk = "/vendor/swiper/14.2.0/", Zk = null, Tse = () => Zk ??= Promise.all([ne
return;
}
let r = document.createElement("script");
- r.src = `${Xk}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
+ r.src = `${Gk}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
})]).then(([, e]) => e).catch((e) => {
- throw Zk = null, e;
+ throw Kk = null, e;
});
-function Ese(e, t, n) {
+function Ase(e, t, n) {
let r = "fit", i = () => t.slides?.[t.activeIndex]?.querySelector("img"), a = () => {
let e = i();
return !e?.naturalWidth || !e.naturalHeight ? 100 : Math.min(100, e.offsetWidth / e.naturalWidth * 100, e.offsetHeight / e.naturalHeight * 100);
@@ -34374,48 +34368,48 @@ function Ese(e, t, n) {
}
};
}
-var Qk = (e) => {
+var qk = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : s(t)).replace(" ", "\xA0") : "大小未知";
-}, Dse = (e) => e.asset?.name || e.name || "未命名图片";
-function Ose(t, n) {
+}, jse = (e) => e.asset?.name || e.name || "未命名图片";
+function Mse(t, n) {
let r = t.asset;
- if (r) return [e[r.location ?? ""] || r.location || "来源未知", Qk(r.size)].join(" · ");
+ if (r) return [e[r.location ?? ""] || r.location || "来源未知", qk(r.size)].join(" · ");
let i = (t.total ?? 0) > 1 ? `第 ${t.position} / ${t.total} 张` : "", a = n?.[0] && n[1] ? `${n[0]} × ${n[1]}` : "";
return [
t.source || "在线图片",
i,
a,
- t.size ? Qk(t.size) : ""
+ t.size ? qk(t.size) : ""
].filter(Boolean).join(" · ");
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var $k = null, eA = null, kse = 0;
-function Ase() {
- return (!eA || !$k?.isConnected) && (eA?.unmount(), $k = document.createElement("div"), $k.className = "peach-react", $k.dataset.photoLightboxHost = "", document.body.append($k), eA = (0, xe.createRoot)($k)), eA;
+var Jk = null, Yk = null, Nse = 0;
+function Pse() {
+ return (!Yk || !Jk?.isConnected) && (Yk?.unmount(), Jk = document.createElement("div"), Jk.className = "peach-react", Jk.dataset.photoLightboxHost = "", document.body.append(Jk), Yk = (0, xe.createRoot)(Jk)), Yk;
}
-async function tA(e, t, n) {
+async function Xk(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await Tse();
+ r = await kse();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = Ase();
- (0, be.flushSync)(() => i.render(/* @__PURE__ */ (0, z.jsx)(jse, {
+ let i = Pse();
+ (0, be.flushSync)(() => i.render(/* @__PURE__ */ (0, z.jsx)(Fse, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++kse)));
+ }, ++Nse)));
}
-function nA() {
- eA && (0, be.flushSync)(() => eA.render(null));
+function Zk() {
+ Yk && (0, be.flushSync)(() => Yk.render(null));
}
-function jse({ slides: e, index: t, Swiper: n, host: r }) {
+function Fse({ slides: e, index: t, Swiper: n, host: r }) {
let i = e.length > 1, a = (0, R.useId)(), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = (0, R.useRef)(null), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (0, R.useRef)(null), _ = (0, R.useRef)(null), [v, y] = (0, R.useState)(t), [b, x] = (0, R.useState)(100), [S, C] = (0, R.useState)({}), [w, T] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [E, D] = (0, R.useState)(!1), [O, k] = (0, R.useState)({
at: t,
text: ""
@@ -34458,7 +34452,7 @@ function jse({ slides: e, index: t, Swiper: n, host: r }) {
y(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), g.current = Ese(e, a, x);
+ i(t, 0), g.current = Ase(e, a, x);
let l = I(e, p.current, m.current), h = (e = !1) => {
l.hide(), p.current?.setAttribute("aria-expanded", "false"), e && p.current && document.contains(p.current) && p.current.focus();
};
@@ -34475,13 +34469,13 @@ function jse({ slides: e, index: t, Swiper: n, host: r }) {
});
v.observe(e);
let b = (e) => {
- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), _.current?.isOpen() ? _.current.dismiss(!0) : nA());
+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), _.current?.isOpen() ? _.current.dismiss(!0) : Zk());
};
return document.addEventListener("keydown", b, !0), () => {
document.removeEventListener("keydown", b, !0), h(), v.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), g.current = null, _.current = null, e.close(), document.body.classList.remove("photolight-open");
};
}, []), (0, R.useLayoutEffect)(() => {
- h.current && wse(h.current);
+ h.current && Ose(h.current);
}, [b]);
let A = e[v], j = A.asset ?? null, M = async (e) => {
if (!j || !r || e.getAttribute("aria-busy") === "true") return;
@@ -34512,18 +34506,18 @@ function jse({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), nA();
+ e.preventDefault(), Zk();
},
onClick: (e) => {
let t = e.target;
- _.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && nA();
+ _.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && Zk();
},
children: [
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: nA,
+ onClick: Zk,
dangerouslySetInnerHTML: { __html: l("x") }
}),
/* @__PURE__ */ (0, z.jsxs)("div", {
@@ -34656,10 +34650,10 @@ function jse({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: Dse(A)
+ children: jse(A)
}, v), /* @__PURE__ */ (0, z.jsx)("span", {
"data-photo-detail-meta": "",
- children: Ose(A, S[v])
+ children: Mse(A, S[v])
})]
}),
/* @__PURE__ */ (0, z.jsx)("button", {
@@ -34698,33 +34692,33 @@ function jse({ slides: e, index: t, Swiper: n, host: r }) {
}
//#endregion
//#region src/react/entity-body/entity-body-page.tsx
-function Mse(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, z.jsx)(Nse, {
+function Ise(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, z.jsx)(Lse, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, z.jsx)(Pse, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, z.jsx)(Lse, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, z.jsx)(Rse, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, z.jsx)(Vse, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
-function Nse({ roster: e, props: t }) {
+function Lse({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, R.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
}), [n, r]);
- return /* @__PURE__ */ (0, z.jsx)(Yk, {
+ return /* @__PURE__ */ (0, z.jsx)(Wk, {
kind: e.kind,
items: e.people,
layout: e.layout,
props: i
});
}
-function Pse(e) {
+function Rse(e) {
let t = Ra(!e.items, e.skeletonHtml);
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-entity-grid": "",
"data-grid-reveal": t.fading ? "" : void 0,
- children: [t.layer, e.items ? /* @__PURE__ */ (0, z.jsx)(yo, {
+ children: [t.layer, e.items ? /* @__PURE__ */ (0, z.jsx)(vo, {
mode: "entity",
entityKey: `${e.kind}:${e.name}`,
revision: e.revision,
@@ -34744,16 +34738,16 @@ function Pse(e) {
}) : null]
});
}
-var Fse = (e) => Array.from({ length: e.n }, (t, n) => ({
+var zse = (e) => Array.from({ length: e.n }, (t, n) => ({
sample: !0,
code: e.code,
position: n + 1,
total: e.n,
name: `${e.code} 样张 ${n + 1}`,
source: e.site_label || "官方样张"
-})), rA = (e) => e.sample === !0, iA = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, aA = (e) => rA(e) ? `/sample-thumb?${iA(e)}` : `/photo-thumb?id=${e.id}`, Ise = (e) => rA(e) ? {
- src: `/sample-image?${iA(e)}`,
- thumb: aA(e),
+})), Qk = (e) => e.sample === !0, $k = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, eA = (e) => Qk(e) ? `/sample-thumb?${$k(e)}` : `/photo-thumb?id=${e.id}`, Bse = (e) => Qk(e) ? {
+ src: `/sample-image?${$k(e)}`,
+ thumb: eA(e),
name: e.name,
asset: null,
source: e.source,
@@ -34761,18 +34755,18 @@ var Fse = (e) => Array.from({ length: e.n }, (t, n) => ({
total: e.total
} : {
src: `/photo?id=${e.id}`,
- thumb: aA(e),
+ thumb: eA(e),
name: e.name || "",
asset: e
};
-function Lse({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, R.useMemo)(() => [...e.codeSets.flatMap(Fse), ...e.items], [e]), [s, c] = (0, R.useState)(() => /* @__PURE__ */ new Set()), l = (0, R.useCallback)((e) => c((t) => {
+function Vse({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, R.useMemo)(() => [...e.codeSets.flatMap(zse), ...e.items], [e]), [s, c] = (0, R.useState)(() => /* @__PURE__ */ new Set()), l = (0, R.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, R.useCallback)((e) => {
- tA(e, o.map(Ise), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, z.jsx)(Rse, {
+ Xk(e, o.map(Bse), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, z.jsx)(Hse, {
item: e,
index: t,
lost: s.has(t),
@@ -34790,7 +34784,7 @@ function Lse({ photos: e, props: t }) {
};
}), h = p;
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, z.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(oA, {
+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, z.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(tA, {
label: e.code,
title: e.name,
meta: [
@@ -34802,7 +34796,7 @@ function Lse({ photos: e, props: t }) {
...f,
children: o.slice(t, t + e.n).map((e, n) => d(e, t + n))
})] }, e.code)),
- m.length && e.total ? /* @__PURE__ */ (0, z.jsx)(oA, {
+ m.length && e.total ? /* @__PURE__ */ (0, z.jsx)(tA, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@ -34811,14 +34805,14 @@ function Lse({ photos: e, props: t }) {
"data-local-wall": "",
children: e.items.map((e, t) => s.has(h + t) ? null : d(e, h + t))
}),
- e.hasMore ? /* @__PURE__ */ (0, z.jsx)(Co, {
+ e.hasMore ? /* @__PURE__ */ (0, z.jsx)(So, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
}, e.items.length) : null
] });
}
-function oA({ label: e, title: t, meta: n }) {
+function tA({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-photo-group": "",
children: [
@@ -34835,7 +34829,7 @@ function oA({ label: e, title: t, meta: n }) {
]
});
}
-function Rse({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function Hse({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -34844,7 +34838,7 @@ function Rse({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, z.jsx)("img", {
- src: aA(e),
+ src: eA(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -34855,24 +34849,24 @@ function Rse({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
}
//#endregion
//#region src/react/components/segmented.tsx
-function sA(e) {
- let t = rO("selection");
- return /* @__PURE__ */ (0, z.jsx)(AS, {
+function nA(e) {
+ let t = oO("selection");
+ return /* @__PURE__ */ (0, z.jsx)(NS, {
...e,
ref: t
});
}
-function cA(e) {
- let t = rO("selection");
- return /* @__PURE__ */ (0, z.jsx)(ex, {
+function rA(e) {
+ let t = oO("selection");
+ return /* @__PURE__ */ (0, z.jsx)(tx, {
...e,
ref: t
});
}
-var lA = "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", uA = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", zse = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", dA = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", fA = "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 iA = "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", aA = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Use = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", oA = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", sA = "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 Bse(e, t) {
+function Wse(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;
@@ -34888,11 +34882,11 @@ function Bse(e, t) {
h: e.offsetHeight
};
}
-function pA(e, t, n, r) {
+function cA(e, t, n, r) {
let i = (0, R.useRef)(null), a = (0, R.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 ? Bse(l, c) : null;
+ let l = s && s.offsetWidth ? r ?? s.querySelector(n) : null, u = l && c ? Wse(l, c) : null;
if (!u || !u.w) {
o.hidden = !0;
return;
@@ -34930,19 +34924,19 @@ function pA(e, t, n, r) {
}
//#endregion
//#region src/react/entity-filter/entity-filter.ts
-var Vse = (e) => e === "videos", mA = () => /* @__PURE__ */ (0, z.jsx)("span", {
+var Gse = (e) => e === "videos", lA = () => /* @__PURE__ */ (0, z.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
});
-function Hse(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Vse(t), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (0, R.useRef)(null), _ = pA(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = pA(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
+function Kse(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Gse(t), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (0, R.useRef)(null), _ = cA(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = cA(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
return (0, R.useEffect)(() => {
c.wireDrag(h.current), c.wireScroller(m.current), c.wireDrag(g.current);
- }, [c]), /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(Wse, {
+ }, [c]), /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(uA, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, z.jsx)(xk, {
+ }), /* @__PURE__ */ (0, z.jsx)(yk, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -34962,13 +34956,13 @@ function Hse(e) {
"data-view-glide": "round",
"aria-hidden": "true"
})] }),
- top: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [n ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(Use, {
+ top: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [n ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(qse, {
keys: n,
view: t,
row: p,
glide: v,
onView: s.setView
- }), l ? /* @__PURE__ */ (0, z.jsx)(mA, {}) : null] }) : null, /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), l ? /* @__PURE__ */ (0, z.jsx)(lA, {}) : null] }) : null, /* @__PURE__ */ (0, z.jsxs)("div", {
ref: m,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
@@ -34988,11 +34982,11 @@ function Hse(e) {
r !== e.k && s.setState(e.k);
},
children: e.label
- }, e.k)), /* @__PURE__ */ (0, z.jsx)(mA, {})]
+ }, e.k)), /* @__PURE__ */ (0, z.jsx)(lA, {})]
}), /* @__PURE__ */ (0, z.jsx)("div", {
ref: h,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, z.jsxs)(Sk, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, z.jsxs)(bk, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -35004,10 +34998,10 @@ function Hse(e) {
}, e.k)) : null
})]
})] }),
- bottom: /* @__PURE__ */ (0, z.jsx)(Gse, { ...e })
+ bottom: /* @__PURE__ */ (0, z.jsx)(Jse, { ...e })
})] });
}
-function Use({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function qse({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -35049,7 +35043,7 @@ function Use({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function Wse({ items: e, hidden: t, actions: n }) {
+function uA({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -35069,7 +35063,7 @@ function Wse({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function Gse(e) {
+function Jse(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, z.jsxs)("button", {
@@ -35081,22 +35075,22 @@ function Gse(e) {
dangerouslySetInnerHTML: { __html: l("chevron-left") }
}), /* @__PURE__ */ (0, z.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, z.jsx)(Kse, {
+ /* @__PURE__ */ (0, z.jsx)(Yse, {
text: n,
busy: r
}),
- t === "videos" && i ? /* @__PURE__ */ (0, z.jsx)(qse, {
+ t === "videos" && i ? /* @__PURE__ */ (0, z.jsx)(Xse, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, z.jsx)(Jse, {
+ t === "photos" && a ? /* @__PURE__ */ (0, z.jsx)(Zse, {
head: a,
actions: o,
helpers: s
}) : null
] });
}
-function Kse({ text: e, busy: t }) {
+function Yse({ text: e, busy: t }) {
return /* @__PURE__ */ (0, z.jsx)("h3", {
"data-entity-readout": "",
children: t ? /* @__PURE__ */ (0, z.jsx)("span", {
@@ -35106,21 +35100,22 @@ function Kse({ text: e, busy: t }) {
}) : e
});
}
-function hA({ label: e, value: t, options: n, onChange: r }) {
- return /* @__PURE__ */ (0, z.jsx)(ex, {
- "aria-label": e,
+function dA({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, z.jsx)(tx, {
+ name: e,
+ "aria-label": t,
orientation: "horizontal",
- value: t,
- onChange: r,
+ value: n,
+ onChange: i,
"data-entity-layout": "",
- className: dA,
- children: n.map(([e, t, n]) => {
+ className: oA,
+ children: r.map(([e, t, n]) => {
let r = oo(n);
- return /* @__PURE__ */ (0, z.jsx)(tx, {
+ return /* @__PURE__ */ (0, z.jsx)(nx, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: fA,
+ className: sA,
children: /* @__PURE__ */ (0, z.jsx)("span", {
title: t,
className: "contents",
@@ -35130,7 +35125,7 @@ function hA({ label: e, value: t, options: n, onChange: r }) {
})
});
}
-function gA({ onPress: e, busy: t = !1 }) {
+function fA({ onPress: e, busy: t = !1 }) {
return /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"data-entity-batch": "",
@@ -35144,46 +35139,52 @@ function gA({ onPress: e, busy: t = !1 }) {
dangerouslySetInnerHTML: { __html: t ? F("正在换一批") : l("shuffle") }
});
}
-function qse({ head: e, actions: t }) {
+function Xse({ head: e, actions: t }) {
return /* @__PURE__ */ (0, z.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, z.jsx)(gA, { onPress: () => void t.reshuffle() }),
- e.jav ? /* @__PURE__ */ (0, z.jsx)(hA, {
+ /* @__PURE__ */ (0, z.jsx)(fA, { onPress: () => void t.reshuffle() }),
+ e.jav ? /* @__PURE__ */ (0, z.jsx)(dA, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- e.sorts.map((e) => {
- let n = oo(e.dir === "asc" ? "arrow-up" : "arrow-down");
- return /* @__PURE__ */ (0, z.jsxs)("button", {
- type: "button",
- "data-entity-sort": e.key,
- "data-entity-press": "",
- "aria-pressed": e.pressed,
- "aria-label": e.ariaLabel || void 0,
- onClick: () => t.setSort(e.key),
- children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, z.jsx)(n, { className: "size-3.5" }) : null]
- }, e.key);
+ /* @__PURE__ */ (0, z.jsx)(pA, {
+ sorts: e.sorts,
+ onSort: t.setSort
})
]
});
}
-function Jse({ head: e, actions: t, helpers: n }) {
+function pA({ sorts: e, onSort: t }) {
+ return /* @__PURE__ */ (0, z.jsx)(z.Fragment, { children: e.map((e) => {
+ let n = oo(e.dir === "asc" ? "arrow-up" : "arrow-down");
+ return /* @__PURE__ */ (0, z.jsxs)("button", {
+ type: "button",
+ "data-entity-sort": e.key,
+ "data-entity-press": "",
+ "aria-pressed": e.pressed,
+ "aria-label": e.ariaLabel || void 0,
+ onClick: () => t(e.key),
+ children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, z.jsx)(n, { className: "size-3.5" }) : null]
+ }, e.key);
+ }) });
+}
+function Zse({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, R.useState)(!1), a = (0, R.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, R.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, z.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, z.jsx)(gA, {
+ e.shuffle ? /* @__PURE__ */ (0, z.jsx)(fA, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, z.jsx)(hA, {
+ /* @__PURE__ */ (0, z.jsx)(dA, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -35197,6 +35198,278 @@ function Jse({ head: e, actions: t, helpers: n }) {
]
});
}
+//#endregion
+//#region src/react/catalog-filter/catalog-filter-page.tsx
+var mA = "";
+function Qse(e) {
+ let t = !e.tiers, n = ace(e.comboHost);
+ return /* @__PURE__ */ (0, z.jsxs)("div", {
+ "data-catalog-root": "",
+ "data-loading": t || void 0,
+ "data-refreshing": e.refreshing || void 0,
+ className: "contents",
+ children: [
+ n ? (0, be.createPortal)(/* @__PURE__ */ (0, z.jsx)(uA, {
+ items: e.combo,
+ hidden: e.comboHidden,
+ actions: e.actions
+ }), n) : null,
+ /* @__PURE__ */ (0, z.jsx)(tce, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, z.jsx)($se, { ...e })
+ ]
+ });
+}
+function $se(e) {
+ let { actions: t, helpers: n } = e, r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = cA(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+ (0, R.useEffect)(() => {
+ n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
+ }, [n]);
+ let l = !e.tiers, u = gA(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ return (0, R.useLayoutEffect)(() => {
+ O(o.current, "tagbar");
+ }, [u]), /* @__PURE__ */ (0, z.jsx)(yk, {
+ label: "筛选与排序",
+ topLabel: "视图与标签",
+ attrs: {
+ "data-filter-frame": "",
+ "data-catalog-frame": ""
+ },
+ className: "mx-4",
+ topClassName: "gap-1.5 overflow-visible",
+ bottomClassName: e.trash ? "hidden" : "min-h-12",
+ bottomRef: s,
+ busy: !e.count || e.refreshing,
+ panes: /* @__PURE__ */ (0, z.jsx)("span", {
+ ref: r,
+ "data-view-glide": "",
+ "aria-hidden": "true"
+ }),
+ top: /* @__PURE__ */ (0, z.jsxs)("div", {
+ ref: a,
+ "data-catalog-scroll": "",
+ children: [/* @__PURE__ */ (0, z.jsxs)("div", {
+ ref: i,
+ role: "group",
+ "aria-label": "视图",
+ "data-catalog-views": "",
+ onPointerLeave: c.leave,
+ children: [e.views.map((n) => /* @__PURE__ */ (0, z.jsx)("a", {
+ href: n.href,
+ "data-catalog-view": n.k,
+ "data-entity-press": "",
+ "aria-pressed": e.state === n.k,
+ onPointerEnter: c.hover,
+ onClick: (e) => {
+ e.preventDefault(), t.setView(n.k);
+ },
+ children: n.label
+ }, n.k)), /* @__PURE__ */ (0, z.jsx)("span", {
+ "data-entity-sep": "",
+ "aria-hidden": "true"
+ })]
+ }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ ref: o,
+ "data-catalog-tags": "",
+ children: [e.empty || l ? /* @__PURE__ */ (0, z.jsx)(hA, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, z.jsx)(ece, {
+ tag: e,
+ onPress: t.toggleTag
+ }, e.k))]
+ })]
+ }),
+ bottom: e.trash ? null : /* @__PURE__ */ (0, z.jsx)(rce, { ...e })
+ });
+}
+function ece({ tag: e, onPress: t }) {
+ return /* @__PURE__ */ (0, z.jsxs)(bk, {
+ "data-catalog-tag": e.k,
+ "data-entity-press": "",
+ pressed: e.selected,
+ onPress: () => t(e.k),
+ children: [e.label, e.n == null ? null : /* @__PURE__ */ (0, z.jsx)("span", {
+ "data-count-badge": e.k,
+ children: e.n.toLocaleString()
+ })]
+ });
+}
+function tce(e) {
+ let { actions: t, helpers: n } = e, r = e.tiers ?? {
+ key: "",
+ performers: [],
+ studios: []
+ }, i = e.empty || !e.tiers, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useCallback)((e) => () => t.moreTops(e), [t]), c = gA(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = gA(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;
+ return (0, R.useEffect)(() => {
+ n.wireDrag(a.current), n.wireDrag(o.current);
+ }, [
+ n,
+ u,
+ d
+ ]), /* @__PURE__ */ (0, z.jsxs)("div", {
+ "data-catalog-tiers": "",
+ hidden: !u && !d,
+ children: [u ? /* @__PURE__ */ (0, z.jsx)("div", {
+ ref: a,
+ "data-catalog-tier": "performers",
+ children: i ? /* @__PURE__ */ (0, z.jsx)(hA, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ type: "button",
+ "data-tier-performer": "",
+ "data-entity-kind": "performer",
+ "data-entity-name": e.name,
+ onClick: () => t.openEntity("performer", e.name),
+ children: [/* @__PURE__ */ (0, z.jsx)("span", {
+ "data-tier-ring": "",
+ dangerouslySetInnerHTML: { __html: e.ringHtml }
+ }), /* @__PURE__ */ (0, z.jsx)("span", {
+ "data-tier-name": "",
+ children: e.name
+ })]
+ }, e.name))
+ }) : null, d ? /* @__PURE__ */ (0, z.jsx)("div", {
+ ref: o,
+ "data-catalog-tier": "studios",
+ children: i ? /* @__PURE__ */ (0, z.jsx)(hA, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ type: "button",
+ "data-tier-studio": "",
+ "data-entity-kind": "studio",
+ "data-entity-name": e.name,
+ onClick: () => t.openEntity("studio", e.name),
+ children: [/* @__PURE__ */ (0, z.jsx)(nce, { studio: e }), e.name]
+ }, e.name))
+ }) : null]
+ });
+}
+function nce({ studio: e }) {
+ let [t, n] = (0, R.useState)(!1);
+ return /* @__PURE__ */ (0, z.jsx)("span", {
+ "data-tier-mark": "",
+ children: e.logo && !t ? /* @__PURE__ */ (0, z.jsx)("img", {
+ src: e.logo,
+ alt: "",
+ onError: () => n(!0),
+ onLoad: (e) => {
+ e.currentTarget.naturalWidth < 32 && n(!0);
+ }
+ }) : e.fallback
+ });
+}
+function hA({ kind: e }) {
+ let t = Array.from({ length: 64 }, (e, t) => t);
+ return e === "tag" ? /* @__PURE__ */ (0, z.jsx)("span", {
+ "data-catalog-placeholder": "tag",
+ "aria-hidden": "true",
+ children: t.map((e) => /* @__PURE__ */ (0, z.jsx)("span", {}, e))
+ }) : /* @__PURE__ */ (0, z.jsx)(z.Fragment, { children: t.map((t) => e === "performer" ? /* @__PURE__ */ (0, z.jsxs)("span", {
+ "data-catalog-placeholder": "performer",
+ "aria-hidden": "true",
+ children: [/* @__PURE__ */ (0, z.jsx)("span", {}), /* @__PURE__ */ (0, z.jsx)("span", { children: "\xA0" })]
+ }, t) : /* @__PURE__ */ (0, z.jsxs)("span", {
+ "data-catalog-placeholder": "studio",
+ "aria-hidden": "true",
+ children: [/* @__PURE__ */ (0, z.jsx)("span", {}), /* @__PURE__ */ (0, z.jsx)("span", { children: "\xA0" })]
+ }, t)) });
+}
+function rce({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+ let [a, o] = (0, R.useState)(!1);
+ return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(ice, { count: e }), /* @__PURE__ */ (0, z.jsxs)("span", {
+ "data-entity-sorts": "",
+ children: [
+ /* @__PURE__ */ (0, z.jsx)(fA, {
+ onPress: () => {
+ o(!0), i.reshuffle().finally(() => o(!1));
+ },
+ busy: a || t
+ }),
+ n ? /* @__PURE__ */ (0, z.jsx)(dA, {
+ name: n.name,
+ label: n.label,
+ value: n.value,
+ options: n.options,
+ onChange: i.setLayout
+ }, n.name) : null,
+ /* @__PURE__ */ (0, z.jsx)(pA, {
+ sorts: r,
+ onSort: i.setSort
+ })
+ ]
+ })] });
+}
+function ice({ count: e }) {
+ let t = (0, R.useRef)(null), n = (0, R.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown}` : "";
+ return (0, R.useLayoutEffect)(() => {
+ if (!e) {
+ S(n.current);
+ return;
+ }
+ let i = t.current;
+ i && (mA && i.dataset.popCount === void 0 && (i.dataset.popCount = mA), mA = r, k(i, r));
+ }, [e, r]), e ? /* @__PURE__ */ (0, z.jsx)("span", {
+ ref: t,
+ "data-catalog-readout": "",
+ "data-count-readout": "",
+ role: "status"
+ }, "readout") : /* @__PURE__ */ (0, z.jsx)("span", {
+ "data-catalog-readout": "",
+ children: /* @__PURE__ */ (0, z.jsx)("span", {
+ ref: n,
+ "data-skeleton": "count",
+ "aria-hidden": !0,
+ className: "relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"
+ })
+ }, "skeleton");
+}
+function ace(e) {
+ let [t, n] = (0, R.useState)(null);
+ return (0, R.useLayoutEffect)(() => {
+ if (!e) return;
+ let t = e.ownerDocument.createElement("div");
+ return t.className = "peach-react", e.replaceChildren(t), n(t), () => {
+ t.remove(), n(null);
+ };
+ }, [e]), t;
+}
+function gA(e, t, n, r, i) {
+ let a = () => ({
+ key: n,
+ limit: r,
+ fetched: [],
+ drained: !i
+ }), [o, s] = (0, R.useState)(a), c = o.key === n ? o : a();
+ c !== o && s(c);
+ let l = (0, R.useMemo)(() => c.fetched.length ? t.concat(c.fetched) : t, [t, c.fetched]), u = (0, R.useRef)(!1), d = (0, R.useRef)({
+ current: c,
+ all: l,
+ more: i
+ });
+ d.current = {
+ current: c,
+ all: l,
+ more: i
+ };
+ let f = (0, R.useCallback)(() => {
+ let t = e.current, { current: n, all: r, more: i } = d.current;
+ if (!(!t || !t.clientWidth || t.scrollLeft + t.clientWidth < t.scrollWidth - 320)) {
+ if (n.limit < r.length) {
+ s((e) => e.key === n.key ? {
+ ...e,
+ limit: e.limit + 12
+ } : e);
+ return;
+ }
+ n.drained || !i || u.current || (u.current = !0, i().catch(() => []).then((e) => {
+ u.current = !1, s((t) => t.key === n.key ? e.length ? {
+ ...t,
+ fetched: t.fetched.concat(e)
+ } : {
+ ...t,
+ drained: !0
+ } : t);
+ }));
+ }
+ }, [e]);
+ return (0, R.useLayoutEffect)(f), (0, R.useEffect)(() => {
+ let t = e.current;
+ return t?.addEventListener("scroll", f, { passive: !0 }), () => t?.removeEventListener("scroll", f);
+ }), l.slice(0, c.limit);
+}
function _A(e) {
return {
x0: 0,
@@ -35234,7 +35507,7 @@ function bA(e, t) {
y1: a + r
});
}
-function Yse(e, t) {
+function oce(e, t) {
if (!yA(e) || !(t > 0)) return _A(e);
let n = Math.min(e.width, e.height * t);
return vA({
@@ -35244,7 +35517,7 @@ function Yse(e, t) {
y1: e.height
});
}
-function Xse(e, t, n) {
+function sce(e, t, n) {
if (!yA(t) || !(n > 0)) return _A(t);
let r = xA(e, t), i = bA({
width: r.x1 - r.x0,
@@ -35293,7 +35566,7 @@ function CA(e, t, n, r = null) {
y1: a + s / 2
}, n, r);
}
-function Zse(e, t, n, r, i = null) {
+function cce(e, t, n, r, i = null) {
let a = {
x0: e.x0,
y0: e.y0,
@@ -35302,7 +35575,7 @@ function Zse(e, t, n, r, i = null) {
};
return xA(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function Qse(e, t) {
+function lce(e, t) {
return yA(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
@@ -35315,7 +35588,7 @@ function Qse(e, t) {
height: 0
};
}
-function $se(e, t) {
+function uce(e, t) {
if (!yA(t)) return {
size: "cover",
position: "50% 50%"
@@ -35326,7 +35599,7 @@ function $se(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function ece(e, t) {
+function dce(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}%`,
@@ -35340,24 +35613,24 @@ function wA(e, t, n) {
}
//#endregion
//#region src/react/components/modal-frame.tsx
-var tce = {
+var fce = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal"
};
function TA({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
- let { isFocusVisible: a } = Hd();
- return /* @__PURE__ */ (0, z.jsx)(Xb, {
+ let { isFocusVisible: a } = Vd();
+ return /* @__PURE__ */ (0, z.jsx)(Zb, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
"data-modal-motion": "",
"data-motion-instant": a || void 0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, z.jsx)(yte, {
+ children: /* @__PURE__ */ (0, z.jsx)(_te, {
"data-modal-surface": "",
- className: `flex max-h-full w-full ${tce[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, z.jsx)(lb, {
+ className: `flex max-h-full w-full ${fce[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
+ children: /* @__PURE__ */ (0, z.jsx)(ub, {
"aria-label": r,
className: "flex min-h-0 flex-col outline-none",
children: i
@@ -35374,7 +35647,7 @@ function EA({ children: e }) {
}
//#endregion
//#region src/react/crop/crop-frame.tsx
-var nce = .02, DA = 1.08;
+var pce = .02, DA = 1.08;
function OA({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, R.useRef)(null), c = (0, R.useRef)(null), [l, u] = (0, R.useState)(!1);
(0, R.useEffect)(() => {
@@ -35408,14 +35681,14 @@ function OA({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
i(SA(n.box, o.dx, o.dy, r));
return;
}
- i(Zse(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(cce(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) * nce), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * pce), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
@@ -35427,7 +35700,7 @@ function OA({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
(e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(CA(n, e.key === "-" ? 1 / DA : DA, r, t)));
}
- let g = n && r ? Qse(xA(n, r, t), r) : null, _ = g ? {
+ let g = n && r ? lce(xA(n, r, t), r) : null, _ = g ? {
"--crop-l": `${g.left}%`,
"--crop-t": `${g.top}%`,
"--crop-w": `${g.width}%`,
@@ -35507,20 +35780,20 @@ function OA({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var rce = "/api/avatar-choices", kA = "/api/avatar-pick", ice = "/api/avatar-code-cover", ace = "/avatar-choice", AA = (e, t) => [
+var mce = "/api/avatar-choices", kA = "/api/avatar-pick", hce = "/api/avatar-code-cover", gce = "/avatar-choice", AA = (e, t) => [
"avatar-choices",
e,
t
-], jA = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, MA = (e, t, n) => `${ace}${jA(e, t)}&ref=${encodeURIComponent(n)}`, oce = (e, t, n) => wi(rce + jA(e, t), n), sce = (e) => W(ice, { code: e });
+], jA = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, MA = (e, t, n) => `${gce}${jA(e, t)}&ref=${encodeURIComponent(n)}`, _ce = (e, t, n) => wi(mce + jA(e, t), n), vce = (e) => W(hce, { code: e });
function NA(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? Xse(e.focus, t, n) : bA(t, n);
+ return e.focus && r ? sce(e.focus, t, n) : bA(t, n);
}
-var cce = (e) => e.crop && yA({
+var PA = (e) => e.crop && yA({
width: e.width,
height: e.height
});
-async function lce(e, t, n) {
+async function FA(e, t, n) {
if (!("file" in n)) {
await W(kA, {
kind: e,
@@ -35538,30 +35811,30 @@ async function lce(e, t, n) {
let a = await i.json().catch(() => null);
throw new Si(a?.error || `请求失败(${i.status})`, i.status, a);
}
-function uce(e, t) {
+function IA(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 dce = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function fce(e) {
- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${dce(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var LA = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function RA(e) {
+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${LA(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var PA = (e) => e.cast > 1, pce = (e) => PA(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, mce = {
+var zA = (e) => e.cast > 1, BA = (e) => zA(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, VA = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
code: "番号封面"
};
-function hce(e) {
+function HA(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 gce = (e) => `${mce[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (PA(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), _ce = 8, vce = 3 / 4;
-function FA({ kind: e, entityId: t, name: n, onPicked: r }) {
+var UA = (e) => `${VA[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (zA(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), WA = 8, GA = 3 / 4;
+function KA({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, R.useState)(!1);
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -35581,7 +35854,7 @@ function FA({ kind: e, entityId: t, name: n, onPicked: r }) {
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, z.jsx)(IA, {
+ children: /* @__PURE__ */ (0, z.jsx)(qA, {
kind: e,
entityId: t,
name: n,
@@ -35590,29 +35863,29 @@ function FA({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function IA({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, R.useRef)(null), o = hO(), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(null), h = AA(e, t), g = (0, R.useRef)(!1), _ = Nn({
+function qA({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, R.useRef)(null), o = vO(), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(null), h = AA(e, t), g = (0, R.useRef)(!1), _ = Nn({
queryKey: h,
- queryFn: ({ signal: n }) => oce(e, t, n),
+ queryFn: ({ signal: n }) => _ce(e, t, n),
retryOnMount: !0
});
(0, R.useEffect)(() => () => {
g.current && q.removeQueries({ queryKey: AA(e, t) });
}, [e, t]);
let v = Pn({
- mutationFn: (n) => lce(e, t, n),
+ mutationFn: (n) => FA(e, t, n),
onSuccess: () => {
g.current = !0, i(), r();
}
}), y = Pn({
- mutationFn: (e) => sce(e),
+ mutationFn: (e) => vce(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 ? U(v.error) : "") || (!p && y.error ? U(y.error) : "") || (_.error ? U(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : fce(x);
+ let x = _.data, S = x?.choices ?? [], C = d || (v.error ? U(v.error) : "") || (!p && y.error ? U(y.error) : "") || (_.error ? U(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : RA(x);
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
@@ -35622,7 +35895,7 @@ function IA({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
children: [
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(Rm, {
+ children: [/* @__PURE__ */ (0, z.jsx)(Lm, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: p ? "框出头像那一块" : "更换头像"
@@ -35633,7 +35906,7 @@ function IA({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: p ? pce(p) : uce(n, x)
+ children: p ? BA(p) : IA(n, x)
}),
T ? /* @__PURE__ */ (0, z.jsx)(G, {
tone: "neutral",
@@ -35645,14 +35918,14 @@ function IA({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsx)(_O, {
+ /* @__PURE__ */ (0, z.jsx)(bO, {
icon: je,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), p ? /* @__PURE__ */ (0, z.jsx)(RA, {
+ }), p ? /* @__PURE__ */ (0, z.jsx)(YA, {
kind: e,
entityId: t,
choice: p,
@@ -35675,7 +35948,7 @@ function IA({ 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: _ce }, (e, t) => /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: _.isPending ? Array.from({ length: WA }, (e, t) => /* @__PURE__ */ (0, z.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",
@@ -35688,14 +35961,14 @@ function IA({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: gce(n),
+ title: UA(n),
...K(w),
onClick: () => {
w || (n.crop ? m(n) : v.mutate({ ref: n.ref }));
},
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
- /* @__PURE__ */ (0, z.jsx)(LA, {
+ /* @__PURE__ */ (0, z.jsx)(JA, {
src: MA(e, t, n.ref),
choice: n
}),
@@ -35711,7 +35984,7 @@ function IA({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
children: "在用"
})
}) : null,
- PA(n) ? /* @__PURE__ */ (0, z.jsx)("span", {
+ zA(n) ? /* @__PURE__ */ (0, z.jsx)("span", {
className: "absolute top-1 right-1",
children: /* @__PURE__ */ (0, z.jsxs)(yi, {
variant: "caption",
@@ -35732,7 +36005,7 @@ function IA({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, z.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, z.jsx)(ak, {
+ children: /* @__PURE__ */ (0, z.jsx)(ck, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -35767,7 +36040,7 @@ function IA({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 items-center gap-2",
children: [/* @__PURE__ */ (0, z.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, z.jsx)(ak, {
+ children: /* @__PURE__ */ (0, z.jsx)(ck, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -35787,7 +36060,7 @@ function IA({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function LA({ src: e, choice: t }) {
+function JA({ src: e, choice: t }) {
let n = (0, R.useRef)(null), [r, i] = (0, R.useState)(!1);
(0, R.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@ -35795,7 +36068,7 @@ function LA({ src: e, choice: t }) {
let a = {
width: t.width,
height: t.height
- }, o = cce(t) ? ece(NA(t, a, vce), a) : null, s = r ? !0 : void 0;
+ }, o = PA(t) ? dce(NA(t, a, GA), a) : null, s = r ? !0 : void 0;
return /* @__PURE__ */ (0, z.jsxs)("span", {
className: "relative block w-full aspect-avatar-choice overflow-hidden",
children: [/* @__PURE__ */ (0, z.jsx)("img", {
@@ -35820,12 +36093,12 @@ function LA({ src: e, choice: t }) {
})]
});
}
-function RA({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, R.useState)(o[0]), [l, u] = (0, R.useState)(null), [d, f] = (0, R.useState)(null), p = MA(e, t, s), m = hO();
+function YA({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, R.useState)(o[0]), [l, u] = (0, R.useState)(null), [d, f] = (0, R.useState)(null), p = MA(e, t, s), m = vO();
function h(e) {
c(e), u(null), f(null);
}
- let g = d && l ? $se(d, l) : null;
+ let g = d && l ? uce(d, l) : null;
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.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",
@@ -35850,7 +36123,7 @@ function RA({ 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: hce(e)
+ children: HA(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, z.jsxs)("div", {
@@ -35884,12 +36157,12 @@ function RA({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
}
//#endregion
//#region src/react/entity-hero/glyph.tsx
-var zA = {
+var XA = {
"text-aa": 1.435,
"mark-javdb": 326 / 111
};
-function BA({ name: e }) {
- let t = zA[e];
+function ZA({ name: e }) {
+ let t = XA[e];
return /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24",
"aria-hidden": "true",
@@ -35899,19 +36172,19 @@ function BA({ name: e }) {
}
//#endregion
//#region src/react/entity-hero/hero-pop.tsx
-function VA(e, t) {
+function QA(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 HA = (e) => !!e?.isConnected && e.matches(":popover-open");
-function UA(e, t, n, r) {
+var $A = (e) => !!e?.isConnected && e.matches(":popover-open");
+function ej(e, t, n, r) {
let i = (0, R.useRef)(r);
i.current = r, (0, R.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && HA(n.current) ? VA(t.current, n.current) : i.current();
+ t.current && $A(n.current) ? QA(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -35925,17 +36198,17 @@ function UA(e, t, n, r) {
n
]);
}
-function WA({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function tj({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, R.useRef)(null), s = (0, R.useRef)(null), [c, l] = (0, R.useState)(!1), u = (0, R.useRef)(!1), d = (0, R.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, HA(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, $A(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), !(!s.current || !o.current || HA(s.current)) && (s.current.showPopover(), VA(o.current, s.current), l(!0));
+ clearTimeout(d.current), !(!s.current || !o.current || $A(s.current)) && (s.current.showPopover(), QA(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 UA(c, o, s, f), (0, R.useEffect)(() => {
+ return ej(c, o, s, f), (0, R.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -35961,7 +36234,7 @@ function WA({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && HA(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && $A(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, z.jsxs)("div", {
@@ -35979,16 +36252,16 @@ function WA({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function GA({ following: e, busy: t, onToggle: n, tip: r }) {
+function nj({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), [s, c] = (0, R.useState)(!1), l = (0, R.useRef)(!1), u = () => {
- HA(o.current) && o.current.hidePopover(), c(!1);
+ $A(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- l.current || !o.current || !i.current || HA(o.current) || (o.current.showPopover(), VA(i.current, o.current), c(!0));
+ l.current || !o.current || !i.current || $A(o.current) || (o.current.showPopover(), QA(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return UA(s, i, o, () => c(!1)), (0, R.useEffect)(() => {
- i.current && HA(o.current) && VA(i.current, o.current);
+ return ej(s, i, o, () => c(!1)), (0, R.useEffect)(() => {
+ i.current && $A(o.current) && QA(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, z.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -35997,7 +36270,7 @@ function GA({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, z.jsx)(BA, { name: "rss" }),
+ /* @__PURE__ */ (0, z.jsx)(ZA, { name: "rss" }),
/* @__PURE__ */ (0, z.jsx)("input", {
ref: a,
type: "checkbox",
@@ -36032,29 +36305,29 @@ function GA({ following: e, busy: t, onToggle: n, tip: r }) {
}
//#endregion
//#region src/react/entity-hero/name-picker.tsx
-function KA({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function rj({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, R.useState)(!1), o = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, z.jsxs)(nte, {
+ }, []), /* @__PURE__ */ (0, z.jsxs)(ete, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, z.jsx)(Pm, {
+ children: [/* @__PURE__ */ (0, z.jsx)(Nm, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, z.jsx)(BA, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, z.jsx)(hy, {
+ children: /* @__PURE__ */ (0, z.jsx)(ZA, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, z.jsx)(gy, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: sO,
+ className: uO,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, z.jsxs)(ite, {
+ children: /* @__PURE__ */ (0, z.jsxs)(nte, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, z.jsx)(ab, {
+ /* @__PURE__ */ (0, z.jsx)(ob, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -36062,31 +36335,31 @@ function KA({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, z.jsxs)(sb, {
+ children: t.map((e) => /* @__PURE__ */ (0, z.jsxs)(cb, {
id: e,
textValue: e,
"data-namepick-name": e,
- children: [/* @__PURE__ */ (0, z.jsx)(BA, { name: "check" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, z.jsx)(ZA, { name: "check" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e })]
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)(jg, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, z.jsx)(ab, { children: /* @__PURE__ */ (0, z.jsxs)(sb, {
+ /* @__PURE__ */ (0, z.jsx)(Ag, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, z.jsx)(ob, { children: /* @__PURE__ */ (0, z.jsxs)(cb, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, z.jsx)(BA, { name: "plus" }), /* @__PURE__ */ (0, z.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, z.jsx)(ZA, { name: "plus" }), /* @__PURE__ */ (0, z.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var qA = (e) => e === "studio" || e === "agency", JA = (e) => e === "performer" || e === "creator", YA = (e) => e ? "已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。" : "订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。";
-function XA(e) {
+var ij = (e) => e === "studio" || e === "agency", aj = (e) => e === "performer" || e === "creator", oj = (e) => e ? "已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。" : "订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。";
+function sj(e) {
return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);
}
-function ZA(e) {
+function cj(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0
@@ -36097,13 +36370,13 @@ function ZA(e) {
linked: !1
} : null;
}
-function QA(e, t) {
+function lj(e, t) {
let n = f(e, "performer"), r = c(t);
return r && [e.label, n].map(c).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var $A = (e) => ({ site: u(e) });
-function ej(e, t) {
- let r = ZA(e)?.name || "", i = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+var uj = (e) => ({ site: u(e) });
+function dj(e, t) {
+ let r = cj(e)?.name || "", i = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -36113,7 +36386,7 @@ function ej(e, t) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${QA(e, r)} · ${t}`
+ title: `${lj(e, r)} · ${t}`
};
}
let i = e.url || "";
@@ -36124,8 +36397,8 @@ function ej(e, t) {
if (t === "performer" && e.link_kind !== "social") return {
type: "icon",
url: i,
- title: QA(e, r),
- mark: $A(e)
+ title: lj(e, r),
+ mark: uj(e)
};
if (e.link_kind === "social") {
let t = n(i);
@@ -36133,7 +36406,7 @@ function ej(e, t) {
type: "icon",
url: i,
title: e.label || "",
- mark: t ? { brand: t } : $A(e)
+ mark: t ? { brand: t } : uj(e)
};
}
return {
@@ -36141,13 +36414,13 @@ function ej(e, t) {
url: i,
title: e.label || "",
text: f(e, t, a),
- mark: $A(e)
+ mark: uj(e)
};
});
return [...i, ...o];
}
-var tj = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function nj(e) {
+var fj = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function pj(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -36204,14 +36477,14 @@ function nj(e) {
tags: e.tags
}), t;
}
-function rj(e) {
+function mj(e) {
let t = e.length > 5 ? 4 : e.length;
return {
shown: e.slice(0, t),
rest: e.length - t
};
}
-function ij(e) {
+function hj(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 ? {
@@ -36222,8 +36495,8 @@ function ij(e) {
}
//#endregion
//#region src/react/entity-hero/entity-hero-page.tsx
-function aj({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o, helpers: s }) {
- let c = JA(e), l = qA(e), u = e === "performer" ? nj(n.profile) : [], d = ej(n, e), f = tj(n), p = e === "agency" ? [] : n.related_performers || [], m = (0, R.useRef)(null), h = (0, R.useRef)(null);
+function gj({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o, helpers: s }) {
+ let c = aj(e), l = ij(e), u = e === "performer" ? pj(n.profile) : [], d = dj(n, e), f = fj(n), p = e === "agency" ? [] : n.related_performers || [], m = (0, R.useRef)(null), h = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
s.wireScroller(m.current);
}, [s, d.length]), (0, R.useEffect)(() => {
@@ -36236,7 +36509,7 @@ function aj({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
children: [
/* @__PURE__ */ (0, z.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, z.jsx)(oj, {
+ children: [/* @__PURE__ */ (0, z.jsx)(_j, {
kind: e,
name: t,
helpers: s,
@@ -36244,7 +36517,7 @@ function aj({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
company: l
}), c && n.id ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, z.jsx)(FA, {
+ children: /* @__PURE__ */ (0, z.jsx)(KA, {
kind: e,
entityId: Number(n.id),
name: n.canonical_name || t,
@@ -36257,14 +36530,14 @@ function aj({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
children: [
/* @__PURE__ */ (0, z.jsxs)("div", {
"data-entity-title": "",
- children: [/* @__PURE__ */ (0, z.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, z.jsx)(KA, {
+ children: [/* @__PURE__ */ (0, z.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, z.jsx)(rj, {
current: n.canonical_name,
- choices: XA(n),
+ choices: sj(n),
onChoose: o.chooseName,
onAddAlias: o.addAlias
})]
}),
- /* @__PURE__ */ (0, z.jsx)(sj, {
+ /* @__PURE__ */ (0, z.jsx)(vj, {
kind: e,
entity: n,
actions: o
@@ -36272,9 +36545,9 @@ function aj({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
d.length ? /* @__PURE__ */ (0, z.jsx)("div", {
ref: m,
"data-entity-links": "",
- children: d.map((e, t) => /* @__PURE__ */ (0, z.jsx)(fj, { link: e }, t))
+ children: d.map((e, t) => /* @__PURE__ */ (0, z.jsx)(Cj, { link: e }, t))
}) : null,
- f.length || n.feed ? /* @__PURE__ */ (0, z.jsx)(pj, {
+ f.length || n.feed ? /* @__PURE__ */ (0, z.jsx)(wj, {
entity: n,
actions: o,
helpers: s
@@ -36283,11 +36556,11 @@ function aj({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
}),
u.length ? /* @__PURE__ */ (0, z.jsx)("dl", {
"data-entity-facts": "",
- children: u.map((e) => /* @__PURE__ */ (0, z.jsx)(lj, {
+ children: u.map((e) => /* @__PURE__ */ (0, z.jsx)(bj, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, z.jsx)(uj, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, z.jsx)(xj, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, z.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
@@ -36314,14 +36587,14 @@ function aj({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
}, e.k))
})
}) : null]
- }), a ? (0, be.createPortal)(/* @__PURE__ */ (0, z.jsx)(mj, {
+ }), a ? (0, be.createPortal)(/* @__PURE__ */ (0, z.jsx)(Tj, {
feedNew: r,
host: a,
actions: o,
helpers: s
}), a) : null] });
}
-function oj({ kind: e, name: t, helpers: n, people: r, company: a }) {
+function _j({ kind: e, name: t, helpers: n, people: r, company: a }) {
let [o] = (0, R.useState)(() => `${n.portraitImg()}<span>${i(t.slice(0, 1))}</span>`);
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-entity-portrait": r ? "round" : "square",
@@ -36330,8 +36603,8 @@ function oj({ kind: e, name: t, helpers: n, people: r, company: a }) {
dangerouslySetInnerHTML: { __html: o }
});
}
-function sj({ kind: e, entity: t, actions: n }) {
- let i = ZA(t), a = (e, t) => (r) => {
+function vj({ kind: e, entity: t, actions: n }) {
+ let i = cj(t), a = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, o = i ? i.linked ? /* @__PURE__ */ (0, z.jsx)("a", {
href: r("agency", i.name),
@@ -36340,36 +36613,36 @@ function sj({ kind: e, entity: t, actions: n }) {
children: i.name
}) : i.name : null, s = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer") {
- let e = ij(t.name_groups);
+ let e = hj(t.name_groups);
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-entity-alias": "meta",
children: [
/* @__PURE__ */ (0, z.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, z.jsx)(BA, { name: "film" }), /* @__PURE__ */ (0, z.jsx)("span", { children: s })]
+ children: [/* @__PURE__ */ (0, z.jsx)(ZA, { name: "film" }), /* @__PURE__ */ (0, z.jsx)("span", { children: s })]
}),
o ? /* @__PURE__ */ (0, z.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, z.jsx)(BA, { name: "briefcase" }), /* @__PURE__ */ (0, z.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, z.jsx)(ZA, { name: "briefcase" }), /* @__PURE__ */ (0, z.jsx)("span", { children: o })]
}) : null,
e ? /* @__PURE__ */ (0, z.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, z.jsx)(BA, { name: "id-card" }),
+ /* @__PURE__ */ (0, z.jsx)(ZA, { name: "id-card" }),
/* @__PURE__ */ (0, z.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: e.names.map((e, t) => /* @__PURE__ */ (0, z.jsx)("span", { children: e }, t))
}),
- e.rest > 0 ? /* @__PURE__ */ (0, z.jsx)(WA, {
+ e.rest > 0 ? /* @__PURE__ */ (0, z.jsx)(tj, {
id: "entityAliasPop",
hook: "alias",
rest: e.rest,
label: `另外 ${e.rest} 个别名`,
heading: `${e.total} 个别名`,
- children: /* @__PURE__ */ (0, z.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, z.jsx)(cj, {
+ children: /* @__PURE__ */ (0, z.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, z.jsx)(yj, {
label: e.label,
names: e.names
}, t)) })
@@ -36404,25 +36677,25 @@ function sj({ kind: e, entity: t, actions: n }) {
]
});
}
-function cj({ label: e, names: t }) {
+function yj({ label: e, names: t }) {
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [e ? /* @__PURE__ */ (0, z.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, z.jsx)("dd", {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, z.jsxs)("span", { children: [e.name, e.reading ? /* @__PURE__ */ (0, z.jsx)("small", { children: e.reading }) : null] }, t))
})] });
}
-function lj({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("dt", { children: [/* @__PURE__ */ (0, z.jsx)(BA, { name: e }), t] }), /* @__PURE__ */ (0, z.jsx)("dd", {
+function bj({ glyph: e, label: t, clip: n, children: r }) {
+ return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("dt", { children: [/* @__PURE__ */ (0, z.jsx)(ZA, { name: e }), t] }), /* @__PURE__ */ (0, z.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function uj({ tags: e }) {
- let { shown: t, rest: n } = rj(e);
+function xj({ tags: e }) {
+ let { shown: t, rest: n } = mj(e);
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, z.jsx)("span", {
"data-fact-tag": "",
children: e
- }, e)), n ? /* @__PURE__ */ (0, z.jsx)(WA, {
+ }, e)), n ? /* @__PURE__ */ (0, z.jsx)(tj, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -36437,10 +36710,10 @@ function uj({ tags: e }) {
})
}) : null] });
}
-function dj({ mark: e }) {
+function Sj({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, z.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, z.jsx)(BA, { name: e.brand })
+ children: /* @__PURE__ */ (0, z.jsx)(ZA, { name: e.brand })
});
let t = l("globe") + ("site" in e ? `<img src="${i(e.site)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, z.jsx)("span", {
@@ -36448,7 +36721,7 @@ function dj({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function fj({ link: e }) {
+function Cj({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, z.jsx)("a", {
"data-link": "icon",
@@ -36457,19 +36730,19 @@ function fj({ link: e }) {
rel: "noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, z.jsx)(dj, { mark: e.mark })
+ children: /* @__PURE__ */ (0, z.jsx)(Sj, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, z.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, z.jsx)(dj, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, z.jsx)(Sj, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, z.jsxs)("span", {
"data-link": "private",
title: "私人馆藏来源记录,不直接打开下载页",
- children: [/* @__PURE__ */ (0, z.jsx)(dj, { mark: { globe: !0 } }), /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, z.jsx)(Sj, { mark: { globe: !0 } }), /* @__PURE__ */ (0, z.jsxs)("span", {
"data-link-label": "",
children: ["来源 · ", e.label]
})]
@@ -36480,14 +36753,14 @@ function fj({ link: e }) {
target: "_blank",
rel: "noreferrer",
title: e.title,
- children: [/* @__PURE__ */ (0, z.jsx)(dj, { mark: e.mark }), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, z.jsx)(Sj, { mark: e.mark }), /* @__PURE__ */ (0, z.jsx)("span", {
"data-link-label": "",
children: e.text
})]
});
}
}
-function pj({ entity: e, actions: t, helpers: n }) {
+function wj({ entity: e, actions: t, helpers: n }) {
let [r, i] = (0, R.useState)(!!e.feed?.following), [a, o] = (0, R.useState)(!1), s = (0, R.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
@@ -36505,31 +36778,31 @@ function pj({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-entry-marks": "",
- children: [tj(e).map((e, t) => /* @__PURE__ */ (0, z.jsxs)("a", {
+ children: [fj(e).map((e, t) => /* @__PURE__ */ (0, z.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, z.jsx)(BA, { name: e.mark }) : /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, z.jsx)(ZA, { name: e.mark }) : /* @__PURE__ */ (0, z.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, z.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, z.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, z.jsx)(GA, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, z.jsx)(nj, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: YA(r)
+ tip: oj(r)
}) : null]
});
}
-function mj({ feedNew: e, host: t, actions: n, helpers: r }) {
+function Tj({ feedNew: e, host: t, actions: n, helpers: r }) {
let i = (0, R.useRef)(null), a = e?.items.length ? e.html : "";
(0, R.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !a;
@@ -36553,7 +36826,7 @@ function mj({ feedNew: e, host: t, actions: n, helpers: r }) {
}
//#endregion
//#region src/follow-sort.ts
-var hj = [
+var Ej = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -36561,7 +36834,7 @@ var hj = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], gj = "checked", _j = {
+], yce = "checked", Dj = {
checked: "desc",
added: "desc",
name: "asc",
@@ -36569,32 +36842,32 @@ var hj = [
source: "asc",
provider: "asc",
status: "asc"
-}, vj = (e) => hj.some(([t]) => t === e);
-function yj(e, t) {
- let n = vj(e) ? e : gj;
+}, bce = (e) => Ej.some(([t]) => t === e);
+function Oj(e, t) {
+ let n = bce(e) ? e : yce;
return {
sort: n,
- dir: t === "asc" || t === "desc" ? t : _j[n]
+ dir: t === "asc" || t === "desc" ? t : Dj[n]
};
}
//#endregion
//#region src/react/follow-manage/follow-manage.ts
-var bj = "/api/follow", xj = "/api/follow/credentials", Sj = "/api/follow/check", Cj = "/api/follow/source", wj = "/api/follow/resolve", Tj = "/api/follow/suggest", Ej = "/api/follow/author-alias", yce = "/api/follow/credential", Dj = "/api/follow/status", bce = "/api/feeds", Oj = "/api/feeds/source", xce = "/api/feeds/check", Sce = "/api/feeds/lookup", kj = ["follow-manage"], Aj = ["follow-manage", "credentials"], Cce = ["follow-manage", "check"], wce = ["follow-manage", "resolve"], jj = ["follow-manage", "feeds"], Tce = (e) => [
+var kj = "/api/follow", Aj = "/api/follow/credentials", jj = "/api/follow/check", Mj = "/api/follow/source", Nj = "/api/follow/resolve", xce = "/api/follow/suggest", Pj = "/api/follow/author-alias", Sce = "/api/follow/credential", Fj = "/api/follow/status", Cce = "/api/feeds", Ij = "/api/feeds/source", wce = "/api/feeds/check", Tce = "/api/feeds/lookup", Lj = ["follow-manage"], Rj = ["follow-manage", "credentials"], Ece = ["follow-manage", "check"], Dce = ["follow-manage", "resolve"], zj = ["follow-manage", "feeds"], Oce = (e) => [
"follow-manage",
"suggest",
e
-], Mj = [["default", "默认视图"], ["table", "表格视图"]], Nj = [
+], Bj = [["default", "默认视图"], ["table", "表格视图"]], Vj = [
10,
20,
50,
100
-], Ece = Object.fromEntries(hj), Pj = {
+], kce = Object.fromEntries(Ej), Hj = {
author: "name",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, Dce = (e) => Mj.some(([t]) => t === e), Oce = (e) => Nj.includes(Number(e)) ? Number(e) : 20, kce = {
+}, Ace = (e) => Bj.some(([t]) => t === e), jce = (e) => Vj.includes(Number(e)) ? Number(e) : 20, Mce = {
checked: ["从近到远", "从远到近"],
added: ["从近到远", "从远到近"],
name: ["倒序", "正序"],
@@ -36602,25 +36875,25 @@ var bj = "/api/follow", xj = "/api/follow/credentials", Sj = "/api/follow/check"
source: ["倒序", "正序"],
provider: ["倒序", "正序"],
status: ["倒序", "正序"]
-}, Ace = (e, t) => `按${Ece[e]}${kce[e][t === "asc" ? 0 : 1]}排序`;
-function Fj(e) {
+}, Nce = (e, t) => `按${kce[e]}${Mce[e][t === "asc" ? 0 : 1]}排序`;
+function Uj(e) {
let t = e.last_status;
return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;
}
-function jce(e) {
+function Pce(e) {
return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";
}
-var Ij = (e) => e.last_status === "error" || e.last_status === "unauthorized", Lj = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), Rj = {
- source: Lj,
- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || Lj(e, t),
- status: (e, t) => Fj(e) - Fj(t) || Lj(e, t)
-}, zj = (e) => Date.parse(e || "") || 0, Bj = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
-function Vj(e, t = []) {
+var Wj = (e) => e.last_status === "error" || e.last_status === "unauthorized", Gj = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), Kj = {
+ source: Gj,
+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || Gj(e, t),
+ status: (e, t) => Uj(e) - Uj(t) || Gj(e, t)
+}, qj = (e) => Date.parse(e || "") || 0, Jj = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
+function Yj(e, t = []) {
if (!e.length) return "";
- let n = (e) => String(e.author_name || "").trim() || Bj(e.label), r = e.find((e) => e.entity_name);
+ let n = (e) => String(e.author_name || "").trim() || Jj(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 Bj(i.canonical_name);
+ if (i) return Jj(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);
@@ -36628,18 +36901,18 @@ function Vj(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 Mce(e) {
+function Fce(e) {
let t = e.trim().match(/[A-Za-z0-9]/);
return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();
}
-function Nce(e) {
+function Ice(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 Hj(e) {
+function Xj(e) {
let t = [], n = /* @__PURE__ */ new Map();
for (let r of e) {
let e = r.author_key || `source:${r.id}`;
@@ -36647,32 +36920,32 @@ function Hj(e) {
}
return t.map((e) => n.get(e));
}
-function Pce(e, t, n, r = []) {
- let i = Hj(e), a = n === _j[t] ? 1 : -1, o = (e) => Vj(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = Rj[t];
+function Lce(e, t, n, r = []) {
+ let i = Xj(e), a = n === Dj[t] ? 1 : -1, o = (e) => Yj(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = Kj[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) => zj(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => zj(e.created_at)));
+ let l = (e) => Math.max(...e.map((e) => qj(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => qj(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 Fce(e, t, n, r = []) {
+function Rce(e, t, n, r = []) {
let i = e.flatMap((e) => {
- let t = Vj(e, r);
+ let t = Yj(e, r);
return e.map((n) => ({
source: n,
group: e,
author: t
}));
- }), a = Rj[t];
+ }), a = Kj[t];
if (a) {
- let e = n === _j[t] ? 1 : -1;
+ let e = n === Dj[t] ? 1 : -1;
i.sort((t, n) => e * a(t.source, n.source));
}
return i;
}
-function Uj(e, t, n) {
- let r = ws(e, t), i = Ts(n, r), a = (i - 1) * t;
+function Zj(e, t, n) {
+ let r = Cs(e, t), i = ws(n, r), a = (i - 1) * t;
return {
page: i,
pages: r,
@@ -36681,91 +36954,91 @@ function Uj(e, t, n) {
end: Math.min(a + t, e)
};
}
-function Ice(e, t) {
+function zce(e, t) {
let n = new Set(t.map((e) => e.id));
return new Set([...e].filter((e) => n.has(e)));
}
-function Wj(e, t) {
+function Qj(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 Gj(e, t, n) {
+function $j(e, t, n) {
let r = new Set(e);
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var Kj = (e) => wi(`${bj}?summary=1`, e), qj = (e) => wi(xj, e), Lce = (e) => wi(Sj, e), Rce = (e) => wi(wj, e), zce = (e, t) => wi(`${Tj}?q=${encodeURIComponent(e)}`, t), Jj = (e) => W(Sj, {
+var eM = (e) => wi(`${kj}?summary=1`, e), tM = (e) => wi(Aj, e), Bce = (e) => wi(jj, e), Vce = (e) => wi(Nj, e), Hce = (e, t) => wi(`${xce}?q=${encodeURIComponent(e)}`, t), nM = (e) => W(jj, {
...e?.length ? { sources: e } : {},
background: !0
-}), Bce = (e) => W(wj, {
+}), Uce = (e) => W(Nj, {
lines: e,
background: !0
-}), Yj = (e, t) => W(Cj, {
+}), rM = (e, t) => W(Mj, {
action: "enabled",
id: e,
enabled: t
-}), Xj = (e) => W(Cj, {
+}), iM = (e) => W(Mj, {
action: "remove",
id: e
-}), Vce = (e) => W(Cj, {
+}), Wce = (e) => W(Mj, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), Zj = (e, t) => W(Ej, {
+}), aM = (e, t) => W(Pj, {
action: "add",
canonical: e,
alias: t
-}), Hce = (e) => W(Ej, {
+}), Gce = (e) => W(Pj, {
action: "remove",
alias: e
-}), Uce = (e, t) => W(yce, {
+}), Kce = (e, t) => W(Sce, {
provider: e,
values: t
-}), Wce = (e, t) => W(Dj, {
+}), qce = (e, t) => W(Fj, {
item: e,
to: t
-}), Gce = () => wi(`${bj}?status=new&limit=1000`);
-async function Qj(e) {
- let t = await wi(bce, e);
+}), Jce = () => wi(`${kj}?status=new&limit=1000`);
+async function oM(e) {
+ let t = await wi(Cce, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
-var $j = (e, t, n) => W(Oj, {
+var sM = (e, t, n) => W(Ij, {
action: "enabled",
id: e,
enabled: t
-}, "POST", n), eM = (e, t) => W(Oj, {
+}, "POST", n), cM = (e, t) => W(Ij, {
action: "remove",
id: e
-}, "POST", t), tM = (e, t) => W(xce, t?.length ? { sources: t } : { all: !0 }, "POST", e), Kce = (e, t) => wi(`${Sce}?q=${encodeURIComponent(e)}`, t), qce = (e, t, n) => W(Oj, {
+}, "POST", t), lM = (e, t) => W(wce, t?.length ? { sources: t } : { all: !0 }, "POST", e), Yce = (e, t) => wi(`${Tce}?q=${encodeURIComponent(e)}`, t), Xce = (e, t, n) => W(Ij, {
action: "follow-name",
name: e,
ids: t
}, "POST", n);
-async function Jce(e, t = "") {
+async function Zce(e, t = "") {
await Promise.all([
q.fetchQuery({
- queryKey: kj,
- queryFn: () => Kj(e)
+ queryKey: Lj,
+ queryFn: () => eM(e)
}),
q.fetchQuery({
- queryKey: Aj,
- queryFn: () => qj(e)
+ queryKey: Rj,
+ queryFn: () => tM(e)
}),
t === "feeds" ? q.fetchQuery({
- queryKey: jj,
- queryFn: () => Qj(e)
+ queryKey: zj,
+ queryFn: () => oM(e)
}) : null
]);
}
-function nM(e, t) {
- q.setQueryData(kj, (n) => n && {
+function uM(e, t) {
+ q.setQueryData(Lj, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -36773,24 +37046,24 @@ function nM(e, t) {
} : n)
});
}
-function rM(e) {
+function dM(e) {
let t = new Set(e);
- q.setQueryData(kj, (e) => e && {
+ q.setQueryData(Lj, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var iM = () => q.invalidateQueries({
- queryKey: kj,
+var fM = () => q.invalidateQueries({
+ queryKey: Lj,
exact: !0
});
-function Yce(e) {
+function Qce(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 Xce = (e) => (e?.results || []).filter((e) => !e.ok), Zce = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", aM = (e) => e.last_checked_at ? Ds(e.last_checked_at) : "未检查", Qce = /* @__PURE__ */ new Set([
+var $ce = (e) => (e?.results || []).filter((e) => !e.ok), ele = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", pM = (e) => e.last_checked_at ? Es(e.last_checked_at) : "未检查", tle = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -36803,50 +37076,50 @@ var Xce = (e) => (e?.results || []).filter((e) => !e.ok), Zce = (e) => (e?.resul
"gofile",
"f95zone",
"simpcity"
-]), $ce = (e) => Qce.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", ele = {
+]), nle = (e) => tle.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", rle = {
required: "需要",
optional: "可选",
none: "不需要",
blocked: "接不进来"
-}, oM = (e) => !!e.present && !e.missing.length, tle = [
+}, mM = (e) => !!e.present && !e.missing.length, ile = [
["", "全部"],
["new", "未看"],
["saved", "已保存"],
["ignored", "已忽略"]
-], nle = [
+], ale = [
["new", "更新时间"],
["hot", "热度"],
["dur", "时长"]
-], sM = {
+], hM = {
new: ["从新到旧", "从旧到新"],
hot: ["从高到低", "从低到高"],
dur: ["从长到短", "从短到长"]
};
-function cM(e, t) {
+function gM(e, t) {
let n = (e) => encodeURIComponent(e.join(","));
return `/api/follow?limit=300&offset=${t}` + (e.status ? `&status=${e.status}` : "") + (e.author ? `&author=${n([e.author])}` : "") + (e.provider ? `&provider=${n([e.provider])}` : "") + (e.tags.length ? `&tag=${n(e.tags)}` : "") + (e.work ? `&work=${n([e.work])}` : "") + (e.sort === "new" ? "" : `&sort=${e.sort}`) + (e.sort === "rand" ? `&seed=${e.seed}` : "") + (e.dir === "desc" ? "" : `&dir=${e.dir}`);
}
-function lM(e, t) {
+function _M(e, t) {
return {
queryKey: [
"follow-feed",
- cM(e, 0),
+ gM(e, 0),
t
],
- queryFn: ({ pageParam: t, signal: n }) => wi(cM(e, t), n),
+ queryFn: ({ pageParam: t, signal: n }) => wi(gM(e, t), n),
initialPageParam: 0,
getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 300 : void 0,
placeholderData: jt
};
}
-var uM = ["follow-feed", "credentials"], dM = (e) => wi(xj, e).catch(() => ({ providers: [] }));
-async function rle(e, t) {
- let n = lM(e.view, e.revision);
+var vM = ["follow-feed", "credentials"], yM = (e) => wi(Aj, e).catch(() => ({ providers: [] }));
+async function ole(e, t) {
+ let n = _M(e.view, e.revision);
q.removeQueries({
queryKey: n.queryKey,
exact: !0
}), q.removeQueries({
- queryKey: uM,
+ queryKey: vM,
exact: !0
}), await Promise.all([q.fetchInfiniteQuery({
queryKey: n.queryKey,
@@ -36857,11 +37130,11 @@ async function rle(e, t) {
initialPageParam: 0,
getNextPageParam: n.getNextPageParam
}), q.fetchQuery({
- queryKey: uM,
- queryFn: () => dM(t)
+ queryKey: vM,
+ queryFn: () => yM(t)
})]);
}
-function fM(e) {
+function bM(e) {
if (!e?.pages.length) return null;
let t = e.pages, n = t[t.length - 1];
return {
@@ -36870,10 +37143,10 @@ function fM(e) {
groups: t.flatMap((e) => e.groups || [])
};
}
-function pM(e, t, n) {
+function xM(e, t, n) {
return [...e].sort((e, r) => h(n, t(e)) - h(n, t(r)) || String(t(e)).localeCompare(String(t(r))));
}
-function mM(e) {
+function SM(e) {
let t = /* @__PURE__ */ new Set();
return [
e.primary,
@@ -36881,12 +37154,12 @@ function mM(e) {
...e.duplicates
].filter((e) => !e || t.has(e.id) ? !1 : (t.add(e.id), !0));
}
-function ile(e) {
+function sle(e) {
for (let [, t] of q.getQueriesData({ queryKey: ["follow-feed"] })) {
if (!Array.isArray(t?.pages) || !t.pages.length) continue;
let n = t.pages[t.pages.length - 1];
for (let r of t.pages) for (let t of r.groups || []) {
- let r = mM(t).find((t) => t.id === e);
+ let r = SM(t).find((t) => t.id === e);
if (r) return {
item: r,
group: t,
@@ -36897,7 +37170,7 @@ function ile(e) {
}
return null;
}
-function ale(e) {
+function cle(e) {
q.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
@@ -36907,7 +37180,7 @@ function ale(e) {
...t,
groups: (t.groups || []).map((t) => {
let n = (t) => t.id === e.id ? e : t;
- return mM(t).some((t) => t.id === e.id) ? {
+ return SM(t).some((t) => t.id === e.id) ? {
...t,
primary: n(t.primary),
variants: t.variants.map(n),
@@ -36917,39 +37190,39 @@ function ale(e) {
}))
});
}
-function ole(e, t) {
+function lle(e, t) {
q.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
- }, (n) => n && SM(n, null, e, t));
+ }, (n) => n && AM(n, null, e, t));
}
-function hM(e) {
- return mM(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
+function CM(e) {
+ return SM(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
}
-function gM(e) {
+function wM(e) {
let t = /* @__PURE__ */ new Set(), n = e.media_items || [];
return n.length ? n.forEach((e) => {
(e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind);
}) : (e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind), t;
}
-function _M(e) {
+function TM(e) {
let t = /* @__PURE__ */ new Set();
- return mM(e).forEach((e) => gM(e).forEach((e) => t.add(e))), t;
+ return SM(e).forEach((e) => wM(e).forEach((e) => t.add(e))), t;
}
-function vM(e, t) {
+function EM(e, t) {
let n = t === "images" ? "image" : "video";
- return hM(e).find((e) => gM(e).has(n)) || e.primary;
+ return CM(e).find((e) => wM(e).has(n)) || e.primary;
}
-function yM(e) {
- return hM(e).filter((e) => e.playable && e.media_kind === "video");
+function DM(e) {
+ return CM(e).filter((e) => e.playable && e.media_kind === "video");
}
-var bM = {
+var OM = {
video: "个视频",
image: "张图片",
mixed: "个媒体"
};
-function sle({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {
- let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${bM[s] || bM.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
+function ule({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {
+ let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${OM[s] || OM.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
for (let t of n?.faces || []) r && t.media_kind !== "image" || !t.thumb_url || t.thumb_url === e || u.has(t.face) || (u.add(t.face), d.push(t.thumb_url));
return {
isMix: !!c,
@@ -36958,14 +37231,14 @@ function sle({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r
faces: d.length > 1 ? d.slice(0, i) : []
};
}
-function cle(e) {
+function dle(e) {
let t = e.filter((e) => e.can_backfill).map((e) => (e.backfill_page || 0) + 1);
if (!t.length) return "";
let n = Math.max(...t), r = Math.min(...t);
return n <= 1 ? "每个来源都只抓了第 1 页" : r === n ? `每个来源都抓到第 ${n} 页` : `已抓到第 ${r}–${n} 页`;
}
-function xM(e, t, n) {
- return e === t ? sM[e] ? {
+function kM(e, t, n) {
+ return e === t ? hM[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
@@ -36973,13 +37246,13 @@ function xM(e, t, n) {
dir: "desc"
};
}
-function lle(e, t, n, r) {
- let i = xM(e, n, r);
+function fle(e, t, n, r) {
+ let i = kM(e, n, r);
if (!i) return "";
- let a = sM[i.sort];
+ let a = hM[i.sort];
return `按${t}${a ? a[+(i.dir === "asc")] : ""}排序`;
}
-function SM(e, t, n, r) {
+function AM(e, t, n, r) {
let i = "", a = e.pages.map((e) => ({
...e,
groups: (e.groups || []).flatMap((e) => {
@@ -37009,7 +37282,7 @@ function SM(e, t, n, r) {
})
};
}
-function ule(e, t) {
+function ple(e, t) {
let n = [];
return e.author && n.push({
kind: "创作者",
@@ -37029,7 +37302,7 @@ function ule(e, t) {
label: e
})), n;
}
-function dle(e, t) {
+function mle(e, t) {
return t.kind === "创作者" ? {
...e,
author: ""
@@ -37044,7 +37317,7 @@ function dle(e, t) {
tags: e.tags.filter((e) => e !== t.key)
};
}
-function fle(e, t) {
+function hle(e, t) {
for (let n of e) {
let e = n.primary?.tag_types?.[t];
if (e) return e;
@@ -37053,18 +37326,18 @@ function fle(e, t) {
}
//#endregion
//#region src/sidebar.ts
-function ple(e) {
+function gle(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of new Set(n.tags || [])) t.set(e, (t.get(e) || 0) + 1);
return [...t].sort((e, t) => t[1] - e[1]).slice(0, 30);
}
//#endregion
//#region src/react/follow-feed/follow-card.tsx
-var mle = (e) => Number(e) > 0;
-function hle(e) {
+var _le = (e) => Number(e) > 0;
+function vle(e) {
return /^\d{4}-/.test(e) ? e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10) : e;
}
-function gle({ src: e, width: t, height: n, onLearn: r }) {
+function yle({ src: e, width: t, height: n, onLearn: r }) {
let [i, a] = (0, R.useState)(!1);
return i ? null : /* @__PURE__ */ (0, z.jsx)("img", {
src: e,
@@ -37080,8 +37353,8 @@ function gle({ src: e, width: t, height: n, onLearn: r }) {
} : void 0
});
}
-function _le(e) {
- let { group: t, authorSources: n, media: r, context: a, selected: s, selectMode: c, busy: u, failure: d, helpers: f, actions: p } = e, m = vM(t, r), h = r === "images", g = h ? (m.media_items || []).find((e) => e.media_kind === "image") : void 0, _ = g?.thumb_url || m.thumb_url || "", v = g && g.thumb_url === _ ? g : null, y = !v || _ === m.thumb_url, b = h ? [v, y ? m : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, x = h && !b && _ ? (e, t) => f.learnDims(m.id, v ? v.index : null, e, t) : void 0, S = r === "videos" ? yM(t) : [], C = (m.media_items || []).length > 1 ? m.id : S[0]?.id || m.id, w = sle({
+function ble(e) {
+ let { group: t, authorSources: n, media: r, context: a, selected: s, selectMode: c, busy: u, failure: d, helpers: f, actions: p } = e, m = EM(t, r), h = r === "images", g = h ? (m.media_items || []).find((e) => e.media_kind === "image") : void 0, _ = g?.thumb_url || m.thumb_url || "", v = g && g.thumb_url === _ ? g : null, y = !v || _ === m.thumb_url, b = h ? [v, y ? m : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, x = h && !b && _ ? (e, t) => f.learnDims(m.id, v ? v.index : null, e, t) : void 0, S = r === "videos" ? DM(t) : [], C = (m.media_items || []).length > 1 ? m.id : S[0]?.id || m.id, w = ule({
cover: _,
coverFace: (g?.thumb_url ? g : m).face,
stack: t.stack,
@@ -37131,7 +37404,7 @@ function _le(e) {
"data-follow-open": "",
"aria-label": `打开 ${m.title} 详情`
}),
- _ ? /* @__PURE__ */ (0, z.jsx)(gle, {
+ _ ? /* @__PURE__ */ (0, z.jsx)(yle, {
src: _,
width: b?.width,
height: b?.height,
@@ -37166,7 +37439,7 @@ function _le(e) {
},
dangerouslySetInnerHTML: { __html: l("check") }
}),
- mle(m.duration) ? /* @__PURE__ */ (0, z.jsx)("span", {
+ _le(m.duration) ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-media-duration": "",
children: o(m.duration)
}) : null,
@@ -37259,7 +37532,7 @@ function _le(e) {
}), /* @__PURE__ */ (0, z.jsx)("time", {
dateTime: m.published_at || "",
title: A,
- children: hle(A)
+ children: vle(A)
})]
}),
k.credited ? /* @__PURE__ */ (0, z.jsx)("div", {
@@ -37295,10 +37568,10 @@ function _le(e) {
]
});
}
-var vle = (0, R.memo)(_le), CM = () => /* @__PURE__ */ (0, z.jsx)("span", {
+var xle = (0, R.memo)(ble), jM = () => /* @__PURE__ */ (0, z.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), yle = oo("settings"), ble = oo("chevron-down"), xle = oo("history"), Sle = [[
+}), Sle = oo("settings"), Cle = oo("chevron-down"), wle = oo("history"), Tle = [[
"fixed",
"固定比例",
"layout-grid"
@@ -37307,19 +37580,19 @@ var vle = (0, R.memo)(_le), CM = () => /* @__PURE__ */ (0, z.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function Cle(e, t, n) {
+function Ele(e, t, n) {
return (0, R.useMemo)(() => {
let r = e?.groups || [], i = e?.counts || {}, a = e?.sources || [], o = e?.facets || {}, s = new Set(o.authors || []), c = new Map(a.map((e) => [e.provider, e.provider_label || e.provider])), l = new Map((o.providers || []).map((e) => [e, c.get(e) || e])), u = new Map(o.tags || []), d = /* @__PURE__ */ new Map();
a.forEach((e) => {
e.author_key && (d.has(e.author_key) || d.set(e.author_key, []), d.get(e.author_key).push(e));
});
- let f = pM([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = pM(o.works || [], (e) => e[0], n).slice(0, 24);
+ let f = xM([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = xM(o.works || [], (e) => e[0], n).slice(0, 24);
t.work && !p.some((e) => e[0] === t.work) && p.push([
t.work,
t.work,
0
]);
- let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = pM([...u], (e) => e[0], n).slice(0, 20);
+ let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = xM([...u], (e) => e[0], n).slice(0, 20);
t.tags.forEach((e) => {
h.some(([t]) => t === e) || h.push([e, u.get(e) || m]);
});
@@ -37327,7 +37600,7 @@ function Cle(e, t, n) {
videos: 0,
images: 0
};
- r.forEach((e) => _M(e).forEach((e) => {
+ r.forEach((e) => TM(e).forEach((e) => {
g[e === "image" ? "images" : "videos"] += 1;
}));
let _ = t.media === "images" ? "image" : "video";
@@ -37342,7 +37615,7 @@ function Cle(e, t, n) {
workRows: p,
allCount: m,
mediaCounts: g,
- visible: r.filter((e) => _M(e).has(_)),
+ visible: r.filter((e) => TM(e).has(_)),
author: d.has(t.author) && s.has(t.author) ? t.author : "",
provider: l.has(t.provider) ? t.provider : "",
workNames: new Map((o.works || []).map((e) => [e[0], e[1]])),
@@ -37355,15 +37628,15 @@ function Cle(e, t, n) {
n
]);
}
-function wle(e) {
- let { view: t, seed: n, revision: r, helpers: i, actions: a } = e, o = lM(t, r), s = Fn(o), c = Nn({
- queryKey: uM,
- queryFn: ({ signal: e }) => dM(e)
- }), l = (0, R.useMemo)(() => fM(s.data), [s.data]), u = (0, R.useMemo)(() => new Set((c.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [c.data]), d = (0, R.useMemo)(() => ({
+function Dle(e) {
+ let { view: t, seed: n, revision: r, helpers: i, actions: a } = e, o = _M(t, r), s = Fn(o), c = Nn({
+ queryKey: vM,
+ queryFn: ({ signal: e }) => yM(e)
+ }), l = (0, R.useMemo)(() => bM(s.data), [s.data]), u = (0, R.useMemo)(() => new Set((c.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [c.data]), d = (0, R.useMemo)(() => ({
sources: l?.sources || [],
aliases: l?.author_aliases || [],
credentials: u
- }), [l, u]), f = Cle(l, t, n), p = s.isPending || s.isPlaceholderData, h = !p && !!l, g = (0, R.useMemo)(() => ple(f.visible.flatMap(mM).map((e) => ({ tags: e.tags || [] }))), [f.visible]);
+ }), [l, u]), f = Ele(l, t, n), p = s.isPending || s.isPlaceholderData, h = !p && !!l, g = (0, R.useMemo)(() => gle(f.visible.flatMap(SM).map((e) => ({ tags: e.tags || [] }))), [f.visible]);
(0, R.useEffect)(() => {
h && a.loaded(g);
}, [
@@ -37371,7 +37644,7 @@ function wle(e) {
g,
a
]);
- let _ = Tle(e, !!l);
+ let _ = Ole(e, !!l);
if (!l) return s.isError ? /* @__PURE__ */ (0, z.jsx)(za, {
message: m(s.error),
onRetry: () => void s.refetch()
@@ -37379,7 +37652,7 @@ function wle(e) {
let v = (e) => a.route({
...t,
...e
- }), y = ule({
+ }), y = ple({
...t,
author: f.author,
provider: f.provider
@@ -37404,7 +37677,7 @@ function wle(e) {
"data-follow-head-actions": "",
children: [/* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
- leadingIcon: yle,
+ leadingIcon: Sle,
"data-follow-manage": "",
onClick: a.openManage,
children: "管理关注"
@@ -37421,20 +37694,20 @@ function wle(e) {
}) : null]
})]
}),
- /* @__PURE__ */ (0, z.jsx)(Ele, {
+ /* @__PURE__ */ (0, z.jsx)(kle, {
facets: f,
pressed: f.author,
context: d,
props: e,
onPick: (e) => v({ author: f.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, z.jsx)(Dle, {
+ /* @__PURE__ */ (0, z.jsx)(Ale, {
rows: f.workRows,
pressed: t.work,
props: e,
onPick: (e) => v({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, z.jsx)(Ole, {
+ /* @__PURE__ */ (0, z.jsx)(jle, {
facets: f,
view: t,
total: b,
@@ -37442,9 +37715,9 @@ function wle(e) {
props: e,
route: v
}),
- /* @__PURE__ */ (0, z.jsx)(kle, {
+ /* @__PURE__ */ (0, z.jsx)(Mle, {
conditions: y,
- onDrop: (e) => a.route(dle(t, e)),
+ onDrop: (e) => a.route(mle(t, e)),
onClear: () => v({
author: "",
provider: "",
@@ -37452,11 +37725,11 @@ function wle(e) {
tags: []
})
}),
- f.broken.length ? /* @__PURE__ */ (0, z.jsx)(Ale, {
+ f.broken.length ? /* @__PURE__ */ (0, z.jsx)(Nle, {
count: f.broken.length,
onManage: a.openManage
}) : null,
- /* @__PURE__ */ (0, z.jsx)(jle, {
+ /* @__PURE__ */ (0, z.jsx)(Ple, {
pending: p,
facets: f,
data: l,
@@ -37467,19 +37740,19 @@ function wle(e) {
"data-follow-pagination": "",
children: [l.has_more ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-follow-page-action": "",
- children: /* @__PURE__ */ (0, z.jsxs)(Co, {
+ children: /* @__PURE__ */ (0, z.jsxs)(So, {
entity: !0,
enabled: () => !_.busyRef.current,
load: async () => {
await s.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, z.jsx)(ble, { className: "size-3.5" }), "加载更多"]
+ children: [/* @__PURE__ */ (0, z.jsx)(Cle, { className: "size-3.5" }), "加载更多"]
}, s.data?.pages.length)
}) : null, x ? /* @__PURE__ */ (0, z.jsxs)("span", {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
- leadingIcon: _.olderBusy ? void 0 : xle,
+ leadingIcon: _.olderBusy ? void 0 : wle,
"data-follow-older": "",
"aria-busy": _.busy || void 0,
onClick: () => void _.start(!0),
@@ -37489,14 +37762,14 @@ function wle(e) {
}), /* @__PURE__ */ (0, z.jsx)("span", { children: "抓取中…" })] }) : "抓更早的一页"
}), /* @__PURE__ */ (0, z.jsx)("span", {
"data-follow-backfill": "",
- children: cle(f.sources)
+ children: dle(f.sources)
})]
}) : null]
}) : null
]
})] });
}
-function Tle(e, t) {
+function Ole(e, t) {
let { helpers: n, actions: r } = e, [i, a] = (0, R.useState)(0), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(!1), f = (0, R.useRef)(!1), p = (0, R.useRef)(null), h = (0, R.useRef)({
helpers: n,
actions: r
@@ -37511,7 +37784,7 @@ function Tle(e, t) {
return h.current.helpers.jobProgress({
host: e,
active: () => t,
- read: (e) => wi(Sj, e),
+ read: (e) => wi(jj, e),
busy: (e) => {
t && (f.current = e, s(e));
},
@@ -37536,7 +37809,7 @@ function Tle(e, t) {
f.current = !0, l(e ? "older" : "check");
let t = !1;
try {
- let n = await W(Sj, e ? {
+ let n = await W(jj, e ? {
older: !0,
background: !0
} : { background: !0 });
@@ -37554,7 +37827,7 @@ function Tle(e, t) {
olderBusy: c === "older" || u && o
};
}
-function Ele({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function kle({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
let a = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
r.helpers.wireDrag(a.current);
@@ -37580,7 +37853,7 @@ function Ele({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
})
}) : null;
}
-function Dle({ rows: e, pressed: t, props: n, onPick: r }) {
+function Ale({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -37601,13 +37874,13 @@ function Dle({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function Ole({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (0, R.useRef)(null), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(null), h = !!e.mediaCounts.images || t.media === "images", g = pA(c, d, "[data-follow-filter][aria-pressed=\"true\"]", t.status), _ = pA(u, f, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${h}`);
+function jle({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
+ let { helpers: o, actions: s } = i, c = (0, R.useRef)(null), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(null), h = !!e.mediaCounts.images || t.media === "images", g = cA(c, d, "[data-follow-filter][aria-pressed=\"true\"]", t.status), _ = cA(u, f, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${h}`);
(0, R.useEffect)(() => {
o.wireDrag(p.current), o.wireDrag(m.current), o.wireScroller(m.current);
}, [o]);
let v = [...e.providers], y = v.length + e.tagRows.length > 0, b = t.media === "images";
- return /* @__PURE__ */ (0, z.jsx)(xk, {
+ return /* @__PURE__ */ (0, z.jsx)(yk, {
label: "筛选与排序",
topLabel: h ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -37659,7 +37932,7 @@ function Ole({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: l(i) }
}, e);
})
- }), /* @__PURE__ */ (0, z.jsx)(CM, {})] }) : null, /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, z.jsx)(jM, {})] }) : null, /* @__PURE__ */ (0, z.jsxs)("div", {
ref: p,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
@@ -37668,7 +37941,7 @@ function Ole({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"aria-label": "状态",
"data-entity-states": "",
onPointerLeave: g.leave,
- children: [tle.map(([e, n]) => /* @__PURE__ */ (0, z.jsx)("button", {
+ children: [ile.map(([e, n]) => /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"data-entity-state": e,
"data-follow-filter": e,
@@ -37679,7 +37952,7 @@ function Ole({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
t.status !== e && a({ status: e });
},
children: n
- }, e)), y ? /* @__PURE__ */ (0, z.jsx)(CM, {}) : null]
+ }, e)), y ? /* @__PURE__ */ (0, z.jsx)(jM, {}) : null]
}), /* @__PURE__ */ (0, z.jsxs)("div", {
ref: m,
"data-entity-tags": "",
@@ -37694,11 +37967,11 @@ function Ole({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
onClick: () => a({ provider: e.provider === t ? "" : t }),
dangerouslySetInnerHTML: { __html: o.sourceIcon(t) }
}, t)),
- v.length && e.tagRows.length ? /* @__PURE__ */ (0, z.jsx)(CM, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, z.jsxs)(Sk, {
+ v.length && e.tagRows.length ? /* @__PURE__ */ (0, z.jsx)(jM, {}) : null,
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, z.jsxs)(bk, {
"data-follow-tag": n,
"data-entity-press": "",
- "data-tag-cat": `r34-${fle(e.groups, n)}`,
+ "data-tag-cat": `r34-${hle(e.groups, n)}`,
pressed: t.tags.includes(n),
onPress: () => a({ tags: t.tags.includes(n) ? t.tags.filter((e) => e !== n) : [...t.tags, n] }),
children: [o.tagLabel(n), r ? /* @__PURE__ */ (0, z.jsx)("span", {
@@ -37716,11 +37989,11 @@ function Ole({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
}), /* @__PURE__ */ (0, z.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, z.jsx)(gA, { onPress: s.shuffle }),
- b ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(hA, {
+ /* @__PURE__ */ (0, z.jsx)(fA, { onPress: s.shuffle }),
+ b ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(dA, {
label: "图片布局",
value: i.photoLayout,
- options: Sle,
+ options: Tle,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
@@ -37737,7 +38010,7 @@ function Ole({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: l("captions-off") }
})]
})] }) : null,
- nle.map(([e, n]) => {
+ ale.map(([e, n]) => {
let r = t.sort === e, i = oo(t.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
@@ -37745,9 +38018,9 @@ function Ole({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"data-follow-sort": e,
"data-entity-press": "",
"aria-pressed": r,
- "aria-label": lle(e, n, t.sort, t.dir) || void 0,
+ "aria-label": fle(e, n, t.sort, t.dir) || void 0,
onClick: () => {
- let n = xM(e, t.sort, t.dir);
+ let n = kM(e, t.sort, t.dir);
n && a(n);
},
children: [n, r ? /* @__PURE__ */ (0, z.jsx)(i, { className: "size-3.5" }) : null]
@@ -37757,7 +38030,7 @@ function Ole({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
})] })
});
}
-function kle({ conditions: e, onDrop: t, onClear: n }) {
+function Mle({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -37782,7 +38055,7 @@ function kle({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function Ale({ count: e, onManage: t }) {
+function Nle({ count: e, onManage: t }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-follow-broken": "",
onClick: (e) => {
@@ -37791,12 +38064,12 @@ function Ale({ count: e, onManage: t }) {
dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${l("alert")}<span>${e} 个来源上次检查失败,去<button type="button" class="flink" data-follow-manage>管理关注</button>看原因。</span></div>` }
});
}
-function jle({ pending: e, facets: t, data: n, context: r, props: i }) {
+function Ple({ pending: e, facets: t, data: n, context: r, props: i }) {
let { view: a, helpers: o } = i, s = a.media === "images", c = Ra(e, () => o.listSkeletonHtml(a.media));
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-follow-list-body": "",
"data-grid-reveal": c.fading ? "" : void 0,
- children: [c.layer, e ? null : /* @__PURE__ */ (0, z.jsx)(Mle, {
+ children: [c.layer, e ? null : /* @__PURE__ */ (0, z.jsx)(Fle, {
facets: t,
data: n,
context: r,
@@ -37805,39 +38078,39 @@ function jle({ pending: e, facets: t, data: n, context: r, props: i }) {
})]
});
}
-function Mle({ facets: e, data: t, context: n, props: r, images: i }) {
- let { view: a, helpers: o, actions: s } = r, c = Fle(r), l = i ? {
+function Fle({ facets: e, data: t, context: n, props: r, images: i }) {
+ let { view: a, helpers: o, actions: s } = r, c = Rle(r), l = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
} : {}, u;
return u = e.visible.length ? e.visible.map((t) => {
let i = e.byId.get(t.primary?.source_id), l = i?.author_key && e.authorSources.get(i.author_key) || [], u = t.primary.id;
- return /* @__PURE__ */ (0, z.jsx)(vle, {
+ return /* @__PURE__ */ (0, z.jsx)(xle, {
group: t,
authorSources: l,
media: a.media,
context: n,
- selected: r.selected.has(wM(t, a)),
+ selected: r.selected.has(MM(t, a)),
selectMode: r.selectMode,
- busy: c.busy.get(wM(t, a)) || "",
- failure: c.failures.get(wM(t, a)) || "",
+ busy: c.busy.get(MM(t, a)) || "",
+ failure: c.failures.get(MM(t, a)) || "",
helpers: o,
actions: s,
onStatus: c.status,
onSave: c.save
}, `${u}:${a.media}`);
- }) : /* @__PURE__ */ (0, z.jsx)(Nle, { data: t }), /* @__PURE__ */ (0, z.jsx)("div", {
+ }) : /* @__PURE__ */ (0, z.jsx)(Ile, { data: t }), /* @__PURE__ */ (0, z.jsx)("div", {
"data-follow-list": "",
"data-follow-wall": i ? "" : void 0,
...l,
children: u
});
}
-function wM(e, t) {
- return vM(e, t.media).id;
+function MM(e, t) {
+ return EM(e, t.media).id;
}
-function Nle({ data: e }) {
+function Ile({ data: e }) {
let t = (e.groups || []).length ? x("search-x", "当前筛选下没有更新", "切换媒体类型、创作者、来源或标签后再试。") : (e.sources || []).length ? x("rss", "没有符合条件的更新", "切换状态或来源筛选后再试。") : x("rss", "还没有关注任何来源", "添加创作者或订阅来源后,更新会集中显示在这里。", { actions: "<a class=\"geist-button primary\" href=\"/follow-manage?tab=add\">添加关注</a>" });
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-follow-empty": "",
@@ -37845,22 +38118,22 @@ function Nle({ data: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-var Ple = {
+var Lle = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
-function Fle(e) {
- let { view: t, revision: n, actions: r } = e, [i, a] = (0, R.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, R.useState)(() => /* @__PURE__ */ new Map()), c = lM(t, n).queryKey, l = (e, t, n) => n((n) => {
+function Rle(e) {
+ let { view: t, revision: n, actions: r } = e, [i, a] = (0, R.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, R.useState)(() => /* @__PURE__ */ new Map()), c = _M(t, n).queryKey, l = (e, t, n) => n((n) => {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
}), u = (e, n) => {
- q.setQueryData(c, (r) => r && SM(r, t, e, n));
+ q.setQueryData(c, (r) => r && AM(r, t, e, n));
}, d = () => void q.invalidateQueries({
queryKey: c,
exact: !0
}), f = (e) => {
- let t = fM(q.getQueryData(c));
+ let t = bM(q.getQueryData(c));
for (let n of t?.groups || []) for (let t of [
n.primary,
...n.variants,
@@ -37868,13 +38141,13 @@ function Fle(e) {
]) if (t.id === e) return t.status;
return "new";
}, p = Pn({
- mutationFn: ({ id: e, to: t }) => W(Dj, {
+ mutationFn: ({ id: e, to: t }) => W(Fj, {
item: e,
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(Ple[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
- await W(Dj, {
+ u(t, n), d(), r.toast(Lle[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ await W(Fj, {
item: t,
to: i
}), u(t, i), d();
@@ -37919,8 +38192,8 @@ function Fle(e) {
}
//#endregion
//#region src/react/follow-manage/source-view.tsx
-function TM({ provider: e, label: t }) {
- let n = $ce(e), [r, i] = (0, R.useState)(!1);
+function NM({ provider: e, label: t }) {
+ let n = nle(e), [r, i] = (0, R.useState)(!1);
return !n || r ? t ? /* @__PURE__ */ (0, z.jsx)(z.Fragment, { children: t }) : null : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("img", {
src: n,
alt: "",
@@ -37929,10 +38202,10 @@ function TM({ provider: e, label: t }) {
loading: "lazy",
onError: () => i(!0),
className: "size-3.5 shrink-0 rounded-sm object-contain"
- }), t ? /* @__PURE__ */ (0, z.jsx)($m, { children: t }) : null] });
+ }), t ? /* @__PURE__ */ (0, z.jsx)(Qm, { children: t }) : null] });
}
-function EM({ group: e, name: t }) {
- let { src: n, fallback: r } = Nce(e), [i, a] = (0, R.useState)(0), o = [n, r].filter(Boolean)[i];
+function PM({ group: e, name: t }) {
+ let { src: n, fallback: r } = Ice(e), [i, a] = (0, R.useState)(0), o = [n, r].filter(Boolean)[i];
return o ? /* @__PURE__ */ (0, z.jsx)("img", {
src: o,
alt: "",
@@ -37945,18 +38218,18 @@ function EM({ group: e, name: t }) {
}) : /* @__PURE__ */ (0, z.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: Mce(t)
+ children: Fce(t)
});
}
-function DM({ source: e }) {
- let t = Ij(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
+function FM({ source: e }) {
+ let t = Wj(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
return /* @__PURE__ */ (0, z.jsx)(yi, {
variant: "caption",
color: t,
- children: jce(e)
+ children: Pce(e)
});
}
-function OM({ source: e }) {
+function IM({ source: e }) {
return /* @__PURE__ */ (0, z.jsx)("a", {
href: e.url,
target: "_blank",
@@ -37968,11 +38241,11 @@ function OM({ source: e }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var kM = gi(cO, lO, "text-body-2-medium"), Ile = "粘贴来源链接,或输入创作者名、id…", Lle = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Rle = "识别中…", zle = "站内没有查到来源", AM = (e, t) => `${e}:${t.url}`;
-function Ble({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
+var LM = gi(dO, fO, "text-body-2-medium"), zle = "粘贴来源链接,或输入创作者名、id…", Ble = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Vle = "识别中…", Hle = "站内没有查到来源", RM = (e, t) => `${e}:${t.url}`;
+function Ule({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
return (0, R.useEffect)(() => {
t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });
- }, [t, r]), /* @__PURE__ */ (0, z.jsxs)(hy, {
+ }, [t, r]), /* @__PURE__ */ (0, z.jsxs)(gy, {
ref: t,
triggerRef: e,
isOpen: !0,
@@ -37984,7 +38257,7 @@ function Ble({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
placement: "bottom start",
offset: 4,
"aria-label": "来源建议",
- className: gi(sO, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
+ className: gi(uO, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
children: [i && !n.length ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "px-2 py-1.5",
children: /* @__PURE__ */ (0, z.jsx)(Fi, { label: "正在查找建议" })
@@ -37994,7 +38267,7 @@ function Ble({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
}), /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
"aria-current": t === r ? "true" : void 0,
- className: t === r ? gi(kM, "bg-background-secondary-default") : kM,
+ className: t === r ? gi(LM, "bg-background-secondary-default") : LM,
onMouseDown: (e) => e.preventDefault(),
onClick: () => a(e.value),
children: [
@@ -38014,7 +38287,7 @@ function Ble({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
})] }, `${e.group}-${e.value}`))]
});
}
-function Vle({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
+function Wle({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
let i = (0, R.useRef)(null), [a, o] = (0, R.useState)(!1), s = (e.providers || []).filter((e) => e.followable), c = s.filter((e) => !t.has(e.provider_label)).length, l = c === s.length ? "全部来源" : `${c}/${s.length} 个来源`, u = (e, r) => {
let i = new Set(t);
r ? i.delete(e) : i.add(e), n(i);
@@ -38028,14 +38301,14 @@ function Vle({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
"aria-label": l,
onClick: () => o(!0),
children: l
- }), /* @__PURE__ */ (0, z.jsx)(hy, {
+ }), /* @__PURE__ */ (0, z.jsx)(gy, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom end",
offset: 4,
- className: sO,
- children: /* @__PURE__ */ (0, z.jsxs)(lb, {
+ className: uO,
+ children: /* @__PURE__ */ (0, z.jsxs)(ub, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
children: [s.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
@@ -38051,16 +38324,16 @@ function Vle({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
onClick: () => n(new Set(s.map((e) => e.provider_label))),
children: "全不选"
})]
- }) : /* @__PURE__ */ (0, z.jsx)(EO, { children: "暂无可用来源" }), s.map((e) => {
+ }) : /* @__PURE__ */ (0, z.jsx)(kO, { children: "暂无可用来源" }), s.map((e) => {
let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(GO, {
+ children: [/* @__PURE__ */ (0, z.jsx)(JO, {
isSelected: !t.has(e.provider_label),
onChange: (t) => u(e.provider_label, t),
children: /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, z.jsx)(TM, { provider: e.provider }), e.provider_label]
+ children: [/* @__PURE__ */ (0, z.jsx)(NM, { provider: e.provider }), e.provider_label]
})
}), n ? /* @__PURE__ */ (0, z.jsx)(H, {
variant: "ghost",
@@ -38076,7 +38349,7 @@ function Vle({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
})
})] });
}
-function Hle({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
+function Gle({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
if (e.kind === "error") return /* @__PURE__ */ (0, z.jsx)(G, {
tone: "error",
title: e.line,
@@ -38095,15 +38368,15 @@ function Hle({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
children: e.line
}),
a.length ? a.map((e) => {
- let n = AM(t, e);
- return /* @__PURE__ */ (0, z.jsx)(GO, {
+ let n = RM(t, e);
+ return /* @__PURE__ */ (0, z.jsx)(JO, {
isSelected: !e.known && !r.has(n),
isDisabled: e.known,
onChange: (e) => i(n, e),
children: /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-1.5",
children: [
- /* @__PURE__ */ (0, z.jsx)(TM, { provider: e.provider }),
+ /* @__PURE__ */ (0, z.jsx)(NM, { provider: e.provider }),
/* @__PURE__ */ (0, z.jsx)("b", {
className: "text-body-medium",
children: e.provider_label
@@ -38119,22 +38392,22 @@ function Hle({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
})
}, n);
- }) : /* @__PURE__ */ (0, z.jsx)(EO, { children: zle }),
+ }) : /* @__PURE__ */ (0, z.jsx)(kO, { children: Hle }),
(e.external_searches || []).map((e) => /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, z.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.evidence
- }), /* @__PURE__ */ (0, z.jsx)(kO, {
+ }), /* @__PURE__ */ (0, z.jsx)(MO, {
href: e.url,
children: `${e.label}:${e.query}`
})]
}, e.url)),
- o.length ? /* @__PURE__ */ (0, z.jsx)(EO, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
+ o.length ? /* @__PURE__ */ (0, z.jsx)(kO, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
]
});
}
-function Ule({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
+function Kle({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
let [a, o] = (0, R.useState)(""), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(!1), [p, m] = (0, R.useState)(null), [h, g] = (0, R.useState)(-1), _ = (0, R.useRef)(null), v = (0, R.useRef)(null), [y, b] = (0, R.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, R.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, R.useState)(""), [T, E] = (0, R.useState)(0);
(0, R.useEffect)(() => {
let e = a.trim();
@@ -38146,18 +38419,18 @@ function Ule({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
return () => clearTimeout(t);
}, [a]);
let D = Nn({
- queryKey: Tce(l),
- queryFn: ({ signal: e }) => zce(l, e),
+ queryKey: Oce(l),
+ queryFn: ({ signal: e }) => Hce(l, e),
enabled: l.length > 0 && d
}), O = (0, R.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 } = VO({
- queryKey: wce,
- queryFn: ({ signal: e }) => Rce(e),
- start: (e) => Bce([e]),
+ }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = WO({
+ queryKey: Dce,
+ queryFn: ({ signal: e }) => Vce(e),
+ start: (e) => Uce([e]),
onStarted: () => S(/* @__PURE__ */ new Set()),
onError: (e) => w(U(e)),
onFinish: (e) => {
@@ -38191,14 +38464,14 @@ function Ule({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
}, ne = j?.results || [], re = ne.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !y.has(e.provider_label || "")).map((e) => ({
candidate: e,
- key: AM(t, e)
+ key: RM(t, e)
})).filter((e) => !x.has(e.key))), ie = Pn({
mutationFn: async (e) => {
let t = [], n = [];
E(0);
for (let r of e) {
try {
- let e = await Vce(r.candidate);
+ let e = await Wce(r.candidate);
n.push(e.source);
} catch (e) {
t.push(`${r.candidate.label}:${U(e)}`);
@@ -38206,7 +38479,7 @@ function Ule({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
E((e) => e + 1);
}
if (n.length) try {
- await Jj(n);
+ await nM(n);
} catch (e) {
t.push(U(e));
}
@@ -38216,7 +38489,7 @@ function Ule({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
};
},
onSuccess: (e) => {
- if (iM(), e.failures.length) {
+ if (fM(), e.failures.length) {
w(e.failures.join(";"));
return;
}
@@ -38245,15 +38518,15 @@ function Ule({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
let t = e.relatedTarget;
!e.currentTarget.contains(t) && !v.current?.contains(t) && f(!1);
},
- children: [/* @__PURE__ */ (0, z.jsx)(ak, {
+ children: [/* @__PURE__ */ (0, z.jsx)(ck, {
"aria-label": "来源链接、名字或 id",
- placeholder: Ile,
+ placeholder: zle,
value: a,
leadingIcon: Ze,
isDisabled: n,
onChange: o,
onKeyDown: te
- }), F ? /* @__PURE__ */ (0, z.jsx)(Ble, {
+ }), F ? /* @__PURE__ */ (0, z.jsx)(Ule, {
field: _,
menu: v,
options: O,
@@ -38263,7 +38536,7 @@ function Ule({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
onClose: I
}) : null]
}),
- /* @__PURE__ */ (0, z.jsx)(Vle, {
+ /* @__PURE__ */ (0, z.jsx)(Wle, {
credentials: t,
hidden: y,
onHidden: b,
@@ -38281,9 +38554,9 @@ function Ule({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
/* @__PURE__ */ (0, z.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
- children: [A || M.isPending ? /* @__PURE__ */ (0, z.jsx)(yO, {
+ children: [A || M.isPending ? /* @__PURE__ */ (0, z.jsx)(SO, {
embedded: !0,
- label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : oe ? Lle : Rle),
+ label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : oe ? Ble : Vle),
value: k?.checked,
total: k?.total
}) : null, C ? /* @__PURE__ */ (0, z.jsx)(G, {
@@ -38295,8 +38568,8 @@ function Ule({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
ne.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(OO, { children: "查找结果" }),
- ne.map((e, t) => /* @__PURE__ */ (0, z.jsx)(Hle, {
+ /* @__PURE__ */ (0, z.jsx)(jO, { children: "查找结果" }),
+ ne.map((e, t) => /* @__PURE__ */ (0, z.jsx)(Gle, {
row: e,
at: t,
hidden: y,
@@ -38351,16 +38624,16 @@ function Ule({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
//#endregion
//#region src/react/follow-manage/alias-manager.tsx
-var Wle = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, jM = (e) => e.alias;
-function Gle(e, t, n) {
+var qle = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, zM = (e) => e.alias;
+function Jle(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 MM({ sources: e, name: t, canonicalKey: n }) {
+function BM({ sources: e, name: t, canonicalKey: n }) {
return /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(EM, {
- group: Gle(e, t, n),
+ children: [/* @__PURE__ */ (0, z.jsx)(PM, {
+ group: Jle(e, t, n),
name: t
}), /* @__PURE__ */ (0, z.jsx)("b", {
className: "text-body-medium",
@@ -38368,15 +38641,15 @@ function MM({ sources: e, name: t, canonicalKey: n }) {
})]
});
}
-function Kle({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
+function Yle({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
let [a, o] = (0, R.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), p = Pn({
mutationFn: async (e) => {
let t = 0;
for (let n of e) {
try {
- await Zj(n.canonical, n.alias);
+ await aM(n.canonical, n.alias);
} catch (n) {
- throw t && iM(), Error(`${U(n)}(还有 ${e.length - t} 组没有合并)`);
+ throw t && fM(), Error(`${U(n)}(还有 ${e.length - t} 组没有合并)`);
}
t += 1;
}
@@ -38386,19 +38659,19 @@ function Kle({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
};
},
onSuccess: (e) => {
- c(""), o(/* @__PURE__ */ new Set()), iM(), i(`已合并 ${e.done} 组创作者别名`);
+ c(""), o(/* @__PURE__ */ new Set()), fM(), i(`已合并 ${e.done} 组创作者别名`);
},
onError: (e) => c(U(e))
}), m = Pn({
- mutationFn: (e) => Zj(e.canonical, e.alias),
+ mutationFn: (e) => aM(e.canonical, e.alias),
onSuccess: () => {
- c(""), u(""), f(""), iM(), i("已保存创作者别名");
+ c(""), u(""), f(""), fM(), i("已保存创作者别名");
},
onError: (e) => c(U(e))
}), h = Pn({
- mutationFn: (e) => Hce(e),
+ mutationFn: (e) => Gce(e),
onSuccess: () => {
- c(""), iM(), i("已移除创作者别名");
+ c(""), fM(), i("已移除创作者别名");
},
onError: (e) => c(U(e))
}), g = (e, t) => {
@@ -38408,7 +38681,7 @@ function Kle({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
confirmLabel: t ? "合并全部别名" : "合并所选别名",
onConfirm: () => p.mutateAsync(e)
});
- }, _ = t.filter((e) => a.has(jM(e))), v = t.length > 0 && _.length === t.length, b = K(p.isPending);
+ }, _ = t.filter((e) => a.has(zM(e))), v = t.length > 0 && _.length === t.length, b = K(p.isPending);
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: Mi({
padding: "none",
@@ -38421,10 +38694,10 @@ function Kle({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}),
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(OO, { children: "手动添加别名" }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, z.jsx)(jO, { children: "手动添加别名" }), /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(ak, {
+ /* @__PURE__ */ (0, z.jsx)(ck, {
"aria-label": "规范创作者名",
placeholder: "规范创作者名",
value: l,
@@ -38432,7 +38705,7 @@ function Kle({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, z.jsx)(ak, {
+ /* @__PURE__ */ (0, z.jsx)(ck, {
"aria-label": "平台别名",
placeholder: "平台别名",
value: d,
@@ -38453,13 +38726,13 @@ function Kle({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
]
})]
}),
- s ? /* @__PURE__ */ (0, z.jsx)(DO, { children: s }) : null,
+ s ? /* @__PURE__ */ (0, z.jsx)(AO, { children: s }) : null,
t.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(OO, { children: "待合并" }),
+ /* @__PURE__ */ (0, z.jsx)(jO, { children: "待合并" }),
/* @__PURE__ */ (0, z.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${t.length} 组`
@@ -38481,44 +38754,44 @@ function Kle({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: `全部合并(${t.length})`
})
]
- }), /* @__PURE__ */ (0, z.jsx)(YO, { children: /* @__PURE__ */ (0, z.jsxs)(KO, {
+ }), /* @__PURE__ */ (0, z.jsx)(QO, { children: /* @__PURE__ */ (0, z.jsxs)(YO, {
"aria-label": "待合并创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, z.jsxs)(uS, { children: [
- /* @__PURE__ */ (0, z.jsx)(dS, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(dS, { children: [
+ /* @__PURE__ */ (0, z.jsx)(fS, {
id: "select",
- children: /* @__PURE__ */ (0, z.jsx)(GO, {
+ children: /* @__PURE__ */ (0, z.jsx)(JO, {
slot: null,
isSelected: v,
isIndeterminate: _.length > 0 && !v,
"aria-label": "全选待合并别名",
- onChange: (e) => o(e ? new Set(t.map(jM)) : /* @__PURE__ */ new Set())
+ onChange: (e) => o(e ? new Set(t.map(zM)) : /* @__PURE__ */ new Set())
})
}),
- /* @__PURE__ */ (0, z.jsx)(dS, {
+ /* @__PURE__ */ (0, z.jsx)(fS, {
id: "canonical",
children: "规范创作者"
}),
- /* @__PURE__ */ (0, z.jsx)(dS, {
+ /* @__PURE__ */ (0, z.jsx)(fS, {
id: "alias",
isRowHeader: !0,
children: "平台别名"
}),
- /* @__PURE__ */ (0, z.jsx)(dS, {
+ /* @__PURE__ */ (0, z.jsx)(fS, {
id: "evidence",
children: "依据"
}),
- /* @__PURE__ */ (0, z.jsx)(dS, {
+ /* @__PURE__ */ (0, z.jsx)(fS, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, z.jsx)(pS, { children: t.map((e) => {
- let t = jM(e);
- return /* @__PURE__ */ (0, z.jsxs)(gS, {
+ ] }), /* @__PURE__ */ (0, z.jsx)(mS, { children: t.map((e) => {
+ let t = zM(e);
+ return /* @__PURE__ */ (0, z.jsxs)(_S, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, z.jsx)(vS, { children: /* @__PURE__ */ (0, z.jsx)(GO, {
+ /* @__PURE__ */ (0, z.jsx)(yS, { children: /* @__PURE__ */ (0, z.jsx)(JO, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -38527,16 +38800,16 @@ function Kle({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, z.jsx)(vS, { children: /* @__PURE__ */ (0, z.jsx)(MM, {
+ /* @__PURE__ */ (0, z.jsx)(yS, { children: /* @__PURE__ */ (0, z.jsx)(BM, {
sources: n,
name: e.canonical
}) }),
- /* @__PURE__ */ (0, z.jsx)(vS, { children: e.alias }),
- /* @__PURE__ */ (0, z.jsx)(vS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, z.jsx)(yS, { children: e.alias }),
+ /* @__PURE__ */ (0, z.jsx)(yS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: e.evidence
}) }),
- /* @__PURE__ */ (0, z.jsx)(vS, { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, z.jsx)(yS, { children: /* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
size: "small",
disabled: r,
@@ -38553,27 +38826,27 @@ function Kle({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(OO, { children: "已保存别名" }), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, z.jsx)(jO, { children: "已保存别名" }), /* @__PURE__ */ (0, z.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
- }), e.length ? /* @__PURE__ */ (0, z.jsx)(YO, { children: /* @__PURE__ */ (0, z.jsxs)(KO, {
+ }), e.length ? /* @__PURE__ */ (0, z.jsx)(QO, { children: /* @__PURE__ */ (0, z.jsxs)(YO, {
"aria-label": "已保存创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, z.jsxs)(uS, { children: [/* @__PURE__ */ (0, z.jsx)(dS, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(dS, { children: [/* @__PURE__ */ (0, z.jsx)(fS, {
id: "canonical",
isRowHeader: !0,
children: "规范创作者"
- }), /* @__PURE__ */ (0, z.jsx)(dS, {
+ }), /* @__PURE__ */ (0, z.jsx)(fS, {
id: "aliases",
children: "平台别名"
- })] }), /* @__PURE__ */ (0, z.jsx)(pS, { children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)(gS, {
+ })] }), /* @__PURE__ */ (0, z.jsx)(mS, { children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)(_S, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, z.jsx)(vS, { children: /* @__PURE__ */ (0, z.jsx)(MM, {
+ children: [/* @__PURE__ */ (0, z.jsx)(yS, { children: /* @__PURE__ */ (0, z.jsx)(BM, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
- }) }), /* @__PURE__ */ (0, z.jsx)(vS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
+ }) }), /* @__PURE__ */ (0, z.jsx)(yS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
className: "flex flex-wrap items-center gap-1.5",
children: e.aliases.map((e) => /* @__PURE__ */ (0, z.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",
@@ -38587,7 +38860,7 @@ function Kle({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
...K(h.isPending),
onClick: () => void y({
title: "移除创作者别名",
- body: Wle(e.name),
+ body: qle(e.name),
confirmLabel: "移除创作者别名",
onConfirm: () => h.mutateAsync(e.name)
})
@@ -38607,12 +38880,12 @@ function Kle({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}
//#endregion
//#region src/react/follow-manage/credentials.tsx
-var qle = "这些账号信息存在哪里", Jle = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", Yle = "将清除这个来源在本机和共享副本中的登录凭据。", Xle = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
-function Zle(e, t) {
+var Xle = "这些账号信息存在哪里", Zle = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", Qle = "将清除这个来源在本机和共享副本中的登录凭据。", $le = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
+function eue(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
-function Qle({ row: e }) {
- if (oM(e)) return /* @__PURE__ */ (0, z.jsx)(yi, {
+function tue({ row: e }) {
+ if (mM(e)) return /* @__PURE__ */ (0, z.jsx)(yi, {
variant: "caption",
color: "lime",
children: "已配置"
@@ -38621,19 +38894,19 @@ function Qle({ row: e }) {
return /* @__PURE__ */ (0, z.jsx)(yi, {
variant: "caption",
color: t,
- children: ele[e.requirement] || ""
+ children: rle[e.requirement] || ""
});
}
-function $le({ row: e, readOnly: t, toast: n }) {
- let [r, i] = (0, R.useState)({}), [a, o] = (0, R.useState)(""), s = oM(e), c = Pn({
- mutationFn: (t) => Uce(e.provider, t),
+function nue({ row: e, readOnly: t, toast: n }) {
+ let [r, i] = (0, R.useState)({}), [a, o] = (0, R.useState)(""), s = mM(e), c = Pn({
+ mutationFn: (t) => Kce(e.provider, t),
onSuccess: (e, t) => {
if (e.note) {
o(e.note);
return;
}
o(""), i({}), q.invalidateQueries({
- queryKey: Aj,
+ queryKey: Rj,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");
},
@@ -38649,17 +38922,17 @@ function $le({ row: e, readOnly: t, toast: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, z.jsxs)(EO, { children: [e.why, e.where ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [" ", /* @__PURE__ */ (0, z.jsx)(kO, {
+ /* @__PURE__ */ (0, z.jsxs)(kO, { children: [e.why, e.where ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [" ", /* @__PURE__ */ (0, z.jsx)(MO, {
href: e.where,
children: "去取"
})] }) : null] }),
- e.howto ? /* @__PURE__ */ (0, z.jsx)(EO, { children: e.howto }) : null,
+ e.howto ? /* @__PURE__ */ (0, z.jsx)(kO, { children: e.howto }) : null,
/* @__PURE__ */ (0, z.jsx)("div", {
className: "flex w-full flex-col gap-3",
- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, z.jsx)(ak, {
+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, z.jsx)(ck, {
type: "password",
label: n,
- placeholder: Zle(e, n),
+ placeholder: eue(e, n),
autoComplete: "off",
spellCheck: "false",
isDisabled: t,
@@ -38687,7 +38960,7 @@ function $le({ row: e, readOnly: t, toast: n }) {
...K(c.isPending),
onClick: () => void y({
title: "清除来源凭据",
- body: Yle,
+ body: Qle,
confirmLabel: "清除来源凭据",
danger: !0,
onConfirm: () => c.mutateAsync({})
@@ -38695,9 +38968,9 @@ function $le({ row: e, readOnly: t, toast: n }) {
children: "清除"
}) : null]
}),
- a ? /* @__PURE__ */ (0, z.jsx)(DO, { children: a }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, z.jsx)(EO, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
- e.path ? /* @__PURE__ */ (0, z.jsx)(vO, {
+ a ? /* @__PURE__ */ (0, z.jsx)(AO, { children: a }) : null,
+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, z.jsx)(kO, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
+ e.path ? /* @__PURE__ */ (0, z.jsx)(xO, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
@@ -38705,24 +38978,24 @@ function $le({ row: e, readOnly: t, toast: n }) {
e.world_readable ? /* @__PURE__ */ (0, z.jsx)(G, {
tone: "error",
title: "凭据文件权限过宽",
- children: Xle
+ children: $le
}) : null
]
});
}
-function eue({ row: e, readOnly: t, toast: n }) {
+function rue({ row: e, readOnly: t, toast: n }) {
let r = /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
children: [
/* @__PURE__ */ (0, z.jsx)("span", {
className: "inline-flex size-3.5 shrink-0 items-center justify-center",
- children: /* @__PURE__ */ (0, z.jsx)(TM, { provider: e.provider })
+ children: /* @__PURE__ */ (0, z.jsx)(NM, { provider: e.provider })
}),
/* @__PURE__ */ (0, z.jsx)("b", {
className: "text-body-medium text-text-primary",
children: e.provider_label
}),
- /* @__PURE__ */ (0, z.jsx)(Qle, { row: e }),
+ /* @__PURE__ */ (0, z.jsx)(tue, { row: e }),
e.missing.length ? /* @__PURE__ */ (0, z.jsx)(yi, {
variant: "caption",
color: "rose",
@@ -38732,13 +39005,13 @@ function eue({ row: e, readOnly: t, toast: n }) {
});
return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
- children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, z.jsx)(EO, { children: e.why }) : null]
+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, z.jsx)(kO, { children: e.why }) : null]
}) : /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
- children: [r, /* @__PURE__ */ (0, z.jsx)(MO, {
- summary: oM(e) ? "修改凭据" : "填写凭据",
- defaultOpen: e.requirement === "required" && !oM(e),
- children: /* @__PURE__ */ (0, z.jsx)($le, {
+ children: [r, /* @__PURE__ */ (0, z.jsx)(FO, {
+ summary: mM(e) ? "修改凭据" : "填写凭据",
+ defaultOpen: e.requirement === "required" && !mM(e),
+ children: /* @__PURE__ */ (0, z.jsx)(nue, {
row: e,
readOnly: t,
toast: n
@@ -38746,8 +39019,8 @@ function eue({ row: e, readOnly: t, toast: n }) {
})]
});
}
-function tue({ data: e, readOnly: t, toast: n }) {
- let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !oM(e));
+function iue({ data: e, readOnly: t, toast: n }) {
+ let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !mM(e));
return r.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: Mi({
padding: "none",
@@ -38789,7 +39062,7 @@ function tue({ data: e, readOnly: t, toast: n }) {
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: e.rows.map((e) => /* @__PURE__ */ (0, z.jsx)(eue, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, z.jsx)(rue, {
row: e,
readOnly: t,
toast: n
@@ -38801,13 +39074,13 @@ function tue({ data: e, readOnly: t, toast: n }) {
children: [
/* @__PURE__ */ (0, z.jsx)("b", {
className: "text-body-medium text-text-primary",
- children: qle
+ children: Xle
}),
/* @__PURE__ */ (0, z.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: Jle
+ children: Zle
}),
- /* @__PURE__ */ (0, z.jsx)(vO, {
+ /* @__PURE__ */ (0, z.jsx)(xO, {
path: e.root,
prefix: "凭据文件在 ",
className: "text-body-2-regular text-text-secondary",
@@ -38825,7 +39098,7 @@ function tue({ data: e, readOnly: t, toast: n }) {
}
//#endregion
//#region node_modules/@tanstack/table-core/build/lib/index.mjs
-function NM() {
+function VM() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -38838,24 +39111,24 @@ function NM() {
group: (e) => e
};
}
-function PM(e, t) {
+function HM(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function FM(e, t) {
+function UM(e, t) {
return (n) => {
t.setState((t) => ({
...t,
- [e]: PM(n, t[e])
+ [e]: HM(n, t[e])
}));
};
}
-function IM(e) {
+function WM(e) {
return e instanceof Function;
}
-function nue(e) {
+function aue(e) {
return Array.isArray(e) && e.every((e) => typeof e == "number");
}
-function rue(e, t) {
+function oue(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -38865,7 +39138,7 @@ function rue(e, t) {
};
return r(e), n;
}
-function LM(e, t, n) {
+function GM(e, t, n) {
let r = [], i;
return (a) => {
let o;
@@ -38887,21 +39160,21 @@ function LM(e, t, n) {
return i;
};
}
-function RM(e, t, n, r) {
+function KM(e, t, n, r) {
return {
debug: () => e?.debugAll ?? e[t],
key: !1,
onChange: r
};
}
-function iue(e, t, n, r) {
+function sue(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: LM(() => [
+ getContext: GM(() => [
e,
n,
t,
@@ -38913,13 +39186,13 @@ function iue(e, t, n, r) {
cell: r,
getValue: r.getValue,
renderValue: r.renderValue
- }), RM(e.options, "debugCells", "cell.getContext"))
+ }), KM(e.options, "debugCells", "cell.getContext"))
};
return e._features.forEach((r) => {
r.createCell == null || r.createCell(i, n, t, e);
}, {}), i;
}
-function aue(e, t, n, r) {
+function cue(e, t, n, r) {
let i = {
...e._getDefaultColumnDef(),
...t
@@ -38936,17 +39209,17 @@ function aue(e, t, n, r) {
depth: n,
columnDef: i,
columns: [],
- getFlatColumns: LM(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], RM(e.options, "debugColumns", "column.getFlatColumns")),
- getLeafColumns: LM(() => [e._getOrderColumnsFn()], (e) => {
+ getFlatColumns: GM(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], KM(e.options, "debugColumns", "column.getFlatColumns")),
+ getLeafColumns: GM(() => [e._getOrderColumnsFn()], (e) => {
var t;
return (t = c.columns) != null && t.length ? e(c.columns.flatMap((e) => e.getLeafColumns())) : [c];
- }, RM(e.options, "debugColumns", "column.getLeafColumns"))
+ }, KM(e.options, "debugColumns", "column.getLeafColumns"))
};
for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
return c;
}
-var zM = "debugHeaders";
-function BM(e, t, n) {
+var qM = "debugHeaders";
+function JM(e, t, n) {
let r = {
id: n.id ?? t.id,
column: t,
@@ -38974,42 +39247,42 @@ function BM(e, t, n) {
t.createHeader == null || t.createHeader(r, e);
}), r;
}
-var oue = { createTable: (e) => {
- e.getHeaderGroups = LM(() => [
+var lue = { createTable: (e) => {
+ e.getHeaderGroups = GM(() => [
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 VM(t, [
+ return YM(t, [
...a,
...s,
...o
], e);
- }, RM(e.options, zM, "getHeaderGroups")), e.getCenterHeaderGroups = LM(() => [
+ }, KM(e.options, qM, "getHeaderGroups")), e.getCenterHeaderGroups = GM(() => [
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))), VM(t, n, e, "center")), RM(e.options, zM, "getCenterHeaderGroups")), e.getLeftHeaderGroups = LM(() => [
+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), YM(t, n, e, "center")), KM(e.options, qM, "getCenterHeaderGroups")), e.getLeftHeaderGroups = GM(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left
- ], (t, n, r) => VM(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), RM(e.options, zM, "getLeftHeaderGroups")), e.getRightHeaderGroups = LM(() => [
+ ], (t, n, r) => YM(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), KM(e.options, qM, "getLeftHeaderGroups")), e.getRightHeaderGroups = GM(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.right
- ], (t, n, r) => VM(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), RM(e.options, zM, "getRightHeaderGroups")), e.getFooterGroups = LM(() => [e.getHeaderGroups()], (e) => [...e].reverse(), RM(e.options, zM, "getFooterGroups")), e.getLeftFooterGroups = LM(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), RM(e.options, zM, "getLeftFooterGroups")), e.getCenterFooterGroups = LM(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), RM(e.options, zM, "getCenterFooterGroups")), e.getRightFooterGroups = LM(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), RM(e.options, zM, "getRightFooterGroups")), e.getFlatHeaders = LM(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), RM(e.options, zM, "getFlatHeaders")), e.getLeftFlatHeaders = LM(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), RM(e.options, zM, "getLeftFlatHeaders")), e.getCenterFlatHeaders = LM(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), RM(e.options, zM, "getCenterFlatHeaders")), e.getRightFlatHeaders = LM(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), RM(e.options, zM, "getRightFlatHeaders")), e.getCenterLeafHeaders = LM(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
+ ], (t, n, r) => YM(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), KM(e.options, qM, "getRightHeaderGroups")), e.getFooterGroups = GM(() => [e.getHeaderGroups()], (e) => [...e].reverse(), KM(e.options, qM, "getFooterGroups")), e.getLeftFooterGroups = GM(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), KM(e.options, qM, "getLeftFooterGroups")), e.getCenterFooterGroups = GM(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), KM(e.options, qM, "getCenterFooterGroups")), e.getRightFooterGroups = GM(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), KM(e.options, qM, "getRightFooterGroups")), e.getFlatHeaders = GM(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), KM(e.options, qM, "getFlatHeaders")), e.getLeftFlatHeaders = GM(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), KM(e.options, qM, "getLeftFlatHeaders")), e.getCenterFlatHeaders = GM(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), KM(e.options, qM, "getCenterFlatHeaders")), e.getRightFlatHeaders = GM(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), KM(e.options, qM, "getRightFlatHeaders")), e.getCenterLeafHeaders = GM(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), RM(e.options, zM, "getCenterLeafHeaders")), e.getLeftLeafHeaders = LM(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
+ }), KM(e.options, qM, "getCenterLeafHeaders")), e.getLeftLeafHeaders = GM(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), RM(e.options, zM, "getLeftLeafHeaders")), e.getRightLeafHeaders = LM(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
+ }), KM(e.options, qM, "getLeftLeafHeaders")), e.getRightLeafHeaders = GM(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), RM(e.options, zM, "getRightLeafHeaders")), e.getLeafHeaders = LM(() => [
+ }), KM(e.options, qM, "getRightLeafHeaders")), e.getLeafHeaders = GM(() => [
e.getLeftHeaderGroups(),
e.getCenterHeaderGroups(),
e.getRightHeaderGroups()
@@ -39017,9 +39290,9 @@ var oue = { createTable: (e) => {
...e[0]?.headers ?? [],
...t[0]?.headers ?? [],
...n[0]?.headers ?? []
- ].map((e) => e.getLeafHeaders()).flat(), RM(e.options, zM, "getLeafHeaders"));
+ ].map((e) => e.getLeafHeaders()).flat(), KM(e.options, qM, "getLeafHeaders"));
} };
-function VM(e, t, n, r) {
+function YM(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;
@@ -39037,7 +39310,7 @@ function VM(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 = BM(n, c, {
+ let i = JM(n, c, {
id: [
r,
t,
@@ -39054,7 +39327,7 @@ function VM(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) => BM(n, e, {
+ s(t.map((e, t) => JM(n, e, {
depth: i,
index: t
})), i - 1), o.reverse();
@@ -39072,7 +39345,7 @@ function VM(e, t, n, r) {
});
return c(o[0]?.headers ?? []), o;
}
-var sue = (e, t, n, r, i, a, o) => {
+var uue = (e, t, n, r, i, a, o) => {
let s = {
id: t,
index: r,
@@ -39093,7 +39366,7 @@ var sue = (e, t, n, r, i, a, o) => {
},
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
subRows: a ?? [],
- getLeafRows: () => rue(s.subRows, (e) => e.subRows),
+ getLeafRows: () => oue(s.subRows, (e) => e.subRows),
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
getParentRows: () => {
let e = [], t = s;
@@ -39104,95 +39377,95 @@ var sue = (e, t, n, r, i, a, o) => {
}
return e.reverse();
},
- getAllCells: LM(() => [e.getAllLeafColumns()], (t) => t.map((t) => iue(e, s, t, t.id)), RM(e.options, "debugRows", "getAllCells")),
- _getAllCellsByColumnId: LM(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), RM(e.options, "debugRows", "getAllCellsByColumnId"))
+ getAllCells: GM(() => [e.getAllLeafColumns()], (t) => t.map((t) => sue(e, s, t, t.id)), KM(e.options, "debugRows", "getAllCells")),
+ _getAllCellsByColumnId: GM(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), KM(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;
-}, cue = { createColumn: (e, t) => {
+}, due = { 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();
};
-} }, HM = (e, t, n) => {
+} }, XM = (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));
};
-HM.autoRemove = (e) => QM(e);
-var UM = (e, t, n) => {
+XM.autoRemove = (e) => oN(e);
+var ZM = (e, t, n) => {
var r;
return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));
};
-UM.autoRemove = (e) => QM(e);
-var WM = (e, t, n) => {
+ZM.autoRemove = (e) => oN(e);
+var QM = (e, t, n) => {
var r;
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
};
-WM.autoRemove = (e) => QM(e);
-var GM = (e, t, n) => e.getValue(t)?.includes(n);
-GM.autoRemove = (e) => QM(e);
-var KM = (e, t, n) => !n.some((n) => {
+QM.autoRemove = (e) => oN(e);
+var $M = (e, t, n) => e.getValue(t)?.includes(n);
+$M.autoRemove = (e) => oN(e);
+var eN = (e, t, n) => !n.some((n) => {
var r;
return !((r = e.getValue(t)) != null && r.includes(n));
});
-KM.autoRemove = (e) => QM(e) || !(e != null && e.length);
-var qM = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
-qM.autoRemove = (e) => QM(e) || !(e != null && e.length);
-var JM = (e, t, n) => e.getValue(t) === n;
-JM.autoRemove = (e) => QM(e);
-var YM = (e, t, n) => e.getValue(t) == n;
-YM.autoRemove = (e) => QM(e);
-var XM = (e, t, n) => {
+eN.autoRemove = (e) => oN(e) || !(e != null && e.length);
+var tN = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
+tN.autoRemove = (e) => oN(e) || !(e != null && e.length);
+var nN = (e, t, n) => e.getValue(t) === n;
+nN.autoRemove = (e) => oN(e);
+var rN = (e, t, n) => e.getValue(t) == n;
+rN.autoRemove = (e) => oN(e);
+var iN = (e, t, n) => {
let [r, i] = n, a = e.getValue(t);
return a >= r && a <= i;
};
-XM.resolveFilterValue = (e) => {
+iN.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];
-}, XM.autoRemove = (e) => QM(e) || QM(e[0]) && QM(e[1]);
-var ZM = {
- includesString: HM,
- includesStringSensitive: UM,
- equalsString: WM,
- arrIncludes: GM,
- arrIncludesAll: KM,
- arrIncludesSome: qM,
- equals: JM,
- weakEquals: YM,
- inNumberRange: XM
+}, iN.autoRemove = (e) => oN(e) || oN(e[0]) && oN(e[1]);
+var aN = {
+ includesString: XM,
+ includesStringSensitive: ZM,
+ equalsString: QM,
+ arrIncludes: $M,
+ arrIncludesAll: eN,
+ arrIncludesSome: tN,
+ equals: nN,
+ weakEquals: rN,
+ inNumberRange: iN
};
-function QM(e) {
+function oN(e) {
return e == null || e === "";
}
-var lue = {
+var fue = {
getDefaultColumnDef: () => ({ filterFn: "auto" }),
getInitialState: (e) => ({
columnFilters: [],
...e
}),
getDefaultOptions: (e) => ({
- onColumnFiltersChange: FM("columnFilters", e),
+ onColumnFiltersChange: UM("columnFilters", e),
filterFromLeafRows: !1,
maxLeafRowFilterDepth: 100
}),
createColumn: (e, t) => {
e.getAutoFilterFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- return typeof n == "string" ? ZM.includesString : typeof n == "number" ? ZM.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? ZM.equals : Array.isArray(n) ? ZM.arrIncludes : ZM.weakEquals;
- }, e.getFilterFn = () => IM(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? ZM[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" ? aN.includesString : typeof n == "number" ? aN.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? aN.equals : Array.isArray(n) ? aN.arrIncludes : aN.weakEquals;
+ }, e.getFilterFn = () => WM(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? aN[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 = PM(n, i ? i.value : void 0);
- if ($M(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = HM(n, i ? i.value : void 0);
+ if (sN(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
let o = {
id: e.id,
value: a
@@ -39207,19 +39480,19 @@ var lue = {
createTable: (e) => {
e.setColumnFilters = (t) => {
let n = e.getAllLeafColumns();
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => PM(t, e)?.filter((e) => {
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => HM(t, e)?.filter((e) => {
let t = n.find((t) => t.id === e.id);
- return !(t && $M(t.getFilterFn(), e.value, t));
+ return !(t && sN(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 $M(e, t, n) {
+function sN(e, t, n) {
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
}
-var eN = {
+var cN = {
sum: (e, t, n) => n.reduce((t, n) => {
let r = n.getValue(e);
return t + (typeof r == "number" ? r : 0);
@@ -39255,7 +39528,7 @@ var eN = {
median: (e, t) => {
if (!t.length) return;
let n = t.map((t) => t.getValue(e));
- if (!nue(n)) return;
+ if (!aue(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];
@@ -39263,7 +39536,7 @@ var eN = {
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
-}, uue = {
+}, pue = {
getDefaultColumnDef: () => ({
aggregatedCell: (e) => {
var t;
@@ -39276,7 +39549,7 @@ var eN = {
...e
}),
getDefaultOptions: (e) => ({
- onGroupingChange: FM("grouping", e),
+ onGroupingChange: UM("grouping", e),
groupedColumnMode: "reorder"
}),
createColumn: (e, t) => {
@@ -39289,11 +39562,11 @@ var eN = {
};
}, e.getAutoAggregationFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- if (typeof n == "number") return eN.sum;
- if (Object.prototype.toString.call(n) === "[object Date]") return eN.extent;
+ if (typeof n == "number") return cN.sum;
+ if (Object.prototype.toString.call(n) === "[object Date]") return cN.extent;
}, e.getAggregationFn = () => {
if (!e) throw Error();
- return IM(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? eN[e.columnDef.aggregationFn];
+ return WM(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? cN[e.columnDef.aggregationFn];
};
},
createTable: (e) => {
@@ -39315,27 +39588,27 @@ var eN = {
};
}
};
-function due(e, t, n) {
+function mue(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 fue = {
+var hue = {
getInitialState: (e) => ({
columnOrder: [],
...e
}),
- getDefaultOptions: (e) => ({ onColumnOrderChange: FM("columnOrder", e) }),
+ getDefaultOptions: (e) => ({ onColumnOrderChange: UM("columnOrder", e) }),
createColumn: (e, t) => {
- e.getIndex = LM((e) => [oN(t, e)], (t) => t.findIndex((t) => t.id === e.id), RM(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => oN(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
- let r = oN(t, n);
+ e.getIndex = GM((e) => [mN(t, e)], (t) => t.findIndex((t) => t.id === e.id), KM(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => mN(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
+ let r = mN(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 = LM(() => [
+ }, e._getOrderColumnsFn = GM(() => [
e.getState().columnOrder,
e.getState().grouping,
e.options.groupedColumnMode
@@ -39350,18 +39623,18 @@ var fue = {
}
i = [...i, ...n];
}
- return due(i, t, n);
- }, RM(e.options, "debugTable", "_getOrderColumnsFn"));
+ return mue(i, t, n);
+ }, KM(e.options, "debugTable", "_getOrderColumnsFn"));
}
-}, tN = () => ({
+}, lN = () => ({
left: [],
right: []
-}), pue = {
+}), gue = {
getInitialState: (e) => ({
- columnPinning: tN(),
+ columnPinning: lN(),
...e
}),
- getDefaultOptions: (e) => ({ onColumnPinningChange: FM("columnPinning", e) }),
+ getDefaultOptions: (e) => ({ onColumnPinningChange: UM("columnPinning", e) }),
createColumn: (e, t) => {
e.pin = (n) => {
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
@@ -39385,75 +39658,75 @@ var fue = {
};
},
createRow: (e, t) => {
- e.getCenterVisibleCells = LM(() => [
+ e.getCenterVisibleCells = GM(() => [
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));
- }, RM(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = LM(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ }, KM(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = GM(() => [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"
- })), RM(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = LM(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ })), KM(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = GM(() => [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"
- })), RM(t.options, "debugRows", "getRightVisibleCells"));
+ })), KM(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 ? tN() : e.initialState?.columnPinning ?? tN()), e.getIsSomeColumnsPinned = (t) => {
+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? lN() : e.initialState?.columnPinning ?? lN()), e.getIsSomeColumnsPinned = (t) => {
let n = e.getState().columnPinning;
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
- }, e.getLeftLeafColumns = LM(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), RM(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = LM(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), RM(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = LM(() => [
+ }, e.getLeftLeafColumns = GM(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), KM(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = GM(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), KM(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = GM(() => [
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));
- }, RM(e.options, "debugColumns", "getCenterLeafColumns"));
+ }, KM(e.options, "debugColumns", "getCenterLeafColumns"));
}
};
-function mue(e) {
+function _ue(e) {
return e || (typeof document < "u" ? document : null);
}
-var nN = {
+var uN = {
size: 150,
minSize: 20,
maxSize: 2 ** 53 - 1
-}, rN = () => ({
+}, dN = () => ({
startOffset: null,
startSize: null,
deltaOffset: null,
deltaPercentage: null,
isResizingColumn: !1,
columnSizingStart: []
-}), hue = {
- getDefaultColumnDef: () => nN,
+}), vue = {
+ getDefaultColumnDef: () => uN,
getInitialState: (e) => ({
columnSizing: {},
- columnSizingInfo: rN(),
+ columnSizingInfo: dN(),
...e
}),
getDefaultOptions: (e) => ({
columnResizeMode: "onEnd",
columnResizeDirection: "ltr",
- onColumnSizingChange: FM("columnSizing", e),
- onColumnSizingInfoChange: FM("columnSizingInfo", e)
+ onColumnSizingChange: UM("columnSizing", e),
+ onColumnSizingInfoChange: UM("columnSizingInfo", e)
}),
createColumn: (e, t) => {
e.getSize = () => {
let n = t.getState().columnSizing[e.id];
- return Math.min(Math.max(e.columnDef.minSize ?? nN.minSize, n ?? e.columnDef.size ?? nN.size), e.columnDef.maxSize ?? nN.maxSize);
- }, e.getStart = LM((e) => [
+ return Math.min(Math.max(e.columnDef.minSize ?? uN.minSize, n ?? e.columnDef.size ?? uN.size), e.columnDef.maxSize ?? uN.maxSize);
+ }, e.getStart = GM((e) => [
e,
- oN(t, e),
+ mN(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), RM(t.options, "debugColumns", "getStart")), e.getAfter = LM((e) => [
+ ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), KM(t.options, "debugColumns", "getStart")), e.getAfter = GM((e) => [
e,
- oN(t, e),
+ mN(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), RM(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
+ ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), KM(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
t.setColumnSizing((t) => {
let { [e.id]: n, ...r } = t;
return r;
@@ -39475,8 +39748,8 @@ var nN = {
}, e.getResizeHandler = (n) => {
let r = t.getColumn(e.column.id), i = r?.getCanResize();
return (a) => {
- if (!r || !i || (a.persist == null || a.persist(), aN(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 = aN(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
+ if (!r || !i || (a.persist == null || a.persist(), pN(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 = pN(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) => {
@@ -39501,7 +39774,7 @@ var nN = {
deltaPercentage: null,
columnSizingStart: []
}));
- }, p = mue(n), m = {
+ }, p = _ue(n), m = {
moveHandler: (e) => d(e.clientX),
upHandler: (e) => {
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -39511,8 +39784,8 @@ var nN = {
upHandler: (e) => {
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
}
- }, g = gue() ? { passive: !1 } : !1;
- aN(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 = yue() ? { passive: !1 } : !1;
+ pN(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,
@@ -39528,12 +39801,12 @@ var nN = {
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 ? rN() : e.initialState.columnSizingInfo ?? rN());
+ e.setColumnSizingInfo(t ? dN() : e.initialState.columnSizingInfo ?? dN());
}, 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;
}
-}, iN = null;
-function gue() {
- if (typeof iN == "boolean") return iN;
+}, fN = null;
+function yue() {
+ if (typeof fN == "boolean") return fN;
let e = !1;
try {
let t = { get passive() {
@@ -39543,17 +39816,17 @@ function gue() {
} catch {
e = !1;
}
- return iN = e, iN;
+ return fN = e, fN;
}
-function aN(e) {
+function pN(e) {
return e.type === "touchstart";
}
-var _ue = {
+var bue = {
getInitialState: (e) => ({
columnVisibility: {},
...e
}),
- getDefaultOptions: (e) => ({ onColumnVisibilityChange: FM("columnVisibility", e) }),
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: UM("columnVisibility", e) }),
createColumn: (e, t) => {
e.toggleVisibility = (n) => {
e.getCanHide() && t.setColumnVisibility((t) => ({
@@ -39568,7 +39841,7 @@ var _ue = {
};
},
createRow: (e, t) => {
- e._getAllVisibleCells = LM(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), RM(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = LM(() => [
+ e._getAllVisibleCells = GM(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), KM(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = GM(() => [
e.getLeftVisibleCells(),
e.getCenterVisibleCells(),
e.getRightVisibleCells()
@@ -39576,10 +39849,10 @@ var _ue = {
...e,
...t,
...n
- ], RM(t.options, "debugRows", "getVisibleCells"));
+ ], KM(t.options, "debugRows", "getVisibleCells"));
},
createTable: (e) => {
- let t = (t, n) => LM(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), RM(e.options, "debugColumns", t));
+ let t = (t, n) => GM(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), KM(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) => {
@@ -39592,20 +39865,20 @@ var _ue = {
};
}
};
-function oN(e, t) {
+function mN(e, t) {
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
}
-var vue = { createTable: (e) => {
+var xue = { 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();
};
-} }, yue = {
+} }, Sue = {
getInitialState: (e) => ({
globalFilter: void 0,
...e
}),
getDefaultOptions: (e) => ({
- onGlobalFilterChange: FM("globalFilter", e),
+ onGlobalFilterChange: UM("globalFilter", e),
globalFilterFn: "auto",
getColumnCanGlobalFilter: (t) => {
var n;
@@ -39617,22 +39890,22 @@ var vue = { 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 = () => ZM.includesString, e.getGlobalFilterFn = () => {
+ e.getGlobalAutoFilterFn = () => aN.includesString, e.getGlobalFilterFn = () => {
let { globalFilterFn: t } = e.options;
- return IM(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? ZM[t];
+ return WM(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? aN[t];
}, e.setGlobalFilter = (t) => {
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
}, e.resetGlobalFilter = (t) => {
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
};
}
-}, bue = {
+}, Cue = {
getInitialState: (e) => ({
expanded: {},
...e
}),
getDefaultOptions: (e) => ({
- onExpandedChange: FM("expanded", e),
+ onExpandedChange: UM("expanded", e),
paginateExpandedRows: !0
}),
createTable: (e) => {
@@ -39703,18 +39976,18 @@ var vue = { createTable: (e) => {
};
};
}
-}, sN = 0, cN = 10, lN = () => ({
- pageIndex: sN,
- pageSize: cN
-}), xue = {
+}, hN = 0, gN = 10, _N = () => ({
+ pageIndex: hN,
+ pageSize: gN
+}), wue = {
getInitialState: (e) => ({
...e,
pagination: {
- ...lN(),
+ ..._N(),
...e?.pagination
}
}),
- getDefaultOptions: (e) => ({ onPaginationChange: FM("pagination", e) }),
+ getDefaultOptions: (e) => ({ onPaginationChange: UM("pagination", e) }),
createTable: (e) => {
let t = !1, n = !1;
e._autoResetPageIndex = () => {
@@ -39730,11 +40003,11 @@ var vue = { createTable: (e) => {
e.resetPageIndex(), n = !1;
});
}
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => PM(t, e)), e.resetPagination = (t) => {
- e.setPagination(t ? lN() : e.initialState.pagination ?? lN());
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => HM(t, e)), e.resetPagination = (t) => {
+ e.setPagination(t ? _N() : e.initialState.pagination ?? _N());
}, e.setPageIndex = (t) => {
e.setPagination((n) => {
- let r = PM(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+ let r = HM(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
@@ -39742,13 +40015,13 @@ var vue = { createTable: (e) => {
});
}, e.resetPageIndex = (t) => {
var n;
- e.setPageIndex(t ? sN : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? sN);
+ e.setPageIndex(t ? hN : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? hN);
}, e.resetPageSize = (t) => {
var n;
- e.setPageSize(t ? cN : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? cN);
+ e.setPageSize(t ? gN : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? gN);
}, e.setPageSize = (t) => {
e.setPagination((e) => {
- let n = Math.max(1, PM(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
+ let n = Math.max(1, HM(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -39756,28 +40029,28 @@ var vue = { createTable: (e) => {
};
});
}, e.setPageCount = (t) => e.setPagination((n) => {
- let r = PM(t, e.options.pageCount ?? -1);
+ let r = HM(t, e.options.pageCount ?? -1);
return typeof r == "number" && (r = Math.max(-1, r)), {
...n,
pageCount: r
};
- }), e.getPageOptions = LM(() => [e.getPageCount()], (e) => {
+ }), e.getPageOptions = GM(() => [e.getPageCount()], (e) => {
let t = [];
return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t;
- }, RM(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
+ }, KM(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;
}
-}, uN = () => ({
+}, vN = () => ({
top: [],
bottom: []
-}), Sue = {
+}), Tue = {
getInitialState: (e) => ({
- rowPinning: uN(),
+ rowPinning: vN(),
...e
}),
- getDefaultOptions: (e) => ({ onRowPinningChange: FM("rowPinning", e) }),
+ getDefaultOptions: (e) => ({ onRowPinningChange: UM("rowPinning", e) }),
createRow: (e, t) => {
e.pin = (n, r, i) => {
let a = r ? e.getLeafRows().map((e) => {
@@ -39816,7 +40089,7 @@ var vue = { createTable: (e) => {
};
},
createTable: (e) => {
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? uN() : e.initialState?.rowPinning ?? uN()), e.getIsSomeRowsPinned = (t) => {
+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? vN() : e.initialState?.rowPinning ?? vN()), 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) => {
@@ -39825,22 +40098,22 @@ var vue = { createTable: (e) => {
}) : (n ?? []).map((e) => t.find((t) => t.id === e))).filter(Boolean).map((e) => ({
...e,
position: r
- })), e.getTopRows = LM(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), RM(e.options, "debugRows", "getTopRows")), e.getBottomRows = LM(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), RM(e.options, "debugRows", "getBottomRows")), e.getCenterRows = LM(() => [
+ })), e.getTopRows = GM(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), KM(e.options, "debugRows", "getTopRows")), e.getBottomRows = GM(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), KM(e.options, "debugRows", "getBottomRows")), e.getCenterRows = GM(() => [
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));
- }, RM(e.options, "debugRows", "getCenterRows"));
+ }, KM(e.options, "debugRows", "getCenterRows"));
}
-}, Cue = {
+}, Eue = {
getInitialState: (e) => ({
rowSelection: {},
...e
}),
getDefaultOptions: (e) => ({
- onRowSelectionChange: FM("rowSelection", e),
+ onRowSelectionChange: UM("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableSubRowSelection: !0
@@ -39859,21 +40132,21 @@ var vue = { createTable: (e) => {
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
return e.getRowModel().rows.forEach((t) => {
- dN(i, t.id, r, !0, e);
+ yN(i, t.id, r, !0, e);
}), i;
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = LM(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? fN(e, n) : {
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = GM(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? bN(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, RM(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = LM(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? fN(e, n) : {
+ }, KM(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = GM(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? bN(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, RM(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = LM(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? fN(e, n) : {
+ }, KM(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = GM(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? bN(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, RM(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
+ }, KM(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 = () => {
@@ -39897,17 +40170,17 @@ var vue = { createTable: (e) => {
t.setRowSelection((a) => {
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
let o = { ...a };
- return dN(o, e.id, n, r?.selectChildren ?? !0, t), o;
+ return yN(o, e.id, n, r?.selectChildren ?? !0, t), o;
});
}, e.getIsSelected = () => {
let { rowSelection: n } = t.getState();
- return pN(e, n);
+ return xN(e, n);
}, e.getIsSomeSelected = () => {
let { rowSelection: n } = t.getState();
- return mN(e, n) === "some";
+ return SN(e, n) === "some";
}, e.getIsAllSubRowsSelected = () => {
let { rowSelection: n } = t.getState();
- return mN(e, n) === "all";
+ return SN(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) => {
@@ -39915,16 +40188,16 @@ var vue = { createTable: (e) => {
};
};
}
-}, dN = (e, t, n, r, i) => {
+}, yN = (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) => dN(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) => yN(e, t.id, n, r, i));
};
-function fN(e, t) {
+function bN(e, t) {
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
return e.map((e) => {
var t;
- let o = pN(e, n);
+ let o = xN(e, n);
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
...e,
subRows: a(e.subRows)
@@ -39937,32 +40210,32 @@ function fN(e, t) {
rowsById: i
};
}
-function pN(e, t) {
+function xN(e, t) {
return t[e.id] ?? !1;
}
-function mN(e, t, n) {
+function SN(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() && (pN(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
- let n = mN(e, t);
+ if (!(a && !i) && (e.getCanSelect() && (xN(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
+ let n = SN(e, t);
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
}
}), i ? "all" : a ? "some" : !1;
}
-var hN = /([0-9]+)/gm, wue = (e, t, n) => vN(_N(e.getValue(n)).toLowerCase(), _N(t.getValue(n)).toLowerCase()), Tue = (e, t, n) => vN(_N(e.getValue(n)), _N(t.getValue(n))), Eue = (e, t, n) => gN(_N(e.getValue(n)).toLowerCase(), _N(t.getValue(n)).toLowerCase()), Due = (e, t, n) => gN(_N(e.getValue(n)), _N(t.getValue(n))), Oue = (e, t, n) => {
+var CN = /([0-9]+)/gm, Due = (e, t, n) => EN(TN(e.getValue(n)).toLowerCase(), TN(t.getValue(n)).toLowerCase()), Oue = (e, t, n) => EN(TN(e.getValue(n)), TN(t.getValue(n))), kue = (e, t, n) => wN(TN(e.getValue(n)).toLowerCase(), TN(t.getValue(n)).toLowerCase()), Aue = (e, t, n) => wN(TN(e.getValue(n)), TN(t.getValue(n))), jue = (e, t, n) => {
let r = e.getValue(n), i = t.getValue(n);
return r > i ? 1 : r < i ? -1 : 0;
-}, kue = (e, t, n) => gN(e.getValue(n), t.getValue(n));
-function gN(e, t) {
+}, Mue = (e, t, n) => wN(e.getValue(n), t.getValue(n));
+function wN(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
-function _N(e) {
+function TN(e) {
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
}
-function vN(e, t) {
- let n = e.split(hN).filter(Boolean), r = t.split(hN).filter(Boolean);
+function EN(e, t) {
+ let n = e.split(CN).filter(Boolean), r = t.split(CN).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])) {
@@ -39976,22 +40249,22 @@ function vN(e, t) {
}
return n.length - r.length;
}
-var yN = {
- alphanumeric: wue,
- alphanumericCaseSensitive: Tue,
- text: Eue,
- textCaseSensitive: Due,
- datetime: Oue,
- basic: kue
-}, Aue = [
- oue,
- _ue,
- fue,
- pue,
- cue,
+var DN = {
+ alphanumeric: Due,
+ alphanumericCaseSensitive: Oue,
+ text: kue,
+ textCaseSensitive: Aue,
+ datetime: jue,
+ basic: Mue
+}, Nue = [
lue,
- vue,
- yue,
+ bue,
+ hue,
+ gue,
+ due,
+ fue,
+ xue,
+ Sue,
{
getInitialState: (e) => ({
sorting: [],
@@ -40002,7 +40275,7 @@ var yN = {
sortUndefined: 1
}),
getDefaultOptions: (e) => ({
- onSortingChange: FM("sorting", e),
+ onSortingChange: UM("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
}),
createColumn: (e, t) => {
@@ -40010,13 +40283,13 @@ var yN = {
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 yN.datetime;
- if (typeof n == "string" && (r = !0, n.split(hN).length > 1)) return yN.alphanumeric;
+ if (Object.prototype.toString.call(n) === "[object Date]") return DN.datetime;
+ if (typeof n == "string" && (r = !0, n.split(CN).length > 1)) return DN.alphanumeric;
}
- return r ? yN.text : yN.basic;
+ return r ? DN.text : DN.basic;
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
if (!e) throw Error();
- return IM(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? yN[e.columnDef.sortingFn];
+ return WM(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? DN[e.columnDef.sortingFn];
}, e.toggleSorting = (n, r) => {
let i = e.getNextSortingOrder(), a = n != null;
t.setSorting((o) => {
@@ -40053,15 +40326,15 @@ var yN = {
}, 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());
}
},
- uue,
- bue,
- xue,
- Sue,
+ pue,
Cue,
- hue
+ wue,
+ Tue,
+ Eue,
+ vue
];
-function jue(e) {
- let t = [...Aue, ...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 Pue(e) {
+ let t = [...Nue, ...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 ?? {} };
@@ -40087,7 +40360,7 @@ function jue(e) {
n.setState(n.initialState);
},
setOptions: (e) => {
- let t = PM(e, n.options);
+ let t = HM(e, n.options);
n.options = i(t);
},
getState: () => n.options.state,
@@ -40102,7 +40375,7 @@ function jue(e) {
if (!r && (r = n.getCoreRowModel().rowsById[e], !r)) throw Error();
return r;
},
- _getDefaultColumnDef: LM(() => [n.options.defaultColumn], (e) => (e ??= {}, {
+ _getDefaultColumnDef: GM(() => [n.options.defaultColumn], (e) => (e ??= {}, {
header: (e) => {
let t = e.header.column.columnDef;
return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null;
@@ -40113,20 +40386,20 @@ function jue(e) {
},
...n._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),
...e
- }), RM(e, "debugColumns", "_getDefaultColumnDef")),
+ }), KM(e, "debugColumns", "_getDefaultColumnDef")),
_getColumnDefs: () => n.options.columns,
- getAllColumns: LM(() => [n._getColumnDefs()], (e) => {
+ getAllColumns: GM(() => [n._getColumnDefs()], (e) => {
let t = function(e, r, i) {
return i === void 0 && (i = 0), e.map((e) => {
- let a = aue(n, e, i, r), o = e;
+ let a = cue(n, e, i, r), o = e;
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
});
};
return t(e);
- }, RM(e, "debugColumns", "getAllColumns")),
- getAllFlatColumns: LM(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), RM(e, "debugColumns", "getAllFlatColumns")),
- _getAllFlatColumnsById: LM(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), RM(e, "debugColumns", "getAllFlatColumnsById")),
- getAllLeafColumns: LM(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), RM(e, "debugColumns", "getAllLeafColumns")),
+ }, KM(e, "debugColumns", "getAllColumns")),
+ getAllFlatColumns: GM(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), KM(e, "debugColumns", "getAllFlatColumns")),
+ _getAllFlatColumnsById: GM(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), KM(e, "debugColumns", "getAllFlatColumnsById")),
+ getAllLeafColumns: GM(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), KM(e, "debugColumns", "getAllLeafColumns")),
getColumn: (e) => n._getAllFlatColumnsById()[e]
};
Object.assign(n, c);
@@ -40136,8 +40409,8 @@ function jue(e) {
}
return n;
}
-function bN() {
- return (e) => LM(() => [e.options.data], (t) => {
+function ON() {
+ return (e) => GM(() => [e.options.data], (t) => {
let n = {
rows: [],
flatRows: [],
@@ -40146,7 +40419,7 @@ function bN() {
i === void 0 && (i = 0);
let o = [];
for (let c = 0; c < t.length; c++) {
- let l = sue(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
+ let l = uue(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));
@@ -40155,9 +40428,9 @@ function bN() {
return o;
};
return n.rows = r(t), n;
- }, RM(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
+ }, KM(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
}
-function Mue(e) {
+function Fue(e) {
let t = [], n = (e) => {
var r;
t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);
@@ -40168,8 +40441,8 @@ function Mue(e) {
rowsById: e.rowsById
};
}
-function xN(e) {
- return (e) => LM(() => [
+function kN(e) {
+ return (e) => GM(() => [
e.getState().pagination,
e.getPrePaginationRowModel(),
e.options.paginateExpandedRows ? void 0 : e.getState().expanded
@@ -40182,7 +40455,7 @@ function xN(e) {
rows: a,
flatRows: o,
rowsById: s
- } : Mue({
+ } : Fue({
rows: a,
flatRows: o,
rowsById: s
@@ -40191,32 +40464,32 @@ function xN(e) {
u.flatRows.push(e), e.subRows.length && e.subRows.forEach(d);
};
return u.rows.forEach(d), u;
- }, RM(e.options, "debugTable", "getPaginationRowModel"));
+ }, KM(e.options, "debugTable", "getPaginationRowModel"));
}
//#endregion
//#region node_modules/@tanstack/react-table/build/lib/index.mjs
-function SN(e, t) {
- return e ? Nue(e) ? /*#__PURE__*/ R.createElement(e, t) : e : null;
+function AN(e, t) {
+ return e ? Iue(e) ? /*#__PURE__*/ R.createElement(e, t) : e : null;
}
-function Nue(e) {
- return Pue(e) || typeof e == "function" || Fue(e);
+function Iue(e) {
+ return Lue(e) || typeof e == "function" || jN(e);
}
-function Pue(e) {
+function Lue(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function Fue(e) {
+function jN(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function CN(e) {
+function MN(e) {
let t = {
state: {},
onStateChange: () => {},
renderFallbackValue: null,
...e
- }, [n] = R.useState(() => ({ current: jue(t) })), [r, i] = R.useState(() => n.current.initialState);
+ }, [n] = R.useState(() => ({ current: Pue(t) })), [r, i] = R.useState(() => n.current.initialState);
return n.current.setOptions((t) => ({
...t,
...e,
@@ -40231,7 +40504,7 @@ function CN(e) {
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var Iue = _i({
+var NN = _i({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -40293,8 +40566,8 @@ var Iue = _i({
}
}
});
-function Lue({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = Iue[t];
+function PN({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = NN[t];
return /* @__PURE__ */ (0, z.jsx)("span", {
"aria-hidden": !0,
className: gi("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? gi("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"),
@@ -40304,12 +40577,12 @@ function Lue({ state: e, size: t = "md", shape: n = "pill" }) {
})
});
}
-function wN({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, z.jsx)(Hte, {
+function FN({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, z.jsx)(Bte, {
ref: i,
...a,
className: (t) => gi("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(Lue, {
+ children: (e) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(PN, {
state: e,
size: n,
shape: r
@@ -40321,50 +40594,50 @@ function wN({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/components/legacy-avatar.ts
-var TN = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", EN = (0, R.createContext)({});
+var IN = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", LN = (0, R.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-constant.mjs
-function DN(e) {
+function RN(e) {
let t = (0, R.useRef)(null);
return t.current === null && (t.current = e()), t.current;
}
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
-var ON = typeof window < "u" ? R.useLayoutEffect : R.useEffect, kN = /* @__PURE__ */ (0, R.createContext)(null), AN = (0, R.createContext)({
+var zN = typeof window < "u" ? R.useLayoutEffect : R.useEffect, BN = /* @__PURE__ */ (0, R.createContext)(null), VN = (0, R.createContext)({
transformPagePoint: (e) => e,
isStatic: !1,
reducedMotion: "never"
});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
-function jN(e, t) {
+function HN(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
-function MN(...e) {
+function UN(...e) {
return (t) => {
let n = !1, r = e.map((e) => {
- let r = jN(e, t);
+ let r = HN(e, t);
return !n && typeof r == "function" && (n = !0), r;
});
if (n) return () => {
for (let t = 0; t < r.length; t++) {
let n = r[t];
- typeof n == "function" ? n() : jN(e[t], null);
+ typeof n == "function" ? n() : HN(e[t], null);
}
};
};
}
-function NN(...e) {
- return R.useCallback(MN(...e), e);
+function WN(...e) {
+ return R.useCallback(UN(...e), e);
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
-var PN = class extends R.Component {
+var GN = class extends R.Component {
getSnapshotBeforeUpdate(e) {
let t = this.props.childRef.current;
- if (JT(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
- let e = t.offsetParent, n = JT(e) && e.offsetWidth || 0, r = JT(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
+ if (ZT(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
+ let e = t.offsetParent, n = ZT(e) && e.offsetWidth || 0, r = ZT(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction;
}
return null;
@@ -40374,7 +40647,7 @@ var PN = class extends R.Component {
return this.props.children;
}
};
-function FN({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
+function KN({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
let o = (0, R.useId)(), s = (0, R.useRef)(null), c = (0, R.useRef)({
width: 0,
height: 0,
@@ -40383,7 +40656,7 @@ function FN({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
right: 0,
bottom: 0,
direction: "ltr"
- }), { nonce: l } = (0, R.useContext)(AN), u = NN(s, a === !1 ? void 0 : e.props?.ref ?? e?.ref);
+ }), { nonce: l } = (0, R.useContext)(VN), u = WN(s, a === !1 ? void 0 : e.props?.ref ?? e?.ref);
return (0, R.useInsertionEffect)(() => {
let { width: e, height: u, top: d, left: f, right: p, bottom: m, direction: h } = c.current;
if (t || a === !1 || !s.current || !e || !u) return;
@@ -40403,7 +40676,7 @@ function FN({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
`), () => {
s.current?.removeAttribute("data-motion-pop-id"), b.contains(y) && b.removeChild(y);
};
- }, [t]), (0, z.jsx)(PN, {
+ }, [t]), (0, z.jsx)(GN, {
isPresent: t,
childRef: s,
sizeRef: c,
@@ -40413,9 +40686,9 @@ function FN({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
-var IN = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
- let u = DN(LN), d = (0, R.useId)(), f = (0, R.useRef)(n), p = (0, R.useRef)(r);
- ON(() => {
+var qN = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
+ let u = RN(JN), d = (0, R.useId)(), f = (0, R.useRef)(n), p = (0, R.useRef)(r);
+ zN(() => {
f.current = n, p.current = r;
});
let m = !0, h = (0, R.useMemo)(() => (m = !1, {
@@ -40440,25 +40713,25 @@ var IN = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i,
u.forEach((e, t) => u.set(t, !1));
}, [n]), R.useEffect(() => {
!n && !u.size && r && r();
- }, [n]), e = (0, z.jsx)(FN, {
+ }, [n]), e = (0, z.jsx)(KN, {
pop: o === "popLayout",
isPresent: n,
anchorX: s,
anchorY: c,
root: l,
children: e
- }), (0, z.jsx)(kN.Provider, {
+ }), (0, z.jsx)(BN.Provider, {
value: h,
children: e
});
};
-function LN() {
+function JN() {
return /* @__PURE__ */ new Map();
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
-function RN(e = !0) {
- let t = (0, R.useContext)(kN);
+function YN(e = !0) {
+ let t = (0, R.useContext)(BN);
if (t === null) return [!0, null];
let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, R.useId)();
(0, R.useEffect)(() => {
@@ -40471,16 +40744,16 @@ function RN(e = !0) {
]);
return !n && r ? [!1, o] : [!0];
}
-function zN() {
- return BN((0, R.useContext)(kN));
+function XN() {
+ return ZN((0, R.useContext)(BN));
}
-function BN(e) {
+function ZN(e) {
return e === null || e.isPresent;
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
-var VN = (e) => e.key || "";
-function HN(e) {
+var QN = (e) => e.key || "";
+function $N(e) {
let t = [];
return R.Children.forEach(e, (e) => {
(0, R.isValidElement)(e) && t.push(e);
@@ -40488,12 +40761,12 @@ function HN(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
-var UN = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
- let [u, d] = RN(o), f = (0, R.useMemo)(() => HN(e), [e]), p = o && !u ? [] : f.map(VN), m = (0, R.useRef)(!0), h = (0, R.useRef)(f), g = DN(() => /* @__PURE__ */ new Map()), _ = (0, R.useRef)(/* @__PURE__ */ new Set()), [v, y] = (0, R.useState)(f), [b, x] = (0, R.useState)(f);
- ON(() => {
+var eP = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
+ let [u, d] = YN(o), f = (0, R.useMemo)(() => $N(e), [e]), p = o && !u ? [] : f.map(QN), m = (0, R.useRef)(!0), h = (0, R.useRef)(f), g = RN(() => /* @__PURE__ */ new Map()), _ = (0, R.useRef)(/* @__PURE__ */ new Set()), [v, y] = (0, R.useState)(f), [b, x] = (0, R.useState)(f);
+ zN(() => {
m.current = !1, h.current = f;
for (let e = 0; e < b.length; e++) {
- let t = VN(b[e]);
+ let t = QN(b[e]);
p.includes(t) ? (g.delete(t), _.current.delete(t)) : g.get(t) !== !0 && g.set(t, !1);
}
}, [
@@ -40505,15 +40778,15 @@ var UN = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
if (f !== v) {
let e = [...f];
for (let t = 0; t < b.length; t++) {
- let n = b[t], r = VN(n);
+ let n = b[t], r = QN(n);
p.includes(r) || (e.splice(t, 0, n), S.push(n));
}
- return a === "wait" && S.length && (e = S), x(HN(e)), y(f), null;
+ return a === "wait" && S.length && (e = S), x($N(e)), y(f), null;
}
- let { forceRender: C } = (0, R.useContext)(EN);
+ let { forceRender: C } = (0, R.useContext)(LN);
return (0, z.jsx)(z.Fragment, { children: b.map((e) => {
- let v = VN(e), y = o && !u ? !1 : f === b || p.includes(v);
- return (0, z.jsx)(IN, {
+ let v = QN(e), y = o && !u ? !1 : f === b || p.includes(v);
+ return (0, z.jsx)(qN, {
isPresent: y,
initial: !m.current || n ? void 0 : !1,
custom: t,
@@ -40534,7 +40807,7 @@ var UN = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
children: e
}, v);
}) });
-}, WN = (0, R.createContext)({ strict: !1 }), GN = {
+}, tP = (0, R.createContext)({ strict: !1 }), nP = {
animation: [
"animate",
"variants",
@@ -40571,98 +40844,98 @@ var UN = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
"onViewportLeave"
],
layout: ["layout", "layoutId"]
-}, KN = !1;
-function qN() {
- if (KN) return;
+}, rP = !1;
+function iP() {
+ if (rP) return;
let e = {};
- for (let t in GN) e[t] = { isEnabled: (e) => GN[t].some((t) => !!e[t]) };
- ME(e), KN = !0;
+ for (let t in nP) e[t] = { isEnabled: (e) => nP[t].some((t) => !!e[t]) };
+ FE(e), rP = !0;
}
-function JN() {
- return qN(), $ie();
+function aP() {
+ return iP(), Yie();
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/load-features.mjs
-function YN(e) {
- let t = JN();
+function oP(e) {
+ let t = aP();
for (let n in e) t[n] = {
...t[n],
...e[n]
};
- ME(t);
+ FE(t);
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
-var XN = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
-function ZN(e) {
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || XN.has(e);
+var sP = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
+function cP(e) {
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || sP.has(e);
}
//#endregion
//#region __vite-optional-peer-dep:@emotion/is-prop-valid:framer-motion
-var QN = /* @__PURE__ */ le({ default: () => $N }), $N, eP = se((() => {
- throw $N = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
-})), tP = (e) => !ZN(e);
-function nP(e) {
- typeof e == "function" && (tP = (t) => t.startsWith("on") ? !ZN(t) : e(t));
+var lP = /* @__PURE__ */ le({ default: () => uP }), uP, dP = se((() => {
+ throw uP = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
+})), fP = (e) => !cP(e);
+function pP(e) {
+ typeof e == "function" && (fP = (t) => t.startsWith("on") ? !cP(t) : e(t));
}
try {
- nP((eP(), de(QN)).default);
+ pP((dP(), de(lP)).default);
} catch {}
-function rP(e, t, n) {
+function mP(e, t, n) {
let r = {};
- for (let i in e) (i !== "values" || typeof e.values != "object") && (kT(e[i]) || (tP(i) || n === !0 && ZN(i) || !t && !ZN(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]));
+ for (let i in e) (i !== "values" || typeof e.values != "object") && (MT(e[i]) || (fP(i) || n === !0 && cP(i) || !t && !cP(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]));
return r;
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
-function iP({ children: e, isValidProp: t, ...n }) {
- t && nP(t);
- let r = (0, R.useContext)(AN);
+function hP({ children: e, isValidProp: t, ...n }) {
+ t && pP(t);
+ let r = (0, R.useContext)(VN);
n = {
...r,
...n
- }, n.transition = bT(n.transition, r.transition), n.isStatic = DN(() => n.isStatic);
+ }, n.transition = CT(n.transition, r.transition), n.isStatic = RN(() => n.isStatic);
let i = (0, R.useMemo)(() => n, [
JSON.stringify(n.transition),
n.transformPagePoint,
n.reducedMotion,
n.skipAnimations
]);
- return (0, z.jsx)(AN.Provider, {
+ return (0, z.jsx)(VN.Provider, {
value: i,
children: e
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
-var aP = /* @__PURE__ */ (0, R.createContext)({});
+var gP = /* @__PURE__ */ (0, R.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
-function oP(e, t) {
- if (TE(e)) {
+function _P(e, t) {
+ if (OE(e)) {
let { initial: t, animate: n } = e;
return {
- initial: t === !1 || SE(t) ? t : void 0,
- animate: SE(n) ? n : void 0
+ initial: t === !1 || TE(t) ? t : void 0,
+ animate: TE(n) ? n : void 0
};
}
return e.inherit === !1 ? {} : t;
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
-function sP(e) {
- let { initial: t, animate: n } = oP(e, (0, R.useContext)(aP));
+function vP(e) {
+ let { initial: t, animate: n } = _P(e, (0, R.useContext)(gP));
return (0, R.useMemo)(() => ({
initial: t,
animate: n
- }), [cP(t), cP(n)]);
+ }), [yP(t), yP(n)]);
}
-function cP(e) {
+function yP(e) {
return Array.isArray(e) ? e.join(" ") : e;
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
-var lP = () => ({
+var bP = () => ({
style: {},
transform: {},
transformOrigin: {},
@@ -40670,42 +40943,42 @@ var lP = () => ({
});
//#endregion
//#region node_modules/framer-motion/dist/es/render/html/use-props.mjs
-function uP(e, t, n) {
- for (let r in t) !kT(t[r]) && !rD(r, n) && (e[r] = t[r]);
+function xP(e, t, n) {
+ for (let r in t) !MT(t[r]) && !oD(r, n) && (e[r] = t[r]);
}
-function dP({ transformTemplate: e }, t) {
+function SP({ transformTemplate: e }, t) {
return (0, R.useMemo)(() => {
- let n = lP();
- return QE(n, t, e), Object.assign({}, n.vars, n.style);
+ let n = bP();
+ return tD(n, t, e), Object.assign({}, n.vars, n.style);
}, [t]);
}
-function fP(e, t) {
+function CP(e, t) {
let n = e.style || {}, r = {};
- return uP(r, n, e), Object.assign(r, dP(e, t)), r;
+ return xP(r, n, e), Object.assign(r, SP(e, t)), r;
}
-function pP(e, t) {
- let n = {}, r = fP(e, t);
+function wP(e, t) {
+ let n = {}, r = CP(e, t);
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
-var mP = () => ({
- ...lP(),
+var TP = () => ({
+ ...bP(),
attrs: {}
});
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/use-props.mjs
-function hP(e, t, n, r) {
+function EP(e, t, n, r) {
let i = (0, R.useMemo)(() => {
- let n = mP();
- return aD(n, t, sD(r), e.transformTemplate, e.style), {
+ let n = TP();
+ return cD(n, t, uD(r), e.transformTemplate, e.style), {
...n.attrs,
style: { ...n.style }
};
}, [t]);
if (e.style) {
let t = {};
- uP(t, e.style, e), i.style = {
+ xP(t, e.style, e), i.style = {
...t,
...i.style
};
@@ -40714,7 +40987,7 @@ function hP(e, t, n, r) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
-var gP = [
+var DP = [
"animate",
"circle",
"defs",
@@ -40743,17 +41016,17 @@ var gP = [
];
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
-function _P(e) {
- return typeof e != "string" || e.includes("-") ? !1 : !!(gP.indexOf(e) > -1 || /[A-Z]/u.test(e));
+function OP(e) {
+ return typeof e != "string" || e.includes("-") ? !1 : !!(DP.indexOf(e) > -1 || /[A-Z]/u.test(e));
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/use-render.mjs
-function vP(e, t, n, { latestValues: r }, i, a = !1, o) {
- let s = (o ?? _P(e) ? hP : pP)(t, r, i, e), c = rP(t, typeof e == "string", a), l = e === R.Fragment ? {} : {
+function kP(e, t, n, { latestValues: r }, i, a = !1, o) {
+ let s = (o ?? OP(e) ? EP : wP)(t, r, i, e), c = mP(t, typeof e == "string", a), l = e === R.Fragment ? {} : {
...c,
...s,
ref: n
- }, { children: u } = t, d = (0, R.useMemo)(() => kT(u) ? u.get() : u, [u]);
+ }, { children: u } = t, d = (0, R.useMemo)(() => MT(u) ? u.get() : u, [u]);
return (0, R.createElement)(e, {
...l,
children: d
@@ -40761,24 +41034,24 @@ function vP(e, t, n, { latestValues: r }, i, a = !1, o) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
-function yP({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
+function AP({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
return {
- latestValues: bP(n, r, i, e),
+ latestValues: jP(n, r, i, e),
renderState: t()
};
}
-function bP(e, t, n, r) {
+function jP(e, t, n, r) {
let i = {}, a = r(e, {});
- for (let e in a) i[e] = RD(a[e]);
- let { initial: o, animate: s } = e, c = TE(e), l = EE(e);
+ for (let e in a) i[e] = VD(a[e]);
+ let { initial: o, animate: s } = e, c = OE(e), l = kE(e);
t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
let u = n ? n.initial === !1 : !1;
u ||= o === !1;
let d = u ? s : o;
- if (d && typeof d != "boolean" && !xE(d)) {
+ if (d && typeof d != "boolean" && !wE(d)) {
let t = Array.isArray(d) ? d : [d];
for (let n = 0; n < t.length; n++) {
- let r = TT(e, t[n]);
+ let r = OT(e, t[n]);
if (r) {
let { transitionEnd: e, transition: t, ...n } = r;
for (let e in n) {
@@ -40795,19 +41068,19 @@ function bP(e, t, n, r) {
}
return i;
}
-var xP = (e) => (t, n) => {
- let r = (0, R.useContext)(aP), i = (0, R.useContext)(kN), a = () => yP(e, t, r, i);
- return n ? a() : DN(a);
-}, SP = /*@__PURE__*/ xP({
- scrapeMotionValuesFromProps: iD,
- createRenderState: lP
-}), CP = /*@__PURE__*/ xP({
- scrapeMotionValuesFromProps: cD,
- createRenderState: mP
-}), wP = Symbol.for("motionComponentSymbol");
+var MP = (e) => (t, n) => {
+ let r = (0, R.useContext)(gP), i = (0, R.useContext)(BN), a = () => AP(e, t, r, i);
+ return n ? a() : RN(a);
+}, NP = /*@__PURE__*/ MP({
+ scrapeMotionValuesFromProps: sD,
+ createRenderState: bP
+}), PP = /*@__PURE__*/ MP({
+ scrapeMotionValuesFromProps: dD,
+ createRenderState: TP
+}), FP = Symbol.for("motionComponentSymbol");
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
-function TP(e, t, n) {
+function IP(e, t, n) {
let r = (0, R.useRef)(n);
(0, R.useInsertionEffect)(() => {
r.current = n;
@@ -40826,16 +41099,16 @@ function TP(e, t, n) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
-var EP = (0, R.createContext)({});
+var LP = (0, R.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
-function DP(e) {
+function RP(e) {
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
-function OP(e, t, n, r, i, a) {
- let { visualElement: o } = (0, R.useContext)(aP), s = (0, R.useContext)(WN), c = (0, R.useContext)(kN), l = (0, R.useContext)(AN), u = l.reducedMotion, d = l.skipAnimations, f = (0, R.useRef)(null), p = (0, R.useRef)(!1);
+function zP(e, t, n, r, i, a) {
+ let { visualElement: o } = (0, R.useContext)(gP), s = (0, R.useContext)(tP), c = (0, R.useContext)(BN), l = (0, R.useContext)(VN), u = l.reducedMotion, d = l.skipAnimations, f = (0, R.useRef)(null), p = (0, R.useRef)(!1);
r ||= s.renderer, !f.current && r && (f.current = r(e, {
visualState: t,
parent: o,
@@ -40846,14 +41119,14 @@ function OP(e, t, n, r, i, a) {
skipAnimations: d,
isSVG: a
}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
- let m = f.current, h = (0, R.useContext)(EP);
- m && !m.projection && i && (m.type === "html" || m.type === "svg") && kP(f.current, n, i, h);
+ let m = f.current, h = (0, R.useContext)(LP);
+ m && !m.projection && i && (m.type === "html" || m.type === "svg") && BP(f.current, n, i, h);
let g = (0, R.useRef)(!1);
(0, R.useInsertionEffect)(() => {
m && g.current && m.update(n, c);
});
- let _ = n[MT], v = (0, R.useRef)(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
- return ON(() => {
+ let _ = n[FT], v = (0, R.useRef)(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
+ return zN(() => {
p.current = !0, m && (g.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), v.current && m.animationState && m.animationState.animateChanges());
}), (0, R.useEffect)(() => {
m && (!v.current && m.animationState && m.animationState.animateChanges(), v.current &&= (queueMicrotask(() => {
@@ -40861,12 +41134,12 @@ function OP(e, t, n, r, i, a) {
}), !1), m.enteringChildren = void 0);
}), m;
}
-function kP(e, t, n, r) {
+function BP(e, t, n, r) {
let { layoutId: i, layout: a, drag: o, dragConstraints: s, layoutScroll: c, layoutRoot: l, layoutAnchor: u, layoutCrossfade: d } = t;
- e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : AP(e.parent)), e.projection.setOptions({
+ e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : VP(e.parent)), e.projection.setOptions({
layoutId: i,
layout: a,
- alwaysMeasureLayout: !!o || s && DP(s),
+ alwaysMeasureLayout: !!o || s && RP(s),
visualElement: e,
animationType: typeof a == "string" ? a : "both",
initialPromotionConfig: r,
@@ -40876,46 +41149,46 @@ function kP(e, t, n, r) {
layoutAnchor: u
});
}
-function AP(e) {
- if (e) return e.options.allowProjection === !1 ? AP(e.parent) : e.projection;
+function VP(e) {
+ if (e) return e.options.allowProjection === !1 ? VP(e.parent) : e.projection;
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/index.mjs
-function jP(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
- r && YN(r);
- let a = n ? n === "svg" : _P(e), o = a ? CP : SP;
+function HP(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
+ r && oP(r);
+ let a = n ? n === "svg" : OP(e), o = a ? PP : NP;
function s(n, s) {
let c, l = {
- ...(0, R.useContext)(AN),
+ ...(0, R.useContext)(VN),
...n,
- layoutId: MP(n)
- }, { isStatic: u } = l, d = sP(n), f = o(n, u);
+ layoutId: UP(n)
+ }, { isStatic: u } = l, d = vP(n), f = o(n, u);
if (!u && typeof window < "u") {
- NP(l, r);
- let t = PP(l);
- c = t.MeasureLayout, d.visualElement = OP(e, f, l, i, t.ProjectionNode, a);
+ WP(l, r);
+ let t = GP(l);
+ c = t.MeasureLayout, d.visualElement = zP(e, f, l, i, t.ProjectionNode, a);
}
- return (0, z.jsxs)(aP.Provider, {
+ return (0, z.jsxs)(gP.Provider, {
value: d,
children: [c && d.visualElement ? (0, z.jsx)(c, {
visualElement: d.visualElement,
...l
- }) : null, vP(e, n, TP(f, d.visualElement, s), f, u, t, a)]
+ }) : null, kP(e, n, IP(f, d.visualElement, s), f, u, t, a)]
});
}
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
let c = (0, R.forwardRef)(s);
- return c[wP] = e, c;
+ return c[FP] = e, c;
}
-function MP({ layoutId: e }) {
- let t = (0, R.useContext)(EN).id;
+function UP({ layoutId: e }) {
+ let t = (0, R.useContext)(LN).id;
return t && e !== void 0 ? t + "-" + e : e;
}
-function NP(e, t) {
- (0, R.useContext)(WN).strict;
+function WP(e, t) {
+ (0, R.useContext)(tP).strict;
}
-function PP(e) {
- let { drag: t, layout: n } = JN();
+function GP(e) {
+ let { drag: t, layout: n } = aP();
if (!t && !n) return {};
let r = {
...t,
@@ -40928,20 +41201,20 @@ function PP(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
-function FP(e, t) {
- if (typeof Proxy > "u") return jP;
- let n = /* @__PURE__ */ new Map(), r = (n, r) => jP(n, r, e, t);
- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, jP(a, void 0, e, t)), n.get(a)) });
+function KP(e, t) {
+ if (typeof Proxy > "u") return HP;
+ let n = /* @__PURE__ */ new Map(), r = (n, r) => HP(n, r, e, t);
+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, HP(a, void 0, e, t)), n.get(a)) });
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
-var IP = (e, t) => t.isSVG ?? _P(e) ? new gae(t) : new uae(t, { allowProjection: e !== R.Fragment }), LP = class extends PE {
+var qP = (e, t) => t.isSVG ?? OP(e) ? new fae(t) : new oae(t, { allowProjection: e !== R.Fragment }), JP = class extends LE {
constructor(e) {
- super(e), e.animationState ||= xae(e);
+ super(e), e.animationState ||= _ae(e);
}
updateAnimationControlsSubscription() {
let { animate: e } = this.node.getProps();
- xE(e) && (this.unmountControls = e.subscribe(this.node));
+ wE(e) && (this.unmountControls = e.subscribe(this.node));
}
mount() {
this.updateAnimationControlsSubscription();
@@ -40953,11 +41226,11 @@ var IP = (e, t) => t.isSVG ?? _P(e) ? new gae(t) : new uae(t, { allowProjection:
unmount() {
this.node.animationState.reset(), this.unmountControls?.();
}
-}, RP = 0, zP = {
- animation: { Feature: LP },
- exit: { Feature: class extends PE {
+}, YP = 0, XP = {
+ animation: { Feature: JP },
+ exit: { Feature: class extends LE {
constructor() {
- super(...arguments), this.id = RP++, this.isExitComplete = !1;
+ super(...arguments), this.id = YP++, this.isExitComplete = !1;
}
update() {
if (!this.node.presenceContext) return;
@@ -40967,7 +41240,7 @@ var IP = (e, t) => t.isSVG ?? _P(e) ? new gae(t) : new uae(t, { allowProjection:
if (this.isExitComplete) {
let { initial: e, custom: t } = this.node.getProps();
if (typeof e == "string" || typeof e == "object" && e && !Array.isArray(e)) {
- let n = ET(this.node, e, t);
+ let n = kT(this.node, e, t);
if (n) {
let { transition: e, transitionEnd: t, ...r } = n;
for (let e in r) this.node.getValue(e)?.jump(r[e]);
@@ -40992,21 +41265,21 @@ var IP = (e, t) => t.isSVG ?? _P(e) ? new gae(t) : new uae(t, { allowProjection:
};
//#endregion
//#region node_modules/framer-motion/dist/es/events/event-info.mjs
-function BP(e) {
+function ZP(e) {
return { point: {
x: e.pageX,
y: e.pageY
} };
}
-var VP = (e) => (t) => eE(t) && e(t, BP(t));
+var QP = (e) => (t) => rE(t) && e(t, ZP(t));
//#endregion
//#region node_modules/framer-motion/dist/es/events/add-pointer-event.mjs
-function HP(e, t, n, r) {
- return LD(e, t, VP(n), r);
+function $P(e, t, n, r) {
+ return BD(e, t, QP(n), r);
}
//#endregion
//#region node_modules/framer-motion/dist/es/utils/get-context-window.mjs
-var UP = ({ current: e }) => e ? e.ownerDocument.defaultView : null, WP = /*#__PURE__*/ new Set(["auto", "scroll"]), GP = class {
+var eF = ({ current: e }) => e ? e.ownerDocument.defaultView : null, tF = /*#__PURE__*/ new Set(["auto", "scroll"]), nF = class {
constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: a = 3, element: o } = {}) {
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (e) => {
this.handleScroll(e.target);
@@ -41014,13 +41287,13 @@ var UP = ({ current: e }) => e ? e.ownerDocument.defaultView : null, WP = /*#__P
this.handleScroll(window);
}, this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- this.lastRawMoveEventInfo && (this.lastMoveEventInfo = KP(this.lastRawMoveEventInfo, this.transformPagePoint));
- let e = JP(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = doe(e.offset, {
+ this.lastRawMoveEventInfo && (this.lastMoveEventInfo = rF(this.lastRawMoveEventInfo, this.transformPagePoint));
+ let e = aF(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = soe(e.offset, {
x: 0,
y: 0
}) >= this.distanceThreshold;
if (!t && !n) return;
- let { point: r } = e, { timestamp: i } = DC;
+ let { point: r } = e, { timestamp: i } = AC;
this.history.push({
...r,
timestamp: i
@@ -41028,33 +41301,33 @@ var UP = ({ current: e }) => e ? e.ownerDocument.defaultView : null, WP = /*#__P
let { onStart: a, onMove: o } = this.handlers;
t || (a && a(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), o && o(this.lastMoveEvent, e);
}, this.handlePointerMove = (e, t) => {
- this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = KP(t, this.transformPagePoint), TC.update(this.updatePoint, !0);
+ this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = rF(t, this.transformPagePoint), OC.update(this.updatePoint, !0);
}, this.handlePointerUp = (e, t) => {
this.end();
let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
if ((this.dragSnapToOrigin || !this.startEvent) && i && i(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- let a = JP(e.type === "pointercancel" ? this.lastMoveEventInfo : KP(t, this.transformPagePoint), this.history);
+ let a = aF(e.type === "pointercancel" ? this.lastMoveEventInfo : rF(t, this.transformPagePoint), this.history);
this.startEvent && n && n(e, a), r && r(e, a);
- }, !eE(e)) return;
+ }, !rE(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = KP(BP(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = DC;
+ let s = rF(ZP(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = AC;
this.history = [{
...c,
timestamp: l
}];
let { onSessionStart: u } = t;
- u && u(e, JP(s, this.history));
+ u && u(e, aF(s, this.history));
let d = {
passive: !0,
capture: !0
};
- this.removeListeners = qS(HP(this.contextWindow, "pointermove", this.handlePointerMove, d), HP(this.contextWindow, "pointerup", this.handlePointerUp, d), HP(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
+ this.removeListeners = XS($P(this.contextWindow, "pointermove", this.handlePointerMove, d), $P(this.contextWindow, "pointerup", this.handlePointerUp, d), $P(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
}
startScrollTracking(e) {
let t = e.parentElement;
for (; t;) {
let e = getComputedStyle(t);
- (WP.has(e.overflowX) || WP.has(e.overflowY)) && this.scrollPositions.set(t, {
+ (tF.has(e.overflowX) || tF.has(e.overflowY)) && this.scrollPositions.set(t, {
x: t.scrollLeft,
y: t.scrollTop
}), t = t.parentElement;
@@ -41079,51 +41352,51 @@ var UP = ({ current: e }) => e ? e.ownerDocument.defaultView : null, WP = /*#__P
x: r.x - t.x,
y: r.y - t.y
};
- (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), TC.update(this.updatePoint, !0));
+ (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), OC.update(this.updatePoint, !0));
}
updateHandlers(e) {
this.handlers = e;
}
end() {
- this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), EC(this.updatePoint);
+ this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), kC(this.updatePoint);
}
};
-function KP(e, t) {
+function rF(e, t) {
return t ? { point: t(e.point) } : e;
}
-function qP(e, t) {
+function iF(e, t) {
return {
x: e.x - t.x,
y: e.y - t.y
};
}
-function JP({ point: e }, t) {
+function aF({ point: e }, t) {
return {
point: e,
- delta: qP(e, XP(t)),
- offset: qP(e, YP(t)),
- velocity: ZP(t, .1)
+ delta: iF(e, sF(t)),
+ offset: iF(e, oF(t)),
+ velocity: cF(t, .1)
};
}
-function YP(e) {
+function oF(e) {
return e[0];
}
-function XP(e) {
+function sF(e) {
return e[e.length - 1];
}
-function ZP(e, t) {
+function cF(e, t) {
if (e.length < 2) return {
x: 0,
y: 0
};
- let n = e.length - 1, r = null, i = XP(e);
- for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ XS(t)));) n--;
+ let n = e.length - 1, r = null, i = sF(e);
+ for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ $S(t)));) n--;
if (!r) return {
x: 0,
y: 0
};
- r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ XS(t) * 2 && (r = e[1]);
- let a = /* @__PURE__ */ ZS(i.timestamp - r.timestamp);
+ r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ $S(t) * 2 && (r = e[1]);
+ let a = /* @__PURE__ */ eC(i.timestamp - r.timestamp);
if (a === 0) return {
x: 0,
y: 0
@@ -41136,86 +41409,86 @@ function ZP(e, t) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs
-function QP(e, { min: t, max: n }, r) {
- return t !== void 0 && e < t ? e = r ? uw(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? uw(n, e, r.max) : Math.min(e, n)), e;
+function lF(e, { min: t, max: n }, r) {
+ return t !== void 0 && e < t ? e = r ? pw(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? pw(n, e, r.max) : Math.min(e, n)), e;
}
-function $P(e, t, n) {
+function uF(e, t, n) {
return {
min: t === void 0 ? void 0 : e.min + t,
max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
};
}
-function eF(e, { top: t, left: n, bottom: r, right: i }) {
+function dF(e, { top: t, left: n, bottom: r, right: i }) {
return {
- x: $P(e.x, n, i),
- y: $P(e.y, t, r)
+ x: uF(e.x, n, i),
+ y: uF(e.y, t, r)
};
}
-function tF(e, t) {
+function fF(e, t) {
let n = t.min - e.min, r = t.max - e.max;
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
min: n,
max: r
};
}
-function nF(e, t) {
+function pF(e, t) {
return {
- x: tF(e.x, t.x),
- y: tF(e.y, t.y)
+ x: fF(e.x, t.x),
+ y: fF(e.y, t.y)
};
}
-function rF(e, t) {
- let n = .5, r = gD(e), i = gD(t);
- return i > r ? n = /* @__PURE__ */ JS(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ JS(e.min, e.max - i, t.min)), BS(0, 1, n);
+function mF(e, t) {
+ let n = .5, r = yD(e), i = yD(t);
+ return i > r ? n = /* @__PURE__ */ ZS(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ ZS(e.min, e.max - i, t.min)), US(0, 1, n);
}
-function iF(e, t) {
+function hF(e, t) {
let n = {};
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
}
-var aF = .35;
-function oF(e = aF) {
- return e === !1 ? e = 0 : e === !0 && (e = aF), {
- x: sF(e, "left", "right"),
- y: sF(e, "top", "bottom")
+var gF = .35;
+function _F(e = gF) {
+ return e === !1 ? e = 0 : e === !0 && (e = gF), {
+ x: vF(e, "left", "right"),
+ y: vF(e, "top", "bottom")
};
}
-function sF(e, t, n) {
+function vF(e, t, n) {
return {
- min: cF(e, t),
- max: cF(e, n)
+ min: yF(e, t),
+ max: yF(e, n)
};
}
-function cF(e, t) {
+function yF(e, t) {
return typeof e == "number" ? e : e[t] || 0;
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
-var lF = /* @__PURE__ */ new WeakMap(), uF = class {
+var bF = /* @__PURE__ */ new WeakMap(), xF = class {
constructor(e) {
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
x: 0,
y: 0
- }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = bE(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = CE(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
}
start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {
let { presenceContext: r } = this.visualElement;
if (r && r.isPresent === !1) return;
let i = (e) => {
- t && this.snapToCursor(BP(e).point), this.stopAnimation();
+ t && this.snapToCursor(ZP(e).point), this.stopAnimation();
}, a = (e, t) => {
let { drag: n, dragPropagation: r, onDragStart: i } = this.getProps();
- if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = Oie(n), !this.openDragLock)) return;
- this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), MD((e) => {
+ if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = wie(n), !this.openDragLock)) return;
+ this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), FD((e) => {
let t = this.getAxisMotionValue(e).get() || 0;
- if (QC.test(t)) {
+ if (tw.test(t)) {
let { projection: n } = this.visualElement;
if (n && n.layout) {
let r = n.layout.layoutBox[e];
- r && (t = gD(r) * (parseFloat(t) / 100));
+ r && (t = yD(r) * (parseFloat(t) / 100));
}
}
this.originPoint[e] = t;
- }), i && TC.update(() => i(e, t), !1, !0), AT(this.visualElement, "transform");
+ }), i && OC.update(() => i(e, t), !1, !0), NT(this.visualElement, "transform");
let { animationState: a } = this.visualElement;
a && a.setActive("whileDrag", !0);
}, o = (e, t) => {
@@ -41224,10 +41497,10 @@ var lF = /* @__PURE__ */ new WeakMap(), uF = class {
if (!n && !this.openDragLock) return;
let { offset: o } = t;
if (r && this.currentDirection === null) {
- this.currentDirection = mF(o), this.currentDirection !== null && i && i(this.currentDirection);
+ this.currentDirection = Rue(o), this.currentDirection !== null && i && i(this.currentDirection);
return;
}
- this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && TC.update(() => a(e, t), !1, !0);
+ this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && OC.update(() => a(e, t), !1, !0);
}, s = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
}, c = () => {
@@ -41237,7 +41510,7 @@ var lF = /* @__PURE__ */ new WeakMap(), uF = class {
y: 0
});
}, { dragSnapToOrigin: l } = this.getProps();
- this.panSession = new GP(e, {
+ this.panSession = new nF(e, {
onSessionStart: i,
onStart: a,
onMove: o,
@@ -41247,7 +41520,7 @@ var lF = /* @__PURE__ */ new WeakMap(), uF = class {
transformPagePoint: this.visualElement.getTransformPagePoint(),
dragSnapToOrigin: l,
distanceThreshold: n,
- contextWindow: UP(this.visualElement),
+ contextWindow: eF(this.visualElement),
element: this.visualElement.current
});
}
@@ -41257,7 +41530,7 @@ var lF = /* @__PURE__ */ new WeakMap(), uF = class {
let { velocity: a } = r;
this.startAnimation(a);
let { onDragEnd: o } = this.getProps();
- o && TC.postRender(() => o(n, r));
+ o && OC.postRender(() => o(n, r));
}
cancel() {
this.isDragging = !1;
@@ -41271,32 +41544,32 @@ var lF = /* @__PURE__ */ new WeakMap(), uF = class {
}
updateAxis(e, t, n) {
let { drag: r } = this.getProps();
- if (!n || !pF(e, r, this.currentDirection)) return;
+ if (!n || !wF(e, r, this.currentDirection)) return;
let i = this.getAxisMotionValue(e), a = this.originPoint[e] + n[e];
- this.constraints && this.constraints[e] && (a = QP(a, this.constraints[e], this.elastic[e])), i.set(a);
+ this.constraints && this.constraints[e] && (a = lF(a, this.constraints[e], this.elastic[e])), i.set(a);
}
resolveConstraints() {
let { dragConstraints: e, dragElastic: t } = this.getProps(), n = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, r = this.constraints;
- e && DP(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? eF(n.layoutBox, e) : !1, this.elastic = oF(t), r !== this.constraints && !DP(e) && n && this.constraints && !this.hasMutatedConstraints && MD((e) => {
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = iF(n.layoutBox[e], this.constraints[e]));
+ e && RP(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? dF(n.layoutBox, e) : !1, this.elastic = _F(t), r !== this.constraints && !RP(e) && n && this.constraints && !this.hasMutatedConstraints && FD((e) => {
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = hF(n.layoutBox[e], this.constraints[e]));
});
}
resolveRefConstraints() {
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
- if (!e || !DP(e)) return !1;
+ if (!e || !RP(e)) return !1;
let n = e.current, { projection: r } = this.visualElement;
if (!r || !r.layout) return !1;
r.root && (r.root.scroll = void 0, r.root.updateScroll());
- let i = iae(n, r.root, this.visualElement.getTransformPagePoint()), a = nF(r.layout.layoutBox, i);
+ let i = eae(n, r.root, this.visualElement.getTransformPagePoint()), a = pF(r.layout.layoutBox, i);
if (t) {
- let e = t(tae(a));
- this.hasMutatedConstraints = !!e, e && (a = FE(e));
+ let e = t(Zie(a));
+ this.hasMutatedConstraints = !!e, e && (a = RE(e));
}
return a;
}
startAnimation(e) {
- let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = MD((o) => {
- if (!pF(o, t, this.currentDirection)) return;
+ let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = FD((o) => {
+ if (!wF(o, t, this.currentDirection)) return;
let c = s && s[o] || {};
(a === !0 || a === o) && (c = {
min: 0,
@@ -41319,65 +41592,65 @@ var lF = /* @__PURE__ */ new WeakMap(), uF = class {
}
startAxisValueAnimation(e, t) {
let n = this.getAxisMotionValue(e);
- return AT(this.visualElement, e), n.start(ST(e, n, 0, t, this.visualElement, !1));
+ return NT(this.visualElement, e), n.start(TT(e, n, 0, t, this.visualElement, !1));
}
stopAnimation() {
- MD((e) => this.getAxisMotionValue(e).stop());
+ FD((e) => this.getAxisMotionValue(e).stop());
}
getAxisMotionValue(e) {
let t = `_drag${e.toUpperCase()}`;
return this.visualElement.getProps()[t] || this.visualElement.getValue(e, this.visualElement.latestValues[e] ?? 0);
}
snapToCursor(e) {
- MD((t) => {
+ FD((t) => {
let { drag: n } = this.getProps();
- if (!pF(t, n, this.currentDirection)) return;
+ if (!wF(t, n, this.currentDirection)) return;
let { projection: r } = this.visualElement, i = this.getAxisMotionValue(t);
if (r && r.layout) {
let { min: n, max: a } = r.layout.layoutBox[t], o = i.get() || 0;
- i.set(e[t] - uw(n, a, .5) + o);
+ i.set(e[t] - pw(n, a, .5) + o);
}
});
}
scalePositionWithinConstraints() {
if (!this.visualElement.current) return;
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
- if (!DP(t) || !n || !this.constraints) return;
+ if (!RP(t) || !n || !this.constraints) return;
this.stopAnimation();
let r = {
x: 0,
y: 0
};
- MD((e) => {
+ FD((e) => {
let t = this.getAxisMotionValue(e);
if (t && this.constraints !== !1) {
let n = t.get();
- r[e] = rF({
+ r[e] = mF({
min: n,
max: n
}, this.constraints[e]);
}
});
let { transformTemplate: i } = this.visualElement.getProps();
- this.visualElement.current.style.transform = i ? i({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), MD((t) => {
- if (!pF(t, e, null)) return;
+ this.visualElement.current.style.transform = i ? i({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), FD((t) => {
+ if (!wF(t, e, null)) return;
let n = this.getAxisMotionValue(t), { min: i, max: a } = this.constraints[t];
- n.set(uw(i, a, r[t]));
+ n.set(pw(i, a, r[t]));
}), this.visualElement.render();
}
addListeners() {
if (!this.visualElement.current) return;
- lF.set(this.visualElement, this);
- let e = this.visualElement.current, t = HP(e, "pointerdown", (t) => {
- let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Pie(i);
+ bF.set(this.visualElement, this);
+ let e = this.visualElement.current, t = $P(e, "pointerdown", (t) => {
+ let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Aie(i);
n && r && !a && this.start(t);
}), n, r = () => {
let { dragConstraints: t } = this.getProps();
- DP(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= fF(e, t.current, () => this.scalePositionWithinConstraints()));
+ RP(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= CF(e, t.current, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
- i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), TC.read(r);
- let o = LD(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
- this.isDragging && t && (MD((t) => {
+ i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), OC.read(r);
+ let o = BD(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
+ this.isDragging && t && (FD((t) => {
let n = this.getAxisMotionValue(t);
n && (this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate));
}), this.visualElement.render());
@@ -41387,7 +41660,7 @@ var lF = /* @__PURE__ */ new WeakMap(), uF = class {
};
}
getProps() {
- let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = aF, dragMomentum: o = !0 } = e;
+ let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = gF, dragMomentum: o = !0 } = e;
return {
...e,
drag: t,
@@ -41399,7 +41672,7 @@ var lF = /* @__PURE__ */ new WeakMap(), uF = class {
};
}
};
-function dF(e) {
+function SF(e) {
let t = !0;
return () => {
if (t) {
@@ -41409,28 +41682,28 @@ function dF(e) {
e();
};
}
-function fF(e, t, n) {
- let r = pE(e, dF(n)), i = pE(t, dF(n));
+function CF(e, t, n) {
+ let r = gE(e, SF(n)), i = gE(t, SF(n));
return () => {
r(), i();
};
}
-function pF(e, t, n) {
+function wF(e, t, n) {
return (t === !0 || t === e) && (n === null || n === e);
}
-function mF(e, t = 10) {
+function Rue(e, t = 10) {
let n = null;
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/index.mjs
-var hF = class extends PE {
+var zue = class extends LE {
constructor(e) {
- super(e), this.removeGroupControls = KS, this.removeListeners = KS, this.controls = new uF(e);
+ super(e), this.removeGroupControls = YS, this.removeListeners = YS, this.controls = new xF(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || KS;
+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || YS;
}
update() {
let { dragControls: e } = this.node.getProps(), { dragControls: t } = this.node.prevProps || {};
@@ -41439,31 +41712,31 @@ var hF = class extends PE {
unmount() {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
-}, gF = (e) => (t, n) => {
- e && TC.update(() => e(t, n), !1, !0);
-}, _F = class extends PE {
+}, TF = (e) => (t, n) => {
+ e && OC.update(() => e(t, n), !1, !0);
+}, Bue = class extends LE {
constructor() {
- super(...arguments), this.removePointerDownListener = KS;
+ super(...arguments), this.removePointerDownListener = YS;
}
onPointerDown(e) {
- this.session = new GP(e, this.createPanHandlers(), {
+ this.session = new nF(e, this.createPanHandlers(), {
transformPagePoint: this.node.getTransformPagePoint(),
- contextWindow: UP(this.node)
+ contextWindow: eF(this.node)
});
}
createPanHandlers() {
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
return {
- onSessionStart: gF(e),
- onStart: gF(t),
- onMove: gF(n),
+ onSessionStart: TF(e),
+ onStart: TF(t),
+ onMove: TF(n),
onEnd: (e, t) => {
- delete this.session, r && TC.postRender(() => r(e, t));
+ delete this.session, r && OC.postRender(() => r(e, t));
}
};
}
mount() {
- this.removePointerDownListener = HP(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
+ this.removePointerDownListener = $P(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
}
update() {
this.session && this.session.updateHandlers(this.createPanHandlers());
@@ -41471,36 +41744,36 @@ var hF = class extends PE {
unmount() {
this.removePointerDownListener(), this.session && this.session.end();
}
-}, vF = !1, yF = class extends R.Component {
+}, EF = !1, Vue = class extends R.Component {
componentDidMount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
- i && (t.group && t.group.add(i), n && n.register && r && n.register(i), vF && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
+ i && (t.group && t.group.add(i), n && n.register && r && n.register(i), EF && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
this.safeToRemove();
}), i.setOptions({
...i.options,
layoutDependency: this.props.layoutDependency,
onExitComplete: () => this.safeToRemove()
- })), zD.hasEverUpdated = !0;
+ })), HD.hasEverUpdated = !0;
}
getSnapshotBeforeUpdate(e) {
let { layoutDependency: t, visualElement: n, drag: r, isPresent: i } = this.props, { projection: a } = n;
return a ? (a.isPresent = i, e.layoutDependency !== t && a.setOptions({
...a.options,
layoutDependency: t
- }), vF = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || TC.postRender(() => {
+ }), EF = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || OC.postRender(() => {
let e = a.getStack();
(!e || !e.members.length) && this.safeToRemove();
})), null) : null;
}
componentDidUpdate() {
let { visualElement: e, layoutAnchor: t } = this.props, { projection: n } = e;
- n && (n.options.layoutAnchor = t, n.root.didUpdate(), YT.postRender(() => {
+ n && (n.options.layoutAnchor = t, n.root.didUpdate(), QT.postRender(() => {
!n.currentAnimation && n.isLead() && this.safeToRemove();
}));
}
componentWillUnmount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
- vF = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
+ EF = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
}
safeToRemove() {
let { safeToRemove: e } = this.props;
@@ -41510,41 +41783,41 @@ var hF = class extends PE {
return null;
}
};
-function bF(e) {
- let [t, n] = RN(), r = (0, R.useContext)(EN);
- return (0, z.jsx)(yF, {
+function DF(e) {
+ let [t, n] = YN(), r = (0, R.useContext)(LN);
+ return (0, z.jsx)(Vue, {
...e,
layoutGroup: r,
- switchLayoutGroup: (0, R.useContext)(EP),
+ switchLayoutGroup: (0, R.useContext)(LP),
isPresent: t,
safeToRemove: n
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/drag.mjs
-var xF = {
- pan: { Feature: _F },
+var Hue = {
+ pan: { Feature: Bue },
drag: {
- Feature: hF,
- ProjectionNode: tO,
- MeasureLayout: bF
+ Feature: zue,
+ ProjectionNode: iO,
+ MeasureLayout: DF
}
};
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/hover.mjs
-function SF(e, t, n) {
+function OF(e, t, n) {
let { props: r } = e;
e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
let i = r["onHover" + n];
- i && TC.postRender(() => i(t, BP(t)));
+ i && OC.postRender(() => i(t, ZP(t)));
}
-var Rue = class extends PE {
+var Uue = class extends LE {
mount() {
let { current: e } = this.node;
- e && (this.unmount = Aie(e, (e, t) => (SF(this.node, t, "Start"), (e) => SF(this.node, e, "End"))));
+ e && (this.unmount = Eie(e, (e, t) => (OF(this.node, t, "Start"), (e) => OF(this.node, e, "End"))));
}
unmount() {}
-}, zue = class extends PE {
+}, Wue = class extends LE {
constructor() {
super(...arguments), this.isActive = !1;
}
@@ -41561,57 +41834,57 @@ var Rue = class extends PE {
!this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = qS(LD(this.node.current, "focus", () => this.onFocus()), LD(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = XS(BD(this.node.current, "focus", () => this.onFocus()), BD(this.node.current, "blur", () => this.onBlur()));
}
unmount() {}
};
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/press.mjs
-function CF(e, t, n) {
+function kF(e, t, n) {
let { props: r } = e;
if (e.current instanceof HTMLButtonElement && e.current.disabled) return;
e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
let i = r["onTap" + (n === "End" ? "" : n)];
- i && TC.postRender(() => i(t, BP(t)));
+ i && OC.postRender(() => i(t, ZP(t)));
}
-var Bue = class extends PE {
+var Gue = class extends LE {
mount() {
let { current: e } = this.node;
if (!e) return;
let { globalTapTarget: t, propagate: n } = this.node.props;
- this.unmount = Iie(e, (e, t) => (CF(this.node, t, "Start"), (e, { success: t }) => CF(this.node, e, t ? "End" : "Cancel")), {
+ this.unmount = Mie(e, (e, t) => (kF(this.node, t, "Start"), (e, { success: t }) => kF(this.node, e, t ? "End" : "Cancel")), {
useGlobalTarget: t,
stopPropagation: n?.tap === !1
});
}
unmount() {}
-}, wF = /* @__PURE__ */ new WeakMap(), TF = /* @__PURE__ */ new WeakMap(), Vue = (e) => {
- let t = wF.get(e.target);
+}, AF = /* @__PURE__ */ new WeakMap(), jF = /* @__PURE__ */ new WeakMap(), Kue = (e) => {
+ let t = AF.get(e.target);
t && t(e);
-}, Hue = (e) => {
- e.forEach(Vue);
+}, que = (e) => {
+ e.forEach(Kue);
};
-function Uue({ root: e, ...t }) {
+function Jue({ root: e, ...t }) {
let n = e || document;
- TF.has(n) || TF.set(n, {});
- let r = TF.get(n), i = JSON.stringify(t);
- return r[i] || (r[i] = new IntersectionObserver(Hue, {
+ jF.has(n) || jF.set(n, {});
+ let r = jF.get(n), i = JSON.stringify(t);
+ return r[i] || (r[i] = new IntersectionObserver(que, {
root: e,
...t
})), r[i];
}
-function Wue(e, t, n) {
- let r = Uue(t);
- return wF.set(e, n), r.observe(e), () => {
- wF.delete(e), r.unobserve(e);
+function Yue(e, t, n) {
+ let r = Jue(t);
+ return AF.set(e, n), r.observe(e), () => {
+ AF.delete(e), r.unobserve(e);
};
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
-var Gue = {
+var Xue = {
some: 0,
all: 1
-}, Kue = class extends PE {
+}, Zue = class extends LE {
constructor() {
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
}
@@ -41620,7 +41893,7 @@ var Gue = {
let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
root: t ? t.current : void 0,
rootMargin: n,
- threshold: typeof r == "number" ? r : Gue[r]
+ threshold: typeof r == "number" ? r : Xue[r]
}, o = (e) => {
let { isIntersecting: t } = e;
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
@@ -41628,7 +41901,7 @@ var Gue = {
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
a && a(e);
};
- this.stopObserver = Wue(this.node.current, a, o);
+ this.stopObserver = Yue(this.node.current, a, o);
}
mount() {
this.startObserver();
@@ -41640,34 +41913,34 @@ var Gue = {
"amount",
"margin",
"root"
- ].some(que(e, t)) && this.startObserver();
+ ].some(Que(e, t)) && this.startObserver();
}
unmount() {
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
}
};
-function que({ viewport: e = {} }, { viewport: t = {} } = {}) {
+function Que({ viewport: e = {} }, { viewport: t = {} } = {}) {
return (n) => e[n] !== t[n];
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/gestures.mjs
-var Jue = {
- inView: { Feature: Kue },
- tap: { Feature: Bue },
- focus: { Feature: zue },
- hover: { Feature: Rue }
-}, Yue = { layout: {
- ProjectionNode: tO,
- MeasureLayout: bF
-} }, Xue = /*@__PURE__*/ FP({
- ...zP,
- ...Jue,
- ...xF,
- ...Yue
-}, IP);
+var $ue = {
+ inView: { Feature: Zue },
+ tap: { Feature: Gue },
+ focus: { Feature: Wue },
+ hover: { Feature: Uue }
+}, ede = { layout: {
+ ProjectionNode: iO,
+ MeasureLayout: DF
+} }, tde = /*@__PURE__*/ KP({
+ ...XP,
+ ...$ue,
+ ...Hue,
+ ...ede
+}, qP);
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-motion-value-event.mjs
-function EF(e, t, n) {
+function MF(e, t, n) {
(0, R.useInsertionEffect)(() => e.on(t, n), [
e,
t,
@@ -41676,8 +41949,8 @@ function EF(e, t, n) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-motion-value.mjs
-function DF(e) {
- let t = DN(() => yT(e)), { isStatic: n } = (0, R.useContext)(AN);
+function NF(e) {
+ let t = RN(() => ST(e)), { isStatic: n } = (0, R.useContext)(VN);
if (n) {
let [, n] = (0, R.useState)(e);
(0, R.useEffect)(() => t.on("change", n), []);
@@ -41686,28 +41959,28 @@ function DF(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-combine-values.mjs
-function OF(e, t) {
- let n = DF(t()), r = () => n.set(t());
- return r(), ON(() => {
- let t = () => TC.preRender(r, !1, !0), n = e.map((e) => e.on("change", t));
+function PF(e, t) {
+ let n = NF(t()), r = () => n.set(t());
+ return r(), zN(() => {
+ let t = () => OC.preRender(r, !1, !0), n = e.map((e) => e.on("change", t));
return () => {
- n.forEach((e) => e()), EC(r);
+ n.forEach((e) => e()), kC(r);
};
}), n;
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-computed.mjs
-function Zue(e) {
- vT.current = [], e();
- let t = OF(vT.current, e);
- return vT.current = void 0, t;
+function nde(e) {
+ xT.current = [], e();
+ let t = PF(xT.current, e);
+ return xT.current = void 0, t;
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-transform.mjs
-function kF(e, t, n, r) {
- if (typeof e == "function") return Zue(e);
- if (n !== void 0 && !Array.isArray(n) && typeof t != "function") return Que(e, t, n, r);
- let i = typeof t == "function" ? t : Kie(t, n, r), a = Array.isArray(e) ? AF(e, i) : AF([e], ([e]) => i(e)), o = Array.isArray(e) ? void 0 : e.accelerate;
+function FF(e, t, n, r) {
+ if (typeof e == "function") return nde(e);
+ if (n !== void 0 && !Array.isArray(n) && typeof t != "function") return rde(e, t, n, r);
+ let i = typeof t == "function" ? t : Hie(t, n, r), a = Array.isArray(e) ? IF(e, i) : IF([e], ([e]) => i(e)), o = Array.isArray(e) ? void 0 : e.accelerate;
return o && !o.isTransformed && typeof t != "function" && Array.isArray(n) && r?.clamp !== !1 && (a.accelerate = {
...o,
times: t,
@@ -41716,55 +41989,55 @@ function kF(e, t, n, r) {
...r?.ease ? { ease: r.ease } : {}
}), a;
}
-function AF(e, t) {
- let n = DN(() => []);
- return OF(e, () => {
+function IF(e, t) {
+ let n = RN(() => []);
+ return PF(e, () => {
n.length = 0;
let r = e.length;
for (let t = 0; t < r; t++) n[t] = e[t].get();
return t(n);
});
}
-function Que(e, t, n, r) {
- let i = DN(() => Object.keys(n)), a = DN(() => ({}));
- for (let o of i) a[o] = kF(e, t, n[o], r);
+function rde(e, t, n, r) {
+ let i = RN(() => Object.keys(n)), a = RN(() => ({}));
+ for (let o of i) a[o] = FF(e, t, n[o], r);
return a;
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-follow-value.mjs
-function $ue(e, t = {}) {
- let { isStatic: n } = (0, R.useContext)(AN), r = () => kT(e) ? e.get() : e;
- if (n) return kF(r);
- let i = DF(r());
- return (0, R.useInsertionEffect)(() => qie(i, e, t), [i, JSON.stringify(t)]), i;
+function ide(e, t = {}) {
+ let { isStatic: n } = (0, R.useContext)(VN), r = () => MT(e) ? e.get() : e;
+ if (n) return FF(r);
+ let i = NF(r());
+ return (0, R.useInsertionEffect)(() => Uie(i, e, t), [i, JSON.stringify(t)]), i;
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-spring.mjs
-function jF(e, t = {}) {
- return $ue(e, {
+function LF(e, t = {}) {
+ return ide(e, {
type: "spring",
...t
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-function ede() {
- !OE.current && kE();
- let [e] = (0, R.useState)(DE.current);
+function ade() {
+ !jE.current && ME();
+ let [e] = (0, R.useState)(AE.current);
return e;
}
//#endregion
//#region node_modules/motion/dist/es/react.mjs
-var MF = Xue, NF = "(prefers-reduced-motion: reduce)", tde = () => matchMedia(NF).matches, nde = (e) => {
- let t = matchMedia(NF);
+var RF = tde, zF = "(prefers-reduced-motion: reduce)", ode = () => matchMedia(zF).matches, sde = (e) => {
+ let t = matchMedia(zF);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
};
-function rde({ children: e, count: t, label: n }) {
- let r = zN(), i = (0, R.useSyncExternalStore)(nde, tde, () => !1), { isFocusVisible: a } = Hd(), o = i || a, s = {
+function cde({ children: e, count: t, label: n }) {
+ let r = XN(), i = (0, R.useSyncExternalStore)(sde, ode, () => !1), { isFocusVisible: a } = Vd(), o = i || a, s = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
- return /* @__PURE__ */ (0, z.jsxs)(MF.div, {
+ return /* @__PURE__ */ (0, z.jsxs)(RF.div, {
role: "group",
"aria-label": n,
"data-selection-dock": !0,
@@ -41796,13 +42069,13 @@ function rde({ children: e, count: t, label: n }) {
}), e]
});
}
-function PF({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, z.jsx)(UN, { children: e ? /* @__PURE__ */ (0, z.jsx)(rde, { ...t }, "selection") : null });
+function BF({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, z.jsx)(eP, { children: e ? /* @__PURE__ */ (0, z.jsx)(cde, { ...t }, "selection") : null });
}
//#endregion
//#region src/react/follow-manage/add-feed.tsx
-var ide = "输入女优名,到 JavDB 找她的演员页";
-function ade(e, t) {
+var lde = "输入女优名,到 JavDB 找她的演员页";
+function ude(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 {
@@ -41821,10 +42094,10 @@ function ade(e, t) {
blocked: !1
};
}
-function ode({ card: e, picked: t, onPick: n }) {
+function dde({ card: e, picked: t, onPick: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(GO, {
+ children: [/* @__PURE__ */ (0, z.jsx)(JO, {
isSelected: t,
onChange: n,
children: /* @__PURE__ */ (0, z.jsxs)("span", {
@@ -41845,16 +42118,16 @@ function ode({ card: e, picked: t, onPick: n }) {
}) : null
]
})
- }), /* @__PURE__ */ (0, z.jsx)(kO, {
+ }), /* @__PURE__ */ (0, z.jsx)(MO, {
href: e.url,
children: e.id
})]
});
}
-function sde({ readOnly: e, toast: t, onAdded: n }) {
+function fde({ readOnly: e, toast: t, onAdded: n }) {
let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(/* @__PURE__ */ new Set()), l = Bi(), u = () => {
let t = r.trim();
- !t || e || l.run("lookup", (e) => Kce(t, e), (e) => {
+ !t || e || l.run("lookup", (e) => Yce(t, e), (e) => {
o(e), c(new Set(e.suggested));
});
}, d = (e) => {
@@ -41862,10 +42135,10 @@ function sde({ readOnly: e, toast: t, onAdded: n }) {
}, f = () => {
o(null), c(/* @__PURE__ */ new Set()), l.setError("");
}, p = () => {
- a && l.run("follow", (e) => qce(a.q, [...s], e), (e) => {
+ a && l.run("follow", (e) => Xce(a.q, [...s], e), (e) => {
t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();
});
- }, m = a ? ade(a, s) : null;
+ }, m = a ? ude(a, s) : null;
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: Mi({
padding: "none",
@@ -41880,9 +42153,9 @@ function sde({ readOnly: e, toast: t, onAdded: n }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, z.jsx)("div", {
className: "min-w-64 grow",
- children: /* @__PURE__ */ (0, z.jsx)(ak, {
+ children: /* @__PURE__ */ (0, z.jsx)(ck, {
"aria-label": "女优名",
- placeholder: ide,
+ placeholder: lde,
value: r,
leadingIcon: Ze,
isDisabled: e,
@@ -41905,16 +42178,16 @@ function sde({ readOnly: e, toast: t, onAdded: n }) {
a ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(OO, { children: "JavDB 上的演员卡" }),
- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, z.jsx)(ode, {
+ /* @__PURE__ */ (0, z.jsx)(jO, { children: "JavDB 上的演员卡" }),
+ a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, z.jsx)(dde, {
card: e,
picked: s.has(e.id),
onPick: (t) => c((n) => {
let r = new Set(n);
return t ? r.add(e.id) : r.delete(e.id), r;
})
- }, e.id)) : /* @__PURE__ */ (0, z.jsx)(EO, { children: "JavDB 上没有搜到这个名字。" }),
- a.candidates.length ? /* @__PURE__ */ (0, z.jsx)(EO, {
+ }, e.id)) : /* @__PURE__ */ (0, z.jsx)(kO, { children: "JavDB 上没有搜到这个名字。" }),
+ a.candidates.length ? /* @__PURE__ */ (0, z.jsx)(kO, {
role: "status",
children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"
}) : null,
@@ -41941,19 +42214,19 @@ function sde({ readOnly: e, toast: t, onAdded: n }) {
}
//#endregion
//#region src/react/follow-manage/source-list.tsx
-var cde = Object.fromEntries(Object.entries(Pj).map(([e, t]) => [t, e])), FF = 740;
-function lde() {
+var pde = Object.fromEntries(Object.entries(Hj).map(([e, t]) => [t, e])), VF = 740;
+function mde() {
let [e, t] = (0, R.useState)(!1), n = (0, R.useRef)(null), r = (0, R.useCallback)((e) => {
if (n.current?.disconnect(), !e) {
n.current = null;
return;
}
- let r = new ResizeObserver(() => t(e.clientWidth < FF));
- r.observe(e), n.current = r, t(e.clientWidth < FF);
+ let r = new ResizeObserver(() => t(e.clientWidth < VF));
+ r.observe(e), n.current = r, t(e.clientWidth < VF);
}, []);
return (0, R.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
}
-var ude = {
+var hde = {
select: "选择",
author: "创作者",
source: "来源",
@@ -41962,7 +42235,7 @@ var ude = {
checked: "上次检查",
actions: "操作"
};
-function IF({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
+function HF({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
return t <= 1 ? null : /* @__PURE__ */ (0, z.jsxs)("nav", {
"aria-label": r,
className: "flex flex-wrap items-center justify-center gap-2",
@@ -41976,7 +42249,7 @@ function IF({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
}),
/* @__PURE__ */ (0, z.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: Cs(e, t).map((t, r) => /* @__PURE__ */ (0, z.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, z.jsx)("span", {
+ children: Ss(e, t).map((t, r) => /* @__PURE__ */ (0, z.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, z.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -41999,22 +42272,22 @@ function IF({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
]
});
}
-function dde({ source: e, selected: t, onToggle: n, handlers: r }) {
+function gde({ source: e, selected: t, onToggle: n, handlers: r }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-selected": t || void 0,
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",
onClick: (e) => {
- JO(e, e.currentTarget) && n(!t);
+ ZO(e, e.currentTarget) && n(!t);
},
children: [
- /* @__PURE__ */ (0, z.jsx)(GO, {
+ /* @__PURE__ */ (0, z.jsx)(JO, {
isSelected: t,
onChange: n,
"aria-label": `选择 ${e.label}`
}),
/* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, z.jsx)(OM, { source: e }), e.last_error ? /* @__PURE__ */ (0, z.jsx)("small", {
+ children: [/* @__PURE__ */ (0, z.jsx)(IM, { source: e }), e.last_error ? /* @__PURE__ */ (0, z.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.last_error
}) : null]
@@ -42022,17 +42295,17 @@ function dde({ source: e, selected: t, onToggle: n, handlers: r }) {
/* @__PURE__ */ (0, z.jsx)("span", {
className: "flex shrink-0 items-center gap-1.5 text-body-2-regular text-text-secondary",
title: e.provider_label,
- children: /* @__PURE__ */ (0, z.jsx)(TM, {
+ children: /* @__PURE__ */ (0, z.jsx)(NM, {
provider: e.provider,
label: e.provider_label
})
}),
- /* @__PURE__ */ (0, z.jsx)(DM, { source: e }),
+ /* @__PURE__ */ (0, z.jsx)(FM, { source: e }),
/* @__PURE__ */ (0, z.jsx)("span", {
className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",
- children: aM(e)
+ children: pM(e)
}),
- /* @__PURE__ */ (0, z.jsx)(wN, {
+ /* @__PURE__ */ (0, z.jsx)(FN, {
"aria-label": `启用 ${e.label}`,
isSelected: e.enabled,
isDisabled: r.readOnly,
@@ -42062,8 +42335,8 @@ function dde({ source: e, selected: t, onToggle: n, handlers: r }) {
]
});
}
-function fde({ 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(Ij).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = Wj(r, c);
+function _de({ 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(Wj).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = Qj(r, c);
return /* @__PURE__ */ (0, z.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
className: Mi({
@@ -42076,7 +42349,7 @@ function fde({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
"data-open": n || void 0,
className: "flex flex-wrap items-center gap-3 px-2 py-2.5",
children: [
- /* @__PURE__ */ (0, z.jsx)(EM, {
+ /* @__PURE__ */ (0, z.jsx)(PM, {
group: e,
name: t
}),
@@ -42097,7 +42370,7 @@ function fde({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
/* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
title: d,
- children: [e.map((e) => /* @__PURE__ */ (0, z.jsx)(TM, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, z.jsx)($m, { children: `来源:${d}` })]
+ children: [e.map((e) => /* @__PURE__ */ (0, z.jsx)(NM, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, z.jsx)(Qm, { children: `来源:${d}` })]
}),
u ? /* @__PURE__ */ (0, z.jsx)("span", {
className: "shrink-0 text-body-2-regular text-text-error-primary",
@@ -42127,7 +42400,7 @@ function fde({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
id: f,
hidden: !n,
"data-source-divider": !0,
- children: e.map((e) => /* @__PURE__ */ (0, z.jsx)(dde, {
+ children: e.map((e) => /* @__PURE__ */ (0, z.jsx)(gde, {
source: e,
handlers: i,
selected: r.has(e.id),
@@ -42136,37 +42409,37 @@ function fde({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
})]
});
}
-function pde(e) {
- let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: f, onPageSize: p, onSelected: m, toast: h, openFollow: g } = e, _ = t.sources, v = (0, R.useMemo)(() => t.author_aliases || [], [t.author_aliases]), b = t.counts || {}, [x, S] = (0, R.useState)(/* @__PURE__ */ new Set()), [C, w] = lde(), [T, E] = (0, R.useState)(""), D = (0, R.useMemo)(() => Pce(_, n, r, v), [
+function vde(e) {
+ let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: f, onPageSize: p, onSelected: m, toast: h, openFollow: g } = e, _ = t.sources, v = (0, R.useMemo)(() => t.author_aliases || [], [t.author_aliases]), b = t.counts || {}, [x, S] = (0, R.useState)(/* @__PURE__ */ new Set()), [C, w] = mde(), [T, E] = (0, R.useState)(""), D = (0, R.useMemo)(() => Lce(_, n, r, v), [
_,
n,
r,
v
- ]), O = (0, R.useMemo)(() => Fce(D, n, r, v), [
+ ]), O = (0, R.useMemo)(() => Rce(D, n, r, v), [
D,
n,
r,
v
- ]), { job: k, running: A, outcome: j, start: M } = VO({
- queryKey: Cce,
- queryFn: ({ signal: e }) => Lce(e),
- start: (e) => Jj(e),
+ ]), { job: k, running: A, outcome: j, start: M } = WO({
+ queryKey: Ece,
+ queryFn: ({ signal: e }) => Bce(e),
+ start: (e) => nM(e),
onError: (e) => E(U(e)),
onFinish: (e) => {
- iM(), h(e.status === "failed" ? e.error || "检查失败" : Yce(e));
+ fM(), h(e.status === "failed" ? e.error || "检查失败" : Qce(e));
}
}), N = (e) => {
A || M.isPending || (E(""), M.mutate(e));
- }, P = (e, t) => m(Gj(s, [e], t)), ee = (e, t) => m(Gj(s, e, t)), F = Pn({
- mutationFn: (e) => Xj(e),
+ }, P = (e, t) => m($j(s, [e], t)), ee = (e, t) => m($j(s, e, t)), F = Pn({
+ mutationFn: (e) => iM(e),
onSuccess: (e, t) => {
- rM([t]), m(Gj(s, [t], !1)), h("已取消关注来源");
+ dM([t]), m($j(s, [t], !1)), h("已取消关注来源");
},
onError: (e) => E(U(e))
}), I = Pn({
- mutationFn: (e) => Yj(e.id, e.enabled),
+ mutationFn: (e) => rM(e.id, e.enabled),
onSuccess: (e, t) => {
- nM(t.id, { enabled: t.enabled }), E("");
+ uM(t.id, { enabled: t.enabled }), E("");
},
onError: (e) => E(U(e))
}), te = (e) => void y({
@@ -42178,7 +42451,7 @@ function pde(e) {
}), ne = Pn({
mutationFn: async (e) => {
let t = await d(e.ids, 4, async (t) => {
- e.action === "remove" ? await Xj(t) : await Yj(t, e.action === "enabled");
+ e.action === "remove" ? await iM(t) : await rM(t, e.action === "enabled");
});
return {
...e,
@@ -42187,9 +42460,9 @@ function pde(e) {
};
},
onSuccess: (e) => {
- if (e.action === "remove") rM(e.done);
- else for (let t of e.done) nM(t, { enabled: e.action === "enabled" });
- m(Gj(s, e.done, !1));
+ if (e.action === "remove") dM(e.done);
+ else for (let t of e.done) uM(t, { enabled: e.action === "enabled" });
+ m($j(s, e.done, !1));
let t = e.results.filter((e) => !e.ok);
if (t.length) {
E(`${t.length}/${e.ids.length} 个来源未更新:${U(t[0]?.error)}`);
@@ -42202,18 +42475,18 @@ function pde(e) {
onError: (e) => E(U(e))
}), re = Pn({
mutationFn: async (e) => {
- let t = ((await Gce()).groups || []).flatMap((e) => [
+ let t = ((await Jce()).groups || []).flatMap((e) => [
e.primary,
...e.variants,
...e.duplicates
]).filter((e) => e.status === "new").map((e) => e.id);
return {
ids: t,
- failed: (await d(t, 6, (t) => Wce(t, e))).filter((e) => !e.ok)
+ failed: (await d(t, 6, (t) => qce(t, e))).filter((e) => !e.ok)
};
},
onSuccess: (e) => {
- if (iM(), e.failed.length) {
+ if (fM(), e.failed.length) {
E(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);
return;
}
@@ -42238,12 +42511,12 @@ function pde(e) {
readOnly: c
};
let oe = ae.current, se = (0, R.useMemo)(() => {
- let e = NM(), t = (e) => () => ude[e] || e;
+ let e = VM(), t = (e) => () => hde[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, z.jsx)(GO, {
+ cell: (e) => /* @__PURE__ */ (0, z.jsx)(JO, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -42255,7 +42528,7 @@ function pde(e) {
header: t("author"),
cell: (e) => /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(EM, {
+ children: [/* @__PURE__ */ (0, z.jsx)(PM, {
group: e.row.original.group,
name: e.row.original.author
}), /* @__PURE__ */ (0, z.jsx)("span", {
@@ -42269,7 +42542,7 @@ function pde(e) {
header: t("source"),
cell: (e) => /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, z.jsx)(OM, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, z.jsx)("small", {
+ children: [/* @__PURE__ */ (0, z.jsx)(IM, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, z.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.row.original.source.last_error
}) : null]
@@ -42280,18 +42553,18 @@ function pde(e) {
header: t("provider"),
cell: (e) => /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, z.jsx)(TM, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
+ children: [/* @__PURE__ */ (0, z.jsx)(NM, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, z.jsx)(DM, { source: e.row.original.source })
+ cell: (e) => /* @__PURE__ */ (0, z.jsx)(FM, { source: e.row.original.source })
}),
e.accessor((e) => e.source.last_checked_at || "", {
id: "checked",
header: t("checked"),
- cell: (e) => aM(e.row.original.source)
+ cell: (e) => pM(e.row.original.source)
}),
e.display({
id: "actions",
@@ -42299,7 +42572,7 @@ function pde(e) {
cell: (e) => /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, z.jsx)(wN, {
+ /* @__PURE__ */ (0, z.jsx)(FN, {
"aria-label": `启用 ${e.row.original.source.label}`,
isSelected: e.row.original.source.enabled,
isDisabled: oe.readOnly,
@@ -42329,12 +42602,12 @@ function pde(e) {
})
];
}, [oe]), ce = (0, R.useMemo)(() => {
- let e = cde[n];
+ let e = pde[n];
return e ? [{
id: e,
desc: r === "desc"
}] : [];
- }, [n, r]), le = (0, R.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), ue = a === "table", L = Uj(ue ? O.length : D.length, o, i), de = CN({
+ }, [n, r]), le = (0, R.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), ue = a === "table", L = Zj(ue ? O.length : D.length, o, i), de = MN({
data: O,
columns: se,
getRowId: (e) => String(e.source.id),
@@ -42351,7 +42624,7 @@ function pde(e) {
onSortingChange: (e) => {
let t = (typeof e == "function" ? e(ce) : e)[0];
if (!t) return;
- let n = Pj[t.id];
+ let n = Hj[t.id];
n && l(n, t.desc ? "desc" : "asc");
},
onRowSelectionChange: (e) => {
@@ -42365,9 +42638,9 @@ function pde(e) {
}, n = typeof e == "function" ? e(t) : e;
n.pageSize === o ? n.pageIndex !== t.pageIndex && u(n.pageIndex + 1) : p(n.pageSize);
},
- getCoreRowModel: bN(),
- getPaginationRowModel: xN()
- }), fe = de.getRowModel().rows, pe = ue ? fe.map((e) => e.original.source.id) : D.slice(L.start, L.end).flatMap((e) => e.map((e) => e.id)), me = Wj(s, pe), he = [...s], ge = Xce(j), _e = Zce(j), ve = D.length > 0 && x.size >= D.length;
+ getCoreRowModel: ON(),
+ getPaginationRowModel: kN()
+ }), fe = de.getRowModel().rows, pe = ue ? fe.map((e) => e.original.source.id) : D.slice(L.start, L.end).flatMap((e) => e.map((e) => e.id)), me = Qj(s, pe), he = [...s], ge = $ce(j), _e = ele(j), ve = D.length > 0 && x.size >= D.length;
return _.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: Mi({
padding: "none",
@@ -42404,27 +42677,27 @@ function pde(e) {
variant: "ghost",
iconOnly: !0,
leadingIcon: Ke,
- "aria-label": Mj[0][1],
+ "aria-label": Bj[0][1],
"aria-pressed": !ue,
onClick: () => f("default")
}), /* @__PURE__ */ (0, z.jsx)(H, {
variant: "ghost",
iconOnly: !0,
leadingIcon: Qe,
- "aria-label": Mj[1][1],
+ "aria-label": Bj[1][1],
"aria-pressed": ue,
onClick: () => f("table")
})]
}),
- /* @__PURE__ */ (0, z.jsx)(LO, {
+ /* @__PURE__ */ (0, z.jsx)(BO, {
"aria-label": "关注列表排序",
selectedKey: n,
onSelectionChange: (e) => {
if (e === null) return;
let t = String(e);
- l(t, _j[t]);
+ l(t, Dj[t]);
},
- children: hj.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(RO, {
+ children: Ej.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(VO, {
id: e,
children: t
}, e))
@@ -42433,7 +42706,7 @@ function pde(e) {
variant: "secondary",
iconOnly: !0,
leadingIcon: r === "asc" ? De : Ce,
- "aria-label": Ace(n, r),
+ "aria-label": Nce(n, r),
onClick: () => l(n, r === "asc" ? "desc" : "asc")
}),
ue ? null : /* @__PURE__ */ (0, z.jsx)(H, {
@@ -42450,7 +42723,7 @@ function pde(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- A ? /* @__PURE__ */ (0, z.jsx)(yO, {
+ A ? /* @__PURE__ */ (0, z.jsx)(SO, {
embedded: !0,
label: k?.message || (k?.total ? `${k.older ? "抓取历史" : "检查更新"}:已完成 ${k.checked || 0}/${k.total} 个来源` : "正在准备检查任务"),
value: k?.checked,
@@ -42476,7 +42749,7 @@ function pde(e) {
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsxs)(PF, {
+ /* @__PURE__ */ (0, z.jsxs)(BF, {
label: "关注来源批量操作",
visible: he.length > 0,
count: `已选 ${he.length} 个来源`,
@@ -42536,10 +42809,10 @@ function pde(e) {
})
]
}),
- ue ? /* @__PURE__ */ (0, z.jsx)(YO, {
+ ue ? /* @__PURE__ */ (0, z.jsx)(QO, {
follow: !0,
onRowClick: (e) => P(Number(e), !s.has(Number(e))),
- children: /* @__PURE__ */ (0, z.jsxs)(KO, {
+ children: /* @__PURE__ */ (0, z.jsxs)(YO, {
"aria-label": "关注来源",
size: "sm",
sortDescriptor: ce[0] ? {
@@ -42550,9 +42823,9 @@ function pde(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, z.jsx)(uS, { children: de.getHeaderGroups()[0].headers.map((e) => {
- let t = e.column.id in Pj, n = SN(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, z.jsx)(dS, {
+ children: [/* @__PURE__ */ (0, z.jsx)(dS, { children: de.getHeaderGroups()[0].headers.map((e) => {
+ let t = e.column.id in Hj, n = AN(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, z.jsx)(fS, {
id: e.id,
allowsSorting: t,
isRowHeader: e.column.id === "source",
@@ -42561,20 +42834,20 @@ function pde(e) {
children: [n, /* @__PURE__ */ (0, z.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": e || void 0,
- children: /* @__PURE__ */ (0, z.jsx)(Foe, {})
+ children: /* @__PURE__ */ (0, z.jsx)(joe, {})
})]
- }) : /* @__PURE__ */ (0, z.jsx)($m, { children: n })
+ }) : /* @__PURE__ */ (0, z.jsx)(Qm, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, z.jsx)(pS, {
+ }) }), /* @__PURE__ */ (0, z.jsx)(mS, {
renderEmptyState: () => "这一页没有来源",
- children: fe.map((e) => /* @__PURE__ */ (0, z.jsx)(gS, {
+ children: fe.map((e) => /* @__PURE__ */ (0, z.jsx)(_S, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, z.jsx)(vS, { children: SN(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, z.jsx)(yS, { children: AN(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
- }) : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(GO, {
+ }) : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(JO, {
isSelected: me.all,
isIndeterminate: me.some,
onChange: (e) => ee(pe, e),
@@ -42584,9 +42857,9 @@ function pde(e) {
className: "flex flex-col gap-3",
children: D.slice(L.start, L.end).map((e) => {
let t = String(e[0].author_key || e[0].id);
- return /* @__PURE__ */ (0, z.jsx)(fde, {
+ return /* @__PURE__ */ (0, z.jsx)(_de, {
group: e,
- name: Vj(e, v),
+ name: Yj(e, v),
handlers: oe,
selected: s,
open: !x.has(t),
@@ -42606,19 +42879,19 @@ function pde(e) {
className: "text-body-2-regular text-text-secondary",
children: `${L.start + 1}–${L.end} / ${L.total} ${ue ? "个来源" : "位创作者"}`
}),
- /* @__PURE__ */ (0, z.jsx)(LO, {
+ /* @__PURE__ */ (0, z.jsx)(BO, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(o),
onSelectionChange: (e) => {
e !== null && de.setPageSize(Number(e));
},
- children: Nj.map((e) => /* @__PURE__ */ (0, z.jsx)(RO, {
+ children: Vj.map((e) => /* @__PURE__ */ (0, z.jsx)(VO, {
id: String(e),
children: `每页 ${e} ${ue ? "条" : "位"}`
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)(IF, {
+ /* @__PURE__ */ (0, z.jsx)(HF, {
page: L.page,
pages: L.pages,
onPage: (e) => de.setPageIndex(e - 1)
@@ -42682,7 +42955,7 @@ function pde(e) {
}
//#endregion
//#region src/react/follow-manage/feed-sources.tsx
-var mde = {
+var yde = {
select: "选择",
name: "名称",
kind: "类型",
@@ -42692,18 +42965,18 @@ var mde = {
fetched: "上次拉取",
fresh: "上次新增",
actions: "操作"
-}, hde = /* @__PURE__ */ new Set(["select", "actions"]), LF = () => q.invalidateQueries({
- queryKey: jj,
+}, bde = /* @__PURE__ */ new Set(["select", "actions"]), UF = () => q.invalidateQueries({
+ queryKey: zj,
exact: !0
-}), RF = (e) => e.name || e.url, gde = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
-function _de(e) {
+}), WF = (e) => e.name || e.url, xde = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
+function Sde(e) {
try {
return new URL(e).hostname.replace(/^www\./, "");
} catch {
return e;
}
}
-function vde({ source: e }) {
+function Cde({ source: e }) {
return e.last_error ? /* @__PURE__ */ (0, z.jsx)(yi, {
variant: "caption",
color: "rose",
@@ -42718,7 +42991,7 @@ function vde({ source: e }) {
children: "已暂停"
});
}
-function yde({ source: e, avatarInner: t }) {
+function wde({ source: e, avatarInner: t }) {
let n = e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
@@ -42726,31 +42999,31 @@ function yde({ source: e, avatarInner: t }) {
} : null;
return /* @__PURE__ */ (0, z.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 ${TN}`,
- dangerouslySetInnerHTML: { __html: t(RF(e), n, null, "performer") }
+ className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${IN}`,
+ dangerouslySetInnerHTML: { __html: t(WF(e), n, null, "performer") }
});
}
-var bde = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
-function xde(e) {
+var Tde = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
+function Ede(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 zF(e, t) {
+function GF(e, t) {
let n = e.length === 1 ? e[0] : null;
return y({
title: n ? "移除订阅源" : `移除 ${e.length} 条订阅源`,
- body: n ? `将移除订阅源「${RF(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
+ body: n ? `将移除订阅源「${WF(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
confirmLabel: n ? "移除订阅源" : "移除所选订阅源",
danger: !0,
onConfirm: t
});
}
-function Sde({ readOnly: e, toast: t, avatarInner: n }) {
+function Dde({ readOnly: e, toast: t, avatarInner: n }) {
let r = Nn({
- queryKey: jj,
- queryFn: ({ signal: e }) => Qj(e)
- }), i = Bi(), a = r.data, o = (0, R.useMemo)(() => a?.sources ?? [], [a]), [s, c] = (0, R.useState)(/* @__PURE__ */ new Set()), [l, u] = (0, R.useState)(1), [f, p] = (0, R.useState)(20), m = Uj(o.length, f, l);
+ queryKey: zj,
+ queryFn: ({ signal: e }) => oM(e)
+ }), i = Bi(), a = r.data, o = (0, R.useMemo)(() => a?.sources ?? [], [a]), [s, c] = (0, R.useState)(/* @__PURE__ */ new Set()), [l, u] = (0, R.useState)(1), [f, p] = (0, R.useState)(20), m = Zj(o.length, f, l);
(0, R.useEffect)(() => {
u((e) => Math.min(e, m.pages));
}, [m.pages]), (0, R.useEffect)(() => {
@@ -42762,7 +43035,7 @@ function Sde({ readOnly: e, toast: t, avatarInner: n }) {
let h = Pn({
mutationFn: async (e) => {
let t = await d(e.ids, 4, async (t) => {
- e.action === "remove" ? await eM(t) : await $j(t, e.action === "enabled");
+ e.action === "remove" ? await cM(t) : await sM(t, e.action === "enabled");
});
return {
...e,
@@ -42771,13 +43044,13 @@ function Sde({ 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()), LF(), e.action === "remove" && r && t(`已移除 ${r} 条订阅源`), n.length) {
+ if (c(/* @__PURE__ */ new Set()), UF(), e.action === "remove" && r && t(`已移除 ${r} 条订阅源`), n.length) {
let e = n[0];
i.setError(`${n.length} 条没有写入:${e.ok ? "" : U(e.error)}`);
}
},
onError: (e) => i.setError(U(e))
- }), g = (0, R.useMemo)(() => xde(o), [o]), _ = (0, R.useRef)({
+ }), g = (0, R.useMemo)(() => Ede(o), [o]), _ = (0, R.useRef)({
readOnly: e,
avatarInner: n,
shared: g,
@@ -42791,34 +43064,34 @@ function Sde({ readOnly: e, toast: t, avatarInner: n }) {
avatarInner: n,
shared: g,
busy: i.busy,
- toggle: (e, t) => void i.run(`enabled-${e.id}`, (n) => $j(e.id, t, n), () => void LF()),
- fetch: (e) => void i.run(`check-${e.id}`, (t) => tM(t, [e.id]), () => void LF()),
- remove: (e) => void zF([e], async () => {
- await eM(e.id), t(`已移除订阅源「${RF(e)}」`), LF();
+ toggle: (e, t) => void i.run(`enabled-${e.id}`, (n) => sM(e.id, t, n), () => void UF()),
+ fetch: (e) => void i.run(`check-${e.id}`, (t) => lM(t, [e.id]), () => void UF()),
+ remove: (e) => void GF([e], async () => {
+ await cM(e.id), t(`已移除订阅源「${WF(e)}」`), UF();
})
};
let v = (0, R.useMemo)(() => {
- let e = NM(), t = (e) => () => mde[e] || e;
+ let e = VM(), t = (e) => () => yde[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, z.jsx)(GO, {
+ cell: (e) => /* @__PURE__ */ (0, z.jsx)(JO, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
- "aria-label": `选择 ${RF(e.row.original)}`
+ "aria-label": `选择 ${WF(e.row.original)}`
})
}),
- e.accessor(RF, {
+ e.accessor(WF, {
id: "name",
header: t("name"),
cell: (e) => {
- let t = bde(e.row.original, _.current.shared);
+ let t = Tde(e.row.original, _.current.shared);
return /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",
children: [
- /* @__PURE__ */ (0, z.jsx)(yde, {
+ /* @__PURE__ */ (0, z.jsx)(wde, {
source: e.row.original,
avatarInner: _.current.avatarInner
}),
@@ -42849,15 +43122,15 @@ function Sde({ readOnly: e, toast: t, avatarInner: n }) {
rel: "noreferrer noopener",
title: "打开来源页面",
className: "text-text-primary underline-offset-2 hover:underline",
- children: _de(e.getValue())
+ children: Sde(e.getValue())
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, z.jsx)(vde, { source: e.row.original })
+ cell: (e) => /* @__PURE__ */ (0, z.jsx)(Cde, { source: e.row.original })
}),
- e.accessor((e) => gde(e.interval_minutes), {
+ e.accessor((e) => xde(e.interval_minutes), {
id: "interval",
header: t("interval"),
cell: (e) => /* @__PURE__ */ (0, z.jsx)("span", {
@@ -42865,7 +43138,7 @@ function Sde({ readOnly: e, toast: t, avatarInner: n }) {
children: e.getValue()
})
}),
- e.accessor((e) => e.last_fetched_at ? Ds(e.last_fetched_at) : "还没拉过", {
+ e.accessor((e) => e.last_fetched_at ? Es(e.last_fetched_at) : "还没拉过", {
id: "fetched",
header: t("fetched"),
cell: (e) => /* @__PURE__ */ (0, z.jsx)("span", {
@@ -42887,8 +43160,8 @@ function Sde({ readOnly: e, toast: t, avatarInner: n }) {
cell: (e) => /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, z.jsx)(wN, {
- "aria-label": `启用 ${RF(e.row.original)}`,
+ /* @__PURE__ */ (0, z.jsx)(FN, {
+ "aria-label": `启用 ${WF(e.row.original)}`,
isSelected: e.row.original.enabled,
isDisabled: _.current.readOnly,
onChange: (t) => _.current.toggle(e.row.original, t)
@@ -42898,7 +43171,7 @@ function Sde({ readOnly: e, toast: t, avatarInner: n }) {
size: "xs",
iconOnly: !0,
leadingIcon: Ye,
- "aria-label": `拉取 ${RF(e.row.original)}`,
+ "aria-label": `拉取 ${WF(e.row.original)}`,
disabled: _.current.readOnly,
...K(_.current.busy === `check-${e.row.original.id}`),
onClick: () => _.current.fetch(e.row.original)
@@ -42908,7 +43181,7 @@ function Sde({ readOnly: e, toast: t, avatarInner: n }) {
size: "xs",
iconOnly: !0,
leadingIcon: Pe,
- "aria-label": `移除 ${RF(e.row.original)}`,
+ "aria-label": `移除 ${WF(e.row.original)}`,
disabled: _.current.readOnly,
onClick: () => _.current.remove(e.row.original)
})
@@ -42916,7 +43189,7 @@ function Sde({ readOnly: e, toast: t, avatarInner: n }) {
})
})
];
- }, []), y = (0, R.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), b = CN({
+ }, []), y = (0, R.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), b = MN({
data: o,
columns: v,
getRowId: (e) => String(e.id),
@@ -42932,24 +43205,24 @@ function Sde({ readOnly: e, toast: t, avatarInner: n }) {
let t = typeof e == "function" ? e(y) : e;
c(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));
},
- getCoreRowModel: bN(),
- getPaginationRowModel: xN()
+ getCoreRowModel: ON(),
+ getPaginationRowModel: kN()
});
if (!a) return r.error ? /* @__PURE__ */ (0, z.jsx)(G, {
tone: "error",
title: "打不开订阅源",
children: U(r.error)
- }) : /* @__PURE__ */ (0, z.jsx)(EO, { children: "正在读订阅源。" });
- let x = () => void i.run("check", (e) => tM(e), () => void LF()), S = (e) => c((t) => {
+ }) : /* @__PURE__ */ (0, z.jsx)(kO, { children: "正在读订阅源。" });
+ let x = () => void i.run("check", (e) => lM(e), () => void UF()), S = (e) => c((t) => {
let n = new Set(t);
return n.has(e) ? n.delete(e) : n.add(e), n;
}), C = o.filter((e) => s.has(e.id)), w = o.filter((e) => e.last_error);
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, z.jsx)(sde, {
+ children: [/* @__PURE__ */ (0, z.jsx)(fde, {
readOnly: e,
toast: t,
- onAdded: () => void LF()
+ onAdded: () => void UF()
}), /* @__PURE__ */ (0, z.jsxs)("section", {
"aria-label": "JAV 订阅列表",
className: Mi({
@@ -42980,11 +43253,11 @@ function Sde({ readOnly: e, toast: t, avatarInner: n }) {
className: "flex flex-col gap-3",
children: [w.map((e) => /* @__PURE__ */ (0, z.jsx)(G, {
tone: "error",
- title: `${RF(e)} 拉取失败`,
+ title: `${WF(e)} 拉取失败`,
children: e.last_error
- }, e.id)), i.error ? /* @__PURE__ */ (0, z.jsx)(DO, { children: i.error }) : null]
+ }, e.id)), i.error ? /* @__PURE__ */ (0, z.jsx)(AO, { children: i.error }) : null]
}) : null,
- /* @__PURE__ */ (0, z.jsxs)(PF, {
+ /* @__PURE__ */ (0, z.jsxs)(BF, {
visible: C.length > 0,
label: "订阅源批量操作",
count: `已选 ${C.length} 条订阅源`,
@@ -43016,7 +43289,7 @@ function Sde({ readOnly: e, toast: t, avatarInner: n }) {
size: "small",
disabled: e,
...K(h.isPending),
- onClick: () => void zF(C, () => h.mutateAsync({
+ onClick: () => void GF(C, () => h.mutateAsync({
ids: C.map((e) => e.id),
action: "remove"
})),
@@ -43030,22 +43303,22 @@ function Sde({ readOnly: e, toast: t, avatarInner: n }) {
})
]
}),
- o.length ? /* @__PURE__ */ (0, z.jsx)(YO, {
+ o.length ? /* @__PURE__ */ (0, z.jsx)(QO, {
onRowClick: (e) => S(Number(e)),
- children: /* @__PURE__ */ (0, z.jsxs)(KO, {
+ children: /* @__PURE__ */ (0, z.jsxs)(YO, {
"aria-label": "JAV 订阅源",
size: "sm",
- children: [/* @__PURE__ */ (0, z.jsx)(uS, { children: b.getHeaderGroups()[0].headers.map((e) => {
- let t = SN(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, z.jsx)(dS, {
+ children: [/* @__PURE__ */ (0, z.jsx)(dS, { children: b.getHeaderGroups()[0].headers.map((e) => {
+ let t = AN(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, z.jsx)(fS, {
id: e.id,
isRowHeader: e.column.id === "name",
- children: hde.has(e.column.id) ? /* @__PURE__ */ (0, z.jsx)($m, { children: t }) : t
+ children: bde.has(e.column.id) ? /* @__PURE__ */ (0, z.jsx)(Qm, { children: t }) : t
}, e.id);
- }) }), /* @__PURE__ */ (0, z.jsx)(pS, { children: b.getRowModel().rows.map((e) => /* @__PURE__ */ (0, z.jsx)(gS, {
+ }) }), /* @__PURE__ */ (0, z.jsx)(mS, { children: b.getRowModel().rows.map((e) => /* @__PURE__ */ (0, z.jsx)(_S, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, z.jsx)(vS, { children: SN(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, z.jsx)(yS, { children: AN(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id)) })]
})
}) : /* @__PURE__ */ (0, z.jsx)(Pi, {
@@ -43061,19 +43334,19 @@ function Sde({ readOnly: e, toast: t, avatarInner: n }) {
className: "text-body-2-regular text-text-secondary",
children: `${m.start + 1}–${m.end} / ${m.total} 个订阅源`
}),
- /* @__PURE__ */ (0, z.jsx)(LO, {
+ /* @__PURE__ */ (0, z.jsx)(BO, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(f),
onSelectionChange: (e) => {
e !== null && (p(Number(e)), u(1));
},
- children: Nj.map((e) => /* @__PURE__ */ (0, z.jsx)(RO, {
+ children: Vj.map((e) => /* @__PURE__ */ (0, z.jsx)(VO, {
id: String(e),
children: `每页 ${e} 条`
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)(IF, {
+ /* @__PURE__ */ (0, z.jsx)(HF, {
label: "JAV 订阅分页",
page: m.page,
pages: m.pages,
@@ -43095,13 +43368,13 @@ function Sde({ readOnly: e, toast: t, avatarInner: n }) {
}
//#endregion
//#region src/react/follow-manage/follow-manage-page.tsx
-var BF = [
+var KF = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "JAV 订阅源"],
["source", "来源和凭证"]
-], VF = (e) => BF.some(([t]) => t === e);
-function HF({ term: e, figure: t, unit: n }) {
+], qF = (e) => KF.some(([t]) => t === e);
+function JF({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: Mi({
padding: "none",
@@ -43119,23 +43392,23 @@ function HF({ term: e, figure: t, unit: n }) {
})]
});
}
-function Cde(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, R.useState)(VF(e.tab) ? e.tab : "list"), [u, d] = (0, R.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, R.useState)(() => yj(e.sort, e.dir).sort), [m, h] = (0, R.useState)(() => yj(e.sort, e.dir).dir), [g, _] = (0, R.useState)(Dce(e.layout) ? e.layout : "default"), [v, y] = (0, R.useState)(Oce(e.pageSize)), [b, x] = (0, R.useState)(/* @__PURE__ */ new Set()), S = Nn({
- queryKey: kj,
- queryFn: ({ signal: e }) => Kj(e)
+function Ode(e) {
+ let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, R.useState)(qF(e.tab) ? e.tab : "list"), [u, d] = (0, R.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, R.useState)(() => Oj(e.sort, e.dir).sort), [m, h] = (0, R.useState)(() => Oj(e.sort, e.dir).dir), [g, _] = (0, R.useState)(Ace(e.layout) ? e.layout : "default"), [v, y] = (0, R.useState)(jce(e.pageSize)), [b, x] = (0, R.useState)(/* @__PURE__ */ new Set()), S = Nn({
+ queryKey: Lj,
+ queryFn: ({ signal: e }) => eM(e)
}), C = Nn({
- queryKey: Aj,
- queryFn: ({ signal: e }) => qj(e)
+ queryKey: Rj,
+ queryFn: ({ signal: e }) => tM(e)
}), w = Nn({
- queryKey: jj,
- queryFn: ({ signal: e }) => Qj(e)
+ queryKey: zj,
+ queryFn: ({ signal: e }) => oM(e)
}), T = S.data || { sources: [] }, E = C.data || {
root: "",
providers: []
}, D = T.sources;
(0, R.useEffect)(() => {
x((e) => {
- let t = Ice(e, D);
+ let t = zce(e, D);
return t.size === e.size ? e : t;
});
}, [D]);
@@ -43145,9 +43418,9 @@ function Cde(e) {
tab: e.tab ?? c,
page: e.page ?? u,
sort: n === "checked" ? "" : n,
- dir: r === _j[n] ? "" : r
+ dir: r === Dj[n] ? "" : r
});
- }, k = Hj(D), A = D.filter(Ij).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !oM(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
+ }, k = Xj(D), A = D.filter(Wj).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !mM(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
return /* @__PURE__ */ (0, z.jsxs)(Ii, { children: [
a ? /* @__PURE__ */ (0, z.jsx)(G, {
tone: "warning",
@@ -43163,64 +43436,64 @@ function Cde(e) {
children: o
}) : null,
/* @__PURE__ */ (0, z.jsxs)("div", {
- className: Cl,
+ className: Sl,
"aria-label": "关注概览",
children: [
- /* @__PURE__ */ (0, z.jsx)(HF, {
+ /* @__PURE__ */ (0, z.jsx)(JF, {
term: "关注创作者",
figure: k.length,
unit: "位"
}),
- /* @__PURE__ */ (0, z.jsx)(HF, {
+ /* @__PURE__ */ (0, z.jsx)(JF, {
term: "启用来源",
figure: j,
unit: `/ ${D.length}`
}),
- /* @__PURE__ */ (0, z.jsx)(HF, {
+ /* @__PURE__ */ (0, z.jsx)(JF, {
term: "检查失败",
figure: A,
unit: "个来源"
}),
- /* @__PURE__ */ (0, z.jsx)(HF, {
+ /* @__PURE__ */ (0, z.jsx)(JF, {
term: "未看更新",
figure: T.counts?.new || 0,
unit: "条"
}),
- /* @__PURE__ */ (0, z.jsx)(HF, {
+ /* @__PURE__ */ (0, z.jsx)(JF, {
term: "JAV 订阅",
figure: N,
unit: "位"
}),
- /* @__PURE__ */ (0, z.jsx)(HF, {
+ /* @__PURE__ */ (0, z.jsx)(JF, {
term: "未看新作",
figure: w.data?.unread || 0,
unit: "条"
})
]
}),
- /* @__PURE__ */ (0, z.jsxs)(OS, {
+ /* @__PURE__ */ (0, z.jsxs)(jS, {
selectedKey: c,
onSelectionChange: (e) => {
let t = String(e);
- VF(t) && (l(t), O({ tab: t }));
+ qF(t) && (l(t), O({ tab: t }));
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, z.jsx)(AS, {
+ /* @__PURE__ */ (0, z.jsx)(NS, {
"aria-label": "关注管理区域",
"data-section-nav": !0,
"data-section-items": !0,
className: "flex max-w-full flex-nowrap overflow-x-auto",
- children: BF.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(MS, {
+ children: KF.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(FS, {
id: e,
className: "cursor-pointer whitespace-nowrap",
children: e === "source" && M ? `${t}(${M})` : t
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)(NS, {
+ /* @__PURE__ */ (0, z.jsx)(IS, {
id: "list",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, z.jsx)(pde, {
+ children: /* @__PURE__ */ (0, z.jsx)(vde, {
data: T,
sort: f,
dir: m,
@@ -43250,10 +43523,10 @@ function Cde(e) {
}
})
}),
- /* @__PURE__ */ (0, z.jsxs)(NS, {
+ /* @__PURE__ */ (0, z.jsxs)(IS, {
id: "add",
className: "flex flex-col gap-8",
- children: [/* @__PURE__ */ (0, z.jsx)(Ule, {
+ children: [/* @__PURE__ */ (0, z.jsx)(Kle, {
data: T,
credentials: E,
readOnly: a,
@@ -43261,7 +43534,7 @@ function Cde(e) {
openCredentials: () => {
l("source"), O({ tab: "source" });
}
- }), /* @__PURE__ */ (0, z.jsx)(Kle, {
+ }), /* @__PURE__ */ (0, z.jsx)(Yle, {
groups: T.author_aliases || [],
readOnly: a,
toast: r,
@@ -43269,19 +43542,19 @@ function Cde(e) {
sources: T.sources
})]
}),
- /* @__PURE__ */ (0, z.jsx)(NS, {
+ /* @__PURE__ */ (0, z.jsx)(IS, {
id: "feeds",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, z.jsx)(Sde, {
+ children: /* @__PURE__ */ (0, z.jsx)(Dde, {
readOnly: a,
toast: r,
avatarInner: e.avatarInner
})
}),
- /* @__PURE__ */ (0, z.jsx)(NS, {
+ /* @__PURE__ */ (0, z.jsx)(IS, {
id: "source",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, z.jsx)(tue, {
+ children: /* @__PURE__ */ (0, z.jsx)(iue, {
data: E,
readOnly: a,
toast: r
@@ -43293,15 +43566,15 @@ function Cde(e) {
}
//#endregion
//#region src/react/components/board-tabs.tsx
-function wde({ value: e }) {
+function kde({ value: e }) {
return /* @__PURE__ */ (0, z.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 Tde = "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 UF({ tabs: e, value: t, label: n, onChange: r }) {
+var Ade = "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 YF({ tabs: e, value: t, label: n, onChange: r }) {
let i = (0, R.useRef)(null), a = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
let e = i.current;
@@ -43336,7 +43609,7 @@ function UF({ tabs: e, value: t, label: n, onChange: r }) {
"data-tab": e.value,
"aria-selected": i,
tabIndex: i ? 0 : -1,
- className: Tde,
+ className: Ade,
onClick: () => {
i || r(e.value);
},
@@ -43352,23 +43625,23 @@ function UF({ tabs: e, value: t, label: n, onChange: r }) {
}
//#endregion
//#region src/react/index/index-tags.tsx
-var WF = () => /* @__PURE__ */ (0, z.jsx)("span", {
+var XF = () => /* @__PURE__ */ (0, z.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
});
-function Ede({ tag: e, actions: t }) {
+function jde({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": Uk(t.online, e.cat),
+ "data-tag-cat": Bk(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, z.jsx)(WF, {}),
+ /* @__PURE__ */ (0, z.jsx)(XF, {}),
/* @__PURE__ */ (0, z.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -43380,7 +43653,7 @@ function Ede({ tag: e, actions: t }) {
]
});
}
-function Dde({ groups: e, actions: t }) {
+function Mde({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
@@ -43393,10 +43666,10 @@ function Dde({ groups: e, actions: t }) {
}),
children: [/* @__PURE__ */ (0, z.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, z.jsx)(wde, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, z.jsx)(kde, { value: n.length })]
}), /* @__PURE__ */ (0, z.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, z.jsx)(Ede, {
+ children: n.map((e) => /* @__PURE__ */ (0, z.jsx)(jde, {
tag: e,
actions: t
}, e.k))
@@ -43404,8 +43677,8 @@ function Dde({ groups: e, actions: t }) {
}, e))
});
}
-var Ode = "\xA0";
-function kde({ tags: e, actions: t }) {
+var Nde = "\xA0";
+function Pde({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
@@ -43413,11 +43686,11 @@ function kde({ tags: e, actions: t }) {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": Uk(t.online, e.cat),
+ "data-tag-cat": Bk(t.online, e.cat),
"aria-pressed": t.picked.has(e.k),
onClick: () => t.press(e.k),
className: "inline-flex cursor-pointer items-center rounded-lg border px-3 py-1.25 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [e.label + Ode, /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [e.label + Nde, /* @__PURE__ */ (0, z.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
children: e.n.toLocaleString()
@@ -43425,7 +43698,7 @@ function kde({ tags: e, actions: t }) {
}, e.k))
});
}
-var Ade = [[
+var Fde = [[
"cloud",
"标签云",
"tags"
@@ -43434,16 +43707,16 @@ var Ade = [[
"字母表",
"text-aa"
]];
-function jde({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
- return /* @__PURE__ */ (0, z.jsx)(xk, {
+function Ide({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
+ return /* @__PURE__ */ (0, z.jsx)(yk, {
label: "标签筛选",
topLabel: "标签类型",
- top: e.map(([e, r]) => /* @__PURE__ */ (0, z.jsxs)(Sk, {
+ top: e.map(([e, r]) => /* @__PURE__ */ (0, z.jsxs)(bk, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : Uk(n, e),
+ "data-tag-cat": e === "all" ? "all" : Bk(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, z.jsx)(WF, {}), r]
+ children: [/* @__PURE__ */ (0, z.jsx)(XF, {}), r]
}, e)),
bottom: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsx)("span", {
@@ -43462,19 +43735,19 @@ function jde({ categories: e, category: t, online: n, readout: r, letters: i, vi
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, z.jsx)(ex, {
+ /* @__PURE__ */ (0, z.jsx)(tx, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${dA}`,
- children: Ade.map(([e, t, n]) => {
+ className: `ml-auto ${oA}`,
+ children: Fde.map(([e, t, n]) => {
let r = oo(n);
- return /* @__PURE__ */ (0, z.jsx)(tx, {
+ return /* @__PURE__ */ (0, z.jsx)(nx, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: fA,
+ className: sA,
children: /* @__PURE__ */ (0, z.jsx)("span", {
title: t,
className: "contents",
@@ -43486,13 +43759,13 @@ function jde({ categories: e, category: t, online: n, readout: r, letters: i, vi
] })
});
}
-function Mde({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, z.jsxs)(PF, {
+function Lde({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, z.jsxs)(BF, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e} 个标签`,
children: [
- /* @__PURE__ */ (0, z.jsx)(GO, {
+ /* @__PURE__ */ (0, z.jsx)(JO, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, z.jsxs)("span", {
@@ -43524,7 +43797,7 @@ function Mde({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
}
//#endregion
//#region src/react/index/index-page.tsx
-var Nde = [{
+var Rde = [{
value: "studios",
label: "厂牌",
symbol: "clapperboard"
@@ -43532,7 +43805,7 @@ var Nde = [{
value: "agencies",
label: "事务所",
symbol: "briefcase"
-}], GF = [{
+}], ZF = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -43540,7 +43813,7 @@ var Nde = [{
value: "online",
label: "在线",
symbol: "rss"
-}], Pde = {
+}], zde = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -43560,20 +43833,20 @@ var Nde = [{
"layout-grid"
]]
};
-function Fde({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, z.jsx)(cA, {
- "aria-label": `${Ok[e]}索引版式`,
+function Bde({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, z.jsx)(rA, {
+ "aria-label": `${Ek[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none max-board-narrow:order-3 ${lA}`,
- children: Pde[Pk(e) ? "company" : "people"].map(([e, t, n]) => {
+ className: `flex-none max-board-narrow:order-3 ${iA}`,
+ children: zde[jk(e) ? "company" : "people"].map(([e, t, n]) => {
let r = oo(n);
- return /* @__PURE__ */ (0, z.jsx)(tx, {
+ return /* @__PURE__ */ (0, z.jsx)(nx, {
value: e,
"aria-label": t,
- className: zse,
+ className: Use,
children: /* @__PURE__ */ (0, z.jsx)("span", {
title: t,
className: "contents",
@@ -43583,8 +43856,8 @@ function Fde({ kind: e, layout: t, onChange: n }) {
})
});
}
-var Ide = oo("search");
-function Lde({ label: e, value: t, onQuery: n }) {
+var Vde = oo("search");
+function Hde({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, R.useState)(t), a = (0, R.useRef)(!1), o = (0, R.useRef)(void 0);
(0, R.useEffect)(() => () => clearTimeout(o.current), []);
let s = (e) => {
@@ -43599,15 +43872,15 @@ function Lde({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, z.jsx)(nk, {
+ children: /* @__PURE__ */ (0, z.jsx)(ak, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, z.jsx)(ik, {
+ children: /* @__PURE__ */ (0, z.jsx)(sk, {
type: "search",
- leadingIcon: Ide,
+ leadingIcon: Vde,
spellCheck: !1,
autoComplete: "off",
onKeyDown: (e) => {
@@ -43617,14 +43890,14 @@ function Lde({ label: e, value: t, onQuery: n }) {
})
});
}
-function Rde(e) {
- let [t, n] = (0, R.useState)(() => Fk({
+function Ude(e) {
+ let [t, n] = (0, R.useState)(() => Mk({
kind: e.kind,
q: e.q,
scope: e.scope,
view: e.view,
category: e.category
- })), [r, i] = (0, R.useState)(e.layout), [a, o] = (0, R.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, R.useState)("any"), l = (0, R.useRef)(null), { kind: u, q: d, scope: f, view: p, category: h } = t, g = Ok[u], _ = u === "tags" && f === "online", v = u === "performers" && f === "online";
+ })), [r, i] = (0, R.useState)(e.layout), [a, o] = (0, R.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, R.useState)("any"), l = (0, R.useRef)(null), { kind: u, q: d, scope: f, view: p, category: h } = t, g = Ek[u], _ = u === "tags" && f === "online", v = u === "performers" && f === "online";
(0, R.useEffect)(() => {
e.selectMode || o(/* @__PURE__ */ new Set());
}, [e.selectMode]);
@@ -43634,7 +43907,7 @@ function Rde(e) {
...r
};
b(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });
- }, S = zk(Ik(t)), C = Fn({
+ }, S = Ik(Nk(t)), C = Fn({
queryKey: S.queryKey,
queryFn: ({ pageParam: e, signal: t }) => S.queryFn({
pageParam: e,
@@ -43643,21 +43916,21 @@ function Rde(e) {
initialPageParam: 0,
getNextPageParam: S.getNextPageParam,
placeholderData: y ? jt : void 0
- }), T = Vk(C.data), E = !!C.hasNextPage && !C.isPlaceholderData, D = Hk(T.length, !!C.hasNextPage);
+ }), T = Rk(C.data), E = !!C.hasNextPage && !C.isPlaceholderData, D = zk(T.length, !!C.hasNextPage);
(0, R.useEffect)(() => {
l.current && e.refitImages(l.current);
}, [r]);
let O = (0, R.useMemo)(() => u === "tags" ? T.map((t) => ({
...t,
label: e.tagLabel(t.k)
- })) : [], [T, u]), k = (0, R.useMemo)(() => u === "tags" && p === "alphabet" ? Kk(O, (t) => e.tagLabel(t)) : [], [
+ })) : [], [T, u]), k = (0, R.useMemo)(() => u === "tags" && p === "alphabet" ? Tse(O, (t) => e.tagLabel(t)) : [], [
O,
p,
u
]), A = (t) => {
i(t), e.savePreference({ layout: t });
- }, j = u === "tags" ? /* @__PURE__ */ (0, z.jsx)(UF, {
- tabs: GF,
+ }, j = u === "tags" ? /* @__PURE__ */ (0, z.jsx)(YF, {
+ tabs: ZF,
value: f,
label: "词表",
onChange: (e) => {
@@ -43667,15 +43940,15 @@ function Rde(e) {
view: e === "online" ? "alphabet" : p
});
}
- }) : u === "performers" ? /* @__PURE__ */ (0, z.jsx)(UF, {
- tabs: GF,
+ }) : u === "performers" ? /* @__PURE__ */ (0, z.jsx)(YF, {
+ tabs: ZF,
value: f,
label: "名册",
onChange: (t) => {
t === "online" && e.exitSelectMode(), x({ scope: t });
}
- }) : Pk(u) ? /* @__PURE__ */ (0, z.jsx)(UF, {
- tabs: Nde,
+ }) : jk(u) ? /* @__PURE__ */ (0, z.jsx)(YF, {
+ tabs: Rde,
value: u,
label: "公司类型",
onChange: (e) => x({ kind: e })
@@ -43692,7 +43965,7 @@ function Rde(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
});
- }, N = (_ ? jk : Ak).filter(([e]) => e === "all" || Number(C.data?.pages[0]?.categories?.[e] || 0) > 0);
+ }, N = (_ ? Ok : Dk).filter(([e]) => e === "all" || Number(C.data?.pages[0]?.categories?.[e] || 0) > 0);
return /* @__PURE__ */ (0, z.jsxs)("div", {
ref: l,
"data-index-page": u,
@@ -43707,12 +43980,12 @@ function Rde(e) {
className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: g
}),
- Nk(u) ? /* @__PURE__ */ (0, z.jsx)("span", {
+ Ak(u) ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
children: C.isPending ? "" : D
}) : null,
- Nk(u) ? /* @__PURE__ */ (0, z.jsx)(Fde, {
+ Ak(u) ? /* @__PURE__ */ (0, z.jsx)(Bde, {
kind: u,
layout: r,
onChange: A
@@ -43721,7 +43994,7 @@ function Rde(e) {
"aria-hidden": !0,
className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"
}),
- /* @__PURE__ */ (0, z.jsx)(Lde, {
+ /* @__PURE__ */ (0, z.jsx)(Hde, {
label: `过滤${g}`,
value: d,
onQuery: (e) => {
@@ -43731,7 +44004,7 @@ function Rde(e) {
]
}),
j,
- u === "tags" ? /* @__PURE__ */ (0, z.jsx)(jde, {
+ u === "tags" ? /* @__PURE__ */ (0, z.jsx)(Ide, {
categories: N,
category: h,
online: _,
@@ -43766,18 +44039,18 @@ function Rde(e) {
}),
children: m(C.error)
});
- if (!T.length) return /* @__PURE__ */ (0, z.jsx)(Bde, {
+ if (!T.length) return /* @__PURE__ */ (0, z.jsx)(Gde, {
kind: u,
filtered: !!d || u === "tags" && h !== "all",
online: _ || v,
configurable: e.configurable
});
- if (v) return /* @__PURE__ */ (0, z.jsx)(Cse, {
+ if (v) return /* @__PURE__ */ (0, z.jsx)(Dse, {
items: T,
layout: r,
props: e
});
- if (Nk(u)) return /* @__PURE__ */ (0, z.jsx)(Yk, {
+ if (Ak(u)) return /* @__PURE__ */ (0, z.jsx)(Wk, {
kind: u,
items: T,
layout: r,
@@ -43788,10 +44061,10 @@ function Rde(e) {
picked: a,
press: M
};
- return p === "alphabet" ? /* @__PURE__ */ (0, z.jsx)(Dde, {
+ return p === "alphabet" ? /* @__PURE__ */ (0, z.jsx)(Mde, {
groups: k,
actions: t
- }) : /* @__PURE__ */ (0, z.jsx)(kde, {
+ }) : /* @__PURE__ */ (0, z.jsx)(Pde, {
tags: O,
actions: t
});
@@ -43812,7 +44085,7 @@ function Rde(e) {
}) : "载入更多"
})
}) : null,
- u === "tags" && !_ && e.selectMode ? /* @__PURE__ */ (0, z.jsx)(Mde, {
+ u === "tags" && !_ && e.selectMode ? /* @__PURE__ */ (0, z.jsx)(Lde, {
count: a.size,
match: s,
onMatch: c,
@@ -43825,14 +44098,14 @@ function Rde(e) {
]
});
}
-var zde = {
+var Wde = {
tags: "标签",
performers: "艺人",
creators: "创作者",
studios: "厂牌",
agencies: "事务所"
};
-function Bde({ kind: e, filtered: t, online: n, configurable: r }) {
+function Gde({ kind: e, filtered: t, online: n, configurable: r }) {
if (t) return /* @__PURE__ */ (0, z.jsx)(Pi, {
icon: oo("search"),
title: "没有符合条件的内容",
@@ -43843,7 +44116,7 @@ function Bde({ kind: e, filtered: t, online: n, configurable: r }) {
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : zde[e], a = /* @__PURE__ */ (0, z.jsx)(xi, {
+ let i = n && e === "performers" ? "创作者" : Wde[e], a = /* @__PURE__ */ (0, z.jsx)(xi, {
variant: !r || n ? "primary" : "secondary",
href: "/follow-manage?tab=add",
children: "添加关注"
@@ -43859,15 +44132,15 @@ function Bde({ kind: e, filtered: t, online: n, configurable: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var KF = {
+var QF = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, Vde = (e) => KF[e.junk_kind || "other"] || KF.other;
-function Hde(e) {
+}, Kde = (e) => QF[e.junk_kind || "other"] || QF.other;
+function qde(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -43878,21 +44151,21 @@ function Hde(e) {
glyph: "check"
};
}
-var Ude = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), Wde = (e, t) => [
+var Jde = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), Yde = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function Gde({ kind: e, view: t }) {
+function Xde({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function Kde(e, t) {
- let n = await wi(`/api/ads?${Gde(e)}`, t);
+async function Zde(e, t) {
+ let n = await wi(`/api/ads?${Xde(e)}`, t);
return {
...n,
items: n.items || []
@@ -43900,19 +44173,19 @@ async function Kde(e, t) {
}
//#endregion
//#region src/react/junk-queue/junk-card.tsx
-function qF({ name: e }) {
+function $F({ name: e }) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
});
}
-var JF = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function qde({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions: o }) {
- let c = (0, R.useRef)(null), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), p = e.junk_kind || "other", [m, h] = Vde(e), g = String(e.name || ""), _ = Hde(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]") || JF(r, t) && (t.preventDefault(), o.toggleSelection(e.id, t.shiftKey));
+var eI = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+function Qde({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions: o }) {
+ let c = (0, R.useRef)(null), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), p = e.junk_kind || "other", [m, h] = Kde(e), g = String(e.name || ""), _ = qde(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]") || eI(r, t) && (t.preventDefault(), o.toggleSelection(e.id, t.shiftKey));
}, x = (t) => {
- if (t.stopPropagation(), JF(r, t)) {
+ if (t.stopPropagation(), eI(r, t)) {
t.preventDefault(), o.toggleSelection(e.id, t.shiftKey);
return;
}
@@ -43954,7 +44227,7 @@ function qde({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
children: [
/* @__PURE__ */ (0, z.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, z.jsx)(qF, { name: h }), /* @__PURE__ */ (0, z.jsx)("b", { children: m })]
+ children: [/* @__PURE__ */ (0, z.jsx)($F, { name: h }), /* @__PURE__ */ (0, z.jsx)("b", { children: m })]
}),
v ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-media-art": "thumb",
@@ -43966,7 +44239,7 @@ function qde({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
}),
/* @__PURE__ */ (0, z.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, z.jsx)(qF, { name: "check" })
+ children: /* @__PURE__ */ (0, z.jsx)($F, { name: "check" })
})
]
}),
@@ -44003,7 +44276,7 @@ function qde({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
children: [l === "reveal" ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: F("正在定位") }
- }) : /* @__PURE__ */ (0, z.jsx)(qF, { name: "folder-open" }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }) : /* @__PURE__ */ (0, z.jsx)($F, { name: "folder-open" }), /* @__PURE__ */ (0, z.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -44015,7 +44288,7 @@ function qde({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
"aria-label": _.label,
...w(_.operation),
onClick: C(_.operation),
- children: [/* @__PURE__ */ (0, z.jsx)(qF, { name: _.glyph }), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, z.jsx)($F, { name: _.glyph }), /* @__PURE__ */ (0, z.jsx)("span", {
"data-junk-label": "",
children: _.label
})]
@@ -44027,7 +44300,7 @@ function qde({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
"aria-label": "移入回收站",
...w("dispose"),
onClick: C("dispose"),
- children: [/* @__PURE__ */ (0, z.jsx)(qF, { name: "trash" }), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, z.jsx)($F, { name: "trash" }), /* @__PURE__ */ (0, z.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -44042,7 +44315,7 @@ function qde({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
]
});
}
-var Jde = (0, R.memo)(qde), Yde = [
+var $de = (0, R.memo)(Qde), efe = [
[
"",
"全部",
@@ -44079,53 +44352,53 @@ var Jde = (0, R.memo)(qde), Yde = [
"hard-drive"
]
];
-function YF(e = "", t = "pending") {
+function tI(e = "", t = "pending") {
let n = new URLSearchParams();
e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");
let r = n.toString();
return `/junk-files${r ? `?${r}` : ""}`;
}
-function Xde(e) {
+function tfe(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: YF("", "pending")
+ href: tI("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: YF("", "dismissed")
+ href: tI("", "dismissed")
};
}
-var Zde = (e) => e === "dismissed" ? "已排除" : "待判断";
+var nfe = (e) => e === "dismissed" ? "已排除" : "待判断";
//#endregion
//#region src/react/junk-queue/junk-count.tsx
-function XF({ name: e }) {
+function nI({ name: e }) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
});
}
-function ZF({ scope: e, count: t }) {
+function rI({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [" ", /* @__PURE__ */ (0, z.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
-function Qde({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = hO(), { kind: a, view: o } = e, s = Xde(o), c = (e) => {
+function rfe({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = vO(), { kind: a, view: o } = e, s = tfe(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") || YF()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || tI()));
}, l = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-junk-count": "",
children: [/* @__PURE__ */ (0, z.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, z.jsx)(yk, {
- label: Zde(o),
+ children: /* @__PURE__ */ (0, z.jsx)(_k, {
+ label: nfe(o),
figure: l,
pending: !t && !n,
flush: !0
@@ -44138,16 +44411,16 @@ function Qde({ route: e, page: t, failed: n, onNavigate: r }) {
"aria-label": "垃圾文件分类",
onClick: c,
children: [
- Yde.map(([e, n, r]) => /* @__PURE__ */ (0, z.jsxs)("a", {
- href: YF(e, o),
+ efe.map(([e, n, r]) => /* @__PURE__ */ (0, z.jsxs)("a", {
+ href: tI(e, o),
"data-junk-kind-link": e,
"aria-current": e === a ? "page" : void 0,
children: [
- /* @__PURE__ */ (0, z.jsx)(XF, { name: r }),
+ /* @__PURE__ */ (0, z.jsx)(nI, { name: r }),
n,
- /* @__PURE__ */ (0, z.jsx)(ZF, {
+ /* @__PURE__ */ (0, z.jsx)(rI, {
scope: e,
- count: t ? Ude(t, e) : 0
+ count: t ? Jde(t, e) : 0
})
]
}, e || "all")),
@@ -44160,9 +44433,9 @@ function Qde({ route: e, page: t, failed: n, onNavigate: r }) {
"data-junk-view-link": s.view,
"aria-current": o === "dismissed" ? "page" : void 0,
children: [
- /* @__PURE__ */ (0, z.jsx)(XF, { name: s.glyph }),
+ /* @__PURE__ */ (0, z.jsx)(nI, { name: s.glyph }),
s.label,
- /* @__PURE__ */ (0, z.jsx)(ZF, {
+ /* @__PURE__ */ (0, z.jsx)(rI, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -44175,38 +44448,38 @@ function Qde({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var $de = oo("check"), efe = (e, t) => e[1] === t.view && e[2] === t.kind;
-function tfe(e) {
+var ife = oo("check"), afe = (e, t) => e[1] === t.view && e[2] === t.kind;
+function ofe(e) {
let t = {
kind: e.kind,
view: e.view
}, n = (0, R.useRef)(e.cache);
n.current = e.cache;
let r = Nn({
- queryKey: Wde(t, e.revision),
+ queryKey: Yde(t, e.revision),
queryFn: async ({ signal: e }) => {
- let r = await Kde(t, e);
+ let r = await Zde(t, e);
return n.current(r.items), r;
},
- placeholderData: (e, n) => n && efe(n.queryKey, t) ? e : void 0
+ placeholderData: (e, n) => n && afe(n.queryKey, t) ? e : void 0
});
(0, R.useEffect)(() => {
r.isFetching || e.settled?.(e.revision);
}, [r.isFetching, e.revision]);
- let i = nfe(e.countRow), a = r.isPending;
+ let i = sfe(e.countRow), a = r.isPending;
(0, R.useLayoutEffect)(() => {
let t = e.countRow;
t && (a ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, a]), (0, R.useLayoutEffect)(() => {
i && r.data && O(i, "junk");
}, [i, r.data]);
- let { navigate: o } = e.actions, s = i ? (0, be.createPortal)(/* @__PURE__ */ (0, z.jsx)(Qde, {
+ let { navigate: o } = e.actions, s = i ? (0, be.createPortal)(/* @__PURE__ */ (0, z.jsx)(rfe, {
route: t,
page: r.data,
failed: r.isError && !r.data,
onNavigate: o
}), i) : null;
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [s, /* @__PURE__ */ (0, z.jsx)(rfe, {
+ return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [s, /* @__PURE__ */ (0, z.jsx)(cfe, {
props: e,
data: r.data,
pending: a,
@@ -44214,7 +44487,7 @@ function tfe(e) {
retry: () => void r.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function nfe(e) {
+function sfe(e) {
let [t, n] = (0, R.useState)(null);
return (0, R.useLayoutEffect)(() => {
if (!e) return;
@@ -44224,7 +44497,7 @@ function nfe(e) {
};
}, [e]), t;
}
-function rfe({ props: e, data: t, pending: n, error: r, retry: i }) {
+function cfe({ props: e, data: t, pending: n, error: r, retry: i }) {
let a = Ra(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, R.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, R.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
@@ -44240,7 +44513,7 @@ function rfe({ props: e, data: t, pending: n, error: r, retry: i }) {
if (!l.length) {
let t = e.view === "dismissed";
return /* @__PURE__ */ (0, z.jsx)(Pi, {
- icon: $de,
+ icon: ife,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
});
@@ -44249,7 +44522,7 @@ function rfe({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-media-grid": "",
"data-junk-grid": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: u.map((t) => /* @__PURE__ */ (0, z.jsx)(Jde, {
+ children: u.map((t) => /* @__PURE__ */ (0, z.jsx)($de, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -44257,11 +44530,11 @@ function rfe({ props: e, data: t, pending: n, error: r, retry: i }) {
helpers: e.helpers,
actions: e.actions
}, t.id))
- }), u.length < l.length ? /* @__PURE__ */ (0, z.jsx)(ife, { onMore: f }, s) : null] });
+ }), u.length < l.length ? /* @__PURE__ */ (0, z.jsx)(lfe, { onMore: f }, s) : null] });
})()]
});
}
-function ife({ onMore: e }) {
+function lfe({ onMore: e }) {
let t = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
let n = t.current;
@@ -44279,12 +44552,12 @@ function ife({ onMore: e }) {
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var QF = "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", afe = {
- gray: `${QF} border-separator-border bg-background-secondary-default text-text-secondary`,
- warning: `${QF} border-current/35 bg-status-yellow-background text-status-yellow-text`,
- error: `${QF} border-current/35 bg-background-tertiary-error text-text-error-primary`
+var iI = "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", ufe = {
+ gray: `${iI} border-separator-border bg-background-secondary-default text-text-secondary`,
+ warning: `${iI} border-current/35 bg-status-yellow-background text-status-yellow-text`,
+ error: `${iI} border-current/35 bg-background-tertiary-error text-text-error-primary`
};
-function ofe({ value: e, max: t }) {
+function dfe({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, z.jsxs)("svg", {
role: "progressbar",
@@ -44312,16 +44585,16 @@ function ofe({ value: e, max: t }) {
})]
});
}
-function sfe(e) {
- let { job: t } = PO(e), n = t.data, r = t.isError ? n ? Qo : U(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+function ffe(e) {
+ let { job: t } = LO(e), n = t.data, r = t.isError ? n ? Zo : U(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 ? "扫描与资料采集未完成" : rs(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? We : Fe;
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : ns(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? We : Fe;
return /* @__PURE__ */ (0, z.jsxs)("aside", {
role: a ? "alert" : "status",
- className: afe[s],
+ className: ufe[s],
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [o && l ? /* @__PURE__ */ (0, z.jsx)(ofe, {
+ children: [o && l ? /* @__PURE__ */ (0, z.jsx)(dfe, {
value: c,
max: l
}) : /* @__PURE__ */ (0, z.jsx)(d, {
@@ -44331,7 +44604,7 @@ function sfe(e) {
className: "min-w-0 text-body-2-regular",
children: u
})]
- }), /* @__PURE__ */ (0, z.jsx)(oO, {
+ }), /* @__PURE__ */ (0, z.jsx)(lO, {
href: "/data-cleanup#libraryProcessing",
size: "small",
trailingIcon: Te,
@@ -44341,32 +44614,32 @@ function sfe(e) {
}
//#endregion
//#region src/react/playlists/playlists.ts
-var cfe = "/api/playlists", $F = "/api/playlist", eI = ["playlists"], tI = (e) => wi(cfe, e);
-async function lfe(e) {
+var pfe = "/api/playlists", aI = "/api/playlist", oI = ["playlists"], sI = (e) => wi(pfe, e);
+async function mfe(e) {
await q.fetchQuery({
- queryKey: eI,
- queryFn: () => tI(e),
+ queryKey: oI,
+ queryFn: () => sI(e),
staleTime: 0
});
}
-var nI = () => q.invalidateQueries({
- queryKey: eI,
+var cI = () => q.invalidateQueries({
+ queryKey: oI,
exact: !0
-}), ufe = (e) => e.current_asset_id || e.preview_asset_id || null, rI = (e) => `/poster?id=${e}&c=4`, dfe = (e) => W($F, {
+}), hfe = (e) => e.current_asset_id || e.preview_asset_id || null, lI = (e) => `/poster?id=${e}&c=4`, gfe = (e) => W(aI, {
action: "create",
name: e,
asset_ids: []
-}), iI = (e, t) => W($F, {
+}), uI = (e, t) => W(aI, {
action: "rename",
id: e,
name: t
-}), aI = (e) => W($F, {
+}), dI = (e) => W(aI, {
action: "delete",
id: e
-}), ffe = (e) => wi(`${$F}?id=${e}`).catch(() => null);
-function pfe(e) {
+}), _fe = (e) => wi(`${aI}?id=${e}`).catch(() => null);
+function vfe(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return W($F, {
+ return W(aI, {
action: "create",
name: e.name,
asset_ids: t,
@@ -44376,18 +44649,18 @@ function pfe(e) {
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
-var mfe = oo("ellipsis"), hfe = oo("pencil"), gfe = oo("trash"), _fe = oo("playlist"), oI = gi(cO, lO, "text-body-2-medium"), sI = "播放列表名称不能为空", cI = (e) => async () => {
+var yfe = oo("ellipsis"), bfe = oo("pencil"), xfe = oo("trash"), Sfe = oo("playlist"), fI = gi(dO, fO, "text-body-2-medium"), pI = "播放列表名称不能为空", mI = (e) => async () => {
try {
await e();
} finally {
- nI();
+ cI();
}
};
-function vfe({ toast: e }) {
+function Cfe({ toast: e }) {
let [t, n] = (0, R.useState)(""), [r, i] = (0, R.useState)(""), a = Pn({
- mutationFn: (e) => dfe(e),
+ mutationFn: (e) => gfe(e),
onSuccess: (t) => {
- n(""), i(""), nI(), e("已新建播放列表", { undo: cI(() => aI(t.playlist.id)) });
+ n(""), i(""), cI(), e("已新建播放列表", { undo: mI(() => dI(t.playlist.id)) });
},
onError: (e) => i(U(e) || "新建失败")
});
@@ -44397,7 +44670,7 @@ function vfe({ toast: e }) {
onSubmit: (e) => {
if (e.preventDefault(), !a.isPending) {
if (!t.trim()) {
- i(sI);
+ i(pI);
return;
}
a.mutate(t);
@@ -44406,7 +44679,7 @@ function vfe({ toast: e }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, z.jsx)("div", {
className: "min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none",
- children: /* @__PURE__ */ (0, z.jsx)(ak, {
+ children: /* @__PURE__ */ (0, z.jsx)(ck, {
label: "新播放列表",
placeholder: "输入名称",
maxLength: 80,
@@ -44425,7 +44698,7 @@ function vfe({ toast: e }) {
})]
});
}
-function yfe({ target: e, close: t, toast: n }) {
+function wfe({ target: e, close: t, toast: n }) {
let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(""), s = (0, R.useRef)(null);
(0, R.useEffect)(() => {
if (!e) return;
@@ -44436,9 +44709,9 @@ function yfe({ target: e, close: t, toast: n }) {
return () => cancelAnimationFrame(t);
}, [e]);
let c = Pn({
- mutationFn: ({ row: e, value: t }) => iI(e.id, t),
+ mutationFn: ({ row: e, value: t }) => uI(e.id, t),
onSuccess: (e, { row: r }) => {
- t(), nI(), n("已重命名播放列表", { undo: cI(() => iI(r.id, r.name)) });
+ t(), cI(), n("已重命名播放列表", { undo: mI(() => uI(r.id, r.name)) });
},
onError: (e) => o(U(e))
});
@@ -44454,7 +44727,7 @@ function yfe({ target: e, close: t, toast: n }) {
if (t.preventDefault(), !e || c.isPending) return;
let n = r.trim();
if (!n) {
- o(sI);
+ o(pI);
return;
}
c.mutate({
@@ -44465,11 +44738,11 @@ function yfe({ target: e, close: t, toast: n }) {
className: "flex min-h-0 flex-col",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-4 p-5",
- children: [/* @__PURE__ */ (0, z.jsx)(Rm, {
+ children: [/* @__PURE__ */ (0, z.jsx)(Lm, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "编辑名称"
- }), /* @__PURE__ */ (0, z.jsx)(ak, {
+ }), /* @__PURE__ */ (0, z.jsx)(ck, {
ref: s,
label: "名称",
placeholder: "输入名称",
@@ -44497,7 +44770,7 @@ function yfe({ target: e, close: t, toast: n }) {
})
});
}
-function bfe({ name: e, onRename: t, onDelete: n }) {
+function Tfe({ name: e, onRename: t, onDelete: n }) {
let r = (0, R.useRef)(null), [i, a] = (0, R.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -44511,33 +44784,33 @@ function bfe({ name: e, onRename: t, onDelete: n }) {
"data-playlist-menu": "",
onClick: () => a(!0),
className: "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-2lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary aria-expanded:bg-background-primary-hover aria-expanded:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, z.jsx)(mfe, {
+ children: /* @__PURE__ */ (0, z.jsx)(yfe, {
"aria-hidden": !0,
className: "size-4.5"
})
- }), /* @__PURE__ */ (0, z.jsx)(hy, {
+ }), /* @__PURE__ */ (0, z.jsx)(gy, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: sO,
- children: /* @__PURE__ */ (0, z.jsxs)(iO, {
+ className: uO,
+ children: /* @__PURE__ */ (0, z.jsxs)(sO, {
"aria-label": `播放列表操作:${e}`,
className: "flex w-37.5 flex-col gap-0.5 outline-none",
children: [/* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
- className: oI,
+ className: fI,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, z.jsx)(hfe, {
+ children: [/* @__PURE__ */ (0, z.jsx)(bfe, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "编辑名称"]
}), /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
- className: oI,
+ className: fI,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, z.jsx)(gfe, {
+ children: [/* @__PURE__ */ (0, z.jsx)(xfe, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "删除播放列表"]
@@ -44545,13 +44818,13 @@ function bfe({ name: e, onRename: t, onDelete: n }) {
})
})] });
}
-function xfe({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast: i, revision: a }) {
+function Efe({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast: i, revision: a }) {
let o = Nn({
- queryKey: eI,
- queryFn: ({ signal: e }) => tI(e)
+ queryKey: oI,
+ queryFn: ({ signal: e }) => sI(e)
}), [s, c] = (0, R.useState)(null), l = (0, R.useRef)(a);
(0, R.useEffect)(() => {
- l.current !== a && (l.current = a, nI());
+ l.current !== a && (l.current = a, cI());
}, [a]);
let u = o.data;
if (!u) return /* @__PURE__ */ (0, z.jsx)("div", {
@@ -44569,8 +44842,8 @@ function xfe({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
confirmLabel: "删除播放列表",
danger: !0,
onConfirm: async () => {
- let t = await ffe(e.id);
- await aI(e.id), nI(), i("已删除播放列表", t ? { undo: cI(() => pfe(t)) } : void 0);
+ let t = await _fe(e.id);
+ await dI(e.id), cI(), i("已删除播放列表", t ? { undo: mI(() => vfe(t)) } : void 0);
}
});
};
@@ -44585,27 +44858,27 @@ function xfe({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
}), /* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "保存 Mix,按自己的顺序继续播放。"
- })] }), /* @__PURE__ */ (0, z.jsx)(vfe, { toast: i })]
+ })] }), /* @__PURE__ */ (0, z.jsx)(Cfe, { toast: i })]
}),
d.length ? /* @__PURE__ */ (0, z.jsx)("div", {
"data-playlist-grid": "",
className: "card-grid-cover gap-4.5",
children: d.map((i) => {
- let a = ufe(i);
+ let a = hfe(i);
return /* @__PURE__ */ (0, z.jsx)(_o, {
"data-playlist-card": String(i.id),
name: i.name,
caption: i.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
count: i.item_count,
- poster: i.preview_asset_id ? rI(i.preview_asset_id) : null,
- flipImages: async () => (i.preview_ids || []).map(rI),
+ poster: i.preview_asset_id ? lI(i.preview_asset_id) : null,
+ flipImages: async () => (i.preview_ids || []).map(lI),
canFlip: r,
faces: i.faces || [],
faceAvatar: n,
onOpenEntity: t,
...a ? { onOpen: () => e(i.id, a) } : {},
openLabel: `打开播放列表 ${i.name}`,
- menu: /* @__PURE__ */ (0, z.jsx)(bfe, {
+ menu: /* @__PURE__ */ (0, z.jsx)(Tfe, {
name: i.name,
onRename: () => c(i),
onDelete: () => f(i)
@@ -44613,11 +44886,11 @@ function xfe({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
}, i.id);
})
}) : /* @__PURE__ */ (0, z.jsx)(Pi, {
- icon: _fe,
+ icon: Sfe,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
}),
- /* @__PURE__ */ (0, z.jsx)(yfe, {
+ /* @__PURE__ */ (0, z.jsx)(wfe, {
target: s,
close: () => c(null),
toast: i
@@ -44627,7 +44900,7 @@ function xfe({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
}
//#endregion
//#region src/react/quality-goals/quality-goals-page.tsx
-function Sfe({ item: t, openItem: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
+function Dfe({ item: t, openItem: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
let c = () => n(t.id);
return /* @__PURE__ */ (0, z.jsxs)("li", {
"data-goal-id": t.id,
@@ -44647,7 +44920,7 @@ function Sfe({ item: t, openItem: n, javTitleHtml: r, javDisplayName: i, srcBadg
className: "text-caption-1-regular text-text-secondary",
children: "暂无预览"
}), /* @__PURE__ */ (0, z.jsx)("img", {
- src: Ss(t),
+ src: xs(t),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
@@ -44695,10 +44968,10 @@ function Sfe({ item: t, openItem: n, javTitleHtml: r, javDisplayName: i, srcBadg
})]
});
}
-function Cfe(e) {
+function Ofe(e) {
let t = Nn({
- queryKey: ys,
- queryFn: ({ signal: e }) => bs(e)
+ queryKey: vs,
+ queryFn: ({ signal: e }) => ys(e)
}), n = t.data;
if (!n) return /* @__PURE__ */ (0, z.jsx)(Ii, { children: /* @__PURE__ */ (0, z.jsx)(G, {
tone: "error",
@@ -44720,7 +44993,7 @@ function Cfe(e) {
})]
}), /* @__PURE__ */ (0, z.jsx)("ul", {
className: "card-grid-cover gap-5",
- children: r.map((t) => /* @__PURE__ */ (0, z.jsx)(Sfe, {
+ children: r.map((t) => /* @__PURE__ */ (0, z.jsx)(Dfe, {
item: t,
...e
}, t.id))
@@ -44733,17 +45006,17 @@ function Cfe(e) {
}
//#endregion
//#region src/react/providers.tsx
-var lI = null;
-function wfe() {
- return lI?.isConnected || (lI = document.createElement("div"), lI.className = "peach-react", lI.dataset.reactOverlays = "", document.body.append(lI)), lI;
+var hI = null;
+function kfe() {
+ return hI?.isConnected || (hI = document.createElement("div"), hI.className = "peach-react", hI.dataset.reactOverlays = "", document.body.append(hI)), hI;
}
-function uI({ children: e }) {
+function gI({ children: e }) {
return /* @__PURE__ */ (0, z.jsx)(ct, {
client: q,
- children: /* @__PURE__ */ (0, z.jsx)(iP, {
+ children: /* @__PURE__ */ (0, z.jsx)(hP, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, z.jsx)(iy, {
- getContainer: wfe,
+ children: /* @__PURE__ */ (0, z.jsx)(ay, {
+ getContainer: kfe,
children: e
})
})
@@ -44751,8 +45024,8 @@ function uI({ children: e }) {
}
//#endregion
//#region src/react/review/bulk-toolbar.tsx
-function Tfe(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 = Vs(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
+function Afe(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 = Bs(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("div", {
role: "group",
"aria-label": "复核筛选",
@@ -44760,29 +45033,29 @@ function Tfe(e) {
"data-glass-pane": "",
className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(LO, {
+ /* @__PURE__ */ (0, z.jsx)(BO, {
"aria-label": "筛选分组方式",
size: "sm",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: t.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(RO, {
+ children: t.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(VO, {
id: e,
children: t
}, e))
}),
- i.length > 1 ? /* @__PURE__ */ (0, z.jsxs)(LO, {
+ i.length > 1 ? /* @__PURE__ */ (0, z.jsxs)(BO, {
"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",
size: "sm",
selectedKey: a || "*",
onSelectionChange: (e) => {
e !== null && o(String(e) === "*" ? "" : String(e));
},
- children: [/* @__PURE__ */ (0, z.jsx)(RO, {
+ children: [/* @__PURE__ */ (0, z.jsx)(VO, {
id: "*",
children: "全部分类"
- }), i.map((e) => /* @__PURE__ */ (0, z.jsx)(RO, {
+ }), i.map((e) => /* @__PURE__ */ (0, z.jsx)(VO, {
id: e.key,
children: `${e.title} · ${e.rows.length}`
}, e.key))]
@@ -44801,12 +45074,12 @@ function Tfe(e) {
children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"
})
]
- }), /* @__PURE__ */ (0, z.jsxs)(PF, {
+ }), /* @__PURE__ */ (0, z.jsxs)(BF, {
label: "复核所选项目",
visible: c.size > 0,
count: `已选 ${c.size} 项`,
children: [
- b ? /* @__PURE__ */ (0, z.jsxs)(LO, {
+ b ? /* @__PURE__ */ (0, z.jsxs)(BO, {
"aria-label": "统一选择来源",
size: "sm",
selectedKey: "",
@@ -44814,10 +45087,10 @@ function Tfe(e) {
onSelectionChange: (e) => {
e !== null && e !== "" && h(String(e));
},
- children: [/* @__PURE__ */ (0, z.jsx)(RO, {
+ children: [/* @__PURE__ */ (0, z.jsx)(VO, {
id: "",
children: x
- }), y.map((e) => /* @__PURE__ */ (0, z.jsx)(RO, {
+ }), y.map((e) => /* @__PURE__ */ (0, z.jsx)(VO, {
id: e,
children: e
}, e))]
@@ -44853,7 +45126,7 @@ function Tfe(e) {
}
//#endregion
//#region src/react/review/candidate-form.tsx
-var Efe = {
+var jfe = {
title: "标题",
original_title: "原标题",
runtime: "来源时长",
@@ -44863,14 +45136,14 @@ var Efe = {
cover_url: "封面",
screenshot_urls: "截图",
trailer_url: "预告片"
-}, dI = "reviewgenretags";
-function Dfe({ tags: e }) {
+}, _I = "reviewgenretags";
+function Mfe({ tags: e }) {
return e.length ? /* @__PURE__ */ (0, z.jsx)("datalist", {
- id: dI,
+ id: _I,
children: e.map((e) => /* @__PURE__ */ (0, z.jsx)("option", { value: e }, e))
}) : null;
}
-function fI({ candidate: e, selectable: t = !1 }) {
+function vI({ candidate: e, selectable: t = !1 }) {
let n = Object.entries(e.catalog_evidence || {}).filter(([, e]) => e && e.display_value), r = e.content_id || e.provider_id;
return /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col",
@@ -44907,7 +45180,7 @@ function fI({ candidate: e, selectable: t = !1 }) {
children: [
/* @__PURE__ */ (0, z.jsx)("dt", {
className: "text-body-2-regular text-text-secondary",
- children: Efe[e] || e
+ children: jfe[e] || e
}),
/* @__PURE__ */ (0, z.jsx)("dd", {
className: "min-w-0 text-body-2-regular break-words text-text-primary",
@@ -44922,36 +45195,36 @@ function fI({ candidate: e, selectable: t = !1 }) {
}) : null]
});
}
-function Ofe({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
+function Nfe({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
let a = e.candidates || [];
return a.length ? a.length === 1 ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
- children: /* @__PURE__ */ (0, z.jsx)(fI, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, z.jsx)(ex, {
+ children: /* @__PURE__ */ (0, z.jsx)(vI, { candidate: a[0] })
+ }) : /* @__PURE__ */ (0, z.jsx)(tx, {
"aria-label": `${t || "候选"}的来源`,
value: n,
isDisabled: i,
onChange: r,
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, z.jsx)(tx, {
+ children: a.map((e) => /* @__PURE__ */ (0, z.jsx)(nx, {
value: e.candidate_key,
className: "group flex cursor-pointer items-center gap-2 overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:border-border-button-active data-disabled:cursor-not-allowed",
- children: /* @__PURE__ */ (0, z.jsx)(fI, {
+ children: /* @__PURE__ */ (0, z.jsx)(vI, {
candidate: e,
selectable: !0
})
}, e.candidate_key))
}) : null;
}
-function kfe({ genre: e, tags: t, locked: n, toast: r }) {
+function Pfe({ genre: e, tags: t, locked: n, toast: r }) {
let [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), c = Pn({
- mutationFn: (t) => tc(e, t),
+ mutationFn: (t) => ec(e, t),
onSuccess: async (t, n) => {
if (!t.ok) {
s(t.error || "服务端拒绝了这次收录");
return;
}
- r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await ic();
+ r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await rc();
},
onError: (e) => s(U(e))
}), l = () => {
@@ -44970,16 +45243,16 @@ function kfe({ genre: e, tags: t, locked: n, toast: r }) {
className: "text-body-medium text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, z.jsx)(nk, {
+ /* @__PURE__ */ (0, z.jsx)(ak, {
"aria-label": `「${e}」收录成的中文标签`,
value: i,
onChange: a,
maxLength: 40,
isDisabled: n || c.isPending,
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, z.jsx)(ik, {
+ children: /* @__PURE__ */ (0, z.jsx)(sk, {
size: "small",
- list: t.length ? dI : void 0,
+ list: t.length ? _I : void 0,
autoComplete: "off",
placeholder: "中文标签",
onKeyDown: (e) => {
@@ -45011,8 +45284,8 @@ function kfe({ genre: e, tags: t, locked: n, toast: r }) {
]
});
}
-function Afe({ row: e, tags: t, locked: n, toast: r }) {
- let i = Ys(e);
+function Ffe({ row: e, tags: t, locked: n, toast: r }) {
+ let i = Js(e);
return i.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
role: "group",
"aria-label": "未收录 genre",
@@ -45020,7 +45293,7 @@ function Afe({ row: e, tags: t, locked: n, toast: r }) {
children: [/* @__PURE__ */ (0, z.jsx)("h5", {
className: "text-body-2-medium text-text-secondary",
children: `未收录 genre · ${i.length}`
- }), i.map((e) => /* @__PURE__ */ (0, z.jsx)(kfe, {
+ }), i.map((e) => /* @__PURE__ */ (0, z.jsx)(Pfe, {
genre: e,
tags: t,
locked: n,
@@ -45030,9 +45303,9 @@ function Afe({ row: e, tags: t, locked: n, toast: r }) {
}
//#endregion
//#region src/react/review/review-evidence.tsx
-var pI = (e = "") => /^https?:\/\//i.test(e) ? e : "", jfe = (e = "") => pI(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
-function mI({ url: e }) {
- let t = jfe(e || ""), [n, r] = (0, R.useState)(!1);
+var yI = (e = "") => /^https?:\/\//i.test(e) ? e : "", Ife = (e = "") => yI(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+function bI({ url: e }) {
+ let t = Ife(e || ""), [n, r] = (0, R.useState)(!1);
return /* @__PURE__ */ (0, z.jsx)("div", {
className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",
children: t && !n ? /* @__PURE__ */ (0, z.jsx)("img", {
@@ -45047,7 +45320,7 @@ function mI({ url: e }) {
})
});
}
-function hI({ asset: e, openItem: t }) {
+function xI({ asset: e, openItem: t }) {
let n = e.name || "";
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",
@@ -45063,7 +45336,7 @@ function hI({ asset: e, openItem: t }) {
}) : /* @__PURE__ */ (0, z.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "无封面"
- }), /* @__PURE__ */ (0, z.jsx)($m, { children: `打开原视频 ${n}` })]
+ }), /* @__PURE__ */ (0, z.jsx)(Qm, { children: `打开原视频 ${n}` })]
}), /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-1",
children: [/* @__PURE__ */ (0, z.jsx)("b", {
@@ -45080,14 +45353,14 @@ function hI({ asset: e, openItem: t }) {
})]
});
}
-function Mfe({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
+function Lfe({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"aria-label": `打开创作者页:${t}`,
onClick: () => i(e, t),
- className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${TN}`,
+ 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 ${IN}`,
dangerouslySetInnerHTML: { __html: r }
}), /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-w-0 flex-col items-start",
@@ -45103,8 +45376,8 @@ function Mfe({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
})]
});
}
-function Nfe({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
- let o = pI(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
+function Rfe({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
+ let o = yI(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
return /* @__PURE__ */ (0, z.jsxs)("section", {
className: "flex flex-col gap-3",
children: [
@@ -45129,7 +45402,7 @@ function Nfe({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
children: `查看全部 ${c.toLocaleString()} 部作品`
})]
}),
- /* @__PURE__ */ (0, z.jsx)(mI, { url: e.preview_url }),
+ /* @__PURE__ */ (0, z.jsx)(bI, { url: e.preview_url }),
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "通过后记录身份判断。"
@@ -45172,7 +45445,7 @@ function Nfe({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
]
});
}
-function Pfe({ assets: e, picked: t, onPicked: n, locked: r }) {
+function zfe({ assets: e, picked: t, onPicked: n, locked: r }) {
let [i, a] = (0, R.useState)(null), o = new Set(t), s = (t, s) => {
if (r) return;
let c = new Set(o);
@@ -45228,7 +45501,7 @@ function Pfe({ assets: e, picked: t, onPicked: n, locked: r }) {
}),
/* @__PURE__ */ (0, z.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, z.jsx)(WO, {
+ children: /* @__PURE__ */ (0, z.jsx)(qO, {
size: "sm",
state: {
isSelected: n,
@@ -45239,7 +45512,7 @@ function Pfe({ assets: e, picked: t, onPicked: n, locked: r }) {
}
})
}),
- /* @__PURE__ */ (0, z.jsx)($m, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
+ /* @__PURE__ */ (0, z.jsx)(Qm, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
]
}, e.id);
})
@@ -45248,19 +45521,19 @@ function Pfe({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var Ffe = Mi({
+var Bfe = Mi({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
-}), gI = "flex min-h-6 min-w-0 items-center", Ife = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
-function Lfe(e) {
- let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, R.useRef)(!1), m = hO(), h = hO(), g = t === "metadata_fields", _ = Is[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = Ks(t, n), x = Gs(t, n), S = Ws(t, n), C = qs(n), w = Js(n), T = Us(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, z.jsx)("div", {
+}), SI = "flex min-h-6 min-w-0 items-center", Vfe = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
+function Hfe(e) {
+ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, R.useRef)(!1), m = vO(), h = vO(), g = t === "metadata_fields", _ = Fs[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = Gs(t, n), x = Ws(t, n), S = Us(t, n), C = Ks(n), w = qs(n), T = Hs(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "flex flex-col gap-3",
- children: E.map((e) => /* @__PURE__ */ (0, z.jsx)(hI, {
+ children: E.map((e) => /* @__PURE__ */ (0, z.jsx)(xI, {
asset: e,
openItem: f.openItem
}, e.id))
- }) : y ? /* @__PURE__ */ (0, z.jsx)(Mfe, {
+ }) : y ? /* @__PURE__ */ (0, z.jsx)(Lfe, {
kind: _,
name: v,
works: Number(n.video_count || n.videos || 0),
@@ -45270,14 +45543,14 @@ function Lfe(e) {
has_image: !!n.has_image,
avatar_focus: n.avatar_focus
} : null, null, _)
- }) : n.asset_id ? /* @__PURE__ */ (0, z.jsx)(hI, {
+ }) : n.asset_id ? /* @__PURE__ */ (0, z.jsx)(xI, {
openItem: f.openItem,
asset: {
id: n.asset_id,
name: n.asset_name,
preview_url: n.asset_preview_url
}
- }) : null, A = g ? /* @__PURE__ */ (0, z.jsx)(Ofe, {
+ }) : null, A = g ? /* @__PURE__ */ (0, z.jsx)(Nfe, {
row: n,
fieldName: x,
value: r.candidateKey,
@@ -45286,7 +45559,7 @@ function Lfe(e) {
candidateKey: e
}),
locked: s
- }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, z.jsx)(Pfe, {
+ }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, z.jsx)(zfe, {
assets: D,
picked: r.assets,
locked: s,
@@ -45299,15 +45572,15 @@ function Lfe(e) {
icon: He,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, z.jsx)(Nfe, {
+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, z.jsx)(Rfe, {
row: n,
openItem: f.openItem,
openEntity: f.openEntity,
onReveal: f.onReveal,
revealing: f.revealing,
note: f.revealNote
- }) : /* @__PURE__ */ (0, z.jsx)(mI, { url: n.preview_url }), j = y ? k : x ? /* @__PURE__ */ (0, z.jsxs)("h4", {
- className: `${gI} flex-wrap gap-2`,
+ }) : /* @__PURE__ */ (0, z.jsx)(bI, { url: n.preview_url }), j = y ? k : x ? /* @__PURE__ */ (0, z.jsxs)("h4", {
+ className: `${SI} flex-wrap gap-2`,
children: [/* @__PURE__ */ (0, z.jsx)(yi, {
variant: "caption",
color: "blue",
@@ -45318,7 +45591,7 @@ function Lfe(e) {
children: S
})]
}) : /* @__PURE__ */ (0, z.jsx)("h4", {
- className: gI,
+ className: SI,
children: /* @__PURE__ */ (0, z.jsx)("span", {
title: b,
className: "min-w-0 truncate text-body-medium text-text-primary",
@@ -45328,20 +45601,20 @@ function Lfe(e) {
return /* @__PURE__ */ (0, z.jsxs)("section", {
"aria-label": b,
"data-review-key": n.item_key,
- className: `${Ffe} ${Ife(t)} overflow-hidden`,
+ className: `${Bfe} ${Vfe(t)} overflow-hidden`,
children: [
/* @__PURE__ */ (0, z.jsxs)("header", {
className: "flex min-w-0 shrink-0 items-start gap-2",
children: [
s ? null : /* @__PURE__ */ (0, z.jsx)("span", {
- className: `${gI} shrink-0`,
+ className: `${SI} shrink-0`,
onPointerDownCapture: (e) => {
p.current = e.shiftKey;
},
onKeyDownCapture: (e) => {
p.current = e.shiftKey;
},
- children: /* @__PURE__ */ (0, z.jsx)(GO, {
+ children: /* @__PURE__ */ (0, z.jsx)(JO, {
isSelected: a,
"aria-label": `选择 ${b}`,
onChange: (e) => o(p.current, e)
@@ -45385,7 +45658,7 @@ function Lfe(e) {
})
}) : null,
A,
- /* @__PURE__ */ (0, z.jsx)(Afe, {
+ /* @__PURE__ */ (0, z.jsx)(Ffe, {
row: n,
tags: u,
locked: s,
@@ -45447,8 +45720,8 @@ function Lfe(e) {
}
//#endregion
//#region src/react/review/review-page.tsx
-var Rfe = "flex cursor-pointer items-center justify-between gap-2";
-function zfe({ page: e, pages: t, onPage: n }) {
+var Ufe = "flex cursor-pointer items-center justify-between gap-2";
+function Wfe({ page: e, pages: t, onPage: n }) {
return t <= 1 ? null : /* @__PURE__ */ (0, z.jsxs)("nav", {
"aria-label": "复核分页",
className: "flex w-full flex-wrap items-center justify-between gap-2",
@@ -45462,7 +45735,7 @@ function zfe({ page: e, pages: t, onPage: n }) {
}),
/* @__PURE__ */ (0, z.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: Cs(e, t).map((t, r) => /* @__PURE__ */ (0, z.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, z.jsx)("span", {
+ children: Ss(e, t).map((t, r) => /* @__PURE__ */ (0, z.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, z.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -45485,38 +45758,38 @@ function zfe({ page: e, pages: t, onPage: n }) {
]
});
}
-function Bfe(e) {
+function Gfe(e) {
let [t, n] = (0, R.useState)(() => matchMedia("(max-width:900px)").matches);
(0, R.useEffect)(() => {
let e = matchMedia("(max-width:900px)"), t = () => n(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let { route: r, openItem: i, openEntity: a, revealSource: o, avatarInner: s, toast: c, readOnly: l, readOnlyMessage: u, writerUrl: d } = e, [f, p] = (0, R.useState)(Fs(e.category) ? e.category : Ps), [m, h] = (0, R.useState)("candidates"), [g, _] = (0, R.useState)(""), [v, y] = (0, R.useState)(1), [b, x] = (0, R.useState)(/* @__PURE__ */ new Set()), [S, C] = (0, R.useState)(/* @__PURE__ */ new Map()), [w, T] = (0, R.useState)(/* @__PURE__ */ new Map()), [E, D] = (0, R.useState)(""), O = (0, R.useRef)(null), [k, A] = (0, R.useState)(0), [j, M] = (0, R.useState)(""), N = (0, R.useRef)(!0);
+ let { route: r, openItem: i, openEntity: a, revealSource: o, avatarInner: s, toast: c, readOnly: l, readOnlyMessage: u, writerUrl: d } = e, [f, p] = (0, R.useState)(Ps(e.category) ? e.category : Ns), [m, h] = (0, R.useState)("candidates"), [g, _] = (0, R.useState)(""), [v, y] = (0, R.useState)(1), [b, x] = (0, R.useState)(/* @__PURE__ */ new Set()), [S, C] = (0, R.useState)(/* @__PURE__ */ new Map()), [w, T] = (0, R.useState)(/* @__PURE__ */ new Map()), [E, D] = (0, R.useState)(""), O = (0, R.useRef)(null), [k, A] = (0, R.useState)(0), [j, M] = (0, R.useState)(""), N = (0, R.useRef)(!0);
(0, R.useEffect)(() => () => {
N.current = !1;
}, []);
let P = Nn({
- queryKey: js,
- queryFn: ({ signal: e }) => $s(e)
+ queryKey: As,
+ queryFn: ({ signal: e }) => Qs(e)
}).data || {
sections: {},
counts: {}
- }, ee = P.sections[f] || [], F = f === "metadata_fields", I = l, te = Ls(ee, F), ne = te.some(([e]) => e === m) ? m : "candidates", re = Rs(ee, ne), ie = re.some((e) => e.key === g) ? g : "", ae = Bs(zs(ee, ne, ie), v), oe = ae.rows.map((e) => e.item_key), se = new Set(oe), ce = re.map((e) => ({
+ }, ee = P.sections[f] || [], F = f === "metadata_fields", I = l, te = Is(ee, F), ne = te.some(([e]) => e === m) ? m : "candidates", re = Ls(ee, ne), ie = re.some((e) => e.key === g) ? g : "", ae = zs(Rs(ee, ne, ie), v), oe = ae.rows.map((e) => e.item_key), se = new Set(oe), ce = re.map((e) => ({
...e,
rows: e.rows.filter((e) => se.has(e.item_key))
- })).filter((e) => e.rows.length), le = (e) => S.get(e.item_key) || Xs(e), ue = ee.filter((e) => b.has(e.item_key)), L = (e) => {
+ })).filter((e) => e.rows.length), le = (e) => S.get(e.item_key) || Ys(e), ue = ee.filter((e) => b.has(e.item_key)), L = (e) => {
let t = new Set(e);
x((e) => new Set([...e].filter((e) => !t.has(e)))), C((e) => new Map([...e].filter(([e]) => !t.has(e)))), T((e) => new Map([...e].filter(([e]) => !t.has(e))));
}, de = (e, t) => T((n) => new Map(n).set(e, t)), fe = (e) => {
p(e), h("candidates"), _(""), y(1), x(/* @__PURE__ */ new Set()), C(/* @__PURE__ */ new Map()), T(/* @__PURE__ */ new Map()), D(""), O.current = null, r({ category: e === "metadata_fields" ? "" : e });
}, pe = Pn({
- mutationFn: ({ row: e, status: t }) => ec(Zs(f, e, t, le(e))),
+ mutationFn: ({ row: e, status: t }) => $s(Xs(f, e, t, le(e))),
onSuccess: (e, { row: t, status: n }) => {
if (!e.ok) {
de(t.item_key, e.error || "服务端拒绝了这次判定");
return;
}
- rc(f, [t.item_key]), L([t.item_key]), c(Qs(n));
+ nc(f, [t.item_key]), L([t.item_key]), c(Zs(n));
},
onError: (e, { row: t }) => de(t.item_key, U(e))
}), me = Pn({
@@ -45526,7 +45799,7 @@ function Bfe(e) {
if (!N.current) break;
D(`正在处理 ${i} / ${t.length}`);
try {
- let t = await ec(Zs(f, a, e, le(a)));
+ let t = await $s(Xs(f, a, e, le(a)));
if (!t.ok) throw Error(t.error || "服务端未采用该项");
n.push(a.item_key);
} catch (e) {
@@ -45540,7 +45813,7 @@ function Bfe(e) {
};
},
onSuccess: ({ status: e, done: t, failures: n }) => {
- rc(f, t), L(t), n.forEach(([e, t]) => de(e, t)), D(""), c(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
+ nc(f, t), L(t), n.forEach(([e, t]) => de(e, t)), D(""), c(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
},
onError: (e) => {
D(U(e));
@@ -45570,7 +45843,7 @@ function Bfe(e) {
A(e), M("");
let t = await o(e);
N.current && (A(0), M(t));
- }, ve = ac(P.mirror, u), ye = P.genre_tags || [], be = {
+ }, ve = ic(P.mirror, u), ye = P.genre_tags || [], be = {
openItem: i,
openEntity: a,
onReveal: _e,
@@ -45595,13 +45868,13 @@ function Bfe(e) {
}) : void 0,
children: ve
}) : null,
- /* @__PURE__ */ (0, z.jsx)(Dfe, { tags: ye }),
- /* @__PURE__ */ (0, z.jsxs)(OS, {
+ /* @__PURE__ */ (0, z.jsx)(Mfe, { tags: ye }),
+ /* @__PURE__ */ (0, z.jsxs)(jS, {
orientation: t ? "horizontal" : "vertical",
selectedKey: f,
onSelectionChange: (e) => {
let t = String(e);
- Fs(t) && fe(t);
+ Ps(t) && fe(t);
},
className: "flex flex-col gap-5 review-split:flex-row-reverse review-split:items-start review-split:gap-6",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
@@ -45610,27 +45883,27 @@ function Bfe(e) {
children: [/* @__PURE__ */ (0, z.jsx)("h2", {
id: "reviewcategories",
children: "复核分类"
- }), /* @__PURE__ */ (0, z.jsx)(AS, {
+ }), /* @__PURE__ */ (0, z.jsx)(NS, {
"aria-labelledby": "reviewcategories",
"data-section-items": !0,
className: "flex review-split:flex-col review-split:items-stretch",
- children: Ns.map((e) => {
+ children: Ms.map((e) => {
let t = Number(P.counts[e] || 0);
- return /* @__PURE__ */ (0, z.jsxs)(MS, {
+ return /* @__PURE__ */ (0, z.jsxs)(FS, {
id: e,
- className: Rfe,
- children: [Ms[e], t ? /* @__PURE__ */ (0, z.jsx)("span", {
+ className: Ufe,
+ children: [js[e], t ? /* @__PURE__ */ (0, z.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
}) : null]
}, e);
})
})]
- }), /* @__PURE__ */ (0, z.jsxs)(NS, {
+ }), /* @__PURE__ */ (0, z.jsxs)(IS, {
id: f,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
- ee.length && !I ? /* @__PURE__ */ (0, z.jsx)(Tfe, {
+ ee.length && !I ? /* @__PURE__ */ (0, z.jsx)(Afe, {
groupOptions: te,
groupBy: ne,
onGroupBy: (e) => {
@@ -45646,7 +45919,7 @@ function Bfe(e) {
onSelected: x,
selectedRows: ue,
metadata: F,
- approvable: ue.every((e) => Us(f, e)),
+ approvable: ue.every((e) => Hs(f, e)),
busy: me.isPending,
feedback: E,
onUnifySource: ge,
@@ -45671,7 +45944,7 @@ function Bfe(e) {
})]
}) : null, /* @__PURE__ */ (0, z.jsx)("div", {
className: "review-grid gap-5",
- children: e.rows.map((e) => /* @__PURE__ */ (0, z.jsx)(Lfe, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, z.jsx)(Hfe, {
category: f,
row: e,
choice: le(e),
@@ -45679,7 +45952,7 @@ function Bfe(e) {
selected: b.has(e.item_key),
onSelect: (t, n) => x((r) => {
let i = new Set(r);
- return O.current = Hs(i, oe, O.current, e.item_key, t, n), i;
+ return O.current = Vs(i, oe, O.current, e.item_key, t, n), i;
}),
locked: I,
busy: pe.isPending && pe.variables?.row.item_key === e.item_key,
@@ -45699,7 +45972,7 @@ function Bfe(e) {
title: "此分类没有待复核项目",
children: "可切换分类查看其他候选。"
}),
- /* @__PURE__ */ (0, z.jsx)(zfe, {
+ /* @__PURE__ */ (0, z.jsx)(Wfe, {
page: ae.page,
pages: ae.pages,
onPage: y
@@ -45712,30 +45985,30 @@ function Bfe(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var Vfe = "/api/scraping", Hfe = "/api/scraping/settings", Ufe = "/api/scraping/check", _I = "/api/scraping/cover", Wfe = "/api/scraping/amane-bridge", Gfe = "/api/scraping/amane-bridge/check", Kfe = "/api/scraping/amane-bridge/rebuild", vI = ["scraping"], yI = ["scraping", "cover"], bI = ["scraping", "amane-bridge"], xI = (e) => wi(Vfe, e), SI = (e) => wi(_I, e), CI = (e) => wi(Wfe, e);
-async function qfe(e) {
+var Kfe = "/api/scraping", qfe = "/api/scraping/settings", Jfe = "/api/scraping/check", CI = "/api/scraping/cover", Yfe = "/api/scraping/amane-bridge", Xfe = "/api/scraping/amane-bridge/check", Zfe = "/api/scraping/amane-bridge/rebuild", wI = ["scraping"], TI = ["scraping", "cover"], EI = ["scraping", "amane-bridge"], DI = (e) => wi(Kfe, e), OI = (e) => wi(CI, e), kI = (e) => wi(Yfe, e);
+async function Qfe(e) {
await Promise.all([
q.fetchQuery({
- queryKey: vI,
- queryFn: () => xI(e)
+ queryKey: wI,
+ queryFn: () => DI(e)
}),
q.fetchQuery({
- queryKey: yI,
- queryFn: () => SI(e)
+ queryKey: TI,
+ queryFn: () => OI(e)
}),
q.fetchQuery({
- queryKey: bI,
- queryFn: () => CI(e)
+ queryKey: EI,
+ queryFn: () => kI(e)
})
]);
}
-function Jfe(e, t) {
+function $fe(e, t) {
return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.message ? `。${e.message}` : "");
}
//#endregion
//#region src/react/scraping/scraping-page.tsx
-var Yfe = [["peach", "Peach 代理"], ["direct", "直接连接"]], wI = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
-function TI({ source: e }) {
+var epe = [["peach", "Peach 代理"], ["direct", "直接连接"]], AI = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+function jI({ source: e }) {
let t = [
"javten",
"fc2ppvdb",
@@ -45752,16 +46025,16 @@ function TI({ source: e }) {
className: "size-4 shrink-0 rounded-sm object-contain"
});
}
-function Xfe() {
- return /* @__PURE__ */ (0, z.jsx)(TI, { source: "github" });
+function tpe() {
+ return /* @__PURE__ */ (0, z.jsx)(jI, { source: "github" });
}
-function Zfe({ source: e, toast: t }) {
- let [n, r] = (0, R.useState)(e.network), [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(wI[0][0]), [u, d] = (0, R.useState)(""), [f, p] = (0, R.useState)(""), m = (0, R.useRef)(null);
+function npe({ source: e, toast: t }) {
+ let [n, r] = (0, R.useState)(e.network), [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(AI[0][0]), [u, d] = (0, R.useState)(""), [f, p] = (0, R.useState)(""), m = (0, R.useRef)(null);
function h() {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
let g = Pn({
- mutationFn: (t) => W(Hfe, {
+ mutationFn: (t) => W(qfe, {
source: e.source,
network: n,
cookie: i,
@@ -45769,12 +46042,12 @@ function Zfe({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- q.setQueryData(vI, (t) => t && {
+ q.setQueryData(wI, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), _ = Pn({ mutationFn: () => W(Ufe, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
+ }), _ = Pn({ mutationFn: () => W(Jfe, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
e.preventDefault(), !v && (_.reset(), g.mutate(!1));
}, b = () => {
v || (_.reset(), g.mutate(!0));
@@ -45799,37 +46072,37 @@ function Zfe({ source: e, toast: t }) {
}
}
let C = f || (g.error ? U(g.error) : "") || (_.error ? U(_.error) : ""), w = _.data?.results ?? [], T = n === "peach" || e.accepts_cookie || e.browser || !!C || w.length > 0;
- return /* @__PURE__ */ (0, z.jsxs)(SO, {
+ return /* @__PURE__ */ (0, z.jsxs)(TO, {
title: e.label,
onSubmit: y,
aside: /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, z.jsx)(TI, { source: e.source }), /* @__PURE__ */ (0, z.jsx)(kO, {
+ children: [/* @__PURE__ */ (0, z.jsx)(jI, { source: e.source }), /* @__PURE__ */ (0, z.jsx)(MO, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, z.jsx)(CO, { children: /* @__PURE__ */ (0, z.jsx)(xO, {
+ /* @__PURE__ */ (0, z.jsx)(EO, { children: /* @__PURE__ */ (0, z.jsx)(wO, {
label: "连接方式",
- children: /* @__PURE__ */ (0, z.jsx)(LO, {
+ children: /* @__PURE__ */ (0, z.jsx)(BO, {
"aria-label": "连接方式",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: Yfe.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(RO, {
+ children: epe.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(VO, {
id: e,
children: t
}, e))
})
}) }),
- T ? /* @__PURE__ */ (0, z.jsxs)(wO, {
+ T ? /* @__PURE__ */ (0, z.jsxs)(DO, {
divided: !0,
children: [
n === "peach" ? /* @__PURE__ */ (0, z.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, z.jsx)(oO, {
+ children: /* @__PURE__ */ (0, z.jsx)(lO, {
href: "/configuration#peachProxy",
size: "small",
trailingIcon: Te,
@@ -45845,20 +46118,20 @@ function Zfe({ source: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, z.jsx)(cA, {
+ /* @__PURE__ */ (0, z.jsx)(rA, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), h();
},
- className: lA,
- children: wI.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(tx, {
+ className: iA,
+ children: AI.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(nx, {
value: e,
- className: uA,
+ className: aA,
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, z.jsx)(ak, {
+ c === "paste" ? /* @__PURE__ */ (0, z.jsx)(ck, {
type: "password",
label: "Cookie",
autoComplete: "off",
@@ -45867,7 +46140,7 @@ function Zfe({ source: e, toast: t }) {
}) : /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(OO, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, z.jsx)(jO, { children: "Netscape Cookie 文件(.txt)" }),
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [/* @__PURE__ */ (0, z.jsx)(H, {
@@ -45893,14 +46166,14 @@ function Zfe({ source: e, toast: t }) {
]
})
] }) : null,
- C ? /* @__PURE__ */ (0, z.jsx)(DO, { children: C }) : null,
+ C ? /* @__PURE__ */ (0, z.jsx)(AO, { children: C }) : null,
w.map((t) => /* @__PURE__ */ (0, z.jsx)(G, {
tone: t.ok ? "success" : "error",
- children: Jfe(t, e.label)
+ children: $fe(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, z.jsxs)(TO, { children: [
+ /* @__PURE__ */ (0, z.jsxs)(OO, { children: [
e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
onClick: b,
@@ -45922,26 +46195,26 @@ function Zfe({ source: e, toast: t }) {
]
});
}
-function Qfe({ toast: e }) {
- let [t, n] = (0, R.useState)(""), { running: r, outcome: i, start: a } = VO({
- queryKey: yI,
- queryFn: ({ signal: e }) => SI(e),
- start: () => W(_I, { code: t }),
+function rpe({ toast: e }) {
+ let [t, n] = (0, R.useState)(""), { running: r, outcome: i, start: a } = WO({
+ queryKey: TI,
+ queryFn: ({ signal: e }) => OI(e),
+ start: () => W(CI, { code: t }),
onFinish: (t) => {
t.status === "complete" && e(t.result || "封面采集完成");
}
}), o = (e) => {
e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();
}, s = a.error ? U(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, z.jsx)(SO, {
+ return /* @__PURE__ */ (0, z.jsx)(TO, {
title: "高清封面",
onSubmit: o,
- children: /* @__PURE__ */ (0, z.jsxs)(wO, { children: [
+ children: /* @__PURE__ */ (0, z.jsxs)(DO, { children: [
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, z.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, z.jsx)(ak, {
+ children: /* @__PURE__ */ (0, z.jsx)(ck, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: r,
@@ -45968,11 +46241,11 @@ function Qfe({ toast: e }) {
] })
});
}
-function $fe({ toast: e }) {
- let { query: t, running: n, outcome: r, start: i } = VO({
- queryKey: bI,
- queryFn: ({ signal: e }) => CI(e),
- start: () => W(Kfe, {}),
+function ipe({ toast: e }) {
+ let { query: t, running: n, outcome: r, start: i } = WO({
+ queryKey: EI,
+ queryFn: ({ signal: e }) => kI(e),
+ start: () => W(Zfe, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
...e,
@@ -45981,45 +46254,45 @@ function $fe({ toast: e }) {
onFinish: (t) => {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
- }), a = Pn({ mutationFn: () => W(Gfe, {}) }), o = t.data;
- if (!o) return t.error ? /* @__PURE__ */ (0, z.jsx)(SO, {
+ }), a = Pn({ mutationFn: () => W(Xfe, {}) }), o = t.data;
+ if (!o) return t.error ? /* @__PURE__ */ (0, z.jsx)(TO, {
title: "amane",
- children: /* @__PURE__ */ (0, z.jsx)(wO, { children: /* @__PURE__ */ (0, z.jsx)(G, {
+ children: /* @__PURE__ */ (0, z.jsx)(DO, { children: /* @__PURE__ */ (0, z.jsx)(G, {
tone: "error",
children: U(t.error)
}) })
}) : null;
let s = n || i.isPending || a.isPending, c = i.error ? U(i.error) : a.error ? U(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";
- return /* @__PURE__ */ (0, z.jsxs)(SO, {
+ return /* @__PURE__ */ (0, z.jsxs)(TO, {
title: "amane",
- aside: /* @__PURE__ */ (0, z.jsx)(kO, {
+ aside: /* @__PURE__ */ (0, z.jsx)(MO, {
href: o.repository,
- leadingIcon: Xfe,
+ leadingIcon: tpe,
children: o.repository
}),
children: [
- /* @__PURE__ */ (0, z.jsxs)(AO, { children: [
- /* @__PURE__ */ (0, z.jsx)(jO, {
+ /* @__PURE__ */ (0, z.jsxs)(NO, { children: [
+ /* @__PURE__ */ (0, z.jsx)(PO, {
term: "已安装版本",
children: o.installed_version || "未安装"
}),
- /* @__PURE__ */ (0, z.jsx)(jO, {
+ /* @__PURE__ */ (0, z.jsx)(PO, {
term: "上游最新版本",
children: a.data?.latest ?? "尚未检查"
}),
- /* @__PURE__ */ (0, z.jsx)(jO, {
+ /* @__PURE__ */ (0, z.jsx)(PO, {
term: "运行环境",
children: o.installed ? "已安装" : "未安装"
}),
- /* @__PURE__ */ (0, z.jsx)(jO, {
+ /* @__PURE__ */ (0, z.jsx)(PO, {
term: "内置站点",
children: o.sites.map((e) => e.label).join("、")
})
] }),
- /* @__PURE__ */ (0, z.jsxs)(wO, {
+ /* @__PURE__ */ (0, z.jsxs)(DO, {
divided: !0,
children: [
- /* @__PURE__ */ (0, z.jsxs)(EO, { children: [
+ /* @__PURE__ */ (0, z.jsxs)(kO, { children: [
"已安装版本:",
o.installed_version || "未安装",
"。amane(",
@@ -46039,7 +46312,7 @@ function $fe({ toast: e }) {
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsxs)(TO, { children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, z.jsxs)(OO, { children: [/* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
onClick: () => {
s || a.mutate();
@@ -46056,22 +46329,22 @@ function $fe({ toast: e }) {
]
});
}
-function epe({ toast: e }) {
+function ape({ toast: e }) {
let t = Nn({
- queryKey: vI,
- queryFn: ({ signal: e }) => xI(e)
+ queryKey: wI,
+ queryFn: ({ signal: e }) => DI(e)
}), n = t.data;
return n ? /* @__PURE__ */ (0, z.jsxs)(Ii, { children: [
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
}),
- /* @__PURE__ */ (0, z.jsx)(Qfe, { toast: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, z.jsx)(Zfe, {
+ /* @__PURE__ */ (0, z.jsx)(rpe, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, z.jsx)(npe, {
source: t,
toast: e
}, t.source)),
- /* @__PURE__ */ (0, z.jsx)($fe, { toast: e })
+ /* @__PURE__ */ (0, z.jsx)(ipe, { toast: e })
] }) : /* @__PURE__ */ (0, z.jsx)(Ii, { children: /* @__PURE__ */ (0, z.jsx)(G, {
tone: "error",
title: "采集来源读取失败",
@@ -46080,24 +46353,24 @@ function epe({ toast: e }) {
}
//#endregion
//#region src/configuration-endpoints.ts
-var EI = "/api/configuration", tpe = "/api/pick-folder", DI = ["configuration"], OI = (e) => wi(EI, e);
-async function kI(e) {
+var MI = "/api/configuration", ope = "/api/pick-folder", NI = ["configuration"], PI = (e) => wi(MI, e);
+async function FI(e) {
await q.fetchQuery({
- queryKey: DI,
- queryFn: () => OI(e)
+ queryKey: NI,
+ queryFn: () => PI(e)
});
}
//#endregion
//#region src/configuration-copy.ts
-var npe = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", rpe = "仅填域名;留空使用默认地址";
+var spe = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", cpe = "仅填域名;留空使用默认地址";
//#endregion
//#region src/react/settings/entry-links-settings.tsx
-function ipe({ initial: e, receipt: t }) {
+function lpe({ initial: e, receipt: t }) {
let [n, r] = (0, R.useState)(e.sites), i = Bi(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
} : n));
- return /* @__PURE__ */ (0, z.jsxs)(SO, {
+ return /* @__PURE__ */ (0, z.jsxs)(TO, {
title: "外部入口",
onSubmit: (e) => {
e.preventDefault();
@@ -46106,9 +46379,9 @@ function ipe({ initial: e, receipt: t }) {
r(e.sites), t("已保存配置");
});
},
- children: [/* @__PURE__ */ (0, z.jsxs)(wO, { children: [
- /* @__PURE__ */ (0, z.jsx)(EO, { children: npe }),
- n.map((e) => /* @__PURE__ */ (0, z.jsx)(ak, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(DO, { children: [
+ /* @__PURE__ */ (0, z.jsx)(kO, { children: spe }),
+ n.map((e) => /* @__PURE__ */ (0, z.jsx)(ck, {
id: `entry-link-${e.key}`,
label: `${e.label} 地址`,
autoComplete: "off",
@@ -46117,10 +46390,10 @@ function ipe({ initial: e, receipt: t }) {
placeholder: e.default_host,
onChange: (t) => a(e.key, t),
validationBehavior: "aria",
- hint: rpe
+ hint: cpe
}, e.key)),
- i.error ? /* @__PURE__ */ (0, z.jsx)(DO, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, z.jsx)(TO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ i.error ? /* @__PURE__ */ (0, z.jsx)(AO, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, z.jsx)(OO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
...K(i.busy === "save"),
children: "保存配置"
@@ -46129,21 +46402,21 @@ function ipe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function ape({ data: e, receipt: t }) {
+function upe({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.startup ? /* @__PURE__ */ (0, z.jsx)(ope, {
+ children: [e.startup ? /* @__PURE__ */ (0, z.jsx)(dpe, {
startup: e.startup,
receipt: t
- }) : null, e.entry_links ? /* @__PURE__ */ (0, z.jsx)(ipe, {
+ }) : null, e.entry_links ? /* @__PURE__ */ (0, z.jsx)(lpe, {
initial: e.entry_links,
receipt: t
}) : null]
});
}
-function ope({ startup: e, receipt: t }) {
+function dpe({ startup: e, receipt: t }) {
let [n, r] = (0, R.useState)(e.enabled), [i, a] = (0, R.useState)(e.silent), [o, s] = (0, R.useState)(e.desktop), c = Bi(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, z.jsxs)(SO, {
+ return /* @__PURE__ */ (0, z.jsxs)(TO, {
title: "开机自启",
onSubmit: (r) => {
r.preventDefault(), e.available && c.run("save", (e) => W("/api/configuration/startup", {
@@ -46153,30 +46426,30 @@ function ope({ startup: e, receipt: t }) {
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, z.jsxs)(CO, { children: [
- /* @__PURE__ */ (0, z.jsx)(xO, {
+ /* @__PURE__ */ (0, z.jsxs)(EO, { children: [
+ /* @__PURE__ */ (0, z.jsx)(wO, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, z.jsx)(wN, {
+ children: /* @__PURE__ */ (0, z.jsx)(FN, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, z.jsx)(xO, {
+ /* @__PURE__ */ (0, z.jsx)(wO, {
label: "静默启动",
description: "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。",
- children: /* @__PURE__ */ (0, z.jsx)(wN, {
+ children: /* @__PURE__ */ (0, z.jsx)(FN, {
"aria-label": "静默启动",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, z.jsx)(xO, {
+ /* @__PURE__ */ (0, z.jsx)(wO, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
- children: /* @__PURE__ */ (0, z.jsx)(wN, {
+ children: /* @__PURE__ */ (0, z.jsx)(FN, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -46184,11 +46457,11 @@ function ope({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, z.jsxs)(wO, {
+ e.message || c.error ? /* @__PURE__ */ (0, z.jsxs)(DO, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, z.jsx)(EO, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, z.jsx)(DO, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, z.jsx)(kO, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, z.jsx)(AO, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, z.jsx)(TO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, z.jsx)(OO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
disabled: !e.available,
...K(c.busy === "save"),
@@ -46199,23 +46472,23 @@ function ope({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/release-updates.tsx
-var AI = /* @__PURE__ */ new Set([
+var II = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), spe = [
+]), fpe = [
65,
67,
90
-], jI = 120;
-function cpe({ initial: e, initialJob: t }) {
+], LI = 120;
+function ppe({ initial: e, initialJob: t }) {
let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(t || {
state: "idle",
progress: 0
- }), [o, s] = (0, R.useState)(""), c = Bi(), l = (0, R.useRef)(!1), u = (0, R.useRef)(!0), d = AI.has(i.state);
+ }), [o, s] = (0, R.useState)(""), c = Bi(), l = (0, R.useRef)(!1), u = (0, R.useRef)(!0), d = II.has(i.state);
(0, R.useEffect)(() => (u.current = !0, () => {
u.current = !1;
}), []);
@@ -46232,7 +46505,7 @@ function cpe({ initial: e, initialJob: t }) {
(0, R.useEffect)(() => {
i.state !== "ready" || l.current || (l.current = !0, p());
}, [i.state]), (0, R.useEffect)(() => {
- let e = new AbortController(), t = AI.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
+ let e = new AbortController(), t = II.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
try {
let t = await wi("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
@@ -46245,9 +46518,9 @@ function cpe({ initial: e, initialJob: t }) {
let n = await wi("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- o += 1, o >= jI && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
+ o += 1, o >= LI && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && o < jI && (n = setTimeout(c, t));
+ !e.signal.aborted && o < LI && (n = setTimeout(c, t));
};
return n = setTimeout(c, t), () => {
e.abort(), clearTimeout(n);
@@ -46261,40 +46534,40 @@ function cpe({ initial: e, initialJob: t }) {
state: "error"
}), c.setError(U(t));
}), g = c.error || o, _ = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;
- return /* @__PURE__ */ (0, z.jsxs)(SO, {
+ return /* @__PURE__ */ (0, z.jsxs)(TO, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, z.jsxs)(AO, { children: [
- /* @__PURE__ */ (0, z.jsx)(jO, {
+ /* @__PURE__ */ (0, z.jsxs)(NO, { children: [
+ /* @__PURE__ */ (0, z.jsx)(PO, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, z.jsx)(jO, {
+ /* @__PURE__ */ (0, z.jsx)(PO, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, z.jsx)(jO, {
+ /* @__PURE__ */ (0, z.jsx)(PO, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, z.jsx)(jO, {
+ /* @__PURE__ */ (0, z.jsx)(PO, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, z.jsxs)(wO, {
+ /* @__PURE__ */ (0, z.jsxs)(DO, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, z.jsxs)(EO, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.checked_at ? /* @__PURE__ */ (0, z.jsxs)(kO, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
n.state === "available" && !g ? /* @__PURE__ */ (0, z.jsx)(G, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : g || n.state === "error" ? /* @__PURE__ */ (0, z.jsx)(DO, { children: g || n.message }) : /* @__PURE__ */ (0, z.jsx)(EO, {
+ }) : g || n.state === "error" ? /* @__PURE__ */ (0, z.jsx)(AO, { children: g || n.message }) : /* @__PURE__ */ (0, z.jsx)(kO, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, z.jsx)(DO, { children: i.message }) : null,
+ i.state === "error" ? /* @__PURE__ */ (0, z.jsx)(AO, { children: i.message }) : null,
i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, z.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
@@ -46302,16 +46575,16 @@ function cpe({ initial: e, initialJob: t }) {
/* @__PURE__ */ (0, z.jsx)(zi, {
label: "更新准备进度",
value: i.progress,
- stops: spe
+ stops: fpe
}),
- /* @__PURE__ */ (0, z.jsxs)(EO, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, z.jsx)(EO, { children: _ })
+ /* @__PURE__ */ (0, z.jsxs)(kO, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, z.jsx)(kO, { children: _ })
]
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsxs)(TO, {
- status: /* @__PURE__ */ (0, z.jsx)(kO, {
+ /* @__PURE__ */ (0, z.jsxs)(OO, {
+ status: /* @__PURE__ */ (0, z.jsx)(MO, {
href: n.release_url,
children: "查看发布页"
}),
@@ -46338,98 +46611,98 @@ function cpe({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var lpe = [
+var mpe = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function upe({ data: e, receipt: t, reopenTutorial: n }) {
+function hpe({ data: e, receipt: t, reopenTutorial: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.automatic_updates ? /* @__PURE__ */ (0, z.jsx)(fpe, {
+ e.automatic_updates ? /* @__PURE__ */ (0, z.jsx)(_pe, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, z.jsx)(cpe, {
+ e.updates ? /* @__PURE__ */ (0, z.jsx)(ppe, {
initial: e.updates,
initialJob: e.update_job
}) : null,
- /* @__PURE__ */ (0, z.jsx)(ppe, { facts: e.facts }),
- /* @__PURE__ */ (0, z.jsx)(dpe, {
+ /* @__PURE__ */ (0, z.jsx)(vpe, { facts: e.facts }),
+ /* @__PURE__ */ (0, z.jsx)(gpe, {
receipt: t,
reopenTutorial: n
}),
- e.uninstall ? /* @__PURE__ */ (0, z.jsx)(mpe, {
+ e.uninstall ? /* @__PURE__ */ (0, z.jsx)(ype, {
uninstall: e.uninstall,
receipt: t
}) : null
]
});
}
-function dpe({ receipt: e, reopenTutorial: t }) {
+function gpe({ receipt: e, reopenTutorial: t }) {
let n = Bi();
- return /* @__PURE__ */ (0, z.jsxs)(SO, {
+ return /* @__PURE__ */ (0, z.jsxs)(TO, {
title: "安装教程",
- children: [/* @__PURE__ */ (0, z.jsxs)(wO, { children: [/* @__PURE__ */ (0, z.jsx)(EO, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, z.jsx)(DO, { children: n.error }) : null] }), /* @__PURE__ */ (0, z.jsx)(TO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(DO, { children: [/* @__PURE__ */ (0, z.jsx)(kO, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, z.jsx)(AO, { children: n.error }) : null] }), /* @__PURE__ */ (0, z.jsx)(OO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),
...K(n.busy === "reopen"),
children: "重新打开教程"
}) })]
});
}
-function fpe({ initial: e, receipt: t }) {
+function _pe({ initial: e, receipt: t }) {
let [n, r] = (0, R.useState)(e.mode), [i, a] = (0, R.useState)(e.interval_hours), o = Bi(e.error), s = (r) => {
r.preventDefault(), e.available && o.run("save", (e) => W("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行时在发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, z.jsxs)(SO, {
+ return /* @__PURE__ */ (0, z.jsxs)(TO, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, z.jsxs)(CO, { children: [
- /* @__PURE__ */ (0, z.jsx)(xO, {
+ /* @__PURE__ */ (0, z.jsxs)(EO, { children: [
+ /* @__PURE__ */ (0, z.jsx)(wO, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, z.jsx)(wN, {
+ children: /* @__PURE__ */ (0, z.jsx)(FN, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, z.jsx)(xO, {
+ /* @__PURE__ */ (0, z.jsx)(wO, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, z.jsx)(wN, {
+ children: /* @__PURE__ */ (0, z.jsx)(FN, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, z.jsx)(xO, {
+ /* @__PURE__ */ (0, z.jsx)(wO, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, z.jsx)(LO, {
+ children: /* @__PURE__ */ (0, z.jsx)(BO, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: lpe.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(RO, {
+ children: mpe.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(VO, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, z.jsx)(wO, {
+ o.error ? /* @__PURE__ */ (0, z.jsx)(DO, {
divided: !0,
- children: /* @__PURE__ */ (0, z.jsx)(DO, { children: o.error })
+ children: /* @__PURE__ */ (0, z.jsx)(AO, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, z.jsx)(TO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, z.jsx)(OO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
disabled: !e.available,
...K(o.busy === "save"),
@@ -46438,19 +46711,19 @@ function fpe({ initial: e, receipt: t }) {
]
});
}
-function ppe({ facts: e }) {
- return /* @__PURE__ */ (0, z.jsx)(SO, {
+function vpe({ facts: e }) {
+ return /* @__PURE__ */ (0, z.jsx)(TO, {
title: "运行信息",
- children: /* @__PURE__ */ (0, z.jsx)(AO, { children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)(jO, {
+ children: /* @__PURE__ */ (0, z.jsx)(NO, { children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)(PO, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, z.jsx)(kO, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, z.jsx)(MO, {
href: e.download_url,
children: e.download_label
}) : null]
}, e.term)) })
});
}
-function mpe({ uninstall: e, receipt: t }) {
+function ype({ uninstall: e, receipt: t }) {
let [n, r] = (0, R.useState)(!1), [i, a] = (0, R.useState)(""), o = () => void y({
title: "卸载 Peach",
danger: !0,
@@ -46464,26 +46737,26 @@ function mpe({ uninstall: e, receipt: t }) {
a(e.message);
}
}), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, z.jsxs)(SO, {
+ return /* @__PURE__ */ (0, z.jsxs)(TO, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, z.jsxs)(wO, { children: [
- e.available ? /* @__PURE__ */ (0, z.jsx)(EO, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, z.jsx)(GO, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(DO, { children: [
+ e.available ? /* @__PURE__ */ (0, z.jsx)(kO, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, z.jsx)(JO, {
isSelected: n,
isDisabled: !e.full_available || !!i,
onChange: r,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, z.jsx)(MO, {
+ /* @__PURE__ */ (0, z.jsx)(FO, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, z.jsx)(vO, {
+ children: c.map((e) => /* @__PURE__ */ (0, z.jsx)(xO, {
path: e,
className: "text-body-2-regular text-text-secondary",
onRevealed: t
}, e))
})
- ] }), /* @__PURE__ */ (0, z.jsx)(TO, {
+ ] }), /* @__PURE__ */ (0, z.jsx)(OO, {
status: s ? /* @__PURE__ */ (0, z.jsx)("p", {
role: i ? "status" : void 0,
children: s
@@ -46499,7 +46772,7 @@ function mpe({ uninstall: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/clouddrive-guide.tsx
-var hpe = [
+var bpe = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -46518,32 +46791,32 @@ var hpe = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], gpe = [
+], xpe = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function _pe() {
+function Spe() {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, z.jsxs)(EO, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, z.jsx)(kO, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(kO, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, z.jsx)(MO, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, z.jsxs)(MO, {
+ })] }), /* @__PURE__ */ (0, z.jsxs)(FO, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, z.jsx)(EO, { children: "按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。" }),
+ /* @__PURE__ */ (0, z.jsx)(kO, { children: "按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。" }),
/* @__PURE__ */ (0, z.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: hpe.map((e) => /* @__PURE__ */ (0, z.jsxs)("li", {
+ children: bpe.map((e) => /* @__PURE__ */ (0, z.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
}), /* @__PURE__ */ (0, z.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: gpe.map(([t, n]) => /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: xpe.map(([t, n]) => /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col",
children: [/* @__PURE__ */ (0, z.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
@@ -46564,9 +46837,9 @@ function _pe() {
/* @__PURE__ */ (0, z.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, z.jsxs)(EO, { children: [
+ /* @__PURE__ */ (0, z.jsxs)(kO, { children: [
"三处缓存的分工、往上调的方法和这些起步值的来源在",
- /* @__PURE__ */ (0, z.jsx)(kO, {
+ /* @__PURE__ */ (0, z.jsx)(MO, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -46578,7 +46851,7 @@ function _pe() {
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var MI = [
+var RI = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -46622,13 +46895,13 @@ var MI = [
["star", "收藏"],
["tags", "主题"]
];
-function vpe(e) {
+function Cpe(e) {
let t = e === "local" ? "" : _[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var NI = "auto";
-function ype({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, R.useRef)(null), [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(e), [l, u] = vpe(n);
+var zI = "auto";
+function wpe({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, R.useRef)(null), [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(e), [l, u] = Cpe(n);
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(H, {
ref: i,
variant: "secondary",
@@ -46642,35 +46915,35 @@ function ype({ value: e, label: t, kind: n = "local", onChange: r }) {
children: /* @__PURE__ */ (0, z.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(NO, { mark: e || l }), ((e) => e && MI.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, z.jsx)(IO, { mark: e || l }), ((e) => e && RI.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, z.jsx)(hy, {
+ }), /* @__PURE__ */ (0, z.jsx)(gy, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: sO,
- children: /* @__PURE__ */ (0, z.jsxs)(lb, {
+ className: uO,
+ children: /* @__PURE__ */ (0, z.jsxs)(ub, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, z.jsx)(Rm, {
+ /* @__PURE__ */ (0, z.jsx)(Lm, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, z.jsx)(ex, {
+ /* @__PURE__ */ (0, z.jsx)(tx, {
"aria-label": "候选图标",
- value: s || NI,
- onChange: (e) => c(e === NI ? "" : e),
+ value: s || zI,
+ onChange: (e) => c(e === zI ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: MI.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(tx, {
- value: e || NI,
+ children: RI.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(nx, {
+ value: e || zI,
"aria-label": e ? t : u,
className: "flex h-10 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none hover:bg-dropdown-item-hover-background focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-dropdown-item-hover-background data-selected:text-text-primary",
- children: /* @__PURE__ */ (0, z.jsx)(NO, { mark: e || l })
- }, e || NI))
+ children: /* @__PURE__ */ (0, z.jsx)(IO, { mark: e || l })
+ }, e || zI))
}),
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
@@ -46692,15 +46965,15 @@ function ype({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/push-discovery-settings.tsx
-var bpe = "/api/configuration/push-discovery", xpe = "/api/configuration/push-discovery/secret";
-function Spe({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.prefixes), [o, s] = (0, R.useState)(""), c = Bi(), l = hO(), u = n.media_roots, [d, f] = (0, R.useState)(e), p = (e, n) => {
+var Tpe = "/api/configuration/push-discovery", Epe = "/api/configuration/push-discovery/secret";
+function Dpe({ initial: e, receipt: t }) {
+ let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.prefixes), [o, s] = (0, R.useState)(""), c = Bi(), l = vO(), u = n.media_roots, [d, f] = (0, R.useState)(e), p = (e, n) => {
r(e), f(e), a(e.prefixes), s(""), t(n);
}, m = (e, t) => a((n) => n.map((n, r) => r === e ? {
...n,
...t
} : n));
- return /* @__PURE__ */ (0, z.jsxs)(SO, {
+ return /* @__PURE__ */ (0, z.jsxs)(TO, {
title: "推送发现",
onSubmit: (e) => {
e.preventDefault();
@@ -46710,14 +46983,14 @@ function Spe({ initial: e, receipt: t }) {
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => W(bpe, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(U(e)));
+ c.run("save", (e) => W(Tpe, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(U(e)));
},
children: [
- /* @__PURE__ */ (0, z.jsxs)(CO, { children: [
- /* @__PURE__ */ (0, z.jsx)(xO, {
+ /* @__PURE__ */ (0, z.jsxs)(EO, { children: [
+ /* @__PURE__ */ (0, z.jsx)(wO, {
label: "新文件落地就入库",
description: "打开之后不必等下一轮扫描。定期全量扫描照常进行,漏掉的由它补上。",
- children: /* @__PURE__ */ (0, z.jsx)(wN, {
+ children: /* @__PURE__ */ (0, z.jsx)(FN, {
"aria-label": "新文件落地就入库",
isSelected: n.enabled,
isDisabled: !n.available,
@@ -46727,10 +47000,10 @@ function Spe({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, z.jsx)(xO, {
+ /* @__PURE__ */ (0, z.jsx)(wO, {
label: "监视本机文件夹",
description: "订阅本地来源的文件系统事件。网盘挂载不监视,因为遍历它就是走网络。",
- children: /* @__PURE__ */ (0, z.jsx)(wN, {
+ children: /* @__PURE__ */ (0, z.jsx)(FN, {
"aria-label": "监视本机文件夹",
isSelected: n.watch_local,
isDisabled: !n.available || !n.enabled,
@@ -46740,10 +47013,10 @@ function Spe({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, z.jsx)(xO, {
+ /* @__PURE__ */ (0, z.jsx)(wO, {
label: "接收 CloudDrive2 通知",
description: "由 CloudDrive2 把网盘里的新文件推给 Peach。只接受本机与局域网发来的请求。",
- children: /* @__PURE__ */ (0, z.jsx)(wN, {
+ children: /* @__PURE__ */ (0, z.jsx)(FN, {
"aria-label": "接收 CloudDrive2 通知",
isSelected: n.cloud,
isDisabled: !n.available || !n.enabled,
@@ -46754,30 +47027,30 @@ function Spe({ initial: e, receipt: t }) {
})
})
] }),
- d.enabled ? /* @__PURE__ */ (0, z.jsx)(wO, {
+ d.enabled ? /* @__PURE__ */ (0, z.jsx)(DO, {
divided: !0,
- children: /* @__PURE__ */ (0, z.jsxs)(AO, { children: [d.watch_local ? /* @__PURE__ */ (0, z.jsx)(jO, {
+ children: /* @__PURE__ */ (0, z.jsxs)(NO, { children: [d.watch_local ? /* @__PURE__ */ (0, z.jsx)(PO, {
term: "本机文件夹监视",
children: d.local_running ? d.local_roots.join("、") : d.local_message || "没有运行"
- }) : null, /* @__PURE__ */ (0, z.jsx)(jO, {
+ }) : null, /* @__PURE__ */ (0, z.jsx)(PO, {
term: "已入库",
children: `${d.queue.ingested} 个文件,队列里还有 ${d.queue.pending} 条`
})] })
}) : null,
- d.enabled && d.cloud ? /* @__PURE__ */ (0, z.jsx)(wO, {
+ d.enabled && d.cloud ? /* @__PURE__ */ (0, z.jsx)(DO, {
divided: !0,
children: /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(OO, { children: "CloudDrive2 配置内容" }),
- /* @__PURE__ */ (0, z.jsx)(EO, { children: "Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。 Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml 文件,放入 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
+ /* @__PURE__ */ (0, z.jsx)(jO, { children: "CloudDrive2 配置内容" }),
+ /* @__PURE__ */ (0, z.jsx)(kO, { children: "Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。 Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml 文件,放入 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
d.config_toml ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("div", { children: /* @__PURE__ */ (0, z.jsx)(H, {
size: "small",
onClick: () => {
navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看这段配置」选中自己复制。"));
},
children: "复制配置"
- }) }), /* @__PURE__ */ (0, z.jsx)(MO, {
+ }) }), /* @__PURE__ */ (0, z.jsx)(FO, {
summary: "查看这段配置",
children: /* @__PURE__ */ (0, z.jsx)("div", {
className: "relative",
@@ -46788,17 +47061,17 @@ function Spe({ initial: e, receipt: t }) {
children: d.config_toml
})
})
- })] }) : /* @__PURE__ */ (0, z.jsx)(EO, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })
+ })] }) : /* @__PURE__ */ (0, z.jsx)(kO, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })
]
})
}) : null,
- n.enabled && n.cloud ? /* @__PURE__ */ (0, z.jsx)(wO, {
+ n.enabled && n.cloud ? /* @__PURE__ */ (0, z.jsx)(DO, {
divided: !0,
children: /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(OO, { children: "云端路径前缀" }),
- /* @__PURE__ */ (0, z.jsx)(EO, { children: "左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。 Peach 按此对应关系定位通知中的文件。" }),
+ /* @__PURE__ */ (0, z.jsx)(jO, { children: "云端路径前缀" }),
+ /* @__PURE__ */ (0, z.jsx)(kO, { children: "左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。 Peach 按此对应关系定位通知中的文件。" }),
/* @__PURE__ */ (0, z.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
@@ -46806,7 +47079,7 @@ function Spe({ initial: e, receipt: t }) {
children: i.map((e, t) => /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(ak, {
+ /* @__PURE__ */ (0, z.jsx)(ck, {
className: "min-w-0 flex-1",
"aria-label": `云端路径前缀 ${t + 1}`,
placeholder: "/115",
@@ -46815,18 +47088,18 @@ function Spe({ initial: e, receipt: t }) {
value: e.prefix,
onChange: (e) => m(t, { prefix: e })
}),
- /* @__PURE__ */ (0, z.jsx)(LO, {
+ /* @__PURE__ */ (0, z.jsx)(BO, {
"aria-label": `前缀 ${t + 1} 对应的媒体根`,
selectedKey: e.root,
onSelectionChange: (e) => {
e !== null && m(t, { root: String(e) });
},
- children: u.map((e) => /* @__PURE__ */ (0, z.jsx)(RO, {
+ children: u.map((e) => /* @__PURE__ */ (0, z.jsx)(VO, {
id: e,
children: e
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)(_O, {
+ /* @__PURE__ */ (0, z.jsx)(bO, {
icon: je,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
@@ -46845,15 +47118,15 @@ function Spe({ initial: e, receipt: t }) {
]
})
}) : null,
- o || c.error ? /* @__PURE__ */ (0, z.jsx)(wO, {
+ o || c.error ? /* @__PURE__ */ (0, z.jsx)(DO, {
divided: !0,
- children: /* @__PURE__ */ (0, z.jsx)(DO, { children: o || c.error })
+ children: /* @__PURE__ */ (0, z.jsx)(AO, { children: o || c.error })
}) : null,
- /* @__PURE__ */ (0, z.jsxs)(TO, {
+ /* @__PURE__ */ (0, z.jsxs)(OO, {
status: d.enabled && d.cloud ? "换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。" : void 0,
children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, z.jsx)(H, {
onClick: () => {
- c.run("secret", (e) => W(xpe, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(U(e)));
+ c.run("secret", (e) => W(Epe, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(U(e)));
},
disabled: !n.available,
...K(c.busy === "secret"),
@@ -46870,8 +47143,8 @@ function Spe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var Cpe = 8e3;
-function wpe({ className: e }) {
+var Ope = 8e3;
+function kpe({ className: e }) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -46884,33 +47157,33 @@ function wpe({ className: e }) {
children: /* @__PURE__ */ (0, z.jsx)("use", { href: "#i-folder-search" })
});
}
-var PI = [
+var BI = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], Tpe = (e) => PI.find(([t]) => t === e)?.[1] ?? e, FI = (e) => _[e] || "database", II = (e = "") => ({
+], Ape = (e) => BI.find(([t]) => t === e)?.[1] ?? e, VI = (e) => _[e] || "database", HI = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function Epe(e) {
- let t = e.media_sources?.filter((e) => PI.some(([t]) => t === e.location));
+function jpe(e) {
+ let t = e.media_sources?.filter((e) => BI.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) => II(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => HI(e));
}
-var Dpe = (e) => !(e instanceof Si) || e.status !== 400 ? null : e.body?.errors ?? null;
-function Ope({ data: e, receipt: t }) {
+var Mpe = (e) => !(e instanceof Si) || e.status !== 400 ? null : e.body?.errors ?? null;
+function Npe({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.editable ? /* @__PURE__ */ (0, z.jsx)(kpe, {
+ e.editable ? /* @__PURE__ */ (0, z.jsx)(Ppe, {
data: e,
receipt: t
}) : /* @__PURE__ */ (0, z.jsx)(G, {
@@ -46918,21 +47191,21 @@ function Ope({ data: e, receipt: t }) {
title: "只读",
children: e.notice
}),
- /* @__PURE__ */ (0, z.jsx)(jpe, { data: e }),
- e.push_discovery ? /* @__PURE__ */ (0, z.jsx)(Spe, {
+ /* @__PURE__ */ (0, z.jsx)(Ipe, { data: e }),
+ e.push_discovery ? /* @__PURE__ */ (0, z.jsx)(Dpe, {
initial: e.push_discovery,
receipt: t
}) : null
]
});
}
-function kpe({ data: e, receipt: t }) {
- let [n, r] = (0, R.useState)(() => Epe(e)), [i, a] = (0, R.useState)(String(e.port)), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)([]), [u, d] = (0, R.useState)(""), [f, p] = (0, R.useState)(""), [m, h] = (0, R.useState)(null), [g, _] = (0, R.useState)(null), [v, y] = (0, R.useState)(null), b = (0, R.useRef)(!1), x = (0, R.useRef)(e.revision), S = (0, R.useRef)([]), C = Bi();
+function Ppe({ data: e, receipt: t }) {
+ let [n, r] = (0, R.useState)(() => jpe(e)), [i, a] = (0, R.useState)(String(e.port)), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)([]), [u, d] = (0, R.useState)(""), [f, p] = (0, R.useState)(""), [m, h] = (0, R.useState)(null), [g, _] = (0, R.useState)(null), [v, y] = (0, R.useState)(null), b = (0, R.useRef)(!1), x = (0, R.useRef)(e.revision), S = (0, R.useRef)([]), C = Bi();
(0, R.useLayoutEffect)(() => {
g !== null && (S.current[g]?.focus(), _(null));
}, [g]), (0, R.useEffect)(() => {
if (!m) return;
- let e = setTimeout(() => location.assign(m.url), Cpe);
+ let e = setTimeout(() => location.assign(m.url), Ope);
return () => clearTimeout(e);
}, [m]);
let w = (e, t) => r((n) => n.map((n, r) => r === e ? {
@@ -46943,14 +47216,14 @@ function kpe({ data: e, receipt: t }) {
for (; r.length <= e;) r.push("");
return r[e] = t, r;
}), E = () => {
- _(n.length), r((e) => [...e, II()]);
+ _(n.length), r((e) => [...e, HI()]);
}, D = (e) => {
r((t) => t.filter((t, n) => n !== e)), l((t) => t.filter((t, n) => n !== e));
}, O = async (e) => {
if (!b.current) {
b.current = !0, y(e);
try {
- let { path: t } = await W(tpe, { initial: n[e]?.path ?? "" });
+ let { path: t } = await W(ope, { initial: n[e]?.path ?? "" });
t && (w(e, { path: t }), T(e, ""));
} catch (t) {
T(e, U(t));
@@ -46959,7 +47232,7 @@ function kpe({ data: e, receipt: t }) {
}
}
}, k = (r) => {
- r.preventDefault(), p(""), C.run("save", (t) => W(EI, {
+ r.preventDefault(), p(""), C.run("save", (t) => W(MI, {
revision: x.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -46968,18 +47241,18 @@ function kpe({ data: e, receipt: t }) {
}, "POST", t), (e) => {
x.current = e.revision, l([]), d(""), t("已保存配置"), h(e);
}, (e) => {
- let t = Dpe(e);
+ let t = Mpe(e);
l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(U(e));
});
};
- if (m) return /* @__PURE__ */ (0, z.jsx)(SO, {
+ if (m) return /* @__PURE__ */ (0, z.jsx)(TO, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, z.jsx)(wO, { children: /* @__PURE__ */ (0, z.jsxs)(G, {
+ children: /* @__PURE__ */ (0, z.jsx)(DO, { children: /* @__PURE__ */ (0, z.jsxs)(G, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, z.jsx)(oO, {
+ /* @__PURE__ */ (0, z.jsx)(lO, {
href: m.url,
size: "small",
children: "进入馆藏"
@@ -46989,14 +47262,14 @@ function kpe({ data: e, receipt: t }) {
}) })
});
let A = n.some((e) => e.location === "115" || e.location === "pikpak"), j = A ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, z.jsxs)(SO, {
+ return /* @__PURE__ */ (0, z.jsxs)(TO, {
title: "这台电脑",
onSubmit: k,
- children: [/* @__PURE__ */ (0, z.jsxs)(wO, { children: [
+ children: [/* @__PURE__ */ (0, z.jsxs)(DO, { children: [
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(OO, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, z.jsx)(jO, { children: "媒体文件夹" }),
/* @__PURE__ */ (0, z.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
@@ -47007,7 +47280,7 @@ function kpe({ data: e, receipt: t }) {
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(ak, {
+ /* @__PURE__ */ (0, z.jsx)(ck, {
className: "min-w-0 flex-1",
"aria-label": `媒体文件夹 ${r + 1}`,
placeholder: "本机文件夹路径",
@@ -47020,13 +47293,13 @@ function kpe({ data: e, receipt: t }) {
isInvalid: !!c[r],
hint: c[r] || void 0
}),
- /* @__PURE__ */ (0, z.jsx)(_O, {
- icon: wpe,
+ /* @__PURE__ */ (0, z.jsx)(bO, {
+ icon: kpe,
"aria-label": "选择文件夹",
onClick: () => void O(r),
...K(v === r)
}),
- n.length > 1 ? /* @__PURE__ */ (0, z.jsx)(_O, {
+ n.length > 1 ? /* @__PURE__ */ (0, z.jsx)(bO, {
icon: je,
"aria-label": "移除这个文件夹",
onClick: () => D(r)
@@ -47035,7 +47308,7 @@ function kpe({ data: e, receipt: t }) {
}), /* @__PURE__ */ (0, z.jsxs)("div", {
className: "inline-grid grid-cols-1 gap-3 @lg:grid-cols-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(ak, {
+ /* @__PURE__ */ (0, z.jsx)(ck, {
label: "媒体库名称",
maxLength: 80,
placeholder: "同名文件夹归入同一个媒体库",
@@ -47044,7 +47317,7 @@ function kpe({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, z.jsx)(OO, { children: "媒体库图标" }), /* @__PURE__ */ (0, z.jsx)(ype, {
+ children: [/* @__PURE__ */ (0, z.jsx)(jO, { children: "媒体库图标" }), /* @__PURE__ */ (0, z.jsx)(wpe, {
label: `媒体库图标 ${r + 1}`,
value: t.library_icon,
kind: t.location,
@@ -47053,20 +47326,20 @@ function kpe({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, z.jsx)(OO, { children: "媒体来源" }), /* @__PURE__ */ (0, z.jsx)(LO, {
+ children: [/* @__PURE__ */ (0, z.jsx)(jO, { children: "媒体来源" }), /* @__PURE__ */ (0, z.jsx)(BO, {
"aria-label": `媒体来源 ${r + 1}`,
selectedKey: t.location,
onSelectionChange: (e) => {
e !== null && w(r, { location: String(e) });
},
- children: PI.map(([e, t]) => /* @__PURE__ */ (0, z.jsxs)(RO, {
+ children: BI.map(([e, t]) => /* @__PURE__ */ (0, z.jsxs)(VO, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, z.jsx)(NO, { mark: FI(e) }), t]
+ children: [/* @__PURE__ */ (0, z.jsx)(IO, { mark: VI(e) }), t]
}, e))
})]
}),
- e.windows === !1 ? /* @__PURE__ */ (0, z.jsx)(ak, {
+ e.windows === !1 ? /* @__PURE__ */ (0, z.jsx)(ck, {
label: "Windows 中的对应路径",
placeholder: "例如 B:\\",
value: t.root,
@@ -47083,18 +47356,18 @@ function kpe({ data: e, receipt: t }) {
})
]
}),
- A ? /* @__PURE__ */ (0, z.jsx)(_pe, {}) : null,
- j.map((e) => /* @__PURE__ */ (0, z.jsxs)(EO, { children: [
+ A ? /* @__PURE__ */ (0, z.jsx)(Spe, {}) : null,
+ j.map((e) => /* @__PURE__ */ (0, z.jsxs)(kO, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, z.jsxs)(kO, {
+ /* @__PURE__ */ (0, z.jsxs)(MO, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, z.jsx)(EO, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, z.jsx)(ak, {
+ e.windows === !1 ? /* @__PURE__ */ (0, z.jsx)(kO, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, z.jsx)(ck, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -47104,7 +47377,7 @@ function kpe({ data: e, receipt: t }) {
isInvalid: !!u,
hint: u || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, z.jsx)(GO, {
+ /* @__PURE__ */ (0, z.jsx)(JO, {
isSelected: o,
onChange: s,
children: "保存后扫描并补全资料"
@@ -47114,7 +47387,7 @@ function kpe({ data: e, receipt: t }) {
title: "没有保存",
children: f
}) : null
- ] }), /* @__PURE__ */ (0, z.jsx)(TO, {
+ ] }), /* @__PURE__ */ (0, z.jsx)(OO, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
children: /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
@@ -47124,7 +47397,7 @@ function kpe({ data: e, receipt: t }) {
})]
});
}
-function Ape({ online: e }) {
+function Fpe({ online: e }) {
return e === !0 ? /* @__PURE__ */ (0, z.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
@@ -47148,21 +47421,21 @@ function Ape({ online: e }) {
}), "未检测"]
});
}
-function jpe({ data: e }) {
+function Ipe({ data: e }) {
let t = e.media_sources, n = Bi();
- return t ? /* @__PURE__ */ (0, z.jsxs)(SO, {
+ return t ? /* @__PURE__ */ (0, z.jsxs)(TO, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, z.jsx)(AO, { children: t.map((e, t) => /* @__PURE__ */ (0, z.jsxs)(jO, {
- term: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(NO, { mark: FI(e.location) }), Tpe(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, z.jsx)(Ape, { online: e.online })]
+ /* @__PURE__ */ (0, z.jsx)(NO, { children: t.map((e, t) => /* @__PURE__ */ (0, z.jsxs)(PO, {
+ term: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(IO, { mark: VI(e.location) }), Ape(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, z.jsx)(Fpe, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, z.jsx)(wO, {
+ n.error ? /* @__PURE__ */ (0, z.jsx)(DO, {
divided: !0,
- children: /* @__PURE__ */ (0, z.jsx)(DO, { children: n.error })
+ children: /* @__PURE__ */ (0, z.jsx)(AO, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, z.jsx)(TO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
- onClick: () => void n.run("refresh", (e) => OI(e), (e) => q.setQueryData(DI, e)),
+ /* @__PURE__ */ (0, z.jsx)(OO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ onClick: () => void n.run("refresh", (e) => PI(e), (e) => q.setQueryData(NI, e)),
...K(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
@@ -47171,12 +47444,12 @@ function jpe({ data: e }) {
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var Mpe = {
+var Lpe = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
-function Npe({ initial: e, receipt: t }) {
+function Rpe({ initial: e, receipt: t }) {
let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)({}), m = (0, R.useRef)(null), h = Bi(), g = (e) => {
e.preventDefault();
let f = {};
@@ -47197,25 +47470,25 @@ function Npe({ initial: e, receipt: t }) {
let t = e instanceof Si ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(U(e));
});
- }, _ = Mpe[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, z.jsxs)(SO, {
+ }, _ = Lpe[n.mode], v = n.mode !== "locked";
+ return /* @__PURE__ */ (0, z.jsxs)(TO, {
title: "访问密码",
onSubmit: g,
children: [/* @__PURE__ */ (0, z.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, z.jsxs)(wO, { children: [
- _ ? /* @__PURE__ */ (0, z.jsx)(EO, { children: _ }) : null,
+ children: /* @__PURE__ */ (0, z.jsxs)(DO, { children: [
+ _ ? /* @__PURE__ */ (0, z.jsx)(kO, { children: _ }) : null,
n.mode === "open" ? /* @__PURE__ */ (0, z.jsx)(G, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, z.jsx)(GO, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, z.jsx)(JO, {
isSelected: u,
onChange: d,
children: "关闭访问密码"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, z.jsx)(ak, {
+ n.mode === "password" ? /* @__PURE__ */ (0, z.jsx)(ck, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -47228,7 +47501,7 @@ function Npe({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(ak, {
+ v ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(ck, {
id: "access-password",
type: "password",
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
@@ -47241,7 +47514,7 @@ function Npe({ initial: e, receipt: t }) {
validationBehavior: "aria",
isInvalid: !u && !!f.password,
hint: u ? "关闭访问密码时无需填写。" : f.password || "至少 8 个字符。保存后其他设备需要重新登录。"
- }), /* @__PURE__ */ (0, z.jsx)(ak, {
+ }), /* @__PURE__ */ (0, z.jsx)(ck, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -47260,9 +47533,9 @@ function Npe({ initial: e, receipt: t }) {
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, z.jsx)(DO, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, z.jsx)(AO, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, z.jsx)(TO, {
+ }), v ? /* @__PURE__ */ (0, z.jsx)(OO, {
status: "保存后立即生效。",
children: /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
@@ -47274,19 +47547,19 @@ function Npe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/tunnel-settings.tsx
-var Ppe = 2e3, Fpe = [["quick", "临时链接"], ["named", "命名隧道"]], Ipe = {
+var zpe = 2e3, Bpe = [["quick", "临时链接"], ["named", "命名隧道"]], Vpe = {
quick: "只用于临时预览;地址随机、重启后会变化。启动前必须设置访问密码。",
named: "地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"
};
-function Lpe({ revision: e, initial: t, receipt: n }) {
+function Hpe({ revision: e, initial: t, receipt: n }) {
let [r, i] = (0, R.useState)(t), [a, o] = (0, R.useState)(e), [s, c] = (0, R.useState)(t.mode), [l, u] = (0, R.useState)(t.hostname), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)({}), h = Bi(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
(0, R.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
- OI(e.signal).then((t) => {
- e.signal.aborted || !t.tunnel || (q.setQueryData(DI, t), i(t.tunnel), o(t.revision));
+ PI(e.signal).then((t) => {
+ e.signal.aborted || !t.tunnel || (q.setQueryData(NI, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
- }, Ppe);
+ }, zpe);
return () => {
e.abort(), window.clearInterval(t);
};
@@ -47305,26 +47578,26 @@ function Lpe({ revision: e, initial: t, receipt: n }) {
n ? m(n) : h.setError(U(e));
});
};
- return /* @__PURE__ */ (0, z.jsxs)(SO, {
+ return /* @__PURE__ */ (0, z.jsxs)(TO, {
title: "Cloudflare 公网入口",
onSubmit: (e) => {
e.preventDefault(), v("save", g, () => n("已保存配置"));
},
- children: [/* @__PURE__ */ (0, z.jsxs)(wO, { children: [
- r.named_available ? /* @__PURE__ */ (0, z.jsx)(cA, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(DO, { children: [
+ r.named_available ? /* @__PURE__ */ (0, z.jsx)(rA, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: g,
onChange: (e) => c(e),
- className: lA,
- children: Fpe.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(tx, {
+ className: iA,
+ children: Bpe.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(nx, {
value: e,
- className: uA,
+ className: aA,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, z.jsx)(EO, { children: Ipe[_ ? "named" : "quick"] }),
- _ ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(ak, {
+ /* @__PURE__ */ (0, z.jsx)(kO, { children: Vpe[_ ? "named" : "quick"] }),
+ _ ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(ck, {
id: "tunnel-hostname",
label: "公开主机名",
autoComplete: "off",
@@ -47335,7 +47608,7 @@ function Lpe({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
isInvalid: !!p.hostname,
hint: p.hostname || "在 Cloudflare Zero Trust 里指向本机 origin 的那个主机名。"
- }), /* @__PURE__ */ (0, z.jsx)(ak, {
+ }), /* @__PURE__ */ (0, z.jsx)(ck, {
id: "tunnel-token",
type: "password",
label: "隧道令牌",
@@ -47355,7 +47628,7 @@ function Lpe({ revision: e, initial: t, receipt: n }) {
r.state === "running" && r.url ? /* @__PURE__ */ (0, z.jsx)(G, {
tone: "info",
title: "公网地址",
- children: /* @__PURE__ */ (0, z.jsx)(kO, {
+ children: /* @__PURE__ */ (0, z.jsx)(MO, {
href: r.url,
children: r.url
})
@@ -47365,9 +47638,9 @@ function Lpe({ revision: e, initial: t, receipt: n }) {
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
}) : null,
- r.error ? /* @__PURE__ */ (0, z.jsx)(DO, { children: r.error }) : null,
- h.error ? /* @__PURE__ */ (0, z.jsx)(DO, { children: h.error }) : null
- ] }), /* @__PURE__ */ (0, z.jsxs)(TO, {
+ r.error ? /* @__PURE__ */ (0, z.jsx)(AO, { children: r.error }) : null,
+ h.error ? /* @__PURE__ */ (0, z.jsx)(AO, { children: h.error }) : null
+ ] }), /* @__PURE__ */ (0, z.jsxs)(OO, {
status: r.enabled ? "服务重启时会按设置尝试恢复。" : "服务重启后保持关闭。",
children: [/* @__PURE__ */ (0, z.jsx)(H, {
onClick: () => v("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),
@@ -47383,24 +47656,24 @@ function Lpe({ revision: e, initial: t, receipt: n }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var Rpe = [
+var Upe = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function zpe({ data: e, receipt: t }) {
+function Wpe({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.peach_proxy ? /* @__PURE__ */ (0, z.jsx)(Bpe, {
+ e.peach_proxy ? /* @__PURE__ */ (0, z.jsx)(Gpe, {
initial: e.peach_proxy,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, z.jsx)(Npe, {
+ e.access ? /* @__PURE__ */ (0, z.jsx)(Rpe, {
initial: e.access,
receipt: t
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, z.jsx)(Lpe, {
+ e.tunnel ? /* @__PURE__ */ (0, z.jsx)(Hpe, {
revision: e.revision,
initial: e.tunnel,
receipt: t
@@ -47408,9 +47681,9 @@ function zpe({ data: e, receipt: t }) {
]
});
}
-function Bpe({ initial: e, receipt: t }) {
+function Gpe({ initial: e, receipt: t }) {
let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.mode), [o, s] = (0, R.useState)(""), c = Bi();
- return /* @__PURE__ */ (0, z.jsxs)(SO, {
+ return /* @__PURE__ */ (0, z.jsxs)(TO, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
@@ -47422,25 +47695,25 @@ function Bpe({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, z.jsx)(CO, { children: /* @__PURE__ */ (0, z.jsx)(xO, {
+ /* @__PURE__ */ (0, z.jsx)(EO, { children: /* @__PURE__ */ (0, z.jsx)(wO, {
label: "连接方式",
description: "采集来源选「Peach 代理」时共用这里的连接方式。",
- children: /* @__PURE__ */ (0, z.jsx)(LO, {
+ children: /* @__PURE__ */ (0, z.jsx)(BO, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: Rpe.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(RO, {
+ children: Upe.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(VO, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, z.jsxs)(wO, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, z.jsxs)(DO, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, z.jsx)(ak, {
+ i === "proxy" ? /* @__PURE__ */ (0, z.jsx)(ck, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -47454,10 +47727,10 @@ function Bpe({ initial: e, receipt: t }) {
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, z.jsx)(DO, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, z.jsx)(AO, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, z.jsx)(TO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, z.jsx)(OO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
...K(c.busy === "save"),
children: "保存配置"
@@ -47467,10 +47740,10 @@ function Bpe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function Vpe({ receipt: e, reopenTutorial: t }) {
+function Kpe({ receipt: e, reopenTutorial: t }) {
let n = Nn({
- queryKey: DI,
- queryFn: ({ signal: e }) => OI(e)
+ queryKey: NI,
+ queryFn: ({ signal: e }) => PI(e)
}), r = n.data;
if (!r) return /* @__PURE__ */ (0, z.jsx)("div", {
className: "configpage",
@@ -47491,22 +47764,22 @@ function Vpe({ receipt: e, reopenTutorial: t }) {
className: "configgroup",
children: "通用"
}) : null,
- a ? /* @__PURE__ */ (0, z.jsx)(ape, { ...i }) : null,
+ a ? /* @__PURE__ */ (0, z.jsx)(upe, { ...i }) : null,
/* @__PURE__ */ (0, z.jsx)("h2", {
className: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ (0, z.jsx)(Ope, { ...i }),
+ /* @__PURE__ */ (0, z.jsx)(Npe, { ...i }),
o ? /* @__PURE__ */ (0, z.jsx)("h2", {
className: "configgroup",
children: "网络与访问"
}) : null,
- o ? /* @__PURE__ */ (0, z.jsx)(zpe, { ...i }) : null,
+ o ? /* @__PURE__ */ (0, z.jsx)(Wpe, { ...i }) : null,
/* @__PURE__ */ (0, z.jsx)("h2", {
className: "configgroup",
children: "更新与维护"
}),
- /* @__PURE__ */ (0, z.jsx)(upe, {
+ /* @__PURE__ */ (0, z.jsx)(hpe, {
...i,
reopenTutorial: t
})
@@ -47515,35 +47788,35 @@ function Vpe({ receipt: e, reopenTutorial: t }) {
}
//#endregion
//#region src/react/settings/configuration-summary.tsx
-var Hpe = (e) => {
+var qpe = (e) => {
let t = e.updates;
return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";
};
-function Upe({ openConfiguration: e }) {
+function Jpe({ openConfiguration: e }) {
let t = Nn({
- queryKey: DI,
- queryFn: ({ signal: e }) => OI(e)
+ queryKey: NI,
+ queryFn: ({ signal: e }) => PI(e)
}), n = t.data;
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col",
- children: [n ? /* @__PURE__ */ (0, z.jsxs)(AO, { children: [
- /* @__PURE__ */ (0, z.jsx)(jO, {
+ children: [n ? /* @__PURE__ */ (0, z.jsxs)(NO, { children: [
+ /* @__PURE__ */ (0, z.jsx)(PO, {
term: "媒体库",
children: `${n.library_count} 个`
}),
- /* @__PURE__ */ (0, z.jsx)(jO, {
+ /* @__PURE__ */ (0, z.jsx)(PO, {
term: "端口",
children: String(n.port)
}),
- /* @__PURE__ */ (0, z.jsx)(jO, {
+ /* @__PURE__ */ (0, z.jsx)(PO, {
term: "更新",
- children: Hpe(n)
+ children: qpe(n)
})
- ] }) : /* @__PURE__ */ (0, z.jsx)(wO, { children: /* @__PURE__ */ (0, z.jsx)(G, {
+ ] }) : /* @__PURE__ */ (0, z.jsx)(DO, { children: /* @__PURE__ */ (0, z.jsx)(G, {
tone: "error",
title: "配置读取失败",
children: t.error ? U(t.error) : "未取得配置,请刷新页面重试。"
- }) }), /* @__PURE__ */ (0, z.jsx)(TO, {
+ }) }), /* @__PURE__ */ (0, z.jsx)(OO, {
status: "媒体文件夹、端口、代理与更新在配置页上改。",
children: /* @__PURE__ */ (0, z.jsx)(H, {
onClick: e,
@@ -47554,14 +47827,14 @@ function Upe({ openConfiguration: e }) {
}
//#endregion
//#region src/react/stats/stats.ts
-var Wpe = "/api/stats", LI = ["stats"], RI = (e) => wi(Wpe, e);
-async function Gpe(e) {
+var Ype = "/api/stats", UI = ["stats"], WI = (e) => wi(Ype, e);
+async function Xpe(e) {
await q.fetchQuery({
- queryKey: LI,
- queryFn: () => RI(e)
+ queryKey: UI,
+ queryFn: () => WI(e)
});
}
-var zI = (e, t) => t ? Math.round(e / t * 100) : 0, Kpe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, BI = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, VI = (e) => (e.max_reached || 0) * 100, qpe = (e) => e.kind === "online" ? "在线直接观看" : BI(e) < VI(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Jpe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, Ype = (e) => Math.max(1, ...e) * 1.1, Xpe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), Zpe = {
+var GI = (e, t) => t ? Math.round(e / t * 100) : 0, Zpe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, KI = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, qI = (e) => (e.max_reached || 0) * 100, Qpe = (e) => e.kind === "online" ? "在线直接观看" : KI(e) < qI(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", $pe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, eme = (e) => Math.max(1, ...e) * 1.1, tme = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), nme = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -47569,18 +47842,18 @@ var zI = (e, t) => t ? Math.round(e / t * 100) : 0, Kpe = (e) => e >= 3600 ? `${
audio: "音频",
account: "账号",
other: "其它文件"
-}, Qpe = (e) => e.map((e) => ({
- name: Zpe[e.k] ?? e.k,
+}, rme = (e) => e.map((e) => ({
+ name: nme[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), $pe = {
+})).sort((e, t) => t.value - e.value), ime = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, HI = (e, t = {}) => e.map((e) => ({
+}, JI = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), eme = (e) => HI(e, $pe), tme = [
+})), ame = (e) => JI(e, ime), ome = [
[
1,
1,
@@ -47616,49 +47889,49 @@ var zI = (e, t) => t ? Math.round(e / t * 100) : 0, Kpe = (e) => e >= 3600 ? `${
Infinity,
"≥10 次"
]
-], nme = (e) => tme.map(([t, n, r]) => ({
+], sme = (e) => ome.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
-})), rme = /* @__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 UI(e) {
- return typeof e == "string" && rme.includes(e);
+})), cme = /* @__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 YI(e) {
+ return typeof e == "string" && cme.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js
-var ime = /* @__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 WI(e) {
- return typeof e == "string" && ime.has(e);
+var lme = /* @__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 XI(e) {
+ return typeof e == "string" && lme.has(e);
}
-function GI(e) {
+function ZI(e) {
return typeof e == "string" && e.startsWith("data-");
}
-function KI(e) {
+function QI(e) {
if (typeof e != "object" || !e) return {};
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (WI(n) || GI(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (XI(n) || ZI(n)) && (t[n] = e[n]);
return t;
}
-function qI(e) {
+function $I(e) {
if (e == null) return null;
if (/*#__PURE__*/ (0, R.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {
var t = e.props;
- return KI(t);
+ return QI(t);
}
- return typeof e == "object" && !Array.isArray(e) ? KI(e) : null;
+ return typeof e == "object" && !Array.isArray(e) ? QI(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesAndEvents.js
-function JI(e) {
+function eL(e) {
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (WI(n) || GI(n) || UI(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (XI(n) || ZI(n) || YI(n)) && (t[n] = e[n]);
return t;
}
-function ame(e) {
- return e == null ? null : /*#__PURE__*/ (0, R.isValidElement)(e) ? JI(e.props) : typeof e == "object" && !Array.isArray(e) ? JI(e) : null;
+function ume(e) {
+ return e == null ? null : /*#__PURE__*/ (0, R.isValidElement)(e) ? eL(e.props) : typeof e == "object" && !Array.isArray(e) ? eL(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
-var ome = [
+var dme = [
"children",
"width",
"height",
@@ -47668,25 +47941,25 @@ var ome = [
"title",
"desc"
];
-function YI() {
- return YI = Object.assign ? Object.assign.bind() : function(e) {
+function tL() {
+ return tL = 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;
- }, YI.apply(null, arguments);
+ }, tL.apply(null, arguments);
}
-function sme(e, t) {
+function fme(e, t) {
if (e == null) return {};
- var n, r, i = cme(e, t);
+ var n, r, i = pme(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 cme(e, t) {
+function pme(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -47695,14 +47968,14 @@ function cme(e, t) {
}
return n;
}
-var XI = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = sme(e, ome), d = a || {
+var nL = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = fme(e, dme), d = a || {
width: r,
height: i,
x: 0,
y: 0
- }, f = $l("recharts-surface", o);
- return /*#__PURE__*/ R.createElement("svg", YI({}, JI(u), {
+ }, f = Ql("recharts-surface", o);
+ return /*#__PURE__*/ R.createElement("svg", tL({}, eL(u), {
className: f,
width: r,
height: i,
@@ -47710,26 +47983,26 @@ var XI = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
viewBox: `${d.x} ${d.y} ${d.width} ${d.height}`,
ref: t
}), /*#__PURE__*/ R.createElement("title", null, c), /*#__PURE__*/ R.createElement("desc", null, l), n);
-}), lme = ["children", "className"];
-function ZI() {
- return ZI = Object.assign ? Object.assign.bind() : function(e) {
+}), mme = ["children", "className"];
+function rL() {
+ return rL = 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;
- }, ZI.apply(null, arguments);
+ }, rL.apply(null, arguments);
}
-function ume(e, t) {
+function hme(e, t) {
if (e == null) return {};
- var n, r, i = dme(e, t);
+ var n, r, i = gme(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 dme(e, t) {
+function gme(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -47738,39 +48011,39 @@ function dme(e, t) {
}
return n;
}
-var QI = /*#__PURE__*/ R.forwardRef((e, t) => {
- var { children: n, className: r } = e, i = ume(e, lme), a = $l("recharts-layer", r);
- return /*#__PURE__*/ R.createElement("g", ZI({ className: a }, JI(i), { ref: t }), n);
-}), $I = /*#__PURE__*/ (0, R.createContext)(null), fme = () => (0, R.useContext)($I);
+var iL = /*#__PURE__*/ R.forwardRef((e, t) => {
+ var { children: n, className: r } = e, i = hme(e, mme), a = Ql("recharts-layer", r);
+ return /*#__PURE__*/ R.createElement("g", rL({ className: a }, eL(i), { ref: t }), n);
+}), aL = /*#__PURE__*/ (0, R.createContext)(null), _me = () => (0, R.useContext)(aL);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
-function eL(e) {
+function oL(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js
-var tL = Math.cos, nL = Math.sin, rL = Math.sqrt, iL = Math.PI;
-iL / 2;
-var aL = 2 * iL, oL = Math.PI, sL = 2 * oL, cL = 1e-6, pme = sL - cL;
-function lL(e) {
+var sL = Math.cos, cL = Math.sin, lL = Math.sqrt, uL = Math.PI;
+uL / 2;
+var dL = 2 * uL, fL = Math.PI, pL = 2 * fL, mL = 1e-6, vme = pL - mL;
+function hL(e) {
this._ += e[0];
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
}
-function mme(e) {
+function yme(e) {
let t = Math.floor(e);
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
- if (t > 15) return lL;
+ if (t > 15) return hL;
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 uL = class {
+var gL = class {
constructor(e) {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? lL : mme(e);
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? hL : yme(e);
}
moveTo(e, t) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@ -47791,18 +48064,18 @@ var uL = 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 > cL) {
- if (!(Math.abs(u * s - c * l) > cL) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
+ else if (d > mL) {
+ if (!(Math.abs(u * s - c * l) > mL) || !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((oL - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > cL && 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((fL - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > mL && 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) > cL || Math.abs(this._y1 - l) > cL) && this._append`L${c},${l}`, n && (d < 0 && (d = d % sL + sL), d > pme ? 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 > cL && this._append`A${n},${n},0,${+(d >= oL)},${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) > mL || Math.abs(this._y1 - l) > mL) && this._append`L${c},${l}`, n && (d < 0 && (d = d % pL + pL), d > vme ? 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 > mL && this._append`A${n},${n},0,${+(d >= fL)},${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`;
@@ -47811,10 +48084,10 @@ var uL = class {
return this._;
}
};
-uL.prototype;
+gL.prototype;
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/path.js
-function dL(e) {
+function _L(e) {
let t = 3;
return e.digits = function(n) {
if (!arguments.length) return t;
@@ -47825,18 +48098,18 @@ function dL(e) {
t = e;
}
return e;
- }, () => new uL(t);
+ }, () => new gL(t);
}
Array.prototype.slice;
-function fL(e) {
+function vL(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 pL(e) {
+function yL(e) {
this._context = e;
}
-pL.prototype = {
+yL.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -47859,33 +48132,33 @@ pL.prototype = {
}
}
};
-function mL(e) {
- return new pL(e);
+function bL(e) {
+ return new yL(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/point.js
-function hL(e) {
+function xL(e) {
return e[0];
}
-function gL(e) {
+function SL(e) {
return e[1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/line.js
-function _L(e, t) {
- var n = eL(!0), r = null, i = mL, a = null, o = dL(s);
- e = typeof e == "function" ? e : e === void 0 ? hL : eL(e), t = typeof t == "function" ? t : t === void 0 ? gL : eL(t);
+function CL(e, t) {
+ var n = oL(!0), r = null, i = bL, a = null, o = _L(s);
+ e = typeof e == "function" ? e : e === void 0 ? xL : oL(e), t = typeof t == "function" ? t : t === void 0 ? SL : oL(t);
function s(s) {
- var c, l = (s = fL(s)).length, u, d = !1, f;
+ var c, l = (s = vL(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 : eL(+t), s) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : oL(+t), s) : e;
}, s.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : eL(+e), s) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : oL(+e), s) : t;
}, s.defined = function(e) {
- return arguments.length ? (n = typeof e == "function" ? e : eL(!!e), s) : n;
+ return arguments.length ? (n = typeof e == "function" ? e : oL(!!e), s) : n;
}, s.curve = function(e) {
return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;
}, s.context = function(e) {
@@ -47894,11 +48167,11 @@ function _L(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/area.js
-function vL(e, t, n) {
- var r = null, i = eL(!0), a = null, o = mL, s = null, c = dL(l);
- e = typeof e == "function" ? e : e === void 0 ? hL : eL(+e), t = typeof t == "function" ? t : eL(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? gL : eL(+n);
+function wL(e, t, n) {
+ var r = null, i = oL(!0), a = null, o = bL, s = null, c = _L(l);
+ e = typeof e == "function" ? e : e === void 0 ? xL : oL(+e), t = typeof t == "function" ? t : oL(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? SL : oL(+n);
function l(l) {
- var u, d, f, p = (l = fL(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
+ var u, d, f, p = (l = vL(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();
@@ -47912,20 +48185,20 @@ function vL(e, t, n) {
if (g) return s = null, g + "" || null;
}
function u() {
- return _L().defined(i).curve(o).context(a);
+ return CL().defined(i).curve(o).context(a);
}
return l.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : eL(+t), r = null, l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : oL(+t), r = null, l) : e;
}, l.x0 = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : eL(+t), l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : oL(+t), l) : e;
}, l.x1 = function(e) {
- return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : eL(+e), l) : r;
+ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : oL(+e), l) : r;
}, l.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : eL(+e), n = null, l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : oL(+e), n = null, l) : t;
}, l.y0 = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : eL(+e), l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : oL(+e), l) : t;
}, l.y1 = function(e) {
- return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : eL(+e), l) : n;
+ return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : oL(+e), l) : n;
}, l.lineX0 = l.lineY0 = function() {
return u().x(e).y(t);
}, l.lineY1 = function() {
@@ -47933,7 +48206,7 @@ function vL(e, t, n) {
}, l.lineX1 = function() {
return u().x(r).y(t);
}, l.defined = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : eL(!!e), l) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : oL(!!e), l) : i;
}, l.curve = function(e) {
return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;
}, l.context = function(e) {
@@ -47942,7 +48215,7 @@ function vL(e, t, n) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/bump.js
-var yL = class {
+var TL = class {
constructor(e, t) {
this._context = e, this._x = t;
}
@@ -47969,70 +48242,70 @@ var yL = class {
this._x0 = e, this._y0 = t;
}
};
-function hme(e) {
- return new yL(e, !0);
+function bme(e) {
+ return new TL(e, !0);
}
-function gme(e) {
- return new yL(e, !1);
+function xme(e) {
+ return new TL(e, !1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol/circle.js
-var bL = { draw(e, t) {
- let n = rL(t / iL);
- e.moveTo(n, 0), e.arc(0, 0, n, 0, aL);
-} }, _me = { draw(e, t) {
- let n = rL(t / 5) / 2;
+var EL = { draw(e, t) {
+ let n = lL(t / uL);
+ e.moveTo(n, 0), e.arc(0, 0, n, 0, dL);
+} }, Sme = { draw(e, t) {
+ let n = lL(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();
-} }, xL = rL(1 / 3), vme = xL * 2, yme = { draw(e, t) {
- let n = rL(t / vme), r = n * xL;
+} }, DL = lL(1 / 3), Cme = DL * 2, wme = { draw(e, t) {
+ let n = lL(t / Cme), r = n * DL;
e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
-} }, bme = { draw(e, t) {
- let n = rL(t), r = -n / 2;
+} }, Tme = { draw(e, t) {
+ let n = lL(t), r = -n / 2;
e.rect(r, r, n, n);
-} }, xme = .8908130915292852, SL = nL(iL / 10) / nL(7 * iL / 10), Sme = nL(aL / 10) * SL, Cme = -tL(aL / 10) * SL, wme = { draw(e, t) {
- let n = rL(t * xme), r = Sme * n, i = Cme * n;
+} }, Eme = .8908130915292852, OL = cL(uL / 10) / cL(7 * uL / 10), Dme = cL(dL / 10) * OL, Ome = -sL(dL / 10) * OL, kme = { draw(e, t) {
+ let n = lL(t * Eme), r = Dme * n, i = Ome * n;
e.moveTo(0, -n), e.lineTo(r, i);
for (let t = 1; t < 5; ++t) {
- let a = aL * t / 5, o = tL(a), s = nL(a);
+ let a = dL * t / 5, o = sL(a), s = cL(a);
e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
}
e.closePath();
-} }, CL = rL(3), Tme = { draw(e, t) {
- let n = -rL(t / (CL * 3));
- e.moveTo(0, n * 2), e.lineTo(-CL * n, -n), e.lineTo(CL * n, -n), e.closePath();
-} }, wL = -.5, TL = rL(3) / 2, EL = 1 / rL(12), Eme = (EL / 2 + 1) * 3, Dme = { draw(e, t) {
- let n = rL(t / Eme), r = n / 2, i = n * EL, a = r, o = n * EL + n, s = -a, c = o;
- e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(wL * r - TL * i, TL * r + wL * i), e.lineTo(wL * a - TL * o, TL * a + wL * o), e.lineTo(wL * s - TL * c, TL * s + wL * c), e.lineTo(wL * r + TL * i, wL * i - TL * r), e.lineTo(wL * a + TL * o, wL * o - TL * a), e.lineTo(wL * s + TL * c, wL * c - TL * s), e.closePath();
+} }, kL = lL(3), Ame = { draw(e, t) {
+ let n = -lL(t / (kL * 3));
+ e.moveTo(0, n * 2), e.lineTo(-kL * n, -n), e.lineTo(kL * n, -n), e.closePath();
+} }, AL = -.5, jL = lL(3) / 2, ML = 1 / lL(12), jme = (ML / 2 + 1) * 3, Mme = { draw(e, t) {
+ let n = lL(t / jme), r = n / 2, i = n * ML, a = r, o = n * ML + n, s = -a, c = o;
+ e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(AL * r - jL * i, jL * r + AL * i), e.lineTo(AL * a - jL * o, jL * a + AL * o), e.lineTo(AL * s - jL * c, jL * s + AL * c), e.lineTo(AL * r + jL * i, AL * i - jL * r), e.lineTo(AL * a + jL * o, AL * o - jL * a), e.lineTo(AL * s + jL * c, AL * c - jL * s), e.closePath();
} };
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js
-function Ome(e, t) {
- let n = null, r = dL(i);
- e = typeof e == "function" ? e : eL(e || bL), t = typeof t == "function" ? t : eL(t === void 0 ? 64 : +t);
+function Nme(e, t) {
+ let n = null, r = _L(i);
+ e = typeof e == "function" ? e : oL(e || EL), t = typeof t == "function" ? t : oL(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 : eL(t), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : oL(t), i) : e;
}, i.size = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : eL(+e), i) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : oL(+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 DL() {}
+function NL() {}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basis.js
-function OL(e, t, n) {
+function PL(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 kL(e) {
+function FL(e) {
this._context = e;
}
-kL.prototype = {
+FL.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -48044,7 +48317,7 @@ kL.prototype = {
},
lineEnd: function() {
switch (this._point) {
- case 3: OL(this, this._x1, this._y1);
+ case 3: PL(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;
@@ -48058,22 +48331,22 @@ kL.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: OL(this, e, t);
+ default: PL(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function kme(e) {
- return new kL(e);
+function Pme(e) {
+ return new FL(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisClosed.js
-function AL(e) {
+function IL(e) {
this._context = e;
}
-AL.prototype = {
- areaStart: DL,
- areaEnd: DL,
+IL.prototype = {
+ areaStart: NL,
+ areaEnd: NL,
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;
},
@@ -48099,20 +48372,20 @@ AL.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: OL(this, e, t);
+ default: PL(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Ame(e) {
- return new AL(e);
+function Fme(e) {
+ return new IL(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisOpen.js
-function jL(e) {
+function LL(e) {
this._context = e;
}
-jL.prototype = {
+LL.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -48139,22 +48412,22 @@ jL.prototype = {
this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
break;
case 3: this._point = 4;
- default: OL(this, e, t);
+ default: PL(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function jme(e) {
- return new jL(e);
+function Ime(e) {
+ return new LL(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linearClosed.js
-function ML(e) {
+function RL(e) {
this._context = e;
}
-ML.prototype = {
- areaStart: DL,
- areaEnd: DL,
+RL.prototype = {
+ areaStart: NL,
+ areaEnd: NL,
lineStart: function() {
this._point = 0;
},
@@ -48165,30 +48438,30 @@ ML.prototype = {
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
}
};
-function Mme(e) {
- return new ML(e);
+function Lme(e) {
+ return new RL(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/monotone.js
-function NL(e) {
+function zL(e) {
return e < 0 ? -1 : 1;
}
-function PL(e, t, n) {
+function BL(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 (NL(a) + NL(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
+ return (zL(a) + zL(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
}
-function FL(e, t) {
+function VL(e, t) {
var n = e._x1 - e._x0;
return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
}
-function IL(e, t, n) {
+function HL(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 LL(e) {
+function UL(e) {
this._context = e;
}
-LL.prototype = {
+UL.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -48203,7 +48476,7 @@ LL.prototype = {
case 2:
this._context.lineTo(this._x1, this._y1);
break;
- case 3: IL(this, this._t0, FL(this, this._t0));
+ case 3: HL(this, this._t0, VL(this, this._t0));
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
},
@@ -48218,24 +48491,24 @@ LL.prototype = {
this._point = 2;
break;
case 2:
- this._point = 3, IL(this, FL(this, n = PL(this, e, t)), n);
+ this._point = 3, HL(this, VL(this, n = BL(this, e, t)), n);
break;
- default: IL(this, this._t0, n = PL(this, e, t));
+ default: HL(this, this._t0, n = BL(this, e, t));
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
}
}
};
-function RL(e) {
- this._context = new zL(e);
+function WL(e) {
+ this._context = new GL(e);
}
-(RL.prototype = Object.create(LL.prototype)).point = function(e, t) {
- LL.prototype.point.call(this, t, e);
+(WL.prototype = Object.create(UL.prototype)).point = function(e, t) {
+ UL.prototype.point.call(this, t, e);
};
-function zL(e) {
+function GL(e) {
this._context = e;
}
-zL.prototype = {
+GL.prototype = {
moveTo: function(e, t) {
this._context.moveTo(t, e);
},
@@ -48249,18 +48522,18 @@ zL.prototype = {
this._context.bezierCurveTo(t, e, r, n, a, i);
}
};
-function Nme(e) {
- return new LL(e);
+function Rme(e) {
+ return new UL(e);
}
-function Pme(e) {
- return new RL(e);
+function zme(e) {
+ return new WL(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/natural.js
-function BL(e) {
+function KL(e) {
this._context = e;
}
-BL.prototype = {
+KL.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -48274,7 +48547,7 @@ BL.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 = VL(e), i = VL(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 = qL(e), i = qL(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;
},
@@ -48282,7 +48555,7 @@ BL.prototype = {
this._x.push(+e), this._y.push(+t);
}
};
-function VL(e) {
+function qL(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];
@@ -48290,15 +48563,15 @@ function VL(e) {
for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
return [i, a];
}
-function Fme(e) {
- return new BL(e);
+function Bme(e) {
+ return new KL(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/step.js
-function HL(e, t) {
+function JL(e, t) {
this._context = e, this._t = t;
}
-HL.prototype = {
+JL.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -48326,78 +48599,78 @@ HL.prototype = {
this._x = e, this._y = t;
}
};
-function Ime(e) {
- return new HL(e, .5);
+function Vme(e) {
+ return new JL(e, .5);
}
-function Lme(e) {
- return new HL(e, 0);
+function Hme(e) {
+ return new JL(e, 0);
}
-function Rme(e) {
- return new HL(e, 1);
+function Ume(e) {
+ return new JL(e, 1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/none.js
-function UL(e, t) {
+function YL(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 WL(e) {
+function XL(e) {
for (var t = e.length, n = Array(t); --t >= 0;) n[t] = t;
return n;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/stack.js
-function zme(e, t) {
+function Wme(e, t) {
return e[t];
}
-function Bme(e) {
+function Gme(e) {
let t = [];
return t.key = e, t;
}
-function Vme() {
- var e = eL([]), t = WL, n = UL, r = zme;
+function Kme() {
+ var e = oL([]), t = XL, n = YL, r = Wme;
function i(i) {
- var a = Array.from(e.apply(this, arguments), Bme), o, s = a.length, c = -1, l;
+ var a = Array.from(e.apply(this, arguments), Gme), 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 = fL(t(a)); o < s; ++o) a[l[o]].index = o;
+ for (o = 0, l = vL(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 : eL(Array.from(t)), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : oL(Array.from(t)), i) : e;
}, i.value = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : eL(+e), i) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : oL(+e), i) : r;
}, i.order = function(e) {
- return arguments.length ? (t = e == null ? WL : typeof e == "function" ? e : eL(Array.from(e)), i) : t;
+ return arguments.length ? (t = e == null ? XL : typeof e == "function" ? e : oL(Array.from(e)), i) : t;
}, i.offset = function(e) {
- return arguments.length ? (n = e ?? UL, i) : n;
+ return arguments.length ? (n = e ?? YL, i) : n;
}, i;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js
-function Hme(e, t) {
+function qme(e, t) {
if ((r = e.length) > 0) {
for (var n, r, i = 0, a = e[0].length, o; i < a; ++i) {
for (o = n = 0; n < r; ++n) o += e[n][i][1] || 0;
if (o) for (n = 0; n < r; ++n) e[n][i][1] /= o;
}
- UL(e, t);
+ YL(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js
-function Ume(e, t) {
+function Jme(e, t) {
if ((i = e.length) > 0) {
for (var n = 0, r = e[t[0]], i, a = r.length; n < a; ++n) {
for (var o = 0, s = 0; o < i; ++o) s += e[o][n][1] || 0;
r[n][1] += r[n][0] = -s / 2;
}
- UL(e, t);
+ YL(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js
-function Wme(e, t) {
+function Yme(e, t) {
if (!(!((o = e.length) > 0) || !((a = (i = e[t[0]]).length) > 0))) {
for (var n = 0, r = 1, i, a, o; r < a; ++r) {
for (var s = 0, c = 0, l = 0; s < o; ++s) {
@@ -48409,53 +48682,53 @@ function Wme(e, t) {
}
i[r - 1][1] += i[r - 1][0] = n, c && (n -= l / c);
}
- i[r - 1][1] += i[r - 1][0] = n, UL(e, t);
+ i[r - 1][1] += i[r - 1][0] = n, YL(e, t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
-function GL(e) {
+function ZL(e) {
return e === "__proto__";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
-var Gme = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
-function KL(e) {
+var Xme = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
+function QL(e) {
switch (typeof e) {
case "number":
case "symbol": return !1;
- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : Gme.test(e);
+ case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : Xme.test(e);
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
-function qL(e) {
+function $L(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 JL(e) {
+function eR(e) {
return typeof e == "symbol" || e instanceof Symbol;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
-function Kme(e) {
- return e == null ? "" : YL(e);
+function Zme(e) {
+ return e == null ? "" : tR(e);
}
-function YL(e) {
+function tR(e) {
if (typeof e == "string") return e;
- if (Array.isArray(e)) return e.map(YL).join(",");
- if (JL(e)) return e.toString();
+ if (Array.isArray(e)) return e.map(tR).join(",");
+ if (eR(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 XL(e) {
- if (Array.isArray(e)) return e.map(qL);
+function nR(e) {
+ if (Array.isArray(e)) return e.map($L);
if (typeof e == "symbol") return [e];
- e = Kme(e);
+ e = Zme(e);
let t = [], n = e.length;
if (n === 0) return t;
let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;
@@ -48483,100 +48756,100 @@ function XL(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/get.mjs
-function ZL(e, t, n) {
+function rR(e, t, n) {
if (e == null) return n;
switch (typeof t) {
case "string": {
- if (GL(t)) return n;
+ if (ZL(t)) return n;
let r = e[t];
- return r === void 0 ? KL(t) && !Object.hasOwn(e, t) ? ZL(e, XL(t), n) : n : r;
+ return r === void 0 ? QL(t) && !Object.hasOwn(e, t) ? rR(e, nR(t), n) : n : r;
}
case "number":
case "symbol": {
- typeof t == "number" && (t = qL(t));
+ typeof t == "number" && (t = $L(t));
let r = e[t];
return r === void 0 ? n : r;
}
default: {
- if (Array.isArray(t)) return qme(e, t, n);
- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), GL(t)) return n;
+ if (Array.isArray(t)) return Qme(e, t, n);
+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), ZL(t)) return n;
let r = e[t];
return r === void 0 ? n : r;
}
}
}
-function qme(e, t, n) {
+function Qme(e, t, n) {
if (t.length === 0) return n;
let r = e;
for (let e = 0; e < t.length; e++) {
- if (r == null || GL(t[e])) return n;
+ if (r == null || ZL(t[e])) return n;
r = r[t[e]];
}
return r === void 0 ? n : r;
}
//#endregion
//#region node_modules/recharts/es6/util/round.js
-var Jme = 4;
-function QL(e) {
- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Jme), n = Math.round(e * t) / t;
+var $me = 4;
+function iR(e) {
+ var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : $me), n = Math.round(e * t) / t;
return Object.is(n, -0) ? 0 : n;
}
-function $L(e) {
+function aR(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 + QL(i) + n;
+ return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + iR(i) + n;
}, "");
}
//#endregion
//#region node_modules/recharts/es6/util/DataUtils.js
-var eR = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, tR = (e) => typeof e == "number" && e != +e, nR = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !tR(e), rR = (e) => Z(e) || typeof e == "string", Yme = 0, iR = (e) => {
- var t = ++Yme;
+var oR = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, sR = (e) => typeof e == "number" && e != +e, cR = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !sR(e), lR = (e) => Z(e) || typeof e == "string", ehe = 0, uR = (e) => {
+ var t = ++ehe;
return `${e || ""}${t}`;
-}, aR = function(e, t) {
+}, dR = 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 (nR(e)) {
+ if (cR(e)) {
if (t == null) return n;
var a = e.indexOf("%");
i = t * parseFloat(e.slice(0, a)) / 100;
} else i = +e;
- return tR(i) && (i = n), r && t != null && i > t && (i = t), i;
-}, oR = (e) => {
+ return sR(i) && (i = n), r && t != null && i > t && (i = t), i;
+}, fR = (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 sR(e, t, n) {
- return Z(e) && Z(t) ? QL(e + n * (t - e)) : t;
+function pR(e, t, n) {
+ return Z(e) && Z(t) ? iR(e + n * (t - e)) : t;
}
-function cR(e, t, n) {
- if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : ZL(e, t)) === n);
+function mR(e, t, n) {
+ if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : rR(e, t)) === n);
}
-var lR = (e) => e == null, uR = (e) => lR(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
-function dR(e) {
+var hR = (e) => e == null, gR = (e) => hR(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
+function _R(e) {
return e != null;
}
-function fR() {}
+function vR() {}
//#endregion
//#region node_modules/recharts/es6/shape/Symbols.js
-var Xme = [
+var the = [
"type",
"size",
"sizeType"
];
-function pR() {
- return pR = Object.assign ? Object.assign.bind() : function(e) {
+function yR() {
+ return yR = 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;
- }, pR.apply(null, arguments);
+ }, yR.apply(null, arguments);
}
-function mR(e, t) {
+function bR(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48586,30 +48859,30 @@ function mR(e, t) {
}
return n;
}
-function hR(e) {
+function xR(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? mR(Object(n), !0).forEach(function(t) {
- Zme(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : mR(Object(n)).forEach(function(t) {
+ t % 2 ? bR(Object(n), !0).forEach(function(t) {
+ nhe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : bR(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Zme(e, t, n) {
- return (t = Qme(t)) in e ? Object.defineProperty(e, t, {
+function nhe(e, t, n) {
+ return (t = rhe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Qme(e) {
- var t = $me(e, "string");
+function rhe(e) {
+ var t = ihe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function $me(e, t) {
+function ihe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48619,16 +48892,16 @@ function $me(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function ehe(e, t) {
+function ahe(e, t) {
if (e == null) return {};
- var n, r, i = the(e, t);
+ var n, r, i = ohe(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 the(e, t) {
+function ohe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -48637,68 +48910,68 @@ function the(e, t) {
}
return n;
}
-var gR = {
- symbolCircle: bL,
- symbolCross: _me,
- symbolDiamond: yme,
- symbolSquare: bme,
- symbolStar: wme,
- symbolTriangle: Tme,
- symbolWye: Dme
-}, nhe = Math.PI / 180, rhe = (e) => gR[`symbol${uR(e)}`] || bL, ihe = (e, t, n) => {
+var SR = {
+ symbolCircle: EL,
+ symbolCross: Sme,
+ symbolDiamond: wme,
+ symbolSquare: Tme,
+ symbolStar: kme,
+ symbolTriangle: Ame,
+ symbolWye: Mme
+}, she = Math.PI / 180, che = (e) => SR[`symbol${gR(e)}`] || EL, lhe = (e, t, n) => {
if (t === "area") return e;
switch (n) {
case "cross": return 5 * e * e / 9;
case "diamond": return .5 * e * e / Math.sqrt(3);
case "square": return e * e;
case "star":
- var r = 18 * nhe;
+ var r = 18 * she;
return 1.25 * e * e * (Math.tan(r) - Math.tan(r * 2) * Math.tan(r) ** 2);
case "triangle": return Math.sqrt(3) * e * e / 4;
case "wye": return (21 - 10 * Math.sqrt(3)) * e * e / 8;
default: return Math.PI * e * e / 4;
}
-}, ahe = (e, t) => {
- gR[`symbol${uR(e)}`] = t;
-}, _R = (e) => {
- var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = hR(hR({}, ehe(e, Xme)), {}, {
+}, uhe = (e, t) => {
+ SR[`symbol${gR(e)}`] = t;
+}, CR = (e) => {
+ var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = xR(xR({}, ahe(e, the)), {}, {
type: t,
size: n,
sizeType: r
}), a = "circle";
typeof t == "string" && (a = t);
var o = () => {
- var e = rhe(a), t = Ome().type(e).size(ihe(n, r, a))();
+ var e = che(a), t = Nme().type(e).size(lhe(n, r, a))();
if (t !== null) return t;
- }, { className: s, cx: c, cy: l } = i, u = JI(i);
- return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ R.createElement("path", pR({}, u, {
- className: $l("recharts-symbols", s),
+ }, { className: s, cx: c, cy: l } = i, u = eL(i);
+ return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ R.createElement("path", yR({}, u, {
+ className: Ql("recharts-symbols", s),
transform: `translate(${c}, ${l})`,
d: o()
})) : null;
};
-_R.registerSymbol = ahe;
+CR.registerSymbol = uhe;
//#endregion
//#region node_modules/recharts/es6/util/types.js
-var vR = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, yR = (e, t) => {
+var wR = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, TR = (e, t) => {
if (!e || typeof e == "function" || typeof e == "boolean") return null;
var n = e;
if (/*#__PURE__*/ (0, R.isValidElement)(e) && (n = e.props), typeof n != "object" && typeof n != "function") return null;
var r = {};
return Object.keys(n).forEach((e) => {
- UI(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
+ YI(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
}), r;
-}, ohe = (e, t, n) => (r) => (e(t, n, r), null), bR = (e, t, n) => {
+}, dhe = (e, t, n) => (r) => (e(t, n, r), null), ER = (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];
- UI(i) && typeof a == "function" && (r ||= {}, r[i] = ohe(a, t, n));
+ YI(i) && typeof a == "function" && (r ||= {}, r[i] = dhe(a, t, n));
}), r;
};
//#endregion
//#region node_modules/recharts/es6/util/resolveDefaultProps.js
-function xR(e, t) {
+function DR(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48708,30 +48981,30 @@ function xR(e, t) {
}
return n;
}
-function she(e) {
+function fhe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? xR(Object(n), !0).forEach(function(t) {
- che(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xR(Object(n)).forEach(function(t) {
+ t % 2 ? DR(Object(n), !0).forEach(function(t) {
+ phe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : DR(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function che(e, t, n) {
- return (t = lhe(t)) in e ? Object.defineProperty(e, t, {
+function phe(e, t, n) {
+ return (t = mhe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function lhe(e) {
- var t = uhe(e, "string");
+function mhe(e) {
+ var t = hhe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function uhe(e, t) {
+function hhe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48741,22 +49014,22 @@ function uhe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function SR(e, t) {
- var n = she({}, e), r = t;
+function OR(e, t) {
+ var n = fhe({}, 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 CR() {
- return CR = Object.assign ? Object.assign.bind() : function(e) {
+function kR() {
+ return kR = 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;
- }, CR.apply(null, arguments);
+ }, kR.apply(null, arguments);
}
-function wR(e, t) {
+function AR(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48766,30 +49039,30 @@ function wR(e, t) {
}
return n;
}
-function TR(e) {
+function jR(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? wR(Object(n), !0).forEach(function(t) {
- dhe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wR(Object(n)).forEach(function(t) {
+ t % 2 ? AR(Object(n), !0).forEach(function(t) {
+ ghe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : AR(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function dhe(e, t, n) {
- return (t = fhe(t)) in e ? Object.defineProperty(e, t, {
+function ghe(e, t, n) {
+ return (t = _he(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function fhe(e) {
- var t = phe(e, "string");
+function _he(e) {
+ var t = vhe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function phe(e, t) {
+function vhe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48799,7 +49072,7 @@ function phe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var ER = 32, mhe = {
+var MR = 32, yhe = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -48807,20 +49080,20 @@ var ER = 32, mhe = {
verticalAlign: "middle",
labelStyle: {}
};
-function hhe(e) {
+function bhe(e) {
if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);
}
-function ghe(e) {
- var { data: t, iconType: n, inactiveColor: r } = e, i = ER / 2, a = ER / 6, o = ER / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
+function xhe(e) {
+ var { data: t, iconType: n, inactiveColor: r } = e, i = MR / 2, a = MR / 6, o = MR / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
if (c === "none") return null;
if (c === "plainline") return /*#__PURE__*/ R.createElement("line", {
strokeWidth: 4,
fill: "none",
stroke: s,
- strokeDasharray: hhe(t.payload),
+ strokeDasharray: bhe(t.payload),
x1: 0,
y1: i,
- x2: ER,
+ x2: MR,
y2: i,
className: "recharts-legend-icon"
});
@@ -48830,35 +49103,35 @@ function ghe(e) {
stroke: s,
d: `M0,${i}h${o}
A${a},${a},0,1,1,${2 * o},${i}
- H${ER}M${2 * o},${i}
+ H${MR}M${2 * o},${i}
A${a},${a},0,1,1,${o},${i}`,
className: "recharts-legend-icon"
});
if (c === "rect") return /*#__PURE__*/ R.createElement("path", {
stroke: "none",
fill: s,
- d: `M0,${ER / 8}h${ER}v${ER * 3 / 4}h${-ER}z`,
+ d: `M0,${MR / 8}h${MR}v${MR * 3 / 4}h${-MR}z`,
className: "recharts-legend-icon"
});
if (/*#__PURE__*/ R.isValidElement(t.legendIcon)) {
- var l = TR({}, t);
+ var l = jR({}, t);
return delete l.legendIcon, /*#__PURE__*/ R.cloneElement(t.legendIcon, l);
}
- return /*#__PURE__*/ R.createElement(_R, {
+ return /*#__PURE__*/ R.createElement(CR, {
fill: s,
cx: i,
cy: i,
- size: ER,
+ size: MR,
sizeType: "diameter",
type: c
});
}
-function _he(e) {
+function She(e) {
var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {
x: 0,
y: 0,
- width: ER,
- height: ER
+ width: MR,
+ height: MR
}, l = {
display: r === "horizontal" ? "inline-block" : "block",
marginRight: 10
@@ -48868,26 +49141,26 @@ function _he(e) {
marginRight: 4
};
return t.map((t, r) => {
- var d = t.formatter || i, f = $l({
+ var d = t.formatter || i, f = Ql({
"recharts-legend-item": !0,
[`legend-item-${r}`]: !0,
inactive: t.inactive
});
if (t.type === "none") return null;
- var p = typeof s == "object" ? TR({}, s) : {};
+ var p = typeof s == "object" ? jR({}, s) : {};
p.color = t.inactive ? a : p.color || t.color;
var m = d ? d(t.value, t, r) : t.value;
- return /*#__PURE__*/ R.createElement("li", CR({
+ return /*#__PURE__*/ R.createElement("li", kR({
className: f,
style: l,
key: `legend-item-${r}`
- }, bR(e, t, r)), /*#__PURE__*/ R.createElement(XI, {
+ }, ER(e, t, r)), /*#__PURE__*/ R.createElement(nL, {
width: n,
height: n,
viewBox: c,
style: u,
"aria-label": `${m} legend icon`
- }, /*#__PURE__*/ R.createElement(ghe, {
+ }, /*#__PURE__*/ R.createElement(xhe, {
data: t,
iconType: o,
inactiveColor: a
@@ -48897,8 +49170,8 @@ function _he(e) {
}, m));
});
}
-var vhe = (e) => {
- var t = SR(e, mhe), { payload: n, layout: r, align: i } = t;
+var Che = (e) => {
+ var t = OR(e, yhe), { payload: n, layout: r, align: i } = t;
if (!n || !n.length) return null;
var a = {
padding: 0,
@@ -48908,11 +49181,11 @@ var vhe = (e) => {
return /*#__PURE__*/ R.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ R.createElement(_he, CR({}, t, { payload: n })));
+ }, /*#__PURE__*/ R.createElement(She, kR({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
-function yhe(e, t) {
+function whe(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r = 0; r < e.length; r++) {
let i = e[r], a = t(i, r, e);
@@ -48922,77 +49195,77 @@ function yhe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/function/ary.mjs
-function bhe(e, t) {
+function The(e, t) {
return function(...n) {
return e.apply(this, n.slice(0, t));
};
}
//#endregion
//#region node_modules/es-toolkit/dist/function/identity.mjs
-function DR(e) {
+function NR(e) {
return e;
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isLength.mjs
-function xhe(e) {
+function Ehe(e) {
return Number.isSafeInteger(e) && e >= 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
-function OR(e) {
- return e != null && typeof e != "function" && xhe(e.length);
+function PR(e) {
+ return e != null && typeof e != "function" && Ehe(e.length);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/property.mjs
-function She(e) {
+function Dhe(e) {
return function(t) {
- return ZL(t, e);
+ return rR(t, e);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
-function kR(e) {
+function FR(e) {
return e == null || typeof e != "object" && typeof e != "function";
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
-function Che(e) {
+function Ohe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
-function whe(e) {
+function khe(e) {
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
-function AR(e) {
+function IR(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 The = "[object RegExp]", jR = "[object String]", MR = "[object Number]", NR = "[object Boolean]", PR = "[object Arguments]", Ehe = "[object Symbol]", Dhe = "[object Date]", Ohe = "[object Map]", khe = "[object Set]", Ahe = "[object Array]", jhe = "[object ArrayBuffer]", Mhe = "[object Object]", Nhe = "[object DataView]", Phe = "[object Uint8Array]", Fhe = "[object Uint8ClampedArray]", Ihe = "[object Uint16Array]", Lhe = "[object Uint32Array]", Rhe = "[object Int8Array]", zhe = "[object Int16Array]", Bhe = "[object Int32Array]", Vhe = "[object Float32Array]", Hhe = "[object Float64Array]", FR = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
+var Ahe = "[object RegExp]", LR = "[object String]", RR = "[object Number]", zR = "[object Boolean]", BR = "[object Arguments]", jhe = "[object Symbol]", Mhe = "[object Date]", Nhe = "[object Map]", Phe = "[object Set]", Fhe = "[object Array]", Ihe = "[object ArrayBuffer]", Lhe = "[object Object]", Rhe = "[object DataView]", zhe = "[object Uint8Array]", Bhe = "[object Uint8ClampedArray]", Vhe = "[object Uint16Array]", Hhe = "[object Uint32Array]", Uhe = "[object Int8Array]", Whe = "[object Int16Array]", Ghe = "[object Int32Array]", Khe = "[object Float32Array]", qhe = "[object Float64Array]", VR = 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 Uhe(e) {
- return FR.Buffer !== void 0 && FR.Buffer.isBuffer(e);
+function Jhe(e) {
+ return VR.Buffer !== void 0 && VR.Buffer.isBuffer(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
-function Whe(e, t) {
- return IR(e, void 0, e, /* @__PURE__ */ new Map(), t);
+function Yhe(e, t) {
+ return HR(e, void 0, e, /* @__PURE__ */ new Map(), t);
}
-function IR(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
+function HR(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
let a = i?.(e, t, n, r);
if (a !== void 0) return a;
- if (kR(e)) return e;
+ if (FR(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] = IR(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = HR(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());
@@ -49003,132 +49276,132 @@ function IR(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, IR(o, a, n, r, i));
+ for (let [a, o] of e) t.set(a, HR(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(IR(a, void 0, n, r, i));
+ for (let a of e) t.add(HR(a, void 0, n, r, i));
return t;
}
- if (Uhe(e)) return e.subarray();
- if (Che(e)) {
+ if (Jhe(e)) return e.subarray();
+ if (Ohe(e)) {
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
r.set(e, t);
- for (let a = 0; a < e.length; a++) t[a] = IR(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = HR(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), LR(t, e, n, r, i), t;
+ return r.set(e, t), UR(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), LR(t, e, n, r, i), t;
+ return r.set(e, t), UR(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), LR(t, e, n, r, i), t;
+ return r.set(e, t), UR(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, LR(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, UR(t, e, n, r, i), t;
}
if (e instanceof Boolean) {
let t = new Boolean(e.valueOf());
- return r.set(e, t), LR(t, e, n, r, i), t;
+ return r.set(e, t), UR(t, e, n, r, i), t;
}
if (e instanceof Number) {
let t = new Number(e.valueOf());
- return r.set(e, t), LR(t, e, n, r, i), t;
+ return r.set(e, t), UR(t, e, n, r, i), t;
}
if (e instanceof String) {
let t = new String(e.valueOf());
- return r.set(e, t), LR(t, e, n, r, i), t;
+ return r.set(e, t), UR(t, e, n, r, i), t;
}
- if (typeof e == "object" && Ghe(e)) {
+ if (typeof e == "object" && Xhe(e)) {
let t = Object.create(Object.getPrototypeOf(e));
- return r.set(e, t), LR(t, e, n, r, i), t;
+ return r.set(e, t), UR(t, e, n, r, i), t;
}
return e;
}
-function LR(e, t, n = e, r, i) {
- let a = [...Object.keys(t), ...whe(t)];
+function UR(e, t, n = e, r, i) {
+ let a = [...Object.keys(t), ...khe(t)];
for (let o = 0; o < a.length; o++) {
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
- (c == null || c.writable) && (e[s] = IR(t[s], s, n, r, i));
+ (c == null || c.writable) && (e[s] = HR(t[s], s, n, r, i));
}
}
-function Ghe(e) {
- switch (AR(e)) {
- case PR:
+function Xhe(e) {
+ switch (IR(e)) {
+ case BR:
+ case Fhe:
+ case Ihe:
+ case Rhe:
+ case zR:
+ case Mhe:
+ case Khe:
+ case qhe:
+ case Uhe:
+ case Whe:
+ case Ghe:
+ case Nhe:
+ case RR:
+ case Lhe:
case Ahe:
+ case Phe:
+ case LR:
case jhe:
- case Nhe:
- case NR:
- case Dhe:
- case Vhe:
- case Hhe:
- case Rhe:
case zhe:
case Bhe:
- case Ohe:
- case MR:
- case Mhe:
- case The:
- case khe:
- case jR:
- case Ehe:
- case Phe:
- case Fhe:
- case Ihe:
- case Lhe: return !0;
+ case Vhe:
+ case Hhe: return !0;
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs
-function Khe(e) {
- return IR(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
+function Zhe(e) {
+ return HR(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/eq.mjs
-function RR(e, t) {
+function WR(e, t) {
return e === t || Number.isNaN(e) && Number.isNaN(t);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isObject.mjs
-function zR(e) {
+function GR(e) {
return e !== null && (typeof e == "object" || typeof e == "function");
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatchWith.mjs
-function BR(e, t, n) {
- return typeof n == "function" ? VR(e, t, function e(t, r, i, a, o, s) {
+function KR(e, t, n) {
+ return typeof n == "function" ? qR(e, t, function e(t, r, i, a, o, s) {
let c = n(t, r, i, a, o, s);
- return c === void 0 ? VR(t, r, e, s, !1) : !!c;
- }, /* @__PURE__ */ new Map(), !0) : BR(e, t, () => void 0);
+ return c === void 0 ? qR(t, r, e, s, !1) : !!c;
+ }, /* @__PURE__ */ new Map(), !0) : KR(e, t, () => void 0);
}
-function VR(e, t, n, r, i = !1) {
+function qR(e, t, n, r, i = !1) {
if (t === e) return !0;
switch (typeof t) {
- case "object": return qhe(e, t, n, r, i);
- case "function": return Object.keys(t).length > 0 ? VR(e, { ...t }, n, r, i) : RR(e, t);
- default: return zR(e) && i ? typeof t != "string" || t === "" : RR(e, t);
+ case "object": return Qhe(e, t, n, r, i);
+ case "function": return Object.keys(t).length > 0 ? qR(e, { ...t }, n, r, i) : WR(e, t);
+ default: return GR(e) && i ? typeof t != "string" || t === "" : WR(e, t);
}
}
-function qhe(e, t, n, r, i = !1) {
+function Qhe(e, t, n, r, i = !1) {
if (t == null) return !0;
- if (Array.isArray(t)) return HR(e, t, n, r);
- if (t instanceof Map) return Jhe(e, t, n, r);
- if (t instanceof Set) return Yhe(e, t, n, r);
+ if (Array.isArray(t)) return JR(e, t, n, r);
+ if (t instanceof Map) return $he(e, t, n, r);
+ if (t instanceof Set) return ege(e, t, n, r);
let a = Object.keys(t);
if (e == null) return i && a.length === 0;
- if (i) kR(e) && (e = Object(e));
+ if (i) FR(e) && (e = Object(e));
else {
- let t = AR(e);
+ let t = IR(e);
if (t !== "[object Object]" && t !== "[object Arguments]") return !1;
}
if (a.length === 0) return !0;
@@ -49144,13 +49417,13 @@ function qhe(e, t, n, r, i = !1) {
r?.delete(t);
}
}
-function Jhe(e, t, n, r) {
+function $he(e, t, n, r) {
if (t.size === 0) return !0;
if (!(e instanceof Map)) return !1;
for (let [i, a] of t.entries()) if (n(e.get(i), a, i, e, t, r) === !1) return !1;
return !0;
}
-function HR(e, t, n, r) {
+function JR(e, t, n, r) {
if (t.length === 0) return !0;
if (!Array.isArray(e)) return !1;
let i = /* @__PURE__ */ new Set();
@@ -49168,40 +49441,40 @@ function HR(e, t, n, r) {
}
return !0;
}
-function Yhe(e, t, n, r) {
- return t.size === 0 || e instanceof Set && HR([...e], [...t], n, r);
+function ege(e, t, n, r) {
+ return t.size === 0 || e instanceof Set && JR([...e], [...t], n, r);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatch.mjs
-function UR(e, t) {
- return BR(e, t, () => void 0);
+function YR(e, t) {
+ return KR(e, t, () => void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs
-function Xhe(e) {
- return e = Khe(e), (t) => UR(t, e);
+function tge(e) {
+ return e = Zhe(e), (t) => YR(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
-function Zhe(e, t) {
- return Whe(e, (n, r, i, a) => {
+function nge(e, t) {
+ return Yhe(e, (n, r, i, a) => {
let o = t?.(n, r, i, a);
if (o !== void 0) return o;
if (typeof e == "object") {
- if (AR(e) === "[object Object]" && typeof e.constructor != "function") {
+ if (IR(e) === "[object Object]" && typeof e.constructor != "function") {
let t = {};
- return a.set(e, t), LR(t, e, i, a), t;
+ return a.set(e, t), UR(t, e, i, a), t;
}
switch (Object.prototype.toString.call(e)) {
- case MR:
- case jR:
- case NR: {
+ case RR:
+ case LR:
+ case zR: {
let t = new e.constructor(e?.valueOf());
- return LR(t, e), t;
+ return UR(t, e), t;
}
- case PR: {
+ case BR: {
let t = {};
- return LR(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
+ return UR(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
}
default: return;
}
@@ -49210,80 +49483,80 @@ function Zhe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
-function Qhe(e) {
- return Zhe(e);
+function rge(e) {
+ return nge(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
-var $he = /^(?:0|[1-9]\d*)$/;
-function WR(e, t = 2 ** 53 - 1) {
+var ige = /^(?:0|[1-9]\d*)$/;
+function XR(e, t = 2 ** 53 - 1) {
switch (typeof e) {
case "number": return Number.isInteger(e) && e >= 0 && e < t;
case "symbol": return !1;
- case "string": return $he.test(e);
+ case "string": return ige.test(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
-function ege(e) {
- return typeof e == "object" && !!e && AR(e) === "[object Arguments]";
+function age(e) {
+ return typeof e == "object" && !!e && IR(e) === "[object Arguments]";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/has.mjs
-function tge(e, t) {
+function oge(e, t) {
let n;
- if (n = Array.isArray(t) ? t : typeof t == "string" && KL(t) && !(t in Object(e)) ? XL(t) : [t], n.length === 0) return !1;
+ if (n = Array.isArray(t) ? t : typeof t == "string" && QL(t) && !(t in Object(e)) ? nR(t) : [t], n.length === 0) return !1;
let r = e;
for (let e = 0; e < n.length; e++) {
- let t = qL(n[e]);
- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || ege(r)) && WR(t) && Number(t) < r.length)) return !1;
+ let t = $L(n[e]);
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || age(r)) && XR(t) && Number(t) < r.length)) return !1;
r = r[t];
}
return !0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matchesProperty.mjs
-function nge(e, t) {
+function sge(e, t) {
switch (typeof e) {
case "object":
Object.is(e?.valueOf(), -0) && (e = "-0");
break;
- case "number": e = qL(e);
+ case "number": e = $L(e);
}
- return t = Qhe(t), function(n) {
- let r = ZL(n, e);
- return r === void 0 ? tge(n, e) : t === void 0 ? r === void 0 : UR(r, t);
+ return t = rge(t), function(n) {
+ let r = rR(n, e);
+ return r === void 0 ? oge(n, e) : t === void 0 ? r === void 0 : YR(r, t);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/iteratee.mjs
-function GR(e) {
- if (e == null) return DR;
+function ZR(e) {
+ if (e == null) return NR;
switch (typeof e) {
case "function": return e;
- case "object": return Array.isArray(e) && e.length === 2 ? nge(e[0], e[1]) : Xhe(e);
- default: return She(e);
+ case "object": return Array.isArray(e) && e.length === 2 ? sge(e[0], e[1]) : tge(e);
+ default: return Dhe(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/normalizeZero.mjs
-function rge(e) {
+function cge(e) {
return e === 0 ? 0 : e;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs
-function KR(e, t = DR) {
- return OR(e) ? yhe(Array.from(e), bhe(GR(t), 1)).map(rge) : [];
+function QR(e, t = NR) {
+ return PR(e) ? whe(Array.from(e), The(ZR(t), 1)).map(cge) : [];
}
//#endregion
//#region node_modules/recharts/es6/util/payload/getUniqPayload.js
-function qR(e, t, n) {
- return t === !0 ? KR(e, n) : typeof t == "function" ? KR(e, t) : e;
+function $R(e, t, n) {
+ return t === !0 ? QR(e, n) : typeof t == "function" ? QR(e, t) : e;
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var ige = /* @__PURE__ */ ce(((e) => {
- var t = he(), n = hp();
+var lge = /* @__PURE__ */ ce(((e) => {
+ var t = he(), n = mp();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -49327,60 +49600,60 @@ var ige = /* @__PURE__ */ ce(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), age = /* @__PURE__ */ ce(((e, t) => {
- t.exports = ige();
-})), JR = /*#__PURE__*/ (0, R.createContext)(null), oge = age(), sge = (e) => e, YR = () => {
- var e = (0, R.useContext)(JR);
- return e ? e.store.dispatch : sge;
-}, XR = () => {}, cge = () => XR, lge = (e, t) => e === t;
+})), uge = /* @__PURE__ */ ce(((e, t) => {
+ t.exports = lge();
+})), ez = /*#__PURE__*/ (0, R.createContext)(null), dge = uge(), fge = (e) => e, tz = () => {
+ var e = (0, R.useContext)(ez);
+ return e ? e.store.dispatch : fge;
+}, nz = () => {}, pge = () => nz, mge = (e, t) => e === t;
function Q(e) {
- var t = (0, R.useContext)(JR), n = (0, R.useMemo)(() => t ? (t) => {
+ var t = (0, R.useContext)(ez), n = (0, R.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
- } : XR, [t, e]);
- return (0, oge.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : cge, t ? t.store.getState : XR, t ? t.store.getState : XR, n, lge);
+ } : nz, [t, e]);
+ return (0, dge.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : pge, t ? t.store.getState : nz, t ? t.store.getState : nz, n, mge);
}
//#endregion
//#region node_modules/reselect/dist/reselect.mjs
-function uge(e, t = `expected a function, instead received ${typeof e}`) {
+function hge(e, t = `expected a function, instead received ${typeof e}`) {
if (typeof e != "function") throw TypeError(t);
}
-function dge(e, t = `expected an object, instead received ${typeof e}`) {
+function gge(e, t = `expected an object, instead received ${typeof e}`) {
if (typeof e != "object") throw TypeError(t);
}
-function fge(e, t = "expected all items to be functions, instead received the following types: ") {
+function _ge(e, t = "expected all items to be functions, instead received the following types: ") {
if (!e.every((e) => typeof e == "function")) {
let n = e.map((e) => typeof e == "function" ? `function ${e.name || "unnamed"}()` : typeof e).join(", ");
throw TypeError(`${t}[${n}]`);
}
}
-var ZR = (e) => Array.isArray(e) ? e : [e];
-function pge(e) {
+var rz = (e) => Array.isArray(e) ? e : [e];
+function vge(e) {
let t = Array.isArray(e[0]) ? e[0] : e;
- return fge(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
+ return _ge(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
}
-function mge(e, t) {
+function yge(e, t) {
let n = [], { length: r } = e;
for (let i = 0; i < r; i++) n.push(e[i].apply(null, t));
return n;
}
-var hge = class {
+var bge = class {
constructor(e) {
this.value = e;
}
deref() {
return this.value;
}
-}, gge = typeof WeakRef < "u" ? WeakRef : hge, _ge = 0, QR = 1;
-function $R() {
+}, xge = typeof WeakRef < "u" ? WeakRef : bge, Sge = 0, iz = 1;
+function az() {
return {
- s: _ge,
+ s: Sge,
v: void 0,
o: null,
p: null
};
}
-function ez(e, t = {}) {
- let n = $R(), { resultEqualityCheck: r } = t, i, a = 0;
+function oz(e, t = {}) {
+ let n = az(), { resultEqualityCheck: r } = t, i, a = 0;
function o() {
let t = n, { length: o } = arguments;
for (let e = 0, n = o; e < n; e++) {
@@ -49389,43 +49662,43 @@ function ez(e, t = {}) {
let e = t.o;
e === null && (t.o = e = /* @__PURE__ */ new WeakMap());
let r = e.get(n);
- r === void 0 ? (t = $R(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = az(), 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 = $R(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = az(), e.set(n, t)) : t = r;
}
}
let s = t, c;
- if (t.s === QR) c = t.v;
+ if (t.s === iz) 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 gge(c) : c;
+ e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new xge(c) : c;
}
- return s.s = QR, s.v = c, c;
+ return s.s = iz, s.v = c, c;
}
return o.clearCache = () => {
- n = $R(), o.resetResultsCount();
+ n = az(), o.resetResultsCount();
}, o.resultsCount = () => a, o.resetResultsCount = () => {
a = 0;
}, o;
}
-function vge(e, ...t) {
+function Cge(e, ...t) {
let n = typeof e == "function" ? {
memoize: e,
memoizeOptions: t
} : e, r = (...e) => {
let t = 0, r = 0, i, a = {}, o = e.pop();
- typeof o == "object" && (a = o, o = e.pop()), uge(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
- let { memoize: s, memoizeOptions: c = [], argsMemoize: l = ez, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
+ typeof o == "object" && (a = o, o = e.pop()), hge(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
+ let { memoize: s, memoizeOptions: c = [], argsMemoize: l = oz, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
...n,
...a
- }, f = ZR(c), p = ZR(u), m = pge(e), h = s(function() {
+ }, f = rz(c), p = rz(u), m = vge(e), h = s(function() {
return t++, o.apply(null, arguments);
}, ...f), g = l(function() {
r++;
- let e = mge(m, arguments);
+ let e = yge(m, arguments);
return i = h.apply(null, e), i;
}, ...p);
return Object.assign(g, {
@@ -49447,14 +49720,14 @@ function vge(e, ...t) {
};
return Object.assign(r, { withTypes: () => r }), r;
}
-var $ = /* @__PURE__ */ vge(ez), yge = Object.assign((e, t = $) => {
- dge(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
+var $ = /* @__PURE__ */ Cge(oz), wge = Object.assign((e, t = $) => {
+ gge(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
let n = Object.keys(e);
return t(n.map((t) => e[t]), (...e) => e.reduce((e, t, r) => (e[n[r]] = t, e), {}));
-}, { withTypes: () => yge });
+}, { withTypes: () => wge });
//#endregion
//#region node_modules/es-toolkit/dist/array/flatten.mjs
-function bge(e, t = 1) {
+function Tge(e, t = 1) {
let n = [], r = Math.floor(t), i = (e, t) => {
for (let a = 0; a < e.length; a++) {
let o = e[a];
@@ -49465,17 +49738,17 @@ function bge(e, t = 1) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs
-function tz(e, t, n) {
- return zR(n) && (typeof t == "number" && OR(n) && WR(t) && t < n.length || typeof t == "string" && t in n) ? RR(n[t], e) : !1;
+function sz(e, t, n) {
+ return GR(n) && (typeof t == "number" && PR(n) && XR(t) && t < n.length || typeof t == "string" && t in n) ? WR(n[t], e) : !1;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs
-function nz(e) {
+function cz(e) {
return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;
}
-var xge = (e, t, n) => {
+var Ege = (e, t, n) => {
if (e !== t) {
- let r = nz(e), i = nz(t);
+ let r = cz(e), i = cz(t);
if (r === i && r === 0) {
if (e < t) return n === "desc" ? 1 : -1;
if (e > t) return n === "desc" ? -1 : 1;
@@ -49483,15 +49756,15 @@ var xge = (e, t, n) => {
return n === "desc" ? i - r : r - i;
}
return 0;
-}, Sge = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Cge = /^\w*$/;
-function wge(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || JL(e) ? !0 : typeof e == "string" && (Cge.test(e) || !Sge.test(e)) || t != null && Object.hasOwn(t, e);
+}, Dge = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Oge = /^\w*$/;
+function kge(e, t) {
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || eR(e) ? !0 : typeof e == "string" && (Oge.test(e) || !Dge.test(e)) || t != null && Object.hasOwn(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs
-function Tge(e, t, n, r) {
+function Age(e, t, n, r) {
if (e == null) return [];
- n = r ? void 0 : n, Array.isArray(e) || (e = OR(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 = PR(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]];
@@ -49499,16 +49772,16 @@ function Tge(e, t, n, r) {
}, a = (e, t) => {
if (e == null) return t;
if (t != null) return typeof e == "object" && "key" in e ? Object.hasOwn(t, e.key) ? t[e.key] : i(t, e.path) : typeof e == "function" ? e(t) : Array.isArray(e) ? i(t, e) : t[e];
- }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || wge(e) ? e : {
+ }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || kge(e) ? e : {
key: e,
- path: XL(e)
+ path: nR(e)
}));
return e.map((e) => ({
original: e,
criteria: o.map((t) => a(t, e))
})).slice().sort((e, t) => {
for (let r = 0; r < o.length; r++) {
- let i = xge(e.criteria[r], t.criteria[r], n[r]);
+ let i = Ege(e.criteria[r], t.criteria[r], n[r]);
if (i !== 0) return i;
}
return 0;
@@ -49516,25 +49789,25 @@ function Tge(e, t, n, r) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs
-function rz(e, ...t) {
+function lz(e, ...t) {
let n = t.length;
- return n > 1 && tz(e, t[0], t[1]) ? t = [] : n > 2 && tz(t[0], t[1], t[2]) && (t = [t[0]]), Tge(e, bge(t), ["asc"]);
+ return n > 1 && sz(e, t[0], t[1]) ? t = [] : n > 2 && sz(t[0], t[1], t[2]) && (t = [t[0]]), Age(e, Tge(t), ["asc"]);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/legendSelectors.js
-var iz = (e) => e.legend.settings, Ege = (e) => e.legend.size, Dge = $([(e) => e.legend.payload, iz], (e, t) => {
+var uz = (e) => e.legend.settings, jge = (e) => e.legend.size, Mge = $([(e) => e.legend.payload, uz], (e, t) => {
var { itemSorter: n } = t, r = e.flat(1);
- return n ? rz(r, n) : r;
+ return n ? lz(r, n) : r;
});
//#endregion
//#region node_modules/recharts/es6/context/legendPayloadContext.js
-function Oge() {
- return Q(Dge);
+function Nge() {
+ return Q(Mge);
}
//#endregion
//#region node_modules/recharts/es6/util/useElementOffset.js
-var az = 1;
-function oz() {
+var dz = 1;
+function fz() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], [t, n] = (0, R.useState)({
height: 0,
left: 0,
@@ -49549,7 +49822,7 @@ function oz() {
top: r.top,
width: r.width
};
- (Math.abs(i.height - t.height) > az || Math.abs(i.left - t.left) > az || Math.abs(i.top - t.top) > az || Math.abs(i.width - t.width) > az) && n({
+ (Math.abs(i.height - t.height) > dz || Math.abs(i.left - t.left) > dz || Math.abs(i.top - t.top) > dz || Math.abs(i.width - t.width) > dz) && n({
height: i.height,
left: i.left,
top: i.top,
@@ -49566,26 +49839,26 @@ function oz() {
}
//#endregion
//#region node_modules/redux/dist/redux.mjs
-function sz(e) {
+function pz(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 cz = typeof Symbol == "function" && Symbol.observable || "@@observable", lz = () => Math.random().toString(36).substring(7).split("").join("."), uz = {
- INIT: `@@redux/INIT${/* @__PURE__ */ lz()}`,
- REPLACE: `@@redux/REPLACE${/* @__PURE__ */ lz()}`,
- PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${lz()}`
+var mz = typeof Symbol == "function" && Symbol.observable || "@@observable", hz = () => Math.random().toString(36).substring(7).split("").join("."), gz = {
+ INIT: `@@redux/INIT${/* @__PURE__ */ hz()}`,
+ REPLACE: `@@redux/REPLACE${/* @__PURE__ */ hz()}`,
+ PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${hz()}`
};
-function dz(e) {
+function _z(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 fz(e, t, n) {
- if (typeof e != "function") throw Error(sz(2));
- if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(sz(0));
+function vz(e, t, n) {
+ if (typeof e != "function") throw Error(pz(2));
+ if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(pz(0));
if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {
- if (typeof n != "function") throw Error(sz(1));
- return n(fz)(e, t);
+ if (typeof n != "function") throw Error(pz(1));
+ return n(vz)(e, t);
}
let r = e, i = t, a = /* @__PURE__ */ new Map(), o = a, s = 0, c = !1;
function l() {
@@ -49594,27 +49867,27 @@ function fz(e, t, n) {
}));
}
function u() {
- if (c) throw Error(sz(3));
+ if (c) throw Error(pz(3));
return i;
}
function d(e) {
- if (typeof e != "function") throw Error(sz(4));
- if (c) throw Error(sz(5));
+ if (typeof e != "function") throw Error(pz(4));
+ if (c) throw Error(pz(5));
let t = !0;
l();
let n = s++;
return o.set(n, e), function() {
if (t) {
- if (c) throw Error(sz(6));
+ if (c) throw Error(pz(6));
t = !1, l(), o.delete(n), a = null;
}
};
}
function f(e) {
- if (!dz(e)) throw Error(sz(7));
- if (e.type === void 0) throw Error(sz(8));
- if (typeof e.type != "string") throw Error(sz(17));
- if (c) throw Error(sz(9));
+ if (!_z(e)) throw Error(pz(7));
+ if (e.type === void 0) throw Error(pz(8));
+ if (typeof e.type != "string") throw Error(pz(17));
+ if (c) throw Error(pz(9));
try {
c = !0, i = r(i, e);
} finally {
@@ -49625,41 +49898,41 @@ function fz(e, t, n) {
}), e;
}
function p(e) {
- if (typeof e != "function") throw Error(sz(10));
- r = e, f({ type: uz.REPLACE });
+ if (typeof e != "function") throw Error(pz(10));
+ r = e, f({ type: gz.REPLACE });
}
function m() {
let e = d;
return {
subscribe(t) {
- if (typeof t != "object" || !t) throw Error(sz(11));
+ if (typeof t != "object" || !t) throw Error(pz(11));
function n() {
let e = t;
e.next && e.next(u());
}
return n(), { unsubscribe: e(n) };
},
- [cz]() {
+ [mz]() {
return this;
}
};
}
- return f({ type: uz.INIT }), {
+ return f({ type: gz.INIT }), {
dispatch: f,
subscribe: d,
getState: u,
replaceReducer: p,
- [cz]: m
+ [mz]: m
};
}
-function kge(e) {
+function Pge(e) {
Object.keys(e).forEach((t) => {
let n = e[t];
- if (n(void 0, { type: uz.INIT }) === void 0) throw Error(sz(12));
- if (n(void 0, { type: uz.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(sz(13));
+ if (n(void 0, { type: gz.INIT }) === void 0) throw Error(pz(12));
+ if (n(void 0, { type: gz.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(pz(13));
});
}
-function pz(e) {
+function yz(e) {
let t = Object.keys(e), n = {};
for (let r = 0; r < t.length; r++) {
let i = t[r];
@@ -49667,7 +49940,7 @@ function pz(e) {
}
let r = Object.keys(n), i;
try {
- kge(n);
+ Pge(n);
} catch (e) {
i = e;
}
@@ -49676,124 +49949,124 @@ function pz(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(sz(14));
+ if (u === void 0) throw t && t.type, Error(pz(14));
o[s] = u, a ||= u !== l;
}
return a ||= r.length !== Object.keys(e).length, a ? o : e;
};
}
-function mz(...e) {
+function bz(...e) {
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
}
-function Age(...e) {
+function Fge(...e) {
return (t) => (n, r) => {
let i = t(n, r), a = () => {
- throw Error(sz(15));
+ throw Error(pz(15));
}, o = {
getState: i.getState,
dispatch: (e, ...t) => a(e, ...t)
};
- return a = mz(...e.map((e) => e(o)))(i.dispatch), {
+ return a = bz(...e.map((e) => e(o)))(i.dispatch), {
...i,
dispatch: a
};
};
}
-function hz(e) {
- return dz(e) && "type" in e && typeof e.type == "string";
+function xz(e) {
+ return _z(e) && "type" in e && typeof e.type == "string";
}
//#endregion
//#region node_modules/@reduxjs/toolkit/node_modules/immer/dist/immer.mjs
-var gz = Symbol.for("immer-nothing"), _z = Symbol.for("immer-draftable"), vz = Symbol.for("immer-state");
-function yz(e, ...t) {
+var Sz = Symbol.for("immer-nothing"), Cz = Symbol.for("immer-draftable"), wz = Symbol.for("immer-state");
+function Tz(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var bz = Object, xz = bz.getPrototypeOf, Sz = "constructor", Cz = "prototype", wz = "configurable", Tz = "enumerable", Ez = "writable", Dz = "value", Oz = (e) => !!e && !!e[vz];
-function kz(e) {
- return e ? jz(e) || Lz(e) || !!e[_z] || !!e[Sz]?.[_z] || Rz(e) || zz(e) : !1;
+var Ez = Object, Dz = Ez.getPrototypeOf, Oz = "constructor", kz = "prototype", Az = "configurable", jz = "enumerable", Mz = "writable", Nz = "value", Pz = (e) => !!e && !!e[wz];
+function Fz(e) {
+ return e ? Lz(e) || Uz(e) || !!e[Cz] || !!e[Oz]?.[Cz] || Wz(e) || Gz(e) : !1;
}
-var jge = bz[Cz][Sz].toString(), Az = /* @__PURE__ */ new WeakMap();
-function jz(e) {
- if (!e || !Bz(e)) return !1;
- let t = xz(e);
- if (t === null || t === bz[Cz]) return !0;
- let n = bz.hasOwnProperty.call(t, Sz) && t[Sz];
+var Ige = Ez[kz][Oz].toString(), Iz = /* @__PURE__ */ new WeakMap();
+function Lz(e) {
+ if (!e || !Kz(e)) return !1;
+ let t = Dz(e);
+ if (t === null || t === Ez[kz]) return !0;
+ let n = Ez.hasOwnProperty.call(t, Oz) && t[Oz];
if (n === Object) return !0;
- if (!Vz(n)) return !1;
- let r = Az.get(n);
- return r === void 0 && (r = Function.toString.call(n), Az.set(n, r)), r === jge;
+ if (!qz(n)) return !1;
+ let r = Iz.get(n);
+ return r === void 0 && (r = Function.toString.call(n), Iz.set(n, r)), r === Ige;
}
-function Mz(e, t, n = !0) {
- Nz(e) === 0 ? (n ? Reflect.ownKeys(e) : bz.keys(e)).forEach((n) => {
+function Rz(e, t, n = !0) {
+ zz(e) === 0 ? (n ? Reflect.ownKeys(e) : Ez.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function Nz(e) {
- let t = e[vz];
- return t ? t.type_ : Lz(e) ? 1 : Rz(e) ? 2 : zz(e) ? 3 : 0;
+function zz(e) {
+ let t = e[wz];
+ return t ? t.type_ : Uz(e) ? 1 : Wz(e) ? 2 : Gz(e) ? 3 : 0;
}
-var Pz = (e, t, n = Nz(e)) => n === 2 ? e.has(t) : bz[Cz].hasOwnProperty.call(e, t), Fz = (e, t, n = Nz(e)) => n === 2 ? e.get(t) : e[t], Iz = (e, t, n, r = Nz(e)) => {
+var Bz = (e, t, n = zz(e)) => n === 2 ? e.has(t) : Ez[kz].hasOwnProperty.call(e, t), Vz = (e, t, n = zz(e)) => n === 2 ? e.get(t) : e[t], Hz = (e, t, n, r = zz(e)) => {
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
};
-function Mge(e, t) {
+function Lge(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-var Lz = Array.isArray, Rz = (e) => e instanceof Map, zz = (e) => e instanceof Set, Bz = (e) => typeof e == "object", Vz = (e) => typeof e == "function", Hz = (e) => typeof e == "boolean";
-function Nge(e) {
+var Uz = Array.isArray, Wz = (e) => e instanceof Map, Gz = (e) => e instanceof Set, Kz = (e) => typeof e == "object", qz = (e) => typeof e == "function", Jz = (e) => typeof e == "boolean";
+function Rge(e) {
let t = +e;
return Number.isInteger(t) && String(t) === e;
}
-var Uz = (e) => e.copy_ || e.base_, Wz = (e) => e.modified_ ? e.copy_ : e.base_;
-function Gz(e, t) {
- if (Rz(e)) return new Map(e);
- if (zz(e)) return new Set(e);
- if (Lz(e)) return Array[Cz].slice.call(e);
- let n = jz(e);
+var Yz = (e) => e.copy_ || e.base_, Xz = (e) => e.modified_ ? e.copy_ : e.base_;
+function Zz(e, t) {
+ if (Wz(e)) return new Map(e);
+ if (Gz(e)) return new Set(e);
+ if (Uz(e)) return Array[kz].slice.call(e);
+ let n = Lz(e);
if (t === !0 || t === "class_only" && !n) {
- let t = bz.getOwnPropertyDescriptors(e);
- delete t[vz];
+ let t = Ez.getOwnPropertyDescriptors(e);
+ delete t[wz];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
- a[Ez] === !1 && (a[Ez] = !0, a[wz] = !0), (a.get || a.set) && (t[i] = {
- [wz]: !0,
- [Ez]: !0,
- [Tz]: a[Tz],
- [Dz]: e[i]
+ a[Mz] === !1 && (a[Mz] = !0, a[Az] = !0), (a.get || a.set) && (t[i] = {
+ [Az]: !0,
+ [Mz]: !0,
+ [jz]: a[jz],
+ [Nz]: e[i]
});
}
- return bz.create(xz(e), t);
+ return Ez.create(Dz(e), t);
}
{
- let t = xz(e);
+ let t = Dz(e);
if (t !== null && n) return { ...e };
- let r = bz.create(t);
- return bz.assign(r, e);
- }
-}
-function Kz(e, t = !1) {
- return Jz(e) || Oz(e) || !kz(e) ? e : (Nz(e) > 1 && bz.defineProperties(e, {
- set: qz,
- add: qz,
- clear: qz,
- delete: qz
- }), bz.freeze(e), t && Mz(e, (e, t) => {
- Kz(t, !0);
+ let r = Ez.create(t);
+ return Ez.assign(r, e);
+ }
+}
+function Qz(e, t = !1) {
+ return eB(e) || Pz(e) || !Fz(e) ? e : (zz(e) > 1 && Ez.defineProperties(e, {
+ set: $z,
+ add: $z,
+ clear: $z,
+ delete: $z
+ }), Ez.freeze(e), t && Rz(e, (e, t) => {
+ Qz(t, !0);
}, !1), e);
}
-function Pge() {
- yz(2);
+function zge() {
+ Tz(2);
}
-var qz = { [Dz]: Pge };
-function Jz(e) {
- return e === null || !Bz(e) || bz.isFrozen(e);
+var $z = { [Nz]: zge };
+function eB(e) {
+ return e === null || !Kz(e) || Ez.isFrozen(e);
}
-var Yz = "MapSet", Xz = "Patches", Zz = "ArrayMethods", Qz = {};
-function $z(e) {
- let t = Qz[e];
- return t || yz(0, e), t;
+var tB = "MapSet", nB = "Patches", rB = "ArrayMethods", iB = {};
+function aB(e) {
+ let t = iB[e];
+ return t || Tz(0, e), t;
}
-var eB = (e) => !!Qz[e], tB, nB = () => tB, Fge = (e, t) => ({
+var oB = (e) => !!iB[e], sB, cB = () => sB, Bge = (e, t) => ({
drafts_: [],
parent_: e,
immer_: t,
@@ -49801,114 +50074,114 @@ var eB = (e) => !!Qz[e], tB, nB = () => tB, Fge = (e, t) => ({
unfinalizedDrafts_: 0,
handledSet_: /* @__PURE__ */ new Set(),
processedForPatches_: /* @__PURE__ */ new Set(),
- mapSetPlugin_: eB(Yz) ? $z(Yz) : void 0,
- arrayMethodsPlugin_: eB(Zz) ? $z(Zz) : void 0
+ mapSetPlugin_: oB(tB) ? aB(tB) : void 0,
+ arrayMethodsPlugin_: oB(rB) ? aB(rB) : void 0
});
-function rB(e, t) {
- t && (e.patchPlugin_ = $z(Xz), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+function lB(e, t) {
+ t && (e.patchPlugin_ = aB(nB), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
-function iB(e) {
- aB(e), e.drafts_.forEach(Ige), e.drafts_ = null;
+function uB(e) {
+ dB(e), e.drafts_.forEach(Vge), e.drafts_ = null;
}
-function aB(e) {
- e === tB && (tB = e.parent_);
+function dB(e) {
+ e === sB && (sB = e.parent_);
}
-var oB = (e) => tB = Fge(tB, e);
-function Ige(e) {
- let t = e[vz];
+var fB = (e) => sB = Bge(sB, e);
+function Vge(e) {
+ let t = e[wz];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function sB(e, t) {
+function pB(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
if (e !== void 0 && e !== n) {
- n[vz].modified_ && (iB(t), yz(4)), kz(e) && (e = cB(t, e));
+ n[wz].modified_ && (uB(t), Tz(4)), Fz(e) && (e = mB(t, e));
let { patchPlugin_: r } = t;
- r && r.generateReplacementPatches_(n[vz].base_, e, t);
- } else e = cB(t, n);
- return Lge(t, e, !0), iB(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === gz ? void 0 : e;
-}
-function cB(e, t) {
- if (Jz(t)) return t;
- let n = t[vz];
- if (!n) return pB(t, e.handledSet_, e);
- if (!uB(n, e)) return t;
+ r && r.generateReplacementPatches_(n[wz].base_, e, t);
+ } else e = mB(t, n);
+ return Hge(t, e, !0), uB(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === Sz ? void 0 : e;
+}
+function mB(e, t) {
+ if (eB(t)) return t;
+ let n = t[wz];
+ if (!n) return yB(t, e.handledSet_, e);
+ if (!gB(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);
- fB(n, e);
+ vB(n, e);
}
return n.copy_;
}
-function Lge(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && Kz(t, n);
+function Hge(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && Qz(t, n);
}
-function lB(e) {
+function hB(e) {
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
}
-var uB = (e, t) => e.scope_ === t, Rge = [];
-function dB(e, t, n, r) {
- let i = Uz(e), a = e.type_;
- if (r !== void 0 && Fz(i, r, a) === t) {
- Iz(i, r, n, a);
+var gB = (e, t) => e.scope_ === t, Uge = [];
+function _B(e, t, n, r) {
+ let i = Yz(e), a = e.type_;
+ if (r !== void 0 && Vz(i, r, a) === t) {
+ Hz(i, r, n, a);
return;
}
if (!e.draftLocations_) {
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
- Mz(i, (e, n) => {
- if (Oz(n)) {
+ Rz(i, (e, n) => {
+ if (Pz(n)) {
let r = t.get(n) || [];
r.push(e), t.set(n, r);
}
});
}
- let o = e.draftLocations_.get(t) ?? Rge;
- for (let e of o) Iz(i, e, n, a);
+ let o = e.draftLocations_.get(t) ?? Uge;
+ for (let e of o) Hz(i, e, n, a);
}
-function zge(e, t, n) {
+function Wge(e, t, n) {
e.callbacks_.push(function(r) {
let i = t;
- if (!i || !uB(i, r)) return;
+ if (!i || !gB(i, r)) return;
r.mapSetPlugin_?.fixSetContents(i);
- let a = Wz(i);
- dB(e, i.draft_ ?? i, a, n), fB(i, r);
+ let a = Xz(i);
+ _B(e, i.draft_ ?? i, a, n), vB(i, r);
});
}
-function fB(e, t) {
+function vB(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);
}
- lB(e);
+ hB(e);
}
}
-function Bge(e, t, n) {
+function Gge(e, t, n) {
let { scope_: r } = e;
- if (Oz(n)) {
- let i = n[vz];
- uB(i, r) && i.callbacks_.push(function() {
- yB(e), dB(e, n, Wz(i), t);
+ if (Pz(n)) {
+ let i = n[wz];
+ gB(i, r) && i.callbacks_.push(function() {
+ TB(e), _B(e, n, Xz(i), t);
});
- } else kz(n) && e.callbacks_.push(function() {
- let i = Uz(e);
- e.type_ === 3 ? i.has(n) && pB(n, r.handledSet_, r) : Fz(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && pB(Fz(e.copy_, t, e.type_), r.handledSet_, r);
+ } else Fz(n) && e.callbacks_.push(function() {
+ let i = Yz(e);
+ e.type_ === 3 ? i.has(n) && yB(n, r.handledSet_, r) : Vz(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && yB(Vz(e.copy_, t, e.type_), r.handledSet_, r);
});
}
-function pB(e, t, n) {
- return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || Oz(e) || t.has(e) || !kz(e) || Jz(e) ? e : (t.add(e), Mz(e, (r, i) => {
- if (Oz(i)) {
- let t = i[vz];
- uB(t, n) && (Iz(e, r, Wz(t), e.type_), lB(t));
- } else kz(i) && pB(i, t, n);
+function yB(e, t, n) {
+ return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || Pz(e) || t.has(e) || !Fz(e) || eB(e) ? e : (t.add(e), Rz(e, (r, i) => {
+ if (Pz(i)) {
+ let t = i[wz];
+ gB(t, n) && (Hz(e, r, Xz(t), e.type_), hB(t));
+ } else Fz(i) && yB(i, t, n);
}), e);
}
-function Vge(e, t) {
- let n = Lz(e), r = {
+function Kge(e, t) {
+ let n = Uz(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : nB(),
+ scope_: t ? t.scope_ : cB(),
modified_: !1,
finalized_: !1,
assigned_: void 0,
@@ -49919,108 +50192,108 @@ function Vge(e, t) {
revoke_: null,
isManual_: !1,
callbacks_: void 0
- }, i = r, a = mB;
- n && (i = [r], a = hB);
+ }, i = r, a = bB;
+ n && (i = [r], a = xB);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, [s, r];
}
-var mB = {
+var bB = {
get(e, t) {
- if (t === vz) return e;
+ if (t === wz) 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 = Uz(e);
- if (!Pz(i, t, e.type_)) return Uge(e, i, t);
+ let i = Yz(e);
+ if (!Bz(i, t, e.type_)) return Jge(e, i, t);
let a = i[t];
- if (e.finalized_ || !kz(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && Nge(t)) return a;
- if (a === gB(e.base_, t) || Hge(e, t, a)) {
- yB(e);
- let n = e.type_ === 1 ? +t : t, r = bB(e.scope_, a, e, n);
+ if (e.finalized_ || !Fz(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && Rge(t)) return a;
+ if (a === SB(e.base_, t) || qge(e, t, a)) {
+ TB(e);
+ let n = e.type_ === 1 ? +t : t, r = EB(e.scope_, a, e, n);
return e.copy_[n] = r;
}
return a;
},
has(e, t) {
- return t in Uz(e);
+ return t in Yz(e);
},
ownKeys(e) {
- return Reflect.ownKeys(Uz(e));
+ return Reflect.ownKeys(Yz(e));
},
set(e, t, n) {
- let r = _B(Uz(e), t);
+ let r = CB(Yz(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = gB(Uz(e), t), i = r?.[vz];
+ let r = SB(Yz(e), t), i = r?.[wz];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
- if (Mge(n, r) && (n !== void 0 || Pz(e.base_, t, e.type_))) return !0;
- yB(e), vB(e);
+ if (Lge(n, r) && (n !== void 0 || Bz(e.base_, t, e.type_))) return !0;
+ TB(e), wB(e);
}
- return e.copy_[t] === n && (n !== void 0 || Pz(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), Bge(e, t, n), !0);
+ return e.copy_[t] === n && (n !== void 0 || Bz(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), Gge(e, t, n), !0);
},
deleteProperty(e, t) {
- return yB(e), gB(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), vB(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
+ return TB(e), SB(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), wB(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = Uz(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = Yz(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
- [Ez]: !0,
- [wz]: e.type_ !== 1 || t !== "length",
- [Tz]: r[Tz],
- [Dz]: n[t]
+ [Mz]: !0,
+ [Az]: e.type_ !== 1 || t !== "length",
+ [jz]: r[jz],
+ [Nz]: n[t]
};
},
defineProperty() {
- yz(11);
+ Tz(11);
},
getPrototypeOf(e) {
- return xz(e.base_);
+ return Dz(e.base_);
},
setPrototypeOf() {
- yz(12);
+ Tz(12);
}
-}, hB = {};
-for (let e in mB) {
- let t = mB[e];
- hB[e] = function() {
+}, xB = {};
+for (let e in bB) {
+ let t = bB[e];
+ xB[e] = function() {
let e = arguments;
return e[0] = e[0][0], t.apply(this, e);
};
}
-hB.deleteProperty = function(e, t) {
- return hB.set.call(this, e, t, void 0);
-}, hB.set = function(e, t, n) {
- return mB.set.call(this, e[0], t, n, e[0]);
+xB.deleteProperty = function(e, t) {
+ return xB.set.call(this, e, t, void 0);
+}, xB.set = function(e, t, n) {
+ return bB.set.call(this, e[0], t, n, e[0]);
};
-function gB(e, t) {
- let n = e[vz];
- return (n ? Uz(n) : e)[t];
+function SB(e, t) {
+ let n = e[wz];
+ return (n ? Yz(n) : e)[t];
}
-function Hge(e, t, n) {
- return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !kz(n) || n[vz] ? !1 : e.baseRefs_.has(n);
+function qge(e, t, n) {
+ return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !Fz(n) || n[wz] ? !1 : e.baseRefs_.has(n);
}
-function Uge(e, t, n) {
- let r = _B(t, n);
- return r ? Dz in r ? r[Dz] : r.get?.call(e.draft_) : void 0;
+function Jge(e, t, n) {
+ let r = CB(t, n);
+ return r ? Nz in r ? r[Nz] : r.get?.call(e.draft_) : void 0;
}
-function _B(e, t) {
+function CB(e, t) {
if (!(t in e)) return;
- let n = xz(e);
+ let n = Dz(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = xz(n);
+ n = Dz(n);
}
}
-function vB(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && vB(e.parent_));
+function wB(e) {
+ e.modified_ || (e.modified_ = !0, e.parent_ && wB(e.parent_));
}
-function yB(e) {
- e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), Gz(e.base_, e.scope_.immer_.useStrictShallowCopy_));
+function TB(e) {
+ e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), Zz(e.base_, e.scope_.immer_.useStrictShallowCopy_));
}
-var Wge = class {
+var Yge = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
- if (Vz(e) && !Vz(t)) {
+ if (qz(e) && !qz(t)) {
let n = t;
t = e;
let r = this;
@@ -50028,30 +50301,30 @@ var Wge = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- Vz(t) || yz(6), n !== void 0 && !Vz(n) && yz(7);
+ qz(t) || Tz(6), n !== void 0 && !qz(n) && Tz(7);
let r;
- if (kz(e)) {
- let i = oB(this), a = bB(i, e, void 0), o = !0;
+ if (Fz(e)) {
+ let i = fB(this), a = EB(i, e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? iB(i) : aB(i);
+ o ? uB(i) : dB(i);
}
- return rB(i, n), sB(r, i);
+ return lB(i, n), pB(r, i);
}
- if (!e || !Bz(e)) {
- if (r = t(e), r === void 0 && (r = e), r === gz && (r = void 0), this.autoFreeze_ && Kz(r, !0), n) {
+ if (!e || !Kz(e)) {
+ if (r = t(e), r === void 0 && (r = e), r === Sz && (r = void 0), this.autoFreeze_ && Qz(r, !0), n) {
let t = [], i = [];
- $z(Xz).generateReplacementPatches_(e, r, {
+ aB(nB).generateReplacementPatches_(e, r, {
patches_: t,
inversePatches_: i
}), n(t, i);
}
return r;
}
- yz(1, e);
+ Tz(1, e);
}, this.produceWithPatches = (e, t) => {
- if (Vz(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
+ if (qz(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
return [
this.produce(e, t, (e, t) => {
@@ -50060,18 +50333,18 @@ var Wge = class {
n,
r
];
- }, Hz(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), Hz(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), Hz(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
+ }, Jz(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), Jz(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), Jz(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- kz(e) || yz(8), Oz(e) && (e = xB(e));
- let t = oB(this), n = bB(t, e, void 0);
- return n[vz].isManual_ = !0, aB(t), n;
+ Fz(e) || Tz(8), Pz(e) && (e = DB(e));
+ let t = fB(this), n = EB(t, e, void 0);
+ return n[wz].isManual_ = !0, dB(t), n;
}
finishDraft(e, t) {
- let n = e && e[vz];
- (!n || !n.isManual_) && yz(9);
+ let n = e && e[wz];
+ (!n || !n.isManual_) && Tz(9);
let { scope_: r } = n;
- return rB(r, t), sB(void 0, r);
+ return lB(r, t), pB(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -50095,48 +50368,48 @@ var Wge = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = $z(Xz).applyPatches_;
- return Oz(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = aB(nB).applyPatches_;
+ return Pz(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function bB(e, t, n, r) {
- let [i, a] = Rz(t) ? $z(Yz).proxyMap_(t, n) : zz(t) ? $z(Yz).proxySet_(t, n) : Vge(t, n);
- return (n?.scope_ ?? nB()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? zge(n, a, r) : a.callbacks_.push(function(e) {
+function EB(e, t, n, r) {
+ let [i, a] = Wz(t) ? aB(tB).proxyMap_(t, n) : Gz(t) ? aB(tB).proxySet_(t, n) : Kge(t, n);
+ return (n?.scope_ ?? cB()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? Wge(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 xB(e) {
- return Oz(e) || yz(10, e), SB(e);
+function DB(e) {
+ return Pz(e) || Tz(10, e), OB(e);
}
-function SB(e) {
- if (!kz(e) || Jz(e)) return e;
- let t = e[vz], n, r = !0;
+function OB(e) {
+ if (!Fz(e) || eB(e)) return e;
+ let t = e[wz], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = Gz(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = Gz(e, !0);
- return Mz(n, (e, t) => {
- Iz(n, e, SB(t));
+ t.finalized_ = !0, n = Zz(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = Zz(e, !0);
+ return Rz(n, (e, t) => {
+ Hz(n, e, OB(t));
}, r), t && (t.finalized_ = !1), n;
}
globalThis.Iterator?.from;
-var CB = new Wge().produce;
+var kB = new Yge().produce;
//#endregion
//#region node_modules/redux-thunk/dist/redux-thunk.mjs
-function wB(e) {
+function AB(e) {
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
}
-var Gge = wB(), Kge = wB, qge = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
- if (arguments.length !== 0) return typeof arguments[0] == "object" ? mz : mz.apply(null, arguments);
+var Xge = AB(), Zge = AB, Qge = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
+ if (arguments.length !== 0) return typeof arguments[0] == "object" ? bz : bz.apply(null, arguments);
};
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
-function TB(e, t) {
+function jB(e, t) {
function n(...n) {
if (t) {
let r = t(...n);
- if (!r) throw Error(oV(0));
+ if (!r) throw Error(fV(0));
return {
type: e,
payload: r.payload,
@@ -50149,9 +50422,9 @@ function TB(e, t) {
payload: n[0]
};
}
- return n.toString = () => `${e}`, n.type = e, n.match = (t) => hz(t) && t.type === e, n;
+ return n.toString = () => `${e}`, n.type = e, n.match = (t) => xz(t) && t.type === e, n;
}
-var EB = class e extends Array {
+var MB = class e extends Array {
constructor(...t) {
super(...t), Object.setPrototypeOf(this, e.prototype);
}
@@ -50165,29 +50438,29 @@ var EB = class e extends Array {
return t.length === 1 && Array.isArray(t[0]) ? new e(...t[0].concat(this)) : new e(...t.concat(this));
}
};
-function DB(e) {
- return kz(e) ? CB(e, () => {}) : e;
+function NB(e) {
+ return Fz(e) ? kB(e, () => {}) : e;
}
-function OB(e, t, n) {
+function PB(e, t, n) {
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
}
-function Jge(e) {
+function $ge(e) {
return typeof e == "boolean";
}
-var Yge = () => function(e) {
- let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new EB();
- return t && (Jge(t) ? a.push(Gge) : a.push(Kge(t.extraArgument))), a;
-}, kB = "RTK_autoBatch", AB = () => (e) => ({
+var e_e = () => function(e) {
+ let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new MB();
+ return t && ($ge(t) ? a.push(Xge) : a.push(Zge(t.extraArgument))), a;
+}, FB = "RTK_autoBatch", IB = () => (e) => ({
payload: e,
- meta: { [kB]: !0 }
-}), jB = (e) => (t) => {
+ meta: { [FB]: !0 }
+}), LB = (e) => (t) => {
setTimeout(t, e);
-}, Xge = (e, t) => (n) => {
+}, t_e = (e, t) => (n) => {
let r = !1, i = () => {
r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());
}, a = e(i), o = setTimeout(i, t);
-}, MB = (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 ? Xge(window.requestAnimationFrame, 100) : jB(10) : e.type === "callback" ? e.queueNotification : jB(e.timeout), l = () => {
+}, RB = (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 ? t_e(window.requestAnimationFrame, 100) : LB(10) : e.type === "callback" ? e.queueNotification : LB(e.timeout), l = () => {
o = !1, a && (a = !1, s.forEach((e) => e()));
};
return Object.assign({}, r, {
@@ -50199,37 +50472,37 @@ var Yge = () => function(e) {
},
dispatch(e) {
try {
- return i = !e?.meta?.[kB], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
+ return i = !e?.meta?.[FB], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
} finally {
i = !0;
}
}
});
-}, Zge = (e) => function(t) {
- let { autoBatch: n = !0 } = t ?? {}, r = new EB(e);
- return n && r.push(MB(typeof n == "object" ? n : void 0)), r;
+}, n_e = (e) => function(t) {
+ let { autoBatch: n = !0 } = t ?? {}, r = new MB(e);
+ return n && r.push(RB(typeof n == "object" ? n : void 0)), r;
};
-function Qge(e) {
- let t = Yge(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
+function r_e(e) {
+ let t = e_e(), { 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 (dz(n)) c = pz(n);
- else throw Error(oV(1));
+ else if (_z(n)) c = yz(n);
+ else throw Error(fV(1));
let l;
l = typeof r == "function" ? r(t) : t();
- let u = mz;
- i && (u = qge({
+ let u = bz;
+ i && (u = Qge({
trace: !1,
...typeof i == "object" && i
}));
- let d = Zge(Age(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
- return fz(c, o, p);
+ let d = n_e(Fge(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
+ return vz(c, o, p);
}
-function NB(e) {
+function zB(e) {
let t = {}, n = [], r, i = {
addCase(e, n) {
let r = typeof e == "string" ? e : e.type;
- if (!r) throw Error(oV(28));
- if (r in t) throw Error(oV(29));
+ if (!r) throw Error(fV(28));
+ if (r in t) throw Error(fV(29));
return t[r] = n, i;
},
addAsyncThunk(e, r) {
@@ -50254,25 +50527,25 @@ function NB(e) {
r
];
}
-function $ge(e) {
+function i_e(e) {
return typeof e == "function";
}
-function e_e(e, t) {
- let [n, r, i] = NB(t), a;
- if ($ge(e)) a = () => DB(e());
+function a_e(e, t) {
+ let [n, r, i] = zB(t), a;
+ if (i_e(e)) a = () => NB(e());
else {
- let t = DB(e);
+ let t = NB(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 (Oz(e)) {
+ if (Pz(e)) {
let r = n(e, t);
return r === void 0 ? e : r;
}
- if (kz(e)) return CB(e, (e) => n(e, t));
+ if (Fz(e)) return kB(e, (e) => n(e, t));
{
let r = n(e, t);
if (r === void 0) {
@@ -50287,20 +50560,20 @@ function e_e(e, t) {
}
return o.getInitialState = a, o;
}
-var t_e = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", n_e = (e = 21) => {
+var o_e = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", s_e = (e = 21) => {
let t = "", n = e;
- for (; n--;) t += t_e[Math.random() * 64 | 0];
+ for (; n--;) t += o_e[Math.random() * 64 | 0];
return t;
-}, r_e = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
-function i_e(e, t) {
+}, c_e = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
+function l_e(e, t) {
return `${e}/${t}`;
}
-function a_e({ creators: e } = {}) {
- let t = e?.asyncThunk?.[r_e];
+function u_e({ creators: e } = {}) {
+ let t = e?.asyncThunk?.[c_e];
return function(e) {
let { name: n, reducerPath: r = n } = e;
- if (!n) throw Error(oV(11));
- let i = (typeof e.reducers == "function" ? e.reducers(s_e()) : e.reducers) || {}, a = Object.keys(i), o = {
+ if (!n) throw Error(fV(11));
+ let i = (typeof e.reducers == "function" ? e.reducers(f_e()) : e.reducers) || {}, a = Object.keys(i), o = {
sliceCaseReducersByName: {},
sliceCaseReducersByType: {},
actionCreators: {},
@@ -50308,8 +50581,8 @@ function a_e({ creators: e } = {}) {
}, s = {
addCase(e, t) {
let n = typeof e == "string" ? e : e.type;
- if (!n) throw Error(oV(12));
- if (n in o.sliceCaseReducersByType) throw Error(oV(13));
+ if (!n) throw Error(fV(12));
+ if (n in o.sliceCaseReducersByType) throw Error(fV(13));
return o.sliceCaseReducersByType[n] = t, s;
},
addMatcher(e, t) {
@@ -50328,17 +50601,17 @@ function a_e({ creators: e } = {}) {
a.forEach((r) => {
let a = i[r], o = {
reducerName: r,
- type: i_e(n, r),
+ type: l_e(n, r),
createNotation: typeof e.reducers == "function"
};
- l_e(a) ? d_e(o, a, s, t) : c_e(o, a, s);
+ m_e(a) ? g_e(o, a, s, t) : p_e(o, a, s);
});
function c() {
- let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? NB(e.extraReducers) : [e.extraReducers], i = {
+ let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? zB(e.extraReducers) : [e.extraReducers], i = {
...t,
...o.sliceCaseReducersByType
};
- return e_e(e.initialState, (e) => {
+ return a_e(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);
@@ -50355,12 +50628,12 @@ function a_e({ creators: e } = {}) {
function h(t, n = !1) {
function r(e) {
let i = e[t];
- return i === void 0 && n && (i = OB(d, r, m)), i;
+ return i === void 0 && n && (i = PB(d, r, m)), i;
}
function i(t = l) {
- return OB(OB(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
+ return PB(PB(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
let r = {};
- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = o_e(a, t, () => OB(d, t, m), n);
+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = d_e(a, t, () => PB(d, t, m), n);
return r;
});
}
@@ -50394,15 +50667,15 @@ function a_e({ creators: e } = {}) {
return g;
};
}
-function o_e(e, t, n, r) {
+function d_e(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 PB = /* @__PURE__ */ a_e();
-function s_e() {
+var BB = /* @__PURE__ */ u_e();
+function f_e() {
function e(e, t) {
return {
_reducerDefinitionType: "asyncThunk",
@@ -50426,57 +50699,57 @@ function s_e() {
asyncThunk: e
};
}
-function c_e({ type: e, reducerName: t, createNotation: n }, r, i) {
+function p_e({ type: e, reducerName: t, createNotation: n }, r, i) {
let a, o;
if ("reducer" in r) {
- if (n && !u_e(r)) throw Error(oV(17));
+ if (n && !h_e(r)) throw Error(fV(17));
a = r.reducer, o = r.prepare;
} else a = r;
- i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? TB(e, o) : TB(e));
+ i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? jB(e, o) : jB(e));
}
-function l_e(e) {
+function m_e(e) {
return e._reducerDefinitionType === "asyncThunk";
}
-function u_e(e) {
+function h_e(e) {
return e._reducerDefinitionType === "reducerWithPrepare";
}
-function d_e({ type: e, reducerName: t }, n, r, i) {
- if (!i) throw Error(oV(18));
+function g_e({ type: e, reducerName: t }, n, r, i) {
+ if (!i) throw Error(fV(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 || FB,
- pending: s || FB,
- rejected: c || FB,
- settled: l || FB
+ fulfilled: o || VB,
+ pending: s || VB,
+ rejected: c || VB,
+ settled: l || VB
});
}
-function FB() {}
-var f_e = "task", IB = "listener", LB = "completed", RB = "cancelled", p_e = `task-${RB}`, m_e = `task-${LB}`, zB = `${IB}-${RB}`, h_e = `${IB}-${LB}`, BB = class {
+function VB() {}
+var __e = "task", HB = "listener", UB = "completed", WB = "cancelled", v_e = `task-${WB}`, y_e = `task-${UB}`, GB = `${HB}-${WB}`, b_e = `${HB}-${UB}`, KB = class {
constructor(e) {
- this.code = e, this.message = `${f_e} ${RB} (reason: ${e})`;
+ this.code = e, this.message = `${__e} ${WB} (reason: ${e})`;
}
code;
name = "TaskAbortError";
message;
-}, VB = (e, t) => {
- if (typeof e != "function") throw TypeError(oV(32));
-}, HB = () => {}, UB = (e, t = HB) => (e.catch(t), e), WB = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), GB = (e) => {
- if (e.aborted) throw new BB(e.reason);
+}, qB = (e, t) => {
+ if (typeof e != "function") throw TypeError(fV(32));
+}, JB = () => {}, YB = (e, t = JB) => (e.catch(t), e), XB = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), ZB = (e) => {
+ if (e.aborted) throw new KB(e.reason);
};
-function KB(e, t) {
- let n = HB;
+function QB(e, t) {
+ let n = JB;
return new Promise((r, i) => {
- let a = () => i(new BB(e.reason));
+ let a = () => i(new KB(e.reason));
if (e.aborted) {
a();
return;
}
- n = WB(e, a), t.finally(() => n()).then(r, i);
+ n = XB(e, a), t.finally(() => n()).then(r, i);
}).finally(() => {
- n = HB;
+ n = JB;
});
}
-var g_e = async (e, t) => {
+var x_e = async (e, t) => {
try {
return await Promise.resolve(), {
status: "ok",
@@ -50484,40 +50757,40 @@ var g_e = async (e, t) => {
};
} catch (e) {
return {
- status: e instanceof BB ? "cancelled" : "rejected",
+ status: e instanceof KB ? "cancelled" : "rejected",
error: e
};
} finally {
t?.();
}
-}, qB = (e) => (t) => UB(KB(e, t).then((t) => (GB(e), t))), JB = (e) => {
- let t = qB(e);
+}, $B = (e) => (t) => YB(QB(e, t).then((t) => (ZB(e), t))), eV = (e) => {
+ let t = $B(e);
return (e) => t(new Promise((t) => setTimeout(t, e)));
-}, { assign: YB } = Object, XB = {}, ZB = "listenerMiddleware", __e = (e, t) => {
- let n = (t) => WB(e, () => t.abort(e.reason));
+}, { assign: tV } = Object, nV = {}, rV = "listenerMiddleware", S_e = (e, t) => {
+ let n = (t) => XB(e, () => t.abort(e.reason));
return (r, i) => {
- VB(r, "taskExecutor");
+ qB(r, "taskExecutor");
let a = new AbortController();
n(a);
- let o = g_e(async () => {
- GB(e), GB(a.signal);
+ let o = x_e(async () => {
+ ZB(e), ZB(a.signal);
let t = await r({
- pause: qB(a.signal),
- delay: JB(a.signal),
+ pause: $B(a.signal),
+ delay: eV(a.signal),
signal: a.signal
});
- return GB(a.signal), t;
- }, () => a.abort(m_e));
- return i?.autoJoin && t.push(o.catch(HB)), {
- result: qB(e)(o),
+ return ZB(a.signal), t;
+ }, () => a.abort(y_e));
+ return i?.autoJoin && t.push(o.catch(JB)), {
+ result: $B(e)(o),
cancel() {
- a.abort(p_e);
+ a.abort(v_e);
}
};
};
-}, v_e = (e, t) => {
+}, C_e = (e, t) => {
let n = async (n, r) => {
- GB(t);
+ ZB(t);
let i = () => {}, a = [new Promise((t, r) => {
let a = e({
predicate: n,
@@ -50535,47 +50808,47 @@ var g_e = async (e, t) => {
})];
r != null && a.push(new Promise((e) => setTimeout(e, r, null)));
try {
- let e = await KB(t, Promise.race(a));
- return GB(t), e;
+ let e = await QB(t, Promise.race(a));
+ return ZB(t), e;
} finally {
i();
}
};
- return ((e, t) => UB(n(e, t)));
-}, QB = (e) => {
+ return ((e, t) => YB(n(e, t)));
+}, iV = (e) => {
let { type: t, actionCreator: n, matcher: r, predicate: i, effect: a } = e;
- if (t) i = TB(t).match;
+ if (t) i = jB(t).match;
else if (n) t = n.type, i = n.match;
else if (r) i = r;
- else if (!i) throw Error(oV(21));
- return VB(a, "options.listener"), {
+ else if (!i) throw Error(fV(21));
+ return qB(a, "options.listener"), {
predicate: i,
type: t,
effect: a
};
-}, $B = /* @__PURE__ */ YB((e) => {
- let { type: t, predicate: n, effect: r } = QB(e);
+}, aV = /* @__PURE__ */ tV((e) => {
+ let { type: t, predicate: n, effect: r } = iV(e);
return {
- id: n_e(),
+ id: s_e(),
effect: r,
type: t,
predicate: n,
pending: /* @__PURE__ */ new Set(),
unsubscribe: () => {
- throw Error(oV(22));
+ throw Error(fV(22));
}
};
-}, { withTypes: () => $B }), eV = (e, t) => {
- let { type: n, effect: r, predicate: i } = QB(t);
+}, { withTypes: () => aV }), oV = (e, t) => {
+ let { type: n, effect: r, predicate: i } = iV(t);
return Array.from(e.values()).find((e) => (typeof n == "string" ? e.type === n : e.predicate === i) && e.effect === r);
-}, tV = (e) => {
+}, sV = (e) => {
e.pending.forEach((e) => {
- e.abort(zB);
+ e.abort(GB);
});
-}, y_e = (e, t) => () => {
- for (let e of t.keys()) tV(e);
+}, w_e = (e, t) => () => {
+ for (let e of t.keys()) sV(e);
e.clear();
-}, nV = (e, t, n) => {
+}, cV = (e, t, n) => {
try {
e(t, n);
} catch (e) {
@@ -50583,74 +50856,74 @@ var g_e = async (e, t) => {
throw e;
}, 0);
}
-}, rV = /* @__PURE__ */ YB(/* @__PURE__ */ TB(`${ZB}/add`), { withTypes: () => rV }), b_e = /* @__PURE__ */ TB(`${ZB}/removeAll`), iV = /* @__PURE__ */ YB(/* @__PURE__ */ TB(`${ZB}/remove`), { withTypes: () => iV }), x_e = (...e) => {
- console.error(`${ZB}/error`, ...e);
-}, aV = (e = {}) => {
+}, lV = /* @__PURE__ */ tV(/* @__PURE__ */ jB(`${rV}/add`), { withTypes: () => lV }), T_e = /* @__PURE__ */ jB(`${rV}/removeAll`), uV = /* @__PURE__ */ tV(/* @__PURE__ */ jB(`${rV}/remove`), { withTypes: () => uV }), E_e = (...e) => {
+ console.error(`${rV}/error`, ...e);
+}, dV = (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 = x_e } = e;
- VB(o, "onError");
+ }, { extra: a, onError: o = E_e } = e;
+ qB(o, "onError");
let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {
- e.unsubscribe(), t?.cancelActive && tV(e);
+ e.unsubscribe(), t?.cancelActive && sV(e);
}), c = ((e) => {
- let n = eV(t, e) ?? $B(e);
+ let n = oV(t, e) ?? aV(e);
return s(n);
});
- YB(c, { withTypes: () => c });
+ tV(c, { withTypes: () => c });
let l = (e) => {
- let n = eV(t, e);
- return n && (n.unsubscribe(), e.cancelActive && tV(n)), !!n;
+ let n = oV(t, e);
+ return n && (n.unsubscribe(), e.cancelActive && sV(n)), !!n;
};
- YB(l, { withTypes: () => l });
+ tV(l, { withTypes: () => l });
let u = async (e, n, s, l) => {
- let u = new AbortController(), d = v_e(c, u.signal), f = [];
+ let u = new AbortController(), d = C_e(c, u.signal), f = [];
try {
- e.pending.add(u), r(e), await Promise.resolve(e.effect(n, YB({}, s, {
+ e.pending.add(u), r(e), await Promise.resolve(e.effect(n, tV({}, s, {
getOriginalState: l,
condition: (e, t) => d(e, t).then(Boolean),
take: d,
- delay: JB(u.signal),
- pause: qB(u.signal),
+ delay: eV(u.signal),
+ pause: $B(u.signal),
extra: a,
signal: u.signal,
- fork: __e(u.signal, f),
+ fork: S_e(u.signal, f),
unsubscribe: e.unsubscribe,
subscribe: () => {
t.set(e.id, e);
},
cancelActiveListeners: () => {
e.pending.forEach((e, t, n) => {
- e !== u && (e.abort(zB), n.delete(e));
+ e !== u && (e.abort(GB), n.delete(e));
});
},
cancel: () => {
- u.abort(zB), e.pending.delete(u);
+ u.abort(GB), e.pending.delete(u);
},
throwIfCancelled: () => {
- GB(u.signal);
+ ZB(u.signal);
}
})));
} catch (e) {
- e instanceof BB || nV(o, e, { raisedBy: "effect" });
+ e instanceof KB || cV(o, e, { raisedBy: "effect" });
} finally {
- await Promise.all(f), u.abort(h_e), i(e), e.pending.delete(u);
+ await Promise.all(f), u.abort(b_e), i(e), e.pending.delete(u);
}
- }, d = y_e(t, n);
+ }, d = w_e(t, n);
return {
middleware: (e) => (n) => (r) => {
- if (!hz(r)) return n(r);
- if (rV.match(r)) return c(r.payload);
- if (b_e.match(r)) {
+ if (!xz(r)) return n(r);
+ if (lV.match(r)) return c(r.payload);
+ if (T_e.match(r)) {
d();
return;
}
- if (iV.match(r)) return l(r.payload);
+ if (uV.match(r)) return l(r.payload);
let i = e.getState(), a = () => {
- if (i === XB) throw Error(oV(23));
+ if (i === nV) throw Error(fV(23));
return i;
}, s;
try {
@@ -50661,13 +50934,13 @@ var g_e = async (e, t) => {
try {
s = t.predicate(r, n, i);
} catch (e) {
- s = !1, nV(o, e, { raisedBy: "predicate" });
+ s = !1, cV(o, e, { raisedBy: "predicate" });
}
s && u(t, r, e, a);
}
}
} finally {
- i = XB;
+ i = nV;
}
return s;
},
@@ -50676,12 +50949,12 @@ var g_e = async (e, t) => {
clearListeners: d
};
};
-function oV(e) {
+function fV(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 sV = PB({
+var pV = BB({
name: "chartLayout",
initialState: {
layoutType: "horizontal",
@@ -50709,23 +50982,23 @@ var sV = PB({
e.scale = t.payload;
}
}
-}), { setMargin: S_e, setLayout: C_e, setChartSize: w_e, setScale: T_e } = sV.actions, E_e = sV.reducer;
+}), { setMargin: D_e, setLayout: O_e, setChartSize: k_e, setScale: A_e } = pV.actions, j_e = pV.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getSliced.js
-function cV(e, t, n) {
+function mV(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 lV(e) {
+function hV(e) {
return Number.isFinite(e);
}
-function uV(e) {
+function gV(e) {
return typeof e == "number" && e > 0 && Number.isFinite(e);
}
//#endregion
//#region node_modules/recharts/es6/util/ChartUtils.js
-function dV(e, t) {
+function _V(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50735,30 +51008,30 @@ function dV(e, t) {
}
return n;
}
-function fV(e) {
+function vV(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? dV(Object(n), !0).forEach(function(t) {
- D_e(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dV(Object(n)).forEach(function(t) {
+ t % 2 ? _V(Object(n), !0).forEach(function(t) {
+ yV(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _V(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function D_e(e, t, n) {
- return (t = O_e(t)) in e ? Object.defineProperty(e, t, {
+function yV(e, t, n) {
+ return (t = bV(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function O_e(e) {
- var t = k_e(e, "string");
+function bV(e) {
+ var t = xV(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function k_e(e, t) {
+function xV(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50768,63 +51041,63 @@ function k_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function pV(e, t, n) {
- return lR(e) || lR(t) ? n : rR(t) ? ZL(e, t, n) : typeof t == "function" ? t(e) : n;
+function SV(e, t, n) {
+ return hR(e) || hR(t) ? n : lR(t) ? rR(e, t, n) : typeof t == "function" ? t(e) : n;
}
-var A_e = (e, t, n) => {
+var CV = (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 fV(fV({}, e), {}, { [a]: e[a] + (r || 0) });
- if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return fV(fV({}, e), {}, { [o]: e[o] + (i || 0) });
+ if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return vV(vV({}, e), {}, { [a]: e[a] + (r || 0) });
+ if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return vV(vV({}, e), {}, { [o]: e[o] + (i || 0) });
}
return e;
-}, mV = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", hV = (e, t, n, r) => {
+}, wV = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", TV = (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;
-}, gV = (e, t, n) => {
+}, EV = (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 ? eR(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
+ return h = p === "angleAxis" && a && a.length >= 2 ? oR(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 lV(i) ? {
+ return hV(i) ? {
coordinate: i + h,
value: e,
offset: h,
index: t
} : null;
- }).filter(dR) : c && l ? l.map((e, t) => {
+ }).filter(_R) : c && l ? l.map((e, t) => {
var n = o.map(e);
- return lV(n) ? {
+ return hV(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(dR) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
+ }).filter(_R) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
var n = o.map(e);
- return lV(n) ? {
+ return hV(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(dR) : o.domain().map((e, t) => {
+ }).filter(_R) : o.domain().map((e, t) => {
var n = o.map(e);
- return lV(n) ? {
+ return hV(n) ? {
coordinate: n + h,
value: r ? r[e] : e,
index: t,
offset: h
} : null;
- }).filter(dR);
-}, _V = (e, t) => {
+ }).filter(_R);
+}, DV = (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;
-}, vV = {
+}, OV = {
sign: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -50832,16 +51105,16 @@ var A_e = (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 = tR(c) ? l : c;
+ var c = s[1], l = s[0], u = sR(c) ? l : c;
u >= 0 ? (s[0] = i, i += u, s[1] = i) : (s[0] = a, a += u, s[1] = a);
}
}
}
},
- expand: Hme,
- none: UL,
- silhouette: Ume,
- wiggle: Wme,
+ expand: qme,
+ none: YL,
+ silhouette: Jme,
+ wiggle: Yme,
positive: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -50849,70 +51122,70 @@ var A_e = (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 = tR(o[1]) ? o[0] : o[1];
+ var s = sR(o[1]) ? o[0] : o[1];
s >= 0 ? (o[0] = i, i += s, o[1] = i) : (o[0] = 0, o[1] = 0);
}
}
}
}
-}, yV = (e, t, n) => {
- var r = vV[n] ?? UL, i = Vme().keys(t).value((e, t) => Number(pV(e, t, 0))).order(WL).offset(r)(e);
+}, kV = (e, t, n) => {
+ var r = OV[n] ?? YL, i = Kme().keys(t).value((e, t) => Number(SV(e, t, 0))).order(XL).offset(r)(e);
return i.forEach((n, r) => {
n.forEach((n, i) => {
- var a = pV(e[i], t[r], 0);
+ var a = SV(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 bV(e) {
+function AV(e) {
return e == null ? void 0 : String(e);
}
-function xV(e) {
+function jV(e) {
var { axis: t, ticks: n, bandSize: r, entry: i, index: a, dataKey: o } = e;
if (t.type === "category") {
- if (!t.allowDuplicatedCategory && t.dataKey && !lR(i[t.dataKey])) {
- var s = cR(n, "value", i[t.dataKey]);
+ if (!t.allowDuplicatedCategory && t.dataKey && !hR(i[t.dataKey])) {
+ var s = mR(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 = pV(i, lR(o) ? t.dataKey : o), l = t.scale.map(c);
+ var c = SV(i, hR(o) ? t.dataKey : o), l = t.scale.map(c);
return Z(l) ? l : null;
}
-var SV = (e) => {
+var MV = (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 = pV(a, t.dataKey, t.scale.domain()[o]);
- if (lR(s)) return null;
+ var s = SV(a, t.dataKey, t.scale.domain()[o]);
+ if (hR(s)) return null;
var c = t.scale.map(s);
return Z(c) ? c - i / 2 + r : null;
-}, CV = (e) => {
+}, NV = (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];
-}, wV = (e) => {
+}, PV = (e) => {
var t = e.flat(2).filter(Z);
return [Math.min(...t), Math.max(...t)];
-}, TV = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], EV = (e, t, n) => {
- if (e != null) return TV(Object.keys(e).reduce((r, i) => {
+}, FV = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], IV = (e, t, n) => {
+ if (e != null) return FV(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 = wV(cV(r, t, n));
- return !lV(i[0]) || !lV(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
+ var i = PV(mV(r, t, n));
+ return !hV(i[0]) || !hV(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]));
-}, DV = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, OV = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, kV = (e, t, n) => {
+}, LV = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, RV = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, zV = (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 = rz(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {
+ for (var i = lz(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);
}
@@ -50920,26 +51193,26 @@ var SV = (e) => {
}
return n ? void 0 : 0;
};
-function AV(e) {
+function BV(e) {
var { tooltipEntrySettings: t, dataKey: n, payload: r, value: i, name: a } = e;
- return fV(fV({}, t), {}, {
+ return vV(vV({}, t), {}, {
dataKey: n,
payload: r,
value: i,
name: a
});
}
-function jV(e, t) {
+function VV(e, t) {
if (e) return String(e);
if (typeof t == "string") return t;
}
-var MV = (e, t) => {
+var HV = (e, t) => {
if (t === "horizontal") return e.relativeX;
if (t === "vertical") return e.relativeY;
-}, NV = (e, t) => t === "centric" ? e.angle : e.radius, PV = (e) => e.layout.width, FV = (e) => e.layout.height, IV = (e) => e.layout.scale, LV = (e) => e.layout.margin, RV = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), zV = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), BV = "data-recharts-item-index";
+}, UV = (e, t) => t === "centric" ? e.angle : e.radius, WV = (e) => e.layout.width, GV = (e) => e.layout.height, KV = (e) => e.layout.scale, qV = (e) => e.layout.margin, JV = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), YV = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), XV = "data-recharts-item-index";
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js
-function VV(e, t) {
+function ZV(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50949,30 +51222,30 @@ function VV(e, t) {
}
return n;
}
-function HV(e) {
+function QV(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? VV(Object(n), !0).forEach(function(t) {
- UV(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : VV(Object(n)).forEach(function(t) {
+ t % 2 ? ZV(Object(n), !0).forEach(function(t) {
+ $V(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ZV(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function UV(e, t, n) {
- return (t = WV(t)) in e ? Object.defineProperty(e, t, {
+function $V(e, t, n) {
+ return (t = eH(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function WV(e) {
- var t = GV(e, "string");
+function eH(e) {
+ var t = tH(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function GV(e, t) {
+function tH(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50982,58 +51255,58 @@ function GV(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var KV = (e) => e.brush.height;
-function qV(e) {
- return zV(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+var nH = (e) => e.brush.height;
+function rH(e) {
+ return YV(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
-function JV(e) {
- return zV(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+function iH(e) {
+ return YV(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
-function YV(e) {
- return RV(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
+function aH(e) {
+ return JV(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
-function XV(e) {
- return RV(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
+function oH(e) {
+ return JV(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
-var ZV = $([
- PV,
- FV,
- LV,
- KV,
+var sH = $([
+ WV,
+ GV,
qV,
- JV,
- YV,
- XV,
- iz,
- Ege
+ nH,
+ rH,
+ iH,
+ aH,
+ oH,
+ uz,
+ jge
], (e, t, n, r, i, a, o, s, c, l) => {
var u = {
left: (n.left || 0) + i,
right: (n.right || 0) + a
- }, d = HV(HV({}, {
+ }, d = QV(QV({}, {
top: (n.top || 0) + o,
bottom: (n.bottom || 0) + s
}), u), f = d.bottom;
- d.bottom += r, d = A_e(d, c, l);
+ d.bottom += r, d = CV(d, c, l);
var p = e - d.left - d.right, m = t - d.top - d.bottom;
- return HV(HV({ brushBottom: f }, d), {}, {
+ return QV(QV({ brushBottom: f }, d), {}, {
width: Math.max(p, 0),
height: Math.max(m, 0)
});
-}), QV = $(ZV, (e) => ({
+}), cH = $(sH, (e) => ({
x: e.left,
y: e.top,
width: e.width,
height: e.height
-})), $V = $(PV, FV, (e, t) => ({
+})), lH = $(WV, GV, (e, t) => ({
x: 0,
y: 0,
width: e,
height: t
-})), eH = /*#__PURE__*/ (0, R.createContext)(null), tH = () => (0, R.useContext)(eH) != null, nH = (e) => e.brush, rH = $([
- nH,
- ZV,
- LV
+})), uH = /*#__PURE__*/ (0, R.createContext)(null), dH = () => (0, R.useContext)(uH) != null, fH = (e) => e.brush, pH = $([
+ fH,
+ sH,
+ qV
], (e, t, n) => ({
height: e.height,
x: Z(e.x) ? e.x : t.left,
@@ -51042,7 +51315,7 @@ var ZV = $([
}));
//#endregion
//#region node_modules/es-toolkit/dist/function/debounce.mjs
-function iH(e, t, { signal: n, edges: r } = {}) {
+function mH(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 = () => {
@@ -51067,11 +51340,11 @@ function iH(e, t, { signal: n, edges: r } = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs
-function aH(e, t = 0, n = {}) {
+function hH(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 = iH(function(...t) {
+ let s, c = null, l = mH(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);
@@ -51080,9 +51353,9 @@ function aH(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs
-function oH(e, t = 0, n = {}) {
+function gH(e, t = 0, n = {}) {
let { leading: r = !0, trailing: i = !0 } = n;
- return aH(e, t, {
+ return hH(e, t, {
leading: r,
maxWait: t,
trailing: i
@@ -51090,7 +51363,7 @@ function oH(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/recharts/es6/util/LogUtils.js
-var sH = function(e, t) {
+var _H = 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.");
@@ -51099,7 +51372,7 @@ var sH = function(e, t) {
console.warn(t.replace(/%s/g, () => n[r++]));
}
}
-}, cH = {
+}, vH = {
width: "100%",
height: "100%",
debounce: 0,
@@ -51108,45 +51381,45 @@ var sH = function(e, t) {
width: -1,
height: -1
}
-}, lH = (e, t, n) => {
- var { width: r = cH.width, height: i = cH.height, aspect: a, maxHeight: o } = n, s = nR(r) ? e : Number(r), c = nR(i) ? t : Number(i);
+}, yH = (e, t, n) => {
+ var { width: r = vH.width, height: i = vH.height, aspect: a, maxHeight: o } = n, s = cR(r) ? e : Number(r), c = cR(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
};
-}, uH = {
+}, bH = {
width: 0,
height: 0,
overflow: "visible"
-}, dH = {
+}, xH = {
width: 0,
overflowX: "visible"
-}, fH = {
+}, SH = {
height: 0,
overflowY: "visible"
-}, pH = {}, mH = (e) => {
- var { width: t, height: n } = e, r = nR(t), i = nR(n);
- return r && i ? uH : r ? dH : i ? fH : pH;
+}, CH = {}, wH = (e) => {
+ var { width: t, height: n } = e, r = cR(t), i = cR(n);
+ return r && i ? bH : r ? xH : i ? SH : CH;
};
-function hH(e) {
+function TH(e) {
var { width: t, height: n, aspect: r } = e, i = t, a = n;
- return i === void 0 && a === void 0 ? (i = cH.width, a = cH.height) : i === void 0 ? i = r && r > 0 ? void 0 : cH.width : a === void 0 && (a = r && r > 0 ? void 0 : cH.height), {
+ return i === void 0 && a === void 0 ? (i = vH.width, a = vH.height) : i === void 0 ? i = r && r > 0 ? void 0 : vH.width : a === void 0 && (a = r && r > 0 ? void 0 : vH.height), {
width: i,
height: a
};
}
//#endregion
//#region node_modules/recharts/es6/component/ResponsiveContainer.js
-function gH() {
- return gH = Object.assign ? Object.assign.bind() : function(e) {
+function EH() {
+ return EH = 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;
- }, gH.apply(null, arguments);
+ }, EH.apply(null, arguments);
}
-function _H(e, t) {
+function DH(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -51156,30 +51429,30 @@ function _H(e, t) {
}
return n;
}
-function vH(e) {
+function OH(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? _H(Object(n), !0).forEach(function(t) {
- yH(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _H(Object(n)).forEach(function(t) {
+ t % 2 ? DH(Object(n), !0).forEach(function(t) {
+ kH(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : DH(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function yH(e, t, n) {
- return (t = bH(t)) in e ? Object.defineProperty(e, t, {
+function kH(e, t, n) {
+ return (t = AH(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bH(e) {
- var t = xH(e, "string");
+function AH(e) {
+ var t = jH(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xH(e, t) {
+function jH(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -51189,19 +51462,19 @@ function xH(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var SH = /*#__PURE__*/ (0, R.createContext)(cH.initialDimension);
-function CH(e) {
- return uV(e.width) && uV(e.height);
+var MH = /*#__PURE__*/ (0, R.createContext)(vH.initialDimension);
+function NH(e) {
+ return gV(e.width) && gV(e.height);
}
-function wH(e) {
+function PH(e) {
var { children: t, width: n, height: r } = e, i = (0, R.useMemo)(() => ({
width: n,
height: r
}), [n, r]);
- return CH(i) ? /*#__PURE__*/ R.createElement(SH.Provider, { value: i }, t) : null;
+ return NH(i) ? /*#__PURE__*/ R.createElement(MH.Provider, { value: i }, t) : null;
}
-var TH = () => (0, R.useContext)(SH), EH = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { aspect: n, initialDimension: r = cH.initialDimension, width: i, height: a, minWidth: o = cH.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = cH.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, R.useRef)(null), g = (0, R.useRef)();
+var FH = () => (0, R.useContext)(MH), IH = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { aspect: n, initialDimension: r = vH.initialDimension, width: i, height: a, minWidth: o = vH.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = vH.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, R.useRef)(null), g = (0, R.useRef)();
g.current = p, (0, R.useImperativeHandle)(t, () => h.current);
var [_, v] = (0, R.useState)({
containerWidth: r.width,
@@ -51216,7 +51489,7 @@ var TH = () => (0, R.useContext)(SH), EH = /*#__PURE__*/ (0, R.forwardRef)((e, t
});
}, []);
(0, R.useEffect)(() => {
- if (h.current == null || typeof ResizeObserver > "u") return fR;
+ if (h.current == null || typeof ResizeObserver > "u") return vR;
var e = (e) => {
var t, n = e[0];
if (n != null) {
@@ -51224,7 +51497,7 @@ var TH = () => (0, R.useContext)(SH), EH = /*#__PURE__*/ (0, R.forwardRef)((e, t
y(r, i), (t = g.current) == null || t.call(g, r, i);
}
};
- u > 0 && (e = oH(e, u, {
+ u > 0 && (e = gH(e, u, {
trailing: !0,
leading: !1
}));
@@ -51234,17 +51507,17 @@ var TH = () => (0, R.useContext)(SH), EH = /*#__PURE__*/ (0, R.forwardRef)((e, t
};
}, [y, u]);
var { containerWidth: b, containerHeight: x } = _;
- sH(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
- var { calculatedWidth: S, calculatedHeight: C } = lH(b, x, {
+ _H(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
+ var { calculatedWidth: S, calculatedHeight: C } = yH(b, x, {
width: i,
height: a,
aspect: n,
maxHeight: c
});
- return sH(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ R.createElement("div", {
+ return _H(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ R.createElement("div", {
id: d ? `${d}` : void 0,
- className: $l("recharts-responsive-container", f),
- style: vH(vH({}, m), {}, {
+ className: Ql("recharts-responsive-container", f),
+ style: OH(OH({}, m), {}, {
width: i,
height: a,
minWidth: o,
@@ -51252,30 +51525,30 @@ var TH = () => (0, R.useContext)(SH), EH = /*#__PURE__*/ (0, R.forwardRef)((e, t
maxHeight: c
}),
ref: h
- }, /*#__PURE__*/ R.createElement("div", { style: mH({
+ }, /*#__PURE__*/ R.createElement("div", { style: wH({
width: i,
height: a
- }) }, /*#__PURE__*/ R.createElement(wH, {
+ }) }, /*#__PURE__*/ R.createElement(PH, {
width: S,
height: C
}, l)));
-}), DH = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = TH();
- if (uV(n.width) && uV(n.height)) return e.children;
- var { width: r, height: i } = hH({
+}), LH = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = FH();
+ if (gV(n.width) && gV(n.height)) return e.children;
+ var { width: r, height: i } = TH({
width: e.width,
height: e.height,
aspect: e.aspect
- }), { calculatedWidth: a, calculatedHeight: o } = lH(void 0, void 0, {
+ }), { calculatedWidth: a, calculatedHeight: o } = yH(void 0, void 0, {
width: r,
height: i,
aspect: e.aspect,
maxHeight: e.maxHeight
});
- return Z(a) && Z(o) ? /*#__PURE__*/ R.createElement(wH, {
+ return Z(a) && Z(o) ? /*#__PURE__*/ R.createElement(PH, {
width: a,
height: o
- }, e.children) : /*#__PURE__*/ R.createElement(EH, gH({}, e, {
+ }, e.children) : /*#__PURE__*/ R.createElement(IH, EH({}, e, {
width: r,
height: i,
ref: t
@@ -51283,7 +51556,7 @@ var TH = () => (0, R.useContext)(SH), EH = /*#__PURE__*/ (0, R.forwardRef)((e, t
});
//#endregion
//#region node_modules/recharts/es6/context/chartLayoutContext.js
-function OH(e) {
+function RH(e) {
if (e) return {
x: e.x,
y: e.y,
@@ -51293,15 +51566,15 @@ function OH(e) {
height: e.height
};
}
-var kH = () => {
- var e = tH(), t = Q(QV), n = Q(rH), r = Q(nH)?.padding;
+var zH = () => {
+ var e = dH(), t = Q(cH), n = Q(pH), r = Q(fH)?.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
};
-}, AH = {
+}, BH = {
top: 0,
bottom: 0,
left: 0,
@@ -51309,16 +51582,16 @@ var kH = () => {
width: 0,
height: 0,
brushBottom: 0
-}, jH = () => Q(ZV) ?? AH, MH = () => Q(PV), NH = () => Q(FV), PH = () => Q((e) => e.layout.margin), FH = (e) => e.layout.layoutType, IH = () => Q(FH), LH = () => {
- var e = IH();
+}, VH = () => Q(sH) ?? BH, HH = () => Q(WV), UH = () => Q(GV), WH = () => Q((e) => e.layout.margin), GH = (e) => e.layout.layoutType, KH = () => Q(GH), qH = () => {
+ var e = KH();
if (e === "horizontal" || e === "vertical") return e;
-}, RH = (e) => {
+}, JH = (e) => {
var t = e.layout.layoutType;
if (t === "centric" || t === "radial") return t;
-}, zH = () => Q(RH), BH = () => IH() !== void 0, VH = (e) => {
- var t = YR(), n = tH(), { width: r, height: i } = e, a = TH(), o = r, s = i;
+}, YH = () => Q(JH), XH = () => KH() !== void 0, ZH = (e) => {
+ var t = tz(), n = dH(), { width: r, height: i } = e, a = FH(), o = r, s = i;
return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, R.useEffect)(() => {
- !n && uV(o) && uV(s) && t(w_e({
+ !n && gV(o) && gV(s) && t(k_e({
width: o,
height: s
}));
@@ -51328,64 +51601,64 @@ var kH = () => {
o,
s
]), null;
-}, HH = Symbol.for("immer-nothing"), UH = Symbol.for("immer-draftable"), WH = Symbol.for("immer-state");
-function GH(e, ...t) {
+}, QH = Symbol.for("immer-nothing"), $H = Symbol.for("immer-draftable"), eU = Symbol.for("immer-state");
+function tU(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var KH = Object.getPrototypeOf;
-function qH(e) {
- return !!e && !!e[WH];
+var nU = Object.getPrototypeOf;
+function rU(e) {
+ return !!e && !!e[eU];
}
-function JH(e) {
- return e ? ZH(e) || Array.isArray(e) || !!e[UH] || !!e.constructor?.[UH] || rU(e) || iU(e) : !1;
+function iU(e) {
+ return e ? sU(e) || Array.isArray(e) || !!e[$H] || !!e.constructor?.[$H] || pU(e) || mU(e) : !1;
}
-var YH = Object.prototype.constructor.toString(), XH = /* @__PURE__ */ new WeakMap();
-function ZH(e) {
+var aU = Object.prototype.constructor.toString(), oU = /* @__PURE__ */ new WeakMap();
+function sU(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 = XH.get(n);
- return r === void 0 && (r = Function.toString.call(n), XH.set(n, r)), r === YH;
+ let r = oU.get(n);
+ return r === void 0 && (r = Function.toString.call(n), oU.set(n, r)), r === aU;
}
-function QH(e, t, n = !0) {
- $H(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
+function cU(e, t, n = !0) {
+ lU(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 $H(e) {
- let t = e[WH];
- return t ? t.type_ : Array.isArray(e) ? 1 : rU(e) ? 2 : iU(e) ? 3 : 0;
+function lU(e) {
+ let t = e[eU];
+ return t ? t.type_ : Array.isArray(e) ? 1 : pU(e) ? 2 : mU(e) ? 3 : 0;
}
-function eU(e, t) {
- return $H(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
+function uU(e, t) {
+ return lU(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
}
-function tU(e, t, n) {
- let r = $H(e);
+function dU(e, t, n) {
+ let r = lU(e);
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
}
-function nU(e, t) {
+function fU(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function rU(e) {
+function pU(e) {
return e instanceof Map;
}
-function iU(e) {
+function mU(e) {
return e instanceof Set;
}
-function aU(e) {
+function hU(e) {
return e.copy_ || e.base_;
}
-function oU(e, t) {
- if (rU(e)) return new Map(e);
- if (iU(e)) return new Set(e);
+function gU(e, t) {
+ if (pU(e)) return new Map(e);
+ if (mU(e)) return new Set(e);
if (Array.isArray(e)) return Array.prototype.slice.call(e);
- let n = ZH(e);
+ let n = sU(e);
if (t === !0 || t === "class_only" && !n) {
let t = Object.getOwnPropertyDescriptors(e);
- delete t[WH];
+ delete t[eU];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
@@ -51396,40 +51669,40 @@ function oU(e, t) {
value: e[i]
});
}
- return Object.create(KH(e), t);
+ return Object.create(nU(e), t);
}
{
- let t = KH(e);
+ let t = nU(e);
if (t !== null && n) return { ...e };
let r = Object.create(t);
return Object.assign(r, e);
}
}
-function sU(e, t = !1) {
- return uU(e) || qH(e) || !JH(e) ? e : ($H(e) > 1 && Object.defineProperties(e, {
- set: lU,
- add: lU,
- clear: lU,
- delete: lU
- }), Object.freeze(e), t && Object.values(e).forEach((e) => sU(e, !0)), e);
+function _U(e, t = !1) {
+ return bU(e) || rU(e) || !iU(e) ? e : (lU(e) > 1 && Object.defineProperties(e, {
+ set: yU,
+ add: yU,
+ clear: yU,
+ delete: yU
+ }), Object.freeze(e), t && Object.values(e).forEach((e) => _U(e, !0)), e);
}
-function cU() {
- GH(2);
+function vU() {
+ tU(2);
}
-var lU = { value: cU };
-function uU(e) {
+var yU = { value: vU };
+function bU(e) {
return typeof e != "object" || !e || Object.isFrozen(e);
}
-var dU = {};
-function fU(e) {
- let t = dU[e];
- return t || GH(0, e), t;
+var xU = {};
+function SU(e) {
+ let t = xU[e];
+ return t || tU(0, e), t;
}
-var pU;
-function mU() {
- return pU;
+var CU;
+function wU() {
+ return CU;
}
-function hU(e, t) {
+function TU(e, t) {
return {
drafts_: [],
parent_: e,
@@ -51438,62 +51711,62 @@ function hU(e, t) {
unfinalizedDrafts_: 0
};
}
-function gU(e, t) {
- t && (fU("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+function EU(e, t) {
+ t && (SU("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
-function _U(e) {
- vU(e), e.drafts_.forEach(bU), e.drafts_ = null;
+function DU(e) {
+ OU(e), e.drafts_.forEach(AU), e.drafts_ = null;
}
-function vU(e) {
- e === pU && (pU = e.parent_);
+function OU(e) {
+ e === CU && (CU = e.parent_);
}
-function yU(e) {
- return pU = hU(pU, e);
+function kU(e) {
+ return CU = TU(CU, e);
}
-function bU(e) {
- let t = e[WH];
+function AU(e) {
+ let t = e[eU];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function xU(e, t) {
+function jU(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
- return e !== void 0 && e !== n ? (n[WH].modified_ && (_U(t), GH(4)), JH(e) && (e = SU(t, e), t.parent_ || wU(t, e)), t.patches_ && fU("Patches").generateReplacementPatches_(n[WH].base_, e, t.patches_, t.inversePatches_)) : e = SU(t, n, []), _U(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === HH ? void 0 : e;
+ return e !== void 0 && e !== n ? (n[eU].modified_ && (DU(t), tU(4)), iU(e) && (e = MU(t, e), t.parent_ || PU(t, e)), t.patches_ && SU("Patches").generateReplacementPatches_(n[eU].base_, e, t.patches_, t.inversePatches_)) : e = MU(t, n, []), DU(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === QH ? void 0 : e;
}
-function SU(e, t, n) {
- if (uU(t)) return t;
- let r = e.immer_.shouldUseStrictIteration(), i = t[WH];
- if (!i) return QH(t, (r, a) => CU(e, i, t, r, a, n), r), t;
+function MU(e, t, n) {
+ if (bU(t)) return t;
+ let r = e.immer_.shouldUseStrictIteration(), i = t[eU];
+ if (!i) return cU(t, (r, a) => NU(e, i, t, r, a, n), r), t;
if (i.scope_ !== e) return t;
- if (!i.modified_) return wU(e, i.base_, !0), i.base_;
+ if (!i.modified_) return PU(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), QH(a, (r, a) => CU(e, i, t, r, a, n, o), r), wU(e, t, !1), n && e.patches_ && fU("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
+ i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), cU(a, (r, a) => NU(e, i, t, r, a, n, o), r), PU(e, t, !1), n && e.patches_ && SU("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
}
return i.copy_;
}
-function CU(e, t, n, r, i, a, o) {
+function NU(e, t, n, r, i, a, o) {
if (i == null || typeof i != "object" && !o) return;
- let s = uU(i);
+ let s = bU(i);
if (!(s && !o)) {
- if (qH(i)) {
- let o = SU(e, i, a && t && t.type_ !== 3 && !eU(t.assigned_, r) ? a.concat(r) : void 0);
- if (tU(n, r, o), qH(o)) e.canAutoFreeze_ = !1;
+ if (rU(i)) {
+ let o = MU(e, i, a && t && t.type_ !== 3 && !uU(t.assigned_, r) ? a.concat(r) : void 0);
+ if (dU(n, r, o), rU(o)) e.canAutoFreeze_ = !1;
else return;
} else o && n.add(i);
- if (JH(i) && !s) {
+ if (iU(i) && !s) {
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || t && t.base_ && t.base_[r] === i && s) return;
- SU(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (rU(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && wU(e, i);
+ MU(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (pU(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && PU(e, i);
}
}
}
-function wU(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && sU(t, n);
+function PU(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && _U(t, n);
}
-function TU(e, t) {
+function FU(e, t) {
let n = Array.isArray(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : mU(),
+ scope_: t ? t.scope_ : wU(),
modified_: !1,
finalized_: !1,
assigned_: {},
@@ -51503,41 +51776,41 @@ function TU(e, t) {
copy_: null,
revoke_: null,
isManual_: !1
- }, i = r, a = EU;
- n && (i = [r], a = DU);
+ }, i = r, a = IU;
+ n && (i = [r], a = LU);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, s;
}
-var EU = {
+var IU = {
get(e, t) {
- if (t === WH) return e;
- let n = aU(e);
- if (!eU(n, t)) return kU(e, n, t);
+ if (t === eU) return e;
+ let n = hU(e);
+ if (!uU(n, t)) return zU(e, n, t);
let r = n[t];
- return e.finalized_ || !JH(r) ? r : r === OU(e.base_, t) ? (MU(e), e.copy_[t] = PU(r, e)) : r;
+ return e.finalized_ || !iU(r) ? r : r === RU(e.base_, t) ? (HU(e), e.copy_[t] = WU(r, e)) : r;
},
has(e, t) {
- return t in aU(e);
+ return t in hU(e);
},
ownKeys(e) {
- return Reflect.ownKeys(aU(e));
+ return Reflect.ownKeys(hU(e));
},
set(e, t, n) {
- let r = AU(aU(e), t);
+ let r = BU(hU(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = OU(aU(e), t), i = r?.[WH];
+ let r = RU(hU(e), t), i = r?.[eU];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;
- if (nU(n, r) && (n !== void 0 || eU(e.base_, t))) return !0;
- MU(e), jU(e);
+ if (fU(n, r) && (n !== void 0 || uU(e.base_, t))) return !0;
+ HU(e), VU(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 OU(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, MU(e), jU(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
+ return RU(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, HU(e), VU(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = aU(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = hU(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
writable: !0,
configurable: e.type_ !== 1 || t !== "length",
@@ -51546,48 +51819,48 @@ var EU = {
};
},
defineProperty() {
- GH(11);
+ tU(11);
},
getPrototypeOf(e) {
- return KH(e.base_);
+ return nU(e.base_);
},
setPrototypeOf() {
- GH(12);
+ tU(12);
}
-}, DU = {};
-QH(EU, (e, t) => {
- DU[e] = function() {
+}, LU = {};
+cU(IU, (e, t) => {
+ LU[e] = function() {
return arguments[0] = arguments[0][0], t.apply(this, arguments);
};
-}), DU.deleteProperty = function(e, t) {
- return DU.set.call(this, e, t, void 0);
-}, DU.set = function(e, t, n) {
- return EU.set.call(this, e[0], t, n, e[0]);
+}), LU.deleteProperty = function(e, t) {
+ return LU.set.call(this, e, t, void 0);
+}, LU.set = function(e, t, n) {
+ return IU.set.call(this, e[0], t, n, e[0]);
};
-function OU(e, t) {
- let n = e[WH];
- return (n ? aU(n) : e)[t];
+function RU(e, t) {
+ let n = e[eU];
+ return (n ? hU(n) : e)[t];
}
-function kU(e, t, n) {
- let r = AU(t, n);
+function zU(e, t, n) {
+ let r = BU(t, n);
return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;
}
-function AU(e, t) {
+function BU(e, t) {
if (!(t in e)) return;
- let n = KH(e);
+ let n = nU(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = KH(n);
+ n = nU(n);
}
}
-function jU(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && jU(e.parent_));
+function VU(e) {
+ e.modified_ || (e.modified_ = !0, e.parent_ && VU(e.parent_));
}
-function MU(e) {
- e.copy_ ||= oU(e.base_, e.scope_.immer_.useStrictShallowCopy_);
+function HU(e) {
+ e.copy_ ||= gU(e.base_, e.scope_.immer_.useStrictShallowCopy_);
}
-var NU = class {
+var UU = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (e, t, n) => {
if (typeof e == "function" && typeof t != "function") {
@@ -51598,25 +51871,25 @@ var NU = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- typeof t != "function" && GH(6), n !== void 0 && typeof n != "function" && GH(7);
+ typeof t != "function" && tU(6), n !== void 0 && typeof n != "function" && tU(7);
let r;
- if (JH(e)) {
- let i = yU(this), a = PU(e, void 0), o = !0;
+ if (iU(e)) {
+ let i = kU(this), a = WU(e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? _U(i) : vU(i);
+ o ? DU(i) : OU(i);
}
- return gU(i, n), xU(r, i);
+ return EU(i, n), jU(r, i);
}
if (!e || typeof e != "object") {
- if (r = t(e), r === void 0 && (r = e), r === HH && (r = void 0), this.autoFreeze_ && sU(r, !0), n) {
+ if (r = t(e), r === void 0 && (r = e), r === QH && (r = void 0), this.autoFreeze_ && _U(r, !0), n) {
let t = [], i = [];
- fU("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
+ SU("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
}
return r;
}
- GH(1, e);
+ tU(1, e);
}, this.produceWithPatches = (e, t) => {
if (typeof e == "function") return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
@@ -51630,15 +51903,15 @@ var NU = 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) {
- JH(e) || GH(8), qH(e) && (e = FU(e));
- let t = yU(this), n = PU(e, void 0);
- return n[WH].isManual_ = !0, vU(t), n;
+ iU(e) || tU(8), rU(e) && (e = GU(e));
+ let t = kU(this), n = WU(e, void 0);
+ return n[eU].isManual_ = !0, OU(t), n;
}
finishDraft(e, t) {
- let n = e && e[WH];
- (!n || !n.isManual_) && GH(9);
+ let n = e && e[eU];
+ (!n || !n.isManual_) && tU(9);
let { scope_: r } = n;
- return gU(r, t), xU(void 0, r);
+ return EU(r, t), jU(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -51662,35 +51935,35 @@ var NU = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = fU("Patches").applyPatches_;
- return qH(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = SU("Patches").applyPatches_;
+ return rU(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function PU(e, t) {
- let n = rU(e) ? fU("MapSet").proxyMap_(e, t) : iU(e) ? fU("MapSet").proxySet_(e, t) : TU(e, t);
- return (t ? t.scope_ : mU()).drafts_.push(n), n;
+function WU(e, t) {
+ let n = pU(e) ? SU("MapSet").proxyMap_(e, t) : mU(e) ? SU("MapSet").proxySet_(e, t) : FU(e, t);
+ return (t ? t.scope_ : wU()).drafts_.push(n), n;
}
-function FU(e) {
- return qH(e) || GH(10, e), IU(e);
+function GU(e) {
+ return rU(e) || tU(10, e), KU(e);
}
-function IU(e) {
- if (!JH(e) || uU(e)) return e;
- let t = e[WH], n, r = !0;
+function KU(e) {
+ if (!iU(e) || bU(e)) return e;
+ let t = e[eU], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = oU(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = oU(e, !0);
- return QH(n, (e, t) => {
- tU(n, e, IU(t));
+ t.finalized_ = !0, n = gU(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = gU(e, !0);
+ return cU(n, (e, t) => {
+ dU(n, e, KU(t));
}, r), t && (t.finalized_ = !1), n;
}
-new NU().produce;
-function LU(e) {
+new UU().produce;
+function qU(e) {
return e;
}
//#endregion
//#region node_modules/recharts/es6/state/legendSlice.js
-var RU = PB({
+var JU = BB({
name: "legend",
initialState: {
settings: {
@@ -51714,43 +51987,43 @@ var RU = PB({
},
addLegendPayload: {
reducer(e, t) {
- e.payload.push(LU(t.payload));
+ e.payload.push(qU(t.payload));
},
- prepare: AB()
+ prepare: IB()
},
replaceLegendPayload: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = xB(e).payload.indexOf(LU(n));
- i > -1 && (e.payload[i] = LU(r));
+ var { prev: n, next: r } = t.payload, i = DB(e).payload.indexOf(qU(n));
+ i > -1 && (e.payload[i] = qU(r));
},
- prepare: AB()
+ prepare: IB()
},
removeLegendPayload: {
reducer(e, t) {
- var n = xB(e).payload.indexOf(LU(t.payload));
+ var n = DB(e).payload.indexOf(qU(t.payload));
n > -1 && e.payload.splice(n, 1);
},
- prepare: AB()
+ prepare: IB()
}
}
-}), { setLegendSize: zU, setLegendSettings: BU, addLegendPayload: VU, replaceLegendPayload: HU, removeLegendPayload: UU } = RU.actions, WU = RU.reducer, GU = /* @__PURE__ */ ce(((e) => {
+}), { setLegendSize: YU, setLegendSettings: XU, addLegendPayload: ZU, replaceLegendPayload: QU, removeLegendPayload: $U } = JU.actions, eW = JU.reducer, tW = /* @__PURE__ */ ce(((e) => {
var t = he();
t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;
}));
(/* @__PURE__ */ ce(((e, t) => {
- t.exports = GU();
+ t.exports = tW();
})))();
-function KU(e) {
+function nW(e) {
e();
}
-function qU() {
+function rW() {
let e = null, t = null;
return {
clear() {
e = null, t = null;
},
notify() {
- KU(() => {
+ nW(() => {
let t = e;
for (; t;) t.callback(), t = t.next;
});
@@ -51772,12 +52045,12 @@ function qU() {
}
};
}
-var JU = {
+var iW = {
notify() {},
get: () => []
};
-function YU(e, t) {
- let n, r = JU, i = 0, a = !1;
+function aW(e, t) {
+ let n, r = iW, i = 0, a = !1;
function o(e) {
u();
let t = r.subscribe(e), n = !1;
@@ -51795,10 +52068,10 @@ function YU(e, t) {
return a;
}
function u() {
- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = qU());
+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = rW());
}
function d() {
- i--, n && i === 0 && (n(), n = void 0, r.clear(), r = JU);
+ i--, n && i === 0 && (n(), n = void 0, r.clear(), r = iW);
}
function f() {
a || (a = !0, u());
@@ -51817,44 +52090,44 @@ function YU(e, t) {
};
return m;
}
-var XU = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, ZU = typeof navigator < "u" && navigator.product === "ReactNative", QU = XU || ZU ? R.useLayoutEffect : R.useEffect;
-function $U(e, t) {
+var oW = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, sW = typeof navigator < "u" && navigator.product === "ReactNative", cW = oW || sW ? R.useLayoutEffect : R.useEffect;
+function lW(e, t) {
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function eW(e, t) {
- if ($U(e, t)) return !0;
+function uW(e, t) {
+ if (lW(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]) || !$U(e[n[r]], t[n[r]])) return !1;
+ for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !lW(e[n[r]], t[n[r]])) return !1;
return !0;
}
-var tW = /* @__PURE__ */ Symbol.for("react-redux-context"), nW = typeof globalThis < "u" ? globalThis : {};
-function rW() {
+var dW = /* @__PURE__ */ Symbol.for("react-redux-context"), fW = typeof globalThis < "u" ? globalThis : {};
+function pW() {
if (!R.createContext) return {};
- let e = nW[tW] ??= /* @__PURE__ */ new Map(), t = e.get(R.createContext);
+ let e = fW[dW] ??= /* @__PURE__ */ new Map(), t = e.get(R.createContext);
return t || (t = R.createContext(null), e.set(R.createContext, t)), t;
}
-var iW = /* @__PURE__ */ rW();
-function aW(e) {
+var mW = /* @__PURE__ */ pW();
+function hW(e) {
let { children: t, context: n, serverState: r, store: i } = e, a = R.useMemo(() => {
- let e = YU(i);
+ let e = aW(i);
return {
store: i,
subscription: e,
getServerState: r ? () => r : void 0
};
}, [i, r]), o = R.useMemo(() => i.getState(), [i]);
- QU(() => {
+ cW(() => {
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 || iW;
+ let s = n || mW;
return /* @__PURE__ */ R.createElement(s.Provider, { value: a }, t);
}
-var oW = aW, sW = /* @__PURE__ */ new Set([
+var gW = hW, _W = /* @__PURE__ */ new Set([
"axisLine",
"tickLine",
"activeBar",
@@ -51877,29 +52150,29 @@ var oW = aW, sW = /* @__PURE__ */ new Set([
"radius",
"throttledEvents"
]);
-function cW(e, t) {
+function vW(e, t) {
return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;
}
-function lW(e, t) {
- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (sW.has(n)) {
+function yW(e, t) {
+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (_W.has(n)) {
if (e[n] == null && t[n] == null) continue;
- if (!eW(e[n], t[n])) return !1;
- } else if (!cW(e[n], t[n])) return !1;
+ if (!uW(e[n], t[n])) return !1;
+ } else if (!vW(e[n], t[n])) return !1;
return !0;
}
//#endregion
//#region node_modules/recharts/es6/component/Legend.js
-var uW = ["contextPayload"];
-function dW() {
- return dW = Object.assign ? Object.assign.bind() : function(e) {
+var bW = ["contextPayload"];
+function xW() {
+ return xW = 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;
- }, dW.apply(null, arguments);
+ }, xW.apply(null, arguments);
}
-function fW(e, t) {
+function SW(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -51909,30 +52182,30 @@ function fW(e, t) {
}
return n;
}
-function pW(e) {
+function CW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? fW(Object(n), !0).forEach(function(t) {
- mW(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fW(Object(n)).forEach(function(t) {
+ t % 2 ? SW(Object(n), !0).forEach(function(t) {
+ wW(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : SW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function mW(e, t, n) {
- return (t = hW(t)) in e ? Object.defineProperty(e, t, {
+function wW(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 hW(e) {
- var t = gW(e, "string");
+function TW(e) {
+ var t = EW(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function gW(e, t) {
+function EW(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -51942,16 +52215,16 @@ function gW(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function _W(e, t) {
+function DW(e, t) {
if (e == null) return {};
- var n, r, i = vW(e, t);
+ var n, r, i = OW(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 vW(e, t) {
+function OW(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -51960,36 +52233,36 @@ function vW(e, t) {
}
return n;
}
-function yW(e) {
+function kW(e) {
return e.value;
}
-function bW(e) {
- var { contextPayload: t } = e, n = _W(e, uW), r = qR(t, e.payloadUniqBy, yW), i = pW(pW({}, n), {}, { payload: r });
- return /*#__PURE__*/ R.isValidElement(e.content) ? /*#__PURE__*/ R.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ R.createElement(e.content, i) : /*#__PURE__*/ R.createElement(vhe, i);
+function AW(e) {
+ var { contextPayload: t } = e, n = DW(e, bW), r = $R(t, e.payloadUniqBy, kW), i = CW(CW({}, n), {}, { payload: r });
+ return /*#__PURE__*/ R.isValidElement(e.content) ? /*#__PURE__*/ R.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ R.createElement(e.content, i) : /*#__PURE__*/ R.createElement(Che, i);
}
-function xW(e, t, n, r, i, a) {
+function jW(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 }), pW(pW({}, 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 }), CW(CW({}, l), u);
}
-function SW(e) {
- var t = YR();
+function MW(e) {
+ var t = tz();
return (0, R.useEffect)(() => {
- t(BU(e));
+ t(XU(e));
}, [t, e]), null;
}
-function CW(e) {
- var t = YR();
- return (0, R.useEffect)(() => (t(zU(e)), () => {
- t(zU({
+function NW(e) {
+ var t = tz();
+ return (0, R.useEffect)(() => (t(YU(e)), () => {
+ t(YU({
width: 0,
height: 0
}));
}), [t, e]), null;
}
-function wW(e, t, n, r) {
+function PW(e, t, n, r) {
return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;
}
-var TW = {
+var FW = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -51997,28 +52270,28 @@ var TW = {
layout: "horizontal",
verticalAlign: "bottom"
};
-function EW(e) {
- var t = SR(e, TW), n = Oge(), r = fme(), i = PH(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = oz([n]), d = MH(), f = NH();
+function IW(e) {
+ var t = OR(e, FW), n = Nge(), r = _me(), i = WH(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = fz([n]), d = HH(), f = UH();
if (d == null || f == null) return null;
- var p = d - (i?.left || 0) - (i?.right || 0), m = wW(t.layout, o, a, p), h = c ? s : pW(pW({
+ var p = d - (i?.left || 0) - (i?.right || 0), m = PW(t.layout, o, a, p), h = c ? s : CW(CW({
position: "absolute",
width: m?.width || a || "auto",
height: m?.height || o || "auto"
- }, xW(s, t, i, d, f, l)), s), g = c ?? r;
+ }, jW(s, t, i, d, f, l)), s), g = c ?? r;
if (g == null || n == null) return null;
var _ = /*#__PURE__*/ R.createElement("div", {
className: "recharts-legend-wrapper",
style: h,
ref: u
- }, /*#__PURE__*/ R.createElement(SW, {
+ }, /*#__PURE__*/ R.createElement(MW, {
layout: t.layout,
align: t.align,
verticalAlign: t.verticalAlign,
itemSorter: t.itemSorter
- }), !c && /*#__PURE__*/ R.createElement(CW, {
+ }), !c && /*#__PURE__*/ R.createElement(NW, {
width: l.width,
height: l.height
- }), /*#__PURE__*/ R.createElement(bW, dW({}, t, m, {
+ }), /*#__PURE__*/ R.createElement(AW, xW({}, t, m, {
margin: i,
chartWidth: d,
chartHeight: f,
@@ -52026,20 +52299,20 @@ function EW(e) {
})));
return /*#__PURE__*/ (0, be.createPortal)(_, g);
}
-var DW = /*#__PURE__*/ R.memo(EW, lW);
-DW.displayName = "Legend";
+var LW = /*#__PURE__*/ R.memo(IW, yW);
+LW.displayName = "Legend";
//#endregion
//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
-function OW() {
- return OW = Object.assign ? Object.assign.bind() : function(e) {
+function RW() {
+ return RW = 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;
- }, OW.apply(null, arguments);
+ }, RW.apply(null, arguments);
}
-function kW(e, t) {
+function zW(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52049,30 +52322,30 @@ function kW(e, t) {
}
return n;
}
-function AW(e) {
+function BW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? kW(Object(n), !0).forEach(function(t) {
- jW(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : kW(Object(n)).forEach(function(t) {
+ t % 2 ? zW(Object(n), !0).forEach(function(t) {
+ VW(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : zW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function jW(e, t, n) {
- return (t = MW(t)) in e ? Object.defineProperty(e, t, {
+function VW(e, t, n) {
+ return (t = HW(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function MW(e) {
- var t = NW(e, "string");
+function HW(e) {
+ var t = UW(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function NW(e, t) {
+function UW(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52082,10 +52355,10 @@ function NW(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function PW(e) {
- return Array.isArray(e) && rR(e[0]) && rR(e[1]) ? e.join(" ~ ") : e;
+function WW(e) {
+ return Array.isArray(e) && lR(e[0]) && lR(e[1]) ? e.join(" ~ ") : e;
}
-var FW = {
+var GW = {
separator: " : ",
contentStyle: {
margin: 0,
@@ -52103,30 +52376,30 @@ var FW = {
labelStyle: {},
accessibilityLayer: !1
};
-function IW(e, t) {
- return t == null ? e : rz(e, t);
+function KW(e, t) {
+ return t == null ? e : lz(e, t);
}
-var LW = (e) => {
- var { separator: t = FW.separator, contentStyle: n, itemStyle: r, labelStyle: i = FW.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = FW.accessibilityLayer } = e, p = () => {
+var qW = (e) => {
+ var { separator: t = GW.separator, contentStyle: n, itemStyle: r, labelStyle: i = GW.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = GW.accessibilityLayer } = e, p = () => {
if (a && a.length) {
var e = {
padding: 0,
margin: 0
- }, n = IW(a, s).map((e, n) => {
+ }, n = KW(a, s).map((e, n) => {
if (e.type === "none") return null;
- var i = e.formatter || o || PW, { value: s, name: c } = e, l = s, u = c;
+ var i = e.formatter || o || WW, { 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 = AW(AW({}, FW.itemStyle), {}, { color: e.color || FW.itemStyle.color }, r);
+ var f = BW(BW({}, GW.itemStyle), {}, { color: e.color || GW.itemStyle.color }, r);
return /*#__PURE__*/ R.createElement("li", {
className: "recharts-tooltip-item",
key: `tooltip-item-${n}`,
style: f
- }, rR(u) ? /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, rR(u) ? /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
+ }, lR(u) ? /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, lR(u) ? /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
});
return /*#__PURE__*/ R.createElement("ul", {
className: "recharts-tooltip-item-list",
@@ -52134,30 +52407,30 @@ var LW = (e) => {
}, n);
}
return null;
- }, m = AW(AW({}, FW.contentStyle), n), h = AW({ margin: 0 }, i), g = !lR(u), _ = g ? u : "", v = $l("recharts-default-tooltip", c), y = $l("recharts-tooltip-label", l);
+ }, m = BW(BW({}, GW.contentStyle), n), h = BW({ margin: 0 }, i), g = !hR(u), _ = g ? u : "", v = Ql("recharts-default-tooltip", c), y = Ql("recharts-tooltip-label", l);
g && d && a != null && (_ = d(u, a));
var b = f ? {
role: "status",
"aria-live": "assertive"
} : {};
- return /*#__PURE__*/ R.createElement("div", OW({
+ return /*#__PURE__*/ R.createElement("div", RW({
className: v,
style: m
}, b), /*#__PURE__*/ R.createElement("p", {
className: y,
style: h
}, /*#__PURE__*/ R.isValidElement(_) ? _ : `${_}`), p());
-}, RW = "recharts-tooltip-wrapper", zW = { visibility: "hidden" };
-function BW(e) {
+}, JW = "recharts-tooltip-wrapper", YW = { visibility: "hidden" };
+function XW(e) {
var { coordinate: t, translateX: n, translateY: r } = e;
- return $l(RW, {
- [`${RW}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
- [`${RW}-left`]: Z(n) && t && Z(t.x) && n < t.x,
- [`${RW}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
- [`${RW}-top`]: Z(r) && t && Z(t.y) && r < t.y
+ return Ql(JW, {
+ [`${JW}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
+ [`${JW}-left`]: Z(n) && t && Z(t.x) && n < t.x,
+ [`${JW}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
+ [`${JW}-top`]: Z(r) && t && Z(t.y) && r < t.y
});
}
-function VW(e) {
+function ZW(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;
@@ -52165,13 +52438,13 @@ function VW(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 HW(e) {
+function QW(e) {
var { translateX: t, translateY: n, useTranslate3d: r } = e;
return { transform: r ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };
}
-function UW(e) {
+function $W(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 = VW({
+ return s.height > 0 && s.width > 0 && n ? (d = ZW({
allowEscapeViewBox: t,
coordinate: n,
key: "x",
@@ -52181,7 +52454,7 @@ function UW(e) {
tooltipDimension: s.width,
viewBox: l,
viewBoxDimension: l.width
- }), f = VW({
+ }), f = ZW({
allowEscapeViewBox: t,
coordinate: n,
key: "y",
@@ -52191,27 +52464,27 @@ function UW(e) {
tooltipDimension: s.height,
viewBox: l,
viewBoxDimension: l.height
- }), u = HW({
+ }), u = QW({
translateX: d,
translateY: f,
useTranslate3d: c
- })) : u = zW, {
+ })) : u = YW, {
cssProperties: u,
- cssClasses: BW({
+ cssClasses: XW({
translateX: d,
translateY: f,
coordinate: n
})
};
}
-var WW = {
+var eG = {
devToolsEnabled: !0,
isSsr: !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout)
};
//#endregion
//#region node_modules/recharts/es6/util/usePrefersReducedMotion.js
-function GW() {
- var [e, t] = (0, R.useState)(() => WW.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
+function tG() {
+ var [e, t] = (0, R.useState)(() => eG.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
return (0, R.useEffect)(() => {
if (window.matchMedia) {
var e = window.matchMedia("(prefers-reduced-motion: reduce)"), n = () => {
@@ -52225,7 +52498,7 @@ function GW() {
}
//#endregion
//#region node_modules/recharts/es6/component/TooltipBoundingBox.js
-function KW(e, t) {
+function nG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52235,30 +52508,30 @@ function KW(e, t) {
}
return n;
}
-function qW(e) {
+function rG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? KW(Object(n), !0).forEach(function(t) {
- JW(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : KW(Object(n)).forEach(function(t) {
+ t % 2 ? nG(Object(n), !0).forEach(function(t) {
+ iG(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : nG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function JW(e, t, n) {
- return (t = YW(t)) in e ? Object.defineProperty(e, t, {
+function iG(e, t, n) {
+ return (t = aG(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function YW(e) {
- var t = XW(e, "string");
+function aG(e) {
+ var t = oG(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function XW(e, t) {
+function oG(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52268,11 +52541,11 @@ function XW(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function ZW(e) {
+function sG(e) {
if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;
}
-function QW(e) {
- var t = GW(), [n, r] = R.useState(() => ({
+function cG(e) {
+ var t = tG(), [n, r] = R.useState(() => ({
dismissed: !1,
dismissedAtCoordinate: {
x: 0,
@@ -52292,8 +52565,8 @@ function QW(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(qW(qW({}, n), {}, { dismissed: !1 }));
- var { cssClasses: i, cssProperties: a } = UW({
+ }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(rG(rG({}, n), {}, { dismissed: !1 }));
+ var { cssClasses: i, cssProperties: a } = $W({
allowEscapeViewBox: e.allowEscapeViewBox,
coordinate: e.coordinate,
offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,
@@ -52306,7 +52579,7 @@ function QW(e) {
},
useTranslate3d: e.useTranslate3d,
viewBox: e.viewBox
- }), o = qW(qW({}, e.hasPortalFromProps ? {} : qW(qW({ transition: ZW({
+ }), o = rG(rG({}, e.hasPortalFromProps ? {} : rG(rG({ transition: sG({
prefersReducedMotion: t,
isAnimationActive: e.isAnimationActive,
active: e.active,
@@ -52326,19 +52599,19 @@ function QW(e) {
ref: e.innerRef
}, e.children);
}
-var $W = /*#__PURE__*/ R.memo(QW), eG = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
+var lG = /*#__PURE__*/ R.memo(cG), uG = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
//#endregion
//#region node_modules/recharts/es6/shape/Curve.js
-function tG() {
- return tG = Object.assign ? Object.assign.bind() : function(e) {
+function dG() {
+ return dG = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, tG.apply(null, arguments);
+ }, dG.apply(null, arguments);
}
-function nG(e, t) {
+function fG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52348,30 +52621,30 @@ function nG(e, t) {
}
return n;
}
-function rG(e) {
+function pG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? nG(Object(n), !0).forEach(function(t) {
- iG(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : nG(Object(n)).forEach(function(t) {
+ t % 2 ? fG(Object(n), !0).forEach(function(t) {
+ mG(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function iG(e, t, n) {
- return (t = aG(t)) in e ? Object.defineProperty(e, t, {
+function mG(e, t, n) {
+ return (t = hG(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function aG(e) {
- var t = oG(e, "string");
+function hG(e) {
+ var t = gG(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function oG(e, t) {
+function gG(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52381,40 +52654,40 @@ function oG(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var sG = {
- curveBasisClosed: Ame,
- curveBasisOpen: jme,
- curveBasis: kme,
- curveBumpX: hme,
- curveBumpY: gme,
- curveLinearClosed: Mme,
- curveLinear: mL,
- curveMonotoneX: Nme,
- curveMonotoneY: Pme,
- curveNatural: Fme,
- curveStep: Ime,
- curveStepAfter: Rme,
- curveStepBefore: Lme
-}, cG = (e) => lV(e.x) && lV(e.y), lG = (e) => e.base != null && cG(e.base) && cG(e), uG = (e) => e.x, dG = (e) => e.y, fG = (e, t) => {
+var _G = {
+ curveBasisClosed: Fme,
+ curveBasisOpen: Ime,
+ curveBasis: Pme,
+ curveBumpX: bme,
+ curveBumpY: xme,
+ curveLinearClosed: Lme,
+ curveLinear: bL,
+ curveMonotoneX: Rme,
+ curveMonotoneY: zme,
+ curveNatural: Bme,
+ curveStep: Vme,
+ curveStepAfter: Ume,
+ curveStepBefore: Hme
+}, vG = (e) => hV(e.x) && hV(e.y), yG = (e) => e.base != null && vG(e.base) && vG(e), bG = (e) => e.x, xG = (e) => e.y, SG = (e, t) => {
if (typeof e == "function") return e;
- var n = `curve${uR(e)}`;
+ var n = `curve${gR(e)}`;
if ((n === "curveMonotone" || n === "curveBump") && t) {
- var r = sG[`${n}${t === "vertical" ? "Y" : "X"}`];
+ var r = _G[`${n}${t === "vertical" ? "Y" : "X"}`];
if (r) return r;
}
- return sG[n] || mL;
-}, pG = {
+ return _G[n] || bL;
+}, CG = {
connectNulls: !1,
type: "linear"
-}, mG = (e) => {
- var { type: t = pG.type, points: n = [], baseLine: r, layout: i, connectNulls: a = pG.connectNulls } = e, o = fG(t, i), s = a ? n.filter(cG) : n;
+}, wG = (e) => {
+ var { type: t = CG.type, points: n = [], baseLine: r, layout: i, connectNulls: a = CG.connectNulls } = e, o = SG(t, i), s = a ? n.filter(vG) : n;
if (Array.isArray(r)) {
- var c, l = n.map((e, t) => rG(rG({}, e), {}, { base: r[t] }));
- return c = i === "vertical" ? vL().y(dG).x1(uG).x0((e) => e.base.x) : vL().x(uG).y1(dG).y0((e) => e.base.y), c.defined(lG).curve(o)(a ? l.filter(lG) : l);
+ var c, l = n.map((e, t) => pG(pG({}, e), {}, { base: r[t] }));
+ return c = i === "vertical" ? wL().y(xG).x1(bG).x0((e) => e.base.x) : wL().x(bG).y1(xG).y0((e) => e.base.y), c.defined(yG).curve(o)(a ? l.filter(yG) : l);
}
- return (i === "vertical" && Z(r) ? vL().y(dG).x1(uG).x0(r) : Z(r) ? vL().x(uG).y1(dG).y0(r) : _L().x(uG).y(dG)).defined(cG).curve(o)(s);
-}, hG = (e) => {
- var { className: t, points: n, path: r, pathRef: i } = e, a = IH();
+ return (i === "vertical" && Z(r) ? wL().y(xG).x1(bG).x0(r) : Z(r) ? wL().x(bG).y1(xG).y0(r) : CL().x(bG).y(xG)).defined(vG).curve(o)(s);
+}, TG = (e) => {
+ var { className: t, points: n, path: r, pathRef: i } = e, a = KH();
if ((!n || !n.length) && !r) return null;
var o = {
type: e.type,
@@ -52422,13 +52695,13 @@ var sG = {
baseLine: e.baseLine,
layout: e.layout || a,
connectNulls: e.connectNulls
- }, s = n && n.length ? mG(o) : r;
- return /*#__PURE__*/ R.createElement("path", tG({}, KI(e), yR(e), {
- className: $l("recharts-curve", t),
+ }, s = n && n.length ? wG(o) : r;
+ return /*#__PURE__*/ R.createElement("path", dG({}, QI(e), TR(e), {
+ className: Ql("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
-}, gG = [
+}, EG = [
"x",
"y",
"top",
@@ -52437,16 +52710,16 @@ var sG = {
"height",
"className"
];
-function _G() {
- return _G = Object.assign ? Object.assign.bind() : function(e) {
+function DG() {
+ return DG = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, _G.apply(null, arguments);
+ }, DG.apply(null, arguments);
}
-function vG(e, t) {
+function OG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52456,30 +52729,30 @@ function vG(e, t) {
}
return n;
}
-function yG(e) {
+function kG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? vG(Object(n), !0).forEach(function(t) {
- bG(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vG(Object(n)).forEach(function(t) {
+ t % 2 ? OG(Object(n), !0).forEach(function(t) {
+ AG(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : OG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bG(e, t, n) {
- return (t = xG(t)) in e ? Object.defineProperty(e, t, {
+function AG(e, t, n) {
+ return (t = jG(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xG(e) {
- var t = SG(e, "string");
+function jG(e) {
+ var t = MG(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function SG(e, t) {
+function MG(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52489,16 +52762,16 @@ function SG(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function CG(e, t) {
+function NG(e, t) {
if (e == null) return {};
- var n, r, i = wG(e, t);
+ var n, r, i = PG(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 wG(e, t) {
+function PG(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -52507,8 +52780,8 @@ function wG(e, t) {
}
return n;
}
-var TG = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, EG = (e) => {
- var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = CG(e, gG), l = yG({
+var FG = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, IG = (e) => {
+ var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = NG(e, EG), l = kG({
x: t,
y: n,
top: r,
@@ -52516,14 +52789,14 @@ var TG = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, EG = (e) => {
width: a,
height: o
}, c);
- return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ R.createElement("path", _G({}, JI(l), {
- className: $l("recharts-cross", s),
- d: TG(t, n, a, o, r, i)
+ return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ R.createElement("path", DG({}, eL(l), {
+ className: Ql("recharts-cross", s),
+ d: FG(t, n, a, o, r, i)
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js
-function DG(e, t, n, r) {
+function LG(e, t, n, r) {
var i = r / 2;
return {
stroke: "none",
@@ -52536,7 +52809,7 @@ function DG(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/animation/util.js
-function OG(e, t) {
+function RG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52546,30 +52819,30 @@ function OG(e, t) {
}
return n;
}
-function kG(e) {
+function zG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? OG(Object(n), !0).forEach(function(t) {
- AG(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : OG(Object(n)).forEach(function(t) {
+ t % 2 ? RG(Object(n), !0).forEach(function(t) {
+ BG(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : RG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function AG(e, t, n) {
- return (t = jG(t)) in e ? Object.defineProperty(e, t, {
+function BG(e, t, n) {
+ return (t = VG(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function jG(e) {
- var t = MG(e, "string");
+function VG(e) {
+ var t = HG(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function MG(e, t) {
+function HG(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52579,10 +52852,10 @@ function MG(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var NG = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), PG = (e, t, n) => e.map((e) => `${NG(e)} ${t}ms ${n}`).join(","), FG = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), IG = (e, t) => Object.keys(t).reduce((n, r) => kG(kG({}, n), {}, { [r]: e(r, t[r]) }), {});
+var UG = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), WG = (e, t, n) => e.map((e) => `${UG(e)} ${t}ms ${n}`).join(","), GG = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), KG = (e, t) => Object.keys(t).reduce((n, r) => zG(zG({}, n), {}, { [r]: e(r, t[r]) }), {});
//#endregion
//#region node_modules/recharts/es6/animation/configUpdate.js
-function LG(e, t) {
+function qG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52592,30 +52865,30 @@ function LG(e, t) {
}
return n;
}
-function RG(e) {
+function JG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? LG(Object(n), !0).forEach(function(t) {
- zG(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : LG(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 zG(e, t, n) {
- return (t = BG(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 BG(e) {
- var t = VG(e, "string");
+function XG(e) {
+ var t = ZG(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function VG(e, t) {
+function ZG(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52625,51 +52898,51 @@ function VG(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var HG = (e, t, n) => e + (t - e) * n, UG = (e) => {
+var QG = (e, t, n) => e + (t - e) * n, $G = (e) => {
var { from: t, to: n } = e;
return t !== n;
-}, WG = (e, t, n) => {
- var r = IG((t, n) => {
- if (UG(n)) {
+}, eK = (e, t, n) => {
+ var r = KG((t, n) => {
+ if ($G(n)) {
var [r, i] = e(n.from, n.to, n.velocity);
- return RG(RG({}, n), {}, {
+ return JG(JG({}, n), {}, {
from: r,
velocity: i
});
}
return n;
}, t);
- return n < 1 ? IG((e, t) => UG(t) && r[e] != null ? RG(RG({}, t), {}, {
- velocity: HG(t.velocity, r[e].velocity, n),
- from: HG(t.from, r[e].from, n)
- }) : t, t) : WG(e, r, n - 1);
+ return n < 1 ? KG((e, t) => $G(t) && r[e] != null ? JG(JG({}, t), {}, {
+ velocity: QG(t.velocity, r[e].velocity, n),
+ from: QG(t.from, r[e].from, n)
+ }) : t, t) : eK(e, r, n - 1);
};
-function GG(e, t, n, r, i, a) {
- var o, s = r.reduce((n, r) => RG(RG({}, n), {}, { [r]: {
+function tK(e, t, n, r, i, a) {
+ var o, s = r.reduce((n, r) => JG(JG({}, n), {}, { [r]: {
from: e[r],
velocity: 0,
to: t[r]
- } }), {}), c = () => IG((e, t) => t.from, s), l = () => !Object.values(s).filter(UG).length, u = null, d = (r) => {
+ } }), {}), c = () => KG((e, t) => t.from, s), l = () => !Object.values(s).filter($G).length, u = null, d = (r) => {
o ||= r;
var f = (r - o) / n.dt;
- s = WG(n, s, f), i(RG(RG(RG({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
+ s = eK(n, s, f), i(JG(JG(JG({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
};
return () => (u = a.setTimeout(d), () => {
var e;
(e = u) == null || e();
});
}
-function KG(e, t, n, r, i, a, o) {
+function nK(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 : RG(RG({}, n), {}, { [r]: [i, a] });
+ return i == null || a == null ? n : JG(JG({}, n), {}, { [r]: [i, a] });
}, {}), l, u = (i) => {
l ||= i;
- var d = (i - l) / r, f = IG((e, t) => HG(...t, n(d)), c);
- if (a(RG(RG(RG({}, e), t), f)), d < 1) s = o.setTimeout(u);
+ var d = (i - l) / r, f = KG((e, t) => QG(...t, n(d)), c);
+ if (a(JG(JG(JG({}, e), t), f)), d < 1) s = o.setTimeout(u);
else {
- var p = IG((e, t) => HG(...t, n(1)), c);
- a(RG(RG(RG({}, e), t), p));
+ var p = KG((e, t) => QG(...t, n(1)), c);
+ a(JG(JG(JG({}, e), t), p));
}
};
return () => (s = o.setTimeout(u), () => {
@@ -52677,15 +52950,15 @@ function KG(e, t, n, r, i, a, o) {
(e = s) == null || e();
});
}
-var qG = (e, t, n, r, i, a) => {
- var o = FG(e, t);
- return n == null ? () => (i(RG(RG({}, e), t)), () => {}) : n.isStepper === !0 ? GG(e, t, n, o, i, a) : KG(e, t, n, r, o, i, a);
-}, JG = (e, t) => [
+var rK = (e, t, n, r, i, a) => {
+ var o = GG(e, t);
+ return n == null ? () => (i(JG(JG({}, e), t)), () => {}) : n.isStepper === !0 ? tK(e, t, n, o, i, a) : nK(e, t, n, r, o, i, a);
+}, iK = (e, t) => [
0,
3 * e,
3 * t - 6 * e,
3 * e - 3 * t + 1
-], YG = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), XG = (e, t) => (n) => YG(JG(e, t), n), ZG = (e, t) => (n) => YG([...JG(e, t).map((e, t) => e * t).slice(1), 0], n), QG = (e) => {
+], aK = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), oK = (e, t) => (n) => aK(iK(e, t), n), sK = (e, t) => (n) => aK([...iK(e, t).map((e, t) => e * t).slice(1), 0], n), cK = (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(",");
@@ -52697,7 +52970,7 @@ var qG = (e, t, n, r, i, a) => {
i[2],
i[3]
];
-}, $G = function() {
+}, lK = function() {
var e = [...arguments];
if (e.length === 1) switch (e[0]) {
case "linear": return [
@@ -52731,7 +53004,7 @@ var qG = (e, t, n, r, i, a) => {
1
];
default:
- var t = QG(e[0]);
+ var t = cK(e[0]);
if (t) return t;
}
return e.length === 4 ? e : [
@@ -52740,8 +53013,8 @@ var qG = (e, t, n, r, i, a) => {
1,
1
];
-}, eK = (e, t, n, r) => {
- var i = XG(e, n), a = XG(t, r), o = ZG(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
+}, uK = (e, t, n, r) => {
+ var i = oK(e, n), a = oK(t, r), o = sK(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);
@@ -52750,29 +53023,29 @@ var qG = (e, t, n, r, i, a) => {
return a(n);
};
return c.isStepper = !1, c;
-}, tK = function() {
- return eK(...$G(...arguments));
-}, nK = function() {
+}, dK = function() {
+ return uK(...lK(...arguments));
+}, fK = 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;
-}, rK = (e) => {
+}, pK = (e) => {
if (typeof e == "string") switch (e) {
case "ease":
case "ease-in-out":
case "ease-out":
case "ease-in":
- case "linear": return tK(e);
- case "spring": return nK();
- default: if (e.split("(")[0] === "cubic-bezier") return tK(e);
+ case "linear": return dK(e);
+ case "spring": return fK();
+ default: if (e.split("(")[0] === "cubic-bezier") return dK(e);
}
return typeof e == "function" ? e : null;
};
//#endregion
//#region node_modules/recharts/es6/animation/AnimationManager.js
-function iK(e) {
+function mK(e) {
var t, n = () => null, r = !1, i = null, a = (o) => {
if (!r) {
if (Array.isArray(o)) {
@@ -52803,7 +53076,7 @@ function iK(e) {
}
//#endregion
//#region node_modules/recharts/es6/animation/timeoutController.js
-var aK = class {
+var hK = 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));
@@ -52815,14 +53088,14 @@ var aK = class {
};
//#endregion
//#region node_modules/recharts/es6/animation/createDefaultAnimationManager.js
-function oK() {
- return iK(new aK());
+function gK() {
+ return mK(new hK());
}
//#endregion
//#region node_modules/recharts/es6/animation/useAnimationManager.js
-var sK = /*#__PURE__*/ (0, R.createContext)(oK);
-function cK(e, t) {
- var n = (0, R.useContext)(sK);
+var _K = /*#__PURE__*/ (0, R.createContext)(gK);
+function vK(e, t) {
+ var n = (0, R.useContext)(_K);
return (0, R.useMemo)(() => t ?? n(e), [
e,
t,
@@ -52831,7 +53104,7 @@ function cK(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/animation/JavascriptAnimate.js
-var lK = {
+var yK = {
begin: 0,
duration: 1e3,
easing: "ease",
@@ -52839,14 +53112,14 @@ var lK = {
canBegin: !0,
onAnimationEnd: () => {},
onAnimationStart: () => {}
-}, uK = { t: 0 }, dK = { t: 1 };
-function fK(e) {
- var t = SR(e, lK), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = GW(), d = n === "auto" ? !WW.isSsr && !u : n, f = cK(t.animationId, t.animationManager), [p, m] = (0, R.useState)(d ? uK : dK), h = (0, R.useRef)(null);
+}, bK = { t: 0 }, xK = { t: 1 };
+function SK(e) {
+ var t = OR(e, yK), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = tG(), d = n === "auto" ? !eG.isSsr && !u : n, f = vK(t.animationId, t.animationManager), [p, m] = (0, R.useState)(d ? bK : xK), h = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
- d || m(dK);
+ d || m(xK);
}, [d]), (0, R.useEffect)(() => {
- if (!d || !r) return fR;
- var e = qG(uK, dK, rK(a), i, m, f.getTimeoutController());
+ if (!d || !r) return vR;
+ var e = rK(bK, xK, pK(a), i, m, f.getTimeoutController());
return f.start([
c,
o,
@@ -52871,13 +53144,13 @@ function fK(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/useAnimationId.js
-function pK(e) {
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, R.useRef)(iR(t)), r = (0, R.useRef)(e);
- return r.current !== e && (n.current = iR(t), r.current = e), n.current;
+function CK(e) {
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, R.useRef)(uR(t)), r = (0, R.useRef)(e);
+ return r.current !== e && (n.current = uR(t), r.current = e), n.current;
}
//#endregion
//#region node_modules/recharts/es6/shape/Rectangle.js
-var mK = ["radius"], hK = ["radius"], gK, _K, vK, yK, bK, xK, SK, CK, j_e, M_e;
+var M_e = ["radius"], N_e = ["radius"], P_e, F_e, I_e, L_e, R_e, z_e, B_e, V_e, H_e, U_e;
function wK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -52892,26 +53165,26 @@ function TK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? wK(Object(n), !0).forEach(function(t) {
- N_e(e, t, n[t]);
+ W_e(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function N_e(e, t, n) {
- return (t = P_e(t)) in e ? Object.defineProperty(e, t, {
+function W_e(e, t, n) {
+ return (t = G_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function P_e(e) {
- var t = F_e(e, "string");
+function G_e(e) {
+ var t = K_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function F_e(e, t) {
+function K_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52932,14 +53205,14 @@ function EK() {
}
function DK(e, t) {
if (e == null) return {};
- var n, r, i = I_e(e, t);
+ var n, r, i = q_e(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function I_e(e, t) {
+function q_e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -52952,7 +53225,7 @@ function OK(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
var kK = (e, t, n, r, i) => {
- var a = QL(n), o = QL(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 a = iR(n), o = iR(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,
@@ -52963,44 +53236,44 @@ var kK = (e, t, n, r, i) => {
var h = i[p] ?? 0;
f[p] = h > s ? s : h;
}
- d = $L(gK ||= OK([
+ d = aR(P_e ||= OK([
"M",
",",
""
- ]), e, t + c * f[0]), f[0] > 0 && (d += $L(_K ||= OK([
+ ]), e, t + c * f[0]), f[0] > 0 && (d += aR(F_e ||= OK([
"A ",
",",
",0,0,",
",",
",",
""
- ]), f[0], f[0], u, e + l * f[0], t)), d += $L(vK ||= OK([
+ ]), f[0], f[0], u, e + l * f[0], t)), d += aR(I_e ||= OK([
"L ",
",",
""
- ]), e + n - l * f[1], t), f[1] > 0 && (d += $L(yK ||= OK([
+ ]), e + n - l * f[1], t), f[1] > 0 && (d += aR(L_e ||= OK([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += $L(bK ||= OK([
+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += aR(R_e ||= OK([
"L ",
",",
""
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += $L(xK ||= OK([
+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += aR(z_e ||= OK([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += $L(SK ||= OK([
+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += aR(B_e ||= OK([
"L ",
",",
""
- ]), e + l * f[3], t + r), f[3] > 0 && (d += $L(CK ||= OK([
+ ]), e + l * f[3], t + r), f[3] > 0 && (d += aR(V_e ||= OK([
"A ",
",",
",0,0,",
@@ -53010,8 +53283,8 @@ var kK = (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 = $L(j_e ||= OK(/* @__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 = $L(M_e ||= OK([
+ d = aR(H_e ||= OK(/* @__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 = aR(U_e ||= OK([
"M ",
",",
" h ",
@@ -53032,14 +53305,14 @@ var kK = (e, t, n, r, i) => {
animationDuration: 1500,
animationEasing: "ease"
}, jK = (e) => {
- var t = SR(e, AK), n = (0, R.useRef)(null), [r, i] = (0, R.useState)(-1);
+ var t = OR(e, AK), n = (0, R.useRef)(null), [r, i] = (0, R.useState)(-1);
(0, R.useEffect)(() => {
if (n.current && n.current.getTotalLength) try {
var e = n.current.getTotalLength();
e && i(e);
} catch {}
}, []);
- var { x: a, y: o, width: s, height: c, radius: l, className: u } = t, { animationEasing: d, animationDuration: f, animationBegin: p, isAnimationActive: m, isUpdateAnimationActive: h } = t, g = (0, R.useRef)(s), _ = (0, R.useRef)(c), v = (0, R.useRef)(a), y = (0, R.useRef)(o), b = pK((0, R.useMemo)(() => ({
+ var { x: a, y: o, width: s, height: c, radius: l, className: u } = t, { animationEasing: d, animationDuration: f, animationBegin: p, isAnimationActive: m, isUpdateAnimationActive: h } = t, g = (0, R.useRef)(s), _ = (0, R.useRef)(c), v = (0, R.useRef)(a), y = (0, R.useRef)(o), b = CK((0, R.useMemo)(() => ({
x: a,
y: o,
width: s,
@@ -53053,21 +53326,21 @@ var kK = (e, t, n, r, i) => {
l
]), "rectangle-");
if (a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0) return null;
- var x = $l("recharts-rectangle", u);
+ var x = Ql("recharts-rectangle", u);
if (!h) {
- var S = JI(t), { radius: C } = S, w = DK(S, mK);
+ var S = eL(t), { radius: C } = S, w = DK(S, M_e);
return /*#__PURE__*/ R.createElement("path", EK({}, w, {
- x: QL(a),
- y: QL(o),
- width: QL(s),
- height: QL(c),
+ x: iR(a),
+ y: iR(o),
+ width: iR(s),
+ height: iR(c),
radius: typeof l == "number" ? l : void 0,
className: x,
d: kK(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 = PG(["strokeDasharray"], f, typeof d == "string" ? d : AK.animationEasing);
- return /*#__PURE__*/ R.createElement(fK, {
+ 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 = WG(["strokeDasharray"], f, typeof d == "string" ? d : AK.animationEasing);
+ return /*#__PURE__*/ R.createElement(SK, {
animationId: b,
key: b,
canBegin: r > 0,
@@ -53076,12 +53349,12 @@ var kK = (e, t, n, r, i) => {
isActive: h,
begin: p
}, (e) => {
- var r = sR(T, s, e), i = sR(E, c, e), u = sR(D, a, e), d = sR(O, o, e);
+ var r = pR(T, s, e), i = pR(E, c, e), u = pR(D, a, e), d = pR(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 = JI(t), { radius: h } = p, b = DK(p, hK);
+ } : { strokeDasharray: k } : { strokeDasharray: A }, p = eL(t), { radius: h } = p, b = DK(p, N_e);
return /*#__PURE__*/ R.createElement("path", EK({}, b, {
radius: typeof l == "number" ? l : void 0,
className: x,
@@ -53107,26 +53380,26 @@ function NK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? MK(Object(n), !0).forEach(function(t) {
- L_e(e, t, n[t]);
+ J_e(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : MK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function L_e(e, t, n) {
- return (t = R_e(t)) in e ? Object.defineProperty(e, t, {
+function J_e(e, t, n) {
+ return (t = Y_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 = z_e(e, "string");
+function Y_e(e) {
+ var t = X_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function z_e(e, t) {
+function X_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53136,10 +53409,10 @@ function z_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var PK = Math.PI / 180, FK = (e) => e * Math.PI / 180, B_e = (e) => e * 180 / Math.PI, IK = (e, t, n, r) => ({
+var PK = Math.PI / 180, FK = (e) => e * Math.PI / 180, Z_e = (e) => e * 180 / Math.PI, IK = (e, t, n, r) => ({
x: e + Math.cos(-PK * r) * n,
y: t + Math.sin(-PK * r) * n
-}), V_e = function(e, t) {
+}), Q_e = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
top: 0,
right: 0,
@@ -53150,11 +53423,11 @@ var PK = Math.PI / 180, FK = (e) => e * Math.PI / 180, B_e = (e) => e * 180 / Ma
brushBottom: 0
};
return Math.min(Math.abs(e - (n.left || 0) - (n.right || 0)), Math.abs(t - (n.top || 0) - (n.bottom || 0))) / 2;
-}, H_e = (e, t) => {
+}, $_e = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return Math.sqrt((n - i) ** 2 + (r - a) ** 2);
-}, U_e = (e, t) => {
- var { x: n, y: r } = e, { cx: i, cy: a } = t, o = H_e({
+}, eve = (e, t) => {
+ var { x: n, y: r } = e, { cx: i, cy: a } = t, o = $_e({
x: n,
y: r
}, {
@@ -53168,25 +53441,25 @@ var PK = Math.PI / 180, FK = (e) => e * Math.PI / 180, B_e = (e) => e * 180 / Ma
var s = (n - i) / o, c = Math.acos(s);
return r > a && (c = 2 * Math.PI - c), {
radius: o,
- angle: B_e(c),
+ angle: Z_e(c),
angleInRadian: c
};
-}, W_e = (e) => {
+}, tve = (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
};
-}, G_e = (e, t) => {
+}, nve = (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;
-}, K_e = (e, t) => {
- var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = U_e({
+}, rve = (e, t) => {
+ var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = eve({
x: n,
y: r
}, t), { innerRadius: o, outerRadius: s } = t;
if (i < o || i > s || i === 0) return null;
- var { startAngle: c, endAngle: l } = W_e(t), u = a, d;
+ var { startAngle: c, endAngle: l } = tve(t), u = a, d;
if (c <= l) {
for (; u > l;) u -= 360;
for (; u < c;) u += 360;
@@ -53198,7 +53471,7 @@ var PK = Math.PI / 180, FK = (e) => e * Math.PI / 180, B_e = (e) => e * 180 / Ma
}
return d ? NK(NK({}, t), {}, {
radius: i,
- angle: G_e(u, t)
+ angle: nve(u, t)
}) : null;
};
//#endregion
@@ -53216,7 +53489,7 @@ function LK(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Sector.js
-var q_e, J_e, Y_e, X_e, Z_e, Q_e, $_e;
+var ive, ave, ove, sve, cve, lve, uve;
function RK() {
return RK = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -53229,7 +53502,7 @@ function RK() {
function zK(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var eve = (e, t) => eR(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (e) => {
+var dve = (e, t) => oR(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (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) / PK, d = c ? i : i + a * u, f = IK(t, n, l, d), p = IK(t, n, r, d), m = c ? i - a * u : i;
return {
center: f,
@@ -53238,7 +53511,7 @@ var eve = (e, t) => eR(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (e) =>
theta: u
};
}, VK = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = eve(a, o), c = a + s, l = IK(t, n, i, a), u = IK(t, n, i, c), d = $L(q_e ||= zK([
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = dve(a, o), c = a + s, l = IK(t, n, i, a), u = IK(t, n, i, c), d = aR(ive ||= zK([
"M ",
",",
"\n A ",
@@ -53251,7 +53524,7 @@ var eve = (e, t) => eR(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (e) =>
]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);
if (r > 0) {
var f = IK(t, n, r, a), p = IK(t, n, r, c);
- d += $L(J_e ||= zK([
+ d += aR(ave ||= zK([
"L ",
",",
"\n A ",
@@ -53262,14 +53535,14 @@ var eve = (e, t) => eR(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (e) =>
",",
" Z"
]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);
- } else d += $L(Y_e ||= zK([
+ } else d += aR(ove ||= zK([
"L ",
",",
" Z"
]), t, n);
return d;
-}, tve = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = eR(l - c), { circleTangency: d, lineTangency: f, theta: p } = BK({
+}, fve = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = oR(l - c), { circleTangency: d, lineTangency: f, theta: p } = BK({
cx: t,
cy: n,
radius: i,
@@ -53286,7 +53559,7 @@ var eve = (e, t) => eR(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (e) =>
cornerRadius: a,
cornerIsExternal: s
}), _ = s ? Math.abs(c - l) : Math.abs(c - l) - p - g;
- if (_ < 0) return o ? $L(X_e ||= zK([
+ if (_ < 0) return o ? aR(sve ||= zK([
"M ",
",",
"\n a",
@@ -53304,7 +53577,7 @@ var eve = (e, t) => eR(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (e) =>
startAngle: c,
endAngle: l
});
- var v = $L(Z_e ||= zK([
+ var v = aR(cve ||= zK([
"M ",
",",
"\n A",
@@ -53346,7 +53619,7 @@ var eve = (e, t) => eR(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (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 += $L(Q_e ||= zK([
+ v += aR(lve ||= zK([
"L",
",",
"\n A",
@@ -53367,13 +53640,13 @@ var eve = (e, t) => eR(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (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 += $L($_e ||= zK([
+ } else v += aR(uve ||= zK([
"L",
",",
"Z"
]), t, n);
return v;
-}, nve = {
+}, pve = {
cx: 0,
cy: 0,
innerRadius: 0,
@@ -53384,9 +53657,9 @@ var eve = (e, t) => eR(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (e) =>
forceCornerRadius: !1,
cornerIsExternal: !1
}, HK = (e) => {
- var t = SR(e, nve), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
+ var t = OR(e, pve), { 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 = $l("recharts-sector", d), p = a - i, m = aR(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? tve({
+ var f = Ql("recharts-sector", d), p = a - i, m = dR(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? fve({
cx: n,
cy: r,
innerRadius: i,
@@ -53404,14 +53677,14 @@ var eve = (e, t) => eR(t - e) * Math.min(Math.abs(t - e), 359.999), BK = (e) =>
startAngle: l,
endAngle: u
});
- return /*#__PURE__*/ R.createElement("path", RK({}, JI(t), {
+ return /*#__PURE__*/ R.createElement("path", RK({}, eL(t), {
className: f,
d: h
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js
-function rve(e, t, n) {
+function mve(e, t, n) {
if (e === "horizontal") return [{
x: t.x,
y: n.top
@@ -53426,7 +53699,7 @@ function rve(e, t, n) {
x: n.left + n.width,
y: t.y
}];
- if (vR(t)) {
+ if (wR(t)) {
if (e === "centric") {
var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = IK(r, i, a, s), l = IK(r, i, o, s);
return [{
@@ -53442,18 +53715,18 @@ function rve(e, t, n) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs
-function ive(e) {
- return JL(e) ? NaN : Number(e);
+function hve(e) {
+ return eR(e) ? NaN : Number(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs
function UK(e) {
- return e ? (e = ive(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
+ return e ? (e = hve(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 WK(e, t, n) {
- n && typeof n != "number" && tz(e, t, n) && (t = n = void 0), e = UK(e), t === void 0 ? (t = e, e = 0) : t = UK(t), n = n === void 0 ? e < t ? 1 : -1 : UK(n);
+ n && typeof n != "number" && sz(e, t, n) && (t = n = void 0), e = UK(e), t === void 0 ? (t = e, e = 0) : t = UK(t), n = n === void 0 ? e < t ? 1 : -1 : UK(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;
@@ -53474,7 +53747,7 @@ var GK = (e) => e.chartData, KK = $([GK], (e) => {
function YK(e) {
if (Array.isArray(e) && e.length === 2) {
var [t, n] = e;
- if (lV(t) && lV(n)) return !0;
+ if (hV(t) && hV(n)) return !0;
}
return !1;
}
@@ -53484,15 +53757,15 @@ function XK(e, t, n) {
function ZK(e, t) {
if (t && typeof e != "function" && Array.isArray(e) && e.length === 2) {
var [n, r] = e, i, a;
- if (lV(n)) i = n;
+ if (hV(n)) i = n;
else if (typeof n == "function") return;
- if (lV(r)) a = r;
+ if (hV(r)) a = r;
else if (typeof r == "function") return;
var o = [i, a];
if (YK(o)) return o;
}
}
-function ave(e, t, n) {
+function gve(e, t, n) {
if (!(!n && t == null)) {
if (typeof e == "function" && t != null) try {
var r = e(t, n);
@@ -53505,8 +53778,8 @@ function ave(e, t, n) {
else if (typeof i == "function") try {
t != null && (o = i(t?.[0]));
} catch {}
- else if (typeof i == "string" && DV.test(i)) {
- var c = DV.exec(i);
+ else if (typeof i == "string" && LV.test(i)) {
+ var c = LV.exec(i);
if (c == null || c[1] == null || t == null) o = void 0;
else {
var l = +c[1];
@@ -53518,8 +53791,8 @@ function ave(e, t, n) {
else if (typeof a == "function") try {
t != null && (s = a(t?.[1]));
} catch {}
- else if (typeof a == "string" && OV.test(a)) {
- var u = OV.exec(a);
+ else if (typeof a == "string" && RV.test(a)) {
+ var u = RV.exec(a);
if (u == null || u[1] == null || t == null) s = void 0;
else {
var d = +u[1];
@@ -53939,7 +54212,7 @@ var tq = (e) => {
}
var u = r[c] ?? 1, d = new QK.default(u).mul(o);
return t ? d : new QK.default(Math.ceil(d.toNumber()));
-}, ove = (e, t, n) => {
+}, _ve = (e, t, n) => {
var r = new QK.default(1), i = new QK.default(e);
if (!i.isint() && n) {
var a = Math.abs(e);
@@ -53968,7 +54241,7 @@ var tq = (e) => {
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 ove(s, r, i);
+ if (s === c) return _ve(s, r, i);
var { step: u, tickMin: d, tickMax: f } = iq(s, c, o, i, 0, a === "snap125" ? rq : nq), p = eq(d, f.add(new QK.default(.1).mul(u)), u);
return t > n ? p.reverse() : p;
}, oq = function(e, t) {
@@ -53977,7 +54250,7 @@ var tq = (e) => {
if (o === s) return [o];
var c = a === "snap125" ? rq : nq, l = Math.max(t, 2), u = c(new QK.default(s).sub(o).div(l - 1), i, 0), d = [...eq(new QK.default(o), new QK.default(s), u), s];
return i === !1 && (d = d.map((e) => Math.round(e))), n > r ? d.reverse() : d;
-}, sq = (e) => e.rootProps.maxBarSize, cq = (e) => e.rootProps.barGap, lq = (e) => e.rootProps.barCategoryGap, uq = (e) => e.rootProps.barSize, dq = (e) => e.rootProps.stackOffset, fq = (e) => e.rootProps.reverseStackOrder, pq = (e) => e.options.chartName, mq = (e) => e.rootProps.syncId, hq = (e) => e.rootProps.syncMethod, gq = (e) => e.options.eventEmitter, sve = (e) => e.rootProps.baseValue, _q = {
+}, sq = (e) => e.rootProps.maxBarSize, cq = (e) => e.rootProps.barGap, lq = (e) => e.rootProps.barCategoryGap, uq = (e) => e.rootProps.barSize, dq = (e) => e.rootProps.stackOffset, fq = (e) => e.rootProps.reverseStackOrder, pq = (e) => e.options.chartName, mq = (e) => e.rootProps.syncId, hq = (e) => e.rootProps.syncMethod, gq = (e) => e.options.eventEmitter, vve = (e) => e.rootProps.baseValue, _q = {
grid: -100,
barBackground: -50,
area: 100,
@@ -54039,7 +54312,7 @@ var tq = (e) => {
//#region node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.js
function xq(e, t, n) {
if (n !== "auto") return n;
- if (e != null) return mV(e, t) ? "category" : "number";
+ if (e != null) return wV(e, t) ? "category" : "number";
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/polarAxisSelectors.js
@@ -54057,26 +54330,26 @@ function Cq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? Sq(Object(n), !0).forEach(function(t) {
- cve(e, t, n[t]);
+ yve(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Sq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function cve(e, t, n) {
- return (t = lve(t)) in e ? Object.defineProperty(e, t, {
+function yve(e, t, n) {
+ return (t = bve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function lve(e) {
- var t = uve(e, "string");
+function bve(e) {
+ var t = xve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function uve(e, t) {
+function xve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54122,45 +54395,45 @@ var wq = {
niceTicks: "auto"
}, Eq = $([(e, t) => {
if (t != null) return e.polarAxis.angleAxis[t];
-}, RH], (e, t) => {
+}, JH], (e, t) => {
if (e != null) return e;
var n = xq(t, "angleAxis", wq.type) ?? "category";
return Cq(Cq({}, wq), {}, { type: n });
-}), Dq = $([(e, t) => e.polarAxis.radiusAxis[t], RH], (e, t) => {
+}), Dq = $([(e, t) => e.polarAxis.radiusAxis[t], JH], (e, t) => {
if (e != null) return e;
var n = xq(t, "radiusAxis", Tq.type) ?? "category";
return Cq(Cq({}, Tq), {}, { type: n });
}), Oq = (e) => e.polarOptions, kq = $([
- PV,
- FV,
- ZV
-], V_e), Aq = $([Oq, kq], (e, t) => {
- if (e != null) return aR(e.innerRadius, t, 0);
+ WV,
+ GV,
+ sH
+], Q_e), Aq = $([Oq, kq], (e, t) => {
+ if (e != null) return dR(e.innerRadius, t, 0);
}), jq = $([Oq, kq], (e, t) => {
- if (e != null) return aR(e.outerRadius, t, t * .8);
+ if (e != null) return dR(e.outerRadius, t, t * .8);
}), Mq = $([Oq], (e) => {
if (e == null) return [0, 0];
var { startAngle: t, endAngle: n } = e;
return [t, n];
-}), dve = $([Eq, Mq], bq), Nq = $([
+}), Sve = $([Eq, Mq], bq), Nq = $([
kq,
Aq,
jq
], (e, t, n) => {
if (e != null && t != null && n != null) return [t, n];
-}), fve = $([Dq, Nq], bq), Pq = $([
- FH,
+}), Cve = $([Dq, Nq], bq), Pq = $([
+ GH,
Oq,
Aq,
jq,
- PV,
- FV
+ WV,
+ GV
], (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: aR(o, i, i / 2),
- cy: aR(s, a, a / 2),
+ cx: dR(o, i, i / 2),
+ cy: dR(s, a, a / 2),
innerRadius: n,
outerRadius: r,
startAngle: c,
@@ -54183,7 +54456,7 @@ function Rq(e, t, n) {
if (t != null && t.length !== 0) {
var n = Lq(e);
t.forEach((t, r) => {
- var s = a == null || i ? r : String(pV(t, a, null)), c = pV(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
+ var s = a == null || i ? r : String(SV(t, a, null)), c = SV(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
Object.assign(l, { [n]: c }), o.set(s, l);
});
}
@@ -54202,7 +54475,7 @@ var Bq = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] &&
function Vq(e, t) {
return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;
}
-function pve(e, t) {
+function wve(e, t) {
if (e.length === t.length) {
for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
return !0;
@@ -54212,7 +54485,7 @@ function pve(e, t) {
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js
var Hq = (e) => {
- var t = FH(e);
+ var t = GH(e);
return t === "horizontal" ? "xAxis" : t === "vertical" ? "yAxis" : t === "centric" ? "angleAxis" : "radiusAxis";
}, Uq = (e) => e.tooltip.settings.axisId;
//#endregion
@@ -54264,7 +54537,7 @@ var Gq = (e, t) => {
if (!YK(t)) {
for (var n, r, i = 0; i < t.length; i++) {
var a = t[i];
- lV(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
+ hV(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;
}
@@ -54281,7 +54554,7 @@ function Kq(e, t) {
//#region node_modules/d3-array/src/bisector.js
function qq(e) {
let t = e, n = e;
- e.length === 1 && (t = (t, n) => e(t) - n, n = mve(e));
+ e.length === 1 && (t = (t, n) => e(t) - n, n = Tve(e));
function r(e, t, r, i) {
for (r ??= 0, i ??= e.length; r < i;) {
let a = r + i >>> 1;
@@ -54307,7 +54580,7 @@ function qq(e) {
right: i
};
}
-function mve(e) {
+function Tve(e) {
return (t, n) => Kq(e(t), n);
}
//#endregion
@@ -54315,7 +54588,7 @@ function mve(e) {
function Jq(e) {
return e === null ? NaN : +e;
}
-function* hve(e, t) {
+function* Eve(e, t) {
if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);
else {
let n = -1;
@@ -54329,7 +54602,7 @@ Yq.left, qq(Jq).center;
//#endregion
//#region node_modules/internmap/src/index.js
var Zq = class extends Map {
- constructor(e, t = vve) {
+ constructor(e, t = kve) {
if (super(), Object.defineProperties(this, {
_intern: { value: /* @__PURE__ */ new Map() },
_key: { value: t }
@@ -54342,25 +54615,25 @@ var Zq = class extends Map {
return super.has(Qq(this, e));
}
set(e, t) {
- return super.set(gve(this, e), t);
+ return super.set(Dve(this, e), t);
}
delete(e) {
- return super.delete(_ve(this, e));
+ return super.delete(Ove(this, e));
}
};
function Qq({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : n;
}
-function gve({ _intern: e, _key: t }, n) {
+function Dve({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : (e.set(r, n), n);
}
-function _ve({ _intern: e, _key: t }, n) {
+function Ove({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) && (n = e.get(n), e.delete(r)), n;
}
-function vve(e) {
+function kve(e) {
return typeof e == "object" && e ? e.valueOf() : e;
}
//#endregion
@@ -54433,15 +54706,15 @@ function cJ(e, t, n) {
}
//#endregion
//#region node_modules/d3-array/src/quantile.js
-function yve(e, t, n) {
- if (e = Float64Array.from(hve(e, n)), r = e.length) {
+function Ave(e, t, n) {
+ if (e = Float64Array.from(Eve(e, n)), r = e.length) {
if ((t = +t) <= 0 || r < 2) return oJ(e);
if (t >= 1) return aJ(e);
var r, i = (r - 1) * t, a = Math.floor(i), o = aJ(sJ(e, a).subarray(0, a + 1));
return o + (oJ(e.subarray(a + 1)) - o) * (i - a);
}
}
-function bve(e, t, n = Jq) {
+function jve(e, t, n = Jq) {
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);
@@ -54451,7 +54724,7 @@ function bve(e, t, n = Jq) {
}
//#endregion
//#region node_modules/d3-array/src/range.js
-function xve(e, t, n) {
+function Mve(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;
@@ -54523,7 +54796,7 @@ function mJ() {
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 = xve(e).map(function(e) {
+ var m = Mve(e).map(function(e) {
return f + a * e;
});
return n(d ? m.reverse() : m);
@@ -54558,7 +54831,7 @@ function hJ(e) {
return hJ(t());
}, e;
}
-function Sve() {
+function Nve() {
return hJ(mJ.apply(null, arguments).paddingInner(1));
}
//#endregion
@@ -54574,7 +54847,7 @@ function _J(e, t) {
//#endregion
//#region node_modules/d3-color/src/color.js
function vJ() {}
-var yJ = .7, bJ = 1 / yJ, xJ = "\\s*([+-]?\\d+)\\s*", SJ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", CJ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Cve = /^#([0-9a-f]{3,8})$/, wve = RegExp(`^rgb\\(${xJ},${xJ},${xJ}\\)$`), Tve = RegExp(`^rgb\\(${CJ},${CJ},${CJ}\\)$`), Eve = RegExp(`^rgba\\(${xJ},${xJ},${xJ},${SJ}\\)$`), Dve = RegExp(`^rgba\\(${CJ},${CJ},${CJ},${SJ}\\)$`), Ove = RegExp(`^hsl\\(${SJ},${CJ},${CJ}\\)$`), kve = RegExp(`^hsla\\(${SJ},${CJ},${CJ},${SJ}\\)$`), wJ = {
+var yJ = .7, bJ = 1 / yJ, xJ = "\\s*([+-]?\\d+)\\s*", SJ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", CJ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Pve = /^#([0-9a-f]{3,8})$/, Fve = RegExp(`^rgb\\(${xJ},${xJ},${xJ}\\)$`), Ive = RegExp(`^rgb\\(${CJ},${CJ},${CJ}\\)$`), Lve = RegExp(`^rgba\\(${xJ},${xJ},${xJ},${SJ}\\)$`), Rve = RegExp(`^rgba\\(${CJ},${CJ},${CJ},${SJ}\\)$`), zve = RegExp(`^hsl\\(${SJ},${CJ},${CJ}\\)$`), Bve = RegExp(`^hsla\\(${SJ},${CJ},${CJ},${SJ}\\)$`), wJ = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
@@ -54733,18 +55006,18 @@ gJ(vJ, DJ, {
},
hex: TJ,
formatHex: TJ,
- formatHex8: Ave,
- formatHsl: jve,
+ formatHex8: Vve,
+ formatHsl: Hve,
formatRgb: EJ,
toString: EJ
});
function TJ() {
return this.rgb().formatHex();
}
-function Ave() {
+function Vve() {
return this.rgb().formatHex8();
}
-function jve() {
+function Hve() {
return RJ(this).formatHsl();
}
function EJ() {
@@ -54752,7 +55025,7 @@ function EJ() {
}
function DJ(e) {
var t, n;
- return e = (e + "").trim().toLowerCase(), (t = Cve.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? OJ(t) : n === 3 ? new jJ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? kJ(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? kJ(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 = wve.exec(e)) ? new jJ(t[1], t[2], t[3], 1) : (t = Tve.exec(e)) ? new jJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Eve.exec(e)) ? kJ(t[1], t[2], t[3], t[4]) : (t = Dve.exec(e)) ? kJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Ove.exec(e)) ? LJ(t[1], t[2] / 100, t[3] / 100, 1) : (t = kve.exec(e)) ? LJ(t[1], t[2] / 100, t[3] / 100, t[4]) : wJ.hasOwnProperty(e) ? OJ(wJ[e]) : e === "transparent" ? new jJ(NaN, NaN, NaN, 0) : null;
+ return e = (e + "").trim().toLowerCase(), (t = Pve.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? OJ(t) : n === 3 ? new jJ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? kJ(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? kJ(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 = Fve.exec(e)) ? new jJ(t[1], t[2], t[3], 1) : (t = Ive.exec(e)) ? new jJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Lve.exec(e)) ? kJ(t[1], t[2], t[3], t[4]) : (t = Rve.exec(e)) ? kJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = zve.exec(e)) ? LJ(t[1], t[2] / 100, t[3] / 100, 1) : (t = Bve.exec(e)) ? LJ(t[1], t[2] / 100, t[3] / 100, t[4]) : wJ.hasOwnProperty(e) ? OJ(wJ[e]) : e === "transparent" ? new jJ(NaN, NaN, NaN, 0) : null;
}
function OJ(e) {
return new jJ(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
@@ -54760,11 +55033,11 @@ function OJ(e) {
function kJ(e, t, n, r) {
return r <= 0 && (e = t = n = NaN), new jJ(e, t, n, r);
}
-function Mve(e) {
+function Uve(e) {
return e instanceof vJ || (e = DJ(e)), e ? (e = e.rgb(), new jJ(e.r, e.g, e.b, e.opacity)) : new jJ();
}
function AJ(e, t, n, r) {
- return arguments.length === 1 ? Mve(e) : new jJ(e, t, n, r ?? 1);
+ return arguments.length === 1 ? Uve(e) : new jJ(e, t, n, r ?? 1);
}
function jJ(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
@@ -54787,14 +55060,14 @@ gJ(jJ, AJ, _J(vJ, {
},
hex: MJ,
formatHex: MJ,
- formatHex8: Nve,
+ formatHex8: Wve,
formatRgb: NJ,
toString: NJ
}));
function MJ() {
return `#${IJ(this.r)}${IJ(this.g)}${IJ(this.b)}`;
}
-function Nve() {
+function Wve() {
return `#${IJ(this.r)}${IJ(this.g)}${IJ(this.b)}${IJ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
}
function NJ() {
@@ -54821,13 +55094,13 @@ function RJ(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 zJ(o, s, c, e.opacity);
}
-function Pve(e, t, n, r) {
+function Gve(e, t, n, r) {
return arguments.length === 1 ? RJ(e) : new zJ(e, t, n, r ?? 1);
}
function zJ(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
}
-gJ(zJ, Pve, _J(vJ, {
+gJ(zJ, Gve, _J(vJ, {
brighter(e) {
return e = e == null ? bJ : bJ ** +e, new zJ(this.h, this.s, this.l * e, this.opacity);
},
@@ -54863,29 +55136,29 @@ function HJ(e, t, n) {
var UJ = (e) => () => e;
//#endregion
//#region node_modules/d3-interpolate/src/color.js
-function Fve(e, t) {
+function Kve(e, t) {
return function(n) {
return e + n * t;
};
}
-function Ive(e, t, n) {
+function qve(e, t, n) {
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
return (e + r * t) ** +n;
};
}
-function Lve(e) {
+function Jve(e) {
return (e = +e) == 1 ? WJ : function(t, n) {
- return n - t ? Ive(t, n, e) : UJ(isNaN(t) ? n : t);
+ return n - t ? qve(t, n, e) : UJ(isNaN(t) ? n : t);
};
}
function WJ(e, t) {
var n = t - e;
- return n ? Fve(e, n) : UJ(isNaN(e) ? t : e);
+ return n ? Kve(e, n) : UJ(isNaN(e) ? t : e);
}
//#endregion
//#region node_modules/d3-interpolate/src/rgb.js
var GJ = (function e(t) {
- var n = Lve(t);
+ var n = Jve(t);
function r(e, t) {
var r = n((e = AJ(e)).r, (t = AJ(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = WJ(e.opacity, t.opacity);
return function(t) {
@@ -54896,7 +55169,7 @@ var GJ = (function e(t) {
})(1);
//#endregion
//#region node_modules/d3-interpolate/src/numberArray.js
-function Rve(e, t) {
+function Yve(e, t) {
t ||= [];
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
return function(a) {
@@ -54904,12 +55177,12 @@ function Rve(e, t) {
return r;
};
}
-function zve(e) {
+function Xve(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/d3-interpolate/src/array.js
-function Bve(e, t) {
+function Zve(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] = YJ(e[o], t[o]);
for (; o < n; ++o) a[o] = t[o];
@@ -54920,7 +55193,7 @@ function Bve(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/date.js
-function Vve(e, t) {
+function Qve(e, t) {
var n = /* @__PURE__ */ new Date();
return e = +e, t = +t, function(r) {
return n.setTime(e * (1 - r) + t * r), n;
@@ -54935,7 +55208,7 @@ function KJ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/object.js
-function Hve(e, t) {
+function $ve(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] = YJ(e[i], t[i]) : r[i] = t[i];
return function(e) {
@@ -54946,23 +55219,23 @@ function Hve(e, t) {
//#endregion
//#region node_modules/d3-interpolate/src/string.js
var qJ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, JJ = new RegExp(qJ.source, "g");
-function Uve(e) {
+function eye(e) {
return function() {
return e;
};
}
-function Wve(e) {
+function tye(e) {
return function(t) {
return e(t) + "";
};
}
-function Gve(e, t) {
+function nye(e, t) {
var n = qJ.lastIndex = JJ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
for (e += "", t += ""; (r = qJ.exec(e)) && (i = JJ.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: KJ(r, i)
})), n = JJ.lastIndex;
- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? Wve(c[0].x) : Uve(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] ? tye(c[0].x) : eye(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("");
});
@@ -54971,7 +55244,7 @@ function Gve(e, t) {
//#region node_modules/d3-interpolate/src/value.js
function YJ(e, t) {
var n = typeof t, r;
- return t == null || n === "boolean" ? UJ(t) : (n === "number" ? KJ : n === "string" ? (r = DJ(t)) ? (t = r, GJ) : Gve : t instanceof DJ ? GJ : t instanceof Date ? Vve : zve(t) ? Rve : Array.isArray(t) ? Bve : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? Hve : KJ)(e, t);
+ return t == null || n === "boolean" ? UJ(t) : (n === "number" ? KJ : n === "string" ? (r = DJ(t)) ? (t = r, GJ) : nye : t instanceof DJ ? GJ : t instanceof Date ? Qve : Xve(t) ? Yve : Array.isArray(t) ? Zve : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? $ve : KJ)(e, t);
}
//#endregion
//#region node_modules/d3-interpolate/src/round.js
@@ -54982,7 +55255,7 @@ function XJ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/piecewise.js
-function Kve(e, t) {
+function rye(e, t) {
t === void 0 && (t = e, e = YJ);
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) {
@@ -54992,7 +55265,7 @@ function Kve(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/constant.js
-function qve(e) {
+function iye(e) {
return function() {
return e;
};
@@ -55011,21 +55284,21 @@ function $J(e) {
function eY(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t;
- } : qve(isNaN(t) ? NaN : .5);
+ } : iye(isNaN(t) ? NaN : .5);
}
-function Jve(e, t) {
+function aye(e, t) {
var n;
return e > t && (n = e, e = t, t = n), function(n) {
return Math.max(e, Math.min(t, n));
};
}
-function Yve(e, t, n) {
+function oye(e, t, n) {
var r = e[0], i = e[1], a = t[0], o = t[1];
return i < r ? (r = eY(i, r), a = n(o, a)) : (r = eY(r, i), a = n(a, o)), function(e) {
return a(r(e));
};
}
-function Xve(e, t, n) {
+function sye(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] = eY(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
return function(t) {
@@ -55040,7 +55313,7 @@ function nY() {
var e = QJ, t = QJ, n = YJ, r, i, a, o = $J, s, c, l;
function u() {
var n = Math.min(e.length, t.length);
- return o !== $J && (o = Jve(e[0], e[n - 1])), s = n > 2 ? Xve : Yve, c = l = null, d;
+ return o !== $J && (o = aye(e[0], e[n - 1])), s = n > 2 ? sye : oye, c = l = null, d;
}
function d(i) {
return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));
@@ -55068,7 +55341,7 @@ function rY() {
}
//#endregion
//#region node_modules/d3-format/src/formatDecimal.js
-function Zve(e) {
+function cye(e) {
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
function iY(e, t) {
@@ -55083,7 +55356,7 @@ function aY(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatGroup.js
-function Qve(e, t) {
+function lye(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);
@@ -55091,7 +55364,7 @@ function Qve(e, t) {
}
//#endregion
//#region node_modules/d3-format/src/formatNumerals.js
-function $ve(e) {
+function uye(e) {
return function(t) {
return t.replace(/[0-9]/g, function(t) {
return e[+t];
@@ -55100,9 +55373,9 @@ function $ve(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatSpecifier.js
-var eye = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
+var dye = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
function oY(e) {
- if (!(t = eye.exec(e))) throw Error("invalid format: " + e);
+ if (!(t = dye.exec(e))) throw Error("invalid format: " + e);
var t;
return new sY({
fill: t[1],
@@ -55126,7 +55399,7 @@ sY.prototype.toString = function() {
};
//#endregion
//#region node_modules/d3-format/src/formatTrim.js
-function tye(e) {
+function fye(e) {
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
case ".":
r = i = n;
@@ -55143,7 +55416,7 @@ function tye(e) {
//#endregion
//#region node_modules/d3-format/src/formatPrefixAuto.js
var cY;
-function nye(e, t) {
+function pye(e, t) {
var n = iY(e, t);
if (!n) return cY = void 0, e.toPrecision(t);
var r = n[0], i = n[1], a = i - (cY = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
@@ -55163,14 +55436,14 @@ var uY = {
"%": (e, t) => (e * 100).toFixed(t),
b: (e) => Math.round(e).toString(2),
c: (e) => e + "",
- d: Zve,
+ d: cye,
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) => lY(e * 100, t),
r: lY,
- s: nye,
+ s: pye,
X: (e) => Math.round(e).toString(16).toUpperCase(),
x: (e) => Math.round(e).toString(16)
};
@@ -55200,8 +55473,8 @@ var fY = Array.prototype.map, pY = [
"Z",
"Y"
];
-function rye(e) {
- var t = e.grouping === void 0 || e.thousands === void 0 ? dY : Qve(fY.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 ? dY : $ve(fY.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 mye(e) {
+ var t = e.grouping === void 0 || e.thousands === void 0 ? dY : lye(fY.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 ? dY : uye(fY.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 = oY(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;
@@ -55214,7 +55487,7 @@ function rye(e) {
else {
e = +e;
var w = e < 0 || 1 / e < 0;
- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = tye(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && cY !== void 0 ? pY[8 + cY / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
+ if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = fye(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && cY !== void 0 ? pY[8 + cY / 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;
@@ -55255,27 +55528,27 @@ function rye(e) {
//#endregion
//#region node_modules/d3-format/src/defaultLocale.js
var mY, hY, gY;
-iye({
+hye({
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
-function iye(e) {
- return mY = rye(e), hY = mY.format, gY = mY.formatPrefix, mY;
+function hye(e) {
+ return mY = mye(e), hY = mY.format, gY = mY.formatPrefix, mY;
}
//#endregion
//#region node_modules/d3-format/src/precisionFixed.js
-function aye(e) {
+function gye(e) {
return Math.max(0, -aY(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionPrefix.js
-function oye(e, t) {
+function _ye(e, t) {
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(aY(t) / 3))) * 3 - aY(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionRound.js
-function sye(e, t) {
+function vye(e, t) {
return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, aY(t) - aY(e)) + 1;
}
//#endregion
@@ -55285,16 +55558,16 @@ function _Y(e, t, n, r) {
switch (r = oY(r ?? ",f"), r.type) {
case "s":
var o = Math.max(Math.abs(e), Math.abs(t));
- return r.precision == null && !isNaN(a = oye(i, o)) && (r.precision = a), gY(r, o);
+ return r.precision == null && !isNaN(a = _ye(i, o)) && (r.precision = a), gY(r, o);
case "":
case "e":
case "g":
case "p":
case "r":
- r.precision == null && !isNaN(a = sye(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
+ r.precision == null && !isNaN(a = vye(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
break;
case "f":
- case "%": r.precision == null && !isNaN(a = aye(i)) && (r.precision = a - (r.type === "%") * 2);
+ case "%": r.precision == null && !isNaN(a = gye(i)) && (r.precision = a - (r.type === "%") * 2);
}
return hY(r);
}
@@ -55357,19 +55630,19 @@ function SY(e) {
function CY(e) {
return Math.exp(e);
}
-function cye(e) {
+function yye(e) {
return -Math.log(-e);
}
-function lye(e) {
+function bye(e) {
return -Math.exp(-e);
}
-function uye(e) {
+function xye(e) {
return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
}
-function dye(e) {
- return e === 10 ? uye : e === Math.E ? Math.exp : (t) => e ** +t;
+function Sye(e) {
+ return e === 10 ? xye : e === Math.E ? Math.exp : (t) => e ** +t;
}
-function fye(e) {
+function Cye(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 wY(e) {
@@ -55378,7 +55651,7 @@ function wY(e) {
function TY(e) {
let t = e(SY, CY), n = t.domain, r = 10, i, a;
function o() {
- return i = fye(r), a = dye(r), n()[0] < 0 ? (i = wY(i), a = wY(a), e(cye, lye)) : e(SY, CY), t;
+ return i = Cye(r), a = Sye(r), n()[0] < 0 ? (i = wY(i), a = wY(a), e(yye, bye)) : e(SY, CY), t;
}
return t.base = function(e) {
return arguments.length ? (r = +e, o()) : r;
@@ -55448,16 +55721,16 @@ function jY(e) {
return t < 0 ? -((-t) ** +e) : t ** +e;
};
}
-function pye(e) {
+function wye(e) {
return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);
}
-function mye(e) {
+function Tye(e) {
return e < 0 ? -e * e : e * e;
}
function MY(e) {
var t = e($J, $J), n = 1;
function r() {
- return n === 1 ? e($J, $J) : n === .5 ? e(pye, mye) : e(jY(n), jY(1 / n));
+ return n === 1 ? e($J, $J) : n === .5 ? e(wye, Tye) : e(jY(n), jY(1 / n));
}
return t.exponent = function(e) {
return arguments.length ? (n = +e, r()) : n;
@@ -55469,7 +55742,7 @@ function NY() {
return tY(e, NY()).exponent(e.exponent());
}, uJ.apply(e, arguments), e;
}
-function hye() {
+function Eye() {
return NY.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -55477,13 +55750,13 @@ function hye() {
function PY(e) {
return Math.sign(e) * e * e;
}
-function gye(e) {
+function Dye(e) {
return Math.sign(e) * Math.sqrt(Math.abs(e));
}
function FY() {
var e = rY(), t = [0, 1], n = !1, r;
function i(t) {
- var i = gye(e(t));
+ var i = Dye(e(t));
return isNaN(i) ? r : n ? Math.round(i) : i;
}
return i.invert = function(t) {
@@ -55510,7 +55783,7 @@ function IY() {
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] = bve(e, r / i);
+ for (n = Array(i - 1); ++r < i;) n[r - 1] = jve(e, r / i);
return a;
}
function a(e) {
@@ -55679,8 +55952,8 @@ function iX(e) {
e.setDate(e.getDate() + t * 7);
}, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * WY) / qY);
}
-var aX = iX(0), oX = iX(1), _ye = iX(2), vye = iX(3), sX = iX(4), yye = iX(5), bye = iX(6);
-aX.range, oX.range, _ye.range, vye.range, sX.range, yye.range, bye.range;
+var aX = iX(0), oX = iX(1), Oye = iX(2), kye = iX(3), sX = iX(4), Aye = iX(5), jye = iX(6);
+aX.range, oX.range, Oye.range, kye.range, sX.range, Aye.range, jye.range;
function cX(e) {
return VY((t) => {
t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
@@ -55688,8 +55961,8 @@ function cX(e) {
e.setUTCDate(e.getUTCDate() + t * 7);
}, (e, t) => (t - e) / qY);
}
-var lX = cX(0), uX = cX(1), xye = cX(2), Sye = cX(3), dX = cX(4), Cye = cX(5), wye = cX(6);
-lX.range, uX.range, xye.range, Sye.range, dX.range, Cye.range, wye.range;
+var lX = cX(0), uX = cX(1), Mye = cX(2), Nye = cX(3), dX = cX(4), Pye = cX(5), Fye = cX(6);
+lX.range, uX.range, Mye.range, Nye.range, dX.range, Pye.range, Fye.range;
//#endregion
//#region node_modules/d3-time/src/month.js
var fX = VY((e) => {
@@ -55836,7 +56109,7 @@ function gX(e, t, n, r, i, a) {
}
return [s, c];
}
-var [Tye, Eye] = gX(hX, pX, lX, rX, eX, QY), [Dye, Oye] = gX(mX, fX, aX, tX, $Y, ZY);
+var [Iye, Lye] = gX(hX, pX, lX, rX, eX, QY), [Rye, zye] = gX(mX, fX, aX, tX, $Y, ZY);
//#endregion
//#region node_modules/d3-time-format/src/locale.js
function _X(e) {
@@ -55864,7 +56137,7 @@ function yX(e, t, n) {
L: 0
};
}
-function kye(e) {
+function Bye(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 = CX(i), u = wX(i), d = CX(a), f = wX(a), p = CX(o), m = wX(o), h = CX(s), g = wX(s), _ = CX(c), v = wX(c), y = {
a: N,
A: P,
@@ -55873,30 +56146,30 @@ function kye(e) {
c: null,
d: kX,
e: kX,
- f: Qye,
- g: cbe,
- G: ube,
- H: Yye,
- I: Xye,
- j: Zye,
+ f: lbe,
+ g: ybe,
+ G: xbe,
+ H: obe,
+ I: sbe,
+ j: cbe,
L: AX,
- m: $ye,
- M: ebe,
+ m: ube,
+ M: dbe,
p: I,
q: te,
Q: IX,
s: LX,
- S: tbe,
- u: nbe,
- U: rbe,
- V: ibe,
- w: abe,
- W: obe,
+ S: fbe,
+ u: pbe,
+ U: mbe,
+ V: hbe,
+ w: gbe,
+ W: _be,
x: null,
X: null,
- y: sbe,
- Y: lbe,
- Z: dbe,
+ y: vbe,
+ Y: bbe,
+ Z: Sbe,
"%": FX
}, b = {
a: ne,
@@ -55906,30 +56179,30 @@ function kye(e) {
c: null,
d: MX,
e: MX,
- f: hbe,
- g: Tbe,
- G: Dbe,
- H: fbe,
- I: pbe,
- j: mbe,
+ f: Ebe,
+ g: Ibe,
+ G: Rbe,
+ H: Cbe,
+ I: wbe,
+ j: Tbe,
L: NX,
- m: gbe,
- M: _be,
+ m: Dbe,
+ M: Obe,
p: oe,
q: se,
Q: IX,
s: LX,
- S: vbe,
- u: ybe,
- U: bbe,
- V: xbe,
- w: Sbe,
- W: Cbe,
+ S: kbe,
+ u: Abe,
+ U: jbe,
+ V: Mbe,
+ w: Nbe,
+ W: Pbe,
x: null,
X: null,
- y: wbe,
- Y: Ebe,
- Z: Obe,
+ y: Fbe,
+ Y: Lbe,
+ Z: zbe,
"%": FX
}, x = {
a: E,
@@ -55939,31 +56212,31 @@ function kye(e) {
c: A,
d: DX,
e: DX,
- f: Gye,
+ f: nbe,
g: EX,
G: TX,
H: OX,
I: OX,
- j: Vye,
- L: Wye,
- m: Bye,
- M: Hye,
+ j: Qye,
+ L: tbe,
+ m: Zye,
+ M: $ye,
p: T,
- q: zye,
- Q: qye,
- s: Jye,
- S: Uye,
- u: Pye,
- U: Fye,
- V: Iye,
- w: Nye,
- W: Lye,
+ q: Xye,
+ Q: ibe,
+ s: abe,
+ S: ebe,
+ u: Gye,
+ U: Kye,
+ V: qye,
+ w: Wye,
+ W: Jye,
x: j,
X: M,
y: EX,
Y: TX,
- Z: Rye,
- "%": Kye
+ Z: Yye,
+ "%": rbe
};
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) {
@@ -56091,37 +56364,37 @@ var bX = {
"-": "",
_: " ",
0: "0"
-}, xX = /^\s*\d+/, Aye = /^%/, jye = /[\\^$*+?|[\]().{}]/g;
+}, xX = /^\s*\d+/, Vye = /^%/, Hye = /[\\^$*+?|[\]().{}]/g;
function SX(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 Mye(e) {
- return e.replace(jye, "\\$&");
+function Uye(e) {
+ return e.replace(Hye, "\\$&");
}
function CX(e) {
- return RegExp("^(?:" + e.map(Mye).join("|") + ")", "i");
+ return RegExp("^(?:" + e.map(Uye).join("|") + ")", "i");
}
function wX(e) {
return new Map(e.map((e, t) => [e.toLowerCase(), t]));
}
-function Nye(e, t, n) {
+function Wye(e, t, n) {
var r = xX.exec(t.slice(n, n + 1));
return r ? (e.w = +r[0], n + r[0].length) : -1;
}
-function Pye(e, t, n) {
+function Gye(e, t, n) {
var r = xX.exec(t.slice(n, n + 1));
return r ? (e.u = +r[0], n + r[0].length) : -1;
}
-function Fye(e, t, n) {
+function Kye(e, t, n) {
var r = xX.exec(t.slice(n, n + 2));
return r ? (e.U = +r[0], n + r[0].length) : -1;
}
-function Iye(e, t, n) {
+function qye(e, t, n) {
var r = xX.exec(t.slice(n, n + 2));
return r ? (e.V = +r[0], n + r[0].length) : -1;
}
-function Lye(e, t, n) {
+function Jye(e, t, n) {
var r = xX.exec(t.slice(n, n + 2));
return r ? (e.W = +r[0], n + r[0].length) : -1;
}
@@ -56133,15 +56406,15 @@ function EX(e, t, n) {
var r = xX.exec(t.slice(n, n + 2));
return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
}
-function Rye(e, t, n) {
+function Yye(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 zye(e, t, n) {
+function Xye(e, t, n) {
var r = xX.exec(t.slice(n, n + 1));
return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
}
-function Bye(e, t, n) {
+function Zye(e, t, n) {
var r = xX.exec(t.slice(n, n + 2));
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
}
@@ -56149,7 +56422,7 @@ function DX(e, t, n) {
var r = xX.exec(t.slice(n, n + 2));
return r ? (e.d = +r[0], n + r[0].length) : -1;
}
-function Vye(e, t, n) {
+function Qye(e, t, n) {
var r = xX.exec(t.slice(n, n + 3));
return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
}
@@ -56157,159 +56430,159 @@ function OX(e, t, n) {
var r = xX.exec(t.slice(n, n + 2));
return r ? (e.H = +r[0], n + r[0].length) : -1;
}
-function Hye(e, t, n) {
+function $ye(e, t, n) {
var r = xX.exec(t.slice(n, n + 2));
return r ? (e.M = +r[0], n + r[0].length) : -1;
}
-function Uye(e, t, n) {
+function ebe(e, t, n) {
var r = xX.exec(t.slice(n, n + 2));
return r ? (e.S = +r[0], n + r[0].length) : -1;
}
-function Wye(e, t, n) {
+function tbe(e, t, n) {
var r = xX.exec(t.slice(n, n + 3));
return r ? (e.L = +r[0], n + r[0].length) : -1;
}
-function Gye(e, t, n) {
+function nbe(e, t, n) {
var r = xX.exec(t.slice(n, n + 6));
return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
}
-function Kye(e, t, n) {
- var r = Aye.exec(t.slice(n, n + 1));
+function rbe(e, t, n) {
+ var r = Vye.exec(t.slice(n, n + 1));
return r ? n + r[0].length : -1;
}
-function qye(e, t, n) {
+function ibe(e, t, n) {
var r = xX.exec(t.slice(n));
return r ? (e.Q = +r[0], n + r[0].length) : -1;
}
-function Jye(e, t, n) {
+function abe(e, t, n) {
var r = xX.exec(t.slice(n));
return r ? (e.s = +r[0], n + r[0].length) : -1;
}
function kX(e, t) {
return SX(e.getDate(), t, 2);
}
-function Yye(e, t) {
+function obe(e, t) {
return SX(e.getHours(), t, 2);
}
-function Xye(e, t) {
+function sbe(e, t) {
return SX(e.getHours() % 12 || 12, t, 2);
}
-function Zye(e, t) {
+function cbe(e, t) {
return SX(1 + tX.count(mX(e), e), t, 3);
}
function AX(e, t) {
return SX(e.getMilliseconds(), t, 3);
}
-function Qye(e, t) {
+function lbe(e, t) {
return AX(e, t) + "000";
}
-function $ye(e, t) {
+function ube(e, t) {
return SX(e.getMonth() + 1, t, 2);
}
-function ebe(e, t) {
+function dbe(e, t) {
return SX(e.getMinutes(), t, 2);
}
-function tbe(e, t) {
+function fbe(e, t) {
return SX(e.getSeconds(), t, 2);
}
-function nbe(e) {
+function pbe(e) {
var t = e.getDay();
return t === 0 ? 7 : t;
}
-function rbe(e, t) {
+function mbe(e, t) {
return SX(aX.count(mX(e) - 1, e), t, 2);
}
function jX(e) {
var t = e.getDay();
return t >= 4 || t === 0 ? sX(e) : sX.ceil(e);
}
-function ibe(e, t) {
+function hbe(e, t) {
return e = jX(e), SX(sX.count(mX(e), e) + (mX(e).getDay() === 4), t, 2);
}
-function abe(e) {
+function gbe(e) {
return e.getDay();
}
-function obe(e, t) {
+function _be(e, t) {
return SX(oX.count(mX(e) - 1, e), t, 2);
}
-function sbe(e, t) {
+function vbe(e, t) {
return SX(e.getFullYear() % 100, t, 2);
}
-function cbe(e, t) {
+function ybe(e, t) {
return e = jX(e), SX(e.getFullYear() % 100, t, 2);
}
-function lbe(e, t) {
+function bbe(e, t) {
return SX(e.getFullYear() % 1e4, t, 4);
}
-function ube(e, t) {
+function xbe(e, t) {
var n = e.getDay();
return e = n >= 4 || n === 0 ? sX(e) : sX.ceil(e), SX(e.getFullYear() % 1e4, t, 4);
}
-function dbe(e) {
+function Sbe(e) {
var t = e.getTimezoneOffset();
return (t > 0 ? "-" : (t *= -1, "+")) + SX(t / 60 | 0, "0", 2) + SX(t % 60, "0", 2);
}
function MX(e, t) {
return SX(e.getUTCDate(), t, 2);
}
-function fbe(e, t) {
+function Cbe(e, t) {
return SX(e.getUTCHours(), t, 2);
}
-function pbe(e, t) {
+function wbe(e, t) {
return SX(e.getUTCHours() % 12 || 12, t, 2);
}
-function mbe(e, t) {
+function Tbe(e, t) {
return SX(1 + nX.count(hX(e), e), t, 3);
}
function NX(e, t) {
return SX(e.getUTCMilliseconds(), t, 3);
}
-function hbe(e, t) {
+function Ebe(e, t) {
return NX(e, t) + "000";
}
-function gbe(e, t) {
+function Dbe(e, t) {
return SX(e.getUTCMonth() + 1, t, 2);
}
-function _be(e, t) {
+function Obe(e, t) {
return SX(e.getUTCMinutes(), t, 2);
}
-function vbe(e, t) {
+function kbe(e, t) {
return SX(e.getUTCSeconds(), t, 2);
}
-function ybe(e) {
+function Abe(e) {
var t = e.getUTCDay();
return t === 0 ? 7 : t;
}
-function bbe(e, t) {
+function jbe(e, t) {
return SX(lX.count(hX(e) - 1, e), t, 2);
}
function PX(e) {
var t = e.getUTCDay();
return t >= 4 || t === 0 ? dX(e) : dX.ceil(e);
}
-function xbe(e, t) {
+function Mbe(e, t) {
return e = PX(e), SX(dX.count(hX(e), e) + (hX(e).getUTCDay() === 4), t, 2);
}
-function Sbe(e) {
+function Nbe(e) {
return e.getUTCDay();
}
-function Cbe(e, t) {
+function Pbe(e, t) {
return SX(uX.count(hX(e) - 1, e), t, 2);
}
-function wbe(e, t) {
+function Fbe(e, t) {
return SX(e.getUTCFullYear() % 100, t, 2);
}
-function Tbe(e, t) {
+function Ibe(e, t) {
return e = PX(e), SX(e.getUTCFullYear() % 100, t, 2);
}
-function Ebe(e, t) {
+function Lbe(e, t) {
return SX(e.getUTCFullYear() % 1e4, t, 4);
}
-function Dbe(e, t) {
+function Rbe(e, t) {
var n = e.getUTCDay();
return e = n >= 4 || n === 0 ? dX(e) : dX.ceil(e), SX(e.getUTCFullYear() % 1e4, t, 4);
}
-function Obe() {
+function zbe() {
return "+0000";
}
function FX() {
@@ -56324,7 +56597,7 @@ function LX(e) {
//#endregion
//#region node_modules/d3-time-format/src/defaultLocale.js
var RX, zX, BX;
-kbe({
+Bbe({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
time: "%-I:%M:%S %p",
@@ -56376,15 +56649,15 @@ kbe({
"Dec"
]
});
-function kbe(e) {
- return RX = kye(e), zX = RX.format, RX.parse, BX = RX.utcFormat, RX.utcParse, RX;
+function Bbe(e) {
+ return RX = Bye(e), zX = RX.format, RX.parse, BX = RX.utcFormat, RX.utcParse, RX;
}
//#endregion
//#region node_modules/d3-scale/src/time.js
-function Abe(e) {
+function Vbe(e) {
return new Date(e);
}
-function jbe(e) {
+function Hbe(e) {
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
}
function VX(e, t, n, r, i, a, o, s, c, l) {
@@ -56395,7 +56668,7 @@ function VX(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, jbe)) : f().map(Abe);
+ return arguments.length ? f(Array.from(e, Hbe)) : f().map(Vbe);
}, u.ticks = function(t) {
var n = f();
return e(n[0], n[n.length - 1], t ?? 10);
@@ -56408,13 +56681,13 @@ function VX(e, t, n, r, i, a, o, s, c, l) {
return tY(u, VX(e, t, n, r, i, a, o, s, c, l));
}, u;
}
-function Mbe() {
- return uJ.apply(VX(Dye, Oye, mX, fX, aX, tX, $Y, ZY, XY, zX).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
+function Ube() {
+ return uJ.apply(VX(Rye, zye, mX, fX, aX, tX, $Y, ZY, XY, zX).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/utcTime.js
-function Nbe() {
- return uJ.apply(VX(Tye, Eye, hX, pX, lX, nX, eX, QY, XY, BX).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
+function Wbe() {
+ return uJ.apply(VX(Iye, Lye, hX, pX, lX, nX, eX, QY, XY, BX).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/sequential.js
@@ -56469,7 +56742,7 @@ function qX() {
return UX(e, qX()).exponent(e.exponent());
}, dJ.apply(e, arguments);
}
-function Pbe() {
+function Gbe() {
return qX.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -56489,7 +56762,7 @@ function JX() {
}, 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) => yve(e, r / t));
+ return Array.from({ length: t + 1 }, (n, r) => Ave(e, r / t));
}, n.copy = function() {
return JX(t).domain(e);
}, dJ.apply(n, arguments);
@@ -56515,7 +56788,7 @@ function YX() {
function m(e) {
return function(t) {
var n, r, i;
- return arguments.length ? ([n, r, i] = t, l = Kve(e, [
+ return arguments.length ? ([n, r, i] = t, l = rye(e, [
n,
r,
i
@@ -56560,7 +56833,7 @@ function $X() {
return UX(e, $X()).exponent(e.exponent());
}, dJ.apply(e, arguments);
}
-function Fbe() {
+function Kbe() {
return $X.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -56570,14 +56843,14 @@ var eZ = /* @__PURE__ */ le({
scaleDiverging: () => XX,
scaleDivergingLog: () => ZX,
scaleDivergingPow: () => $X,
- scaleDivergingSqrt: () => Fbe,
+ scaleDivergingSqrt: () => Kbe,
scaleDivergingSymlog: () => QX,
scaleIdentity: () => bY,
scaleImplicit: () => fJ,
scaleLinear: () => yY,
scaleLog: () => EY,
scaleOrdinal: () => pJ,
- scalePoint: () => Sve,
+ scalePoint: () => Nve,
scalePow: () => NY,
scaleQuantile: () => IY,
scaleQuantize: () => LY,
@@ -56586,26 +56859,26 @@ var eZ = /* @__PURE__ */ le({
scaleSequentialLog: () => GX,
scaleSequentialPow: () => qX,
scaleSequentialQuantile: () => JX,
- scaleSequentialSqrt: () => Pbe,
+ scaleSequentialSqrt: () => Gbe,
scaleSequentialSymlog: () => KX,
- scaleSqrt: () => hye,
+ scaleSqrt: () => Eye,
scaleSymlog: () => AY,
scaleThreshold: () => RY,
- scaleTime: () => Mbe,
- scaleUtc: () => Nbe,
+ scaleTime: () => Ube,
+ scaleUtc: () => Wbe,
tickFormat: () => _Y
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
-function Ibe(e) {
+function qbe(e) {
if (e in eZ) return eZ[e]();
- var t = `scale${uR(e)}`;
+ var t = `scale${gR(e)}`;
if (t in eZ) return eZ[t]();
}
function tZ(e, t, n) {
if (typeof e == "function") return e.copy().domain(t).range(n);
if (e != null) {
- var r = Ibe(e);
+ var r = qbe(e);
if (r != null) return r.domain(t).range(n), r;
}
}
@@ -56614,22 +56887,22 @@ function nZ(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
-function Lbe(e) {
- return `scale${uR(e)}`;
+function Jbe(e) {
+ return `scale${gR(e)}`;
}
-function Rbe(e) {
- return Lbe(e) in eZ;
+function Ybe(e) {
+ return Jbe(e) in eZ;
}
var rZ = (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 Rbe(r) ? r : "point";
+ if (typeof r == "string") return Ybe(r) ? r : "point";
}
};
//#endregion
//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js
-function zbe(e, t) {
+function Xbe(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;
@@ -56640,7 +56913,7 @@ function iZ(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 = zbe(r, e);
+ var t = Xbe(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;
@@ -56650,7 +56923,7 @@ function iZ(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
-function Bbe(e) {
+function Zbe(e) {
if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : iZ(e, void 0);
}
//#endregion
@@ -56669,26 +56942,26 @@ function oZ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? aZ(Object(n), !0).forEach(function(t) {
- Vbe(e, t, n[t]);
+ Qbe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : aZ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Vbe(e, t, n) {
- return (t = Hbe(t)) in e ? Object.defineProperty(e, t, {
+function Qbe(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 Hbe(e) {
- var t = Ube(e, "string");
+function $be(e) {
+ var t = exe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Ube(e, t) {
+function exe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56756,7 +57029,7 @@ var sZ = [0, "auto"], cZ = {
unit: void 0,
niceTicks: "auto",
width: 60
-}, fZ = (e, t) => e.cartesianAxis.yAxis[t], pZ = (e, t) => fZ(e, t) ?? dZ, Wbe = {
+}, fZ = (e, t) => e.cartesianAxis.yAxis[t], pZ = (e, t) => fZ(e, t) ?? dZ, txe = {
domain: [0, "auto"],
includeHidden: !1,
reversed: !1,
@@ -56769,7 +57042,7 @@ var sZ = [0, "auto"], cZ = {
scale: "auto",
type: "number",
unit: ""
-}, mZ = (e, t) => e.cartesianAxis.zAxis[t] ?? Wbe, hZ = (e, t, n) => {
+}, mZ = (e, t) => e.cartesianAxis.zAxis[t] ?? txe, hZ = (e, t, n) => {
switch (t) {
case "xAxis": return uZ(e, n);
case "yAxis": return pZ(e, n);
@@ -56778,7 +57051,7 @@ var sZ = [0, "auto"], cZ = {
case "radiusAxis": return Dq(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, Gbe = (e, t, n) => {
+}, nxe = (e, t, n) => {
switch (t) {
case "xAxis": return uZ(e, n);
case "yAxis": return pZ(e, n);
@@ -56805,22 +57078,22 @@ function vZ(e, t) {
}
};
}
-var yZ = (e) => e.graphicalItems.cartesianItems, Kbe = $([Fq, Iq], vZ), bZ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), xZ = $([
+var yZ = (e) => e.graphicalItems.cartesianItems, rxe = $([Fq, Iq], vZ), bZ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), xZ = $([
yZ,
hZ,
- Kbe
-], bZ, { memoizeOptions: { resultEqualityCheck: Vq } }), SZ = $([xZ], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(zq)), CZ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), qbe = $([xZ], CZ), wZ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), Jbe = $([xZ], wZ, { memoizeOptions: { resultEqualityCheck: Vq } }), TZ = (e, t) => {
+ rxe
+], bZ, { memoizeOptions: { resultEqualityCheck: Vq } }), SZ = $([xZ], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(zq)), CZ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), ixe = $([xZ], CZ), wZ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), axe = $([xZ], wZ, { memoizeOptions: { resultEqualityCheck: Vq } }), TZ = (e, t) => {
var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;
return e.length > 0 ? e : n.slice(r, i + 1);
-}, EZ = $([Jbe, qK], TZ), DZ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: pV(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: pV(e, t.dataKey) })), OZ = $([
+}, EZ = $([axe, qK], TZ), DZ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: SV(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: SV(e, t.dataKey) })), OZ = $([
EZ,
hZ,
xZ
], DZ);
function kZ(e) {
- if (rR(e) || e instanceof Date) {
+ if (lR(e) || e instanceof Date) {
var t = Number(e);
- if (lV(t)) return t;
+ if (hV(t)) return t;
}
}
function AZ(e) {
@@ -56832,13 +57105,13 @@ function AZ(e) {
if (n != null) return [n, n];
}
function jZ(e) {
- return e.map(kZ).filter(dR);
+ return e.map(kZ).filter(_R);
}
-function Ybe(e, t) {
+function oxe(e, t) {
var n = kZ(e), r = kZ(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var Xbe = $([OZ], (e) => e?.map((e) => e.value).sort(Ybe));
+var sxe = $([OZ], (e) => e?.map((e) => e.value).sort(oxe));
function MZ(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
@@ -56846,13 +57119,13 @@ function MZ(e, t) {
default: return !1;
}
}
-function Zbe(e, t, n) {
- return !n || typeof t != "number" || tR(t) || !n.length ? [] : jZ(n.flatMap((n) => {
- var r = pV(e, n.dataKey), i, a;
- if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!lV(i) || !lV(a))) return [t - i, t + a];
+function cxe(e, t, n) {
+ return !n || typeof t != "number" || sR(t) || !n.length ? [] : jZ(n.flatMap((n) => {
+ var r = SV(e, n.dataKey), i, a;
+ if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!hV(i) || !hV(a))) return [t - i, t + a];
}));
}
-var NZ = (e) => gZ(e, Hq(e), Uq(e)), PZ = $([NZ], (e) => e?.dataKey), Qbe = $([
+var NZ = (e) => gZ(e, Hq(e), Uq(e)), PZ = $([NZ], (e) => e?.dataKey), lxe = $([
SZ,
qK,
NZ
@@ -56865,22 +57138,22 @@ var NZ = (e) => gZ(e, Hq(e), Uq(e)), PZ = $([NZ], (e) => e?.dataKey), Qbe = $([
return Object.fromEntries(Object.entries(i).map((t) => {
var [i, a] = t, o = r ? [...a].reverse() : a;
return [i, {
- stackedData: yV(e, o.map(Lq), n),
+ stackedData: kV(e, o.map(Lq), n),
graphicalItems: o
}];
}));
}, IZ = $([
- Qbe,
+ lxe,
SZ,
dq,
fq
], FZ), LZ = (e, t, n, r) => {
var { dataStartIndex: i, dataEndIndex: a } = t;
if (r == null && n !== "zAxis") {
- var o = EV(e, i, a);
+ var o = IV(e, i, a);
if (o == null || o[0] !== 0 || o[1] !== 0) return o;
}
-}, $be = $([hZ], (e) => e.allowDataOverflow), RZ = (e) => {
+}, uxe = $([hZ], (e) => e.allowDataOverflow), RZ = (e) => {
if (e == null || !("domain" in e)) return sZ;
if (e.domain != null) return e.domain;
if ("ticks" in e && e.ticks != null) {
@@ -56891,12 +57164,12 @@ var NZ = (e) => gZ(e, Hq(e), Uq(e)), PZ = $([NZ], (e) => e?.dataKey), Qbe = $([
if (e.type === "category") return e.ticks.map(String);
}
return e?.domain ?? sZ;
-}, zZ = $([hZ], RZ), BZ = $([zZ, $be], ZK), exe = $([
+}, zZ = $([hZ], RZ), BZ = $([zZ, uxe], ZK), dxe = $([
IZ,
GK,
Fq,
BZ
-], LZ, { memoizeOptions: { resultEqualityCheck: Bq } }), VZ = (e) => e.errorBars, txe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => MZ(n, e)), HZ = function() {
+], LZ, { memoizeOptions: { resultEqualityCheck: Bq } }), VZ = (e) => e.errorBars, fxe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => MZ(n, e)), HZ = function() {
var e = [...arguments].filter(Boolean);
if (e.length !== 0) {
var t = e.flat();
@@ -56906,7 +57179,7 @@ var NZ = (e) => gZ(e, Hq(e), Uq(e)), PZ = $([NZ], (e) => e?.dataKey), Qbe = $([
var a, o;
if (n.length > 0 && e.forEach((e) => {
n.forEach((n) => {
- var s = r[n.id]?.filter((e) => MZ(i, e)), c = pV(e, t.dataKey ?? n.dataKey), l = Zbe(e, c, s);
+ var s = r[n.id]?.filter((e) => MZ(i, e)), c = SV(e, t.dataKey ?? n.dataKey), l = cxe(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);
@@ -56915,32 +57188,32 @@ var NZ = (e) => gZ(e, Hq(e), Uq(e)), PZ = $([NZ], (e) => e?.dataKey), Qbe = $([
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 = AZ(pV(e, t.dataKey));
+ var n = AZ(SV(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]));
- }), lV(a) && lV(o)) return [a, o];
-}, nxe = $([
+ }), hV(a) && hV(o)) return [a, o];
+}, pxe = $([
EZ,
hZ,
- qbe,
+ ixe,
VZ,
Fq
], UZ, { memoizeOptions: { resultEqualityCheck: Bq } });
-function rxe(e) {
+function mxe(e) {
var { value: t } = e;
- if (rR(t) || t instanceof Date) return t;
+ if (lR(t) || t instanceof Date) return t;
}
-var ixe = (e, t, n) => {
- var r = e.map(rxe).filter((e) => e != null);
- return n && (t.dataKey == null || t.allowDuplicatedCategory && oR(r)) ? WK(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
-}, WZ = (e) => e.referenceElements.dots, GZ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), axe = $([
+var hxe = (e, t, n) => {
+ var r = e.map(mxe).filter((e) => e != null);
+ return n && (t.dataKey == null || t.allowDuplicatedCategory && fR(r)) ? WK(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
+}, WZ = (e) => e.referenceElements.dots, GZ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), gxe = $([
WZ,
Fq,
Iq
-], GZ), KZ = (e) => e.referenceElements.areas, oxe = $([
+], GZ), KZ = (e) => e.referenceElements.areas, _xe = $([
KZ,
Fq,
Iq
-], GZ), qZ = (e) => e.referenceElements.lines, sxe = $([
+], GZ), qZ = (e) => e.referenceElements.lines, vxe = $([
qZ,
Fq,
Iq
@@ -56949,49 +57222,49 @@ var ixe = (e, t, n) => {
var n = jZ(e.map((e) => t === "xAxis" ? e.x : e.y));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, cxe = $(axe, Fq, JZ), YZ = (e, t) => {
+}, yxe = $(gxe, Fq, JZ), YZ = (e, t) => {
if (e != null) {
var n = jZ(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)];
}
-}, lxe = $([oxe, Fq], YZ);
-function uxe(e) {
+}, bxe = $([_xe, Fq], YZ);
+function xxe(e) {
if (e.x != null) return jZ([e.x]);
var t = e.segment?.map((e) => e.x);
return t == null || t.length === 0 ? [] : jZ(t);
}
-function dxe(e) {
+function Sxe(e) {
if (e.y != null) return jZ([e.y]);
var t = e.segment?.map((e) => e.y);
return t == null || t.length === 0 ? [] : jZ(t);
}
var XZ = (e, t) => {
if (e != null) {
- var n = e.flatMap((e) => t === "xAxis" ? uxe(e) : dxe(e));
+ var n = e.flatMap((e) => t === "xAxis" ? xxe(e) : Sxe(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, fxe = $(cxe, $([sxe, Fq], XZ), lxe, (e, t, n) => HZ(e, n, t)), ZZ = (e, t, n, r, i, a, o, s) => n ?? ave(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? HZ(r, a, i) : HZ(a, i), e.allowDataOverflow), pxe = $([
+}, Cxe = $(yxe, $([vxe, Fq], XZ), bxe, (e, t, n) => HZ(e, n, t)), ZZ = (e, t, n, r, i, a, o, s) => n ?? gve(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? HZ(r, a, i) : HZ(a, i), e.allowDataOverflow), wxe = $([
hZ,
zZ,
BZ,
- exe,
- nxe,
- fxe,
- FH,
+ dxe,
+ pxe,
+ Cxe,
+ GH,
Fq
-], ZZ, { memoizeOptions: { resultEqualityCheck: Bq } }), mxe = [0, 1], QZ = (e, t, n, r, i, a, o) => {
+], ZZ, { memoizeOptions: { resultEqualityCheck: Bq } }), Txe = [0, 1], QZ = (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 = mV(t, a);
- return l && s == null ? WK(0, n?.length ?? 0) : c === "category" ? ixe(r, e, l) : i === "expand" ? mxe : o;
+ var { dataKey: s, type: c } = e, l = wV(t, a);
+ return l && s == null ? WK(0, n?.length ?? 0) : c === "category" ? hxe(r, e, l) : i === "expand" ? Txe : o;
}
}, $Z = $([
hZ,
- FH,
+ GH,
EZ,
OZ,
dq,
Fq,
- pxe
+ wxe
], QZ), eQ = $([
hZ,
_Z,
@@ -57019,7 +57292,7 @@ var XZ = (e, t) => {
return [Math.min(i, a), Math.max(o, s)];
}
return t;
-}, hxe = $([
+}, Exe = $([
hZ,
$Z,
nQ,
@@ -57039,22 +57312,22 @@ var XZ = (e, t) => {
}
return n / o;
}
-}), FH, lq, ZV, (e, t, n, r, i) => i, (e, t, n, r, i) => {
- if (!lV(e)) return 0;
+}), GH, lq, sH, (e, t, n, r, i) => i, (e, t, n, r, i) => {
+ if (!hV(e)) return 0;
var a = t === "vertical" ? r.height : r.width;
if (i === "gap") return e * a / 2;
if (i === "no-gap") {
- var o = aR(n, e * a), s = e * a / 2;
+ var o = dR(n, e * a), s = e * a / 2;
return s - o - (s - o) / a * o;
}
return 0;
-}), gxe = (e, t, n) => {
+}), Dxe = (e, t, n) => {
var r = uZ(e, t);
return r == null || typeof r.padding != "string" ? 0 : iQ(e, "xAxis", t, n, r.padding);
-}, _xe = (e, t, n) => {
+}, Oxe = (e, t, n) => {
var r = pZ(e, t);
return r == null || typeof r.padding != "string" ? 0 : iQ(e, "yAxis", t, n, r.padding);
-}, vxe = $(uZ, gxe, (e, t) => {
+}, kxe = $(uZ, Dxe, (e, t) => {
if (e == null) return {
left: 0,
right: 0
@@ -57067,7 +57340,7 @@ var XZ = (e, t) => {
left: (n.left ?? 0) + t,
right: (n.right ?? 0) + t
};
-}), yxe = $(pZ, _xe, (e, t) => {
+}), Axe = $(pZ, Oxe, (e, t) => {
if (e == null) return {
top: 0,
bottom: 0
@@ -57080,29 +57353,29 @@ var XZ = (e, t) => {
top: (n.top ?? 0) + t,
bottom: (n.bottom ?? 0) + t
};
-}), bxe = $([
- ZV,
- vxe,
- rH,
- nH,
+}), jxe = $([
+ sH,
+ kxe,
+ pH,
+ fH,
(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];
-}), xxe = $([
- ZV,
- FH,
- yxe,
- rH,
- nH,
+}), Mxe = $([
+ sH,
+ GH,
+ Axe,
+ pH,
+ fH,
(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];
}), aQ = (e, t, n, r) => {
switch (t) {
- case "xAxis": return bxe(e, n, r);
- case "yAxis": return xxe(e, n, r);
+ case "xAxis": return jxe(e, n, r);
+ case "yAxis": return Mxe(e, n, r);
case "zAxis": return mZ(e, n)?.range;
case "angleAxis": return Mq(e);
case "radiusAxis": return Nq(e, n);
@@ -57111,67 +57384,67 @@ var XZ = (e, t) => {
}, oQ = $([hZ, aQ], bq), sQ = $([
hZ,
eQ,
- $([eQ, hxe], Gq),
+ $([eQ, Exe], Gq),
oQ
], nZ), cQ = (e, t, n, r) => {
if (n != null && n.dataKey != null) {
var { type: i, scale: a } = n;
- if (mV(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
+ if (wV(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
}
}, lQ = $([
- FH,
+ GH,
OZ,
gZ,
Fq
], cQ), uQ = $([sQ], Wq);
-$([sQ], Bbe), $([sQ, Xbe], iZ), $([
+$([sQ], Zbe), $([sQ, sxe], iZ), $([
xZ,
VZ,
Fq
-], txe);
+], fxe);
function dQ(e, t) {
return e.id < t.id ? -1 : +(e.id > t.id);
}
-var fQ = (e, t) => t, pQ = (e, t, n) => n, Sxe = $(RV, fQ, pQ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(dQ)), Cxe = $(zV, fQ, pQ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(dQ)), mQ = (e, t) => ({
+var fQ = (e, t) => t, pQ = (e, t, n) => n, Nxe = $(JV, fQ, pQ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(dQ)), Pxe = $(YV, fQ, pQ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(dQ)), mQ = (e, t) => ({
width: e.width,
height: t.height
-}), wxe = (e, t) => ({
+}), Fxe = (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-}), hQ = $(ZV, uZ, mQ), Txe = (e, t, n) => {
+}), hQ = $(sH, uZ, mQ), Ixe = (e, t, n) => {
switch (t) {
case "top": return e.top;
case "bottom": return n - e.bottom;
default: return 0;
}
-}, Exe = (e, t, n) => {
+}, Lxe = (e, t, n) => {
switch (t) {
case "left": return e.left;
case "right": return n - e.right;
default: return 0;
}
-}, Dxe = $(FV, ZV, Sxe, fQ, pQ, (e, t, n, r, i) => {
+}, Rxe = $(GV, sH, Nxe, fQ, pQ, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
var s = mQ(t, n);
- o ??= Txe(t, r, e);
+ o ??= Ixe(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;
-}), Oxe = $(PV, ZV, Cxe, fQ, pQ, (e, t, n, r, i) => {
+}), zxe = $(WV, sH, Pxe, fQ, pQ, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = wxe(t, n);
- o ??= Exe(t, r, e);
+ var s = Fxe(t, n);
+ o ??= Lxe(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;
-}), kxe = $([
- ZV,
+}), Bxe = $([
+ sH,
uZ,
(e, t) => {
var n = uZ(e, t);
- if (n != null) return Dxe(e, n.orientation, n.mirror);
+ if (n != null) return Rxe(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -57185,12 +57458,12 @@ var fQ = (e, t) => t, pQ = (e, t, n) => n, Sxe = $(RV, fQ, pQ, (e, t, n) => e.fi
y: i
};
}
-}), Axe = $([
- ZV,
+}), Vxe = $([
+ sH,
pZ,
(e, t) => {
var n = pZ(e, t);
- if (n != null) return Oxe(e, n.orientation, n.mirror);
+ if (n != null) return zxe(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -57204,7 +57477,7 @@ var fQ = (e, t) => t, pQ = (e, t, n) => n, Sxe = $(RV, fQ, pQ, (e, t, n) => e.fi
y: e.top
};
}
-}), gQ = $(ZV, pZ, (e, t) => ({
+}), gQ = $(sH, pZ, (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
})), _Q = (e, t, n) => {
@@ -57215,17 +57488,17 @@ var fQ = (e, t) => t, pQ = (e, t, n) => n, Sxe = $(RV, fQ, pQ, (e, t, n) => e.fi
}
}, vQ = (e, t, n, r) => {
if (n != null) {
- var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = mV(e, r), c = t.map((e) => e.value);
- if (o && s && a === "category" && i && oR(c)) return c;
+ var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = wV(e, r), c = t.map((e) => e.value);
+ if (o && s && a === "category" && i && fR(c)) return c;
}
}, yQ = $([
- FH,
+ GH,
OZ,
hZ,
Fq
], vQ), bQ = $([
- FH,
- Gbe,
+ GH,
+ nxe,
eQ,
uQ,
yQ,
@@ -57235,7 +57508,7 @@ var fQ = (e, t) => t, pQ = (e, t, n) => n, Sxe = $(RV, fQ, pQ, (e, t, n) => e.fi
Fq
], (e, t, n, r, i, a, o, s, c) => {
if (t != null) {
- var l = mV(e, c);
+ var l = wV(e, c);
return {
angle: t.angle,
interval: t.interval,
@@ -57259,45 +57532,45 @@ var fQ = (e, t) => t, pQ = (e, t, n) => n, Sxe = $(RV, fQ, pQ, (e, t, n) => e.fi
}
}), xQ = (e, t, n, r, i, a, o, s, c) => {
if (t != null && r != null) {
- var l = mV(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 ? eR(a[0] - a[1]) * 2 * m : m;
+ var l = wV(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 ? oR(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 lV(i) ? {
+ return hV(i) ? {
index: t,
coordinate: i + m,
value: e,
offset: m
} : null;
- }).filter(dR) : l && s ? s.map((e, t) => {
+ }).filter(_R) : l && s ? s.map((e, t) => {
var n = r.map(e);
- return lV(n) ? {
+ return hV(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(dR) : r.ticks ? r.ticks(f).map((e, t) => {
+ }).filter(_R) : r.ticks ? r.ticks(f).map((e, t) => {
var n = r.map(e);
- return lV(n) ? {
+ return hV(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(dR) : r.domain().map((e, t) => {
+ }).filter(_R) : r.domain().map((e, t) => {
var n = r.map(e);
- return lV(n) ? {
+ return hV(n) ? {
coordinate: n + m,
value: o ? o[e] : e,
index: t,
offset: m
} : null;
- }).filter(dR);
+ }).filter(_R);
}
}, SQ = $([
- FH,
+ GH,
gZ,
eQ,
uQ,
@@ -57308,35 +57581,35 @@ var fQ = (e, t) => t, pQ = (e, t, n) => n, Sxe = $(RV, fQ, pQ, (e, t, n) => e.fi
Fq
], xQ), CQ = (e, t, n, r, i, a, o) => {
if (t != null && n != null && r != null && r[0] !== r[1]) {
- var s = mV(e, o), { tickCount: c } = t, l = 0;
- return l = o === "angleAxis" && r?.length >= 2 ? eR(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
+ var s = wV(e, o), { tickCount: c } = t, l = 0;
+ return l = o === "angleAxis" && r?.length >= 2 ? oR(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
var r = n.map(e);
- return lV(r) ? {
+ return hV(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(dR) : n.ticks ? n.ticks(c).map((e, t) => {
+ }).filter(_R) : n.ticks ? n.ticks(c).map((e, t) => {
var r = n.map(e);
- return lV(r) ? {
+ return hV(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(dR) : n.domain().map((e, t) => {
+ }).filter(_R) : n.domain().map((e, t) => {
var r = n.map(e);
- return lV(r) ? {
+ return hV(r) ? {
coordinate: r + l,
value: i ? i[e] : e,
index: t,
offset: l
} : null;
- }).filter(dR);
+ }).filter(_R);
}
}, wQ = $([
- FH,
+ GH,
gZ,
uQ,
aQ,
@@ -57354,10 +57627,10 @@ $((e, t, n) => mZ(e, n), $([$([
], nZ)], Wq), (e, t) => {
if (e != null && t != null) return oZ(oZ({}, e), {}, { scale: t });
});
-var jxe = $([
- FH,
- RV,
- zV
+var Hxe = $([
+ GH,
+ JV,
+ YV
], (e, t, n) => {
switch (e) {
case "horizontal": return t.some((e) => e.reversed) ? "right-to-left" : "left-to-right";
@@ -57388,21 +57661,21 @@ function OQ(e, t, n) {
function kQ(e, t) {
return OQ(t, EQ(e), DQ(e));
}
-function Mxe(e) {
+function Uxe(e) {
return Q((t) => kQ(t, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js
var AQ = (e, t) => {
var n, r = Number(t);
- if (!(tR(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
-}, Nxe = (e) => e.tooltip.settings, jQ = {
+ if (!(sR(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
+}, Wxe = (e) => e.tooltip.settings, jQ = {
active: !1,
index: null,
dataKey: void 0,
graphicalItemId: void 0,
coordinate: void 0
-}, MQ = PB({
+}, MQ = BB({
name: "tooltip",
initialState: {
itemInteraction: {
@@ -57435,23 +57708,23 @@ var AQ = (e, t) => {
reducers: {
addTooltipEntrySettings: {
reducer(e, t) {
- e.tooltipItemPayloads.push(LU(t.payload));
+ e.tooltipItemPayloads.push(qU(t.payload));
},
- prepare: AB()
+ prepare: IB()
},
replaceTooltipEntrySettings: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = xB(e).tooltipItemPayloads.indexOf(LU(n));
- i > -1 && (e.tooltipItemPayloads[i] = LU(r));
+ var { prev: n, next: r } = t.payload, i = DB(e).tooltipItemPayloads.indexOf(qU(n));
+ i > -1 && (e.tooltipItemPayloads[i] = qU(r));
},
- prepare: AB()
+ prepare: IB()
},
removeTooltipEntrySettings: {
reducer(e, t) {
- var n = xB(e).tooltipItemPayloads.indexOf(LU(t.payload));
+ var n = DB(e).tooltipItemPayloads.indexOf(qU(t.payload));
n > -1 && e.tooltipItemPayloads.splice(n, 1);
},
- prepare: AB()
+ prepare: IB()
},
setTooltipSettingsState(e, t) {
e.settings = t.payload;
@@ -57481,7 +57754,7 @@ var AQ = (e, t) => {
e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;
}
}
-}), { addTooltipEntrySettings: Pxe, replaceTooltipEntrySettings: Fxe, removeTooltipEntrySettings: Ixe, setTooltipSettingsState: Lxe, setActiveMouseOverItemIndex: NQ, mouseLeaveItem: Rxe, mouseLeaveChart: PQ, setActiveClickItemIndex: zxe, setMouseOverAxisIndex: FQ, setMouseClickAxisIndex: Bxe, setSyncInteraction: IQ, setKeyboardInteraction: LQ } = MQ.actions, Vxe = MQ.reducer;
+}), { addTooltipEntrySettings: Gxe, replaceTooltipEntrySettings: Kxe, removeTooltipEntrySettings: qxe, setTooltipSettingsState: Jxe, setActiveMouseOverItemIndex: NQ, mouseLeaveItem: Yxe, mouseLeaveChart: PQ, setActiveClickItemIndex: Xxe, setMouseOverAxisIndex: FQ, setMouseClickAxisIndex: Zxe, setSyncInteraction: IQ, setKeyboardInteraction: LQ } = MQ.actions, Qxe = MQ.reducer;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js
function RQ(e, t) {
@@ -57498,26 +57771,26 @@ function zQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? RQ(Object(n), !0).forEach(function(t) {
- Hxe(e, t, n[t]);
+ $xe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : RQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Hxe(e, t, n) {
- return (t = Uxe(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 Uxe(e) {
- var t = Wxe(e, "string");
+function eSe(e) {
+ var t = tSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Wxe(e, t) {
+function tSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57527,21 +57800,21 @@ function Wxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Gxe(e, t, n) {
+function nSe(e, t, n) {
return t === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;
}
-function Kxe(e) {
+function rSe(e) {
return e.index != null;
}
var BQ = (e, t, n, r) => {
if (t == null) return jQ;
- var i = Gxe(e, t, n);
+ var i = nSe(e, t, n);
if (i == null) return jQ;
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 (Kxe(i)) {
+ if (rSe(i)) {
if (a) return zQ(zQ({}, i), {}, { active: !0 });
} else if (r != null) return {
active: !0,
@@ -57554,7 +57827,7 @@ var BQ = (e, t, n, r) => {
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js
-function qxe(e) {
+function iSe(e) {
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
if (e instanceof Date) {
var t = e.valueOf();
@@ -57563,24 +57836,24 @@ function qxe(e) {
var n = Number(e);
return Number.isFinite(n) ? n : void 0;
}
-function Jxe(e, t) {
- var n = qxe(e), r = t[0], i = t[1];
+function aSe(e, t) {
+ var n = iSe(e), r = t[0], i = t[1];
return n !== void 0 && n >= Math.min(r, i) && n <= Math.max(r, i);
}
-function Yxe(e, t, n) {
+function oSe(e, t, n) {
if (n == null || t == null) return !0;
- var r = pV(e, t);
- return r == null || !YK(n) || Jxe(r, n);
+ var r = SV(e, t);
+ return r == null || !YK(n) || aSe(r, n);
}
var VQ = (e, t, n, r) => {
var i = e?.index;
if (i == null) return null;
var a = Number(i);
- if (!lV(a)) return i;
+ if (!hV(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 || Yxe(l, n, r) ? String(c) : null;
+ return l == null || oSe(l, n, r) ? String(c) : null;
}, HQ = (e, t, n, r, i, a, o) => {
if (a != null) {
var s = o[0]?.getPosition(a);
@@ -57624,26 +57897,26 @@ function qQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? KQ(Object(n), !0).forEach(function(t) {
- Xxe(e, t, n[t]);
+ sSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : KQ(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 sSe(e, t, n) {
+ return (t = cSe(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 cSe(e) {
+ var t = lSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Qxe(e, t) {
+function lSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57653,57 +57926,57 @@ function Qxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function $xe(e) {
+function uSe(e) {
if (typeof e == "string" || typeof e == "number") return e;
}
-function eSe(e) {
+function dSe(e) {
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;
}
-function tSe(e) {
+function fSe(e) {
if (typeof e == "string" || typeof e == "number") return e;
if (typeof e == "function") return (t) => e(t);
}
function JQ(e) {
if (typeof e == "string") return e;
}
-function nSe(e) {
+function pSe(e) {
if (!(typeof e != "object" || !e)) return {
- name: "name" in e ? $xe(e.name) : void 0,
- unit: "unit" in e ? eSe(e.unit) : void 0,
- dataKey: "dataKey" in e ? tSe(e.dataKey) : void 0,
+ name: "name" in e ? uSe(e.name) : void 0,
+ unit: "unit" in e ? dSe(e.unit) : void 0,
+ dataKey: "dataKey" in e ? fSe(e.dataKey) : void 0,
payload: "payload" in e ? e.payload : void 0,
color: "color" in e ? JQ(e.color) : void 0,
fill: "fill" in e ? JQ(e.fill) : void 0
};
}
-function rSe(e, t) {
+function mSe(e, t) {
return e ?? t;
}
var YQ = (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 = rSe(d, s), m = Array.isArray(p) ? cV(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? cR(m, r, i) : a(m, t, c, g);
+ var { dataDefinedOnItem: d, settings: f } = n, p = mSe(d, s), m = Array.isArray(p) ? mV(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? mR(m, r, i) : a(m, t, c, g);
return Array.isArray(_) ? _.forEach((t) => {
- var n = nSe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = qQ(qQ({}, f), {}, {
+ var n = pSe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = qQ(qQ({}, f), {}, {
name: r,
unit: n?.unit,
color: n?.color ?? f?.color,
fill: n?.fill ?? f?.fill
});
- e.push(AV({
+ e.push(BV({
tooltipEntrySettings: o,
dataKey: i,
payload: a,
- value: pV(a, i),
+ value: SV(a, i),
name: r == null ? void 0 : String(r)
}));
- }) : e.push(AV({
+ }) : e.push(BV({
tooltipEntrySettings: f,
dataKey: h,
payload: _,
- value: pV(_, h),
- name: pV(_, g) ?? f?.name
+ value: SV(_, h),
+ name: SV(_, g) ?? f?.name
})), e;
}, []);
}
@@ -57715,17 +57988,17 @@ var YQ = (e, t, n, r, i, a, o) => {
$([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),
NZ,
$([Hq, Uq], vZ)
-], bZ, { memoizeOptions: { resultEqualityCheck: Vq } }), iSe = $([ZQ], (e) => e.filter(zq)), QQ = $([$([ZQ], wZ, { memoizeOptions: { resultEqualityCheck: Vq } }), GK], TZ), aSe = $([
- iSe,
+], bZ, { memoizeOptions: { resultEqualityCheck: Vq } }), hSe = $([ZQ], (e) => e.filter(zq)), QQ = $([$([ZQ], wZ, { memoizeOptions: { resultEqualityCheck: Vq } }), GK], TZ), gSe = $([
+ hSe,
GK,
NZ
], Rq), $Q = $([
QQ,
NZ,
ZQ
-], DZ), e$ = $([NZ], RZ), t$ = $([e$, $([NZ], (e) => e.allowDataOverflow)], ZK), oSe = $([
+], DZ), e$ = $([NZ], RZ), t$ = $([e$, $([NZ], (e) => e.allowDataOverflow)], ZK), _Se = $([
$([
- aSe,
+ gSe,
$([ZQ], (e) => e.filter(zq)),
dq,
fq
@@ -57733,23 +58006,23 @@ var YQ = (e, t, n, r, i, a, o) => {
GK,
Hq,
t$
-], LZ), sSe = $([
+], LZ), vSe = $([
QQ,
NZ,
$([ZQ], CZ),
VZ,
Hq
-], UZ, { memoizeOptions: { resultEqualityCheck: Bq } }), cSe = $([$([
+], UZ, { memoizeOptions: { resultEqualityCheck: Bq } }), ySe = $([$([
WZ,
Hq,
Uq
-], GZ), Hq], JZ), lSe = $([$([
+], GZ), Hq], JZ), bSe = $([$([
KZ,
Hq,
Uq
], GZ), Hq], YZ), n$ = $([
NZ,
- FH,
+ GH,
QQ,
$Q,
dq,
@@ -57758,21 +58031,21 @@ var YQ = (e, t, n, r, i, a, o) => {
NZ,
e$,
t$,
- oSe,
- sSe,
+ _Se,
+ vSe,
$([
- cSe,
+ ySe,
$([$([
qZ,
Hq,
Uq
], GZ), Hq], XZ),
- lSe
+ bSe
], HZ),
- FH,
+ GH,
Hq
], ZZ)
-], QZ), uSe = $([
+], QZ), xSe = $([
NZ,
n$,
$([
@@ -57784,22 +58057,22 @@ var YQ = (e, t, n, r, i, a, o) => {
], rQ), r$ = (e) => aQ(e, Hq(e), Uq(e), !1), i$ = $([NZ, r$], bq), a$ = $([$([
NZ,
XQ,
- uSe,
+ xSe,
i$
], nZ)], Wq), o$ = $([
- FH,
+ GH,
NZ,
XQ,
a$,
r$,
$([
- FH,
+ GH,
$Q,
NZ,
Hq
], vQ),
$([
- FH,
+ GH,
$Q,
NZ,
Hq
@@ -57807,32 +58080,32 @@ var YQ = (e, t, n, r, i, a, o) => {
Hq
], (e, t, n, r, i, a, o, s) => {
if (t) {
- var { type: c } = t, l = mV(e, s);
+ var { type: c } = t, l = wV(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 ? eR(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
+ return d = s === "angleAxis" && i != null && i?.length >= 2 ? oR(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
var n = r.map(e);
- return lV(n) ? {
+ return hV(n) ? {
coordinate: n + d,
value: e,
index: t,
offset: d
} : null;
- }).filter(dR) : r.domain().map((e, t) => {
+ }).filter(_R) : r.domain().map((e, t) => {
var n = r.map(e);
- return lV(n) ? {
+ return hV(n) ? {
coordinate: n + d,
value: a ? a[e] : e,
index: t,
offset: d
} : null;
- }).filter(dR);
+ }).filter(_R);
}
}
}), s$ = $([
EQ,
DQ,
- Nxe
+ Wxe
], (e, t, n) => OQ(n.shared, e, t)), c$ = (e) => e.tooltip.settings.trigger, l$ = (e) => e.tooltip.settings.defaultIndex, u$ = $([
GQ,
s$,
@@ -57845,22 +58118,22 @@ var YQ = (e, t, n, r, i, a, o) => {
n$
], VQ), f$ = $([o$, d$], AQ), p$ = $([u$], (e) => {
if (e) return e.dataKey;
-}), dSe = $([u$], (e) => {
+}), SSe = $([u$], (e) => {
if (e) return e.graphicalItemId;
}), m$ = $([
GQ,
s$,
c$,
l$
-], UQ), fSe = $([u$, $([
- PV,
- FV,
- FH,
- ZV,
+], UQ), CSe = $([u$, $([
+ WV,
+ GV,
+ GH,
+ sH,
o$,
l$,
m$
-], HQ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), pSe = $([u$], (e) => e?.active ?? !1), mSe = $([$([
+], HQ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), wSe = $([u$], (e) => e?.active ?? !1), TSe = $([$([
m$,
d$,
GK,
@@ -57890,26 +58163,26 @@ function g$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? h$(Object(n), !0).forEach(function(t) {
- hSe(e, t, n[t]);
+ ESe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function hSe(e, t, n) {
- return (t = gSe(t)) in e ? Object.defineProperty(e, t, {
+function ESe(e, t, n) {
+ return (t = DSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function gSe(e) {
- var t = _Se(e, "string");
+function DSe(e) {
+ var t = OSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function _Se(e, t) {
+function OSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57919,9 +58192,9 @@ function _Se(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var vSe = () => Q(NZ), ySe = () => {
- var e = vSe(), t = Q(o$), n = Q(a$);
- return kV(!e || !n ? void 0 : g$(g$({}, e), {}, { scale: n }), t);
+var kSe = () => Q(NZ), ASe = () => {
+ var e = kSe(), t = Q(o$), n = Q(a$);
+ return zV(!e || !n ? void 0 : g$(g$({}, e), {}, { scale: n }), t);
};
//#endregion
//#region node_modules/recharts/es6/util/getActiveCoordinate.js
@@ -57939,26 +58212,26 @@ function v$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? _$(Object(n), !0).forEach(function(t) {
- bSe(e, t, n[t]);
+ jSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bSe(e, t, n) {
- return (t = xSe(t)) in e ? Object.defineProperty(e, t, {
+function jSe(e, t, n) {
+ return (t = MSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xSe(e) {
- var t = SSe(e, "string");
+function MSe(e) {
+ var t = NSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function SSe(e, t) {
+function NSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57968,7 +58241,7 @@ function SSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var CSe = (e, t, n, r) => {
+var PSe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "horizontal") return {
@@ -57984,7 +58257,7 @@ var CSe = (e, t, n, r) => {
x: 0,
y: 0
};
-}, wSe = (e, t, n, r) => {
+}, FSe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "centric") {
@@ -58014,7 +58287,7 @@ var CSe = (e, t, n, r) => {
y: 0
};
};
-function TSe(e, t) {
+function ISe(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;
}
@@ -58024,9 +58297,9 @@ var y$ = (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 (eR(c - s) !== eR(l - c)) {
+ if (oR(c - s) !== oR(l - c)) {
var d = [];
- if (eR(l - c) === eR(i[1] - i[0])) {
+ if (oR(l - c) === oR(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);
@@ -58051,7 +58324,7 @@ var y$ = (e, t, n, r, i) => {
}
}
return -1;
-}, b$ = () => Q(pq), x$ = (e, t) => t, S$ = (e, t, n) => n, C$ = (e, t, n, r) => r, ESe = $(o$, (e) => rz(e, (e) => e.coordinate)), w$ = $([
+}, b$ = () => Q(pq), x$ = (e, t) => t, S$ = (e, t, n) => n, C$ = (e, t, n, r) => r, LSe = $(o$, (e) => lz(e, (e) => e.coordinate)), w$ = $([
GQ,
x$,
S$,
@@ -58061,7 +58334,7 @@ var y$ = (e, t, n, r, i) => {
QQ,
PZ,
n$
-], VQ), DSe = (e, t, n) => {
+], VQ), RSe = (e, t, n) => {
if (t != null) {
var r = GQ(e);
return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;
@@ -58072,14 +58345,14 @@ var y$ = (e, t, n, r, i) => {
S$,
C$
], UQ), D$ = $([
- PV,
- FV,
- FH,
- ZV,
+ WV,
+ GV,
+ GH,
+ sH,
o$,
C$,
E$
-], HQ), OSe = $([w$, D$], (e, t) => e.coordinate ?? t), O$ = $([o$, T$], AQ), kSe = $([
+], HQ), zSe = $([w$, D$], (e, t) => e.coordinate ?? t), O$ = $([o$, T$], AQ), BSe = $([
E$,
T$,
GK,
@@ -58087,39 +58360,39 @@ var y$ = (e, t, n, r, i) => {
O$,
WQ,
x$
-], YQ), ASe = $([w$, T$], (e, t) => ({
+], YQ), VSe = $([w$, T$], (e, t) => ({
isActive: e.active && t != null,
activeIndex: t
-})), jSe = (e, t, n, r, i, a, o) => {
- if (!(!e || !n || !r || !i) && TSe(e, o)) {
- var s = y$(MV(e, t), a, i, n, r), c = CSe(t, i, s, e);
+})), HSe = (e, t, n, r, i, a, o) => {
+ if (!(!e || !n || !r || !i) && ISe(e, o)) {
+ var s = y$(HV(e, t), a, i, n, r), c = PSe(t, i, s, e);
return {
activeIndex: String(s),
activeCoordinate: c
};
}
-}, MSe = (e, t, n, r, i, a, o) => {
+}, USe = (e, t, n, r, i, a, o) => {
if (!(!e || !r || !i || !a || !n)) {
- var s = K_e(e, n);
+ var s = rve(e, n);
if (s) {
- var c = y$(NV(s, t), o, a, r, i), l = wSe(t, a, c, s);
+ var c = y$(UV(s, t), o, a, r, i), l = FSe(t, a, c, s);
return {
activeIndex: String(c),
activeCoordinate: l
};
}
}
-}, NSe = (e, t, n, r, i, a, o, s) => {
- if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? jSe(e, t, r, i, a, o, s) : MSe(e, t, n, r, i, a, o);
-}, PSe = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
+}, WSe = (e, t, n, r, i, a, o, s) => {
+ if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? HSe(e, t, r, i, a, o, s) : USe(e, t, n, r, i, a, o);
+}, GSe = $((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;
}
-}), FSe = $((e) => e.zIndex.zIndexMap, (e) => {
+}), KSe = $((e) => e.zIndex.zIndexMap, (e) => {
var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(_q));
return Array.from(new Set(t)).sort((e, t) => e - t);
-}, { memoizeOptions: { resultEqualityCheck: pve } });
+}, { memoizeOptions: { resultEqualityCheck: wve } });
//#endregion
//#region node_modules/recharts/es6/state/zIndexSlice.js
function k$(e, t) {
@@ -58136,26 +58409,26 @@ function A$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? k$(Object(n), !0).forEach(function(t) {
- ISe(e, t, n[t]);
+ qSe(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 ISe(e, t, n) {
- return (t = LSe(t)) in e ? Object.defineProperty(e, t, {
+function qSe(e, t, n) {
+ return (t = JSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function LSe(e) {
- var t = RSe(e, "string");
+function JSe(e) {
+ var t = YSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function RSe(e, t) {
+function YSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58165,17 +58438,17 @@ function RSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var zSe = { zIndexMap: Object.values(_q).reduce((e, t) => A$(A$({}, e), {}, { [t]: {
+var XSe = { zIndexMap: Object.values(_q).reduce((e, t) => A$(A$({}, e), {}, { [t]: {
element: void 0,
panoramaElement: void 0,
consumers: 0
-} }), {}) }, BSe = new Set(Object.values(_q));
-function VSe(e) {
- return BSe.has(e);
+} }), {}) }, ZSe = new Set(Object.values(_q));
+function QSe(e) {
+ return ZSe.has(e);
}
-var j$ = PB({
+var j$ = BB({
name: "zIndex",
- initialState: zSe,
+ initialState: XSe,
reducers: {
registerZIndexPortal: {
reducer: (e, t) => {
@@ -58186,47 +58459,47 @@ var j$ = PB({
panoramaElement: void 0
};
},
- prepare: AB()
+ prepare: IB()
},
unregisterZIndexPortal: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
- e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !VSe(n) && delete e.zIndexMap[n]);
+ e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !QSe(n) && delete e.zIndexMap[n]);
},
- prepare: AB()
+ prepare: IB()
},
registerZIndexPortalElement: {
reducer: (e, t) => {
var { zIndex: n, element: r, isPanorama: i } = t.payload;
- e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = LU(r) : e.zIndexMap[n].element = LU(r) : e.zIndexMap[n] = {
+ e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = qU(r) : e.zIndexMap[n].element = qU(r) : e.zIndexMap[n] = {
consumers: 0,
- element: i ? void 0 : LU(r),
- panoramaElement: i ? LU(r) : void 0
+ element: i ? void 0 : qU(r),
+ panoramaElement: i ? qU(r) : void 0
};
},
- prepare: AB()
+ prepare: IB()
},
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: AB()
+ prepare: IB()
}
}
-}), { registerZIndexPortal: HSe, unregisterZIndexPortal: USe, registerZIndexPortalElement: WSe, unregisterZIndexPortalElement: GSe } = j$.actions, KSe = j$.reducer;
+}), { registerZIndexPortal: $Se, unregisterZIndexPortal: eCe, registerZIndexPortalElement: tCe, unregisterZIndexPortalElement: nCe } = j$.actions, rCe = j$.reducer;
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
function M$(e) {
- var { zIndex: t, children: n } = e, r = BH() && t !== void 0 && t !== 0, i = tH(), a = YR();
- (0, R.useLayoutEffect)(() => r ? (a(HSe({ zIndex: t })), () => {
- a(USe({ zIndex: t }));
- }) : fR, [
+ var { zIndex: t, children: n } = e, r = XH() && t !== void 0 && t !== 0, i = dH(), a = tz();
+ (0, R.useLayoutEffect)(() => r ? (a($Se({ zIndex: t })), () => {
+ a(eCe({ zIndex: t }));
+ }) : vR, [
a,
t,
r
]);
- var o = Q((e) => PSe(e, t, i));
+ var o = Q((e) => GSe(e, t, i));
return r ? o ? /*#__PURE__*/ (0, be.createPortal)(n, o) : null : n;
}
//#endregion
@@ -58254,26 +58527,26 @@ function F$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? P$(Object(n), !0).forEach(function(t) {
- qSe(e, t, n[t]);
+ iCe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function qSe(e, t, n) {
- return (t = JSe(t)) in e ? Object.defineProperty(e, t, {
+function iCe(e, t, n) {
+ return (t = aCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function JSe(e) {
- var t = YSe(e, "string");
+function aCe(e) {
+ var t = oCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function YSe(e, t) {
+function oCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58283,17 +58556,17 @@ function YSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function XSe(e) {
+function sCe(e) {
var { cursor: t, cursorComp: n, cursorProps: r } = e;
return /*#__PURE__*/ (0, R.isValidElement)(t) ? /*#__PURE__*/ (0, R.cloneElement)(t, r) : /*#__PURE__*/ (0, R.createElement)(n, r);
}
-function ZSe(e) {
+function cCe(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 = EG, h = _q.cursorLine;
- else if (l === "BarChart") p = DG(o, u, i, a), m = jK, h = _q.cursorRectangle;
- else if (o === "radial" && vR(u)) {
+ if (l === "ScatterChart") p = u, m = IG, h = _q.cursorLine;
+ else if (l === "BarChart") p = LG(o, u, i, a), m = jK, h = _q.cursorRectangle;
+ else if (o === "radial" && wR(u)) {
var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = LK(u);
p = {
cx: g,
@@ -58303,24 +58576,24 @@ function ZSe(e) {
innerRadius: v,
outerRadius: v
}, m = HK, h = _q.cursorLine;
- } else p = { points: rve(o, u, i) }, m = hG, h = _q.cursorLine;
+ } else p = { points: mve(o, u, i) }, m = TG, h = _q.cursorLine;
var x = typeof s == "object" && "className" in s ? s.className : void 0, S = F$(F$(F$(F$({
stroke: "#ccc",
pointerEvents: "none"
- }, i), p), qI(s)), {}, {
+ }, i), p), $I(s)), {}, {
payload: d,
payloadIndex: f,
- className: $l("recharts-tooltip-cursor", x)
+ className: Ql("recharts-tooltip-cursor", x)
});
- return /*#__PURE__*/ R.createElement(M$, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ R.createElement(XSe, {
+ return /*#__PURE__*/ R.createElement(M$, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ R.createElement(sCe, {
cursor: s,
cursorComp: m,
cursorProps: S
}));
}
-function QSe(e) {
- var t = ySe(), n = jH(), r = IH(), i = b$();
- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ R.createElement(ZSe, N$({}, e, {
+function lCe(e) {
+ var t = ASe(), n = VH(), r = KH(), i = b$();
+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ R.createElement(cCe, N$({}, e, {
offset: n,
layout: r,
tooltipAxisBandSize: t,
@@ -58329,7 +58602,7 @@ function QSe(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipPortalContext.js
-var I$ = /*#__PURE__*/ (0, R.createContext)(null), $Se = () => (0, R.useContext)(I$), eCe = (/* @__PURE__ */ L((/* @__PURE__ */ ce(((e, t) => {
+var I$ = /*#__PURE__*/ (0, R.createContext)(null), uCe = () => (0, R.useContext)(I$), dCe = (/* @__PURE__ */ L((/* @__PURE__ */ ce(((e, t) => {
var n = Object.prototype.hasOwnProperty, r = "~";
function i() {}
Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
@@ -58416,12 +58689,12 @@ var I$ = /*#__PURE__*/ (0, R.createContext)(null), $Se = () => (0, R.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, L$ = new eCe(), R$ = "recharts.syncEvent.tooltip", z$ = "recharts.syncEvent.brush", B$ = (e, t) => {
+})))(), 1)).default, L$ = new dCe(), R$ = "recharts.syncEvent.tooltip", z$ = "recharts.syncEvent.brush", B$ = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
- if (!tR(n)) return e[n];
+ if (!sR(n)) return e[n];
}
-}, V$ = PB({
+}, V$ = BB({
name: "options",
initialState: {
chartName: "",
@@ -58432,13 +58705,13 @@ var I$ = /*#__PURE__*/ (0, R.createContext)(null), $Se = () => (0, R.useContext)
reducers: { createEventEmitter: (e) => {
e.eventEmitter ??= Symbol("rechartsEventEmitter");
} }
-}), tCe = V$.reducer, { createEventEmitter: nCe } = V$.actions;
+}), fCe = V$.reducer, { createEventEmitter: pCe } = V$.actions;
//#endregion
//#region node_modules/recharts/es6/synchronisation/syncSelectors.js
-function rCe(e) {
+function mCe(e) {
return e.tooltip.syncInteraction;
}
-var H$ = PB({
+var H$ = BB({
name: "chartData",
initialState: {
chartData: void 0,
@@ -58448,7 +58721,7 @@ var H$ = PB({
},
reducers: {
setChartData(e, t) {
- if (e.chartData = LU(t.payload), t.payload == null) {
+ if (e.chartData = qU(t.payload), t.payload == null) {
e.dataStartIndex = 0, e.dataEndIndex = 0;
return;
}
@@ -58462,7 +58735,7 @@ var H$ = PB({
n != null && (e.dataStartIndex = n), r != null && (e.dataEndIndex = r);
}
}
-}), { setChartData: U$, setDataStartEndIndexes: iCe, setComputedData: aCe } = H$.actions, oCe = H$.reducer, sCe = ["x", "y"];
+}), { setChartData: U$, setDataStartEndIndexes: hCe, setComputedData: gCe } = H$.actions, _Ce = H$.reducer, vCe = ["x", "y"];
function W$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -58477,26 +58750,26 @@ function G$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? W$(Object(n), !0).forEach(function(t) {
- cCe(e, t, n[t]);
+ yCe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : W$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function cCe(e, t, n) {
- return (t = lCe(t)) in e ? Object.defineProperty(e, t, {
+function yCe(e, t, n) {
+ return (t = bCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function lCe(e) {
- var t = uCe(e, "string");
+function bCe(e) {
+ var t = xCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function uCe(e, t) {
+function xCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58506,16 +58779,16 @@ function uCe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function dCe(e, t) {
+function SCe(e, t) {
if (e == null) return {};
- var n, r, i = fCe(e, t);
+ var n, r, i = CCe(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 fCe(e, t) {
+function CCe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58524,16 +58797,16 @@ function fCe(e, t) {
}
return n;
}
-function pCe() {
- var e = Q(mq), t = Q(gq), n = YR(), r = Q(hq), i = Q(o$), a = IH(), o = kH(), s = Q((e) => e.rootProps.className);
+function wCe() {
+ var e = Q(mq), t = Q(gq), n = tz(), r = Q(hq), i = Q(o$), a = KH(), o = zH(), s = Q((e) => e.rootProps.className);
(0, R.useEffect)(() => {
- if (e == null) return fR;
+ if (e == null) return vR;
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 = dCe(d, sCe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = G$(G$({}, m), {}, {
+ var d = c.payload.coordinate, { x: f, y: p } = d, m = SCe(d, vCe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = G$(G$({}, m), {}, {
x: o.x + (_ ? (f - h) / _ : 0) * o.width,
y: o.y + (v ? (p - g) / v : 0) * o.height
});
@@ -58594,12 +58867,12 @@ function pCe() {
o
]);
}
-function mCe() {
- var e = Q(mq), t = Q(gq), n = YR();
+function TCe() {
+ var e = Q(mq), t = Q(gq), n = tz();
(0, R.useEffect)(() => {
- if (e == null) return fR;
+ if (e == null) return vR;
var r = (r, i, a) => {
- t !== a && e === r && n(iCe(i));
+ t !== a && e === r && n(hCe(i));
};
return L$.on(z$, r), () => {
L$.off(z$, r);
@@ -58610,14 +58883,14 @@ function mCe() {
e
]);
}
-function hCe() {
- var e = YR();
+function ECe() {
+ var e = tz();
(0, R.useEffect)(() => {
- e(nCe());
- }, [e]), pCe(), mCe();
+ e(pCe());
+ }, [e]), wCe(), TCe();
}
-function gCe(e, t, n, r, i, a) {
- var o = Q((n) => DSe(n, e, t)), s = Q(dSe), c = Q(gq), l = Q(mq), u = Q(hq), d = Q(rCe)?.active, f = kH();
+function DCe(e, t, n, r, i, a) {
+ var o = Q((n) => RSe(n, e, t)), s = Q(SSe), c = Q(gq), l = Q(mq), u = Q(hq), d = Q(mCe)?.active, f = zH();
(0, R.useEffect)(() => {
if (!d && l != null && c != null) {
var e = IQ({
@@ -58661,26 +58934,26 @@ function q$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? K$(Object(n), !0).forEach(function(t) {
- _Ce(e, t, n[t]);
+ OCe(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 _Ce(e, t, n) {
- return (t = vCe(t)) in e ? Object.defineProperty(e, t, {
+function OCe(e, t, n) {
+ return (t = kCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function vCe(e) {
- var t = yCe(e, "string");
+function kCe(e) {
+ var t = ACe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function yCe(e, t) {
+function ACe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58690,13 +58963,13 @@ function yCe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function bCe(e) {
+function jCe(e) {
return e.dataKey;
}
-function xCe(e, t) {
- return /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ R.createElement(e, t) : /*#__PURE__*/ R.createElement(LW, t);
+function MCe(e, t) {
+ return /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ R.createElement(e, t) : /*#__PURE__*/ R.createElement(qW, t);
}
-var J$ = [], SCe = {
+var J$ = [], NCe = {
allowEscapeViewBox: {
x: !1,
y: !1
@@ -58722,10 +58995,10 @@ var J$ = [], SCe = {
useTranslate3d: !1,
wrapperStyle: {}
};
-function CCe(e) {
- var t = SR(e, SCe), { 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 = YR(), S = typeof v == "number" ? String(v) : v;
+function PCe(e) {
+ var t = OR(e, NCe), { 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 = tz(), S = typeof v == "number" ? String(v) : v;
(0, R.useEffect)(() => {
- x(Lxe({
+ x(Jxe({
shared: g,
trigger: _,
axisId: b,
@@ -58740,12 +59013,12 @@ function CCe(e) {
n,
S
]);
- var C = kH(), w = eG(), T = Mxe(g), { activeIndex: E, isActive: D } = Q((e) => ASe(e, T, _, S)) ?? {}, O = Q((e) => kSe(e, T, _, S)), k = Q((e) => O$(e, T, _, S)), A = Q((e) => OSe(e, T, _, S)), j = O, M = $Se(), N = n ?? D ?? !1, [P, ee] = oz([j, N]), F = T === "axis" ? k : void 0;
- gCe(T, _, A, F, E, N);
+ var C = zH(), w = uG(), T = Uxe(g), { activeIndex: E, isActive: D } = Q((e) => VSe(e, T, _, S)) ?? {}, O = Q((e) => BSe(e, T, _, S)), k = Q((e) => O$(e, T, _, S)), A = Q((e) => zSe(e, T, _, S)), j = O, M = uCe(), N = n ?? D ?? !1, [P, ee] = fz([j, N]), F = T === "axis" ? k : void 0;
+ DCe(T, _, A, F, E, N);
var I = y ?? M;
if (I == null || C == null || T == null) return null;
var te = j ?? J$;
- N || (te = J$), s && te.length && (te = qR(te.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, bCe));
+ N || (te = J$), s && te.length && (te = $R(te.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, jCe));
var ne = te.length > 0, re = q$(q$({}, t), {}, {
payload: te,
label: F,
@@ -58753,7 +59026,7 @@ function CCe(e) {
activeIndex: E,
coordinate: A,
accessibilityLayer: w
- }), ie = /*#__PURE__*/ R.createElement($W, {
+ }), ie = /*#__PURE__*/ R.createElement(lG, {
allowEscapeViewBox: r,
animationDuration: i,
animationEasing: a,
@@ -58770,8 +59043,8 @@ function CCe(e) {
lastBoundingBox: P,
innerRef: ee,
hasPortalFromProps: !!y
- }, xCe(o, re));
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ (0, be.createPortal)(ie, I), N && /*#__PURE__*/ R.createElement(QSe, {
+ }, MCe(o, re));
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ (0, be.createPortal)(ie, I), N && /*#__PURE__*/ R.createElement(lCe, {
cursor: h,
tooltipEventType: T,
coordinate: A,
@@ -58785,19 +59058,19 @@ var Y$ = (e) => null;
Y$.displayName = "Cell";
//#endregion
//#region node_modules/recharts/es6/util/LRUCache.js
-function wCe(e, t, n) {
- return (t = TCe(t)) in e ? Object.defineProperty(e, t, {
+function FCe(e, t, n) {
+ return (t = ICe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function TCe(e) {
- var t = ECe(e, "string");
+function ICe(e) {
+ var t = LCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ECe(e, t) {
+function LCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58807,9 +59080,9 @@ function ECe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var DCe = class {
+var RCe = class {
constructor(e) {
- wCe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
+ FCe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
}
get(e) {
var t = this.cache.get(e);
@@ -58842,30 +59115,30 @@ function X$(e, t) {
}
return n;
}
-function OCe(e) {
+function zCe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? X$(Object(n), !0).forEach(function(t) {
- kCe(e, t, n[t]);
+ BCe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function kCe(e, t, n) {
- return (t = ACe(t)) in e ? Object.defineProperty(e, t, {
+function BCe(e, t, n) {
+ return (t = VCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ACe(e) {
- var t = jCe(e, "string");
+function VCe(e) {
+ var t = HCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function jCe(e, t) {
+function HCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58875,10 +59148,10 @@ function jCe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Z$ = OCe({}, {
+var Z$ = zCe({}, {
cacheSize: 2e3,
enableCache: !0
-}), Q$ = new DCe(Z$.cacheSize), MCe = {
+}), Q$ = new RCe(Z$.cacheSize), UCe = {
position: "absolute",
top: "-20000px",
left: 0,
@@ -58887,13 +59160,13 @@ var Z$ = OCe({}, {
border: "none",
whiteSpace: "pre"
}, $$ = "recharts_measurement_span";
-function NCe(e, t) {
+function WCe(e, t) {
return `${e}|${t.fontSize || ""}|${t.fontFamily || ""}|${t.fontWeight || ""}|${t.fontStyle || ""}|${t.letterSpacing || ""}|${t.textTransform || ""}`;
}
var e1 = (e, t) => {
try {
var n = document.getElementById($$);
- n || (n = document.createElement("span"), n.setAttribute("id", $$), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, MCe, t), n.textContent = `${e}`;
+ n || (n = document.createElement("span"), n.setAttribute("id", $$), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, UCe, t), n.textContent = `${e}`;
var r = n.getBoundingClientRect();
return {
width: r.width,
@@ -58907,29 +59180,29 @@ var e1 = (e, t) => {
}
}, t1 = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- if (e == null || WW.isSsr) return {
+ if (e == null || eG.isSsr) return {
width: 0,
height: 0
};
if (!Z$.enableCache) return e1(e, t);
- var n = NCe(e, t), r = Q$.get(n);
+ var n = WCe(e, t), r = Q$.get(n);
if (r) return r;
var i = e1(e, t);
return Q$.set(n, i), i;
}, n1;
-function PCe(e, t, n) {
- return (t = FCe(t)) in e ? Object.defineProperty(e, t, {
+function GCe(e, t, n) {
+ return (t = KCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function FCe(e) {
- var t = ICe(e, "string");
+function KCe(e) {
+ var t = qCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ICe(e, t) {
+function qCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58939,7 +59212,7 @@ function ICe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var r1 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, i1 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, LCe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, RCe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, zCe = {
+var r1 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, i1 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, JCe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, YCe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, XCe = {
cm: 96 / 2.54,
mm: 96 / 25.4,
pt: 96 / 72,
@@ -58947,7 +59220,7 @@ var r1 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, i1 = /(
in: 96,
Q: 96 / 101.6,
px: 1
-}, BCe = [
+}, ZCe = [
"cm",
"mm",
"pt",
@@ -58956,20 +59229,20 @@ var r1 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, i1 = /(
"Q",
"px"
];
-function VCe(e) {
- return BCe.includes(e);
+function QCe(e) {
+ return ZCe.includes(e);
}
var a1 = "NaN";
-function HCe(e, t) {
- return e * zCe[t];
+function $Ce(e, t) {
+ return e * XCe[t];
}
var o1 = class e {
static parse(t) {
- var [, n, r] = RCe.exec(t) ?? [];
+ var [, n, r] = YCe.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, tR(e) && (this.unit = ""), t !== "" && !LCe.test(t) && (this.num = NaN, this.unit = ""), VCe(t) && (this.num = HCe(e, t), this.unit = "px");
+ this.num = e, this.unit = t, this.num = e, this.unit = t, sR(e) && (this.unit = ""), t !== "" && !JCe.test(t) && (this.num = NaN, this.unit = ""), QCe(t) && (this.num = $Ce(e, t), this.unit = "px");
}
add(t) {
return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");
@@ -58987,10 +59260,10 @@ var o1 = class e {
return `${this.num}${this.unit}`;
}
isNaN() {
- return tR(this.num);
+ return sR(this.num);
}
};
-n1 = o1, PCe(o1, "NaN", new n1(NaN, ""));
+n1 = o1, GCe(o1, "NaN", new n1(NaN, ""));
function s1(e) {
if (e == null || e.includes(a1)) return a1;
for (var t = e; t.includes("*") || t.includes("/");) {
@@ -59006,31 +59279,31 @@ function s1(e) {
return t;
}
var c1 = /\(([^()]*)\)/;
-function UCe(e) {
+function ewe(e) {
for (var t = e, n; (n = c1.exec(t)) != null;) {
var [, r] = n;
t = t.replace(c1, s1(r));
}
return t;
}
-function WCe(e) {
+function twe(e) {
var t = e.replace(/\s+/g, "");
- return t = UCe(t), t = s1(t), t;
+ return t = ewe(t), t = s1(t), t;
}
-function GCe(e) {
+function nwe(e) {
try {
- return WCe(e);
+ return twe(e);
} catch {
return a1;
}
}
function l1(e) {
- var t = GCe(e.slice(5, -1));
+ var t = nwe(e.slice(5, -1));
return t === a1 ? "" : t;
}
//#endregion
//#region node_modules/recharts/es6/component/Text.js
-var KCe = [
+var rwe = [
"x",
"y",
"lineHeight",
@@ -59039,7 +59312,7 @@ var KCe = [
"scaleToFit",
"textAnchor",
"verticalAnchor"
-], qCe = [
+], iwe = [
"dx",
"dy",
"angle",
@@ -59057,14 +59330,14 @@ function u1() {
}
function d1(e, t) {
if (e == null) return {};
- var n, r, i = JCe(e, t);
+ var n, r, i = awe(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 awe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59077,7 +59350,7 @@ var f1 = /[ \f\n\r\t\v\u2028\u2029]+/, p1 = (e) => {
var { children: t, breakAll: n, style: r } = e;
try {
var i = [];
- return lR(t) || (i = n ? t.toString().split("") : t.toString().split(f1)), {
+ return hR(t) || (i = n ? t.toString().split("") : t.toString().split(f1)), {
wordsWithComputedWidth: i.map((e) => ({
word: e,
width: t1(e, r).width
@@ -59091,8 +59364,8 @@ var f1 = /[ \f\n\r\t\v\u2028\u2029]+/, p1 = (e) => {
function m1(e) {
return e === "start" || e === "middle" || e === "end" || e === "inherit";
}
-function YCe(e) {
- return lR(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
+function owe(e) {
+ return hR(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
}
var h1 = (e, t, n, r) => e.reduce((e, i) => {
var { word: a, width: o } = i, s = e[e.length - 1];
@@ -59105,16 +59378,16 @@ var h1 = (e, t, n, r) => e.reduce((e, i) => {
e.push(c);
}
return e;
-}, []), g1 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), XCe = "…", _1 = (e, t, n, r, i, a, o, s) => {
+}, []), g1 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), swe = "…", _1 = (e, t, n, r, i, a, o, s) => {
var c = p1({
breakAll: n,
style: r,
- children: e.slice(0, t) + XCe
+ children: e.slice(0, t) + swe
});
if (!c) return [!1, []];
var l = h1(c.wordsWithComputedWidth, a, o, s);
return [l.length > i || g1(l).width > Number(a), l];
-}, ZCe = (e, t, n, r, i) => {
+}, cwe = (e, t, n, r, i) => {
var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = h1(t, r, n, i);
if (!l || i || !(d.length > a || g1(d).width > Number(r))) return d;
for (var f = 0, p = u.length - 1, m = 0, h; f <= p && m <= u.length - 1;) {
@@ -59127,11 +59400,11 @@ var h1 = (e, t, n, r) => e.reduce((e, i) => {
}
return h || d;
}, v1 = (e) => [{
- words: lR(e) ? [] : e.toString().split(f1),
+ words: hR(e) ? [] : e.toString().split(f1),
width: void 0
-}], QCe = (e) => {
+}], lwe = (e) => {
var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;
- if ((t || n) && !WW.isSsr) {
+ if ((t || n) && !eG.isSsr) {
var s, c, l = p1({
breakAll: a,
children: r,
@@ -59141,7 +59414,7 @@ var h1 = (e, t, n, r) => e.reduce((e, i) => {
var { wordsWithComputedWidth: u, spaceWidth: d } = l;
s = u, c = d;
} else return v1(r);
- return ZCe({
+ return cwe({
breakAll: a,
children: r,
maxLines: o,
@@ -59149,7 +59422,7 @@ var h1 = (e, t, n, r) => e.reduce((e, i) => {
}, s, c, t, !!n);
}
return v1(r);
-}, y1 = "#808080", $Ce = {
+}, y1 = "#808080", uwe = {
angle: 0,
breakAll: !1,
capHeight: "0.71em",
@@ -59161,7 +59434,7 @@ var h1 = (e, t, n, r) => e.reduce((e, i) => {
x: 0,
y: 0
}, b1 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = SR(e, $Ce), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = d1(n, KCe), f = (0, R.useMemo)(() => QCe({
+ var n = OR(e, uwe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = d1(n, rwe), f = (0, R.useMemo)(() => lwe({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -59175,10 +59448,10 @@ var h1 = (e, t, n, r) => e.reduce((e, i) => {
c,
d.style,
d.width
- ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = d1(d, qCe);
- if (!rR(r) || !rR(i) || f.length === 0) return null;
+ ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = d1(d, iwe);
+ if (!lR(r) || !lR(i) || f.length === 0) return null;
var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);
- if (!lV(y) || !lV(b)) return null;
+ if (!hV(y) || !hV(b)) return null;
var x;
switch (u) {
case "start":
@@ -59194,11 +59467,11 @@ var h1 = (e, t, n, r) => e.reduce((e, i) => {
var w = C.width, { width: T } = d;
S.push(`scale(${Z(T) && Z(w) ? T / w : 1})`);
}
- return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ R.createElement("text", u1({}, JI(v), {
+ return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ R.createElement("text", u1({}, eL(v), {
ref: t,
x: y,
y: b,
- className: $l("recharts-text", g),
+ className: Ql("recharts-text", g),
textAnchor: l,
fill: s.includes("url") ? y1 : s
}), f.map((e, t) => {
@@ -59227,26 +59500,26 @@ function S1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? x1(Object(n), !0).forEach(function(t) {
- ewe(e, t, n[t]);
+ dwe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : x1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ewe(e, t, n) {
- return (t = twe(t)) in e ? Object.defineProperty(e, t, {
+function dwe(e, t, n) {
+ return (t = fwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function twe(e) {
- var t = nwe(e, "string");
+function fwe(e) {
+ var t = pwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function nwe(e, t) {
+function pwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59256,8 +59529,8 @@ function nwe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var rwe = (e) => {
- var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = OH(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 mwe = (e) => {
+ var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = RH(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,
@@ -59338,9 +59611,9 @@ var rwe = (e) => {
y: s + c - _,
horizontalAnchor: S,
verticalAnchor: v
- }, k) : n && typeof n == "object" && (Z(n.x) || nR(n.x)) && (Z(n.y) || nR(n.y)) ? S1({
- x: o + aR(n.x, m),
- y: s + aR(n.y, c),
+ }, k) : n && typeof n == "object" && (Z(n.x) || cR(n.x)) && (Z(n.y) || cR(n.y)) ? S1({
+ x: o + dR(n.x, m),
+ y: s + dR(n.y, c),
horizontalAnchor: "end",
verticalAnchor: "end"
}, k) : S1({
@@ -59349,17 +59622,17 @@ var rwe = (e) => {
horizontalAnchor: "middle",
verticalAnchor: "middle"
}, k);
-}, iwe = ["labelRef"], awe = ["content"];
+}, hwe = ["labelRef"], gwe = ["content"];
function C1(e, t) {
if (e == null) return {};
- var n, r, i = owe(e, t);
+ var n, r, i = _we(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 _we(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59382,26 +59655,26 @@ function T1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? w1(Object(n), !0).forEach(function(t) {
- swe(e, t, n[t]);
+ vwe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : w1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function swe(e, t, n) {
- return (t = cwe(t)) in e ? Object.defineProperty(e, t, {
+function vwe(e, t, n) {
+ return (t = ywe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function cwe(e) {
- var t = lwe(e, "string");
+function ywe(e) {
+ var t = bwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function lwe(e, t) {
+function bwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59438,9 +59711,9 @@ var D1 = /*#__PURE__*/ (0, R.createContext)(null), O1 = (e) => {
]);
return /*#__PURE__*/ R.createElement(D1.Provider, { value: c }, s);
}, k1 = () => {
- var e = (0, R.useContext)(D1), t = kH();
- return e || (t ? OH(t) : void 0);
-}, A1 = /*#__PURE__*/ (0, R.createContext)(null), uwe = (e) => {
+ var e = (0, R.useContext)(D1), t = zH();
+ return e || (t ? RH(t) : void 0);
+}, A1 = /*#__PURE__*/ (0, R.createContext)(null), xwe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, clockWise: s, children: c } = e, l = (0, R.useMemo)(() => ({
cx: t,
cy: n,
@@ -59462,11 +59735,11 @@ var D1 = /*#__PURE__*/ (0, R.createContext)(null), O1 = (e) => {
}, j1 = () => {
var e = (0, R.useContext)(A1), t = Q(Pq);
return e || t;
-}, dwe = (e) => {
- var { value: t, formatter: n } = e, r = lR(e.children) ? t : e.children;
+}, Swe = (e) => {
+ var { value: t, formatter: n } = e, r = hR(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
-}, M1 = (e) => e != null && typeof e == "function", fwe = (e, t) => eR(t - e) * Math.min(Math.abs(t - e), 360), pwe = (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 = fwe(d, f), g = h >= 0 ? 1 : -1, _, v;
+}, M1 = (e) => e != null && typeof e == "function", Cwe = (e, t) => oR(t - e) * Math.min(Math.abs(t - e), 360), wwe = (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 = Cwe(d, f), g = h >= 0 ? 1 : -1, _, v;
switch (t) {
case "insideStart":
_ = d + g * a, v = p;
@@ -59482,15 +59755,15 @@ var D1 = /*#__PURE__*/ (0, R.createContext)(null), O1 = (e) => {
v = h <= 0 ? v : !v;
var y = IK(s, c, m, _), b = IK(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
A${m},${m},0,1,${+!v},
- ${b.x},${b.y}`, S = lR(e.id) ? iR("recharts-radial-line-") : e.id;
+ ${b.x},${b.y}`, S = hR(e.id) ? uR("recharts-radial-line-") : e.id;
return /*#__PURE__*/ R.createElement("text", E1({}, r, {
dominantBaseline: "central",
- className: $l("recharts-radial-bar-label", o)
+ className: Ql("recharts-radial-bar-label", o)
}), /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("path", {
id: S,
d: x
})), /*#__PURE__*/ R.createElement("textPath", { xlinkHref: `#${S}` }, n));
-}, mwe = (e, t, n) => {
+}, Twe = (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 } = IK(r, i, o + t, l);
@@ -59526,14 +59799,14 @@ var D1 = /*#__PURE__*/ (0, R.createContext)(null), O1 = (e) => {
textAnchor: "middle",
verticalAnchor: "middle"
};
-}, N1 = (e) => e != null && "cx" in e && Z(e.cx), hwe = {
+}, N1 = (e) => e != null && "cx" in e && Z(e.cx), Ewe = {
angle: 0,
offset: 5,
zIndex: _q.label,
position: "middle",
textBreakAll: !1
};
-function gwe(e) {
+function Dwe(e) {
if (!N1(e)) return e;
var { cx: t, cy: n, outerRadius: r } = e, i = r * 2;
return {
@@ -59546,24 +59819,24 @@ function gwe(e) {
};
}
function P1(e) {
- var t = SR(e, hwe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = j1(), f = k1(), p = n == null ? i === "center" ? f : d ?? f : N1(n) ? n : OH(n), m, h, g = gwe(p);
- if (!p || lR(a) && lR(o) && !/*#__PURE__*/ (0, R.isValidElement)(s) && typeof s != "function") return null;
+ var t = OR(e, Ewe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = j1(), f = k1(), p = n == null ? i === "center" ? f : d ?? f : N1(n) ? n : RH(n), m, h, g = Dwe(p);
+ if (!p || hR(a) && hR(o) && !/*#__PURE__*/ (0, R.isValidElement)(s) && typeof s != "function") return null;
var _ = T1(T1({}, t), {}, { viewBox: p });
if (/*#__PURE__*/ (0, R.isValidElement)(s)) {
- var { labelRef: v } = _, y = C1(_, iwe);
+ var { labelRef: v } = _, y = C1(_, hwe);
return /*#__PURE__*/ (0, R.cloneElement)(s, y);
}
if (typeof s == "function") {
- var { content: b } = _, x = C1(_, awe);
+ var { content: b } = _, x = C1(_, gwe);
if (m = /*#__PURE__*/ (0, R.createElement)(s, x), /*#__PURE__*/ (0, R.isValidElement)(m)) return m;
- } else m = dwe(t);
- var S = JI(t);
+ } else m = Swe(t);
+ var S = eL(t);
if (N1(p)) {
- if (i === "insideStart" || i === "insideEnd" || i === "end") return pwe(t, i, m, S, p);
- h = mwe(p, t.offset, t.position);
+ if (i === "insideStart" || i === "insideEnd" || i === "end") return wwe(t, i, m, S, p);
+ h = Twe(p, t.offset, t.position);
} else {
if (!g) return null;
- var C = rwe({
+ var C = mwe({
viewBox: g,
position: i,
offset: t.offset,
@@ -59579,7 +59852,7 @@ function P1(e) {
}
return /*#__PURE__*/ R.createElement(M$, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(b1, E1({
ref: u,
- className: $l("recharts-label", c)
+ className: Ql("recharts-label", c)
}, S, h, {
textAnchor: m1(S.textAnchor) ? S.textAnchor : h.textAnchor,
breakAll: l
@@ -59592,7 +59865,7 @@ var F1 = (e, t, n) => {
viewBox: t,
labelRef: n
};
- return e === !0 ? /*#__PURE__*/ R.createElement(P1, E1({ key: "label-implicit" }, r)) : rR(e) ? /*#__PURE__*/ R.createElement(P1, E1({
+ return e === !0 ? /*#__PURE__*/ R.createElement(P1, E1({ key: "label-implicit" }, r)) : lR(e) ? /*#__PURE__*/ R.createElement(P1, E1({
key: "label-implicit",
value: e
}, r)) : /*#__PURE__*/ (0, R.isValidElement)(e) ? e.type === P1 ? /*#__PURE__*/ (0, R.cloneElement)(e, T1({ key: "label-implicit" }, r)) : /*#__PURE__*/ R.createElement(P1, E1({
@@ -59607,13 +59880,13 @@ function I1(e) {
var { label: t, labelRef: n } = e;
return F1(t, k1(), n) || null;
}
-function _we(e) {
+function Owe(e) {
var { label: t } = e;
return F1(t, j1()) || null;
}
//#endregion
//#region node_modules/recharts/es6/component/LabelList.js
-var vwe = ["valueAccessor"], ywe = [
+var kwe = ["valueAccessor"], Awe = [
"dataKey",
"clockWise",
"id",
@@ -59631,14 +59904,14 @@ function L1() {
}
function R1(e, t) {
if (e == null) return {};
- var n, r, i = bwe(e, t);
+ var n, r, i = jwe(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 jwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59647,21 +59920,21 @@ function bwe(e, t) {
}
return n;
}
-var xwe = (e) => {
+var Mwe = (e) => {
var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;
- if (YCe(t)) return t;
-}, z1 = /*#__PURE__*/ (0, R.createContext)(void 0), B1 = z1.Provider, V1 = /*#__PURE__*/ (0, R.createContext)(void 0), Swe = V1.Provider;
-function Cwe() {
+ if (owe(t)) return t;
+}, z1 = /*#__PURE__*/ (0, R.createContext)(void 0), B1 = z1.Provider, V1 = /*#__PURE__*/ (0, R.createContext)(void 0), Nwe = V1.Provider;
+function Pwe() {
return (0, R.useContext)(z1);
}
-function wwe() {
+function Fwe() {
return (0, R.useContext)(V1);
}
function H1(e) {
- var { valueAccessor: t = xwe } = e, n = R1(e, vwe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = R1(n, ywe), l = Cwe(), u = wwe(), d = l || u;
- return !d || !d.length ? null : /*#__PURE__*/ R.createElement(M$, { zIndex: s ?? _q.label }, /*#__PURE__*/ R.createElement(QI, { className: "recharts-label-list" }, d.map((e, i) => {
- var s = lR(r) ? t(e, i) : pV(e.payload, r), l = lR(a) ? {} : { id: `${a}-${i}` };
- return /*#__PURE__*/ R.createElement(P1, L1({ key: `label-${i}` }, JI(e), c, l, {
+ var { valueAccessor: t = Mwe } = e, n = R1(e, kwe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = R1(n, Awe), l = Pwe(), u = Fwe(), d = l || u;
+ return !d || !d.length ? null : /*#__PURE__*/ R.createElement(M$, { zIndex: s ?? _q.label }, /*#__PURE__*/ R.createElement(iL, { className: "recharts-label-list" }, d.map((e, i) => {
+ var s = hR(r) ? t(e, i) : SV(e.payload, r), l = hR(a) ? {} : { id: `${a}-${i}` };
+ return /*#__PURE__*/ R.createElement(P1, L1({ key: `label-${i}` }, eL(e), c, l, {
fill: n.fill ?? e.fill,
parentViewBox: e.parentViewBox,
value: s,
@@ -59682,12 +59955,12 @@ function U1(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Polygon.js
-var Twe = [
+var Iwe = [
"points",
"className",
"baseLinePoints",
"connectNulls"
-], Ewe;
+], Lwe;
function W1() {
return W1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -59697,16 +59970,16 @@ function W1() {
return e;
}, W1.apply(null, arguments);
}
-function Dwe(e, t) {
+function Rwe(e, t) {
if (e == null) return {};
- var n, r, i = Owe(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 Owe(e, t) {
+function zwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59715,10 +59988,10 @@ function Owe(e, t) {
}
return n;
}
-function kwe(e, t) {
+function Bwe(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var G1 = (e) => e != null && e.x === +e.x && e.y === +e.y, Awe = function() {
+var G1 = (e) => e != null && e.x === +e.x && e.y === +e.y, Vwe = function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
e.forEach((e) => {
var n = t[t.length - 1];
@@ -59729,9 +60002,9 @@ var G1 = (e) => e != null && e.x === +e.x && e.y === +e.y, Awe = function() {
var i = t[t.length - 1];
return i && i.length <= 0 && (t = t.slice(0, -1)), t;
}, K1 = (e, t) => {
- var n = Awe(e);
+ var n = Vwe(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
- var r = n.map((e) => e.reduce((e, t, n) => $L(Ewe ||= kwe([
+ var r = n.map((e) => e.reduce((e, t, n) => aR(Lwe ||= Bwe([
"",
"",
"",
@@ -59739,29 +60012,29 @@ var G1 = (e) => e != null && e.x === +e.x && e.y === +e.y, Awe = function() {
""
]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");
return n.length === 1 ? `${r}Z` : r;
-}, jwe = (e, t, n) => {
+}, Hwe = (e, t, n) => {
var r = K1(e, n);
return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${K1(Array.from(t).reverse(), n).slice(1)}`;
}, q1 = (e) => {
- var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = Dwe(e, Twe);
+ var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = Rwe(e, Iwe);
if (!t || !t.length) return null;
- var o = $l("recharts-polygon", n);
+ var o = Ql("recharts-polygon", n);
if (r && r.length) {
- var s = a.stroke && a.stroke !== "none", c = jwe(t, r, i);
- return /*#__PURE__*/ R.createElement("g", { className: o }, /*#__PURE__*/ R.createElement("path", W1({}, JI(a), {
+ var s = a.stroke && a.stroke !== "none", c = Hwe(t, r, i);
+ return /*#__PURE__*/ R.createElement("g", { className: o }, /*#__PURE__*/ R.createElement("path", W1({}, eL(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
d: c
- })), s ? /*#__PURE__*/ R.createElement("path", W1({}, JI(a), {
+ })), s ? /*#__PURE__*/ R.createElement("path", W1({}, eL(a), {
fill: "none",
d: K1(t, i)
- })) : null, s ? /*#__PURE__*/ R.createElement("path", W1({}, JI(a), {
+ })) : null, s ? /*#__PURE__*/ R.createElement("path", W1({}, eL(a), {
fill: "none",
d: K1(r, i)
})) : null);
}
var l = K1(t, i);
- return /*#__PURE__*/ R.createElement("path", W1({}, JI(a), {
+ return /*#__PURE__*/ R.createElement("path", W1({}, eL(a), {
fill: l.slice(-1) === "Z" ? a.fill : "none",
className: o,
d: l
@@ -59779,8 +60052,8 @@ function J1() {
}, J1.apply(null, arguments);
}
var Y1 = (e) => {
- var { cx: t, cy: n, r, className: i } = e, a = $l("recharts-dot", i);
- return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ R.createElement("circle", J1({}, KI(e), yR(e), {
+ var { cx: t, cy: n, r, className: i } = e, a = Ql("recharts-dot", i);
+ return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ R.createElement("circle", J1({}, QI(e), TR(e), {
className: a,
cx: t,
cy: n,
@@ -59800,18 +60073,18 @@ $([
hZ,
Z1
], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({
- value: pV(e, t.dataKey ?? n.dataKey),
+ value: SV(e, t.dataKey ?? n.dataKey),
errorDomain: []
}))).filter(Boolean) : t?.dataKey == null ? e.map((e) => ({
value: e,
errorDomain: []
})) : e.map((e) => ({
- value: pV(e, t.dataKey),
+ value: SV(e, t.dataKey),
errorDomain: []
})));
var e0 = () => void 0, t0 = $([
hZ,
- FH,
+ GH,
Q1,
$1,
dq,
@@ -59829,14 +60102,14 @@ var e0 = () => void 0, t0 = $([
Fq
], UZ),
e0,
- FH,
+ GH,
Fq
], ZZ)
], QZ), n0 = $([
t0,
gZ,
eQ
-], tQ), Mwe = $([eQ, $([
+], tQ), Uwe = $([eQ, $([
hZ,
t0,
n0,
@@ -59849,22 +60122,22 @@ var e0 = () => void 0, t0 = $([
}
}, i0 = (e, t, n) => {
switch (t) {
- case "angleAxis": return dve(e, n);
- case "radiusAxis": return fve(e, n);
+ case "angleAxis": return Sve(e, n);
+ case "radiusAxis": return Cve(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
}, a0 = $([$([
r0,
eQ,
- Mwe,
+ Uwe,
i0
], nZ)], Wq), o0 = $([
- FH,
+ GH,
$1,
gZ,
Fq
], cQ), s0 = $([
- FH,
+ GH,
r0,
eQ,
a0,
@@ -59873,7 +60146,7 @@ var e0 = () => void 0, t0 = $([
yQ,
o0,
Fq
-], xQ), Nwe = $([s0], (e) => {
+], xQ), Wwe = $([s0], (e) => {
if (e) {
var t = /* @__PURE__ */ new Map();
return e.forEach((e) => {
@@ -59881,19 +60154,19 @@ var e0 = () => void 0, t0 = $([
t.has(n) || t.set(n, e);
}), Array.from(t.values());
}
-}), Pwe = $([
- FH,
+}), Gwe = $([
+ GH,
r0,
a0,
i0,
yQ,
o0,
Fq
-], CQ), Fwe = $([(e, t) => s0(e, "angleAxis", t, !1)], (e) => {
+], CQ), Kwe = $([(e, t) => s0(e, "angleAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), Iwe = $([(e, t) => s0(e, "radiusAxis", t, !1)], (e) => {
+}), qwe = $([(e, t) => s0(e, "radiusAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), Lwe = [
+}), Jwe = [
"gridType",
"radialLines",
"angleAxisId",
@@ -59906,16 +60179,16 @@ var e0 = () => void 0, t0 = $([
"polarRadius",
"zIndex"
];
-function Rwe(e, t) {
+function Ywe(e, t) {
if (e == null) return {};
- var n, r, i = zwe(e, t);
+ var n, r, i = Xwe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function zwe(e, t) {
+function Xwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59947,26 +60220,26 @@ function u0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? l0(Object(n), !0).forEach(function(t) {
- Bwe(e, t, n[t]);
+ Zwe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : l0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Bwe(e, t, n) {
- return (t = Vwe(t)) in e ? Object.defineProperty(e, t, {
+function Zwe(e, t, n) {
+ return (t = Qwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Vwe(e) {
- var t = Hwe(e, "string");
+function Qwe(e) {
+ var t = $we(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Hwe(e, t) {
+function $we(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59976,16 +60249,16 @@ function Hwe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Uwe = (e, t, n, r) => {
+var eTe = (e, t, n, r) => {
var i = "";
return r.forEach((r, a) => {
var o = IK(t, n, e, r);
i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;
}), i += "Z", i;
-}, Wwe = (e) => {
+}, tTe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;
if (!a || !a.length || !o) return null;
- var s = u0({ stroke: "#ccc" }, KI(e));
+ var s = u0({ stroke: "#ccc" }, QI(e));
return /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {
var a = IK(t, n, r, e), o = IK(t, n, i, e);
return /*#__PURE__*/ R.createElement("line", c0({ key: `line-${e}` }, s, {
@@ -59999,9 +60272,9 @@ var Uwe = (e, t, n, r) => {
var { cx: t, cy: n, radius: r } = e, i = u0({
stroke: "#ccc",
fill: "none"
- }, KI(e));
+ }, QI(e));
return /*#__PURE__*/ R.createElement("circle", c0({}, i, {
- className: $l("recharts-polar-grid-concentric-circle", e.className),
+ className: Ql("recharts-polar-grid-concentric-circle", e.className),
cx: t,
cy: n,
r
@@ -60010,12 +60283,12 @@ var Uwe = (e, t, n, r) => {
var { radius: t } = e, n = u0({
stroke: "#ccc",
fill: "none"
- }, KI(e));
+ }, QI(e));
return /*#__PURE__*/ R.createElement("path", c0({}, n, {
- className: $l("recharts-polar-grid-concentric-polygon", e.className),
- d: Uwe(t, e.cx, e.cy, e.polarAngles)
+ className: Ql("recharts-polar-grid-concentric-polygon", e.className),
+ d: eTe(t, e.cx, e.cy, e.polarAngles)
}));
-}, Gwe = (e) => {
+}, nTe = (e) => {
var { polarRadius: t, gridType: n } = e;
if (!t || !t.length) return null;
var r = Math.max(...t), i = e.fill && e.fill !== "none";
@@ -60029,14 +60302,14 @@ var Uwe = (e, t, n, r) => {
radius: t
}));
}));
-}, Kwe = {
+}, rTe = {
angleAxisId: 0,
radiusAxisId: 0,
gridType: "polygon",
radialLines: !0,
zIndex: _q.grid
}, p0 = (e) => {
- var t = SR(e, Kwe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = Rwe(t, Lwe), m = Q(Pq), h = Q((e) => Fwe(e, i)), g = Q((e) => Iwe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
+ var t = OR(e, rTe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = Ywe(t, Jwe), m = Q(Pq), h = Q((e) => Kwe(e, i)), g = Q((e) => qwe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
if (_ == null || v == null) return null;
var y = u0({
cx: m?.cx ?? o ?? 0,
@@ -60047,13 +60320,13 @@ var Uwe = (e, t, n, r) => {
polarRadius: v,
zIndex: f
}, p), { outerRadius: b } = y;
- return b <= 0 ? null : /*#__PURE__*/ R.createElement(M$, { zIndex: y.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ R.createElement(Gwe, c0({
+ return b <= 0 ? null : /*#__PURE__*/ R.createElement(M$, { zIndex: y.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ R.createElement(nTe, c0({
gridType: n,
radialLines: r
}, y, {
polarAngles: _,
polarRadius: v
- })), /*#__PURE__*/ R.createElement(Wwe, c0({
+ })), /*#__PURE__*/ R.createElement(tTe, c0({
gridType: n,
radialLines: r
}, y, {
@@ -60069,11 +60342,11 @@ function m0(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
-function qwe(e, t = DR) {
+function iTe(e, t = NR) {
if (e == null) return;
let n = m0(e);
if (n.length === 0) return;
- let r = GR(t), i, a;
+ let r = ZR(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);
@@ -60082,11 +60355,11 @@ function qwe(e, t = DR) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
-function Jwe(e, t = DR) {
+function aTe(e, t = NR) {
if (e == null) return;
let n = m0(e);
if (n.length === 0) return;
- let r = GR(t), i, a;
+ let r = ZR(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);
@@ -60095,7 +60368,7 @@ function Jwe(e, t = DR) {
}
//#endregion
//#region node_modules/recharts/es6/state/polarAxisSlice.js
-var h0 = PB({
+var h0 = BB({
name: "polarAxis",
initialState: {
radiusAxis: {},
@@ -60103,19 +60376,19 @@ var h0 = PB({
},
reducers: {
addRadiusAxis(e, t) {
- e.radiusAxis[t.payload.id] = LU(t.payload);
+ e.radiusAxis[t.payload.id] = qU(t.payload);
},
removeRadiusAxis(e, t) {
delete e.radiusAxis[t.payload.id];
},
addAngleAxis(e, t) {
- e.angleAxis[t.payload.id] = LU(t.payload);
+ e.angleAxis[t.payload.id] = qU(t.payload);
},
removeAngleAxis(e, t) {
delete e.angleAxis[t.payload.id];
}
}
-}), { addRadiusAxis: Ywe, removeRadiusAxis: Xwe, addAngleAxis: Zwe, removeAngleAxis: Qwe } = h0.actions, $we = h0.reducer;
+}), { addRadiusAxis: oTe, removeRadiusAxis: sTe, addAngleAxis: cTe, removeAngleAxis: lTe } = h0.actions, uTe = h0.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getClassNameFromUnknown.js
function g0(e) {
@@ -60123,12 +60396,12 @@ function g0(e) {
}
//#endregion
//#region node_modules/recharts/es6/polar/PolarRadiusAxis.js
-var eTe = ["type"], tTe = [
+var dTe = ["type"], fTe = [
"cx",
"cy",
"angle",
"axisLine"
-], nTe = [
+], pTe = [
"angle",
"tickFormatter",
"stroke",
@@ -60157,26 +60430,26 @@ function y0(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) {
- rTe(e, t, n[t]);
+ mTe(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 rTe(e, t, n) {
- return (t = iTe(t)) in e ? Object.defineProperty(e, t, {
+function mTe(e, t, n) {
+ return (t = hTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function iTe(e) {
- var t = aTe(e, "string");
+function hTe(e) {
+ var t = gTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function aTe(e, t) {
+function gTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60188,14 +60461,14 @@ function aTe(e, t) {
}
function b0(e, t) {
if (e == null) return {};
- var n, r, i = oTe(e, t);
+ var n, r, i = _Te(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 _Te(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60204,20 +60477,20 @@ function oTe(e, t) {
}
return n;
}
-var sTe = "radiusAxis";
-function cTe(e) {
- var t = YR(), n = zH(), r = (0, R.useMemo)(() => {
- var { type: t } = e, r = b0(e, eTe), i = xq(n, "radiusAxis", t);
+var vTe = "radiusAxis";
+function yTe(e) {
+ var t = tz(), n = YH(), r = (0, R.useMemo)(() => {
+ var { type: t } = e, r = b0(e, dTe), i = xq(n, "radiusAxis", t);
if (i != null) return y0(y0({}, r), {}, { type: i });
}, [e, n]);
- return (0, R.useEffect)(() => r == null ? fR : (t(Ywe(r)), () => {
- t(Xwe(r));
+ return (0, R.useEffect)(() => r == null ? vR : (t(oTe(r)), () => {
+ t(sTe(r));
}), [t, r]), null;
}
-var lTe = (e, t, n, r) => {
+var bTe = (e, t, n, r) => {
var { coordinate: i } = e;
return IK(n, r, i, t);
-}, uTe = (e) => {
+}, xTe = (e) => {
var t;
switch (e) {
case "left":
@@ -60229,49 +60502,49 @@ var lTe = (e, t, n, r) => {
default: t = "middle";
}
return t;
-}, dTe = (e, t, n, r) => {
- var i = qwe(r, (e) => e.coordinate || 0);
+}, STe = (e, t, n, r) => {
+ var i = iTe(r, (e) => e.coordinate || 0);
return {
cx: t,
cy: n,
startAngle: e,
endAngle: e,
- innerRadius: Jwe(r, (e) => e.coordinate || 0)?.coordinate || 0,
+ innerRadius: aTe(r, (e) => e.coordinate || 0)?.coordinate || 0,
outerRadius: i?.coordinate || 0,
clockWise: !1
};
-}, fTe = (e, t) => {
- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = b0(e, tTe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = IK(n, r, s[0], i), l = IK(n, r, s[1], i), u = y0(y0(y0({}, KI(o)), {}, { fill: "none" }, KI(a)), {}, {
+}, CTe = (e, t) => {
+ var { cx: n, cy: r, angle: i, axisLine: a } = e, o = b0(e, fTe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = IK(n, r, s[0], i), l = IK(n, r, s[1], i), u = y0(y0(y0({}, QI(o)), {}, { fill: "none" }, QI(a)), {}, {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
});
return /*#__PURE__*/ R.createElement("line", _0({ className: "recharts-polar-radius-axis-line" }, u));
-}, pTe = (e, t, n) => /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ R.createElement(b1, _0({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), mTe = (e, t) => {
- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = b0(e, nTe), s = uTe(e.orientation), c = KI(o), l = qI(a), u = t.map((t, o) => {
- var u = lTe(t, e.angle, e.cx, e.cy), d = y0(y0(y0(y0({
+}, wTe = (e, t, n) => /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ R.createElement(b1, _0({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), TTe = (e, t) => {
+ var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = b0(e, pTe), s = xTe(e.orientation), c = QI(o), l = $I(a), u = t.map((t, o) => {
+ var u = bTe(t, e.angle, e.cx, e.cy), d = y0(y0(y0(y0({
textAnchor: s,
transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
}, c), {}, {
stroke: "none",
fill: i
}, l), {}, { index: o }, u), {}, { payload: t });
- return /*#__PURE__*/ R.createElement(QI, _0({
- className: $l("recharts-polar-radius-axis-tick", g0(a)),
+ return /*#__PURE__*/ R.createElement(iL, _0({
+ className: Ql("recharts-polar-radius-axis-tick", g0(a)),
key: `tick-${t.coordinate}`
- }, bR(e, t, o)), pTe(a, d, r ? r(t.value, o) : t.value));
+ }, ER(e, t, o)), wTe(a, d, r ? r(t.value, o) : t.value));
});
- return /*#__PURE__*/ R.createElement(QI, { className: "recharts-polar-radius-axis-ticks" }, u);
-}, hTe = (e) => {
+ return /*#__PURE__*/ R.createElement(iL, { className: "recharts-polar-radius-axis-ticks" }, u);
+}, ETe = (e) => {
var { radiusAxisId: t } = e, n = Q(Pq), r = Q((e) => a0(e, "radiusAxis", t)), i = Q((e) => s0(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
var a = y0(y0({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
- return /*#__PURE__*/ R.createElement(M$, { zIndex: a.zIndex }, /*#__PURE__*/ R.createElement(QI, { className: $l("recharts-polar-radius-axis", sTe, a.className) }, s && fTe(a, i), o && mTe(a, i), /*#__PURE__*/ R.createElement(uwe, dTe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ R.createElement(_we, { label: a.label }), a.children)));
+ return /*#__PURE__*/ R.createElement(M$, { zIndex: a.zIndex }, /*#__PURE__*/ R.createElement(iL, { className: Ql("recharts-polar-radius-axis", vTe, a.className) }, s && CTe(a, i), o && TTe(a, i), /*#__PURE__*/ R.createElement(xwe, STe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ R.createElement(Owe, { label: a.label }), a.children)));
};
function x0(e) {
- var t = SR(e, yq);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(cTe, {
+ var t = OR(e, yq);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(yTe, {
domain: t.domain,
id: t.radiusAxisId,
scale: t.scale,
@@ -60288,12 +60561,12 @@ function x0(e) {
ticks: t.ticks,
tickCount: t.tickCount,
tick: t.tick
- }), /*#__PURE__*/ R.createElement(hTe, t));
+ }), /*#__PURE__*/ R.createElement(ETe, t));
}
x0.displayName = "PolarRadiusAxis";
//#endregion
//#region node_modules/recharts/es6/polar/PolarAngleAxis.js
-var gTe = ["children", "type"], _Te = ["ref"];
+var DTe = ["children", "type"], OTe = ["ref"];
function S0() {
return S0 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -60317,26 +60590,26 @@ function w0(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) {
- vTe(e, t, n[t]);
+ kTe(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 vTe(e, t, n) {
- return (t = yTe(t)) in e ? Object.defineProperty(e, t, {
+function kTe(e, t, n) {
+ return (t = ATe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function yTe(e) {
- var t = bTe(e, "string");
+function ATe(e) {
+ var t = jTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function bTe(e, t) {
+function jTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60348,14 +60621,14 @@ function bTe(e, t) {
}
function T0(e, t) {
if (e == null) return {};
- var n, r, i = xTe(e, t);
+ var n, r, i = MTe(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 xTe(e, t) {
+function MTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60364,17 +60637,17 @@ function xTe(e, t) {
}
return n;
}
-var E0 = 1e-5, STe = Math.cos(FK(45)), CTe = "angleAxis";
-function wTe(e) {
- var t = YR(), n = zH(), r = (0, R.useMemo)(() => {
- var { children: t, type: r } = e, i = T0(e, gTe), a = xq(n, "angleAxis", r);
+var E0 = 1e-5, NTe = Math.cos(FK(45)), PTe = "angleAxis";
+function FTe(e) {
+ var t = tz(), n = YH(), r = (0, R.useMemo)(() => {
+ var { children: t, type: r } = e, i = T0(e, DTe), a = xq(n, "angleAxis", r);
if (a != null) return w0(w0({}, i), {}, { type: a });
}, [e, n]), i = r === Q((e) => Eq(e, r?.id));
- return (0, R.useEffect)(() => r == null ? fR : (t(Zwe(r)), () => {
- t(Qwe(r));
+ return (0, R.useEffect)(() => r == null ? vR : (t(cTe(r)), () => {
+ t(lTe(r));
}), [t, r]), i ? e.children : null;
}
-var TTe = (e, t) => {
+var ITe = (e, t) => {
var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = IK(n, r, i, e.coordinate), l = IK(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
return {
x1: c.x,
@@ -60382,16 +60655,16 @@ var TTe = (e, t) => {
x2: l.x,
y2: l.y
};
-}, ETe = (e, t) => {
+}, LTe = (e, t) => {
var n = Math.cos(FK(-e.coordinate));
return n > E0 ? t === "outer" ? "start" : "end" : n < -E0 ? t === "outer" ? "end" : "start" : "middle";
-}, DTe = (e) => {
+}, RTe = (e) => {
var t = Math.cos(FK(-e.coordinate)), n = Math.sin(FK(-e.coordinate));
- return Math.abs(t) <= STe ? n > 0 ? "start" : "end" : "middle";
-}, OTe = (e) => {
+ return Math.abs(t) <= NTe ? n > 0 ? "start" : "end" : "middle";
+}, zTe = (e) => {
var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;
if (!a) return null;
- var s = w0(w0({}, KI(e)), {}, { fill: "none" }, KI(a));
+ var s = w0(w0({}, QI(e)), {}, { fill: "none" }, QI(a));
if (i === "circle") return /*#__PURE__*/ R.createElement(Y1, S0({ className: "recharts-polar-angle-axis-line" }, s, {
cx: t,
cy: n,
@@ -60399,12 +60672,12 @@ var TTe = (e, t) => {
}));
var c = o.map((e) => IK(t, n, r, e.coordinate));
return /*#__PURE__*/ R.createElement(q1, S0({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
-}, kTe = (e) => {
+}, BTe = (e) => {
var { tick: t, tickProps: n, value: r } = e;
return t ? /*#__PURE__*/ R.isValidElement(t) ? /*#__PURE__*/ R.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ R.createElement(b1, S0({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
-}, ATe = (e) => {
- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = KI(e), { ref: s } = o, c = T0(o, _Te), l = qI(t), u = w0(w0({}, c), {}, { fill: "none" }, KI(n)), d = a.map((a, o) => {
- var s = TTe(a, e), d = ETe(a, e.orientation), f = DTe(a), p = w0(w0(w0({}, c), {}, {
+}, VTe = (e) => {
+ var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = QI(e), { ref: s } = o, c = T0(o, OTe), l = $I(t), u = w0(w0({}, c), {}, { fill: "none" }, QI(n)), d = a.map((a, o) => {
+ var s = ITe(a, e), d = LTe(a, e.orientation), f = RTe(a), p = w0(w0(w0({}, c), {}, {
textAnchor: d,
verticalAnchor: f,
stroke: "none",
@@ -60415,28 +60688,28 @@ var TTe = (e, t) => {
x: s.x2,
y: s.y2
});
- return /*#__PURE__*/ R.createElement(QI, S0({
- className: $l("recharts-polar-angle-axis-tick", g0(t)),
+ return /*#__PURE__*/ R.createElement(iL, S0({
+ className: Ql("recharts-polar-angle-axis-tick", g0(t)),
key: `tick-${a.coordinate}`
- }, bR(e, a, o)), n && /*#__PURE__*/ R.createElement("line", S0({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ R.createElement(kTe, {
+ }, ER(e, a, o)), n && /*#__PURE__*/ R.createElement("line", S0({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ R.createElement(BTe, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
- return /*#__PURE__*/ R.createElement(QI, { className: "recharts-polar-angle-axis-ticks" }, d);
-}, jTe = (e) => {
- var { angleAxisId: t } = e, n = Q(Pq), r = Q((e) => a0(e, "angleAxis", t)), i = tH(), a = Q((e) => Nwe(e, "angleAxis", t, i));
+ return /*#__PURE__*/ R.createElement(iL, { className: "recharts-polar-angle-axis-ticks" }, d);
+}, HTe = (e) => {
+ var { angleAxisId: t } = e, n = Q(Pq), r = Q((e) => a0(e, "angleAxis", t)), i = dH(), a = Q((e) => Wwe(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
var o = w0(w0(w0({}, e), {}, { scale: r }, n), {}, {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ R.createElement(M$, { zIndex: o.zIndex }, /*#__PURE__*/ R.createElement(QI, { className: $l("recharts-polar-angle-axis", CTe, o.className) }, /*#__PURE__*/ R.createElement(OTe, o), /*#__PURE__*/ R.createElement(ATe, o)));
+ return /*#__PURE__*/ R.createElement(M$, { zIndex: o.zIndex }, /*#__PURE__*/ R.createElement(iL, { className: Ql("recharts-polar-angle-axis", PTe, o.className) }, /*#__PURE__*/ R.createElement(zTe, o), /*#__PURE__*/ R.createElement(VTe, o)));
};
function D0(e) {
- var t = SR(e, vq);
- return /*#__PURE__*/ R.createElement(wTe, {
+ var t = OR(e, vq);
+ return /*#__PURE__*/ R.createElement(FTe, {
id: t.angleAxisId,
scale: t.scale,
type: t.type,
@@ -60453,12 +60726,12 @@ function D0(e) {
ticks: t.ticks,
tick: t.tick,
domain: t.domain
- }, /*#__PURE__*/ R.createElement(jTe, t));
+ }, /*#__PURE__*/ R.createElement(HTe, t));
}
D0.displayName = "PolarAngleAxis";
//#endregion
//#region node_modules/react-is/cjs/react-is.production.js
-var MTe = /* @__PURE__ */ ce(((e) => {
+var UTe = /* @__PURE__ */ ce(((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) {
@@ -60487,26 +60760,26 @@ var MTe = /* @__PURE__ */ ce(((e) => {
e.isFragment = function(e) {
return m(e) === r;
};
-})), NTe = (/* @__PURE__ */ ce(((e, t) => {
- t.exports = MTe();
+})), WTe = (/* @__PURE__ */ ce(((e, t) => {
+ t.exports = UTe();
})))(), O0 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", k0 = null, A0 = null, j0 = (e) => {
if (e === k0 && Array.isArray(A0)) return A0;
var t = [];
return R.Children.forEach(e, (e) => {
- lR(e) || ((0, NTe.isFragment)(e) ? t = t.concat(j0(e.props.children)) : t.push(e));
+ hR(e) || ((0, WTe.isFragment)(e) ? t = t.concat(j0(e.props.children)) : t.push(e));
}), A0 = t, k0 = e, t;
};
function M0(e, t) {
var n = [], r = [];
return r = Array.isArray(t) ? t.map((e) => O0(e)) : [O0(t)], j0(e).forEach((e) => {
- var t = ZL(e, "type.displayName") || ZL(e, "type.name");
+ var t = rR(e, "type.displayName") || rR(e, "type.name");
t && r.indexOf(t) !== -1 && n.push(e);
}), n;
}
var N0 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
-function PTe(e) {
+function GTe(e) {
if (typeof e != "object" || !e) return !1;
if (Object.getPrototypeOf(e) === null) return !0;
if (Object.prototype.toString.call(e) !== "[object Object]") {
@@ -60519,7 +60792,7 @@ function PTe(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Trapezoid.js
-var FTe, ITe, LTe, RTe, zTe;
+var KTe, qTe, JTe, YTe, XTe;
function P0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -60534,26 +60807,26 @@ function F0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? P0(Object(n), !0).forEach(function(t) {
- BTe(e, t, n[t]);
+ ZTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function BTe(e, t, n) {
- return (t = VTe(t)) in e ? Object.defineProperty(e, t, {
+function ZTe(e, t, n) {
+ return (t = QTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function VTe(e) {
- var t = HTe(e, "string");
+function QTe(e) {
+ var t = $Te(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function HTe(e, t) {
+function $Te(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60576,29 +60849,29 @@ function L0(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
var R0 = (e, t, n, r, i) => {
- var a = n - r, o = $L(FTe ||= L0([
+ var a = n - r, o = aR(KTe ||= L0([
"M ",
",",
""
]), e, t);
- return o += $L(ITe ||= L0([
+ return o += aR(qTe ||= L0([
"L ",
",",
""
- ]), e + n, t), o += $L(LTe ||= L0([
+ ]), e + n, t), o += aR(JTe ||= L0([
"L ",
",",
""
- ]), e + n - a / 2, t + i), o += $L(RTe ||= L0([
+ ]), e + n - a / 2, t + i), o += aR(YTe ||= L0([
"L ",
",",
""
- ]), e + n - a / 2 - r, t + i), o += $L(zTe ||= L0([
+ ]), e + n - a / 2 - r, t + i), o += aR(XTe ||= L0([
"L ",
",",
" Z"
]), e, t), o;
-}, UTe = {
+}, eEe = {
x: 0,
y: 0,
upperWidth: 0,
@@ -60608,21 +60881,21 @@ var R0 = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, WTe = (e) => {
- var t = SR(e, UTe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, R.useRef)(null), [p, m] = (0, R.useState)(-1), h = (0, R.useRef)(i), g = (0, R.useRef)(a), _ = (0, R.useRef)(o), v = (0, R.useRef)(n), y = (0, R.useRef)(r), b = pK(e, "trapezoid-");
+}, tEe = (e) => {
+ var t = OR(e, eEe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, R.useRef)(null), [p, m] = (0, R.useState)(-1), h = (0, R.useRef)(i), g = (0, R.useRef)(a), _ = (0, R.useRef)(o), v = (0, R.useRef)(n), y = (0, R.useRef)(r), b = CK(e, "trapezoid-");
if ((0, R.useEffect)(() => {
if (f.current && f.current.getTotalLength) try {
var e = f.current.getTotalLength();
e && m(e);
} catch {}
}, []), n !== +n || r !== +r || i !== +i || a !== +a || o !== +o || i === 0 && a === 0 || o === 0) return null;
- var x = $l("recharts-trapezoid", s);
- if (!d) return /*#__PURE__*/ R.createElement("g", null, /*#__PURE__*/ R.createElement("path", I0({}, JI(t), {
+ var x = Ql("recharts-trapezoid", s);
+ if (!d) return /*#__PURE__*/ R.createElement("g", null, /*#__PURE__*/ R.createElement("path", I0({}, eL(t), {
className: x,
d: R0(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 = PG(["strokeDasharray"], l, c);
- return /*#__PURE__*/ R.createElement(fK, {
+ 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 = WG(["strokeDasharray"], l, c);
+ return /*#__PURE__*/ R.createElement(SK, {
animationId: b,
key: b,
canBegin: p > 0,
@@ -60631,35 +60904,35 @@ var R0 = (e, t, n, r, i) => {
isActive: d,
begin: u
}, (e) => {
- var s = sR(S, i, e), c = sR(C, a, e), l = sR(w, o, e), u = sR(T, n, e), d = sR(E, r, e);
+ var s = pR(S, i, e), c = pR(C, a, e), l = pR(w, o, e), u = pR(T, n, e), d = pR(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__*/ R.createElement("path", I0({}, JI(t), {
+ return /*#__PURE__*/ R.createElement("path", I0({}, eL(t), {
className: x,
d: R0(u, d, s, c, l),
ref: f,
style: F0(F0({}, p), t.style)
}));
});
-}, GTe = [
+}, nEe = [
"option",
"shapeType",
"activeClassName",
"inActiveClassName"
];
-function KTe(e, t) {
+function rEe(e, t) {
if (e == null) return {};
- var n, r, i = qTe(e, t);
+ var n, r, i = iEe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function qTe(e, t) {
+function iEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60682,26 +60955,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) {
- JTe(e, t, n[t]);
+ aEe(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 JTe(e, t, n) {
- return (t = YTe(t)) in e ? Object.defineProperty(e, t, {
+function aEe(e, t, n) {
+ return (t = oEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function YTe(e) {
- var t = XTe(e, "string");
+function oEe(e) {
+ var t = sEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function XTe(e, t) {
+function sEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60711,34 +60984,34 @@ function XTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function ZTe(e, t) {
+function cEe(e, t) {
return B0(B0({}, t), e);
}
-function QTe(e, t) {
+function lEe(e, t) {
return e === "symbols";
}
function V0(e) {
var { shapeType: t, elementProps: n } = e;
switch (t) {
case "rectangle": return /*#__PURE__*/ R.createElement(jK, n);
- case "trapezoid": return /*#__PURE__*/ R.createElement(WTe, n);
+ case "trapezoid": return /*#__PURE__*/ R.createElement(tEe, n);
case "sector": return /*#__PURE__*/ R.createElement(HK, n);
case "symbols":
- if (QTe(t, n)) return /*#__PURE__*/ R.createElement(_R, n);
+ if (lEe(t, n)) return /*#__PURE__*/ R.createElement(CR, n);
break;
- case "curve": return /*#__PURE__*/ R.createElement(hG, n);
+ case "curve": return /*#__PURE__*/ R.createElement(TG, n);
default: return null;
}
}
-function $Te(e) {
+function uEe(e) {
return /*#__PURE__*/ (0, R.isValidElement)(e) ? e.props : e;
}
function H0(e) {
- var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = KTe(e, GTe), o;
- if (/*#__PURE__*/ (0, R.isValidElement)(t)) o = /*#__PURE__*/ (0, R.cloneElement)(t, B0(B0({}, a), $Te(t)));
+ var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = rEe(e, nEe), o;
+ if (/*#__PURE__*/ (0, R.isValidElement)(t)) o = /*#__PURE__*/ (0, R.cloneElement)(t, B0(B0({}, a), uEe(t)));
else if (typeof t == "function") o = t(a, a.index);
- else if (PTe(t) && typeof t != "boolean") {
- var s = ZTe(t, a);
+ else if (GTe(t) && typeof t != "boolean") {
+ var s = cEe(t, a);
o = /*#__PURE__*/ R.createElement(V0, {
shapeType: n,
elementProps: s
@@ -60750,12 +61023,12 @@ function H0(e) {
elementProps: c
});
}
- return a.isActive ? /*#__PURE__*/ R.createElement(QI, { className: r }, o) : /*#__PURE__*/ R.createElement(QI, { className: i }, o);
+ return a.isActive ? /*#__PURE__*/ R.createElement(iL, { className: r }, o) : /*#__PURE__*/ R.createElement(iL, { className: i }, o);
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipContext.js
var U0 = (e, t, n) => {
- var r = YR();
+ var r = tz();
return (i, a) => (o) => {
e?.(i, a, o), r(NQ({
activeIndex: String(a),
@@ -60765,14 +61038,14 @@ var U0 = (e, t, n) => {
}));
};
}, W0 = (e) => {
- var t = YR();
+ var t = tz();
return (n, r) => (i) => {
- e?.(n, r, i), t(Rxe());
+ e?.(n, r, i), t(Yxe());
};
}, G0 = (e, t, n) => {
- var r = YR();
+ var r = tz();
return (i, a) => (o) => {
- e?.(i, a, o), r(zxe({
+ e?.(i, a, o), r(Xxe({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
@@ -60783,9 +61056,9 @@ var U0 = (e, t, n) => {
//#endregion
//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js
function K0(e) {
- var { tooltipEntrySettings: t } = e, n = YR(), r = tH(), i = (0, R.useRef)(null);
+ var { tooltipEntrySettings: t } = e, n = tz(), r = dH(), i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- r || (i.current === null ? n(Pxe(t)) : i.current !== t && n(Fxe({
+ r || (i.current === null ? n(Gxe(t)) : i.current !== t && n(Kxe({
prev: i.current,
next: t
})), i.current = t);
@@ -60794,15 +61067,15 @@ function K0(e) {
n,
r
]), (0, R.useLayoutEffect)(() => () => {
- i.current &&= (n(Ixe(i.current)), null);
+ i.current &&= (n(qxe(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/state/SetLegendPayload.js
function q0(e) {
- var { legendPayload: t } = e, n = YR(), r = tH(), i = (0, R.useRef)(null);
+ var { legendPayload: t } = e, n = tz(), r = dH(), i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- r || (i.current === null ? n(VU(t)) : i.current !== t && n(HU({
+ r || (i.current === null ? n(ZU(t)) : i.current !== t && n(QU({
prev: i.current,
next: t
})), i.current = t);
@@ -60811,13 +61084,13 @@ function q0(e) {
r,
t
]), (0, R.useLayoutEffect)(() => () => {
- i.current &&= (n(UU(i.current)), null);
+ i.current &&= (n($U(i.current)), null);
}, [n]), null;
}
function J0(e) {
- var { legendPayload: t } = e, n = YR(), r = Q(FH), i = (0, R.useRef)(null);
+ var { legendPayload: t } = e, n = tz(), r = Q(GH), i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- (r === "centric" || r === "radial") && (i.current === null ? n(VU(t)) : i.current !== t && n(HU({
+ (r === "centric" || r === "radial") && (i.current === null ? n(ZU(t)) : i.current !== t && n(QU({
prev: i.current,
next: t
})), i.current = t);
@@ -60826,27 +61099,27 @@ function J0(e) {
r,
t
]), (0, R.useLayoutEffect)(() => () => {
- i.current &&= (n(UU(i.current)), null);
+ i.current &&= (n($U(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/util/useId.js
-var eEe = R.useId ?? (() => {
- var [e] = R.useState(() => iR("uid-"));
+var dEe = R.useId ?? (() => {
+ var [e] = R.useState(() => uR("uid-"));
return e;
});
//#endregion
//#region node_modules/recharts/es6/util/useUniqueId.js
-function tEe(e, t) {
- var n = eEe();
+function fEe(e, t) {
+ var n = dEe();
return t || (e ? `${e}-${n}` : n);
}
//#endregion
//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js
-var nEe = /*#__PURE__*/ (0, R.createContext)(void 0), Y0 = (e) => {
- var { id: t, type: n, children: r } = e, i = tEe(`recharts-${n}`, t);
- return /*#__PURE__*/ R.createElement(nEe.Provider, { value: i }, r(i));
-}, X0 = PB({
+var pEe = /*#__PURE__*/ (0, R.createContext)(void 0), Y0 = (e) => {
+ var { id: t, type: n, children: r } = e, i = fEe(`recharts-${n}`, t);
+ return /*#__PURE__*/ R.createElement(pEe.Provider, { value: i }, r(i));
+}, X0 = BB({
name: "graphicalItems",
initialState: {
cartesianItems: [],
@@ -60855,79 +61128,79 @@ var nEe = /*#__PURE__*/ (0, R.createContext)(void 0), Y0 = (e) => {
reducers: {
addCartesianGraphicalItem: {
reducer(e, t) {
- e.cartesianItems.push(LU(t.payload));
+ e.cartesianItems.push(qU(t.payload));
},
- prepare: AB()
+ prepare: IB()
},
replaceCartesianGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = xB(e).cartesianItems.indexOf(LU(n));
- i > -1 && (e.cartesianItems[i] = LU(r));
+ var { prev: n, next: r } = t.payload, i = DB(e).cartesianItems.indexOf(qU(n));
+ i > -1 && (e.cartesianItems[i] = qU(r));
},
- prepare: AB()
+ prepare: IB()
},
removeCartesianGraphicalItem: {
reducer(e, t) {
- var n = xB(e).cartesianItems.indexOf(LU(t.payload));
+ var n = DB(e).cartesianItems.indexOf(qU(t.payload));
n > -1 && e.cartesianItems.splice(n, 1);
},
- prepare: AB()
+ prepare: IB()
},
addPolarGraphicalItem: {
reducer(e, t) {
- e.polarItems.push(LU(t.payload));
+ e.polarItems.push(qU(t.payload));
},
- prepare: AB()
+ prepare: IB()
},
removePolarGraphicalItem: {
reducer(e, t) {
- var n = xB(e).polarItems.indexOf(LU(t.payload));
+ var n = DB(e).polarItems.indexOf(qU(t.payload));
n > -1 && e.polarItems.splice(n, 1);
},
- prepare: AB()
+ prepare: IB()
},
replacePolarGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = xB(e).polarItems.indexOf(LU(n));
- i > -1 && (e.polarItems[i] = LU(r));
+ var { prev: n, next: r } = t.payload, i = DB(e).polarItems.indexOf(qU(n));
+ i > -1 && (e.polarItems[i] = qU(r));
},
- prepare: AB()
+ prepare: IB()
}
}
-}), { addCartesianGraphicalItem: rEe, replaceCartesianGraphicalItem: iEe, removeCartesianGraphicalItem: aEe, addPolarGraphicalItem: oEe, removePolarGraphicalItem: sEe, replacePolarGraphicalItem: cEe } = X0.actions, lEe = X0.reducer, Z0 = /*#__PURE__*/ (0, R.memo)((e) => {
- var t = YR(), n = (0, R.useRef)(null);
+}), { addCartesianGraphicalItem: mEe, replaceCartesianGraphicalItem: hEe, removeCartesianGraphicalItem: gEe, addPolarGraphicalItem: _Ee, removePolarGraphicalItem: vEe, replacePolarGraphicalItem: yEe } = X0.actions, bEe = X0.reducer, Z0 = /*#__PURE__*/ (0, R.memo)((e) => {
+ var t = tz(), n = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- n.current === null ? t(rEe(e)) : n.current !== e && t(iEe({
+ n.current === null ? t(mEe(e)) : n.current !== e && t(hEe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, R.useLayoutEffect)(() => () => {
- n.current &&= (t(aEe(n.current)), null);
+ n.current &&= (t(gEe(n.current)), null);
}, [t]), null;
}), Q0 = /*#__PURE__*/ (0, R.memo)((e) => {
- var t = YR(), n = (0, R.useRef)(null);
+ var t = tz(), n = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- n.current === null ? t(oEe(e)) : n.current !== e && t(cEe({
+ n.current === null ? t(_Ee(e)) : n.current !== e && t(yEe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, R.useLayoutEffect)(() => () => {
- n.current &&= (t(sEe(n.current)), null);
+ n.current &&= (t(vEe(n.current)), null);
}, [t]), null;
});
//#endregion
//#region node_modules/es-toolkit/dist/array/last.mjs
-function uEe(e) {
+function xEe(e) {
return e[e.length - 1];
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
-function dEe(e) {
- if (!(!OR(e) || e.length === 0)) return uEe(m0(e));
+function SEe(e) {
+ if (!(!PR(e) || e.length === 0)) return xEe(m0(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
-var fEe = ["points"];
+var CEe = ["points"];
function $0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -60942,26 +61215,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) {
- pEe(e, t, n[t]);
+ wEe(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 pEe(e, t, n) {
- return (t = mEe(t)) in e ? Object.defineProperty(e, t, {
+function wEe(e, t, n) {
+ return (t = TEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function mEe(e) {
- var t = hEe(e, "string");
+function TEe(e) {
+ var t = EEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function hEe(e, t) {
+function EEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60980,16 +61253,16 @@ function t2() {
return e;
}, t2.apply(null, arguments);
}
-function gEe(e, t) {
+function DEe(e, t) {
if (e == null) return {};
- var n, r, i = _Ee(e, t);
+ var n, r, i = OEe(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 _Ee(e, t) {
+function OEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60998,20 +61271,20 @@ function _Ee(e, t) {
}
return n;
}
-function vEe(e) {
+function kEe(e) {
var { option: t, dotProps: n, className: r } = e;
if (/*#__PURE__*/ (0, R.isValidElement)(t)) return /*#__PURE__*/ (0, R.cloneElement)(t, n);
if (typeof t == "function") return t(n);
- var i = $l(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = gEe(a, fEe);
+ var i = Ql(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = DEe(a, CEe);
return /*#__PURE__*/ R.createElement(Y1, t2({}, s, { className: i }));
}
-function yEe(e, t) {
+function AEe(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
}
function n2(e) {
var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = _q.scatter } = e;
- if (!yEe(t, n)) return null;
- var u = N0(n), d = ame(n), f = t.map((e, r) => {
+ if (!AEe(t, n)) return null;
+ var u = N0(n), d = ume(n), f = t.map((e, r) => {
var s = e2(e2(e2({ r: 3 }, o), d), {}, {
index: r,
cx: e.x ?? void 0,
@@ -61021,14 +61294,14 @@ function n2(e) {
payload: e.payload,
points: t
});
- return /*#__PURE__*/ R.createElement(vEe, {
+ return /*#__PURE__*/ R.createElement(kEe, {
key: `dot-${r}`,
option: n,
dotProps: s,
className: i
});
}), p = {};
- return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ R.createElement(M$, { zIndex: l }, /*#__PURE__*/ R.createElement(QI, t2({ className: r }, p), f));
+ return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ R.createElement(M$, { zIndex: l }, /*#__PURE__*/ R.createElement(iL, t2({ className: r }, p), f));
}
//#endregion
//#region node_modules/recharts/es6/state/cartesianAxisSlice.js
@@ -61046,26 +61319,26 @@ function i2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? r2(Object(n), !0).forEach(function(t) {
- bEe(e, t, n[t]);
+ jEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bEe(e, t, n) {
- return (t = xEe(t)) in e ? Object.defineProperty(e, t, {
+function jEe(e, t, n) {
+ return (t = MEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xEe(e) {
- var t = SEe(e, "string");
+function MEe(e) {
+ var t = NEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function SEe(e, t) {
+function NEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61075,7 +61348,7 @@ function SEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var a2 = PB({
+var a2 = BB({
name: "cartesianAxis",
initialState: {
xAxis: {},
@@ -61085,60 +61358,60 @@ var a2 = PB({
reducers: {
addXAxis: {
reducer(e, t) {
- e.xAxis[t.payload.id] = LU(t.payload);
+ e.xAxis[t.payload.id] = qU(t.payload);
},
- prepare: AB()
+ prepare: IB()
},
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] = LU(r));
+ e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = qU(r));
},
- prepare: AB()
+ prepare: IB()
},
removeXAxis: {
reducer(e, t) {
delete e.xAxis[t.payload.id];
},
- prepare: AB()
+ prepare: IB()
},
addYAxis: {
reducer(e, t) {
- e.yAxis[t.payload.id] = LU(t.payload);
+ e.yAxis[t.payload.id] = qU(t.payload);
},
- prepare: AB()
+ prepare: IB()
},
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] = LU(r));
+ e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = qU(r));
},
- prepare: AB()
+ prepare: IB()
},
removeYAxis: {
reducer(e, t) {
delete e.yAxis[t.payload.id];
},
- prepare: AB()
+ prepare: IB()
},
addZAxis: {
reducer(e, t) {
- e.zAxis[t.payload.id] = LU(t.payload);
+ e.zAxis[t.payload.id] = qU(t.payload);
},
- prepare: AB()
+ prepare: IB()
},
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] = LU(r));
+ e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = qU(r));
},
- prepare: AB()
+ prepare: IB()
},
removeZAxis: {
reducer(e, t) {
delete e.zAxis[t.payload.id];
},
- prepare: AB()
+ prepare: IB()
},
updateYAxisWidth(e, t) {
var { id: n, width: r } = t.payload, i = e.yAxis[n];
@@ -61153,15 +61426,15 @@ var a2 = PB({
}
}
}
-}), { addXAxis: CEe, replaceXAxis: wEe, removeXAxis: TEe, addYAxis: EEe, replaceYAxis: DEe, removeYAxis: OEe, addZAxis: kEe, replaceZAxis: AEe, removeZAxis: jEe, updateYAxisWidth: MEe } = a2.actions, NEe = a2.reducer, PEe = $([
- $([ZV], (e) => ({
+}), { addXAxis: PEe, replaceXAxis: FEe, removeXAxis: IEe, addYAxis: LEe, replaceYAxis: REe, removeYAxis: zEe, addZAxis: BEe, replaceZAxis: VEe, removeZAxis: HEe, updateYAxisWidth: UEe } = a2.actions, WEe = a2.reducer, GEe = $([
+ $([sH], (e) => ({
top: e.top,
bottom: e.bottom,
left: e.left,
right: e.right
})),
- PV,
- FV
+ WV,
+ GV
], (e, t, n) => {
if (!(!e || t == null || n == null)) return {
x: e.left,
@@ -61169,7 +61442,7 @@ var a2 = PB({
width: Math.max(0, t - e.left - e.right),
height: Math.max(0, n - e.top - e.bottom)
};
-}), o2 = () => Q(PEe), FEe = () => Q(mSe);
+}), o2 = () => Q(GEe), KEe = () => Q(TSe);
//#endregion
//#region node_modules/recharts/es6/component/ActivePoints.js
function s2(e, t) {
@@ -61186,26 +61459,26 @@ function c2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? s2(Object(n), !0).forEach(function(t) {
- IEe(e, t, n[t]);
+ qEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function IEe(e, t, n) {
- return (t = LEe(t)) in e ? Object.defineProperty(e, t, {
+function qEe(e, t, n) {
+ return (t = JEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function LEe(e) {
- var t = REe(e, "string");
+function JEe(e) {
+ var t = YEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function REe(e, t) {
+function YEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61215,7 +61488,7 @@ function REe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var zEe = (e) => {
+var XEe = (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 = c2(c2(c2({}, {
@@ -61229,17 +61502,17 @@ var zEe = (e) => {
stroke: "#fff",
payload: t.payload,
value: t.value
- }), qI(i)), yR(i)), c = /*#__PURE__*/ (0, R.isValidElement)(i) ? /*#__PURE__*/ (0, R.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ R.createElement(Y1, s);
- return /*#__PURE__*/ R.createElement(QI, {
+ }), $I(i)), TR(i)), c = /*#__PURE__*/ (0, R.isValidElement)(i) ? /*#__PURE__*/ (0, R.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ R.createElement(Y1, s);
+ return /*#__PURE__*/ R.createElement(iL, {
className: "recharts-active-dot",
clipPath: o
}, c);
};
function l2(e) {
- var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = _q.activeDot } = e, s = Q(d$), c = FEe();
+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = _q.activeDot } = e, s = Q(d$), c = KEe();
if (t == null || c == null) return null;
var l = t.find((e) => c.includes(e.payload));
- return lR(l) ? null : /*#__PURE__*/ R.createElement(M$, { zIndex: o }, /*#__PURE__*/ R.createElement(zEe, {
+ return hR(l) ? null : /*#__PURE__*/ R.createElement(M$, { zIndex: o }, /*#__PURE__*/ R.createElement(XEe, {
point: l,
childIndex: Number(s),
mainColor: n,
@@ -61264,26 +61537,26 @@ function d2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? u2(Object(n), !0).forEach(function(t) {
- BEe(e, t, n[t]);
+ ZEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function BEe(e, t, n) {
- return (t = VEe(t)) in e ? Object.defineProperty(e, t, {
+function ZEe(e, t, n) {
+ return (t = QEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function VEe(e) {
- var t = HEe(e, "string");
+function QEe(e) {
+ var t = $Ee(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function HEe(e, t) {
+function $Ee(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61293,13 +61566,13 @@ function HEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var f2 = (e, t) => a0(e, "radiusAxis", t), UEe = $([f2], (e) => {
+var f2 = (e, t) => a0(e, "radiusAxis", t), eDe = $([f2], (e) => {
if (e != null) return { scale: e };
-}), WEe = $([Dq, f2], (e, t) => {
+}), tDe = $([Dq, f2], (e, t) => {
if (e != null && t != null) return d2(d2({}, e), {}, { scale: t });
-}), GEe = (e, t, n, r) => s0(e, "radiusAxis", t, r), p2 = (e, t, n) => Eq(e, n), m2 = (e, t, n) => a0(e, "angleAxis", n), KEe = $([p2, m2], (e, t) => {
+}), nDe = (e, t, n, r) => s0(e, "radiusAxis", t, r), p2 = (e, t, n) => Eq(e, n), m2 = (e, t, n) => a0(e, "angleAxis", n), rDe = $([p2, m2], (e, t) => {
if (e != null && t != null) return d2(d2({}, e), {}, { scale: t });
-}), qEe = (e, t, n, r) => s0(e, "angleAxis", n, r), JEe = $([
+}), iDe = (e, t, n, r) => s0(e, "angleAxis", n, r), aDe = $([
p2,
m2,
Pq
@@ -61311,30 +61584,30 @@ var f2 = (e, t) => a0(e, "radiusAxis", t), UEe = $([f2], (e) => {
cx: n.cx,
cy: n.cy
};
-}), YEe = (e, t, n, r, i) => i, XEe = $([
- FH,
- WEe,
- GEe,
- KEe,
- qEe
-], (e, t, n, r, i) => mV(e, "radiusAxis") ? kV(t, n, !1) : kV(r, i, !1)), ZEe = $([
- UEe,
- JEe,
+}), oDe = (e, t, n, r, i) => i, sDe = $([
+ GH,
+ tDe,
+ nDe,
+ rDe,
+ iDe
+], (e, t, n, r, i) => wV(e, "radiusAxis") ? zV(t, n, !1) : zV(r, i, !1)), cDe = $([
+ eDe,
+ aDe,
KK,
- $([X1, YEe], (e, t) => {
+ $([X1, oDe], (e, t) => {
if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;
}),
- XEe
+ sDe
], (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 sDe({
+ if (e != null && t != null && a != null && i != null && r != null) return vDe({
radiusAxis: e,
angleAxis: t,
displayedData: a.slice(o, s + 1),
dataKey: r,
bandSize: i
});
-}), QEe = ["id"];
+}), lDe = ["id"];
function h2() {
return h2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -61358,26 +61631,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) {
- $Ee(e, t, n[t]);
+ uDe(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 $Ee(e, t, n) {
- return (t = eDe(t)) in e ? Object.defineProperty(e, t, {
+function uDe(e, t, n) {
+ return (t = dDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function eDe(e) {
- var t = tDe(e, "string");
+function dDe(e) {
+ var t = fDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function tDe(e, t) {
+function fDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61387,16 +61660,16 @@ function tDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function nDe(e, t) {
+function pDe(e, t) {
if (e == null) return {};
- var n, r, i = rDe(e, t);
+ var n, r, i = mDe(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 rDe(e, t) {
+function mDe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61408,27 +61681,27 @@ function rDe(e, t) {
function v2(e, t) {
return e && e !== "none" ? e : t;
}
-var iDe = (e) => {
+var hDe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
color: v2(r, i),
- value: jV(n, t),
+ value: VV(n, t),
payload: e
}];
-}, aDe = /*#__PURE__*/ R.memo((e) => {
+}, gDe = /*#__PURE__*/ R.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: fR,
+ getPosition: vR,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
nameKey: void 0,
dataKey: t,
- name: jV(a, t),
+ name: VV(a, t),
hide: o,
type: s,
color: v2(n, i),
@@ -61438,8 +61711,8 @@ var iDe = (e) => {
};
return /*#__PURE__*/ R.createElement(K0, { tooltipEntrySettings: l });
});
-function oDe(e) {
- var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = KI(nDe(n, QEe));
+function _De(e) {
+ var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = QI(pDe(n, lDe));
return /*#__PURE__*/ R.createElement(n2, {
points: t,
dot: r,
@@ -61449,10 +61722,10 @@ function oDe(e) {
baseProps: o
});
}
-function sDe(e) {
+function vDe(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 = pV(e, n.dataKey, r), d = pV(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? dEe(d) : d, m = lR(p) ? 0 : t.scale.map(p) ?? 0;
+ var a = SV(e, n.dataKey, r), d = SV(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? SEe(d) : d, m = hR(p) ? 0 : t.scale.map(p) ?? 0;
Array.isArray(d) && d.length >= 2 && (c = !0), l.push(_2(_2({}, IK(o, s, m, f)), {}, {
name: a,
value: d,
@@ -61466,7 +61739,7 @@ function sDe(e) {
var d = [];
return c && l.forEach((e) => {
if (Array.isArray(e.value)) {
- var n = e.value[0], r = lR(n) ? 0 : t.scale.map(n) ?? 0;
+ var n = e.value[0], r = hR(n) ? 0 : t.scale.map(n) ?? 0;
d.push(_2(_2({}, e), {}, { radius: r }, IK(o, s, r, e.angle)));
} else d.push(e);
}), {
@@ -61475,7 +61748,7 @@ function sDe(e) {
baseLinePoints: d
};
}
-function cDe(e) {
+function yDe(e) {
var { showLabels: t, points: n, children: r } = e, i = n.map((e) => {
var t = {
x: e.x,
@@ -61495,10 +61768,10 @@ function cDe(e) {
});
return /*#__PURE__*/ R.createElement(B1, { value: t ? i : void 0 }, r);
}
-function lDe(e) {
+function bDe(e) {
var { points: t, baseLinePoints: n, props: r } = e;
if (t == null) return null;
- var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ R.isValidElement(i) ? /*#__PURE__*/ R.cloneElement(i, _2(_2({}, r), {}, { points: t })) : typeof i == "function" ? i(_2(_2({}, r), {}, { points: t })) : /*#__PURE__*/ R.createElement(q1, h2({}, JI(r), {
+ var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ R.isValidElement(i) ? /*#__PURE__*/ R.cloneElement(i, _2(_2({}, r), {}, { points: t })) : typeof i == "function" ? i(_2(_2({}, r), {}, { points: t })) : /*#__PURE__*/ R.createElement(q1, h2({}, eL(r), {
onMouseEnter: (e) => {
var { onMouseEnter: t } = r;
t && t(r, e);
@@ -61511,7 +61784,7 @@ function lDe(e) {
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ R.createElement(QI, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ R.createElement(oDe, {
+ return /*#__PURE__*/ R.createElement(iL, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ R.createElement(_De, {
props: r,
points: t
}));
@@ -61519,23 +61792,23 @@ function lDe(e) {
var y2 = (e, t, n) => (r, i) => {
var a = e && e[Math.floor(i * t)];
return a ? _2(_2({}, r), {}, {
- x: sR(a.x, r.x, n),
- y: sR(a.y, r.y, n)
+ x: pR(a.x, r.x, n),
+ y: pR(a.y, r.y, n)
}) : _2(_2({}, r), {}, {
- x: sR(r.cx, r.x, n),
- y: sR(r.cy, r.y, n)
+ x: pR(r.cx, r.x, n),
+ y: pR(r.cy, r.y, n)
});
};
-function uDe(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 = pK(t, "recharts-radar-"), [_, v] = (0, R.useState)(!1), y = !_, b = (0, R.useCallback)(() => {
+function xDe(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 = CK(t, "recharts-radar-"), [_, v] = (0, R.useState)(!1), y = !_, b = (0, R.useCallback)(() => {
typeof u == "function" && u(), v(!1);
}, [u]), x = (0, R.useCallback)(() => {
typeof d == "function" && d(), v(!0);
}, [d]);
- return /*#__PURE__*/ R.createElement(cDe, {
+ return /*#__PURE__*/ R.createElement(yDe, {
showLabels: y,
points: i
- }, /*#__PURE__*/ R.createElement(fK, {
+ }, /*#__PURE__*/ R.createElement(SK, {
animationId: g,
begin: s,
duration: c,
@@ -61546,22 +61819,22 @@ function uDe(e) {
onAnimationStart: x
}, (e) => {
var o = e === 1 ? i : i.map(y2(f, m, e)), s = e === 1 ? a : a?.map(y2(p, h, e));
- return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ R.createElement(lDe, {
+ return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ R.createElement(bDe, {
points: o,
baseLinePoints: s,
props: t
});
}), /*#__PURE__*/ R.createElement(U1, { label: t.label }), t.children);
}
-function dDe(e) {
+function SDe(e) {
var t = (0, R.useRef)(void 0), n = (0, R.useRef)(void 0);
- return /*#__PURE__*/ R.createElement(uDe, {
+ return /*#__PURE__*/ R.createElement(xDe, {
props: e,
previousPointsRef: t,
previousBaseLinePointsRef: n
});
}
-var fDe = {
+var CDe = {
activeDot: !0,
angleAxisId: 0,
animationBegin: 0,
@@ -61575,27 +61848,27 @@ var fDe = {
radiusAxisId: 0,
zIndex: _q.area
};
-function pDe(e) {
+function wDe(e) {
var { hide: t, className: n, points: r } = e;
if (t) return null;
- var i = $l("recharts-radar", n);
- return /*#__PURE__*/ R.createElement(M$, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(QI, { className: i }, /*#__PURE__*/ R.createElement(dDe, e)), /*#__PURE__*/ R.createElement(l2, {
+ var i = Ql("recharts-radar", n);
+ return /*#__PURE__*/ R.createElement(M$, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(iL, { className: i }, /*#__PURE__*/ R.createElement(SDe, e)), /*#__PURE__*/ R.createElement(l2, {
points: r,
mainColor: v2(e.stroke, e.fill),
itemDataKey: e.dataKey,
activeDot: e.activeDot
}));
}
-function mDe(e) {
- var t = tH(), n = Q((n) => ZEe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
- return n?.points == null ? null : /*#__PURE__*/ R.createElement(pDe, h2({}, e, {
+function TDe(e) {
+ var t = dH(), n = Q((n) => cDe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
+ return n?.points == null ? null : /*#__PURE__*/ R.createElement(wDe, h2({}, e, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
isRange: n?.isRange
}));
}
function b2(e) {
- var t = SR(e, fDe);
+ var t = OR(e, CDe);
return /*#__PURE__*/ R.createElement(Y0, {
id: t.id,
type: "radar"
@@ -61607,7 +61880,7 @@ function b2(e) {
hide: t.hide,
angleAxisId: t.angleAxisId,
radiusAxisId: t.radiusAxisId
- }), /*#__PURE__*/ R.createElement(J0, { legendPayload: iDe(t) }), /*#__PURE__*/ R.createElement(aDe, {
+ }), /*#__PURE__*/ R.createElement(J0, { legendPayload: hDe(t) }), /*#__PURE__*/ R.createElement(gDe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -61616,7 +61889,7 @@ function b2(e) {
hide: t.hide,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(mDe, h2({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(TDe, h2({}, t, { id: e }))));
}
b2.displayName = "Radar";
//#endregion
@@ -61640,7 +61913,7 @@ function C2(e) {
//#region node_modules/recharts/es6/state/selectors/combiners/combineBarSizeList.js
var w2 = (e, t, n) => {
var r = n ?? e;
- if (!lR(r)) return aR(r, t, 0);
+ if (!hR(r)) return dR(r, t, 0);
}, T2 = (e, t, n) => {
var r = {}, i = e.filter(zq), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
var n = e[t.stackId];
@@ -61675,26 +61948,26 @@ function D2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? E2(Object(n), !0).forEach(function(t) {
- hDe(e, t, n[t]);
+ EDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : E2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function hDe(e, t, n) {
- return (t = gDe(t)) in e ? Object.defineProperty(e, t, {
+function EDe(e, t, n) {
+ return (t = DDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function gDe(e) {
- var t = _De(e, "string");
+function DDe(e) {
+ var t = ODe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function _De(e, t) {
+function ODe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61704,11 +61977,11 @@ function _De(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function vDe(e, t, n, r, i) {
+function kDe(e, t, n, r, i) {
var a = r.length;
if (!(a < 1)) {
- var o = aR(e, n, 0, !0), s, c = [];
- if (lV(r[0]?.barSize)) {
+ var o = dR(e, n, 0, !0), s, c = [];
+ if (hV(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 = {
@@ -61727,11 +62000,11 @@ function vDe(e, t, n, r, i) {
return f = n.position, r;
}, c);
} else {
- var p = aR(t, n, 0, !0);
+ var p = dR(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 = lV(i) ? Math.min(m, i) : m;
+ var h = hV(i) ? Math.min(m, i) : m;
s = r.reduce((e, t, n) => [...e, {
stackId: t.stackId,
dataKeys: t.dataKeys,
@@ -61745,7 +62018,7 @@ function vDe(e, t, n, r, i) {
}
}
var O2 = (e, t, n, r, i, a, o) => {
- var s = lR(o) ? t : o, c = vDe(n, r, i === a ? a : i, e, s);
+ var s = hR(o) ? t : o, c = kDe(n, r, i === a ? a : i, e, s);
return i !== a && c != null && (c = c.map((e) => D2(D2({}, e), {}, { position: D2(D2({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
}, k2 = (e, t) => {
var n = Lq(t);
@@ -61781,26 +62054,26 @@ function M2(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) {
- yDe(e, t, n[t]);
+ ADe(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 yDe(e, t, n) {
- return (t = bDe(t)) in e ? Object.defineProperty(e, t, {
+function ADe(e, t, n) {
+ return (t = jDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bDe(e) {
- var t = xDe(e, "string");
+function jDe(e) {
+ var t = MDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xDe(e, t) {
+function MDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61812,30 +62085,30 @@ function xDe(e, t) {
}
var N2 = $([(e, t) => Dq(e, t), (e, t) => a0(e, "radiusAxis", t)], (e, t) => {
if (e != null && t != null) return M2(M2({}, e), {}, { scale: t });
-}), P2 = (e, t) => Pwe(e, "radiusAxis", t, !1), F2 = $([(e, t, n) => Eq(e, n), (e, t, n) => a0(e, "angleAxis", n)], (e, t) => {
+}), P2 = (e, t) => Gwe(e, "radiusAxis", t, !1), F2 = $([(e, t, n) => Eq(e, n), (e, t, n) => a0(e, "angleAxis", n)], (e, t) => {
if (e != null && t != null) return M2(M2({}, e), {}, { scale: t });
}), I2 = (e, t, n) => s0(e, "angleAxis", n, !1), L2 = $([X1, (e, t, n, r) => r], (e, t) => {
if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;
}), R2 = $([
- FH,
+ GH,
N2,
P2,
F2,
I2
-], (e, t, n, r, i) => mV(e, "radiusAxis") ? kV(t, n, !1) : kV(r, i, !1)), SDe = $([
+], (e, t, n, r, i) => wV(e, "radiusAxis") ? zV(t, n, !1) : zV(r, i, !1)), NDe = $([
F2,
N2,
- FH
+ GH
], (e, t, n) => {
var r = n === "radial" ? e : t;
- if (r != null && r.scale != null) return CV({ numericAxis: r });
-}), CDe = (e, t, n, r, i) => i, wDe = (e, t, n, r, i) => n, TDe = (e, t, n, r, i) => t, z2 = (e, t, n, r, i) => r.maxBarSize, B2 = (e) => e.type === "radialBar", EDe = $([$([
+ if (r != null && r.scale != null) return NV({ numericAxis: r });
+}), PDe = (e, t, n, r, i) => i, FDe = (e, t, n, r, i) => n, IDe = (e, t, n, r, i) => t, z2 = (e, t, n, r, i) => r.maxBarSize, B2 = (e) => e.type === "radialBar", LDe = $([$([
$([
$([
- FH,
+ GH,
X1,
- wDe,
- TDe
+ FDe,
+ IDe
], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(B2)),
uq,
() => void 0
@@ -61844,7 +62117,7 @@ var N2 = $([(e, t) => Dq(e, t), (e, t) => a0(e, "radiusAxis", t)], (e, t) => {
cq,
lq,
$([
- FH,
+ GH,
sq,
F2,
I2,
@@ -61852,8 +62125,8 @@ var N2 = $([(e, t) => Dq(e, t), (e, t) => a0(e, "radiusAxis", t)], (e, t) => {
P2,
z2
], (e, t, n, r, i, a, o) => {
- var s = lR(o) ? t : o;
- return e === "centric" ? kV(n, r, !0) ?? s ?? 0 : kV(i, a, !0) ?? s ?? 0;
+ var s = hR(o) ? t : o;
+ return e === "centric" ? zV(n, r, !0) ?? s ?? 0 : zV(i, a, !0) ?? s ?? 0;
}),
R2,
z2
@@ -61866,7 +62139,7 @@ var N2 = $([(e, t) => Dq(e, t), (e, t) => a0(e, "radiusAxis", t)], (e, t) => {
V2,
dq,
fq
-], FZ), DDe = $([
+], FZ), RDe = $([
F2,
I2,
N2,
@@ -61874,17 +62147,17 @@ var N2 = $([(e, t) => Dq(e, t), (e, t) => a0(e, "radiusAxis", t)], (e, t) => {
GK,
L2,
R2,
- FH,
- SDe,
+ GH,
+ NDe,
Pq,
- CDe,
- EDe,
- $([(e, t, n) => FH(e) === "centric" ? H2(e, "radiusAxis", t) : H2(e, "angleAxis", n), L2], k2)
+ PDe,
+ LDe,
+ $([(e, t, n) => GH(e) === "centric" ? H2(e, "radiusAxis", t) : H2(e, "angleAxis", n), L2], k2)
], (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 WDe({
+ return tOe({
angleAxis: e,
angleAxisTicks: t,
bandSize: o,
@@ -61905,7 +62178,7 @@ var N2 = $([(e, t) => Dq(e, t), (e, t) => a0(e, "radiusAxis", t)], (e, t) => {
stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,
startAngle: b
});
-}), ODe = $([KK, (e, t) => t], (e, t) => {
+}), zDe = $([KK, (e, t) => t], (e, t) => {
var { chartData: n, dataStartIndex: r, dataEndIndex: i } = e;
if (n == null) return [];
var a = n.slice(r, i + 1);
@@ -61919,20 +62192,20 @@ var N2 = $([(e, t) => Dq(e, t), (e, t) => a0(e, "radiusAxis", t)], (e, t) => {
//#endregion
//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.js
function U2(e, t) {
- return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && lV(e.zIndex) ? e.zIndex : t;
+ return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && hV(e.zIndex) ? e.zIndex : t;
}
//#endregion
//#region node_modules/recharts/es6/polar/RadialBar.js
-var kDe = [
+var BDe = [
"shape",
"activeShape",
"cornerRadius",
"id"
-], ADe = [
+], VDe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
-], jDe = ["value", "background"];
+], HDe = ["value", "background"];
function W2() {
return W2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -61956,26 +62229,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) {
- MDe(e, t, n[t]);
+ UDe(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 MDe(e, t, n) {
- return (t = NDe(t)) in e ? Object.defineProperty(e, t, {
+function UDe(e, t, n) {
+ return (t = WDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function NDe(e) {
- var t = PDe(e, "string");
+function WDe(e) {
+ var t = GDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function PDe(e, t) {
+function GDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61987,14 +62260,14 @@ function PDe(e, t) {
}
function q2(e, t) {
if (e == null) return {};
- var n, r, i = FDe(e, t);
+ var n, r, i = KDe(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 KDe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62004,7 +62277,7 @@ function FDe(e, t) {
return n;
}
var J2 = [];
-function IDe(e) {
+function qDe(e) {
var { showLabels: t, sectors: n, children: r } = e, i = n.map((e) => ({
value: e.value,
payload: e.payload,
@@ -62021,15 +62294,15 @@ function IDe(e) {
},
fill: e.fill
}));
- return /*#__PURE__*/ R.createElement(Swe, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ R.createElement(Nwe, { value: t ? i : void 0 }, r);
}
-function LDe(e) {
- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = q2(n, kDe), l = KI(c), u = Q(d$), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = q2(n, ADe), h = U0(d, n.dataKey, s), g = W0(p), _ = G0(f, n.dataKey, s);
- return t == null ? null : /*#__PURE__*/ R.createElement(IDe, {
+function JDe(e) {
+ var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = q2(n, BDe), l = QI(c), u = Q(d$), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = q2(n, VDe), h = U0(d, n.dataKey, s), g = W0(p), _ = G0(f, n.dataKey, s);
+ return t == null ? null : /*#__PURE__*/ R.createElement(qDe, {
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 = K2(K2(K2(K2({}, l), {}, { cornerRadius: S2(o) }, e), bR(m, e, t)), {}, {
+ var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = K2(K2(K2(K2({}, l), {}, { cornerRadius: S2(o) }, e), ER(m, e, t)), {}, {
onMouseEnter: r,
onMouseLeave: s,
onClick: d,
@@ -62046,13 +62319,13 @@ function LDe(e) {
}, /*#__PURE__*/ R.createElement(C2, f)) : /*#__PURE__*/ R.createElement(C2, W2({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
}), /*#__PURE__*/ R.createElement(U1, { label: n.label }), n.children);
}
-function RDe(e) {
- var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = pK(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, R.useState)(!1), m = (0, R.useCallback)(() => {
+function YDe(e) {
+ var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = CK(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, R.useState)(!1), m = (0, R.useCallback)(() => {
typeof c == "function" && c(), p(!1);
}, [c]), h = (0, R.useCallback)(() => {
typeof l == "function" && l(), p(!0);
}, [l]);
- return /*#__PURE__*/ R.createElement(fK, {
+ return /*#__PURE__*/ R.createElement(SK, {
animationId: u,
begin: a,
duration: o,
@@ -62065,34 +62338,34 @@ function RDe(e) {
var i = e === 1 ? r : (r ?? J2).map((t, n) => {
var r = d && d[n];
if (r) return K2(K2({}, t), {}, {
- startAngle: sR(r.startAngle, t.startAngle, e),
- endAngle: sR(r.endAngle, t.endAngle, e)
+ startAngle: pR(r.startAngle, t.startAngle, e),
+ endAngle: pR(r.endAngle, t.endAngle, e)
});
var { endAngle: i, startAngle: a } = t;
- return K2(K2({}, t), {}, { endAngle: sR(a, i, e) });
+ return K2(K2({}, t), {}, { endAngle: pR(a, i, e) });
});
- return e > 0 && (n.current = i ?? null), /*#__PURE__*/ R.createElement(LDe, {
+ return e > 0 && (n.current = i ?? null), /*#__PURE__*/ R.createElement(JDe, {
sectors: i ?? J2,
allOtherRadialBarProps: t,
showLabels: !f
});
});
}
-function zDe(e) {
+function XDe(e) {
var t = (0, R.useRef)(null);
- return /*#__PURE__*/ R.createElement(RDe, {
+ return /*#__PURE__*/ R.createElement(YDe, {
props: e,
previousSectorsRef: t
});
}
-function BDe(e) {
- var t = Q((t) => ODe(t, e.legendType));
+function ZDe(e) {
+ var t = Q((t) => zDe(t, e.legendType));
return /*#__PURE__*/ R.createElement(J0, { legendPayload: t ?? [] });
}
-var VDe = /*#__PURE__*/ R.memo((e) => {
+var QDe = /*#__PURE__*/ R.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: fR,
+ getPosition: vR,
settings: {
graphicalItemId: l,
stroke: r,
@@ -62100,7 +62373,7 @@ var VDe = /*#__PURE__*/ R.memo((e) => {
fill: s,
nameKey: void 0,
dataKey: t,
- name: jV(a, t),
+ name: VV(a, t),
hide: o,
type: c,
color: s,
@@ -62108,16 +62381,16 @@ var VDe = /*#__PURE__*/ R.memo((e) => {
}
};
return /*#__PURE__*/ R.createElement(K0, { tooltipEntrySettings: u });
-}), HDe = class extends R.PureComponent {
+}), $De = class extends R.PureComponent {
renderBackground(e) {
if (e == null) return null;
- var { cornerRadius: t } = this.props, n = qI(this.props.background);
+ var { cornerRadius: t } = this.props, n = $I(this.props.background);
return /*#__PURE__*/ R.createElement(M$, { zIndex: U2(this.props.background, _q.barBackground) }, e.map((e, r) => {
- var { value: i, background: a } = e, o = q2(e, jDe);
+ var { value: i, background: a } = e, o = q2(e, HDe);
if (!a) return null;
- var s = K2(K2(K2(K2(K2({ cornerRadius: S2(t) }, o), {}, { fill: "#eee" }, a), n), bR(this.props, e, r)), {}, {
+ var s = K2(K2(K2(K2(K2({ cornerRadius: S2(t) }, o), {}, { fill: "#eee" }, a), n), ER(this.props, e, r)), {}, {
index: r,
- className: $l("recharts-radial-bar-background-sector", String(n?.className)),
+ className: Ql("recharts-radial-bar-background-sector", String(n?.className)),
option: a,
isActive: !1
});
@@ -62127,18 +62400,18 @@ var VDe = /*#__PURE__*/ R.memo((e) => {
render() {
var { hide: e, sectors: t, className: n, background: r } = this.props;
if (e) return null;
- var i = $l("recharts-area", n);
- return /*#__PURE__*/ R.createElement(M$, { zIndex: this.props.zIndex }, /*#__PURE__*/ R.createElement(QI, { className: i }, r && /*#__PURE__*/ R.createElement(QI, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ R.createElement(QI, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ R.createElement(zDe, this.props))));
+ var i = Ql("recharts-area", n);
+ return /*#__PURE__*/ R.createElement(M$, { zIndex: this.props.zIndex }, /*#__PURE__*/ R.createElement(iL, { className: i }, r && /*#__PURE__*/ R.createElement(iL, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ R.createElement(iL, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ R.createElement(XDe, this.props))));
}
};
-function UDe(e) {
+function eOe(e) {
var t = R.useMemo(() => M0(e.children, Y$), [e.children]), n = R.useMemo(() => ({
data: void 0,
hide: !1,
id: e.id,
dataKey: e.dataKey,
minPointSize: e.minPointSize,
- stackId: bV(e.stackId),
+ stackId: AV(e.stackId),
maxBarSize: e.maxBarSize,
barSize: e.barSize,
type: "radialBar",
@@ -62153,8 +62426,8 @@ function UDe(e) {
e.barSize,
e.angleAxisId,
e.radiusAxisId
- ]), r = Q((r) => DDe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? J2;
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(VDe, {
+ ]), r = Q((r) => RDe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? J2;
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(QDe, {
dataKey: e.dataKey,
sectors: r,
stroke: e.stroke,
@@ -62164,7 +62437,7 @@ function UDe(e) {
fill: e.fill,
tooltipType: e.tooltipType,
id: e.id
- }), /*#__PURE__*/ R.createElement(HDe, W2({}, e, { sectors: r })));
+ }), /*#__PURE__*/ R.createElement($De, W2({}, e, { sectors: r })));
}
var Y2 = {
angleAxisId: 0,
@@ -62183,12 +62456,12 @@ var Y2 = {
radiusAxisId: 0,
zIndex: _q.bar
};
-function WDe(e) {
+function tOe(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 ? J2 : (t ?? []).map((e, t) => {
var b, x, S, C, w, T;
- if (n ? b = _V(n[r + t], i) : (b = pV(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 = SV({
+ if (n ? b = DV(n[r + t], i) : (b = SV(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 = MV({
axis: c,
ticks: l,
bandSize: u,
@@ -62199,7 +62472,7 @@ function WDe(e) {
S = x + d.size;
var E = w - C;
if (Math.abs(p) > 0 && Math.abs(E) < Math.abs(p)) {
- var D = eR(E || p) * (Math.abs(p) - Math.abs(E));
+ var D = oR(E || p) * (Math.abs(p) - Math.abs(E));
w += D;
}
T = { background: {
@@ -62211,7 +62484,7 @@ function WDe(e) {
endAngle: y
} };
}
- } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = SV({
+ } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = MV({
axis: f,
ticks: g,
bandSize: u,
@@ -62222,7 +62495,7 @@ function WDe(e) {
w = C + d.size;
var O = S - x;
if (Math.abs(p) > 0 && Math.abs(O) < Math.abs(p)) {
- var k = eR(O || p) * (Math.abs(p) - Math.abs(O));
+ var k = oR(O || p) * (Math.abs(p) - Math.abs(O));
S += k;
}
}
@@ -62239,7 +62512,7 @@ function WDe(e) {
});
}
function X2(e) {
- var t = SR(e, Y2);
+ var t = OR(e, Y2);
return /*#__PURE__*/ R.createElement(Y0, {
id: t.id,
type: "radialBar"
@@ -62251,17 +62524,17 @@ function X2(e) {
hide: t.hide ?? Y2.hide,
angleAxisId: t.angleAxisId ?? Y2.angleAxisId,
radiusAxisId: t.radiusAxisId ?? Y2.radiusAxisId,
- stackId: bV(t.stackId),
+ stackId: AV(t.stackId),
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
- }), /*#__PURE__*/ R.createElement(BDe, t), /*#__PURE__*/ R.createElement(UDe, W2({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(ZDe, t), /*#__PURE__*/ R.createElement(eOe, W2({}, t, { id: e }))));
}
X2.displayName = "RadialBar";
//#endregion
//#region node_modules/recharts/es6/context/chartDataContext.js
var Z2 = (e) => {
- var { chartData: t } = e, n = YR(), r = tH();
+ var { chartData: t } = e, n = tz(), r = dH();
return (0, R.useEffect)(() => r ? () => {} : (n(U$(t)), () => {
n(U$(void 0));
}), [
@@ -62280,13 +62553,13 @@ var Z2 = (e) => {
bottom: 0,
left: 0
}
-}, $2 = PB({
+}, $2 = BB({
name: "brush",
initialState: Q2,
reducers: { setBrushSettings(e, t) {
return t.payload == null ? Q2 : t.payload;
} }
-}), { setBrushSettings: GDe } = $2.actions, KDe = $2.reducer, qDe = (e, t) => {
+}), { setBrushSettings: nOe } = $2.actions, rOe = $2.reducer, iOe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return {
x: Math.min(n, i),
@@ -62294,9 +62567,9 @@ var Z2 = (e) => {
width: Math.abs(i - n),
height: Math.abs(a - r)
};
-}, JDe = (e) => {
+}, aOe = (e) => {
var { x1: t, y1: n, x2: r, y2: i } = e;
- return qDe({
+ return iOe({
x: t,
y: n
}, {
@@ -62304,13 +62577,13 @@ var Z2 = (e) => {
y: i
});
};
-function YDe(e) {
+function oOe(e) {
return (e % 180 + 180) % 180;
}
-var XDe = function(e) {
- var { width: t, height: n } = e, r = YDe(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 sOe = function(e) {
+ var { width: t, height: n } = e, r = oOe(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);
-}, e4 = PB({
+}, e4 = BB({
name: "referenceElements",
initialState: {
dots: [],
@@ -62322,26 +62595,26 @@ var XDe = function(e) {
e.dots.push(t.payload);
},
removeDot: (e, t) => {
- var n = xB(e).dots.findIndex((e) => e === t.payload);
+ var n = DB(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 = xB(e).areas.findIndex((e) => e === t.payload);
+ var n = DB(e).areas.findIndex((e) => e === t.payload);
n !== -1 && e.areas.splice(n, 1);
},
addLine: (e, t) => {
- e.lines.push(LU(t.payload));
+ e.lines.push(qU(t.payload));
},
removeLine: (e, t) => {
- var n = xB(e).lines.findIndex((e) => e === t.payload);
+ var n = DB(e).lines.findIndex((e) => e === t.payload);
n !== -1 && e.lines.splice(n, 1);
}
}
-}), { addDot: ZDe, removeDot: QDe, addArea: $De, removeArea: eOe, addLine: tOe, removeLine: nOe } = e4.actions, rOe = e4.reducer, t4 = /*#__PURE__*/ (0, R.createContext)(void 0), iOe = (e) => {
- var { children: t } = e, [n] = (0, R.useState)(`${iR("recharts")}-clip`), r = o2();
+}), { addDot: cOe, removeDot: lOe, addArea: uOe, removeArea: dOe, addLine: fOe, removeLine: pOe } = e4.actions, mOe = e4.reducer, t4 = /*#__PURE__*/ (0, R.createContext)(void 0), hOe = (e) => {
+ var { children: t } = e, [n] = (0, R.useState)(`${uR("recharts")}-clip`), r = o2();
if (r == null) return null;
var { x: i, y: a, width: o, height: s } = r;
return /*#__PURE__*/ R.createElement(t4.Provider, { value: n }, /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: n }, /*#__PURE__*/ R.createElement("rect", {
@@ -62350,7 +62623,7 @@ var XDe = function(e) {
height: s,
width: o
}))), t);
-}, aOe = () => (0, R.useContext)(t4), oOe = class {
+}, gOe = () => (0, R.useContext)(t4), _Oe = class {
constructor(e) {
var { x: t, y: n } = e;
this.xAxisScale = t, this.yAxisScale = n;
@@ -62390,26 +62663,26 @@ function r4(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) {
- sOe(e, t, n[t]);
+ vOe(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 sOe(e, t, n) {
- return (t = cOe(t)) in e ? Object.defineProperty(e, t, {
+function vOe(e, t, n) {
+ return (t = yOe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function cOe(e) {
- var t = lOe(e, "string");
+function yOe(e) {
+ var t = bOe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function lOe(e, t) {
+function bOe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62428,18 +62701,18 @@ function i4() {
return e;
}, i4.apply(null, arguments);
}
-var uOe = (e, t) => {
+var xOe = (e, t) => {
var n;
if (/*#__PURE__*/ R.isValidElement(e)) n = /*#__PURE__*/ R.cloneElement(e, t);
else if (typeof e == "function") n = e(t);
else {
- if (!lV(t.x1) || !lV(t.y1) || !lV(t.x2) || !lV(t.y2)) return null;
+ if (!hV(t.x1) || !hV(t.y1) || !hV(t.x2) || !hV(t.y2)) return null;
n = /*#__PURE__*/ R.createElement("line", i4({}, t, { className: "recharts-reference-line-line" }));
}
return n;
-}, dOe = (e, t, n, r, i, a) => {
+}, SOe = (e, t, n, r, i, a) => {
var { x: o, width: s } = a, c = i.map(e, { position: n });
- if (!lV(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!hV(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: o + s,
y: c
@@ -62448,9 +62721,9 @@ var uOe = (e, t) => {
y: c
}];
return r === "left" ? l.reverse() : l;
-}, fOe = (e, t, n, r, i, a) => {
+}, COe = (e, t, n, r, i, a) => {
var { y: o, height: s } = a, c = i.map(e, { position: n });
- if (!lV(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!hV(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: c,
y: o + s
@@ -62459,7 +62732,7 @@ var uOe = (e, t) => {
y: o
}];
return r === "top" ? l.reverse() : l;
-}, pOe = (e, t, n, r) => {
+}, wOe = (e, t, n, r) => {
var i = [r.mapWithFallback(e[0], {
position: n,
fallback: "rangeMin"
@@ -62468,43 +62741,43 @@ var uOe = (e, t) => {
fallback: "rangeMax"
})];
return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;
-}, mOe = (e, t, n, r, i, a, o) => {
- var { x: s, y: c, segment: l, ifOverflow: u } = o, d = rR(s);
- return rR(c) ? dOe(c, u, r, a, t, n) : d ? fOe(s, u, r, i, e, n) : l != null && l.length === 2 ? pOe(l, u, r, new oOe({
+}, TOe = (e, t, n, r, i, a, o) => {
+ var { x: s, y: c, segment: l, ifOverflow: u } = o, d = lR(s);
+ return lR(c) ? SOe(c, u, r, a, t, n) : d ? COe(s, u, r, i, e, n) : l != null && l.length === 2 ? wOe(l, u, r, new _Oe({
x: e,
y: t
})) : null;
};
-function hOe(e) {
- var t = YR();
- return (0, R.useEffect)(() => (t(tOe(e)), () => {
- t(nOe(e));
+function EOe(e) {
+ var t = tz();
+ return (0, R.useEffect)(() => (t(fOe(e)), () => {
+ t(pOe(e));
})), null;
}
-function gOe(e) {
- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = tH(), s = aOe(), c = Q((e) => uZ(e, t)), l = Q((e) => pZ(e, n)), u = Q((e) => uQ(e, "xAxis", t, o)), d = Q((e) => uQ(e, "yAxis", n, o)), f = kH();
+function DOe(e) {
+ var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = dH(), s = gOe(), c = Q((e) => uZ(e, t)), l = Q((e) => pZ(e, n)), u = Q((e) => uQ(e, "xAxis", t, o)), d = Q((e) => uQ(e, "yAxis", n, o)), f = zH();
if (!s || !f || c == null || l == null || u == null || d == null) return null;
- var p = mOe(u, d, f, e.position, c.orientation, l.orientation, e);
+ var p = TOe(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 = r4(r4({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, JI(e)), {}, {
+ var { x: g, y: _ } = m, { x: v, y } = h, b = r4(r4({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, eL(e)), {}, {
x1: g,
y1: _,
x2: v,
y2: y
- }), x = JDe({
+ }), x = aOe({
x1: g,
y1: _,
x2: v,
y2: y
});
- return /*#__PURE__*/ R.createElement(M$, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(QI, { className: $l("recharts-reference-line", i) }, uOe(r, b), /*#__PURE__*/ R.createElement(O1, i4({}, x, {
+ return /*#__PURE__*/ R.createElement(M$, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(iL, { className: Ql("recharts-reference-line", i) }, xOe(r, b), /*#__PURE__*/ R.createElement(O1, i4({}, x, {
lowerWidth: x.width,
upperWidth: x.width
}), /*#__PURE__*/ R.createElement(I1, { label: e.label }), e.children)));
}
-var _Oe = {
+var OOe = {
ifOverflow: "discard",
xAxisId: 0,
yAxisId: 0,
@@ -62517,15 +62790,15 @@ var _Oe = {
zIndex: _q.line
};
function a4(e) {
- var t = SR(e, _Oe);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(hOe, {
+ var t = OR(e, OOe);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(EOe, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
ifOverflow: t.ifOverflow,
x: t.x,
y: t.y,
segment: t.segment
- }), /*#__PURE__*/ R.createElement(gOe, t));
+ }), /*#__PURE__*/ R.createElement(DOe, t));
}
a4.displayName = "ReferenceLine";
//#endregion
@@ -62541,13 +62814,13 @@ function o4(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/util/TickUtils.js
-function vOe(e, t, n) {
- return XDe({
+function kOe(e, t, n) {
+ return sOe({
width: e.width + t.width,
height: e.height + t.height
}, n);
}
-function yOe(e, t, n) {
+function AOe(e, t, n) {
var r = n === "width", { x: i, y: a, width: o, height: s } = e;
return t === 1 ? {
start: r ? i : a,
@@ -62562,12 +62835,12 @@ function s4(e, t, n, r, i) {
var a = n();
return e * (t - e * a / 2 - r) >= 0 && e * (t + e * a / 2 - i) <= 0;
}
-function bOe(e, t) {
+function jOe(e, t) {
return o4(e, t + 1);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.js
-function xOe(e, t, n, r, i) {
+function MOe(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: o4(r, l) };
@@ -62576,7 +62849,7 @@ function xOe(e, t, n, r, i) {
}, f; l <= a.length;) if (f = d(), f) return f.v;
return [];
}
-function SOe(e, t, n, r, i) {
+function NOe(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++) {
@@ -62613,26 +62886,26 @@ function l4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? c4(Object(n), !0).forEach(function(t) {
- COe(e, t, n[t]);
+ POe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function COe(e, t, n) {
- return (t = wOe(t)) in e ? Object.defineProperty(e, t, {
+function POe(e, t, n) {
+ return (t = FOe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function wOe(e) {
- var t = TOe(e, "string");
+function FOe(e) {
+ var t = IOe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function TOe(e, t) {
+function IOe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62642,7 +62915,7 @@ function TOe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function EOe(e, t, n, r, i) {
+function LOe(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;
@@ -62655,7 +62928,7 @@ function EOe(e, t, n, r, i) {
}, u = o - 1; u >= 0; u--) if (l(u)) continue;
return a;
}
-function DOe(e, t, n, r, i, a) {
+function ROe(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];
@@ -62679,7 +62952,7 @@ function DOe(e, t, n, r, i, a) {
function u4(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) || WW.isSsr) return bOe(i, Z(c) ? c : 0) ?? [];
+ if (Z(c) || eG.isSsr) return jOe(i, Z(c) ? c : 0) ?? [];
var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? t1(u, {
fontSize: t,
letterSpacing: n
@@ -62688,19 +62961,19 @@ function u4(e, t, n) {
height: 0
}, h = (e, r) => {
var i = typeof l == "function" ? l(e.value, r) : e.value;
- return p === "width" ? vOe(t1(i, {
+ return p === "width" ? kOe(t1(i, {
fontSize: t,
letterSpacing: n
}), m, d) : t1(i, {
fontSize: t,
letterSpacing: n
})[p];
- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? eR(_.coordinate - g.coordinate) : 1, y = yOe(a, v, p);
- return c === "equidistantPreserveStart" ? xOe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? SOe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? DOe(v, y, h, i, o, c === "preserveStartEnd") : EOe(v, y, h, i, o), f.filter((e) => e.isShow));
+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? oR(_.coordinate - g.coordinate) : 1, y = AOe(a, v, p);
+ return c === "equidistantPreserveStart" ? MOe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? NOe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? ROe(v, y, h, i, o, c === "preserveStartEnd") : LOe(v, y, h, i, o), f.filter((e) => e.isShow));
}
//#endregion
//#region node_modules/recharts/es6/util/YAxisUtils.js
-var OOe = (e) => {
+var zOe = (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) => {
@@ -62713,7 +62986,7 @@ var OOe = (e) => {
return Math.round(l);
}
return 0;
-}, d4 = PB({
+}, d4 = BB({
name: "renderedTicks",
initialState: {
xAxis: {},
@@ -62722,14 +62995,14 @@ var OOe = (e) => {
reducers: {
setRenderedTicks: (e, t) => {
var { axisType: n, axisId: r, ticks: i } = t.payload;
- e[n][r] = LU(i);
+ e[n][r] = qU(i);
},
removeRenderedTicks: (e, t) => {
var { axisType: n, axisId: r } = t.payload;
delete e[n][r];
}
}
-}), { setRenderedTicks: kOe, removeRenderedTicks: AOe } = d4.actions, jOe = d4.reducer, MOe = [
+}), { setRenderedTicks: BOe, removeRenderedTicks: VOe } = d4.actions, HOe = d4.reducer, UOe = [
"axisLine",
"width",
"height",
@@ -62739,16 +63012,16 @@ var OOe = (e) => {
"axisType",
"axisId"
];
-function NOe(e, t) {
+function WOe(e, t) {
if (e == null) return {};
- var n, r, i = POe(e, t);
+ var n, r, i = GOe(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 POe(e, t) {
+function GOe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62780,26 +63053,26 @@ function m4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? p4(Object(n), !0).forEach(function(t) {
- FOe(e, t, n[t]);
+ KOe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : p4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function FOe(e, t, n) {
- return (t = IOe(t)) in e ? Object.defineProperty(e, t, {
+function KOe(e, t, n) {
+ return (t = qOe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function IOe(e) {
- var t = LOe(e, "string");
+function qOe(e) {
+ var t = JOe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function LOe(e, t) {
+function JOe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62833,10 +63106,10 @@ var h4 = {
interval: "preserveEnd",
zIndex: _q.axis
};
-function ROe(e) {
+function YOe(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 = m4(m4(m4({}, c), KI(s)), {}, { fill: "none" });
+ var l = m4(m4(m4({}, c), QI(s)), {}, { fill: "none" });
if (a === "top" || a === "bottom") {
var u = +(a === "top" && !o || a === "bottom" && o);
l = m4(m4({}, l), {}, {
@@ -62854,9 +63127,9 @@ function ROe(e) {
y2: n + i
});
}
- return /*#__PURE__*/ R.createElement("line", f4({}, l, { className: $l("recharts-cartesian-axis-line", ZL(s, "className")) }));
+ return /*#__PURE__*/ R.createElement("line", f4({}, l, { className: Ql("recharts-cartesian-axis-line", rR(s, "className")) }));
}
-function zOe(e, t, n, r, i, a, o, s, c) {
+function XOe(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":
@@ -62883,14 +63156,14 @@ function zOe(e, t, n, r, i, a, o, s, c) {
}
};
}
-function BOe(e, t) {
+function ZOe(e, t) {
switch (e) {
case "left": return t ? "start" : "end";
case "right": return t ? "end" : "start";
default: return "middle";
}
}
-function VOe(e, t) {
+function QOe(e, t) {
switch (e) {
case "left":
case "right": return "middle";
@@ -62898,19 +63171,19 @@ function VOe(e, t) {
default: return t ? "end" : "start";
}
}
-function HOe(e) {
- var { option: t, tickProps: n, value: r } = e, i, a = $l(n.className, "recharts-cartesian-axis-tick-value");
+function $Oe(e) {
+ var { option: t, tickProps: n, value: r } = e, i, a = Ql(n.className, "recharts-cartesian-axis-tick-value");
if (/*#__PURE__*/ R.isValidElement(t)) i = /*#__PURE__*/ R.cloneElement(t, m4(m4({}, n), {}, { className: a }));
else if (typeof t == "function") i = t(m4(m4({}, n), {}, { className: a }));
else {
var o = "recharts-cartesian-axis-tick-value";
- typeof t != "boolean" && (o = $l(o, g0(t))), i = /*#__PURE__*/ R.createElement(b1, f4({}, n, { className: o }), r);
+ typeof t != "boolean" && (o = Ql(o, g0(t))), i = /*#__PURE__*/ R.createElement(b1, f4({}, n, { className: o }), r);
}
return i;
}
-function UOe(e) {
- var { ticks: t, axisType: n, axisId: r } = e, i = YR();
- return (0, R.useEffect)(() => r == null || n == null ? fR : (i(kOe({
+function eke(e) {
+ var { ticks: t, axisType: n, axisId: r } = e, i = tz();
+ return (0, R.useEffect)(() => r == null || n == null ? vR : (i(BOe({
ticks: t.map((e) => ({
value: e.value,
coordinate: e.coordinate,
@@ -62920,7 +63193,7 @@ function UOe(e) {
axisId: r,
axisType: n
})), () => {
- i(AOe({
+ i(VOe({
axisId: r,
axisType: n
}));
@@ -62931,15 +63204,15 @@ function UOe(e) {
n
]), null;
}
-var WOe = /*#__PURE__*/ (0, R.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 = u4(m4(m4({}, b), {}, { ticks: n }), v, y), T = KI(b), E = qI(r), D = m1(T.textAnchor) ? T.textAnchor : BOe(u, d), O = VOe(u, d), k = {};
+var tke = /*#__PURE__*/ (0, R.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 = u4(m4(m4({}, b), {}, { ticks: n }), v, y), T = QI(b), E = $I(r), D = m1(T.textAnchor) ? T.textAnchor : ZOe(u, d), O = QOe(u, d), k = {};
typeof i == "object" && (k = i);
- var A = m4(m4({}, T), {}, { fill: "none" }, k), j = w.map((e) => m4({ entry: e }, zOe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
+ var A = m4(m4({}, T), {}, { fill: "none" }, k), j = w.map((e) => m4({ entry: e }, XOe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
var { entry: t, line: n } = e;
- return /*#__PURE__*/ R.createElement(QI, {
+ return /*#__PURE__*/ R.createElement(iL, {
className: "recharts-cartesian-axis-tick",
key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`
- }, i && /*#__PURE__*/ R.createElement("line", f4({}, A, n, { className: $l("recharts-cartesian-axis-tick-line", ZL(i, "className")) })));
+ }, i && /*#__PURE__*/ R.createElement("line", f4({}, A, n, { className: Ql("recharts-cartesian-axis-tick-line", rR(i, "className")) })));
}), N = j.map((e, t) => {
var { entry: n, tick: i } = e, u = m4(m4({}, m4(m4(m4(m4({ verticalAnchor: O }, T), {}, {
textAnchor: D,
@@ -62952,16 +63225,16 @@ var WOe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
tickFormatter: o,
padding: c
}, l), {}, { angle: l?.angle ?? T.angle ?? 0 })), E);
- return /*#__PURE__*/ R.createElement(QI, f4({
+ return /*#__PURE__*/ R.createElement(iL, f4({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, bR(x, n, t)), r && /*#__PURE__*/ R.createElement(HOe, {
+ }, ER(x, n, t)), r && /*#__PURE__*/ R.createElement($Oe, {
option: r,
tickProps: u,
value: `${typeof o == "function" ? o(n.value, t) : n.value}${s || ""}`
}));
});
- return /*#__PURE__*/ R.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ R.createElement(UOe, {
+ return /*#__PURE__*/ R.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ R.createElement(eke, {
ticks: w,
axisId: C,
axisType: S
@@ -62969,9 +63242,9 @@ var WOe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
className: `recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,
ref: t
}, N)), M.length > 0 && /*#__PURE__*/ R.createElement("g", { className: `recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines` }, M));
-}), GOe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = NOe(e, MOe), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(""), h = (0, R.useRef)(null);
- (0, R.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => OOe({
+}), nke = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = WOe(e, UOe), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(""), h = (0, R.useRef)(null);
+ (0, R.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => zOe({
ticks: h.current,
label: e.labelRef?.current,
labelGapWithTick: 5,
@@ -62989,7 +63262,7 @@ var WOe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
}
}
}, [d, p]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ R.createElement(M$, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(QI, { className: $l("recharts-cartesian-axis", a) }, /*#__PURE__*/ R.createElement(ROe, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ R.createElement(M$, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(iL, { className: Ql("recharts-cartesian-axis", a) }, /*#__PURE__*/ R.createElement(YOe, {
x: e.x,
y: e.y,
width: r,
@@ -62997,8 +63270,8 @@ var WOe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
orientation: e.orientation,
mirror: e.mirror,
axisLine: n,
- otherSvgProps: KI(e)
- }), /*#__PURE__*/ R.createElement(WOe, {
+ otherSvgProps: QI(e)
+ }), /*#__PURE__*/ R.createElement(tke, {
ref: g,
axisType: c,
events: u,
@@ -63034,19 +63307,19 @@ var WOe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
labelRef: e.labelRef
}), e.children)));
}), g4 = /*#__PURE__*/ R.forwardRef((e, t) => {
- var n = SR(e, h4);
- return /*#__PURE__*/ R.createElement(GOe, f4({}, n, { ref: t }));
+ var n = OR(e, h4);
+ return /*#__PURE__*/ R.createElement(nke, f4({}, n, { ref: t }));
});
g4.displayName = "CartesianAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/CartesianGrid.js
-var KOe = [
+var rke = [
"x1",
"y1",
"x2",
"y2",
"key"
-], qOe = ["offset"], JOe = ["xAxisId", "yAxisId"], YOe = ["xAxisId", "yAxisId"];
+], ike = ["offset"], ake = ["xAxisId", "yAxisId"], oke = ["xAxisId", "yAxisId"];
function _4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -63061,26 +63334,26 @@ function v4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? _4(Object(n), !0).forEach(function(t) {
- XOe(e, t, n[t]);
+ ske(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function XOe(e, t, n) {
- return (t = ZOe(t)) in e ? Object.defineProperty(e, t, {
+function ske(e, t, n) {
+ return (t = cke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ZOe(e) {
- var t = QOe(e, "string");
+function cke(e) {
+ var t = lke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function QOe(e, t) {
+function lke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63101,14 +63374,14 @@ function y4() {
}
function b4(e, t) {
if (e == null) return {};
- var n, r, i = $Oe(e, t);
+ var n, r, i = uke(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 $Oe(e, t) {
+function uke(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63117,7 +63390,7 @@ function $Oe(e, t) {
}
return n;
}
-var eke = (e) => {
+var dke = (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;
@@ -63138,7 +63411,7 @@ function x4(e) {
if (/*#__PURE__*/ R.isValidElement(t)) r = /*#__PURE__*/ R.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 = KI(b4(n, KOe)) ?? {}, { offset: u } = l, d = b4(l, qOe);
+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = QI(b4(n, rke)) ?? {}, { offset: u } = l, d = b4(l, ike);
r = /*#__PURE__*/ R.createElement("line", y4({}, d, {
x1: i,
y1: a,
@@ -63150,10 +63423,10 @@ function x4(e) {
}
return r;
}
-function tke(e) {
+function fke(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 = b4(e, JOe), c = i.map((e, i) => {
+ var { xAxisId: a, yAxisId: o } = e, s = b4(e, ake), c = i.map((e, i) => {
var a = v4(v4({}, s), {}, {
x1: t,
y1: e,
@@ -63170,10 +63443,10 @@ function tke(e) {
});
return /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, c);
}
-function nke(e) {
+function pke(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 = b4(e, YOe), c = i.map((e, i) => {
+ var { xAxisId: a, yAxisId: o } = e, s = b4(e, oke), c = i.map((e, i) => {
var a = v4(v4({}, s), {}, {
x1: e,
y1: t,
@@ -63190,7 +63463,7 @@ function nke(e) {
});
return /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid-vertical" }, c);
}
-function rke(e) {
+function mke(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);
@@ -63213,7 +63486,7 @@ function rke(e) {
});
return /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);
}
-function ike(e) {
+function hke(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);
@@ -63236,10 +63509,10 @@ function ike(e) {
});
return /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, u);
}
-var ake = (e, t) => {
+var gke = (e, t) => {
var { xAxis: n, width: r, height: i, offset: a } = e;
- return hV(u4(v4(v4(v4({}, h4), n), {}, {
- ticks: gV(n, !0),
+ return TV(u4(v4(v4(v4({}, h4), n), {}, {
+ ticks: EV(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -63247,10 +63520,10 @@ var ake = (e, t) => {
height: i
}
})), a.left, a.left + a.width, t);
-}, oke = (e, t) => {
+}, _ke = (e, t) => {
var { yAxis: n, width: r, height: i, offset: a } = e;
- return hV(u4(v4(v4(v4({}, h4), n), {}, {
- ticks: gV(n, !0),
+ return TV(u4(v4(v4(v4({}, h4), n), {}, {
+ ticks: EV(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -63258,7 +63531,7 @@ var ake = (e, t) => {
height: i
}
})), a.top, a.top + a.height, t);
-}, ske = {
+}, vke = {
horizontal: !0,
vertical: !0,
horizontalPoints: [],
@@ -63273,14 +63546,14 @@ var ake = (e, t) => {
zIndex: _q.grid
};
function S4(e) {
- var t = MH(), n = NH(), r = jH(), i = v4(v4({}, SR(e, ske)), {}, {
+ var t = HH(), n = UH(), r = VH(), i = v4(v4({}, OR(e, vke)), {}, {
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 = tH(), h = Q((e) => bQ(e, "xAxis", a, m)), g = Q((e) => bQ(e, "yAxis", o, m));
- if (!uV(l) || !uV(u) || !Z(s) || !Z(c)) return null;
- var _ = i.verticalCoordinatesGenerator || ake, v = i.horizontalCoordinatesGenerator || oke, { 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 = dH(), h = Q((e) => bQ(e, "xAxis", a, m)), g = Q((e) => bQ(e, "yAxis", o, m));
+ if (!gV(l) || !gV(u) || !Z(s) || !Z(c)) return null;
+ var _ = i.verticalCoordinatesGenerator || gke, v = i.horizontalCoordinatesGenerator || _ke, { horizontalPoints: y, verticalPoints: b } = i;
if ((!y || !y.length) && typeof v == "function") {
var x = f && f.length, S = v({
yAxis: g ? v4(v4({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
@@ -63288,7 +63561,7 @@ function S4(e) {
height: n ?? u,
offset: r
}, x ? !0 : d);
- sH(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
+ _H(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 = _({
@@ -63297,9 +63570,9 @@ function S4(e) {
height: n ?? u,
offset: r
}, C ? !0 : d);
- sH(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
+ _H(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
}
- return /*#__PURE__*/ R.createElement(M$, { zIndex: i.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ R.createElement(eke, {
+ return /*#__PURE__*/ R.createElement(M$, { zIndex: i.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ R.createElement(dke, {
fill: i.fill,
fillOpacity: i.fillOpacity,
x: i.x,
@@ -63307,12 +63580,12 @@ function S4(e) {
width: i.width,
height: i.height,
ry: i.ry
- }), /*#__PURE__*/ R.createElement(rke, y4({}, i, { horizontalPoints: y })), /*#__PURE__*/ R.createElement(ike, y4({}, i, { verticalPoints: b })), /*#__PURE__*/ R.createElement(tke, y4({}, i, {
+ }), /*#__PURE__*/ R.createElement(mke, y4({}, i, { horizontalPoints: y })), /*#__PURE__*/ R.createElement(hke, y4({}, i, { verticalPoints: b })), /*#__PURE__*/ R.createElement(fke, y4({}, i, {
offset: r,
horizontalPoints: y,
xAxis: h,
yAxis: g
- })), /*#__PURE__*/ R.createElement(nke, y4({}, i, {
+ })), /*#__PURE__*/ R.createElement(pke, y4({}, i, {
offset: r,
verticalPoints: b,
xAxis: h,
@@ -63322,7 +63595,7 @@ function S4(e) {
S4.displayName = "CartesianGrid";
//#endregion
//#region node_modules/recharts/es6/state/errorBarSlice.js
-var C4 = PB({
+var C4 = BB({
name: "errorBars",
initialState: {},
reducers: {
@@ -63339,17 +63612,17 @@ var C4 = PB({
e[n] && (e[n] = e[n].filter((e) => e.dataKey !== r.dataKey || e.direction !== r.direction));
}
}
-}), { addErrorBar: cke, replaceErrorBar: lke, removeErrorBar: uke } = C4.actions, dke = C4.reducer, fke = ["children"];
-function pke(e, t) {
+}), { addErrorBar: yke, replaceErrorBar: bke, removeErrorBar: xke } = C4.actions, Ske = C4.reducer, Cke = ["children"];
+function wke(e, t) {
if (e == null) return {};
- var n, r, i = mke(e, t);
+ var n, r, i = Tke(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 mke(e, t) {
+function Tke(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63358,7 +63631,7 @@ function mke(e, t) {
}
return n;
}
-var hke = /*#__PURE__*/ (0, R.createContext)({
+var Eke = /*#__PURE__*/ (0, R.createContext)({
data: [],
xAxisId: "xAxis-0",
yAxisId: "yAxis-0",
@@ -63370,8 +63643,8 @@ var hke = /*#__PURE__*/ (0, R.createContext)({
errorBarOffset: 0
});
function w4(e) {
- var { children: t } = e, n = pke(e, fke);
- return /*#__PURE__*/ R.createElement(hke.Provider, { value: n }, t);
+ var { children: t } = e, n = wke(e, Cke);
+ return /*#__PURE__*/ R.createElement(Eke.Provider, { value: n }, t);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
@@ -63396,30 +63669,30 @@ function E4(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/lineSelectors.js
-var D4 = (e, t, n, r) => TQ(e, "xAxis", t, r), O4 = (e, t, n, r) => wQ(e, "xAxis", t, r), k4 = (e, t, n, r) => TQ(e, "yAxis", n, r), A4 = (e, t, n, r) => wQ(e, "yAxis", n, r), gke = $([
- FH,
+var D4 = (e, t, n, r) => TQ(e, "xAxis", t, r), O4 = (e, t, n, r) => wQ(e, "xAxis", t, r), k4 = (e, t, n, r) => TQ(e, "yAxis", n, r), A4 = (e, t, n, r) => wQ(e, "yAxis", n, r), Dke = $([
+ GH,
D4,
k4,
O4,
A4
-], (e, t, n, r, i) => mV(e, "xAxis") ? kV(t, r, !1) : kV(n, i, !1)), _ke = (e, t, n, r, i) => i;
-function vke(e) {
+], (e, t, n, r, i) => wV(e, "xAxis") ? zV(t, r, !1) : zV(n, i, !1)), Oke = (e, t, n, r, i) => i;
+function kke(e) {
return e.type === "line";
}
-var yke = $([
- FH,
+var Ake = $([
+ GH,
D4,
k4,
O4,
A4,
- $([yZ, _ke], (e, t) => e.filter(vke).find((e) => e.id === t)),
- gke,
+ $([yZ, Oke], (e, t) => e.filter(kke).find((e) => e.id === t)),
+ Dke,
qK
], (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 zke({
+ if (p != null) return Xke({
layout: e,
xAxis: t,
yAxis: n,
@@ -63434,7 +63707,7 @@ var yke = $([
//#endregion
//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js
function j4(e) {
- var t = qI(e), n = 3, r = 2;
+ var t = $I(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), {
@@ -63449,13 +63722,13 @@ function j4(e) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/Line.js
-var bke = ["id"], xke = [
+var jke = ["id"], Mke = [
"type",
"layout",
"connectNulls",
"needClip",
"shape"
-], Ske = [
+], Nke = [
"activeDot",
"animateNewValues",
"animationBegin",
@@ -63494,26 +63767,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) {
- Cke(e, t, n[t]);
+ Pke(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 Cke(e, t, n) {
- return (t = wke(t)) in e ? Object.defineProperty(e, t, {
+function Pke(e, t, n) {
+ return (t = Fke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function wke(e) {
- var t = Tke(e, "string");
+function Fke(e) {
+ var t = Ike(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Tke(e, t) {
+function Ike(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63525,14 +63798,14 @@ function Tke(e, t) {
}
function F4(e, t) {
if (e == null) return {};
- var n, r, i = Eke(e, t);
+ var n, r, i = Lke(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 Eke(e, t) {
+function Lke(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63541,27 +63814,27 @@ function Eke(e, t) {
}
return n;
}
-var Dke = (e) => {
+var Rke = (e) => {
var { dataKey: t, name: n, stroke: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: jV(n, t),
+ value: VV(n, t),
payload: e
}];
-}, Oke = /*#__PURE__*/ R.memo((e) => {
+}, zke = /*#__PURE__*/ R.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: fR,
+ getPosition: vR,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: jV(o, t),
+ name: VV(o, t),
hide: s,
type: l,
color: r,
@@ -63571,11 +63844,11 @@ var Dke = (e) => {
};
return /*#__PURE__*/ R.createElement(K0, { tooltipEntrySettings: d });
}), I4 = (e, t) => `${t}px ${e}px`;
-function kke(e, t) {
+function Bke(e, t) {
for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);
return r;
}
-var Ake = (e, t, n) => {
+var Vke = (e, t, n) => {
var r = n.reduce((e, t) => e + t, 0);
if (!r) return I4(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) {
@@ -63587,13 +63860,13 @@ var Ake = (e, t, n) => {
}
var d = o.length % 2 == 0 ? [0, t] : [t];
return [
- ...kke(n, i),
+ ...Bke(n, i),
...o,
...d
].map((e) => `${e}px`).join(", ");
};
-function jke(e) {
- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = KI(F4(r, bke));
+function Hke(e) {
+ var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = QI(F4(r, jke));
return /*#__PURE__*/ R.createElement(n2, {
points: n,
dot: i,
@@ -63605,7 +63878,7 @@ function jke(e) {
clipPathId: t
});
}
-function Mke(e) {
+function Uke(e) {
var { showLabels: t, children: n, points: r } = e, i = (0, R.useMemo)(() => r?.map((e) => {
var t = {
x: e.x ?? 0,
@@ -63626,7 +63899,7 @@ function Mke(e) {
return /*#__PURE__*/ R.createElement(B1, { value: t ? i : void 0 }, n);
}
function L4(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 = P4(P4({}, JI(F4(a, xke))), {}, {
+ var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = P4(P4({}, eL(F4(a, Mke))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: l ? `url(#clipPath-${t})` : void 0,
@@ -63639,31 +63912,31 @@ function L4(e) {
return /*#__PURE__*/ R.createElement(R.Fragment, null, r?.length > 1 && /*#__PURE__*/ R.createElement(H0, M4({
shapeType: "curve",
option: u
- }, d, { pathRef: n })), /*#__PURE__*/ R.createElement(jke, {
+ }, d, { pathRef: n })), /*#__PURE__*/ R.createElement(Hke, {
points: r,
clipPathId: t,
props: a
}));
}
-function Nke(e) {
+function Wke(e) {
try {
return e && e.getTotalLength && e.getTotalLength() || 0;
} catch {
return 0;
}
}
-function Pke(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 = pK(o, "recharts-line-"), y = (0, R.useRef)(v), [b, x] = (0, R.useState)(!1), S = !b, C = (0, R.useCallback)(() => {
+function Gke(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 = CK(o, "recharts-line-"), y = (0, R.useRef)(v), [b, x] = (0, R.useState)(!1), S = !b, C = (0, R.useCallback)(() => {
typeof h == "function" && h(), x(!1);
}, [h]), w = (0, R.useCallback)(() => {
typeof g == "function" && g(), x(!0);
- }, [g]), T = Nke(r.current), E = (0, R.useRef)(0);
+ }, [g]), T = Wke(r.current), E = (0, R.useRef)(0);
y.current !== v && (E.current = a.current, y.current = v);
var D = E.current;
- return /*#__PURE__*/ R.createElement(Mke, {
+ return /*#__PURE__*/ R.createElement(Uke, {
points: o,
showLabels: S
- }, n.children, /*#__PURE__*/ R.createElement(fK, {
+ }, n.children, /*#__PURE__*/ R.createElement(SK, {
animationId: v,
begin: l,
duration: u,
@@ -63673,20 +63946,20 @@ function Pke(e) {
onAnimationStart: w,
key: v
}, (e) => {
- var l = sR(D, T + D, e), u = Math.min(l, T), d = c ? s ? Ake(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : I4(T, u) : s == null ? void 0 : String(s);
+ var l = pR(D, T + D, e), u = Math.min(l, T), d = c ? s ? Vke(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : I4(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 P4(P4({}, t), {}, {
- x: sR(i.x, t.x, e),
- y: sR(i.y, t.y, e)
+ x: pR(i.x, t.x, e),
+ y: pR(i.y, t.y, e)
});
}
return f ? P4(P4({}, t), {}, {
- x: sR(p * 2, t.x, e),
- y: sR(m / 2, t.y, e)
+ x: pR(p * 2, t.x, e),
+ y: pR(m / 2, t.y, e)
}) : P4(P4({}, t), {}, {
x: t.x,
y: t.y
@@ -63709,9 +63982,9 @@ function Pke(e) {
});
}), /*#__PURE__*/ R.createElement(U1, { label: n.label }));
}
-function Fke(e) {
+function Kke(e) {
var { clipPathId: t, props: n } = e, r = (0, R.useRef)(null), i = (0, R.useRef)(0), a = (0, R.useRef)(null);
- return /*#__PURE__*/ R.createElement(Pke, {
+ return /*#__PURE__*/ R.createElement(Gke, {
props: n,
clipPathId: t,
previousPointsRef: r,
@@ -63719,17 +63992,17 @@ function Fke(e) {
pathRef: a
});
}
-var Ike = (e, t) => ({
+var qke = (e, t) => ({
x: e.x ?? void 0,
y: e.y ?? void 0,
value: e.value,
- errorVal: pV(e.payload, t)
-}), Lke = class extends R.Component {
+ errorVal: SV(e.payload, t)
+}), Jke = class extends R.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 = $l("recharts-line", r), m = u, { r: h, strokeWidth: g } = j4(t), _ = N0(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
- return /*#__PURE__*/ R.createElement(M$, { zIndex: f }, /*#__PURE__*/ R.createElement(QI, { className: p }, d && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(E4, {
+ var p = Ql("recharts-line", r), m = u, { r: h, strokeWidth: g } = j4(t), _ = N0(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
+ return /*#__PURE__*/ R.createElement(M$, { zIndex: f }, /*#__PURE__*/ R.createElement(iL, { className: p }, d && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(E4, {
clipPathId: m,
xAxisId: i,
yAxisId: a
@@ -63742,9 +64015,9 @@ var Ike = (e, t) => ({
xAxisId: i,
yAxisId: a,
data: n,
- dataPointFormatter: Ike,
+ dataPointFormatter: qke,
errorBarOffset: 0
- }, /*#__PURE__*/ R.createElement(Fke, {
+ }, /*#__PURE__*/ R.createElement(Kke, {
props: this.props,
clipPathId: m
}))), /*#__PURE__*/ R.createElement(l2, {
@@ -63775,11 +64048,11 @@ var Ike = (e, t) => ({
zIndex: _q.line,
type: "linear"
};
-function Rke(e) {
- var t = SR(e, R4), { 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 = F4(t, Ske), { needClip: _ } = T4(p, m), v = o2(), y = IH(), b = tH(), x = Q((e) => yke(e, p, m, b, h));
+function Yke(e) {
+ var t = OR(e, R4), { 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 = F4(t, Nke), { needClip: _ } = T4(p, m), v = o2(), y = KH(), b = dH(), x = Q((e) => Ake(e, p, m, b, h));
if (y !== "horizontal" && y !== "vertical" || x == null || v == null) return null;
var { height: S, width: C, x: w, y: T } = v;
- return /*#__PURE__*/ R.createElement(Lke, M4({}, g, {
+ return /*#__PURE__*/ R.createElement(Jke, M4({}, g, {
id: h,
connectNulls: s,
dot: c,
@@ -63803,23 +64076,23 @@ function Rke(e) {
needClip: _
}));
}
-function zke(e) {
+function Xke(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 = pV(e, o);
+ var l = SV(e, o);
if (t === "horizontal") return {
- x: xV({
+ x: jV({
axis: n,
ticks: i,
bandSize: s,
entry: e,
index: c
}),
- y: (lR(l) ? null : r.scale.map(l)) ?? null,
+ y: (hR(l) ? null : r.scale.map(l)) ?? null,
value: l,
payload: e
};
- var u = lR(l) ? null : n.scale.map(l), d = xV({
+ var u = hR(l) ? null : n.scale.map(l), d = jV({
axis: r,
ticks: a,
bandSize: s,
@@ -63834,12 +64107,12 @@ function zke(e) {
};
}).filter(Boolean);
}
-function Bke(e) {
- var t = SR(e, R4), n = tH();
+function Zke(e) {
+ var t = OR(e, R4), n = dH();
return /*#__PURE__*/ R.createElement(Y0, {
id: t.id,
type: "line"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(q0, { legendPayload: Dke(t) }), /*#__PURE__*/ R.createElement(Oke, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(q0, { legendPayload: Rke(t) }), /*#__PURE__*/ R.createElement(zke, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -63860,9 +64133,9 @@ function Bke(e) {
dataKey: t.dataKey,
hide: t.hide,
isPanorama: n
- }), /*#__PURE__*/ R.createElement(Rke, M4({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(Yke, M4({}, t, { id: e }))));
}
-var z4 = /*#__PURE__*/ R.memo(Bke, lW);
+var z4 = /*#__PURE__*/ R.memo(Zke, yW);
z4.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
@@ -63874,19 +64147,19 @@ function V4(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/areaSelectors.js
-var H4 = (e, t, n) => TQ(e, "xAxis", B4(e, t), n), U4 = (e, t, n) => wQ(e, "xAxis", B4(e, t), n), W4 = (e, t, n) => TQ(e, "yAxis", V4(e, t), n), G4 = (e, t, n) => wQ(e, "yAxis", V4(e, t), n), Vke = $([
- FH,
+var H4 = (e, t, n) => TQ(e, "xAxis", B4(e, t), n), U4 = (e, t, n) => wQ(e, "xAxis", B4(e, t), n), W4 = (e, t, n) => TQ(e, "yAxis", V4(e, t), n), G4 = (e, t, n) => wQ(e, "yAxis", V4(e, t), n), Qke = $([
+ GH,
H4,
W4,
U4,
G4
-], (e, t, n, r, i) => mV(e, "xAxis") ? kV(t, r, !1) : kV(n, i, !1)), K4 = $([yZ, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), q4 = (e) => mV(FH(e), "xAxis") ? "yAxis" : "xAxis", Hke = (e, t) => q4(e) === "yAxis" ? V4(e, t) : B4(e, t), Uke = $([
- FH,
+], (e, t, n, r, i) => wV(e, "xAxis") ? zV(t, r, !1) : zV(n, i, !1)), K4 = $([yZ, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), q4 = (e) => wV(GH(e), "xAxis") ? "yAxis" : "xAxis", $ke = (e, t) => q4(e) === "yAxis" ? V4(e, t) : B4(e, t), eAe = $([
+ GH,
H4,
W4,
U4,
G4,
- $([K4, (e, t, n) => IZ(e, q4(e), Hke(e, t), n)], (e, t) => {
+ $([K4, (e, t, n) => IZ(e, q4(e), $ke(e, t), n)], (e, t) => {
if (e != null && t != null) {
var { stackId: n } = e, r = Lq(e);
if (n != null && r != null) {
@@ -63896,14 +64169,14 @@ var H4 = (e, t, n) => TQ(e, "xAxis", B4(e, t), n), U4 = (e, t, n) => wQ(e, "xAxi
}
}),
JK,
- Vke,
+ Qke,
K4,
- sve
+ vve
], (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 lAe({
+ if (m != null) return bAe({
layout: e,
xAxis: t,
yAxis: n,
@@ -63917,7 +64190,7 @@ var H4 = (e, t, n) => TQ(e, "xAxis", B4(e, t), n), U4 = (e, t, n) => wQ(e, "xAxi
bandSize: s
});
}
-}), Wke = ["id"], Gke = [
+}), tAe = ["id"], nAe = [
"activeDot",
"animationBegin",
"animationDuration",
@@ -63944,14 +64217,14 @@ function J4() {
}
function Y4(e, t) {
if (e == null) return {};
- var n, r, i = Kke(e, t);
+ var n, r, i = rAe(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 Kke(e, t) {
+function rAe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63974,26 +64247,26 @@ function Z4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? X4(Object(n), !0).forEach(function(t) {
- qke(e, t, n[t]);
+ iAe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function qke(e, t, n) {
- return (t = Jke(t)) in e ? Object.defineProperty(e, t, {
+function iAe(e, t, n) {
+ return (t = aAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Jke(e) {
- var t = Yke(e, "string");
+function aAe(e) {
+ var t = oAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Yke(e, t) {
+function oAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64006,27 +64279,27 @@ function Yke(e, t) {
function Q4(e, t) {
return e && e !== "none" ? e : t;
}
-var Xke = (e) => {
+var sAe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
color: Q4(r, i),
- value: jV(n, t),
+ value: VV(n, t),
payload: e
}];
-}, Zke = /*#__PURE__*/ R.memo((e) => {
+}, cAe = /*#__PURE__*/ R.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: fR,
+ getPosition: vR,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: jV(o, t),
+ name: VV(o, t),
hide: s,
type: l,
color: Q4(r, a),
@@ -64036,8 +64309,8 @@ var Xke = (e) => {
};
return /*#__PURE__*/ R.createElement(K0, { tooltipEntrySettings: d });
});
-function Qke(e) {
- var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = KI(r);
+function lAe(e) {
+ var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = QI(r);
return /*#__PURE__*/ R.createElement(n2, {
points: n,
dot: a,
@@ -64049,7 +64322,7 @@ function Qke(e) {
clipPathId: t
});
}
-function $ke(e) {
+function uAe(e) {
var { showLabels: t, children: n, points: r } = e, i = r.map((e) => {
var t = {
x: e.x ?? 0,
@@ -64070,8 +64343,8 @@ function $ke(e) {
return /*#__PURE__*/ R.createElement(B1, { value: t ? i : void 0 }, n);
}
function $4(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 = Y4(a, Wke), p = KI(f), m = JI(f);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, t?.length > 1 && /*#__PURE__*/ R.createElement(QI, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ R.createElement(hG, J4({}, 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 = Y4(a, tAe), p = QI(f), m = eL(f);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, t?.length > 1 && /*#__PURE__*/ R.createElement(iL, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ R.createElement(TG, J4({}, m, {
id: d,
points: t,
connectNulls: l,
@@ -64080,29 +64353,29 @@ function $4(e) {
layout: o,
stroke: "none",
className: "recharts-area-area"
- })), c !== "none" && /*#__PURE__*/ R.createElement(hG, J4({}, p, {
+ })), c !== "none" && /*#__PURE__*/ R.createElement(TG, J4({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: t
- })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ R.createElement(hG, J4({}, p, {
+ })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ R.createElement(TG, J4({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: n
- }))), /*#__PURE__*/ R.createElement(Qke, {
+ }))), /*#__PURE__*/ R.createElement(lAe, {
points: t,
props: f,
clipPathId: i
}));
}
-function eAe(e) {
+function dAe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;
- if (!lV(a) || !lV(o)) return null;
+ if (!hV(a) || !hV(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.x || 0));
return Z(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.x || 0), c)), Z(c) ? /*#__PURE__*/ R.createElement("rect", {
x: 0,
@@ -64111,9 +64384,9 @@ function eAe(e) {
height: Math.floor(s)
}) : null;
}
-function tAe(e) {
+function fAe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;
- if (!lV(a) || !lV(o)) return null;
+ if (!hV(a) || !hV(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.y || 0));
return Z(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.y || 0), c)), Z(c) ? /*#__PURE__*/ R.createElement("rect", {
x: a < o ? a : a - s,
@@ -64122,35 +64395,35 @@ function tAe(e) {
height: Math.floor(c + (i ? parseInt(`${i}`, 10) : 1))
}) : null;
}
-function nAe(e) {
+function pAe(e) {
var { alpha: t, layout: n, points: r, baseLine: i, strokeWidth: a } = e;
- return n === "vertical" ? /*#__PURE__*/ R.createElement(eAe, {
+ return n === "vertical" ? /*#__PURE__*/ R.createElement(dAe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
- }) : /*#__PURE__*/ R.createElement(tAe, {
+ }) : /*#__PURE__*/ R.createElement(fAe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
});
}
-function rAe(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 = pK((0, R.useMemo)(() => ({
+function mAe(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 = CK((0, R.useMemo)(() => ({
points: o,
baseLine: s
- }), [o, s]), "recharts-area-"), h = LH(), [g, _] = (0, R.useState)(!1), v = !g, y = (0, R.useCallback)(() => {
+ }), [o, s]), "recharts-area-"), h = qH(), [g, _] = (0, R.useState)(!1), v = !g, y = (0, R.useCallback)(() => {
typeof p == "function" && p(), _(!1);
}, [p]), b = (0, R.useCallback)(() => {
typeof f == "function" && f(), _(!0);
}, [f]);
if (h == null) return null;
var x = i.current, S = a.current;
- return /*#__PURE__*/ R.createElement($ke, {
+ return /*#__PURE__*/ R.createElement(uAe, {
showLabels: v,
points: o
- }, r.children, /*#__PURE__*/ R.createElement(fK, {
+ }, r.children, /*#__PURE__*/ R.createElement(SK, {
animationId: m,
begin: l,
duration: u,
@@ -64166,18 +64439,18 @@ function rAe(e) {
if (x[r]) {
var i = x[r];
return Z4(Z4({}, t), {}, {
- x: sR(i.x, t.x, e),
- y: sR(i.y, t.y, e)
+ x: pR(i.x, t.x, e),
+ y: pR(i.y, t.y, e)
});
}
return t;
- }), d = Z(s) ? sR(S, s, e) : lR(s) || tR(s) ? sR(S, 0, e) : s.map((t, n) => {
+ }), d = Z(s) ? pR(S, s, e) : hR(s) || sR(s) ? pR(S, 0, e) : s.map((t, n) => {
var r = Math.floor(n * l);
if (Array.isArray(S) && S[r]) {
var i = S[r];
return Z4(Z4({}, t), {}, {
- x: sR(i.x, t.x, e),
- y: sR(i.y, t.y, e)
+ x: pR(i.x, t.x, e),
+ y: pR(i.y, t.y, e)
});
}
return t;
@@ -64190,13 +64463,13 @@ function rAe(e) {
props: r
});
}
- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ R.createElement(QI, null, c && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ R.createElement(nAe, {
+ return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ R.createElement(iL, null, c && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ R.createElement(pAe, {
alpha: e,
points: o,
baseLine: s,
layout: h,
strokeWidth: r.strokeWidth
- }))), /*#__PURE__*/ R.createElement(QI, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ R.createElement($4, {
+ }))), /*#__PURE__*/ R.createElement(iL, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ R.createElement($4, {
points: o,
baseLine: s,
needClip: t,
@@ -64205,9 +64478,9 @@ function rAe(e) {
})));
}), /*#__PURE__*/ R.createElement(U1, { label: r.label }));
}
-function iAe(e) {
+function hAe(e) {
var { needClip: t, clipPathId: n, props: r } = e, i = (0, R.useRef)(null), a = (0, R.useRef)();
- return /*#__PURE__*/ R.createElement(rAe, {
+ return /*#__PURE__*/ R.createElement(mAe, {
needClip: t,
clipPathId: n,
props: r,
@@ -64215,12 +64488,12 @@ function iAe(e) {
previousBaselineRef: a
});
}
-var aAe = class extends R.PureComponent {
+var gAe = class extends R.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 = $l("recharts-area", r), h = d, { r: g, strokeWidth: _ } = j4(t), v = N0(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
- return /*#__PURE__*/ R.createElement(M$, { zIndex: p }, /*#__PURE__*/ R.createElement(QI, { className: m }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(E4, {
+ var m = Ql("recharts-area", r), h = d, { r: g, strokeWidth: _ } = j4(t), v = N0(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
+ return /*#__PURE__*/ R.createElement(M$, { zIndex: p }, /*#__PURE__*/ R.createElement(iL, { className: m }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(E4, {
clipPathId: h,
xAxisId: s,
yAxisId: c
@@ -64229,7 +64502,7 @@ var aAe = class extends R.PureComponent {
y: i - y / 2,
width: l + y,
height: u + y
- }))), /*#__PURE__*/ R.createElement(iAe, {
+ }))), /*#__PURE__*/ R.createElement(hAe, {
needClip: o,
clipPathId: h,
props: this.props
@@ -64247,7 +64520,7 @@ var aAe = class extends R.PureComponent {
clipPath: b
}));
}
-}, oAe = {
+}, _Ae = {
activeDot: !0,
animationBegin: 0,
animationDuration: 1500,
@@ -64267,11 +64540,11 @@ var aAe = class extends R.PureComponent {
yAxisId: 0,
zIndex: _q.area
};
-function sAe(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 = Y4(e, Gke), g = IH(), _ = b$(), { needClip: v } = T4(p, m), y = tH(), { points: b, isRange: x, baseLine: S } = Q((t) => Uke(t, e.id, y)) ?? {}, C = o2();
+function vAe(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 = Y4(e, nAe), g = KH(), _ = b$(), { needClip: v } = T4(p, m), y = dH(), { points: b, isRange: x, baseLine: S } = Q((t) => eAe(t, e.id, y)) ?? {}, C = o2();
if (g !== "horizontal" && g !== "vertical" || C == null || _ !== "AreaChart" && _ !== "ComposedChart") return null;
var { height: w, width: T, x: E, y: D } = C;
- return !b || !b.length ? null : /*#__PURE__*/ R.createElement(aAe, J4({}, h, {
+ return !b || !b.length ? null : /*#__PURE__*/ R.createElement(gAe, J4({}, h, {
activeDot: t,
animationBegin: n,
animationDuration: r,
@@ -64297,7 +64570,7 @@ function sAe(e) {
yAxisId: m
}));
}
-var cAe = (e, t, n, r, i) => {
+var yAe = (e, t, n, r, i) => {
var a = n ?? t;
if (Z(a)) return a;
var o = e === "horizontal" ? i : r, s = o.scale.domain();
@@ -64307,17 +64580,17 @@ var cAe = (e, t, n, r, i) => {
}
return a === "dataMin" ? s[0] : a === "dataMax" ? s[1] : s[0];
};
-function lAe(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 = cAe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
+function bAe(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 = yAe(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 = pV(e, r);
+ var o = SV(e, r);
Array.isArray(o) ? (a = o, _ = !0) : a = [h, o];
}
- var l = a?.[1] ?? null, v = l == null || m && !t && pV(e, r) == null;
+ var l = a?.[1] ?? null, v = l == null || m && !t && SV(e, r) == null;
return g ? {
- x: xV({
+ x: jV({
axis: s,
ticks: d,
bandSize: p,
@@ -64329,7 +64602,7 @@ function lAe(e) {
payload: e
} : {
x: v ? null : s.scale.map(l) ?? null,
- y: xV({
+ y: jV({
axis: c,
ticks: f,
bandSize: p,
@@ -64357,12 +64630,12 @@ function lAe(e) {
isRange: _
};
}
-function uAe(e) {
- var t = SR(e, oAe), n = tH();
+function xAe(e) {
+ var t = OR(e, _Ae), n = dH();
return /*#__PURE__*/ R.createElement(Y0, {
id: t.id,
type: "area"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(q0, { legendPayload: Xke(t) }), /*#__PURE__*/ R.createElement(Zke, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(q0, { legendPayload: sAe(t) }), /*#__PURE__*/ R.createElement(cAe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -64381,21 +64654,21 @@ function uAe(e) {
xAxisId: t.xAxisId,
yAxisId: t.yAxisId,
zAxisId: 0,
- stackId: bV(t.stackId),
+ stackId: AV(t.stackId),
hide: t.hide,
barSize: void 0,
baseValue: t.baseValue,
isPanorama: n,
connectNulls: t.connectNulls
- }), /*#__PURE__*/ R.createElement(sAe, J4({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(vAe, J4({}, t, { id: e }))));
}
-var e3 = /*#__PURE__*/ R.memo(uAe, lW);
+var e3 = /*#__PURE__*/ R.memo(xAe, yW);
e3.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
-var dAe = "Invariant failed";
-function fAe(e, t) {
- if (!e) throw Error(dAe);
+var SAe = "Invariant failed";
+function CAe(e, t) {
+ if (!e) throw Error(SAe);
}
//#endregion
//#region node_modules/recharts/es6/util/BarUtils.js
@@ -64415,45 +64688,45 @@ function n3(e) {
inActiveClassName: "recharts-inactive-bar"
}, e));
}
-var pAe = function(e) {
+var wAe = 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) || lR(n);
- return i ? e(n, r) : (!i && fAe(!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) || hR(n);
+ return i ? e(n, r) : (!i && CAe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
};
-}, mAe = (e, t, n) => n, r3 = $([yZ, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), hAe = $([r3], (e) => e?.maxBarSize), gAe = (e, t, n, r) => r, _Ae = $([
- FH,
+}, TAe = (e, t, n) => n, r3 = $([yZ, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), EAe = $([r3], (e) => e?.maxBarSize), DAe = (e, t, n, r) => r, OAe = $([
+ GH,
yZ,
B4,
V4,
- mAe
-], (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")), vAe = (e, t, n) => {
- var r = FH(e), i = B4(e, t), a = V4(e, t);
+ TAe
+], (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")), kAe = (e, t, n) => {
+ var r = GH(e), i = B4(e, t), a = V4(e, t);
if (i != null && a != null) return r === "horizontal" ? IZ(e, "yAxis", a, n) : IZ(e, "xAxis", i, n);
-}, yAe = $([
- _Ae,
+}, AAe = $([
+ OAe,
uq,
(e, t) => {
- var n = FH(e), r = B4(e, t), i = V4(e, t);
+ var n = GH(e), r = B4(e, t), i = V4(e, t);
if (r != null && i != null) return n === "horizontal" ? _Q(e, "xAxis", r) : _Q(e, "yAxis", i);
}
-], T2), bAe = (e, t, n) => {
+], T2), jAe = (e, t, n) => {
var r = r3(e, t);
if (r == null) return 0;
var i = B4(e, t), a = V4(e, t);
if (i == null || a == null) return 0;
- var o = FH(e), s = sq(e), { maxBarSize: c } = r, l = lR(c) ? s : c, u, d;
- return o === "horizontal" ? (u = TQ(e, "xAxis", i, n), d = wQ(e, "xAxis", i, n)) : (u = TQ(e, "yAxis", a, n), d = wQ(e, "yAxis", a, n)), kV(u, d, !0) ?? l ?? 0;
+ var o = GH(e), s = sq(e), { maxBarSize: c } = r, l = hR(c) ? s : c, u, d;
+ return o === "horizontal" ? (u = TQ(e, "xAxis", i, n), d = wQ(e, "xAxis", i, n)) : (u = TQ(e, "yAxis", a, n), d = wQ(e, "yAxis", a, n)), zV(u, d, !0) ?? l ?? 0;
}, i3 = (e, t, n) => {
- var r = FH(e), i = B4(e, t), a = V4(e, t);
+ var r = GH(e), i = B4(e, t), a = V4(e, t);
if (i != null && a != null) {
var o, s;
- return r === "horizontal" ? (o = TQ(e, "xAxis", i, n), s = wQ(e, "xAxis", i, n)) : (o = TQ(e, "yAxis", a, n), s = wQ(e, "yAxis", a, n)), kV(o, s);
+ return r === "horizontal" ? (o = TQ(e, "xAxis", i, n), s = wQ(e, "xAxis", i, n)) : (o = TQ(e, "yAxis", a, n), s = wQ(e, "yAxis", a, n)), zV(o, s);
}
-}, xAe = $([
- ZV,
- $V,
+}, MAe = $([
+ sH,
+ lH,
(e, t, n) => {
var r = B4(e, t);
if (r != null) return TQ(e, "xAxis", r, n);
@@ -64471,25 +64744,25 @@ var pAe = function(e) {
if (r != null) return wQ(e, "yAxis", r, n);
},
$([$([
- yAe,
+ AAe,
sq,
cq,
lq,
- bAe,
+ jAe,
i3,
- hAe
+ EAe
], O2), r3], A2),
- FH,
+ GH,
JK,
i3,
- $([vAe, r3], k2),
+ $([kAe, r3], k2),
r3,
- gAe
+ DAe
], (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 YAe({
+ if (_ != null) return oje({
layout: s,
barSettings: d,
pos: o,
@@ -64506,7 +64779,7 @@ var pAe = function(e) {
dataStartIndex: m
});
}
-}), SAe = ["index"];
+}), NAe = ["index"];
function a3() {
return a3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -64516,16 +64789,16 @@ function a3() {
return e;
}, a3.apply(null, arguments);
}
-function CAe(e, t) {
+function PAe(e, t) {
if (e == null) return {};
- var n, r, i = wAe(e, t);
+ var n, r, i = FAe(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 wAe(e, t) {
+function FAe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64534,31 +64807,31 @@ function wAe(e, t) {
}
return n;
}
-var o3 = /*#__PURE__*/ (0, R.createContext)(void 0), TAe = (e) => {
+var o3 = /*#__PURE__*/ (0, R.createContext)(void 0), IAe = (e) => {
var t = (0, R.useContext)(o3);
if (t != null) return t.stackId;
- if (e != null) return bV(e);
-}, EAe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, DAe = (e) => {
+ if (e != null) return AV(e);
+}, LAe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, RAe = (e) => {
var t = (0, R.useContext)(o3);
if (t != null) {
var { stackId: n } = t;
- return `url(#${EAe(n, e)})`;
+ return `url(#${LAe(n, e)})`;
}
}, s3 = (e) => {
- var { index: t } = e, n = CAe(e, SAe), r = DAe(t);
- return /*#__PURE__*/ R.createElement(QI, a3({
+ var { index: t } = e, n = PAe(e, NAe), r = RAe(t);
+ return /*#__PURE__*/ R.createElement(iL, a3({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
-}, OAe = [
+}, zAe = [
"onMouseEnter",
"onMouseLeave",
"onClick"
-], kAe = [
+], BAe = [
"value",
"background",
"tooltipPosition"
-], AAe = ["id"], jAe = [
+], VAe = ["id"], HAe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
@@ -64586,26 +64859,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) {
- MAe(e, t, n[t]);
+ UAe(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 MAe(e, t, n) {
- return (t = NAe(t)) in e ? Object.defineProperty(e, t, {
+function UAe(e, t, n) {
+ return (t = WAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function NAe(e) {
- var t = PAe(e, "string");
+function WAe(e) {
+ var t = GAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function PAe(e, t) {
+function GAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64617,14 +64890,14 @@ function PAe(e, t) {
}
function d3(e, t) {
if (e == null) return {};
- var n, r, i = FAe(e, t);
+ var n, r, i = KAe(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 FAe(e, t) {
+function KAe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64633,27 +64906,27 @@ function FAe(e, t) {
}
return n;
}
-var IAe = (e) => {
+var qAe = (e) => {
var { dataKey: t, name: n, fill: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: jV(n, t),
+ value: VV(n, t),
payload: e
}];
-}, LAe = /*#__PURE__*/ R.memo((e) => {
+}, JAe = /*#__PURE__*/ R.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: fR,
+ getPosition: vR,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
dataKey: t,
nameKey: void 0,
- name: jV(a, t),
+ name: VV(a, t),
hide: o,
type: c,
color: i,
@@ -64663,17 +64936,17 @@ var IAe = (e) => {
};
return /*#__PURE__*/ R.createElement(K0, { tooltipEntrySettings: u });
});
-function RAe(e) {
- var t = Q(d$), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = d3(a, OAe), u = U0(o, r, a.id), d = W0(s), f = G0(c, r, a.id);
+function YAe(e) {
+ var t = Q(d$), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = d3(a, zAe), u = U0(o, r, a.id), d = W0(s), f = G0(c, r, a.id);
if (!i || n == null) return null;
- var p = qI(i);
+ var p = $I(i);
return /*#__PURE__*/ R.createElement(M$, { zIndex: U2(i, _q.barBackground) }, n.map((e, n) => {
- var { value: a, background: o, tooltipPosition: s } = e, c = d3(e, kAe);
+ var { value: a, background: o, tooltipPosition: s } = e, c = d3(e, BAe);
if (!o) return null;
var m = u(e, n), h = d(e, n), g = f(e, n), _ = u3(u3(u3(u3(u3({
option: i,
isActive: String(n) === t
- }, c), {}, { fill: "#eee" }, o), p), bR(l, e, n)), {}, {
+ }, c), {}, { fill: "#eee" }, o), p), ER(l, e, n)), {}, {
onMouseEnter: m,
onMouseLeave: h,
onClick: g,
@@ -64684,7 +64957,7 @@ function RAe(e) {
return /*#__PURE__*/ R.createElement(n3, c3({ key: `background-bar-${n}` }, _));
}));
}
-function zAe(e) {
+function XAe(e) {
var { showLabels: t, children: n, rects: r } = e, i = r?.map((e) => {
var t = {
x: e.x,
@@ -64704,7 +64977,7 @@ function zAe(e) {
});
return /*#__PURE__*/ R.createElement(B1, { value: t ? i : void 0 }, n);
}
-function BAe(e) {
+function ZAe(e) {
var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(d$), c = Q(p$), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)(!1);
(0, R.useEffect)(() => {
var e;
@@ -64725,7 +64998,7 @@ function BAe(e) {
}));
return g ? /*#__PURE__*/ R.createElement(M$, { zIndex: _q.activeBar }, /*#__PURE__*/ R.createElement(s3, { index: i.originalDataIndex }, v)) : v;
}
-function VAe(e) {
+function QAe(e) {
var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;
return /*#__PURE__*/ R.createElement(n3, c3({}, n, { name: String(n.name) }, r, {
isActive: !1,
@@ -64734,24 +65007,24 @@ function VAe(e) {
dataKey: a
}));
}
-function HAe(e) {
- var { data: t, props: n } = e, r = KI(n) ?? {}, { id: i } = r, a = d3(r, AAe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = d3(n, jAe), p = U0(l, s, i), m = W0(d), h = G0(u, s, i);
+function $Ae(e) {
+ var { data: t, props: n } = e, r = QI(n) ?? {}, { id: i } = r, a = d3(r, VAe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = d3(n, HAe), p = U0(l, s, i), m = W0(d), h = G0(u, s, i);
return t ? /*#__PURE__*/ R.createElement(R.Fragment, null, t.map((e, t) => /*#__PURE__*/ R.createElement(s3, c3({
index: e.originalDataIndex,
key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
className: "recharts-bar-rectangle"
- }, bR(f, e, t), {
+ }, ER(f, e, t), {
onMouseEnter: p(e, t),
onMouseLeave: m(e, t),
onClick: h(e, t)
- }), c ? /*#__PURE__*/ R.createElement(BAe, {
+ }), c ? /*#__PURE__*/ R.createElement(ZAe, {
shape: o,
activeBar: c,
baseProps: a,
entry: e,
index: t,
dataKey: s
- }) : /*#__PURE__*/ R.createElement(VAe, {
+ }) : /*#__PURE__*/ R.createElement(QAe, {
shape: o,
baseProps: a,
entry: e,
@@ -64759,16 +65032,16 @@ function HAe(e) {
dataKey: s
})))) : null;
}
-function UAe(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 = pK(t, "recharts-bar-"), [p, m] = (0, R.useState)(!1), h = !p, g = (0, R.useCallback)(() => {
+function eje(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 = CK(t, "recharts-bar-"), [p, m] = (0, R.useState)(!1), h = !p, g = (0, R.useCallback)(() => {
typeof l == "function" && l(), m(!1);
}, [l]), _ = (0, R.useCallback)(() => {
typeof u == "function" && u(), m(!0);
}, [u]);
- return /*#__PURE__*/ R.createElement(zAe, {
+ return /*#__PURE__*/ R.createElement(XAe, {
showLabels: h,
rects: r
- }, /*#__PURE__*/ R.createElement(fK, {
+ }, /*#__PURE__*/ R.createElement(SK, {
animationId: f,
begin: o,
duration: s,
@@ -64781,68 +65054,68 @@ function UAe(e) {
var a = e === 1 ? r : r?.map((t, n) => {
var r = d && d[n];
if (r) return u3(u3({}, t), {}, {
- x: sR(r.x, t.x, e),
- y: sR(r.y, t.y, e),
- width: sR(r.width, t.width, e),
- height: sR(r.height, t.height, e)
+ x: pR(r.x, t.x, e),
+ y: pR(r.y, t.y, e),
+ width: pR(r.width, t.width, e),
+ height: pR(r.height, t.height, e)
});
if (i === "horizontal") {
- var a = sR(0, t.height, e), o = sR(t.stackedBarStart, t.y, e);
+ var a = pR(0, t.height, e), o = pR(t.stackedBarStart, t.y, e);
return u3(u3({}, t), {}, {
y: o,
height: a
});
}
- var s = sR(0, t.width, e), c = sR(t.stackedBarStart, t.x, e);
+ var s = pR(0, t.width, e), c = pR(t.stackedBarStart, t.x, e);
return u3(u3({}, t), {}, {
width: s,
x: c
});
});
- return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ R.createElement(QI, null, /*#__PURE__*/ R.createElement(HAe, {
+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ R.createElement(iL, null, /*#__PURE__*/ R.createElement($Ae, {
props: t,
data: a
}));
}), /*#__PURE__*/ R.createElement(U1, { label: t.label }), t.children);
}
-function WAe(e) {
+function tje(e) {
var t = (0, R.useRef)(null);
- return /*#__PURE__*/ R.createElement(UAe, {
+ return /*#__PURE__*/ R.createElement(eje, {
previousRectanglesRef: t,
props: e
});
}
-var f3 = 0, GAe = (e, t) => {
+var f3 = 0, nje = (e, t) => {
var n = Array.isArray(e.value) ? e.value[1] : e.value;
return {
x: e.x,
y: e.y,
value: n,
- errorVal: pV(e, t)
+ errorVal: SV(e, t)
};
-}, KAe = class extends R.PureComponent {
+}, rje = class extends R.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 = $l("recharts-bar", r), u = c;
- return /*#__PURE__*/ R.createElement(QI, {
+ var l = Ql("recharts-bar", r), u = c;
+ return /*#__PURE__*/ R.createElement(iL, {
className: l,
id: c
}, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(E4, {
clipPathId: u,
xAxisId: i,
yAxisId: a
- })), /*#__PURE__*/ R.createElement(QI, {
+ })), /*#__PURE__*/ R.createElement(iL, {
className: "recharts-bar-rectangles",
clipPath: o ? `url(#clipPath-${u})` : void 0
- }, /*#__PURE__*/ R.createElement(RAe, {
+ }, /*#__PURE__*/ R.createElement(YAe, {
data: t,
dataKey: n,
background: s,
allOtherBarProps: this.props
- }), /*#__PURE__*/ R.createElement(WAe, this.props)));
+ }), /*#__PURE__*/ R.createElement(tje, this.props)));
}
-}, qAe = {
+}, ije = {
activeBar: !1,
animationBegin: 0,
animationDuration: 400,
@@ -64857,17 +65130,17 @@ var f3 = 0, GAe = (e, t) => {
yAxisId: 0,
zIndex: _q.bar
};
-function JAe(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 } = T4(t, n), f = IH(), p = tH(), m = M0(e.children, Y$), h = Q((t) => xAe(t, e.id, p, m));
+function aje(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 } = T4(t, n), f = KH(), p = dH(), m = M0(e.children, Y$), h = Q((t) => MAe(t, e.id, p, m));
if (f !== "vertical" && f !== "horizontal") return null;
var g, _ = h?.[0];
return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ R.createElement(w4, {
xAxisId: t,
yAxisId: n,
data: h,
- dataPointFormatter: GAe,
+ dataPointFormatter: nje,
errorBarOffset: g
- }, /*#__PURE__*/ R.createElement(KAe, c3({}, e, {
+ }, /*#__PURE__*/ R.createElement(rje, c3({}, e, {
layout: f,
needClip: d,
data: h,
@@ -64883,20 +65156,20 @@ function JAe(e) {
isAnimationActive: u
})));
}
-function YAe(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 = CV({ numericAxis: _ }), b = _.scale.map(y);
+function oje(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 = NV({ 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;
- _ = _V(E, v);
- } else _ = pV(e, n), Array.isArray(_) || (_ = [y, _]);
- var D = pAe(r, f3)(_[1], f);
+ _ = DV(E, v);
+ } else _ = SV(e, n), Array.isArray(_) || (_ = [y, _]);
+ var D = wAe(r, f3)(_[1], f);
if (t === "horizontal") {
var O = c.scale.map(_[0]), k = c.scale.map(_[1]);
if (O == null || k == null) return null;
- x = SV({
+ x = MV({
axis: s,
ticks: l,
bandSize: o,
@@ -64905,19 +65178,19 @@ function YAe(e) {
index: f
}), S = k ?? O ?? void 0, C = a.size;
var A = O - k;
- if (w = tR(A) ? 0 : A, T = {
+ if (w = sR(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 = eR(w || D) * (Math.abs(D) - Math.abs(w));
+ var j = oR(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 = SV({
+ if (x = M, S = MV({
axis: c,
ticks: u,
bandSize: o,
@@ -64930,7 +65203,7 @@ function YAe(e) {
width: p.width,
height: w
}, Math.abs(D) > 0 && Math.abs(C) < Math.abs(D)) {
- var P = eR(C || D) * (Math.abs(D) - Math.abs(C));
+ var P = oR(C || D) * (Math.abs(D) - Math.abs(C));
C += P;
}
}
@@ -64952,12 +65225,12 @@ function YAe(e) {
}, m && m[f] && m[f].props);
}).filter(Boolean);
}
-function XAe(e) {
- var t = SR(e, qAe), n = TAe(t.stackId), r = tH();
+function sje(e) {
+ var t = OR(e, ije), n = IAe(t.stackId), r = dH();
return /*#__PURE__*/ R.createElement(Y0, {
id: t.id,
type: "bar"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(q0, { legendPayload: IAe(t) }), /*#__PURE__*/ R.createElement(LAe, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(q0, { legendPayload: qAe(t) }), /*#__PURE__*/ R.createElement(JAe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -64982,23 +65255,23 @@ function XAe(e) {
maxBarSize: t.maxBarSize,
isPanorama: r,
hasCustomShape: t.shape != null
- }), /*#__PURE__*/ R.createElement(M$, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(JAe, c3({}, t, { id: e })))));
+ }), /*#__PURE__*/ R.createElement(M$, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(aje, c3({}, t, { id: e })))));
}
-var p3 = /*#__PURE__*/ R.memo(XAe, lW);
+var p3 = /*#__PURE__*/ R.memo(sje, yW);
p3.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
-var ZAe = ["domain", "range"], QAe = ["domain", "range"];
+var cje = ["domain", "range"], lje = ["domain", "range"];
function m3(e, t) {
if (e == null) return {};
- var n, r, i = $Ae(e, t);
+ var n, r, i = uje(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 $Ae(e, t) {
+function uje(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65012,16 +65285,16 @@ function h3(e, t) {
}
function g3(e, t) {
if (e === t) return !0;
- var { domain: n, range: r } = e, i = m3(e, ZAe), { domain: a, range: o } = t, s = m3(t, QAe);
- return !h3(n, a) || !h3(r, o) ? !1 : lW(i, s);
+ var { domain: n, range: r } = e, i = m3(e, cje), { domain: a, range: o } = t, s = m3(t, lje);
+ return !h3(n, a) || !h3(r, o) ? !1 : yW(i, s);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/XAxis.js
-var eje = ["type"], tje = [
+var dje = ["type"], fje = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], nje = ["id", "scale"];
+], pje = ["id", "scale"];
function _3() {
return _3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -65045,26 +65318,26 @@ function y3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? v3(Object(n), !0).forEach(function(t) {
- rje(e, t, n[t]);
+ mje(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : v3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function rje(e, t, n) {
- return (t = ije(t)) in e ? Object.defineProperty(e, t, {
+function mje(e, t, n) {
+ return (t = hje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ije(e) {
- var t = aje(e, "string");
+function hje(e) {
+ var t = gje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function aje(e, t) {
+function gje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65076,14 +65349,14 @@ function aje(e, t) {
}
function b3(e, t) {
if (e == null) return {};
- var n, r, i = oje(e, t);
+ var n, r, i = _je(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 oje(e, t) {
+function _je(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65092,35 +65365,35 @@ function oje(e, t) {
}
return n;
}
-function sje(e) {
- var t = YR(), n = (0, R.useRef)(null), r = LH(), { type: i } = e, a = b3(e, eje), o = xq(r, "xAxis", i), s = (0, R.useMemo)(() => {
+function vje(e) {
+ var t = tz(), n = (0, R.useRef)(null), r = qH(), { type: i } = e, a = b3(e, dje), o = xq(r, "xAxis", i), s = (0, R.useMemo)(() => {
if (o != null) return y3(y3({}, a), {}, { type: o });
}, [a, o]);
return (0, R.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(CEe(s)) : n.current !== s && t(wEe({
+ s != null && (n.current === null ? t(PEe(s)) : n.current !== s && t(FEe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, R.useLayoutEffect)(() => () => {
- n.current &&= (t(TEe(n.current)), null);
+ n.current &&= (t(IEe(n.current)), null);
}, [t]), null;
}
-var cje = (e) => {
- var { xAxisId: t, className: n } = e, r = Q($V), i = tH(), a = "xAxis", o = Q((e) => SQ(e, a, t, i)), s = Q((e) => hQ(e, t)), c = Q((e) => kxe(e, t)), l = Q((e) => lZ(e, t));
+var yje = (e) => {
+ var { xAxisId: t, className: n } = e, r = Q(lH), i = dH(), a = "xAxis", o = Q((e) => SQ(e, a, t, i)), s = Q((e) => hQ(e, t)), c = Q((e) => Bxe(e, t)), l = Q((e) => lZ(e, t));
if (s == null || c == null || l == null) return null;
- var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = b3(e, tje), { id: m, scale: h } = l, g = b3(l, nje);
+ var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = b3(e, fje), { id: m, scale: h } = l, g = b3(l, pje);
return /*#__PURE__*/ R.createElement(g4, _3({}, p, g, {
x: c.x,
y: c.y,
width: s.width,
height: s.height,
- className: $l(`recharts-${a} ${a}`, n),
+ className: Ql(`recharts-${a} ${a}`, n),
viewBox: r,
ticks: o,
axisType: a,
axisId: t
}));
-}, lje = {
+}, bje = {
allowDataOverflow: cZ.allowDataOverflow,
allowDecimals: cZ.allowDecimals,
allowDuplicatedCategory: cZ.allowDuplicatedCategory,
@@ -65145,8 +65418,8 @@ var cje = (e) => {
niceTicks: cZ.niceTicks,
xAxisId: 0
}, x3 = /*#__PURE__*/ R.memo((e) => {
- var t = SR(e, lje);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(sje, {
+ var t = OR(e, bje);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(vje, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
allowDuplicatedCategory: t.allowDuplicatedCategory,
@@ -65172,16 +65445,16 @@ var cje = (e) => {
type: t.type,
unit: t.unit,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ R.createElement(cje, t));
+ }), /*#__PURE__*/ R.createElement(yje, t));
}, g3);
x3.displayName = "XAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/YAxis.js
-var uje = ["type"], dje = [
+var xje = ["type"], Sje = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], fje = ["id", "scale"];
+], Cje = ["id", "scale"];
function S3() {
return S3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -65205,26 +65478,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) {
- pje(e, t, n[t]);
+ wje(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 pje(e, t, n) {
- return (t = mje(t)) in e ? Object.defineProperty(e, t, {
+function wje(e, t, n) {
+ return (t = Tje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function mje(e) {
- var t = hje(e, "string");
+function Tje(e) {
+ var t = Eje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function hje(e, t) {
+function Eje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65236,14 +65509,14 @@ function hje(e, t) {
}
function T3(e, t) {
if (e == null) return {};
- var n, r, i = gje(e, t);
+ var n, r, i = Dje(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 gje(e, t) {
+function Dje(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65252,27 +65525,27 @@ function gje(e, t) {
}
return n;
}
-function _je(e) {
- var t = YR(), n = (0, R.useRef)(null), r = LH(), { type: i } = e, a = T3(e, uje), o = xq(r, "yAxis", i), s = (0, R.useMemo)(() => {
+function Oje(e) {
+ var t = tz(), n = (0, R.useRef)(null), r = qH(), { type: i } = e, a = T3(e, xje), o = xq(r, "yAxis", i), s = (0, R.useMemo)(() => {
if (o != null) return w3(w3({}, a), {}, { type: o });
}, [o, a]);
return (0, R.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(EEe(s)) : n.current !== s && t(DEe({
+ s != null && (n.current === null ? t(LEe(s)) : n.current !== s && t(REe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, R.useLayoutEffect)(() => () => {
- n.current &&= (t(OEe(n.current)), null);
+ n.current &&= (t(zEe(n.current)), null);
}, [t]), null;
}
-function vje(e) {
- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = Q($V), c = tH(), l = YR(), u = "yAxis", d = Q((e) => gQ(e, t)), f = Q((e) => Axe(e, t)), p = Q((e) => SQ(e, u, t, c)), m = Q((e) => fZ(e, t));
+function kje(e) {
+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = Q(lH), c = dH(), l = tz(), u = "yAxis", d = Q((e) => gQ(e, t)), f = Q((e) => Vxe(e, t)), p = Q((e) => SQ(e, u, t, c)), m = Q((e) => fZ(e, t));
if ((0, R.useLayoutEffect)(() => {
if (!(r !== "auto" || !d || M1(i) || /*#__PURE__*/ (0, R.isValidElement)(i) || m == null)) {
var e = a.current;
if (e) {
var n = e.getCalculatedWidth();
- Math.round(d.width) !== Math.round(n) && l(MEe({
+ Math.round(d.width) !== Math.round(n) && l(UEe({
id: t,
width: n
}));
@@ -65287,7 +65560,7 @@ function vje(e) {
r,
m
]), d == null || f == null || m == null) return null;
- var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = T3(e, dje), { id: y, scale: b } = m, x = T3(m, fje);
+ var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = T3(e, Sje), { id: y, scale: b } = m, x = T3(m, Cje);
return /*#__PURE__*/ R.createElement(g4, S3({}, v, x, {
ref: a,
labelRef: o,
@@ -65296,14 +65569,14 @@ function vje(e) {
tickTextProps: r === "auto" ? { width: void 0 } : { width: r },
width: d.width,
height: d.height,
- className: $l(`recharts-${u} ${u}`, n),
+ className: Ql(`recharts-${u} ${u}`, n),
viewBox: s,
ticks: p,
axisType: u,
axisId: t
}));
}
-var yje = {
+var Aje = {
allowDataOverflow: dZ.allowDataOverflow,
allowDecimals: dZ.allowDecimals,
allowDuplicatedCategory: dZ.allowDuplicatedCategory,
@@ -65328,8 +65601,8 @@ var yje = {
width: dZ.width,
yAxisId: 0
}, E3 = /*#__PURE__*/ R.memo((e) => {
- var t = SR(e, yje);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(_je, {
+ var t = OR(e, Aje);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Oje, {
interval: t.interval,
id: t.yAxisId,
scale: t.scale,
@@ -65355,27 +65628,27 @@ var yje = {
tick: t.tick,
tickFormatter: t.tickFormatter,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ R.createElement(vje, t));
+ }), /*#__PURE__*/ R.createElement(kje, t));
}, g3);
E3.displayName = "YAxis";
var D3 = $([
(e, t) => t,
- FH,
+ GH,
Pq,
Hq,
i$,
o$,
- ESe,
- ZV
-], NSe);
+ LSe,
+ sH
+], WSe);
//#endregion
//#region node_modules/recharts/es6/util/getRelativeCoordinate.js
-function bje(e) {
+function jje(e) {
return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";
}
function O3(e) {
var t = e.currentTarget.getBoundingClientRect(), n, r;
- if (bje(e)) {
+ if (jje(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 {
@@ -65390,19 +65663,19 @@ function O3(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js
-var k3 = TB("mouseClick"), A3 = aV();
+var k3 = jB("mouseClick"), A3 = dV();
A3.startListening({
actionCreator: k3,
effect: (e, t) => {
var n = e.payload, r = D3(t.getState(), O3(n));
- r?.activeIndex != null && t.dispatch(Bxe({
+ r?.activeIndex != null && t.dispatch(Zxe({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
});
-var j3 = TB("mouseMove"), M3 = aV(), N3 = null, P3 = null, F3 = null;
+var j3 = jB("mouseMove"), M3 = dV(), N3 = null, P3 = null, F3 = null;
M3.startListening({
actionCreator: j3,
effect: (e, t) => {
@@ -65433,7 +65706,7 @@ M3.startListening({
});
//#endregion
//#region node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js
-function xje(e, t) {
+function Mje(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
@@ -65450,17 +65723,17 @@ var I3 = {
syncMethod: "index",
baseValue: void 0,
reverseStackOrder: !1
-}, L3 = PB({
+}, L3 = BB({
name: "rootProps",
initialState: I3,
reducers: { updateOptions: (e, t) => {
e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? I3.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;
} }
-}), Sje = L3.reducer, { updateOptions: Cje } = L3.actions, R3 = PB({
+}), Nje = L3.reducer, { updateOptions: Pje } = L3.actions, R3 = BB({
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: wje } = R3.actions, Tje = R3.reducer, z3 = TB("keyDown"), B3 = TB("focus"), V3 = TB("blur"), H3 = aV(), U3 = null, W3 = null, G3 = null;
+}), { updatePolarOptions: Fje } = R3.actions, Ije = R3.reducer, z3 = jB("keyDown"), B3 = jB("focus"), V3 = jB("blur"), H3 = dV(), U3 = null, W3 = null, G3 = null;
H3.startListening({
actionCreator: z3,
effect: (e, t) => {
@@ -65485,7 +65758,7 @@ H3.startListening({
}));
return;
}
- var c = jxe(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
+ var c = Hxe(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
if (o == null || l >= o.length || l < 0) return;
var u = D$(e, "axis", "hover", String(l));
t.dispatch(LQ({
@@ -65548,7 +65821,7 @@ function K3(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/externalEventsMiddleware.js
-var q3 = TB("externalEvent"), J3 = aV(), Y3 = /* @__PURE__ */ new Map(), X3 = /* @__PURE__ */ new Map(), Z3 = /* @__PURE__ */ new Map();
+var q3 = jB("externalEvent"), J3 = dV(), Y3 = /* @__PURE__ */ new Map(), X3 = /* @__PURE__ */ new Map(), Z3 = /* @__PURE__ */ new Map();
J3.startListening({
actionCreator: q3,
effect: (e, t) => {
@@ -65568,12 +65841,12 @@ J3.startListening({
try {
if (!e) return;
var { handler: n, reactEvent: r } = e, a = t.getState(), o = {
- activeCoordinate: fSe(a),
+ activeCoordinate: CSe(a),
activeDataKey: p$(a),
activeIndex: d$(a),
activeLabel: f$(a),
activeTooltipIndex: d$(a),
- isTooltipActive: pSe(a)
+ isTooltipActive: wSe(a)
};
n && n(o, r);
} finally {
@@ -65597,7 +65870,7 @@ J3.startListening({
}
}
});
-var Eje = $([
+var Lje = $([
$([GQ], (e) => e.tooltipItemPayloads),
(e, t) => t,
(e, t, n) => n
@@ -65609,7 +65882,7 @@ var Eje = $([
if (i != null) return i(t);
}
}
-}), Q3 = TB("touchMove"), $3 = aV(), e6 = null, t6 = null, n6 = null, r6 = null;
+}), Q3 = jB("touchMove"), $3 = dV(), e6 = null, t6 = null, n6 = null, r6 = null;
$3.startListening({
actionCreator: Q3,
effect: (e, t) => {
@@ -65642,9 +65915,9 @@ $3.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(BV), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = ZQ(e).find((e) => e.id === c);
+ var s = o.getAttribute(XV), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = ZQ(e).find((e) => e.id === c);
if (s == null || l == null || c == null) return;
- var { dataKey: u } = l, d = Eje(e, s, c);
+ var { dataKey: u } = l, d = Lje(e, s, c);
t.dispatch(NQ({
activeDataKey: u,
activeIndex: s,
@@ -65676,33 +65949,33 @@ var i6 = {
"scroll",
"wheel"
]
-}, a6 = PB({
+}, a6 = BB({
name: "eventSettings",
initialState: i6,
reducers: { setEventSettings: (e, t) => {
- t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = LU(t.payload.throttledEvents));
+ t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = qU(t.payload.throttledEvents));
} }
-}), { setEventSettings: Dje } = a6.actions, Oje = a6.reducer, kje = pz({
- brush: KDe,
- cartesianAxis: NEe,
- chartData: oCe,
- errorBars: dke,
- eventSettings: Oje,
- graphicalItems: lEe,
- layout: E_e,
- legend: WU,
- options: tCe,
- polarAxis: $we,
- polarOptions: Tje,
- referenceElements: rOe,
- renderedTicks: jOe,
- rootProps: Sje,
- tooltip: Vxe,
- zIndex: KSe
-}), Aje = function(e) {
+}), { setEventSettings: Rje } = a6.actions, zje = a6.reducer, Bje = yz({
+ brush: rOe,
+ cartesianAxis: WEe,
+ chartData: _Ce,
+ errorBars: Ske,
+ eventSettings: zje,
+ graphicalItems: bEe,
+ layout: j_e,
+ legend: eW,
+ options: fCe,
+ polarAxis: uTe,
+ polarOptions: Ije,
+ referenceElements: mOe,
+ renderedTicks: HOe,
+ rootProps: Nje,
+ tooltip: Qxe,
+ zIndex: rCe
+}), Vje = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";
- return Qge({
- reducer: kje,
+ return r_e({
+ reducer: Bje,
preloadedState: e,
middleware: (e) => e({
serializableCheck: !1,
@@ -65720,10 +65993,10 @@ var i6 = {
]),
enhancers: (e) => {
var t = e;
- return typeof e == "function" && (t = e()), t.concat(MB({ type: "raf" }));
+ return typeof e == "function" && (t = e()), t.concat(RB({ type: "raf" }));
},
- devTools: WW.devToolsEnabled && {
- serialize: { replacer: xje },
+ devTools: eG.devToolsEnabled && {
+ serialize: { replacer: Mje },
name: `recharts-${t}`
}
});
@@ -65731,21 +66004,21 @@ var i6 = {
//#endregion
//#region node_modules/recharts/es6/state/RechartsStoreProvider.js
function o6(e) {
- var { preloadedState: t, children: n, reduxStoreName: r } = e, i = tH(), a = (0, R.useRef)(null);
+ var { preloadedState: t, children: n, reduxStoreName: r } = e, i = dH(), a = (0, R.useRef)(null);
if (i) return n;
- a.current ??= Aje(t, r);
- var o = JR;
- return /*#__PURE__*/ R.createElement(oW, {
+ a.current ??= Vje(t, r);
+ var o = ez;
+ return /*#__PURE__*/ R.createElement(gW, {
context: o,
store: a.current
}, n);
}
//#endregion
//#region node_modules/recharts/es6/state/ReportMainChartProps.js
-function jje(e) {
- var { layout: t, margin: n } = e, r = YR(), i = tH();
+function Hje(e) {
+ var { layout: t, margin: n } = e, r = tz(), i = dH();
return (0, R.useEffect)(() => {
- i || (r(C_e(t)), r(S_e(n)));
+ i || (r(O_e(t)), r(D_e(n)));
}, [
r,
i,
@@ -65753,31 +66026,31 @@ function jje(e) {
n
]), null;
}
-var s6 = /*#__PURE__*/ (0, R.memo)(jje, lW);
+var s6 = /*#__PURE__*/ (0, R.memo)(Hje, yW);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
function c6(e) {
- var t = YR();
+ var t = tz();
return (0, R.useEffect)(() => {
- t(Cje(e));
+ t(Pje(e));
}, [t, e]), null;
}
var l6 = /*#__PURE__*/ (0, R.memo)((e) => {
- var t = YR();
+ var t = tz();
return (0, R.useEffect)(() => {
- t(Dje(e));
+ t(Rje(e));
}, [t, e]), null;
-}, lW);
+}, yW);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
function u6(e) {
- var { zIndex: t, isPanorama: n } = e, r = (0, R.useRef)(null), i = YR();
- return (0, R.useLayoutEffect)(() => (r.current && i(WSe({
+ var { zIndex: t, isPanorama: n } = e, r = (0, R.useRef)(null), i = tz();
+ return (0, R.useLayoutEffect)(() => (r.current && i(tCe({
zIndex: t,
element: r.current,
isPanorama: n
})), () => {
- i(GSe({
+ i(nCe({
zIndex: t,
isPanorama: n
}));
@@ -65792,7 +66065,7 @@ function u6(e) {
});
}
function d6(e) {
- var { children: t, isPanorama: n } = e, r = Q(FSe);
+ var { children: t, isPanorama: n } = e, r = Q(KSe);
if (!r || r.length === 0) return t;
var i = r.filter((e) => e < 0), a = r.filter((e) => e > 0);
return /*#__PURE__*/ R.createElement(R.Fragment, null, i.map((e) => /*#__PURE__*/ R.createElement(u6, {
@@ -65807,17 +66080,17 @@ function d6(e) {
}
//#endregion
//#region node_modules/recharts/es6/container/RootSurface.js
-var Mje = ["children"];
-function Nje(e, t) {
+var Uje = ["children"];
+function Wje(e, t) {
if (e == null) return {};
- var n, r, i = Pje(e, t);
+ var n, r, i = Gje(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Pje(e, t) {
+function Gje(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65835,46 +66108,46 @@ function f6() {
return e;
}, f6.apply(null, arguments);
}
-var Fje = {
+var Kje = {
width: "100%",
height: "100%",
display: "block"
-}, Ije = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = MH(), r = NH(), i = eG();
- if (!uV(n) || !uV(r)) return null;
+}, qje = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = HH(), r = UH(), i = uG();
+ if (!gV(n) || !gV(r)) return null;
var { children: a, otherAttributes: o, title: s, desc: c } = e, l, u;
- return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ R.createElement(XI, f6({}, 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__*/ R.createElement(nL, f6({}, o, {
title: s,
desc: c,
role: u,
tabIndex: l,
width: n,
height: r,
- style: Fje,
+ style: Kje,
ref: t
}), a);
-}), Lje = (e) => {
- var { children: t } = e, n = Q(rH);
+}), Jje = (e) => {
+ var { children: t } = e, n = Q(pH);
if (!n) return null;
var { width: r, height: i, y: a, x: o } = n;
- return /*#__PURE__*/ R.createElement(XI, {
+ return /*#__PURE__*/ R.createElement(nL, {
width: r,
height: i,
x: o,
y: a
}, t);
}, p6 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { children: n } = e, r = Nje(e, Mje);
- return tH() ? /*#__PURE__*/ R.createElement(Lje, null, /*#__PURE__*/ R.createElement(d6, { isPanorama: !0 }, n)) : /*#__PURE__*/ R.createElement(Ije, f6({ ref: t }, r), /*#__PURE__*/ R.createElement(d6, { isPanorama: !1 }, n));
+ var { children: n } = e, r = Wje(e, Uje);
+ return dH() ? /*#__PURE__*/ R.createElement(Jje, null, /*#__PURE__*/ R.createElement(d6, { isPanorama: !0 }, n)) : /*#__PURE__*/ R.createElement(qje, f6({ ref: t }, r), /*#__PURE__*/ R.createElement(d6, { isPanorama: !1 }, n));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
-function Rje() {
- var e = YR(), [t, n] = (0, R.useState)(null), r = Q(IV);
+function Yje() {
+ var e = tz(), [t, n] = (0, R.useState)(null), r = Q(KV);
return (0, R.useEffect)(() => {
if (t != null) {
var n = t.getBoundingClientRect().width / t.offsetWidth;
- lV(n) && n !== r && e(T_e(n));
+ hV(n) && n !== r && e(A_e(n));
}
}, [
t,
@@ -65894,30 +66167,30 @@ function m6(e, t) {
}
return n;
}
-function zje(e) {
+function Xje(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) {
- Bje(e, t, n[t]);
+ Zje(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 Bje(e, t, n) {
- return (t = Vje(t)) in e ? Object.defineProperty(e, t, {
+function Zje(e, t, n) {
+ return (t = Qje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Vje(e) {
- var t = Hje(e, "string");
+function Qje(e) {
+ var t = $je(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Hje(e, t) {
+function $je(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65936,7 +66209,7 @@ function h6() {
return e;
}, h6.apply(null, arguments);
}
-var Uje = () => (hCe(), null);
+var eMe = () => (ECe(), null);
function g6(e) {
if (typeof e == "number") return e;
if (typeof e == "string") {
@@ -65945,7 +66218,7 @@ function g6(e) {
}
return 0;
}
-var Wje = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+var tMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var n = (0, R.useRef)(null), [r, i] = (0, R.useState)({
containerWidth: g6(e.style?.width),
containerHeight: g6(e.style?.height)
@@ -65973,11 +66246,11 @@ var Wje = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
}, [t, a]);
return (0, R.useEffect)(() => () => {
n.current?.disconnect();
- }, [a]), /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(VH, {
+ }, [a]), /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(ZH, {
width: r.containerWidth,
height: r.containerHeight
}), /*#__PURE__*/ R.createElement("div", h6({ ref: o }, e)));
-}), Gje = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+}), nMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { width: n, height: r } = e, [i, a] = (0, R.useState)({
containerWidth: g6(n),
containerHeight: g6(r)
@@ -65995,32 +66268,32 @@ var Wje = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
o(n, r);
}
}, [t, o]);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(VH, {
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(ZH, {
width: i.containerWidth,
height: i.containerHeight
}), /*#__PURE__*/ R.createElement("div", h6({ ref: s }, e)));
-}), Kje = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+}), rMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(VH, {
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(ZH, {
width: n,
height: r
}), /*#__PURE__*/ R.createElement("div", h6({ ref: t }, e)));
-}), qje = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+}), iMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ R.createElement(Gje, h6({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ R.createElement(Kje, h6({}, e, {
+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ R.createElement(nMe, h6({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ R.createElement(rMe, h6({}, e, {
width: n,
height: r,
ref: t
- })) : /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(VH, {
+ })) : /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(ZH, {
width: n,
height: r
}), /*#__PURE__*/ R.createElement("div", h6({ ref: t }, e)));
});
-function Jje(e) {
- return e ? Wje : qje;
+function aMe(e) {
+ return e ? tMe : iMe;
}
-var Yje = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, R.useRef)(null), x = YR(), [S, C] = (0, R.useState)(null), [w, T] = (0, R.useState)(null), E = Rje(), D = TH(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, R.useCallback)((e) => {
+var oMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, R.useRef)(null), x = tz(), [S, C] = (0, R.useState)(null), [w, T] = (0, R.useState)(null), E = Yje(), D = FH(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, R.useCallback)((e) => {
E(e), typeof t == "function" && t(e), C(e), T(e), e != null && (b.current = e);
}, [
E,
@@ -66092,12 +66365,12 @@ var Yje = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
handler: p,
reactEvent: e
}));
- }, [x, p]), ce = Jje(v);
- return /*#__PURE__*/ R.createElement(I$.Provider, { value: S }, /*#__PURE__*/ R.createElement($I.Provider, { value: w }, /*#__PURE__*/ R.createElement(ce, {
+ }, [x, p]), ce = aMe(v);
+ return /*#__PURE__*/ R.createElement(I$.Provider, { value: S }, /*#__PURE__*/ R.createElement(aL.Provider, { value: w }, /*#__PURE__*/ R.createElement(ce, {
width: O ?? g?.width,
height: k ?? g?.height,
- className: $l("recharts-wrapper", r),
- style: zje({
+ className: Ql("recharts-wrapper", r),
+ style: Xje({
position: "relative",
cursor: "default",
width: O,
@@ -66118,8 +66391,8 @@ var Yje = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
onTouchMove: oe,
onTouchStart: ae,
ref: A
- }, /*#__PURE__*/ R.createElement(Uje, null), n)));
-}), Xje = [
+ }, /*#__PURE__*/ R.createElement(eMe, null), n)));
+}), sMe = [
"width",
"height",
"responsive",
@@ -66130,16 +66403,16 @@ var Yje = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
"title",
"desc"
];
-function Zje(e, t) {
+function cMe(e, t) {
if (e == null) return {};
- var n, r, i = Qje(e, t);
+ var n, r, i = lMe(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 Qje(e, t) {
+function lMe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66149,15 +66422,15 @@ function Qje(e, t) {
return n;
}
var _6 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = KI(Zje(e, Xje));
- return c ? /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(VH, {
+ var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = QI(cMe(e, sMe));
+ return c ? /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(ZH, {
width: n,
height: r
}), /*#__PURE__*/ R.createElement(p6, {
otherAttributes: d,
title: l,
desc: u
- }, a)) : /*#__PURE__*/ R.createElement(Yje, {
+ }, a)) : /*#__PURE__*/ R.createElement(oMe, {
className: o,
style: s,
width: n,
@@ -66179,7 +66452,7 @@ var _6 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
title: l,
desc: u,
ref: t
- }, /*#__PURE__*/ R.createElement(iOe, null, a)));
+ }, /*#__PURE__*/ R.createElement(hOe, null, a)));
});
//#endregion
//#region node_modules/recharts/es6/chart/CartesianChart.js
@@ -66202,30 +66475,30 @@ function y6(e, t) {
}
return n;
}
-function $je(e) {
+function uMe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? y6(Object(n), !0).forEach(function(t) {
- eMe(e, t, n[t]);
+ dMe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : y6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function eMe(e, t, n) {
- return (t = tMe(t)) in e ? Object.defineProperty(e, t, {
+function dMe(e, t, n) {
+ return (t = fMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function tMe(e) {
- var t = nMe(e, "string");
+function fMe(e) {
+ var t = pMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function nMe(e, t) {
+function pMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66235,7 +66508,7 @@ function nMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var rMe = $je({
+var mMe = uMe({
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -66251,7 +66524,7 @@ var rMe = $je({
stackOffset: "none",
syncMethod: "index"
}, i6), b6 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- var n = SR(e.categoricalChartProps, rMe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
+ var n = OR(e.categoricalChartProps, mMe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
chartName: r,
defaultTooltipEventType: i,
validateTooltipEventTypes: a,
@@ -66280,32 +66553,32 @@ var rMe = $je({
className: n.className,
reverseStackOrder: n.reverseStackOrder
}), /*#__PURE__*/ R.createElement(_6, v6({}, n, { ref: t })));
-}), iMe = ["axis"], aMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(b6, {
+}), hMe = ["axis"], gMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(b6, {
chartName: "LineChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: iMe,
+ validateTooltipEventTypes: hMe,
tooltipPayloadSearcher: B$,
categoricalChartProps: e,
ref: t
-})), oMe = ["axis", "item"], x6 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(b6, {
+})), _Me = ["axis", "item"], x6 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(b6, {
chartName: "BarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: oMe,
+ validateTooltipEventTypes: _Me,
tooltipPayloadSearcher: B$,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/state/ReportPolarOptions.js
-function sMe(e) {
- var t = YR();
+function vMe(e) {
+ var t = tz();
return (0, R.useEffect)(() => {
- t(wje(e));
+ t(Fje(e));
}, [t, e]), null;
}
//#endregion
//#region node_modules/recharts/es6/chart/PolarChart.js
-var cMe = ["layout"];
+var yMe = ["layout"];
function S6() {
return S6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -66315,16 +66588,16 @@ function S6() {
return e;
}, S6.apply(null, arguments);
}
-function lMe(e, t) {
+function bMe(e, t) {
if (e == null) return {};
- var n, r, i = uMe(e, t);
+ var n, r, i = xMe(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 uMe(e, t) {
+function xMe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66343,30 +66616,30 @@ function C6(e, t) {
}
return n;
}
-function dMe(e) {
+function SMe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? C6(Object(n), !0).forEach(function(t) {
- fMe(e, t, n[t]);
+ CMe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fMe(e, t, n) {
- return (t = pMe(t)) in e ? Object.defineProperty(e, t, {
+function CMe(e, t, n) {
+ return (t = wMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pMe(e) {
- var t = mMe(e, "string");
+function wMe(e) {
+ var t = TMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mMe(e, t) {
+function TMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66376,7 +66649,7 @@ function mMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var w6 = dMe({
+var w6 = SMe({
accessibilityLayer: !0,
stackOffset: "none",
barCategoryGap: "10%",
@@ -66396,7 +66669,7 @@ var w6 = dMe({
innerRadius: 0,
outerRadius: "80%"
}, i6), T6 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- var n = SR(e.categoricalChartProps, w6), { layout: r } = n, i = lMe(n, cMe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
+ var n = OR(e.categoricalChartProps, w6), { layout: r } = n, i = bMe(n, yMe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
chartName: a,
defaultTooltipEventType: o,
validateTooltipEventTypes: s,
@@ -66424,7 +66697,7 @@ var w6 = dMe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ R.createElement(sMe, {
+ }), /*#__PURE__*/ R.createElement(vMe, {
cx: n.cx,
cy: n.cy,
startAngle: n.startAngle,
@@ -66449,26 +66722,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) {
- hMe(e, t, n[t]);
+ EMe(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 hMe(e, t, n) {
- return (t = gMe(t)) in e ? Object.defineProperty(e, t, {
+function EMe(e, t, n) {
+ return (t = DMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function gMe(e) {
- var t = _Me(e, "string");
+function DMe(e) {
+ var t = OMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function _Me(e, t) {
+function OMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66478,24 +66751,24 @@ function _Me(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var vMe = ["axis"], yMe = D6(D6({}, w6), {}, {
+var kMe = ["axis"], AMe = D6(D6({}, w6), {}, {
layout: "centric",
startAngle: 90,
endAngle: -270
-}), bMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = SR(e, yMe);
+}), jMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = OR(e, AMe);
return /*#__PURE__*/ R.createElement(T6, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: vMe,
+ validateTooltipEventTypes: kMe,
tooltipPayloadSearcher: B$,
categoricalChartProps: n,
ref: t
});
-}), xMe = ["axis"], SMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(b6, {
+}), MMe = ["axis"], NMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(b6, {
chartName: "AreaChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: xMe,
+ validateTooltipEventTypes: MMe,
tooltipPayloadSearcher: B$,
categoricalChartProps: e,
ref: t
@@ -66516,26 +66789,26 @@ function k6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? O6(Object(n), !0).forEach(function(t) {
- CMe(e, t, n[t]);
+ PMe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function CMe(e, t, n) {
- return (t = wMe(t)) in e ? Object.defineProperty(e, t, {
+function PMe(e, t, n) {
+ return (t = FMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function wMe(e) {
- var t = TMe(e, "string");
+function FMe(e) {
+ var t = IMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function TMe(e, t) {
+function IMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66545,16 +66818,16 @@ function TMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var EMe = ["axis", "item"], DMe = k6(k6({}, w6), {}, {
+var LMe = ["axis", "item"], RMe = k6(k6({}, w6), {}, {
layout: "radial",
startAngle: 0,
endAngle: 360
-}), OMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = SR(e, DMe);
+}), zMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = OR(e, RMe);
return /*#__PURE__*/ R.createElement(T6, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: EMe,
+ validateTooltipEventTypes: LMe,
tooltipPayloadSearcher: B$,
categoricalChartProps: n,
ref: t
@@ -66563,7 +66836,7 @@ var EMe = ["axis", "item"], DMe = k6(k6({}, w6), {}, {
//#endregion
//#region src/react/charts/cn.ts
function A6(...e) {
- return gi($l(e));
+ return gi(Ql(e));
}
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-chart.tsx
@@ -66571,7 +66844,7 @@ var j6 = {
light: "",
dark: ".dark"
}, M6 = Object.keys(j6);
-function kMe(e) {
+function BMe(e) {
for (let [t, n] of Object.entries(e)) if (n.colors && !M6.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${M6.join(", ")}). Received empty object or invalid keys.`);
}
var N6 = R.createContext(null);
@@ -66585,7 +66858,7 @@ function F6({ id: e, config: t, initialDimension: n = {
height: 200
}, className: r, children: i, footer: a, ...o }) {
let s = R.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
- return kMe(t), /* @__PURE__ */ (0, z.jsx)(N6.Provider, {
+ return BMe(t), /* @__PURE__ */ (0, z.jsx)(N6.Provider, {
value: { config: t },
children: /* @__PURE__ */ (0, z.jsxs)("div", {
"data-slot": "chart",
@@ -66597,7 +66870,7 @@ function F6({ id: e, config: t, initialDimension: n = {
id: c,
config: t
}),
- /* @__PURE__ */ (0, z.jsx)(DH, {
+ /* @__PURE__ */ (0, z.jsx)(LH, {
className: "min-h-0 w-full flex-1",
initialDimension: n,
children: i
@@ -66616,7 +66889,7 @@ function I6({ isLoading: e }) {
})
}) : null;
}
-function AMe(e, t) {
+function VMe(e, t) {
let n = e.length;
if (n >= t) return e.slice(0, t);
let r = [], i = Math.floor(t / n), a = t % n;
@@ -66631,7 +66904,7 @@ var L6 = ({ 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 ? [] : AMe(r, z6(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
+ return !r || !Array.isArray(r) || r.length === 0 ? [] : VMe(r, z6(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
}).filter(Boolean).join("\n"), i = Object.entries(j6).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
return /* @__PURE__ */ (0, z.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });
};
@@ -66645,15 +66918,15 @@ function z6(e) {
let t = M6.map((t) => e.colors?.[t]?.length ?? 0);
return Math.max(...t, 1);
}
-var jMe = (e = 10, t = 0, n = 70) => {
+var HMe = (e = 10, t = 0, n = 70) => {
let r = n - t;
return Array.from({ length: e }, () => ({ loading: Math.floor(Math.random() * r) + t }));
-}, MMe = {
+}, UMe = {
sm: "rounded-sm",
md: "rounded-md",
lg: "rounded-lg",
xl: "rounded-xl"
-}, NMe = {
+}, WMe = {
default: "bg-background",
"frosted-glass": "bg-background/70 backdrop-blur-sm"
};
@@ -66680,7 +66953,7 @@ function B6({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
if (!e || !t?.length) return /* @__PURE__ */ (0, z.jsx)("span", { className: "p-4" });
let _ = t.length === 1 && r !== "dot";
return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: A6("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", MMe[p], NMe[m], n),
+ className: A6("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", UMe[p], WMe[m], n),
children: [_ ? null : g, /* @__PURE__ */ (0, z.jsx)("div", {
className: "grid gap-1.5",
children: t.filter((e) => e.type !== "none").map((e, t) => {
@@ -66694,7 +66967,7 @@ function B6({ 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: PMe(n, o)
+ style: GMe(n, o)
}), /* @__PURE__ */ (0, z.jsxs)("div", {
className: A6("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
@@ -66713,10 +66986,10 @@ function B6({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
})]
});
}
-function PMe(e, t) {
+function GMe(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 V6 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, z.jsx)(CCe, {
+var V6 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, z.jsx)(PCe, {
animationDuration: e,
...t
});
@@ -66733,7 +67006,7 @@ function H6({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
onClick: () => {
c && s?.(o === r ? null : r);
},
- children: [i?.icon && !t ? /* @__PURE__ */ (0, z.jsx)(i.icon, {}) : /* @__PURE__ */ (0, z.jsx)(FMe, {
+ children: [i?.icon && !t ? /* @__PURE__ */ (0, z.jsx)(i.icon, {}) : /* @__PURE__ */ (0, z.jsx)(KMe, {
variant: l,
dataKey: r,
colorsCount: d
@@ -66742,8 +67015,8 @@ function H6({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
})
}) : null;
}
-function FMe({ variant: e, dataKey: t, colorsCount: n }) {
- let r = IMe(t, n), i = LMe(t, n);
+function KMe({ variant: e, dataKey: t, colorsCount: n }) {
+ let r = qMe(t, n), i = JMe(t, n);
switch (e) {
case "square": return /* @__PURE__ */ (0, z.jsx)("div", {
className: "h-2 w-2 shrink-0",
@@ -66775,10 +67048,10 @@ function FMe({ variant: e, dataKey: t, colorsCount: n }) {
});
}
}
-function IMe(e, t) {
+function qMe(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 LMe(e, t) {
+function JMe(e, t) {
let n = {
WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
WebkitMaskComposite: "xor",
@@ -66793,12 +67066,12 @@ function LMe(e, t) {
...n
};
}
-var U6 = DW, W6 = () => null, G6 = {
+var U6 = LW, W6 = () => null, G6 = {
stiffness: 300,
damping: 35,
mass: .8
};
-function RMe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
+function YMe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
let i = R.useRef(null), [a, o] = R.useState(!1), s = (0, R.useCallback)((e) => !n.current || t <= 1 ? 0 : Math.round(e / n.current.getBoundingClientRect().width * (t - 1)), [t, n]), c = (0, R.useCallback)((t, n) => {
t.preventDefault(), t.target.setPointerCapture(t.pointerId), i.current = {
type: n,
@@ -66844,7 +67117,7 @@ function RMe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
])
};
}
-function zMe({ 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 XMe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {
let x = R.useRef(null), S = R.useMemo(() => n ?? Object.keys(t), [n, t]), C = e.length, w = R.useId().replace(/:/g, ""), T = d !== void 0 && f !== void 0, [E, D] = R.useState(() => ({
startIndex: Math.max(0, Math.min(p, C - 1)),
endIndex: Math.max(0, Math.min(m ?? C - 1, C - 1))
@@ -66878,7 +67151,7 @@ function zMe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
startIndex: n,
endIndex: r
};
- }, [C, v]), { isDragging: A, bind: j } = RMe({
+ }, [C, v]), { isDragging: A, bind: j } = YMe({
range: E,
totalPoints: C,
containerRef: x,
@@ -66903,16 +67176,16 @@ function zMe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
f,
A
]);
- let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, P = C > 1 ? M.endIndex / (C - 1) * 100 : 100, ee = DF(N), F = DF(P);
+ let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, P = C > 1 ? M.endIndex / (C - 1) * 100 : 100, ee = NF(N), F = NF(P);
ee.get() !== N && ee.set(N), F.get() !== P && F.set(P);
- let I = jF(ee, G6), te = jF(F, G6), ne = kF(I, (e) => `${e}%`), re = kF(te, (e) => `${e}%`), ie = kF(I, (e) => `${e}%`), ae = kF(te, (e) => `${Math.max(0, 100 - e)}%`), oe = DF(`${Math.max(0, P - N)}%`), se = (0, R.useCallback)(() => {
+ let I = LF(ee, G6), te = LF(F, G6), ne = FF(I, (e) => `${e}%`), re = FF(te, (e) => `${e}%`), ie = FF(I, (e) => `${e}%`), ae = FF(te, (e) => `${Math.max(0, 100 - e)}%`), oe = NF(`${Math.max(0, P - N)}%`), se = (0, R.useCallback)(() => {
oe.set(`${Math.max(0, te.get() - I.get())}%`);
}, [
I,
te,
oe
]);
- EF(I, "change", se), EF(te, "change", se);
+ MF(I, "change", se), MF(te, "change", se);
let ce = (0, R.useCallback)((t) => {
if (!r) return String(t);
let n = e[t]?.[r];
@@ -66934,7 +67207,7 @@ function zMe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
}),
/* @__PURE__ */ (0, z.jsx)("div", {
className: "absolute inset-0 overflow-hidden rounded-md",
- children: /* @__PURE__ */ (0, z.jsx)(BMe, {
+ children: /* @__PURE__ */ (0, z.jsx)(ZMe, {
data: e,
keys: S,
chartConfig: t,
@@ -66947,15 +67220,15 @@ function zMe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
barRadius: u
})
}),
- /* @__PURE__ */ (0, z.jsx)(MF.div, {
+ /* @__PURE__ */ (0, z.jsx)(RF.div, {
className: "bg-background/70 pointer-events-none absolute inset-y-0 left-0 rounded-l-md backdrop-blur-[2px]",
style: { width: ie }
}),
- /* @__PURE__ */ (0, z.jsx)(MF.div, {
+ /* @__PURE__ */ (0, z.jsx)(RF.div, {
className: "bg-background/70 pointer-events-none absolute inset-y-0 right-0 rounded-r-md backdrop-blur-[2px]",
style: { width: ae }
}),
- /* @__PURE__ */ (0, z.jsx)(MF.div, {
+ /* @__PURE__ */ (0, z.jsx)(RF.div, {
className: "absolute inset-y-0 cursor-grab touch-none rounded-sm border active:cursor-grabbing",
style: {
left: ne,
@@ -66980,7 +67253,7 @@ function zMe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
}
function K6({ side: e, position: t, label: n, bind: r }) {
let i = e === "left";
- return /* @__PURE__ */ (0, z.jsxs)(MF.div, {
+ return /* @__PURE__ */ (0, z.jsxs)(RF.div, {
className: "absolute inset-y-0 z-10",
style: { left: t },
children: [/* @__PURE__ */ (0, z.jsx)("div", {
@@ -67003,7 +67276,7 @@ function K6({ side: e, position: t, label: n, bind: r }) {
})]
});
}
-function BMe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
+function ZMe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
let u = R.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({
dataKey: e,
colorsCount: z6(t)
@@ -67060,10 +67333,10 @@ function BMe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
})] })] }, e);
})] });
- if (r === "line") return /* @__PURE__ */ (0, z.jsx)(DH, {
+ if (r === "line") return /* @__PURE__ */ (0, z.jsx)(LH, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, z.jsxs)(aMe, {
+ children: /* @__PURE__ */ (0, z.jsxs)(gMe, {
data: e,
margin: {
top: 4,
@@ -67087,7 +67360,7 @@ function BMe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
});
if (r === "bar") {
let n = l ?? 3;
- return /* @__PURE__ */ (0, z.jsx)(DH, {
+ return /* @__PURE__ */ (0, z.jsx)(LH, {
width: "100%",
height: "100%",
children: /* @__PURE__ */ (0, z.jsxs)(x6, {
@@ -67116,10 +67389,10 @@ function BMe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
- return /* @__PURE__ */ (0, z.jsx)(DH, {
+ return /* @__PURE__ */ (0, z.jsx)(LH, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, z.jsxs)(SMe, {
+ children: /* @__PURE__ */ (0, z.jsxs)(NMe, {
data: e,
margin: {
top: 4,
@@ -67145,7 +67418,7 @@ function BMe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
-function VMe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
+function QMe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
let [r, i] = R.useState({
startIndex: t,
endIndex: n ?? Math.max(0, e.length - 1)
@@ -67169,7 +67442,7 @@ function VMe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
}
};
}
-var HMe = {
+var $Me = {
dots: ({ id: e }) => /* @__PURE__ */ (0, z.jsx)("pattern", {
id: e,
x: "0",
@@ -67342,7 +67615,7 @@ var HMe = {
})
};
function q6({ variant: e }) {
- let t = (0, R.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = HMe[e];
+ let t = (0, R.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = $Me[e];
return /* @__PURE__ */ (0, z.jsxs)(M$, {
zIndex: -1,
children: [/* @__PURE__ */ (0, z.jsxs)("defs", { children: [
@@ -67373,7 +67646,7 @@ function q6({ variant: e }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx
-var J6 = 2, UMe = "loading", WMe = 2e3, GMe = "evil-stacked", KMe = .5, qMe = .05, JMe = [
+var J6 = 2, eNe = "loading", tNe = 2e3, nNe = "evil-stacked", rNe = .5, iNe = .05, aNe = [
0,
.7,
.5,
@@ -67385,7 +67658,7 @@ function X6() {
return e;
}
function Z6({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = J6, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {
- let _ = (0, R.useId)().replace(/:/g, ""), [v] = (0, R.useState)(() => Date.now()), [y, b] = (0, R.useState)(f), [x, S] = (0, R.useState)(!1), { loadingData: C, onShimmerExit: w } = pNe(m, h), { visibleData: T, brushProps: E } = VMe({ data: t }), D = (0, R.useMemo)(() => {
+ let _ = (0, R.useId)().replace(/:/g, ""), [v] = (0, R.useState)(() => Date.now()), [y, b] = (0, R.useState)(f), [x, S] = (0, R.useState)(!1), { loadingData: C, onShimmerExit: w } = wNe(m, h), { visibleData: T, brushProps: E } = QMe({ data: t }), D = (0, R.useMemo)(() => {
let e = R.Children.toArray(n), t = e.find((e) => (0, R.isValidElement)(e) && e.type === W6), r = (0, R.isValidElement)(t) ? t.props : {};
return {
slot: {
@@ -67428,7 +67701,7 @@ function Z6({ config: e, data: t, children: n, className: r, chartProps: i, stac
children: /* @__PURE__ */ (0, z.jsxs)(F6, {
className: r,
config: e,
- footer: O && !m && /* @__PURE__ */ (0, z.jsx)(zMe, {
+ footer: O && !m && /* @__PURE__ */ (0, z.jsx)(XMe, {
data: t,
chartConfig: e,
xDataKey: g,
@@ -67459,7 +67732,7 @@ function Z6({ config: e, data: t, children: n, className: r, chartProps: i, stac
d && /* @__PURE__ */ (0, z.jsx)(q6, { variant: d }),
/* @__PURE__ */ (0, z.jsx)(a4, { color: "white" }),
D.chartChildren,
- m && /* @__PURE__ */ (0, z.jsx)(mNe, {
+ m && /* @__PURE__ */ (0, z.jsx)(TNe, {
chartId: _,
onShimmerExit: w
})
@@ -67468,8 +67741,8 @@ function Z6({ config: e, data: t, children: n, className: r, chartProps: i, stac
})
});
}
-function YMe({ 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 } = X6(), b = (0, R.useId)().replace(/:/g, ""), x = ede();
+function oNe({ 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 } = X6(), b = (0, R.useId)().replace(/:/g, ""), x = ade();
if (f) return null;
let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {
id: b,
@@ -67491,7 +67764,7 @@ function YMe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
};
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(p3, {
dataKey: e,
- stackId: u ? GMe : void 0,
+ stackId: u ? nNe : void 0,
fill: `url(#${b}-colors-${e})`,
radius: S,
isAnimationActive: !1,
@@ -67508,44 +67781,44 @@ function YMe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
}),
...c
}), /* @__PURE__ */ (0, z.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, z.jsx)(iNe, {
+ /* @__PURE__ */ (0, z.jsx)(hNe, {
id: b,
dataKey: e,
config: l
}),
- t === "hatched" && /* @__PURE__ */ (0, z.jsx)(aNe, {
+ t === "hatched" && /* @__PURE__ */ (0, z.jsx)(gNe, {
id: b,
dataKey: e
}),
- t === "duotone" && /* @__PURE__ */ (0, z.jsx)(sNe, {
+ t === "duotone" && /* @__PURE__ */ (0, z.jsx)(vNe, {
id: b,
dataKey: e,
config: l
}),
- t === "duotone-reverse" && /* @__PURE__ */ (0, z.jsx)(cNe, {
+ t === "duotone-reverse" && /* @__PURE__ */ (0, z.jsx)(yNe, {
id: b,
dataKey: e,
config: l
}),
- t === "gradient" && /* @__PURE__ */ (0, z.jsx)(lNe, {
+ t === "gradient" && /* @__PURE__ */ (0, z.jsx)(bNe, {
id: b,
dataKey: e
}),
- t === "stripped" && /* @__PURE__ */ (0, z.jsx)(uNe, {
+ t === "stripped" && /* @__PURE__ */ (0, z.jsx)(xNe, {
id: b,
dataKey: e
}),
- s && /* @__PURE__ */ (0, z.jsx)(oNe, {
+ s && /* @__PURE__ */ (0, z.jsx)(_Ne, {
id: b,
dataKey: e
}),
- o && /* @__PURE__ */ (0, z.jsx)(dNe, {
+ o && /* @__PURE__ */ (0, z.jsx)(SNe, {
id: b,
dataKey: e
})
] })] });
}
-function XMe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
+function sNe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
let { isLoading: o, isHorizontal: s } = X6();
return o ? null : /* @__PURE__ */ (0, z.jsx)(x3, {
tickLine: e,
@@ -67556,7 +67829,7 @@ function XMe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...a
});
}
-function ZMe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
+function cNe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
let { isLoading: s, isHorizontal: c } = X6();
return s ? null : /* @__PURE__ */ (0, z.jsx)(E3, {
tickLine: e,
@@ -67568,7 +67841,7 @@ function ZMe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...o
});
}
-function QMe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
+function lNe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
let { isHorizontal: i } = X6();
return /* @__PURE__ */ (0, z.jsx)(S4, {
strokeDasharray: e,
@@ -67577,7 +67850,7 @@ function QMe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
...r
});
}
-function $Me({ variant: e, roundness: t, defaultIndex: n }) {
+function uNe({ variant: e, roundness: t, defaultIndex: n }) {
let { isLoading: r, selectedDataKey: i } = X6();
return r ? null : /* @__PURE__ */ (0, z.jsx)(V6, {
cursor: !1,
@@ -67589,7 +67862,7 @@ function $Me({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function eNe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
+function dNe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
let { selectedDataKey: i, selectDataKey: a } = X6();
return /* @__PURE__ */ (0, z.jsx)(U6, {
verticalAlign: n,
@@ -67603,7 +67876,7 @@ function eNe({ variant: e, align: t = "right", verticalAlign: n = "top", isClick
});
}
var Q6 = (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 = tNe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : nNe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = rNe({
+ 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 = fNe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : pNe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = mNe({
isClickable: d,
selectedDataKey: _,
dataKey: o,
@@ -67640,7 +67913,7 @@ var Q6 = (e) => {
children: [/* @__PURE__ */ (0, z.jsx)(jK, {
...e,
fill: "transparent"
- }), w ? /* @__PURE__ */ (0, z.jsx)(MF.g, {
+ }), w ? /* @__PURE__ */ (0, z.jsx)(RF.g, {
initial: w.initial,
animate: w.animate,
transition: w.transition,
@@ -67648,7 +67921,7 @@ var Q6 = (e) => {
children: A
}) : A]
});
-}, tNe = (e, t, n, r, i) => {
+}, fNe = (e, t, n, r, i) => {
if (e === "none" || t < 0 || n <= 0) return null;
let a = n - 1, o = a / 2, s;
switch (e) {
@@ -67663,11 +67936,11 @@ var Q6 = (e) => {
break;
default: s = t;
}
- let c = s * qMe * 1e3, l = KMe * 1e3, u = c + l, d = Date.now() - i;
+ let c = s * iNe * 1e3, l = rNe * 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: JMe,
+ ease: aNe,
delay: Math.max(0, c - d) / 1e3
};
return r ? {
@@ -67681,7 +67954,7 @@ var Q6 = (e) => {
transition: p,
style: { originY: 1 }
};
-}, nNe = (e, t, n) => {
+}, pNe = (e, t, n) => {
switch (e) {
case "hatched": return `url(#${t}-hatched-${n})`;
case "duotone": return `url(#${t}-duotone-${n})`;
@@ -67690,10 +67963,10 @@ var Q6 = (e) => {
case "stripped": return `url(#${t}-stripped-${n})`;
default: return `url(#${t}-colors-${n})`;
}
-}, rNe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
+}, mNe = ({ 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;
-}, iNe = ({ id: e, dataKey: t, config: n }) => {
+}, hNe = ({ id: e, dataKey: t, config: n }) => {
let r = z6(n[t] ?? {});
return /* @__PURE__ */ (0, z.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
@@ -67715,7 +67988,7 @@ var Q6 = (e) => {
}, i);
})
});
-}, aNe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
+}, gNe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("pattern", {
id: `${e}-hatched-mask-pattern`,
x: "0",
@@ -67756,7 +68029,7 @@ var Q6 = (e) => {
mask: `url(#${e}-hatched-mask-${t})`
})
})
-] }), oNe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
+] }), _Ne = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("pattern", {
id: `${e}-buffer-hatched-mask-pattern`,
x: "0",
@@ -67797,7 +68070,7 @@ var Q6 = (e) => {
mask: `url(#${e}-buffer-hatched-mask-${t})`
})
})
-] }), sNe = ({ id: e, dataKey: t, config: n }) => {
+] }), vNe = ({ id: e, dataKey: t, config: n }) => {
let r = z6(n[t] ?? {});
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("linearGradient", {
@@ -67865,7 +68138,7 @@ var Q6 = (e) => {
})
})
] });
-}, cNe = ({ id: e, dataKey: t, config: n }) => {
+}, yNe = ({ id: e, dataKey: t, config: n }) => {
let r = z6(n[t] ?? {});
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("linearGradient", {
@@ -67933,7 +68206,7 @@ var Q6 = (e) => {
})
})
] });
-}, lNe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
+}, bNe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("linearGradient", {
id: `${e}-gradient-mask-gradient`,
x1: "0",
@@ -67970,7 +68243,7 @@ var Q6 = (e) => {
mask: `url(#${e}-gradient-mask-${t})`
})
})
-] }), uNe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
+] }), xNe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("linearGradient", {
id: `${e}-stripped-mask-gradient`,
x1: "0",
@@ -68007,7 +68280,7 @@ var Q6 = (e) => {
mask: `url(#${e}-stripped-mask-${t})`
})
})
-] }), dNe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)("filter", {
+] }), SNe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)("filter", {
id: `${e}-bar-glow-${t}`,
x: "-100%",
y: "-100%",
@@ -68027,35 +68300,35 @@ var Q6 = (e) => {
}),
/* @__PURE__ */ (0, z.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, z.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, z.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), fNe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
+}), CNe = (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 pNe(e, t = 12) {
+function wNe(e, t = 12) {
let [n, r] = (0, R.useState)(!1), i = (0, R.useCallback)(() => {
e && r((e) => !e);
}, [e]);
return {
- loadingData: (0, R.useMemo)(() => jMe(t, 20, 80), [t, n]),
+ loadingData: (0, R.useMemo)(() => HMe(t, 20, 80), [t, n]),
onShimmerExit: i
};
}
-var mNe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(p3, {
- dataKey: UMe,
+var TNe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(p3, {
+ dataKey: eNe,
fill: "currentColor",
fillOpacity: .15,
radius: J6,
isAnimationActive: !1,
legendType: "none",
style: { mask: `url(#${e}-loading-mask)` }
-}), /* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)(hNe, {
+}), /* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)(ENe, {
chartId: e,
onShimmerExit: t
-}) })] }), hNe = ({ chartId: e, onShimmerExit: t }) => {
- let n = fNe(), r = (0, R.useRef)(-1);
+}) })] }), ENe = ({ chartId: e, onShimmerExit: t }) => {
+ let n = CNe(), r = (0, R.useRef)(-1);
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsx)("linearGradient", {
id: `${e}-loading-mask-gradient`,
@@ -68078,7 +68351,7 @@ var mNe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fr
height: "1",
x: "0",
y: "0",
- children: /* @__PURE__ */ (0, z.jsx)(MF.rect, {
+ children: /* @__PURE__ */ (0, z.jsx)(RF.rect, {
y: "0",
width: "1",
height: "1",
@@ -68086,7 +68359,7 @@ var mNe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fr
initial: { x: -1 },
animate: { x: 2 },
transition: {
- duration: WMe / 1e3,
+ duration: tNe / 1e3,
ease: "linear",
repeat: Infinity,
repeatType: "loop"
@@ -68108,7 +68381,7 @@ var mNe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fr
})
] });
};
-Z6.Bar = YMe, Z6.XAxis = XMe, Z6.YAxis = ZMe, Z6.Grid = QMe, Z6.Tooltip = $Me, Z6.Legend = eNe, Z6.Brush = W6;
+Z6.Bar = oNe, Z6.XAxis = sNe, Z6.YAxis = cNe, Z6.Grid = lNe, Z6.Tooltip = uNe, Z6.Legend = dNe, Z6.Brush = W6;
//#endregion
//#region src/react/charts/chart-card.tsx
var $6 = `${Mi({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
@@ -68138,7 +68411,7 @@ var t8 = [
"var(--color-chart-5)",
"var(--color-chart-6)"
], n8 = (e) => ({ light: [e] }), r8 = (e) => `s${e}`;
-function gNe(e) {
+function DNe(e) {
return Object.fromEntries(e.map((e, t) => [r8(t), {
label: e,
colors: n8(t8[t % t8.length])
@@ -68163,7 +68436,7 @@ function a8({ swatch: e, name: t, value: n }) {
});
}
var o8 = "size-2.5 shrink-0 rounded-xs";
-function _Ne({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
+function ONe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
let { config: o } = P6(), s = (t ?? []).filter((e) => e.type !== "none");
if (!e || !s.length) return /* @__PURE__ */ (0, z.jsx)("span", { className: "p-4" });
let c = a || typeof n != "string" ? null : o[n]?.label ?? n;
@@ -68188,7 +68461,7 @@ function _Ne({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLab
function s8({ nameKey: e, valueKey: t, hideLabel: n }) {
return /* @__PURE__ */ (0, z.jsx)(V6, {
cursor: !1,
- content: /* @__PURE__ */ (0, z.jsx)(_Ne, {
+ content: /* @__PURE__ */ (0, z.jsx)(ONe, {
nameKey: e,
valueKey: t,
hideLabel: n
@@ -68265,7 +68538,7 @@ var d8 = [
"周六",
"周日"
], f8 = (e, t) => e ? Math.max(.12, e / t) : 0;
-function vNe(e) {
+function kNe(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;
@@ -68282,7 +68555,7 @@ function vNe(e) {
total: n.reduce((e, t) => e + t, 0)
};
}
-function yNe(e) {
+function ANe(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,
@@ -68321,19 +68594,19 @@ var p8 = 14, m8 = 17, h8 = {
fill: "fill-chart-5",
dot: "bg-chart-5"
}
-}, bNe = {
+}, jNe = {
start: "translate-x-0",
center: "-translate-x-1/2",
end: "-translate-x-full"
};
-function xNe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
+function MNe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
"aria-hidden": !0,
style: {
left: `${r}%`,
top: `${i}%`
},
- className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${i8} ${bNe[a]}`,
+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${i8} ${jNe[a]}`,
children: [/* @__PURE__ */ (0, z.jsx)("div", {
className: "font-medium text-foreground",
children: e.label
@@ -68391,7 +68664,7 @@ function g8({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
}, e.key);
})]
})
- }), g && _ ? /* @__PURE__ */ (0, z.jsx)(xNe, {
+ }), g && _ ? /* @__PURE__ */ (0, z.jsx)(MNe, {
cell: g,
series: t.series,
tone: c,
@@ -68407,7 +68680,7 @@ function g8({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
]
});
}
-var SNe = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [d8.map((e, t) => /* @__PURE__ */ (0, z.jsx)("text", {
+var NNe = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [d8.map((e, t) => /* @__PURE__ */ (0, z.jsx)("text", {
x: 0,
y: 18 + t * m8 + 7,
dominantBaseline: "middle",
@@ -68421,7 +68694,7 @@ var SNe = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [d8.map((e, t) =>
children: t
}, t))] });
function _8({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
- let o = vNe(e), s = yNe(e);
+ let o = kNe(e), s = ANe(e);
return s.cells.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",
children: [/* @__PURE__ */ (0, z.jsx)(g8, {
@@ -68432,7 +68705,7 @@ function _8({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
total: o.total,
columns: 24,
rows: 7,
- axis: SNe,
+ axis: NNe,
footer: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
}), /* @__PURE__ */ (0, z.jsx)(g8, {
title: n,
@@ -68504,14 +68777,14 @@ function v8({ children: e, className: t = "", previewCount: n = 10 }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
-var CNe = "30%", wNe = "100%", y8 = 5, b8 = 14, TNe = 5, x8 = 1500, S8 = (0, R.createContext)(null);
+var PNe = "30%", FNe = "100%", y8 = 5, b8 = 14, INe = 5, x8 = 1500, S8 = (0, R.createContext)(null);
function C8() {
let e = (0, R.use)(S8);
if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");
return e;
}
-function w8({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = CNe, outerRadius: l = wNe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
- let m = (0, R.useId)().replace(/:/g, ""), [h, g] = (0, R.useState)(u), _ = MNe(f), v = kNe(o), y = (0, R.useCallback)((e, t) => {
+function w8({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = PNe, outerRadius: l = FNe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
+ let m = (0, R.useId)().replace(/:/g, ""), [h, g] = (0, R.useState)(u), _ = UNe(f), v = BNe(o), y = (0, R.useCallback)((e, t) => {
g(e), d?.(e === null ? null : {
dataKey: e,
value: t ?? 0
@@ -68543,7 +68816,7 @@ function w8({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
children: /* @__PURE__ */ (0, z.jsxs)(F6, {
className: i,
config: e,
- children: [/* @__PURE__ */ (0, z.jsx)(I6, { isLoading: f }), /* @__PURE__ */ (0, z.jsxs)(OMe, {
+ children: [/* @__PURE__ */ (0, z.jsx)(I6, { isLoading: f }), /* @__PURE__ */ (0, z.jsxs)(zMe, {
id: m,
data: f ? _ : b,
innerRadius: c,
@@ -68562,8 +68835,8 @@ function w8({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
}),
p && /* @__PURE__ */ (0, z.jsx)(q6, { variant: p }),
r,
- f && /* @__PURE__ */ (0, z.jsx)(NNe, {}),
- /* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)(ANe, {
+ f && /* @__PURE__ */ (0, z.jsx)(WNe, {}),
+ /* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)(VNe, {
config: e,
chartId: m
}) })
@@ -68572,7 +68845,7 @@ function w8({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
})
});
}
-function ENe({ dataKey: e, cornerRadius: t = y8, barSize: n = b8, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
+function LNe({ dataKey: e, cornerRadius: t = y8, barSize: n = b8, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = C8();
return s ? null : /* @__PURE__ */ (0, z.jsx)(X2, {
dataKey: e,
@@ -68597,7 +68870,7 @@ function ENe({ dataKey: e, cornerRadius: t = y8, barSize: n = b8, showBackground
...a
});
}
-function DNe({ variant: e, roundness: t, defaultIndex: n }) {
+function RNe({ variant: e, roundness: t, defaultIndex: n }) {
let { nameKey: r, isLoading: i } = C8();
return i ? null : /* @__PURE__ */ (0, z.jsx)(V6, {
defaultIndex: n,
@@ -68610,7 +68883,7 @@ function DNe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function ONe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+function zNe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = C8();
return a ? null : /* @__PURE__ */ (0, z.jsx)(U6, {
verticalAlign: n,
@@ -68624,7 +68897,7 @@ function ONe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-function kNe(e) {
+function BNe(e) {
switch (e) {
case "semi": return {
startAngle: 180,
@@ -68640,7 +68913,7 @@ function kNe(e) {
};
}
}
-var ANe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, z.jsx)(z.Fragment, { children: Object.entries(e).map(([e, n]) => {
+var VNe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, z.jsx)(z.Fragment, { children: Object.entries(e).map(([e, n]) => {
let r = z6(n);
return /* @__PURE__ */ (0, z.jsx)("linearGradient", {
id: `${t}-radial-colors-${e}`,
@@ -68663,13 +68936,13 @@ var ANe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, z.jsx)(z.Fragment,
})
}, `${t}-radial-colors-${e}`);
}) });
-function jNe() {
- return Array.from({ length: TNe }, (e, t) => ({
+function HNe() {
+ return Array.from({ length: INe }, (e, t) => ({
name: `loading${t}`,
value: 40 + Math.random() * 60
}));
}
-function MNe(e) {
+function UNe(e) {
let [t, n] = (0, R.useState)(0);
return (0, R.useEffect)(() => {
if (!e) return;
@@ -68677,9 +68950,9 @@ function MNe(e) {
n((e) => e + 1);
}, x8);
return () => clearInterval(t);
- }, [e]), (0, R.useMemo)(() => jNe(), [t]);
+ }, [e]), (0, R.useMemo)(() => HNe(), [t]);
}
-var NNe = () => /* @__PURE__ */ (0, z.jsx)(X2, {
+var WNe = () => /* @__PURE__ */ (0, z.jsx)(X2, {
dataKey: "value",
cornerRadius: y8,
barSize: b8,
@@ -68693,17 +68966,17 @@ var NNe = () => /* @__PURE__ */ (0, z.jsx)(X2, {
fillOpacity: .25
})
});
-w8.RadialBar = ENe, w8.Tooltip = DNe, w8.Legend = ONe;
+w8.RadialBar = LNe, w8.Tooltip = RNe, w8.Legend = zNe;
//#endregion
//#region src/react/stats/radial-card.tsx
-var PNe = [
+var GNe = [
"bg-chart-1",
"bg-chart-2",
"bg-chart-3",
"bg-chart-4",
"bg-chart-5",
"bg-chart-6"
-], FNe = [
+], KNe = [
"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",
@@ -68744,13 +69017,13 @@ function T8({ title: e, rows: t, unit: n = "个视频" }) {
children: /* @__PURE__ */ (0, z.jsxs)(w8, {
data: f,
nameKey: "slice",
- config: gNe(s.map((e) => e.name)),
- max: Ype(s.map((e) => e.value)),
+ config: DNe(s.map((e) => e.name)),
+ max: eme(s.map((e) => e.value)),
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
children: [/* @__PURE__ */ (0, z.jsx)(w8.RadialBar, {
dataKey: "value",
- barSize: Xpe(s.length),
+ barSize: tme(s.length),
radialBarProps: {
shape: (e) => /* @__PURE__ */ (0, z.jsx)(HK, {
...e,
@@ -68776,13 +69049,13 @@ function T8({ 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 ${FNe[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 ${KNe[t % 6]}`,
children: [
/* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, z.jsx)("i", {
"aria-hidden": !0,
- className: `size-3 shrink-0 rounded-sm ${PNe[t % 6]}`
+ className: `size-3 shrink-0 rounded-sm ${GNe[t % 6]}`
}), e.name]
}),
/* @__PURE__ */ (0, z.jsx)("b", {
@@ -68801,7 +69074,7 @@ function T8({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var INe = 10, E8 = t8[5], LNe = t8[4], RNe = `${Mi()} flex flex-col gap-4`, zNe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", BNe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", VNe = "开始播放后,这里会显示最近的真实观看证据。", HNe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", UNe = "添加媒体文件夹后,这里会显示存储空间。";
+var qNe = 10, E8 = t8[5], JNe = t8[4], YNe = `${Mi()} flex flex-col gap-4`, XNe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", ZNe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", QNe = "开始播放后,这里会显示最近的真实观看证据。", $Ne = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", ePe = "添加媒体文件夹后,这里会显示存储空间。";
function D8({ term: e, value: t }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
@@ -68823,7 +69096,7 @@ function O8({ term: e, value: t, total: n }) {
className: "tabular-nums",
children: [t.toLocaleString(), /* @__PURE__ */ (0, z.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [zI(t, n), "%"]
+ children: [GI(t, n), "%"]
})]
})]
}), /* @__PURE__ */ (0, z.jsx)(zi, {
@@ -68854,14 +69127,14 @@ function k8({ term: e, figure: t, unit: n }) {
}
function A8({ headline: e, children: t }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: `${RNe} md:flex-row md:gap-6`,
+ className: `${YNe} md:flex-row md:gap-6`,
children: [e, /* @__PURE__ */ (0, z.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
-function WNe({ data: t, configurable: n, openMediaSettings: r }) {
+function tPe({ data: t, configurable: n, openMediaSettings: r }) {
return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
@@ -68889,14 +69162,14 @@ function WNe({ data: t, configurable: n, openMediaSettings: r }) {
unit: "个视频",
series: "视频",
color: E8,
- rows: eme(t.by_length)
+ rows: ame(t.by_length)
}),
/* @__PURE__ */ (0, z.jsx)(u8, {
title: "画质",
unit: "个视频",
series: "视频",
color: E8,
- rows: HI(t.by_quality)
+ rows: JI(t.by_quality)
}),
/* @__PURE__ */ (0, z.jsx)(u8, {
title: "文件类型",
@@ -68904,7 +69177,7 @@ function WNe({ data: t, configurable: n, openMediaSettings: r }) {
series: "条目",
color: E8,
layout: "horizontal",
- rows: Qpe(t.by_medium)
+ rows: rme(t.by_medium)
})
]
})]
@@ -68922,10 +69195,10 @@ function WNe({ data: t, configurable: n, openMediaSettings: r }) {
size: "small",
children: "添加关注"
})] }),
- children: zNe
+ children: XNe
});
}
-function GNe({ data: e }) {
+function nPe({ data: e }) {
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(_8, {
activity: e.play_activity,
title: "播放时间",
@@ -68940,11 +69213,11 @@ function GNe({ data: e }) {
title: "播放次数",
unit: "个作品",
series: "作品",
- color: LNe,
- rows: nme(e.replays)
+ color: JNe,
+ rows: sme(e.replays)
})] });
}
-function KNe({ attribution: e }) {
+function rPe({ attribution: e }) {
let t = e.videos;
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col",
@@ -68977,7 +69250,7 @@ function KNe({ attribution: e }) {
]
});
}
-function qNe({ volume: e }) {
+function iPe({ volume: e }) {
let t = e.total, n = e.used ?? 0;
return /* @__PURE__ */ (0, z.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -68994,7 +69267,7 @@ function qNe({ volume: e }) {
className: "whitespace-nowrap tabular-nums",
children: [s(n), /* @__PURE__ */ (0, z.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [zI(n, t), "%"]
+ children: [GI(n, t), "%"]
})]
})]
}),
@@ -69016,10 +69289,10 @@ function qNe({ volume: e }) {
]
});
}
-function JNe({ volumes: e, configurable: t, openMediaSettings: n }) {
+function aPe({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "flex flex-col",
- children: e.map((e) => /* @__PURE__ */ (0, z.jsx)(qNe, { volume: e }, `${e.kind}:${e.label}`))
+ children: e.map((e) => /* @__PURE__ */ (0, z.jsx)(iPe, { volume: e }, `${e.kind}:${e.label}`))
}) : /* @__PURE__ */ (0, z.jsx)(Pi, {
shell: "plain",
icon: Be,
@@ -69029,12 +69302,12 @@ function JNe({ volumes: e, configurable: t, openMediaSettings: n }) {
onClick: n,
children: "添加媒体文件夹"
}) : void 0,
- children: UNe
+ children: ePe
});
}
-function YNe({ tags: e, tagLabel: t, onTag: n }) {
+function oPe({ tags: e, tagLabel: t, onTag: n }) {
return e.length ? /* @__PURE__ */ (0, z.jsx)(v8, {
- previewCount: INe,
+ previewCount: qNe,
className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",
children: e.map((e, r) => /* @__PURE__ */ (0, z.jsx)("li", {
className: "min-w-0",
@@ -69068,14 +69341,14 @@ function YNe({ tags: e, tagLabel: t, onTag: n }) {
size: "small",
children: "补全资料"
}),
- children: BNe
+ children: ZNe
});
}
-function XNe({ rows: e }) {
+function sPe({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
- let t = BI(e);
+ let t = KI(e);
return /* @__PURE__ */ (0, z.jsxs)("article", {
className: "flex flex-wrap items-center gap-x-6 gap-y-2",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
@@ -69083,14 +69356,14 @@ function XNe({ rows: e }) {
children: [/* @__PURE__ */ (0, z.jsx)("h3", {
className: "min-w-0 text-body-2-medium text-text-primary",
children: /* @__PURE__ */ (0, z.jsx)("a", {
- href: Jpe(e),
+ href: $pe(e),
"data-middle-truncate": !0,
className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
children: e.name
})
}), /* @__PURE__ */ (0, z.jsxs)("p", {
className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, z.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, z.jsx)("span", { children: qpe(e) })]
+ children: [/* @__PURE__ */ (0, z.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, z.jsx)("span", { children: Qpe(e) })]
})]
}), /* @__PURE__ */ (0, z.jsxs)("div", {
className: "min-w-0 basis-40",
@@ -69099,7 +69372,7 @@ function XNe({ rows: e }) {
value: t
}), /* @__PURE__ */ (0, z.jsx)("small", {
className: "mt-1.5 block text-caption-1-regular text-text-secondary",
- children: `真实 ${t.toFixed(0)}% · 到达 ${VI(e).toFixed(0)}%`
+ children: `真实 ${t.toFixed(0)}% · 到达 ${qI(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
@@ -69114,10 +69387,10 @@ function XNe({ rows: e }) {
size: "small",
children: "浏览馆藏"
}),
- children: VNe
+ children: QNe
});
}
-function ZNe({ sources: e, videos: t }) {
+function cPe({ sources: e, videos: t }) {
return e.length ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)("article", {
@@ -69157,17 +69430,17 @@ function ZNe({ sources: e, videos: t }) {
size: "small",
children: "补全资料"
}),
- children: HNe
+ children: $Ne
});
}
function j8({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, z.jsx)(MS, {
+ return /* @__PURE__ */ (0, z.jsx)(FS, {
id: e,
- className: xl({
+ className: bl({
interactive: !0,
selectable: !0
}),
- children: /* @__PURE__ */ (0, z.jsx)(Dl, {
+ children: /* @__PURE__ */ (0, z.jsx)(El, {
label: t,
icon: i,
accent: a,
@@ -69176,29 +69449,29 @@ function j8({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
})
});
}
-function QNe(e) {
+function lPe(e) {
let t = Nn({
- queryKey: LI,
- queryFn: ({ signal: e }) => RI(e)
+ queryKey: UI,
+ queryFn: ({ signal: e }) => WI(e)
}), n = t.data;
if (!n) return /* @__PURE__ */ (0, z.jsx)(Ii, { children: /* @__PURE__ */ (0, z.jsx)(G, {
tone: "error",
title: "馆藏统计读取失败",
children: t.error ? U(t.error) : "未取得统计数据,请刷新页面重试。"
}) });
- let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), c = zI(n.tag_cov, n.attribution.videos);
+ let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), c = GI(n.tag_cov, n.attribution.videos);
return /* @__PURE__ */ (0, z.jsxs)(Ii, { children: [
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${a.toLocaleString()} 个视频 · ${s(o)}`
}),
- /* @__PURE__ */ (0, z.jsxs)(OS, {
+ /* @__PURE__ */ (0, z.jsxs)(jS, {
defaultSelectedKey: "inventory",
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, z.jsxs)(AS, {
+ /* @__PURE__ */ (0, z.jsxs)(NS, {
"aria-label": "统计视图",
- className: Sl,
+ className: xl,
children: [
/* @__PURE__ */ (0, z.jsx)(j8, {
id: "inventory",
@@ -69214,7 +69487,7 @@ function QNe(e) {
icon: Le,
accent: 1,
figure: r.played.toLocaleString(),
- detail: Kpe(r.play_seconds)
+ detail: Zpe(r.play_seconds)
}),
/* @__PURE__ */ (0, z.jsx)(j8, {
id: "coverage",
@@ -69234,14 +69507,14 @@ function QNe(e) {
})
]
}),
- /* @__PURE__ */ (0, z.jsx)(NS, {
+ /* @__PURE__ */ (0, z.jsx)(IS, {
id: "inventory",
- children: /* @__PURE__ */ (0, z.jsx)(WNe, {
+ children: /* @__PURE__ */ (0, z.jsx)(tPe, {
data: n,
...e
})
}),
- /* @__PURE__ */ (0, z.jsxs)(NS, {
+ /* @__PURE__ */ (0, z.jsxs)(IS, {
id: "viewing",
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, z.jsx)(A8, {
@@ -69287,9 +69560,9 @@ function QNe(e) {
})
]
})
- }), /* @__PURE__ */ (0, z.jsx)(GNe, { data: n })]
+ }), /* @__PURE__ */ (0, z.jsx)(nPe, { data: n })]
}),
- /* @__PURE__ */ (0, z.jsx)(NS, {
+ /* @__PURE__ */ (0, z.jsx)(IS, {
id: "coverage",
children: /* @__PURE__ */ (0, z.jsx)(A8, {
headline: /* @__PURE__ */ (0, z.jsx)(k8, {
@@ -69297,10 +69570,10 @@ function QNe(e) {
figure: `${c}%`,
unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- children: /* @__PURE__ */ (0, z.jsx)(KNe, { attribution: n.attribution })
+ children: /* @__PURE__ */ (0, z.jsx)(rPe, { attribution: n.attribution })
})
}),
- /* @__PURE__ */ (0, z.jsx)(NS, {
+ /* @__PURE__ */ (0, z.jsx)(IS, {
id: "storage",
children: /* @__PURE__ */ (0, z.jsx)(A8, {
headline: /* @__PURE__ */ (0, z.jsx)(k8, {
@@ -69308,7 +69581,7 @@ function QNe(e) {
figure: String(i.measured),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, z.jsx)(JNe, {
+ children: /* @__PURE__ */ (0, z.jsx)(aPe, {
volumes: n.storage_volumes,
...e
})
@@ -69316,51 +69589,51 @@ function QNe(e) {
})
]
}),
- /* @__PURE__ */ (0, z.jsxs)(OS, {
+ /* @__PURE__ */ (0, z.jsxs)(jS, {
defaultSelectedKey: "tags",
className: `${Mi({ padding: "none" })} flex flex-col`,
children: [
/* @__PURE__ */ (0, z.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, z.jsxs)(sA, {
+ children: /* @__PURE__ */ (0, z.jsxs)(nA, {
"aria-label": "统计维度",
- className: lA,
+ className: iA,
children: [
- /* @__PURE__ */ (0, z.jsx)(MS, {
+ /* @__PURE__ */ (0, z.jsx)(FS, {
id: "tags",
- className: uA,
+ className: aA,
children: "内容标签"
}),
- /* @__PURE__ */ (0, z.jsx)(MS, {
+ /* @__PURE__ */ (0, z.jsx)(FS, {
id: "recent",
- className: uA,
+ className: aA,
children: "最近看过"
}),
- /* @__PURE__ */ (0, z.jsx)(MS, {
+ /* @__PURE__ */ (0, z.jsx)(FS, {
id: "sources",
- className: uA,
+ className: aA,
children: "标签来源"
})
]
})
}),
- /* @__PURE__ */ (0, z.jsx)(NS, {
+ /* @__PURE__ */ (0, z.jsx)(IS, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, z.jsx)(YNe, {
+ children: /* @__PURE__ */ (0, z.jsx)(oPe, {
tags: n.top_tags,
...e
})
}),
- /* @__PURE__ */ (0, z.jsx)(NS, {
+ /* @__PURE__ */ (0, z.jsx)(IS, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, z.jsx)(XNe, { rows: n.recent })
+ children: /* @__PURE__ */ (0, z.jsx)(sPe, { rows: n.recent })
}),
- /* @__PURE__ */ (0, z.jsx)(NS, {
+ /* @__PURE__ */ (0, z.jsx)(IS, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, z.jsx)(ZNe, {
+ children: /* @__PURE__ */ (0, z.jsx)(cPe, {
sources: n.tag_source,
videos: n.attribution.videos
})
@@ -69371,7 +69644,7 @@ function QNe(e) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function $Ne(e, t) {
+function uPe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
@@ -69395,13 +69668,13 @@ function F8(e, t) {
function I8(e) {
return e.value;
}
-function ePe(e) {
+function dPe(e) {
return e.index;
}
-function tPe(e) {
+function fPe(e) {
return e.nodes;
}
-function nPe(e) {
+function pPe(e) {
return e.links;
}
function L8(e, t) {
@@ -69416,8 +69689,8 @@ function R8({ nodes: e }) {
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function rPe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = ePe, c = $Ne, l, u, d = tPe, f = nPe, p = 6;
+function mPe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = dPe, c = uPe, l, u, d = fPe, f = pPe, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
@@ -69603,7 +69876,7 @@ function rPe() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var z8 = Math.PI, B8 = 2 * z8, V8 = 1e-6, iPe = B8 - V8;
+var z8 = Math.PI, B8 = 2 * z8, V8 = 1e-6, hPe = B8 - V8;
function H8() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
@@ -69644,7 +69917,7 @@ H8.prototype = U8.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) > V8 || Math.abs(this._y1 - l) > V8) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % B8 + B8), d > iPe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > V8 && (this._ += "A" + n + "," + n + ",0," + +(d >= z8) + "," + 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) > V8 || Math.abs(this._y1 - l) > V8) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % B8 + B8), d > hPe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > V8 && (this._ += "A" + n + "," + n + ",0," + +(d >= z8) + "," + 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";
@@ -69662,27 +69935,27 @@ function W8(e) {
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function aPe(e) {
+function gPe(e) {
return e[0];
}
-function oPe(e) {
+function _Pe(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var sPe = Array.prototype.slice;
+var vPe = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function cPe(e) {
+function yPe(e) {
return e.source;
}
-function lPe(e) {
+function bPe(e) {
return e.target;
}
-function uPe(e) {
- var t = cPe, n = lPe, r = aPe, i = oPe, a = null;
+function xPe(e) {
+ var t = yPe, n = bPe, r = gPe, i = _Pe, a = null;
function o() {
- var o, s = sPe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ var o, s = vPe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
if (a ||= o = U8(), 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) {
@@ -69697,48 +69970,48 @@ function uPe(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function dPe(e, t, n, r, i) {
+function SPe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function fPe() {
- return uPe(dPe);
+function CPe() {
+ return xPe(SPe);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function pPe(e) {
+function wPe(e) {
return [e.source.x1, e.y0];
}
-function mPe(e) {
+function TPe(e) {
return [e.target.x0, e.y1];
}
-function hPe() {
- return fPe().source(pPe).target(mPe);
+function EPe() {
+ return CPe().source(wPe).target(TPe);
}
//#endregion
//#region src/react/taste/taste.ts
-var gPe = "/api/taste", G8 = "/api/taste/refresh", _Pe = "/api/taste/import", vPe = "/api/taste/source", K8 = (e) => ["taste", e], yPe = ["taste", "refresh"], bPe = [
+var DPe = "/api/taste", G8 = "/api/taste/refresh", OPe = "/api/taste/import", kPe = "/api/taste/source", K8 = (e) => ["taste", e], APe = ["taste", "refresh"], jPe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], q8 = (e, t) => wi(`${gPe}?window=${e}`, t), xPe = (e) => wi(G8, e);
-async function SPe(e, t) {
+], q8 = (e, t) => wi(`${DPe}?window=${e}`, t), MPe = (e) => wi(G8, e);
+async function NPe(e, t) {
await q.fetchQuery({
queryKey: K8(e),
queryFn: () => q8(e, t)
});
}
-var CPe = (e) => W(G8, {
+var PPe = (e) => W(G8, {
window: e,
background: !0
-}), wPe = (e, t) => W(vPe, {
+}), FPe = (e, t) => W(kPe, {
operation: "remove",
source_key: e,
window: t
});
-async function TPe(e) {
- let t = await fetch(_Pe, {
+async function IPe(e) {
+ let t = await fetch(OPe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -69756,21 +70029,21 @@ async function TPe(e) {
}
return n;
}
-var EPe = 1e4, J8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", DPe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, OPe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function kPe(e) {
+var LPe = 1e4, J8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", RPe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, zPe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function BPe(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 APe(e) {
- let t = e.map(OPe), n = Math.max(1, ...t);
+function VPe(e) {
+ let t = e.map(zPe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
var Y8 = (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 jPe(e) {
+function HPe(e) {
let t = Y8(e, 6);
return t.length < 3 ? [] : t;
}
@@ -69781,10 +70054,10 @@ var X8 = {
source: 145,
target: 545
};
-function MPe(e = []) {
+function UPe(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 = rPe().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 = mPe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
nodes: [...n.map((e) => ({
id: `source:${e}`,
name: e,
@@ -69799,7 +70072,7 @@ function MPe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), a = t.reduce((e, t) => e + t.value, 0), o = hPe();
+ }), a = t.reduce((e, t) => e + t.value, 0), o = EPe();
return {
nodes: i.nodes.map((e) => ({
id: e.id,
@@ -69829,7 +70102,7 @@ function MPe(e = []) {
total: a
};
}
-var NPe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, Q8 = R.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
+var WPe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, Q8 = R.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
let c = R.useId().replace(/:/g, ""), l = `url(#${r}-colors-${String(n)})`;
if (e === void 0 || t === void 0) return null;
switch (o) {
@@ -69952,14 +70225,14 @@ var t5 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
t5.displayName = "ColoredBorderDot";
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
-var PPe = 1, FPe = .3, IPe = 6, n5 = 1500, r5 = "value", i5 = (0, R.createContext)(null);
+var GPe = 1, KPe = .3, qPe = 6, n5 = 1500, r5 = "value", i5 = (0, R.createContext)(null);
function a5() {
let e = (0, R.use)(i5);
if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");
return e;
}
function o5({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {
- let u = (0, R.useId)().replace(/:/g, ""), [d, f] = (0, R.useState)(o), p = YPe(c, l), m = (0, R.useCallback)((e) => {
+ let u = (0, R.useId)().replace(/:/g, ""), [d, f] = (0, R.useState)(o), p = oFe(c, l), m = (0, R.useCallback)((e) => {
f(e), s?.(e);
}, [s]), h = (0, R.useMemo)(() => ({
config: e,
@@ -69977,32 +70250,32 @@ function o5({ config: e, data: t, children: n, className: r, chartProps: i, back
children: /* @__PURE__ */ (0, z.jsxs)(F6, {
className: r,
config: e,
- children: [/* @__PURE__ */ (0, z.jsx)(I6, { isLoading: c }), /* @__PURE__ */ (0, z.jsxs)(bMe, {
+ children: [/* @__PURE__ */ (0, z.jsx)(I6, { isLoading: c }), /* @__PURE__ */ (0, z.jsxs)(jMe, {
id: u,
data: c ? p : t,
...i,
children: [
a && /* @__PURE__ */ (0, z.jsx)(q6, { variant: a }),
n,
- c && /* @__PURE__ */ (0, z.jsx)(XPe, {})
+ c && /* @__PURE__ */ (0, z.jsx)(sFe, {})
]
})]
})
});
}
-function LPe({ dataKey: e, variant: t = "filled", fillOpacity: n = FPe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
+function JPe({ dataKey: e, variant: t = "filled", fillOpacity: n = KPe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = a5(), d = (0, R.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 } = UPe(a, d, e, p.dot);
+ }, m = t === "filled", { dot: h, activeDot: g } = eFe(a, d, e, p.dot);
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(b2, {
dataKey: e,
stroke: `url(#${d}-radar-stroke-${e})`,
strokeOpacity: p.stroke,
- strokeWidth: PPe,
+ strokeWidth: GPe,
fill: m ? `url(#${d}-radar-fill-${e})` : "none",
fillOpacity: m ? n * p.fill : 0,
dot: h,
@@ -70015,29 +70288,29 @@ function LPe({ dataKey: e, variant: t = "filled", fillOpacity: n = FPe, isGlowin
},
...o
}), /* @__PURE__ */ (0, z.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, z.jsx)(WPe, {
+ /* @__PURE__ */ (0, z.jsx)(tFe, {
id: d,
dataKey: e,
config: s
}),
- /* @__PURE__ */ (0, z.jsx)(GPe, {
+ /* @__PURE__ */ (0, z.jsx)(nFe, {
id: d,
dataKey: e,
config: s
}),
- m && /* @__PURE__ */ (0, z.jsx)(KPe, {
+ m && /* @__PURE__ */ (0, z.jsx)(rFe, {
id: d,
dataKey: e,
config: s
}),
- r && /* @__PURE__ */ (0, z.jsx)(qPe, {
+ r && /* @__PURE__ */ (0, z.jsx)(iFe, {
id: d,
dataKey: e
})
] })] });
}
var s5 = () => null, c5 = () => null;
-function RPe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
+function YPe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
return /* @__PURE__ */ (0, z.jsx)(p0, {
gridType: e,
stroke: t,
@@ -70046,7 +70319,7 @@ function RPe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacit
...i
});
}
-function zPe({ tick: e = {
+function XPe({ tick: e = {
fill: "currentColor",
fontSize: 12
}, tickLine: t = !1, ...n }) {
@@ -70057,7 +70330,7 @@ function zPe({ tick: e = {
...n
});
}
-function BPe({ tick: e = {
+function ZPe({ tick: e = {
fill: "currentColor",
fontSize: 10
}, tickLine: t = !1, axisLine: n = !1, ...r }) {
@@ -70069,7 +70342,7 @@ function BPe({ tick: e = {
...r
});
}
-function VPe({ variant: e, roundness: t, defaultIndex: n }) {
+function QPe({ variant: e, roundness: t, defaultIndex: n }) {
let { isLoading: r, selectedDataKey: i } = a5();
return r ? null : /* @__PURE__ */ (0, z.jsx)(V6, {
defaultIndex: n,
@@ -70081,7 +70354,7 @@ function VPe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function HPe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+function $Pe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
let { isLoading: i, selectedDataKey: a, selectDataKey: o } = a5();
return i ? null : /* @__PURE__ */ (0, z.jsx)(U6, {
verticalAlign: n,
@@ -70094,7 +70367,7 @@ function HPe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-var UPe = (e, t, n, r) => {
+var eFe = (e, t, n, r) => {
let i = !1, a = !1;
return R.Children.forEach(e, (e) => {
if ((0, R.isValidElement)(e)) {
@@ -70136,7 +70409,7 @@ var UPe = (e, t, n, r) => {
stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,
stopOpacity: n?.[i]
}, a);
-}) }), WPe = ({ id: e, dataKey: t, config: n }) => {
+}) }), tFe = ({ id: e, dataKey: t, config: n }) => {
let r = z6(n[t] ?? {});
return /* @__PURE__ */ (0, z.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
@@ -70149,7 +70422,7 @@ var UPe = (e, t, n, r) => {
colorsCount: r
})
});
-}, GPe = ({ id: e, dataKey: t, config: n }) => {
+}, nFe = ({ id: e, dataKey: t, config: n }) => {
let r = z6(n[t] ?? {});
return /* @__PURE__ */ (0, z.jsx)("linearGradient", {
id: `${e}-radar-stroke-${t}`,
@@ -70162,7 +70435,7 @@ var UPe = (e, t, n, r) => {
colorsCount: r
})
});
-}, KPe = ({ id: e, dataKey: t, config: n }) => {
+}, rFe = ({ id: e, dataKey: t, config: n }) => {
let r = z6(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
return /* @__PURE__ */ (0, z.jsx)("radialGradient", {
id: `${e}-radar-fill-${t}`,
@@ -70175,7 +70448,7 @@ var UPe = (e, t, n, r) => {
opacities: i
})
});
-}, qPe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)("filter", {
+}, iFe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)("filter", {
id: `${e}-radar-glow-${t}`,
x: "-50%",
y: "-50%",
@@ -70195,7 +70468,7 @@ var UPe = (e, t, n, r) => {
}),
/* @__PURE__ */ (0, z.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, z.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, z.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), JPe = (e) => [
+}), aFe = (e) => [
"A",
"B",
"C",
@@ -70206,7 +70479,7 @@ var UPe = (e, t, n, r) => {
skill: e,
[r5]: 30 + Math.random() * 70
}));
-function YPe(e, t = IPe) {
+function oFe(e, t = qPe) {
let [n, r] = (0, R.useState)(0);
return (0, R.useEffect)(() => {
if (!e) return;
@@ -70214,9 +70487,9 @@ function YPe(e, t = IPe) {
r((e) => e + 1);
}, n5);
return () => clearInterval(t);
- }, [e]), (0, R.useMemo)(() => JPe(t), [t, n]);
+ }, [e]), (0, R.useMemo)(() => aFe(t), [t, n]);
}
-var XPe = () => /* @__PURE__ */ (0, z.jsx)(b2, {
+var sFe = () => /* @__PURE__ */ (0, z.jsx)(b2, {
dataKey: r5,
stroke: "currentColor",
strokeOpacity: .3,
@@ -70228,17 +70501,17 @@ var XPe = () => /* @__PURE__ */ (0, z.jsx)(b2, {
animationDuration: n5,
animationEasing: "ease-in-out"
});
-o5.Radar = LPe, o5.Dot = s5, o5.ActiveDot = c5, o5.PolarGrid = RPe, o5.PolarAngleAxis = zPe, o5.PolarRadiusAxis = BPe, o5.Tooltip = VPe, o5.Legend = HPe;
+o5.Radar = JPe, o5.Dot = s5, o5.ActiveDot = c5, o5.PolarGrid = YPe, o5.PolarAngleAxis = XPe, o5.PolarRadiusAxis = ZPe, o5.Tooltip = QPe, o5.Legend = $Pe;
//#endregion
//#region src/react/taste/charts.tsx
-var ZPe = [
+var cFe = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], QPe = [
+], lFe = [
"fill-chart-1",
"fill-chart-2",
"fill-chart-3",
@@ -70248,7 +70521,7 @@ var ZPe = [
], u5 = { value: {
label: "标签命中",
colors: n8(t8[3])
-} }, $Pe = [
+} }, uFe = [
"min-h-24",
"min-h-24",
"min-h-24",
@@ -70258,20 +70531,20 @@ var ZPe = [
"min-h-52",
"min-h-60",
"min-h-64"
-], eFe = 26, tFe = { radius: u5.value }, nFe = (e, t) => Math.sqrt(e / t);
-function rFe({ rows: e, label: t }) {
- let n = jPe(e);
+], dFe = 26, fFe = { radius: u5.value }, pFe = (e, t) => Math.sqrt(e / t);
+function mFe({ rows: e, label: t }) {
+ let n = HPe(e);
if (!n.length) return null;
let r = n[0].value, i = n.map((e) => ({
...e,
- radius: nFe(e.value, r)
+ radius: pFe(e.value, r)
}));
return /* @__PURE__ */ (0, z.jsx)("div", {
role: "img",
"aria-label": `${t}:${i.map((e) => e.name).join(",")}`,
children: /* @__PURE__ */ (0, z.jsxs)(o5, {
data: i,
- config: tFe,
+ config: fFe,
chartProps: { outerRadius: "58%" },
className: "aspect-auto h-70 text-text-secondary",
children: [
@@ -70288,17 +70561,17 @@ function rFe({ rows: e, label: t }) {
})
});
}
-function iFe({ rows: e, label: t }) {
+function hFe({ rows: e, label: t }) {
let n = Y8(e, 8);
return n.length ? /* @__PURE__ */ (0, z.jsx)("section", {
"aria-label": t,
- className: `flex grow flex-col ${$Pe[n.length]}`,
+ className: `flex grow flex-col ${uFe[n.length]}`,
children: /* @__PURE__ */ (0, z.jsxs)(Z6, {
data: n,
config: u5,
layout: "horizontal",
barRadius: 4,
- chartProps: { maxBarSize: eFe },
+ chartProps: { maxBarSize: dFe },
className: "aspect-auto text-text-secondary",
children: [
/* @__PURE__ */ (0, z.jsx)(Z6.YAxis, {
@@ -70322,8 +70595,8 @@ function iFe({ rows: e, label: t }) {
})
}) : null;
}
-function aFe({ flows: e }) {
- let [t, n] = (0, R.useState)(null), r = MPe(e);
+function gFe({ flows: e }) {
+ let [t, n] = (0, R.useState)(null), r = UPe(e);
if (!r) return null;
let i = t?.node ?? null, a = (e, n) => t ? i === null ? t.label === n : e.source === i || e.target === i : !0;
return /* @__PURE__ */ (0, z.jsxs)("section", {
@@ -70351,7 +70624,7 @@ function aFe({ flows: e }) {
"aria-label": `${e.label}:${e.value} 条线索`,
fillOpacity: 0,
strokeOpacity: a(e, e.label) ? .55 : .08,
- className: `outline-none transition-opacity ${ZPe[e.color]}`,
+ className: `outline-none transition-opacity ${cFe[e.color]}`,
onPointerEnter: () => n({
value: e.value,
label: e.label,
@@ -70385,14 +70658,14 @@ function aFe({ flows: e }) {
width: 10,
height: e.height,
rx: 5,
- className: e.side === "source" ? QPe[e.color] : "fill-text-secondary"
+ className: e.side === "source" ? lFe[e.color] : "fill-text-secondary"
}), /* @__PURE__ */ (0, z.jsxs)("text", {
x: Z8[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: [NPe(e.name), /* @__PURE__ */ (0, z.jsx)("tspan", {
+ children: [WPe(e.name), /* @__PURE__ */ (0, z.jsx)("tspan", {
x: Z8[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
@@ -70410,11 +70683,11 @@ function aFe({ flows: e }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var oFe = 10, d5 = gi(cO, lO, "text-body-2-medium"), f5 = `${Mi()} flex flex-col gap-4`, p5 = "rounded-xl bg-background-primary-default p-3", sFe = "读取运行 Peach 的这台电脑上的浏览记录", cFe = "导入或读取浏览记录后,这里会列出已采集设备。", lFe = "馆藏里暂时没有对得上浏览信号的标签。", uFe = "采集浏览记录后,这里会显示聚合后的口味证据。", dFe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", fFe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", pFe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", mFe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", hFe = "这个数据源将不再用于口味分析。原始导出文件保留。", m5 = "peach-taste-guide-dismissed";
+var _Fe = 10, d5 = gi(dO, fO, "text-body-2-medium"), f5 = `${Mi()} flex flex-col gap-4`, p5 = "rounded-xl bg-background-primary-default p-3", vFe = "读取运行 Peach 的这台电脑上的浏览记录", yFe = "导入或读取浏览记录后,这里会列出已采集设备。", bFe = "馆藏里暂时没有对得上浏览信号的标签。", xFe = "采集浏览记录后,这里会显示聚合后的口味证据。", SFe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", CFe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", wFe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", TFe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", EFe = "这个数据源将不再用于口味分析。原始导出文件保留。", m5 = "peach-taste-guide-dismissed";
function h5({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
- className: xl(),
- children: /* @__PURE__ */ (0, z.jsx)(Dl, {
+ className: bl(),
+ children: /* @__PURE__ */ (0, z.jsx)(El, {
label: t,
icon: e,
accent: i,
@@ -70437,22 +70710,22 @@ function g5({ name: e, domain: t }) {
})]
});
}
-function gFe({ html: e }) {
+function DFe({ html: e }) {
return /* @__PURE__ */ (0, z.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 ${TN}`,
+ 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 ${IN}`,
dangerouslySetInnerHTML: { __html: e }
});
}
-function _Fe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
+function OFe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
if (!e.length) return /* @__PURE__ */ (0, z.jsx)(Pi, {
shell: "plain",
icon: Ze,
title: "暂无足够证据",
children: r
});
- let o = APe(e);
+ let o = VPe(e);
return /* @__PURE__ */ (0, z.jsx)(v8, {
- previewCount: oFe,
+ previewCount: _Fe,
className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",
children: e.map((e, r) => {
let s = !!t && !!e.peach_items, c = String(e.source_domain || ""), l = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
@@ -70479,7 +70752,7 @@ function _Fe({ 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, z.jsx)(gFe, { html: a(e.name, e.entity_id ? {
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, z.jsx)(DFe, { html: a(e.name, e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
avatar_focus: e.avatar_focus
@@ -70491,7 +70764,7 @@ function _Fe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
children: e.name
}), /* @__PURE__ */ (0, z.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: kPe(e)
+ children: BPe(e)
})]
}),
s ? /* @__PURE__ */ (0, z.jsx)(Ee, {
@@ -70515,23 +70788,23 @@ function _Fe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
});
}
function _5({ label: e, panels: t, onSignal: n, avatarInner: r }) {
- return /* @__PURE__ */ (0, z.jsxs)(OS, {
+ return /* @__PURE__ */ (0, z.jsxs)(jS, {
className: `${Mi({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, z.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, z.jsx)(sA, {
+ children: /* @__PURE__ */ (0, z.jsx)(nA, {
"aria-label": e,
- className: lA,
- children: t.map((e) => /* @__PURE__ */ (0, z.jsx)(MS, {
+ className: iA,
+ children: t.map((e) => /* @__PURE__ */ (0, z.jsx)(FS, {
id: e.id,
- className: uA,
+ className: aA,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(NS, {
+ }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(IS, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, z.jsx)(_Fe, {
+ children: /* @__PURE__ */ (0, z.jsx)(OFe, {
...e.props,
onSignal: n,
avatarInner: r
@@ -70539,7 +70812,7 @@ function _5({ label: e, panels: t, onSignal: n, avatarInner: r }) {
}, e.id))]
});
}
-function vFe({ data: e, onSignal: t, navigate: n }) {
+function kFe({ data: e, onSignal: t, navigate: n }) {
let r = e.analysis;
if (!r?.headline) return null;
let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({
@@ -70614,12 +70887,12 @@ function vFe({ data: e, onSignal: t, navigate: n }) {
shell: "plain",
icon: Ze,
title: "还没有可探索的入口",
- children: lFe
+ children: bFe
})
]
});
}
-function yFe({ onboarding: e, done: t }) {
+function AFe({ onboarding: e, done: t }) {
let [n, r] = (0, R.useState)(() => {
try {
return localStorage.getItem(m5) === "1";
@@ -70632,17 +70905,17 @@ function yFe({ onboarding: e, done: t }) {
padding: "none",
className: "p-4"
}),
- children: /* @__PURE__ */ (0, z.jsxs)(MO, {
+ children: /* @__PURE__ */ (0, z.jsxs)(FO, {
summary: "浏览器历史记录导入指南",
defaultOpen: e,
children: [
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: fFe
+ children: CFe
}),
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: pFe
+ children: wFe
}),
/* @__PURE__ */ (0, z.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
@@ -70672,7 +70945,7 @@ function yFe({ onboarding: e, done: t }) {
}),
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: mFe
+ children: TFe
}),
/* @__PURE__ */ (0, z.jsx)("span", {
className: "self-start",
@@ -70692,7 +70965,7 @@ function yFe({ onboarding: e, done: t }) {
})
});
}
-function bFe({ busy: e, onRefresh: t, onImport: n }) {
+function jFe({ busy: e, onRefresh: t, onImport: n }) {
let r = (0, R.useRef)(null), [i, a] = (0, R.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -70702,7 +70975,7 @@ function bFe({ busy: e, onRefresh: t, onImport: n }) {
"data-variant": "primary",
children: [/* @__PURE__ */ (0, z.jsx)(H, {
leadingIcon: Me,
- title: sFe,
+ title: vFe,
onClick: t,
...K(e),
children: "读取浏览器历史"
@@ -70718,14 +70991,14 @@ function bFe({ busy: e, onRefresh: t, onImport: n }) {
e || a(!0);
}
})]
- }), /* @__PURE__ */ (0, z.jsx)(hy, {
+ }), /* @__PURE__ */ (0, z.jsx)(gy, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: sO,
- children: /* @__PURE__ */ (0, z.jsxs)(iO, {
+ className: uO,
+ children: /* @__PURE__ */ (0, z.jsxs)(sO, {
"aria-label": "更多取得浏览记录的方式",
className: "flex w-52 flex-col gap-1 outline-none",
children: [/* @__PURE__ */ (0, z.jsxs)("button", {
@@ -70748,9 +71021,9 @@ function bFe({ busy: e, onRefresh: t, onImport: n }) {
})
})] });
}
-function xFe({ sources: e, window: t, toast: n }) {
+function MFe({ sources: e, window: t, toast: n }) {
let r = Pn({
- mutationFn: (e) => wPe(e, t),
+ mutationFn: (e) => FPe(e, t),
onSuccess: (e) => {
q.setQueryData(K8(t), e.dashboard), n("已移除口味数据源");
}
@@ -70802,7 +71075,7 @@ function xFe({ sources: e, window: t, toast: n }) {
onClick: () => {
r.isPending || y({
title: "移除口味数据源",
- body: hFe,
+ body: EFe,
confirmLabel: "移除口味数据源",
onConfirm: () => r.mutateAsync(e.source_key)
});
@@ -70814,26 +71087,26 @@ function xFe({ sources: e, window: t, toast: n }) {
shell: "plain",
icon: Ne,
title: "还没有数据源",
- children: cFe
+ children: yFe
})
]
});
}
-function SFe(e) {
+function NFe(e) {
let { onSignal: t, navigate: n, toast: r, avatarInner: i, onboarding: a } = e, [o, c] = (0, R.useState)("all"), [l, u] = (0, R.useState)("browser"), d = (0, R.useRef)(null), f = Nn({
queryKey: K8(o),
queryFn: ({ signal: e }) => q8(o, e),
placeholderData: jt
- }), { job: p, running: m, outcome: h, start: g } = VO({
- queryKey: yPe,
- queryFn: ({ signal: e }) => xPe(e),
- start: () => CPe(o),
- idlePollMs: EPe,
+ }), { job: p, running: m, outcome: h, start: g } = WO({
+ queryKey: APe,
+ queryFn: ({ signal: e }) => MPe(e),
+ start: () => PPe(o),
+ idlePollMs: LPe,
onFinish: (e) => {
e.status !== "failed" && (q.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));
}
}), _ = Pn({
- mutationFn: (e) => TPe(e),
+ mutationFn: (e) => IPe(e),
onSuccess: (e) => {
q.setQueryData(K8("all"), e.dashboard), c("all"), r("已导入口味数据");
}
@@ -70850,40 +71123,40 @@ function SFe(e) {
}) });
let x = b.summary || {}, S = b.coverage || {}, C = b.rankings || {}, w = b.storage || {}, T = C.browser_categories || [], E = b.gaps || [], D = S.tagged || 0, O = S.identified || 0, k = g.error ? U(g.error) : _.error ? U(_.error) : h?.status === "failed" ? h.error || "读取未取得" : "";
return /* @__PURE__ */ (0, z.jsxs)(Ii, { children: [
- /* @__PURE__ */ (0, z.jsxs)(OS, {
+ /* @__PURE__ */ (0, z.jsxs)(jS, {
selectedKey: l,
onSelectionChange: (e) => u(String(e)),
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, z.jsxs)(sA, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(nA, {
"aria-label": "口味证据来源",
- className: lA,
- children: [/* @__PURE__ */ (0, z.jsx)(MS, {
+ className: iA,
+ children: [/* @__PURE__ */ (0, z.jsx)(FS, {
id: "browser",
- className: uA,
+ className: aA,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, z.jsx)(MS, {
+ }), /* @__PURE__ */ (0, z.jsx)(FS, {
id: "peach",
- className: uA,
+ className: aA,
children: "Peach 内部"
})]
}), /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(LO, {
+ /* @__PURE__ */ (0, z.jsx)(BO, {
"aria-label": "分析范围",
selectedKey: o,
onSelectionChange: (e) => {
e !== null && c(String(e));
},
- children: bPe.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(RO, {
+ children: jPe.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(VO, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)(bFe, {
+ /* @__PURE__ */ (0, z.jsx)(jFe, {
busy: m || g.isPending || _.isPending,
onRefresh: y,
onImport: () => d.current?.click()
@@ -70899,7 +71172,7 @@ function SFe(e) {
]
})]
}),
- /* @__PURE__ */ (0, z.jsx)(yFe, {
+ /* @__PURE__ */ (0, z.jsx)(AFe, {
onboarding: a,
done: !!(x.history_sources || b.updated_at)
}),
@@ -70907,24 +71180,24 @@ function SFe(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- m ? /* @__PURE__ */ (0, z.jsx)(yO, {
+ m ? /* @__PURE__ */ (0, z.jsx)(SO, {
label: p?.message || "正在读取浏览记录并更新口味分析",
value: p?.checked,
total: p?.total
}) : null,
- _.isPending ? /* @__PURE__ */ (0, z.jsx)(yO, { label: "正在导入历史文件" }) : null,
+ _.isPending ? /* @__PURE__ */ (0, z.jsx)(SO, { label: "正在导入历史文件" }) : null,
k ? /* @__PURE__ */ (0, z.jsx)(G, {
tone: "error",
children: k
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsxs)(NS, {
+ /* @__PURE__ */ (0, z.jsxs)(IS, {
id: "browser",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, z.jsxs)("div", {
- className: Sl,
+ className: xl,
children: [
/* @__PURE__ */ (0, z.jsx)(h5, {
accent: 0,
@@ -70965,7 +71238,7 @@ function SFe(e) {
className: "text-caption-1-regular text-text-secondary",
children: "浏览器画像"
}),
- /* @__PURE__ */ (0, z.jsx)(rFe, {
+ /* @__PURE__ */ (0, z.jsx)(mFe, {
rows: T,
label: "主要口味维度"
}),
@@ -70976,14 +71249,14 @@ function SFe(e) {
]
}), /* @__PURE__ */ (0, z.jsx)("div", {
className: "flex min-w-0 grow flex-col",
- children: T.length ? /* @__PURE__ */ (0, z.jsx)(iFe, {
+ children: T.length ? /* @__PURE__ */ (0, z.jsx)(hFe, {
rows: T,
label: "口味维度排名"
}) : /* @__PURE__ */ (0, z.jsx)(Pi, {
shell: "plain",
icon: Ze,
title: "暂无口味维度",
- children: uFe
+ children: xFe
})
})]
}),
@@ -70999,7 +71272,7 @@ function SFe(e) {
tone: 4,
empty: "还没有可用于分析的口味网站访问记录。"
}),
- /* @__PURE__ */ (0, z.jsx)(aFe, { flows: b.creator_flows }),
+ /* @__PURE__ */ (0, z.jsx)(gFe, { flows: b.creator_flows }),
/* @__PURE__ */ (0, z.jsx)(_5, {
label: "浏览器口味维度",
onSignal: t,
@@ -71042,26 +71315,26 @@ function SFe(e) {
rows: E,
kind: "",
visual: "none",
- empty: dFe
+ empty: SFe
}
}
]
})
]
}),
- /* @__PURE__ */ (0, z.jsxs)(NS, {
+ /* @__PURE__ */ (0, z.jsxs)(IS, {
id: "peach",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, z.jsxs)("div", {
- className: Sl,
+ className: xl,
children: [
/* @__PURE__ */ (0, z.jsx)(h5, {
accent: 0,
icon: Le,
term: "Peach 看过",
figure: Number(x.peach_items || 0).toLocaleString(),
- detail: DPe(x.peach_seconds || 0)
+ detail: RPe(x.peach_seconds || 0)
}),
/* @__PURE__ */ (0, z.jsx)(h5, {
accent: 1,
@@ -71156,12 +71429,12 @@ function SFe(e) {
})
]
}),
- /* @__PURE__ */ (0, z.jsx)(vFe, {
+ /* @__PURE__ */ (0, z.jsx)(kFe, {
data: b,
onSignal: t,
navigate: n
}),
- /* @__PURE__ */ (0, z.jsx)(xFe, {
+ /* @__PURE__ */ (0, z.jsx)(MFe, {
sources: b.sources || [],
window: o,
toast: r
@@ -71190,14 +71463,14 @@ function v5({ term: e, value: t, rest: n }) {
}
//#endregion
//#region src/board-skeleton.ts
-var y5 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, CFe = () => `${y5("80%")}${y5("48%")}`, wFe = (e, t) => e.repeat(t);
-function TFe() {
- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${y5("85%")}${y5("65%")}${wFe(CFe(), 4)}</div></aside></div>`;
+var y5 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, PFe = () => `${y5("80%")}${y5("48%")}`, FFe = (e, t) => e.repeat(t);
+function IFe() {
+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${y5("85%")}${y5("65%")}${FFe(PFe(), 4)}</div></aside></div>`;
}
//#endregion
//#region src/player/host.ts
var b5 = null;
-function EFe(e) {
+function LFe(e) {
b5 = e;
}
function x5() {
@@ -71207,10 +71480,10 @@ function x5() {
//#endregion
//#region src/player/menu.ts
var S5 = null;
-function DFe(e) {
+function RFe(e) {
S5 = e;
}
-function OFe() {
+function zFe() {
let e = document.getElementById("playerMenu");
return e || (e = document.createElement("div"), e.className = "popmenu", e.setAttribute("data-player-context-menu", ""), e.id = "playerMenu", e.setAttribute("role", "menu"), e.setAttribute("aria-label", "播放器菜单"), e.hidden = !0, document.body.append(e)), e;
}
@@ -71221,7 +71494,7 @@ function T5() {
e.innerHTML = "";
}), C5 &&= (C5(), null);
}
-async function kFe(e) {
+async function BFe(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -71234,12 +71507,12 @@ async function kFe(e) {
return t.remove(), n;
}
}
-function AFe(e) {
+function VFe(e) {
let t = !!S5?.inMiniplayer(e), n = e.peachItem, r = S5?.kind(e) ?? "item", i = (t) => {
let i = new URL(r === "follow" ? `/follow/item/${n?.id}` : `/item/${n?.id}`, location.origin);
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- kFe(i(e)).then((e) => x5().toast(e ? t : "复制失败,请手动复制地址栏", {
+ BFe(i(e)).then((e) => x5().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -71278,12 +71551,12 @@ function AFe(e) {
run: () => s.click()
}), o;
}
-function jFe(e, t, n) {
- let r = OFe();
+function HFe(e, t, n) {
+ let r = zFe();
T5();
let a = x5().stage();
a instanceof HTMLDialogElement && a.open && a.append(r), r.setAttribute("popover", "manual");
- let o = AFe(e);
+ let o = VFe(e);
r.innerHTML = o.map((e, t) => {
let n = e.checked !== void 0;
return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${w5(l(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${i(e.label)}</span>${n ? w5(l("check"), "data-player-menu-check") : ""}</button>`;
@@ -71319,9 +71592,9 @@ function jFe(e, t, n) {
document.removeEventListener("pointerdown", c, !0), document.removeEventListener("keydown", u, !0), window.removeEventListener("scroll", d, !0);
}, s[0]?.focus();
}
-function MFe(e) {
+function UFe(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), jFe(e, t.clientX, t.clientY));
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), HFe(e, t.clientX, t.clientY));
}), e.on("dispose", T5);
}
//#endregion
@@ -71342,7 +71615,7 @@ function A5(e) {
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t && e.buffered.end(n) >= t) return Math.max(0, e.buffered.end(n) - t);
return 0;
}
-function NFe(e) {
+function WFe(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t + .25 && e.buffered.end(n) >= t) return e.buffered.end(n);
return e.buffered.length ? e.buffered.end(e.buffered.length - 1) : 0;
@@ -71352,7 +71625,7 @@ function M5(e, t) {
let n = Number(e) || 0, r = p(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function PFe(e) {
+function GFe(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -71367,7 +71640,7 @@ function PFe(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = NFe(e), s = e.currentTime || 0;
+ let a = performance.now(), o = WFe(e), s = e.currentTime || 0;
if (n) {
let e = (a - n.at) / 1e3, i = Math.abs(s - n.ct) > e * 4 + 1, c = o - n.frontier;
!i && c > 0 && (r += c), e * 1e3 > j5 * 2 && (t.length = 0);
@@ -71398,7 +71671,7 @@ function I5(e, t, n, r) {
}).join("");
return `<span data-player-stats-plot="${t}" role="img" aria-label="${i(r)}">${s}</span>`;
}
-function FFe() {
+function KFe() {
return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${l("chart")}</button>
<div data-player-net="" id="playerNet" role="status" aria-live="polite" hidden></div>
<div data-player-stats="" id="playerStats" role="status" hidden></div>`;
@@ -71407,7 +71680,7 @@ function L5(e, t = "") {
let n = t ? encodeURIComponent(t) : "";
return performance.getEntriesByType("resource").filter((t) => t.name.includes("/stream") && (t.name.includes(`/stream?id=${e}`) || t.name.includes(`/stream/hls/${e}/`)) && (!n || t.name.includes(`session=${n}`)));
}
-function IFe(e, t = "") {
+function qFe(e, t = "") {
let n = L5(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
return r > 0 && i > 0 ? r * 8 / i : 0;
}
@@ -71416,14 +71689,14 @@ function R5(e, t, n = "", r = null) {
try {
i = Number(e?.tech({ IWillNotUseThisInPlugins: !0 })?.vhs?.stats?.bandwidth) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : IFe(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : qFe(t, n);
}
function z5(e) {
if (!Number.isFinite(e) || e <= 0) return "加载中…";
let t = e / 8;
return t >= 1048576 ? `${(t / 1048576).toFixed(1)} MB/s` : `${Math.max(1, Math.round(t / 1024))} KB/s`;
}
-function LFe(e, t) {
+function JFe(e, t) {
return e > 0 ? z5(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : z5(0);
}
//#endregion
@@ -71439,7 +71712,7 @@ function B5(e, t, n = "") {
};
return o(), o;
}
-function RFe(e, t = !0) {
+function YFe(e, t = !0) {
let n = x5(), r = n.settings();
r.ambientMode = !!e, t && n.saveSettings(), n.stage()?.toggleAttribute("data-ambient", r.ambientMode), document.dispatchEvent(new CustomEvent("peachambientchange", { detail: { enabled: r.ambientMode } }));
}
@@ -71455,7 +71728,7 @@ function U5(e, t = !0) {
let i = n.stage();
i?.toggleAttribute("data-theater", r.theaterMode), H5(i?.querySelector("[data-player-theater]")), k5(D5());
}
-function zFe(e) {
+function XFe(e) {
let t = x5().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
@@ -71489,7 +71762,7 @@ function zFe(e) {
i = !0, o++, document.removeEventListener("peachambientchange", f), e.removeEventListener("play", d), e.removeEventListener("loadeddata", d), s();
};
}
-function BFe(e, t, n = 0, r = null) {
+function ZFe(e, t, n = 0, r = null) {
let a = e.getChild("controlBar")?.el();
if (!a || a.querySelector("[data-player-quality]")) return;
let o = document.createElement("div");
@@ -71564,7 +71837,7 @@ function BFe(e, t, n = 0, r = null) {
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${l("player-speed")}<span>播放速度</span><b>${r === 1 ? "正常" : `${r}×`}</b>${l("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${l("player-quality")}<span>清晰度</span><b>${i(n.label)}</b>${l("player-menu-next")}</button></div>`, t);
w(a, "[data-player-ambient]").onclick = () => {
- RFe(!x5().settings().ambientMode), T();
+ YFe(!x5().settings().ambientMode), T();
}, w(a, "[data-player-speed]").onclick = () => k(), w(a, "[data-player-quality-view]").onclick = () => A();
}, E = .05, D = [
1,
@@ -71622,11 +71895,11 @@ function BFe(e, t, n = 0, r = null) {
v() ? T() : _();
}), e.on("dispose", () => {
document.removeEventListener("pointerdown", j), document.removeEventListener(F5, x), S && clearTimeout(S);
- }), _(), VFe(e, o), HFe(e), (e) => {
+ }), _(), QFe(e, o), $Fe(e), (e) => {
p = e?.length ? e : null, v() ? T() : _();
};
}
-function VFe(e, t) {
+function QFe(e, t) {
let n = e.getChild("controlBar")?.el();
if (!n || n.querySelector("[data-player-theater]")) return;
let r = x5().settings().theaterMode, i = document.createElement("div");
@@ -71636,7 +71909,7 @@ function VFe(e, t) {
e.stopPropagation(), U5(!x5().settings().theaterMode);
};
}
-function HFe(e) {
+function $Fe(e) {
let t = e.getChild("controlBar")?.el();
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -71734,7 +72007,7 @@ function HFe(e) {
}, ie = new ResizeObserver(re);
ie.observe(e.el()), e.on("dispose", () => ie.disconnect()), ne(!1), re();
}
-function UFe(e, n, r = {}) {
+function eIe(e, n, r = {}) {
let i = e.getChild("controlBar")?.el()?.querySelector(".vjs-progress-control");
if (!i || i.querySelector("[data-player-seek-preview]")) return;
let o = r.thumbnail !== !1, s = document.createElement("div");
@@ -71767,7 +72040,7 @@ function UFe(e, n, r = {}) {
i.removeEventListener("pointermove", g), i.removeEventListener("pointerleave", _);
});
}
-function WFe(e, t) {
+function tIe(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => p(e.duration()) || p(t.duration) || 0, i = (t) => {
@@ -71814,11 +72087,11 @@ function WFe(e, t) {
} catch {}
});
}
-function GFe(e) {
+function nIe(e) {
let t = e.el().querySelector(".vjs-loading-spinner");
!t || t.querySelector(".vjs-peach-spinner-container") || (t.innerHTML = "<span class=\"vjs-peach-spinner-container\"><span class=\"vjs-peach-spinner-rotator\"><span class=\"vjs-peach-spinner-left\"><span class=\"vjs-peach-spinner-circle\"></span></span><span class=\"vjs-peach-spinner-right\"><span class=\"vjs-peach-spinner-circle\"></span></span></span></span>");
}
-function KFe(e, n) {
+function rIe(e, n) {
t(`/api/assets/${n}/subtitles`).then((t) => {
!e || e.isDisposed() || (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -71833,7 +72106,7 @@ function KFe(e, n) {
}
//#endregion
//#region src/player/stream.ts
-function qFe() {
+function iIe() {
return globalThis.crypto?.randomUUID?.() || `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
}
function W5(e, t) {
@@ -71842,14 +72115,14 @@ function W5(e, t) {
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function JFe(e) {
+function aIe(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function YFe(e, n) {
- let r = JFe(e);
+async function oIe(e, n) {
+ let r = aIe(e);
if (r) return r;
try {
let r = await t(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(n)}`);
@@ -71860,7 +72133,7 @@ async function YFe(e, n) {
} catch {}
return W5(e, n);
}
-function XFe(e) {
+function sIe(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -71874,16 +72147,16 @@ function K5() {
return G5;
}
function q5() {
- return G5 ||= qFe(), G5;
+ return G5 ||= iIe(), G5;
}
-var ZFe = (e) => W5(e, q5()), QFe = (e) => YFe(e, q5());
+var cIe = (e) => W5(e, q5()), lIe = (e) => oIe(e, q5());
function J5() {
let e = G5;
- e && (G5 = "", XFe(e));
+ e && (G5 = "", sIe(e));
}
//#endregion
//#region src/player/telemetry.ts
-function $Fe(e, n, r = {}) {
+function uIe(e, n, r = {}) {
if (!n) return;
let i = 0, a = 0, o = 0, s = null;
n.addEventListener("seeking", () => {
@@ -71931,7 +72204,7 @@ function $Fe(e, n, r = {}) {
d(), u(!1);
}, { once: !0 }), l();
}
-function eIe(e, n) {
+function dIe(e, n) {
let r = 0, i = 0, a = !1, o = null, s = (r) => {
let a = p(e.duration) || p(n.duration);
!i && !r || (t("/api/follow/activity", {
@@ -71980,7 +72253,7 @@ var Y5 = "/vendor/videojs/8.24.1/", X5 = (e) => new Promise((t, n) => {
i.remove(), n(/* @__PURE__ */ Error(`script unavailable: ${e}`));
}, { once: !0 }), r || (i.src = e, document.head.appendChild(i));
}), Z5 = () => globalThis.videojs, Q5 = null;
-function tIe() {
+function fIe() {
let e = Z5();
return e ? Promise.resolve(e) : (Q5 ??= X5(`${Y5}video.min.js`).then(() => X5(`${Y5}lang/zh-CN.js`)).then(() => {
let e = Z5();
@@ -71996,14 +72269,14 @@ var $5 = /* @__PURE__ */ new WeakMap(), e7 = null, t7 = null, n7 = null;
function r7() {
e7 &&= (clearInterval(e7), null), t7 &&= (clearInterval(t7), null), n7 &&= (clearTimeout(n7), null);
}
-async function nIe(e, t, n, r = {}) {
+async function pIe(e, t, n, r = {}) {
let o = D5();
if (o && !o.isDisposed()) return o;
let c = x5(), u = r.resume ?? null;
u?.autoplay && (n = !0);
- let d = () => r.source ? Promise.resolve(r.source) : QFe(e), f;
+ let d = () => r.source ? Promise.resolve(r.source) : lIe(e), f;
try {
- f = await tIe();
+ f = await fIe();
} catch {
return t.controls = !0, d().then((e) => {
t.src = e.src, n && t.play().catch(() => {});
@@ -72023,7 +72296,7 @@ async function nIe(e, t, n, r = {}) {
remainingTimeDisplay: !1
}
});
- O5(m), m.peachItem = e, MFe(m), m.on("loadedmetadata", () => {
+ O5(m), m.peachItem = e, UFe(m), m.on("loadedmetadata", () => {
let e = m.el()?.querySelector("video");
e?.videoWidth && e.videoHeight && m.el().style.setProperty("--peach-video-ratio", `${e.videoWidth}/${e.videoHeight}`);
});
@@ -72031,7 +72304,7 @@ async function nIe(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, _ = Number(r.size ?? e.size) || 0, v = PFe(M5(_, e.duration)), y = 0, b = !1, x = () => D5() === m && !m.isDisposed(), S = () => {
+ }, _ = Number(r.size ?? e.size) || 0, v = GFe(M5(_, e.duration)), y = 0, b = !1, x = () => D5() === m && !m.isDisposed(), S = () => {
if (!h || b || !x()) return;
let e = Number(m.duration());
(!Number.isFinite(e) || Math.abs(e - h) > Math.max(2, h * .001)) && (b = !0, m.duration(h), queueMicrotask(() => {
@@ -72094,7 +72367,7 @@ async function nIe(e, t, n, r = {}) {
if (!n || m.isDisposed()) return;
let r = C();
r || v.sample(t);
- let a = R5(m, e.id, K5(), r ? null : v), o = r ? z5(a) : LFe(a, A5(t));
+ let a = R5(m, e.id, K5(), r ? null : v), o = r ? z5(a) : JFe(a, A5(t));
n.innerHTML = `${l("gauge")}<span class="sr-only">加载速度</span><span>${i(o)}</span>`;
}, O = () => {
let e = w.chrome?.netBadge;
@@ -72114,7 +72387,7 @@ async function nIe(e, t, n, r = {}) {
D(), k();
}), m.on("error", () => {
if (T && !E && !m.isDisposed()) {
- E = !0, T = !1, m.src(ZFe(e)), n && m.play()?.catch(() => {});
+ E = !0, T = !1, m.src(cIe(e)), n && m.play()?.catch(() => {});
return;
}
r.checkSourceStatus !== !1 && c.loadSourceStatus().then((t) => {
@@ -72125,24 +72398,24 @@ async function nIe(e, t, n, r = {}) {
});
}), m.ready(() => {
S();
- let n = BFe(m, t, e.height, r.qualities ?? null);
+ let n = ZFe(m, t, e.height, r.qualities ?? null);
r.mediaPromise?.then((t) => {
if (!x()) return;
n?.(t?.qualities?.length ? t.qualities : null);
let r = Number(t?.size) || 0;
r > 0 && !_ && (_ = r, v.bitrate = M5(r, e.duration));
- }).catch(() => {}), UFe(m, e, { thumbnail: !r.source }), WFe(m, e), GFe(m), r.source || KFe(m, e.id), w.ready = !0, w.chrome?.statsButton && (w.chrome.statsButton.hidden = !1);
+ }).catch(() => {}), eIe(m, e, { thumbnail: !r.source }), tIe(m, e), nIe(m), r.source || rIe(m, e.id), w.ready = !0, w.chrome?.statsButton && (w.chrome.statsButton.hidden = !1);
}), d().then((e) => {
x() && (T = String(e.type || "").includes("mpegurl"), m.src(e), S(), setTimeout(S, 0), setTimeout(S, 250), u && u.time > 0 && m.one("loadedmetadata", () => {
m.isDisposed() || m.currentTime(u.time);
}), n && m.play()?.catch(() => {}));
}).catch(() => {}), m;
}
-var rIe = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+var mIe = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
function i7(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", rIe), e.querySelector(":scope > #playerStatsBtn")) return;
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", mIe), e.querySelector(":scope > #playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = FFe(), e.insertBefore(n.content, t);
+ n.innerHTML = KFe(), e.insertBefore(n.content, t);
}
function a7(e, t) {
let n = $5.get(e);
@@ -72171,7 +72444,7 @@ function a7(e, t) {
};
document.addEventListener(F5, t), s = () => document.removeEventListener(F5, t);
}
- let c = e.el().querySelector("video"), l = c ? zFe(c) : () => {}, u = !0, d = () => {
+ let c = e.el().querySelector("video"), l = c ? XFe(c) : () => {}, u = !0, d = () => {
u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, r7()));
};
return e.one("dispose", d), d;
@@ -72214,7 +72487,7 @@ function s7(e, n) {
method: "POST",
body: JSON.stringify({ id: i.id })
}).catch(() => {});
- }, { once: !0 }), $Fe(i, e, {
+ }, { once: !0 }), uIe(i, e, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
@@ -72223,7 +72496,7 @@ function s7(e, n) {
let d = null, f = !1, p = () => {}, m = () => {
p(), !(!d || o?.(d)) && (D5() === d && (O5(null), r7()), o7(d));
};
- return nIe(i, e, n.autoplay ?? c.settings().detailAutoplay, u).then((t) => {
+ return pIe(i, e, n.autoplay ?? c.settings().detailAutoplay, u).then((t) => {
if (d = t, f) {
m();
return;
@@ -72232,18 +72505,18 @@ function s7(e, n) {
s?.(null);
return;
}
- l && (p = a7(t, l)), r === "follow" && eIe(i, e), s?.(t);
+ l && (p = a7(t, l)), r === "follow" && dIe(i, e), s?.(t);
}), () => {
f = !0, m();
};
}
//#endregion
//#region src/react/follow-detail/follow-detail.ts
-var c7 = (e) => ["follow-item", e], iIe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, aIe = "/api/follow/save", oIe = "/api/follow/media/hide";
+var c7 = (e) => ["follow-item", e], hIe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, gIe = "/api/follow/save", _Ie = "/api/follow/media/hide";
async function l7(e, t) {
- let n = await wi(iIe(e), t);
+ let n = await wi(hIe(e), t);
for (let t of n.groups || []) {
- let r = mM(t).find((t) => t.id === e);
+ let r = SM(t).find((t) => t.id === e);
if (r) return {
item: r,
group: t,
@@ -72253,10 +72526,10 @@ async function l7(e, t) {
}
throw Error("这条关注内容已不存在");
}
-async function sIe(e, t) {
- let n = c7(e.id), r = ile(e.id), i = q.getQueryData(uM) ? null : q.fetchQuery({
- queryKey: uM,
- queryFn: () => dM(t)
+async function vIe(e, t) {
+ let n = c7(e.id), r = sle(e.id), i = q.getQueryData(vM) ? null : q.fetchQuery({
+ queryKey: vM,
+ queryFn: () => yM(t)
});
r ? q.setQueryData(n, {
...r,
@@ -72266,8 +72539,8 @@ async function sIe(e, t) {
queryFn: () => l7(e.id, t)
}), await i;
}
-function cIe(e, t, n, r) {
- let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && yM(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);
+function yIe(e, t, n, r) {
+ let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && DM(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);
return {
embedded: i,
selected: s,
@@ -72281,32 +72554,32 @@ function cIe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var lIe = (e) => mM(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), uIe = {
+var bIe = (e) => SM(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), xIe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, dIe = {
+}, SIe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function fIe(e) {
+function CIe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return uIe[t] || t;
+ return xIe[t] || t;
} catch {
return "外部文件页";
}
}
function u7(e, t) {
- return dIe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+ return SIe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function pIe(e, t, n = "") {
+function wIe(e, t, n = "") {
let r = n;
!r && e.is_release && (r = t.variant_label || t.variant_kind || ""), r ||= t.variant_kind === "wip" ? "WIP" : t.variant_label || t.variant_kind || "视频";
let i = e.is_release ? t.summary || (t.has_media ? "(仅附件)" : "(无正文)") : t.title;
@@ -72315,16 +72588,16 @@ function pIe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var mIe = (e) => String(e.name || "").trim(), d7 = (e, t) => e.tag_types?.[t] || "unknown", hIe = /* @__PURE__ */ new Set([
+var TIe = (e) => String(e.name || "").trim(), d7 = (e, t) => e.tag_types?.[t] || "unknown", EIe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function gIe(e, t) {
+function DIe(e, t) {
let n = d7(e, t);
- return `r34-${hIe.has(n) ? n : "general"}`;
+ return `r34-${EIe.has(n) ? n : "general"}`;
}
var f7 = [
"copyright",
@@ -72333,23 +72606,23 @@ var f7 = [
"general",
"metadata"
];
-function _Ie(e, t) {
+function OIe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
let n = f7.indexOf(d7(e, t));
return n < 0 ? f7.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function vIe(e, t) {
+function kIe(e, t) {
let n = t.find((t) => t.id === e.source_id), r = t.filter((e) => n?.author_key && e.author_key === n.author_key);
return !r.length && n && r.push(n), r;
}
-var yIe = (e, t) => ({
+var AIe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
}), p7 = (e) => e?.size ? { size: e.size } : {};
-function m7(e, t) {
+function jIe(e, t) {
let { images: n, kind: r, src: i, selected: a } = t;
return n.length ? n.map((t, r) => ({
src: `/follow-stream?id=${e.id}&media=${t.index}`,
@@ -72376,10 +72649,10 @@ function m7(e, t) {
total: 1
}] : [];
}
-var bIe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
+var MIe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
//#endregion
//#region src/react/components/mix-queue.tsx
-function h7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
+function m7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
return /* @__PURE__ */ (0, z.jsxs)("aside", {
"data-mix-queue": "",
"data-queue-kind": e,
@@ -72407,7 +72680,7 @@ function h7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
})]
});
}
-function g7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
+function h7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
let s = /* @__PURE__ */ (0, z.jsx)("span", {
"data-mix-item-text": "",
children: a
@@ -72430,29 +72703,29 @@ function g7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var xIe = ({ label: e, count: t }) => /* @__PURE__ */ (0, z.jsxs)("h3", {
+var NIe = ({ label: e, count: t }) => /* @__PURE__ */ (0, z.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
" ",
/* @__PURE__ */ (0, z.jsx)("span", { children: t })
]
-}), _7 = (e) => Number(e) > 0, SIe = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
+}), g7 = (e) => Number(e) > 0, PIe = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: l(e) }
-}), v7 = l("external-link", "externalmark");
-function CIe(e) {
+}), _7 = l("external-link", "externalmark");
+function FIe(e) {
let { id: t, actions: n } = e, r = Nn({
queryKey: c7(t),
queryFn: ({ signal: e }) => l7(t, e)
}), i = Nn({
- queryKey: uM,
- queryFn: ({ signal: e }) => dM(e)
+ queryKey: vM,
+ queryFn: ({ signal: e }) => yM(e)
}), a = (0, R.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, R.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, z.jsx)(wIe, {
+ return r.data ? /* @__PURE__ */ (0, z.jsx)(IIe, {
...e,
data: r.data,
- context: yIe(r.data, a),
+ context: AIe(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, z.jsx)("div", {
@@ -72461,7 +72734,7 @@ function CIe(e) {
children: /* @__PURE__ */ (0, z.jsxs)("div", {
"data-stage-media": "",
"data-follow-detail-media": "none",
- children: [/* @__PURE__ */ (0, z.jsx)(y7, { onClose: n.close }), /* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, z.jsx)(v7, { onClose: n.close }), /* @__PURE__ */ (0, z.jsx)("div", {
"data-follow-detail-placeholder": "",
children: r.isError ? /* @__PURE__ */ (0, z.jsx)(za, {
message: m(r.error),
@@ -72471,7 +72744,7 @@ function CIe(e) {
})
});
}
-var y7 = ({ onClose: e }) => /* @__PURE__ */ (0, z.jsx)("button", {
+var v7 = ({ onClose: e }) => /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -72480,8 +72753,8 @@ var y7 = ({ onClose: e }) => /* @__PURE__ */ (0, z.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: l("x") }
});
-function wIe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {
- let { item: s, group: c } = e, l = cIe(s, c, n, i), u = OIe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, R.useState)({
+function IIe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {
+ let { item: s, group: c } = e, l = yIe(s, c, n, i), u = BIe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, R.useState)({
key: "",
kind: ""
}), m = {
@@ -72501,20 +72774,20 @@ function wIe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
s,
l.kind
]);
- let h = !l.embedded.length && l.collection ? lIe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, z.jsx)(C7, {
+ let h = !l.embedded.length && l.collection ? bIe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, z.jsx)(S7, {
item: s,
current: l.selected.index,
helpers: a,
actions: o,
onMedia: r
- }) : l.collection ? h ? /* @__PURE__ */ (0, z.jsx)(C7, {
+ }) : l.collection ? h ? /* @__PURE__ */ (0, z.jsx)(S7, {
item: h,
current: null,
helpers: a,
actions: o,
onMedia: r,
currentId: s.id
- }) : /* @__PURE__ */ (0, z.jsx)(EIe, {
+ }) : /* @__PURE__ */ (0, z.jsx)(RIe, {
group: l.collection,
itemId: s.id,
helpers: a,
@@ -72525,7 +72798,7 @@ function wIe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
"data-with-queue": g ? "" : void 0,
"data-follow-detail": "",
children: [
- /* @__PURE__ */ (0, z.jsx)(TIe, {
+ /* @__PURE__ */ (0, z.jsx)(LIe, {
item: s,
media: l,
helpers: a,
@@ -72534,7 +72807,7 @@ function wIe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
issues: m
}, d),
g,
- /* @__PURE__ */ (0, z.jsx)(DIe, {
+ /* @__PURE__ */ (0, z.jsx)(zIe, {
item: s,
data: e,
context: t,
@@ -72547,8 +72820,8 @@ function wIe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
]
});
}
-function TIe({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a }) {
- let { kind: o, selected: s, src: c, images: u, position: d, carousel: f, frameRatio: p } = t, m = (0, R.useRef)(null), [h, g] = (0, R.useState)(null), _ = m7(e, t), v = s?.thumb_url || e.thumb_url || "", y = e.playable && o === "video", b = e.playable && o === "image" ? c : e.thumb_url || "", x = e.playable && o === "image" && v && v !== c ? v : "", [S, C] = (0, R.useState)(b), w = (0, R.useRef)({
+function LIe({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a }) {
+ let { kind: o, selected: s, src: c, images: u, position: d, carousel: f, frameRatio: p } = t, m = (0, R.useRef)(null), [h, g] = (0, R.useState)(null), _ = jIe(e, t), v = s?.thumb_url || e.thumb_url || "", y = e.playable && o === "video", b = e.playable && o === "image" ? c : e.thumb_url || "", x = e.playable && o === "image" && v && v !== c ? v : "", [S, C] = (0, R.useState)(b), w = (0, R.useRef)({
item: e,
selected: s
}), T = (0, R.useRef)(a.failed);
@@ -72578,14 +72851,14 @@ function TIe({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a
"--follow-image-arrow-inset": h === null ? void 0 : `${h}px`
},
children: [
- /* @__PURE__ */ (0, z.jsx)(y7, { onClose: r.close }),
+ /* @__PURE__ */ (0, z.jsx)(v7, { onClose: r.close }),
y ? null : b ? /* @__PURE__ */ (0, z.jsx)("img", {
"data-follow-detail-poster": "",
"data-zoomable": _.length ? "" : void 0,
src: S,
alt: e.title,
referrerPolicy: "no-referrer",
- onClick: _.length ? () => void tA(Math.max(0, d), _) : void 0,
+ onClick: _.length ? () => void Xk(Math.max(0, d), _) : void 0,
onError: () => {
if (x && S !== x) {
C(x), a.thumbFallback();
@@ -72636,11 +72909,11 @@ function TIe({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a
]
});
}
-var b7 = ({ kind: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
+var y7 = ({ kind: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: l(e === "image" ? "image-off" : "play") }
});
-function x7({ src: e }) {
+function b7({ src: e }) {
let [t, n] = (0, R.useState)(!1);
return t ? null : /* @__PURE__ */ (0, z.jsx)("img", {
src: e,
@@ -72650,14 +72923,14 @@ function x7({ src: e }) {
onError: () => n(!0)
});
}
-function S7(e) {
+function x7(e) {
return (0, R.useCallback)((t) => {
t && e.wireDrag(t);
}, [e]);
}
-function EIe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = yM(e), a = S7(n);
- return /* @__PURE__ */ (0, z.jsx)(h7, {
+function RIe({ group: e, itemId: t, helpers: n, actions: r }) {
+ let i = DM(e), a = x7(n);
+ return /* @__PURE__ */ (0, z.jsx)(m7, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
@@ -72665,12 +72938,12 @@ function EIe({ group: e, itemId: t, helpers: n, actions: r }) {
listRef: a,
summary: `${e.primary.title || "未命名合集"} · ${i.length} 个视频`,
children: i.map((i) => {
- let a = e.duplicates.includes(i), s = pIe(e, i, a ? i.provider_label : ""), c = a ? n.sourceIcon(i.provider, i.provider_label) : "";
- return /* @__PURE__ */ (0, z.jsxs)(g7, {
+ let a = e.duplicates.includes(i), s = wIe(e, i, a ? i.provider_label : ""), c = a ? n.sourceIcon(i.provider, i.provider_label) : "";
+ return /* @__PURE__ */ (0, z.jsxs)(h7, {
current: i.id === t,
"data-follow-queue-item": i.id,
onClick: () => r.openItem(i.id),
- pic: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [i.thumb_url ? /* @__PURE__ */ (0, z.jsx)(x7, { src: i.thumb_url }) : /* @__PURE__ */ (0, z.jsx)(b7, { kind: "video" }), _7(i.duration) ? /* @__PURE__ */ (0, z.jsx)("i", {
+ pic: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [i.thumb_url ? /* @__PURE__ */ (0, z.jsx)(b7, { src: i.thumb_url }) : /* @__PURE__ */ (0, z.jsx)(y7, { kind: "video" }), g7(i.duration) ? /* @__PURE__ */ (0, z.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: o(i.duration)
@@ -72695,8 +72968,8 @@ function EIe({ group: e, itemId: t, helpers: n, actions: r }) {
})
});
}
-function C7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
- let o = e.media_items || [], s = S7(r), c = [];
+function S7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
+ let o = e.media_items || [], s = x7(r), c = [];
o.forEach((e) => {
let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);
n || (n = {
@@ -72706,26 +72979,26 @@ function C7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, c.push(n)), n.items.push(e);
});
let l = (t) => e.id === n ? a(t.index) : i.openItem(e.id, t.index);
- return /* @__PURE__ */ (0, z.jsx)(h7, {
+ return /* @__PURE__ */ (0, z.jsx)(m7, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
onClose: i.close,
listRef: s,
summary: `${e.title || "未命名内容"} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, z.jsx)(xIe, {
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, z.jsx)(NIe, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, z.jsxs)(g7, {
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, z.jsxs)(h7, {
current: n.index === t,
"data-follow-media-owner": e.id,
"data-follow-media-item": n.index,
"data-media-kind": n.media_kind || "",
onClick: () => l(n),
- pic: n.thumb_url ? /* @__PURE__ */ (0, z.jsx)(x7, { src: n.thumb_url }) : /* @__PURE__ */ (0, z.jsx)(b7, { kind: n.media_kind || "" }),
+ pic: n.thumb_url ? /* @__PURE__ */ (0, z.jsx)(b7, { src: n.thumb_url }) : /* @__PURE__ */ (0, z.jsx)(y7, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, z.jsx)("b", {
"data-middle-truncate": "",
- children: mIe(n)
+ children: TIe(n)
}), /* @__PURE__ */ (0, z.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -72733,13 +73006,13 @@ function C7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function DIe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpers: u, actions: d }) {
+function zIe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpers: u, actions: d }) {
let { kind: f, selected: p, src: m } = r, h = {
primary: e,
variants: [],
duplicates: [],
has_wip: e.variant_kind === "wip"
- }, g = u.badges(h, e), _ = u.identity(e, vIe(e, t.sources), n), v = _.credited ? "" : e.author && c(e.author) !== c(_.author) ? e.author : "", y = u.mediaIssue(e, n), b = _Ie(e, u.tagLabel), x = e.status === "saved", { busy: S } = a, C = (e) => S.has(e) ? {
+ }, g = u.badges(h, e), _ = u.identity(e, kIe(e, t.sources), n), v = _.credited ? "" : e.author && c(e.author) !== c(_.author) ? e.author : "", y = u.mediaIssue(e, n), b = OIe(e, u.tagLabel), x = e.status === "saved", { busy: S } = a, C = (e) => S.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -72764,7 +73037,7 @@ function DIe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
rel: "noreferrer noopener",
title: "打开来源页面",
"aria-label": "打开来源页面",
- dangerouslySetInnerHTML: { __html: v7 }
+ dangerouslySetInnerHTML: { __html: _7 }
}) : null]
}),
/* @__PURE__ */ (0, z.jsxs)("div", {
@@ -72785,7 +73058,7 @@ function DIe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
"data-reveal-line": "",
children: [
/* @__PURE__ */ (0, z.jsx)("span", { children: u.when(e) }),
- _7(e.duration) ? /* @__PURE__ */ (0, z.jsx)("span", { children: o(e.duration) }) : null,
+ g7(e.duration) ? /* @__PURE__ */ (0, z.jsx)("span", { children: o(e.duration) }) : null,
g ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: g }
@@ -72819,9 +73092,9 @@ function DIe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [fIe(e), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [CIe(e), /* @__PURE__ */ (0, z.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: v7 }
+ dangerouslySetInnerHTML: { __html: _7 }
})]
}, e))
}) : null,
@@ -72909,7 +73182,7 @@ function DIe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...C(`restore:${e.index}`),
onClick: () => a.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, z.jsx)(x7, { src: e.thumb_url }) : /* @__PURE__ */ (0, z.jsx)(SIe, { name: "image-off" }), /* @__PURE__ */ (0, z.jsx)("i", { dangerouslySetInnerHTML: { __html: l("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, z.jsx)(b7, { src: e.thumb_url }) : /* @__PURE__ */ (0, z.jsx)(PIe, { name: "image-off" }), /* @__PURE__ */ (0, z.jsx)("i", { dangerouslySetInnerHTML: { __html: l("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -72924,7 +73197,7 @@ function DIe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
children: b.map((t) => /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
className: "tg",
- "data-tag-cat": gIe(e, t),
+ "data-tag-cat": DIe(e, t),
"data-follow-tag": t,
onClick: () => d.openTag(t),
children: u.tagLabel(t)
@@ -72934,7 +73207,7 @@ function DIe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
})
});
}
-function OIe(e, t, n) {
+function BIe(e, t, n) {
let r = e.id, i = c7(r), [a, o] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
@@ -72945,17 +73218,17 @@ function OIe(e, t, n) {
...t.item,
status: e
}
- }), ole(r, e);
+ }), lle(r, e);
}, d = (e) => {
c(m(e) || "操作失败"), t.failure("更新关注状态", e);
}, f = Pn({
- mutationFn: ({ to: e }) => W(Dj, {
+ mutationFn: ({ to: e }) => W(Fj, {
item: r,
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), t.toast(bIe(n), { undo: i === "saved" ? void 0 : async () => {
- await W(Dj, {
+ u(n), c(""), t.toast(MIe(n), { undo: i === "saved" ? void 0 : async () => {
+ await W(Fj, {
item: r,
to: i
}), u(i);
@@ -72964,7 +73237,7 @@ function OIe(e, t, n) {
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
}), p = Pn({
- mutationFn: () => W(aIe, { item: r }),
+ mutationFn: () => W(gIe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到账本");
},
@@ -72972,7 +73245,7 @@ function OIe(e, t, n) {
onSettled: () => l("save", !1)
}), h = Pn({
mutationFn: async ({ index: e, hidden: t }) => {
- await W(oIe, {
+ await W(_Ie, {
item: r,
media: e,
hidden: t
@@ -72983,7 +73256,7 @@ function OIe(e, t, n) {
},
onSuccess: (e, { hidden: r, next: a }) => {
let o = q.getQueryData(i);
- o && ale(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
+ o && cle(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
},
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
@@ -73019,31 +73292,31 @@ function OIe(e, t, n) {
}
//#endregion
//#region src/react/item-detail/item-detail.ts
-var w7 = (e) => ["item", e], T7 = (e) => [
+var C7 = (e) => ["item", e], w7 = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], kIe = (e, t) => [
+], VIe = (e, t) => [
"item-related",
e,
t
-], AIe = (e) => `/api/item?id=${e}`, jIe = (e, t) => `/api/related?id=${e}&limit=${t}`, E7 = "/api/playlist", MIe = "/api/feedback", D7 = "/api/item-tag", O7 = "/api/watch-later", k7 = "/api/quality-goal", A7 = "/api/preference", j7 = class extends Error {};
-async function M7(e, t) {
- let n = await wi(AIe(e), t);
- if (n.error) throw new j7(n.error);
+], HIe = (e) => `/api/item?id=${e}`, UIe = (e, t) => `/api/related?id=${e}&limit=${t}`, T7 = "/api/playlist", WIe = "/api/feedback", E7 = "/api/item-tag", D7 = "/api/watch-later", O7 = "/api/quality-goal", k7 = "/api/preference", A7 = class extends Error {};
+async function j7(e, t) {
+ let n = await wi(HIe(e), t);
+ if (n.error) throw new A7(n.error);
return n;
}
-async function N7(e, t, n) {
+async function M7(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([M7(r, n), t.mixRelated(r)]);
- return q.setQueryData(w7(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([j7(r, n), t.mixRelated(r)]);
+ return q.setQueryData(C7(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${t.mixLabel(i)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return P7(await wi(`${E7}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return N7(await wi(`${T7}?id=${e.playlistId}`, n));
let r = await wi(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
@@ -73053,17 +73326,17 @@ async function N7(e, t, n) {
items: r.items
};
}
-var P7 = (e) => ({
+var N7 = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
});
-function F7(e, t) {
+function P7(e, t) {
return e.kind === "mix" ? t : e.items.length ? t != null && e.items.some((e) => e.id === t) ? t : e.kind === "playlist" && e.currentAssetId || e.items[0].id : null;
}
-function NIe(e, t) {
+function GIe(e, t) {
if (t?.kind !== "parts") return e;
let n = t.items.find((t) => t.id === e.id)?.part_label || "";
return e.part_label === n ? e : {
@@ -73071,14 +73344,14 @@ function NIe(e, t) {
part_label: n
};
}
-async function PIe(e, t) {
+async function KIe(e, t) {
let { queue: n, actions: r } = e, i = null;
if (n) {
- let a = T7(n);
+ let a = w7(n);
try {
i = (n.fresh ? void 0 : q.getQueryData(a)) || await q.fetchQuery({
queryKey: a,
- queryFn: () => N7(n, e.helpers, t),
+ queryFn: () => M7(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -73091,19 +73364,19 @@ async function PIe(e, t) {
}
e.grid.cache(i.items);
}
- let a = i ? F7(i, e.id) : e.id;
+ let a = i ? P7(i, e.id) : e.id;
if (a == null) {
r.redirect(i?.kind === "playlist" ? { kind: "playlists" } : { kind: "gone" });
return;
}
let o;
try {
- o = q.getQueryData(w7(a)) || await q.fetchQuery({
- queryKey: w7(a),
- queryFn: () => M7(a, t)
+ o = q.getQueryData(C7(a)) || await q.fetchQuery({
+ queryKey: C7(a),
+ queryFn: () => j7(a, t)
});
} catch (e) {
- if (e instanceof j7) {
+ if (e instanceof A7) {
r.redirect({ kind: "gone" });
return;
}
@@ -73114,7 +73387,7 @@ async function PIe(e, t) {
id: Number(o.follow_item_id)
});
}
-function FIe(e) {
+function qIe(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
let t = c(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
@@ -73135,42 +73408,42 @@ function FIe(e) {
unowned: !i.length && !l.length && !String(e.creator || "").trim()
};
}
-var I7 = (e) => Math.min(Math.max(e || 0, 0), 100), L7 = (e) => Math.round(I7(e) / 20), IIe = (e) => {
- let t = L7(e);
+var F7 = (e) => Math.min(Math.max(e || 0, 0), 100), I7 = (e) => Math.round(F7(e) / 20), JIe = (e) => {
+ let t = I7(e);
return t ? `${t} 星` : "未评分";
-}, LIe = (e, t) => {
+}, YIe = (e, t) => {
let n = t * 20;
return n === (e || 0) ? 0 : n;
};
-function RIe(e, t) {
+function XIe(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
let r = c(t.tagLabel(e.k)), i = n.get(r);
(!i || c(e.k) === r && c(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
-var R7 = (e, t) => (e.tags || []).some((e) => c(e.k) === c(t)), z7 = (e, t) => ({
+var L7 = (e, t) => (e.tags || []).some((e) => c(e.k) === c(t)), R7 = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => c(e.k) !== c(t))
-}), B7 = (e, t) => R7(e, t.k) ? e : {
+}), z7 = (e, t) => L7(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, V7 = "peach.recentTags";
-function H7() {
+}, B7 = "peach.recentTags";
+function V7() {
try {
- let e = JSON.parse(localStorage.getItem(V7) || "[]");
+ let e = JSON.parse(localStorage.getItem(B7) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function zIe(e) {
+function ZIe(e) {
try {
- let t = H7().filter((t) => c(t) !== c(e));
- localStorage.setItem(V7, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = V7().filter((t) => c(t) !== c(e));
+ localStorage.setItem(B7, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function BIe(e, t, n) {
+function QIe(e, t, n) {
let r = c(e), i = new Map(t.map((e) => [c(e.k), e])), a = t.filter((e) => !r || c(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(c(e)) || {
k: e,
n: 0
@@ -73181,59 +73454,59 @@ function BIe(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var VIe = {
+var $Ie = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, HIe = {
+}, eLe = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function UIe(e) {
+function tLe(e) {
let t = e.items.length, n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;
return {
- title: HIe[e.kind],
+ title: eLe[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var U7 = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, WIe = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${i(U7(e.part_label))}</small>` : "";
-function GIe(e, t, n, r) {
+var H7 = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, nLe = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${i(H7(e.part_label))}</small>` : "";
+function rLe(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var KIe = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function qIe(e, t) {
+var iLe = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function aLe(e, t) {
return t ? "offline" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";
}
-function JIe(e) {
+function oLe(e) {
let t = Number(e.duration) > 0 ? Number(e.duration) : 0;
return !e.play_seconds || !t ? null : Math.min(Number(e.play_seconds) / t, 1) * 100;
}
-function YIe(e, t) {
+function sLe(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
//#endregion
//#region src/react/components/overlay-host.ts
-function XIe(e) {
+function cLe(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 ZIe(e) {
+function lLe(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return XIe(n ?? t.body);
+ return cLe(n ?? t.body);
}
//#endregion
//#region src/react/cover-crop/cover-crop.ts
-var QIe = "/api/cover-crop", $Ie = (e, t) => W(QIe, {
+var uLe = "/api/cover-crop", dLe = (e, t) => W(uLe, {
code: e,
box: t
-}), W7 = .704;
-function G7({ className: e }) {
+}), U7 = .704;
+function W7({ className: e }) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -73246,7 +73519,7 @@ function G7({ className: e }) {
children: /* @__PURE__ */ (0, z.jsx)("use", { href: "#i-crop" })
});
}
-function eLe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function fLe({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, R.useState)(!1), o = (0, R.useRef)(null);
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("button", {
ref: o,
@@ -73257,15 +73530,15 @@ function eLe({ code: e, coverUrl: t, box: n, onSaved: r }) {
title: "裁剪封面:框出正封那一块",
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, z.jsx)(G7, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, z.jsx)(iy, {
- getContainer: () => ZIe(o.current),
+ children: /* @__PURE__ */ (0, z.jsx)(W7, { className: "size-3.75" })
+ }), /* @__PURE__ */ (0, z.jsx)(ay, {
+ getContainer: () => lLe(o.current),
children: /* @__PURE__ */ (0, z.jsx)(TA, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, z.jsx)(tLe, {
+ children: /* @__PURE__ */ (0, z.jsx)(pLe, {
code: e,
coverUrl: t,
box: n,
@@ -73275,9 +73548,9 @@ function eLe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function tLe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(null), [l, u] = (0, R.useState)(!0), d = hO(), f = Pn({
- mutationFn: (t) => $Ie(e, t),
+function pLe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(null), [l, u] = (0, R.useState)(!0), d = vO(), f = Pn({
+ mutationFn: (t) => dLe(e, t),
onSuccess: () => {
i(), r();
}
@@ -73289,7 +73562,7 @@ function tLe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : Yse(e, W7);
+ } : oce(e, U7);
c(xA(t, e, null));
}
let m = f.isPending;
@@ -73297,11 +73570,11 @@ function tLe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, z.jsx)(EA, { children: /* @__PURE__ */ (0, z.jsx)(G7, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, z.jsx)(EA, { children: /* @__PURE__ */ (0, z.jsx)(W7, { className: "size-6" }) }),
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(Rm, {
+ /* @__PURE__ */ (0, z.jsx)(Lm, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -73316,7 +73589,7 @@ function tLe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsx)(_O, {
+ /* @__PURE__ */ (0, z.jsx)(bO, {
icon: je,
size: "small",
"aria-label": "关闭",
@@ -73329,7 +73602,7 @@ function tLe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
children: /* @__PURE__ */ (0, z.jsx)(OA, {
src: t,
- aspect: l ? W7 : null,
+ aspect: l ? U7 : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
@@ -73341,10 +73614,10 @@ function tLe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}),
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, z.jsx)(wN, {
+ children: [/* @__PURE__ */ (0, z.jsx)(FN, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(xA(s, a, W7));
+ u(e), e && s && a && c(xA(s, a, U7));
},
children: /* @__PURE__ */ (0, z.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -73373,21 +73646,21 @@ function tLe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}
//#endregion
//#region src/react/item-detail/item-detail-page.tsx
-var K7 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
+var G7 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: l(e) }
-}), q7 = ({ html: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
+}), K7 = ({ html: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
});
-function nLe(e) {
+function mLe(e) {
let { queue: t, actions: n } = e, r = Nn({
- queryKey: t ? T7(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => N7(t, e.helpers, n),
+ queryKey: t ? w7(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => M7(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? F7(i, e.id) : t ? null : e.id, o = Nn({
- queryKey: w7(a ?? 0),
- queryFn: ({ signal: e }) => M7(a, e),
+ }), i = t && r.data || null, a = i ? P7(i, e.id) : t ? null : e.id, o = Nn({
+ queryKey: C7(a ?? 0),
+ queryFn: ({ signal: e }) => j7(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -73398,7 +73671,7 @@ function nLe(e) {
children: /* @__PURE__ */ (0, z.jsxs)("div", {
"data-stage-media": "",
"data-item-media": "none",
- children: [/* @__PURE__ */ (0, z.jsx)(J7, { onClose: n.close }), /* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, z.jsx)(q7, { onClose: n.close }), /* @__PURE__ */ (0, z.jsx)("div", {
"data-item-placeholder": "",
children: e ? /* @__PURE__ */ (0, z.jsx)(za, {
message: m(e),
@@ -73410,13 +73683,13 @@ function nLe(e) {
})
});
}
- return /* @__PURE__ */ (0, z.jsx)(rLe, {
+ return /* @__PURE__ */ (0, z.jsx)(hLe, {
...e,
- item: NIe(o.data, i),
+ item: GIe(o.data, i),
queue: i
}, o.data.id);
}
-var J7 = ({ onClose: e }) => /* @__PURE__ */ (0, z.jsx)("button", {
+var q7 = ({ onClose: e }) => /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -73425,36 +73698,36 @@ var J7 = ({ onClose: e }) => /* @__PURE__ */ (0, z.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: l("x") }
});
-function rLe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = yLe(t, r, e.grid.cache, i.tagLabel), o = (0, R.useRef)(t);
+function hLe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = jLe(t, r, e.grid.cache, i.tagLabel), o = (0, R.useRef)(t);
(0, R.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, R.useEffect)(() => {
- n?.kind === "playlist" && W(E7, {
+ n?.kind === "playlist" && W(T7, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = qIe(t, i.sourceOffline(t.location || ""));
+ let s = aLe(t, i.sourceOffline(t.location || ""));
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
children: [
- /* @__PURE__ */ (0, z.jsx)(iLe, {
+ /* @__PURE__ */ (0, z.jsx)(gLe, {
item: t,
gate: s,
helpers: i,
actions: r
}),
- n ? /* @__PURE__ */ (0, z.jsx)(oLe, {
+ n ? /* @__PURE__ */ (0, z.jsx)(vLe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- /* @__PURE__ */ (0, z.jsx)(lLe, {
+ /* @__PURE__ */ (0, z.jsx)(xLe, {
item: t,
queue: n,
write: a,
@@ -73462,9 +73735,9 @@ function rLe(e) {
actions: r
})
]
- }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, z.jsx)(vLe, { ...e }) : null] });
+ }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, z.jsx)(ALe, { ...e }) : null] });
}
-function iLe({ item: e, gate: t, helpers: n, actions: r }) {
+function gLe({ item: e, gate: t, helpers: n, actions: r }) {
let [i, a] = (0, R.useState)(t ? "" : "auto"), o = (0, R.useRef)(null), c = (0, R.useRef)(e);
(0, R.useLayoutEffect)(() => {
let e = o.current;
@@ -73475,7 +73748,7 @@ function iLe({ item: e, gate: t, helpers: n, actions: r }) {
ref: o,
"data-stage-media": "",
"data-item-media": t || "video",
- children: [/* @__PURE__ */ (0, z.jsx)(J7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, z.jsx)(aLe, {
+ children: [/* @__PURE__ */ (0, z.jsx)(q7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, z.jsx)(_Le, {
item: e,
badge: l,
helpers: n,
@@ -73485,7 +73758,7 @@ function iLe({ item: e, gate: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "online",
children: [
- /* @__PURE__ */ (0, z.jsx)(q7, { html: l }),
+ /* @__PURE__ */ (0, z.jsx)(K7, { html: l }),
/* @__PURE__ */ (0, z.jsx)("b", { children: "在线资产" }),
/* @__PURE__ */ (0, z.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
/* @__PURE__ */ (0, z.jsx)("button", {
@@ -73500,11 +73773,11 @@ function iLe({ item: e, gate: t, helpers: n, actions: r }) {
id: "gate",
"data-item-gate": "metered",
onClick: () => a("clicked"),
- children: [/* @__PURE__ */ (0, z.jsx)(q7, { html: l }), /* @__PURE__ */ (0, z.jsxs)("span", { children: ["点此开始拉流 · ", s(e.size || 0)] })]
+ children: [/* @__PURE__ */ (0, z.jsx)(K7, { html: l }), /* @__PURE__ */ (0, z.jsxs)("span", { children: ["点此开始拉流 · ", s(e.size || 0)] })]
}) : null]
});
}
-function aLe({ item: e, badge: t, helpers: n, actions: r }) {
+function _Le({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, R.useState)(!1), [o, s] = (0, R.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@ -73515,7 +73788,7 @@ function aLe({ item: e, badge: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "offline",
children: [
- /* @__PURE__ */ (0, z.jsx)(q7, { html: t }),
+ /* @__PURE__ */ (0, z.jsx)(K7, { html: t }),
/* @__PURE__ */ (0, z.jsx)("b", { children: "脱盘模式" }),
/* @__PURE__ */ (0, z.jsx)("span", { children: n.offlineReason(e.location || "") }),
/* @__PURE__ */ (0, z.jsx)("button", {
@@ -73529,8 +73802,8 @@ function aLe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function oLe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = UIe(e), a = (0, R.useRef)(null), s = cLe(e, t, r), c = (0, R.useRef)(s);
+function vLe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = tLe(e), a = (0, R.useRef)(null), s = bLe(e, t, r), c = (0, R.useRef)(s);
c.current = s;
let u = (0, R.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -73538,7 +73811,7 @@ function oLe({ queue: e, itemId: t, helpers: n, actions: r }) {
attribute: "data-queue-row",
onMove: (e, t, n) => c.current.move(+e, +t, n)
}));
- }, [n, e.kind]), d = sLe(e, r), f = e.kind === "mix" ? /* @__PURE__ */ (0, z.jsx)("button", {
+ }, [n, e.kind]), d = yLe(e, r), f = e.kind === "mix" ? /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -73557,7 +73830,7 @@ function oLe({ queue: e, itemId: t, helpers: n, actions: r }) {
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, z.jsx)(h7, {
+ return /* @__PURE__ */ (0, z.jsx)(m7, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@ -73566,34 +73839,34 @@ function oLe({ queue: e, itemId: t, helpers: n, actions: r }) {
listRef: u,
children: e.items.map((i) => {
let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, z.jsx)("i", {
- className: `javedition ${VIe[i.edition_label] || "censored"}`,
+ className: `javedition ${$Ie[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
}) : null;
- return /* @__PURE__ */ (0, z.jsxs)(g7, {
+ return /* @__PURE__ */ (0, z.jsxs)(h7, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
onClick: () => r.openQueueItem(p, i.id),
- pic: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(q7, { html: n.queueThumbHtml(i) }), /* @__PURE__ */ (0, z.jsx)("i", {
+ pic: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(K7, { html: n.queueThumbHtml(i) }), /* @__PURE__ */ (0, z.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: o(i.duration)
})] }),
- lead: /* @__PURE__ */ (0, z.jsx)(q7, { html: n.queueAvatarHtml(i) }),
+ lead: /* @__PURE__ */ (0, z.jsx)(K7, { html: n.queueAvatarHtml(i) }),
after: e.kind === "playlist" ? /* @__PURE__ */ (0, z.jsxs)("span", {
"data-queue-edit": "",
children: [/* @__PURE__ */ (0, z.jsx)("i", {
"data-queue-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "grip-vertical" })
}), /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"data-queue-remove": i.id,
title: "移出播放列表",
"aria-label": "移出播放列表",
onClick: () => s.remove(i.id),
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "x" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "x" })
})]
}) : null,
children: [/* @__PURE__ */ (0, z.jsxs)("span", {
@@ -73604,14 +73877,14 @@ function oLe({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, z.jsx)("span", {
"data-truncate-end": "",
- children: e.kind === "parts" ? U7(i.part_label) : n.mixLabel(i)
+ children: e.kind === "parts" ? H7(i.part_label) : n.mixLabel(i)
})]
}, i.id);
})
});
}
-function sLe(e, t) {
- let n = Pn({ mutationFn: (t) => W(E7, {
+function yLe(e, t) {
+ let n = Pn({ mutationFn: (t) => W(T7, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -73624,11 +73897,11 @@ function sLe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function cLe(e, t, n) {
- let r = T7({
+function bLe(e, t, n) {
+ let r = w7({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (q.setQueryData(r, P7(e)), e), a = (t) => W(E7, {
+ }), i = (e) => (q.setQueryData(r, N7(e)), e), a = (t) => W(T7, {
id: e.playlistId,
...t
}).then((e) => e.playlist), o = Pn({
@@ -73644,8 +73917,8 @@ function cLe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = GIe(s, t, r, c);
- if (KIe(l, s)) return;
+ let l = rLe(s, t, r, c);
+ if (iLe(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -73691,7 +73964,7 @@ function cLe(e, t, n) {
}
};
}
-function lLe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function xLe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [c, l] = (0, R.useState)(!1);
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-stage-side": "",
@@ -73699,7 +73972,7 @@ function lLe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: /* @__PURE__ */ (0, z.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, z.jsx)(uLe, {
+ /* @__PURE__ */ (0, z.jsx)(SLe, {
item: e,
queue: t,
helpers: r,
@@ -73711,7 +73984,7 @@ function lLe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, z.jsx)(fLe, {
+ /* @__PURE__ */ (0, z.jsx)(wLe, {
item: e,
write: n
}),
@@ -73722,7 +73995,7 @@ function lLe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: [
/* @__PURE__ */ (0, z.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, z.jsx)(K7, { name: "monitor" }), /* @__PURE__ */ (0, z.jsxs)("span", { children: [
+ children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "monitor" }), /* @__PURE__ */ (0, z.jsxs)("span", { children: [
e.width || "?",
"×",
e.height || "?"
@@ -73730,11 +74003,11 @@ function lLe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}),
/* @__PURE__ */ (0, z.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, z.jsx)(K7, { name: "hard-drive" }), /* @__PURE__ */ (0, z.jsx)("span", { children: s(e.size || 0) })]
+ children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "hard-drive" }), /* @__PURE__ */ (0, z.jsx)("span", { children: s(e.size || 0) })]
}),
e.release_date ? /* @__PURE__ */ (0, z.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, z.jsx)(K7, { name: "calendar" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e.release_date })]
+ children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "calendar" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e.release_date })]
}) : null,
e.region_label ? /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
@@ -73742,22 +74015,22 @@ function lLe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"data-open-region": e.region || "",
title: e.region_settled ? "已判定的产地;打开同产地的作品" : "按番号或厂牌推断的产地,批量判定后不再变;打开同产地的作品",
onClick: () => i.openRegion(e.region || ""),
- children: [/* @__PURE__ */ (0, z.jsx)(K7, { name: "globe" }), /* @__PURE__ */ (0, z.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
+ children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "globe" }), /* @__PURE__ */ (0, z.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsx)(pLe, {
+ /* @__PURE__ */ (0, z.jsx)(TLe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, z.jsx)(mLe, {
+ /* @__PURE__ */ (0, z.jsx)(ELe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, z.jsx)(gLe, { item: e }),
+ /* @__PURE__ */ (0, z.jsx)(OLe, { item: e }),
/* @__PURE__ */ (0, z.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -73771,7 +74044,7 @@ function lLe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.liked,
...o("like"),
onClick: () => n.preference({ liked: !e.liked }),
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "thumbs-up" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "thumbs-up" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -73783,7 +74056,7 @@ function lLe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-controls": "preferencePanel",
"data-has-reason": String(!!e.like_reason),
onClick: () => l((e) => !e),
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "notebook-pen" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "notebook-pen" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -73794,7 +74067,7 @@ function lLe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "dislike",
...o("dislike"),
onClick: () => n.feedback("dislike"),
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "thumbs-down" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "thumbs-down" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -73805,7 +74078,7 @@ function lLe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "seen",
...o("seen"),
onClick: () => n.feedback("seen"),
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "eye" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "eye" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -73816,7 +74089,7 @@ function lLe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.watch_later,
...o("later"),
onClick: n.later,
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: e.watch_later ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: e.watch_later ? "check" : "bookmark-plus" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -73825,7 +74098,7 @@ function lLe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-label": "加入播放列表",
title: "加入播放列表",
onClick: () => i.addToPlaylist(e),
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "playlist" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "playlist" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -73836,7 +74109,7 @@ function lLe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.better_version,
...o("quality"),
onClick: n.quality,
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "sparkles" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "sparkles" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -73847,11 +74120,11 @@ function lLe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.disposal === "trash",
...o("dispose"),
onClick: () => n.feedback("dispose"),
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "trash" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "trash" })
})
]
}),
- /* @__PURE__ */ (0, z.jsx)(_Le, {
+ /* @__PURE__ */ (0, z.jsx)(kLe, {
item: e,
open: c,
write: n
@@ -73862,7 +74135,7 @@ function lLe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
...o("o"),
onClick: () => n.feedback("o"),
children: [
- /* @__PURE__ */ (0, z.jsx)(K7, { name: "sperm" }),
+ /* @__PURE__ */ (0, z.jsx)(G7, { name: "sperm" }),
/* @__PURE__ */ (0, z.jsx)("span", { children: "记一次高潮" }),
/* @__PURE__ */ (0, z.jsx)("b", {
className: "mono",
@@ -73875,7 +74148,7 @@ function lLe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function uLe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+function SLe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
let a = (0, R.useRef)(null), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)(!1);
(0, R.useLayoutEffect)(() => {
let e = a.current;
@@ -73885,7 +74158,7 @@ function uLe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
}, n = new ResizeObserver(t);
return n.observe(e), t(), () => n.disconnect();
}, []);
- let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + WIe(e, t);
+ let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + nLe(e, t);
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, z.jsxs)("div", {
@@ -73912,21 +74185,21 @@ function uLe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: u,
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: o ? "chevron-up" : "chevron-down" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: o ? "chevron-up" : "chevron-down" })
}),
e.has_cover && e.code ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, z.jsx)(eLe, {
+ children: /* @__PURE__ */ (0, z.jsx)(fLe, {
code: e.code,
coverUrl: `/cover?code=${encodeURIComponent(e.code)}`,
box: e.poster_box || null,
onSaved: () => void q.invalidateQueries({
- queryKey: w7(e.id),
+ queryKey: C7(e.id),
exact: !0
})
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, z.jsx)(dLe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, z.jsx)(CLe, {
id: e.id,
actions: r,
onStatus: i
@@ -73936,7 +74209,7 @@ function uLe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function dLe({ id: e, actions: t, onStatus: n }) {
+function CLe({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, R.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@ -73966,17 +74239,17 @@ function dLe({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void o(),
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "folder-sync" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "folder-sync" })
})] });
}
-function fLe({ item: e, write: t }) {
- let n = L7(e.rating);
+function wLe({ item: e, write: t }) {
+ let n = I7(e.rating);
return /* @__PURE__ */ (0, z.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": I7(e.rating),
+ "data-value": F7(e.rating),
children: [/* @__PURE__ */ (0, z.jsx)("div", {
"data-rating-stars": "",
children: [
@@ -73993,18 +74266,18 @@ function fLe({ item: e, write: t }) {
"aria-label": e === n ? `取消评分(当前 ${e} 星)` : `评为 ${e} 星`,
...t.busyAttrs(`rate:${e}`),
onClick: () => t.rate(e),
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "star" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "star" })
}, e))
}), /* @__PURE__ */ (0, z.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: IIe(e.rating)
+ children: JIe(e.rating)
})]
});
}
-function pLe({ item: e, helpers: t, actions: n }) {
- let r = (0, R.useMemo)(() => FIe(e), [e]), [i, a] = (0, R.useState)(!1), o = Math.max(0, r.cast.length - 8), s = (e, r, a) => {
- let o = e === "performer" && a >= 8 && !i, s = e === "performer" ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { children: r.name.slice(0, 1) }), /* @__PURE__ */ (0, z.jsx)(q7, { html: t.faceHtml(r) })] }) : e === "studio" ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { children: r.name.slice(0, 2) }), r.has_logo ? /* @__PURE__ */ (0, z.jsx)("img", {
+function TLe({ item: e, helpers: t, actions: n }) {
+ let r = (0, R.useMemo)(() => qIe(e), [e]), [i, a] = (0, R.useState)(!1), o = Math.max(0, r.cast.length - 8), s = (e, r, a) => {
+ let o = e === "performer" && a >= 8 && !i, s = e === "performer" ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { children: r.name.slice(0, 1) }), /* @__PURE__ */ (0, z.jsx)(K7, { html: t.faceHtml(r) })] }) : e === "studio" ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { children: r.name.slice(0, 2) }), r.has_logo ? /* @__PURE__ */ (0, z.jsx)("img", {
src: `/logo?studio=${encodeURIComponent(r.name)}&variant=icon`,
alt: "",
loading: "lazy",
@@ -74058,7 +74331,7 @@ function pLe({ item: e, helpers: t, actions: n }) {
onClick: n.openUnowned,
children: [/* @__PURE__ */ (0, z.jsx)("span", {
"data-id-face": "",
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "user-round" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "user-round" })
}), /* @__PURE__ */ (0, z.jsx)("span", {
"data-id-name": "",
children: "未归属"
@@ -74101,19 +74374,19 @@ function pLe({ item: e, helpers: t, actions: n }) {
"data-entity-name": e.name,
title: e.name,
onClick: () => n.openEntity("series", e.name),
- children: [/* @__PURE__ */ (0, z.jsx)(K7, { name: "tags" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e.name })]
+ children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "tags" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e.name })]
}, e.name) : /* @__PURE__ */ (0, z.jsxs)("span", {
"data-series-link": "",
title: e.name,
- children: [/* @__PURE__ */ (0, z.jsx)(K7, { name: "tags" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e.name })]
+ children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "tags" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e.name })]
}, e.name))
})]
}) : null
]
});
}
-function mLe({ item: e, write: t, helpers: n, actions: r }) {
- let i = RIe(e, n);
+function ELe({ item: e, write: t, helpers: n, actions: r }) {
+ let i = XIe(e, n);
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-stage-tags": "",
id: "detailTags",
@@ -74132,16 +74405,16 @@ function mLe({ item: e, write: t, helpers: n, actions: r }) {
"aria-label": `删除标签 ${n.tagLabel(e.k)}`,
...t.busyAttrs(`tag:${e.k}`),
onClick: () => t.removeTag(e),
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "x" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "x" })
})]
- }, e.k)), /* @__PURE__ */ (0, z.jsx)(hLe, {
+ }, e.k)), /* @__PURE__ */ (0, z.jsx)(DLe, {
item: e,
write: t,
helpers: n
})]
});
}
-function hLe({ item: e, write: t, helpers: n }) {
+function DLe({ item: e, write: t, helpers: n }) {
let r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(!1), [s, c] = (0, R.useState)(!1), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(-1), h = (0, R.useCallback)(() => {
i.current && b(i.current), c(!1);
}, []);
@@ -74155,7 +74428,7 @@ function hLe({ item: e, write: t, helpers: n }) {
clearTimeout(t), document.removeEventListener("pointerdown", e, !0);
};
}, [s, h]);
- let g = s ? BIe(d, n.tagCandidates(), H7()) : {
+ let g = s ? QIe(d, n.tagCandidates(), V7()) : {
recent: [],
results: [],
create: ""
@@ -74183,12 +74456,12 @@ function hLe({ item: e, write: t, helpers: n }) {
if (n.key === "Enter") {
n.preventDefault();
let r = p >= 0 ? _[p] : null;
- r ? v(r, r.n !== -1 && R7(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
+ r ? v(r, r.n !== -1 && L7(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
}
}
}, x = -1, S = (t) => {
x += 1;
- let r = x, i = R7(e, t.k);
+ let r = x, i = L7(e, t.k);
return /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
"data-pick": t.k,
@@ -74196,7 +74469,7 @@ function hLe({ item: e, write: t, helpers: n }) {
"aria-pressed": i,
onClick: () => v(t, i),
children: [
- /* @__PURE__ */ (0, z.jsx)(K7, { name: i ? "check" : "tags" }),
+ /* @__PURE__ */ (0, z.jsx)(G7, { name: i ? "check" : "tags" }),
/* @__PURE__ */ (0, z.jsx)("span", {
"data-pick-name": "",
children: n.tagLabel(t.k)
@@ -74219,7 +74492,7 @@ function hLe({ item: e, write: t, helpers: n }) {
onClick: () => {
i.current && (A(i.current), c(!0), u(""), f(""), m(-1), requestAnimationFrame(() => a.current?.focus()));
},
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "plus" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "plus" })
}), /* @__PURE__ */ (0, z.jsxs)("div", {
ref: i,
id: "tagPicker",
@@ -74229,7 +74502,7 @@ function hLe({ item: e, write: t, helpers: n }) {
hidden: !0,
children: [/* @__PURE__ */ (0, z.jsxs)("label", {
"data-tag-search": "",
- children: [/* @__PURE__ */ (0, z.jsx)(K7, { name: "search" }), /* @__PURE__ */ (0, z.jsx)("input", {
+ children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "search" }), /* @__PURE__ */ (0, z.jsx)("input", {
ref: a,
id: "tagPickSearch",
maxLength: 80,
@@ -74270,7 +74543,7 @@ function hLe({ item: e, write: t, helpers: n }) {
onClick: () => {
h(), t.addTag(g.create);
},
- children: [/* @__PURE__ */ (0, z.jsx)(K7, { name: "plus" }), /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "plus" }), /* @__PURE__ */ (0, z.jsxs)("span", {
"data-pick-name": "",
children: [
"新建“",
@@ -74285,8 +74558,8 @@ function hLe({ item: e, write: t, helpers: n }) {
})]
})] });
}
-function gLe({ item: e }) {
- let t = JIe(e);
+function OLe({ item: e }) {
+ let t = oLe(e);
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
@@ -74320,7 +74593,7 @@ function gLe({ item: e }) {
})]
});
}
-function _Le({ item: e, open: t, write: n }) {
+function kLe({ item: e, open: t, write: n }) {
let [r, i] = (0, R.useState)(e.like_reason || ""), a = (0, R.useRef)(null);
(0, R.useEffect)(() => {
t && a.current?.focus();
@@ -74359,11 +74632,11 @@ function _Le({ item: e, open: t, write: n }) {
})]
});
}
-function vLe(e) {
+function ALe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Nn({
- queryKey: kIe(t.id, n),
+ queryKey: VIe(t.id, n),
queryFn: async ({ signal: e }) => {
- let r = await wi(jIe(t.id, n), e);
+ let r = await wi(UIe(t.id, n), e);
return i.cache(r.items || []), r.items || [];
}
}), [o] = (0, R.useState)(() => r.relatedSkeletonHtml()), s = (0, R.useCallback)((e) => {
@@ -74378,7 +74651,7 @@ function vLe(e) {
ref: s,
id: "nrow",
"data-related-row": "",
- children: a.data ? /* @__PURE__ */ (0, z.jsx)(yo, {
+ children: a.data ? /* @__PURE__ */ (0, z.jsx)(vo, {
mode: "items",
variant: "next",
items: a.data,
@@ -74392,12 +74665,12 @@ function vLe(e) {
cache: i.cache,
wireDrag: r.wireDrag,
skeletonHtml: () => ""
- }) : a.isError ? null : /* @__PURE__ */ (0, z.jsx)(q7, { html: o })
+ }) : a.isError ? null : /* @__PURE__ */ (0, z.jsx)(K7, { html: o })
})]
});
}
-function yLe(e, t, n, r) {
- let i = e.id, a = w7(i), [o, s] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(""), f = (e, t) => s((n) => {
+function jLe(e, t, n, r) {
+ let i = e.id, a = C7(i), [o, s] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(""), f = (e, t) => s((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), p = () => q.getQueryData(a) || e, m = (e) => {
@@ -74428,7 +74701,7 @@ function yLe(e, t, n, r) {
run: n
}));
}, v = async (e, t) => {
- let n = await h(MIe, t === void 0 ? { kind: e } : {
+ let n = await h(WIe, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -74448,21 +74721,21 @@ function yLe(e, t, n, r) {
"aria-disabled": !0
} : {},
rate: (e) => _(`rate:${e}`, "评分", async () => {
- let n = p().rating || 0, r = LIe(n, e);
- await v("rate", r), t.toast(r ? `已评 ${L7(r)} 星` : "已取消评分", { undo: async () => {
+ let n = p().rating || 0, r = YIe(n, e);
+ await v("rate", r), t.toast(r ? `已评 ${I7(r)} 星` : "已取消评分", { undo: async () => {
await v("rate", n);
} });
}),
feedback: (e) => _(e, "操作", async () => {
let n = { feedback: p().feedback || null }, r = await v(e);
- t.toast(YIe(e, r), { undo: async () => {
+ t.toast(sLe(e, r), { undo: async () => {
e === "o" ? await v("o-undo") : e === "dispose" ? await v("dispose") : (r.feedback && await v(r.feedback), n.feedback && await v(n.feedback)), await t.trashChanged(p().disposal || null, !0);
} }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);
}),
later: () => _("later", "更新稍后看", async () => {
- let e = await h(O7, {});
+ let e = await h(D7, {});
m({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- m({ watch_later: (await h(O7, {})).watch_later });
+ m({ watch_later: (await h(D7, {})).watch_later });
} });
}),
quality: () => _("quality", "更新版本需求", async () => {
@@ -74472,9 +74745,9 @@ function yLe(e, t, n, r) {
}, n = (e) => m({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await h(k7, { wanted: !e.wanted });
+ }), r = await h(O7, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await h(k7, e));
+ n(await h(O7, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -74488,7 +74761,7 @@ function yLe(e, t, n, r) {
});
d("保存中…");
try {
- o(await h(A7, {
+ o(await h(k7, {
liked: a,
reason: i
}));
@@ -74498,7 +74771,7 @@ function yLe(e, t, n, r) {
d("已保存"), setTimeout(() => d((e) => e === "已保存" ? "" : e), 1400);
let s = p();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await h(A7, r));
+ o(await h(k7, r));
} });
});
},
@@ -74507,11 +74780,11 @@ function yLe(e, t, n, r) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- m((t) => z7(t, e.k)), t.toast(`已删除标签「${r(e.k)}」`, { undo: async () => {
- await h(D7, {
+ m((t) => R7(t, e.k)), t.toast(`已删除标签「${r(e.k)}」`, { undo: async () => {
+ await h(E7, {
operation: "add",
tag: e.k
- }), m((t) => B7(t, e));
+ }), m((t) => z7(t, e));
} });
}),
addTag: (e) => {
@@ -74520,14 +74793,14 @@ function yLe(e, t, n, r) {
(await h("/api/item-tag", {
operation: "add",
tag: n
- })).ok && (m((e) => B7(e, {
+ })).ok && (m((e) => z7(e, {
k: n,
cat: "general"
- })), zIe(n), t.toast(`已添加标签「${r(n)}」`, { undo: async () => {
- await h(D7, {
+ })), ZIe(n), t.toast(`已添加标签「${r(n)}」`, { undo: async () => {
+ await h(E7, {
operation: "remove",
tag: n
- }), m((e) => z7(e, n));
+ }), m((e) => R7(e, n));
} }));
});
}
@@ -74535,31 +74808,31 @@ function yLe(e, t, n, r) {
}
//#endregion
//#region src/react/stage/stage-player.ts
-var Y7 = null, X7 = null, Z7 = null, Q7 = null, $7 = null, e9 = !1, t9 = 0, n9 = null, r9 = () => !1, i9 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function bLe(e, t) {
- Y7 = e, r9 = () => t.isOpen(), n9 = () => t.requestClose(), EFe({
+var J7 = null, Y7 = null, X7 = null, Z7 = null, Q7 = null, $7 = !1, e9 = 0, t9 = null, n9 = () => !1, r9 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
+function MLe(e, t) {
+ J7 = e, n9 = () => t.isOpen(), t9 = () => t.requestClose(), LFe({
...e.player,
stage: () => document.getElementById("stage")
- }), DFe({
- inMiniplayer: (e) => X7?.player === e,
- kind: (e) => X7?.player === e ? X7.kind : Z7?.kind ?? Q7?.kind ?? "item",
- expand: () => S9(),
- toMiniplayer: () => C9()
- }), a9 || (a9 = !0, addEventListener("pagehide", () => J5()));
-}
-var a9 = !1;
-function o9() {
- if (!Y7) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
- return Y7;
-}
-function s9(e) {
- Q7 = e;
-}
-var xLe = () => Q7;
-function c9(e, t) {
- let { kind: n, item: r, media: i = null } = t, a = i9(n, r.id, i?.index ?? null);
- if (X7 && X7.key === a) return SLe(e, X7);
- X7 && x9();
+ }), RFe({
+ inMiniplayer: (e) => Y7?.player === e,
+ kind: (e) => Y7?.player === e ? Y7.kind : X7?.kind ?? Z7?.kind ?? "item",
+ expand: () => x9(),
+ toMiniplayer: () => S9()
+ }), i9 || (i9 = !0, addEventListener("pagehide", () => J5()));
+}
+var i9 = !1;
+function a9() {
+ if (!J7) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
+ return J7;
+}
+function o9(e) {
+ Z7 = e;
+}
+var NLe = () => Z7;
+function s9(e, t) {
+ let { kind: n, item: r, media: i = null } = t, a = r9(n, r.id, i?.index ?? null);
+ if (Y7 && Y7.key === a) return PLe(e, Y7);
+ Y7 && b9();
let o = {
player: null,
kind: n,
@@ -74567,7 +74840,7 @@ function c9(e, t) {
mediaIndex: i?.index ?? null,
key: a
};
- Z7 = o;
+ X7 = o;
let s = document.createElement("video");
t.id && (s.id = t.id), s.className = "video-js vjs-big-play-centered", s.controls = !0, s.setAttribute("playsinline", ""), s.preload = "metadata", t.poster && (s.poster = t.poster), t.onError && s.addEventListener("error", t.onError), e.append(s);
let c = s7(s, {
@@ -74577,18 +74850,18 @@ function c9(e, t) {
autoplay: t.autoplay,
resume: t.resume ?? null,
onPlayer: (e) => {
- Z7 === o && (o.player = e);
+ X7 === o && (o.player = e);
},
- handedOff: (e) => X7?.player === e
+ handedOff: (e) => Y7?.player === e
});
return () => {
- let e = !!o.player && X7?.player === o.player;
- Z7 === o && (Z7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), J5());
+ let e = !!o.player && Y7?.player === o.player;
+ X7 === o && (X7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), J5());
};
}
-function SLe(e, t) {
+function PLe(e, t) {
let { player: n } = t;
- y9(t), X7 = null, b9(), n.el().classList.remove("vjs-peach-mini"), i7(e), e.append(n.el()), O5(n);
+ v9(t), Y7 = null, y9(), n.el().classList.remove("vjs-peach-mini"), i7(e), e.append(n.el()), O5(n);
let r = {
player: n,
kind: t.kind,
@@ -74596,23 +74869,23 @@ function SLe(e, t) {
mediaIndex: t.mediaIndex,
key: t.key
};
- Z7 = r;
+ X7 = r;
let i = a7(n, e);
return k5(n), () => {
- Z7 === r && (Z7 = null), i(), X7?.player !== n && (D5() === n && O5(null), o7(n), J5());
+ X7 === r && (X7 = null), i(), Y7?.player !== n && (D5() === n && O5(null), o7(n), J5());
};
}
-var l9 = () => {
- let e = Z7?.player;
+var c9 = () => {
+ let e = X7?.player;
return e && !e.isDisposed() ? e : null;
};
-function CLe(e) {
- let t = e9;
- e9 = !1, X7?.pending && x9();
- let n = Z7, r = n?.player, i = Q7;
- if (!n || !r || r.isDisposed() || !i || !$7) return;
- let a = o9().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && OLe({
+function FLe(e) {
+ let t = $7;
+ $7 = !1, Y7?.pending && b9();
+ let n = X7, r = n?.player, i = Z7;
+ if (!n || !r || r.isDisposed() || !i || !Q7) return;
+ let a = a9().player.settings();
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && BLe({
player: r,
kind: n.kind,
item: n.item,
@@ -74620,52 +74893,52 @@ function CLe(e) {
key: n.key
}, i);
}
-function wLe(e, t) {
- if (e9 = !1, X7) {
- if (X7.kind === e && X7.item.id === t) {
- X7.pending = !0, b9();
+function ILe(e, t) {
+ if ($7 = !1, Y7) {
+ if (Y7.kind === e && Y7.item.id === t) {
+ Y7.pending = !0, y9();
return;
}
- x9();
+ b9();
}
}
-function u9(e) {
- $7 = e, $7 && _9();
+function l9(e) {
+ Q7 = e, Q7 && g9();
}
-var d9 = () => !!X7 && !X7.pending && !X7.player.isDisposed();
-function TLe() {
- return d9() ? $7?.frame.querySelector("video") ?? null : null;
+var u9 = () => !!Y7 && !Y7.pending && !Y7.player.isDisposed();
+function LLe() {
+ return u9() ? Q7?.frame.querySelector("video") ?? null : null;
}
-function ELe() {
- return r9() ? document.getElementById("stage")?.querySelector("video") ?? null : TLe();
+function RLe() {
+ return n9() ? document.getElementById("stage")?.querySelector("video") ?? null : LLe();
}
-function f9(e) {
- $7 && ($7.title.textContent = e.title || "", $7.sub.textContent = e.sub || "", $7.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
+function d9(e) {
+ Q7 && (Q7.title.textContent = e.title || "", Q7.sub.textContent = e.sub || "", Q7.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
}
-function p9(e = X7?.item) {
- if (!$7) return;
- let t = $7.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
- $7.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
+function f9(e = Y7?.item) {
+ if (!Q7) return;
+ let t = Q7.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
+ Q7.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
}
-function m9() {
- let e = X7?.player;
- if (!e || e.isDisposed() || !$7) return;
+function p9() {
+ let e = Y7?.player;
+ if (!e || e.isDisposed() || !Q7) return;
let t = e.paused();
- $7.play.setAttribute("aria-label", t ? "播放" : "暂停"), $7.play.querySelector("[data-icon-swap]") || ($7.play.innerHTML = C("player-pause", "player-play", t ? "b" : "a")), ee($7.play, t ? "b" : "a");
+ Q7.play.setAttribute("aria-label", t ? "播放" : "暂停"), Q7.play.querySelector("[data-icon-swap]") || (Q7.play.innerHTML = C("player-pause", "player-play", t ? "b" : "a")), ee(Q7.play, t ? "b" : "a");
}
-function h9() {
- let e = X7?.player;
- if (!e || e.isDisposed() || !$7) return;
- let t = p(X7?.item.duration) || p(e.duration());
- $7.time.textContent = `${a(e.currentTime())} / ${t ? a(t) : "0:00"}`;
-}
-var g9 = () => Math.max(1, Number(o9().player.settings().seekSeconds) || 10);
-function _9() {
- if (!$7 || !Y7) return;
- let e = g9();
- for (let [t, n] of [[$7.back, `后退 ${e} 秒`], [$7.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
-}
-function v9(e) {
+function m9() {
+ let e = Y7?.player;
+ if (!e || e.isDisposed() || !Q7) return;
+ let t = p(Y7?.item.duration) || p(e.duration());
+ Q7.time.textContent = `${a(e.currentTime())} / ${t ? a(t) : "0:00"}`;
+}
+var h9 = () => Math.max(1, Number(a9().player.settings().seekSeconds) || 10);
+function g9() {
+ if (!Q7 || !J7) return;
+ let e = h9();
+ for (let [t, n] of [[Q7.back, `后退 ${e} 秒`], [Q7.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+}
+function _9(e) {
let t = (t, n) => {
e.player.on(t, n), e.off.push(() => {
try {
@@ -74677,17 +74950,17 @@ function v9(e) {
"play",
"pause",
"ended"
- ], m9), t([
+ ], p9), t([
"timeupdate",
"durationchange",
"loadedmetadata"
- ], h9), t("loadedmetadata", () => p9()), m9(), h9(), p9(), _9();
+ ], m9), t("loadedmetadata", () => f9()), p9(), m9(), f9(), g9();
}
-function y9(e) {
+function v9(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function DLe() {
- let e = $7?.root;
+function zLe() {
+ let e = Q7?.root;
if (!e) return;
let t = e.hidden;
if (e.hidden = !1, !t) return;
@@ -74695,8 +74968,8 @@ function DLe() {
let n = () => e.removeAttribute("data-miniplayer-enter");
e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);
}
-function b9() {
- let e = $7?.root;
+function y9() {
+ let e = Q7?.root;
if (e) {
e.hidden = !0;
for (let t of [
@@ -74707,78 +74980,78 @@ function b9() {
e.style.transform = "";
}
}
-function OLe(e, t) {
- if (!$7) return;
+function BLe(e, t) {
+ if (!Q7) return;
let n = {
...e,
meta: t,
off: [],
pending: !1
};
- X7 = n, t9++, e.player.el().classList.add("vjs-peach-mini"), $7.frame.prepend(e.player.el()), f9(t), v9(n), DLe(), k5(e.player);
+ Y7 = n, e9++, e.player.el().classList.add("vjs-peach-mini"), Q7.frame.prepend(e.player.el()), d9(t), _9(n), zLe(), k5(e.player);
}
-function x9() {
- let e = X7;
- e && y9(e), X7 = null, t9++;
+function b9() {
+ let e = Y7;
+ e && v9(e), Y7 = null, e9++;
let t = e?.player ?? null;
- t && D5() === t && O5(null), o7(t), t && J5(), $7?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), T5(), b9();
+ t && D5() === t && O5(null), o7(t), t && J5(), Q7?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), T5(), y9();
}
-function S9() {
- if (!d9() || !X7) return;
- let { kind: e, item: t, mediaIndex: n } = X7;
- o9().expand(e, t.id, n);
+function x9() {
+ if (!u9() || !Y7) return;
+ let { kind: e, item: t, mediaIndex: n } = Y7;
+ a9().expand(e, t.id, n);
}
-function C9() {
- if (d9() && !r9()) {
- S9();
+function S9() {
+ if (u9() && !n9()) {
+ x9();
return;
}
- r9() && l9() && n9 && (e9 = !0, n9());
+ n9() && c9() && t9 && ($7 = !0, t9());
}
-function kLe() {
- let e = X7?.player;
+function VLe() {
+ let e = Y7?.player;
!e || e.isDisposed() || (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
-function w9(e) {
- let t = X7?.player;
+function C9(e) {
+ let t = Y7?.player;
if (!t || t.isDisposed()) return;
- let n = p(t.duration()) || p(X7?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + g9() * e);
+ let n = p(t.duration()) || p(Y7?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + h9() * e);
t.currentTime(n ? Math.min(n, r) : r);
}
-function T9(e) {
- return !(!d9() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || o9().sourceOffline(String(e.location ?? "")));
-}
-async function ALe(e) {
- if (!d9() || !X7 || !$7) return;
- let n = ++t9, r = await t(`/api/item?id=${e}`).catch(() => null);
- if (n !== t9 || !d9() || !X7 || !$7 || !r || r.error) return;
- if (!T9(r)) {
- o9().openItem(e);
+function w9(e) {
+ return !(!u9() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || a9().sourceOffline(String(e.location ?? "")));
+}
+async function HLe(e) {
+ if (!u9() || !Y7 || !Q7) return;
+ let n = ++e9, r = await t(`/api/item?id=${e}`).catch(() => null);
+ if (n !== e9 || !u9() || !Y7 || !Q7 || !r || r.error) return;
+ if (!w9(r)) {
+ a9().openItem(e);
return;
}
- o9().cache(r);
- let i = X7;
- y9(i), D5() === i.player && O5(null), o7(i.player), J5(), $7.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ a9().cache(r);
+ let i = Y7;
+ v9(i), D5() === i.player && O5(null), o7(i.player), J5(), Q7.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let a = document.createElement("video");
- a.className = "video-js", a.setAttribute("playsinline", ""), a.preload = "metadata", $7.frame.prepend(a);
+ a.className = "video-js", a.setAttribute("playsinline", ""), a.preload = "metadata", Q7.frame.prepend(a);
let o = {
kind: "item",
item: r,
title: String(r.title || r.name || ""),
sub: String(r.performers?.[0] || r.creator || "未归属")
};
- f9(o), s7(a, {
+ d9(o), s7(a, {
kind: "item",
item: r,
autoplay: !0,
chrome: !1,
onPlayer: (t) => {
- if (n !== t9) {
+ if (n !== e9) {
t && D5() === t && O5(null), o7(t);
return;
}
if (!t) {
- x9(), o9().openItem(e);
+ b9(), a9().openItem(e);
return;
}
t.el().classList.add("vjs-peach-mini");
@@ -74787,26 +75060,26 @@ async function ALe(e) {
kind: "item",
item: r,
mediaIndex: null,
- key: i9("item", r.id, null),
+ key: r9("item", r.id, null),
meta: o,
off: [],
pending: !1
};
- X7 = i, v9(i);
+ Y7 = i, _9(i);
}
- }), p9(r);
+ }), f9(r);
}
//#endregion
//#region src/react/stage/miniplayer.tsx
-var E9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
+var T9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
-}), jLe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, D9 = (e) => (t) => {
+}), ULe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, E9 = (e) => (t) => {
t.stopPropagation(), e();
-}, MLe = (0, R.memo)(function() {
+}, WLe = (0, R.memo)(function() {
let e = (0, R.useRef)(null), t = (0, R.useRef)(null), n = (0, R.useRef)(null), r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = (0, R.useRef)(null), l = (0, R.useRef)(null);
- return (0, R.useLayoutEffect)(() => (u9({
+ return (0, R.useLayoutEffect)(() => (l9({
root: e.current,
frame: n.current,
play: r.current,
@@ -74816,7 +75089,7 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => u9(null)), []), (0, R.useEffect)(() => PLe(e.current, t.current), []), /* @__PURE__ */ (0, z.jsx)("aside", {
+ }), () => l9(null)), []), (0, R.useEffect)(() => KLe(e.current, t.current), []), /* @__PURE__ */ (0, z.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -74840,24 +75113,24 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
id: "miniplayerExpand",
"aria-label": "展开到详情",
"aria-keyshortcuts": "i",
- onClick: D9(S9),
- children: /* @__PURE__ */ (0, z.jsx)(E9, { name: "maximize-2" })
+ onClick: E9(x9),
+ children: /* @__PURE__ */ (0, z.jsx)(T9, { name: "maximize-2" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"data-miniplayer-button": "close",
id: "miniplayerClose",
"aria-label": "关闭小窗",
- onClick: D9(x9),
- children: /* @__PURE__ */ (0, z.jsx)(E9, { name: "x" })
+ onClick: E9(b9),
+ children: /* @__PURE__ */ (0, z.jsx)(T9, { name: "x" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
ref: a,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerBack",
- onClick: D9(() => w9(-1)),
- children: /* @__PURE__ */ (0, z.jsx)(E9, { name: "rotate-ccw" })
+ onClick: E9(() => C9(-1)),
+ children: /* @__PURE__ */ (0, z.jsx)(T9, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
ref: r,
@@ -74866,16 +75139,16 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: D9(kLe),
- dangerouslySetInnerHTML: jLe
+ onClick: E9(VLe),
+ dangerouslySetInnerHTML: ULe
}),
/* @__PURE__ */ (0, z.jsx)("button", {
ref: o,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerAhead",
- onClick: D9(() => w9(1)),
- children: /* @__PURE__ */ (0, z.jsx)(E9, { name: "rotate-cw" })
+ onClick: E9(() => C9(1)),
+ children: /* @__PURE__ */ (0, z.jsx)(T9, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, z.jsx)("span", {
ref: i,
@@ -74892,7 +75165,7 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
"data-miniplayer-info": "",
id: "miniplayerInfo",
"aria-label": "展开到详情",
- onClick: () => S9(),
+ onClick: () => x9(),
children: [/* @__PURE__ */ (0, z.jsx)("span", {
ref: s,
"data-miniplayer-title": "",
@@ -74906,7 +75179,7 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
})
});
});
-function NLe(e, t, n) {
+function GLe(e, t, n) {
let r = e.getBoundingClientRect(), i = (r.top + r.height / 2 < innerHeight / 2 ? "t" : "b") + (r.left + r.width / 2 < innerWidth / 2 ? "l" : "r"), a = parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 56, o = {
left: r.left - t,
top: r.top - n
@@ -74928,7 +75201,7 @@ function NLe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function PLe(e, t) {
+function KLe(e, t) {
let n = null, r = (e) => {
if (!(e.button !== 0 || e.target.closest("[data-miniplayer-button],[data-miniplayer-play],[data-miniplayer-seek],.vjs-control-bar"))) {
n = {
@@ -74954,7 +75227,7 @@ function PLe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), NLe(e, i.dx, i.dy));
+ }, 0), GLe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -74966,65 +75239,65 @@ function PLe(e, t) {
}
//#endregion
//#region src/react/stage/stage.tsx
-var O9 = null, k9 = null, A9 = null, j9 = null, M9 = 0, N9 = null, P9 = !1, F9 = !1, I9 = () => {
+var D9 = null, O9 = null, k9 = null, A9 = null, j9 = 0, M9 = null, N9 = !1, P9 = !1, F9 = () => {
let e = document.getElementById("stage");
return e instanceof HTMLDialogElement ? e : null;
};
-function L9() {
- if (!O9) throw Error("舞台还没有接上宿主(configureStage)");
- return O9;
+function I9() {
+ if (!D9) throw Error("舞台还没有接上宿主(configureStage)");
+ return D9;
}
-function FLe() {
- return (!k9 || !A9?.isConnected) && (k9?.unmount(), A9 = document.createElement("div"), A9.dataset.stageHost = "", document.body.append(A9), k9 = (0, xe.createRoot)(A9)), k9;
+function qLe() {
+ return (!O9 || !k9?.isConnected) && (O9?.unmount(), k9 = document.createElement("div"), k9.dataset.stageHost = "", document.body.append(k9), O9 = (0, xe.createRoot)(k9)), O9;
}
-function R9() {
- let e = FLe();
- (0, be.flushSync)(() => e.render(/* @__PURE__ */ (0, z.jsx)(uI, { children: /* @__PURE__ */ (0, z.jsx)(ILe, { view: j9 }) })));
+function L9() {
+ let e = qLe();
+ (0, be.flushSync)(() => e.render(/* @__PURE__ */ (0, z.jsx)(gI, { children: /* @__PURE__ */ (0, z.jsx)(JLe, { view: A9 }) })));
}
-function ILe({ view: e }) {
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [e ? /* @__PURE__ */ (0, z.jsx)(LLe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, z.jsx)(MLe, {})] });
+function JLe({ view: e }) {
+ return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [e ? /* @__PURE__ */ (0, z.jsx)(YLe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, z.jsx)(WLe, {})] });
}
-var z9 = () => /* @__PURE__ */ (0, z.jsx)("div", {
+var R9 = () => /* @__PURE__ */ (0, z.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: TFe() }
+ dangerouslySetInnerHTML: { __html: IFe() }
});
-function B9(e) {
+function z9(e) {
let t = e.currentTarget;
if (e.target !== t) return !1;
let n = t.getBoundingClientRect();
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
-function LLe({ view: e }) {
+function YLe({ view: e }) {
let t = (0, R.useRef)(null);
(0, R.useLayoutEffect)(() => {
let e = t.current, n = (e) => {
- e.preventDefault(), V9();
+ e.preventDefault(), B9();
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, z.jsx)(nLe, { ...r.props }) : /* @__PURE__ */ (0, z.jsx)(CIe, { ...r.props });
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, z.jsx)(mLe, { ...r.props }) : /* @__PURE__ */ (0, z.jsx)(FIe, { ...r.props });
return /* @__PURE__ */ (0, z.jsxs)("dialog", {
ref: t,
id: "stage",
"data-stage": "",
"aria-label": "作品详情",
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), V9());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), B9());
},
onPointerDown: (e) => {
- F9 = B9(e);
+ P9 = z9(e);
},
onClick: (e) => {
- F9 && B9(e) && V9();
+ P9 && z9(e) && B9();
},
children: [
- n === "skeleton" ? /* @__PURE__ */ (0, z.jsx)(z9, {}, "skeleton") : null,
+ n === "skeleton" ? /* @__PURE__ */ (0, z.jsx)(R9, {}, "skeleton") : null,
n === "reveal" ? /* @__PURE__ */ (0, z.jsx)("div", {
"data-stage-fade": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, z.jsx)(z9, {})
+ children: /* @__PURE__ */ (0, z.jsx)(R9, {})
}, "fade") : null,
n === "skeleton" ? null : /* @__PURE__ */ (0, z.jsx)("div", {
"data-stage-scroll": "",
@@ -75036,32 +75309,32 @@ function LLe({ view: e }) {
]
});
}
-function V9() {
- !j9 || P9 || (P9 = !0, j9.request.actions.close());
+function B9() {
+ !A9 || N9 || (N9 = !0, A9.request.actions.close());
}
-function H9(e, t) {
- let n = I9();
+function V9(e, t) {
+ let n = F9();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function RLe(e) {
+function XLe(e) {
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
- }, r = () => L9().player.settings();
+ }, r = () => I9().player.settings();
if (e.kind === "item") {
let { kind: t, resume: i, actions: a, ...o } = e, s = {
...a,
- close: V9,
+ close: B9,
present: (e, t) => {
let n = e.performers;
- s9({
+ o9({
kind: "item",
item: e,
title: String(e.title || e.name || ""),
sub: String(n?.[0] || e.creator || "未归属")
- }), H9(r().ambientMode, r().theaterMode), a.present(e, t);
+ }), V9(r().ambientMode, r().theaterMode), a.present(e, t);
},
- mountPlayer: (e, t, r, i) => c9(e, {
+ mountPlayer: (e, t, r, i) => s9(e, {
kind: "item",
item: t,
autoplay: i?.autoplay,
@@ -75079,16 +75352,16 @@ function RLe(e) {
}
let { kind: i, resume: a, actions: o, ...s } = e, c = {
...o,
- close: V9,
+ close: B9,
present: (e, t) => {
- s9({
+ o9({
kind: "follow",
item: e,
title: e.title || "",
sub: e.author || e.source_label || ""
- }), H9(t === "video" && r().ambientMode, t === "video" && r().theaterMode), o.present(e, t);
+ }), V9(t === "video" && r().ambientMode, t === "video" && r().theaterMode), o.present(e, t);
},
- mountPlayer: (e, t, r, i) => c9(e, {
+ mountPlayer: (e, t, r, i) => s9(e, {
kind: "follow",
item: t,
media: r,
@@ -75105,48 +75378,48 @@ function RLe(e) {
}
};
}
-function zLe(e, t) {
+function ZLe(e, t) {
let n = e.querySelector(":scope > [data-stage-fade]");
e.setAttribute("data-stage-reveal", ""), e.getBoundingClientRect(), e.setAttribute("data-stage-revealing", "");
let r = 0, i = () => {
- clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), j9?.generation === t && j9.phase === "reveal" && (j9 = {
- ...j9,
+ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), A9?.generation === t && A9.phase === "reveal" && (A9 = {
+ ...A9,
phase: "content"
- }, R9());
+ }, L9());
}, a = (e) => {
e.target === n && i();
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-async function BLe(e) {
- j9 && U9({ miniplayer: !1 });
- let t = ++M9, n = new AbortController();
- N9 = n, P9 = !1, F9 = !1, wLe(e.kind, e.id ?? NaN), j9 = {
+async function QLe(e) {
+ A9 && H9({ miniplayer: !1 });
+ let t = ++j9, n = new AbortController();
+ M9 = n, N9 = !1, P9 = !1, ILe(e.kind, e.id ?? NaN), A9 = {
generation: t,
request: e,
- content: RLe(e),
+ content: XLe(e),
phase: "skeleton"
- }, R9();
- let r = I9();
+ }, L9();
+ let r = F9();
if (!r) return;
S(r), document.body.setAttribute("data-detail-open", ""), r.open || r.showModal();
- let i = j9.content;
+ let i = A9.content;
try {
- i.kind === "item" ? await PIe(i.props, n.signal) : await sIe(i.props, n.signal);
+ i.kind === "item" ? await KIe(i.props, n.signal) : await vIe(i.props, n.signal);
} catch {
if (n.signal.aborted) return;
}
- if (t !== M9 || !j9) return;
+ if (t !== j9 || !A9) return;
let a = !!r.querySelector(".skeleton-awaiting");
- j9 = {
- ...j9,
+ A9 = {
+ ...A9,
phase: a ? "content" : "reveal"
- }, R9(), a || zLe(r, t), j(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, L9(), a || ZLe(r, t), j(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let o = document.activeElement;
(o === r || !r.contains(o)) && r.querySelector("#closeStage")?.focus();
}
-function VLe() {
- let e = I9();
+function $Le() {
+ let e = F9();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
let n = 0, r = () => {
clearTimeout(n), e.removeEventListener("animationend", i), t();
@@ -75156,77 +75429,77 @@ function VLe() {
e.addEventListener("animationend", i), n = window.setTimeout(r, 380);
}));
}
-function U9({ miniplayer: e = !0 } = {}) {
- if (M9++, N9?.abort(), N9 = null, CLe(e), !j9) return;
- let t = I9();
- t && L9().release(t), T5(), t?.open && t.close(), j9 = null, P9 = !1, F9 = !1, R9(), s9(null), document.body.removeAttribute("data-detail-open");
+function H9({ miniplayer: e = !0 } = {}) {
+ if (j9++, M9?.abort(), M9 = null, FLe(e), !A9) return;
+ let t = F9();
+ t && I9().release(t), T5(), t?.open && t.close(), A9 = null, N9 = !1, P9 = !1, L9(), o9(null), document.body.removeAttribute("data-detail-open");
}
-function HLe(e) {
- !j9 || j9.content.kind !== "item" || (j9 = {
- ...j9,
+function eRe(e) {
+ !A9 || A9.content.kind !== "item" || (A9 = {
+ ...A9,
content: {
kind: "item",
props: {
- ...j9.content.props,
+ ...A9.content.props,
...e
}
}
- }, R9());
+ }, L9());
}
-function ULe() {
- let e = xLe(), t = e?.kind === "item" ? e.item : null, n = t ? L9().player.posterUrl(t) : "";
+function tRe() {
+ let e = NLe(), t = e?.kind === "item" ? e.item : null, n = t ? I9().player.posterUrl(t) : "";
if (!n) return;
- let r = l9();
+ let r = c9();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var WLe = {
- open: BLe,
- update: HLe,
- exit: VLe,
- dispose: U9,
- requestClose: V9,
- repaintPoster: ULe,
- isOpen: () => !!j9,
- activeVideo: () => ELe(),
+var nRe = {
+ open: QLe,
+ update: eRe,
+ exit: $Le,
+ dispose: H9,
+ requestClose: B9,
+ repaintPoster: tRe,
+ isOpen: () => !!A9,
+ activeVideo: () => RLe(),
toggleTheater: () => {
- j9 && U5(!L9().player.settings().theaterMode);
+ A9 && U5(!I9().player.settings().theaterMode);
},
- toggleMiniplayer: () => C9(),
- closeMiniplayer: () => x9(),
- miniplayerActive: () => d9(),
- miniplayerTakesCard: (e) => T9(e),
+ toggleMiniplayer: () => S9(),
+ closeMiniplayer: () => b9(),
+ miniplayerActive: () => u9(),
+ miniplayerTakesCard: (e) => w9(e),
miniplayerPlay: (e) => {
- ALe(e);
+ HLe(e);
}
};
-function GLe(e) {
- return O9 = e, bLe(e, {
- isOpen: () => !!j9,
- requestClose: V9
- }), R9(), WLe;
+function U9(e) {
+ return D9 = e, MLe(e, {
+ isOpen: () => !!A9,
+ requestClose: B9
+ }), L9(), nRe;
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
-function KLe(e) {
+function rRe(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 qLe = (e) => {
+var iRe = (e) => {
switch (e) {
- case "success": return XLe;
- case "info": return QLe;
- case "warning": return ZLe;
- case "error": return $Le;
+ case "success": return sRe;
+ case "info": return lRe;
+ case "warning": return cRe;
+ case "error": return uRe;
default: return null;
}
-}, JLe = Array(12).fill(0), YLe = ({ visible: e, className: t }) => /*#__PURE__*/ R.createElement("div", {
+}, aRe = Array(12).fill(0), oRe = ({ visible: e, className: t }) => /*#__PURE__*/ R.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ R.createElement("div", { className: "sonner-spinner" }, JLe.map((e, t) => /*#__PURE__*/ R.createElement("div", {
+}, /*#__PURE__*/ R.createElement("div", { className: "sonner-spinner" }, aRe.map((e, t) => /*#__PURE__*/ R.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), XLe = /*#__PURE__*/ R.createElement("svg", {
+})))), sRe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -75237,7 +75510,7 @@ var qLe = (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"
-})), ZLe = /*#__PURE__*/ R.createElement("svg", {
+})), cRe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -75248,7 +75521,7 @@ var qLe = (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"
-})), QLe = /*#__PURE__*/ R.createElement("svg", {
+})), lRe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -75259,7 +75532,7 @@ var qLe = (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"
-})), $Le = /*#__PURE__*/ R.createElement("svg", {
+})), uRe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -75270,7 +75543,7 @@ var qLe = (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"
-})), eRe = /*#__PURE__*/ R.createElement("svg", {
+})), dRe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -75291,7 +75564,7 @@ var qLe = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), tRe = () => {
+})), fRe = () => {
let [e, t] = R.useState(document.hidden);
return R.useEffect(() => {
let e = () => {
@@ -75299,7 +75572,7 @@ var qLe = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, nRe = 1, rRe = 100, W9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : nRe++, G9 = new class {
+}, pRe = 1, mRe = 100, W9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : pRe++, G9 = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -75309,7 +75582,7 @@ var qLe = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - rRe;
+ let e = this.toasts.length - mRe;
e <= 0 || (this.toasts = this.toasts.filter((t) => e > 0 && this.dismissedToasts.has(t.id) ? (this.dismissedToasts.delete(t.id), e--, !1) : !0));
}, this.create = (e) => {
let { message: t, ...n } = e, r = W9(e), i = this.pendingDismissals.get(r);
@@ -75387,7 +75660,7 @@ var qLe = (e) => {
type: "default",
message: e
});
- else if (aRe(e) && !e.ok) {
+ else if (gRe(e) && !e.ok) {
i = !1;
let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !R.isValidElement(r) ? r : { message: r };
this.create({
@@ -75440,7 +75713,7 @@ var qLe = (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();
}
-}(), iRe = (e, t) => G9.message(e, t), aRe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", K9 = Object.assign(iRe, {
+}(), hRe = (e, t) => G9.message(e, t), gRe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", K9 = Object.assign(hRe, {
success: G9.success,
info: G9.info,
warning: G9.warning,
@@ -75454,20 +75727,20 @@ var qLe = (e) => {
getHistory: () => G9.toasts,
getToasts: () => G9.getActiveToasts()
});
-KLe("[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%)}");
+rRe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
function q9(e) {
return e.label !== void 0;
}
-var oRe = 3, sRe = "24px", cRe = "16px", J9 = 4e3, lRe = 356, uRe = 14, dRe = 45, fRe = 200;
+var _Re = 3, vRe = "24px", yRe = "16px", J9 = 4e3, bRe = 356, xRe = 14, SRe = 45, CRe = 200;
function Y9(...e) {
return e.filter(Boolean).join(" ");
}
-function pRe(e) {
+function wRe(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var mRe = (e) => {
- let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = R.useState(null), [O, k] = R.useState(null), [A, j] = R.useState(!1), [M, N] = R.useState(!1), [P, ee] = R.useState(!1), [F, I] = R.useState(!1), [te, ne] = R.useState(!1), [re, ie] = R.useState(0), [ae, oe] = R.useState(0), se = R.useRef(n.duration || y || J9), ce = R.useRef(null), le = R.useRef(null), ue = c === 0, L = c + 1 <= o, de = n.type, fe = de ?? "default", pe = n.dismissible !== !1, me = n.className || "", he = n.descriptionClassName || "", ge = R.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), _e = R.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ve = R.useMemo(() => n.duration || y || J9, [n.duration, y]), ye = R.useRef(0), be = R.useRef(0), xe = R.useRef(0), Se = R.useRef(null), [Ce, we] = b.split("-"), Te = R.useMemo(() => s.reduce((e, t, n) => n >= ge ? e : e + t.height, 0), [s, ge]), Ee = tRe(), De = R.useMemo(() => e.swipeDirections ?? pRe(b), [e.swipeDirections, b]), Oe = n.invert || t, ke = de === "loading";
+var TRe = (e) => {
+ let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = R.useState(null), [O, k] = R.useState(null), [A, j] = R.useState(!1), [M, N] = R.useState(!1), [P, ee] = R.useState(!1), [F, I] = R.useState(!1), [te, ne] = R.useState(!1), [re, ie] = R.useState(0), [ae, oe] = R.useState(0), se = R.useRef(n.duration || y || J9), ce = R.useRef(null), le = R.useRef(null), ue = c === 0, L = c + 1 <= o, de = n.type, fe = de ?? "default", pe = n.dismissible !== !1, me = n.className || "", he = n.descriptionClassName || "", ge = R.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), _e = R.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ve = R.useMemo(() => n.duration || y || J9, [n.duration, y]), ye = R.useRef(0), be = R.useRef(0), xe = R.useRef(0), Se = R.useRef(null), [Ce, we] = b.split("-"), Te = R.useMemo(() => s.reduce((e, t, n) => n >= ge ? e : e + t.height, 0), [s, ge]), Ee = fRe(), De = R.useMemo(() => e.swipeDirections ?? wRe(b), [e.swipeDirections, b]), Oe = n.invert || t, ke = de === "loading";
be.current = R.useMemo(() => ge * x + Te, [ge, Te]), R.useEffect(() => {
se.current = ve;
}, [ve]), R.useEffect(() => {
@@ -75508,7 +75781,7 @@ var mRe = (e) => {
let Ae = R.useCallback(() => {
N(!0), ie(be.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, fRe);
+ }, CRe);
}, [
n,
d,
@@ -75541,12 +75814,12 @@ var mRe = (e) => {
return w?.loading ? /*#__PURE__*/ R.createElement("div", {
className: Y9(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": de === "loading"
- }, w.loading) : /*#__PURE__*/ R.createElement(YLe, {
+ }, w.loading) : /*#__PURE__*/ R.createElement(oRe, {
className: Y9(C?.loader, n?.classNames?.loader),
visible: de === "loading"
});
}
- let Me = n.icon || w?.[de] || qLe(de);
+ let Me = n.icon || w?.[de] || iRe(de);
return /*#__PURE__*/ R.createElement("li", {
tabIndex: 0,
ref: le,
@@ -75593,7 +75866,7 @@ var mRe = (e) => {
if (F || !pe) return;
Se.current = null;
let e = Number(le.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(le.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - ce.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;
- if ((E === "x" ? De.includes(e > 0 ? "right" : "left") : De.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= dRe || a > .11)) {
+ if ((E === "x" ? De.includes(e > 0 ? "right" : "left") : De.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= SRe || a > .11)) {
ie(be.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Ae(), I(!0);
return;
}
@@ -75634,7 +75907,7 @@ var mRe = (e) => {
Ae(), n.onDismiss == null || n.onDismiss.call(n, n);
},
className: Y9(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? eRe) : null, (de || n.icon || n.promise) && n.icon !== null && (w?.[de] !== null || n.icon) ? /*#__PURE__*/ R.createElement("div", {
+ }, w?.close ?? dRe) : null, (de || n.icon || n.promise) && n.icon !== null && (w?.[de] !== null || n.icon) ? /*#__PURE__*/ R.createElement("div", {
"data-icon": "",
className: Y9(C?.icon, n?.classNames?.icon)
}, de === "loading" ? n.icon || je() : n.promise ? je() : null, de === "loading" ? null : Me) : null, /*#__PURE__*/ R.createElement("div", {
@@ -75669,10 +75942,10 @@ function X9() {
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function hRe(e, t) {
+function ERe(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? cRe : sRe;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? yRe : vRe;
function o(e) {
[
"top",
@@ -75693,8 +75966,8 @@ function hRe(e, t) {
}) : o(a);
}), n;
}
-var gRe = /*#__PURE__*/ R.forwardRef(function(e, t) {
- let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = oRe, toastOptions: g, dir: _ = X9(), gap: v = uRe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = R.useState([]), w = R.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = R.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = R.useState([]), [O, k] = R.useState(!1), [A, j] = R.useState(!1), [M, N] = R.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), P = R.useRef(null), ee = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), F = R.useRef(null), I = R.useRef(!1), te = R.useCallback((e) => {
+var DRe = /*#__PURE__*/ R.forwardRef(function(e, t) {
+ let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = _Re, toastOptions: g, dir: _ = X9(), gap: v = xRe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = R.useState([]), w = R.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = R.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = R.useState([]), [O, k] = R.useState(!1), [A, j] = R.useState(!1), [M, N] = R.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), P = R.useRef(null), ee = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), F = R.useRef(null), I = R.useRef(!1), te = R.useCallback((e) => {
C((t) => (t.find((t) => t.id === e.id)?.delete || G9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
return R.useEffect(() => G9.subscribe((e) => {
@@ -75780,10 +76053,10 @@ var gRe = /*#__PURE__*/ R.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${lRe}px`,
+ "--width": `${bRe}px`,
"--gap": `${v}px`,
...m,
- ...hRe(l, u)
+ ...ERe(l, u)
},
onBlur: (e) => {
I.current && !e.currentTarget.contains(e.relatedTarget) && (I.current = !1, F.current &&= (F.current.focus({ preventScroll: !0 }), null));
@@ -75801,7 +76074,7 @@ var gRe = /*#__PURE__*/ R.forwardRef(function(e, t) {
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || j(!0);
},
onPointerUp: () => j(!1)
- }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ R.createElement(mRe, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ R.createElement(TRe, {
key: n.id,
icons: y,
index: i,
@@ -75835,8 +76108,8 @@ var gRe = /*#__PURE__*/ R.forwardRef(function(e, t) {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), Q9 = !1, _Re = (e, t) => {
- Q9 || (Q9 = !0, (0, xe.createRoot)(e).render(/* @__PURE__ */ (0, z.jsx)(gRe, {
+}), Q9 = !1, ORe = (e, t) => {
+ Q9 || (Q9 = !0, (0, xe.createRoot)(e).render(/* @__PURE__ */ (0, z.jsx)(DRe, {
position: "bottom-right",
closeButton: !0,
gap: 8,
@@ -75857,7 +76130,7 @@ var gRe = /*#__PURE__*/ R.forwardRef(function(e, t) {
error: Z9(t.error, !1)
}
})));
-}, vRe = (e, t) => {
+}, kRe = (e, t) => {
let n = t.alert ? K9.error : K9.success, r = t.action;
n(/* @__PURE__ */ (0, z.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
@@ -75874,94 +76147,98 @@ var gRe = /*#__PURE__*/ R.forwardRef(function(e, t) {
//#region src/react/entry.tsx
function $9(e) {
return (t, n) => {
- let r = (0, xe.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, z.jsx)(uI, { children: /* @__PURE__ */ (0, z.jsx)(e, { ...t }) }));
+ let r = (0, xe.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, z.jsx)(gI, { children: /* @__PURE__ */ (0, z.jsx)(e, { ...t }) }));
return (0, be.flushSync)(() => i(n)), {
update: i,
unmount: () => r.unmount()
};
};
}
-var yRe = {
+var ARe = {
activity: {
prefetch: (e, t) => Yi(t),
mount: $9(_a)
},
"catalog-grid": {
prefetch: Oa,
- mount: $9(yo)
+ mount: $9(vo)
},
configuration: {
- prefetch: (e, t) => kI(t),
- mount: $9(Vpe)
+ prefetch: (e, t) => FI(t),
+ mount: $9(Kpe)
},
"configuration-summary": {
- prefetch: (e, t) => kI(t),
- mount: $9(Upe)
+ prefetch: (e, t) => FI(t),
+ mount: $9(Jpe)
},
"data-cleanup": {
- prefetch: (e, t) => vl(t),
- mount: $9(rse)
+ prefetch: (e, t) => _l(t),
+ mount: $9(ise)
},
duplicates: {
- prefetch: (e, t) => Ro(t),
- mount: $9(fse)
+ prefetch: (e, t) => Lo(t),
+ mount: $9(pse)
},
"entity-hero": {
prefetch: async () => {},
- mount: $9(aj)
+ mount: $9(gj)
},
"entity-filter": {
prefetch: async () => {},
- mount: $9(Hse)
+ mount: $9(Kse)
+ },
+ "catalog-filter": {
+ prefetch: async () => {},
+ mount: $9(Qse)
},
"entity-body": {
prefetch: async () => {},
- mount: $9(Mse)
+ mount: $9(Ise)
},
"follow-feed": {
- prefetch: rle,
- mount: $9(wle)
+ prefetch: ole,
+ mount: $9(Dle)
},
"follow-manage": {
- prefetch: (e, t) => Jce(t, e.tab),
- mount: $9(Cde)
+ prefetch: (e, t) => Zce(t, e.tab),
+ mount: $9(Ode)
},
index: {
- prefetch: (e, t) => Bk(e, t),
- mount: $9(Rde)
+ prefetch: (e, t) => Lk(e, t),
+ mount: $9(Ude)
},
"junk-queue": {
prefetch: async () => {},
- mount: $9(tfe)
+ mount: $9(ofe)
},
"library-processing": {
- prefetch: (e, t) => Yo(t),
- mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, z.jsx)(sfe, { ...e }) : /* @__PURE__ */ (0, z.jsx)(FO, { ...e }))
+ prefetch: (e, t) => Jo(t),
+ mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, z.jsx)(ffe, { ...e }) : /* @__PURE__ */ (0, z.jsx)(RO, { ...e }))
},
playlists: {
- prefetch: (e, t) => lfe(t),
- mount: $9(xfe)
+ prefetch: (e, t) => mfe(t),
+ mount: $9(Efe)
},
"quality-goals": {
- prefetch: (e, t) => xs(t),
- mount: $9(Cfe)
+ prefetch: (e, t) => bs(t),
+ mount: $9(Ofe)
},
review: {
- prefetch: (e, t) => nc(t),
- mount: $9(Bfe)
+ prefetch: (e, t) => tc(t),
+ mount: $9(Gfe)
},
scraping: {
- prefetch: (e, t) => qfe(t),
- mount: $9(epe)
+ prefetch: (e, t) => Qfe(t),
+ mount: $9(ape)
},
stats: {
- prefetch: (e, t) => Gpe(t),
- mount: $9(QNe)
+ prefetch: (e, t) => Xpe(t),
+ mount: $9(lPe)
},
taste: {
- prefetch: (e, t) => SPe("all", t),
- mount: $9(SFe)
+ prefetch: (e, t) => NPe("all", t),
+ mount: $9(NFe)
}
};
//#endregion
-export { GLe as configureStage, _Re as mountToaster, yRe as pages, vRe as showToast };
+export { U9 as configureStage, ORe as mountToaster, ARe as pages, kRe as showToast };
diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.js
index 9349ffdfa..47bebe5c2 100644
--- a/web/dist/peach-ui.js
+++ b/web/dist/peach-ui.js
@@ -273,7 +273,7 @@ function ne(e, t, n) {
function w(e, n = 0, r = 0) {
return r > 0 ? ne(e, n, r) : t(e);
}
-async function re(e) {
+async function T(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -288,14 +288,14 @@ async function re(e) {
await t(2e3);
}
}
-function ie(e) {
+function re(e) {
let n = e.note || ((e) => r(e, {
label: "任务状态",
variant: "error"
})), i = e.loading || t, a = e.progress || ((e, t, n) => w(n || `已处理 ${e} / ${t}`, e, t)), o = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), s = document.createElement("div");
e.host.hidden = !0, s.dataset.followJob = "", s.setAttribute("aria-live", "polite"), e.host.prepend(s);
let c = e.storageKey || "peach-follow-job", l = sessionStorage.getItem(c) || void 0, u = !1;
- re({
+ T({
read: e.read,
active: () => !u && e.active() && s.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -321,11 +321,11 @@ function ie(e) {
}
//#endregion
//#region src/selection.ts
-function ae(e, t, n, r, i, a = i || !e.has(r)) {
+function ie(e, t, n, r, i, a = i || !e.has(r)) {
let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);
return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;
}
-function oe(e, t) {
+function ae(e, t) {
let n = t.filter((t) => e.has(t)).length;
return {
count: n,
@@ -333,14 +333,14 @@ function oe(e, t) {
mixed: n > 0 && n < t.length
};
}
-function se(e, t, n) {
+function oe(e, t, n) {
t.forEach((t) => n ? e.add(t) : e.delete(t));
}
-function ce({ count: e, label: t, all: n, summary: r, actions: i, locked: a = !1 }) {
+function se({ count: e, label: t, all: n, summary: r, actions: i, locked: a = !1 }) {
e && (e.textContent = t), n && (n.checked = r.all, n.indeterminate = r.mixed);
for (let e of i) e.disabled = !r.count || a;
}
-function le(e, t, n = 1) {
+function ce(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;
@@ -360,15 +360,15 @@ function le(e, t, n = 1) {
t
];
}
-function ue(e, t) {
+function le(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function de(e, t) {
+function ue(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
-function fe(e, t, n) {
+function de(e, t, n) {
if (t <= 1) return "";
- let r = le(e, t).map((t) => t === "…" ? "<li class=\"board-page-dots\" aria-hidden=\"true\">…</li>" : `<li><button type="button" class="board-page" data-page="${t}" aria-label="第 ${t} 页"${t === e ? " aria-current=\"page\"" : ""}>${t}</button></li>`).join("");
+ let r = ce(e, t).map((t) => t === "…" ? "<li class=\"board-page-dots\" aria-hidden=\"true\">…</li>" : `<li><button type="button" class="board-page" data-page="${t}" aria-label="第 ${t} 页"${t === e ? " aria-current=\"page\"" : ""}>${t}</button></li>`).join("");
return `<nav class="board-pagination" aria-label="${n}">
<button type="button" class="geist-button" data-page="${e - 1}"${e <= 1 ? " disabled" : ""}><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-left"></use></svg>上一页</button>
<ul>${r}</ul>
@@ -377,12 +377,12 @@ function fe(e, t, n) {
}
//#endregion
//#region src/native-image.ts
-function pe(e, t, n, r) {
+function fe(e, t, n, r) {
if (!(e > 0 && t > 0 && n > 0 && r > 0)) return 0;
let i = e / n, a = t / r;
return i > 1.001 || a > 1.001 || Math.abs(i - a) > Math.max(i, a) * .01 ? 0 : i;
}
-function me(e, t, n, r, i = 1) {
+function pe(e, t, n, r, i = 1) {
let a = Number.isFinite(i) && i > 0 ? i : 1;
e /= a, t /= a;
let o = [
@@ -399,7 +399,7 @@ function me(e, t, n, r, i = 1) {
}
//#endregion
//#region src/entity-skeleton.ts
-function he(e, t, n) {
+function me(e, t, n) {
return `<section data-skeleton="entity/${e}" role="status" aria-label="正在读取资料">
<span class="sr-only">正在读取资料</span><div aria-hidden="true">
<section class="entityhero"><div class="entityprofile"><div class="entityportrait ${e === "studio" || e === "agency" ? "square " : ""}skeleton"></div>
@@ -413,7 +413,7 @@ function he(e, t, n) {
}
//#endregion
//#region src/follow-sort.ts
-var ge = [
+var he = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -421,7 +421,7 @@ var ge = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], _e = "checked", ve = {
+], ge = "checked", _e = {
checked: "desc",
added: "desc",
name: "asc",
@@ -429,21 +429,21 @@ var ge = [
source: "asc",
provider: "asc",
status: "asc"
-}, ye = (e) => ge.some(([t]) => t === e);
-function be(e, t) {
- let n = ye(e) ? e : _e;
+}, ve = (e) => he.some(([t]) => t === e);
+function ye(e, t) {
+ let n = ve(e) ? e : ge;
return {
sort: n,
- dir: t === "asc" || t === "desc" ? t : ve[n]
+ dir: t === "asc" || t === "desc" ? t : _e[n]
};
}
//#endregion
//#region src/island-skeleton.ts
-var xe = "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans", T = {
+var be = "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans", xe = {
medium: "h-9 rounded-2lg p-2 text-body-medium",
small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"
}, Se = {
- medium: T.medium,
+ medium: xe.medium,
small: "size-8 rounded-lg p-0 text-body-medium"
}, Ce = {
medium: "size-5 shrink-0",
@@ -457,8 +457,8 @@ var xe = "inline-flex items-center justify-center gap-0.5 whitespace-nowrap over
ghost: "bg-button-ghost-background text-button-ghost-foreground"
}, E = (e, t) => `<svg class="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><use href="#i-${e}"/></svg>`;
function D({ variant: e = "primary", size: t = "medium", glyph: n, label: r, attrs: i = "", compact: a = !1 }) {
- let o = r ? T[t] : Se[t], s = n ? E(n, Ce[t]) : "", c = r ? `<span class="${we[t]}"${a ? " data-compact-label" : ""}>${r}</span>` : "";
- return `<button type="button" class="${xe} ${o} ${Te[e]}"${i ? ` ${i}` : ""}>${s}${c}</button>`;
+ let o = r ? xe[t] : Se[t], s = n ? E(n, Ce[t]) : "", c = r ? `<span class="${we[t]}"${a ? " data-compact-label" : ""}>${r}</span>` : "";
+ return `<button type="button" class="${be} ${o} ${Te[e]}"${i ? ` ${i}` : ""}>${s}${c}</button>`;
}
var Ee = {
md: {
@@ -478,21 +478,21 @@ function O(e, { size: t = "md", className: n = "", attrs: r = "" } = {}) {
}
//#endregion
//#region src/configuration-copy.ts
-var De = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", Oe = "仅填域名;留空使用默认地址", ke = (e, t) => `<section aria-label="${e}" class="flex w-full flex-col gap-2"><p class="w-full px-3 text-body-2-medium text-text-secondary">${e}</p><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${D({
+var De = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", Oe = "仅填域名;留空使用默认地址", k = (e, t) => `<section aria-label="${e}" class="flex w-full flex-col gap-2"><p class="w-full px-3 text-body-2-medium text-text-secondary">${e}</p><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${D({
label: "保存配置",
attrs: "disabled data-skeleton-action"
-})}</div></div></section>`, k = (e, t = "") => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div><span class="skeleton configuration-skeleton-toggle"></span></div>`, Ae = (e) => `<div class="flex w-full flex-col gap-1"><p class="text-body-medium text-text-primary">${e} 地址</p><span class="skeleton configuration-skeleton-input"></span><p class="pt-px text-caption-1-medium text-text-secondary">${Oe}</p></div>`;
-function je() {
+})}</div></div></section>`, A = (e, t = "") => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div><span class="skeleton configuration-skeleton-toggle"></span></div>`, j = (e) => `<div class="flex w-full flex-col gap-1"><p class="text-body-medium text-text-primary">${e} 地址</p><span class="skeleton configuration-skeleton-input"></span><p class="pt-px text-caption-1-medium text-text-secondary">${Oe}</p></div>`;
+function ke() {
return `<div class="peach-react"><div class="configpage">${`<div class="board-local-nav" data-section-nav data-section-items>${[
"通用",
"媒体",
"网络与访问",
"更新与维护"
- ].map((e, t) => `<button type="button" tabindex="-1" aria-selected="${t === 0}">${e}</button>`).join("")}</div>`}<div class="flex flex-col gap-6">${ke("开机自启", `<div class="flex flex-col">${k("开机后启动 Peach")}${k("静默启动", "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。")}${k("在桌面创建快捷方式", "双击图标打开 Peach 网页;卸载时一并移除。")}</div>`)}${ke("外部入口", `<div class="flex flex-col gap-4 py-4 pr-3"><p class="text-body-2-regular text-text-secondary">${De}</p>${Ae("JavDB")}${Ae("MISSAV")}</div>`)}</div></div></div>`;
+ ].map((e, t) => `<button type="button" tabindex="-1" aria-selected="${t === 0}">${e}</button>`).join("")}</div>`}<div class="flex flex-col gap-6">${k("开机自启", `<div class="flex flex-col">${A("开机后启动 Peach")}${A("静默启动", "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。")}${A("在桌面创建快捷方式", "双击图标打开 Peach 网页;卸载时一并移除。")}</div>`)}${k("外部入口", `<div class="flex flex-col gap-4 py-4 pr-3"><p class="text-body-2-regular text-text-secondary">${De}</p>${j("JavDB")}${j("MISSAV")}</div>`)}</div></div></div>`;
}
//#endregion
//#region src/management-skeletons.ts
-var A = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", j = (e = "60%") => `<span class="${A} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, M = "disabled data-skeleton-action", N = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
+var M = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", N = (e = "60%") => `<span class="${M} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, Ae = "disabled data-skeleton-action", je = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
function Me() {
let e = [
"馆藏视频",
@@ -501,27 +501,27 @@ function Me() {
"使用空间"
].map((e, t) => `
<div class="min-w-0 rounded-2xl shadow-card flex flex-col overflow-hidden pt-4 text-left ${t === 0 ? "ring-2 ring-border-focus-ring bg-background-primary-default" : "bg-background-secondary-default"}">
- <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${A} size-7 max-sm:size-6"></i>${e}</span>
- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${j("4em")}</b>
- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${j("6em")}</small>
- </div>`).join(""), t = (e) => `<section class="${N}" data-stats-chart>
- <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${j("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
+ <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${M} size-7 max-sm:size-6"></i>${e}</span>
+ <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${N("4em")}</b>
+ <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${N("6em")}</small>
+ </div>`).join(""), t = (e) => `<section class="${je}" data-stats-chart>
+ <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${N("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
<svg class="h-75 w-full max-sm:h-65 text-background-tertiary-default" viewBox="0 0 200 200" fill="none" stroke="currentColor" stroke-width="12">${[
76,
54,
32
].map((e) => `<circle cx="100" cy="100" r="${e}"/>`).join("")}</svg>
- <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${j()}</span><b class="text-title-2-medium">${j("3em")}</b><small class="text-caption-1-regular">${j()}</small></div>`).join("")}</div>
+ <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${N()}</span><b class="text-title-2-medium">${N("3em")}</b><small class="text-caption-1-regular">${N()}</small></div>`).join("")}</div>
</section>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
- <p class="text-caption-1-regular text-text-secondary">账本当前快照 · ${j("12em")}</p>
+ <p class="text-caption-1-regular text-text-secondary">账本当前快照 · ${N("12em")}</p>
<div class="flex flex-col gap-4"><div class="inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4" data-stats-metrics>${e}</div>
<div class="flex flex-col gap-5"><div class="inline-grid w-full gap-5 md:grid-cols-2">${t("网盘与本地")}${t("媒体库")}</div>
<div class="inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3">${[
"时长",
"画质",
"文件类型"
- ].map((e) => `<section class="${N}"><h3 class="text-title-2-medium">${e}</h3><div class="${A} h-64"></div></section>`).join("")}</div>
+ ].map((e) => `<section class="${je}"><h3 class="text-title-2-medium">${e}</h3><div class="${M} h-64"></div></section>`).join("")}</div>
</div>
</div>
<section class="rounded-surface bg-background-secondary-default dark:bg-background-primary-default">
@@ -530,19 +530,19 @@ function Me() {
"最近看过",
"标签来源"
].map((e) => `<span>${e}</span>`).join("")}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${A} h-7"></div>`).join("")}</div>
+ <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${M} h-7"></div>`).join("")}</div>
</section>
</div></div>`;
}
function Ne() {
let e = `<div class="duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4">
- <span class="${A} row-span-2 inline-grid aspect-16/10 w-full rounded-2lg"></span>
- <span class="text-body-regular max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1">${j("70%")}</span>
- ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${j("3em")}</span>`).join("")}
- <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${j("75%")}</span>
+ <span class="${M} row-span-2 inline-grid aspect-16/10 w-full rounded-2lg"></span>
+ <span class="text-body-regular max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1">${N("70%")}</span>
+ ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${N("3em")}</span>`).join("")}
+ <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${N("75%")}</span>
</div>`, t = `<section class="mb-6 overflow-hidden rounded-surface bg-background-secondary-default dark:bg-background-primary-default" data-duplicate-group>
<div class="flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default">
- <b class="text-title-2-medium">${j("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${j("8em")}</span>
+ <b class="text-title-2-medium">${N("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${N("8em")}</span>
<span class="ml-auto flex flex-wrap gap-2 max-compact:ml-0 max-compact:w-full">${[
"留最大",
"留最长",
@@ -551,14 +551,14 @@ function Ne() {
variant: "secondary",
size: "small",
label: e,
- attrs: M
+ attrs: Ae
})).join("")}</span>
</div>${e.repeat(2)}</section>`;
return `<div class="peach-react"><div class="mx-auto w-full max-w-board pb-10.5">
<div data-collection-summary class="mb-5 flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default">
- <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${j("4em")}</strong></div><p class="text-body-regular text-text-secondary">${j("12em")}</p>
+ <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${N("4em")}</strong></div><p class="text-body-regular text-text-secondary">${N("12em")}</p>
</div>
- <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${M} class="h-7.5 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
+ <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${Ae} class="h-7.5 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
${t.repeat(2)}
</div></div>`;
}
@@ -577,7 +577,7 @@ var P = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, F =
"JAV 订阅源",
"来源和凭证"
].map((e, t) => `<span class="whitespace-nowrap" aria-selected="${t === 0}">${e}</span>`).join("")}</div>`, V = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, ze = ({ table: e, sort: t, dir: n }) => {
- let r = ge.find(([e]) => e === t)[1];
+ let r = he.find(([e]) => e === t)[1];
return `<div class="flex flex-wrap items-center gap-2 follow-skeleton-toolbar"><h3 class="mr-auto text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${z("132px")}</span>${D({
glyph: "refresh-cw",
label: "检查全部",
@@ -657,7 +657,7 @@ var P = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, F =
z("113px"),
Be()
].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, qe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-2-regular text-text-secondary">${z("111px")}</span>${O(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${B(204, 32)}</div>`, Je = (e) => {
- let t = e.followLayout === "table", n = be(e.followSort, e.followDir), r = e.followPageSize || He(), i = t ? Ke(r, n) : `${V("全选本页")}<div class="flex flex-col gap-3">${H(3)}${H(4)}${H(3)}</div>`;
+ let t = e.followLayout === "table", n = ye(e.followSort, e.followDir), r = e.followPageSize || He(), i = t ? Ke(r, n) : `${V("全选本页")}<div class="flex flex-col gap-3">${H(3)}${H(4)}${H(3)}</div>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${Le()}<div class="flex flex-col gap-6">${Re()}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 follow-skeleton-surface" data-layout="${t ? "table" : "default"}">${ze({
table: t,
...n
@@ -679,7 +679,7 @@ function Ze(e, t = {}) {
"私有导出"
], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${I(F(), 4)}</div></section>${L("口味分析")}<div class="board-activity-charts">${L("浏览活动")}${L("时间分布")}</div>${L("标签")}</div>`;
else if (e === "/follow-manage") n = Je(t);
- else if (e === "/configuration") n = je();
+ else if (e === "/configuration") n = ke();
else if (e === "/activity") n = `<div class="activitypage">${[
"正在进行",
"被挡下的",
@@ -711,14 +711,7 @@ var Qe = [
"jav",
"thumb"
];
-function $e() {
- let e = (e) => Array(64).fill(e).join("");
- return {
- tiers: "<div class=\"tier catalog-placeholder\" aria-hidden=\"true\">" + e("<span class=\"av\"><span class=\"ring\"></span><span class=\"nm\">&nbsp;</span></span>") + "</div><div class=\"tier catalog-placeholder\" aria-hidden=\"true\">" + e("<span class=\"brandpill\"><span class=\"mk\"></span><span class=\"placeholder-name\">&nbsp;</span></span>") + "</div>",
- tags: "<span class=\"catalog-placeholder placeholder-tags\" aria-hidden=\"true\">" + e("<span class=\"pill\">&nbsp;</span>") + "</span>"
- };
-}
-async function et(e, t) {
+async function $e(e, t) {
let n = new URLSearchParams();
for (let t of Qe) e[t] && n.set(t, e[t]);
let [r, i] = await Promise.all([t("/api/facets?" + n), t("/api/items?" + n + "&limit=5")]), a = [...new Set([
@@ -731,7 +724,7 @@ async function et(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function tt({ kind: t = "catalog", filtered: n = !1, jav: r = !1, configurable: i = !1, online: a = !1 } = {}) {
+function et({ kind: t = "catalog", filtered: n = !1, jav: r = !1, configurable: i = !1, online: a = !1 } = {}) {
let o = i ? "<button class=\"geist-button primary\" data-empty-settings>添加内容</button>" : "", s = "<a class=\"geist-button" + (!i || a ? " primary" : "") + "\" href=\"/follow-manage?tab=add\">添加关注</a>";
if (n || r) return e("search", r ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", r ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a>" });
if (t !== "catalog") {
@@ -751,8 +744,20 @@ function tt({ kind: t = "catalog", filtered: n = !1, jav: r = !1, configurable:
return e("play", "还没有视频", "添加媒体文件夹或关注来源,开始建立你的馆藏。", { actions: o + s });
}
//#endregion
+//#region src/catalog-filter-skeleton.ts
+var tt = 64, U = (e) => e.replace(/[&<>"]/g, (e) => ({
+ "&": "&amp;",
+ "<": "&lt;",
+ ">": "&gt;",
+ "\"": "&quot;"
+})[e]), nt = (e) => e.repeat(tt);
+function rt(e, t) {
+ let n = e.map((e) => `<a href="${U(e.href)}" data-catalog-view="${U(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${U(e.label)}</a>`).join("");
+ return "<div class=\"peach-react\"><div class=\"contents\" data-catalog-root=\"\" data-loading=\"\"><div data-catalog-tiers=\"\" aria-busy=\"true\"><div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + nt("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div><div data-catalog-tier=\"studios\">" + nt("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + `</div></div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${n}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(tt) + "</span></div></div></div><div data-filter-row=\"bottom\" aria-busy=\"true\" class=\"flex min-w-0 items-center gap-3 px-3 py-2 min-h-12\"><span data-catalog-readout=\"\"><span data-skeleton=\"count\" aria-hidden=\"true\" class=\"relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen\"></span></span></div></div></div></div>";
+}
+//#endregion
//#region src/sidebar.ts
-function nt(e) {
+function it(e) {
return [
"/",
"/unseen",
@@ -762,96 +767,96 @@ function nt(e) {
"/junk-files"
].includes(e) || /^\/(item|mix|parts|editions)\//.test(e) || /^\/playlists\/\d+\/\d+$/.test(e) || /^\/(performers|studios|creators|series|agencies)\/.+/.test(e);
}
-function rt(e, t) {
+function at(e, t) {
return e.dataset.surface?.split("?")[0] === t.split("?")[0] && e.querySelector(".dnav") ? (e.dataset.surface = t, !1) : (e.dataset.surface = t, e.replaceChildren(), !0);
}
-function it(e) {
+function ot(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of new Set(n.tags || [])) t.set(e, (t.get(e) || 0) + 1);
return [...t].sort((e, t) => t[1] - e[1]).slice(0, 30);
}
//#endregion
//#region src/management.ts
-var at = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", ot = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", U = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", W = "type=\"button\" disabled data-skeleton-action", G = "disabled data-skeleton-action", st = "aria-disabled=\"true\"", K = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, q = (e, t) => `<div data-geist-fieldset-content>
+var st = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", ct = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", W = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", G = "type=\"button\" disabled data-skeleton-action", K = "disabled data-skeleton-action", lt = "aria-disabled=\"true\"", ut = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, dt = (e, t) => `<div data-geist-fieldset-content>
<h3 class="text-title-2-medium text-text-primary">${e}</h3>
<p class="text-body-2-regular text-text-secondary">${t}</p></div>`;
-function ct() {
- return K(`<section aria-label="扫描与采集" data-geist-fieldset data-cleanup-task data-cleanup-processing data-fieldset-stack>
- ${q("扫描与采集", at)}
+function ft() {
+ return ut(`<section aria-label="扫描与采集" data-geist-fieldset data-cleanup-task data-cleanup-processing data-fieldset-stack>
+ ${dt("扫描与采集", st)}
<footer data-geist-fieldset-footer><a href="/scraping" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${E("arrow-up", "size-[18px] shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${D({
glyph: "database",
label: "扫描并补全资料",
- attrs: G
+ attrs: K
})}${D({
glyph: "chevron-down",
- attrs: `${G} aria-label="更多扫描与采集方式"`
+ attrs: `${K} aria-label="更多扫描与采集方式"`
})}</span></footer>
</section>`);
}
-function lt() {
- return K(`<section aria-label="媒体修复" data-geist-fieldset data-cleanup-task data-cleanup-processing>
- ${q("媒体修复", ot)}
- <footer data-geist-fieldset-footer>${O(U, {
+function pt() {
+ return ut(`<section aria-label="媒体修复" data-geist-fieldset data-cleanup-task data-cleanup-processing>
+ ${dt("媒体修复", ct)}
+ <footer data-geist-fieldset-footer>${O(W, {
className: "w-48",
- attrs: st
+ attrs: lt
})}${D({
label: "开始修复",
- attrs: G
+ attrs: K
})}</footer>
</section>`);
}
-function ut() {
+function mt() {
let e = [
["人工复核", "square-check-big"],
["高清版", "sparkles"],
["重复文件", "file-stack"],
["垃圾文件", "file-archive"],
["回收站", "trash"]
- ], t = `<span class="geist-button organize-preset-skeleton">${U}</span>`.repeat(3), n = (e) => `<div class="organizefield"><span>${e}</span>
- <span class="geist-input organize-input-skeleton">${U}</span></div>`;
+ ], t = `<span class="geist-button organize-preset-skeleton">${W}</span>`.repeat(3), n = (e) => `<div class="organizefield"><span>${e}</span>
+ <span class="geist-input organize-input-skeleton">${W}</span></div>`;
return `<div class="cleanuppage" data-skeleton="cleanup" aria-busy="true" aria-label="正在读取数据管理状态">
<div class="cleanupstats">${e.map(([e, t]) => `
<button type="button" class="board-plain-stat" disabled>
<span class="board-plain-stat-head"><span class="board-stat-tile">${c(t)}</span>${e}</span>
- <strong>${U}</strong><span class="cleanupmeta">${U}</span></button>`).join("")}</div>
+ <strong>${W}</strong><span class="cleanupmeta">${W}</span></button>`).join("")}</div>
<div class="cleanupgrid">
- <div class="cleanupscraping">${ct()}</div>
- <div class="cleanupmediarepair">${lt()}</div>
+ <div class="cleanupscraping">${ft()}</div>
+ <div class="cleanupmediarepair">${pt()}</div>
<section class="cleanupfieldset cleanuporganize" data-geist-fieldset data-cleanup-task aria-labelledby="cleanup-loading-organize">
<div class="geist-fieldset-content"><h3 class="geist-fieldset-title" id="cleanup-loading-organize">整理</h3>
<p>按模板给文件改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。</p>
<div class="organizefields">
- <div class="organizesource"><span class="gselect"><span class="gselectfield organize-source-skeleton">${U}${c("chevron-down")}</span></span></div>
+ <div class="organizesource"><span class="gselect"><span class="gselectfield organize-source-skeleton">${W}${c("chevron-down")}</span></span></div>
${n("文件名模板")}
${n("目录模板")}
<div class="organizepresets">${t}</div>
- <p class="cleanupmeta">${U}</p>
+ <p class="cleanupmeta">${W}</p>
</div></div>
- <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button class="geist-button primary" ${W}>预览</button></footer>
+ <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button class="geist-button primary" ${G}>预览</button></footer>
</section></div>
<section class="resourcesync" aria-labelledby="cleanup-loading-links">
<h2 id="cleanup-loading-links">链接管理</h2>
<div class="resourcesyncbox" data-geist-fieldset data-cleanup-task data-fieldset-stack>
<div class="resourcesyncbody geist-fieldset-content"><h3 class="geist-fieldset-title">站外链接</h3>
- <div class="linksummary"><div class="linkstats"><div><span>链接总数</span><b>${U}</b><small>${U}</small></div>${[
+ <div class="linksummary"><div class="linkstats"><div><span>链接总数</span><b>${W}</b><small>${W}</small></div>${[
"官网/事务所",
"社交账号",
"作品资料站"
- ].map((e) => `<div><span>${e}</span><b>${U}</b></div>`).join("")}</div>
- <div class="linkhosts"><span>主要站点</span><b>${U}</b></div></div></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${W}>${c("unlink")}<span>检查死链</span></button></div>
+ ].map((e) => `<div><span>${e}</span><b>${W}</b></div>`).join("")}</div>
+ <div class="linkhosts"><span>主要站点</span><b>${W}</b></div></div></div>
+ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${G}>${c("unlink")}<span>检查死链</span></button></div>
</div></section>
<section class="resourcesync" aria-labelledby="cleanup-loading-sync">
<h2 id="cleanup-loading-sync">资源同步</h2>
<div class="resourcesyncbox" data-geist-fieldset data-cleanup-task>
<div class="resourcesyncbody geist-fieldset-content"><h3 class="geist-fieldset-title">文件与记录核对</h3>
<p>按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。</p></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${W}>${c("git-compare")}<span>检查文件</span></button></div>
+ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${G}>${c("git-compare")}<span>检查文件</span></button></div>
</div></section></div>`;
}
//#endregion
//#region src/junk-queue.ts
-var J = [
+var ht = [
[
"",
"全部",
@@ -887,60 +892,60 @@ var J = [
"其它",
"hard-drive"
]
-], dt = (e) => J.find(([t]) => t === e)?.[0] ?? "";
-function ft(e) {
+], gt = (e) => ht.find(([t]) => t === e)?.[0] ?? "";
+function _t(e) {
let t = new URLSearchParams(e);
return {
- kind: dt(t.get("type")),
+ kind: gt(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
-function Y(e = "", t = "pending") {
+function q(e = "", t = "pending") {
let n = new URLSearchParams();
e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");
let r = n.toString();
return `/junk-files${r ? `?${r}` : ""}`;
}
-function pt(e) {
+function vt(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: Y("", "pending")
+ href: q("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: Y("", "dismissed")
+ href: q("", "dismissed")
};
}
-var mt = (e) => e === "dismissed" ? "已排除" : "待判断", ht = "flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default", gt = "flex min-w-0 flex-col gap-2", _t = "text-body-regular text-text-secondary", vt = "text-display-4-medium tabular-nums text-text-primary", yt = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen", bt = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function xt({ kind: e, view: t }) {
- let n = J.map(([n, r, i]) => `<a href="${Y(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${bt(i)}${s(r)}</a>`).join(""), r = pt(t);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite"><div data-collection-summary="" class="${ht}"><div class="${gt}"><span class="${_t}">${mt(t)}</span><strong class="${vt}"><span data-skeleton="count" aria-hidden="true" class="${yt}"></span></strong></div></div></div><div data-junk-filters-frame=""><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${bt(r.glyph)}${r.label}</a></nav></div></div></div>`;
+var yt = (e) => e === "dismissed" ? "已排除" : "待判断", bt = "flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default", xt = "flex min-w-0 flex-col gap-2", St = "text-body-regular text-text-secondary", Ct = "text-display-4-medium tabular-nums text-text-primary", wt = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen", Tt = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
+function Et({ kind: e, view: t }) {
+ let n = ht.map(([n, r, i]) => `<a href="${q(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${Tt(i)}${s(r)}</a>`).join(""), r = vt(t);
+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite"><div data-collection-summary="" class="${bt}"><div class="${xt}"><span class="${St}">${yt(t)}</span><strong class="${Ct}"><span data-skeleton="count" aria-hidden="true" class="${wt}"></span></strong></div></div></div><div data-junk-filters-frame=""><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${Tt(r.glyph)}${r.label}</a></nav></div></div></div>`;
}
//#endregion
//#region src/jav-artwork.ts
-function St(e) {
+function Dt(e) {
return [
"small",
"sleeve",
"preview"
].includes(String(e)) ? "small" : "big";
}
-function Ct(e) {
+function Ot(e) {
return {
- javLayout: St(e.javLayout),
- javImage: X(e.javLayout === "preview" ? "thumbnail" : e.javImage)
+ javLayout: Dt(e.javLayout),
+ javImage: J(e.javLayout === "preview" ? "thumbnail" : e.javImage)
};
}
-function X(e) {
+function J(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function wt(e, t) {
- return e.is_jav && e.code && e.has_cover && (X(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
+function kt(e, t) {
+ return e.is_jav && e.code && e.has_cover && (J(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
}
-function Tt(e, t) {
+function At(e, t) {
let n = Number(e?.px?.[0]), r = Number(e?.px?.[1]), i = Number(e?.x0);
if (!(n > 0 && r > 0 && t > 0) || !Number.isFinite(i)) return null;
let a = (e, t, n) => Math.min(n, Math.max(0, Number.isFinite(Number(e)) ? Number(e) : t)), o = a(i, 0, n), s = Math.max(o, a(e?.x1, n, n)), c = a(e?.y0, 0, r), l = Math.max(c, a(e?.y1, r, r)), u = s - o, d = l - c;
@@ -960,13 +965,13 @@ function Tt(e, t) {
height: m(r / d)
};
}
-function Et(e, t) {
+function jt(e, t) {
e.querySelectorAll("img[data-jav-image]").forEach((e) => {
- let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !!(n && (X(t) === "cover" || !r)), a = i ? n : r;
+ let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !!(n && (J(t) === "cover" || !r)), a = i ? n : r;
e.classList.toggle("cover", i), e.classList.toggle("whole", i && e.dataset.javImageLayout !== "big"), e.classList.toggle("front", i && e.dataset.javImageLayout === "big"), e.classList.remove("panel"), e.removeAttribute("style"), e.closest(".pic,[data-media-pic]")?.style.removeProperty("--cover-blur"), a && e.getAttribute("src") !== a && (e.src = a);
});
}
-function Dt(e, t) {
+function Mt(e, t) {
let n = [];
return e.querySelectorAll("img[data-jav-image]").forEach((e) => {
e.dataset.javImageLayout !== t && (e.dataset.javImageLayout = t, e.classList.contains("cover") && (e.classList.toggle("whole", t !== "big"), e.classList.toggle("front", t === "big"), e.classList.remove("panel"), e.removeAttribute("style"), e.closest(".pic,[data-media-pic]")?.style.removeProperty("--cover-blur"), e.complete && e.naturalWidth && n.push(e)));
@@ -974,43 +979,43 @@ function Dt(e, t) {
}
//#endregion
//#region src/player/stats.ts
-function Ot(e, t = "") {
+function Nt(e, t = "") {
let n = t ? encodeURIComponent(t) : "";
return performance.getEntriesByType("resource").filter((t) => t.name.includes("/stream") && (t.name.includes(`/stream?id=${e}`) || t.name.includes(`/stream/hls/${e}/`)) && (!n || t.name.includes(`session=${n}`)));
}
-function kt(e, t = "") {
- let n = Ot(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+function Pt(e, t = "") {
+ let n = Nt(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
return r > 0 && i > 0 ? r * 8 / i : 0;
}
-function At(e) {
+function Ft(e) {
if (!Number.isFinite(e) || e <= 0) return "加载中…";
let t = e / 8;
return t >= 1048576 ? `${(t / 1048576).toFixed(1)} MB/s` : `${Math.max(1, Math.round(t / 1024))} KB/s`;
}
//#endregion
//#region src/player/controls.ts
-function jt(e, t) {
+function It(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
//#endregion
//#region src/player/stream.ts
-function Mt() {
+function Lt() {
return globalThis.crypto?.randomUUID?.() || `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
}
-function Nt(e, t) {
+function Rt(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function Pt(e) {
+function zt(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function Ft(e, t) {
- let n = Pt(e);
+async function Bt(e, t) {
+ let n = zt(e);
if (n) return n;
try {
let n = await o(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -1019,9 +1024,9 @@ async function Ft(e, t) {
type: n.mime_type || "application/vnd.apple.mpegurl"
};
} catch {}
- return Nt(e, t);
+ return Rt(e, t);
}
-function It(e) {
+function Vt(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -1032,7 +1037,7 @@ function It(e) {
}
//#endregion
//#region src/player/telemetry.ts
-function Lt(e, t, n = {}) {
+function Ht(e, t, n = {}) {
if (!t) return;
let r = 0, i = 0, a = 0, s = null;
t.addEventListener("seeking", () => {
@@ -1082,7 +1087,7 @@ function Lt(e, t, n = {}) {
}
//#endregion
//#region src/player/videojs.ts
-var Rt = "/vendor/videojs/8.24.1/", zt = (e) => new Promise((t, n) => {
+var Ut = "/vendor/videojs/8.24.1/", Wt = (e) => new Promise((t, n) => {
let r = document.head.querySelector(`script[src="${e}"]`);
if (r?.dataset.loaded) {
t();
@@ -1094,20 +1099,21 @@ var Rt = "/vendor/videojs/8.24.1/", zt = (e) => new Promise((t, n) => {
}, { once: !0 }), i.addEventListener("error", () => {
i.remove(), n(/* @__PURE__ */ Error(`script unavailable: ${e}`));
}, { once: !0 }), r || (i.src = e, document.head.appendChild(i));
-}), Bt = () => globalThis.videojs, Z = null;
-function Vt() {
- let e = Bt();
- return e ? Promise.resolve(e) : (Z ??= zt(`${Rt}video.min.js`).then(() => zt(`${Rt}lang/zh-CN.js`)).then(() => {
- let e = Bt();
+}), Y = () => globalThis.videojs, X = null;
+function Gt() {
+ let e = Y();
+ return e ? Promise.resolve(e) : (X ??= Wt(`${Ut}video.min.js`).then(() => Wt(`${Ut}lang/zh-CN.js`)).then(() => {
+ let e = Y();
if (!e) throw Error("videojs unavailable");
return e;
}).catch((e) => {
- throw Z = null, e;
- }), Z);
+ throw X = null, e;
+ }), X);
}
//#endregion
//#region src/islands.ts
-var Ht = {
+var Kt = {
+ "catalog-filter": { react: "catalog-filter" },
"catalog-grid": { react: "catalog-grid" },
"data-cleanup": { react: "data-cleanup" },
duplicates: { react: "duplicates" },
@@ -1128,20 +1134,20 @@ var Ht = {
activity: { react: "activity" },
stats: { react: "stats" },
taste: { react: "taste" }
-}, Ut = () => import("/dist/peach-react.js").then(() => void 0), Wt = () => Object.keys(Ht), Q = /* @__PURE__ */ new Map();
-async function Gt(e, t, n, r = {}) {
- let i = Ht[e];
+}, qt = () => import("/dist/peach-react.js").then(() => void 0), Jt = () => Object.keys(Kt), Z = /* @__PURE__ */ new Map();
+async function Yt(e, t, n, r = {}) {
+ let i = Kt[e];
if (!i) throw Error(`未注册的 island:${String(e)}`);
- Yt(t);
+ $t(t);
let a = { controller: new AbortController() };
- Q.set(t, a);
+ Z.set(t, a);
let o = (await import("/dist/peach-react.js")).pages[i.react];
try {
await o.prefetch(n, a.controller.signal);
} catch {
if (a.controller.signal.aborted) return;
}
- if (!qt(t, a, r)) return;
+ if (!Zt(t, a, r)) return;
let s = () => {
t.textContent = "";
let e = t.ownerDocument.createElement("div");
@@ -1153,32 +1159,32 @@ async function Gt(e, t, n, r = {}) {
};
r.reveal ? r.reveal(t, s) : s();
}
-function Kt(e, t) {
- let n = e ? Q.get(e) : void 0;
+function Xt(e, t) {
+ let n = e ? Z.get(e) : void 0;
!n?.update || !n.props || (n.props = {
...n.props,
...t
}, n.update(n.props));
}
-function qt(e, t, n) {
- return Q.get(e) === t ? n.isCurrent && !n.isCurrent() ? (Q.delete(e), !1) : !0 : !1;
+function Zt(e, t, n) {
+ return Z.get(e) === t ? n.isCurrent && !n.isCurrent() ? (Z.delete(e), !1) : !0 : !1;
}
-var Jt = (e) => !!e && Q.has(e);
-function Yt(e) {
- for (let t of [...Q.keys()]) (t === e || e.contains(t)) && Xt(t);
+var Qt = (e) => !!e && Z.has(e);
+function $t(e) {
+ for (let t of [...Z.keys()]) (t === e || e.contains(t)) && en(t);
}
-function Xt(e) {
- let t = Q.get(e);
- t && (t.controller.abort(), Q.delete(e), t.dispose?.());
+function en(e) {
+ let t = Z.get(e);
+ t && (t.controller.abort(), Z.delete(e), t.dispose?.());
}
-var Zt = null;
-function Qt(e, t, n, r) {
- Zt ??= import("/dist/peach-react.js").then((n) => (n.mountToaster(e, t), n)), Zt.then((e) => e.showToast(n, r));
+var tn = null;
+function nn(e, t, n, r) {
+ tn ??= import("/dist/peach-react.js").then((n) => (n.mountToaster(e, t), n)), tn.then((e) => e.showToast(n, r));
}
-var $t = null, $ = null;
-function en(e) {
- return $t ??= import("/dist/peach-react.js").then((t) => ($ = t.configureStage(e), $)), $t;
+var Q = null, $ = null;
+function rn(e) {
+ return Q ??= import("/dist/peach-react.js").then((t) => ($ = t.configureStage(e), $)), Q;
}
-var tn = () => $;
+var an = () => $;
//#endregion
-export { Ze as boardPageSkeleton, f as boundedPreference, It as cancelStreamSession, tt as catalogEmptyHtml, et as catalogSuggestions, de as clampPage, ut as cleanupSkeletonHtml, jt as clickPlayerControl, Xe as detailSkeletonHtml, Nt as directStreamSource, $e as emptyCatalogLayout, Vt as ensureVideojs, he as entitySkeletonHtml, pe as faceSourceScale, At as fmtSpeed, ie as followJobProgress, g as initBoardControls, Jt as islandMounted, Wt as islandNames, wt as javImageKind, w as jobActivityHtml, xt as junkCountSkeletonHtml, Y as junkPath, ft as junkRoute, en as loadStage, Gt as mountIsland, m as mountNumberSetting, me as nativeImageFit, Mt as newStreamSession, X as normalizeJavImage, St as normalizeJavLayout, Ct as normalizeJavPreferences, ue as pageCount, fe as paginationHtml, Tt as panelFrame, Ft as playableStreamSource, u as preferredDirection, Ut as preloadIslands, Dt as relayoutJavImages, se as selectGroup, ae as selectRange, oe as selectionSummary, Qt as showToast, nt as sidebarHasCatalogContent, S as sidebarSectionHtml, it as sidebarTagCounts, tn as stageApi, kt as streamSpeedBits, h as syncBoardRange, Et as syncJavImages, p as syncNumberSetting, ce as syncSelectionToolbar, rt as syncSidebarSurface, te as transitionTheme, Yt as unmountIsland, Kt as updateIsland, re as watchJob, ee as wireSidebarGroups, Lt as wireTelemetry };
+export { Ze as boardPageSkeleton, f as boundedPreference, Vt as cancelStreamSession, et as catalogEmptyHtml, rt as catalogFilterSkeletonHtml, $e as catalogSuggestions, ue as clampPage, mt as cleanupSkeletonHtml, It as clickPlayerControl, Xe as detailSkeletonHtml, Rt as directStreamSource, Gt as ensureVideojs, me as entitySkeletonHtml, fe as faceSourceScale, Ft as fmtSpeed, re as followJobProgress, g as initBoardControls, Qt as islandMounted, Jt as islandNames, kt as javImageKind, w as jobActivityHtml, Et as junkCountSkeletonHtml, q as junkPath, _t as junkRoute, rn as loadStage, Yt as mountIsland, m as mountNumberSetting, pe as nativeImageFit, Lt as newStreamSession, J as normalizeJavImage, Dt as normalizeJavLayout, Ot as normalizeJavPreferences, le as pageCount, de as paginationHtml, At as panelFrame, Bt as playableStreamSource, u as preferredDirection, qt as preloadIslands, Mt as relayoutJavImages, oe as selectGroup, ie as selectRange, ae as selectionSummary, nn as showToast, it as sidebarHasCatalogContent, S as sidebarSectionHtml, ot as sidebarTagCounts, an as stageApi, Pt as streamSpeedBits, h as syncBoardRange, jt as syncJavImages, p as syncNumberSetting, se as syncSelectionToolbar, at as syncSidebarSurface, te as transitionTheme, $t as unmountIsland, Xt as updateIsland, T as watchJob, ee as wireSidebarGroups, Ht as wireTelemetry };
diff --git a/web/index.html b/web/index.html
index bc03544a3..a0b779427 100644
--- a/web/index.html
+++ b/web/index.html
@@ -231,16 +231,15 @@
</header>
-<div class="tiers" id="tiers"></div>
-<div class="tagbar" id="tagbar"><div class="filterscroll"><div class="viewpills" id="viewPills"></div><div class="tagscroll" id="tagScroll"></div></div></div>
-<div class="javbar" id="javbar" hidden></div>
+<!-- 首页筛选条(`catalog-filter` 岛):两排头像与筛选浮层。宿主不生成盒子,里面那几块直接当 body 的孩子排。 -->
+<div id="catalogFilter" data-catalog-filter></div>
<nav class="edge" id="edge"></nav>
<main id="main" tabindex="-1">
<div id="libraryProcessingNotice"></div>
<!-- 订阅源发现的新作(ADR-0042)。只在首页那几条目录路径上出现,由 app.js 按路径开合。 -->
<section class="feednew" id="feedNew" aria-label="未入库的新作" hidden></section>
- <div class="combo" id="combo"></div>
+ <div id="combo"></div>
<section class="index" id="index" hidden></section>
<nav class="managebar" id="managebar" hidden></nav>
<h2 class="disp listtitle" id="listTitle" hidden></h2>
diff --git a/web/js/ui-components.js b/web/js/ui-components.js
index f2fc9fbfd..0f880373f 100644
--- a/web/js/ui-components.js
+++ b/web/js/ui-components.js
@@ -4,20 +4,8 @@ export { MEDIA_SOURCE_ICONS } from './media-source-icons.js';
const NOTE_VARIANTS=new Set(['secondary','warning','error','success']);
-/** 标签含义、计数口径和查询由页面提供。 */
-export function filterChipHtml(label,{attr,value,selected=false,count,className='',countClass='n mono'}={}){
- /* 计数前不写空格。`.pill` 是 flex 容器,纯空白的文本节点不参与布局,写了也量不出
- 一个像素——间隔归 `.pill .n` 的 margin,写在两处就是两份真相,而其中一份从来
- 没生效过。 */
- return `<button type="button" class="pill${className?' '+esc(className):''}" ${attr}="${esc(value)}" aria-pressed="${selected}">${esc(label)}${count==null?'':`<span class="${esc(countClass)}" data-count-badge="${esc(value)}">${esc(count)}</span>`}</button>`;
-}
-/* `extra` 排在换一批与排序键之间。那个位置放的是版式、大小这类「这批东西怎么摆」的
- 开关,以及跟换一批同类的动作键;排序键一律排在最末,挨着它说明的那批内容。 */
-export function sortControlsHtml({items=[],renderItem=String,extra='',shuffleId='',shuffleClass='entitybatch'}={}){
- return `<span class="sorts"><button class="batchaction ${esc(shuffleClass)}"${shuffleId?` id="${esc(shuffleId)}"`:''} type="button" title="换一批" aria-label="换一批">${icon('shuffle')}</button>${extra}${items.map(renderItem).join('')}</span>`;
-}
-/* `filterRow` 只给等待态用:那时浮层还是一段字符串,`mountFilterFrame` 没得跑,
- 槽位标记得跟着 HTML 一起生成,否则这一条会自己画成第二块浮层。 */
+/* `filterRow` 给骨架里那块两排浮层用:槽位标记跟着 HTML 一起生成,否则这一条会自己画成
+ 第二块浮层。 */
export function collectionHeaderHtml({readout='',controls='',before='',className='',loading=false,filterRow=''}={}){
return `<div class="entitycollectionhead${className?' '+esc(className):''}"${filterRow?` data-filter-row="${esc(filterRow)}"`:''}>${before}<h3${loading?' class="skeleton"':''}>${readout}</h3>${controls}</div>`;
}
@@ -443,31 +431,6 @@ export function moveGlidePane(pane,from,box,axis='x'){
pane.style.translate=settled;
}
-/** 两行筛选浮层;页面拥有槽位里的控件与查询状态。 */
-export function mountFilterFrame(top,bottom,{views,tags,readout,controls}){
- let frame=top.closest('[data-filter-frame]');
- if(!frame){
- frame=document.createElement('div');
- frame.className='board-filter-frame';
- frame.dataset.filterFrame='';
- top.before(frame);
- frame.append(top);
- top.dataset.filterRow='top';
- }
- const previous=frame.querySelector('[data-filter-row="bottom"]');
- if(previous!==bottom){
- const active=document.activeElement;
- const key=previous?.contains(active)?['id','data-sort','data-entity-sort','aria-label'].map(attr=>[attr,active.getAttribute(attr)]).find(([,value])=>value):null;
- previous?.remove();frame.append(bottom);
- if(key)[...bottom.querySelectorAll('button,input,[tabindex]')].find(node=>node.getAttribute(key[0])===key[1])?.focus({preventScroll:true});
- }
- bottom.dataset.filterRow='bottom';
- for(const [slot,node] of Object.entries({views,tags,readout,controls})){
- if(node)node.dataset.filterSlot=slot;
- }
- return frame;
-}
-
/* 逐条明细收在 Note 自己的 <details> 里,默认折叠:一句话的结论后面跟着上千行清单时,
下面的内容全被推走,而那句结论本身才是要先读到的东西。每条给标题、说明和路径三段:
只给一个「查看视频」链接的话,是哪个文件得逐个点开才知道。 */