Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(web): 大图/小图切换不再闪封面

longmeidao0621f00ea79a
diff --git a/frontend/src/islands.ts b/frontend/src/islands.ts
index e205869dd..0ea175433 100644
--- a/frontend/src/islands.ts
+++ b/frontend/src/islands.ts
@@ -209,4 +209,4 @@ export function showToast(
void toaster.then((bundle) => bundle.showToast(id, request));
}
-export { javImageKind, normalizeJavImage, normalizeJavLayout, normalizeJavPreferences, panelFrame, syncJavImages } from './jav-artwork';
+export { javImageKind, normalizeJavImage, normalizeJavLayout, normalizeJavPreferences, panelFrame, relayoutJavImages, syncJavImages } from './jav-artwork';
diff --git a/frontend/src/jav-artwork.ts b/frontend/src/jav-artwork.ts
index 01614712e..c91bd3b10 100644
--- a/frontend/src/jav-artwork.ts
+++ b/frontend/src/jav-artwork.ts
@@ -101,3 +101,22 @@ export function syncJavImages(root: ParentNode, preference: unknown): void {
if (src && img.getAttribute('src') !== src) img.src = src;
});
}
+
+/** 大图/小图原地换:同一张图只换取景类名,来源和已换回的原件都留着,不重新解码。
+ * 上一种版式算出的取景一律作废;返回已经加载完、要按新卡片比例立刻重算取景的那几张,
+ * 还没到手的等 `load` 自己算。 */
+export function relayoutJavImages(root: ParentNode, layout: JavLayout): HTMLImageElement[] {
+ const ready: HTMLImageElement[] = [];
+ root.querySelectorAll<HTMLImageElement>('img[data-jav-image]').forEach(img => {
+ if (img.dataset.javImageLayout === layout) return;
+ img.dataset.javImageLayout = layout;
+ if (!img.classList.contains('cover')) return;
+ img.classList.toggle('whole', layout !== 'big');
+ img.classList.toggle('front', layout === 'big');
+ img.classList.remove('panel');
+ img.removeAttribute('style');
+ (img.closest('.pic,[data-media-pic]') as HTMLElement | null)?.style.removeProperty('--cover-blur');
+ if (img.complete && img.naturalWidth) ready.push(img);
+ });
+ return ready;
+}
diff --git a/frontend/src/react/catalog-grid/catalog-grid-page.tsx b/frontend/src/react/catalog-grid/catalog-grid-page.tsx
index b5fd48b77..c7a033185 100644
--- a/frontend/src/react/catalog-grid/catalog-grid-page.tsx
+++ b/frontend/src/react/catalog-grid/catalog-grid-page.tsx
@@ -292,10 +292,14 @@ function HomeMix({ seed, layout, helpers, actions }: {
return list.map((item) => String(item.id));
}, [seed, actions, helpers]);
const jav = layout.active && !!seed.is_jav;
+ const size = jav ? layout.size : 'small';
+ const artwork = mixFace(seed, layout, false, helpers);
return (
<MixCard data-mix-seed={String(seed.id)} name={`Mix · ${label}`}
caption={`${helpers.displayName(seed, seed.name || '')}及相似作品`} count={0} badge="Mix" glyph wholeCard
- poster={null} artwork={mixFace(seed, layout, false, helpers)}
+ poster={null} artwork={artwork}
+ artworkIdentity={size === 'small' ? artwork.html : mixFace(seed, { ...layout, size: 'small' }, false, helpers).html}
+ relayoutArt={(root) => helpers.relayoutArt(root, size)}
ratio={jav && layout.size === 'big' ? COVER_FRONT_RATIO : 16 / 9}
flipImages={flipImages} faceHtml={(id) => faces.current.get(id) || ''} canFlip={actions.canFlip}
faces={[]} faceAvatar={() => ''} onOpenEntity={actions.openEntity}
diff --git a/frontend/src/react/catalog-grid/types.ts b/frontend/src/react/catalog-grid/types.ts
index 226cb998f..0a1a9e98b 100644
--- a/frontend/src/react/catalog-grid/types.ts
+++ b/frontend/src/react/catalog-grid/types.ts
@@ -53,6 +53,9 @@ export interface MediaCardLayout { active: boolean; size: 'big' | 'small'; portr
export interface MediaCardHelpers {
/** 番号作品的官方封套 `<img>`(遗留层 `coverImage`):取景属性由它贴,加载后由壳接管取景。 */
coverHtml(item: MediaItem, layout: 'big' | 'small', eager: boolean): string;
+ /** 封面格换版式:格里那张 `<img>` 原地换取景类名,已加载的按新卡片比例重算取景
+ * (遗留层 `relayoutJavImages` + `coverAnchor`)。 */
+ relayoutArt(root: HTMLElement, layout: 'big' | 'small'): void;
/** 来源角标(遗留层 `srcBadge`)。 */
badgeHtml(location: string, cost: string): string;
/** 标题的 HTML:番号 + 版次徽章 + 片名,非番号作品是转义后的名字(遗留层 `javTitleHtml`)。 */
diff --git a/frontend/src/react/components/art-slot.tsx b/frontend/src/react/components/art-slot.tsx
new file mode 100644
index 000000000..de4c189f3
--- /dev/null
+++ b/frontend/src/react/components/art-slot.tsx
@@ -0,0 +1,26 @@
+/* 卡片封面格里那张图(`[data-media-art]`)。
+ *
+ * 图是遗留层拼的 HTML 片段,加载后壳在同一个 `<img>` 上改取景、把派生档换成原件(见
+ * `../catalog-grid/artwork.ts`)。大图、小图拼出的片段只差取景类名,按片段整段重写就是把
+ * 每张图都换成新元素:派生档重新解码、取景等 `load` 才重算,整屏一起闪一下。所以按
+ * `identity`(同一条作品按小图拼出的片段)认图:身份不变时留着上一段片段,版式交给
+ * `relayout` 在同一张图上换,换了图才整段重写。 */
+import { useLayoutEffect, useRef, useState } from 'react';
+
+export function ArtSlot({ artwork, identity = artwork.html, relayout }: {
+ artwork: { kind: string; html: string };
+ identity?: string;
+ relayout?(root: HTMLElement): void;
+}) {
+ const [kept, keep] = useState({ identity, artwork });
+ if (kept.identity !== identity) keep({ identity, artwork });
+ const shown = kept.identity === identity ? kept.artwork : artwork;
+ const slot = useRef<HTMLSpanElement>(null);
+ const latest = useRef(relayout);
+ latest.current = relayout;
+ // 片段一变就交给壳比对:它按图上记着的版式判断,同一版式什么都不做。
+ useLayoutEffect(() => {
+ if (slot.current) latest.current?.(slot.current);
+ }, [artwork.html]);
+ return <span ref={slot} data-media-art={shown.kind} dangerouslySetInnerHTML={{ __html: shown.html }} />;
+}
diff --git a/frontend/src/react/components/media-card.tsx b/frontend/src/react/components/media-card.tsx
index b679f204a..ca5a2f6c3 100644
--- a/frontend/src/react/components/media-card.tsx
+++ b/frontend/src/react/components/media-card.tsx
@@ -11,7 +11,8 @@
* 重画一次就被冲掉):
* - 悬停预览(`wireHover`)往封面格里插 `video.hv`/`img.hvframes`,在卡上切
* `data-previewing`/`data-longhover`,并在卡上挂 `_stopHover` 让滚动与换页时收掉。
- * - 封面取景(`coverAnchor`)改的是封面格里那张图,见 `../catalog-grid/artwork.ts`。
+ * - 封面取景(`coverAnchor`)改的是封面格里那张图,见 `../catalog-grid/artwork.ts`;
+ * 大图/小图也在那张图上原地换,见 `./art-slot.tsx`。
* - 图片微光(`PENDING_IMAGES`)在 `[data-media-art]` 上加 `imgwait`/`imgdone`。
*
* 点击的分流:多选与修饰键优先,然后是打开、实体链接、未归属、
@@ -22,6 +23,7 @@ import { spinnerHtml } from '@peach/legacy/ui';
import type { MediaCardActions, MediaCardHelpers, MediaCardLayout, MediaItem } from '../catalog-grid/types';
import { cardArtwork } from '../catalog-grid/artwork';
+import { ArtSlot } from './art-slot';
/** 大图卡片的容器比例,同遗留层 `COVER_FRONT_RATIO`:正封宽高比 0.667~0.749,0.75 比最宽
* 的那张还宽,一张都不用从左边切。 */
@@ -162,7 +164,9 @@ function VideoCard({ item, variant, layout, selected, selectMode, seekSeconds, h
const editions = item.edition_group || null;
const stacked = !!(parts || editions);
const jav = layout.active && !!item.is_jav;
- const artwork = cardArtwork(item, jav ? layout.size : 'small', false, layout.javImage, helpers.coverHtml);
+ const size = jav ? layout.size : 'small';
+ const artwork = cardArtwork(item, size, false, layout.javImage, helpers.coverHtml);
+ const identity = size === 'small' ? artwork.html : cardArtwork(item, 'small', false, layout.javImage, helpers.coverHtml).html;
const rawName = parts?.title || item.name || '';
const shownName = helpers.displayName(item, rawName);
const shownSize = parts?.total_size ?? item.size;
@@ -199,7 +203,7 @@ function VideoCard({ item, variant, layout, selected, selectMode, seekSeconds, h
const pic = (
<div data-media-pic="" style={{ '--card-ratio': String(cardRatio(item, variant, layout)) } as CSSProperties}>
{artwork.html
- ? <span data-media-art={artwork.kind} dangerouslySetInnerHTML={{ __html: artwork.html }} />
+ ? <ArtSlot artwork={artwork} identity={identity} relayout={(root) => helpers.relayoutArt(root, size)} />
: <span data-media-nopic="">无预览</span>}
<div data-media-badge="" dangerouslySetInnerHTML={{ __html: helpers.badgeHtml(item.location || '', item.cost || '') }} />
<span data-media-check=""><Icon name="check" /></span>
diff --git a/frontend/src/react/components/mix-card.tsx b/frontend/src/react/components/mix-card.tsx
index dd0a7d267..392a0d9af 100644
--- a/frontend/src/react/components/mix-card.tsx
+++ b/frontend/src/react/components/mix-card.tsx
@@ -9,6 +9,7 @@
* 伪元素、`color-mix` 与相邻兄弟选择器在工具类里写不出来。 */
import { useCallback, useRef, useState, type CSSProperties, type ReactNode } from 'react';
+import { ArtSlot } from './art-slot';
import { spriteGlyph } from './sprite-glyph';
import { useStackFlip } from './use-stack-flip';
@@ -56,6 +57,9 @@ export interface MixCardProps {
/** 静止封面改用遗留层拼的那段图片 HTML(番号作品的取景链要接管它),封面格同时带上作品卡
* 的封面格钩子(`data-media-pic`),模糊衬底与取景和作品卡同一条路。 */
artwork?: { kind: string; html: string };
+ /** 静止封面去掉版式后的身份与原地换版式,见 `./art-slot.tsx`。 */
+ artworkIdentity?: string;
+ relayoutArt?(root: HTMLElement): void;
/** 翻页的每一张也用 HTML 画,和静止封面长得一样;参数是 `flipImages` 给的那个地址。 */
faceHtml?(src: string): string;
/** 徽标上的字。不给就是「N 个视频」。 */
@@ -102,7 +106,7 @@ function Avatars({ faces, fallback, faceAvatar, onOpenEntity }: {
export function MixCard({
name, caption, count, poster, flipImages, canFlip, faces, faceAvatar, onOpenEntity, onOpen, openLabel, menu,
- ratio, artwork, faceHtml, badge, glyph, wholeCard,
+ ratio, artwork, artworkIdentity, relayoutArt, faceHtml, badge, glyph, wholeCard,
...data
}: MixCardProps & Record<`data-${string}`, string>) {
const flip = useStackFlip({ load: flipImages, canFlip });
@@ -125,7 +129,7 @@ export function MixCard({
style={ratio !== undefined ? { '--card-ratio': String(ratio) } as CSSProperties : undefined}
className="relative z-1 flex aspect-video items-center justify-center overflow-hidden rounded-surface">
{artwork?.html
- ? <span data-media-art={artwork.kind} dangerouslySetInnerHTML={{ __html: artwork.html }} />
+ ? <ArtSlot artwork={artwork} identity={artworkIdentity} relayout={relayoutArt} />
: poster
? <Poster key={poster} src={poster} />
: <span className="text-caption-1-regular tracking-caps text-text-secondary uppercase">无预览</span>}
diff --git a/frontend/test/jav-artwork.test.ts b/frontend/test/jav-artwork.test.ts
index 7ebcc1751..9e519b71c 100644
--- a/frontend/test/jav-artwork.test.ts
+++ b/frontend/test/jav-artwork.test.ts
@@ -1,5 +1,5 @@
import { describe, expect, it } from 'vitest';
-import { javImageKind, normalizeJavImage, normalizeJavPreferences, panelFrame, syncJavImages } from '../src/jav-artwork';
+import { javImageKind, normalizeJavImage, normalizeJavPreferences, panelFrame, relayoutJavImages, syncJavImages } from '../src/jav-artwork';
describe('JAV 默认封面', () => {
const jav = { is_jav: true, code: 'TEST-001', has_cover: true, has_thumb: true };
@@ -46,6 +46,27 @@ describe('JAV 默认封面', () => {
expect(img.getAttribute('style')).toBeNull();
expect(pic.style.getPropertyValue('--cover-blur')).toBe('');
});
+ it('换版式在同一张图上换取景类名,来源不动,只交回已加载完、要立刻重算的那几张', () => {
+ const root = document.createElement('div');
+ root.innerHTML = '<div data-media-pic="" style="--cover-blur:url(&quot;/cover?code=TEST-001&quot;)">'
+ + '<img data-jav-image="1" data-jav-image-layout="big" class="poster cover front panel"'
+ + ' style="--panel-left:-101.3%" src="/cover?code=TEST-001"></div>'
+ + '<img data-jav-image="2" data-jav-image-layout="big" class="poster cover front" src="/cover?code=TEST-002">'
+ + '<img data-jav-image="3" data-jav-image-layout="big" class="poster" src="/poster?id=3&c=4">';
+ const [loaded, pending, thumb] = [...root.querySelectorAll('img')] as [HTMLImageElement, HTMLImageElement, HTMLImageElement];
+ Object.defineProperty(loaded, 'naturalWidth', { value: 800 });
+ Object.defineProperty(loaded, 'complete', { value: true });
+ Object.defineProperty(pending, 'complete', { value: false });
+ expect(relayoutJavImages(root, 'small')).toEqual([loaded]);
+ expect([loaded.className, pending.className, thumb.className])
+ .toEqual(['poster cover whole', 'poster cover whole', 'poster']);
+ expect(loaded.getAttribute('style')).toBeNull();
+ expect((root.firstElementChild as HTMLElement).style.getPropertyValue('--cover-blur')).toBe('');
+ expect([loaded, pending, thumb].map(img => img.dataset.javImageLayout)).toEqual(['small', 'small', 'small']);
+ expect(loaded.getAttribute('src')).toBe('/cover?code=TEST-001');
+ // 同一版式再来一次什么都不做:卡片每次重画都会问一遍。
+ expect(relayoutJavImages(root, 'small')).toEqual([]);
+ });
it.each(['big', 'small'])('%s 保留两种封面来源,保存后恢复同一组合', javLayout => {
for (const javImage of ['cover', 'thumbnail']) {
const settings = normalizeJavPreferences({ javLayout, javImage });
diff --git a/frontend/test/react/catalog-grid.test.tsx b/frontend/test/react/catalog-grid.test.tsx
index 2a18a1b48..9aeb28edb 100644
--- a/frontend/test/react/catalog-grid.test.tsx
+++ b/frontend/test/react/catalog-grid.test.tsx
@@ -1,6 +1,6 @@
/* 馆藏卡片网格:一屏卡片怎么排(取数的查询串、折叠、Mix 落位、竖屏带落点),以及一张卡
* 画出什么、点哪里去哪里。 */
-import { act } from 'react';
+import { act, useState } from 'react';
import { describe, expect, it, vi } from 'vitest';
import { MediaCard, cardRatio, type MediaCardVariant } from '../../src/react/components/media-card';
@@ -122,6 +122,7 @@ describe('比例', () => {
describe('作品卡', () => {
const helpers: MediaCardHelpers = {
coverHtml: () => '<img class="poster cover whole" src="/cover" alt="">',
+ relayoutArt: vi.fn(),
badgeHtml: (location) => `<span>${location}</span>`,
titleHtml: (_it, raw) => raw,
displayName: (_it, raw) => raw,
@@ -236,4 +237,33 @@ describe('作品卡', () => {
expect(shortcut.host.querySelector('[data-media-who]')?.textContent).toBe('网址快捷方式');
expect(shortcut.host.querySelector('[data-media-resource-action]')?.getAttribute('title')).toBe('移入回收站');
});
+
+ it('换大图/小图留着原来那张封面,交给壳原地换取景;换了作品才换图', async () => {
+ const relayoutArt = vi.fn();
+ const layered: MediaCardHelpers = {
+ ...helpers, relayoutArt,
+ coverHtml: (it, size) => `<img class="poster cover ${size === 'small' ? 'whole' : 'front'}" src="/cover?code=${it.code}" alt="">`,
+ };
+ const BIG: MediaCardLayout = { active: true, size: 'big', portrait: false, javImage: 'cover' };
+ let show!: (next: { layout: MediaCardLayout; code: string }) => void;
+ function Harness() {
+ const [state, set] = useState({ layout: BIG, code: 'ABC-001' });
+ show = set;
+ return <MediaCard item={item(19, { is_jav: true, code: state.code, has_cover: true })} variant="grid"
+ layout={state.layout} selected={false} selectMode={false} seekSeconds={10} helpers={layered}
+ actions={actionsFor()} onOpen={vi.fn()} />;
+ }
+ const host = await mount(<Harness />);
+ const cover = host.querySelector('[data-media-art] img');
+ relayoutArt.mockClear();
+
+ await act(async () => show({ layout: { ...BIG, size: 'small' }, code: 'ABC-001' }));
+ expect(host.querySelector('[data-media-art] img')).toBe(cover);
+ expect(relayoutArt).toHaveBeenLastCalledWith(host.querySelector('[data-media-art]'), 'small');
+ expect(host.querySelector<HTMLElement>('[data-media-pic]')!.style.getPropertyValue('--card-ratio')).toBe(String(16 / 9));
+
+ await act(async () => show({ layout: { ...BIG, size: 'small' }, code: 'ABC-002' }));
+ expect(host.querySelector('[data-media-art] img')).not.toBe(cover);
+ expect(host.querySelector('[data-media-art] img')?.getAttribute('src')).toBe('/cover?code=ABC-002');
+ });
});
diff --git a/web/app.js b/web/app.js
index b083903e6..da1e28a85 100644
--- a/web/app.js
+++ b/web/app.js
@@ -17,7 +17,7 @@ import { ACCENTS, DEFAULT_ACCENT, DEFAULT_HOME_GLOW, GLASS_NATIVE_PRESET, GLOW_S
import { mountIsland, unmountIsland, updateIsland, islandMounted, preloadIslands, paginationHtml, pageCount, clampPage, preferredDirection, showToast } 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 { javImageKind, normalizeJavImage, normalizeJavLayout, normalizeJavPreferences, panelFrame, syncJavImages, nativeImageFit, faceSourceScale, entitySkeletonHtml } from './dist/peach-ui.js';
+import { javImageKind, normalizeJavImage, normalizeJavLayout, normalizeJavPreferences, panelFrame, relayoutJavImages, syncJavImages, nativeImageFit, faceSourceScale, entitySkeletonHtml } from './dist/peach-ui.js';
import {
attachOverlayScrollbar, breadcrumbHtml, checkboxHtml, closeAnchoredMenu, confirmModal, dialSliderHtml, dismissMenu, emptyStateHtml,
fillSkeletonTier, fitSkeleton, formModal, iconSwapHtml, iconSwitchHtml, indexSkeletonHtml, loadingDotsHtml,
@@ -3610,6 +3610,7 @@ const withTagToggled=(value,tag)=>{const cur=tagList(value);const index=cur.inde
比较,每次推新对象进去就是整屏重画。 */
const gridHelpers={
coverHtml:(it,layout,eager)=>coverImage(it,layout,eager),
+ relayoutArt:(root,layout)=>relayoutJavImages(root,layout).forEach(img=>{coverAnchor(img);upgradeCover(img)}),
badgeHtml:(location,cost)=>srcBadge(location,cost),
titleHtml:(it,raw)=>javTitleHtml(it,raw),
displayName:(it,raw)=>javDisplayName(it,raw),
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index 014b49bd7..dff2ed389 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -8875,21 +8875,21 @@ var tee = Symbol.for("react-aria.i18n.locale"), og = Symbol.for("react-aria.i18n
};
function lg(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = nee(e), i = ree(e);
+ let r = ug(e), i = nee(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 nee(e) {
+function ug(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function ree(e) {
+function nee(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var ug = /* @__PURE__ */ new Map(), dg = /* @__PURE__ */ new Map(), iee = class {
+var dg = /* @__PURE__ */ new Map(), fg = /* @__PURE__ */ new Map(), ree = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -8900,37 +8900,37 @@ var ug = /* @__PURE__ */ new Map(), dg = /* @__PURE__ */ new Map(), iee = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = ug.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), ug.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = dg.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), dg.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = dg.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), dg.set(this.locale, t)), t.format(e);
+ let t = fg.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), fg.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, fg = /* @__PURE__ */ new WeakMap();
-function aee(e) {
- let t = fg.get(e);
- return t || (t = new cg(e), fg.set(e, t)), t;
+}, pg = /* @__PURE__ */ new WeakMap();
+function iee(e) {
+ let t = pg.get(e);
+ return t || (t = new cg(e), pg.set(e, t)), t;
}
-function oee(e, t) {
- return t && cg.getGlobalDictionaryForPackage(t) || aee(e);
+function aee(e, t) {
+ return t && cg.getGlobalDictionaryForPackage(t) || iee(e);
}
-function pg(e, t) {
- let { locale: n } = ag(), r = oee(e, t);
- return (0, I.useMemo)(() => new iee(n, r), [n, r]);
+function mg(e, t) {
+ let { locale: n } = ag(), r = aee(e, t);
+ return (0, I.useMemo)(() => new ree(n, r), [n, r]);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var see = /* @__PURE__ */ new Set(["id"]), cee = /* @__PURE__ */ new Set([
+var oee = /* @__PURE__ */ new Set(["id"]), see = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), lee = /* @__PURE__ */ new Set([
+]), cee = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -8938,52 +8938,52 @@ var see = /* @__PURE__ */ new Set(["id"]), cee = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), uee = /* @__PURE__ */ new Set([
+]), lee = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate"
-]), mg = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), dee = /^(data-.*)$/;
-function hg(e, t = {}) {
+]), hg = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), uee = /^(data-.*)$/;
+function gg(e, t = {}) {
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) && (see.has(t) || n && cee.has(t) || r && lee.has(t) || i && uee.has(t) || a && (mg.has(t) || t.endsWith("Capture") && mg.has(t.slice(0, -7))) || o?.has(t) || dee.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (oee.has(t) || n && see.has(t) || r && cee.has(t) || i && lee.has(t) || a && (hg.has(t) || t.endsWith("Capture") && hg.has(t.slice(0, -7))) || o?.has(t) || uee.test(t)) && (s[t] = e[t]);
return s;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var gg = "default", _g = "", vg = /* @__PURE__ */ new WeakMap();
-function fee(e) {
+var _g = "default", vg = "", yg = /* @__PURE__ */ new WeakMap();
+function dee(e) {
if (Op() && Ap()) {
- if (gg === "default") {
+ if (_g === "default") {
let t = Kf(e);
- _g = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ vg = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
}
- gg = "disabled";
+ _g = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- vg.set(e, e.style[t]), e.style[t] = "none";
+ yg.set(e, e.style[t]), e.style[t] = "none";
}
}
-function yg(e) {
+function bg(e) {
if (Op() && Ap()) {
- if (gg !== "disabled") return;
- gg = "restoring", setTimeout(() => {
+ if (_g !== "disabled") return;
+ _g = "restoring", setTimeout(() => {
Am(() => {
- if (gg === "restoring") {
+ if (_g === "restoring") {
let t = Kf(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = _g || ""), _g = "", gg = "default";
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = vg || ""), vg = "", _g = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && vg.has(e)) {
- let t = vg.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), vg.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && yg.has(e)) {
+ let t = yg.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), yg.delete(e);
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function pee(e, t) {
+function fee(e, t) {
let n = qf(t), r = Kf(t);
if (r == null || n == null) return;
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
@@ -8991,18 +8991,18 @@ function pee(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getNonce.mjs
-var bg = /* @__PURE__ */ new WeakMap();
-function xg(e) {
- let t = Kf(e), n = bg.get(t);
- return n ??= pee("csp-nonce", t), n !== void 0 && bg.set(t, n), n;
+var xg = /* @__PURE__ */ new WeakMap();
+function Sg(e) {
+ let t = Kf(e), n = xg.get(t);
+ return n ??= fee("csp-nonce", t), n !== void 0 && xg.set(t, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/context.mjs
-var Sg = I.createContext({ register: () => {} });
-Sg.displayName = "PressResponderContext";
+var Cg = I.createContext({ register: () => {} });
+Cg.displayName = "PressResponderContext";
//#endregion
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function Cg() {
+function wg() {
let e = (0, I.useRef)(/* @__PURE__ */ new Map()), t = (0, I.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
@@ -9029,15 +9029,15 @@ function Cg() {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
-function mee(e) {
- let t = (0, I.useContext)(Sg);
+function pee(e) {
+ let t = (0, I.useContext)(Cg);
if (t) {
let { register: n, ref: r, ...i } = t;
e = H(i, e), n();
}
return sh(t, e.ref), e;
}
-var wg = class {
+var Tg = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -9050,9 +9050,9 @@ var wg = class {
get shouldStopPropagation() {
return this.#e;
}
-}, Tg = Symbol("linkClicked"), Eg = "react-aria-pressable-style", Dg = "data-react-aria-pressable";
-function Og(e) {
- let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = mee(e), [m, h] = (0, I.useState)(!1), g = (0, I.useRef)({
+}, Eg = Symbol("linkClicked"), Dg = "react-aria-pressable-style", Og = "data-react-aria-pressable";
+function kg(e) {
+ let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = pee(e), [m, h] = (0, I.useState)(!1), g = (0, I.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -9062,12 +9062,12 @@ function Og(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = Cg(), y = (0, I.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = wg(), y = (0, I.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new wg("pressstart", t, e);
+ let n = new Tg("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -9081,11 +9081,11 @@ function Og(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new wg("pressend", r, e);
+ let t = new Tg("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new wg("press", r, e);
+ let n = new Tg("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -9099,14 +9099,14 @@ function Og(e) {
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new wg("pressup", t, e);
+ let r = new Tg("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), C = (0, I.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(jg(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || yg(t.target);
+ t.didFirePressStart && t.pointerType != null && b(Mg(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || bg(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -9136,13 +9136,13 @@ function Og(e) {
}, [s, o]), O = (0, I.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (Ag(t.nativeEvent, t.currentTarget) && np(t.currentTarget, V(t))) {
- Ng(V(t), t.key) && t.preventDefault();
+ if (jg(t.nativeEvent, t.currentTarget) && np(t.currentTarget, V(t))) {
+ Pg(V(t), t.key) && t.preventDefault();
let r = !0;
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));
let i = t.currentTarget;
_(Kf(t.currentTarget), "keyup", Mm((t) => {
- Ag(t, i) && !t.repeat && np(i, V(t)) && e.target && S(jg(e.target, t), "keyboard");
+ jg(t, i) && !t.repeat && np(i, V(t)) && e.target && S(Mg(e.target, t), "keyboard");
}, n), !0), r && t.stopPropagation(), t.metaKey && Tp() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
@@ -9153,17 +9153,17 @@ function Og(e) {
let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");
E(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(jg(t.currentTarget, t), r), a = x(jg(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(Mg(t.currentTarget, t), r), a = x(Mg(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 && Ag(t, e.target)) {
- Ng(V(t), t.key) && t.preventDefault();
+ if (e.isPressed && e.target && jg(t, e.target)) {
+ Pg(V(t), t.key) && t.preventDefault();
let n = V(t), r = np(e.target, n);
- x(jg(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && kg(e.target) && np(e.target, n) && !t[Tg] && (t[Tg] = !0, zp(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ x(Mg(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && Ag(e.target) && np(e.target, n) && !t[Eg] && (t[Eg] = !0, zp(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
} else if (t.key === "Meta" && e.metaKeyEvents?.size) {
let t = e.metaKeyEvents;
e.metaKeyEvents = void 0;
@@ -9180,7 +9180,7 @@ function Og(e) {
e.pointerType = t.pointerType;
let i = !0;
if (!e.isPressed) {
- e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || fee(e.target), i = y(t, e.pointerType);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || dee(e.target), i = y(t, e.pointerType);
let a = V(t);
"releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(Kf(t.currentTarget), "pointerup", n, !1), _(Kf(t.currentTarget), "pointercancel", r, !1);
}
@@ -9196,9 +9196,9 @@ function Og(e) {
}, t.onPointerUp = (t) => {
!np(t.currentTarget, V(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(jg(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(Mg(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(jg(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(Mg(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
@@ -9232,13 +9232,13 @@ function Og(e) {
return (0, I.useEffect)(() => {
if (!f) return;
let e = Kf(f.current);
- if (!e || !e.head || e.getElementById(Eg)) return;
+ if (!e || !e.head || e.getElementById(Dg)) return;
let t = e.createElement("style");
- t.id = Eg;
- let n = xg(e);
+ t.id = Dg;
+ let n = Sg(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${Dg}] {
+ [${Og}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -9246,23 +9246,23 @@ function Og(e) {
}, [f]), (0, I.useEffect)(() => {
let e = g.current;
return () => {
- d || yg(e.target ?? void 0);
+ d || bg(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: H(p, O, { [Dg]: !0 })
+ pressProps: H(p, O, { [Og]: !0 })
};
}
-function kg(e) {
+function Ag(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function Ag(e, t) {
+function jg(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof qf(i).HTMLInputElement && !Fg(i, n) || i instanceof qf(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && kg(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof qf(i).HTMLInputElement && !Ig(i, n) || i instanceof qf(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && Ag(i)) && n !== "Enter");
}
-function jg(e, t) {
+function Mg(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -9275,13 +9275,13 @@ function jg(e, t) {
key: t.key
};
}
-function Mg(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !kg(e);
+function Ng(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !Ag(e);
}
-function Ng(e, t) {
- return Tp() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !Fg(e, t) : Mg(e);
+function Pg(e, t) {
+ return Tp() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !Ig(e, t) : Ng(e);
}
-var Pg = /* @__PURE__ */ new Set([
+var Fg = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -9292,12 +9292,12 @@ var Pg = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Fg(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : Pg.has(e.type);
+function Ig(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : Fg.has(e.type);
}
//#endregion
//#region node_modules/react-aria/dist/private/button/useButton.mjs
-function Ig(e, t) {
+function Lg(e, t) {
let { elementType: n = "button", isDisabled: r, onPress: i, onPressStart: a, onPressEnd: o, onPressUp: s, onPressChange: c, preventFocusOnPress: l, allowFocusWhenDisabled: u, onClick: d, href: f, target: p, rel: m, type: h = "button" } = e, g;
g = n === "button" ? {
type: h,
@@ -9319,7 +9319,7 @@ function Ig(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = Og({
+ let { pressProps: _, isPressed: v } = kg({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -9331,7 +9331,7 @@ function Ig(e, t) {
ref: t
}), { focusableProps: y } = uh(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = H(y, _, hg(e, { labelable: !0 }));
+ let b = H(y, _, gg(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: H(g, b, {
@@ -9346,7 +9346,7 @@ function Ig(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var Lg = class {
+var Rg = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -9449,45 +9449,45 @@ var Lg = class {
return null;
}
};
-function Rg(e, t, n, r) {
- return tp() ? new Lg(e, t, n, r) : e.createTreeWalker(t, n, r);
+function zg(e, t, n, r) {
+ return tp() ? new Rg(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var zg = /*#__PURE__*/ I.createContext(null), Bg = "react-aria-focus-scope-restore", Vg = null;
-function Hg(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = (0, I.useRef)([]), { parentNode: c } = (0, I.useContext)(zg) || {}, l = (0, I.useMemo)(() => new u_({ scopeRef: s }), [s]);
+var Bg = /*#__PURE__*/ I.createContext(null), Vg = "react-aria-focus-scope-restore", Hg = null;
+function Ug(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = (0, I.useRef)([]), { parentNode: c } = (0, I.useContext)(Bg) || {}, l = (0, I.useMemo)(() => new d_({ scopeRef: s }), [s]);
gp(() => {
- let e = c || d_.root;
- if (d_.getTreeNode(e.scopeRef) && Vg && !$g(Vg, e.scopeRef)) {
- let t = d_.getTreeNode(Vg);
+ let e = c || f_.root;
+ if (f_.getTreeNode(e.scopeRef) && Hg && !e_(Hg, e.scopeRef)) {
+ let t = f_.getTreeNode(Hg);
t && (e = t);
}
- e.addChild(l), d_.addNode(l);
+ e.addChild(l), f_.addNode(l);
}, [l, c]), gp(() => {
- let e = d_.getTreeNode(s);
+ let e = f_.getTreeNode(s);
e && (e.contain = !!n);
}, [n]), gp(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(Bg, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(Vg, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(Bg, n);
+ for (let e of t) e.removeEventListener(Vg, n);
};
- }, [t]), i_(s, r, n), Jg(s, n), o_(s, r, n), r_(s, i), (0, I.useEffect)(() => {
+ }, [t]), a_(s, r, n), Yg(s, n), s_(s, r, n), i_(s, i), (0, I.useEffect)(() => {
let e = rp(Kf(s.current ? s.current[0] : void 0)), t = null;
- if (Xg(e, s.current)) {
- for (let n of d_.traverse()) n.scopeRef && Xg(e, n.scopeRef.current) && (t = n);
- t === d_.getTreeNode(s) && (Vg = t.scopeRef);
+ if (Zg(e, s.current)) {
+ for (let n of f_.traverse()) n.scopeRef && Zg(e, n.scopeRef.current) && (t = n);
+ t === f_.getTreeNode(s) && (Hg = t.scopeRef);
}
}, [s]), gp(() => () => {
- let e = d_.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === Vg || $g(s, Vg)) && (!e || d_.getTreeNode(e)) && (Vg = e), d_.removeTreeNode(s);
+ let e = f_.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === Hg || e_(s, Hg)) && (!e || f_.getTreeNode(e)) && (Hg = e), f_.removeTreeNode(s);
}, [s]);
- let u = (0, I.useMemo)(() => Ug(s), []), d = (0, I.useMemo)(() => ({
+ let u = (0, I.useMemo)(() => Wg(s), []), d = (0, I.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ I.createElement(zg.Provider, { value: d }, /*#__PURE__*/ I.createElement("span", {
+ return /*#__PURE__*/ I.createElement(Bg.Provider, { value: d }, /*#__PURE__*/ I.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -9497,68 +9497,68 @@ function Hg(e) {
ref: o
}));
}
-function Ug(e) {
+function Wg(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || rp(Kf(n[0] ?? void 0)), c = n[0].previousElementSibling, l = c_(Wg(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || rp(Kf(n[0] ?? void 0)), c = n[0].previousElementSibling, l = l_(Gg(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Xg(s, n) ? s : c;
+ l.currentNode = Zg(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && e_(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && t_(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || rp(Kf(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = c_(Wg(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || rp(Kf(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = l_(Gg(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Xg(s, n) ? s : c;
+ l.currentNode = Zg(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && e_(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && t_(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = c_(Wg(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = l_(Gg(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && e_(o, !0), o;
+ return o && t_(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = c_(Wg(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = l_(Gg(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && e_(o, !0), o;
+ return o && t_(o, !0), o;
}
};
}
-function Wg(e) {
+function Gg(e) {
return e[0].parentElement;
}
-function Gg(e) {
- let t = d_.getTreeNode(Vg);
+function Kg(e) {
+ let t = f_.getTreeNode(Hg);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function Kg(e) {
+function qg(e) {
if (!e.form) return Array.from(Kf(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
let t = e.form.elements.namedItem(e.name), n = qf(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function qg(e) {
+function Jg(e) {
if (e.checked) return !0;
- let t = Kg(e);
+ let t = qg(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function Jg(e, t) {
+function Yg(e, t) {
let n = (0, I.useRef)(void 0), r = (0, I.useRef)(void 0);
gp(() => {
let i = e.current;
@@ -9567,23 +9567,23 @@ function Jg(e, t) {
return;
}
let a = Kf(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Gg(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Kg(e) || t.isComposing) return;
let n = rp(a), r = e.current;
- if (!r || !Xg(n, r)) return;
- let i = c_(Wg(r), { tabbable: !0 }, r);
+ if (!r || !Zg(n, r)) return;
+ let i = l_(Gg(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 && (e_(o, !0), o instanceof qf(o).HTMLInputElement && o.select());
+ o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (t_(o, !0), o instanceof qf(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!Vg || $g(Vg, e)) && Xg(V(t), e.current) ? (Vg = e, n.current = V(t)) : Gg(e) && !Zg(V(t), e) ? n.current ? e_(n.current) : Vg && Vg.current && n_(Vg.current) : Gg(e) && (n.current = V(t));
+ (!Hg || e_(Hg, e)) && Zg(V(t), e.current) ? (Hg = e, n.current = V(t)) : Kg(e) && !Qg(V(t), e) ? n.current ? t_(n.current) : Hg && Hg.current && r_(Hg.current) : Kg(e) && (n.current = V(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
let r = bm(), i = (r === "virtual" || r === null) && Mp() && jp(), o = rp(a);
- if (!i && o && Gg(e) && !Zg(o, e)) {
- Vg = e;
+ if (!i && o && Kg(e) && !Qg(o, e)) {
+ Hg = e;
let r = V(t);
- r && r.isConnected ? (n.current = r, e_(n.current)) : Vg.current && n_(Vg.current);
+ r && r.isConnected ? (n.current = r, t_(n.current)) : Hg.current && r_(Hg.current);
}
});
};
@@ -9594,29 +9594,29 @@ function Jg(e, t) {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function Yg(e) {
- return Zg(e);
+function Xg(e) {
+ return Qg(e);
}
-function Xg(e, t) {
+function Zg(e, t) {
return !e || !t ? !1 : t.some((t) => np(t, e));
}
-function Zg(e, t = null) {
+function Qg(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of d_.traverse(d_.getTreeNode(t))) if (n && Xg(e, n.current)) return !0;
+ for (let { scopeRef: n } of f_.traverse(f_.getTreeNode(t))) if (n && Zg(e, n.current)) return !0;
return !1;
}
-function Qg(e) {
- return Zg(e, Vg);
+function $g(e) {
+ return Qg(e, Hg);
}
-function $g(e, t) {
- let n = d_.getTreeNode(t)?.parent;
+function e_(e, t) {
+ let n = f_.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function e_(e, t = !1) {
+function t_(e, t = !1) {
if (e != null && !t) try {
jm(e);
} catch {}
@@ -9624,27 +9624,27 @@ function e_(e, t = !1) {
e.focus();
} catch {}
}
-function t_(e, t = !0) {
- let n = e[0].previousElementSibling, r = Wg(e), i = c_(r, { tabbable: t }, e);
+function n_(e, t = !0) {
+ let n = e[0].previousElementSibling, r = Gg(e), i = l_(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = Wg(e), i = c_(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = Gg(e), i = l_(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function n_(e, t = !0) {
- e_(t_(e, t));
+function r_(e, t = !0) {
+ t_(n_(e, t));
}
-function r_(e, t) {
+function i_(e, t) {
let n = I.useRef(t);
(0, I.useEffect)(() => {
- n.current && (Vg = e, !Xg(rp(Kf(e.current ? e.current[0] : void 0)), Vg.current) && e.current && n_(e.current)), n.current = !1;
+ n.current && (Hg = e, !Zg(rp(Kf(e.current ? e.current[0] : void 0)), Hg.current) && e.current && r_(e.current)), n.current = !1;
}, [e]);
}
-function i_(e, t, n) {
+function a_(e, t, n) {
gp(() => {
if (t || n) return;
let r = e.current, i = Kf(r ? r[0] : void 0), a = (t) => {
let n = V(t);
- Xg(n, e.current) ? Vg = e : Yg(n) || (Vg = null);
+ Zg(n, e.current) ? Hg = e : Xg(n) || (Hg = null);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
@@ -9655,21 +9655,21 @@ function i_(e, t, n) {
n
]);
}
-function a_(e) {
- let t = d_.getTreeNode(Vg);
+function o_(e) {
+ let t = f_.getTreeNode(Hg);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function o_(e, t, n) {
+function s_(e, t, n) {
let r = (0, I.useRef)(typeof document < "u" ? rp(Kf(e.current ? e.current[0] : void 0)) : null);
gp(() => {
let r = e.current, i = Kf(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!Vg || $g(Vg, e)) && Xg(rp(i), e.current) && (Vg = e);
+ (!Hg || e_(Hg, e)) && Zg(rp(i), e.current) && (Hg = e);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
@@ -9678,20 +9678,20 @@ function o_(e, t, n) {
let r = Kf(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Gg(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Kg(e) || t.isComposing) return;
let n = r.activeElement;
- if (!Zg(n, e) || !a_(e)) return;
- let i = d_.getTreeNode(e);
+ if (!Qg(n, e) || !o_(e)) return;
+ let i = f_.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = c_(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = l_(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 || !Zg(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !Qg(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (Zg(s, e));
- t.preventDefault(), t.stopPropagation(), s ? e_(s, !0) : Yg(a) ? e_(a, !0) : n.blur();
+ while (Qg(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? t_(s, !0) : Xg(a) ? t_(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -9704,28 +9704,28 @@ function o_(e, t, n) {
]), gp(() => {
let n = Kf(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = d_.getTreeNode(e);
+ let i = f_.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = d_.getTreeNode(e);
+ let r = f_.getTreeNode(e);
if (!r) return;
let i = r.nodeToRestore, a = rp(n);
- if (t && i && (a && Zg(a, e) || a === n.body && a_(e))) {
- let t = d_.clone();
+ if (t && i && (a && Qg(a, e) || a === n.body && o_(e))) {
+ let t = f_.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- s_(n.nodeToRestore);
+ c_(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && d_.getTreeNode(n.scopeRef)) {
- let e = t_(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && f_.getTreeNode(n.scopeRef)) {
+ let e = n_(n.scopeRef.current, !0);
if (e) {
- s_(e);
+ c_(e);
return;
}
}
@@ -9737,21 +9737,21 @@ function o_(e, t, n) {
};
}, [e, t]);
}
-function s_(e) {
- e.dispatchEvent(new CustomEvent(Bg, {
+function c_(e) {
+ e.dispatchEvent(new CustomEvent(Vg, {
bubbles: !0,
cancelable: !0
- })) && e_(e);
+ })) && t_(e);
}
-function c_(e, t, n) {
- let r = t?.tabbable ? mp : pp, i = Kf(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = Rg(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return np(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!qg(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || Xg(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function l_(e, t, n) {
+ let r = t?.tabbable ? mp : pp, i = Kf(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = zg(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return np(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Jg(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || Zg(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var l_ = class e {
+var u_ = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new u_({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new d_({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -9762,7 +9762,7 @@ var l_ = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new u_({ scopeRef: e });
+ let i = new d_({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -9773,7 +9773,7 @@ var l_ = 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 && Xg(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 && Zg(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
let r = t.children;
n && (n.removeChild(t), r.size > 0 && r.forEach((e) => n && n.addChild(e))), this.fastMap.delete(t.scopeRef);
}
@@ -9785,7 +9785,7 @@ var l_ = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, u_ = class {
+}, d_ = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -9795,13 +9795,13 @@ var l_ = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, d_ = new l_(), f_ = 7e3, p_ = null;
-function m_(e, t = "assertive", n = f_) {
- p_ ? p_.announce(e, t, n) : (p_ = new h_(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? p_.announce(e, t, n) : setTimeout(() => {
- p_?.isAttached() && p_?.announce(e, t, n);
+}, f_ = new u_(), p_ = 7e3, m_ = null;
+function h_(e, t = "assertive", n = p_) {
+ m_ ? m_.announce(e, t, n) : (m_ = new g_(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? m_.announce(e, t, n) : setTimeout(() => {
+ m_?.isAttached() && m_?.announce(e, t, n);
}, 100));
}
-var h_ = class {
+var g_ = class {
constructor() {
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
border: 0,
@@ -9826,7 +9826,7 @@ var h_ = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = f_) {
+ announce(e, t = "assertive", n = p_) {
if (!this.node) return;
let r = document.createElement("div");
typeof e == "object" ? (r.setAttribute("role", "img"), r.setAttribute("aria-labelledby", e["aria-labelledby"])) : r.textContent = e, t === "assertive" ? this.assertiveLog?.appendChild(r) : this.politeLog?.appendChild(r), e !== "" && setTimeout(() => {
@@ -9839,7 +9839,7 @@ var h_ = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function g_(e, t) {
+function __(e, t) {
let n = (0, I.useRef)(!0), r = (0, I.useRef)(null), i = qh(e);
(0, I.useEffect)(() => (n.current = !0, () => {
n.current = !1;
@@ -9850,31 +9850,31 @@ function g_(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function __(e, t) {
+function v_(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 v_(e, t) {
+function y_(e, t) {
let n = e;
- for (__(n, t) && (n = n.parentElement); n && !__(n, t);) n = n.parentElement;
+ for (v_(n, t) && (n = n.parentElement); n && !v_(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function y_(e, t) {
+function b_(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (__(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (v_(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function b_(e, t, n = {}) {
- e !== t && hee(e, t, t.getBoundingClientRect(), n);
+function x_(e, t, n = {}) {
+ e !== t && mee(e, t, t.getBoundingClientRect(), n);
}
-function hee(e, t, n, r = {}) {
+function mee(e, t, n, r = {}) {
let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, N = e === d ? 0 : D + O, ee = e === d ? 0 : T + E, te = e === d ? 0 : e.offsetWidth - e.clientWidth - N, P = e === d ? 0 : e.offsetHeight - e.clientHeight - ee, F = p + (f ? 0 : T) + x, ne = m - (f ? 0 : E) - S - P, re = h + (f ? 0 : D) + C, ie = g - (f ? 0 : O) - w;
Op() && Ap() || u.direction === "ltr" ? ie -= te : u.direction === "rtl" && (re += te);
let I = k < F || A > ne, L = j < re || M > ie;
@@ -9897,7 +9897,7 @@ function hee(e, t, n, r = {}) {
top: o
});
}
-function x_(e, t = {}) {
+function S_(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -9910,46 +9910,46 @@ function x_(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = y_(e, !0);
- for (let t of i) b_(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = b_(e, !0);
+ for (let t of i) x_(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? y_(n, !0) : [];
- for (let e of i) b_(e, n, {
+ i = n ? b_(n, !0) : [];
+ for (let e of i) x_(e, n, {
block: "center",
inline: "center"
});
- for (let t of y_(e, !0)) b_(t, e);
+ for (let t of b_(e, !0)) x_(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var gee = 0, S_ = /* @__PURE__ */ new Map();
-function C_(e) {
+var hee = 0, C_ = /* @__PURE__ */ new Map();
+function w_(e) {
let [t, n] = (0, I.useState)();
return gp(() => {
if (!e) return;
- let t = S_.get(e);
+ let t = C_.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${gee++}`;
+ let r = `react-aria-description-${hee++}`;
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
- }, S_.set(e, t);
+ }, C_.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), S_.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), C_.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function w_(e, t, n) {
+function T_(e, t, n) {
let r = qh((e) => {
n && !e.defaultPrevented && n(t);
});
@@ -9962,12 +9962,12 @@ function w_(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function T_(e, t, n) {
+function E_(e, t, n) {
let { validationBehavior: r, focus: i } = e;
gp(() => {
if (r === "native" && n?.current && "setCustomValidity" in n.current && !n.current.disabled) {
let e = t.realtimeValidation.isInvalid ? t.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
- n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(vee(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(_ee(n.current));
}
});
let a = (0, I.useRef)(!1), o = qh(() => {
@@ -9975,7 +9975,7 @@ function T_(e, t, n) {
}), s = qh((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && yee(r) === n.current && (i ? i() : n.current?.focus(), xm("keyboard")), e.preventDefault();
+ !e.defaultPrevented && n && r && vee(r) === n.current && (i ? i() : n.current?.focus(), xm("keyboard")), e.preventDefault();
}), c = qh(() => {
t.commitValidation();
});
@@ -9990,7 +9990,7 @@ function T_(e, t, n) {
};
}, [n, r]);
}
-function _ee(e) {
+function gee(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -10006,14 +10006,14 @@ function _ee(e) {
valid: t.valid
};
}
-function vee(e) {
+function _ee(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: _ee(e),
+ validationDetails: gee(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function yee(e) {
+function vee(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -10022,7 +10022,7 @@ function yee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSlot.mjs
-function bee(e = !0) {
+function yee(e = !0) {
let [t, n] = (0, I.useState)(e), r = (0, I.useRef)(!1), i = (0, I.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -10030,8 +10030,8 @@ function bee(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function E_(e = !0) {
- let t = Rm(), [n, r] = bee(e);
+function D_(e = !0) {
+ let t = Rm(), [n, r] = yee(e);
return {
id: r ? t : void 0,
ref: n
@@ -10039,7 +10039,7 @@ function E_(e = !0) {
}
//#endregion
//#region node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var D_ = {
+var O_ = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -10051,18 +10051,18 @@ var D_ = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, O_ = {
- ...D_,
+}, k_ = {
+ ...O_,
customError: !0,
valid: !1
-}, k_ = {
+}, A_ = {
isInvalid: !1,
- validationDetails: D_,
+ validationDetails: O_,
validationErrors: []
-}, xee = (0, I.createContext)({}), A_ = "__reactAriaFormValidationState";
-function j_(e) {
+}, bee = (0, I.createContext)({}), j_ = "__reactAriaFormValidationState";
+function M_(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[A_];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[j_];
return {
realtimeValidation: t,
displayValidation: n,
@@ -10071,71 +10071,71 @@ function j_(e) {
commitValidation: a
};
}
- return See(e);
+ return xee(e);
}
-function See(e) {
+function xee(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: O_
- }, l = (0, I.useMemo)(() => !o || i == null ? null : N_(Cee(o, i)), [o, i]);
+ validationDetails: k_
+ }, l = (0, I.useMemo)(() => !o || i == null ? null : P_(See(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, I.useContext)(xee), d = (0, I.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => M_(u[e])) : M_(u[r]) : [], [u, r]), [f, p] = (0, I.useState)(u), [m, h] = (0, I.useState)(!1);
+ let u = (0, I.useContext)(bee), d = (0, I.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => N_(u[e])) : N_(u[r]) : [], [u, r]), [f, p] = (0, I.useState)(u), [m, h] = (0, I.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, I.useMemo)(() => N_(m ? [] : d), [m, d]), _ = (0, I.useRef)(k_), [v, y] = (0, I.useState)(k_), b = (0, I.useRef)(k_), x = () => {
+ let g = (0, I.useMemo)(() => P_(m ? [] : d), [m, d]), _ = (0, I.useRef)(A_), [v, y] = (0, I.useState)(A_), b = (0, I.useRef)(A_), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- P_(e, b.current) || (b.current = e, y(e));
+ F_(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, I.useState)(!1);
return (0, I.useEffect)(x), {
- realtimeValidation: c || g || l || a || k_,
+ realtimeValidation: c || g || l || a || A_,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !P_(v, e) ? y(e) : _.current = e;
+ s === "aria" && !F_(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = k_;
- P_(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = A_;
+ F_(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function M_(e) {
+function N_(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function Cee(e, t) {
+function See(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return M_(n);
+ if (n && typeof n != "boolean") return N_(n);
}
return [];
}
-function N_(e) {
+function P_(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: O_
+ validationDetails: k_
} : null;
}
-function P_(e, t) {
+function F_(e, t) {
return e === t || !!e && !!t && e.isInvalid === t.isInvalid && e.validationErrors.length === t.validationErrors.length && e.validationErrors.every((e, n) => e === t.validationErrors[n]) && Object.entries(e.validationDetails).every(([e, n]) => t.validationDetails[e] === n);
}
//#endregion
//#region node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function F_(e, t, n) {
- let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = j_({
+function I_(e, t, n) {
+ let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = M_({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- T_(e, b, n);
+ E_(e, b, n);
let w = (e) => {
e.stopPropagation(), t.setSelected(V(e).checked);
- }, { pressProps: T, isPressed: E } = Og({
+ }, { pressProps: T, isPressed: E } = kg({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -10143,7 +10143,7 @@ function F_(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [D, O] = (0, I.useState)(!1), { pressProps: k } = Og({
+ }), [D, O] = (0, I.useState)(!1), { pressProps: k } = kg({
onPressStart(e) {
if (e.pointerType === "keyboard" || e.pointerType === "virtual") {
e.continuePropagation();
@@ -10172,13 +10172,13 @@ function F_(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [A_]: i } = e, { commitValidation: a } = i || b;
+ let { [j_]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: A } = uh(e, n), j = H(T, A), M = hg(e, { labelable: !0 });
- w_(n, t.defaultSelected, t.setSelected);
- let N = E_(), ee = E_();
+ }), { focusableProps: A } = uh(e, n), j = H(T, A), M = gg(e, { labelable: !0 });
+ T_(n, t.defaultSelected, t.setSelected);
+ let N = D_(), ee = D_();
return {
labelProps: H(k, { onClick: (e) => e.preventDefault() }),
inputProps: H(M, {
@@ -10215,8 +10215,8 @@ function F_(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function I_(e, t, n) {
- let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = F_(e, t, n), { isIndeterminate: m } = e;
+function L_(e, t, n) {
+ let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = I_(e, t, n), { isIndeterminate: m } = e;
return (0, I.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
@@ -10235,10 +10235,10 @@ function I_(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/utils.mjs
-var wee = /* @__PURE__ */ new WeakMap();
+var Cee = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function L_(e) {
+function R_(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
t = Rm(t);
let o = Rm(), s = {};
@@ -10258,8 +10258,8 @@ function L_(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function R_(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = L_(e), s = Bm([
+function z_(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = R_(e), s = Bm([
!!t,
!!n,
r,
@@ -10283,8 +10283,8 @@ function R_(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function z_(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, I.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Cg(), c = (0, I.useCallback)((e) => {
+function B_(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, I.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = wg(), c = (0, I.useCallback)((e) => {
np(e.currentTarget, V(e)) && a.current.isFocusWithin && !np(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
@@ -10324,14 +10324,14 @@ function z_(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var Tee = typeof document < "u" ? I.useInsertionEffect ?? I.useLayoutEffect : () => {};
-function B_(e, t, n) {
+var wee = typeof document < "u" ? I.useInsertionEffect ?? I.useLayoutEffect : () => {};
+function V_(e, t, n) {
let [r, i] = (0, I.useState)(e || t), a = (0, I.useRef)(r), o = (0, I.useRef)(e !== void 0), s = e !== void 0;
(0, I.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- Tee(() => {
+ wee(() => {
a.current = c;
});
let [, l] = (0, I.useReducer)(() => ({}), {});
@@ -10342,8 +10342,8 @@ function B_(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function V_(e = {}) {
- let { isReadOnly: t } = e, [n, r] = B_(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, I.useState)(n);
+function H_(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = V_(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, I.useState)(n);
function a(e) {
t || r(e);
}
@@ -10359,26 +10359,26 @@ function V_(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function Eee(e, t, n) {
- let r = V_({
+function Tee(e, t, n) {
+ let r = H_({
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 } = wee.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = Cee.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = j_({
+ let { realtimeValidation: l } = M_({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, I.useRef)(k_), d = () => {
+ }), u = (0, I.useRef)(A_), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, I.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = I_({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = L_({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -10386,7 +10386,7 @@ function Eee(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [A_]: {
+ [j_]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -10410,12 +10410,12 @@ function Eee(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function H_(e, t = -Infinity, n = Infinity) {
+function U_(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
//#endregion
//#region node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var U_ = {
+var W_ = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -10427,38 +10427,38 @@ var U_ = {
width: "1px",
whiteSpace: "nowrap"
};
-function W_(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, I.useState)(!1), { focusWithinProps: a } = z_({
+function G_(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, I.useState)(!1), { focusWithinProps: a } = B_({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, I.useMemo)(() => r ? t : t ? {
- ...U_,
+ ...W_,
...t
- } : U_, [r]);
+ } : W_, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function G_(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = W_(e);
+function K_(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = G_(e);
return /*#__PURE__*/ I.createElement(n, H(a, o), t);
}
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function Dee(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = B_(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = uh(e, t), d = j_({
+function Eee(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = V_(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = uh(e, t), d = M_({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = R_({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = z_({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = hg(e, { labelable: !0 }), b = {
+ }), y = gg(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, I.useState)(c);
- return w_(t, e.defaultValue ?? x, l), T_(e, d, t), {
+ return T_(t, e.defaultValue ?? x, l), E_(e, d, t), {
labelProps: h,
inputProps: H(y, n === "input" ? b : void 0, {
disabled: r,
@@ -10505,13 +10505,13 @@ function Dee(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var Oee = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function K_(e) {
+var Dee = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function q_(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var q_ = /* @__PURE__ */ new WeakMap(), J_ = [];
-function Y_(e, t) {
- let n = qf(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Oee, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
+var J_ = /* @__PURE__ */ new WeakMap(), Y_ = [];
+function X_(e, t) {
+ let n = qf(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Dee, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
a && e instanceof n.HTMLElement ? e.inert = t : t ? e.setAttribute("aria-hidden", "true") : (e.removeAttribute("aria-hidden"), e instanceof n.HTMLElement && (e.inert = !1));
}, u = /* @__PURE__ */ new Set();
if (tp()) {
@@ -10527,19 +10527,19 @@ function Y_(e, t) {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
for (let t of o) if (np(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = Rg(Kf(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = zg(Kf(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
if (r === NodeFilter.FILTER_ACCEPT && f(e), r !== NodeFilter.FILTER_REJECT) {
let e = n.nextNode();
for (; e != null;) f(e), e = n.nextNode();
}
}, f = (e) => {
- let t = q_.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), q_.set(e, t + 1));
+ let t = J_.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), J_.set(e, t + 1));
};
- J_.length && J_[J_.length - 1].disconnect(), d(i);
+ Y_.length && Y_[Y_.length - 1].disconnect(), d(i);
let p = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => np(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && K_(e) ? o.add(e) : e instanceof Element && d(e);
+ if (t.target.isConnected && ![...o, ...s].some((e) => np(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && q_(e) ? o.add(e) : e instanceof Element && d(e);
if (tp()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
@@ -10556,7 +10556,7 @@ function Y_(e, t) {
if (tp()) for (let e of u) {
let t = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => np(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && K_(e) ? o.add(e) : e instanceof Element && d(e);
+ if (t.target.isConnected && ![...o, ...s].some((e) => np(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && q_(e) ? o.add(e) : e instanceof Element && d(e);
if (tp()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
@@ -10583,59 +10583,59 @@ function Y_(e, t) {
p.disconnect();
}
};
- return J_.push(h), () => {
+ return Y_.push(h), () => {
if (p.disconnect(), tp()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = q_.get(e);
- t != null && (t === 1 ? (l(e, !1), q_.delete(e)) : q_.set(e, t - 1));
+ let t = J_.get(e);
+ t != null && (t === 1 ? (l(e, !1), J_.delete(e)) : J_.set(e, t - 1));
}
- h === J_[J_.length - 1] ? (J_.pop(), J_.length && J_[J_.length - 1].observe()) : J_.splice(J_.indexOf(h), 1);
+ h === Y_[Y_.length - 1] ? (Y_.pop(), Y_.length && Y_[Y_.length - 1].observe()) : Y_.splice(Y_.indexOf(h), 1);
};
}
-function kee(e) {
- let t = J_[J_.length - 1];
+function Oee(e) {
+ let t = Y_[Y_.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/utils.mjs
-var X_ = /* @__PURE__ */ new WeakMap();
-function Aee(e) {
+var Z_ = /* @__PURE__ */ new WeakMap();
+function kee(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function jee(e, t) {
- let n = X_.get(e);
+function Aee(e, t) {
+ let n = Z_.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${Aee(t)}`;
+ return `${n.id}-option-${kee(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function Z_(e) {
+function Q_(e) {
return kp() ? e.altKey : e.ctrlKey;
}
-function Q_(e, t) {
+function $_(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 $_ = /* @__PURE__ */ new WeakMap();
-function Mee(e) {
+var ev = /* @__PURE__ */ new WeakMap();
+function jee(e) {
let t = Rm();
- return $_.set(e, t), t;
+ return ev.set(e, t), t;
}
-function Nee(e) {
- return $_.get(e);
+function Mee(e) {
+ return ev.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var ev = class {
+var tv = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : Q_(this.ref, e);
+ let n = e == null ? null : $_(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -10661,12 +10661,12 @@ var ev = class {
height: e?.clientHeight ?? 0
};
}
-}, tv = class {
+}, nv = 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 ev(t.ref);
- } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new ev(this.ref);
+ this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new tv(t.ref);
+ } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new tv(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -10706,14 +10706,14 @@ var ev = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = Q_(this.ref, e);
+ let t = this.getNextKey(e), n = $_(this.ref, e);
if (t != null) {
- let e = Q_(this.ref, t);
+ let e = $_(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = Q_(this.ref, r);
+ let e = $_(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -10747,7 +10747,7 @@ var ev = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !__(t)) return this.getFirstKey();
+ if (t && !v_(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -10762,7 +10762,7 @@ var ev = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !__(t)) return this.getLastKey();
+ if (t && !v_(t)) return this.getLastKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.min(this.layoutDelegate.getContentSize().width, n.x - n.width + this.layoutDelegate.getVisibleRect().width);
@@ -10785,184 +10785,184 @@ var ev = class {
}
return null;
}
-}, nv = {};
-nv = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, rv = {};
+rv = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var rv = {};
-rv = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var iv = {};
+iv = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var iv = {};
-iv = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var av = {};
+av = { 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 av = {};
-av = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var ov = {};
+ov = { 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 ov = {};
-ov = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var sv = {};
+sv = { 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 sv = {};
-sv = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var cv = {};
+cv = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var cv = {};
-cv = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var lv = {};
+lv = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var lv = {};
-lv = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var uv = {};
+uv = { 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 uv = {};
-uv = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var dv = {};
+dv = { 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 dv = {};
-dv = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var fv = {};
+fv = { 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 fv = {};
-fv = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var pv = {};
+pv = { 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 pv = {};
-pv = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var mv = {};
+mv = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var mv = {};
-mv = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var hv = {};
+hv = { 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 hv = {};
-hv = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var gv = {};
+gv = { 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 gv = {};
-gv = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var _v = {};
+_v = { 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 _v = {};
-_v = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var vv = {};
+vv = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var vv = {};
-vv = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var yv = {};
+yv = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var yv = {};
-yv = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var bv = {};
+bv = { 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 bv = {};
-bv = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var xv = {};
+xv = { 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 xv = {};
-xv = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var Sv = {};
+Sv = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var Sv = {};
-Sv = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var Cv = {};
+Cv = { 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 Cv = {};
-Cv = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var wv = {};
+wv = { 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 wv = {};
-wv = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var Tv = {};
+Tv = { 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 Tv = {};
-Tv = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var Ev = {};
+Ev = { 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 Ev = {};
-Ev = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var Dv = {};
+Dv = { 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 Dv = {};
-Dv = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var Ov = {};
+Ov = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var Ov = {};
-Ov = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var kv = {};
+kv = { 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 kv = {};
-kv = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var Av = {};
+Av = { 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 Av = {};
-Av = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var jv = {};
+jv = { 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 jv = {};
-jv = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var Mv = {};
+Mv = { 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 Mv = {};
-Mv = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var Nv = {};
+Nv = { 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 Nv = {};
-Nv = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var Pv = {};
+Pv = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var Pv = {};
-Pv = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var Fv = {};
+Fv = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var Fv = {};
-Fv = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var Iv = {};
+Iv = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var Iv = {};
-Iv = {
- "ar-AE": nv,
- "bg-BG": rv,
- "cs-CZ": iv,
- "da-DK": av,
- "de-DE": ov,
- "el-GR": sv,
- "en-US": cv,
- "es-ES": lv,
- "et-EE": uv,
- "fi-FI": dv,
- "fr-FR": fv,
- "he-IL": pv,
- "hr-HR": mv,
- "hu-HU": hv,
- "it-IT": gv,
- "ja-JP": _v,
- "ko-KR": vv,
- "lt-LT": yv,
- "lv-LV": bv,
- "nb-NO": xv,
- "nl-NL": Sv,
- "pl-PL": Cv,
- "pt-BR": wv,
- "pt-PT": Tv,
- "ro-RO": Ev,
- "ru-RU": Dv,
- "sk-SK": Ov,
- "sl-SI": kv,
- "sr-SP": Av,
- "sv-SE": jv,
- "tr-TR": Mv,
- "uk-UA": Nv,
- "zh-CN": Pv,
- "zh-TW": Fv
+var Lv = {};
+Lv = {
+ "ar-AE": rv,
+ "bg-BG": iv,
+ "cs-CZ": av,
+ "da-DK": ov,
+ "de-DE": sv,
+ "el-GR": cv,
+ "en-US": lv,
+ "es-ES": uv,
+ "et-EE": dv,
+ "fi-FI": fv,
+ "fr-FR": pv,
+ "he-IL": mv,
+ "hr-HR": hv,
+ "hu-HU": gv,
+ "it-IT": _v,
+ "ja-JP": vv,
+ "ko-KR": yv,
+ "lt-LT": bv,
+ "lv-LV": xv,
+ "nb-NO": Sv,
+ "nl-NL": Cv,
+ "pl-PL": wv,
+ "pt-BR": Tv,
+ "pt-PT": Ev,
+ "ro-RO": Dv,
+ "ru-RU": Ov,
+ "sk-SK": kv,
+ "sl-SI": Av,
+ "sr-SP": jv,
+ "sv-SE": Mv,
+ "tr-TR": Nv,
+ "uk-UA": Pv,
+ "zh-CN": Fv,
+ "zh-TW": Iv
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var Pee = 500;
-function Lv(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Pee, accessibilityDescription: s } = e, c = (0, I.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Cg(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = Og({
+var Nee = 500;
+function Rv(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Nee, accessibilityDescription: s } = e, c = (0, I.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = wg(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = kg({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -10990,12 +10990,12 @@ function Lv(e) {
});
}
});
- return { longPressProps: H(f, C_(a && !t ? s : void 0)) };
+ return { longPressProps: H(f, w_(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function Fee(e) {
- let { onContextMenu: t } = e, n = (0, I.useRef)(!1), { longPressProps: r } = Lv({
+function Pee(e) {
+ let { onContextMenu: t } = e, n = (0, I.useRef)(!1), { longPressProps: r } = Rv({
onLongPressStart() {
n.current = !1;
},
@@ -11038,13 +11038,13 @@ function Fee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var Rv = /* @__PURE__ */ new WeakMap();
-function Iee(e) {
+var zv = /* @__PURE__ */ new WeakMap();
+function Bv(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
(0, I.useEffect)(() => !n || r === null ? void 0 : Qf(ip(t.current), "scroll", (e) => {
let n = V(e);
if (!t.current || n instanceof Node && !np(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || Rv.get(t.current);
+ let i = r || zv.get(t.current);
i && i();
}, !0), [
n,
@@ -11054,10 +11054,10 @@ function Iee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function Lee(e, t, n) {
+function Fee(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, I.useEffect)(() => {
- n && n.current && Rv.set(n.current, t.close);
+ n && n.current && zv.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
@@ -11074,11 +11074,11 @@ function Lee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function Ree(e) {
+function Iee(e) {
return e && e.__esModule ? e.default : e;
}
-function zv(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Rm(), { triggerProps: s, overlayProps: c } = Lee({ type: r }, t, n), l = (e, n, r = "first") => {
+function Vv(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Rm(), { triggerProps: s, overlayProps: c } = Fee({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
}, { keyboardProps: u } = ah({
@@ -11093,7 +11093,7 @@ function zv(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = pg(Ree(Iv), "@react-aria/menu"), { longPressProps: f } = Lv({
+ }), d = mg(Iee(Lv), "@react-aria/menu"), { longPressProps: f } = Rv({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -11112,7 +11112,7 @@ function zv(e, t, n) {
}
};
delete s.onPress;
- let { contextMenuProps: m } = Fee({ onContextMenu(e) {
+ let { contextMenuProps: m } = Pee({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -11157,8 +11157,8 @@ function zv(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var Bv = 1e3;
-function Vv(e) {
+var Hv = 1e3;
+function Uv(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, I.useRef)({
search: "",
timeout: void 0
@@ -11177,11 +11177,11 @@ function Vv(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, Bv);
+ }, Hv);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = zee(e.key);
+ let a = Wv(e.key);
if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !np(e.currentTarget, V(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
@@ -11193,17 +11193,17 @@ function Vv(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, Bv);
+ }, Hv);
}
} : void 0
} };
}
-function zee(e) {
+function Wv(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function Hv(e, t) {
+function Gv(e, t) {
let n = (0, I.useRef)(!0), r = (0, I.useRef)(null);
gp(() => (n.current = !0, () => {
n.current = !1;
@@ -11213,14 +11213,14 @@ function Hv(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function Uv(e) {
+function Kv(e) {
let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = ag(), _ = Lp(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !Z_(e)) {
+ if (t.isLink(n) && m === "selection" && l && !Q_(e)) {
(0, yh.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = Q_(r, n), o = t.getItemProps(n);
+ let a = $_(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -11232,7 +11232,7 @@ function Uv(e) {
t.extendSelection(n);
return;
}
- if (l && !Z_(e)) {
+ if (l && !Q_(e)) {
t.replaceSelection(n);
return;
}
@@ -11332,7 +11332,7 @@ function Uv(e) {
return !1;
}, k = () => {
if (!f && r.current) {
- let e = c_(r.current, { tabbable: !0 }), t, n;
+ let e = l_(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
@@ -11395,8 +11395,8 @@ function Uv(e) {
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
} else p.current && (p.current.scrollTop = ee.current.top, p.current.scrollLeft = ee.current.left);
if (t.focusedKey != null && p.current) {
- let e = Q_(r, t.focusedKey);
- e instanceof HTMLElement && (!ap(e) && !d && Vf(e), (i === "keyboard" || h && i === "virtual") && x_(e, { containingElement: r.current }));
+ let e = $_(r, t.focusedKey);
+ e instanceof HTMLElement && (!ap(e) && !d && Vf(e), (i === "keyboard" || h && i === "virtual") && S_(e, { containingElement: r.current }));
}
}, P = (e) => {
np(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
@@ -11406,14 +11406,14 @@ function Uv(e) {
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (F.current = !0);
} : void 0);
let ne = n.getFirstKey?.() ?? null;
- Hv(() => {
+ Gv(() => {
if (F.current) {
if (ne == null) {
let e = rp();
zh(r.current), Vh(e, null), t.collection.size > 0 && (F.current = !1);
} else t.setFocusedKey(ne), F.current = !1;
}
- }, [ne, t.collection.size]), Hv(() => {
+ }, [ne, t.collection.size]), Gv(() => {
t.collection.size > 0 && (F.current = !1);
}, [t.focusedKey]), Jh(r, Lh, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
@@ -11436,10 +11436,10 @@ function Uv(e) {
let L = (0, I.useRef)(t.focusedKey), ae = (0, I.useRef)(null);
(0, I.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== L.current || ie.current) && p.current && r.current) {
- let e = bm(), n = Q_(r, t.focusedKey);
+ let e = bm(), n = $_(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || ie.current) && (ae.current && cancelAnimationFrame(ae.current), ae.current = requestAnimationFrame(() => {
- p.current && (b_(p.current, n), e !== "virtual" && x_(n, { containingElement: r.current }));
+ p.current && (x_(p.current, n), e !== "virtual" && S_(n, { containingElement: r.current }));
}));
}
!d && t.isFocused && t.focusedKey == null && L.current != null && r.current && jm(r.current), L.current = t.focusedKey, ie.current = !1;
@@ -11455,14 +11455,14 @@ function Uv(e) {
onMouseDown(e) {
p.current === V(e) && e.preventDefault();
}
- }, { typeSelectProps: se } = Vv({
+ }, { typeSelectProps: se } = Uv({
keyboardDelegate: n,
selectionManager: t
});
u || (oe = H(se, oe));
let ce;
d || (ce = t.focusedKey == null ? 0 : -1);
- let le = Mee(t.collection);
+ let le = jee(t.collection);
return { collectionProps: H(oe, {
tabIndex: ce,
"data-collection": le
@@ -11470,13 +11470,13 @@ function Uv(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function Wv(e, t) {
+function qv(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function Gv(e) {
- return Kv(e, 0);
+function Jv(e) {
+ return Yv(e, 0);
}
-function Kv(e, t) {
+function Yv(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -11484,45 +11484,45 @@ function Kv(e, t) {
n++;
}
}
-function qv(e) {
+function Xv(e) {
let t;
for (let n of e) t = n;
return t;
}
-function Jv(e, t, n) {
+function Zv(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...Yv(e, t), t], i = [...Yv(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...Qv(e, t), t], i = [...Qv(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 Yv(e, t) {
+function Qv(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 Xv = /* @__PURE__ */ new WeakMap();
-function Zv(e) {
- let t = Xv.get(e);
+var $v = /* @__PURE__ */ new WeakMap();
+function ey(e) {
+ let t = $v.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(Wv(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(qv(i, e)) : i.type === "item" && n++;
};
- return r(e), Xv.set(e, n), n;
+ return r(e), $v.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var Qv = /* @__PURE__ */ new Map();
-function $v(e) {
+var ty = /* @__PURE__ */ new Map();
+function ny(e) {
let { locale: t } = ag(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (Qv.has(n)) return Qv.get(n);
+ if (ty.has(n)) return ty.get(n);
let r = new Intl.Collator(t, e);
- return Qv.set(n, r), r;
+ return ty.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var Bee = /*#__PURE__*/ I.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, I.useRef)(!1), i = (0, I.useContext)(Sg), a = H(i || {}, {
+var Lee = /*#__PURE__*/ I.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, I.useRef)(!1), i = (0, I.useContext)(Cg), a = H(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
@@ -11530,46 +11530,46 @@ var Bee = /*#__PURE__*/ I.forwardRef(({ children: e, ...t }, n) => {
});
return a.ref = oh(n || i?.ref), sh(i, a.ref), (0, I.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ I.createElement(Sg.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ I.createElement(Cg.Provider, { value: a }, e);
});
-function Vee({ children: e }) {
+function Ree({ children: e }) {
let t = (0, I.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ I.createElement(Sg.Provider, { value: t }, e);
+ return /*#__PURE__*/ I.createElement(Cg.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var ey = /*#__PURE__*/ (0, I.createContext)({});
-function ty(e) {
- let { getContainer: t } = e, { getContainer: n } = ny();
- return /*#__PURE__*/ I.createElement(ey.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var ry = /*#__PURE__*/ (0, I.createContext)({});
+function iy(e) {
+ let { getContainer: t } = e, { getContainer: n } = ay();
+ return /*#__PURE__*/ I.createElement(ry.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function ny() {
- return (0, I.useContext)(ey) ?? {};
+function ay() {
+ return (0, I.useContext)(ry) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var ry = /*#__PURE__*/ I.createContext(null);
-function iy(e) {
+var oy = /*#__PURE__*/ I.createContext(null);
+function sy(e) {
let t = nm(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, I.useState)(!1), o = (0, I.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = ny();
+ }), [i, a]), { getContainer: s } = ay();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ I.createElement(Hg, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ I.createElement(Ug, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ I.createElement(ry.Provider, { value: o }, /*#__PURE__*/ I.createElement(Vee, null, /*#__PURE__*/ I.createElement(ch.Provider, { value: null }, c))), /*#__PURE__*/ yh.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ I.createElement(oy.Provider, { value: o }, /*#__PURE__*/ I.createElement(Ree, null, /*#__PURE__*/ I.createElement(ch.Provider, { value: null }, c))), /*#__PURE__*/ yh.createPortal(c, n);
}
-function ay() {
- let e = (0, I.useContext)(ry)?.setContain;
+function cy() {
+ let e = (0, I.useContext)(oy)?.setContain;
gp(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function Hee(e, t) {
+function zee(e, t) {
let { role: n = "dialog" } = e, r = Bm();
r = e["aria-label"] ? void 0 : r;
let i = Bm();
@@ -11585,11 +11585,11 @@ function Hee(e, t) {
clearTimeout(e);
};
}
- }, [t]), ay(), (0, I.useRef)(!1), (0, I.useEffect)(() => {});
+ }, [t]), cy(), (0, I.useRef)(!1), (0, I.useEffect)(() => {});
let o = e["aria-describedby"] ?? i;
return {
dialogProps: {
- ...hg(e, { labelable: !0 }),
+ ...gg(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? r,
@@ -11604,7 +11604,7 @@ function Hee(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function oy(e = {}) {
+function ly(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, I.useRef)({
isFocused: !1,
isFocusVisible: t || ym()
@@ -11620,7 +11620,7 @@ function oy(e = {}) {
let { focusProps: d } = Gm({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = z_({
+ }), { focusWithinProps: f } = B_({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -11632,36 +11632,36 @@ function oy(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function Uee(e = {}) {
+function Bee(e = {}) {
let { locale: t } = ag();
return (0, I.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var sy = !1, cy = 0;
-function ly() {
- sy = !0, setTimeout(() => {
- sy = !1;
+var uy = !1, dy = 0;
+function fy() {
+ uy = !0, setTimeout(() => {
+ uy = !1;
}, 500);
}
-function uy(e) {
- e.pointerType === "touch" && ly();
+function py(e) {
+ e.pointerType === "touch" && fy();
}
-function dy() {
+function my() {
let e = Kf(null);
- if (e !== void 0) return cy === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", uy), cy++, () => {
- cy--, !(cy > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", uy);
+ if (e !== void 0) return dy === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", py), dy++, () => {
+ dy--, !(dy > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", py);
};
}
-function fy(e) {
+function hy(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, I.useState)(!1), s = (0, I.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, I.useEffect)(dy, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = Cg(), { hoverProps: u, triggerHoverEnd: d } = (0, I.useMemo)(() => {
+ (0, I.useEffect)(my, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = wg(), { hoverProps: u, triggerHoverEnd: d } = (0, I.useMemo)(() => {
let e = (e, r) => {
if (s.pointerType = r, i || r === "touch" || s.isHovered || !np(e.currentTarget, V(e))) return;
s.isHovered = !0;
@@ -11682,7 +11682,7 @@ function fy(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- sy && t.pointerType === "mouse" || e(t, t.pointerType);
+ uy && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
!i && np(e.currentTarget, V(e)) && a(e, e.pointerType);
}), {
@@ -11707,12 +11707,12 @@ function fy(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function py(e) {
+function gy(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, I.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
}), o = qh((e) => {
- n && my(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ n && _y(e, t) && (i && i(e), a.current.isPointerDown = !0);
}), s = qh((e) => {
n && n(e);
});
@@ -11722,7 +11722,7 @@ function py(e) {
let n = t.current, i = Kf(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && my(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && _y(n, t) && s(n), e.isPointerDown = !1;
};
return i.addEventListener("pointerdown", o, !0), i.addEventListener("click", n, !0), () => {
i.removeEventListener("pointerdown", o, !0), i.removeEventListener("click", n, !0);
@@ -11730,7 +11730,7 @@ function py(e) {
}
}, [t, r]);
}
-function my(e, t) {
+function _y(e, t) {
if (e.button > 0) return !1;
let n = V(e);
if (n) {
@@ -11741,8 +11741,8 @@ function my(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var hy = {};
-hy = {
+var vy = {};
+vy = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -11756,8 +11756,8 @@ hy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var gy = {};
-gy = {
+var yy = {};
+yy = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -11771,8 +11771,8 @@ gy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var _y = {};
-_y = {
+var by = {};
+by = {
deselectedItem: (e) => `Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,
longPressToSelect: "Dlouhým stisknutím přejdete do režimu výběru.",
select: "Vybrat",
@@ -11786,8 +11786,8 @@ _y = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var vy = {};
-vy = {
+var xy = {};
+xy = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -11801,8 +11801,8 @@ vy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var yy = {};
-yy = {
+var Sy = {};
+Sy = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -11816,8 +11816,8 @@ yy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var by = {};
-by = {
+var Cy = {};
+Cy = {
deselectedItem: (e) => `\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`,
longPressToSelect: "Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",
select: "Επιλογή",
@@ -11831,8 +11831,8 @@ by = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var xy = {};
-xy = {
+var wy = {};
+wy = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -11846,8 +11846,8 @@ xy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var Sy = {};
-Sy = {
+var Ty = {};
+Ty = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -11861,8 +11861,8 @@ Sy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var Cy = {};
-Cy = {
+var Ey = {};
+Ey = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -11876,8 +11876,8 @@ Cy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var wy = {};
-wy = {
+var Dy = {};
+Dy = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -11891,8 +11891,8 @@ wy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var Ty = {};
-Ty = {
+var Oy = {};
+Oy = {
deselectedItem: (e) => `${e.item} non s\xe9lectionn\xe9.`,
longPressToSelect: "Appuyez de manière prolongée pour passer en mode de sélection.",
select: "Sélectionner",
@@ -11906,8 +11906,8 @@ Ty = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var Ey = {};
-Ey = {
+var ky = {};
+ky = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -11921,8 +11921,8 @@ Ey = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var Dy = {};
-Dy = {
+var Ay = {};
+Ay = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -11936,8 +11936,8 @@ Dy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var Oy = {};
-Oy = {
+var jy = {};
+jy = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -11951,8 +11951,8 @@ Oy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var ky = {};
-ky = {
+var My = {};
+My = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -11966,8 +11966,8 @@ ky = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var Ay = {};
-Ay = {
+var Ny = {};
+Ny = {
deselectedItem: (e) => `${e.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,
longPressToSelect: "長押しして選択モードを開きます。",
select: "選択",
@@ -11981,8 +11981,8 @@ Ay = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var jy = {};
-jy = {
+var Py = {};
+Py = {
deselectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,
longPressToSelect: "선택 모드로 들어가려면 길게 누르십시오.",
select: "선택",
@@ -11996,8 +11996,8 @@ jy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var My = {};
-My = {
+var Fy = {};
+Fy = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -12011,8 +12011,8 @@ My = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var Ny = {};
-Ny = {
+var Iy = {};
+Iy = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -12026,8 +12026,8 @@ Ny = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var Py = {};
-Py = {
+var Ly = {};
+Ly = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -12041,8 +12041,8 @@ Py = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var Fy = {};
-Fy = {
+var Ry = {};
+Ry = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -12056,8 +12056,8 @@ Fy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var Iy = {};
-Iy = {
+var zy = {};
+zy = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -12071,8 +12071,8 @@ Iy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var Ly = {};
-Ly = {
+var By = {};
+By = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -12086,8 +12086,8 @@ Ly = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var Ry = {};
-Ry = {
+var Vy = {};
+Vy = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -12101,8 +12101,8 @@ Ry = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var zy = {};
-zy = {
+var Hy = {};
+Hy = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -12116,8 +12116,8 @@ zy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var By = {};
-By = {
+var Uy = {};
+Uy = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -12131,8 +12131,8 @@ By = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var Vy = {};
-Vy = {
+var Wy = {};
+Wy = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -12146,8 +12146,8 @@ Vy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var Hy = {};
-Hy = {
+var Gy = {};
+Gy = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -12161,8 +12161,8 @@ Hy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var Uy = {};
-Uy = {
+var Ky = {};
+Ky = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -12176,8 +12176,8 @@ Uy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var Wy = {};
-Wy = {
+var qy = {};
+qy = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -12191,8 +12191,8 @@ Wy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var Gy = {};
-Gy = {
+var Jy = {};
+Jy = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -12206,8 +12206,8 @@ Gy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var Ky = {};
-Ky = {
+var Yy = {};
+Yy = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -12221,8 +12221,8 @@ Ky = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var qy = {};
-qy = {
+var Xy = {};
+Xy = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -12236,8 +12236,8 @@ qy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var Jy = {};
-Jy = {
+var Zy = {};
+Zy = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -12251,55 +12251,55 @@ Jy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var Yy = {};
-Yy = {
- "ar-AE": hy,
- "bg-BG": gy,
- "cs-CZ": _y,
- "da-DK": vy,
- "de-DE": yy,
- "el-GR": by,
- "en-US": xy,
- "es-ES": Sy,
- "et-EE": Cy,
- "fi-FI": wy,
- "fr-FR": Ty,
- "he-IL": Ey,
- "hr-HR": Dy,
- "hu-HU": Oy,
- "it-IT": ky,
- "ja-JP": Ay,
- "ko-KR": jy,
- "lt-LT": My,
- "lv-LV": Ny,
- "nb-NO": Py,
- "nl-NL": Fy,
- "pl-PL": Iy,
- "pt-BR": Ly,
- "pt-PT": Ry,
- "ro-RO": zy,
- "ru-RU": By,
- "sk-SK": Vy,
- "sl-SI": Hy,
- "sr-SP": Uy,
- "sv-SE": Wy,
- "tr-TR": Gy,
- "uk-UA": Ky,
- "zh-CN": qy,
- "zh-TW": Jy
+var Qy = {};
+Qy = {
+ "ar-AE": vy,
+ "bg-BG": yy,
+ "cs-CZ": by,
+ "da-DK": xy,
+ "de-DE": Sy,
+ "el-GR": Cy,
+ "en-US": wy,
+ "es-ES": Ty,
+ "et-EE": Ey,
+ "fi-FI": Dy,
+ "fr-FR": Oy,
+ "he-IL": ky,
+ "hr-HR": Ay,
+ "hu-HU": jy,
+ "it-IT": My,
+ "ja-JP": Ny,
+ "ko-KR": Py,
+ "lt-LT": Fy,
+ "lv-LV": Iy,
+ "nb-NO": Ly,
+ "nl-NL": Ry,
+ "pl-PL": zy,
+ "pt-BR": By,
+ "pt-PT": Vy,
+ "ro-RO": Hy,
+ "ru-RU": Uy,
+ "sk-SK": Wy,
+ "sl-SI": Gy,
+ "sr-SP": Ky,
+ "sv-SE": qy,
+ "tr-TR": Jy,
+ "uk-UA": Yy,
+ "zh-CN": Xy,
+ "zh-TW": Zy
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function Wee(e) {
+function Vee(e) {
return e && e.__esModule ? e.default : e;
}
-function Gee(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = pg(Wee(Yy), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, I.useRef)(i), o = (0, I.useCallback)(() => {
+function Hee(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = mg(Vee(Qy), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, I.useRef)(i), o = (0, I.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = Xy(i, a.current), o = Xy(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = $y(i, a.current), o = $y(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
if (t.selectionManager.selectedKeys.size === 1 && s) {
let e = t.selectionManager.selectedKeys.keys().next().value;
if (e != null && t.collection.getItem(e)) {
@@ -12319,7 +12319,7 @@ function Gee(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 && m_(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 && h_(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -12330,7 +12330,7 @@ function Gee(e, t) {
n,
r
]);
- g_(() => {
+ __(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -12338,7 +12338,7 @@ function Gee(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function Xy(e, t) {
+function $y(e, t) {
let n = /* @__PURE__ */ new Set();
if (e === "all" || t === "all") return n;
for (let r of e.keys()) t.has(r) || n.add(r);
@@ -12346,13 +12346,13 @@ function Xy(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function Zy(e, t) {
+function eb(e, t) {
let n = t?.isDisabled, [r, i] = (0, I.useState)(!1);
return gp(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = c_(e.current, { tabbable: !0 });
+ let t = l_(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -12371,12 +12371,12 @@ function Zy(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function Kee(e) {
+function Uee(e) {
return e && e.__esModule ? e.default : e;
}
-function qee(e) {
- let t = pg(Kee(Yy), "@react-aria/grid"), n = Sm(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return C_((0, I.useMemo)(() => {
+function Wee(e) {
+ let t = mg(Uee(Qy), "@react-aria/grid"), n = Sm(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return w_((0, I.useMemo)(() => {
let n = e.selectionManager.selectionMode, i = e.selectionManager.selectionBehavior, a;
return r && (a = t.format("longPressToSelect")), i === "replace" && n !== "none" && e.hasItemActions ? a : void 0;
}, [
@@ -12389,11 +12389,11 @@ function qee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function Qy(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = $v({
+function tb(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = ny({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, I.useMemo)(() => a || new tv({
+ }), l = t.disabledBehavior, u = (0, I.useMemo)(() => a || new nv({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -12410,7 +12410,7 @@ function Qy(e) {
c,
l,
s
- ]), { collectionProps: d } = Uv({
+ ]), { collectionProps: d } = Kv({
...e,
ref: i,
selectionManager: t,
@@ -12420,11 +12420,11 @@ function Qy(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function $y(e) {
+function nb(e) {
let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = Lp();
t = Rm(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && Z_(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && Q_(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -12467,22 +12467,22 @@ 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 || tb(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || ib(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" && !eb(e.key)) return;
+ if (e.pointerType === "keyboard" && !rb(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 || tb(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || ib(e.key))) && p(e);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && eb(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 && rb(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
});
- let A = Nee(n.collection);
+ let A = Mee(n.collection);
if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = H(k, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
@@ -12498,9 +12498,9 @@ function $y(e) {
"onPressUp",
"onClick"
]) D[e] && (k[e] = Mm(k[e], D[e]));
- let { pressProps: j, isPressed: M } = Og(k), N = x ? (e) => {
+ let { pressProps: j, isPressed: M } = kg(k), N = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: ee } = Lv({
+ } : void 0, { longPressProps: ee } = Rv({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -12549,22 +12549,22 @@ function $y(e) {
hasAction: S
};
}
-function eb(e) {
+function rb(e) {
return e === "Enter";
}
-function tb(e) {
+function ib(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function Jee(e) {
+function Gee(e) {
return e && e.__esModule ? e.default : e;
}
-function Yee(e, t) {
+function Kee(e, t) {
let { key: n } = e, r = t.selectionManager, i = Rm(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": pg(Jee(Yy), "@react-aria/grid").format("select"),
+ "aria-label": mg(Gee(Qy), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -12572,22 +12572,22 @@ function Yee(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Xee(e, t, n) {
- let r = hg(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function qee(e, t, n) {
+ let r = gg(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
i === "toggle" && o === "action" && (o = "override");
- let { listProps: s } = Qy({
+ let { listProps: s } = tb({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = z_({
+ }), { focusWithinProps: c } = B_({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
}), l = Rm(e.id);
- X_.set(t, {
+ Z_.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -12597,7 +12597,7 @@ function Xee(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = L_({
+ let { labelProps: u, fieldProps: d } = R_({
...e,
id: l,
labelElementType: "span"
@@ -12613,7 +12613,7 @@ function Xee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Zee(e) {
+function Jee(e) {
let { heading: t, "aria-label": n } = e, r = Rm();
return {
itemProps: { role: "presentation" },
@@ -12633,8 +12633,8 @@ function Zee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function nb(e, t, n) {
- let { key: r } = e, i = X_.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = Bm(), f = Bm(), p = {
+function Yee(e, t, n) {
+ let { key: r } = e, i = Z_.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = Bm(), f = Bm(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -12644,9 +12644,9 @@ function nb(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"] = Zv(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = ey(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = jee(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = $y({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Aee(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = nb({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -12659,12 +12659,12 @@ function nb(e, t, n) {
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = fy({
+ }), { hoverProps: S } = hy({
isDisabled: a || !c,
onHoverStart() {
ym() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = hg(m?.props);
+ }), C = gg(m?.props);
delete C.id;
let w = Up(m?.props);
return {
@@ -12686,13 +12686,13 @@ function nb(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/utils.mjs
-var rb = /* @__PURE__ */ new WeakMap();
+var ab = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenu.mjs
-function ib(e, t, n) {
+function ob(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = hg(e, { labelable: !0 }), { listProps: c } = Qy({
+ let s = gg(e, { labelable: !0 }), { listProps: c } = tb({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -12701,7 +12701,7 @@ function ib(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return rb.set(t, {
+ return ab.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -12718,8 +12718,8 @@ function ib(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function ab(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 = rb.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = Lp(), M = () => {
+function sb(e, t, n) {
+ let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = ab.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = Lp(), M = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
@@ -12743,7 +12743,7 @@ function ab(e, t, n) {
};
if (C.selectionMode !== "none" && !w && (F["aria-checked"] = D), s) {
let e = Number(k?.index);
- F["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, F["aria-setsize"] = Zv(t.collection);
+ F["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, F["aria-setsize"] = ey(t.collection);
}
let ne = (0, I.useRef)(!1), re = (e) => {
f?.(e), ne.current = e;
@@ -12753,7 +12753,7 @@ function ab(e, t, n) {
m?.(e), M(), Wp(e, j, k.props.href, k?.props.routerOptions);
let t = ie.current?.pointerType === "keyboard" ? ie.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);
t = o ?? a ?? t, A && !w && t && A(), ie.current = null;
- }, { itemProps: oe, isFocused: se } = $y({
+ }, { itemProps: oe, isFocused: se } = nb({
id: r,
selectionManager: C,
key: i,
@@ -12762,14 +12762,14 @@ function ab(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: O.shouldUseVirtualFocus
- }), { pressProps: ce, isPressed: le } = Og({
+ }), { pressProps: ce, isPressed: le } = kg({
onPressStart: l,
onPress: d,
onPressUp: L,
onPressChange: re,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: ue } = fy({
+ }), { hoverProps: ue } = hy({
isDisabled: E,
onHoverStart(e) {
!ym() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
@@ -12806,7 +12806,7 @@ function ab(e, t, n) {
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), de = hg(k?.props);
+ }, n), de = gg(k?.props);
delete de.id;
let fe = Up(k?.props);
return {
@@ -12831,7 +12831,7 @@ function ab(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function ob(e) {
+function cb(e) {
let { heading: t, "aria-label": n } = e, r = Rm();
return {
itemProps: { role: "presentation" },
@@ -12848,15 +12848,15 @@ function ob(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function sb() {
+function lb() {
return window.ResizeObserver !== void 0;
}
-function cb(e) {
+function ub(e) {
let { ref: t, box: n, onResize: r } = e, i = qh(r);
(0, I.useEffect)(() => {
let e = t?.current;
if (e) {
- if (sb()) {
+ if (lb()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -12872,189 +12872,189 @@ function cb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var lb = {};
-lb = { dismiss: "تجاهل" };
+var db = {};
+db = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var ub = {};
-ub = { dismiss: "Отхвърляне" };
+var fb = {};
+fb = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var db = {};
-db = { dismiss: "Odstranit" };
+var pb = {};
+pb = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var fb = {};
-fb = { dismiss: "Luk" };
+var mb = {};
+mb = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var pb = {};
-pb = { dismiss: "Schließen" };
+var hb = {};
+hb = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var mb = {};
-mb = { dismiss: "Απόρριψη" };
+var gb = {};
+gb = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var hb = {};
-hb = { dismiss: "Dismiss" };
+var _b = {};
+_b = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var gb = {};
-gb = { dismiss: "Descartar" };
+var vb = {};
+vb = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var _b = {};
-_b = { dismiss: "Lõpeta" };
+var yb = {};
+yb = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var vb = {};
-vb = { dismiss: "Hylkää" };
+var bb = {};
+bb = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var yb = {};
-yb = { dismiss: "Rejeter" };
+var xb = {};
+xb = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var bb = {};
-bb = { dismiss: "התעלם" };
+var Sb = {};
+Sb = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var xb = {};
-xb = { dismiss: "Odbaci" };
+var Cb = {};
+Cb = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var Sb = {};
-Sb = { dismiss: "Elutasítás" };
+var wb = {};
+wb = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var Cb = {};
-Cb = { dismiss: "Ignora" };
+var Tb = {};
+Tb = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var wb = {};
-wb = { dismiss: "閉じる" };
+var Eb = {};
+Eb = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var Tb = {};
-Tb = { dismiss: "무시" };
+var Db = {};
+Db = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var Eb = {};
-Eb = { dismiss: "Atmesti" };
+var Ob = {};
+Ob = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var Db = {};
-Db = { dismiss: "Nerādīt" };
+var kb = {};
+kb = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var Ob = {};
-Ob = { dismiss: "Lukk" };
+var Ab = {};
+Ab = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var kb = {};
-kb = { dismiss: "Negeren" };
+var jb = {};
+jb = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var Ab = {};
-Ab = { dismiss: "Zignoruj" };
+var Mb = {};
+Mb = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var jb = {};
-jb = { dismiss: "Descartar" };
+var Nb = {};
+Nb = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var Mb = {};
-Mb = { dismiss: "Dispensar" };
+var Pb = {};
+Pb = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var Nb = {};
-Nb = { dismiss: "Revocare" };
+var Fb = {};
+Fb = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var Pb = {};
-Pb = { dismiss: "Пропустить" };
+var Ib = {};
+Ib = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var Fb = {};
-Fb = { dismiss: "Zrušiť" };
+var Lb = {};
+Lb = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var Ib = {};
-Ib = { dismiss: "Opusti" };
+var Rb = {};
+Rb = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var Lb = {};
-Lb = { dismiss: "Odbaci" };
+var zb = {};
+zb = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var Rb = {};
-Rb = { dismiss: "Avvisa" };
+var Bb = {};
+Bb = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var zb = {};
-zb = { dismiss: "Kapat" };
+var Vb = {};
+Vb = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var Bb = {};
-Bb = { dismiss: "Скасувати" };
+var Hb = {};
+Hb = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var Vb = {};
-Vb = { dismiss: "取消" };
+var Ub = {};
+Ub = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var Hb = {};
-Hb = { dismiss: "關閉" };
+var Wb = {};
+Wb = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var Ub = {};
-Ub = {
- "ar-AE": lb,
- "bg-BG": ub,
- "cs-CZ": db,
- "da-DK": fb,
- "de-DE": pb,
- "el-GR": mb,
- "en-US": hb,
- "es-ES": gb,
- "et-EE": _b,
- "fi-FI": vb,
- "fr-FR": yb,
- "he-IL": bb,
- "hr-HR": xb,
- "hu-HU": Sb,
- "it-IT": Cb,
- "ja-JP": wb,
- "ko-KR": Tb,
- "lt-LT": Eb,
- "lv-LV": Db,
- "nb-NO": Ob,
- "nl-NL": kb,
- "pl-PL": Ab,
- "pt-BR": jb,
- "pt-PT": Mb,
- "ro-RO": Nb,
- "ru-RU": Pb,
- "sk-SK": Fb,
- "sl-SI": Ib,
- "sr-SP": Lb,
- "sv-SE": Rb,
- "tr-TR": zb,
- "uk-UA": Bb,
- "zh-CN": Vb,
- "zh-TW": Hb
+var 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/overlays/DismissButton.mjs
-function Wb(e) {
+function Kb(e) {
return e && e.__esModule ? e.default : e;
}
-function Gb(e) {
- let { onDismiss: t, ...n } = e, r = Yh(n, pg(Wb(Ub), "@react-aria/overlays").format("dismiss")), i = () => {
+function qb(e) {
+ let { onDismiss: t, ...n } = e, r = Yh(n, mg(Kb(Gb), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ I.createElement(G_, null, /*#__PURE__*/ I.createElement("button", {
+ return /*#__PURE__*/ I.createElement(K_, null, /*#__PURE__*/ I.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -13066,22 +13066,22 @@ function Gb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var Kb = [];
-function qb(e, t) {
+var Jb = [];
+function Yb(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, I.useRef)(void 0);
(0, I.useEffect)(() => {
- if (i && !Kb.includes(t)) return Kb.push(t), () => {
- let e = Kb.indexOf(t);
- e >= 0 && Kb.splice(e, 1);
+ if (i && !Jb.includes(t)) return Jb.push(t), () => {
+ let e = Jb.indexOf(t);
+ e >= 0 && Jb.splice(e, 1);
};
}, [i, t]);
let l = () => {
- Kb[Kb.length - 1] === t && n && n();
+ Jb[Jb.length - 1] === t && n && n();
}, u = (e) => {
- let n = Kb[Kb.length - 1];
+ let n = Jb[Jb.length - 1];
c.current = n, (!s || s(V(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(V(e))) && (Kb[Kb.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ (!s || s(V(e))) && (Jb[Jb.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
}, { keyboardProps: f } = ah({ shortcuts: { Escape: () => {
if (!o) {
l();
@@ -13089,15 +13089,15 @@ function qb(e, t) {
}
return !1;
} } });
- py({
+ gy({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = z_({
+ let { focusWithinProps: p } = B_({
isDisabled: !r,
onBlurWithin: (e) => {
- !e.relatedTarget || Qg(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
+ !e.relatedTarget || $g(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -13110,26 +13110,26 @@ function qb(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var Jb = typeof document < "u" && window.visualViewport, Yb = 0, Xb;
-function Zb(e = {}) {
+var Xb = typeof document < "u" && window.visualViewport, Zb = 0, Qb;
+function $b(e = {}) {
let { isDisabled: t } = e;
gp(() => {
- if (!t) return Yb++, Yb === 1 && (Xb = Op() && Ap() ? $ee() : Qee()), () => {
- Yb--, Yb === 0 && Xb();
+ if (!t) return Zb++, Zb === 1 && (Qb = Op() && Ap() ? Zee() : Xee()), () => {
+ Zb--, Zb === 0 && Qb();
};
}, [t]);
}
-function Qee() {
+function Xee() {
let e = window.innerWidth - document.documentElement.clientWidth;
return Mm(e > 0 && ("scrollbarGutter" in document.documentElement.style ? $f(document.documentElement, "scrollbar-gutter", "stable") : $f(document.documentElement, "padding-right", `${e}px`)), $f(document.documentElement, "overflow", "hidden"));
}
-function $ee() {
+function Zee() {
let e = $f(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = V(e);
- t = __(r) ? r : v_(r, !0), n = !1;
+ t = v_(r) ? r : y_(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 = xg();
+ }, i = document.createElement("style"), a = Sg();
a && (i.nonce = a), i.textContent = "@layer {\n * {\n overscroll-behavior: contain;\n }\n}", document.head.prepend(i);
let o = (e) => {
if (!(e.touches.length === 2 || n)) {
@@ -13141,7 +13141,7 @@ function $ee() {
}
}, s = (e) => {
let t = V(e), n = e.relatedTarget;
- n && Gh(n) ? (n.focus({ preventScroll: !0 }), Qb(n, Gh(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && Gh(n) ? (n.focus({ preventScroll: !0 }), ex(n, Gh(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, c = HTMLElement.prototype.focus;
Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -13151,7 +13151,7 @@ function $ee() {
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && Qb(this, n);
+ }), (!e || !e.preventScroll) && ex(this, n);
}
});
let l = Mm(Qf(document, "touchstart", r, {
@@ -13169,18 +13169,18 @@ function $ee() {
});
};
}
-function Qb(e, t) {
- t || !Jb ? $b(e) : Jb.addEventListener("resize", () => $b(e), { once: !0 });
+function ex(e, t) {
+ t || !Xb ? tx(e) : Xb.addEventListener("resize", () => tx(e), { once: !0 });
}
-function $b(e) {
+function tx(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
- let e = v_(n);
+ let e = y_(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;
- Jb && (n = Math.min(n, Jb.offsetTop + Jb.height));
+ Xb && (n = Math.min(n, Xb.offsetTop + Xb.height));
let i = r.top - t.top - ((n - t.top) / 2 - r.height / 2);
e.scrollTo({
top: Math.max(0, Math.min(e.scrollHeight - e.clientHeight, e.scrollTop + i)),
@@ -13193,14 +13193,14 @@ function $b(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function ete(e, t, n) {
- let { overlayProps: r, underlayProps: i } = qb({
+function Qee(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = Yb({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- return Zb({ isDisabled: !t.isOpen }), ay(), (0, I.useEffect)(() => {
- if (t.isOpen && n.current) return Y_([n.current], { shouldUseInert: !0 });
+ return $b({ isDisabled: !t.isOpen }), cy(), (0, I.useEffect)(() => {
+ if (t.isOpen && n.current) return X_([n.current], { shouldUseInert: !0 });
}, [t.isOpen, n]), {
modalProps: H(r),
underlayProps: i
@@ -13208,32 +13208,32 @@ function ete(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var ex = {
+var nx = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, tx = {
+}, rx = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, tte = {
+}, $ee = {
top: "left",
left: "top"
-}, nx = {
+}, ix = {
top: "height",
left: "width"
-}, rx = {
+}, ax = {
width: "totalWidth",
height: "totalHeight"
-}, ix = {}, nte = () => typeof document < "u" ? window.visualViewport : null;
-function ax(e, t) {
+}, ox = {}, ete = () => typeof document < "u" ? window.visualViewport : null;
+function sx(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} = dx(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ } else ({width: n, height: r, top: o, left: s} = px(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
return Ap() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
width: n,
height: r,
@@ -13244,7 +13244,7 @@ function ax(e, t) {
left: s
};
}
-function rte(e) {
+function tte(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -13252,11 +13252,11 @@ function rte(e) {
height: e.scrollHeight
};
}
-function ox(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[nx[e]], l = o[e] + r.scroll[ex[e]] + a, u = o[e] + r.scroll[ex[e]] + c - a, d = t - s + r.scroll[ex[e]] + o[e] - r[ex[e]], f = t - s + n + r.scroll[ex[e]] + o[e] - r[ex[e]];
+function cx(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[ix[e]], l = o[e] + r.scroll[nx[e]] + a, u = o[e] + r.scroll[nx[e]] + c - a, d = t - s + r.scroll[nx[e]] + o[e] - r[nx[e]], f = t - s + n + r.scroll[nx[e]] + o[e] - r[nx[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function ite(e) {
+function nte(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -13265,55 +13265,55 @@ function ite(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function sx(e) {
- if (ix[e]) return ix[e];
- let [t, n] = e.split(" "), r = ex[t] || "right", i = tte[r];
- ex[n] || (n = "center");
- let a = nx[r], o = nx[i];
- return ix[e] = {
+function lx(e) {
+ if (ox[e]) return ox[e];
+ let [t, n] = e.split(" "), r = nx[t] || "right", i = $ee[r];
+ nx[n] || (n = "center");
+ let a = ix[r], o = ix[i];
+ return ox[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, ix[e];
+ }, ox[e];
}
-function cx(e, t, n, r, i, a, o, s, c, l, u) {
+function ux(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] = H_(_[m], v, y), d === p) {
- let t = s ? u[h] : u[rx[h]];
- _[tx[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = U_(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[ax[h]];
+ _[rx[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function ate(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[rx.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function rte(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[ax.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
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 lx(e, t, n, r, i, a, o, s) {
+function dx(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[tx[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[tx[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[rx[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[rx[l]] - i);
}
-function ote(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = sx(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = cx(t, s, n, v, u, d, l, f, m, h, c), T = u, E = lx(s, l, t, i, a + u, v, c, g);
+function ite(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = lx(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = ux(t, s, n, v, u, d, l, f, m, h, c), T = u, E = dx(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = sx(`${tx[S]} ${C}`), r = cx(t, s, n, e, u, d, l, f, m, h, c);
- lx(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = lx(`${rx[S]} ${C}`), r = ux(t, s, n, e, u, d, l, f, m, h, c);
+ dx(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
}
let 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 = ox(b, w[b], n[x], s, c, a, l);
+ let O = cx(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = ate(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = cx(t, s, n, v, T, d, l, f, m, h, c), O = ox(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[ex[b]], M = j + .5 * t[x], N = m / 2 + h, ee = ex[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - ee - m / 2 - h;
- A[b] = H_(H_(M, t[b] + m / 2 - (w[b] + i[ex[b]]), t[b] + t[x] - m / 2 - (w[b] + i[ex[b]])), N, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = rte(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = ux(t, s, n, v, T, d, l, f, m, h, c), O = cx(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[nx[b]], M = j + .5 * t[x], N = m / 2 + h, ee = nx[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - ee - m / 2 - h;
+ A[b] = U_(U_(M, t[b] + m / 2 - (w[b] + i[nx[b]]), t[b] + t[x] - m / 2 - (w[b] + i[nx[b]])), N, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let P = S === "left" || S === "top" ? n[y] : 0, F = {
x: S === "top" || S === "bottom" ? j : P,
y: S === "left" || S === "right" ? j : P
@@ -13327,17 +13327,17 @@ function ote(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: F
};
}
-function ste(e) {
- let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = nte(), h = r instanceof HTMLElement ? cte(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? dx(n, !1, p) : fx(n, h, !1, p);
+function ate(e) {
+ let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = ete(), h = r instanceof HTMLElement ? ote(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? px(n, !1, p) : mx(n, h, !1, p);
if (!g) {
let { marginTop: e, marginLeft: t } = window.getComputedStyle(n);
y.top += parseInt(e, 10) || 0, y.left += parseInt(t, 10) || 0;
}
- let b = dx(r, !0), x = ite(r);
+ let b = px(r, !0), x = nte(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = rte(i), C = ax(s, m), w = ax(h, m), T;
+ let S = tte(i), C = sx(s, m), w = sx(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = ux(h, !1);
+ let e = fx(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -13349,11 +13349,11 @@ function ste(e) {
left: 0,
width: 0,
height: 0
- } : fx(s, h, !1);
+ } : mx(s, h, !1);
let E = np(s, h);
- return ote(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ return ite(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function ux(e, t) {
+function fx(e, t) {
let { top: n, left: r, width: i, height: a } = e.getBoundingClientRect();
return t && e instanceof e.ownerDocument.defaultView.HTMLElement && (i = e.offsetWidth, a = e.offsetHeight), {
top: n,
@@ -13362,8 +13362,8 @@ function ux(e, t) {
height: a
};
}
-function dx(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || ux(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function px(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || fx(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -13371,29 +13371,29 @@ function dx(e, t, n) {
height: o
};
}
-function fx(e, t, n, r) {
+function mx(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || ux(e, n);
+ if (i.position === "fixed") a = r || fx(e, n);
else {
- a = dx(e, n, r);
- let i = dx(t, n), o = window.getComputedStyle(t);
+ a = px(e, n, r);
+ let i = px(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 cte(e) {
+function ote(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !px(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !px(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !hx(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !hx(t);) t = t.parentElement;
return t || document.documentElement;
}
-function px(e) {
+function hx(e) {
let t = window.getComputedStyle(e);
return t.transform !== "none" || /transform|perspective/.test(t.willChange) || t.filter !== "none" || t.contain === "paint" || "backdropFilter" in t && t.backdropFilter !== "none" || "WebkitBackdropFilter" in t && t.WebkitBackdropFilter !== "none";
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var mx = typeof document < "u" ? window.visualViewport : null;
-function lte(e) {
+var gx = typeof document < "u" ? window.visualViewport : null;
+function ste(e) {
let { direction: t } = ag(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, I.useState)(null), x = [
p,
s,
@@ -13411,12 +13411,12 @@ function lte(e) {
g,
_,
n
- ], S = (0, I.useRef)(mx?.scale);
+ ], S = (0, I.useRef)(gx?.scale);
(0, I.useEffect)(() => {
- m && (S.current = mx?.scale);
+ m && (S.current = gx?.scale);
}, [m]);
let C = (0, I.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || mx?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || gx?.scale !== S.current) return;
let e = null;
if (o.current && ap(o.current)) {
let t = rp()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
@@ -13427,8 +13427,8 @@ function lte(e) {
}
let h = i.current;
!g && i.current && (h.style.top = "0px", h.style.bottom = "", h.style.maxHeight = (window.visualViewport?.height ?? window.innerHeight) + "px");
- let y = ste({
- placement: dte(s, t),
+ let y = ate({
+ placement: lte(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -13438,7 +13438,7 @@ function lte(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? ux(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? fx(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
@@ -13451,10 +13451,10 @@ function lte(e) {
}
b(y);
}, x);
- gp(C, x), ute(C), cb({
+ gp(C, x), cte(C), ub({
ref: i,
onResize: C
- }), cb({
+ }), ub({
ref: r,
onResize: C
});
@@ -13467,16 +13467,16 @@ function lte(e) {
}, n = () => {
w.current && t();
};
- mx?.addEventListener("resize", t), mx?.addEventListener("scroll", n);
+ gx?.addEventListener("resize", t), gx?.addEventListener("scroll", n);
let r = Qf(ip(window), "scroll", n);
return () => {
- mx?.removeEventListener("resize", t), mx?.removeEventListener("scroll", n), r();
+ gx?.removeEventListener("resize", t), gx?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, I.useCallback)(() => {
w.current || h?.();
}, [h, w]);
- return Iee({
+ return Bv({
triggerRef: r,
isOpen: m,
onClose: h && T
@@ -13502,25 +13502,25 @@ function lte(e) {
updatePosition: C
};
}
-function ute(e) {
+function cte(e) {
gp(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function dte(e, t) {
+function lte(e, t) {
return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function fte(e, t) {
- let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = qb({
+function ute(e, t) {
+ let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = Yb({
isOpen: t.isOpen,
onClose: t.close,
shouldCloseOnBlur: !0,
isDismissable: !a || l,
isKeyboardDismissDisabled: o,
shouldCloseOnInteractOutside: s
- }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = lte({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = ste({
...c,
targetRef: n,
overlayRef: r,
@@ -13528,15 +13528,15 @@ function fte(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)
});
- Zb({ isDisabled: a || !t.isOpen }), (0, I.useEffect)(() => {
- if (t.isOpen && r.current) return a ? kee(i?.current ?? r.current) : Y_([i?.current ?? r.current], { shouldUseInert: !0 });
+ $b({ isDisabled: a || !t.isOpen }), (0, I.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? Oee(i?.current ?? r.current) : X_([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = z_(e);
+ let { focusWithinProps: g } = B_(e);
return {
popoverProps: H(u, f, g),
arrowProps: p,
@@ -13547,13 +13547,13 @@ function fte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var hx = /* @__PURE__ */ new WeakMap();
+var _x = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function pte(e, t, n) {
+function dte(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: _ } = Og({
+ }, { pressProps: g, isPressed: _ } = kg({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -13561,7 +13561,7 @@ function pte(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = Og({
+ }), { pressProps: v, isPressed: y } = kg({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -13571,11 +13571,11 @@ function pte(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = uh(H(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = H(g, b), S = hg(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = uh(H(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = H(g, b), S = gg(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 } = hx.get(t);
- w_(n, t.defaultSelectedValue, t.setSelectedValue), T_({ validationBehavior: O }, t, n);
- let k = E_();
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = _x.get(t);
+ T_(n, t.defaultSelectedValue, t.setSelectedValue), E_({ validationBehavior: O }, t, n);
+ let k = D_();
return {
labelProps: H(v, (0, I.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
@@ -13607,13 +13607,13 @@ function pte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function mte(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = ag(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = R_({
+function fte(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = ag(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = z_({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = hg(e, { labelable: !0 }), { focusWithinProps: v } = z_({
+ }), _ = gg(e, { labelable: !0 }), { focusWithinProps: v } = B_({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -13621,7 +13621,7 @@ function mte(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = c_(n.currentTarget, {
+ let r = l_(n.currentTarget, {
from: V(n),
accept: (e) => e instanceof qf(e).HTMLInputElement && e.type === "radio"
}), i;
@@ -13636,7 +13636,7 @@ function mte(e, t) {
},
allowRepeats: !0
}), x = Rm(n);
- return hx.set(t, {
+ return _x.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -13665,18 +13665,18 @@ function mte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var gx = /* @__PURE__ */ new WeakMap();
-function hte(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = $v({
+var vx = /* @__PURE__ */ new WeakMap();
+function pte(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = ny({
usage: "search",
sensitivity: "base"
- }), u = (0, I.useMemo)(() => r || new tv(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, I.useMemo)(() => r || new nv(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = zv({
+ ]), { menuTriggerProps: d, menuProps: f } = Vv({
isDisabled: i,
type: "listbox"
}, t, n), { keyboardProps: p } = ah({
@@ -13695,21 +13695,21 @@ function hte(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = Vv({
+ }), { typeSelectProps: m } = Uv({
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 } = R_({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = z_({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = hg(e, { labelable: !0 }), C = H(m, d, y), w = Rm();
- return gx.set(t, {
+ let S = gg(e, { labelable: !0 }), C = H(m, d, y), w = Rm();
+ return vx.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -13770,13 +13770,13 @@ function hte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function gte(e, t, n) {
- let r = gx.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = W_({ style: {
+function mte(e, t, n) {
+ let r = vx.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = G_({ style: {
position: "fixed",
top: 0,
left: 0
} });
- w_(e.selectRef, t.defaultValue, t.setValue), T_({
+ T_(e.selectRef, t.defaultValue, t.setValue), E_({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
@@ -13806,8 +13806,8 @@ function gte(e, t, n) {
}
};
}
-function _te(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, I.useRef)(null), c = (0, I.useRef)(null), { containerProps: l, selectProps: u } = gte({
+function hte(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, I.useRef)(null), c = (0, I.useRef)(null), { containerProps: l, selectProps: u } = mte({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -13831,7 +13831,7 @@ function _te(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = gx.get(t) || {};
+ let { validationBehavior: e } = vx.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -13862,8 +13862,8 @@ function _te(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function vte(e) {
- let t = hg(e, { labelable: !0 }), n;
+function gte(e) {
+ let t = gg(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -13872,8 +13872,8 @@ function vte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function yte(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = F_(e, t, n);
+function _te(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = I_(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -13887,10 +13887,10 @@ function yte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var _x = class {
+var yx = 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 bte(e.layout) : new ev(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new vte(e.layout) : new tv(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -13926,7 +13926,7 @@ var _x = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of Wv(n, this.collection)) {
+ for (let e of qv(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -13960,13 +13960,13 @@ var _x = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = Wv(t, this.collection);
- return (this.direction === "rtl" ? qv(e)?.key : Gv(e)?.key) ?? null;
+ let e = qv(t, this.collection);
+ return (this.direction === "rtl" ? Xv(e)?.key : Jv(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = Wv(n, this.collection), i = (this.direction === "rtl" ? Kv(r, t.index - 1) : Kv(r, t.index + 1)) ?? null;
+ let r = qv(n, this.collection), i = (this.direction === "rtl" ? Yv(r, t.index - 1) : Yv(r, t.index + 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) ?? null;
}
return null;
@@ -13975,13 +13975,13 @@ var _x = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = Wv(t, this.collection);
- return (this.direction === "rtl" ? Gv(e)?.key : qv(e)?.key) ?? null;
+ let e = qv(t, this.collection);
+ return (this.direction === "rtl" ? Jv(e)?.key : Xv(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = Wv(n, this.collection), i = (this.direction === "rtl" ? Kv(r, t.index + 1) : Kv(r, t.index - 1)) ?? null;
+ let r = qv(n, this.collection), i = (this.direction === "rtl" ? Yv(r, t.index + 1) : Yv(r, t.index - 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) ?? null;
}
return null;
@@ -13992,13 +13992,13 @@ var _x = 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 ? Gv(Wv(e, this.collection))?.key ?? null : null;
+ return e ? Jv(qv(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 = Gv(Wv(e, this.collection))?.key ?? null;
+ n = Jv(qv(e, this.collection))?.key ?? null;
}
return n;
}
@@ -14008,13 +14008,13 @@ var _x = 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 ? qv(Wv(e, this.collection))?.key ?? null : null;
+ return e ? Xv(qv(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 = qv(Wv(e, this.collection))?.key ?? null;
+ n = Xv(qv(e, this.collection))?.key ?? null;
}
return n;
}
@@ -14050,13 +14050,13 @@ var _x = 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" ? Gv(Wv(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? Jv(qv(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;
}
-}, bte = class {
+}, vte = class {
constructor(e) {
this.layout = e;
}
@@ -14069,16 +14069,16 @@ var _x = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, vx = /* @__PURE__ */ new WeakMap();
+}, bx = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function xte(e, t, n) {
+function yte(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 = $v({
+ let h = ny({
usage: "search",
sensitivity: "base"
- }), { direction: g } = ag(), _ = t.selectionManager.disabledBehavior, v = (0, I.useMemo)(() => a || new _x({
+ }), { direction: g } = ag(), _ = t.selectionManager.disabledBehavior, v = (0, I.useMemo)(() => a || new yx({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -14095,7 +14095,7 @@ function xte(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = Uv({
+ ]), { collectionProps: y } = Kv({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -14104,7 +14104,7 @@ function xte(e, t, n) {
disallowTypeAhead: i,
escapeKeyBehavior: d
}), b = Rm(e.id);
- vx.set(t, {
+ bx.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -14113,10 +14113,10 @@ function xte(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = qee({
+ let x = Wee({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = hg(e, { labelable: !0 }), C = (0, I.useCallback)((e) => {
+ }), S = gg(e, { labelable: !0 }), C = (0, I.useCallback)((e) => {
if (m.isFocused) {
np(e.currentTarget, V(e)) || m.setFocused(!1);
return;
@@ -14125,36 +14125,36 @@ function xte(e, t, n) {
}, [m]), w = (0, I.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = Zy(n, { isDisabled: t.collection.size !== 0 }), E = H(S, {
+ }), [C, y.onBlur]), T = eb(n, { isDisabled: t.collection.size !== 0 }), E = H(S, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
}, t.isKeyboardNavigationDisabled ? w : y, t.collection.size === 0 && { tabIndex: T ? -1 : 0 } || void 0, x);
- return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), Gee({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), Hee({ getRowText: c }, t), { gridProps: E };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var yx = /* @__PURE__ */ new WeakMap();
-function bx(e) {
+var xx = /* @__PURE__ */ new WeakMap();
+function Sx(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Ste(e, t) {
- let n = yx.get(e);
+function bte(e, t) {
+ let n = xx.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${bx(t)}`;
+ return `${n}-${Sx(t)}`;
}
-function xx(e, t, n) {
- let r = yx.get(e);
+function Cx(e, t, n) {
+ let r = xx.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${bx(t)}-${bx(n)}`;
+ return `${r}-${Sx(t)}-${Sx(n)}`;
}
-function Sx(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => xx(e, t, n)).join(" ");
+function wx(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => Cx(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var Cx = {};
-Cx = {
+var Tx = {};
+Tx = {
ascending: "تصاعدي",
ascendingSort: (e) => `\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,
collapse: "طي",
@@ -14169,8 +14169,8 @@ Cx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var wx = {};
-wx = {
+var Ex = {};
+Ex = {
ascending: "възходящ",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,
collapse: "Свиване",
@@ -14185,8 +14185,8 @@ wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var Tx = {};
-Tx = {
+var Dx = {};
+Dx = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -14201,8 +14201,8 @@ Tx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var Ex = {};
-Ex = {
+var Ox = {};
+Ox = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -14217,8 +14217,8 @@ Ex = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var Dx = {};
-Dx = {
+var kx = {};
+kx = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -14233,8 +14233,8 @@ Dx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var Ox = {};
-Ox = {
+var Ax = {};
+Ax = {
ascending: "αύξουσα",
ascendingSort: (e) => `\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,
collapse: "Σύμπτυξη",
@@ -14249,8 +14249,8 @@ Ox = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var kx = {};
-kx = {
+var jx = {};
+jx = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -14265,8 +14265,8 @@ kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var Ax = {};
-Ax = {
+var Mx = {};
+Mx = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -14281,8 +14281,8 @@ Ax = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var jx = {};
-jx = {
+var Nx = {};
+Nx = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -14297,8 +14297,8 @@ jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var Mx = {};
-Mx = {
+var Px = {};
+Px = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -14313,8 +14313,8 @@ Mx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var Nx = {};
-Nx = {
+var Fx = {};
+Fx = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -14329,8 +14329,8 @@ Nx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var Px = {};
-Px = {
+var Ix = {};
+Ix = {
ascending: "עולה",
ascendingSort: (e) => `\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5E2}\u{5D5}\u{5DC}\u{5D4}`,
collapse: "כווץ",
@@ -14345,8 +14345,8 @@ Px = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var Fx = {};
-Fx = {
+var Lx = {};
+Lx = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -14361,8 +14361,8 @@ Fx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var Ix = {};
-Ix = {
+var Rx = {};
+Rx = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -14377,8 +14377,8 @@ Ix = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var Lx = {};
-Lx = {
+var zx = {};
+zx = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -14393,8 +14393,8 @@ Lx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var Rx = {};
-Rx = {
+var Bx = {};
+Bx = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -14409,8 +14409,8 @@ Rx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var zx = {};
-zx = {
+var Vx = {};
+Vx = {
ascending: "오름차순",
ascendingSort: (e) => `${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,
collapse: "접기",
@@ -14425,8 +14425,8 @@ zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var Bx = {};
-Bx = {
+var Hx = {};
+Hx = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -14441,8 +14441,8 @@ Bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var Vx = {};
-Vx = {
+var Ux = {};
+Ux = {
ascending: "augošā secībā",
ascendingSort: (e) => `k\u{101}rtots p\u{113}c kolonnas ${e.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,
collapse: "Sakļaut",
@@ -14457,8 +14457,8 @@ Vx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var Hx = {};
-Hx = {
+var Wx = {};
+Wx = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -14473,8 +14473,8 @@ Hx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var Ux = {};
-Ux = {
+var Gx = {};
+Gx = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -14489,8 +14489,8 @@ Ux = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var Wx = {};
-Wx = {
+var Kx = {};
+Kx = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -14505,8 +14505,8 @@ Wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var Gx = {};
-Gx = {
+var qx = {};
+qx = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -14521,8 +14521,8 @@ Gx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var Kx = {};
-Kx = {
+var Jx = {};
+Jx = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -14537,8 +14537,8 @@ Kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var qx = {};
-qx = {
+var Yx = {};
+Yx = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -14553,8 +14553,8 @@ qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var Jx = {};
-Jx = {
+var Xx = {};
+Xx = {
ascending: "возрастание",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{432}\u{43E}\u{437}\u{440}\u{430}\u{441}\u{442}\u{430}\u{43D}\u{438}\u{44F}`,
collapse: "Свернуть",
@@ -14569,8 +14569,8 @@ Jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var Yx = {};
-Yx = {
+var Zx = {};
+Zx = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -14585,8 +14585,8 @@ Yx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var Xx = {};
-Xx = {
+var Qx = {};
+Qx = {
ascending: "naraščajoče",
ascendingSort: (e) => `razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v nara\u{161}\u{10D}ajo\u{10D}em vrstnem redu`,
collapse: "Strni",
@@ -14601,8 +14601,8 @@ Xx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var Zx = {};
-Zx = {
+var $x = {};
+$x = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -14617,8 +14617,8 @@ Zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var Qx = {};
-Qx = {
+var eS = {};
+eS = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -14633,8 +14633,8 @@ Qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var $x = {};
-$x = {
+var tS = {};
+tS = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -14649,8 +14649,8 @@ $x = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var eS = {};
-eS = {
+var nS = {};
+nS = {
ascending: "висхідний",
ascendingSort: (e) => `\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
collapse: "Згорнути",
@@ -14665,8 +14665,8 @@ eS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var tS = {};
-tS = {
+var rS = {};
+rS = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -14681,8 +14681,8 @@ tS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var nS = {};
-nS = {
+var iS = {};
+iS = {
ascending: "遞增",
ascendingSort: (e) => `\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{589E}\u{6392}\u{5E8F}`,
collapse: "收合",
@@ -14697,46 +14697,46 @@ nS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var rS = {};
-rS = {
- "ar-AE": Cx,
- "bg-BG": wx,
- "cs-CZ": Tx,
- "da-DK": Ex,
- "de-DE": Dx,
- "el-GR": Ox,
- "en-US": kx,
- "es-ES": Ax,
- "et-EE": jx,
- "fi-FI": Mx,
- "fr-FR": Nx,
- "he-IL": Px,
- "hr-HR": Fx,
- "hu-HU": Ix,
- "it-IT": Lx,
- "ja-JP": Rx,
- "ko-KR": zx,
- "lt-LT": Bx,
- "lv-LV": Vx,
- "nb-NO": Hx,
- "nl-NL": Ux,
- "pl-PL": Wx,
- "pt-BR": Gx,
- "pt-PT": Kx,
- "ro-RO": qx,
- "ru-RU": Jx,
- "sk-SK": Yx,
- "sl-SI": Xx,
- "sr-SP": Zx,
- "sv-SE": Qx,
- "tr-TR": $x,
- "uk-UA": eS,
- "zh-CN": tS,
- "zh-TW": nS
+var aS = {};
+aS = {
+ "ar-AE": Tx,
+ "bg-BG": Ex,
+ "cs-CZ": Dx,
+ "da-DK": Ox,
+ "de-DE": kx,
+ "el-GR": Ax,
+ "en-US": jx,
+ "es-ES": Mx,
+ "et-EE": Nx,
+ "fi-FI": Px,
+ "fr-FR": Fx,
+ "he-IL": Ix,
+ "hr-HR": Lx,
+ "hu-HU": Rx,
+ "it-IT": zx,
+ "ja-JP": Bx,
+ "ko-KR": Vx,
+ "lt-LT": Hx,
+ "lv-LV": Ux,
+ "nb-NO": Wx,
+ "nl-NL": Gx,
+ "pl-PL": Kx,
+ "pt-BR": qx,
+ "pt-PT": Jx,
+ "ro-RO": Yx,
+ "ru-RU": Xx,
+ "sk-SK": Zx,
+ "sl-SI": Qx,
+ "sr-SP": $x,
+ "sv-SE": eS,
+ "tr-TR": tS,
+ "uk-UA": nS,
+ "zh-CN": rS,
+ "zh-TW": iS
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var Cte = class extends _x {
+var xte = class extends yx {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -14744,7 +14744,7 @@ var Cte = class extends _x {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = Gv(Wv(n, this.collection));
+ let e = Jv(qv(n, this.collection));
if (e) return e.key;
let t = this.getFirstKey();
return t == null || !this.collection.getItem(t) ? null : super.getKeyForItemInRowByIndex(t, n.index);
@@ -14765,13 +14765,13 @@ var Cte = class extends _x {
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 Wv(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of qv(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 = [...Wv(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...qv(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -14800,7 +14800,7 @@ var Cte = class extends _x {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of Wv(o, this.collection)) {
+ for (let r of qv(o, this.collection)) {
let a = n.columns[r.index];
if (n.rowHeaderColumnKeys.has(a.key) && r.textValue) {
let a = r.textValue.slice(0, e.length);
@@ -14814,14 +14814,14 @@ var Cte = class extends _x {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function wte(e) {
+function Ste(e) {
return e && e.__esModule ? e.default : e;
}
-function Tte(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = $v({
+function Cte(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = ny({
usage: "search",
sensitivity: "base"
- }), { direction: c } = ag(), l = t.selectionManager.disabledBehavior, u = (0, I.useMemo)(() => r || new Cte({
+ }), { direction: c } = ag(), l = t.selectionManager.disabledBehavior, u = (0, I.useMemo)(() => r || new xte({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -14841,34 +14841,34 @@ function Tte(e, t, n) {
a,
o
]), d = Rm(e.id);
- yx.set(t, d);
- let { gridProps: f } = xte({
+ xx.set(t, d);
+ let { gridProps: f } = yte({
...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 = pg(wte(rS), "@react-aria/table"), g = (0, I.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = mg(Ste(aS), "@react-aria/table"), g = (0, I.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
m,
p,
t.collection.columns
- ]), _ = C_(g);
- return g_(() => {
- g && m_(g, "assertive", 500);
+ ]), _ = w_(g);
+ return __(() => {
+ g && h_(g, "assertive", 500);
}, [g]), { gridProps: H(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function iS(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = ag(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = vx.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, I.useRef)(null), h = () => {
+function oS(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = ag(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = bx.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, I.useRef)(null), h = () => {
if (n.current) {
- let e = c_(n.current);
+ let e = l_(n.current);
if (p === "child") {
if (ap(n.current) && n.current !== rp(Kf(n.current))) return;
- let r = t.selectionManager.childFocusStrategy === "last" ? aS(e) : e.firstChild();
+ let r = t.selectionManager.childFocusStrategy === "last" ? sS(e) : e.firstChild();
if (r) {
jm(r);
return;
@@ -14876,7 +14876,7 @@ function iS(e, t, n) {
}
(m.current != null && r.key !== m.current || !ap(n.current)) && jm(n.current);
}
- }, { itemProps: g, isPressed: _ } = $y({
+ }, { itemProps: g, isPressed: _ } = nb({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -14890,29 +14890,29 @@ function iS(e, t, n) {
onKeyDownCapture: f !== "tab" || o ? (e) => {
let i = rp(Kf(n.current));
if (!np(e.currentTarget, V(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = c_(n.current);
+ let a = l_(n.current);
switch (a.currentNode = i, e.key) {
case "ArrowLeft": {
let t = l === "rtl" ? a.nextNode() : a.previousNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) jm(t), x_(t, { containingElement: v_(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) jm(t), S_(t, { containingElement: y_(n.current) });
else {
if (u.getKeyLeftOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (jm(n.current), x_(n.current, { containingElement: v_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : aS(a), t && (jm(t), x_(t, { containingElement: v_(n.current) })));
+ p === "cell" && l === "rtl" ? (jm(n.current), S_(n.current, { containingElement: y_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : sS(a), t && (jm(t), S_(t, { containingElement: y_(n.current) })));
}
break;
}
case "ArrowRight": {
let t = l === "rtl" ? a.previousNode() : a.nextNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) jm(t), x_(t, { containingElement: v_(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) jm(t), S_(t, { containingElement: y_(n.current) });
else {
if (u.getKeyRightOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (jm(n.current), x_(n.current, { containingElement: v_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? aS(a) : a.firstChild(), t && (jm(t), x_(t, { containingElement: v_(n.current) })));
+ p === "cell" && l === "ltr" ? (jm(n.current), S_(n.current, { containingElement: y_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? sS(a) : a.firstChild(), t && (jm(t), S_(t, { containingElement: y_(n.current) })));
}
break;
}
@@ -14928,7 +14928,7 @@ function iS(e, t, n) {
return;
}
if (e.key === "Tab" && f === "tab") {
- let t = c_(n.current, { tabbable: !0 });
+ let t = l_(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -14957,7 +14957,7 @@ function iS(e, t, n) {
isPressed: _
};
}
-function aS(e) {
+function sS(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -14966,23 +14966,23 @@ function aS(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
-function Ete(e, t, n) {
- let { gridCellProps: r, isPressed: i } = iS(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = xx(t, e.node.parentKey, a)), {
+function wte(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = oS(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = Cx(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function Dte(e) {
+function Tte(e) {
return e && e.__esModule ? e.default : e;
}
-function Ote(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = iS({
+function Ete(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = oS({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = Og({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = kg({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
@@ -14990,9 +14990,9 @@ function Ote(e, t, n) {
ref: n
}), { focusableProps: l } = uh({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
r.props.allowsSorting && !Mp() && (u = d ? f : "none");
- let p = pg(Dte(rS), "@react-aria/table"), m;
+ let p = mg(Tte(aS), "@react-aria/table"), m;
i && (m = `${p.format("sortable")}`, d && f && Mp() && (m = `${m}, ${p.format(f)}`));
- let h = C_(m), g = t.collection.size === 0;
+ let h = w_(m), g = t.collection.size === 0;
return (0, I.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -15003,7 +15003,7 @@ function Ote(e, t, n) {
columnHeaderProps: {
...H(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: Ste(t, r.key),
+ id: bte(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -15012,14 +15012,14 @@ function Ote(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function kte(e, t, n) {
+function Dte(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function Ate(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = vx.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = $y({
+function Ote(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = bx.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = nb({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -15040,10 +15040,10 @@ function Ate(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRow.mjs
-function jte(e) {
+function kte(e) {
return e && e.__esModule ? e.default : e;
}
-var oS = {
+var cS = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -15053,21 +15053,21 @@ var oS = {
rtl: "ArrowRight"
}
};
-function Mte(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Ate(e, t, n), { direction: s } = ag();
+function Ate(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Ote(e, t, n), { direction: s } = ag();
i && t.treeColumn == null ? a["aria-rowindex"] = r.index + 1 + t.collection.headerRows.length : delete a["aria-rowindex"];
- let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = pg(jte(rS), "@react-aria/table"), u = Yh({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = mg(kte(aS), "@react-aria/table"), u = Yh({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": Sx(t, r.key)
+ "aria-labelledby": wx(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = sS(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = sS(t.collection, a);
+ let n = lS(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = lS(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === oS.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === oS.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
+ n.key === cS.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === cS.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
},
"aria-expanded": i ? t.expandedKeys === "all" || t.expandedKeys.has(r.key) : void 0,
"aria-level": e.level + 1,
@@ -15089,41 +15089,41 @@ function Mte(e, t, n) {
return {
rowProps: {
...H(a, d, m),
- "aria-labelledby": Sx(t, r.key)
+ "aria-labelledby": wx(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function sS(e, t) {
+function lS(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function Nte() {
+function jte() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function cS() {
- return Nte();
+function uS() {
+ return jte();
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function Pte(e) {
+function Mte(e) {
return e && e.__esModule ? e.default : e;
}
-function Fte(e, t) {
- let { key: n } = e, { checkboxProps: r } = Yee(e, t);
+function Nte(e, t) {
+ let { key: n } = e, { checkboxProps: r } = Kee(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${Sx(t, n)}`
+ "aria-labelledby": `${r.id} ${wx(t, n)}`
} };
}
-function Ite(e) {
+function Pte(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": pg(Pte(rS), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": mg(Mte(aS), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
isSelected: n,
isDisabled: r !== "multiple" || e.collection.size === 0 || e.collection.rows.length === 1 && e.collection.rows[0].type === "loader",
isIndeterminate: !t && !n,
@@ -15132,21 +15132,21 @@ function Ite(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var lS = /* @__PURE__ */ new WeakMap();
-function uS(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${lS.get(e)}-${n}-${t}`) : "";
+var dS = /* @__PURE__ */ new WeakMap();
+function fS(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${dS.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function Lte(e, t, n) {
- let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = $y({
+function Fte(e, t, n) {
+ let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = nb({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = uS(t, r, "tab"), m = uS(t, r, "tabpanel"), { tabIndex: h } = d, g = hg(u?.props, { labelable: !0 });
+ }), p = fS(t, r, "tab"), m = fS(t, r, "tabpanel"), { tabIndex: h } = d, g = gg(u?.props, { labelable: !0 });
delete g.id;
let _ = Up(u?.props), { focusableProps: v } = uh({
...u?.props,
@@ -15168,7 +15168,7 @@ function Lte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var Rte = class {
+var Ite = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -15212,11 +15212,11 @@ var Rte = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function zte(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = ag(), { collectionProps: l } = Uv({
+function Lte(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = ag(), { collectionProps: l } = Kv({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, I.useMemo)(() => new Rte(a, c, r, s), [
+ keyboardDelegate: (0, I.useMemo)(() => new Ite(a, c, r, s), [
a,
s,
r,
@@ -15227,7 +15227,7 @@ function zte(e, t, n) {
scrollRef: n,
linkBehavior: "selection"
}), u = Rm();
- return lS.set(t, u), { tabListProps: {
+ return dS.set(t, u), { tabListProps: {
...H(l, Yh({
...e,
id: u
@@ -15239,12 +15239,12 @@ function zte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function Bte(e, t, n) {
- let r = Zy(n) ? void 0 : 0, i = uS(t, e.id ?? t?.selectedKey, "tabpanel");
+function Rte(e, t, n) {
+ let r = eb(n) ? void 0 : 0, i = fS(t, e.id ?? t?.selectedKey, "tabpanel");
return { tabPanelProps: H(Yh({
...e,
id: i,
- "aria-labelledby": uS(t, t?.selectedKey, "tab")
+ "aria-labelledby": fS(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -15254,7 +15254,7 @@ function Bte(e, t, n) {
}
//#endregion
//#region node_modules/scheduler/cjs/scheduler.production.js
-var Vte = /* @__PURE__ */ M(((e) => {
+var zte = /* @__PURE__ */ M(((e) => {
function t(e, t) {
var n = e.length;
e.push(t);
@@ -15453,10 +15453,10 @@ var Vte = /* @__PURE__ */ M(((e) => {
}
};
};
-})), Hte = /* @__PURE__ */ M(((e, t) => {
- t.exports = Vte();
-})), Ute = /* @__PURE__ */ M(((e) => {
- var t = Hte(), n = ne(), r = gh();
+})), Bte = /* @__PURE__ */ M(((e, t) => {
+ t.exports = zte();
+})), Vte = /* @__PURE__ */ M(((e) => {
+ var t = Bte(), n = ne(), r = gh();
function i(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -23866,7 +23866,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
var n = !1, r = "", o = wc, s = Tc, c = Ec;
return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = yh(e, 1, !1, null, null, n, r, null, o, s, c, $h), e[xt] = t.current, ep(e), new eg(t);
};
-})), dS = (/* @__PURE__ */ M(((e, t) => {
+})), pS = (/* @__PURE__ */ M(((e, t) => {
function n() {
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);
@@ -23874,8 +23874,8 @@ var Vte = /* @__PURE__ */ M(((e) => {
console.error(e);
}
}
- n(), t.exports = Ute();
-})))(), Wte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+ n(), t.exports = Vte();
+})))(), Hte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23883,7 +23883,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Gte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Ute = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23891,7 +23891,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), fS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), mS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23899,7 +23899,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), pS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), hS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23907,7 +23907,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), mS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), gS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23915,7 +23915,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), Kte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), Wte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23923,7 +23923,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), hS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), _S = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23931,7 +23931,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), gS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), vS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23939,7 +23939,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), qte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), Gte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23947,7 +23947,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), _S = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), yS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23955,7 +23955,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), vS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), bS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23963,7 +23963,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), yS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), xS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23971,7 +23971,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), bS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), SS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23979,7 +23979,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), Jte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), Kte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23987,7 +23987,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), xS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), CS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23995,7 +23995,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), SS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), wS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24003,7 +24003,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), Yte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), qte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24011,7 +24011,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), Xte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), Jte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24019,7 +24019,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), CS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), TS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24027,7 +24027,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), wS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), ES = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24035,7 +24035,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), TS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), Yte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24043,7 +24043,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), ES = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), DS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24051,7 +24051,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), DS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), OS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24059,7 +24059,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), OS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), kS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24067,7 +24067,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), kS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), AS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24075,7 +24075,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), AS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), jS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24083,7 +24083,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), jS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), MS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24091,7 +24091,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), MS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), NS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24099,7 +24099,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), NS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), PS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24107,7 +24107,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), PS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), FS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24115,7 +24115,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), FS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), IS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24123,7 +24123,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), IS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), LS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24131,7 +24131,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), LS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), RS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24139,7 +24139,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), RS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), zS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24147,7 +24147,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), zS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), BS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24155,7 +24155,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), BS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), VS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24163,7 +24163,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), VS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), HS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24171,100 +24171,100 @@ var Vte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), HS = (e, t) => {
+}, I.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), US = (e, t) => {
let n = Array(e.length + t.length);
for (let t = 0; t < e.length; t++) n[t] = e[t];
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
return n;
-}, US = (e, t) => ({
+}, WS = (e, t) => ({
classGroupId: e,
validator: t
-}), WS = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), GS = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), GS = "-", KS = [], qS = "arbitrary..", JS = (e) => {
- let t = ZS(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), KS = "-", qS = [], JS = "arbitrary..", YS = (e) => {
+ let t = QS(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return XS(e);
- let n = e.split(GS);
- return YS(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return ZS(e);
+ let n = e.split(KS);
+ return XS(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? HS(i, t) : t : i || KS;
+ return t ? i ? US(i, t) : t : i || qS;
}
- return n[e] || KS;
+ return n[e] || qS;
}
};
-}, YS = (e, t, n) => {
+}, XS = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = YS(e, t + 1, i);
+ let n = XS(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(GS) : e.slice(t).join(GS), s = a.length;
+ let o = t === 0 ? e.join(KS) : e.slice(t).join(KS), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, XS = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, ZS = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
- return r ? qS + r : void 0;
-})(), ZS = (e) => {
+ return r ? JS + r : void 0;
+})(), QS = (e) => {
let { theme: t, classGroups: n } = e;
- return QS(n, t);
-}, QS = (e, t) => {
- let n = WS();
+ return $S(n, t);
+}, $S = (e, t) => {
+ let n = GS();
for (let r in e) {
let i = e[r];
- $S(i, n, r, t);
+ eC(i, n, r, t);
}
return n;
-}, $S = (e, t, n, r) => {
+}, eC = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- eC(i, t, n, r);
+ tC(i, t, n, r);
}
-}, eC = (e, t, n, r) => {
+}, tC = (e, t, n, r) => {
if (typeof e == "string") {
- tC(e, t, n);
+ nC(e, t, n);
return;
}
if (typeof e == "function") {
- nC(e, t, n, r);
+ rC(e, t, n, r);
return;
}
- rC(e, t, n, r);
-}, tC = (e, t, n) => {
- let r = e === "" ? t : iC(t, e);
+ iC(e, t, n, r);
+}, nC = (e, t, n) => {
+ let r = e === "" ? t : aC(t, e);
r.classGroupId = n;
-}, nC = (e, t, n, r) => {
- if (aC(e)) {
- $S(e(r), t, n, r);
+}, rC = (e, t, n, r) => {
+ if (oC(e)) {
+ eC(e(r), t, n, r);
return;
}
- t.validators === null && (t.validators = []), t.validators.push(US(n, e));
-}, rC = (e, t, n, r) => {
+ t.validators === null && (t.validators = []), t.validators.push(WS(n, e));
+}, iC = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- $S(o, iC(t, a), n, r);
+ eC(o, aC(t, a), n, r);
}
-}, iC = (e, t) => {
- let n = e, r = t.split(GS), i = r.length;
+}, aC = (e, t) => {
+ let n = e, r = t.split(KS), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = WS(), n.nextPart.set(t, i)), n = i;
+ i || (i = GS(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, aC = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, oC = (e) => {
+}, oC = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, sC = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -24282,19 +24282,19 @@ var Vte = /* @__PURE__ */ M(((e) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, sC = "!", cC = ":", lC = [], uC = (e, t, n, r, i) => ({
+}, cC = "!", lC = ":", uC = [], dC = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), dC = (e) => {
+}), fC = (e) => {
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
for (let s = 0; s < o; s++) {
let o = e[s];
if (n === 0 && r === 0) {
- if (o === cC) {
+ if (o === lC) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -24306,13 +24306,13 @@ var Vte = /* @__PURE__ */ M(((e) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(sC) ? (c = s.slice(0, -1), l = !0) : s.startsWith(sC) && (c = s.slice(1), l = !0);
+ s.endsWith(cC) ? (c = s.slice(0, -1), l = !0) : s.startsWith(cC) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return uC(t, l, c, u);
+ return dC(t, l, c, u);
};
if (t) {
- let e = t + cC, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : uC(lC, !1, t, void 0, !0);
+ let e = t + lC, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : dC(uC, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -24322,7 +24322,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
});
}
return r;
-}, fC = (e) => {
+}, pC = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -24334,18 +24334,18 @@ var Vte = /* @__PURE__ */ M(((e) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, pC = (e) => ({
- cache: oC(e.cacheSize),
- parseClassName: dC(e),
- sortModifiers: fC(e),
- postfixLookupClassGroupIds: mC(e),
- ...JS(e)
-}), mC = (e) => {
+}, mC = (e) => ({
+ cache: sC(e.cacheSize),
+ parseClassName: fC(e),
+ sortModifiers: pC(e),
+ postfixLookupClassGroupIds: hC(e),
+ ...YS(e)
+}), hC = (e) => {
let t = Object.create(null), n = e.postfixLookupClassGroups;
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
return t;
-}, hC = /\s+/, gC = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(hC), l = "";
+}, gC = /\s+/, _C = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(gC), l = "";
for (let e = c.length - 1; e >= 0; --e) {
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
if (u) {
@@ -24369,7 +24369,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + sC : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + cC : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -24380,34 +24380,34 @@ var Vte = /* @__PURE__ */ M(((e) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, _C = (...e) => {
+}, vC = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = vC(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = yC(n)) && (i && (i += " "), i += r);
return i;
-}, vC = (e) => {
+}, yC = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = vC(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = yC(e[r])) && (n && (n += " "), n += t);
return n;
-}, yC = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = pC(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, bC = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = mC(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
let t = r(e);
if (t) return t;
- let a = gC(e, n);
+ let a = _C(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(_C(...e));
-}, bC = [], xC = (e) => {
- let t = (t) => t[e] || bC;
+ return a = o, (...e) => a(vC(...e));
+}, xC = [], SC = (e) => {
+ let t = (t) => t[e] || xC;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, SC = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, CC = /^\((?:(\w[\w-]*):)?(.+)\)$/i, wC = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, TC = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, EC = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, DC = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, OC = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, kC = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, AC = (e) => wC.test(e), jC = (e) => !!e && !Number.isNaN(Number(e)), MC = (e) => !!e && Number.isInteger(Number(e)), NC = (e) => e.endsWith("%") && jC(e.slice(0, -1)), PC = (e) => TC.test(e), FC = () => !0, IC = (e) => EC.test(e) && !DC.test(e), LC = () => !1, RC = (e) => OC.test(e), zC = (e) => kC.test(e), BC = (e) => !U(e) && !W(e), VC = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), HC = (e) => rw(e, sw, LC), U = (e) => SC.test(e), UC = (e) => rw(e, cw, IC), WC = (e) => rw(e, lw, jC), GC = (e) => rw(e, dw, FC), KC = (e) => rw(e, uw, LC), qC = (e) => rw(e, aw, LC), JC = (e) => rw(e, ow, zC), YC = (e) => rw(e, fw, RC), W = (e) => CC.test(e), XC = (e) => iw(e, cw), ZC = (e) => iw(e, uw), QC = (e) => iw(e, aw), $C = (e) => iw(e, sw), ew = (e) => iw(e, ow), tw = (e) => iw(e, fw, !0), nw = (e) => iw(e, dw, !0), rw = (e, t, n) => {
- let r = SC.exec(e);
- return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, iw = (e, t, n = !1) => {
+}, CC = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, wC = /^\((?:(\w[\w-]*):)?(.+)\)$/i, TC = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, EC = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, DC = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, OC = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, kC = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, AC = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, jC = (e) => TC.test(e), MC = (e) => !!e && !Number.isNaN(Number(e)), NC = (e) => !!e && Number.isInteger(Number(e)), PC = (e) => e.endsWith("%") && MC(e.slice(0, -1)), FC = (e) => EC.test(e), IC = () => !0, LC = (e) => DC.test(e) && !OC.test(e), RC = () => !1, zC = (e) => kC.test(e), BC = (e) => AC.test(e), VC = (e) => !U(e) && !W(e), HC = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), UC = (e) => iw(e, cw, RC), U = (e) => CC.test(e), WC = (e) => iw(e, lw, LC), GC = (e) => iw(e, uw, MC), KC = (e) => iw(e, fw, IC), qC = (e) => iw(e, dw, RC), JC = (e) => iw(e, ow, RC), YC = (e) => iw(e, sw, BC), XC = (e) => iw(e, pw, zC), W = (e) => wC.test(e), ZC = (e) => aw(e, lw), QC = (e) => aw(e, dw), $C = (e) => aw(e, ow), ew = (e) => aw(e, cw), tw = (e) => aw(e, sw), nw = (e) => aw(e, pw, !0), rw = (e) => aw(e, fw, !0), iw = (e, t, n) => {
let r = CC.exec(e);
+ return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
+}, aw = (e, t, n = !1) => {
+ let r = wC.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, aw = (e) => e === "position" || e === "percentage", ow = (e) => e === "image" || e === "url", sw = (e) => e === "length" || e === "size" || e === "bg-size", cw = (e) => e === "length", lw = (e) => e === "number", uw = (e) => e === "family-name", dw = (e) => e === "number" || e === "weight", fw = (e) => e === "shadow", pw = () => {
- let e = xC("color"), t = xC("font"), n = xC("text"), r = xC("font-weight"), i = xC("tracking"), a = xC("leading"), o = xC("breakpoint"), s = xC("container"), c = xC("spacing"), l = xC("radius"), u = xC("shadow"), d = xC("inset-shadow"), f = xC("text-shadow"), p = xC("drop-shadow"), m = xC("blur"), h = xC("perspective"), g = xC("aspect"), _ = xC("ease"), v = xC("animate"), y = () => [
+}, ow = (e) => e === "position" || e === "percentage", sw = (e) => e === "image" || e === "url", cw = (e) => e === "length" || e === "size" || e === "bg-size", lw = (e) => e === "length", uw = (e) => e === "number", dw = (e) => e === "family-name", fw = (e) => e === "number" || e === "weight", pw = (e) => e === "shadow", mw = () => {
+ let e = SC("color"), t = SC("font"), n = SC("text"), r = SC("font-weight"), i = SC("tracking"), a = SC("leading"), o = SC("breakpoint"), s = SC("container"), c = SC("spacing"), l = SC("radius"), u = SC("shadow"), d = SC("inset-shadow"), f = SC("text-shadow"), p = SC("drop-shadow"), m = SC("blur"), h = SC("perspective"), g = SC("aspect"), _ = SC("ease"), v = SC("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -24449,12 +24449,12 @@ var Vte = /* @__PURE__ */ M(((e) => {
U,
c
], T = () => [
- AC,
+ jC,
"full",
"auto",
...w()
], E = () => [
- MC,
+ NC,
"none",
"subgrid",
W,
@@ -24463,15 +24463,15 @@ var Vte = /* @__PURE__ */ M(((e) => {
"auto",
{ span: [
"full",
- MC,
+ NC,
W,
U
] },
- MC,
+ NC,
W,
U
], O = () => [
- MC,
+ NC,
"auto",
W,
U
@@ -24501,7 +24501,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], N = () => [
- AC,
+ jC,
"auto",
"full",
"dvw",
@@ -24516,7 +24516,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
...w()
], ee = () => [
s,
- AC,
+ jC,
"screen",
"full",
"dvw",
@@ -24527,7 +24527,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
"fit",
...w()
], te = () => [
- AC,
+ jC,
"screen",
"full",
"lh",
@@ -24544,8 +24544,8 @@ var Vte = /* @__PURE__ */ M(((e) => {
U
], F = () => [
...b(),
- QC,
- qC,
+ $C,
+ JC,
{ position: [W, U] }
], ne = () => ["no-repeat", { repeat: [
"",
@@ -24557,13 +24557,13 @@ var Vte = /* @__PURE__ */ M(((e) => {
"auto",
"cover",
"contain",
- $C,
- HC,
+ ew,
+ UC,
{ size: [W, U] }
], ie = () => [
- NC,
- XC,
- UC
+ PC,
+ ZC,
+ WC
], I = () => [
"",
"none",
@@ -24573,9 +24573,9 @@ var Vte = /* @__PURE__ */ M(((e) => {
U
], L = () => [
"",
- jC,
- XC,
- UC
+ MC,
+ ZC,
+ WC
], ae = () => [
"solid",
"dashed",
@@ -24599,10 +24599,10 @@ var Vte = /* @__PURE__ */ M(((e) => {
"color",
"luminosity"
], se = () => [
- jC,
- NC,
- QC,
- qC
+ MC,
+ PC,
+ $C,
+ JC
], ce = () => [
"",
"none",
@@ -24611,20 +24611,20 @@ var Vte = /* @__PURE__ */ M(((e) => {
U
], le = () => [
"none",
- jC,
+ MC,
W,
U
], ue = () => [
"none",
- jC,
+ MC,
W,
U
], R = () => [
- jC,
+ MC,
W,
U
], z = () => [
- AC,
+ jC,
"full",
...w()
];
@@ -24638,17 +24638,17 @@ var Vte = /* @__PURE__ */ M(((e) => {
"bounce"
],
aspect: ["video"],
- blur: [PC],
- breakpoint: [PC],
- color: [FC],
- container: [PC],
- "drop-shadow": [PC],
+ blur: [FC],
+ breakpoint: [FC],
+ color: [IC],
+ container: [FC],
+ "drop-shadow": [FC],
ease: [
"in",
"out",
"in-out"
],
- font: [BC],
+ font: [VC],
"font-weight": [
"thin",
"extralight",
@@ -24660,7 +24660,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
"extrabold",
"black"
],
- "inset-shadow": [PC],
+ "inset-shadow": [FC],
leading: [
"none",
"tight",
@@ -24677,11 +24677,11 @@ var Vte = /* @__PURE__ */ M(((e) => {
"distant",
"none"
],
- radius: [PC],
- shadow: [PC],
- spacing: ["px", jC],
- text: [PC],
- "text-shadow": [PC],
+ radius: [FC],
+ shadow: [FC],
+ spacing: ["px", MC],
+ text: [FC],
+ "text-shadow": [FC],
tracking: [
"tighter",
"tight",
@@ -24695,7 +24695,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
aspect: [{ aspect: [
"auto",
"square",
- AC,
+ jC,
U,
W,
g
@@ -24708,9 +24708,9 @@ var Vte = /* @__PURE__ */ M(((e) => {
W,
U
] }],
- "container-named": [VC],
+ "container-named": [HC],
columns: [{ columns: [
- jC,
+ MC,
"auto",
U,
W,
@@ -24810,13 +24810,13 @@ var Vte = /* @__PURE__ */ M(((e) => {
"collapse"
],
z: [{ z: [
- MC,
+ NC,
"auto",
W,
U
] }],
basis: [{ basis: [
- AC,
+ jC,
"full",
"auto",
s,
@@ -24834,8 +24834,8 @@ var Vte = /* @__PURE__ */ M(((e) => {
"wrap-reverse"
] }],
flex: [{ flex: [
+ MC,
jC,
- AC,
"auto",
"initial",
"none",
@@ -24843,18 +24843,18 @@ var Vte = /* @__PURE__ */ M(((e) => {
] }],
grow: [{ grow: [
"",
- jC,
+ MC,
W,
U
] }],
shrink: [{ shrink: [
"",
- jC,
+ MC,
W,
U
] }],
order: [{ order: [
- MC,
+ NC,
"first",
"last",
"none",
@@ -24966,15 +24966,15 @@ var Vte = /* @__PURE__ */ M(((e) => {
"font-size": [{ text: [
"base",
n,
- XC,
- UC
+ ZC,
+ WC
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- nw,
- GC
+ rw,
+ KC
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -24986,12 +24986,12 @@ var Vte = /* @__PURE__ */ M(((e) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- NC,
+ PC,
U
] }],
"font-family": [{ font: [
- ZC,
- KC,
+ QC,
+ qC,
t
] }],
"font-features": [{ "font-features": [U] }],
@@ -25007,10 +25007,10 @@ var Vte = /* @__PURE__ */ M(((e) => {
U
] }],
"line-clamp": [{ "line-clamp": [
- jC,
+ MC,
"none",
W,
- WC
+ GC
] }],
leading: [{ leading: [
"none",
@@ -25048,15 +25048,15 @@ var Vte = /* @__PURE__ */ M(((e) => {
],
"text-decoration-style": [{ decoration: [...ae(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- jC,
+ MC,
"from-font",
"auto",
W,
- UC
+ WC
] }],
"text-decoration-color": [{ decoration: P() }],
"underline-offset": [{ "underline-offset": [
- jC,
+ MC,
"auto",
W,
U
@@ -25080,7 +25080,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- MC,
+ NC,
W,
U
] }],
@@ -25158,7 +25158,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
"l",
"tl"
] },
- MC,
+ NC,
W,
U
],
@@ -25169,13 +25169,13 @@ var Vte = /* @__PURE__ */ M(((e) => {
],
conic: [
"",
- MC,
+ NC,
W,
U
]
},
- ew,
- JC
+ tw,
+ YC
] }],
"bg-color": [{ bg: P() }],
"gradient-from-pos": [{ from: ie() }],
@@ -25242,15 +25242,15 @@ var Vte = /* @__PURE__ */ M(((e) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- jC,
+ MC,
W,
U
] }],
"outline-w": [{ outline: [
"",
- jC,
- XC,
- UC
+ MC,
+ ZC,
+ WC
] }],
"outline-color": [{ outline: P() }],
shadow: [{ shadow: [
@@ -25258,33 +25258,33 @@ var Vte = /* @__PURE__ */ M(((e) => {
"inner",
"none",
u,
- tw,
- YC
+ nw,
+ XC
] }],
"shadow-color": [{ shadow: P() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- tw,
- YC
+ nw,
+ XC
] }],
"inset-shadow-color": [{ "inset-shadow": P() }],
"ring-w": [{ ring: L() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: P() }],
- "ring-offset-w": [{ "ring-offset": [jC, UC] }],
+ "ring-offset-w": [{ "ring-offset": [MC, WC] }],
"ring-offset-color": [{ "ring-offset": P() }],
"inset-ring-w": [{ "inset-ring": L() }],
"inset-ring-color": [{ "inset-ring": P() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- tw,
- YC
+ nw,
+ XC
] }],
"text-shadow-color": [{ "text-shadow": P() }],
opacity: [{ opacity: [
- jC,
+ MC,
W,
U
] }],
@@ -25308,7 +25308,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [jC] }],
+ "mask-image-linear-pos": [{ "mask-linear": [MC] }],
"mask-image-linear-from-pos": [{ "mask-linear-from": se() }],
"mask-image-linear-to-pos": [{ "mask-linear-to": se() }],
"mask-image-linear-from-color": [{ "mask-linear-from": P() }],
@@ -25348,7 +25348,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [jC] }],
+ "mask-image-conic-pos": [{ "mask-conic": [MC] }],
"mask-image-conic-from-pos": [{ "mask-conic-from": se() }],
"mask-image-conic-to-pos": [{ "mask-conic-to": se() }],
"mask-image-conic-from-color": [{ "mask-conic-from": P() }],
@@ -25383,12 +25383,12 @@ var Vte = /* @__PURE__ */ M(((e) => {
] }],
blur: [{ blur: ce() }],
brightness: [{ brightness: [
- jC,
+ MC,
W,
U
] }],
contrast: [{ contrast: [
- jC,
+ MC,
W,
U
] }],
@@ -25396,35 +25396,35 @@ var Vte = /* @__PURE__ */ M(((e) => {
"",
"none",
p,
- tw,
- YC
+ nw,
+ XC
] }],
"drop-shadow-color": [{ "drop-shadow": P() }],
grayscale: [{ grayscale: [
"",
- jC,
+ MC,
W,
U
] }],
"hue-rotate": [{ "hue-rotate": [
- jC,
+ MC,
W,
U
] }],
invert: [{ invert: [
"",
- jC,
+ MC,
W,
U
] }],
saturate: [{ saturate: [
- jC,
+ MC,
W,
U
] }],
sepia: [{ sepia: [
"",
- jC,
+ MC,
W,
U
] }],
@@ -25436,45 +25436,45 @@ var Vte = /* @__PURE__ */ M(((e) => {
] }],
"backdrop-blur": [{ "backdrop-blur": ce() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- jC,
+ MC,
W,
U
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- jC,
+ MC,
W,
U
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- jC,
+ MC,
W,
U
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- jC,
+ MC,
W,
U
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- jC,
+ MC,
W,
U
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- jC,
+ MC,
W,
U
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- jC,
+ MC,
W,
U
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- jC,
+ MC,
W,
U
] }],
@@ -25497,7 +25497,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- jC,
+ MC,
"initial",
W,
U
@@ -25510,7 +25510,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
U
] }],
delay: [{ delay: [
- jC,
+ MC,
W,
U
] }],
@@ -25555,7 +25555,7 @@ var Vte = /* @__PURE__ */ M(((e) => {
"translate-z": [{ "translate-z": z() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- MC,
+ NC,
W,
U
] }],
@@ -25699,10 +25699,10 @@ var Vte = /* @__PURE__ */ M(((e) => {
] }],
fill: [{ fill: ["none", ...P()] }],
"stroke-w": [{ stroke: [
- jC,
- XC,
- UC,
- WC
+ MC,
+ ZC,
+ WC,
+ GC
] }],
stroke: [{ stroke: ["none", ...P()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -25960,16 +25960,16 @@ var Vte = /* @__PURE__ */ M(((e) => {
"selection"
]
};
-}, mw = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (hw(e, "cacheSize", t), hw(e, "prefix", n), hw(e, "experimentalParseClassName", r), gw(e.theme, a.theme), gw(e.classGroups, a.classGroups), gw(e.conflictingClassGroups, a.conflictingClassGroups), gw(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), hw(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), hw(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), _w(e.theme, i.theme), _w(e.classGroups, i.classGroups), _w(e.conflictingClassGroups, i.conflictingClassGroups), _w(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), vw(e, i, "postfixLookupClassGroups"), vw(e, i, "orderSensitiveModifiers"), e), hw = (e, t, n) => {
+}, hw = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (gw(e, "cacheSize", t), gw(e, "prefix", n), gw(e, "experimentalParseClassName", r), _w(e.theme, a.theme), _w(e.classGroups, a.classGroups), _w(e.conflictingClassGroups, a.conflictingClassGroups), _w(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), gw(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), gw(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), vw(e.theme, i.theme), vw(e.classGroups, i.classGroups), vw(e.conflictingClassGroups, i.conflictingClassGroups), vw(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), yw(e, i, "postfixLookupClassGroups"), yw(e, i, "orderSensitiveModifiers"), e), gw = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, gw = (e, t) => {
- if (t) for (let n in t) hw(e, n, t[n]);
}, _w = (e, t) => {
- if (t) for (let n in t) vw(e, t, n);
-}, vw = (e, t, n) => {
+ if (t) for (let n in t) gw(e, n, t[n]);
+}, vw = (e, t) => {
+ if (t) for (let n in t) yw(e, t, n);
+}, yw = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, yw = (e, ...t) => typeof e == "function" ? yC(pw, e, ...t) : yC(() => mw(pw(), e), ...t), bw = [
+}, bw = (e, ...t) => typeof e == "function" ? bC(mw, e, ...t) : bC(() => hw(mw(), e), ...t), xw = [
"large-title",
"display-1",
"display-2",
@@ -25983,18 +25983,18 @@ var Vte = /* @__PURE__ */ M(((e) => {
"body-2",
"caption-1",
"caption-2"
-], xw = [
+], Sw = [
"regular",
"medium",
"semibold",
"bold"
-], Sw = yw({ extend: { classGroups: { "font-size": [{ text: bw.flatMap((e) => xw.map((t) => `${e}-${t}`)) }] } } });
-function Cw(e) {
+], Cw = bw({ extend: { classGroups: { "font-size": [{ text: xw.flatMap((e) => Sw.map((t) => `${e}-${t}`)) }] } } });
+function ww(e) {
return e;
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var ww = Cw({
+var Tw = ww({
base: "inline-flex items-center justify-center rounded-md px-1.5 whitespace-nowrap transition-[padding,font-size] duration-200 ease",
variant: {
bold: "py-0.5 text-body-medium",
@@ -26013,16 +26013,16 @@ var ww = Cw({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function Tw({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function Ew({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, L.jsx)("span", {
ref: r,
- className: Sw(ww.base, ww.variant[e], ww.color[t], n),
+ className: Cw(Tw.base, Tw.variant[e], Tw.color[t], n),
...i
});
}
//#endregion
//#region src/react/boardui/components/base/buttons/button.tsx
-var Ew = Cw({
+var Dw = ww({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -26081,40 +26081,40 @@ function G({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, L.jsxs)("button", {
ref: c,
type: s,
- className: Sw(Ew.base, Ew.size[t], Ew.variant[e], n && Ew.iconOnlySize[t], o),
+ className: Cw(Dw.base, Dw.size[t], Dw.variant[e], n && Dw.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, L.jsx)(r, {
- className: Ew.icon[t],
+ className: Dw.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, L.jsx)("span", {
- className: Ew.label[t],
+ className: Dw.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, L.jsx)(i, {
- className: Ew.icon[t],
+ className: Dw.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function Dw({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function Ow({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, L.jsxs)("a", {
ref: s,
- className: Sw(Ew.base, Ew.size[t], Ew.variant[e], n && Ew.iconOnlySize[t], o),
+ className: Cw(Dw.base, Dw.size[t], Dw.variant[e], n && Dw.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, L.jsx)(r, {
- className: Ew.icon[t],
+ className: Dw.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, L.jsx)("span", {
- className: Ew.label[t],
+ className: Dw.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, L.jsx)(i, {
- className: Ew.icon[t],
+ className: Dw.icon[t],
"aria-hidden": !0
}) : null
]
@@ -26122,13 +26122,13 @@ function Dw({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region src/api.ts
-var Ow = class extends Error {
+var kw = class extends Error {
status;
body;
constructor(e, t, n = null) {
super(d(e, t)), this.name = "ApiError", this.status = t, this.body = n;
}
-}, kw = (e) => {
+}, Aw = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -26141,7 +26141,7 @@ var Ow = class extends Error {
}
return "";
}, K = (e) => d(e);
-async function Aw(e, t) {
+async function jw(e, t) {
let n = await fetch(e, {
headers: { Accept: "application/json" },
credentials: "same-origin",
@@ -26150,7 +26150,7 @@ async function Aw(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new Ow(kw(r) || `请求失败(${n.status})`, n.status);
+ if (!n.ok) throw new kw(Aw(r) || `请求失败(${n.status})`, n.status);
return r;
}
async function q(e, t, n = "POST", r) {
@@ -26167,52 +26167,52 @@ async function q(e, t, n = "POST", r) {
try {
a = await i.json();
} catch {}
- if (!i.ok) throw new Ow(kw(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new kw(Aw(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/react/components/card.tsx
-var jw = "min-w-0", Mw = {
+var Mw = "min-w-0", Nw = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, Nw = {
+}, Pw = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, Pw = {
+}, Fw = {
line: "border border-border-button-default",
soft: "border border-separator-border"
-}, Fw = {
+}, Iw = {
none: "",
default: "p-5"
-}, Iw = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", Lw = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
-function Rw(e = {}) {
+}, Lw = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", Rw = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
+function zw(e = {}) {
let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");
return [
- jw,
- Mw[t],
- Nw[s],
- Fw[n],
- a ? Pw[a] : "",
- r ? Iw : "",
- i ? Lw : "",
+ Mw,
+ Nw[t],
+ Pw[s],
+ Iw[n],
+ a ? Fw[a] : "",
+ r ? Lw : "",
+ i ? Rw : "",
o ?? ""
].filter(Boolean).join(" ");
}
//#endregion
//#region src/react/components/empty-state.tsx
-var zw = {
+var Bw = {
page: "min-h-80 justify-center rounded-floating border border-separator-border bg-background-secondary-default px-6 py-12",
plain: "px-6 py-12",
inset: "min-h-40 justify-center rounded-xl bg-background-secondary-default px-4 py-4"
};
-function Bw({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
+function Vw({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
let a = i === "page";
return /* @__PURE__ */ (0, L.jsxs)("div", {
"data-empty-state": "",
- className: `flex flex-col items-center gap-2 text-center ${zw[i]}`,
+ className: `flex flex-col items-center gap-2 text-center ${Bw[i]}`,
children: [
a ? /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
@@ -26242,7 +26242,7 @@ function Bw({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function Vw({ label: e, inline: t = !1 }) {
+function Hw({ label: e, inline: t = !1 }) {
let n = /* @__PURE__ */ (0, L.jsxs)("span", {
"aria-hidden": !0,
className: "inline-flex items-center gap-1",
@@ -26308,7 +26308,7 @@ function J({ tone: e, title: t, action: n, extra: r, children: i }) {
}
//#endregion
//#region src/react/components/page.tsx
-function Hw({ children: e }) {
+function Uw({ children: e }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
className: "mx-auto flex w-full max-w-board flex-col gap-8",
children: e
@@ -26316,21 +26316,21 @@ function Hw({ children: e }) {
}
//#endregion
//#region src/react/components/progress.tsx
-var Uw = 100, Ww = .4;
-function Gw({ label: e, value: t, max: n = 100, stops: r = [] }) {
- let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(e, 0), i) / i * Uw;
+var Ww = 100, Gw = .4;
+function Kw({ label: e, value: t, max: n = 100, stops: r = [] }) {
+ let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(e, 0), i) / i * Ww;
return /* @__PURE__ */ (0, L.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": n,
"aria-valuenow": t,
- viewBox: `0 0 ${Uw} 1`,
+ viewBox: `0 0 ${Ww} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, L.jsx)("rect", {
- width: Uw,
+ width: Ww,
height: 1,
className: "fill-background-tertiary-default"
}),
@@ -26341,7 +26341,7 @@ function Gw({ label: e, value: t, max: n = 100, stops: r = [] }) {
}),
r.map((e) => /* @__PURE__ */ (0, L.jsx)("rect", {
x: a(e),
- width: Ww,
+ width: Gw,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -26350,7 +26350,7 @@ function Gw({ label: e, value: t, max: n = 100, stops: r = [] }) {
}
//#endregion
//#region src/react/settings/use-action.ts
-function Kw(e = "") {
+function qw(e = "") {
let t = (0, I.useRef)(null), [n, r] = (0, I.useState)(""), [i, a] = (0, I.useState)(e);
(0, I.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -26388,11 +26388,11 @@ var X = new gt({ defaultOptions: { queries: {
refetchOnWindowFocus: !1,
refetchOnMount: !1,
retryOnMount: !1
-} } }), qw = "/api/tasks", Jw = ["tasks"], Yw = (e, t) => Aw(`${qw}?${new URLSearchParams({
+} } }), Jw = "/api/tasks", Yw = ["tasks"], Xw = (e, t) => jw(`${Jw}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function Xw(...e) {
+function Zw(...e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of n) t.has(e.id) || t.set(e.id, e);
return [...t.values()].sort((e, t) => {
@@ -26400,26 +26400,26 @@ function Xw(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var Zw = 2e3, Qw = 1e4, $w = (e) => e?.running.length ? Zw : Qw, eT = (e) => Aw(qw, e);
-async function tT(e) {
+var Qw = 2e3, $w = 1e4, eT = (e) => e?.running.length ? Qw : $w, tT = (e) => jw(Jw, e);
+async function nT(e) {
await X.fetchQuery({
- queryKey: Jw,
- queryFn: () => eT(e)
+ queryKey: Yw,
+ queryFn: () => tT(e)
});
}
-var nT = {
+var rT = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, Zte = {
+}, Xte = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "被打断"
-}, Qte = (e) => Zte[e] || e, $te = {
+}, Zte = (e) => Xte[e] || e, Qte = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -26449,7 +26449,7 @@ var nT = {
source: "来源",
cover_network: "封面连不上图片主机"
};
-function ene(e) {
+function $te(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -26458,7 +26458,7 @@ function ene(e) {
}
return t;
}
-function tne(e, t) {
+function ene(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -26480,19 +26480,19 @@ function tne(e, t) {
}
return n;
}
-var nne = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), rT = (e) => e.status === "pending" || e.status === "running";
-function rne(e) {
+var tne = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), iT = (e) => e.status === "pending" || e.status === "running";
+function nne(e) {
let t = `${e.task_label}:`, n = e.progress_label || "", r = n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n, i = e.progress_total || 0;
- return [r, e.error || oT(e.result_summary) || (rT(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
+ return [r, e.error || sT(e.result_summary) || (iT(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
}
-function iT(e) {
+function aT(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
let n = Math.floor(t / 60);
return n < 60 ? `${n} 分 ${t % 60} 秒` : `${Math.floor(n / 60)} 小时 ${n % 60} 分`;
}
-function aT(e) {
+function oT(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -26502,7 +26502,7 @@ function aT(e) {
minute: "2-digit"
});
}
-var ine = /* @__PURE__ */ new Set([
+var rne = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -26511,28 +26511,28 @@ var ine = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function oT(e) {
- return Object.entries(e || {}).filter(([e, t]) => !ine.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${$te[e] || e} ${t}`).join(" · ");
+function sT(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !rne.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Qte[e] || e} ${t}`).join(" · ");
}
//#endregion
//#region src/react/activity/activity-page.tsx
-var ane = {
+var ine = {
succeeded: "lime",
failed: "rose",
cancelled: "yellow",
interrupted: "yellow"
};
-function sT({ status: e }) {
- return /* @__PURE__ */ (0, L.jsx)(Tw, {
- color: ane[e] ?? "neutral",
- children: Qte(e)
+function cT({ status: e }) {
+ return /* @__PURE__ */ (0, L.jsx)(Ew, {
+ color: ine[e] ?? "neutral",
+ children: Zte(e)
});
}
-function one({ rows: e }) {
+function ane({ rows: e }) {
return /* @__PURE__ */ (0, L.jsx)("ul", {
className: "flex min-w-0 flex-col",
children: e.map((e) => {
- let t = rne(e);
+ let t = nne(e);
return /* @__PURE__ */ (0, L.jsxs)("li", {
"data-status": e.status,
"data-followup-key": e.followup_key,
@@ -26542,7 +26542,7 @@ function one({ rows: e }) {
className: "min-w-0 break-words text-caption-1-regular text-text-primary",
children: e.task_label
}),
- /* @__PURE__ */ (0, L.jsx)(sT, { status: e.status }),
+ /* @__PURE__ */ (0, L.jsx)(cT, { status: e.status }),
t ? /* @__PURE__ */ (0, L.jsx)("span", {
className: "min-w-0 break-words text-caption-1-regular text-text-secondary",
children: t
@@ -26552,12 +26552,12 @@ function one({ rows: e }) {
})
});
}
-function cT({ run: e, meta: t, children: n, footer: r, followups: i }) {
+function lT({ run: e, meta: t, children: n, footer: r, followups: i }) {
return /* @__PURE__ */ (0, L.jsxs)("li", {
"data-status": e.status,
"data-task-key": e.task_key,
"data-run-id": e.id,
- className: Rw({
+ className: zw({
padding: "none",
bordered: "line",
className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -26571,7 +26571,7 @@ function cT({ run: e, meta: t, children: n, footer: r, followups: i }) {
children: [/* @__PURE__ */ (0, L.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
children: e.task_label
- }), /* @__PURE__ */ (0, L.jsx)(sT, { status: e.status })]
+ }), /* @__PURE__ */ (0, L.jsx)(cT, { status: e.status })]
}),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
@@ -26580,7 +26580,7 @@ function cT({ run: e, meta: t, children: n, footer: r, followups: i }) {
n
]
}),
- i?.length ? /* @__PURE__ */ (0, L.jsx)(one, { rows: i }) : null,
+ i?.length ? /* @__PURE__ */ (0, L.jsx)(ane, { rows: i }) : null,
r ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",
children: /* @__PURE__ */ (0, L.jsx)("p", {
@@ -26591,15 +26591,15 @@ function cT({ run: e, meta: t, children: n, footer: r, followups: i }) {
]
});
}
-function sne({ run: e, followups: t }) {
- let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = iT(e.elapsed_seconds), o = [nT[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, L.jsx)(cT, {
+function one({ run: e, followups: t }) {
+ let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = aT(e.elapsed_seconds), o = [rT[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, L.jsx)(lT, {
run: e,
meta: o,
followups: t,
children: n > 0 ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, L.jsx)(Gw, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Kw, {
label: i,
value: r,
max: n
@@ -26614,20 +26614,20 @@ function sne({ run: e, followups: t }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, L.jsx)(Vw, { label: i })
+ }) : /* @__PURE__ */ (0, L.jsx)(Hw, { label: i })
});
}
-function lT({ run: e, followups: t, runs: n }) {
- let r = oT(e.result_summary), i = iT(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
- nT[e.trigger] || e.trigger,
+function uT({ run: e, followups: t, runs: n }) {
+ let r = sT(e.result_summary), i = aT(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
+ rT[e.trigger] || e.trigger,
`近 ${n.length} 轮`,
- `${aT(a.finished_at)} – ${aT(e.finished_at)}`
+ `${oT(a.finished_at)} – ${oT(e.finished_at)}`
] : [
- nT[e.trigger] || e.trigger,
- aT(e.finished_at),
+ rT[e.trigger] || e.trigger,
+ oT(e.finished_at),
i && `用时 ${i}`
]).filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, L.jsx)(cT, {
+ return /* @__PURE__ */ (0, L.jsx)(lT, {
run: e,
meta: o,
footer: e.error,
@@ -26638,7 +26638,7 @@ function lT({ run: e, followups: t, runs: n }) {
}) : null
});
}
-function uT({ title: e, children: t }) {
+function dT({ title: e, children: t }) {
let n = (0, I.useId)();
return /* @__PURE__ */ (0, L.jsxs)("section", {
"aria-labelledby": n,
@@ -26650,41 +26650,41 @@ function uT({ title: e, children: t }) {
}), t]
});
}
-function dT({ live: e = !1, children: t }) {
+function fT({ live: e = !1, children: t }) {
return /* @__PURE__ */ (0, L.jsx)("ul", {
"aria-live": e ? "polite" : void 0,
className: "flex min-w-0 flex-col gap-3",
children: t
});
}
-function cne(e) {
+function sne(e) {
let t = kt({
- queryKey: Jw,
- queryFn: ({ signal: e }) => eT(e),
- refetchInterval: (e) => $w(e.state.data)
+ queryKey: Yw,
+ queryFn: ({ signal: e }) => tT(e),
+ refetchInterval: (e) => eT(e.state.data)
}), n = t.data, r = n?.finished, [i, a] = (0, I.useState)([]), [o, s] = (0, I.useState)(!1), [c, l] = (0, I.useState)(r);
- r !== c && (l(r), i.length && c && a(Xw(i, c)));
+ r !== c && (l(r), i.length && c && a(Zw(i, c)));
let u = At({
- mutationFn: ({ oldest: e }) => Yw(e),
+ mutationFn: ({ oldest: e }) => Xw(e),
onSuccess: (e, { shown: t }) => {
- a((n) => Xw(n, t, e.finished || [])), s(!!e.finished_has_more);
+ a((n) => Zw(n, t, e.finished || [])), s(!!e.finished_has_more);
}
}), d = t.error ? K(t.error) : "";
- if (!n) return /* @__PURE__ */ (0, L.jsx)(Hw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ if (!n) return /* @__PURE__ */ (0, L.jsx)(Uw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
children: d || "读取任务中心失败"
}) });
- let f = Xw(n.finished || [], i), p = [
+ let f = Zw(n.finished || [], i), p = [
...n.running || [],
...n.skipped || [],
...f
- ], m = ene(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {
+ ], m = $te(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {
!u.isPending && v && u.mutate({
oldest: v,
shown: f
});
- }, x = _.filter((e) => m.get(e.id)?.some(rT)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = tne(w, (e) => nne(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;
- return /* @__PURE__ */ (0, L.jsxs)(Hw, { children: [
+ }, x = _.filter((e) => m.get(e.id)?.some(iT)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = ene(w, (e) => tne(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;
+ return /* @__PURE__ */ (0, L.jsxs)(Uw, { children: [
d ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
children: d
@@ -26693,20 +26693,20 @@ function cne(e) {
tone: "warning",
children: n.message || "账本上还没有任务中心的表"
}) : null,
- E ? /* @__PURE__ */ (0, L.jsx)(Bw, {
+ E ? /* @__PURE__ */ (0, L.jsx)(Vw, {
shell: "plain",
- icon: wS,
+ icon: ES,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
}) : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
- /* @__PURE__ */ (0, L.jsx)(uT, {
+ /* @__PURE__ */ (0, L.jsx)(dT, {
title: "正在进行",
- children: S.length || x.length ? /* @__PURE__ */ (0, L.jsxs)(dT, {
+ children: S.length || x.length ? /* @__PURE__ */ (0, L.jsxs)(fT, {
live: !0,
- children: [S.map((e) => /* @__PURE__ */ (0, L.jsx)(sne, {
+ children: [S.map((e) => /* @__PURE__ */ (0, L.jsx)(one, {
run: e,
followups: m.get(e.id)
- }, e.id)), x.map((e) => /* @__PURE__ */ (0, L.jsx)(lT, {
+ }, e.id)), x.map((e) => /* @__PURE__ */ (0, L.jsx)(uT, {
run: e,
followups: m.get(e.id)
}, e.id))]
@@ -26715,17 +26715,17 @@ function cne(e) {
children: "没有任务在跑。"
})
}),
- C.length ? /* @__PURE__ */ (0, L.jsx)(uT, {
+ C.length ? /* @__PURE__ */ (0, L.jsx)(dT, {
title: "被挡下的",
- children: /* @__PURE__ */ (0, L.jsx)(dT, { children: C.map((e) => /* @__PURE__ */ (0, L.jsx)(lT, {
+ children: /* @__PURE__ */ (0, L.jsx)(fT, { children: C.map((e) => /* @__PURE__ */ (0, L.jsx)(uT, {
run: e,
followups: m.get(e.id)
}, e.id)) })
}) : null,
- w.length || y ? /* @__PURE__ */ (0, L.jsxs)(uT, {
+ w.length || y ? /* @__PURE__ */ (0, L.jsxs)(dT, {
title: "最近完成",
children: [
- w.length ? /* @__PURE__ */ (0, L.jsx)(dT, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, L.jsx)(lT, {
+ w.length ? /* @__PURE__ */ (0, L.jsx)(fT, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, L.jsx)(uT, {
run: e,
runs: t,
followups: m.get(e.id)
@@ -26737,7 +26737,7 @@ function cne(e) {
y ? /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: fS,
+ leadingIcon: mS,
className: "self-start",
...Y(u.isPending),
onClick: b,
@@ -26750,56 +26750,56 @@ function cne(e) {
}
//#endregion
//#region src/jav-artwork.ts
-function lne(e) {
+function cne(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function fT(e, t) {
- return e.is_jav && e.code && e.has_cover && (lne(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
-}
function pT(e, t) {
+ return e.is_jav && e.code && e.has_cover && (cne(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
+}
+function mT(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var une = (e, t) => [
+var lne = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], dne = (e, t) => [
+], une = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function fne(e, t, n, r, i) {
+async function dne(e, t, n, r, i) {
let a = new URLSearchParams(e);
a.set("limit", String(n)), a.set("offset", String(t)), t && a.set("count", "0");
- let o = await Aw(`/api/items?${a}`, i), s = {
+ let o = await jw(`/api/items?${a}`, i), s = {
...o,
items: o.items || [],
offset: t
};
- return !t && !s.items.length && !r && (s.libraryEmpty = (await Aw("/api/items?limit=1&thumb=0", i)).total === 0), s;
+ return !t && !s.items.length && !r && (s.libraryEmpty = (await jw("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var pne = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, mne = (e, t) => {
+var fne = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, pne = (e, t) => {
let n = t.reduce((e, t) => e + t.items.length, 0);
return (e.has_more == null ? n < (e.total || 0) : e.has_more) ? n : void 0;
};
-function mT(e) {
- let t = pT(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function hT(e) {
+ let t = mT(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: une(t, e.revision || 0),
+ queryKey: lne(t, e.revision || 0),
queryFn: async ({ pageParam: i, signal: a }) => {
- let o = await fne(t, i, n, r, a);
+ let o = await dne(t, i, n, r, a);
return e.cache(o.items), o;
},
initialPageParam: 0,
- getNextPageParam: pne(n)
+ getNextPageParam: fne(n)
};
}
-function hT(e) {
+function gT(e) {
return {
- queryKey: dne(e.entityKey || "", e.revision || 0),
+ queryKey: une(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -26814,13 +26814,13 @@ function hT(e) {
};
},
initialPageParam: 0,
- getNextPageParam: mne
+ getNextPageParam: pne
};
}
-async function hne(e, t) {
+async function mne(e, t) {
if (e.mode === "items") return;
if (e.mode === "entity") {
- let n = hT(e);
+ let n = gT(e);
if (e.initial) {
X.setQueryData(n.queryKey, {
pages: [{
@@ -26841,7 +26841,7 @@ async function hne(e, t) {
});
return;
}
- let n = mT(e);
+ let n = hT(e);
await X.fetchInfiniteQuery({
...n,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -26850,7 +26850,7 @@ async function hne(e, t) {
})
});
}
-function gne(e, t, n) {
+function hne(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -26865,28 +26865,28 @@ function gne(e, t, n) {
return !0;
}) : [...e];
}
-var gT = (e, t) => !!e && !!fT(e, t);
-function _ne(e, t) {
+var _T = (e, t) => !!e && !!pT(e, t);
+function gne(e, t) {
let n = (e.performers || [])[0];
return (e.is_jav && n ? n : e.creator) || n || e.studio || e.code || t((e.tags || [])[0] || "") || "为你推荐";
}
-function vne(e, t) {
- let n = (e) => gT(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
- return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => gT(e, t)) || e[e.length - 1];
+function _ne(e, t) {
+ let n = (e) => _T(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
+ return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => _T(e, t)) || e[e.length - 1];
}
-function yne(e, { collapse: t, mix: n, javImage: r }) {
+function vne(e, { collapse: t, mix: n, javImage: r }) {
let i = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
}, a = /* @__PURE__ */ new Set(), o = [], s = [];
for (let c of e) {
s.push(o.length);
- let e = gne(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = hne(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
kind: "card",
item: e
}));
if (n && e.length >= 8) {
- let t = vne(e, r);
+ let t = _ne(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -26899,16 +26899,16 @@ function yne(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function bne(e, t, n) {
+function yne(e, t, n) {
let r = Math.max(1, n), i = [];
for (let n = Math.max(r, Math.ceil(Math.max(0, t) / r) * r); n < e; n += r) i.push(n);
return i;
}
-function xne(e, t) {
+function bne(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return n.set("orient", "竖屏"), n.set("limit", "18"), n.set("offset", String(t)), n.toString();
}
-function Sne(e, t) {
+function xne(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -26923,7 +26923,7 @@ function Sne(e, t) {
}
//#endregion
//#region src/react/components/grid-reveal.tsx
-function _T(e, t) {
+function vT(e, t) {
let [n, r] = (0, I.useState)(e ? "skeleton" : "none"), [i] = (0, I.useState)(() => e ? t() : ""), a = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
a.current && g(a.current);
@@ -26949,7 +26949,7 @@ function _T(e, t) {
fading: n === "fade"
};
}
-function vT({ message: e, onRetry: t }) {
+function yT({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -26963,21 +26963,21 @@ function vT({ message: e, onRetry: t }) {
}
//#endregion
//#region src/react/catalog-grid/artwork.ts
-var yT = {
+var bT = {
kind: "",
html: ""
};
-function bT(e, t, n, i, a) {
- let o = fT(e, i);
- if (!o) return yT;
+function xT(e, t, n, i, a) {
+ let o = pT(e, i);
+ if (!o) return bT;
let s = e.has_cover && e.code ? `/cover?code=${encodeURIComponent(e.code)}&thumb=1` : "", c = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "", l = a(e, t, n), u = (l.match(/ data-(?:c[xy]|posterbox)="[^"]*"/g) || []).join(""), d = o === "cover" ? l : `<img class="poster" src="${c}" alt="" loading="${n ? "eager" : "lazy"}"${u}>`;
return {
kind: o === "cover" ? "cover" : "thumb",
html: d.replace("<img ", `<img data-jav-image="${e.id}" data-jav-cover="${r(s)}" data-jav-thumb="${r(c)}" data-jav-image-layout="${t}" `)
};
}
-function Cne(e, t, n, i, a) {
- if (e.is_jav) return bT(e, t, n, i, a);
+function ST(e, t, n, i, a) {
+ if (e.is_jav) return xT(e, t, n, i, a);
let o = n ? "eager" : "lazy";
return e.follow_thumb_url ? {
kind: "thumb",
@@ -26985,29 +26985,49 @@ function Cne(e, t, n, i, a) {
} : e.has_thumb || e.has_local_poster ? {
kind: "thumb",
html: `<img class="poster" src="/poster?id=${e.id}&c=4" alt="" loading="${o}">`
- } : yT;
+ } : bT;
+}
+//#endregion
+//#region src/react/components/art-slot.tsx
+function CT({ artwork: e, identity: t = e.html, relayout: n }) {
+ let [r, i] = (0, I.useState)({
+ identity: t,
+ artwork: e
+ });
+ r.identity !== t && i({
+ identity: t,
+ artwork: e
+ });
+ let a = r.identity === t ? r.artwork : e, o = (0, I.useRef)(null), s = (0, I.useRef)(n);
+ return s.current = n, (0, I.useLayoutEffect)(() => {
+ o.current && s.current?.(o.current);
+ }, [e.html]), /* @__PURE__ */ (0, L.jsx)("span", {
+ ref: o,
+ "data-media-art": a.kind,
+ dangerouslySetInnerHTML: { __html: a.html }
+ });
}
//#endregion
//#region src/react/components/media-card.tsx
-var xT = .75, wne = 9 / 16;
-function ST({ name: e }) {
+var wT = .75, Sne = 9 / 16;
+function TT({ name: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })
});
}
-var Tne = {
+var Cne = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
-}, Ene = (e) => e.is_jav ? "女优" : "艺人";
-function Dne(e, t, n) {
- return t === "short" || n.portrait ? wne : n.active && e.is_jav && n.size === "big" ? xT : 16 / 9;
+}, wne = (e) => e.is_jav ? "女优" : "艺人";
+function Tne(e, t, n) {
+ return t === "short" || n.portrait ? Sne : n.active && e.is_jav && n.size === "big" ? wT : 16 / 9;
}
-function One(e, t) {
- let n = e.performers || [], r = e.performer_entities || [], i = n[0] || "", a = e.is_jav && i ? "" : e.creator || "", o = a ? "creator" : i ? "performer" : "", s = a || i || "未归属", c = n.length > 1 && !a, l = Ene(e);
+function Ene(e, t) {
+ let n = e.performers || [], r = e.performer_entities || [], i = n[0] || "", a = e.is_jav && i ? "" : e.creator || "", o = a ? "creator" : i ? "performer" : "", s = a || i || "未归属", c = n.length > 1 && !a, l = wne(e);
return {
avatar: c ? /* @__PURE__ */ (0, L.jsx)("div", {
"data-media-avatars": "",
@@ -27053,7 +27073,7 @@ function One(e, t) {
})
};
}
-function kne() {
+function Dne() {
return /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -27072,7 +27092,7 @@ function kne() {
})]
});
}
-function Ane({ item: e, actions: t }) {
+function One({ item: e, actions: t }) {
let [n, r] = (0, I.useState)(null), [i, a] = (0, I.useState)(!1), o = n?.id === e.id ? n.on : !!e.watch_later;
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-media-later": "",
@@ -27090,15 +27110,15 @@ function Ane({ item: e, actions: t }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, L.jsx)(ST, { name: o ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, L.jsx)(TT, { name: o ? "check" : "bookmark-plus" })
})
});
}
-function CT(e, t) {
+function ET(e, t) {
let n = e?.querySelector("video.hv");
!n || !Number.isFinite(n.duration) || (n._hop &&= (clearInterval(n._hop), null), n.currentTime = Math.max(0, Math.min(n.duration, n.currentTime + t)));
}
-function jne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekSeconds: s, helpers: c, actions: l, onOpen: u }) {
+function kne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekSeconds: s, helpers: c, actions: l, onOpen: u }) {
let d = (0, I.useRef)(null), f = (0, I.useRef)({
item: e,
helpers: c
@@ -27110,12 +27130,12 @@ function jne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS
let p = (0, I.useCallback)((e) => {
let { item: t, helpers: n } = f.current;
d.current && d.current !== e && n.releaseHover(d.current), d.current = e, e && (!t.medium || t.medium === "video") && n.wireHover(e, t);
- }, []), m = e.part_group || null, h = e.edition_group || null, g = !!(m || h), _ = Cne(e, n.active && e.is_jav ? n.size : "small", !1, n.javImage, c.coverHtml), v = m?.title || e.name || "", y = c.displayName(e, v), b = m?.total_size ?? e.size, x = m?.total_duration ?? e.duration, S = !m && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: C, who: w } = One(e, c), T = (e.follow_tags || e.tags || []).slice(0, 3), E = [
+ }, []), m = e.part_group || null, h = e.edition_group || null, g = !!(m || h), _ = n.active && e.is_jav ? n.size : "small", v = ST(e, _, !1, n.javImage, c.coverHtml), y = _ === "small" ? v.html : ST(e, "small", !1, n.javImage, c.coverHtml).html, b = m?.title || e.name || "", x = c.displayName(e, b), S = m?.total_size ?? e.size, C = m?.total_duration ?? e.duration, w = !m && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: T, who: E } = Ene(e, c), D = (e.follow_tags || e.tags || []).slice(0, 3), O = [
e.feedback === "dislike" && "dislike",
e.feedback === "seen" && "seen",
e.disposal === "trash" && "dispose",
e.watch_later && "later"
- ].filter(Boolean), D = (t) => {
+ ].filter(Boolean), k = (t) => {
let n = t.target, r = d.current;
if (!r) return;
if (o || t.shiftKey || t.ctrlKey || t.metaKey) {
@@ -27142,13 +27162,14 @@ function jne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS
return;
}
u(e, r);
- }, O = /* @__PURE__ */ (0, L.jsxs)("div", {
+ }, A = /* @__PURE__ */ (0, L.jsxs)("div", {
"data-media-pic": "",
- style: { "--card-ratio": String(Dne(e, t, n)) },
+ style: { "--card-ratio": String(Tne(e, t, n)) },
children: [
- _.html ? /* @__PURE__ */ (0, L.jsx)("span", {
- "data-media-art": _.kind,
- dangerouslySetInnerHTML: { __html: _.html }
+ v.html ? /* @__PURE__ */ (0, L.jsx)(CT, {
+ artwork: v,
+ identity: y,
+ relayout: (e) => c.relayoutArt(e, _)
}) : /* @__PURE__ */ (0, L.jsx)("span", {
"data-media-nopic": "",
children: "无预览"
@@ -27159,11 +27180,11 @@ function jne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS
}),
/* @__PURE__ */ (0, L.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, L.jsx)(ST, { name: "check" })
+ children: /* @__PURE__ */ (0, L.jsx)(TT, { name: "check" })
}),
/* @__PURE__ */ (0, L.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, L.jsx)(ST, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, L.jsx)(TT, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("b", { children: "回收站" })]
}),
m ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-media-group": "",
@@ -27176,22 +27197,22 @@ function jne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS
}) : null,
/* @__PURE__ */ (0, L.jsx)("span", {
"data-media-duration": "",
- children: i(x)
+ children: i(C)
}),
- S > 0 ? /* @__PURE__ */ (0, L.jsx)("div", {
+ w > 0 ? /* @__PURE__ */ (0, L.jsx)("div", {
"data-media-progress": "",
role: "progressbar",
"aria-label": "观看进度",
"aria-valuemin": 0,
"aria-valuemax": 100,
- "aria-valuenow": Math.round(S * 100),
- children: /* @__PURE__ */ (0, L.jsx)("i", { style: { "--media-fill": `${(S * 100).toFixed(1)}%` } })
+ "aria-valuenow": Math.round(w * 100),
+ children: /* @__PURE__ */ (0, L.jsx)("i", { style: { "--media-fill": `${(w * 100).toFixed(1)}%` } })
}) : e.leave_ratio == null ? null : /* @__PURE__ */ (0, L.jsx)("div", {
"data-media-scrub": "",
children: /* @__PURE__ */ (0, L.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, L.jsx)(kne, {}),
- /* @__PURE__ */ (0, L.jsx)(Ane, {
+ /* @__PURE__ */ (0, L.jsx)(Dne, {}),
+ /* @__PURE__ */ (0, L.jsx)(One, {
item: e,
actions: l
}),
@@ -27201,27 +27222,27 @@ function jne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS
/* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), CT(d.current, -s);
+ e.stopPropagation(), ET(d.current, -s);
},
title: `后退 ${s} 秒`,
"aria-label": `后退 ${s} 秒`,
- children: /* @__PURE__ */ (0, L.jsx)(ST, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, L.jsx)(TT, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), CT(d.current, s);
+ e.stopPropagation(), ET(d.current, s);
},
title: `前进 ${s} 秒`,
"aria-label": `前进 ${s} 秒`,
- children: /* @__PURE__ */ (0, L.jsx)(ST, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, L.jsx)(TT, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, L.jsx)(ST, { name: "expand" })
+ children: /* @__PURE__ */ (0, L.jsx)(TT, { name: "expand" })
})
]
})
@@ -27236,40 +27257,40 @@ function jne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS
"data-stacked": g ? "" : void 0,
"data-pending-delete": e.disposal === "trash" ? "" : void 0,
"data-selected": r ? "" : void 0,
- onClick: D,
+ onClick: k,
children: [
/* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
"data-media-open": "",
"data-open": "",
- "aria-label": `打开 ${y}${m ? "分卷" : h ? "版本" : "详情"}`
+ "aria-label": `打开 ${x}${m ? "分卷" : h ? "版本" : "详情"}`
}),
g ? /* @__PURE__ */ (0, L.jsx)("div", {
"data-media-stack": "",
- children: O
- }) : O,
+ children: A
+ }) : A,
/* @__PURE__ */ (0, L.jsxs)("div", {
"data-media-meta": "",
- children: [C, /* @__PURE__ */ (0, L.jsxs)("div", {
+ children: [T, /* @__PURE__ */ (0, L.jsxs)("div", {
"data-media-text": "",
children: [
/* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
"data-media-title": "",
"data-open": "",
- dangerouslySetInnerHTML: { __html: c.titleHtml(e, v) }
+ dangerouslySetInnerHTML: { __html: c.titleHtml(e, b) }
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
"data-media-byline": "",
children: [
- w,
+ E,
e.why ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-media-why": "",
children: e.why
}) : null,
/* @__PURE__ */ (0, L.jsx)("span", {
"data-media-size": "",
- children: Number(b) > 0 ? a(Number(b)) : "大小未知"
+ children: Number(S) > 0 ? a(Number(S)) : "大小未知"
}),
e.play_count ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-media-watch-count": "",
@@ -27277,13 +27298,13 @@ function jne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS
}) : null,
/* @__PURE__ */ (0, L.jsx)("span", {
"data-media-flags": "",
- children: E.map((e) => /* @__PURE__ */ (0, L.jsx)("i", { "data-flag": e }, e))
+ children: O.map((e) => /* @__PURE__ */ (0, L.jsx)("i", { "data-flag": e }, e))
})
]
}),
- T.length ? /* @__PURE__ */ (0, L.jsx)("div", {
+ D.length ? /* @__PURE__ */ (0, L.jsx)("div", {
"data-media-tags": "",
- children: T.map((t) => /* @__PURE__ */ (0, L.jsx)("button", {
+ children: D.map((t) => /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
"data-media-tag": "",
disabled: !!e.follow_item_id,
@@ -27297,8 +27318,8 @@ function jne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS
]
});
}
-function Mne({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOpen: s }) {
- let c = (0, I.useRef)(null), [l, u] = (0, I.useState)(!1), d = e.medium === "image" && e.location !== "online", f = String(e.name || ""), p = f.toLowerCase().endsWith(".url") ? "网址快捷方式" : Tne[e.medium || ""] || "其它文件", m = d ? "pics" : p === "网址快捷方式" ? "globe" : "hard-drive", h = e.disposal === "trash" ? "restore" : "dispose", g = h === "restore" ? "还原" : "移入回收站", _ = (t) => {
+function Ane({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOpen: s }) {
+ let c = (0, I.useRef)(null), [l, u] = (0, I.useState)(!1), d = e.medium === "image" && e.location !== "online", f = String(e.name || ""), p = f.toLowerCase().endsWith(".url") ? "网址快捷方式" : Cne[e.medium || ""] || "其它文件", m = d ? "pics" : p === "网址快捷方式" ? "globe" : "hard-drive", h = e.disposal === "trash" ? "restore" : "dispose", g = h === "restore" ? "还原" : "移入回收站", _ = (t) => {
t.preventDefault(), t.stopPropagation(), !l && (u(!0), o.resourceOperation(e, h).catch(() => {}).finally(() => u(!1)));
}, v = (t) => {
if (c.current) {
@@ -27324,7 +27345,7 @@ function Mne({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOp
children: [
/* @__PURE__ */ (0, L.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, L.jsx)(ST, { name: m }), /* @__PURE__ */ (0, L.jsx)("b", { children: p })]
+ children: [/* @__PURE__ */ (0, L.jsx)(TT, { name: m }), /* @__PURE__ */ (0, L.jsx)("b", { children: p })]
}),
d ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-media-art": "thumb",
@@ -27336,11 +27357,11 @@ function Mne({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOp
}),
/* @__PURE__ */ (0, L.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, L.jsx)(ST, { name: "check" })
+ children: /* @__PURE__ */ (0, L.jsx)(TT, { name: "check" })
}),
/* @__PURE__ */ (0, L.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, L.jsx)(ST, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, L.jsx)(TT, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("b", { children: "回收站" })]
}),
/* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
@@ -27350,7 +27371,7 @@ function Mne({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOp
onClick: _,
"aria-busy": l || void 0,
"aria-disabled": l || void 0,
- children: l ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", { dangerouslySetInnerHTML: { __html: w(h === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, L.jsx)("span", { children: y })] }) : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(ST, { name: h === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, L.jsx)("span", { children: g })] })
+ children: l ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", { dangerouslySetInnerHTML: { __html: w(h === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, L.jsx)("span", { children: y })] }) : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(TT, { name: h === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, L.jsx)("span", { children: g })] })
})
]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
@@ -27359,7 +27380,7 @@ function Mne({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOp
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, L.jsx)(ST, { name: m })
+ children: /* @__PURE__ */ (0, L.jsx)(TT, { name: m })
}), /* @__PURE__ */ (0, L.jsxs)("div", {
"data-media-text": "",
children: [/* @__PURE__ */ (0, L.jsx)("span", {
@@ -27388,14 +27409,14 @@ function Mne({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOp
})]
});
}
-function Nne(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, L.jsx)(Mne, { ...e }) : /* @__PURE__ */ (0, L.jsx)(jne, { ...e });
+function jne(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, L.jsx)(Ane, { ...e }) : /* @__PURE__ */ (0, L.jsx)(kne, { ...e });
}
-var wT = (0, I.memo)(Nne), Pne = { "text-aa": 1.435 }, TT = /* @__PURE__ */ new Map();
-function ET(e) {
- let t = TT.get(e);
+var DT = (0, I.memo)(jne), Mne = { "text-aa": 1.435 }, OT = /* @__PURE__ */ new Map();
+function kT(e) {
+ let t = OT.get(e);
if (t) return t;
- let n = Pne[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, L.jsx)("svg", {
+ let n = Mne[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, L.jsx)("svg", {
"aria-hidden": !0,
viewBox: `0 0 ${(24 * n).toFixed(2)} 24`,
className: `shrink-0 fill-current ${t ?? "h-4 w-auto"}`,
@@ -27409,16 +27430,16 @@ function ET(e) {
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })
});
- return r.displayName = `SpriteGlyph(${e})`, TT.set(e, r), r;
+ return r.displayName = `SpriteGlyph(${e})`, OT.set(e, r), r;
}
//#endregion
//#region src/react/components/use-stack-flip.ts
-var Fne = 1100, Ine = 340, Lne = 5e3;
-function Rne(e, t) {
+var Nne = 1100, Pne = 340, Fne = 5e3;
+function Ine(e, t) {
return new Promise((n) => {
let r = new Image(), i = !1, a = (e) => {
i || (i = !0, clearTimeout(s), r.onload = null, r.onerror = null, t.cancels.delete(o), n(e));
- }, o = () => a(!1), s = setTimeout(o, Lne);
+ }, o = () => a(!1), s = setTimeout(o, Fne);
t.cancels.add(o), r.onerror = o, r.onload = () => {
if (!r.naturalWidth) {
a(!1);
@@ -27428,7 +27449,7 @@ function Rne(e, t) {
}, r.src = e;
});
}
-function zne({ load: e, canFlip: t }) {
+function Lne({ load: e, canFlip: t }) {
let [n, r] = (0, I.useState)([]), [i, a] = (0, I.useState)(0), [o, s] = (0, I.useState)(null), c = (0, I.useRef)({
live: !1,
generation: 0,
@@ -27470,11 +27491,11 @@ function zne({ load: e, canFlip: t }) {
return;
}
if (!n() || !l.current.canFlip() || i.length < 2) return;
- let o = await Promise.all(i.map((t) => Rne(t, e)));
+ let o = await Promise.all(i.map((t) => Ine(t, e)));
if (!n() || !l.current.canFlip()) return;
let u = i.filter((e, t) => o[t]);
u.length < 2 || (e.count = u.length, e.at = 0, r(u), a(0), s(null), d(420, () => {
- f(), e.cycle = setInterval(f, Fne);
+ f(), e.cycle = setInterval(f, Nne);
}));
};
return (0, I.useEffect)(() => u, [u]), {
@@ -27483,7 +27504,7 @@ function zne({ load: e, canFlip: t }) {
leaving: o,
onPointerEnter: () => {
let e = c.current;
- e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = d(Ine, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = d(Pne, () => {
e.armed = null, p();
});
},
@@ -27494,8 +27515,8 @@ function zne({ load: e, canFlip: t }) {
}
//#endregion
//#region src/react/components/mix-card.tsx
-var DT = ET("play");
-function Bne({ src: e }) {
+var AT = kT("play");
+function Rne({ src: e }) {
let [t, n] = (0, I.useState)(!1);
return t ? null : /* @__PURE__ */ (0, L.jsx)("img", {
"data-mix-poster": "",
@@ -27506,8 +27527,8 @@ function Bne({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var OT = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
-function Vne({ faces: e, fallback: t, faceAvatar: n, onOpenEntity: r }) {
+var jT = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
+function zne({ faces: e, fallback: t, faceAvatar: n, onOpenEntity: r }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, L.jsx)("button", {
@@ -27515,59 +27536,60 @@ function Vne({ faces: e, fallback: t, faceAvatar: n, onOpenEntity: r }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => r(e.kind, e.name),
- className: `${OT} cursor-pointer outline-none`,
+ className: `${jT} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: n(e) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, L.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${OT} mt-0.5`,
+ className: `${jT} mt-0.5`,
children: t
});
}
-function kT({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, faceAvatar: s, onOpenEntity: c, onOpen: l, openLabel: u, menu: d, ratio: f, artwork: p, faceHtml: m, badge: h, glyph: g, wholeCard: _, ...v }) {
- let y = zne({
+function MT({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, faceAvatar: s, onOpenEntity: c, onOpen: l, openLabel: u, menu: d, ratio: f, artwork: p, artworkIdentity: m, relayoutArt: h, faceHtml: g, badge: _, glyph: v, wholeCard: y, ...b }) {
+ let x = Lne({
load: i,
canFlip: a
- }), b = (0, I.useRef)(y.onPointerLeave);
- b.current = y.onPointerLeave;
- let x = (0, I.useRef)(null), S = (0, I.useCallback)((e) => {
- x.current = e, e && (e._stopHover = () => b.current());
- }, []), C = l ? () => {
- x.current && l(x.current);
- } : void 0, w = p !== void 0 || f !== void 0;
+ }), S = (0, I.useRef)(x.onPointerLeave);
+ S.current = x.onPointerLeave;
+ let C = (0, I.useRef)(null), w = (0, I.useCallback)((e) => {
+ C.current = e, e && (e._stopHover = () => S.current());
+ }, []), T = l ? () => {
+ C.current && l(C.current);
+ } : void 0, E = p !== void 0 || f !== void 0;
return /* @__PURE__ */ (0, L.jsxs)("article", {
- ...v,
- ref: S,
+ ...b,
+ ref: w,
"data-mix-card": "",
- onMouseEnter: y.onPointerEnter,
- onMouseLeave: y.onPointerLeave,
- onClick: _ ? C : void 0,
+ onMouseEnter: x.onPointerEnter,
+ onMouseLeave: x.onPointerLeave,
+ onClick: y ? T : void 0,
className: "relative flex min-w-0 cursor-pointer flex-col gap-2",
children: [/* @__PURE__ */ (0, L.jsx)("div", {
"data-mix-stack": "",
className: "relative isolate rounded-surface",
children: /* @__PURE__ */ (0, L.jsxs)("div", {
"data-mix-cover": "",
- "data-media-pic": w ? "" : void 0,
+ "data-media-pic": E ? "" : void 0,
style: f === void 0 ? void 0 : { "--card-ratio": String(f) },
className: "relative z-1 flex aspect-video items-center justify-center overflow-hidden rounded-surface",
children: [
- p?.html ? /* @__PURE__ */ (0, L.jsx)("span", {
- "data-media-art": p.kind,
- dangerouslySetInnerHTML: { __html: p.html }
- }) : r ? /* @__PURE__ */ (0, L.jsx)(Bne, { src: r }, r) : /* @__PURE__ */ (0, L.jsx)("span", {
+ p?.html ? /* @__PURE__ */ (0, L.jsx)(CT, {
+ artwork: p,
+ identity: m,
+ relayout: h
+ }) : r ? /* @__PURE__ */ (0, L.jsx)(Rne, { src: r }, r) : /* @__PURE__ */ (0, L.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
/* @__PURE__ */ (0, L.jsx)("div", {
"data-mix-faces": "",
- hidden: !y.faces.length,
- children: y.faces.map((e, t) => /* @__PURE__ */ (0, L.jsx)("div", {
- "data-mix-face": t === y.current ? "on" : t === y.leaving ? "off" : "",
- children: m ? /* @__PURE__ */ (0, L.jsx)("span", {
+ hidden: !x.faces.length,
+ children: x.faces.map((e, t) => /* @__PURE__ */ (0, L.jsx)("div", {
+ "data-mix-face": t === x.current ? "on" : t === x.leaving ? "off" : "",
+ children: g ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-media-art": "",
- dangerouslySetInnerHTML: { __html: m(e) }
+ dangerouslySetInnerHTML: { __html: g(e) }
}) : /* @__PURE__ */ (0, L.jsx)("img", {
src: e,
alt: "",
@@ -27580,27 +27602,27 @@ function kT({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
"data-mix-open": "",
"aria-label": u,
disabled: !l,
- onClick: _ ? void 0 : C,
+ onClick: y ? void 0 : T,
className: "absolute inset-0 z-1 cursor-pointer rounded-surface outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring disabled:cursor-default"
}),
/* @__PURE__ */ (0, L.jsxs)("span", {
"data-mix-badge": "",
className: "absolute right-2.25 bottom-2.25 z-6 flex min-h-7 items-center gap-1.5 rounded-2lg px-2.25 py-1 text-caption-1-semibold text-text-white",
- children: [/* @__PURE__ */ (0, L.jsx)(DT, {
+ children: [/* @__PURE__ */ (0, L.jsx)(AT, {
"aria-hidden": !0,
className: "size-3.75"
- }), h ?? `${n} 个视频`]
+ }), _ ?? `${n} 个视频`]
})
]
})
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 items-start gap-2.25",
children: [
- g ? /* @__PURE__ */ (0, L.jsx)("span", {
+ v ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, L.jsx)(DT, {})
- }) : /* @__PURE__ */ (0, L.jsx)(Vne, {
+ children: /* @__PURE__ */ (0, L.jsx)(AT, {})
+ }) : /* @__PURE__ */ (0, L.jsx)(zne, {
faces: o,
fallback: e.slice(0, 1),
faceAvatar: s,
@@ -27625,21 +27647,21 @@ function kT({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
}
//#endregion
//#region src/react/catalog-grid/catalog-grid-page.tsx
-var AT = "";
-function Hne(e) {
- if (e.mode === "items") return /* @__PURE__ */ (0, L.jsx)(Wne, { ...e });
- let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${pT(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- return /* @__PURE__ */ (0, L.jsx)(Gne, { ...e }, t);
+var NT = "";
+function Bne(e) {
+ if (e.mode === "items") return /* @__PURE__ */ (0, L.jsx)(Hne, { ...e });
+ let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${mT(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ return /* @__PURE__ */ (0, L.jsx)(Une, { ...e }, t);
}
-function Une({ name: e }) {
+function Vne({ name: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })
});
}
-function Wne(e) {
- let { actions: t } = e, n = (0, I.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, L.jsx)(wT, {
+function Hne(e) {
+ let { actions: t } = e, n = (0, I.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, L.jsx)(DT, {
item: i,
variant: r,
layout: e.layout,
@@ -27659,8 +27681,8 @@ function Wne(e) {
children: i
});
}
-function Gne(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? hT(e) : mT(e), s = jt({
+function Une(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? gT(e) : hT(e), s = jt({
queryKey: o.queryKey,
queryFn: ({ pageParam: e, signal: t }) => o.queryFn({
pageParam: e,
@@ -27672,7 +27694,7 @@ function Gne(e) {
(0, I.useEffect)(() => {
s.isPending || c.current || (c.current = !0, e.settled?.(e.revision));
}, [s.isPending]);
- let { tiles: l, pageStarts: u } = (0, I.useMemo)(() => yne(s.data?.pages || [], {
+ let { tiles: l, pageStarts: u } = (0, I.useMemo)(() => vne(s.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -27682,14 +27704,14 @@ function Gne(e) {
e.mix,
a,
r.javImage
- ]), f = l.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(s.data?.pages[0]?.total || 0), m = _T(s.isPending, e.skeletonHtml), h = (0, I.useRef)(null), g = qne(e, s.data, l, u, h);
+ ]), f = l.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(s.data?.pages[0]?.total || 0), m = vT(s.isPending, e.skeletonHtml), h = (0, I.useRef)(null), g = Gne(e, s.data, l, u, h);
(0, I.useLayoutEffect)(() => {
if (!s.data) return;
e.onCount?.(p, f);
let t = a ? null : e.countRow?.querySelector("[data-count-readout]");
if (!t) return;
let n = `${p.toLocaleString()} 个符合 · 显示 ${f}`;
- AT && (t.dataset.popCount = AT), AT = n, S(t, n);
+ NT && (t.dataset.popCount = NT), NT = n, S(t, n);
}, [
s.data,
p,
@@ -27698,12 +27720,12 @@ function Gne(e) {
let _ = (0, I.useCallback)((e, t) => n.open(e, t), [n]), v = (0, I.useCallback)((e, t) => n.openResource(e, t), [n]), y = (0, I.useCallback)((e) => n.openShort(e), [n]), b = (0, I.useCallback)(async () => {
let e = await s.fetchNextPage({ cancelRefetch: !1 });
if (e.isFetchNextPageError) throw e.error;
- }, [s.fetchNextPage]), x = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, L.jsx)(Yne, {
+ }, [s.fetchNextPage]), x = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, L.jsx)(qne, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, L.jsx)(wT, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, L.jsx)(DT, {
item: i.item,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
layout: r,
@@ -27720,7 +27742,7 @@ function Gne(e) {
"data-grid-reveal": m.fading ? "" : void 0,
children: [m.layer, (() => {
if (s.isPending) return null;
- if (!s.data) return /* @__PURE__ */ (0, L.jsx)(vT, {
+ if (!s.data) return /* @__PURE__ */ (0, L.jsx)(yT, {
message: d(s.error),
onRetry: () => void s.refetch()
});
@@ -27737,15 +27759,15 @@ function Gne(e) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: Sne(l, g).map((t) => /* @__PURE__ */ (0, L.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", {
+ children: xne(l, g).map((t) => /* @__PURE__ */ (0, L.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", {
"data-media-grid": "",
children: t.tiles.map(x)
- }), t.strip ? /* @__PURE__ */ (0, L.jsx)(Jne, {
+ }), t.strip ? /* @__PURE__ */ (0, L.jsx)(Kne, {
cut: t.strip,
props: e,
onOpen: y
}) : null] }, t.start))
- }), s.hasNextPage ? /* @__PURE__ */ (0, L.jsx)(Kne, {
+ }), s.hasNextPage ? /* @__PURE__ */ (0, L.jsx)(Wne, {
entity: i,
load: b,
enabled: () => e.canLoadMore?.() !== !1
@@ -27753,7 +27775,7 @@ function Gne(e) {
})()]
});
}
-function Kne({ entity: e, load: t, enabled: n }) {
+function Wne({ entity: e, load: t, enabled: n }) {
let r = (0, I.useRef)(null), i = (0, I.useRef)(!1), a = (0, I.useRef)(!1), [o, s] = (0, I.useState)({
busy: !1,
error: ""
@@ -27814,12 +27836,12 @@ function Kne({ entity: e, load: t, enabled: n }) {
...f,
onClick: () => void l(!0),
dangerouslySetInnerHTML: { __html: v("继续载入中…") }
- }), o.error ? /* @__PURE__ */ (0, L.jsx)(vT, {
+ }), o.error ? /* @__PURE__ */ (0, L.jsx)(yT, {
message: o.error,
onRetry: () => void l(!0)
}) : null] });
}
-function qne(e, t, n, r, i) {
+function Gne(e, t, n, r, i) {
let [a, o] = (0, I.useState)([]), [s, c] = (0, I.useState)(null), l = (0, I.useRef)(0), u = (0, I.useRef)(0), d = (0, I.useRef)([]);
return (0, I.useEffect)(() => () => d.current.forEach((e) => e.abort()), []), (0, I.useEffect)(() => {
let n = t?.pages.length || 0;
@@ -27828,7 +27850,7 @@ function qne(e, t, n, r, i) {
let r = new AbortController();
d.current.push(r);
let i = n - 1;
- Aw(`/api/items?${xne(e.filters || {}, l.current)}`, r.signal).then((t) => {
+ jw(`/api/items?${bne(e.filters || {}, l.current)}`, r.signal).then((t) => {
let n = t.items || [];
if (!n.length) {
l.current = 0;
@@ -27844,7 +27866,7 @@ function qne(e, t, n, r, i) {
}, [t]), (0, I.useLayoutEffect)(() => {
if (!s) return;
c(null);
- let e = a.reduce((e, t) => Math.max(e, t.at), 0), t = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), u = t?.[t.length - 1], d = u ? Math.max(1, getComputedStyle(u).gridTemplateColumns.split(" ").length) : 1, f = Math.max(0, (r[s.page] ?? 0) - e), p = bne(n.length - e, f, d);
+ let e = a.reduce((e, t) => Math.max(e, t.at), 0), t = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), u = t?.[t.length - 1], d = u ? Math.max(1, getComputedStyle(u).gridTemplateColumns.split(" ").length) : 1, f = Math.max(0, (r[s.page] ?? 0) - e), p = yne(n.length - e, f, d);
if (!p.length) return;
let m = e + (p[Math.floor(Math.random() * p.length)] ?? 0);
l.current = s.more ? l.current + 18 : 0, o((e) => [...e, {
@@ -27854,7 +27876,7 @@ function qne(e, t, n, r, i) {
}]);
}, [s]), a;
}
-function Jne({ cut: e, props: t, onOpen: n }) {
+function Kne({ cut: e, props: t, onOpen: n }) {
let r = (0, I.useRef)(null), { wireDrag: i } = t;
return (0, I.useEffect)(() => {
r.current && i(r.current);
@@ -27870,12 +27892,12 @@ function Jne({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, L.jsx)(Une, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, L.jsx)(Vne, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, L.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, L.jsx)(wT, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, L.jsx)(DT, {
item: e,
variant: "short",
layout: t.layout,
@@ -27889,9 +27911,9 @@ function Jne({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function jT(e, t, n, r) {
+function PT(e, t, n, r) {
let i = t.active && !!e.is_jav;
- return e.is_jav ? bT(e, i ? t.size : "small", n, t.javImage, r.coverHtml) : !e.has_thumb && !e.has_local_poster ? {
+ return e.is_jav ? xT(e, i ? t.size : "small", n, t.javImage, r.coverHtml) : !e.has_thumb && !e.has_local_poster ? {
kind: "",
html: ""
} : {
@@ -27899,18 +27921,18 @@ function jT(e, t, n, r) {
html: `<img class="poster" src="/poster?id=${e.id}&c=4" alt="" loading="${n ? "eager" : "lazy"}">`
};
}
-function Yne({ seed: e, layout: t, helpers: n, actions: r }) {
+function qne({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, I.useRef)(/* @__PURE__ */ new Map()), a = (0, I.useRef)(t);
a.current = t;
- let o = _ne(e, n.tagLabel), s = (0, I.useCallback)(async () => {
- let t = a.current, o = [e, ...await r.mixRelated(e.id)].filter((e) => gT(e, t.javImage)).slice(0, 9);
- return i.current = new Map(o.map((e) => [String(e.id), jT(e, t, !0, n).html])), o.map((e) => String(e.id));
+ let o = gne(e, n.tagLabel), s = (0, I.useCallback)(async () => {
+ let t = a.current, o = [e, ...await r.mixRelated(e.id)].filter((e) => _T(e, t.javImage)).slice(0, 9);
+ return i.current = new Map(o.map((e) => [String(e.id), PT(e, t, !0, n).html])), o.map((e) => String(e.id));
}, [
e,
r,
n
- ]), c = t.active && !!e.is_jav;
- return /* @__PURE__ */ (0, L.jsx)(kT, {
+ ]), c = t.active && !!e.is_jav, l = c ? t.size : "small", u = PT(e, t, !1, n);
+ return /* @__PURE__ */ (0, L.jsx)(MT, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -27919,8 +27941,13 @@ function Yne({ seed: e, layout: t, helpers: n, actions: r }) {
glyph: !0,
wholeCard: !0,
poster: null,
- artwork: jT(e, t, !1, n),
- ratio: c && t.size === "big" ? xT : 16 / 9,
+ artwork: u,
+ artworkIdentity: l === "small" ? u.html : PT(e, {
+ ...t,
+ size: "small"
+ }, !1, n).html,
+ relayoutArt: (e) => n.relayoutArt(e, l),
+ ratio: c && t.size === "big" ? wT : 16 / 9,
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -27933,12 +27960,12 @@ function Yne({ seed: e, layout: t, helpers: n, actions: r }) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var MT = Symbol("default");
-function NT({ values: e, children: t }) {
+var FT = Symbol("default");
+function IT({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ I.createElement(n.Provider, { value: r }, t);
return t;
}
-function PT(e) {
+function LT(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, I.useMemo)(() => {
let e, l, u;
@@ -27972,11 +27999,11 @@ function PT(e) {
c
]);
}
-function FT(e, t) {
+function RT(e, t) {
let n = (0, I.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || MT;
+ let e = t || FT;
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}.`);
@@ -27985,8 +28012,8 @@ function FT(e, t) {
}
return n;
}
-function IT(e, t, n) {
- let { ref: r, ...i } = FT(n, e.slot) || {}, a = oh((0, I.useMemo)(() => Vm(t, r), [t, r])), o = H(i, e);
+function zT(e, t, n) {
+ let { ref: r, ...i } = RT(n, e.slot) || {}, a = oh((0, I.useMemo)(() => Vm(t, r), [t, r])), o = H(i, e);
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,
@@ -28004,7 +28031,7 @@ function IT(e, t, n) {
...e.style
}), [o, a];
}
-function LT(e = !0) {
+function BT(e = !0) {
let [t, n] = (0, I.useState)(e), r = (0, I.useRef)(!1), i = (0, I.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -28012,12 +28039,12 @@ function LT(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function RT(e) {
+function VT(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function Xne(e, t, n) {
+function Jne(e, t, n) {
let { render: r, ...i } = t, a = (0, I.useRef)(null), o = (0, I.useMemo)(() => Vm(n, a), [n, a]);
gp(() => {}, [e, r]);
let s = {
@@ -28026,19 +28053,19 @@ function Xne(e, t, n) {
};
return r ? r(s, void 0) : /*#__PURE__*/ I.createElement(e, s);
}
-var zT = {}, BT = new Proxy({}, { get(e, t) {
+var HT = {}, UT = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = zT[t];
- return n || (n = /*#__PURE__*/ (0, I.forwardRef)(Xne.bind(null, t)), zT[t] = n), n;
-} }), VT = /*#__PURE__*/ (0, I.createContext)(null), HT = /*#__PURE__*/ (0, I.createContext)(null), UT = /*#__PURE__*/ (0, I.createContext)(null), WT = {
+ let n = HT[t];
+ return n || (n = /*#__PURE__*/ (0, I.forwardRef)(Jne.bind(null, t)), HT[t] = n), n;
+} }), WT = /*#__PURE__*/ (0, I.createContext)(null), GT = /*#__PURE__*/ (0, I.createContext)(null), KT = /*#__PURE__*/ (0, I.createContext)(null), qT = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return GT(e, null, t);
+ return JT(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return GT(e, t, n);
+ return JT(e, t, n);
}
};
-function GT(e, t, n) {
+function JT(e, t, n) {
return zf({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
@@ -28049,11 +28076,11 @@ function GT(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, Zne(e, t, n));
+ }), r, Yne(e, t, n));
}
});
}
-function Zne(e, t, n) {
+function Yne(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);
@@ -28072,25 +28099,25 @@ function Zne(e, t, n) {
}
return s;
}
-var KT = /*#__PURE__*/ (0, I.createContext)(WT);
-function qT(e) {
+var YT = /*#__PURE__*/ (0, I.createContext)(qT);
+function XT(e) {
return (0, I.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var JT = /*#__PURE__*/ (0, I.createContext)({}), Qne = /*#__PURE__*/ ph(function(e, t) {
- [e, t] = IT(e, t, JT);
- let { elementType: n = "label", ...r } = e, i = BT[n];
+var ZT = /*#__PURE__*/ (0, I.createContext)({}), Xne = /*#__PURE__*/ ph(function(e, t) {
+ [e, t] = zT(e, t, ZT);
+ let { elementType: n = "label", ...r } = e, i = UT[n];
return /*#__PURE__*/ I.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), $ne = /*#__PURE__*/ (0, I.createContext)(null), YT = /*#__PURE__*/ (0, I.createContext)({}), XT = /*#__PURE__*/ ph(function(e, t) {
- [e, t] = IT(e, t, YT);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Ig(e, t);
- i = tre(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = oy(e), { hoverProps: l, isHovered: u } = fy({
+}), Zne = /*#__PURE__*/ (0, I.createContext)(null), QT = /*#__PURE__*/ (0, I.createContext)({}), $T = /*#__PURE__*/ ph(function(e, t) {
+ [e, t] = zT(e, t, QT);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Lg(e, t);
+ i = $ne(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = ly(e), { hoverProps: l, isHovered: u } = hy({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -28100,7 +28127,7 @@ var JT = /*#__PURE__*/ (0, I.createContext)({}), Qne = /*#__PURE__*/ ph(function
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = PT({
+ }, f = LT({
...e,
values: d,
defaultClassName: "react-aria-Button"
@@ -28109,15 +28136,15 @@ var JT = /*#__PURE__*/ (0, I.createContext)({}), Qne = /*#__PURE__*/ ph(function
let g = (0, I.useRef)(r);
(0, I.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && m_(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && h_(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = hg(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ I.createElement(BT.button, {
+ let _ = gg(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ I.createElement(UT.button, {
...H(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -28131,62 +28158,62 @@ var JT = /*#__PURE__*/ (0, I.createContext)({}), Qne = /*#__PURE__*/ ph(function
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ I.createElement($ne.Provider, { value: { id: m } }, f.children));
-}), ere = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function tre(e, t) {
+ }, /*#__PURE__*/ I.createElement(Zne.Provider, { value: { id: m } }, f.children));
+}), Qne = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function $ne(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !ere.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !Qne.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 ZT = /*#__PURE__*/ (0, I.createContext)({}), QT = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = IT(e, t, ZT);
- let { children: n, level: r = 3, className: i, ...a } = e, o = BT[`h${r}`];
+var eE = /*#__PURE__*/ (0, I.createContext)({}), tE = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = zT(e, t, eE);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = UT[`h${r}`];
return /*#__PURE__*/ I.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), $T = /*#__PURE__*/ (0, I.createContext)({}), nre = /*#__PURE__*/ ph(function(e, t) {
- [e, t] = IT(e, t, $T);
- let { elementType: n = "span", ...r } = e, i = BT[n];
+}), nE = /*#__PURE__*/ (0, I.createContext)({}), ere = /*#__PURE__*/ ph(function(e, t) {
+ [e, t] = zT(e, t, nE);
+ let { elementType: n = "span", ...r } = e, i = UT[n];
return /*#__PURE__*/ I.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), eE = /*#__PURE__*/ (0, I.createContext)(null), tE = /*#__PURE__*/ (0, I.createContext)(null), nE = /*#__PURE__*/ (0, I.createContext)(null), rE = /*#__PURE__*/ (0, I.createContext)(null), rre = /*#__PURE__*/ (0, I.createContext)(null), iE = /*#__PURE__*/ (0, I.createContext)(null);
-function ire(e, t) {
- let { validationBehavior: n } = FT(tE) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, I.useContext)(rre), a = oh((0, I.useMemo)(() => Vm(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...RT(e),
+}), rE = /*#__PURE__*/ (0, I.createContext)(null), iE = /*#__PURE__*/ (0, I.createContext)(null), aE = /*#__PURE__*/ (0, I.createContext)(null), oE = /*#__PURE__*/ (0, I.createContext)(null), tre = /*#__PURE__*/ (0, I.createContext)(null), sE = /*#__PURE__*/ (0, I.createContext)(null);
+function nre(e, t) {
+ let { validationBehavior: n } = RT(iE) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, I.useContext)(tre), a = oh((0, I.useMemo)(() => Vm(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...VT(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? Eee(o, i, a) : I_(o, V_(e), a), a];
+ return [i ? Tee(o, i, a) : L_(o, H_(e), a), a];
}
-var are = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+var rre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = IT(r, t, nE);
- let [i, a] = ire(e, n);
- return /*#__PURE__*/ I.createElement(iE.Provider, { value: {
+ [e, t] = zT(r, t, aE);
+ let [i, a] = nre(e, n);
+ return /*#__PURE__*/ I.createElement(sE.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ I.createElement(ore, {
+ } }, /*#__PURE__*/ I.createElement(ire, {
...e,
ref: t
}));
-}), ore = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, I.useContext)(iE), { isFocused: p, isFocusVisible: m, focusProps: h } = oy(), g = a || o, { hoverProps: _, isHovered: v } = fy({
+}), ire = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, I.useContext)(sE), { isFocused: p, isFocusVisible: m, focusProps: h } = ly(), g = a || o, { hoverProps: _, isHovered: v } = hy({
...e,
isDisabled: g
- }), y = PT({
+ }), y = LT({
...e,
defaultClassName: u,
values: {
@@ -28201,8 +28228,8 @@ var are = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = hg(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ I.createElement(BT.label, {
+ }), b = gg(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ I.createElement(UT.label, {
...H(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -28216,20 +28243,20 @@ var are = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ I.createElement(G_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {
+ }, /*#__PURE__*/ I.createElement(K_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {
...H(r, h),
ref: l
})), y.children);
-}), aE = /*#__PURE__*/ (0, I.createContext)({}), sre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = IT(e, t, aE);
+}), cE = /*#__PURE__*/ (0, I.createContext)({}), are = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = zT(e, t, cE);
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 } = fy({
+ let { hoverProps: l, isHovered: u } = hy({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = oy({ within: !0 }), m = PT({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = ly({ within: !0 }), m = LT({
...e,
values: {
isHovered: u,
@@ -28240,7 +28267,7 @@ var are = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ I.createElement(BT.div, {
+ return /*#__PURE__*/ I.createElement(UT.div, {
...H(c, p, l),
...m,
ref: t,
@@ -28253,18 +28280,18 @@ var are = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), oE = /*#__PURE__*/ (0, I.createContext)({}), cre = (e) => {
+}), lE = /*#__PURE__*/ (0, I.createContext)({}), ore = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, lre = /*#__PURE__*/ ph(function(e, t) {
- [e, t] = IT(e, t, oE);
- let { hoverProps: n, isHovered: r } = fy({
+}, sre = /*#__PURE__*/ ph(function(e, t) {
+ [e, t] = zT(e, t, lE);
+ let { hoverProps: n, isHovered: r } = hy({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = oy({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = ly({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = PT({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = LT({
...e,
values: {
isHovered: r,
@@ -28275,8 +28302,8 @@ var are = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ I.createElement(BT.input, {
- ...H(cre(e), o, n),
+ return /*#__PURE__*/ I.createElement(UT.input, {
+ ...H(ore(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -28285,8 +28312,8 @@ var are = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), sE = {};
-sE = {
+}), uE = {};
+uE = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -28294,8 +28321,8 @@ sE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var cE = {};
-cE = {
+var dE = {};
+dE = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -28303,8 +28330,8 @@ cE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var lE = {};
-lE = {
+var fE = {};
+fE = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -28312,8 +28339,8 @@ lE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var uE = {};
-uE = {
+var pE = {};
+pE = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -28321,8 +28348,8 @@ uE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var dE = {};
-dE = {
+var mE = {};
+mE = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -28330,8 +28357,8 @@ dE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var fE = {};
-fE = {
+var hE = {};
+hE = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -28339,8 +28366,8 @@ fE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var pE = {};
-pE = {
+var gE = {};
+gE = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -28348,8 +28375,8 @@ pE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var mE = {};
-mE = {
+var _E = {};
+_E = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -28357,8 +28384,8 @@ mE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var hE = {};
-hE = {
+var vE = {};
+vE = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -28366,8 +28393,8 @@ hE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var gE = {};
-gE = {
+var yE = {};
+yE = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -28375,8 +28402,8 @@ gE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var _E = {};
-_E = {
+var bE = {};
+bE = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -28384,8 +28411,8 @@ _E = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var vE = {};
-vE = {
+var xE = {};
+xE = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -28393,8 +28420,8 @@ vE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var yE = {};
-yE = {
+var SE = {};
+SE = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -28402,8 +28429,8 @@ yE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var bE = {};
-bE = {
+var CE = {};
+CE = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -28411,8 +28438,8 @@ bE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var xE = {};
-xE = {
+var wE = {};
+wE = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -28420,8 +28447,8 @@ xE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var SE = {};
-SE = {
+var TE = {};
+TE = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -28429,8 +28456,8 @@ SE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var CE = {};
-CE = {
+var EE = {};
+EE = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -28438,8 +28465,8 @@ CE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var wE = {};
-wE = {
+var DE = {};
+DE = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -28447,8 +28474,8 @@ wE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var TE = {};
-TE = {
+var OE = {};
+OE = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -28456,8 +28483,8 @@ TE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var EE = {};
-EE = {
+var kE = {};
+kE = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -28465,8 +28492,8 @@ EE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var DE = {};
-DE = {
+var AE = {};
+AE = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -28474,8 +28501,8 @@ DE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var OE = {};
-OE = {
+var jE = {};
+jE = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -28483,8 +28510,8 @@ OE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var kE = {};
-kE = {
+var ME = {};
+ME = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -28492,8 +28519,8 @@ kE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var AE = {};
-AE = {
+var NE = {};
+NE = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -28501,8 +28528,8 @@ AE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var jE = {};
-jE = {
+var PE = {};
+PE = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -28510,8 +28537,8 @@ jE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var ME = {};
-ME = {
+var FE = {};
+FE = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -28519,8 +28546,8 @@ ME = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var NE = {};
-NE = {
+var IE = {};
+IE = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -28528,8 +28555,8 @@ NE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var PE = {};
-PE = {
+var LE = {};
+LE = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -28537,8 +28564,8 @@ PE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var FE = {};
-FE = {
+var RE = {};
+RE = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -28546,8 +28573,8 @@ FE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var IE = {};
-IE = {
+var zE = {};
+zE = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -28555,8 +28582,8 @@ IE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var LE = {};
-LE = {
+var BE = {};
+BE = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -28564,8 +28591,8 @@ LE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var RE = {};
-RE = {
+var VE = {};
+VE = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -28573,8 +28600,8 @@ RE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var zE = {};
-zE = {
+var HE = {};
+HE = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -28582,8 +28609,8 @@ zE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var BE = {};
-BE = {
+var UE = {};
+UE = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -28591,52 +28618,52 @@ BE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var VE = {};
-VE = {
- "ar-AE": sE,
- "bg-BG": cE,
- "cs-CZ": lE,
- "da-DK": uE,
- "de-DE": dE,
- "el-GR": fE,
- "en-US": pE,
- "es-ES": mE,
- "et-EE": hE,
- "fi-FI": gE,
- "fr-FR": _E,
- "he-IL": vE,
- "hr-HR": yE,
- "hu-HU": bE,
- "it-IT": xE,
- "ja-JP": SE,
- "ko-KR": CE,
- "lt-LT": wE,
- "lv-LV": TE,
- "nb-NO": EE,
- "nl-NL": DE,
- "pl-PL": OE,
- "pt-BR": kE,
- "pt-PT": AE,
- "ro-RO": jE,
- "ru-RU": ME,
- "sk-SK": NE,
- "sl-SI": PE,
- "sr-SP": FE,
- "sv-SE": IE,
- "tr-TR": LE,
- "uk-UA": RE,
- "zh-CN": zE,
- "zh-TW": BE
+var WE = {};
+WE = {
+ "ar-AE": uE,
+ "bg-BG": dE,
+ "cs-CZ": fE,
+ "da-DK": pE,
+ "de-DE": mE,
+ "el-GR": hE,
+ "en-US": gE,
+ "es-ES": _E,
+ "et-EE": vE,
+ "fi-FI": yE,
+ "fr-FR": bE,
+ "he-IL": xE,
+ "hr-HR": SE,
+ "hu-HU": CE,
+ "it-IT": wE,
+ "ja-JP": TE,
+ "ko-KR": EE,
+ "lt-LT": DE,
+ "lv-LV": OE,
+ "nb-NO": kE,
+ "nl-NL": AE,
+ "pl-PL": jE,
+ "pt-BR": ME,
+ "pt-PT": NE,
+ "ro-RO": PE,
+ "ru-RU": FE,
+ "sk-SK": IE,
+ "sl-SI": LE,
+ "sr-SP": RE,
+ "sv-SE": zE,
+ "tr-TR": BE,
+ "uk-UA": VE,
+ "zh-CN": HE,
+ "zh-TW": UE
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var HE = /*#__PURE__*/ (0, I.createContext)({}), UE = /*#__PURE__*/ (0, I.createContext)(null), ure = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { render: n } = (0, I.useContext)(UE);
+var GE = /*#__PURE__*/ (0, I.createContext)({}), KE = /*#__PURE__*/ (0, I.createContext)(null), cre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { render: n } = (0, I.useContext)(KE);
return /*#__PURE__*/ I.createElement(I.Fragment, null, n(e, t));
});
-function WE(e, t) {
+function qE(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, I.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ I.createElement(ure, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ I.createElement(cre, { target: e });
}, [
t?.target,
r,
@@ -28644,7 +28671,7 @@ function WE(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function GE(e, t, n) {
+function JE(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;
@@ -28667,14 +28694,14 @@ function GE(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var KE = /*#__PURE__*/ (0, I.createContext)({}), dre = /*#__PURE__*/ (0, I.createContext)(null);
-function qE(e) {
+var YE = /*#__PURE__*/ (0, I.createContext)({}), lre = /*#__PURE__*/ (0, I.createContext)(null);
+function XE(e) {
let t = (0, I.useRef)({});
- return /*#__PURE__*/ I.createElement(dre.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ I.createElement(lre.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var JE = /*#__PURE__*/ (0, I.createContext)({ isSelected: !1 }), YE = /*#__PURE__*/ (0, I.createContext)({}), fre = /*#__PURE__*/ jh(class extends kf {
+var ZE = /*#__PURE__*/ (0, I.createContext)({ isSelected: !1 }), QE = /*#__PURE__*/ (0, I.createContext)({}), ure = /*#__PURE__*/ jh(class extends kf {
static {
this.type = "separator";
}
@@ -28687,14 +28714,14 @@ var JE = /*#__PURE__*/ (0, I.createContext)({ isSelected: !1 }), YE = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = IT(e, t, YE);
+ [e, t] = zT(e, t, QE);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = BT[c], { separatorProps: u } = vte({
+ let l = UT[c], { separatorProps: u } = gte({
...s,
elementType: n,
orientation: r
- }), d = hg(e, { global: !0 });
+ }), d = gg(e, { global: !0 });
return /*#__PURE__*/ I.createElement(l, {
render: e.render,
...H(d, u),
@@ -28706,13 +28733,13 @@ var JE = /*#__PURE__*/ (0, I.createContext)({ isSelected: !1 }), YE = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function XE(e) {
+function $E(e) {
let t = I.version.split(".");
return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;
}
//#endregion
//#region node_modules/react-stately/dist/private/list/ListCollection.mjs
-var ZE = class {
+var eD = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -28756,20 +28783,20 @@ var ZE = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, QE = class e extends Set {
+}, tD = class e extends Set {
constructor(t, n, r) {
super(t), t instanceof e ? (this.anchorKey = n ?? t.anchorKey, this.currentKey = r ?? t.currentKey) : (this.anchorKey = n ?? null, this.currentKey = r ?? null);
}
};
//#endregion
//#region node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs
-function pre(e, t) {
+function dre(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function $E(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, I.useRef)(!1), [, s] = (0, I.useState)(!1), c = (0, I.useRef)(null), l = (0, I.useRef)(null), [, u] = (0, I.useState)(null), [d, f] = B_((0, I.useMemo)(() => eD(e.selectedKeys), [e.selectedKeys]), (0, I.useMemo)(() => eD(e.defaultSelectedKeys, new QE()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, I.useState)(i);
+function nD(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, I.useRef)(!1), [, s] = (0, I.useState)(!1), c = (0, I.useRef)(null), l = (0, I.useRef)(null), [, u] = (0, I.useState)(null), [d, f] = V_((0, I.useMemo)(() => rD(e.selectedKeys), [e.selectedKeys]), (0, I.useMemo)(() => rD(e.defaultSelectedKeys, new tD()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, I.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, I.useRef)(i);
return (0, I.useEffect)(() => {
@@ -28796,18 +28823,18 @@ function $E(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !pre(e, d)) && f(e);
+ (r || !dre(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function eD(e, t) {
- return e ? e === "all" ? "all" : new QE(e) : t;
+function rD(e, t) {
+ return e ? e === "all" ? "all" : new tD(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var tD = class e {
+var iD = 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;
}
@@ -28863,7 +28890,7 @@ var tD = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && Jv(this.collection, n, e) < 0) && (e = n);
+ (!e || n && Zv(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -28871,7 +28898,7 @@ var tD = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && Jv(this.collection, n, e) > 0) && (e = n);
+ (!e || n && Zv(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -28890,10 +28917,10 @@ var tD = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new QE([t], t, t);
+ if (this.state.selectedKeys === "all") n = new tD([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new QE(e, r, t);
+ n = new tD(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);
}
@@ -28901,7 +28928,7 @@ var tD = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? Jv(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? Zv(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);
@@ -28927,19 +28954,19 @@ var tD = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new QE(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new tD(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 QE([t], t, t) : new QE();
+ let n = this.canSelectItem(t) ? new tD([t], t, t) : new tD();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new QE();
+ let t = new tD();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -28951,7 +28978,7 @@ var tD = 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(Gv(Wv(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(Jv(qv(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -28962,7 +28989,7 @@ var tD = 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 QE());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new tD());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -29003,9 +29030,9 @@ var tD = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, mre = class {
+}, fre = class {
build(e, t) {
- return this.context = t, nD(() => this.iterateCollection(e));
+ return this.context = t, aD(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -29087,10 +29114,10 @@ var tD = class e {
...a,
key: l,
index: s,
- wrapper: hre(e.wrapper, a.wrapper)
+ wrapper: pre(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 <${rD(t.type)}> in <${rD(r?.type ?? "unknown parent type")}>. Only <${rD(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 <${oD(t.type)}> in <${oD(r?.type ?? "unknown parent type")}>. Only <${oD(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -29112,7 +29139,7 @@ var tD = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: nD(function* () {
+ childNodes: aD(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -29131,7 +29158,7 @@ var tD = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function nD(e) {
+function aD(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -29139,18 +29166,18 @@ function nD(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function hre(e, t) {
+function pre(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function rD(e) {
+function oD(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function iD(e, t, n) {
- let r = (0, I.useMemo)(() => new mre(), []), { children: i, items: a, collection: o } = e;
+function sD(e, t, n) {
+ let r = (0, I.useMemo)(() => new fre(), []), { children: i, items: a, collection: o } = e;
return (0, I.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -29165,27 +29192,27 @@ function iD(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function aD(e) {
- let { filter: t, layoutDelegate: n } = e, r = $E(e), i = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = iD(e, (0, I.useCallback)((e) => t ? new ZE(t(e)) : new ZE(e), [t]), (0, I.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, I.useMemo)(() => new tD(a, r, { layoutDelegate: n }), [
+function cD(e) {
+ let { filter: t, layoutDelegate: n } = e, r = nD(e), i = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = sD(e, (0, I.useCallback)((e) => t ? new eD(t(e)) : new eD(e), [t]), (0, I.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, I.useMemo)(() => new iD(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return oD(a, o), {
+ return lD(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function gre(e, t) {
+function mre(e, t) {
let n = (0, I.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return oD(n, r), {
+ return lD(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function oD(e, t) {
+function lD(e, t) {
let n = (0, I.useRef)(null);
(0, I.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -29213,7 +29240,7 @@ function oD(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function sD(e, t) {
+function uD(e, t) {
let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, I.useRef)(null), s = qh((e) => {
for (let t of e) t.isIntersecting && r && r();
});
@@ -29221,7 +29248,7 @@ function sD(e, t) {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: v_(t?.current),
+ root: y_(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -29237,42 +29264,42 @@ function sD(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var cD = /*#__PURE__*/ (0, I.createContext)(null), lD = /*#__PURE__*/ (0, I.createContext)(null), _re = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = IT(e, t, cD);
- let n = (0, I.useContext)(lD);
- return n ? /*#__PURE__*/ I.createElement(uD, {
+var dD = /*#__PURE__*/ (0, I.createContext)(null), fD = /*#__PURE__*/ (0, I.createContext)(null), hre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = zT(e, t, dD);
+ let n = (0, I.useContext)(fD);
+ return n ? /*#__PURE__*/ I.createElement(pD, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ I.createElement(Ch, { content: /*#__PURE__*/ I.createElement(Fh, e) }, (n) => /*#__PURE__*/ I.createElement(vre, {
+ }) : /*#__PURE__*/ I.createElement(Ch, { content: /*#__PURE__*/ I.createElement(Fh, e) }, (n) => /*#__PURE__*/ I.createElement(gre, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function vre({ props: e, listBoxRef: t, collection: n }) {
+function gre({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, I.useContext)(KT), i = aD({
+ let { layoutDelegate: r } = (0, I.useContext)(YT), i = cD({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ I.createElement(uD, {
+ return /*#__PURE__*/ I.createElement(pD, {
state: i,
props: e,
listBoxRef: t
});
}
-function uD({ state: e, props: t, listBoxRef: n }) {
- [t, n] = IT(t, n, VT);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = gre(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = ag(), { disabledBehavior: p, disabledKeys: m } = l, h = $v({
+function pD({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = zT(t, n, WT);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = mre(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = ag(), { disabledBehavior: p, disabledKeys: m } = l, h = ny({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, I.useContext)(KT), b = (0, I.useMemo)(() => t.keyboardDelegate || new tv({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, I.useContext)(YT), b = (0, I.useMemo)(() => t.keyboardDelegate || new nv({
collection: c,
collator: h,
ref: n,
@@ -29293,7 +29320,7 @@ function uD({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Xee({
+ ]), { listBoxProps: x } = qee({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -29325,7 +29352,7 @@ function uD({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = oy(), j = s.collection.size === 0, M = {
+ let { focusProps: O, isFocused: k, isFocusVisible: A } = ly(), j = s.collection.size === 0, M = {
isDropTarget: T,
isEmpty: j,
isFocused: k,
@@ -29333,7 +29360,7 @@ function uD({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, N = PT({
+ }, N = LT({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -29343,8 +29370,8 @@ function uD({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(M)));
- let te = hg(t, { global: !0 });
- return /*#__PURE__*/ I.createElement(Hg, null, /*#__PURE__*/ I.createElement(BT.div, {
+ let te = gg(t, { global: !0 });
+ return /*#__PURE__*/ I.createElement(Ug, null, /*#__PURE__*/ I.createElement(UT.div, {
...H(te, N, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -29355,55 +29382,55 @@ function uD({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ I.createElement(NT, { values: [
- [cD, t],
- [lD, s],
- [HE, {
+ }, /*#__PURE__*/ I.createElement(IT, { values: [
+ [dD, t],
+ [fD, s],
+ [GE, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [YE, { elementType: "div" }],
- [UE, { render: xre }],
- [UT, {
+ [QE, { elementType: "div" }],
+ [KE, { render: yre }],
+ [KT, {
name: "ListBoxSection",
- render: yre
+ render: _re
}]
- ] }, /*#__PURE__*/ I.createElement(qE, null, /*#__PURE__*/ I.createElement(y, {
+ ] }, /*#__PURE__*/ I.createElement(XE, null, /*#__PURE__*/ I.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: GE(l, r, C),
- renderDropIndicator: WE(r, C)
+ persistedKeys: JE(l, r, C),
+ renderDropIndicator: qE(r, C)
}))), ee, E));
}
-function yre(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, I.useContext)(lD), { dragAndDropHooks: a, dropState: o } = (0, I.useContext)(HE), { CollectionBranch: s } = (0, I.useContext)(KT), [c, l] = LT(), { headingProps: u, groupProps: d } = Zee({
+function _re(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, I.useContext)(fD), { dragAndDropHooks: a, dropState: o } = (0, I.useContext)(GE), { CollectionBranch: s } = (0, I.useContext)(YT), [c, l] = BT(), { headingProps: u, groupProps: d } = Jee({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = PT({
+ }), f = LT({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = hg(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ I.createElement(BT.section, {
+ }), p = gg(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ I.createElement(UT.section, {
...H(p, f, d),
ref: t
- }, /*#__PURE__*/ I.createElement(KE.Provider, { value: {
+ }, /*#__PURE__*/ I.createElement(YE.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ I.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: WE(a, o)
+ renderDropIndicator: qE(a, o)
})));
}
-var bre = /*#__PURE__*/ jh(Mf, function(e, t, n) {
- let r = oh(t), i = (0, I.useContext)(lD), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, I.useContext)(HE), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = nb({
+var vre = /*#__PURE__*/ jh(Mf, function(e, t, n) {
+ let r = oh(t), i = (0, I.useContext)(fD), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, I.useContext)(GE), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Yee({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = fy({
+ }, i, r), { hoverProps: p, isHovered: m } = hy({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
@@ -29419,7 +29446,7 @@ var bre = /*#__PURE__*/ jh(Mf, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = PT({
+ let y = o && o.isDragging(n.key), b = LT({
...e,
id: void 0,
children: e.children,
@@ -29437,7 +29464,7 @@ var bre = /*#__PURE__*/ jh(Mf, function(e, t, n) {
(0, I.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? BT.a : BT.div, S = hg(e, { global: !0 });
+ let x = e.href ? UT.a : UT.div, S = gg(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ I.createElement(x, {
...H(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -29451,29 +29478,29 @@ var bre = /*#__PURE__*/ jh(Mf, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ I.createElement(NT, { values: [[$T, { slots: {
- [MT]: u,
+ }, /*#__PURE__*/ I.createElement(IT, { values: [[nE, { slots: {
+ [FT]: u,
label: u,
description: d
- } }], [JE, { isSelected: f.isSelected }]] }, b.children));
+ } }], [ZE, { isSelected: f.isSelected }]] }, b.children));
});
-function xre(e, t) {
+function yre(e, t) {
t = oh(t);
- let { dragAndDropHooks: n, dropState: r } = (0, I.useContext)(HE), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ I.createElement(Cre, {
+ let { dragAndDropHooks: n, dropState: r } = (0, I.useContext)(GE), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ I.createElement(xre, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Sre(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = PT({
+function bre(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = LT({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(BT.div, {
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(UT.div, {
...n,
...a,
role: "option",
@@ -29481,10 +29508,10 @@ function Sre(e, t) {
"data-drop-target": r || void 0
}));
}
-var Cre = /*#__PURE__*/ (0, I.forwardRef)(Sre);
+var xre = /*#__PURE__*/ (0, I.forwardRef)(bre);
jh(jf, function(e, t, n) {
- let r = (0, I.useContext)(lD), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, I.useRef)(null);
- sD((0, I.useMemo)(() => ({
+ let r = (0, I.useContext)(fD), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, I.useRef)(null);
+ uD((0, I.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -29494,7 +29521,7 @@ jh(jf, function(e, t, n) {
o,
r?.collection
]), c);
- let l = PT({
+ let l = LT({
...s,
id: void 0,
children: n.rendered,
@@ -29507,7 +29534,7 @@ jh(jf, function(e, t, n) {
width: 0,
height: 0
},
- inert: XE(!0)
+ inert: $E(!0)
}, /*#__PURE__*/ I.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -29516,8 +29543,8 @@ jh(jf, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(BT.div, {
- ...H(hg(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(UT.div, {
+ ...H(gg(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -29525,11 +29552,11 @@ jh(jf, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var wre = /*#__PURE__*/ (0, I.createContext)({ placement: "bottom" });
+var Sre = /*#__PURE__*/ (0, I.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function dD(e) {
- let [t, n] = B_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, I.useState)(null);
+function mD(e) {
+ let [t, n] = V_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, I.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -29548,13 +29575,13 @@ function dD(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function fD(e, t = !0) {
+function hD(e, t = !0) {
let [n, r] = (0, I.useState)(!0), i = n && t;
return gp(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), mD(e, i, (0, I.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), _D(e, i, (0, I.useCallback)(() => r(!1), [])), i;
}
-function pD(e, t) {
+function gD(e, t) {
let [n, r] = (0, I.useState)(t ? "open" : "closed");
switch (n) {
case "open":
@@ -29564,11 +29591,11 @@ function pD(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return mD(e, i, (0, I.useCallback)(() => {
+ return _D(e, i, (0, I.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function mD(e, t, n) {
+function _D(e, t, n) {
gp(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
@@ -29597,9 +29624,9 @@ function mD(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var hD = /*#__PURE__*/ (0, I.createContext)(null), gD = /*#__PURE__*/ (0, I.createContext)(null), _D = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = IT(e, t, hD);
- let n = (0, I.useContext)(DD), r = dD(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = pD(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = mh(), { direction: c } = ag();
+var vD = /*#__PURE__*/ (0, I.createContext)(null), yD = /*#__PURE__*/ (0, I.createContext)(null), bD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = zT(e, t, vD);
+ let n = (0, I.useContext)(AD), r = mD(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = gD(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = mh(), { direction: c } = ag();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -29610,7 +29637,7 @@ var hD = /*#__PURE__*/ (0, I.createContext)(null), gD = /*#__PURE__*/ (0, I.crea
defaultChildren: null
})), /*#__PURE__*/ I.createElement(I.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ I.createElement(Tre, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ I.createElement(Cre, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -29619,13 +29646,13 @@ var hD = /*#__PURE__*/ (0, I.createContext)(null), gD = /*#__PURE__*/ (0, I.crea
dir: c
});
});
-function Tre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = (0, I.useContext)(gD), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = fte({
+function Cre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = (0, I.useContext)(yD), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = ute({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = fD(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = PT({
+ }, e), m = i.popoverRef, h = hD(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = LT({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -29651,7 +29678,7 @@ function Tre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}, [_.children, r]), [S, C] = (0, I.useState)(null), w = (0, I.useCallback)(() => {
i.triggerRef.current && C(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- gp(w, [w]), cb({
+ gp(w, [w]), ub({
ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: w
});
@@ -29660,8 +29687,8 @@ function Tre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,
..._.style,
"--trigger-width": _.style?.["--trigger-width"] || S
- }, E = /*#__PURE__*/ I.createElement(BT.div, {
- ...H(hg(i, { global: !0 }), l),
+ }, E = /*#__PURE__*/ I.createElement(UT.div, {
+ ...H(gg(i, { global: !0 }), l),
..._,
id: y ? i.id : void 0,
role: y ? "dialog" : void 0,
@@ -29676,17 +29703,17 @@ function Tre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ I.createElement(Gb, { onDismiss: e.close }), /*#__PURE__*/ I.createElement(wre.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ I.createElement(qb, { onDismiss: e.close }), /*#__PURE__*/ I.createElement(Sre.Provider, { value: {
...d,
placement: f,
ref: a
- } }, x), /*#__PURE__*/ I.createElement(Gb, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ I.createElement(iy, {
+ } }, x), /*#__PURE__*/ I.createElement(qb, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ I.createElement(sy, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, E) : /*#__PURE__*/ I.createElement(iy, {
+ }, E) : /*#__PURE__*/ I.createElement(sy, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -29701,15 +29728,15 @@ function Tre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ I.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ I.createElement(gD.Provider, { value: o }, E)));
+ }, /*#__PURE__*/ I.createElement(yD.Provider, { value: o }, E)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Keyboard.mjs
-var Ere = /*#__PURE__*/ (0, I.createContext)({});
+var wre = /*#__PURE__*/ (0, I.createContext)({});
//#endregion
//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function vD(e) {
- let t = dD(e), [n, r] = (0, I.useState)(null), [i, a] = (0, I.useState)([]), o = () => {
+function xD(e) {
+ let t = mD(e), [n, r] = (0, I.useState)(null), [i, a] = (0, I.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -29735,7 +29762,7 @@ function vD(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var Dre = class {
+var Tre = 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) => {
@@ -29779,8 +29806,8 @@ var Dre = class {
};
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function Ore(e) {
- let { onExpandedChange: t } = e, [n, r] = B_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = $E(e), a = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = iD(e, (0, I.useCallback)((e) => new Dre(e, { expandedKeys: n }), [n]), null);
+function Ere(e) {
+ let { onExpandedChange: t } = e, [n, r] = V_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = nD(e), a = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = sD(e, (0, I.useCallback)((e) => new Tre(e, { expandedKeys: n }), [n]), null);
return (0, I.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -29788,32 +29815,32 @@ function Ore(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(kre(n, e));
+ r(Dre(n, e));
},
setExpandedKeys: r,
- selectionManager: new tD(o, i)
+ selectionManager: new iD(o, i)
};
}
-function kre(e, t) {
+function Dre(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 yD = /*#__PURE__*/ (0, I.createContext)(null), bD = /*#__PURE__*/ (0, I.createContext)(null), xD = /*#__PURE__*/ (0, I.createContext)(null), SD = /*#__PURE__*/ (0, I.createContext)(null);
-function Are(e) {
- let t = vD(e), n = (0, I.useRef)(null), { menuTriggerProps: r, menuProps: i } = zv({
+var SD = /*#__PURE__*/ (0, I.createContext)(null), CD = /*#__PURE__*/ (0, I.createContext)(null), wD = /*#__PURE__*/ (0, I.createContext)(null), TD = /*#__PURE__*/ (0, I.createContext)(null);
+function Ore(e) {
+ let t = xD(e), n = (0, I.useRef)(null), { menuTriggerProps: r, menuProps: i } = Vv({
...e,
type: "menu"
}, t, n), a = (0, I.useRef)(null);
- return mh() ? null : /*#__PURE__*/ I.createElement(NT, { values: [
- [yD, {
+ return mh() ? null : /*#__PURE__*/ I.createElement(IT, { values: [
+ [SD, {
...i,
ref: a
}],
- [DD, t],
- [xD, t],
- [hD, {
+ [AD, t],
+ [wD, t],
+ [vD, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -29821,13 +29848,13 @@ function Are(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ I.createElement(Bee, {
+ ] }, /*#__PURE__*/ I.createElement(Lee, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var jre = /*#__PURE__*/ (0, I.createContext)(null);
+var kre = /*#__PURE__*/ (0, I.createContext)(null);
(class extends kf {
static {
this.type = "submenutrigger";
@@ -29841,24 +29868,24 @@ var jre = /*#__PURE__*/ (0, I.createContext)(null);
return null;
}
});
-var Mre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- return [e, t] = IT(e, t, yD), /*#__PURE__*/ I.createElement(Ch, { content: /*#__PURE__*/ I.createElement(Fh, e) }, (n) => /*#__PURE__*/ I.createElement(Nre, {
+var Are = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ return [e, t] = zT(e, t, SD), /*#__PURE__*/ I.createElement(Ch, { content: /*#__PURE__*/ I.createElement(Fh, e) }, (n) => /*#__PURE__*/ I.createElement(jre, {
props: e,
collection: n,
menuRef: t
}));
});
-function Nre({ props: e, collection: t, menuRef: n }) {
- [e, n] = IT(e, n, VT);
- let { filter: r, ...i } = e, a = (0, I.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Ore({
+function jre({ props: e, collection: t, menuRef: n }) {
+ [e, n] = zT(e, n, WT);
+ let { filter: r, ...i } = e, a = (0, I.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Ere({
...e,
collection: a,
children: void 0
- }), s = (0, I.useContext)(xD), { isVirtualized: c, CollectionRoot: l } = (0, I.useContext)(KT), { menuProps: u } = ib({
+ }), s = (0, I.useContext)(wD), { isVirtualized: c, CollectionRoot: l } = (0, I.useContext)(YT), { menuProps: u } = ob({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = PT({
+ }, o, n), d = LT({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -29868,36 +29895,36 @@ function Nre({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = hg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(Hg, null, /*#__PURE__*/ I.createElement(BT.div, {
+ let p = gg(e, { global: !0 });
+ return /*#__PURE__*/ I.createElement(Ug, null, /*#__PURE__*/ I.createElement(UT.div, {
...H(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ I.createElement(NT, { values: [
- [bD, o],
- [YE, { elementType: "div" }],
- [UT, {
+ }, /*#__PURE__*/ I.createElement(IT, { values: [
+ [CD, o],
+ [QE, { elementType: "div" }],
+ [KT, {
name: "MenuSection",
- render: CD
+ render: ED
}],
- [jre, {
+ [kre, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [TD, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
- [VT, null],
- [HT, null],
- [SD, o.selectionManager],
- [xD, s ?? vD({})]
- ] }, /*#__PURE__*/ I.createElement(qE, null, /*#__PURE__*/ I.createElement(l, {
+ [OD, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [WT, null],
+ [GT, null],
+ [TD, o.selectionManager],
+ [wD, s ?? xD({})]
+ ] }, /*#__PURE__*/ I.createElement(XE, null, /*#__PURE__*/ I.createElement(l, {
collection: o.collection,
- persistedKeys: qT(o.selectionManager.focusedKey),
+ persistedKeys: XT(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var Pre = class extends tD {
+var Mre = class extends iD {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -29917,11 +29944,11 @@ var Pre = class extends tD {
return this.parent.childFocusStrategy;
}
};
-function CD(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, I.useContext)(bD), { CollectionBranch: a } = (0, I.useContext)(KT), [o, s] = LT(), { headingProps: c, groupProps: l } = ob({
+function ED(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, I.useContext)(CD), { CollectionBranch: a } = (0, I.useContext)(YT), [o, s] = BT(), { headingProps: c, groupProps: l } = cb({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = PT({
+ }), u = LT({
...e,
id: void 0,
children: void 0,
@@ -29929,31 +29956,31 @@ function CD(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, I.useContext)(SD), f = $E(e), p = e.selectionMode == null ? d : new Pre(d, f), m = FT(TD)?.shouldCloseOnSelect, h = hg(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ I.createElement(BT.section, {
+ }), d = (0, I.useContext)(TD), f = nD(e), p = e.selectionMode == null ? d : new Mre(d, f), m = RT(OD)?.shouldCloseOnSelect, h = gg(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ I.createElement(UT.section, {
...H(h, u, l),
ref: t
- }, /*#__PURE__*/ I.createElement(NT, { values: [
- [KE, {
+ }, /*#__PURE__*/ I.createElement(IT, { values: [
+ [YE, {
...c,
ref: o
}],
- [SD, p],
- [TD, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [TD, p],
+ [OD, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ I.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var wD = /*#__PURE__*/ Mh(Nf, CD), TD = /*#__PURE__*/ (0, I.createContext)(null), ED = /*#__PURE__*/ jh(Mf, function(e, t, n) {
- [e, t] = IT(e, t, TD);
- let r = FT(TD)?.id, i = (0, I.useContext)(bD), a = oh(t), o = (0, I.useContext)(SD), { isVirtualized: s } = (0, I.useContext)(KT), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = ab({
+var DD = /*#__PURE__*/ Mh(Nf, ED), OD = /*#__PURE__*/ (0, I.createContext)(null), kD = /*#__PURE__*/ jh(Mf, function(e, t, n) {
+ [e, t] = zT(e, t, OD);
+ let r = RT(OD)?.id, i = (0, I.useContext)(CD), a = oh(t), o = (0, I.useContext)(TD), { isVirtualized: s } = (0, I.useContext)(YT), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = sb({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = fy({ isDisabled: f.isDisabled }), h = PT({
+ }, i, a), { hoverProps: p, isHovered: m } = hy({ isDisabled: f.isDisabled }), h = LT({
...e,
id: void 0,
children: n.rendered,
@@ -29967,7 +29994,7 @@ var wD = /*#__PURE__*/ Mh(Nf, CD), TD = /*#__PURE__*/ (0, I.createContext)(null)
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? BT.a : BT.div, _ = hg(e, { global: !0 });
+ }), g = e.href ? UT.a : UT.div, _ = gg(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ I.createElement(g, {
...H(_, h, c, p),
ref: a,
@@ -29980,19 +30007,19 @@ var wD = /*#__PURE__*/ Mh(Nf, CD), TD = /*#__PURE__*/ (0, I.createContext)(null)
"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,
"data-has-submenu": !!e["aria-haspopup"] || void 0,
"data-open": e["aria-expanded"] === "true" || void 0
- }, /*#__PURE__*/ I.createElement(NT, { values: [
- [$T, { slots: {
- [MT]: l,
+ }, /*#__PURE__*/ I.createElement(IT, { values: [
+ [nE, { slots: {
+ [FT]: l,
label: l,
description: u
} }],
- [Ere, d],
- [JE, { isSelected: f.isSelected }]
+ [wre, d],
+ [ZE, { isSelected: f.isSelected }]
] }, h.children));
});
jh(jf, function(e, t, n) {
- let r = (0, I.useContext)(bD), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, I.useRef)(null);
- sD((0, I.useMemo)(() => ({
+ let r = (0, I.useContext)(CD), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, I.useRef)(null);
+ uD((0, I.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -30002,7 +30029,7 @@ jh(jf, function(e, t, n) {
o,
r?.collection
]), c);
- let l = PT({
+ let l = LT({
...s,
id: void 0,
children: n.rendered,
@@ -30015,7 +30042,7 @@ jh(jf, function(e, t, n) {
width: 0,
height: 0
},
- inert: XE(!0)
+ inert: $E(!0)
}, /*#__PURE__*/ I.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -30024,8 +30051,8 @@ jh(jf, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(BT.div, {
- ...H(hg(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(UT.div, {
+ ...H(gg(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
@@ -30033,56 +30060,56 @@ jh(jf, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var Fre = /*#__PURE__*/ (0, I.createContext)(null), DD = /*#__PURE__*/ (0, I.createContext)(null), OD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+var Nre = /*#__PURE__*/ (0, I.createContext)(null), AD = /*#__PURE__*/ (0, I.createContext)(null), jD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = IT(e, t, Fre);
- let { dialogProps: r, titleProps: i, contentProps: a } = Hee({
+ [e, t] = zT(e, t, Nre);
+ let { dialogProps: r, titleProps: i, contentProps: a } = zee({
...e,
"aria-labelledby": n
- }, t), o = (0, I.useContext)(DD);
+ }, t), o = (0, I.useContext)(AD);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = PT({
+ let s = LT({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = hg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(BT.section, {
+ }), c = gg(e, { global: !0 });
+ return /*#__PURE__*/ I.createElement(UT.section, {
...H(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ I.createElement(NT, { values: [
- [ZT, { slots: {
- [MT]: {},
+ }, /*#__PURE__*/ I.createElement(IT, { values: [
+ [eE, { slots: {
+ [FT]: {},
title: {
...i,
level: 2
}
} }],
- [$T, { slots: {
- [MT]: {},
+ [nE, { slots: {
+ [FT]: {},
description: a
} }],
- [YT, { slots: {
- [MT]: {},
+ [QT, { slots: {
+ [FT]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), kD = typeof document < "u" && window.visualViewport;
-function Ire() {
+}), MD = typeof document < "u" && window.visualViewport;
+function Pre() {
let e = nm(), [t, n] = (0, I.useState)(() => e ? {
width: 0,
height: 0
- } : AD());
+ } : ND());
return (0, I.useEffect)(() => {
let e = (e) => {
n((t) => e.width === t.width && e.height === t.height ? t : e);
}, t = () => {
- kD && kD.scale > 1 || e(AD());
+ MD && MD.scale > 1 || e(ND());
}, r, i = (t) => {
- kD && kD.scale > 1 || Gh(V(t)) && (r = requestAnimationFrame(() => {
+ MD && MD.scale > 1 || Gh(V(t)) && (r = requestAnimationFrame(() => {
let t = rp();
(!t || !Gh(t)) && e({
width: document.documentElement.clientWidth,
@@ -30090,26 +30117,26 @@ function Ire() {
});
}));
};
- return e(AD()), Op() && Ap() && window.addEventListener("blur", i, !0), kD ? kD.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
- cancelAnimationFrame(r), Op() && Ap() && window.removeEventListener("blur", i, !0), kD ? kD.removeEventListener("resize", t) : window.removeEventListener("resize", t);
+ return e(ND()), Op() && Ap() && window.addEventListener("blur", i, !0), MD ? MD.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
+ cancelAnimationFrame(r), Op() && Ap() && window.removeEventListener("blur", i, !0), MD ? MD.removeEventListener("resize", t) : window.removeEventListener("resize", t);
};
}, []), t;
}
-function AD() {
+function ND() {
return {
- width: kD ? Math.min(kD.width * kD.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: kD ? kD.height * kD.scale : document.documentElement.clientHeight
+ width: MD ? Math.min(MD.width * MD.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: MD ? MD.height * MD.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var Lre = /*#__PURE__*/ (0, I.createContext)(null), jD = /*#__PURE__*/ (0, I.createContext)(null), Rre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- if ((0, I.useContext)(jD)) return /*#__PURE__*/ I.createElement(ND, {
+var Fre = /*#__PURE__*/ (0, I.createContext)(null), PD = /*#__PURE__*/ (0, I.createContext)(null), Ire = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ if ((0, I.useContext)(PD)) return /*#__PURE__*/ I.createElement(ID, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ I.createElement(MD, {
+ return /*#__PURE__*/ I.createElement(FD, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -30119,15 +30146,15 @@ var Lre = /*#__PURE__*/ (0, I.createContext)(null), jD = /*#__PURE__*/ (0, I.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ I.createElement(ND, {
+ }, /*#__PURE__*/ I.createElement(ID, {
...f,
modalRef: t
}, s));
});
-function zre(e, t) {
- [e, t] = IT(e, t, Lre);
- let n = (0, I.useContext)(DD), r = dD(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = oh(t), o = (0, I.useRef)(null), s = pD(a, i.isOpen), c = pD(o, i.isOpen), l = s || c || e.isExiting || !1, u = nm();
- return !i.isOpen && !l || u ? null : /*#__PURE__*/ I.createElement(Bre, {
+function Lre(e, t) {
+ [e, t] = zT(e, t, Fre);
+ let n = (0, I.useContext)(AD), r = mD(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = oh(t), o = (0, I.useRef)(null), s = gD(a, i.isOpen), c = gD(o, i.isOpen), l = s || c || e.isExiting || !1, u = nm();
+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ I.createElement(Rre, {
...e,
state: i,
isExiting: l,
@@ -30135,9 +30162,9 @@ function zre(e, t) {
modalRef: o
});
}
-var MD = /*#__PURE__*/ (0, I.forwardRef)(zre);
-function Bre({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = ete(t, r, n), o = fD(t.overlayRef) || t.isEntering || !1, s = PT({
+var FD = /*#__PURE__*/ (0, I.forwardRef)(Lre);
+function Rre({ UNSTABLE_portalContainer: e, ...t }) {
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Qee(t, r, n), o = hD(t.overlayRef) || t.isEntering || !1, s = LT({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -30145,9 +30172,9 @@ function Bre({ UNSTABLE_portalContainer: e, ...t }) {
isExiting: t.isExiting,
state: r
}
- }), c = Ire(), l, u;
+ }), c = Pre(), l, u;
if (typeof document < "u") {
- let e = __(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = v_(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 = {
@@ -30157,25 +30184,25 @@ function Bre({ UNSTABLE_portalContainer: e, ...t }) {
"--page-width": l === void 0 ? void 0 : l + "px",
"--page-height": u === void 0 ? void 0 : u + "px"
};
- return /*#__PURE__*/ I.createElement(iy, {
+ return /*#__PURE__*/ I.createElement(sy, {
isExiting: t.isExiting,
portalContainer: e
- }, /*#__PURE__*/ I.createElement(BT.div, {
- ...H(hg(t, { global: !0 }), a),
+ }, /*#__PURE__*/ I.createElement(UT.div, {
+ ...H(gg(t, { global: !0 }), a),
...s,
style: d,
ref: t.overlayRef,
"data-entering": o || void 0,
"data-exiting": t.isExiting || void 0
- }, /*#__PURE__*/ I.createElement(NT, { values: [[jD, {
+ }, /*#__PURE__*/ I.createElement(IT, { values: [[PD, {
modalProps: i,
modalRef: n,
isExiting: t.isExiting,
isDismissable: t.isDismissable
- }], [DD, r]] }, s.children)));
+ }], [AD, r]] }, s.children)));
}
-function ND(e) {
- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, I.useContext)(jD), a = (0, I.useContext)(DD), o = oh((0, I.useMemo)(() => Vm(e.modalRef, n), [e.modalRef, n])), s = fD(o), c = PT({
+function ID(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, I.useContext)(PD), a = (0, I.useContext)(AD), o = oh((0, I.useMemo)(() => Vm(e.modalRef, n), [e.modalRef, n])), s = hD(o), c = LT({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -30184,19 +30211,19 @@ function ND(e) {
state: a
}
});
- return /*#__PURE__*/ I.createElement(BT.div, {
- ...H(hg(e, { global: !0 }), t),
+ return /*#__PURE__*/ I.createElement(UT.div, {
+ ...H(gg(e, { global: !0 }), t),
...c,
ref: o,
"data-entering": s || void 0,
"data-exiting": r || void 0
- }, i && /*#__PURE__*/ I.createElement(Gb, { onDismiss: a.close }), c.children);
+ }, i && /*#__PURE__*/ I.createElement(qb, { onDismiss: a.close }), c.children);
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var Vre = Math.round(Math.random() * 1e10), Hre = 0;
-function Ure(e) {
- let t = (0, I.useMemo)(() => e.name || `radio-group-${Vre}-${++Hre}`, [e.name]), [n, r] = B_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, I.useState)(n), [a, o] = (0, I.useState)(null), s = j_({
+var zre = Math.round(Math.random() * 1e10), Bre = 0;
+function Vre(e) {
+ let t = (0, I.useMemo)(() => e.name || `radio-group-${zre}-${++Bre}`, [e.name]), [n, r] = V_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, I.useState)(n), [a, o] = (0, I.useState)(null), s = M_({
...e,
value: n
}), c = (t) => {
@@ -30219,16 +30246,16 @@ function Ure(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Wre = /*#__PURE__*/ (0, I.createContext)(null), Gre = /*#__PURE__*/ (0, I.createContext)(null), PD = /*#__PURE__*/ (0, I.createContext)(null), FD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = IT(e, t, Wre);
- let { validationBehavior: n } = FT(tE) || {}, r = e.validationBehavior ?? n ?? "native", i = Ure({
+var Hre = /*#__PURE__*/ (0, I.createContext)(null), Ure = /*#__PURE__*/ (0, I.createContext)(null), LD = /*#__PURE__*/ (0, I.createContext)(null), RD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = zT(e, t, Hre);
+ let { validationBehavior: n } = RT(iE) || {}, r = e.validationBehavior ?? n ?? "native", i = Vre({
...e,
validationBehavior: r
- }), [a, o] = LT(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = mte({
+ }), [a, o] = BT(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = fte({
...e,
label: o,
validationBehavior: r
- }, i), f = PT({
+ }, i), f = LT({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -30239,8 +30266,8 @@ var Wre = /*#__PURE__*/ (0, I.createContext)(null), Gre = /*#__PURE__*/ (0, I.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = hg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(BT.div, {
+ }), p = gg(e, { global: !0 });
+ return /*#__PURE__*/ I.createElement(UT.div, {
...H(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -30249,39 +30276,39 @@ var Wre = /*#__PURE__*/ (0, I.createContext)(null), Gre = /*#__PURE__*/ (0, I.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ I.createElement(NT, { values: [
- [PD, i],
- [JT, {
+ }, /*#__PURE__*/ I.createElement(IT, { values: [
+ [LD, i],
+ [ZT, {
...c,
ref: a,
elementType: "span"
}],
- [$T, { slots: {
+ [nE, { slots: {
description: l,
errorMessage: u
} }],
- [eE, d]
- ] }, /*#__PURE__*/ I.createElement(qE, null, f.children)));
-}), ID = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [rE, d]
+ ] }, /*#__PURE__*/ I.createElement(XE, null, f.children)));
+}), zD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = IT(r, t, Gre);
- let i = I.useContext(PD), a = oh((0, I.useMemo)(() => Vm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = pte({
- ...RT(e),
+ [e, t] = zT(r, t, Ure);
+ let i = I.useContext(LD), a = oh((0, I.useMemo)(() => Vm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = dte({
+ ...VT(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ I.createElement(LD.Provider, { value: {
+ return /*#__PURE__*/ I.createElement(BD.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ I.createElement(Kre, {
+ } }, /*#__PURE__*/ I.createElement(Wre, {
...e,
ref: t
}));
-}), LD = /*#__PURE__*/ (0, I.createContext)(null), Kre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, I.useContext)(LD), l = I.useContext(PD), { isFocused: u, isFocusVisible: d, focusProps: f } = oy(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = fy({
+}), BD = /*#__PURE__*/ (0, I.createContext)(null), Wre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, I.useContext)(BD), l = I.useContext(LD), { isFocused: u, isFocusVisible: d, focusProps: f } = ly(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = hy({
...e,
isDisabled: p
- }), g = PT({
+ }), g = LT({
...e,
defaultClassName: s,
values: {
@@ -30295,8 +30322,8 @@ var Wre = /*#__PURE__*/ (0, I.createContext)(null), Gre = /*#__PURE__*/ (0, I.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = hg(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ I.createElement(BT.label, {
+ }), _ = gg(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ I.createElement(UT.label, {
...H(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -30308,19 +30335,19 @@ var Wre = /*#__PURE__*/ (0, I.createContext)(null), Gre = /*#__PURE__*/ (0, I.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ I.createElement(G_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {
+ }, /*#__PURE__*/ I.createElement(K_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {
...H(r, f),
ref: c
})), g.children);
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function qre(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = dD(e), [i, a] = (0, I.useState)(null), o = (0, I.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function Gre(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = mD(e), [i, a] = (0, I.useState)(null), o = (0, I.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = B_((0, I.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = V_((0, I.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -30332,12 +30359,12 @@ function qre(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = aD({
+ }, d = cD({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, I.useMemo)(() => Jre(l), [l]),
+ selectedKeys: (0, I.useMemo)(() => Kre(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -30347,7 +30374,7 @@ function qre(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, I.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = j_({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, I.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = M_({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, I.useState)(!1), [_] = (0, I.useState)(l);
@@ -30374,16 +30401,16 @@ function qre(e) {
setFocused: g
};
}
-function Jre(e) {
+function Kre(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 Yre(e) {
+function qre(e) {
return e && e.__esModule ? e.default : e;
}
-var RD = /*#__PURE__*/ (0, I.createContext)(null), zD = /*#__PURE__*/ (0, I.createContext)(null), Xre = /*#__PURE__*/ ph(function(e, t) {
- [e, t] = IT(e, t, RD);
+var VD = /*#__PURE__*/ (0, I.createContext)(null), HD = /*#__PURE__*/ (0, I.createContext)(null), Jre = /*#__PURE__*/ ph(function(e, t) {
+ [e, t] = zT(e, t, VD);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, I.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -30398,24 +30425,24 @@ var RD = /*#__PURE__*/ (0, I.createContext)(null), zD = /*#__PURE__*/ (0, I.crea
i,
a
]);
- return /*#__PURE__*/ I.createElement(Ch, { content: o }, (n) => /*#__PURE__*/ I.createElement(Qre, {
+ return /*#__PURE__*/ I.createElement(Ch, { content: o }, (n) => /*#__PURE__*/ I.createElement(Xre, {
props: e,
collection: n,
selectRef: t
}));
-}), Zre = [
- JT,
- YT,
- $T
+}), Yre = [
+ ZT,
+ QT,
+ nE
];
-function Qre({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = FT(tE) || {}, i = e.validationBehavior ?? r ?? "native", a = qre({
+function Xre({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = RT(iE) || {}, i = e.validationBehavior ?? r ?? "native", a = Gre({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = oy({ within: !0 }), c = (0, I.useRef)(null), [l, u] = LT(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = hte({
- ...RT(e),
+ }), { isFocusVisible: o, focusProps: s } = ly({ within: !0 }), c = (0, I.useRef)(null), [l, u] = BT(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = pte({
+ ...VT(e),
label: u,
validationBehavior: i
}, a, c), y = (0, I.useMemo)(() => ({
@@ -30432,48 +30459,48 @@ function Qre({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = PT({
+ ]), b = LT({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = hg(e, { global: !0 });
+ }), x = gg(e, { global: !0 });
delete x.id;
let S = (0, I.useRef)(null);
- return /*#__PURE__*/ I.createElement(NT, { values: [
- [RD, e],
- [zD, a],
- [BD, p],
- [JT, {
+ return /*#__PURE__*/ I.createElement(IT, { values: [
+ [VD, e],
+ [HD, a],
+ [UD, p],
+ [ZT, {
...d,
ref: l,
elementType: "span"
}],
- [YT, {
+ [QT, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [DD, a],
- [hD, {
+ [AD, a],
+ [vD, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: Zre
+ clearContexts: Yre
}],
- [cD, {
+ [dD, {
...m,
ref: S
}],
- [lD, a],
- [$T, { slots: {
+ [fD, a],
+ [nE, { slots: {
description: h,
errorMessage: g
} }],
- [eE, v]
- ] }, /*#__PURE__*/ I.createElement(BT.div, {
+ [rE, v]
+ ] }, /*#__PURE__*/ I.createElement(UT.div, {
...H(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -30483,14 +30510,14 @@ function Qre({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ I.createElement(_te, {
+ }, b.children, /*#__PURE__*/ I.createElement(hte, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var BD = /*#__PURE__*/ (0, I.createContext)(null), $re = /*#__PURE__*/ ph(function(e, t) {
- [e, t] = IT(e, t, BD);
- let n = (0, I.useContext)(zD), { placeholder: r } = FT(RD), i = n.selectedItems.map((e) => {
+for (var UD = /*#__PURE__*/ (0, I.createContext)(null), Zre = /*#__PURE__*/ ph(function(e, t) {
+ [e, t] = zT(e, t, UD);
+ let n = (0, I.useContext)(HD), { placeholder: r } = RT(VD), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -30502,7 +30529,7 @@ for (var BD = /*#__PURE__*/ (0, I.createContext)(null), $re = /*#__PURE__*/ ph(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = Uee(), o = (0, I.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, I.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = Bee(), o = (0, I.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, I.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -30517,7 +30544,7 @@ for (var BD = /*#__PURE__*/ (0, I.createContext)(null), $re = /*#__PURE__*/ ph(f
a,
o,
i
- ]), u = pg(Yre(VE), "react-aria-components"), d = PT({
+ ]), u = mg(qre(WE), "react-aria-components"), d = LT({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -30528,33 +30555,33 @@ for (var BD = /*#__PURE__*/ (0, I.createContext)(null), $re = /*#__PURE__*/ ph(f
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = hg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(BT.span, {
+ }), f = gg(e, { global: !0 });
+ return /*#__PURE__*/ I.createElement(UT.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ I.createElement($T.Provider, { value: void 0 }, d.children));
-}), eie = /*#__PURE__*/ (0, I.createContext)(null), VD = /*#__PURE__*/ (0, I.createContext)(null), tie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ I.createElement(nE.Provider, { value: void 0 }, d.children));
+}), Qre = /*#__PURE__*/ (0, I.createContext)(null), WD = /*#__PURE__*/ (0, I.createContext)(null), $re = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = IT(r, t, eie);
- let i = oh((0, I.useMemo)(() => Vm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = V_(e), o = yte({
- ...RT(e),
+ [e, t] = zT(r, t, Qre);
+ let i = oh((0, I.useMemo)(() => Vm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = H_(e), o = _te({
+ ...VT(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ I.createElement(NT, { values: [[VD, a], [HD, {
+ return /*#__PURE__*/ I.createElement(IT, { values: [[WD, a], [GD, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ I.createElement(nie, {
+ }]] }, /*#__PURE__*/ I.createElement(eie, {
...e,
ref: t
}));
-}), HD = /*#__PURE__*/ (0, I.createContext)(null), nie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, I.useContext)(HD), { isFocused: f, isFocusVisible: p, focusProps: m } = oy(), h = a || o, g = (0, I.useContext)(VD), { hoverProps: _, isHovered: v } = fy({
+}), GD = /*#__PURE__*/ (0, I.createContext)(null), eie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, I.useContext)(GD), { isFocused: f, isFocusVisible: p, focusProps: m } = ly(), h = a || o, g = (0, I.useContext)(WD), { hoverProps: _, isHovered: v } = hy({
...e,
isDisabled: h
- }), y = PT({
+ }), y = LT({
...e,
defaultClassName: u,
values: {
@@ -30569,8 +30596,8 @@ for (var BD = /*#__PURE__*/ (0, I.createContext)(null), $re = /*#__PURE__*/ ph(f
isRequired: d || !1,
state: g
}
- }), b = hg(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ I.createElement(BT.label, {
+ }), b = gg(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ I.createElement(UT.label, {
...H(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -30583,11 +30610,11 @@ for (var BD = /*#__PURE__*/ (0, I.createContext)(null), $re = /*#__PURE__*/ ph(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ I.createElement(G_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {
+ }, /*#__PURE__*/ I.createElement(K_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {
...H(r, m),
ref: l
})), y.children);
-}), UD = 10, WD = 5, rie = class {
+}), KD = 10, qD = 5, tie = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -30597,7 +30624,7 @@ for (var BD = /*#__PURE__*/ (0, I.createContext)(null), $re = /*#__PURE__*/ ph(f
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > WD && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > UD && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > qD && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > KD && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
let t = this.state.collection.getKeyBefore(e.key);
for (; t != null;) {
let e = this.state.collection.getItem(t);
@@ -30676,11 +30703,11 @@ for (var BD = /*#__PURE__*/ (0, I.createContext)(null), $re = /*#__PURE__*/ ph(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > WD && i) {
+ if (Math.abs(r - c.lastSwitchY) > qD && 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 > UD && a) {
+ if (l > KD && 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;
}
@@ -30695,7 +30722,7 @@ for (var BD = /*#__PURE__*/ (0, I.createContext)(null), $re = /*#__PURE__*/ ph(f
boundaryContext: null
};
}
-}, iie = class {
+}, nie = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -30765,8 +30792,8 @@ for (var BD = /*#__PURE__*/ (0, I.createContext)(null), $re = /*#__PURE__*/ ph(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, GD = "row-header-column-" + Math.random().toString(36).slice(2), KD = "row-header-column-" + Math.random().toString(36).slice(2); GD === KD;) KD = "row-header-column-" + Math.random().toString(36).slice(2);
-function qD(e, t) {
+}, JD = "row-header-column-" + Math.random().toString(36).slice(2), YD = "row-header-column-" + Math.random().toString(36).slice(2); JD === YD;) YD = "row-header-column-" + Math.random().toString(36).slice(2);
+function XD(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -30850,13 +30877,13 @@ function qD(e, t) {
textValue: ""
}));
}
-var aie = class extends iie {
+var rie = class extends nie {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: GD,
+ key: JD,
value: null,
textValue: "",
level: 0,
@@ -30871,7 +30898,7 @@ var aie = class extends iie {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: KD,
+ key: YD,
value: null,
textValue: "",
level: 0,
@@ -30898,7 +30925,7 @@ var aie = class extends iie {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = qD(s, a);
+ let l = XD(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -30924,10 +30951,10 @@ var aie = class extends iie {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return Gv(this.body.childNodes)?.key ?? null;
+ return Jv(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return qv(this.body.childNodes)?.key ?? null;
+ return Xv(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -30959,19 +30986,19 @@ var aie = class extends iie {
};
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function oie(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || $E(e), i = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function iie(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || nD(e), i = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = Wv(n, t);
- e = r === "last" ? qv(i)?.key ?? null : Gv(i)?.key ?? null;
+ let i = qv(n, t);
+ e = r === "last" ? Xv(i)?.key ?? null : Jv(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, I.useMemo)(() => new tD(t, r), [t, r]), s = (0, I.useRef)(null);
+ let o = (0, I.useMemo)(() => new iD(t, r), [t, r]), s = (0, I.useRef)(null);
return (0, I.useEffect)(() => {
if (r.focusedKey != null && s.current && !t.getItem(r.focusedKey)) {
let e = s.current.getItem(r.focusedKey), n = e?.parentKey != null && (e.type === "cell" || e.type === "rowheader" || e.type === "column") ? s.current.getItem(e.parentKey) : e;
@@ -30991,7 +31018,7 @@ function oie(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...Wv(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...qv(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);
}
@@ -31010,11 +31037,11 @@ function oie(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var sie = {
+var aie = {
ascending: "descending",
descending: "ascending"
};
-function cie(e) {
+function oie(e) {
let [t, n] = (0, I.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, I.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -31025,11 +31052,11 @@ function cie(e) {
i,
r,
a
- ]), c = iD(e, (0, I.useCallback)((e) => new aie(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = oie({
+ ]), c = sD(e, (0, I.useCallback)((e) => new rie(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = iie({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = B_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = V_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -31041,7 +31068,7 @@ function cie(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? sie[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? aie[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -31054,7 +31081,7 @@ function cie(e) {
treeColumn: o
};
}
-function lie(e, t) {
+function sie(e, t) {
let n = (0, I.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -31064,7 +31091,7 @@ function lie(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-var uie = class extends Pf {
+var cie = class extends Pf {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -31079,7 +31106,7 @@ var uie = class extends Pf {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new eO(-2);
+ return new rO(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -31105,7 +31132,7 @@ var uie = class extends Pf {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = qD(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 = XD(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
}
get columnCount() {
return this.columns.length;
@@ -31186,11 +31213,11 @@ var uie = class extends Pf {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new ZD(-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 eO(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, die = /*#__PURE__*/ (0, I.createContext)(null), fie = /*#__PURE__*/ (0, I.createContext)(null), JD = /*#__PURE__*/ (0, I.createContext)(null), YD = /*#__PURE__*/ (0, I.createContext)(null), pie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = IT(e, t, fie);
- let n = $E(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, I.useMemo)(() => ({
+}, lie = /*#__PURE__*/ (0, I.createContext)(null), uie = /*#__PURE__*/ (0, I.createContext)(null), ZD = /*#__PURE__*/ (0, I.createContext)(null), QD = /*#__PURE__*/ (0, I.createContext)(null), die = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = zT(e, t, uie);
+ let n = nD(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, I.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -31200,26 +31227,26 @@ var uie = class extends Pf {
i,
a,
o
- ]), c = /*#__PURE__*/ I.createElement(gie.Provider, { value: s }, /*#__PURE__*/ I.createElement(Fh, e));
+ ]), c = /*#__PURE__*/ I.createElement(mie.Provider, { value: s }, /*#__PURE__*/ I.createElement(Fh, e));
return /*#__PURE__*/ I.createElement(Ch, {
content: c,
- createCollection: () => new uie()
- }, (r) => /*#__PURE__*/ I.createElement(hie, {
+ createCollection: () => new cie()
+ }, (r) => /*#__PURE__*/ I.createElement(pie, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), mie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(KT);
- return n ? /*#__PURE__*/ I.createElement(BT.div, {
+}), fie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(YT);
+ return n ? /*#__PURE__*/ I.createElement(UT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(BT.table, {
+ }) : /*#__PURE__*/ I.createElement(UT.table, {
...e,
ref: t
});
-}), XD = {
+}), $D = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -31229,26 +31256,26 @@ var uie = class extends Pf {
rtl: "ArrowRight"
}
};
-function hie({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = IT(e, t, VT);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, I.useContext)(die);
+function pie({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = zT(e, t, WT);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, I.useContext)(lie);
t = oh((0, I.useMemo)(() => Vm(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = B_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ let [l, u] = V_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, I.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = cie({
+ let d = oie({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = lie(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, I.useContext)(KT), { dragAndDropHooks: _ } = e, { gridProps: v } = Tte({
+ }), f = sie(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, I.useContext)(YT), { dragAndDropHooks: _ } = e, { gridProps: v } = Cte({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, I.useRef)(b), (0, I.useRef)(x), (0, I.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, I.useRef)(null), { direction: O } = ag(), [k] = (0, I.useState)(() => new rie());
+ let S, C, w, T = !1, E = null, D = (0, I.useRef)(null), { direction: O } = ag(), [k] = (0, I.useState)(() => new tie());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -31263,7 +31290,7 @@ function hie({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new tv({
+ let e = new nv({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -31283,12 +31310,12 @@ function hie({ 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 === XD.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === XD.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === $D.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === $D.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: A, isFocused: j, isFocusVisible: M } = oy(), N = PT({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = ly(), N = LT({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -31304,19 +31331,19 @@ function hie({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let F = hg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(NT, { values: [
- [JD, f],
- [YD, P],
- [HE, {
+ let F = gg(e, { global: !0 });
+ return /*#__PURE__*/ I.createElement(IT, { values: [
+ [ZD, f],
+ [QD, P],
+ [GE, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [UE, { render: Eie }],
- [VT, null],
- [HT, null]
- ] }, /*#__PURE__*/ I.createElement(Hg, null, /*#__PURE__*/ I.createElement(mie, {
+ [KE, { render: wie }],
+ [WT, null],
+ [GT, null]
+ ] }, /*#__PURE__*/ I.createElement(Ug, null, /*#__PURE__*/ I.createElement(fie, {
...H(F, N, v, A, w?.collectionProps),
style: te,
ref: t,
@@ -31326,46 +31353,46 @@ function hie({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": j || void 0,
"data-focus-visible": M || void 0
- }, /*#__PURE__*/ I.createElement(qE, null, /*#__PURE__*/ I.createElement(g, {
+ }, /*#__PURE__*/ I.createElement(XE, null, /*#__PURE__*/ I.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: GE(y, _, C)
+ persistedKeys: JE(y, _, C)
})))), E);
}
-var gie = /*#__PURE__*/ (0, I.createContext)(null), ZD = class extends kf {
+var mie = /*#__PURE__*/ (0, I.createContext)(null), eO = class extends kf {
static {
this.type = "tableheader";
}
-}, _ie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(KT);
- return n ? /*#__PURE__*/ I.createElement(BT.div, {
+}, hie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(YT);
+ return n ? /*#__PURE__*/ I.createElement(UT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(BT.thead, {
+ }) : /*#__PURE__*/ I.createElement(UT.thead, {
...e,
ref: t
});
-}), QD = /*#__PURE__*/ Mh(ZD, (e, t) => {
- let n = (0, I.useContext)(JD).collection, r = zf({
+}), tO = /*#__PURE__*/ Mh(eO, (e, t) => {
+ let n = (0, I.useContext)(ZD).collection, r = zf({
items: n.headerRows,
children: (0, I.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ I.createElement(yie, { item: e });
+ case "headerrow": return /*#__PURE__*/ I.createElement(_ie, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = cS(), { hoverProps: a, isHovered: o } = fy({
+ }), { rowGroupProps: i } = uS(), { hoverProps: a, isHovered: o } = hy({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = PT({
+ }), s = LT({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ I.createElement(_ie, {
- ...H(hg(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ I.createElement(hie, {
+ ...H(gg(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
@@ -31373,8 +31400,8 @@ var gie = /*#__PURE__*/ (0, I.createContext)(null), ZD = class extends kf {
}, (e) => /*#__PURE__*/ I.createElement(Fh, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), vie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(KT);
+}, e.children)), gie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(YT);
return n ? /*#__PURE__*/ I.createElement("div", {
...e,
ref: t
@@ -31383,41 +31410,41 @@ var gie = /*#__PURE__*/ (0, I.createContext)(null), ZD = class extends kf {
ref: t
});
});
-function yie({ item: e }) {
- let t = (0, I.useRef)(null), n = (0, I.useContext)(JD), { isVirtualized: r, CollectionBranch: i } = (0, I.useContext)(KT), { rowProps: a } = kte({
+function _ie({ item: e }) {
+ let t = (0, I.useRef)(null), n = (0, I.useContext)(ZD), { isVirtualized: r, CollectionBranch: i } = (0, I.useContext)(YT), { rowProps: a } = Dte({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = Ite(n);
- return /*#__PURE__*/ I.createElement(vie, {
+ }, n, t), { checkboxProps: o } = Pte(n);
+ return /*#__PURE__*/ I.createElement(gie, {
...a,
ref: t
- }, /*#__PURE__*/ I.createElement(NT, { values: [[nE, { slots: { selection: o } }], [rE, { slots: { selection: o } }]] }, /*#__PURE__*/ I.createElement(i, {
+ }, /*#__PURE__*/ I.createElement(IT, { values: [[aE, { slots: { selection: o } }], [oE, { slots: { selection: o } }]] }, /*#__PURE__*/ I.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var bie = class extends kf {
+var vie = class extends kf {
static {
this.type = "column";
}
-}, xie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(KT);
- return n ? /*#__PURE__*/ I.createElement(BT.div, {
+}, yie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(YT);
+ return n ? /*#__PURE__*/ I.createElement(UT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(BT.th, {
+ }) : /*#__PURE__*/ I.createElement(UT.th, {
...e,
ref: t
});
-}), $D = /*#__PURE__*/ jh(bie, (e, t, n) => {
- let r = oh(t), i = (0, I.useContext)(JD), { isVirtualized: a } = (0, I.useContext)(KT), { columnHeaderProps: o, isPressed: s } = Ote({
+}), nO = /*#__PURE__*/ jh(vie, (e, t, n) => {
+ let r = oh(t), i = (0, I.useContext)(ZD), { isVirtualized: a } = (0, I.useContext)(YT), { columnHeaderProps: o, isPressed: s } = Ete({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = oy(), d = (0, I.useContext)(YD), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = ly(), d = (0, I.useContext)(QD), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = fy({ isDisabled: !e.allowsSorting }), h = PT({
+ let { hoverProps: p, isHovered: m } = hy({ isDisabled: !e.allowsSorting }), h = LT({
...e,
id: void 0,
children: n.rendered,
@@ -31443,8 +31470,8 @@ var bie = class extends kf {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = hg(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ I.createElement(xie, {
+ let _ = gg(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ I.createElement(yie, {
...H(_, o, u, p),
...h,
style: g,
@@ -31456,28 +31483,28 @@ var bie = class extends kf {
"data-resizing": f || void 0,
"data-allows-sorting": n.props.allowsSorting || void 0,
"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0
- }, /*#__PURE__*/ I.createElement(NT, { values: [[Sie, {
+ }, /*#__PURE__*/ I.createElement(IT, { values: [[bie, {
column: n,
triggerRef: r
- }], [KT, WT]] }, h.children));
-}), Sie = /*#__PURE__*/ (0, I.createContext)(null), eO = class extends Af {
+ }], [YT, qT]] }, h.children));
+}), bie = /*#__PURE__*/ (0, I.createContext)(null), rO = class extends Af {
static {
this.type = "tablebody";
}
-}, Cie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(KT);
- return n ? /*#__PURE__*/ I.createElement(BT.div, {
+}, xie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(YT);
+ return n ? /*#__PURE__*/ I.createElement(UT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(BT.tbody, {
+ }) : /*#__PURE__*/ I.createElement(UT.tbody, {
...e,
ref: t
});
-}), tO = /*#__PURE__*/ Mh(eO, (e, t, n) => {
- let r = (0, I.useContext)(JD), { isVirtualized: i } = (0, I.useContext)(KT), a = r.collection, { CollectionBranch: o } = (0, I.useContext)(KT), { dragAndDropHooks: s, dropState: c } = (0, I.useContext)(HE), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), iO = /*#__PURE__*/ Mh(rO, (e, t, n) => {
+ let r = (0, I.useContext)(ZD), { isVirtualized: i } = (0, I.useContext)(YT), a = r.collection, { CollectionBranch: o } = (0, I.useContext)(YT), { dragAndDropHooks: s, dropState: c } = (0, I.useContext)(GE), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = PT({
+ }, p = LT({
...e,
id: void 0,
children: void 0,
@@ -31486,25 +31513,25 @@ var bie = class extends kf {
}), m, h = a.columnCount;
if (d && e.renderEmptyState && r) {
let t = {}, n = {}, r = {};
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ I.createElement(rO, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ I.createElement(oO, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ I.createElement(aO, {
+ }, /*#__PURE__*/ I.createElement(cO, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = cS(), _ = hg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(Cie, {
+ let { rowGroupProps: g } = uS(), _ = gg(e, { global: !0 });
+ return /*#__PURE__*/ I.createElement(xie, {
...H(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ I.createElement(jie, null), /*#__PURE__*/ I.createElement(o, {
+ }, l && /*#__PURE__*/ I.createElement(kie, null), /*#__PURE__*/ I.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: WE(s, c)
+ renderDropIndicator: qE(s, c)
}), m);
});
(class extends Af {
@@ -31512,7 +31539,7 @@ var bie = class extends kf {
this.type = "tablefooter";
}
});
-var nO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), wie = class extends kf {
+var aO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Sie = class extends kf {
static {
this.type = "item";
}
@@ -31524,31 +31551,31 @@ var nO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), wi
}
return null;
}
-}, rO = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(KT);
- return n ? /*#__PURE__*/ I.createElement(BT.div, {
+}, oO = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(YT);
+ return n ? /*#__PURE__*/ I.createElement(UT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(BT.tr, {
+ }) : /*#__PURE__*/ I.createElement(UT.tr, {
...e,
ref: t
});
-}), iO = /*#__PURE__*/ Mh(wie, (e, t, n) => {
- let r = oh(t), i = (0, I.useContext)(JD), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, I.useContext)(HE), { isVirtualized: c, CollectionBranch: l } = (0, I.useContext)(KT), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Mte({
+}), sO = /*#__PURE__*/ Mh(Sie, (e, t, n) => {
+ let r = oh(t), i = (0, I.useContext)(ZD), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, I.useContext)(GE), { isVirtualized: c, CollectionBranch: l } = (0, I.useContext)(YT), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Ate({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = oy(), { isFocusVisible: _, focusProps: v } = oy({ within: !0 }), { hoverProps: y, isHovered: b } = fy({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = ly(), { isFocusVisible: _, focusProps: v } = ly({ within: !0 }), { hoverProps: y, isHovered: b } = hy({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = Fte({ key: n.key }, i), S;
+ }), { checkboxProps: x } = Nte({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
}, o));
- let C, w = (0, I.useRef)(null), { visuallyHiddenProps: T } = W_();
+ let C, w = (0, I.useRef)(null), { visuallyHiddenProps: T } = G_();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -31558,7 +31585,7 @@ var nO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), wi
(0, I.useEffect)(() => {
o && E.current;
}, []);
- let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = PT({
+ let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = LT({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -31579,11 +31606,11 @@ var nO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), wi
isExpanded: j,
level: n.level + 1
}
- }), N = hg(e, { global: !0 });
- return delete N.id, delete N.onClick, /*#__PURE__*/ I.createElement(I.Fragment, null, C && !C.isHidden && /*#__PURE__*/ I.createElement(rO, {
+ }), N = gg(e, { global: !0 });
+ return delete N.id, delete N.onClick, /*#__PURE__*/ I.createElement(I.Fragment, null, C && !C.isHidden && /*#__PURE__*/ I.createElement(oO, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ I.createElement(aO, {
+ }, /*#__PURE__*/ I.createElement(cO, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -31592,7 +31619,7 @@ var nO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), wi
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ I.createElement(rO, {
+ }))), /*#__PURE__*/ I.createElement(oO, {
...H(N, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -31608,17 +31635,17 @@ var nO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), wi
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ I.createElement(NT, { values: [
- [nE, { slots: {
- [MT]: {},
+ }, /*#__PURE__*/ I.createElement(IT, { values: [
+ [aE, { slots: {
+ [FT]: {},
selection: x
} }],
- [rE, { slots: {
- [MT]: {},
+ [oE, { slots: {
+ [FT]: {},
selection: x
} }],
- [YT, { slots: {
- [MT]: {},
+ [QT, { slots: {
+ [FT]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -31626,8 +31653,8 @@ var nO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), wi
style: { pointerEvents: "none" }
}
} }],
- [JE, { isSelected: p.isSelected }],
- [nO, { isFocusVisibleWithinRow: _ }]
+ [ZE, { isSelected: p.isSelected }],
+ [aO, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ I.createElement(l, {
collection: i.collection,
parent: n
@@ -31640,29 +31667,29 @@ var nO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), wi
items: e.columns,
idScope: e.id
}, e.children);
-}), Tie = class extends kf {
+}), Cie = class extends kf {
static {
this.type = "cell";
}
-}, aO = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(KT);
- return n ? /*#__PURE__*/ I.createElement(BT.div, {
+}, cO = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(YT);
+ return n ? /*#__PURE__*/ I.createElement(UT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(BT.td, {
+ }) : /*#__PURE__*/ I.createElement(UT.td, {
...e,
ref: t
});
-}), oO = /*#__PURE__*/ jh(Tie, (e, t, n) => {
- let r = oh(t), i = (0, I.useContext)(JD), { dragState: a } = (0, I.useContext)(HE), { isVirtualized: o } = (0, I.useContext)(KT);
+}), lO = /*#__PURE__*/ jh(Cie, (e, t, n) => {
+ let r = oh(t), i = (0, I.useContext)(ZD), { dragState: a } = (0, I.useContext)(GE), { isVirtualized: o } = (0, I.useContext)(YT);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = Ete({
+ let { gridCellProps: s, isPressed: c } = wte({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = oy(), { hoverProps: f, isHovered: p } = fy({}), { isFocusVisibleWithinRow: m } = (0, I.useContext)(nO), 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 = PT({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = ly(), { hoverProps: f, isHovered: p } = hy({}), { isFocusVisibleWithinRow: m } = (0, I.useContext)(aO), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = LT({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -31681,8 +31708,8 @@ var nO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), wi
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = hg(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ I.createElement(aO, {
+ }), S = gg(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ I.createElement(cO, {
...H(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -31696,14 +31723,14 @@ var nO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), wi
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ I.createElement(KT.Provider, { value: WT }, x.children));
+ }, /*#__PURE__*/ I.createElement(YT.Provider, { value: qT }, x.children));
});
-function Eie(e, t) {
+function wie(e, t) {
t = oh(t);
- let { dragAndDropHooks: n, dropState: r } = (0, I.useContext)(HE), i = (0, I.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+ let { dragAndDropHooks: n, dropState: r } = (0, I.useContext)(GE), i = (0, I.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ I.createElement(Aie, {
+ return /*#__PURE__*/ I.createElement(Oie, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -31712,40 +31739,40 @@ function Eie(e, t) {
ref: t
});
}
-var Die = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(KT);
- return n ? /*#__PURE__*/ I.createElement(BT.div, {
+var Tie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(YT);
+ return n ? /*#__PURE__*/ I.createElement(UT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(BT.tr, {
+ }) : /*#__PURE__*/ I.createElement(UT.tr, {
...e,
ref: t
});
-}), Oie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(KT);
- return n ? /*#__PURE__*/ I.createElement(BT.div, {
+}), Eie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(YT);
+ return n ? /*#__PURE__*/ I.createElement(UT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(BT.td, {
+ }) : /*#__PURE__*/ I.createElement(UT.td, {
...e,
ref: t
});
});
-function kie(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, I.useContext)(JD), { visuallyHiddenProps: c } = W_(), l = PT({
+function Die(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, I.useContext)(ZD), { visuallyHiddenProps: c } = G_(), l = LT({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ I.createElement(Die, {
- ...hg(e, { global: !0 }),
+ return /*#__PURE__*/ I.createElement(Tie, {
+ ...gg(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ I.createElement(Oie, {
+ }, /*#__PURE__*/ I.createElement(Eie, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -31756,14 +31783,14 @@ function kie(e, t) {
ref: i
}), l.children));
}
-var Aie = /*#__PURE__*/ (0, I.forwardRef)(kie);
-function jie() {
- let e = (0, I.useContext)(JD), { dragAndDropHooks: t, dropState: n } = (0, I.useContext)(HE), r = (0, I.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = W_();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ I.createElement(rO, {
+var Oie = /*#__PURE__*/ (0, I.forwardRef)(Die);
+function kie() {
+ let e = (0, I.useContext)(ZD), { dragAndDropHooks: t, dropState: n } = (0, I.useContext)(GE), r = (0, I.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = G_();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ I.createElement(oO, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ I.createElement(aO, {
+ }, /*#__PURE__*/ I.createElement(cO, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -31775,8 +31802,8 @@ function jie() {
})));
}
jh(jf, function(e, t, n) {
- let r = (0, I.useContext)(JD), { isVirtualized: i } = (0, I.useContext)(KT), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, I.useRef)(null);
- sD((0, I.useMemo)(() => ({
+ let r = (0, I.useContext)(ZD), { isVirtualized: i } = (0, I.useContext)(YT), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, I.useRef)(null);
+ uD((0, I.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -31786,7 +31813,7 @@ jh(jf, function(e, t, n) {
s,
r?.collection
]), u);
- let d = PT({
+ let d = LT({
...c,
id: void 0,
children: n.rendered,
@@ -31794,10 +31821,10 @@ jh(jf, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(rO, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(oO, {
style: { height: 0 },
- inert: XE(!0)
- }, /*#__PURE__*/ I.createElement(aO, { style: {
+ inert: $E(!0)
+ }, /*#__PURE__*/ I.createElement(cO, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ I.createElement("div", {
@@ -31808,14 +31835,14 @@ jh(jf, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ I.createElement(rO, {
- ...H(hg(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ I.createElement(oO, {
+ ...H(gg(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ I.createElement(aO, {
+ }, /*#__PURE__*/ I.createElement(cO, {
role: "rowheader",
...p,
style: m
@@ -31823,8 +31850,8 @@ jh(jf, function(e, t, n) {
});
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function Mie(e) {
- let [t, n] = B_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, I.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = aD({
+function Aie(e) {
+ let [t, n] = V_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, I.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = cD({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -31847,24 +31874,24 @@ function Mie(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function Nie(e) {
- let t = Mie({
+function jie(e) {
+ let t = Aie({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? sO(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? uO(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, I.useRef)(i);
return (0, I.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = sO(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 = uO(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
}), {
...t,
isDisabled: e.isDisabled || !1
};
}
-function sO(e, t) {
+function uO(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);
@@ -31874,24 +31901,24 @@ function sO(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var cO = /*#__PURE__*/ (0, I.createContext)(null), lO = /*#__PURE__*/ (0, I.createContext)(null), uO = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = IT(e, t, cO);
+var dO = /*#__PURE__*/ (0, I.createContext)(null), fO = /*#__PURE__*/ (0, I.createContext)(null), pO = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = zT(e, t, dO);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, I.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ I.createElement(Ch, { content: n }, (n) => /*#__PURE__*/ I.createElement(Pie, {
+ }) : n, [n, r]), /*#__PURE__*/ I.createElement(Ch, { content: n }, (n) => /*#__PURE__*/ I.createElement(Mie, {
props: e,
collection: n,
tabsRef: t
}));
});
-function Pie({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = Nie({
+function Mie({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = jie({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = oy({ within: !0 }), c = (0, I.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = ly({ within: !0 }), c = (0, I.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -31899,12 +31926,12 @@ function Pie({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = PT({
+ ]), l = LT({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = hg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(BT.div, {
+ }), u = gg(e, { global: !0 });
+ return /*#__PURE__*/ I.createElement(UT.div, {
...H(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -31912,20 +31939,20 @@ function Pie({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ I.createElement(NT, { values: [[cO, e], [lO, i]] }, l.children));
+ }, /*#__PURE__*/ I.createElement(IT, { values: [[dO, e], [fO, i]] }, l.children));
}
-var dO = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- return (0, I.useContext)(lO) ? /*#__PURE__*/ I.createElement(Fie, {
+var mO = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ return (0, I.useContext)(fO) ? /*#__PURE__*/ I.createElement(Nie, {
props: e,
forwardedRef: t
}) : /*#__PURE__*/ I.createElement(Fh, e);
});
-function Fie({ props: e, forwardedRef: t }) {
- let n = (0, I.useContext)(lO), { CollectionRoot: r } = (0, I.useContext)(KT), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = FT(cO), o = oh(t), { tabListProps: s } = zte({
+function Nie({ props: e, forwardedRef: t }) {
+ let n = (0, I.useContext)(fO), { CollectionRoot: r } = (0, I.useContext)(YT), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = RT(dO), o = oh(t), { tabListProps: s } = Lte({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = PT({
+ }, n, o), c = LT({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -31933,30 +31960,30 @@ function Fie({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = hg(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ I.createElement(BT.div, {
+ }), l = gg(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ I.createElement(UT.div, {
...H(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ I.createElement(qE, null, /*#__PURE__*/ I.createElement(r, {
+ }, /*#__PURE__*/ I.createElement(XE, null, /*#__PURE__*/ I.createElement(r, {
collection: n.collection,
- persistedKeys: qT(n.selectionManager.focusedKey)
+ persistedKeys: XT(n.selectionManager.focusedKey)
})));
}
-var fO = /*#__PURE__*/ jh(class extends kf {
+var hO = /*#__PURE__*/ jh(class extends kf {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, I.useContext)(lO), i = oh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Lte({
+ let r = (0, I.useContext)(fO), i = oh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Fte({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = oy(), { hoverProps: f, isHovered: p } = fy({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = ly(), { hoverProps: f, isHovered: p } = hy({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = PT({
+ }), m = LT({
...e,
id: void 0,
children: n.rendered,
@@ -31969,7 +31996,7 @@ var fO = /*#__PURE__*/ jh(class extends kf {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? BT.a : BT.div, g = hg(e, { global: !0 });
+ }), h = n.props.href ? UT.a : UT.div, g = gg(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ I.createElement(h, {
...H(g, m, a, l, f),
ref: i,
@@ -31979,58 +32006,58 @@ var fO = /*#__PURE__*/ jh(class extends kf {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ I.createElement(JE.Provider, { value: { isSelected: o } }, m.children));
-}), pO = /*#__PURE__*/ ph(function(e, t) {
- let n = (0, I.useContext)(lO), r = oh(t), i = n.selectedKey === e.id, [a, o] = (0, I.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ I.createElement(ZE.Provider, { value: { isSelected: o } }, m.children));
+}), gO = /*#__PURE__*/ ph(function(e, t) {
+ let n = (0, I.useContext)(fO), r = oh(t), i = n.selectedKey === e.id, [a, o] = (0, I.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = pD(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ I.createElement(Iie, {
+ let s = gD(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ I.createElement(Pie, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function Iie(e) {
- let t = (0, I.useContext)(lO), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Bte(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = oy(), d = t.selectedKey === e.id, f = fD(r) && !i, p = PT({
+function Pie(e) {
+ let t = (0, I.useContext)(fO), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Rte(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = ly(), d = t.selectedKey === e.id, f = hD(r) && !i, p = LT({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: XE(!d),
+ isInert: $E(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = hg(o, { global: !0 });
+ }), m = gg(o, { global: !0 });
delete m.id;
let h = d ? H(m, s, c, p) : H(m, p);
- return /*#__PURE__*/ I.createElement(BT.div, {
+ return /*#__PURE__*/ I.createElement(UT.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: XE(!d || e.inert),
+ inert: $E(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ I.createElement(NT, { values: [[cO, null], [lO, null]] }, /*#__PURE__*/ I.createElement(KT.Provider, { value: WT }, p.children)));
+ }, /*#__PURE__*/ I.createElement(IT, { values: [[dO, null], [fO, null]] }, /*#__PURE__*/ I.createElement(YT.Provider, { value: qT }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var Lie = /*#__PURE__*/ (0, I.createContext)({}), Rie = /*#__PURE__*/ (0, I.createContext)(null), zie = /*#__PURE__*/ ph(function(e, t) {
- [e, t] = IT(e, t, Rie);
- let { validationBehavior: n } = FT(tE) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, I.useRef)(null);
- [e, i] = IT(e, i, HT);
- let [a, o] = LT(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, I.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Dee({
- ...RT(e),
+var Fie = /*#__PURE__*/ (0, I.createContext)({}), Iie = /*#__PURE__*/ (0, I.createContext)(null), Lie = /*#__PURE__*/ ph(function(e, t) {
+ [e, t] = zT(e, t, Iie);
+ let { validationBehavior: n } = RT(iE) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, I.useRef)(null);
+ [e, i] = zT(e, i, GT);
+ let [a, o] = BT(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, I.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Eee({
+ ...VT(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, I.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = PT({
+ }, [i]), h = LT({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -32039,8 +32066,8 @@ var Lie = /*#__PURE__*/ (0, I.createContext)({}), Rie = /*#__PURE__*/ (0, I.crea
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = hg(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ I.createElement(BT.div, {
+ }), g = gg(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ I.createElement(UT.div, {
...g,
...h,
ref: t,
@@ -32049,31 +32076,31 @@ var Lie = /*#__PURE__*/ (0, I.createContext)({}), Rie = /*#__PURE__*/ (0, I.crea
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ I.createElement(NT, { values: [
- [JT, {
+ }, /*#__PURE__*/ I.createElement(IT, { values: [
+ [ZT, {
...l,
ref: a
}],
- [oE, {
+ [lE, {
...u,
ref: m
}],
- [Lie, {
+ [Fie, {
...u,
ref: m
}],
- [aE, {
+ [cE, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [$T, { slots: {
+ [nE, { slots: {
description: d,
errorMessage: f
} }],
- [eE, p]
+ [rE, p]
] }, h.children));
-}), mO = Cw({
+}), _O = ww({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -32094,21 +32121,21 @@ var Lie = /*#__PURE__*/ (0, I.createContext)({}), Rie = /*#__PURE__*/ (0, I.crea
small: "size-4 shrink-0"
}
});
-function hO({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function vO({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
ref: i,
type: r,
- className: Sw(mO.base, mO.size[t], n),
+ className: Cw(_O.base, _O.size[t], n),
...a,
children: /* @__PURE__ */ (0, L.jsx)(e, {
- className: mO.icon[t],
+ className: _O.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var Bie = Cw({
+var Rie = ww({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -32170,23 +32197,23 @@ var Bie = Cw({
}
}
});
-function Vie({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = Bie[t];
+function zie({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = Rie[t];
return /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
- className: Sw("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? Sw("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: Cw("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? Cw("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
children: /* @__PURE__ */ (0, L.jsx)("span", {
- className: Sw("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
- children: /* @__PURE__ */ (0, L.jsx)("span", { className: Sw("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
+ className: Cw("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
+ children: /* @__PURE__ */ (0, L.jsx)("span", { className: Cw("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
})
});
}
-function gO({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, L.jsx)(tie, {
+function yO({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, L.jsx)($re, {
ref: i,
...a,
- className: (t) => Sw("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Vie, {
+ className: (t) => Cw("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ children: (e) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(zie, {
state: e,
size: n,
shape: r
@@ -32196,7 +32223,7 @@ function gO({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
})] })
});
}
-function _O(e) {
+function bO(e) {
return {
x0: 0,
y0: 0,
@@ -32204,7 +32231,7 @@ function _O(e) {
y1: e.height
};
}
-function vO(e) {
+function xO(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -32212,40 +32239,40 @@ function vO(e) {
y1: Math.round(e.y1)
};
}
-function yO(e) {
+function SO(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function bO(e, t) {
- if (!yO(e)) return {
+function CO(e, t) {
+ if (!SO(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return _O(e);
+ if (t == null || !(t > 0)) return bO(e);
let n = e.width, r = n / t;
r > e.height && (r = e.height, n = r * t);
let i = (e.width - n) / 2, a = (e.height - r) / 2;
- return vO({
+ return xO({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function Hie(e, t) {
- if (!yO(e) || !(t > 0)) return _O(e);
+function Bie(e, t) {
+ if (!SO(e) || !(t > 0)) return bO(e);
let n = Math.min(e.width, e.height * t);
- return vO({
+ return xO({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function Uie(e, t, n) {
- if (!yO(t) || !(n > 0)) return _O(t);
- let r = xO(e, t), i = bO({
+function Vie(e, t, n) {
+ if (!SO(t) || !(n > 0)) return bO(t);
+ let r = wO(e, t), i = CO({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -32256,8 +32283,8 @@ function Uie(e, t, n) {
y1: r.y0 + i.y1
};
}
-function xO(e, t, n = null, r = "width") {
- if (!yO(t)) return {
+function wO(e, t, n = null, r = "width") {
+ if (!SO(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -32266,43 +32293,43 @@ function xO(e, t, n = null, r = "width") {
let i = Math.min(16, t.width, t.height), a = Math.max(i, Math.min(e.x1 - e.x0, t.width)), o = Math.max(i, Math.min(e.y1 - e.y0, t.height));
n != null && n > 0 && (r === "width" ? (o = a / n, o > t.height && (o = t.height, a = o * n)) : (a = o * n, a > t.width && (a = t.width, o = a / n)), a > t.width && (a = t.width, o = a / n));
let s = Math.max(0, Math.min(e.x0, t.width - a)), c = Math.max(0, Math.min(e.y0, t.height - o));
- return vO({
+ return xO({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function SO(e, t, n, r) {
+function TO(e, t, n, r) {
let i = e.x1 - e.x0, a = e.y1 - e.y0, o = Math.max(0, Math.min(e.x0 + t, r.width - i)), s = Math.max(0, Math.min(e.y0 + n, r.height - a));
- return vO({
+ return xO({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function CO(e, t, n, r = null) {
- if (!yO(n) || !(t > 0)) return e;
+function EO(e, t, n, r = null) {
+ if (!SO(n) || !(t > 0)) return e;
let i = (e.x0 + e.x1) / 2, a = (e.y0 + e.y1) / 2, o = (e.x1 - e.x0) * t, s = (e.y1 - e.y0) * t;
- return xO({
+ return wO({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function Wie(e, t, n, r, i = null) {
+function Hie(e, t, n, r, i = null) {
let a = {
x0: e.x0,
y0: e.y0,
x1: Math.max(e.x0 + 1, t),
y1: Math.max(e.y0 + 1, n)
};
- return xO(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return wO(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function Gie(e, t) {
- return yO(t) ? {
+function Uie(e, t) {
+ return SO(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -32314,8 +32341,8 @@ function Gie(e, t) {
height: 0
};
}
-function Kie(e, t) {
- if (!yO(t)) return {
+function Wie(e, t) {
+ if (!SO(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -32325,7 +32352,7 @@ function Kie(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function qie(e, t) {
+function Gie(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}%`,
@@ -32334,25 +32361,25 @@ function qie(e, t) {
height: `${t.height / r * 100}%`
};
}
-function wO(e, t, n) {
+function DO(e, t, n) {
return t > 0 ? e * n / t : 0;
}
//#endregion
//#region src/react/components/modal-frame.tsx
-var Jie = {
+var Kie = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal"
};
-function TO({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
- return /* @__PURE__ */ (0, L.jsx)(MD, {
+function OO({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
+ return /* @__PURE__ */ (0, L.jsx)(FD, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, L.jsx)(Rre, {
- className: `flex max-h-full w-full ${Jie[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, L.jsx)(OD, {
+ children: /* @__PURE__ */ (0, L.jsx)(Ire, {
+ className: `flex max-h-full w-full ${Kie[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
+ children: /* @__PURE__ */ (0, L.jsx)(jD, {
"aria-label": r,
className: "flex min-h-0 flex-col outline-none",
children: i
@@ -32360,7 +32387,7 @@ function TO({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
})
});
}
-function EO({ children: e }) {
+function kO({ children: e }) {
return /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
className: "flex size-14 shrink-0 items-center justify-center rounded-2xl border border-separator-border bg-background-secondary-default text-foreground-icon-secondary",
@@ -32369,19 +32396,19 @@ function EO({ children: e }) {
}
//#endregion
//#region src/react/components/overlay-host.ts
-function Yie(e) {
+function qie(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 Xie(e) {
+function Jie(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return Yie(n ?? t.body);
+ return qie(n ?? t.body);
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function DO() {
+function AO() {
let e = (0, I.useRef)(null);
return (0, I.useEffect)(() => {
m(e.current);
@@ -32389,8 +32416,8 @@ function DO() {
}
//#endregion
//#region src/react/crop/crop-frame.tsx
-var Zie = .02, OO = 1.08;
-function kO({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var Yie = .02, jO = 1.08;
+function MO({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, I.useRef)(null), c = (0, I.useRef)(null), [l, u] = (0, I.useState)(!1);
(0, I.useEffect)(() => {
u(!1);
@@ -32401,8 +32428,8 @@ function kO({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: wO(e, n.clientWidth, r.width),
- dy: wO(t, n.clientHeight, r.height)
+ dx: DO(e, n.clientWidth, r.width),
+ dy: DO(t, n.clientHeight, r.height)
};
}, [r]);
function f(e) {
@@ -32420,29 +32447,29 @@ function kO({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
if (!n || !a || !r) return;
let o = d(e.clientX - n.x, e.clientY - n.y);
if (n.mode === "move") {
- i(SO(n.box, o.dx, o.dy, r));
+ i(TO(n.box, o.dx, o.dy, r));
return;
}
- i(Wie(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(Hie(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
}
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) * Zie), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * Yie), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
if (o[e.key]) {
- e.preventDefault(), i(SO(n, o[e.key][0], o[e.key][1], r));
+ e.preventDefault(), i(TO(n, o[e.key][0], o[e.key][1], r));
return;
}
- (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(CO(n, e.key === "-" ? 1 / OO : OO, r, t)));
+ (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(EO(n, e.key === "-" ? 1 / jO : jO, r, t)));
}
- let g = n && r ? Gie(xO(n, r, t), r) : null, _ = g ? {
+ let g = n && r ? Uie(wO(n, r, t), r) : null, _ = g ? {
"--crop-l": `${g.left}%`,
"--crop-t": `${g.top}%`,
"--crop-w": `${g.width}%`,
@@ -32461,7 +32488,7 @@ function kO({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- yO({
+ SO({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -32500,7 +32527,7 @@ function kO({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: m,
onKeyDown: h,
onWheel: (e) => {
- !n || !r || i(CO(n, e.deltaY > 0 ? OO : 1 / OO, r, t));
+ !n || !r || i(EO(n, e.deltaY > 0 ? jO : 1 / jO, r, t));
},
className: "absolute left-(--crop-l) top-(--crop-t) h-(--crop-h) w-(--crop-w) cursor-move touch-none outline-none ring-2 ring-border-focus-ring ring-inset focus-visible:ring-4",
children: /* @__PURE__ */ (0, L.jsx)("span", {
@@ -32522,11 +32549,11 @@ function kO({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/cover-crop/cover-crop.ts
-var Qie = "/api/cover-crop", $ie = (e, t) => q(Qie, {
+var Xie = "/api/cover-crop", Zie = (e, t) => q(Xie, {
code: e,
box: t
-}), AO = .704;
-function jO({ className: e }) {
+}), NO = .704;
+function PO({ className: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -32539,7 +32566,7 @@ function jO({ className: e }) {
children: /* @__PURE__ */ (0, L.jsx)("use", { href: "#i-crop" })
});
}
-function eae({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function Qie({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, I.useState)(!1), o = (0, I.useRef)(null);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("button", {
ref: o,
@@ -32550,15 +32577,15 @@ function eae({ code: e, coverUrl: t, box: n, onSaved: r }) {
title: "裁剪封面:框出正封那一块",
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, L.jsx)(jO, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, L.jsx)(ty, {
- getContainer: () => Xie(o.current),
- children: /* @__PURE__ */ (0, L.jsx)(TO, {
+ children: /* @__PURE__ */ (0, L.jsx)(PO, { className: "size-3.75" })
+ }), /* @__PURE__ */ (0, L.jsx)(iy, {
+ getContainer: () => Jie(o.current),
+ children: /* @__PURE__ */ (0, L.jsx)(OO, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, L.jsx)(tae, {
+ children: /* @__PURE__ */ (0, L.jsx)($ie, {
code: e,
coverUrl: t,
box: n,
@@ -32568,9 +32595,9 @@ function eae({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function tae({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, I.useState)(null), [s, c] = (0, I.useState)(null), [l, u] = (0, I.useState)(!0), d = DO(), f = At({
- mutationFn: (t) => $ie(e, t),
+function $ie({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, I.useState)(null), [s, c] = (0, I.useState)(null), [l, u] = (0, I.useState)(!0), d = AO(), f = At({
+ mutationFn: (t) => Zie(e, t),
onSuccess: () => {
i(), r();
}
@@ -32582,19 +32609,19 @@ function tae({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : Hie(e, AO);
- c(xO(t, e, null));
+ } : Bie(e, NO);
+ c(wO(t, e, null));
}
let m = f.isPending;
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, L.jsx)(EO, { children: /* @__PURE__ */ (0, L.jsx)(jO, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, L.jsx)(kO, { children: /* @__PURE__ */ (0, L.jsx)(PO, { className: "size-6" }) }),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(QT, {
+ /* @__PURE__ */ (0, L.jsx)(tE, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -32609,8 +32636,8 @@ function tae({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, L.jsx)(hO, {
- icon: _S,
+ /* @__PURE__ */ (0, L.jsx)(vO, {
+ icon: yS,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -32620,24 +32647,24 @@ function tae({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, L.jsx)("div", {
ref: d,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: /* @__PURE__ */ (0, L.jsx)(kO, {
+ children: /* @__PURE__ */ (0, L.jsx)(MO, {
src: t,
- aspect: l ? AO : null,
+ aspect: l ? NO : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- yO(e) && p(e);
+ SO(e) && p(e);
},
onBox: c
})
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, L.jsx)(gO, {
+ children: [/* @__PURE__ */ (0, L.jsx)(yO, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(xO(s, a, AO));
+ u(e), e && s && a && c(wO(s, a, NO));
},
children: /* @__PURE__ */ (0, L.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -32666,32 +32693,32 @@ function tae({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}
//#endregion
//#region src/react/media-sources.ts
-var nae = "/api/sources", MO = ["media-sources"], NO = (e) => Aw(nae, e);
-async function PO(e) {
+var eae = "/api/sources", FO = ["media-sources"], IO = (e) => jw(eae, e);
+async function LO(e) {
await X.fetchQuery({
- queryKey: MO,
- queryFn: () => NO(e)
+ queryKey: FO,
+ queryFn: () => IO(e)
});
}
-var rae = [
+var tae = [
"local",
"115",
"pikpak"
-], iae = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), aae = "/api/duplicates?limit=120", FO = ["duplicates"], oae = "/api/batch", IO = (e) => Aw(aae, e);
-async function LO(e) {
+], nae = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), rae = "/api/duplicates?limit=120", RO = ["duplicates"], iae = "/api/batch", zO = (e) => jw(rae, e);
+async function aae(e) {
await Promise.all([X.fetchQuery({
- queryKey: FO,
- queryFn: () => IO(e)
- }), PO(e)]);
+ queryKey: RO,
+ queryFn: () => zO(e)
+ }), LO(e)]);
}
-var RO = {
+var BO = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, sae = (e, t) => t.filter((t) => e.some((e) => e.location === t)), zO = (e, t) => sae(e, t).filter((t) => e.some((e) => e.location !== t)), BO = (e, t) => t.filter((t) => e.some((e) => zO(e.files, [t]).length));
-function VO(e, t) {
+}, VO = (e, t) => t.filter((t) => e.some((e) => e.location === t)), HO = (e, t) => VO(e, t).filter((t) => e.some((e) => e.location !== t)), UO = (e, t) => t.filter((t) => e.some((e) => HO(e.files, [t]).length));
+function oae(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -32710,44 +32737,44 @@ function VO(e, t) {
}
return n;
}
-function HO(e, t) {
+function sae(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 UO(e, t) {
- for (let n = 0; n < e.length; n += 200) await q(oae, {
+async function WO(e, t) {
+ for (let n = 0; n < e.length; n += 200) await q(iae, {
ids: e.slice(n, n + 200),
operation: t
});
}
//#endregion
//#region src/react/library-processing/library-processing.ts
-var WO = "/api/library-processing", GO = ["library-processing"], KO = (e) => Aw(WO, e);
-async function qO(e) {
+var GO = "/api/library-processing", KO = ["library-processing"], qO = (e) => jw(GO, e);
+async function JO(e) {
await X.fetchQuery({
- queryKey: GO,
- queryFn: () => KO(e)
+ queryKey: KO,
+ queryFn: () => qO(e)
});
}
-var JO = 2e3, YO = 1e4, XO = "连接中断,正在重新读取处理进度";
-function ZO(e, t) {
- return e?.status === "running" ? JO : t ? YO : !1;
+var YO = 2e3, XO = 1e4, ZO = "连接中断,正在重新读取处理进度";
+function QO(e, t) {
+ return e?.status === "running" ? YO : t ? XO : !1;
}
-var QO = {
+var $O = {
reading_local: "读取本地资料",
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
writing_candidates: "保存资料候选"
-}, $O = {
+}, ek = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
function cae(e) {
- let t = Object.entries(e).filter(([e, t]) => $O[e] && t > 0).map(([e, t]) => `${$O[e]} ${t} 部`);
+ let t = Object.entries(e).filter(([e, t]) => ek[e] && t > 0).map(([e, t]) => `${ek[e]} ${t} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function ek(e) {
- let t = QO[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
+function tk(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 lae(e) {
@@ -32764,21 +32791,21 @@ function lae(e) {
log: e.issues_log || ""
} : null;
}
-var tk = "peach.library-processing.announced", uae = 120;
+var nk = "peach.library-processing.announced", uae = 120;
function dae(e, t, n) {
if (e.status !== "complete") return;
let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < uae;
if (!(!n && !r)) {
try {
- if (e.job_id && localStorage.getItem(tk) === e.job_id) return;
- e.job_id && localStorage.setItem(tk, e.job_id);
+ if (e.job_id && localStorage.getItem(nk) === e.job_id) return;
+ e.job_id && localStorage.setItem(nk, 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 nk = "/api/media-repair", rk = ["media-repair"], ik = ["media-repair", "libraries"], fae = {
+var rk = "/api/media-repair", ik = ["media-repair"], ak = ["media-repair", "libraries"], fae = {
status: "idle",
library: "",
stage: "",
@@ -32790,33 +32817,33 @@ var nk = "/api/media-repair", rk = ["media-repair"], ik = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, ak = (e) => Aw(nk, e), ok = async (e) => (await Aw("/api/libraries", e)).libraries || [];
-async function sk(e) {
+}, ok = (e) => jw(rk, e), sk = async (e) => (await jw("/api/libraries", e)).libraries || [];
+async function ck(e) {
await Promise.all([X.fetchQuery({
- queryKey: rk,
- queryFn: () => ak(e)
- }), X.fetchQuery({
queryKey: ik,
queryFn: () => ok(e)
+ }), X.fetchQuery({
+ queryKey: ak,
+ queryFn: () => sk(e)
})]);
}
-var ck = (e) => Number(e).toLocaleString();
-function lk(e) {
+var lk = (e) => Number(e).toLocaleString();
+function uk(e) {
if (e.status === "running") {
- let t = e.total ? `${ck(e.checked)} / ${ck(e.total)}` : "准备中";
+ let t = e.total ? `${lk(e.checked)} / ${lk(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${ck(e.repaired)} 部,${ck(e.failed)} 部修不了` : `修好 ${ck(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${lk(e.repaired)} 部,${lk(e.failed)} 部修不了` : `修好 ${lk(e.repaired)} 部` : "";
}
-var uk = (e) => `${ck(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, dk = "/api/quality-goals?limit=200", fk = ["quality-goals"], pk = (e) => Aw(dk, e);
-async function mk(e) {
+var dk = (e) => `${lk(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, fk = "/api/quality-goals?limit=200", pk = ["quality-goals"], mk = (e) => jw(fk, e);
+async function hk(e) {
await X.fetchQuery({
- queryKey: fk,
- queryFn: () => pk(e)
+ queryKey: pk,
+ queryFn: () => mk(e)
});
}
-var hk = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
-function gk(e, t, n = 1) {
+var gk = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
+function _k(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;
@@ -32836,21 +32863,21 @@ function gk(e, t, n = 1) {
t
];
}
-function _k(e, t) {
+function vk(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function vk(e, t) {
+function yk(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
//#endregion
//#region src/selection.ts
-function yk(e, t, n, r, i, a = i || !e.has(r)) {
+function bk(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 bk(e) {
+function xk(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);
@@ -32859,7 +32886,7 @@ function bk(e) {
}
//#endregion
//#region src/react/review/review.ts
-var pae = "/api/review", mae = "/api/review/decision", hae = "/api/review/genre", xk = ["review"], Sk = {
+var pae = "/api/review", mae = "/api/review/decision", hae = "/api/review/genre", Sk = ["review"], Ck = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -32869,7 +32896,7 @@ var pae = "/api/review", mae = "/api/review/decision", hae = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, gae = Object.keys(Sk), _ae = "metadata_fields", Ck = (e) => typeof e == "string" && Object.hasOwn(Sk, e), vae = {
+}, gae = Object.keys(Ck), _ae = "metadata_fields", wk = (e) => typeof e == "string" && Object.hasOwn(Ck, e), vae = {
creator_tags: "creator",
western_identity: "creator"
};
@@ -32877,7 +32904,7 @@ function yae(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 wk(e, t) {
+function Tk(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -32895,10 +32922,10 @@ function wk(e, t) {
return [...n.values()];
}
function bae(e, t, n) {
- return n && wk(e, t).find((e) => e.key === n)?.rows || e;
+ return n && Tk(e, t).find((e) => e.key === n)?.rows || e;
}
function xae(e, t) {
- let n = _k(e.length, 20), r = vk(t, n);
+ let n = vk(e.length, 20), r = yk(t, n);
return {
page: r,
pages: n,
@@ -32909,17 +32936,17 @@ function Sae(e) {
return e.length ? [...new Set(e.flatMap((e) => e.candidates?.map((e) => e.source || "") || []))].filter((t) => t && e.every((e) => e.candidates?.filter((e) => e.source === t).length === 1)) : [];
}
function Cae(e, t, n, r, i, a) {
- return yk(e, t, n, r, i, a);
+ return bk(e, t, n, r, i, a);
}
-function Tk(e, t) {
+function Ek(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function Ek(e, t) {
+function Dk(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var Dk = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+var Ok = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
function wae(e, t) {
- let n = Ek(e, t), r = Dk(e, t);
+ let n = Dk(e, t), r = Ok(e, t);
return r ? `${n} · ${r}` : n;
}
var Tae = (e) => e.reason || e.evidence || e.note || e.decision_note || "", Eae = (e) => String(e.tags || "").split("|").filter(Boolean), Dae = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
@@ -32930,7 +32957,7 @@ function Oae(e) {
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function Ok(e, t, n, r) {
+function kk(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -32946,19 +32973,19 @@ function Ok(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var kae = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", kk = (e) => Aw(pae, e), Ak = (e) => q(mae, e), Aae = (e, t) => q(hae, {
+var kae = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", Ak = (e) => jw(pae, e), jk = (e) => q(mae, e), Mk = (e, t) => q(hae, {
genre: e,
tag: t
});
-async function jk(e) {
+async function Nk(e) {
await X.fetchQuery({
- queryKey: xk,
- queryFn: () => kk(e)
+ queryKey: Sk,
+ queryFn: () => Ak(e)
});
}
-function Mk(e, t) {
+function Pk(e, t) {
let n = new Set(t);
- n.size && X.setQueryData(xk, (t) => {
+ n.size && X.setQueryData(Sk, (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 : {
@@ -32974,161 +33001,161 @@ function Mk(e, t) {
};
});
}
-var Nk = () => X.invalidateQueries({
- queryKey: xk,
+var Fk = () => X.invalidateQueries({
+ queryKey: Sk,
exact: !0
});
-function Pk(e, t) {
- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${bk(e.fetched_at)} 的缓存` : e?.error || t;
+function Ik(e, t) {
+ return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${xk(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/data-cleanup/links.ts
-var Fk = "/api/links", Ik = "/api/links/check", Lk = "/api/links/prune", Rk = ["links"], zk = ["links", "check"], Bk = ["links", "prune"], Vk = {
+var Lk = "/api/links", Rk = "/api/links/check", zk = "/api/links/prune", Bk = ["links"], Vk = ["links", "check"], Hk = ["links", "prune"], Uk = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function Hk(e) {
+async function Wk(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var Uk = (e) => Aw(Fk, e), Wk = (e) => q(Ik, { status_only: !0 }, "POST", e), Gk = ({ retry: e, checkId: t }) => Hk(q(Ik, e ? {
+var Gk = (e) => jw(Lk, e), Kk = (e) => q(Rk, { status_only: !0 }, "POST", e), qk = ({ retry: e, checkId: t }) => Wk(q(Rk, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), Kk = (e) => Aw(Lk, e), qk = (e) => Hk(q(Lk, {
+} : { restart: !0 })), Jk = (e) => jw(zk, e), Yk = (e) => Wk(q(zk, {
confirm: !0,
check_id: e,
background: !0
-})), Jk = (e) => Number(e || 0).toLocaleString(), Yk = (e) => `已删除 ${Jk(e.removed)} 条;${e.marked ? `已隐退女优的 ${Jk(e.marked)} 条留作不可点的记录;` : ""}保留 ${Jk(e.recovered)} 条未确认失效的链接。`;
-function Xk(e) {
+})), Xk = (e) => Number(e || 0).toLocaleString(), Zk = (e) => `已删除 ${Xk(e.removed)} 条;${e.marked ? `已隐退女优的 ${Xk(e.marked)} 条留作不可点的记录;` : ""}保留 ${Xk(e.recovered)} 条未确认失效的链接。`;
+function Qk(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${Jk(e.checked)} / ${Jk(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${Xk(e.checked)} / ${Xk(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/react/data-cleanup/organize.ts
-var Zk = "/api/organize", Qk = "/api/organize/preview", $k = "/api/organize/apply", eA = "/api/organize/rollback", tA = "/api/settings", nA = ["organize"], rA = (e) => Aw(Zk, e);
-async function iA(e) {
+var $k = "/api/organize", eA = "/api/organize/preview", tA = "/api/organize/apply", nA = "/api/organize/rollback", rA = "/api/settings", iA = ["organize"], aA = (e) => jw($k, e);
+async function oA(e) {
await X.fetchQuery({
- queryKey: nA,
- queryFn: () => rA(e)
+ queryKey: iA,
+ queryFn: () => aA(e)
});
}
-var aA = (e) => q(Qk, e), oA = (e) => e.kind === "apply" ? q($k, {
+var sA = (e) => q(eA, e), cA = (e) => e.kind === "apply" ? q(tA, {
...e.request,
confirm: !0
-}) : q(eA, { confirm: !0 });
-async function sA(e) {
- X.setQueryData(nA, (t) => t && {
+}) : q(nA, { confirm: !0 });
+async function lA(e) {
+ X.setQueryData(iA, (t) => t && {
...t,
templates: e
});
try {
- await q(tA, { organizeTemplates: e });
+ await q(rA, { organizeTemplates: e });
} catch {}
}
-var cA = (e, t) => e && {
+var uA = (e, t) => e && {
...e,
...t
-}, lA = /目录模板|分隔符|盘符|`\.`/;
-function uA(e) {
+}, dA = /目录模板|分隔符|盘符|`\.`/;
+function fA(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var dA = (e) => Number(e || 0).toLocaleString();
-function jae(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${dA(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${dA(e.counts.change)} 个文件会改名或移动,${dA(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+var pA = (e) => Number(e || 0).toLocaleString();
+function Aae(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${pA(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${pA(e.counts.change)} 个文件会改名或移动,${pA(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function fA(e) {
+function mA(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${dA(r)} 个文件${n ? `,${dA(n)} 行未能退回` : ""}。` : `已整理 ${dA(r)} 个文件${n ? `,${dA(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${pA(r)} 个文件${n ? `,${pA(n)} 行未能退回` : ""}。` : `已整理 ${pA(r)} 个文件${n ? `,${pA(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
//#endregion
//#region src/react/data-cleanup/resource-sync.ts
-var pA = "/api/resource-sync/scan", mA = "/api/resource-sync/apply", hA = ["resource-sync", "scan"], gA = ["resource-sync", "apply"], _A = (e) => q(pA, {
+var hA = "/api/resource-sync/scan", gA = "/api/resource-sync/apply", _A = ["resource-sync", "scan"], vA = ["resource-sync", "apply"], yA = (e) => q(hA, {
background: !0,
status_only: !0
-}, "POST", e), Mae = () => q(pA, {
+}, "POST", e), jae = () => q(hA, {
background: !0,
restart: !0
-}), vA = (e) => Aw(mA, e), Nae = (e) => q(mA, {
+}), bA = (e) => jw(gA, e), Mae = (e) => q(gA, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), yA = (e) => (e?.sources ?? []).some((e) => rae.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function Pae(e) {
- yA(X.getQueryData(MO)) && await Promise.all([X.fetchQuery({
- queryKey: hA,
- queryFn: () => _A(e)
+}), xA = (e) => (e?.sources ?? []).some((e) => tae.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function Nae(e) {
+ xA(X.getQueryData(FO)) && await Promise.all([X.fetchQuery({
+ queryKey: _A,
+ queryFn: () => yA(e)
}), X.fetchQuery({
- queryKey: gA,
- queryFn: () => vA(e)
+ queryKey: vA,
+ queryFn: () => bA(e)
})]);
}
-var Fae = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Iae = {
+var Pae = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Fae = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, bA = (e) => Number(e || 0).toLocaleString(), Lae = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", Rae = (e) => `将永久删除文件已不在盘上的 ${bA(e.missing)} 条记录和 ${bA(e.empty)} 个空文件夹,并清理 ${bA(e.cache?.files)} 个闲置缓存。这一步不可撤销。`, zae = (e) => `将永久删除文件已不在盘上的 ${bA(e.missing)} 条记录(含回收站里的)、${bA(e.empty)} 个空文件夹,并清理 ${bA(e.cache?.files)} 个闲置缓存。来源根目录保留。这一步不可撤销。`, Bae = (e) => e.online ? [
- `找不到文件 · 共 ${bA(e.total)} 项`,
- e.empty ? `空文件夹 ${bA(e.empty)} 个` : "",
- e.unreadable ? `${bA(e.unreadable)} 个目录读取失败,已跳过` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${bA(e.total)} 项`;
-function xA(e) {
+}, SA = (e) => Number(e || 0).toLocaleString(), Iae = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", Lae = (e) => `将永久删除文件已不在盘上的 ${SA(e.missing)} 条记录和 ${SA(e.empty)} 个空文件夹,并清理 ${SA(e.cache?.files)} 个闲置缓存。这一步不可撤销。`, Rae = (e) => `将永久删除文件已不在盘上的 ${SA(e.missing)} 条记录(含回收站里的)、${SA(e.empty)} 个空文件夹,并清理 ${SA(e.cache?.files)} 个闲置缓存。来源根目录保留。这一步不可撤销。`, zae = (e) => e.online ? [
+ `找不到文件 · 共 ${SA(e.total)} 项`,
+ e.empty ? `空文件夹 ${SA(e.empty)} 个` : "",
+ e.unreadable ? `${SA(e.unreadable)} 个目录读取失败,已跳过` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${SA(e.total)} 项`;
+function CA(e) {
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 ? `${bA(t.length)} 条记录没有删除(${o})` : "",
- n ? `${bA(n)} 个文件夹没有删除` : "",
- r.length ? `${bA(r.length)} 个缓存没有清理` : ""
+ t.length ? `${SA(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${SA(n)} 个文件夹没有删除` : "",
+ r.length ? `${SA(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var Vae = (e, t) => {
- let { rest: n } = xA(e), r = `已永久删除 ${bA(e.purged)} 条失效记录和 ${bA(e.dirs_removed)} 个空文件夹,清理 ${bA(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。`;
+var Bae = (e, t) => {
+ let { rest: n } = CA(e), r = `已永久删除 ${SA(e.purged)} 条失效记录和 ${SA(e.dirs_removed)} 个空文件夹,清理 ${SA(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。`;
return n ? `${r}${n},重新检查后可再试。` : r;
-}, Hae = "/api/review?counts=1", SA = ["review", "counts"], Uae = "/api/ads?limit=1", CA = ["junk-summary"], wA = "/api/items?state=trash&limit=1", TA = ["trash-summary"], Wae = [
+}, Vae = "/api/review?counts=1", wA = ["review", "counts"], Hae = "/api/ads?limit=1", TA = ["junk-summary"], EA = "/api/items?state=trash&limit=1", DA = ["trash-summary"], Uae = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], EA = (e) => Aw(Hae, e), DA = (e) => Aw(Uae, e), OA = (e) => {
+], OA = (e) => jw(Vae, e), kA = (e) => jw(Hae, e), AA = (e) => {
let t = sessionStorage.getItem("peach.library");
- return Aw(t ? `${wA}&library=${encodeURIComponent(t)}` : wA, e);
-}, kA = (e) => Number(e || 0).toLocaleString();
-function Gae(e) {
- let t = Sk, 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 jw(t ? `${EA}&library=${encodeURIComponent(t)}` : EA, e);
+}, jA = (e) => Number(e || 0).toLocaleString();
+function Wae(e) {
+ let t = Ck, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);
return a && i.push(`其余 ${a.toLocaleString()}`), {
figure: `${r.toLocaleString()} 条待复核`,
meta: i.join(" · ")
};
}
-function Kae(e) {
+function Gae(e) {
if (!e) return "";
- let t = Wae.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${kA(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${kA(e.dismissed_total)}`), t.join(" · ");
-}
-var qae = [
- [SA, ({ signal: e }) => EA(e)],
- [fk, ({ signal: e }) => pk(e)],
- [TA, ({ signal: e }) => OA(e)],
- [Rk, ({ signal: e }) => Uk(e)],
- [zk, ({ signal: e }) => Wk(e)],
- [Bk, ({ signal: e }) => Kk(e)]
+ let t = Uae.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${jA(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${jA(e.dismissed_total)}`), t.join(" · ");
+}
+var Kae = [
+ [wA, ({ signal: e }) => OA(e)],
+ [pk, ({ signal: e }) => mk(e)],
+ [DA, ({ signal: e }) => AA(e)],
+ [Bk, ({ signal: e }) => Gk(e)],
+ [Vk, ({ signal: e }) => Kk(e)],
+ [Hk, ({ signal: e }) => Jk(e)]
];
-async function Jae(e) {
- let t = location.hash === "#resource-sync", n = qae.map(([n, r]) => {
+async function qae(e) {
+ let t = location.hash === "#resource-sync", n = Kae.map(([n, r]) => {
if (t) return X.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
@@ -33141,49 +33168,49 @@ async function Jae(e) {
await Promise.all([
...n,
X.fetchQuery({
- queryKey: CA,
- queryFn: () => DA(e)
+ queryKey: TA,
+ queryFn: () => kA(e)
}),
X.fetchQuery({
- queryKey: FO,
- queryFn: () => IO(e)
+ queryKey: RO,
+ queryFn: () => zO(e)
}),
- PO(e).then(() => Pae(e)),
- qO(e),
- sk(e),
- iA(e)
+ LO(e).then(() => Nae(e)),
+ JO(e),
+ ck(e),
+ oA(e)
]);
}
//#endregion
//#region src/react/components/stat-card.tsx
-var Yae = [
+var Jae = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], Xae = [
+], Yae = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function AA(e = {}) {
- return `${Rw({
+function MA(e = {}) {
+ return `${zw({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var jA = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", Zae = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function MA({ interactive: e = !1 } = {}) {
- return Rw({
+var NA = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", Xae = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+function PA({ interactive: e = !1 } = {}) {
+ return zw({
padding: "none",
radius: "plain",
interactive: e,
className: "flex min-h-33 flex-col gap-2 p-4 text-left"
});
}
-var Qae = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function NA({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+var Zae = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
+function FA({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",
@@ -33216,13 +33243,13 @@ function NA({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta
})
] });
}
-function PA({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function IA({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3",
children: [t ? /* @__PURE__ */ (0, L.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${Yae[n % 4]} ${Xae[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${Jae[n % 4]} ${Yae[n % 4]}`,
children: /* @__PURE__ */ (0, L.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -33244,7 +33271,7 @@ function PA({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var FA = Cw({
+var LA = ww({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -33268,15 +33295,15 @@ var FA = Cw({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function IA({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = Sw(FA.base, FA.size[t], FA.variant[e], a), l = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+function RA({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = Cw(LA.base, LA.size[t], LA.variant[e], a), l = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
n ? /* @__PURE__ */ (0, L.jsx)(n, {
- className: FA.icon[t],
+ className: LA.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, L.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, L.jsx)(r, {
- className: FA.icon[t],
+ className: LA.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -33303,7 +33330,7 @@ function IA({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var LA = [
+var zA = [
"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",
@@ -33311,74 +33338,74 @@ var LA = [
"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(" "), $ae = "w-[266px]", eoe = "flex w-full flex-col gap-1 outline-none", RA = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), zA = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+].join(" "), Qae = "w-[266px]", $ae = "flex w-full flex-col gap-1 outline-none", BA = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), VA = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
({
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 toe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", noe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", roe = Rw({
+var eoe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", toe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", noe = zw({
padding: "none",
bordered: "line",
className: "overflow-hidden"
-}), ioe = {
+}), roe = {
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"
-}, aoe = {
+}, ioe = {
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"
-}, ooe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", soe = {
+}, aoe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", ooe = {
neutral: "border-border-button-default bg-card-footer",
error: "border-border-error-default bg-background-tertiary-error"
-}, coe = Rw({
+}, soe = zw({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
-}), BA = "border-t border-border-button-default p-4 first:border-t-0";
-function VA({ tone: e = "neutral", status: t, children: n }) {
+}), HA = "border-t border-border-button-default p-4 first:border-t-0";
+function UA({ tone: e = "neutral", status: t, children: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: `${ooe} ${soe[e]}`,
+ className: `${aoe} ${ooe[e]}`,
children: [t ? /* @__PURE__ */ (0, L.jsx)("p", {
className: `mr-auto min-w-0 text-caption-1-regular ${e === "error" ? "text-text-error-primary" : "text-text-secondary"}`,
children: t
}) : null, n]
});
}
-function HA({ id: e, children: t }) {
+function WA({ id: e, children: t }) {
return /* @__PURE__ */ (0, L.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
children: t
});
}
-function UA({ id: e, gap: t = "none", children: n }) {
+function GA({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, L.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function WA({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function KA({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, L.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: `${roe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
+ className: `${noe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
children: [/* @__PURE__ */ (0, L.jsx)("div", {
- className: ioe[e],
+ className: roe[e],
children: a
}), i ? /* @__PURE__ */ (0, L.jsx)("footer", {
- className: aoe[e],
+ className: ioe[e],
children: i
}) : null]
});
}
//#endregion
//#region src/react/components/path-line.tsx
-function loe({ className: e }) {
+function coe({ className: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -33391,8 +33418,8 @@ function loe({ className: e }) {
children: /* @__PURE__ */ (0, L.jsx)("use", { href: "#i-folder-open" })
});
}
-var uoe = "打开文件管理器失败,请重试";
-function GA({ path: e, prefix: t, className: n, onRevealed: r }) {
+var loe = "打开文件管理器失败,请重试";
+function qA({ path: e, prefix: t, className: n, onRevealed: r }) {
let [i, a] = (0, I.useState)(!1), [o, s] = (0, I.useState)(""), c = (0, I.useRef)(!0);
(0, I.useEffect)(() => () => {
c.current = !1;
@@ -33403,7 +33430,7 @@ function GA({ path: e, prefix: t, className: n, onRevealed: r }) {
try {
await q("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof Ow ? e.message : uoe);
+ c.current && s(e instanceof kw ? e.message : loe);
} finally {
c.current && a(!1);
}
@@ -33414,10 +33441,10 @@ function GA({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, L.jsxs)("p", {
- className: Sw("min-w-0 break-all", n),
+ className: Cw("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, L.jsx)(hO, {
- icon: loe,
+ }), /* @__PURE__ */ (0, L.jsx)(vO, {
+ icon: coe,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
@@ -33432,21 +33459,21 @@ function GA({ path: e, prefix: t, className: n, onRevealed: r }) {
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function KA({ className: e, children: t }) {
+function JA({ className: e, children: t }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
- className: Sw("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ className: Cw("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function qA({ className: e, children: t }) {
+function YA({ className: e, children: t }) {
return /* @__PURE__ */ (0, L.jsx)("p", {
- className: Sw("w-full px-3 text-body-2-medium text-text-secondary", e),
+ className: Cw("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function JA({ label: e, description: t, children: n }) {
+function XA({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: Sw("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
+ className: Cw("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 flex-col",
children: [/* @__PURE__ */ (0, L.jsx)("p", {
@@ -33461,14 +33488,14 @@ function JA({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/settings/section.tsx
-function YA({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+function ZA({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
let a = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [n ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, L.jsx)(qA, { children: e })
+ children: /* @__PURE__ */ (0, L.jsx)(YA, { children: e })
}), n]
- }) : /* @__PURE__ */ (0, L.jsx)(qA, { children: e }), /* @__PURE__ */ (0, L.jsx)(KA, { children: i })] });
+ }) : /* @__PURE__ */ (0, L.jsx)(YA, { children: e }), /* @__PURE__ */ (0, L.jsx)(JA, { children: i })] });
return r ? /* @__PURE__ */ (0, L.jsx)("form", {
id: t,
"aria-label": e,
@@ -33483,13 +33510,13 @@ function YA({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
children: a
});
}
-function XA({ children: e }) {
+function QA({ children: e }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function ZA({ divided: e = !1, children: t }) {
+function $A({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
@@ -33498,7 +33525,7 @@ function ZA({ divided: e = !1, children: t }) {
children: t
});
}
-function QA({ status: e, children: t }) {
+function ej({ status: e, children: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3",
children: [e ? /* @__PURE__ */ (0, L.jsx)("div", {
@@ -33507,43 +33534,43 @@ function QA({ status: e, children: t }) {
}) : null, t]
});
}
-function $A({ role: e, children: t }) {
+function tj({ role: e, children: t }) {
return /* @__PURE__ */ (0, L.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function ej({ children: e }) {
+function nj({ children: e }) {
return /* @__PURE__ */ (0, L.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function tj({ children: e }) {
+function rj({ children: e }) {
return /* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function nj({ href: e, children: t }) {
- return /* @__PURE__ */ (0, L.jsx)(IA, {
+function ij({ href: e, children: t }) {
+ return /* @__PURE__ */ (0, L.jsx)(RA, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
- trailingIcon: xS,
+ trailingIcon: CS,
children: t
});
}
-function rj({ children: e }) {
+function aj({ children: e }) {
return /* @__PURE__ */ (0, L.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function ij({ term: e, children: t }) {
+function oj({ term: e, children: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0",
children: [/* @__PURE__ */ (0, L.jsx)("dt", {
@@ -33555,7 +33582,7 @@ function ij({ term: e, children: t }) {
})]
});
}
-function aj({ summary: e, defaultOpen: t = !1, children: n }) {
+function sj({ summary: e, defaultOpen: t = !1, children: n }) {
let r = (0, I.useId)(), i = (0, I.useRef)(null), a = (0, I.useRef)(null), o = (0, I.useRef)(!1), [s, c] = (0, I.useState)(t);
return /* @__PURE__ */ (0, L.jsxs)("details", {
ref: (e) => {
@@ -33568,7 +33595,7 @@ function aj({ summary: e, defaultOpen: t = !1, children: n }) {
e.preventDefault(), !(!i.current || !a.current) && (C(i.current, a.current, !s), c(!s));
},
className: "flex w-fit cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [/* @__PURE__ */ (0, L.jsx)(mS, {
+ children: [/* @__PURE__ */ (0, L.jsx)(gS, {
"aria-hidden": !0,
className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
}), e]
@@ -33583,7 +33610,7 @@ function aj({ summary: e, defaultOpen: t = !1, children: n }) {
})]
});
}
-function oj({ name: e }) {
+function cj({ name: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -33592,22 +33619,22 @@ function oj({ name: e }) {
children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })
});
}
-function sj({ mark: e }) {
+function lj({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, L.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, L.jsx)(oj, { name: e });
+ }) : /* @__PURE__ */ (0, L.jsx)(cj, { name: e });
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function cj({ toast: e, mode: t, monitor: n }) {
+function uj({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = kt({
- queryKey: GO,
- queryFn: ({ signal: e }) => KO(e),
- refetchInterval: (e) => ZO(e.state.data, r)
+ queryKey: KO,
+ queryFn: ({ signal: e }) => qO(e),
+ refetchInterval: (e) => QO(e.state.data, r)
}), [a, o] = (0, I.useState)(null), s = (0, I.useRef)(void 0), c = i.data;
return (0, I.useEffect)(() => {
if (!c) return;
@@ -33627,29 +33654,29 @@ function cj({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var lj = [
+var dj = [
{
label: "扫描并补全资料",
- icon: yS,
+ icon: xS,
command: {}
},
{
label: "只扫描",
- icon: CS,
+ icon: TS,
command: { stage: "scan" }
},
{
label: "只采集",
- icon: Xte,
+ icon: Jte,
command: { stage: "collect" }
}
-], uj = Sw(RA, zA, "text-body-2-medium"), dj = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", fj = (e) => {
+], fj = Cw(BA, VA, "text-body-2-medium"), pj = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", mj = (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(",")}。`;
-}, pj = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + fj(e);
-function mj({ busy: e, onRun: t }) {
+}, hj = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + mj(e);
+function gj({ busy: e, onRun: t }) {
let n = (0, I.useRef)(null), [r, i] = (0, I.useState)(!1), a = (n) => {
e || (i(!1), t(n));
};
@@ -33658,14 +33685,14 @@ function mj({ busy: e, onRun: t }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, L.jsx)(G, {
- leadingIcon: yS,
+ leadingIcon: xS,
onClick: () => a({}),
...Y(e),
children: "扫描并补全资料"
}), /* @__PURE__ */ (0, L.jsx)(G, {
ref: n,
iconOnly: !0,
- leadingIcon: fS,
+ leadingIcon: mS,
"aria-label": "更多扫描与采集方式",
"aria-haspopup": "dialog",
"aria-expanded": r,
@@ -33674,19 +33701,19 @@ function mj({ busy: e, onRun: t }) {
e || i(!0);
}
})]
- }), /* @__PURE__ */ (0, L.jsx)(_D, {
+ }), /* @__PURE__ */ (0, L.jsx)(bD, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: LA,
- children: /* @__PURE__ */ (0, L.jsx)(OD, {
+ className: zA,
+ children: /* @__PURE__ */ (0, L.jsx)(jD, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: lj.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, L.jsxs)("button", {
+ children: dj.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
- className: uj,
+ className: fj,
onClick: () => a(n),
children: [/* @__PURE__ */ (0, L.jsx)(t, {
"aria-hidden": !0,
@@ -33696,8 +33723,8 @@ function mj({ busy: e, onRun: t }) {
})
})] });
}
-function hj({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = lae(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = cae(e.notes || {}), c = DO();
+function _j({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = lae(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = cae(e.notes || {}), c = AO();
return /* @__PURE__ */ (0, L.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
@@ -33705,7 +33732,7 @@ function hj({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
e.status === "running" && e.stalled ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "warning",
title: "处理较慢",
- children: dj
+ children: pj
}) : null,
t || e.status === "failed" ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
@@ -33717,7 +33744,7 @@ function hj({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
extra: a ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5",
- children: /* @__PURE__ */ (0, L.jsxs)(aj, {
+ children: /* @__PURE__ */ (0, L.jsxs)(sj, {
summary: a.label,
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "relative",
@@ -33748,7 +33775,7 @@ function hj({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}), a.log ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",
- children: /* @__PURE__ */ (0, L.jsx)(GA, {
+ children: /* @__PURE__ */ (0, L.jsx)(qA, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -33762,13 +33789,13 @@ function hj({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
n?.status === "complete" ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "success",
title: "处理完成",
- children: pj(n)
+ children: hj(n)
}) : null,
e.status !== "running" && s ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
extra: e.issues_log ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",
- children: /* @__PURE__ */ (0, L.jsx)(GA, {
+ children: /* @__PURE__ */ (0, L.jsx)(qA, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -33780,38 +33807,38 @@ function hj({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
]
});
}
-function gj(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = cj(e), o = At({
- mutationFn: (e) => q(WO, e),
+function vj(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = uj(e), o = At({
+ mutationFn: (e) => q(GO, e),
onSuccess: (e) => {
- a(), X.setQueryData(GO, e), X.invalidateQueries({ queryKey: GO });
+ a(), X.setQueryData(KO, e), X.invalidateQueries({ queryKey: KO });
}
});
(0, I.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? K(o.error) : r.isError ? r.data ? XO : K(r.error) : "", l = o.isPending || s.status === "running", u = ek(s), d = (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? K(o.error) : r.isError ? r.data ? ZO : K(r.error) : "", l = o.isPending || s.status === "running", u = tk(s), d = (e) => {
l || (o.reset(), o.mutate(e));
};
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, L.jsx)(WA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(KA, {
layout: "split",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
- /* @__PURE__ */ (0, L.jsx)(IA, {
+ /* @__PURE__ */ (0, L.jsx)(RA, {
href: "/scraping",
size: "small",
- trailingIcon: pS,
+ trailingIcon: hS,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, L.jsx)(IA, {
+ s.candidates ? /* @__PURE__ */ (0, L.jsx)(RA, {
href: "/review",
size: "small",
- trailingIcon: pS,
+ trailingIcon: hS,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, L.jsx)(mj, {
+ /* @__PURE__ */ (0, L.jsx)(gj, {
busy: l,
onRun: d
})
@@ -33819,14 +33846,14 @@ function gj(e) {
children: /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(UA, { children: "扫描与采集" }),
+ /* @__PURE__ */ (0, L.jsx)(GA, { children: "扫描与采集" }),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: toe
+ children: eoe
}),
s.status === "running" ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col gap-1.5",
- children: s.total ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Gw, {
+ children: s.total ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Kw, {
label: u,
value: s.checked || 0,
max: s.total
@@ -33840,11 +33867,11 @@ function gj(e) {
s.total,
" 个视频"
]
- })] }) : /* @__PURE__ */ (0, L.jsx)(Vw, { label: u })
+ })] }) : /* @__PURE__ */ (0, L.jsx)(Hw, { label: u })
}) : null
]
})
- }), /* @__PURE__ */ (0, L.jsx)(hj, {
+ }), /* @__PURE__ */ (0, L.jsx)(_j, {
state: s,
problem: c,
settled: i,
@@ -33860,7 +33887,7 @@ function gj(e) {
}
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function _j(e) {
+function yj(e) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -33874,7 +33901,7 @@ function _j(e) {
})
});
}
-function vj(e) {
+function bj(e) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -33888,7 +33915,7 @@ function vj(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function yj(e, t, n) {
+function xj(e, t, n) {
(0, I.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -33902,7 +33929,7 @@ function yj(e, t, n) {
n
]);
}
-function bj(e, t) {
+function Sj(e, t) {
let n = (0, I.useRef)(!1);
return (0, I.useEffect)(() => {
if (!e) return;
@@ -33916,33 +33943,33 @@ function bj(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var xj = (0, I.createContext)("md");
-function Sj({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var Cj = (0, I.createContext)("md");
+function wj({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, I.useRef)(null), u = (0, I.useRef)(null), [d, f] = (0, I.useState)(!1);
- yj(d, () => f(!1), [l, u]);
- let p = bj(d, l);
- return /* @__PURE__ */ (0, L.jsx)(Xre, {
+ xj(d, () => f(!1), [l, u]);
+ let p = Sj(d, l);
+ return /* @__PURE__ */ (0, L.jsx)(Jre, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: Sw("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)(XT, {
+ className: Cw("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)($T, {
ref: l,
- className: Sw("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
- children: [/* @__PURE__ */ (0, L.jsx)($re, {
- className: Sw("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: Cw("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
+ children: [/* @__PURE__ */ (0, L.jsx)(Zre, {
+ className: Cw("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, L.jsx)(_j, { className: Sw("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, L.jsx)(_D, {
+ }), /* @__PURE__ */ (0, L.jsx)(yj, { className: Cw("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, L.jsx)(bD, {
ref: u,
isNonModal: !0,
offset: 4,
- className: Sw($ae, LA, "p-2", n),
- children: /* @__PURE__ */ (0, L.jsx)(_re, {
+ className: Cw(Qae, zA, "p-2", n),
+ children: /* @__PURE__ */ (0, L.jsx)(hre, {
items: a,
- className: Sw(eoe, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, L.jsx)(xj.Provider, {
+ className: Cw($ae, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, L.jsx)(Cj.Provider, {
value: r,
children: i
})
@@ -33950,19 +33977,19 @@ function Sj({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function Cj({ className: e, children: t, ...n }) {
- let r = (0, I.useContext)(xj);
- return /* @__PURE__ */ (0, L.jsx)(bre, {
+function Tj({ className: e, children: t, ...n }) {
+ let r = (0, I.useContext)(Cj);
+ return /* @__PURE__ */ (0, L.jsx)(vre, {
...n,
- className: (t) => Sw(RA, 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) => Cw(BA, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
children: t
});
}
//#endregion
//#region src/react/background-job.ts
-var wj = 2e3, Tj = (e) => e, Ej = (e, t) => t;
-function Dj(e) {
- let { queryKey: t, jobOf: n = Tj, withJob: r = Ej, idlePollMs: i } = e, [a, o] = (0, I.useState)(!1), [s, c] = (0, I.useState)(null), l = (0, I.useRef)(e);
+var Ej = 2e3, Dj = (e) => e, Oj = (e, t) => t;
+function kj(e) {
+ let { queryKey: t, jobOf: n = Dj, withJob: r = Oj, idlePollMs: i } = e, [a, o] = (0, I.useState)(!1), [s, c] = (0, I.useState)(null), l = (0, I.useRef)(e);
(0, I.useEffect)(() => {
l.current = e;
});
@@ -33971,7 +33998,7 @@ function Dj(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? wj : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? Ej : i ?? !1;
}
}), d = At({
mutationFn: (e) => l.current.start(e),
@@ -34002,32 +34029,32 @@ function Dj(e) {
}
//#endregion
//#region src/react/media-repair/media-repair-card.tsx
-var Oj = (e) => p[e] || e, kj = (e) => X.setQueryData(rk, e);
-function Aj() {
+var Aj = (e) => p[e] || e, jj = (e) => X.setQueryData(ik, e);
+function Mj() {
let e = kt({
- queryKey: rk,
- queryFn: ({ signal: e }) => ak(e),
- refetchInterval: (e) => e.state.data?.status === "running" && wj
- }), t = kt({
queryKey: ik,
- queryFn: ({ signal: e }) => ok(e)
- }), [n, r] = (0, I.useState)(""), i = Kw(), a = e.data ?? fae, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
+ queryFn: ({ signal: e }) => ok(e),
+ refetchInterval: (e) => e.state.data?.status === "running" && Ej
+ }), t = kt({
+ queryKey: ak,
+ queryFn: ({ signal: e }) => sk(e)
+ }), [n, r] = (0, I.useState)(""), i = qw(), a = e.data ?? fae, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
c && h({
title: `修复媒体库「${c.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
confirmLabel: "修复媒体库",
- onConfirm: async () => kj(await q(nk, {
+ onConfirm: async () => jj(await q(rk, {
library: c.id,
restart: !0
}))
});
- }, u = () => void i.run("stop", (e) => q(nk, { stop: !0 }, "POST", e), kj), d = lk(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
+ }, u = () => void i.run("stop", (e) => q(rk, { stop: !0 }, "POST", e), jj), d = uk(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, L.jsx)(WA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(KA, {
layout: "split",
label: "媒体修复",
- footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Sj, {
+ footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(wj, {
"aria-label": "媒体库",
className: "w-48",
selectedKey: c?.id ?? null,
@@ -34035,10 +34062,10 @@ function Aj() {
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: o.map((e) => /* @__PURE__ */ (0, L.jsxs)(Cj, {
+ children: o.map((e) => /* @__PURE__ */ (0, L.jsxs)(Tj, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, L.jsx)(sj, { mark: Oj(e.icon) }), e.name]
+ children: [/* @__PURE__ */ (0, L.jsx)(lj, { mark: Aj(e.icon) }), e.name]
}, e.id))
}), s ? /* @__PURE__ */ (0, L.jsx)(G, {
onClick: u,
@@ -34052,12 +34079,12 @@ function Aj() {
children: /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(UA, { children: "媒体修复" }),
+ /* @__PURE__ */ (0, L.jsx)(GA, { children: "媒体修复" }),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: noe
+ children: toe
}),
- s && a.total ? /* @__PURE__ */ (0, L.jsx)(Gw, {
+ s && a.total ? /* @__PURE__ */ (0, L.jsx)(Kw, {
label: "修复进度",
value: a.checked,
max: a.total
@@ -34081,7 +34108,7 @@ function Aj() {
f && a.missing_tool ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "warning",
title: "缺少 untrunc",
- children: uk(a)
+ children: dk(a)
}) : null,
p ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
@@ -34093,7 +34120,7 @@ function Aj() {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var jj = {
+var Nj = {
md: {
box: "size-4",
glyph: "size-4",
@@ -34107,11 +34134,11 @@ var jj = {
gap: "gap-1.5"
}
};
-function Mj({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = jj[t], c = n || r, l = o && !a;
+function Pj({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = Nj[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
- className: Sw("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? Sw("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : Sw("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: Cw("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? Cw("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : Cw("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
children: /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -34135,36 +34162,36 @@ function Mj({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function Nj({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = jj[n];
- return /* @__PURE__ */ (0, L.jsx)(are, {
+function Fj({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = Nj[n];
+ return /* @__PURE__ */ (0, L.jsx)(rre, {
ref: r,
...i,
- className: (t) => Sw("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Mj, {
+ className: (t) => Cw("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ children: (e) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Pj, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, L.jsx)("span", {
- className: Sw(a.label, "text-text-primary"),
+ className: Cw(a.label, "text-text-primary"),
children: t
})] })
});
}
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
-function Pj({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function Ij({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
- className: Sw("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, L.jsx)(pie, {
+ className: Cw("w-full overflow-x-auto", n),
+ children: /* @__PURE__ */ (0, L.jsx)(die, {
ref: r,
...i,
- className: Sw("bui-table", e === "sm" && "bui-table-sm", t)
+ className: Cw("bui-table", e === "sm" && "bui-table-sm", t)
})
});
}
//#endregion
//#region src/react/components/row-click.ts
-var Fj = [
+var Lj = [
"a",
"button",
"input",
@@ -34177,15 +34204,15 @@ var Fj = [
"[role=\"link\"]",
"[role=\"menu\"]"
].join(",");
-function Ij(e, t) {
+function Rj(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(Fj);
+ let r = n.closest(Lj);
return !r || !t.contains(r) || r === t;
}
//#endregion
//#region src/react/components/data-table-frame.tsx
-function Lj({ children: e, follow: t = !1, onRowClick: n }) {
+function zj({ children: e, follow: t = !1, onRowClick: n }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-board-data-table": !0,
"data-follow-table": t || void 0,
@@ -34193,15 +34220,15 @@ function Lj({ 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 && Ij(e, r) && n(r.dataset.key);
+ r && Rj(e, r) && n(r.dataset.key);
} : void 0,
children: e
});
}
//#endregion
//#region src/react/data-cleanup/link-manager.tsx
-var Rj = ET("unlink"), zj = ET("rotate-cw"), Bj = "站点返回 404 或 410,确认这个地址不存在。", Vj = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Hj = "删除前会逐条重验一次;此操作不可撤销。", Uj = "暂时无法读取进度,正在重新连接…", Wj = (e) => Number(e || 0).toLocaleString();
-function Gj({ label: e, value: t, note: n }) {
+var Bj = kT("unlink"), Vj = kT("rotate-cw"), Hj = "站点返回 404 或 410,确认这个地址不存在。", Uj = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Wj = "删除前会逐条重验一次;此操作不可撤销。", Gj = "暂时无法读取进度,正在重新连接…", Kj = (e) => Number(e || 0).toLocaleString();
+function qj({ label: e, value: t, note: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 flex-col gap-0.5",
children: [
@@ -34220,11 +34247,11 @@ function Gj({ label: e, value: t, note: n }) {
]
});
}
-function Kj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
+function Jj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
if (!t.length) return null;
let o = r ?? [], s = o.length > 0 && o.length === t.length;
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: BA,
+ className: HA,
children: [
/* @__PURE__ */ (0, L.jsxs)("h4", {
className: "mb-1 text-body-semibold text-text-primary",
@@ -34237,13 +34264,13 @@ function Kj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
className: "mb-3 text-caption-1-regular text-text-secondary",
children: n
}),
- /* @__PURE__ */ (0, L.jsx)(Lj, { children: /* @__PURE__ */ (0, L.jsxs)(Pj, {
+ /* @__PURE__ */ (0, L.jsx)(zj, { children: /* @__PURE__ */ (0, L.jsxs)(Ij, {
"aria-label": e,
size: "sm",
- children: [/* @__PURE__ */ (0, L.jsxs)(QD, { children: [
- i ? /* @__PURE__ */ (0, L.jsx)($D, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(tO, { children: [
+ i ? /* @__PURE__ */ (0, L.jsx)(nO, {
id: "pick",
- children: /* @__PURE__ */ (0, L.jsx)(Nj, {
+ children: /* @__PURE__ */ (0, L.jsx)(Fj, {
slot: null,
"aria-label": "全选本次未访问成功的链接",
isSelected: s,
@@ -34251,44 +34278,44 @@ function Kj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
onChange: (e) => i(e ? t.map((e) => e.id) : [])
})
}) : null,
- /* @__PURE__ */ (0, L.jsx)($D, {
+ /* @__PURE__ */ (0, L.jsx)(nO, {
id: "entity",
isRowHeader: !0,
children: "所属"
}),
- /* @__PURE__ */ (0, L.jsx)($D, {
+ /* @__PURE__ */ (0, L.jsx)(nO, {
id: "kind",
children: "类型"
}),
- /* @__PURE__ */ (0, L.jsx)($D, {
+ /* @__PURE__ */ (0, L.jsx)(nO, {
id: "label",
children: "标签"
}),
- /* @__PURE__ */ (0, L.jsx)($D, {
+ /* @__PURE__ */ (0, L.jsx)(nO, {
id: "note",
children: "结果"
}),
- /* @__PURE__ */ (0, L.jsx)($D, {
+ /* @__PURE__ */ (0, L.jsx)(nO, {
id: "url",
children: "地址"
})
- ] }), /* @__PURE__ */ (0, L.jsx)(tO, { children: t.map((e) => /* @__PURE__ */ (0, L.jsxs)(iO, {
+ ] }), /* @__PURE__ */ (0, L.jsx)(iO, { children: t.map((e) => /* @__PURE__ */ (0, L.jsxs)(sO, {
id: e.id,
children: [
- i ? /* @__PURE__ */ (0, L.jsx)(oO, { children: /* @__PURE__ */ (0, L.jsx)(Nj, {
+ i ? /* @__PURE__ */ (0, L.jsx)(lO, { children: /* @__PURE__ */ (0, L.jsx)(Fj, {
slot: null,
"aria-label": `选择 ${e.entity} 的${e.label || e.url}`,
isSelected: o.includes(e.id),
onChange: (t) => i(t ? [...o, e.id] : o.filter((t) => t !== e.id))
}) }) : null,
- /* @__PURE__ */ (0, L.jsx)(oO, { children: e.entity }),
- /* @__PURE__ */ (0, L.jsx)(oO, { children: Vk[e.link_kind] || e.link_kind }),
- /* @__PURE__ */ (0, L.jsx)(oO, { children: e.label || "" }),
- /* @__PURE__ */ (0, L.jsx)(oO, { children: /* @__PURE__ */ (0, L.jsx)("span", {
+ /* @__PURE__ */ (0, L.jsx)(lO, { children: e.entity }),
+ /* @__PURE__ */ (0, L.jsx)(lO, { children: Uk[e.link_kind] || e.link_kind }),
+ /* @__PURE__ */ (0, L.jsx)(lO, { children: e.label || "" }),
+ /* @__PURE__ */ (0, L.jsx)(lO, { children: /* @__PURE__ */ (0, L.jsx)("span", {
className: "tabular-nums text-text-error-primary",
children: e.note
}) }),
- /* @__PURE__ */ (0, L.jsx)(oO, { children: /* @__PURE__ */ (0, L.jsxs)("a", {
+ /* @__PURE__ */ (0, L.jsx)(lO, { children: /* @__PURE__ */ (0, L.jsxs)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer",
@@ -34298,7 +34325,7 @@ function Kj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
"data-middle-truncate": !0,
className: "min-w-0 truncate",
children: e.url
- }), /* @__PURE__ */ (0, L.jsx)(xS, {
+ }), /* @__PURE__ */ (0, L.jsx)(CS, {
"aria-hidden": !0,
className: "size-3.5 shrink-0"
})]
@@ -34310,40 +34337,40 @@ function Kj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
]
});
}
-function qj({ line: e, value: t, total: n }) {
+function Yj({ line: e, value: t, total: n }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
- className: `${BA} flex flex-col gap-1.5`,
- children: n ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Gw, {
+ className: `${HA} flex flex-col gap-1.5`,
+ children: n ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Kw, {
label: e,
value: t || 0,
max: n
}), /* @__PURE__ */ (0, L.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: e
- })] }) : /* @__PURE__ */ (0, L.jsx)(Vw, { label: e })
+ })] }) : /* @__PURE__ */ (0, L.jsx)(Hw, { label: e })
});
}
-function Jj() {
+function Xj() {
let e = kt({
- queryKey: Rk,
- queryFn: ({ signal: e }) => Uk(e)
- }), [t, n] = (0, I.useState)([]), r = Dj({
queryKey: Bk,
- queryFn: ({ signal: e }) => Kk(e),
- start: qk,
+ queryFn: ({ signal: e }) => Gk(e)
+ }), [t, n] = (0, I.useState)([]), r = kj({
+ queryKey: Hk,
+ queryFn: ({ signal: e }) => Jk(e),
+ start: Yk,
onFinish: () => {
X.invalidateQueries({
- queryKey: Rk,
+ queryKey: Bk,
exact: !0
}), X.invalidateQueries({
- queryKey: zk,
+ queryKey: Vk,
exact: !0
});
}
- }), i = Dj({
- queryKey: zk,
- queryFn: ({ signal: e }) => Wk(e),
- start: Gk,
+ }), i = kj({
+ queryKey: Vk,
+ queryFn: ({ signal: e }) => Kk(e),
+ start: qk,
onStarted: () => {
r.dismiss(), n([]);
}
@@ -34373,7 +34400,7 @@ function Jj() {
else if (v) b = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "success",
title: "完成",
- children: Yk(v)
+ children: Zk(v)
});
else if (y) b = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
@@ -34383,7 +34410,7 @@ function Jj() {
else if (i.query.isError && a) b = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
title: "任务状态",
- children: Uj
+ children: Gj
});
else if (a?.status === "failed") b = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
@@ -34393,48 +34420,48 @@ function Jj() {
else if (a && a.status !== "idle") {
let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";
b = /* @__PURE__ */ (0, L.jsxs)("div", {
- className: coe,
+ className: soe,
children: [
- a.status === "running" ? /* @__PURE__ */ (0, L.jsx)(qj, {
- line: Xk(a),
+ a.status === "running" ? /* @__PURE__ */ (0, L.jsx)(Yj, {
+ line: Qk(a),
value: a.checked,
total: a.total
}) : null,
- c ? /* @__PURE__ */ (0, L.jsx)(qj, {
+ c ? /* @__PURE__ */ (0, L.jsx)(Yj, {
line: r.job?.message || "正在重验并删除失效链接…",
value: r.job?.checked,
total: r.job?.total
}) : null,
- /* @__PURE__ */ (0, L.jsx)(Kj, {
+ /* @__PURE__ */ (0, L.jsx)(Jj, {
title: "地址已失效",
items: u,
- hint: Bj
+ hint: Hj
}),
- /* @__PURE__ */ (0, L.jsx)(Kj, {
+ /* @__PURE__ */ (0, L.jsx)(Jj, {
title: "本次未访问成功",
items: d,
- hint: Vj,
+ hint: Uj,
picked: f.length ? t : void 0,
onPick: f.length ? n : void 0,
children: f.length ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "-mx-4 mt-3 -mb-4",
- children: /* @__PURE__ */ (0, L.jsxs)(VA, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
- leadingIcon: zj,
+ children: /* @__PURE__ */ (0, L.jsxs)(UA, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
+ leadingIcon: Vj,
disabled: !t.length,
...Y(s),
onClick: () => g(t),
children: e
}), /* @__PURE__ */ (0, L.jsx)(G, {
- leadingIcon: zj,
+ leadingIcon: Vj,
...Y(s),
onClick: () => g(f.map((e) => e.id)),
children: `全部重试(${f.length})`
})] })
}) : null
}),
- l && u.length ? /* @__PURE__ */ (0, L.jsx)(VA, {
+ l && u.length ? /* @__PURE__ */ (0, L.jsx)(UA, {
tone: "error",
- status: Hj,
+ status: Wj,
children: /* @__PURE__ */ (0, L.jsx)(G, {
variant: "danger",
...Y(c),
@@ -34443,7 +34470,7 @@ function Jj() {
})
}) : null,
l && !u.length && !d.length ? /* @__PURE__ */ (0, L.jsx)("p", {
- className: `${BA} text-body-regular text-notification-success-foreground`,
+ className: `${HA} text-body-regular text-notification-success-foreground`,
children: "全部链接均可访问。"
}) : null
]
@@ -34454,20 +34481,20 @@ function Jj() {
"aria-labelledby": "link-manager-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, L.jsx)(HA, {
+ /* @__PURE__ */ (0, L.jsx)(WA, {
id: "link-manager-title",
children: "链接管理"
}),
- /* @__PURE__ */ (0, L.jsxs)(WA, {
+ /* @__PURE__ */ (0, L.jsxs)(KA, {
layout: "split",
labelledBy: "link-manager-box",
footer: /* @__PURE__ */ (0, L.jsx)(G, {
- leadingIcon: Rj,
+ leadingIcon: Bj,
...Y(s),
onClick: () => g(),
children: s ? "检查中" : l ? "重新检查" : "检查死链"
}),
- children: [/* @__PURE__ */ (0, L.jsx)(UA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(GA, {
id: "link-manager-box",
gap: "small",
children: "站外链接"
@@ -34477,13 +34504,13 @@ function Jj() {
children: K(e.error)
}) : p ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "link-stat-grid mt-4 gap-x-8 gap-y-3",
- children: [/* @__PURE__ */ (0, L.jsx)(Gj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(qj, {
label: "链接总数",
- value: Wj(p.total),
- note: `分布在 ${Wj(p.entities)} 个女优、厂牌与系列`
- }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Gj, {
- label: Vk[e] || e,
- value: Wj(t)
+ value: Kj(p.total),
+ note: `分布在 ${Kj(p.entities)} 个女优、厂牌与系列`
+ }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(qj, {
+ label: Uk[e] || e,
+ value: Kj(t)
}, e))]
}), m ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "mt-4 flex min-w-0 flex-col gap-0.5",
@@ -34506,11 +34533,11 @@ function Jj() {
}
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function Yj({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, L.jsxs)(Qne, {
+function Zj({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, L.jsxs)(Xne, {
"data-label": "true",
...a,
- className: Sw("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: Cw("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
e && /* @__PURE__ */ (0, L.jsx)("span", {
@@ -34518,7 +34545,7 @@ function Yj({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, L.jsx)(ES, {
+ n && /* @__PURE__ */ (0, L.jsx)(DS, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -34527,33 +34554,33 @@ function Yj({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function Xj({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, L.jsx)(nre, {
+function Qj({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, L.jsx)(ere, {
slot: e ? "errorMessage" : "description",
...n,
- className: Sw("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: Cw("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
//#endregion
//#region src/react/boardui/components/base/input/input.tsx
-var Zj = (0, I.createContext)({});
-function Qj({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, L.jsx)(Zj.Provider, {
+var $j = (0, I.createContext)({});
+function eM({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, L.jsx)($j.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, L.jsx)(zie, {
+ children: /* @__PURE__ */ (0, L.jsx)(Lie, {
...a,
"data-input-size": e,
- className: Sw("group flex h-max w-full flex-col items-start gap-1", r),
+ className: Cw("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-Qj.displayName = "TextField";
-var $j = Cw({
+eM.displayName = "TextField";
+var tM = ww({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -34582,44 +34609,44 @@ var $j = Cw({
].join(" "),
icon: "size-5 shrink-0"
});
-function eM({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, I.useContext)(Zj), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, L.jsx)(sre, {
+function nM({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, I.useContext)($j), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, L.jsx)(are, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => Sw($j.field, d ? $j.fieldWithAddonSize[u] : $j.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 }) => Cw(tM.field, d ? tM.fieldWithAddonSize[u] : tM.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
children: /* @__PURE__ */ (0, L.jsxs)("div", {
- className: $j.content,
+ className: tM.content,
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
- className: $j.leftSection,
+ className: tM.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, L.jsx)(t, {
- className: $j.icon,
+ className: tM.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, L.jsx)(lre, {
+ }) : null, /* @__PURE__ */ (0, L.jsx)(sre, {
ref: o,
...c,
- className: Sw($j.input, l.inputClassName, a)
+ className: Cw(tM.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, L.jsx)(n, {
- className: $j.icon,
+ className: tM.icon,
"aria-hidden": !0
}) : null]
})
});
}
-eM.displayName = "InputBase";
-function tM({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
- return /* @__PURE__ */ (0, L.jsx)(Qj, {
+nM.displayName = "InputBase";
+function rM({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
+ return /* @__PURE__ */ (0, L.jsx)(eM, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
- e && /* @__PURE__ */ (0, L.jsx)(Yj, {
+ e && /* @__PURE__ */ (0, L.jsx)(Zj, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, L.jsx)(eM, {
+ /* @__PURE__ */ (0, L.jsx)(nM, {
ref: c,
groupRef: l,
placeholder: r,
@@ -34628,28 +34655,28 @@ function tM({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, L.jsx)(Xj, {
+ t && /* @__PURE__ */ (0, L.jsx)(Qj, {
isInvalid: d,
children: t
})
] })
});
}
-tM.displayName = "Input";
+rM.displayName = "Input";
//#endregion
//#region src/react/data-cleanup/organize-card.tsx
-var nM = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, rM = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", iM = 8;
-function aM({ plan: e }) {
+var iM = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, aM = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", oM = 8;
+function sM({ plan: e }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("ol", {
className: "mt-2 flex min-w-0 flex-col gap-1",
- children: e.rows.slice(0, iM).map((e) => /* @__PURE__ */ (0, L.jsxs)("li", {
+ children: e.rows.slice(0, oM).map((e) => /* @__PURE__ */ (0, L.jsxs)("li", {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, L.jsx)("span", {
"data-middle-truncate": !0,
title: e.current_path,
className: "min-w-0 truncate",
- children: uA(e.current_path)
+ children: fA(e.current_path)
}),
/* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
@@ -34659,7 +34686,7 @@ function aM({ plan: e }) {
"data-middle-truncate": !0,
title: e.target_path,
className: "min-w-0 truncate text-text-primary",
- children: uA(e.target_path)
+ children: fA(e.target_path)
})
]
}, e.current_path))
@@ -34668,10 +34695,10 @@ function aM({ plan: e }) {
children: "只列出前 8 行,完整计划在计划 CSV 里。"
}) : null] });
}
-function oM({ toast: t, failure: n }) {
+function cM({ toast: t, failure: n }) {
let r = kt({
- queryKey: nA,
- queryFn: ({ signal: e }) => rA(e)
+ queryKey: iA,
+ queryFn: ({ signal: e }) => aA(e)
}), i = r.data, a = i?.locations ?? [], [o, s] = (0, I.useState)(""), c = a.some((e) => e.location === o) ? o : a[0]?.location ?? "", l = i?.templates?.[c], [u, d] = (0, I.useState)(null), f = u?.location === c ? u : {
location: c,
file: l?.file ?? "",
@@ -34684,8 +34711,8 @@ function oM({ toast: t, failure: n }) {
file_template: f.file.trim(),
dir_template: f.dir.trim()
}), x = At({
- mutationFn: aA,
- onSuccess: (e, t) => void sA({
+ mutationFn: sA,
+ onSuccess: (e, t) => void lA({
...i?.templates ?? {},
[t.location]: {
file: t.file_template,
@@ -34693,29 +34720,29 @@ function oM({ toast: t, failure: n }) {
}
}),
onError: (e) => {
- let t = lA.test(K(e)) ? "dir" : "file";
+ let t = dA.test(K(e)) ? "dir" : "file";
_(t), (t === "dir" ? y : v).current?.focus();
}
- }), S = Dj({
- queryKey: nA,
- queryFn: ({ signal: e }) => rA(e),
- start: oA,
+ }), S = kj({
+ queryKey: iA,
+ queryFn: ({ signal: e }) => aA(e),
+ start: cA,
jobOf: (e) => e,
- withJob: cA,
+ withJob: uA,
onStarted: () => x.reset(),
onFinish: (e) => {
if (X.invalidateQueries({
- queryKey: nA,
+ queryKey: iA,
exact: !0
}), e.status !== "complete") return;
- let { text: r, failed: i } = fA(e);
+ let { text: r, failed: i } = mA(e);
i ? n("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : t(r.replace(/。$/, ""));
}
}), C = S.running || S.start.isPending, w = x.data, T = Number(w?.counts?.change || 0), E = e[c] || c, D = (i?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), O = () => {
x.isPending || !c || (_(null), x.mutate(b()));
}, k = () => void h({
title: "按模板整理文件",
- body: nM(E),
+ body: iM(E),
confirmLabel: "整理文件",
onConfirm: () => S.start.mutateAsync({
kind: "apply",
@@ -34723,7 +34750,7 @@ function oM({ toast: t, failure: n }) {
})
}), A = () => void h({
title: "回滚上一批整理",
- body: rM,
+ body: aM,
confirmLabel: "回滚整理",
onConfirm: () => S.start.mutateAsync({ kind: "rollback" })
}), j = null, M = S.job, N = S.outcome;
@@ -34731,7 +34758,7 @@ function oM({ toast: t, failure: n }) {
let e = M.message || M.stage || "正在整理文件…";
j = M.total ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, L.jsx)(Gw, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Kw, {
label: e,
value: M.checked || 0,
max: M.total
@@ -34739,14 +34766,14 @@ function oM({ toast: t, failure: n }) {
className: "text-caption-1-regular text-text-secondary",
children: e
})]
- }) : /* @__PURE__ */ (0, L.jsx)(Vw, { label: e });
+ }) : /* @__PURE__ */ (0, L.jsx)(Hw, { label: e });
} else if (N?.status === "failed") j = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "任务失败",
children: N.error || "任务失败"
});
else if (N) {
- let { text: e, failed: t } = fA(N);
+ let { text: e, failed: t } = mA(N);
j = /* @__PURE__ */ (0, L.jsx)(J, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "整理结果",
@@ -34756,16 +34783,16 @@ function oM({ toast: t, failure: n }) {
tone: "error",
title: "整理失败",
children: K(S.start.error)
- }) : x.isPending ? j = /* @__PURE__ */ (0, L.jsx)(Vw, { label: "正在按模板算计划…" }) : x.isError ? j = /* @__PURE__ */ (0, L.jsx)(J, {
+ }) : x.isPending ? j = /* @__PURE__ */ (0, L.jsx)(Hw, { label: "正在按模板算计划…" }) : x.isError ? j = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "模板不可用",
children: K(x.error)
}) : w && (j = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
title: "预览结果",
- children: jae(w)
- }), T ? /* @__PURE__ */ (0, L.jsx)(aM, { plan: w }) : null] }));
- return /* @__PURE__ */ (0, L.jsxs)(WA, {
+ children: Aae(w)
+ }), T ? /* @__PURE__ */ (0, L.jsx)(sM, { plan: w }) : null] }));
+ return /* @__PURE__ */ (0, L.jsxs)(KA, {
layout: "stack",
id: "organize",
labelledBy: "cleanup-organize-title",
@@ -34789,7 +34816,7 @@ function oM({ toast: t, failure: n }) {
}) : null
] }),
children: [
- /* @__PURE__ */ (0, L.jsx)(UA, {
+ /* @__PURE__ */ (0, L.jsx)(GA, {
id: "cleanup-organize-title",
gap: "medium",
children: "整理"
@@ -34809,20 +34836,20 @@ function oM({ toast: t, failure: n }) {
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "mt-3 flex flex-col gap-3",
children: [
- a.length ? /* @__PURE__ */ (0, L.jsx)(Sj, {
+ a.length ? /* @__PURE__ */ (0, L.jsx)(wj, {
"aria-label": "整理哪个来源",
className: "w-fit min-w-25",
selectedKey: c || null,
onSelectionChange: (e) => {
e !== null && (s(String(e)), _(null), x.reset());
},
- children: a.map((t) => /* @__PURE__ */ (0, L.jsxs)(Cj, {
+ children: a.map((t) => /* @__PURE__ */ (0, L.jsxs)(Tj, {
id: t.location,
textValue: e[t.location] || t.location,
- children: [/* @__PURE__ */ (0, L.jsx)(sj, { mark: p[t.location] || "database" }), e[t.location] || t.location]
+ children: [/* @__PURE__ */ (0, L.jsx)(lj, { mark: p[t.location] || "database" }), e[t.location] || t.location]
}, t.location))
}) : null,
- /* @__PURE__ */ (0, L.jsx)(tM, {
+ /* @__PURE__ */ (0, L.jsx)(rM, {
label: "文件名模板",
placeholder: "{number}[ {title}]",
value: f.file,
@@ -34833,7 +34860,7 @@ function oM({ toast: t, failure: n }) {
m({ file: e }), _(null);
}
}),
- /* @__PURE__ */ (0, L.jsx)(tM, {
+ /* @__PURE__ */ (0, L.jsx)(rM, {
label: "目录模板",
placeholder: "留空表示原地改名",
value: f.dir,
@@ -34873,52 +34900,52 @@ function oM({ toast: t, failure: n }) {
}
//#endregion
//#region src/react/data-cleanup/resource-sync-card.tsx
-var sM = ET("git-compare"), doe = ET("rotate-cw"), foe = "暂时无法读取进度,正在重新连接…", cM = "清理失效条目", lM = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", uM = (e) => Number(e || 0).toLocaleString();
+var uoe = kT("git-compare"), doe = kT("rotate-cw"), foe = "暂时无法读取进度,正在重新连接…", lM = "清理失效条目", uM = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", dM = (e) => Number(e || 0).toLocaleString();
function poe({ scan: e }) {
let t = e.cache ?? {
files: 0,
bytes: 0
};
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", {
- className: lM,
+ className: uM,
children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, L.jsx)("article", {
- className: MA(),
- children: /* @__PURE__ */ (0, L.jsx)(NA, {
- label: Iae[e.location] || "媒体来源",
- mark: /* @__PURE__ */ (0, L.jsx)(sj, { mark: p[e.location] ?? "database" }),
+ className: PA(),
+ children: /* @__PURE__ */ (0, L.jsx)(FA, {
+ label: Fae[e.location] || "媒体来源",
+ mark: /* @__PURE__ */ (0, L.jsx)(lj, { mark: p[e.location] ?? "database" }),
aside: /* @__PURE__ */ (0, L.jsx)("span", {
className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",
children: e.online ? "可访问" : "离线,已跳过"
}),
- figure: e.online ? `${uM(e.missing)} 项` : "—",
- meta: Bae(e),
+ figure: e.online ? `${dM(e.missing)} 项` : "—",
+ meta: zae(e),
wrapMeta: !0
})
}, e.location))
}), /* @__PURE__ */ (0, L.jsxs)("div", {
- className: lM,
+ className: uM,
children: [
/* @__PURE__ */ (0, L.jsx)("article", {
- className: MA(),
- children: /* @__PURE__ */ (0, L.jsx)(NA, {
+ className: PA(),
+ children: /* @__PURE__ */ (0, L.jsx)(FA, {
label: "待永久删除",
- figure: `${uM(e.missing)} 项`,
+ figure: `${dM(e.missing)} 项`,
meta: "文件已不在盘上,含回收站"
})
}),
/* @__PURE__ */ (0, L.jsx)("article", {
- className: MA(),
- children: /* @__PURE__ */ (0, L.jsx)(NA, {
+ className: PA(),
+ children: /* @__PURE__ */ (0, L.jsx)(FA, {
label: "空文件夹",
- figure: `${uM(e.empty)} 个`,
+ figure: `${dM(e.empty)} 个`,
meta: "保留来源根目录"
})
}),
/* @__PURE__ */ (0, L.jsx)("article", {
- className: MA(),
- children: /* @__PURE__ */ (0, L.jsx)(NA, {
+ className: PA(),
+ children: /* @__PURE__ */ (0, L.jsx)(FA, {
label: "可清理的缓存",
- figure: `${uM(t.files)} 个`,
+ figure: `${dM(t.files)} 个`,
meta: t.files ? a(t.bytes) : ""
})
})
@@ -34926,38 +34953,38 @@ function poe({ scan: e }) {
})] });
}
function moe({ toast: e }) {
- let t = Dj({
- queryKey: gA,
- queryFn: ({ signal: e }) => vA(e),
- start: Nae,
+ let t = kj({
+ queryKey: vA,
+ queryFn: ({ signal: e }) => bA(e),
+ start: Mae,
onFinish: (t) => {
if (X.invalidateQueries({
- queryKey: TA,
+ queryKey: DA,
exact: !0
}), X.invalidateQueries({
- queryKey: hA,
+ queryKey: _A,
exact: !0
}), t.status !== "complete") return;
- let { done: n, left: r } = xA(t);
- r ? e(`已完成 ${uM(n)} 项,${uM(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
+ let { done: n, left: r } = CA(t);
+ r ? e(`已完成 ${dM(n)} 项,${dM(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
- }), n = Dj({
- queryKey: hA,
- queryFn: ({ signal: e }) => _A(e),
- start: Mae,
+ }), n = kj({
+ queryKey: _A,
+ queryFn: ({ signal: e }) => yA(e),
+ start: jae,
onStarted: () => t.dismiss()
}), r = n.job, i = n.running || n.start.isPending, o = t.running || t.start.isPending, s = r?.status === "complete" || r?.status === "failed", c = i ? "扫描中" : s ? "重新扫描" : "检查文件", l = (e) => void h({
- title: cM,
- body: zae(e),
- confirmLabel: cM,
+ title: lM,
+ body: Rae(e),
+ confirmLabel: lM,
danger: !0,
onConfirm: () => t.start.mutateAsync(e.scan_id || "")
}), u = t.outcome, d = (e) => {
- let t = xA(e).left > 0;
+ let t = CA(e).left > 0;
return /* @__PURE__ */ (0, L.jsx)(J, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "清理结果",
- children: Vae(e, a)
+ children: Bae(e, a)
});
}, f = null;
if (u?.status === "failed") f = /* @__PURE__ */ (0, L.jsx)(J, {
@@ -34966,7 +34993,7 @@ function moe({ toast: e }) {
children: u.error || "任务失败"
});
else if (u) f = d(u);
- else if (t.running) f = /* @__PURE__ */ (0, L.jsx)(Vw, { label: t.job?.message || "正在复核并清理失效条目…" });
+ else if (t.running) f = /* @__PURE__ */ (0, L.jsx)(Hw, { label: t.job?.message || "正在复核并清理失效条目…" });
else if (n.start.isError) f = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "扫描失败",
@@ -34978,17 +35005,17 @@ function moe({ toast: e }) {
children: foe
});
else if (r?.status === "running") {
- let e = Lae(r);
+ let e = Iae(r);
f = /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col gap-1.5 rounded-2lg border border-separator-border px-4 py-3.5",
- children: r.total_sources ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Gw, {
+ children: r.total_sources ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Kw, {
label: e,
value: r.completed_sources || 0,
max: r.total_sources
}), /* @__PURE__ */ (0, L.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: e
- })] }) : /* @__PURE__ */ (0, L.jsx)(Vw, { label: "正在检查本地磁盘和网盘…" })
+ })] }) : /* @__PURE__ */ (0, L.jsx)(Hw, { label: "正在检查本地磁盘和网盘…" })
});
} else if (r?.status === "failed") f = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
@@ -35001,13 +35028,13 @@ function moe({ toast: e }) {
children: "这次检查的结果已经清理,重新扫描可再核对。"
});
else if (r?.status === "complete") {
- let e = Fae(r);
+ let e = Pae(r);
f = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsx)(poe, { scan: r }),
e ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
title: "清理内容",
- children: Rae(r)
+ children: Lae(r)
}) : null,
/* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-wrap items-center justify-end gap-2",
@@ -35015,7 +35042,7 @@ function moe({ toast: e }) {
variant: "danger",
...Y(o),
onClick: () => l(r),
- children: o ? "正在复核并清理…" : cM
+ children: o ? "正在复核并清理…" : lM
}) : /* @__PURE__ */ (0, L.jsx)("p", {
className: "mr-auto text-body-regular text-notification-success-foreground",
children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"
@@ -35032,23 +35059,23 @@ function moe({ toast: e }) {
"aria-labelledby": "resource-sync-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, L.jsx)(HA, {
+ /* @__PURE__ */ (0, L.jsx)(WA, {
id: "resource-sync-title",
children: "资源同步"
}),
- /* @__PURE__ */ (0, L.jsxs)(WA, {
+ /* @__PURE__ */ (0, L.jsxs)(KA, {
layout: "split",
labelledBy: "resource-sync-box",
footer: /* @__PURE__ */ (0, L.jsx)(G, {
"data-resource-scan": !0,
- leadingIcon: s && !i ? doe : sM,
+ leadingIcon: s && !i ? doe : uoe,
...Y(i),
onClick: () => {
i || n.start.mutate();
},
children: c
}),
- children: [/* @__PURE__ */ (0, L.jsx)(UA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(GA, {
id: "resource-sync-box",
gap: "small",
children: "文件与记录核对"
@@ -35067,16 +35094,16 @@ function moe({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/data-cleanup-page.tsx
-function dM(e, t) {
+function fM(e, t) {
return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);
}
-function fM({ section: e, label: t, icon: n, value: r, open: i }) {
+function pM({ section: e, label: t, icon: n, value: r, open: i }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
- className: MA({ interactive: !0 }),
+ className: PA({ interactive: !0 }),
"data-cleanup-go": e,
onClick: () => i(e),
- children: /* @__PURE__ */ (0, L.jsx)(NA, {
+ children: /* @__PURE__ */ (0, L.jsx)(FA, {
label: t,
icon: n,
figure: r.figure,
@@ -35084,10 +35111,10 @@ function fM({ section: e, label: t, icon: n, value: r, open: i }) {
})
});
}
-var hoe = ET("square-check-big"), goe = ET("sparkles"), _oe = ET("file-stack"), voe = ET("file-archive"), yoe = ET("trash"), boe = [
- SA,
- fk,
- FO
+var hoe = kT("square-check-big"), goe = kT("sparkles"), _oe = kT("file-stack"), voe = kT("file-archive"), yoe = kT("trash"), boe = [
+ wA,
+ pk,
+ RO
], xoe = () => {
for (let e of boe) X.invalidateQueries({
queryKey: e,
@@ -35096,68 +35123,68 @@ var hoe = ET("square-check-big"), goe = ET("sparkles"), _oe = ET("file-stack"),
};
function Soe({ toast: e, failure: t, open: n }) {
let r = kt({
- queryKey: SA,
- queryFn: ({ signal: e }) => EA(e)
+ queryKey: wA,
+ queryFn: ({ signal: e }) => OA(e)
}), i = kt({
- queryKey: fk,
- queryFn: ({ signal: e }) => pk(e)
+ queryKey: pk,
+ queryFn: ({ signal: e }) => mk(e)
}), o = kt({
- queryKey: FO,
- queryFn: ({ signal: e }) => IO(e)
+ queryKey: RO,
+ queryFn: ({ signal: e }) => zO(e)
}), s = kt({
- queryKey: CA,
- queryFn: ({ signal: e }) => DA(e)
- }), c = kt({
queryKey: TA,
- queryFn: ({ signal: e }) => OA(e)
+ queryFn: ({ signal: e }) => kA(e)
+ }), c = kt({
+ queryKey: DA,
+ queryFn: ({ signal: e }) => AA(e)
}), l = kt({
- queryKey: MO,
- queryFn: ({ signal: e }) => NO(e)
+ queryKey: FO,
+ queryFn: ({ signal: e }) => IO(e)
}), u = (t) => e(t);
- return /* @__PURE__ */ (0, L.jsxs)(Hw, { children: [
+ return /* @__PURE__ */ (0, L.jsxs)(Uw, { children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
- className: Qae,
+ className: Zae,
children: [
- /* @__PURE__ */ (0, L.jsx)(fM, {
+ /* @__PURE__ */ (0, L.jsx)(pM, {
section: "review",
label: "人工复核",
icon: hoe,
open: n,
- value: dM(r, Gae)
+ value: fM(r, Wae)
}),
- /* @__PURE__ */ (0, L.jsx)(fM, {
+ /* @__PURE__ */ (0, L.jsx)(pM, {
section: "quality",
label: "高清版",
icon: goe,
open: n,
- value: dM(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
+ value: fM(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
}),
- /* @__PURE__ */ (0, L.jsx)(fM, {
+ /* @__PURE__ */ (0, L.jsx)(pM, {
section: "duplicates",
label: "重复文件",
icon: _oe,
open: n,
- value: dM(o, (e) => Number(e.total || 0) ? {
+ value: fM(o, (e) => Number(e.total || 0) ? {
figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,
meta: `可回收 ${a(e.reclaimable || 0)}`
} : { figure: "没有重复内容" })
}),
- /* @__PURE__ */ (0, L.jsx)(fM, {
+ /* @__PURE__ */ (0, L.jsx)(pM, {
section: "ads",
label: "垃圾文件",
icon: voe,
open: n,
- value: dM(s, (e) => ({
+ value: fM(s, (e) => ({
figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,
- meta: Kae(e)
+ meta: Gae(e)
}))
}),
- /* @__PURE__ */ (0, L.jsx)(fM, {
+ /* @__PURE__ */ (0, L.jsx)(pM, {
section: "trash",
label: "回收站",
icon: yoe,
open: n,
- value: dM(c, (e) => ({
+ value: fM(c, (e) => ({
figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,
meta: e.total ? `占用 ${a(e.bytes || 0)}` : ""
}))
@@ -35170,7 +35197,7 @@ function Soe({ toast: e, failure: t, open: n }) {
/* @__PURE__ */ (0, L.jsx)("div", {
id: "libraryProcessing",
className: "scroll-mt-20",
- children: /* @__PURE__ */ (0, L.jsx)(gj, {
+ children: /* @__PURE__ */ (0, L.jsx)(vj, {
toast: u,
monitor: !0,
onComplete: xoe
@@ -35178,21 +35205,21 @@ function Soe({ toast: e, failure: t, open: n }) {
}),
/* @__PURE__ */ (0, L.jsx)("div", {
id: "mediaRepair",
- children: /* @__PURE__ */ (0, L.jsx)(Aj, {})
+ children: /* @__PURE__ */ (0, L.jsx)(Mj, {})
}),
- /* @__PURE__ */ (0, L.jsx)(oM, {
+ /* @__PURE__ */ (0, L.jsx)(cM, {
toast: u,
failure: t
})
]
}),
- /* @__PURE__ */ (0, L.jsx)(Jj, {}),
- yA(l.data) ? /* @__PURE__ */ (0, L.jsx)(moe, { toast: e }) : null
+ /* @__PURE__ */ (0, L.jsx)(Xj, {}),
+ xA(l.data) ? /* @__PURE__ */ (0, L.jsx)(moe, { toast: e }) : null
] });
}
//#endregion
//#region src/react/components/collection-summary.tsx
-function pM({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function mM({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
"data-collection-summary": "",
className: `${i ? "" : "mb-5 "}flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5
@@ -35219,7 +35246,7 @@ function pM({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
}
//#endregion
//#region src/react/components/use-stuck.ts
-function mM(e) {
+function hM(e) {
(0, I.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -35239,7 +35266,7 @@ function mM(e) {
//#region src/react/components/filter-glass.tsx
function Coe({ title: e, children: t }) {
let n = (0, I.useRef)(null);
- return mM(n), /* @__PURE__ */ (0, L.jsxs)("div", {
+ return hM(n), /* @__PURE__ */ (0, L.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -35252,48 +35279,48 @@ function Coe({ title: e, children: t }) {
}), t]
});
}
-function hM({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+function gM({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
let d = (0, I.useRef)(null);
- return mM(d), /* @__PURE__ */ (0, L.jsxs)("div", {
+ return hM(d), /* @__PURE__ */ (0, L.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
"data-filter-glass": !0,
"data-glass-pane": "",
...c,
- className: Sw("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
+ className: Cw("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
children: [
s,
/* @__PURE__ */ (0, L.jsx)("div", {
role: "group",
"aria-label": t,
"data-filter-row": "top",
- className: Sw("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
+ className: Cw("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
children: n
}),
/* @__PURE__ */ (0, L.jsx)("div", {
ref: u,
"data-filter-row": "bottom",
"aria-busy": l || void 0,
- className: Sw("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
+ className: Cw("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
})
]
});
}
var woe = "flex h-7.5 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
-function gM({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+function _M({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: Sw(woe, r),
+ className: Cw(woe, r),
onClick: n,
children: e
});
}
var Toe = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none hover:border-(--glass-rim) hover:bg-(--glass-pick-fill) focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-function _M({ children: e, onPress: t, busy: n = !1 }) {
+function vM({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
className: Toe,
@@ -35307,25 +35334,25 @@ function _M({ children: e, onPress: t, busy: n = !1 }) {
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var Eoe = ET("play"), Doe = ET("file-stack"), Ooe = Rw({
+var Eoe = kT("play"), Doe = kT("file-stack"), Ooe = zw({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
-}), vM = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", yM = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", bM = "font-mono text-caption-1-regular leading-5 text-text-secondary", xM = () => {
+}), yM = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", bM = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", xM = "font-mono text-caption-1-regular leading-5 text-text-secondary", SM = () => {
X.invalidateQueries({
- queryKey: FO,
+ queryKey: RO,
exact: !0
}), X.invalidateQueries({
- queryKey: TA,
+ queryKey: DA,
exact: !0
});
};
function koe(e) {
return e.identical ? /* @__PURE__ */ (0, L.jsx)("span", {
- className: `${yM} text-(--keep)`,
+ className: `${bM} text-(--keep)`,
children: "sha1 一致"
}) : /* @__PURE__ */ (0, L.jsx)("span", {
- className: `${yM} text-text-secondary`,
+ className: `${bM} text-text-secondary`,
children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"
});
}
@@ -35363,33 +35390,33 @@ function Aoe({ file: t, openItem: n }) {
}), t.is_largest || t.is_longest ? /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex flex-none gap-1",
children: [t.is_largest ? /* @__PURE__ */ (0, L.jsx)("i", {
- className: `${vM} not-italic bg-background-primary-hover text-text-secondary`,
+ className: `${yM} not-italic bg-background-primary-hover text-text-secondary`,
children: "最大"
}) : null, t.is_longest ? /* @__PURE__ */ (0, L.jsx)("i", {
- className: `${vM} not-italic bg-(--keep)/22 text-(--keep)`,
+ className: `${yM} not-italic bg-(--keep)/22 text-(--keep)`,
children: "最长"
}) : null]
}) : null]
}),
/* @__PURE__ */ (0, L.jsxs)("span", {
- className: `${bM} flex min-w-0 items-center gap-1.5`,
- children: [/* @__PURE__ */ (0, L.jsx)(sj, { mark: p[t.location] || "database" }), /* @__PURE__ */ (0, L.jsx)("span", {
+ className: `${xM} flex min-w-0 items-center gap-1.5`,
+ children: [/* @__PURE__ */ (0, L.jsx)(lj, { mark: p[t.location] || "database" }), /* @__PURE__ */ (0, L.jsx)("span", {
className: "whitespace-nowrap",
children: e[t.location] || t.location || t.drive
})]
}),
/* @__PURE__ */ (0, L.jsx)("span", {
- className: bM,
+ className: xM,
children: a(t.size || 0)
}),
/* @__PURE__ */ (0, L.jsx)("span", {
- className: bM,
+ className: xM,
children: i(t.duration)
}),
/* @__PURE__ */ (0, L.jsx)("span", {
"data-middle-truncate": !0,
title: t.path ?? "",
- className: `${bM} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
+ className: `${xM} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
children: t.path ?? ""
})
]
@@ -35397,21 +35424,21 @@ function Aoe({ file: t, openItem: n }) {
}
function joe({ openItem: t, toast: n, failure: r }) {
let i = kt({
+ queryKey: RO,
+ queryFn: ({ signal: e }) => zO(e)
+ }), o = kt({
queryKey: FO,
queryFn: ({ signal: e }) => IO(e)
- }), o = kt({
- queryKey: MO,
- queryFn: ({ signal: e }) => NO(e)
}), [s, c] = (0, I.useState)(""), l = At({
- mutationFn: (e) => UO(e, "dispose"),
+ mutationFn: (e) => WO(e, "dispose"),
onSuccess: (e, t) => {
- xM(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {
+ SM(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {
try {
- await UO(t, "restore");
+ await WO(t, "restore");
} catch (e) {
r("撤销移入回收站", e);
} finally {
- xM();
+ SM();
}
} });
},
@@ -35425,12 +35452,12 @@ function joe({ openItem: t, toast: n, failure: r }) {
children: i.error ? K(i.error) : "读取重复文件失败"
})
});
- let d = u.groups ?? [], f = iae(o.data), p = ({ groups: e, keep: t, key: n }) => {
+ let d = u.groups ?? [], f = nae(o.data), p = ({ groups: e, keep: t, key: n }) => {
if (l.isPending) return;
- let r = VO(e, t);
+ let r = oae(e, t);
r.length && h({
title: "移入回收站",
- body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${RO[t] ?? RO.largest}。文件共 ${a(HO(e, r))},记录可从回收站还原。`,
+ body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${BO[t] ?? BO.largest}。文件共 ${a(sae(e, r))},记录可从回收站还原。`,
confirmLabel: "移入回收站",
onConfirm: () => (c(n), l.mutateAsync(r))
});
@@ -35438,7 +35465,7 @@ function joe({ openItem: t, toast: n, failure: r }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "mx-auto w-full max-w-board pb-10.5",
children: [
- /* @__PURE__ */ (0, L.jsx)(pM, {
+ /* @__PURE__ */ (0, L.jsx)(mM, {
label: "重复内容",
figure: `${Number(u.total || 0).toLocaleString()} 组`,
detail: `${u.files} 个文件 · 可回收 ${a(u.reclaimable)}`
@@ -35446,7 +35473,7 @@ function joe({ openItem: t, toast: n, failure: r }) {
d.length ? /* @__PURE__ */ (0, L.jsxs)(Coe, {
title: "批量保留",
children: [
- /* @__PURE__ */ (0, L.jsx)(_M, {
+ /* @__PURE__ */ (0, L.jsx)(vM, {
busy: s === "all:largest",
onPress: () => p({
groups: d,
@@ -35455,7 +35482,7 @@ function joe({ openItem: t, toast: n, failure: r }) {
}),
children: "全部保留最大"
}),
- /* @__PURE__ */ (0, L.jsx)(_M, {
+ /* @__PURE__ */ (0, L.jsx)(vM, {
busy: s === "all:longest",
onPress: () => p({
groups: d,
@@ -35464,7 +35491,7 @@ function joe({ openItem: t, toast: n, failure: r }) {
}),
children: "全部保留最长"
}),
- BO(d, f).map((t) => /* @__PURE__ */ (0, L.jsx)(_M, {
+ UO(d, f).map((t) => /* @__PURE__ */ (0, L.jsx)(vM, {
busy: s === `all:${t}`,
onPress: () => p({
groups: d,
@@ -35501,7 +35528,7 @@ function joe({ openItem: t, toast: n, failure: r }) {
}),
koe(n),
n.cross_drive ? /* @__PURE__ */ (0, L.jsx)("span", {
- className: `${yM} text-text-secondary`,
+ className: `${bM} text-text-secondary`,
children: `跨盘 ${n.drives.join(" ")}`
}) : null,
/* @__PURE__ */ (0, L.jsxs)("span", {
@@ -35529,7 +35556,7 @@ function joe({ openItem: t, toast: n, failure: r }) {
}),
children: "留最长"
}),
- zO(n.files, f).map((t) => /* @__PURE__ */ (0, L.jsx)(G, {
+ HO(n.files, f).map((t) => /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "small",
...m(o(t)),
@@ -35559,7 +35586,7 @@ function joe({ openItem: t, toast: n, failure: r }) {
openItem: t
}, e.id)) })]
}, `${n.code}-${r}`);
- }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
icon: Doe,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
@@ -35569,7 +35596,7 @@ function joe({ openItem: t, toast: n, failure: r }) {
}
//#endregion
//#region src/react/components/segmented.tsx
-var SM = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", CM = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Moe = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", wM = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", TM = "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)";
+var CM = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", wM = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Moe = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", TM = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", EM = "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)";
//#endregion
//#region src/react/components/use-view-glide.ts
function Noe(e, t) {
@@ -35588,7 +35615,7 @@ function Noe(e, t) {
h: e.offsetHeight
};
}
-function EM(e, t, n, r) {
+function DM(e, t, n, r) {
let i = (0, I.useRef)(null), a = (0, I.useCallback)((r, a) => {
let o = e.current, s = t.current, c = o?.parentElement;
if (!o) return;
@@ -35630,19 +35657,19 @@ function EM(e, t, n, r) {
}
//#endregion
//#region src/react/entity-filter/entity-filter.ts
-var Poe = (e) => e === "videos", DM = () => /* @__PURE__ */ (0, L.jsx)("span", {
+var Poe = (e) => e === "videos", OM = () => /* @__PURE__ */ (0, L.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
});
function Foe(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Poe(t), u = (0, I.useRef)(null), d = (0, I.useRef)(null), f = (0, I.useRef)(null), p = (0, I.useRef)(null), m = (0, I.useRef)(null), h = (0, I.useRef)(null), g = (0, I.useRef)(null), _ = EM(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = EM(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Poe(t), u = (0, I.useRef)(null), d = (0, I.useRef)(null), f = (0, I.useRef)(null), p = (0, I.useRef)(null), m = (0, I.useRef)(null), h = (0, I.useRef)(null), g = (0, I.useRef)(null), _ = DM(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = DM(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
return (0, I.useEffect)(() => {
c.wireDrag(h.current), c.wireScroller(m.current), c.wireDrag(g.current);
}, [c]), /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Loe, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, L.jsx)(hM, {
+ }), /* @__PURE__ */ (0, L.jsx)(gM, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -35668,7 +35695,7 @@ function Foe(e) {
row: p,
glide: v,
onView: s.setView
- }), l ? /* @__PURE__ */ (0, L.jsx)(DM, {}) : null] }) : null, /* @__PURE__ */ (0, L.jsxs)("div", {
+ }), l ? /* @__PURE__ */ (0, L.jsx)(OM, {}) : null] }) : null, /* @__PURE__ */ (0, L.jsxs)("div", {
ref: m,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -35688,11 +35715,11 @@ function Foe(e) {
r !== e.k && s.setState(e.k);
},
children: e.label
- }, e.k)), /* @__PURE__ */ (0, L.jsx)(DM, {})]
+ }, e.k)), /* @__PURE__ */ (0, L.jsx)(OM, {})]
}), /* @__PURE__ */ (0, L.jsx)("div", {
ref: h,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, L.jsxs)(gM, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, L.jsxs)(_M, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -35806,21 +35833,21 @@ function zoe({ text: e, busy: t }) {
}) : e
});
}
-function OM({ label: e, value: t, options: n, onChange: r }) {
- return /* @__PURE__ */ (0, L.jsx)(FD, {
+function kM({ label: e, value: t, options: n, onChange: r }) {
+ return /* @__PURE__ */ (0, L.jsx)(RD, {
"aria-label": e,
orientation: "horizontal",
value: t,
onChange: r,
"data-entity-layout": "",
- className: wM,
+ className: TM,
children: n.map(([e, t, n]) => {
- let r = ET(n);
- return /* @__PURE__ */ (0, L.jsx)(ID, {
+ let r = kT(n);
+ return /* @__PURE__ */ (0, L.jsx)(zD, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: TM,
+ className: EM,
children: /* @__PURE__ */ (0, L.jsx)("span", {
title: t,
className: "contents",
@@ -35830,7 +35857,7 @@ function OM({ label: e, value: t, options: n, onChange: r }) {
})
});
}
-function kM({ onPress: e, busy: t = !1 }) {
+function AM({ onPress: e, busy: t = !1 }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
"data-entity-batch": "",
@@ -35848,15 +35875,15 @@ function Boe({ head: e, actions: t }) {
return /* @__PURE__ */ (0, L.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, L.jsx)(kM, { onPress: () => void t.reshuffle() }),
- e.jav ? /* @__PURE__ */ (0, L.jsx)(OM, {
+ /* @__PURE__ */ (0, L.jsx)(AM, { onPress: () => void t.reshuffle() }),
+ e.jav ? /* @__PURE__ */ (0, L.jsx)(kM, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
e.sorts.map((e) => {
- let n = ET(e.dir === "asc" ? "arrow-up" : "arrow-down");
+ let n = kT(e.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@ -35877,13 +35904,13 @@ function Voe({ head: e, actions: t, helpers: n }) {
}, [n, o]), /* @__PURE__ */ (0, L.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, L.jsx)(kM, {
+ e.shuffle ? /* @__PURE__ */ (0, L.jsx)(AM, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, L.jsx)(OM, {
+ /* @__PURE__ */ (0, L.jsx)(kM, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -35899,36 +35926,36 @@ function Voe({ head: e, actions: t, helpers: n }) {
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var Hoe = "/api/avatar-choices", AM = "/api/avatar-pick", Uoe = "/api/avatar-code-cover", Woe = "/avatar-choice", jM = (e, t) => [
+var Hoe = "/api/avatar-choices", jM = "/api/avatar-pick", Uoe = "/api/avatar-code-cover", Woe = "/avatar-choice", MM = (e, t) => [
"avatar-choices",
e,
t
-], MM = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, NM = (e, t, n) => `${Woe}${MM(e, t)}&ref=${encodeURIComponent(n)}`, Goe = (e, t, n) => Aw(Hoe + MM(e, t), n), Koe = (e) => q(Uoe, { code: e });
-function PM(e, t, n) {
+], NM = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, PM = (e, t, n) => `${Woe}${NM(e, t)}&ref=${encodeURIComponent(n)}`, Goe = (e, t, n) => jw(Hoe + NM(e, t), n), Koe = (e) => q(Uoe, { code: e });
+function FM(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? Uie(e.focus, t, n) : bO(t, n);
+ return e.focus && r ? Vie(e.focus, t, n) : CO(t, n);
}
-var qoe = (e) => e.crop && yO({
+var qoe = (e) => e.crop && SO({
width: e.width,
height: e.height
});
async function Joe(e, t, n) {
if (!("file" in n)) {
- await q(AM, {
+ await q(jM, {
kind: e,
id: t,
...n
});
return;
}
- let r = n.file, i = await fetch(`${AM}${MM(e, t)}&name=${encodeURIComponent(r.name)}`, {
+ let r = n.file, i = await fetch(`${jM}${NM(e, t)}&name=${encodeURIComponent(r.name)}`, {
method: "POST",
credentials: "same-origin",
body: r
});
if (i.ok) return;
let a = await i.json().catch(() => null);
- throw new Ow(a?.error || `请求失败(${i.status})`, i.status, a);
+ throw new kw(a?.error || `请求失败(${i.status})`, i.status, a);
}
function Yoe(e, t) {
if (!t) return e;
@@ -35939,7 +35966,7 @@ var Xoe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor
function Zoe(e) {
return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${Xoe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var FM = (e) => e.cast > 1, Qoe = (e) => FM(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, $oe = {
+var IM = (e) => e.cast > 1, Qoe = (e) => IM(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, $oe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
@@ -35952,7 +35979,7 @@ function ese(e) {
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var tse = (e) => `${$oe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (FM(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), nse = 8, rse = 3 / 4;
+var tse = (e) => `${$oe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (IM(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), nse = 8, rse = 3 / 4;
function ise({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, I.useState)(!1);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", {
@@ -35963,12 +35990,12 @@ function ise({ kind: e, entityId: t, name: n, onPicked: r }) {
"aria-label": `更换${n}的头像`,
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",
- children: /* @__PURE__ */ (0, L.jsx)(Wte, {
+ children: /* @__PURE__ */ (0, L.jsx)(Hte, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, L.jsx)(TO, {
+ }), /* @__PURE__ */ (0, L.jsx)(OO, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
@@ -35983,13 +36010,13 @@ function ise({ kind: e, entityId: t, name: n, onPicked: r }) {
})] });
}
function ase({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, I.useRef)(null), o = DO(), [s, c] = (0, I.useState)(""), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(null), h = jM(e, t), g = (0, I.useRef)(!1), _ = kt({
+ let a = (0, I.useRef)(null), o = AO(), [s, c] = (0, I.useState)(""), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(null), h = MM(e, t), g = (0, I.useRef)(!1), _ = kt({
queryKey: h,
queryFn: ({ signal: n }) => Goe(e, t, n),
retryOnMount: !0
});
(0, I.useEffect)(() => () => {
- g.current && X.removeQueries({ queryKey: jM(e, t) });
+ g.current && X.removeQueries({ queryKey: MM(e, t) });
}, [e, t]);
let v = At({
mutationFn: (n) => Joe(e, t, n),
@@ -36008,17 +36035,17 @@ function ase({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, L.jsx)(EO, { children: /* @__PURE__ */ (0, L.jsx)(zS, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, L.jsx)(kO, { children: /* @__PURE__ */ (0, L.jsx)(BS, { className: "size-6" }) }),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(QT, {
+ children: [/* @__PURE__ */ (0, L.jsx)(tE, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: p ? "框出头像那一块" : "更换头像"
- }), !p && S.length ? /* @__PURE__ */ (0, L.jsxs)(Tw, {
+ }), !p && S.length ? /* @__PURE__ */ (0, L.jsxs)(Ew, {
color: "soft",
children: [S.length, " 张可选"]
}) : null]
@@ -36037,8 +36064,8 @@ function ase({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, L.jsx)(hO, {
- icon: _S,
+ /* @__PURE__ */ (0, L.jsx)(vO, {
+ icon: yS,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -36088,7 +36115,7 @@ function ase({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
/* @__PURE__ */ (0, L.jsx)(ose, {
- src: NM(e, t, n.ref),
+ src: PM(e, t, n.ref),
choice: n
}),
/* @__PURE__ */ (0, L.jsx)("span", {
@@ -36097,15 +36124,15 @@ function ase({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
n.current ? /* @__PURE__ */ (0, L.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, L.jsx)(Tw, {
+ children: /* @__PURE__ */ (0, L.jsx)(Ew, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- FM(n) ? /* @__PURE__ */ (0, L.jsx)("span", {
+ IM(n) ? /* @__PURE__ */ (0, L.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, L.jsxs)(Tw, {
+ children: /* @__PURE__ */ (0, L.jsxs)(Ew, {
variant: "caption",
color: "gray",
children: [n.cast, " 人"]
@@ -36124,7 +36151,7 @@ function ase({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, L.jsx)(tM, {
+ children: /* @__PURE__ */ (0, L.jsx)(rM, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -36159,7 +36186,7 @@ function ase({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 items-center gap-2",
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, L.jsx)(tM, {
+ children: /* @__PURE__ */ (0, L.jsx)(rM, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -36187,7 +36214,7 @@ function ose({ src: e, choice: t }) {
let a = {
width: t.width,
height: t.height
- }, o = qoe(t) ? qie(PM(t, a, rse), a) : null, s = r ? !0 : void 0;
+ }, o = qoe(t) ? Gie(FM(t, a, rse), a) : null, s = r ? !0 : void 0;
return /* @__PURE__ */ (0, L.jsxs)("span", {
className: "relative block w-full aspect-avatar-choice overflow-hidden",
children: [/* @__PURE__ */ (0, L.jsx)("img", {
@@ -36213,22 +36240,22 @@ function ose({ src: e, choice: t }) {
});
}
function sse({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, I.useState)(o[0]), [l, u] = (0, I.useState)(null), [d, f] = (0, I.useState)(null), p = NM(e, t, s), m = DO();
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, I.useState)(o[0]), [l, u] = (0, I.useState)(null), [d, f] = (0, I.useState)(null), p = PM(e, t, s), m = AO();
function h(e) {
c(e), u(null), f(null);
}
- let g = d && l ? Kie(d, l) : null;
+ let g = d && l ? Wie(d, l) : null;
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {
ref: m,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: [/* @__PURE__ */ (0, L.jsx)(kO, {
+ children: [/* @__PURE__ */ (0, L.jsx)(MO, {
src: p,
aspect: 1,
box: d,
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), yO(e) && f(s === n.ref ? PM(n, e, 1) : bO(e, 1));
+ u(e), SO(e) && f(s === n.ref ? FM(n, e, 1) : CO(e, 1));
},
onBox: f
}), o.length > 1 ? /* @__PURE__ */ (0, L.jsx)("div", {
@@ -36280,7 +36307,7 @@ var cse = {
"text-aa": 1.435,
"mark-javdb": 326 / 111
};
-function IM({ name: e }) {
+function LM({ name: e }) {
let t = cse[e];
return /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24",
@@ -36291,19 +36318,19 @@ function IM({ name: e }) {
}
//#endregion
//#region src/react/entity-hero/hero-pop.tsx
-function LM(e, t) {
+function RM(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 RM = (e) => !!e?.isConnected && e.matches(":popover-open");
-function zM(e, t, n, r) {
+var zM = (e) => !!e?.isConnected && e.matches(":popover-open");
+function BM(e, t, n, r) {
let i = (0, I.useRef)(r);
i.current = r, (0, I.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && RM(n.current) ? LM(t.current, n.current) : i.current();
+ t.current && zM(n.current) ? RM(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -36317,17 +36344,17 @@ function zM(e, t, n, r) {
n
]);
}
-function BM({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function VM({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, I.useRef)(null), s = (0, I.useRef)(null), [c, l] = (0, I.useState)(!1), u = (0, I.useRef)(!1), d = (0, I.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, RM(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, zM(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), !(!s.current || !o.current || RM(s.current)) && (s.current.showPopover(), LM(o.current, s.current), l(!0));
+ clearTimeout(d.current), !(!s.current || !o.current || zM(s.current)) && (s.current.showPopover(), RM(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 zM(c, o, s, f), (0, I.useEffect)(() => {
+ return BM(c, o, s, f), (0, I.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -36353,7 +36380,7 @@ function BM({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && RM(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && zM(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
@@ -36373,14 +36400,14 @@ function BM({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}
function lse({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, I.useRef)(null), a = (0, I.useRef)(null), o = (0, I.useRef)(null), [s, c] = (0, I.useState)(!1), l = (0, I.useRef)(!1), u = () => {
- RM(o.current) && o.current.hidePopover(), c(!1);
+ zM(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- l.current || !o.current || !i.current || RM(o.current) || (o.current.showPopover(), LM(i.current, o.current), c(!0));
+ l.current || !o.current || !i.current || zM(o.current) || (o.current.showPopover(), RM(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return zM(s, i, o, () => c(!1)), (0, I.useEffect)(() => {
- i.current && RM(o.current) && LM(i.current, o.current);
+ return BM(s, i, o, () => c(!1)), (0, I.useEffect)(() => {
+ i.current && zM(o.current) && RM(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, L.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -36389,7 +36416,7 @@ function lse({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, L.jsx)(IM, { name: "rss" }),
+ /* @__PURE__ */ (0, L.jsx)(LM, { name: "rss" }),
/* @__PURE__ */ (0, L.jsx)("input", {
ref: a,
type: "checkbox",
@@ -36428,25 +36455,25 @@ function use({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, I.useState)(!1), o = (0, I.useRef)(null);
return (0, I.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, L.jsxs)(Are, {
+ }, []), /* @__PURE__ */ (0, L.jsxs)(Ore, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, L.jsx)(XT, {
+ children: [/* @__PURE__ */ (0, L.jsx)($T, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, L.jsx)(IM, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, L.jsx)(_D, {
+ children: /* @__PURE__ */ (0, L.jsx)(LM, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, L.jsx)(bD, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: LA,
+ className: zA,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, L.jsxs)(Mre, {
+ children: /* @__PURE__ */ (0, L.jsxs)(Are, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, L.jsx)(wD, {
+ /* @__PURE__ */ (0, L.jsx)(DD, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -36454,20 +36481,20 @@ function use({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, L.jsxs)(ED, {
+ children: t.map((e) => /* @__PURE__ */ (0, L.jsxs)(kD, {
id: e,
textValue: e,
"data-namepick-name": e,
- children: [/* @__PURE__ */ (0, L.jsx)(IM, { name: "check" }), /* @__PURE__ */ (0, L.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, L.jsx)(LM, { name: "check" }), /* @__PURE__ */ (0, L.jsx)("span", { children: e })]
}, e))
}),
- /* @__PURE__ */ (0, L.jsx)(fre, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, L.jsx)(wD, { children: /* @__PURE__ */ (0, L.jsxs)(ED, {
+ /* @__PURE__ */ (0, L.jsx)(ure, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, L.jsx)(DD, { children: /* @__PURE__ */ (0, L.jsxs)(kD, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, L.jsx)(IM, { name: "plus" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, L.jsx)(LM, { name: "plus" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "添加别名…" })]
}) })
]
})
@@ -36478,7 +36505,7 @@ var dse = (e) => e === "studio" || e === "agency", fse = (e) => e === "performer
function mse(e) {
return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);
}
-function VM(e) {
+function HM(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0
@@ -36489,13 +36516,13 @@ function VM(e) {
linked: !1
} : null;
}
-function HM(e, t) {
+function UM(e, t) {
let n = u(e, "performer"), r = o(t);
return r && [e.label, n].map(o).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var UM = (e) => ({ site: c(e) });
+var WM = (e) => ({ site: c(e) });
function hse(e, n) {
- let r = VM(e)?.name || "", i = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+ let r = HM(e)?.name || "", i = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -36505,7 +36532,7 @@ function hse(e, n) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${HM(e, r)} · ${t}`
+ title: `${UM(e, r)} · ${t}`
};
}
let i = e.url || "";
@@ -36516,8 +36543,8 @@ function hse(e, n) {
if (n === "performer" && e.link_kind !== "social") return {
type: "icon",
url: i,
- title: HM(e, r),
- mark: UM(e)
+ title: UM(e, r),
+ mark: WM(e)
};
if (e.link_kind === "social") {
let n = t(i);
@@ -36525,7 +36552,7 @@ function hse(e, n) {
type: "icon",
url: i,
title: e.label || "",
- mark: n ? { brand: n } : UM(e)
+ mark: n ? { brand: n } : WM(e)
};
}
return {
@@ -36533,12 +36560,12 @@ function hse(e, n) {
url: i,
title: e.label || "",
text: u(e, n, a),
- mark: UM(e)
+ mark: WM(e)
};
});
return [...i, ...o];
}
-var WM = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+var GM = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
function gse(e) {
if (!e) return [];
let t = [];
@@ -36615,7 +36642,7 @@ function vse(e) {
//#endregion
//#region src/react/entity-hero/entity-hero-page.tsx
function yse({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o, helpers: s }) {
- let c = fse(e), l = dse(e), u = e === "performer" ? gse(n.profile) : [], d = hse(n, e), f = WM(n), p = e === "agency" ? [] : n.related_performers || [], m = (0, I.useRef)(null), h = (0, I.useRef)(null);
+ let c = fse(e), l = dse(e), u = e === "performer" ? gse(n.profile) : [], d = hse(n, e), f = GM(n), p = e === "agency" ? [] : n.related_performers || [], m = (0, I.useRef)(null), h = (0, I.useRef)(null);
return (0, I.useEffect)(() => {
s.wireScroller(m.current);
}, [s, d.length]), (0, I.useEffect)(() => {
@@ -36723,7 +36750,7 @@ function bse({ kind: e, name: t, helpers: n, people: i, company: a }) {
});
}
function xse({ kind: e, entity: t, actions: r }) {
- let i = VM(t), a = (e, t) => (n) => {
+ let i = HM(t), a = (e, t) => (n) => {
n.preventDefault(), r.openEntity(e, t);
}, o = i ? i.linked ? /* @__PURE__ */ (0, L.jsx)("a", {
href: n("agency", i.name),
@@ -36739,23 +36766,23 @@ function xse({ kind: e, entity: t, actions: r }) {
/* @__PURE__ */ (0, L.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, L.jsx)(IM, { name: "film" }), /* @__PURE__ */ (0, L.jsx)("span", { children: s })]
+ children: [/* @__PURE__ */ (0, L.jsx)(LM, { name: "film" }), /* @__PURE__ */ (0, L.jsx)("span", { children: s })]
}),
o ? /* @__PURE__ */ (0, L.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, L.jsx)(IM, { name: "briefcase" }), /* @__PURE__ */ (0, L.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, L.jsx)(LM, { name: "briefcase" }), /* @__PURE__ */ (0, L.jsx)("span", { children: o })]
}) : null,
e ? /* @__PURE__ */ (0, L.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, L.jsx)(IM, { name: "id-card" }),
+ /* @__PURE__ */ (0, L.jsx)(LM, { name: "id-card" }),
/* @__PURE__ */ (0, L.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: e.names.map((e, t) => /* @__PURE__ */ (0, L.jsx)("span", { children: e }, t))
}),
- e.rest > 0 ? /* @__PURE__ */ (0, L.jsx)(BM, {
+ e.rest > 0 ? /* @__PURE__ */ (0, L.jsx)(VM, {
id: "entityAliasPop",
hook: "alias",
rest: e.rest,
@@ -36803,7 +36830,7 @@ function Sse({ label: e, names: t }) {
})] });
}
function Cse({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("dt", { children: [/* @__PURE__ */ (0, L.jsx)(IM, { name: e }), t] }), /* @__PURE__ */ (0, L.jsx)("dd", {
+ return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("dt", { children: [/* @__PURE__ */ (0, L.jsx)(LM, { name: e }), t] }), /* @__PURE__ */ (0, L.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
@@ -36814,7 +36841,7 @@ function wse({ tags: e }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, L.jsx)("span", {
"data-fact-tag": "",
children: e
- }, e)), n ? /* @__PURE__ */ (0, L.jsx)(BM, {
+ }, e)), n ? /* @__PURE__ */ (0, L.jsx)(VM, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -36829,10 +36856,10 @@ function wse({ tags: e }) {
})
}) : null] });
}
-function GM({ mark: e }) {
+function KM({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, L.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, L.jsx)(IM, { name: e.brand })
+ children: /* @__PURE__ */ (0, L.jsx)(LM, { name: e.brand })
});
let t = s("globe") + ("site" in e ? `<img src="${r(e.site)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, L.jsx)("span", {
@@ -36849,19 +36876,19 @@ function Tse({ link: e }) {
rel: "noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, L.jsx)(GM, { mark: e.mark })
+ children: /* @__PURE__ */ (0, L.jsx)(KM, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, L.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, L.jsx)(GM, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, L.jsx)(KM, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, L.jsxs)("span", {
"data-link": "private",
title: "私人馆藏来源记录,不直接打开下载页",
- children: [/* @__PURE__ */ (0, L.jsx)(GM, { mark: { globe: !0 } }), /* @__PURE__ */ (0, L.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, L.jsx)(KM, { mark: { globe: !0 } }), /* @__PURE__ */ (0, L.jsxs)("span", {
"data-link-label": "",
children: ["来源 · ", e.label]
})]
@@ -36872,7 +36899,7 @@ function Tse({ link: e }) {
target: "_blank",
rel: "noreferrer",
title: e.title,
- children: [/* @__PURE__ */ (0, L.jsx)(GM, { mark: e.mark }), /* @__PURE__ */ (0, L.jsx)("span", {
+ children: [/* @__PURE__ */ (0, L.jsx)(KM, { mark: e.mark }), /* @__PURE__ */ (0, L.jsx)("span", {
"data-link-label": "",
children: e.text
})]
@@ -36897,14 +36924,14 @@ function Ese({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, L.jsxs)("div", {
"data-entry-marks": "",
- children: [WM(e).map((e, t) => /* @__PURE__ */ (0, L.jsxs)("a", {
+ children: [GM(e).map((e, t) => /* @__PURE__ */ (0, L.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, L.jsx)(IM, { name: e.mark }) : /* @__PURE__ */ (0, L.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, L.jsx)(LM, { name: e.mark }) : /* @__PURE__ */ (0, L.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, L.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, L.jsx)("span", {
@@ -36945,7 +36972,7 @@ function Dse({ feedNew: e, host: t, actions: n, helpers: r }) {
}
//#endregion
//#region src/follow-sort.ts
-var KM = [
+var qM = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -36953,7 +36980,7 @@ var KM = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], Ose = "checked", qM = {
+], Ose = "checked", JM = {
checked: "desc",
added: "desc",
name: "asc",
@@ -36961,32 +36988,32 @@ var KM = [
source: "asc",
provider: "asc",
status: "asc"
-}, kse = (e) => KM.some(([t]) => t === e);
-function JM(e, t) {
+}, kse = (e) => qM.some(([t]) => t === e);
+function YM(e, t) {
let n = kse(e) ? e : Ose;
return {
sort: n,
- dir: t === "asc" || t === "desc" ? t : qM[n]
+ dir: t === "asc" || t === "desc" ? t : JM[n]
};
}
//#endregion
//#region src/react/follow-manage/follow-manage.ts
-var YM = "/api/follow", Ase = "/api/follow/credentials", XM = "/api/follow/check", ZM = "/api/follow/source", QM = "/api/follow/resolve", jse = "/api/follow/suggest", $M = "/api/follow/author-alias", Mse = "/api/follow/credential", Nse = "/api/follow/status", Pse = "/api/feeds", eN = "/api/feeds/source", Fse = "/api/feeds/check", Ise = "/api/feeds/lookup", tN = ["follow-manage"], nN = ["follow-manage", "credentials"], Lse = ["follow-manage", "check"], Rse = ["follow-manage", "resolve"], rN = ["follow-manage", "feeds"], zse = (e) => [
+var XM = "/api/follow", Ase = "/api/follow/credentials", ZM = "/api/follow/check", QM = "/api/follow/source", $M = "/api/follow/resolve", jse = "/api/follow/suggest", eN = "/api/follow/author-alias", Mse = "/api/follow/credential", Nse = "/api/follow/status", Pse = "/api/feeds", tN = "/api/feeds/source", Fse = "/api/feeds/check", Ise = "/api/feeds/lookup", nN = ["follow-manage"], rN = ["follow-manage", "credentials"], Lse = ["follow-manage", "check"], Rse = ["follow-manage", "resolve"], iN = ["follow-manage", "feeds"], zse = (e) => [
"follow-manage",
"suggest",
e
-], iN = [["default", "默认视图"], ["table", "表格视图"]], aN = [
+], aN = [["default", "默认视图"], ["table", "表格视图"]], oN = [
10,
20,
50,
100
-], Bse = Object.fromEntries(KM), oN = {
+], Bse = Object.fromEntries(qM), sN = {
author: "name",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, Vse = (e) => iN.some(([t]) => t === e), Hse = (e) => aN.includes(Number(e)) ? Number(e) : 20, Use = {
+}, Vse = (e) => aN.some(([t]) => t === e), Hse = (e) => oN.includes(Number(e)) ? Number(e) : 20, Use = {
checked: ["从近到远", "从远到近"],
added: ["从近到远", "从远到近"],
name: ["倒序", "正序"],
@@ -36995,24 +37022,24 @@ var YM = "/api/follow", Ase = "/api/follow/credentials", XM = "/api/follow/check
provider: ["倒序", "正序"],
status: ["倒序", "正序"]
}, Wse = (e, t) => `按${Bse[e]}${Use[e][t === "asc" ? 0 : 1]}排序`;
-function sN(e) {
+function cN(e) {
let t = e.last_status;
return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;
}
function Gse(e) {
return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";
}
-var cN = (e) => e.last_status === "error" || e.last_status === "unauthorized", lN = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), uN = {
- source: lN,
- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || lN(e, t),
- status: (e, t) => sN(e) - sN(t) || lN(e, t)
-}, dN = (e) => Date.parse(e || "") || 0, fN = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
-function pN(e, t = []) {
+var lN = (e) => e.last_status === "error" || e.last_status === "unauthorized", uN = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), dN = {
+ source: uN,
+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || uN(e, t),
+ status: (e, t) => cN(e) - cN(t) || uN(e, t)
+}, fN = (e) => Date.parse(e || "") || 0, pN = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
+function mN(e, t = []) {
if (!e.length) return "";
- let n = (e) => String(e.author_name || "").trim() || fN(e.label), r = e.find((e) => e.entity_name);
+ let n = (e) => String(e.author_name || "").trim() || pN(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 fN(i.canonical_name);
+ if (i) return pN(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);
@@ -37031,7 +37058,7 @@ function qse(e) {
fallback: t && n && n.avatar_url !== r && n.avatar_url || ""
};
}
-function mN(e) {
+function hN(e) {
let t = [], n = /* @__PURE__ */ new Map();
for (let r of e) {
let e = r.author_key || `source:${r.id}`;
@@ -37040,31 +37067,31 @@ function mN(e) {
return t.map((e) => n.get(e));
}
function Jse(e, t, n, r = []) {
- let i = mN(e), a = n === qM[t] ? 1 : -1, o = (e) => pN(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = uN[t];
+ let i = hN(e), a = n === JM[t] ? 1 : -1, o = (e) => mN(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = dN[t];
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) => dN(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => dN(e.created_at)));
+ let l = (e) => Math.max(...e.map((e) => fN(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => fN(e.created_at)));
return i.sort((e, n) => t === "name" ? a * s(e, n) : t === "sources" ? a * (n.length - e.length) || s(e, n) : t === "added" ? a * (u(n) - u(e)) || s(e, n) : a * (l(n) - l(e)) || s(e, n));
}
function Yse(e, t, n, r = []) {
let i = e.flatMap((e) => {
- let t = pN(e, r);
+ let t = mN(e, r);
return e.map((n) => ({
source: n,
group: e,
author: t
}));
- }), a = uN[t];
+ }), a = dN[t];
if (a) {
- let e = n === qM[t] ? 1 : -1;
+ let e = n === JM[t] ? 1 : -1;
i.sort((t, n) => e * a(t.source, n.source));
}
return i;
}
function Xse(e, t, n) {
- let r = _k(e, t), i = vk(n, r), a = (i - 1) * t;
+ let r = vk(e, t), i = yk(n, r), a = (i - 1) * t;
return {
page: i,
pages: r,
@@ -37077,43 +37104,43 @@ function Zse(e, t) {
let n = new Set(t.map((e) => e.id));
return new Set([...e].filter((e) => n.has(e)));
}
-function hN(e, t) {
+function gN(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 gN(e, t, n) {
+function _N(e, t, n) {
let r = new Set(e);
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var _N = (e) => Aw(`${YM}?summary=1`, e), vN = (e) => Aw(Ase, e), Qse = (e) => Aw(XM, e), $se = (e) => Aw(QM, e), ece = (e, t) => Aw(`${jse}?q=${encodeURIComponent(e)}`, t), yN = (e) => q(XM, {
+var vN = (e) => jw(`${XM}?summary=1`, e), yN = (e) => jw(Ase, e), Qse = (e) => jw(ZM, e), $se = (e) => jw($M, e), ece = (e, t) => jw(`${jse}?q=${encodeURIComponent(e)}`, t), bN = (e) => q(ZM, {
...e?.length ? { sources: e } : {},
background: !0
-}), tce = (e) => q(QM, {
+}), tce = (e) => q($M, {
lines: e,
background: !0
-}), bN = (e, t) => q(ZM, {
+}), xN = (e, t) => q(QM, {
action: "enabled",
id: e,
enabled: t
-}), xN = (e) => q(ZM, {
+}), SN = (e) => q(QM, {
action: "remove",
id: e
-}), nce = (e) => q(ZM, {
+}), nce = (e) => q(QM, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), SN = (e, t) => q($M, {
+}), CN = (e, t) => q(eN, {
action: "add",
canonical: e,
alias: t
-}), rce = (e) => q($M, {
+}), rce = (e) => q(eN, {
action: "remove",
alias: e
}), ice = (e, t) => q(Mse, {
@@ -37122,42 +37149,42 @@ var _N = (e) => Aw(`${YM}?summary=1`, e), vN = (e) => Aw(Ase, e), Qse = (e) => A
}), ace = (e, t) => q(Nse, {
item: e,
to: t
-}), oce = () => Aw(`${YM}?status=new&limit=1000`);
-async function CN(e) {
- let t = await Aw(Pse, e);
+}), oce = () => jw(`${XM}?status=new&limit=1000`);
+async function wN(e) {
+ let t = await jw(Pse, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
-var wN = (e, t, n) => q(eN, {
+var TN = (e, t, n) => q(tN, {
action: "enabled",
id: e,
enabled: t
-}, "POST", n), TN = (e, t) => q(eN, {
+}, "POST", n), EN = (e, t) => q(tN, {
action: "remove",
id: e
-}, "POST", t), EN = (e, t) => q(Fse, t?.length ? { sources: t } : { all: !0 }, "POST", e), sce = (e, t) => Aw(`${Ise}?q=${encodeURIComponent(e)}`, t), cce = (e, t, n) => q(eN, {
+}, "POST", t), DN = (e, t) => q(Fse, t?.length ? { sources: t } : { all: !0 }, "POST", e), sce = (e, t) => jw(`${Ise}?q=${encodeURIComponent(e)}`, t), cce = (e, t, n) => q(tN, {
action: "follow-name",
name: e,
ids: t
}, "POST", n);
async function lce(e, t = "") {
await Promise.all([
- X.fetchQuery({
- queryKey: tN,
- queryFn: () => _N(e)
- }),
X.fetchQuery({
queryKey: nN,
queryFn: () => vN(e)
}),
- t === "feeds" ? X.fetchQuery({
+ X.fetchQuery({
queryKey: rN,
- queryFn: () => CN(e)
+ queryFn: () => yN(e)
+ }),
+ t === "feeds" ? X.fetchQuery({
+ queryKey: iN,
+ queryFn: () => wN(e)
}) : null
]);
}
-function DN(e, t) {
- X.setQueryData(tN, (n) => n && {
+function ON(e, t) {
+ X.setQueryData(nN, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -37165,15 +37192,15 @@ function DN(e, t) {
} : n)
});
}
-function ON(e) {
+function kN(e) {
let t = new Set(e);
- X.setQueryData(tN, (e) => e && {
+ X.setQueryData(nN, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var kN = () => X.invalidateQueries({
- queryKey: tN,
+var AN = () => X.invalidateQueries({
+ queryKey: nN,
exact: !0
});
function uce(e) {
@@ -37182,7 +37209,7 @@ function uce(e) {
let f = t.filter((e) => e.exhausted).length;
return f && d.push(`${f} 个没有更多内容`), u && d.push(`${u} 个失败`), `检查了 ${t.length} 个来源:${d.join(" · ")}`;
}
-var dce = (e) => (e?.results || []).filter((e) => !e.ok), fce = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", AN = (e) => e.last_checked_at ? bk(e.last_checked_at) : "未检查", pce = /* @__PURE__ */ new Set([
+var dce = (e) => (e?.results || []).filter((e) => !e.ok), fce = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", jN = (e) => e.last_checked_at ? xk(e.last_checked_at) : "未检查", pce = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -37195,16 +37222,16 @@ var dce = (e) => (e?.results || []).filter((e) => !e.ok), fce = (e) => (e?.resul
"gofile",
"f95zone",
"simpcity"
-]), jN = (e) => pce.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", MN = {
+]), MN = (e) => pce.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", NN = {
required: "需要",
optional: "可选",
none: "不需要",
blocked: "接不进来"
-}, NN = (e) => !!e.present && !e.missing.length;
+}, PN = (e) => !!e.present && !e.missing.length;
//#endregion
//#region src/react/follow-manage/source-view.tsx
-function PN({ provider: e, label: t }) {
- let n = jN(e), [r, i] = (0, I.useState)(!1);
+function FN({ provider: e, label: t }) {
+ let n = MN(e), [r, i] = (0, I.useState)(!1);
return !n || r ? t ? /* @__PURE__ */ (0, L.jsx)(L.Fragment, { children: t }) : null : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("img", {
src: n,
alt: "",
@@ -37213,9 +37240,9 @@ function PN({ provider: e, label: t }) {
loading: "lazy",
onError: () => i(!0),
className: "size-3.5 shrink-0 rounded-sm object-contain"
- }), t ? /* @__PURE__ */ (0, L.jsx)(G_, { children: t }) : null] });
+ }), t ? /* @__PURE__ */ (0, L.jsx)(K_, { children: t }) : null] });
}
-function FN({ group: e, name: t }) {
+function IN({ group: e, name: t }) {
let { src: n, fallback: r } = qse(e), [i, a] = (0, I.useState)(0), o = [n, r].filter(Boolean)[i];
return o ? /* @__PURE__ */ (0, L.jsx)("img", {
src: o,
@@ -37232,15 +37259,15 @@ function FN({ group: e, name: t }) {
children: Kse(t)
});
}
-function IN({ source: e }) {
- let t = cN(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
- return /* @__PURE__ */ (0, L.jsx)(Tw, {
+function LN({ source: e }) {
+ let t = lN(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
+ return /* @__PURE__ */ (0, L.jsx)(Ew, {
variant: "caption",
color: t,
children: Gse(e)
});
}
-function LN({ source: e }) {
+function RN({ source: e }) {
return /* @__PURE__ */ (0, L.jsx)("a", {
href: e.url,
target: "_blank",
@@ -37252,11 +37279,11 @@ function LN({ source: e }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var RN = Sw(RA, zA, "text-body-2-medium"), zN = "粘贴来源链接,或输入创作者名、id…", BN = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", VN = "识别中…", HN = "站内没有查到来源", UN = (e, t) => `${e}:${t.url}`;
-function WN({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
+var zN = Cw(BA, VA, "text-body-2-medium"), BN = "粘贴来源链接,或输入创作者名、id…", VN = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", HN = "识别中…", UN = "站内没有查到来源", WN = (e, t) => `${e}:${t.url}`;
+function GN({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
return (0, I.useEffect)(() => {
t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });
- }, [t, r]), /* @__PURE__ */ (0, L.jsxs)(_D, {
+ }, [t, r]), /* @__PURE__ */ (0, L.jsxs)(bD, {
ref: t,
triggerRef: e,
isOpen: !0,
@@ -37268,17 +37295,17 @@ function WN({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onCl
placement: "bottom start",
offset: 4,
"aria-label": "来源建议",
- className: Sw(LA, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
+ className: Cw(zA, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
children: [i && !n.length ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "px-2 py-1.5",
- children: /* @__PURE__ */ (0, L.jsx)(Vw, { label: "正在查找建议" })
+ children: /* @__PURE__ */ (0, L.jsx)(Hw, { label: "正在查找建议" })
}) : null, n.map((e, t) => /* @__PURE__ */ (0, L.jsxs)(I.Fragment, { children: [e.group === n[t - 1]?.group ? null : /* @__PURE__ */ (0, L.jsx)("div", {
className: "px-2 pt-1 text-caption-1-regular text-text-tertiary",
children: e.group
}), /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
"aria-current": t === r ? "true" : void 0,
- className: t === r ? Sw(RN, "bg-background-secondary-default") : RN,
+ className: t === r ? Cw(zN, "bg-background-secondary-default") : zN,
onMouseDown: (e) => e.preventDefault(),
onClick: () => a(e.value),
children: [
@@ -37298,7 +37325,7 @@ function WN({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onCl
})] }, `${e.group}-${e.value}`))]
});
}
-function GN({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
+function KN({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
let i = (0, I.useRef)(null), [a, o] = (0, I.useState)(!1), s = (e.providers || []).filter((e) => e.followable), c = s.filter((e) => !t.has(e.provider_label)).length, l = c === s.length ? "全部来源" : `${c}/${s.length} 个来源`, u = (e, r) => {
let i = new Set(t);
r ? i.delete(e) : i.add(e), n(i);
@@ -37306,20 +37333,20 @@ function GN({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
ref: i,
variant: "secondary",
- leadingIcon: Yte,
+ leadingIcon: qte,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-label": l,
onClick: () => o(!0),
children: l
- }), /* @__PURE__ */ (0, L.jsx)(_D, {
+ }), /* @__PURE__ */ (0, L.jsx)(bD, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom end",
offset: 4,
- className: LA,
- children: /* @__PURE__ */ (0, L.jsxs)(OD, {
+ className: zA,
+ children: /* @__PURE__ */ (0, L.jsxs)(jD, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
children: [s.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
@@ -37335,16 +37362,16 @@ function GN({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
onClick: () => n(new Set(s.map((e) => e.provider_label))),
children: "全不选"
})]
- }) : /* @__PURE__ */ (0, L.jsx)($A, { children: "暂无可用来源" }), s.map((e) => {
+ }) : /* @__PURE__ */ (0, L.jsx)(tj, { children: "暂无可用来源" }), s.map((e) => {
let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(Nj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Fj, {
isSelected: !t.has(e.provider_label),
onChange: (t) => u(e.provider_label, t),
children: /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, L.jsx)(PN, { provider: e.provider }), e.provider_label]
+ children: [/* @__PURE__ */ (0, L.jsx)(FN, { provider: e.provider }), e.provider_label]
})
}), n ? /* @__PURE__ */ (0, L.jsx)(G, {
variant: "ghost",
@@ -37360,7 +37387,7 @@ function GN({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
})
})] });
}
-function KN({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
+function qN({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
if (e.kind === "error") return /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: e.line,
@@ -37368,7 +37395,7 @@ function KN({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
});
let a = (e.candidates || []).filter((e) => !n.has(e.provider_label || "")), o = Object.entries(e.failures || {});
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: Rw({
+ className: zw({
padding: "none",
className: "flex flex-col gap-2 p-4"
}),
@@ -37378,15 +37405,15 @@ function KN({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
children: e.line
}),
a.length ? a.map((e) => {
- let n = UN(t, e);
- return /* @__PURE__ */ (0, L.jsx)(Nj, {
+ let n = WN(t, e);
+ return /* @__PURE__ */ (0, L.jsx)(Fj, {
isSelected: !e.known && !r.has(n),
isDisabled: e.known,
onChange: (e) => i(n, e),
children: /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-1.5",
children: [
- /* @__PURE__ */ (0, L.jsx)(PN, { provider: e.provider }),
+ /* @__PURE__ */ (0, L.jsx)(FN, { provider: e.provider }),
/* @__PURE__ */ (0, L.jsx)("b", {
className: "text-body-medium",
children: e.provider_label
@@ -37402,22 +37429,22 @@ function KN({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
})
}, n);
- }) : /* @__PURE__ */ (0, L.jsx)($A, { children: HN }),
+ }) : /* @__PURE__ */ (0, L.jsx)(tj, { children: UN }),
(e.external_searches || []).map((e) => /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, L.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.evidence
- }), /* @__PURE__ */ (0, L.jsx)(nj, {
+ }), /* @__PURE__ */ (0, L.jsx)(ij, {
href: e.url,
children: `${e.label}:${e.query}`
})]
}, e.url)),
- o.length ? /* @__PURE__ */ (0, L.jsx)($A, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
+ o.length ? /* @__PURE__ */ (0, L.jsx)(tj, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
]
});
}
-function qN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
+function JN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
let [a, o] = (0, I.useState)(""), [s, c] = (0, I.useState)(""), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(!1), [p, m] = (0, I.useState)(null), [h, g] = (0, I.useState)(-1), _ = (0, I.useRef)(null), v = (0, I.useRef)(null), [y, b] = (0, I.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, I.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, I.useState)(""), [T, E] = (0, I.useState)(0);
(0, I.useEffect)(() => {
let e = a.trim();
@@ -37437,7 +37464,7 @@ function qN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
matched: t.matched || "",
n: t.n || 0,
group: e.label
- }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = Dj({
+ }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = kj({
queryKey: Rse,
queryFn: ({ signal: e }) => $se(e),
start: (e) => tce([e]),
@@ -37474,7 +37501,7 @@ function qN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
}
}, re = j?.results || [], ie = re.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !y.has(e.provider_label || "")).map((e) => ({
candidate: e,
- key: UN(t, e)
+ key: WN(t, e)
})).filter((e) => !x.has(e.key))), ae = At({
mutationFn: async (e) => {
let t = [], n = [];
@@ -37489,7 +37516,7 @@ function qN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
E((e) => e + 1);
}
if (n.length) try {
- await yN(n);
+ await bN(n);
} catch (e) {
t.push(K(e));
}
@@ -37499,7 +37526,7 @@ function qN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
};
},
onSuccess: (e) => {
- if (kN(), e.failures.length) {
+ if (AN(), e.failures.length) {
w(e.failures.join(";"));
return;
}
@@ -37508,7 +37535,7 @@ function qN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
onError: (e) => w(K(e))
}), oe = e.suggestions || [], se = !s.includes("/");
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: Rw({
+ className: zw({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -37528,15 +37555,15 @@ function qN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
let t = e.relatedTarget;
!e.currentTarget.contains(t) && !v.current?.contains(t) && f(!1);
},
- children: [/* @__PURE__ */ (0, L.jsx)(tM, {
+ children: [/* @__PURE__ */ (0, L.jsx)(rM, {
"aria-label": "来源链接、名字或 id",
- placeholder: zN,
+ placeholder: BN,
value: a,
- leadingIcon: PS,
+ leadingIcon: FS,
isDisabled: n,
onChange: o,
onKeyDown: ne
- }), P ? /* @__PURE__ */ (0, L.jsx)(WN, {
+ }), P ? /* @__PURE__ */ (0, L.jsx)(GN, {
field: _,
menu: v,
options: O,
@@ -37546,7 +37573,7 @@ function qN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
onClose: F
}) : null]
}),
- /* @__PURE__ */ (0, L.jsx)(GN, {
+ /* @__PURE__ */ (0, L.jsx)(KN, {
credentials: t,
hidden: y,
onHidden: b,
@@ -37564,11 +37591,11 @@ function qN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
/* @__PURE__ */ (0, L.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
- children: [A || M.isPending ? k?.total ? /* @__PURE__ */ (0, L.jsx)(Gw, {
+ children: [A || M.isPending ? k?.total ? /* @__PURE__ */ (0, L.jsx)(Kw, {
label: k.message || `查找中:${k.checked || 0}/${k.total}`,
value: k.checked || 0,
max: k.total
- }) : /* @__PURE__ */ (0, L.jsx)(Vw, { label: se ? BN : VN }) : null, C ? /* @__PURE__ */ (0, L.jsx)(J, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Hw, { label: se ? VN : HN }) : null, C ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "这一次没有完成",
children: C
@@ -37577,8 +37604,8 @@ function qN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
re.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(tj, { children: "查找结果" }),
- re.map((e, t) => /* @__PURE__ */ (0, L.jsx)(KN, {
+ /* @__PURE__ */ (0, L.jsx)(rj, { children: "查找结果" }),
+ re.map((e, t) => /* @__PURE__ */ (0, L.jsx)(qN, {
row: e,
at: t,
hidden: y,
@@ -37633,16 +37660,16 @@ function qN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
}
//#endregion
//#region src/react/follow-manage/alias-manager.tsx
-var JN = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, YN = (e) => e.alias;
-function XN(e, t, n) {
+var YN = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, XN = (e) => e.alias;
+function ZN(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 ZN({ sources: e, name: t, canonicalKey: n }) {
+function QN({ sources: e, name: t, canonicalKey: n }) {
return /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(FN, {
- group: XN(e, t, n),
+ children: [/* @__PURE__ */ (0, L.jsx)(IN, {
+ group: ZN(e, t, n),
name: t
}), /* @__PURE__ */ (0, L.jsx)("b", {
className: "text-body-medium",
@@ -37650,15 +37677,15 @@ function ZN({ sources: e, name: t, canonicalKey: n }) {
})]
});
}
-function QN({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
+function $N({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
let [a, o] = (0, I.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, I.useState)(""), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), p = At({
mutationFn: async (e) => {
let t = 0;
for (let n of e) {
try {
- await SN(n.canonical, n.alias);
+ await CN(n.canonical, n.alias);
} catch (n) {
- throw t && kN(), Error(`${K(n)}(还有 ${e.length - t} 组没有合并)`);
+ throw t && AN(), Error(`${K(n)}(还有 ${e.length - t} 组没有合并)`);
}
t += 1;
}
@@ -37668,19 +37695,19 @@ function QN({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
};
},
onSuccess: (e) => {
- c(""), o(/* @__PURE__ */ new Set()), kN(), i(`已合并 ${e.done} 组创作者别名`);
+ c(""), o(/* @__PURE__ */ new Set()), AN(), i(`已合并 ${e.done} 组创作者别名`);
},
onError: (e) => c(K(e))
}), m = At({
- mutationFn: (e) => SN(e.canonical, e.alias),
+ mutationFn: (e) => CN(e.canonical, e.alias),
onSuccess: () => {
- c(""), u(""), f(""), kN(), i("已保存创作者别名");
+ c(""), u(""), f(""), AN(), i("已保存创作者别名");
},
onError: (e) => c(K(e))
}), g = At({
mutationFn: (e) => rce(e),
onSuccess: () => {
- c(""), kN(), i("已移除创作者别名");
+ c(""), AN(), i("已移除创作者别名");
},
onError: (e) => c(K(e))
}), _ = (e, t) => {
@@ -37690,9 +37717,9 @@ function QN({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
confirmLabel: t ? "合并全部别名" : "合并所选别名",
onConfirm: () => p.mutateAsync(e)
});
- }, v = t.filter((e) => a.has(YN(e))), y = t.length > 0 && v.length === t.length, b = Y(p.isPending);
+ }, v = t.filter((e) => a.has(XN(e))), y = t.length > 0 && v.length === t.length, b = Y(p.isPending);
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: Rw({
+ className: zw({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -37703,10 +37730,10 @@ function QN({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(tj, { children: "手动添加别名" }), /* @__PURE__ */ (0, L.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, L.jsx)(rj, { children: "手动添加别名" }), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(tM, {
+ /* @__PURE__ */ (0, L.jsx)(rM, {
"aria-label": "规范创作者名",
placeholder: "规范创作者名",
value: l,
@@ -37714,7 +37741,7 @@ function QN({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, L.jsx)(tM, {
+ /* @__PURE__ */ (0, L.jsx)(rM, {
"aria-label": "平台别名",
placeholder: "平台别名",
value: d,
@@ -37735,13 +37762,13 @@ function QN({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
]
})]
}),
- s ? /* @__PURE__ */ (0, L.jsx)(ej, { children: s }) : null,
+ s ? /* @__PURE__ */ (0, L.jsx)(nj, { children: s }) : null,
t.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(tj, { children: "待合并" }),
+ /* @__PURE__ */ (0, L.jsx)(rj, { children: "待合并" }),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${t.length} 组`
@@ -37763,44 +37790,44 @@ function QN({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: `全部合并(${t.length})`
})
]
- }), /* @__PURE__ */ (0, L.jsx)(Lj, { children: /* @__PURE__ */ (0, L.jsxs)(Pj, {
+ }), /* @__PURE__ */ (0, L.jsx)(zj, { children: /* @__PURE__ */ (0, L.jsxs)(Ij, {
"aria-label": "待合并创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, L.jsxs)(QD, { children: [
- /* @__PURE__ */ (0, L.jsx)($D, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(tO, { children: [
+ /* @__PURE__ */ (0, L.jsx)(nO, {
id: "select",
- children: /* @__PURE__ */ (0, L.jsx)(Nj, {
+ children: /* @__PURE__ */ (0, L.jsx)(Fj, {
slot: null,
isSelected: y,
isIndeterminate: v.length > 0 && !y,
"aria-label": "全选待合并别名",
- onChange: (e) => o(e ? new Set(t.map(YN)) : /* @__PURE__ */ new Set())
+ onChange: (e) => o(e ? new Set(t.map(XN)) : /* @__PURE__ */ new Set())
})
}),
- /* @__PURE__ */ (0, L.jsx)($D, {
+ /* @__PURE__ */ (0, L.jsx)(nO, {
id: "canonical",
children: "规范创作者"
}),
- /* @__PURE__ */ (0, L.jsx)($D, {
+ /* @__PURE__ */ (0, L.jsx)(nO, {
id: "alias",
isRowHeader: !0,
children: "平台别名"
}),
- /* @__PURE__ */ (0, L.jsx)($D, {
+ /* @__PURE__ */ (0, L.jsx)(nO, {
id: "evidence",
children: "依据"
}),
- /* @__PURE__ */ (0, L.jsx)($D, {
+ /* @__PURE__ */ (0, L.jsx)(nO, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, L.jsx)(tO, { children: t.map((e) => {
- let t = YN(e);
- return /* @__PURE__ */ (0, L.jsxs)(iO, {
+ ] }), /* @__PURE__ */ (0, L.jsx)(iO, { children: t.map((e) => {
+ let t = XN(e);
+ return /* @__PURE__ */ (0, L.jsxs)(sO, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, L.jsx)(oO, { children: /* @__PURE__ */ (0, L.jsx)(Nj, {
+ /* @__PURE__ */ (0, L.jsx)(lO, { children: /* @__PURE__ */ (0, L.jsx)(Fj, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -37809,16 +37836,16 @@ function QN({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, L.jsx)(oO, { children: /* @__PURE__ */ (0, L.jsx)(ZN, {
+ /* @__PURE__ */ (0, L.jsx)(lO, { children: /* @__PURE__ */ (0, L.jsx)(QN, {
sources: n,
name: e.canonical
}) }),
- /* @__PURE__ */ (0, L.jsx)(oO, { children: e.alias }),
- /* @__PURE__ */ (0, L.jsx)(oO, { children: /* @__PURE__ */ (0, L.jsx)("span", {
+ /* @__PURE__ */ (0, L.jsx)(lO, { children: e.alias }),
+ /* @__PURE__ */ (0, L.jsx)(lO, { children: /* @__PURE__ */ (0, L.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: e.evidence
}) }),
- /* @__PURE__ */ (0, L.jsx)(oO, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ /* @__PURE__ */ (0, L.jsx)(lO, { children: /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "small",
disabled: r,
@@ -37835,27 +37862,27 @@ function QN({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(tj, { children: "已保存别名" }), /* @__PURE__ */ (0, L.jsx)("span", {
+ children: [/* @__PURE__ */ (0, L.jsx)(rj, { children: "已保存别名" }), /* @__PURE__ */ (0, L.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
- }), e.length ? /* @__PURE__ */ (0, L.jsx)(Lj, { children: /* @__PURE__ */ (0, L.jsxs)(Pj, {
+ }), e.length ? /* @__PURE__ */ (0, L.jsx)(zj, { children: /* @__PURE__ */ (0, L.jsxs)(Ij, {
"aria-label": "已保存创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, L.jsxs)(QD, { children: [/* @__PURE__ */ (0, L.jsx)($D, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(tO, { children: [/* @__PURE__ */ (0, L.jsx)(nO, {
id: "canonical",
isRowHeader: !0,
children: "规范创作者"
- }), /* @__PURE__ */ (0, L.jsx)($D, {
+ }), /* @__PURE__ */ (0, L.jsx)(nO, {
id: "aliases",
children: "平台别名"
- })] }), /* @__PURE__ */ (0, L.jsx)(tO, { children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)(iO, {
+ })] }), /* @__PURE__ */ (0, L.jsx)(iO, { children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)(sO, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, L.jsx)(oO, { children: /* @__PURE__ */ (0, L.jsx)(ZN, {
+ children: [/* @__PURE__ */ (0, L.jsx)(lO, { children: /* @__PURE__ */ (0, L.jsx)(QN, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
- }) }), /* @__PURE__ */ (0, L.jsx)(oO, { children: /* @__PURE__ */ (0, L.jsx)("span", {
+ }) }), /* @__PURE__ */ (0, L.jsx)(lO, { children: /* @__PURE__ */ (0, L.jsx)("span", {
className: "flex flex-wrap items-center gap-1.5",
children: e.aliases.map((e) => /* @__PURE__ */ (0, L.jsxs)("span", {
className: "inline-flex items-center gap-1 rounded-md bg-background-secondary-default px-1.5 py-1 text-caption-1-medium text-text-secondary",
@@ -37863,13 +37890,13 @@ function QN({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
variant: "ghost",
size: "xs",
iconOnly: !0,
- leadingIcon: _S,
+ leadingIcon: yS,
"aria-label": `移除别名 ${e.name}`,
disabled: r,
...Y(g.isPending),
onClick: () => void h({
title: "移除创作者别名",
- body: JN(e.name),
+ body: YN(e.name),
confirmLabel: "移除创作者别名",
onConfirm: () => g.mutateAsync(e.name)
})
@@ -37877,9 +37904,9 @@ function QN({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}, e.key))
}) })]
}, e.canonical_key)) })]
- }) }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
+ }) }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
shell: "plain",
- icon: zS,
+ icon: BS,
title: "还没有保存创作者别名",
children: "填写规范创作者名和平台别名以添加。"
})]
@@ -37889,25 +37916,25 @@ function QN({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}
//#endregion
//#region src/react/follow-manage/credentials.tsx
-var $N = "这些账号信息存在哪里", eP = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", tP = "将清除这个来源在本机和共享副本中的登录凭据。", nP = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
-function rP(e, t) {
+var eP = "这些账号信息存在哪里", tP = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", nP = "将清除这个来源在本机和共享副本中的登录凭据。", rP = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
+function iP(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
-function iP({ row: e }) {
- if (NN(e)) return /* @__PURE__ */ (0, L.jsx)(Tw, {
+function aP({ row: e }) {
+ if (PN(e)) return /* @__PURE__ */ (0, L.jsx)(Ew, {
variant: "caption",
color: "lime",
children: "已配置"
});
let t = e.requirement === "required" ? "yellow" : e.requirement === "blocked" ? "rose" : "neutral";
- return /* @__PURE__ */ (0, L.jsx)(Tw, {
+ return /* @__PURE__ */ (0, L.jsx)(Ew, {
variant: "caption",
color: t,
- children: MN[e.requirement] || ""
+ children: NN[e.requirement] || ""
});
}
-function aP({ row: e, readOnly: t, toast: n }) {
- let [r, i] = (0, I.useState)({}), [a, o] = (0, I.useState)(""), s = NN(e), c = At({
+function oP({ row: e, readOnly: t, toast: n }) {
+ let [r, i] = (0, I.useState)({}), [a, o] = (0, I.useState)(""), s = PN(e), c = At({
mutationFn: (t) => ice(e.provider, t),
onSuccess: (e, t) => {
if (e.note) {
@@ -37915,7 +37942,7 @@ function aP({ row: e, readOnly: t, toast: n }) {
return;
}
o(""), i({}), X.invalidateQueries({
- queryKey: nN,
+ queryKey: rN,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");
},
@@ -37931,17 +37958,17 @@ function aP({ row: e, readOnly: t, toast: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsxs)($A, { children: [e.why, e.where ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [" ", /* @__PURE__ */ (0, L.jsx)(nj, {
+ /* @__PURE__ */ (0, L.jsxs)(tj, { children: [e.why, e.where ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [" ", /* @__PURE__ */ (0, L.jsx)(ij, {
href: e.where,
children: "去取"
})] }) : null] }),
- e.howto ? /* @__PURE__ */ (0, L.jsx)($A, { children: e.howto }) : null,
+ e.howto ? /* @__PURE__ */ (0, L.jsx)(tj, { children: e.howto }) : null,
/* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-wrap items-end gap-3",
- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, L.jsx)(tM, {
+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, L.jsx)(rM, {
type: "password",
label: n,
- placeholder: rP(e, n),
+ placeholder: iP(e, n),
autoComplete: "off",
spellCheck: "false",
isDisabled: t,
@@ -37969,7 +37996,7 @@ function aP({ row: e, readOnly: t, toast: n }) {
...Y(c.isPending),
onClick: () => void h({
title: "清除来源凭据",
- body: tP,
+ body: nP,
confirmLabel: "清除来源凭据",
danger: !0,
onConfirm: () => c.mutateAsync({})
@@ -37977,9 +38004,9 @@ function aP({ row: e, readOnly: t, toast: n }) {
children: "清除"
}) : null]
}),
- a ? /* @__PURE__ */ (0, L.jsx)(ej, { children: a }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, L.jsx)($A, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
- e.path ? /* @__PURE__ */ (0, L.jsx)(GA, {
+ a ? /* @__PURE__ */ (0, L.jsx)(nj, { children: a }) : null,
+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, L.jsx)(tj, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
+ e.path ? /* @__PURE__ */ (0, L.jsx)(qA, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
@@ -37987,25 +38014,25 @@ function aP({ row: e, readOnly: t, toast: n }) {
e.world_readable ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "凭据文件权限过宽",
- children: nP
+ children: rP
}) : null
]
});
}
-function oP({ row: e, readOnly: t, toast: n }) {
+function sP({ row: e, readOnly: t, toast: n }) {
let r = /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
children: [
/* @__PURE__ */ (0, L.jsx)("span", {
className: "inline-flex size-3.5 shrink-0 items-center justify-center",
- children: /* @__PURE__ */ (0, L.jsx)(PN, { provider: e.provider })
+ children: /* @__PURE__ */ (0, L.jsx)(FN, { provider: e.provider })
}),
/* @__PURE__ */ (0, L.jsx)("b", {
className: "text-body-medium text-text-primary",
children: e.provider_label
}),
- /* @__PURE__ */ (0, L.jsx)(iP, { row: e }),
- e.missing.length ? /* @__PURE__ */ (0, L.jsx)(Tw, {
+ /* @__PURE__ */ (0, L.jsx)(aP, { row: e }),
+ e.missing.length ? /* @__PURE__ */ (0, L.jsx)(Ew, {
variant: "caption",
color: "rose",
children: `缺 ${e.missing.join("、")}`
@@ -38014,13 +38041,13 @@ function oP({ row: e, readOnly: t, toast: n }) {
});
return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
- children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, L.jsx)($A, { children: e.why }) : null]
+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, L.jsx)(tj, { children: e.why }) : null]
}) : /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
- children: [r, /* @__PURE__ */ (0, L.jsx)(aj, {
- summary: NN(e) ? "修改凭据" : "填写凭据",
- defaultOpen: e.requirement === "required" && !NN(e),
- children: /* @__PURE__ */ (0, L.jsx)(aP, {
+ children: [r, /* @__PURE__ */ (0, L.jsx)(sj, {
+ summary: PN(e) ? "修改凭据" : "填写凭据",
+ defaultOpen: e.requirement === "required" && !PN(e),
+ children: /* @__PURE__ */ (0, L.jsx)(oP, {
row: e,
readOnly: t,
toast: n
@@ -38028,10 +38055,10 @@ function oP({ row: e, readOnly: t, toast: n }) {
})]
});
}
-function sP({ data: e, readOnly: t, toast: n }) {
- let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !NN(e));
+function cP({ data: e, readOnly: t, toast: n }) {
+ let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !PN(e));
return r.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
- className: Rw({
+ className: zw({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -38047,11 +38074,11 @@ function sP({ data: e, readOnly: t, toast: n }) {
}) : null]
}),
/* @__PURE__ */ (0, L.jsx)("div", {
- className: Rw({
+ className: zw({
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: r.map((e) => /* @__PURE__ */ (0, L.jsx)(oP, {
+ children: r.map((e) => /* @__PURE__ */ (0, L.jsx)(sP, {
row: e,
readOnly: t,
toast: n
@@ -38062,13 +38089,13 @@ function sP({ data: e, readOnly: t, toast: n }) {
children: [
/* @__PURE__ */ (0, L.jsx)("b", {
className: "text-body-medium text-text-primary",
- children: $N
+ children: eP
}),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: eP
+ children: tP
}),
- /* @__PURE__ */ (0, L.jsx)(GA, {
+ /* @__PURE__ */ (0, L.jsx)(qA, {
path: e.root,
prefix: "凭据文件在 ",
className: "text-body-2-regular text-text-secondary",
@@ -38077,16 +38104,16 @@ function sP({ data: e, readOnly: t, toast: n }) {
]
})
]
- }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
shell: "plain",
- icon: OS,
+ icon: kS,
title: "没有可配置的来源",
children: "已接入的站点及其凭据状态会显示在这里。"
});
}
//#endregion
//#region node_modules/@tanstack/table-core/build/lib/index.mjs
-function cP() {
+function lP() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -38099,24 +38126,24 @@ function cP() {
group: (e) => e
};
}
-function lP(e, t) {
+function uP(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function uP(e, t) {
+function dP(e, t) {
return (n) => {
t.setState((t) => ({
...t,
- [e]: lP(n, t[e])
+ [e]: uP(n, t[e])
}));
};
}
-function dP(e) {
+function fP(e) {
return e instanceof Function;
}
-function fP(e) {
+function pP(e) {
return Array.isArray(e) && e.every((e) => typeof e == "number");
}
-function pP(e, t) {
+function mP(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -38126,7 +38153,7 @@ function pP(e, t) {
};
return r(e), n;
}
-function mP(e, t, n) {
+function hP(e, t, n) {
let r = [], i;
return (a) => {
let o;
@@ -38148,21 +38175,21 @@ function mP(e, t, n) {
return i;
};
}
-function hP(e, t, n, r) {
+function gP(e, t, n, r) {
return {
debug: () => e?.debugAll ?? e[t],
key: !1,
onChange: r
};
}
-function gP(e, t, n, r) {
+function _P(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: mP(() => [
+ getContext: hP(() => [
e,
n,
t,
@@ -38174,13 +38201,13 @@ function gP(e, t, n, r) {
cell: r,
getValue: r.getValue,
renderValue: r.renderValue
- }), hP(e.options, "debugCells", "cell.getContext"))
+ }), gP(e.options, "debugCells", "cell.getContext"))
};
return e._features.forEach((r) => {
r.createCell == null || r.createCell(i, n, t, e);
}, {}), i;
}
-function _P(e, t, n, r) {
+function vP(e, t, n, r) {
let i = {
...e._getDefaultColumnDef(),
...t
@@ -38197,17 +38224,17 @@ function _P(e, t, n, r) {
depth: n,
columnDef: i,
columns: [],
- getFlatColumns: mP(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], hP(e.options, "debugColumns", "column.getFlatColumns")),
- getLeafColumns: mP(() => [e._getOrderColumnsFn()], (e) => {
+ getFlatColumns: hP(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], gP(e.options, "debugColumns", "column.getFlatColumns")),
+ getLeafColumns: hP(() => [e._getOrderColumnsFn()], (e) => {
var t;
return (t = c.columns) != null && t.length ? e(c.columns.flatMap((e) => e.getLeafColumns())) : [c];
- }, hP(e.options, "debugColumns", "column.getLeafColumns"))
+ }, gP(e.options, "debugColumns", "column.getLeafColumns"))
};
for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
return c;
}
-var vP = "debugHeaders";
-function yP(e, t, n) {
+var yP = "debugHeaders";
+function bP(e, t, n) {
let r = {
id: n.id ?? t.id,
column: t,
@@ -38235,42 +38262,42 @@ function yP(e, t, n) {
t.createHeader == null || t.createHeader(r, e);
}), r;
}
-var bP = { createTable: (e) => {
- e.getHeaderGroups = mP(() => [
+var xP = { createTable: (e) => {
+ e.getHeaderGroups = hP(() => [
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 xP(t, [
+ return SP(t, [
...a,
...s,
...o
], e);
- }, hP(e.options, vP, "getHeaderGroups")), e.getCenterHeaderGroups = mP(() => [
+ }, gP(e.options, yP, "getHeaderGroups")), e.getCenterHeaderGroups = hP(() => [
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))), xP(t, n, e, "center")), hP(e.options, vP, "getCenterHeaderGroups")), e.getLeftHeaderGroups = mP(() => [
+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), SP(t, n, e, "center")), gP(e.options, yP, "getCenterHeaderGroups")), e.getLeftHeaderGroups = hP(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left
- ], (t, n, r) => xP(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), hP(e.options, vP, "getLeftHeaderGroups")), e.getRightHeaderGroups = mP(() => [
+ ], (t, n, r) => SP(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), gP(e.options, yP, "getLeftHeaderGroups")), e.getRightHeaderGroups = hP(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.right
- ], (t, n, r) => xP(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), hP(e.options, vP, "getRightHeaderGroups")), e.getFooterGroups = mP(() => [e.getHeaderGroups()], (e) => [...e].reverse(), hP(e.options, vP, "getFooterGroups")), e.getLeftFooterGroups = mP(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), hP(e.options, vP, "getLeftFooterGroups")), e.getCenterFooterGroups = mP(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), hP(e.options, vP, "getCenterFooterGroups")), e.getRightFooterGroups = mP(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), hP(e.options, vP, "getRightFooterGroups")), e.getFlatHeaders = mP(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), hP(e.options, vP, "getFlatHeaders")), e.getLeftFlatHeaders = mP(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), hP(e.options, vP, "getLeftFlatHeaders")), e.getCenterFlatHeaders = mP(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), hP(e.options, vP, "getCenterFlatHeaders")), e.getRightFlatHeaders = mP(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), hP(e.options, vP, "getRightFlatHeaders")), e.getCenterLeafHeaders = mP(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
+ ], (t, n, r) => SP(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), gP(e.options, yP, "getRightHeaderGroups")), e.getFooterGroups = hP(() => [e.getHeaderGroups()], (e) => [...e].reverse(), gP(e.options, yP, "getFooterGroups")), e.getLeftFooterGroups = hP(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), gP(e.options, yP, "getLeftFooterGroups")), e.getCenterFooterGroups = hP(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), gP(e.options, yP, "getCenterFooterGroups")), e.getRightFooterGroups = hP(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), gP(e.options, yP, "getRightFooterGroups")), e.getFlatHeaders = hP(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), gP(e.options, yP, "getFlatHeaders")), e.getLeftFlatHeaders = hP(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), gP(e.options, yP, "getLeftFlatHeaders")), e.getCenterFlatHeaders = hP(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), gP(e.options, yP, "getCenterFlatHeaders")), e.getRightFlatHeaders = hP(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), gP(e.options, yP, "getRightFlatHeaders")), e.getCenterLeafHeaders = hP(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), hP(e.options, vP, "getCenterLeafHeaders")), e.getLeftLeafHeaders = mP(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
+ }), gP(e.options, yP, "getCenterLeafHeaders")), e.getLeftLeafHeaders = hP(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), hP(e.options, vP, "getLeftLeafHeaders")), e.getRightLeafHeaders = mP(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
+ }), gP(e.options, yP, "getLeftLeafHeaders")), e.getRightLeafHeaders = hP(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), hP(e.options, vP, "getRightLeafHeaders")), e.getLeafHeaders = mP(() => [
+ }), gP(e.options, yP, "getRightLeafHeaders")), e.getLeafHeaders = hP(() => [
e.getLeftHeaderGroups(),
e.getCenterHeaderGroups(),
e.getRightHeaderGroups()
@@ -38278,9 +38305,9 @@ var bP = { createTable: (e) => {
...e[0]?.headers ?? [],
...t[0]?.headers ?? [],
...n[0]?.headers ?? []
- ].map((e) => e.getLeafHeaders()).flat(), hP(e.options, vP, "getLeafHeaders"));
+ ].map((e) => e.getLeafHeaders()).flat(), gP(e.options, yP, "getLeafHeaders"));
} };
-function xP(e, t, n, r) {
+function SP(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;
@@ -38298,7 +38325,7 @@ function xP(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 = yP(n, c, {
+ let i = bP(n, c, {
id: [
r,
t,
@@ -38315,7 +38342,7 @@ function xP(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) => yP(n, e, {
+ s(t.map((e, t) => bP(n, e, {
depth: i,
index: t
})), i - 1), o.reverse();
@@ -38333,7 +38360,7 @@ function xP(e, t, n, r) {
});
return c(o[0]?.headers ?? []), o;
}
-var SP = (e, t, n, r, i, a, o) => {
+var CP = (e, t, n, r, i, a, o) => {
let s = {
id: t,
index: r,
@@ -38354,7 +38381,7 @@ var SP = (e, t, n, r, i, a, o) => {
},
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
subRows: a ?? [],
- getLeafRows: () => pP(s.subRows, (e) => e.subRows),
+ getLeafRows: () => mP(s.subRows, (e) => e.subRows),
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
getParentRows: () => {
let e = [], t = s;
@@ -38365,95 +38392,95 @@ var SP = (e, t, n, r, i, a, o) => {
}
return e.reverse();
},
- getAllCells: mP(() => [e.getAllLeafColumns()], (t) => t.map((t) => gP(e, s, t, t.id)), hP(e.options, "debugRows", "getAllCells")),
- _getAllCellsByColumnId: mP(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), hP(e.options, "debugRows", "getAllCellsByColumnId"))
+ getAllCells: hP(() => [e.getAllLeafColumns()], (t) => t.map((t) => _P(e, s, t, t.id)), gP(e.options, "debugRows", "getAllCells")),
+ _getAllCellsByColumnId: hP(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), gP(e.options, "debugRows", "getAllCellsByColumnId"))
};
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;
-}, CP = { createColumn: (e, t) => {
+}, wP = { 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();
};
-} }, wP = (e, t, n) => {
+} }, TP = (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));
};
-wP.autoRemove = (e) => PP(e);
-var TP = (e, t, n) => {
+TP.autoRemove = (e) => FP(e);
+var EP = (e, t, n) => {
var r;
return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));
};
-TP.autoRemove = (e) => PP(e);
-var EP = (e, t, n) => {
+EP.autoRemove = (e) => FP(e);
+var DP = (e, t, n) => {
var r;
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
};
-EP.autoRemove = (e) => PP(e);
-var DP = (e, t, n) => e.getValue(t)?.includes(n);
-DP.autoRemove = (e) => PP(e);
-var OP = (e, t, n) => !n.some((n) => {
+DP.autoRemove = (e) => FP(e);
+var OP = (e, t, n) => e.getValue(t)?.includes(n);
+OP.autoRemove = (e) => FP(e);
+var kP = (e, t, n) => !n.some((n) => {
var r;
return !((r = e.getValue(t)) != null && r.includes(n));
});
-OP.autoRemove = (e) => PP(e) || !(e != null && e.length);
-var kP = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
-kP.autoRemove = (e) => PP(e) || !(e != null && e.length);
-var AP = (e, t, n) => e.getValue(t) === n;
-AP.autoRemove = (e) => PP(e);
-var jP = (e, t, n) => e.getValue(t) == n;
-jP.autoRemove = (e) => PP(e);
-var MP = (e, t, n) => {
+kP.autoRemove = (e) => FP(e) || !(e != null && e.length);
+var AP = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
+AP.autoRemove = (e) => FP(e) || !(e != null && e.length);
+var jP = (e, t, n) => e.getValue(t) === n;
+jP.autoRemove = (e) => FP(e);
+var MP = (e, t, n) => e.getValue(t) == n;
+MP.autoRemove = (e) => FP(e);
+var NP = (e, t, n) => {
let [r, i] = n, a = e.getValue(t);
return a >= r && a <= i;
};
-MP.resolveFilterValue = (e) => {
+NP.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];
-}, MP.autoRemove = (e) => PP(e) || PP(e[0]) && PP(e[1]);
-var NP = {
- includesString: wP,
- includesStringSensitive: TP,
- equalsString: EP,
- arrIncludes: DP,
- arrIncludesAll: OP,
- arrIncludesSome: kP,
- equals: AP,
- weakEquals: jP,
- inNumberRange: MP
+}, NP.autoRemove = (e) => FP(e) || FP(e[0]) && FP(e[1]);
+var PP = {
+ includesString: TP,
+ includesStringSensitive: EP,
+ equalsString: DP,
+ arrIncludes: OP,
+ arrIncludesAll: kP,
+ arrIncludesSome: AP,
+ equals: jP,
+ weakEquals: MP,
+ inNumberRange: NP
};
-function PP(e) {
+function FP(e) {
return e == null || e === "";
}
-var FP = {
+var IP = {
getDefaultColumnDef: () => ({ filterFn: "auto" }),
getInitialState: (e) => ({
columnFilters: [],
...e
}),
getDefaultOptions: (e) => ({
- onColumnFiltersChange: uP("columnFilters", e),
+ onColumnFiltersChange: dP("columnFilters", e),
filterFromLeafRows: !1,
maxLeafRowFilterDepth: 100
}),
createColumn: (e, t) => {
e.getAutoFilterFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- return typeof n == "string" ? NP.includesString : typeof n == "number" ? NP.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? NP.equals : Array.isArray(n) ? NP.arrIncludes : NP.weakEquals;
- }, e.getFilterFn = () => dP(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? NP[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" ? PP.includesString : typeof n == "number" ? PP.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? PP.equals : Array.isArray(n) ? PP.arrIncludes : PP.weakEquals;
+ }, e.getFilterFn = () => fP(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? PP[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
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 = lP(n, i ? i.value : void 0);
- if (IP(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = uP(n, i ? i.value : void 0);
+ if (LP(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
let o = {
id: e.id,
value: a
@@ -38468,19 +38495,19 @@ var FP = {
createTable: (e) => {
e.setColumnFilters = (t) => {
let n = e.getAllLeafColumns();
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => lP(t, e)?.filter((e) => {
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => uP(t, e)?.filter((e) => {
let t = n.find((t) => t.id === e.id);
- return !(t && IP(t.getFilterFn(), e.value, t));
+ return !(t && LP(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 IP(e, t, n) {
+function LP(e, t, n) {
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
}
-var LP = {
+var RP = {
sum: (e, t, n) => n.reduce((t, n) => {
let r = n.getValue(e);
return t + (typeof r == "number" ? r : 0);
@@ -38516,7 +38543,7 @@ var LP = {
median: (e, t) => {
if (!t.length) return;
let n = t.map((t) => t.getValue(e));
- if (!fP(n)) return;
+ if (!pP(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];
@@ -38524,7 +38551,7 @@ var LP = {
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
-}, RP = {
+}, zP = {
getDefaultColumnDef: () => ({
aggregatedCell: (e) => {
var t;
@@ -38537,7 +38564,7 @@ var LP = {
...e
}),
getDefaultOptions: (e) => ({
- onGroupingChange: uP("grouping", e),
+ onGroupingChange: dP("grouping", e),
groupedColumnMode: "reorder"
}),
createColumn: (e, t) => {
@@ -38550,11 +38577,11 @@ var LP = {
};
}, e.getAutoAggregationFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- if (typeof n == "number") return LP.sum;
- if (Object.prototype.toString.call(n) === "[object Date]") return LP.extent;
+ if (typeof n == "number") return RP.sum;
+ if (Object.prototype.toString.call(n) === "[object Date]") return RP.extent;
}, e.getAggregationFn = () => {
if (!e) throw Error();
- return dP(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? LP[e.columnDef.aggregationFn];
+ return fP(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? RP[e.columnDef.aggregationFn];
};
},
createTable: (e) => {
@@ -38576,27 +38603,27 @@ var LP = {
};
}
};
-function zP(e, t, n) {
+function BP(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 BP = {
+var VP = {
getInitialState: (e) => ({
columnOrder: [],
...e
}),
- getDefaultOptions: (e) => ({ onColumnOrderChange: uP("columnOrder", e) }),
+ getDefaultOptions: (e) => ({ onColumnOrderChange: dP("columnOrder", e) }),
createColumn: (e, t) => {
- e.getIndex = mP((e) => [ZP(t, e)], (t) => t.findIndex((t) => t.id === e.id), hP(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => ZP(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
- let r = ZP(t, n);
+ e.getIndex = hP((e) => [QP(t, e)], (t) => t.findIndex((t) => t.id === e.id), gP(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => QP(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
+ let r = QP(t, n);
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 = mP(() => [
+ }, e._getOrderColumnsFn = hP(() => [
e.getState().columnOrder,
e.getState().grouping,
e.options.groupedColumnMode
@@ -38611,18 +38638,18 @@ var BP = {
}
i = [...i, ...n];
}
- return zP(i, t, n);
- }, hP(e.options, "debugTable", "_getOrderColumnsFn"));
+ return BP(i, t, n);
+ }, gP(e.options, "debugTable", "_getOrderColumnsFn"));
}
-}, VP = () => ({
+}, HP = () => ({
left: [],
right: []
-}), HP = {
+}), UP = {
getInitialState: (e) => ({
- columnPinning: VP(),
+ columnPinning: HP(),
...e
}),
- getDefaultOptions: (e) => ({ onColumnPinningChange: uP("columnPinning", e) }),
+ getDefaultOptions: (e) => ({ onColumnPinningChange: dP("columnPinning", e) }),
createColumn: (e, t) => {
e.pin = (n) => {
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
@@ -38646,75 +38673,75 @@ var BP = {
};
},
createRow: (e, t) => {
- e.getCenterVisibleCells = mP(() => [
+ e.getCenterVisibleCells = hP(() => [
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));
- }, hP(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = mP(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ }, gP(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = hP(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
...e,
position: "left"
- })), hP(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = mP(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ })), gP(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = hP(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
...e,
position: "right"
- })), hP(t.options, "debugRows", "getRightVisibleCells"));
+ })), gP(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 ? VP() : e.initialState?.columnPinning ?? VP()), e.getIsSomeColumnsPinned = (t) => {
+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? HP() : e.initialState?.columnPinning ?? HP()), e.getIsSomeColumnsPinned = (t) => {
let n = e.getState().columnPinning;
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
- }, e.getLeftLeafColumns = mP(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), hP(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = mP(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), hP(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = mP(() => [
+ }, e.getLeftLeafColumns = hP(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), gP(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = hP(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), gP(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = hP(() => [
e.getAllLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
], (e, t, n) => {
let r = [...t ?? [], ...n ?? []];
return e.filter((e) => !r.includes(e.id));
- }, hP(e.options, "debugColumns", "getCenterLeafColumns"));
+ }, gP(e.options, "debugColumns", "getCenterLeafColumns"));
}
};
-function UP(e) {
+function WP(e) {
return e || (typeof document < "u" ? document : null);
}
-var WP = {
+var GP = {
size: 150,
minSize: 20,
maxSize: 2 ** 53 - 1
-}, GP = () => ({
+}, KP = () => ({
startOffset: null,
startSize: null,
deltaOffset: null,
deltaPercentage: null,
isResizingColumn: !1,
columnSizingStart: []
-}), KP = {
- getDefaultColumnDef: () => WP,
+}), qP = {
+ getDefaultColumnDef: () => GP,
getInitialState: (e) => ({
columnSizing: {},
- columnSizingInfo: GP(),
+ columnSizingInfo: KP(),
...e
}),
getDefaultOptions: (e) => ({
columnResizeMode: "onEnd",
columnResizeDirection: "ltr",
- onColumnSizingChange: uP("columnSizing", e),
- onColumnSizingInfoChange: uP("columnSizingInfo", e)
+ onColumnSizingChange: dP("columnSizing", e),
+ onColumnSizingInfoChange: dP("columnSizingInfo", e)
}),
createColumn: (e, t) => {
e.getSize = () => {
let n = t.getState().columnSizing[e.id];
- return Math.min(Math.max(e.columnDef.minSize ?? WP.minSize, n ?? e.columnDef.size ?? WP.size), e.columnDef.maxSize ?? WP.maxSize);
- }, e.getStart = mP((e) => [
+ return Math.min(Math.max(e.columnDef.minSize ?? GP.minSize, n ?? e.columnDef.size ?? GP.size), e.columnDef.maxSize ?? GP.maxSize);
+ }, e.getStart = hP((e) => [
e,
- ZP(t, e),
+ QP(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), hP(t.options, "debugColumns", "getStart")), e.getAfter = mP((e) => [
+ ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), gP(t.options, "debugColumns", "getStart")), e.getAfter = hP((e) => [
e,
- ZP(t, e),
+ QP(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), hP(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
+ ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), gP(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
t.setColumnSizing((t) => {
let { [e.id]: n, ...r } = t;
return r;
@@ -38736,8 +38763,8 @@ var WP = {
}, e.getResizeHandler = (n) => {
let r = t.getColumn(e.column.id), i = r?.getCanResize();
return (a) => {
- if (!r || !i || (a.persist == null || a.persist(), YP(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 = YP(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
+ if (!r || !i || (a.persist == null || a.persist(), XP(a) && a.touches && a.touches.length > 1)) return;
+ let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = XP(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
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) => {
@@ -38762,7 +38789,7 @@ var WP = {
deltaPercentage: null,
columnSizingStart: []
}));
- }, p = UP(n), m = {
+ }, p = WP(n), m = {
moveHandler: (e) => d(e.clientX),
upHandler: (e) => {
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -38772,8 +38799,8 @@ var WP = {
upHandler: (e) => {
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
}
- }, g = JP() ? { passive: !1 } : !1;
- YP(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 = YP() ? { passive: !1 } : !1;
+ XP(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
...e,
startOffset: c,
startSize: o,
@@ -38789,12 +38816,12 @@ var WP = {
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 ? GP() : e.initialState.columnSizingInfo ?? GP());
+ e.setColumnSizingInfo(t ? KP() : e.initialState.columnSizingInfo ?? KP());
}, 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;
}
-}, qP = null;
-function JP() {
- if (typeof qP == "boolean") return qP;
+}, JP = null;
+function YP() {
+ if (typeof JP == "boolean") return JP;
let e = !1;
try {
let t = { get passive() {
@@ -38804,17 +38831,17 @@ function JP() {
} catch {
e = !1;
}
- return qP = e, qP;
+ return JP = e, JP;
}
-function YP(e) {
+function XP(e) {
return e.type === "touchstart";
}
-var XP = {
+var ZP = {
getInitialState: (e) => ({
columnVisibility: {},
...e
}),
- getDefaultOptions: (e) => ({ onColumnVisibilityChange: uP("columnVisibility", e) }),
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: dP("columnVisibility", e) }),
createColumn: (e, t) => {
e.toggleVisibility = (n) => {
e.getCanHide() && t.setColumnVisibility((t) => ({
@@ -38829,7 +38856,7 @@ var XP = {
};
},
createRow: (e, t) => {
- e._getAllVisibleCells = mP(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), hP(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = mP(() => [
+ e._getAllVisibleCells = hP(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), gP(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = hP(() => [
e.getLeftVisibleCells(),
e.getCenterVisibleCells(),
e.getRightVisibleCells()
@@ -38837,10 +38864,10 @@ var XP = {
...e,
...t,
...n
- ], hP(t.options, "debugRows", "getVisibleCells"));
+ ], gP(t.options, "debugRows", "getVisibleCells"));
},
createTable: (e) => {
- let t = (t, n) => mP(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), hP(e.options, "debugColumns", t));
+ let t = (t, n) => hP(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), gP(e.options, "debugColumns", t));
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) => {
@@ -38853,20 +38880,20 @@ var XP = {
};
}
};
-function ZP(e, t) {
+function QP(e, t) {
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
}
-var QP = { createTable: (e) => {
+var $P = { 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();
};
-} }, $P = {
+} }, eF = {
getInitialState: (e) => ({
globalFilter: void 0,
...e
}),
getDefaultOptions: (e) => ({
- onGlobalFilterChange: uP("globalFilter", e),
+ onGlobalFilterChange: dP("globalFilter", e),
globalFilterFn: "auto",
getColumnCanGlobalFilter: (t) => {
var n;
@@ -38878,22 +38905,22 @@ var QP = { 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 = () => NP.includesString, e.getGlobalFilterFn = () => {
+ e.getGlobalAutoFilterFn = () => PP.includesString, e.getGlobalFilterFn = () => {
let { globalFilterFn: t } = e.options;
- return dP(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? NP[t];
+ return fP(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? PP[t];
}, e.setGlobalFilter = (t) => {
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
}, e.resetGlobalFilter = (t) => {
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
};
}
-}, eF = {
+}, tF = {
getInitialState: (e) => ({
expanded: {},
...e
}),
getDefaultOptions: (e) => ({
- onExpandedChange: uP("expanded", e),
+ onExpandedChange: dP("expanded", e),
paginateExpandedRows: !0
}),
createTable: (e) => {
@@ -38964,18 +38991,18 @@ var QP = { createTable: (e) => {
};
};
}
-}, tF = 0, nF = 10, rF = () => ({
- pageIndex: tF,
- pageSize: nF
-}), iF = {
+}, nF = 0, rF = 10, iF = () => ({
+ pageIndex: nF,
+ pageSize: rF
+}), aF = {
getInitialState: (e) => ({
...e,
pagination: {
- ...rF(),
+ ...iF(),
...e?.pagination
}
}),
- getDefaultOptions: (e) => ({ onPaginationChange: uP("pagination", e) }),
+ getDefaultOptions: (e) => ({ onPaginationChange: dP("pagination", e) }),
createTable: (e) => {
let t = !1, n = !1;
e._autoResetPageIndex = () => {
@@ -38991,11 +39018,11 @@ var QP = { createTable: (e) => {
e.resetPageIndex(), n = !1;
});
}
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => lP(t, e)), e.resetPagination = (t) => {
- e.setPagination(t ? rF() : e.initialState.pagination ?? rF());
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => uP(t, e)), e.resetPagination = (t) => {
+ e.setPagination(t ? iF() : e.initialState.pagination ?? iF());
}, e.setPageIndex = (t) => {
e.setPagination((n) => {
- let r = lP(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+ let r = uP(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
@@ -39003,13 +39030,13 @@ var QP = { createTable: (e) => {
});
}, e.resetPageIndex = (t) => {
var n;
- e.setPageIndex(t ? tF : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? tF);
+ e.setPageIndex(t ? nF : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? nF);
}, e.resetPageSize = (t) => {
var n;
- e.setPageSize(t ? nF : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? nF);
+ e.setPageSize(t ? rF : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? rF);
}, e.setPageSize = (t) => {
e.setPagination((e) => {
- let n = Math.max(1, lP(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
+ let n = Math.max(1, uP(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -39017,28 +39044,28 @@ var QP = { createTable: (e) => {
};
});
}, e.setPageCount = (t) => e.setPagination((n) => {
- let r = lP(t, e.options.pageCount ?? -1);
+ let r = uP(t, e.options.pageCount ?? -1);
return typeof r == "number" && (r = Math.max(-1, r)), {
...n,
pageCount: r
};
- }), e.getPageOptions = mP(() => [e.getPageCount()], (e) => {
+ }), e.getPageOptions = hP(() => [e.getPageCount()], (e) => {
let t = [];
return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t;
- }, hP(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
+ }, gP(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;
}
-}, aF = () => ({
+}, oF = () => ({
top: [],
bottom: []
-}), oF = {
+}), sF = {
getInitialState: (e) => ({
- rowPinning: aF(),
+ rowPinning: oF(),
...e
}),
- getDefaultOptions: (e) => ({ onRowPinningChange: uP("rowPinning", e) }),
+ getDefaultOptions: (e) => ({ onRowPinningChange: dP("rowPinning", e) }),
createRow: (e, t) => {
e.pin = (n, r, i) => {
let a = r ? e.getLeafRows().map((e) => {
@@ -39077,7 +39104,7 @@ var QP = { createTable: (e) => {
};
},
createTable: (e) => {
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? aF() : e.initialState?.rowPinning ?? aF()), e.getIsSomeRowsPinned = (t) => {
+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? oF() : e.initialState?.rowPinning ?? oF()), e.getIsSomeRowsPinned = (t) => {
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) => {
@@ -39086,22 +39113,22 @@ var QP = { createTable: (e) => {
}) : (n ?? []).map((e) => t.find((t) => t.id === e))).filter(Boolean).map((e) => ({
...e,
position: r
- })), e.getTopRows = mP(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), hP(e.options, "debugRows", "getTopRows")), e.getBottomRows = mP(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), hP(e.options, "debugRows", "getBottomRows")), e.getCenterRows = mP(() => [
+ })), e.getTopRows = hP(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), gP(e.options, "debugRows", "getTopRows")), e.getBottomRows = hP(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), gP(e.options, "debugRows", "getBottomRows")), e.getCenterRows = hP(() => [
e.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));
- }, hP(e.options, "debugRows", "getCenterRows"));
+ }, gP(e.options, "debugRows", "getCenterRows"));
}
-}, sF = {
+}, cF = {
getInitialState: (e) => ({
rowSelection: {},
...e
}),
getDefaultOptions: (e) => ({
- onRowSelectionChange: uP("rowSelection", e),
+ onRowSelectionChange: dP("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableSubRowSelection: !0
@@ -39120,21 +39147,21 @@ var QP = { createTable: (e) => {
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
return e.getRowModel().rows.forEach((t) => {
- cF(i, t.id, r, !0, e);
+ lF(i, t.id, r, !0, e);
}), i;
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = mP(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? lF(e, n) : {
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = hP(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? uF(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, hP(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = mP(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? lF(e, n) : {
+ }, gP(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = hP(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? uF(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, hP(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = mP(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? lF(e, n) : {
+ }, gP(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = hP(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? uF(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, hP(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
+ }, gP(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 = () => {
@@ -39158,17 +39185,17 @@ var QP = { createTable: (e) => {
t.setRowSelection((a) => {
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
let o = { ...a };
- return cF(o, e.id, n, r?.selectChildren ?? !0, t), o;
+ return lF(o, e.id, n, r?.selectChildren ?? !0, t), o;
});
}, e.getIsSelected = () => {
let { rowSelection: n } = t.getState();
- return uF(e, n);
+ return dF(e, n);
}, e.getIsSomeSelected = () => {
let { rowSelection: n } = t.getState();
- return dF(e, n) === "some";
+ return fF(e, n) === "some";
}, e.getIsAllSubRowsSelected = () => {
let { rowSelection: n } = t.getState();
- return dF(e, n) === "all";
+ return fF(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) => {
@@ -39176,16 +39203,16 @@ var QP = { createTable: (e) => {
};
};
}
-}, cF = (e, t, n, r, i) => {
+}, lF = (e, t, n, r, i) => {
var a;
let o = i.getRow(t, !0);
- n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => cF(e, t.id, n, r, i));
+ n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => lF(e, t.id, n, r, i));
};
-function lF(e, t) {
+function uF(e, t) {
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
return e.map((e) => {
var t;
- let o = uF(e, n);
+ let o = dF(e, n);
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
...e,
subRows: a(e.subRows)
@@ -39198,32 +39225,32 @@ function lF(e, t) {
rowsById: i
};
}
-function uF(e, t) {
+function dF(e, t) {
return t[e.id] ?? !1;
}
-function dF(e, t, n) {
+function fF(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() && (uF(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
- let n = dF(e, t);
+ if (!(a && !i) && (e.getCanSelect() && (dF(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
+ let n = fF(e, t);
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
}
}), i ? "all" : a ? "some" : !1;
}
-var fF = /([0-9]+)/gm, pF = (e, t, n) => xF(bF(e.getValue(n)).toLowerCase(), bF(t.getValue(n)).toLowerCase()), mF = (e, t, n) => xF(bF(e.getValue(n)), bF(t.getValue(n))), hF = (e, t, n) => yF(bF(e.getValue(n)).toLowerCase(), bF(t.getValue(n)).toLowerCase()), gF = (e, t, n) => yF(bF(e.getValue(n)), bF(t.getValue(n))), _F = (e, t, n) => {
+var pF = /([0-9]+)/gm, mF = (e, t, n) => SF(xF(e.getValue(n)).toLowerCase(), xF(t.getValue(n)).toLowerCase()), hF = (e, t, n) => SF(xF(e.getValue(n)), xF(t.getValue(n))), gF = (e, t, n) => bF(xF(e.getValue(n)).toLowerCase(), xF(t.getValue(n)).toLowerCase()), _F = (e, t, n) => bF(xF(e.getValue(n)), xF(t.getValue(n))), vF = (e, t, n) => {
let r = e.getValue(n), i = t.getValue(n);
return r > i ? 1 : r < i ? -1 : 0;
-}, vF = (e, t, n) => yF(e.getValue(n), t.getValue(n));
-function yF(e, t) {
+}, yF = (e, t, n) => bF(e.getValue(n), t.getValue(n));
+function bF(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
-function bF(e) {
+function xF(e) {
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
}
-function xF(e, t) {
- let n = e.split(fF).filter(Boolean), r = t.split(fF).filter(Boolean);
+function SF(e, t) {
+ let n = e.split(pF).filter(Boolean), r = t.split(pF).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])) {
@@ -39237,22 +39264,22 @@ function xF(e, t) {
}
return n.length - r.length;
}
-var SF = {
- alphanumeric: pF,
- alphanumericCaseSensitive: mF,
- text: hF,
- textCaseSensitive: gF,
- datetime: _F,
- basic: vF
-}, CF = [
- bP,
- XP,
- BP,
- HP,
- CP,
- FP,
- QP,
+var CF = {
+ alphanumeric: mF,
+ alphanumericCaseSensitive: hF,
+ text: gF,
+ textCaseSensitive: _F,
+ datetime: vF,
+ basic: yF
+}, wF = [
+ xP,
+ ZP,
+ VP,
+ UP,
+ wP,
+ IP,
$P,
+ eF,
{
getInitialState: (e) => ({
sorting: [],
@@ -39263,7 +39290,7 @@ var SF = {
sortUndefined: 1
}),
getDefaultOptions: (e) => ({
- onSortingChange: uP("sorting", e),
+ onSortingChange: dP("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
}),
createColumn: (e, t) => {
@@ -39271,13 +39298,13 @@ var SF = {
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 SF.datetime;
- if (typeof n == "string" && (r = !0, n.split(fF).length > 1)) return SF.alphanumeric;
+ if (Object.prototype.toString.call(n) === "[object Date]") return CF.datetime;
+ if (typeof n == "string" && (r = !0, n.split(pF).length > 1)) return CF.alphanumeric;
}
- return r ? SF.text : SF.basic;
+ return r ? CF.text : CF.basic;
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
if (!e) throw Error();
- return dP(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? SF[e.columnDef.sortingFn];
+ return fP(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? CF[e.columnDef.sortingFn];
}, e.toggleSorting = (n, r) => {
let i = e.getNextSortingOrder(), a = n != null;
t.setSorting((o) => {
@@ -39314,15 +39341,15 @@ var SF = {
}, 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());
}
},
- RP,
- eF,
- iF,
- oF,
+ zP,
+ tF,
+ aF,
sF,
- KP
+ cF,
+ qP
];
-function wF(e) {
- let t = [...CF, ...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 TF(e) {
+ let t = [...wF, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
...r,
...e
}, a = { ...e.initialState ?? {} };
@@ -39348,7 +39375,7 @@ function wF(e) {
n.setState(n.initialState);
},
setOptions: (e) => {
- let t = lP(e, n.options);
+ let t = uP(e, n.options);
n.options = i(t);
},
getState: () => n.options.state,
@@ -39363,7 +39390,7 @@ function wF(e) {
if (!r && (r = n.getCoreRowModel().rowsById[e], !r)) throw Error();
return r;
},
- _getDefaultColumnDef: mP(() => [n.options.defaultColumn], (e) => (e ??= {}, {
+ _getDefaultColumnDef: hP(() => [n.options.defaultColumn], (e) => (e ??= {}, {
header: (e) => {
let t = e.header.column.columnDef;
return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null;
@@ -39374,20 +39401,20 @@ function wF(e) {
},
...n._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),
...e
- }), hP(e, "debugColumns", "_getDefaultColumnDef")),
+ }), gP(e, "debugColumns", "_getDefaultColumnDef")),
_getColumnDefs: () => n.options.columns,
- getAllColumns: mP(() => [n._getColumnDefs()], (e) => {
+ getAllColumns: hP(() => [n._getColumnDefs()], (e) => {
let t = function(e, r, i) {
return i === void 0 && (i = 0), e.map((e) => {
- let a = _P(n, e, i, r), o = e;
+ let a = vP(n, e, i, r), o = e;
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
});
};
return t(e);
- }, hP(e, "debugColumns", "getAllColumns")),
- getAllFlatColumns: mP(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), hP(e, "debugColumns", "getAllFlatColumns")),
- _getAllFlatColumnsById: mP(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), hP(e, "debugColumns", "getAllFlatColumnsById")),
- getAllLeafColumns: mP(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), hP(e, "debugColumns", "getAllLeafColumns")),
+ }, gP(e, "debugColumns", "getAllColumns")),
+ getAllFlatColumns: hP(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), gP(e, "debugColumns", "getAllFlatColumns")),
+ _getAllFlatColumnsById: hP(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), gP(e, "debugColumns", "getAllFlatColumnsById")),
+ getAllLeafColumns: hP(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), gP(e, "debugColumns", "getAllLeafColumns")),
getColumn: (e) => n._getAllFlatColumnsById()[e]
};
Object.assign(n, c);
@@ -39397,8 +39424,8 @@ function wF(e) {
}
return n;
}
-function TF() {
- return (e) => mP(() => [e.options.data], (t) => {
+function EF() {
+ return (e) => hP(() => [e.options.data], (t) => {
let n = {
rows: [],
flatRows: [],
@@ -39407,7 +39434,7 @@ function TF() {
i === void 0 && (i = 0);
let o = [];
for (let c = 0; c < t.length; c++) {
- let l = SP(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
+ let l = CP(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));
@@ -39416,9 +39443,9 @@ function TF() {
return o;
};
return n.rows = r(t), n;
- }, hP(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
+ }, gP(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
}
-function EF(e) {
+function DF(e) {
let t = [], n = (e) => {
var r;
t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);
@@ -39429,8 +39456,8 @@ function EF(e) {
rowsById: e.rowsById
};
}
-function DF(e) {
- return (e) => mP(() => [
+function OF(e) {
+ return (e) => hP(() => [
e.getState().pagination,
e.getPrePaginationRowModel(),
e.options.paginateExpandedRows ? void 0 : e.getState().expanded
@@ -39443,7 +39470,7 @@ function DF(e) {
rows: a,
flatRows: o,
rowsById: s
- } : EF({
+ } : DF({
rows: a,
flatRows: o,
rowsById: s
@@ -39452,32 +39479,32 @@ function DF(e) {
u.flatRows.push(e), e.subRows.length && e.subRows.forEach(d);
};
return u.rows.forEach(d), u;
- }, hP(e.options, "debugTable", "getPaginationRowModel"));
+ }, gP(e.options, "debugTable", "getPaginationRowModel"));
}
//#endregion
//#region node_modules/@tanstack/react-table/build/lib/index.mjs
-function OF(e, t) {
- return e ? kF(e) ? /*#__PURE__*/ I.createElement(e, t) : e : null;
-}
-function kF(e) {
- return AF(e) || typeof e == "function" || jF(e);
+function kF(e, t) {
+ return e ? AF(e) ? /*#__PURE__*/ I.createElement(e, t) : e : null;
}
function AF(e) {
+ return jF(e) || typeof e == "function" || MF(e);
+}
+function jF(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function jF(e) {
+function MF(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function MF(e) {
+function NF(e) {
let t = {
state: {},
onStateChange: () => {},
renderFallbackValue: null,
...e
- }, [n] = I.useState(() => ({ current: wF(t) })), [r, i] = I.useState(() => n.current.initialState);
+ }, [n] = I.useState(() => ({ current: TF(t) })), [r, i] = I.useState(() => n.current.initialState);
return n.current.setOptions((t) => ({
...t,
...e,
@@ -39492,10 +39519,10 @@ function MF(e) {
}
//#endregion
//#region src/react/components/legacy-avatar.ts
-var NF = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover";
+var PF = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover";
//#endregion
//#region src/react/components/selection-dock.tsx
-function PF({ children: e, count: t, label: n }) {
+function FF({ children: e, count: t, label: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
role: "group",
"aria-label": n,
@@ -39510,8 +39537,8 @@ function PF({ children: e, count: t, label: n }) {
}
//#endregion
//#region src/react/follow-manage/add-feed.tsx
-var FF = "输入女优名,到 JavDB 找她的演员页";
-function IF(e, t) {
+var IF = "输入女优名,到 JavDB 找她的演员页";
+function LF(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 {
@@ -39530,10 +39557,10 @@ function IF(e, t) {
blocked: !1
};
}
-function LF({ card: e, picked: t, onPick: n }) {
+function RF({ card: e, picked: t, onPick: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(Nj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Fj, {
isSelected: t,
onChange: n,
children: /* @__PURE__ */ (0, L.jsxs)("span", {
@@ -39543,7 +39570,7 @@ function LF({ card: e, picked: t, onPick: n }) {
className: "min-w-0 break-words",
children: e.names.join("、")
}),
- e.record ? /* @__PURE__ */ (0, L.jsx)(Tw, {
+ e.record ? /* @__PURE__ */ (0, L.jsx)(Ew, {
variant: "caption",
color: "neutral",
children: e.record
@@ -39554,14 +39581,14 @@ function LF({ card: e, picked: t, onPick: n }) {
}) : null
]
})
- }), /* @__PURE__ */ (0, L.jsx)(nj, {
+ }), /* @__PURE__ */ (0, L.jsx)(ij, {
href: e.url,
children: e.id
})]
});
}
-function RF({ readOnly: e, toast: t, onAdded: n }) {
- let [r, i] = (0, I.useState)(""), [a, o] = (0, I.useState)(null), [s, c] = (0, I.useState)(/* @__PURE__ */ new Set()), l = Kw(), u = () => {
+function zF({ readOnly: e, toast: t, onAdded: n }) {
+ let [r, i] = (0, I.useState)(""), [a, o] = (0, I.useState)(null), [s, c] = (0, I.useState)(/* @__PURE__ */ new Set()), l = qw(), u = () => {
let t = r.trim();
!t || e || l.run("lookup", (e) => sce(t, e), (e) => {
o(e), c(new Set(e.suggested));
@@ -39574,9 +39601,9 @@ function RF({ readOnly: e, toast: t, onAdded: n }) {
a && l.run("follow", (e) => cce(a.q, [...s], e), (e) => {
t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();
});
- }, m = a ? IF(a, s) : null;
+ }, m = a ? LF(a, s) : null;
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: Rw({
+ className: zw({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -39589,11 +39616,11 @@ function RF({ readOnly: e, toast: t, onAdded: n }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-64 grow",
- children: /* @__PURE__ */ (0, L.jsx)(tM, {
+ children: /* @__PURE__ */ (0, L.jsx)(rM, {
"aria-label": "女优名",
- placeholder: FF,
+ placeholder: IF,
value: r,
- leadingIcon: PS,
+ leadingIcon: FS,
isDisabled: e,
onChange: i,
onKeyDown: d
@@ -39614,16 +39641,16 @@ function RF({ readOnly: e, toast: t, onAdded: n }) {
a ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(tj, { children: "JavDB 上的演员卡" }),
- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, L.jsx)(LF, {
+ /* @__PURE__ */ (0, L.jsx)(rj, { children: "JavDB 上的演员卡" }),
+ a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, L.jsx)(RF, {
card: e,
picked: s.has(e.id),
onPick: (t) => c((n) => {
let r = new Set(n);
return t ? r.add(e.id) : r.delete(e.id), r;
})
- }, e.id)) : /* @__PURE__ */ (0, L.jsx)($A, { children: "JavDB 上没有搜到这个名字。" }),
- a.candidates.length ? /* @__PURE__ */ (0, L.jsx)($A, {
+ }, e.id)) : /* @__PURE__ */ (0, L.jsx)(tj, { children: "JavDB 上没有搜到这个名字。" }),
+ a.candidates.length ? /* @__PURE__ */ (0, L.jsx)(tj, {
role: "status",
children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"
}) : null,
@@ -39650,7 +39677,7 @@ function RF({ readOnly: e, toast: t, onAdded: n }) {
}
//#endregion
//#region src/react/follow-manage/feed-sources.tsx
-var zF = {
+var BF = {
select: "选择",
name: "名称",
kind: "类型",
@@ -39660,33 +39687,33 @@ var zF = {
fetched: "上次拉取",
fresh: "上次新增",
actions: "操作"
-}, BF = /* @__PURE__ */ new Set(["select", "actions"]), VF = () => X.invalidateQueries({
- queryKey: rN,
+}, VF = /* @__PURE__ */ new Set(["select", "actions"]), HF = () => X.invalidateQueries({
+ queryKey: iN,
exact: !0
-}), HF = (e) => e.name || e.url, UF = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
-function WF(e) {
+}), UF = (e) => e.name || e.url, WF = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
+function GF(e) {
try {
return new URL(e).hostname.replace(/^www\./, "");
} catch {
return e;
}
}
-function GF({ source: e }) {
- return e.last_error ? /* @__PURE__ */ (0, L.jsx)(Tw, {
+function KF({ source: e }) {
+ return e.last_error ? /* @__PURE__ */ (0, L.jsx)(Ew, {
variant: "caption",
color: "rose",
children: "拉取失败"
- }) : e.enabled ? /* @__PURE__ */ (0, L.jsx)(Tw, {
+ }) : e.enabled ? /* @__PURE__ */ (0, L.jsx)(Ew, {
variant: "caption",
color: "lime",
children: "正常"
- }) : /* @__PURE__ */ (0, L.jsx)(Tw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Ew, {
variant: "caption",
color: "neutral",
children: "已暂停"
});
}
-function KF({ source: e, avatarInner: t }) {
+function qF({ source: e, avatarInner: t }) {
let n = e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
@@ -39694,31 +39721,31 @@ function KF({ source: e, avatarInner: t }) {
} : null;
return /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${NF}`,
- dangerouslySetInnerHTML: { __html: t(HF(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 ${PF}`,
+ dangerouslySetInnerHTML: { __html: t(UF(e), n, null, "performer") }
});
}
-var qF = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
-function JF(e) {
+var JF = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
+function YF(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
for (let { entity_id: r } of e) r !== null && (t.has(r) ? n.add(r) : t.add(r));
return n;
}
-function YF(e, t) {
+function XF(e, t) {
let n = e.length === 1 ? e[0] : null;
return h({
title: n ? "移除订阅源" : `移除 ${e.length} 条订阅源`,
- body: n ? `将移除订阅源「${HF(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
+ body: n ? `将移除订阅源「${UF(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
confirmLabel: n ? "移除订阅源" : "移除所选订阅源",
danger: !0,
onConfirm: t
});
}
-function XF({ readOnly: e, toast: t, avatarInner: n }) {
+function ZF({ readOnly: e, toast: t, avatarInner: n }) {
let r = kt({
- queryKey: rN,
- queryFn: ({ signal: e }) => CN(e)
- }), i = Kw(), a = r.data, o = (0, I.useMemo)(() => a?.sources ?? [], [a]), [s, c] = (0, I.useState)(/* @__PURE__ */ new Set());
+ queryKey: iN,
+ queryFn: ({ signal: e }) => wN(e)
+ }), i = qw(), a = r.data, o = (0, I.useMemo)(() => a?.sources ?? [], [a]), [s, c] = (0, I.useState)(/* @__PURE__ */ new Set());
(0, I.useEffect)(() => {
c((e) => {
let t = new Set(o.map((e) => e.id)), n = new Set([...e].filter((e) => t.has(e)));
@@ -39728,7 +39755,7 @@ function XF({ readOnly: e, toast: t, avatarInner: n }) {
let u = At({
mutationFn: async (e) => {
let t = await l(e.ids, 4, async (t) => {
- e.action === "remove" ? await TN(t) : await wN(t, e.action === "enabled");
+ e.action === "remove" ? await EN(t) : await TN(t, e.action === "enabled");
});
return {
...e,
@@ -39737,13 +39764,13 @@ function XF({ 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()), VF(), e.action === "remove" && r && t(`已移除 ${r} 条订阅源`), n.length) {
+ if (c(/* @__PURE__ */ new Set()), HF(), e.action === "remove" && r && t(`已移除 ${r} 条订阅源`), n.length) {
let e = n[0];
i.setError(`${n.length} 条没有写入:${e.ok ? "" : K(e.error)}`);
}
},
onError: (e) => i.setError(K(e))
- }), d = (0, I.useMemo)(() => JF(o), [o]), f = (0, I.useRef)({
+ }), d = (0, I.useMemo)(() => YF(o), [o]), f = (0, I.useRef)({
readOnly: e,
avatarInner: n,
shared: d,
@@ -39757,34 +39784,34 @@ function XF({ readOnly: e, toast: t, avatarInner: n }) {
avatarInner: n,
shared: d,
busy: i.busy,
- toggle: (e, t) => void i.run(`enabled-${e.id}`, (n) => wN(e.id, t, n), () => void VF()),
- fetch: (e) => void i.run(`check-${e.id}`, (t) => EN(t, [e.id]), () => void VF()),
- remove: (e) => void YF([e], async () => {
- await TN(e.id), t(`已移除订阅源「${HF(e)}」`), VF();
+ toggle: (e, t) => void i.run(`enabled-${e.id}`, (n) => TN(e.id, t, n), () => void HF()),
+ fetch: (e) => void i.run(`check-${e.id}`, (t) => DN(t, [e.id]), () => void HF()),
+ remove: (e) => void XF([e], async () => {
+ await EN(e.id), t(`已移除订阅源「${UF(e)}」`), HF();
})
};
let p = (0, I.useMemo)(() => {
- let e = cP(), t = (e) => () => zF[e] || e;
+ let e = lP(), t = (e) => () => BF[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, L.jsx)(Nj, {
+ cell: (e) => /* @__PURE__ */ (0, L.jsx)(Fj, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
- "aria-label": `选择 ${HF(e.row.original)}`
+ "aria-label": `选择 ${UF(e.row.original)}`
})
}),
- e.accessor(HF, {
+ e.accessor(UF, {
id: "name",
header: t("name"),
cell: (e) => {
- let t = qF(e.row.original, f.current.shared);
+ let t = JF(e.row.original, f.current.shared);
return /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",
children: [
- /* @__PURE__ */ (0, L.jsx)(KF, {
+ /* @__PURE__ */ (0, L.jsx)(qF, {
source: e.row.original,
avatarInner: f.current.avatarInner
}),
@@ -39815,15 +39842,15 @@ function XF({ readOnly: e, toast: t, avatarInner: n }) {
rel: "noreferrer noopener",
title: "打开来源页面",
className: "text-text-primary underline-offset-2 hover:underline",
- children: WF(e.getValue())
+ children: GF(e.getValue())
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, L.jsx)(GF, { source: e.row.original })
+ cell: (e) => /* @__PURE__ */ (0, L.jsx)(KF, { source: e.row.original })
}),
- e.accessor((e) => UF(e.interval_minutes), {
+ e.accessor((e) => WF(e.interval_minutes), {
id: "interval",
header: t("interval"),
cell: (e) => /* @__PURE__ */ (0, L.jsx)("span", {
@@ -39831,7 +39858,7 @@ function XF({ readOnly: e, toast: t, avatarInner: n }) {
children: e.getValue()
})
}),
- e.accessor((e) => e.last_fetched_at ? bk(e.last_fetched_at) : "还没拉过", {
+ e.accessor((e) => e.last_fetched_at ? xk(e.last_fetched_at) : "还没拉过", {
id: "fetched",
header: t("fetched"),
cell: (e) => /* @__PURE__ */ (0, L.jsx)("span", {
@@ -39853,8 +39880,8 @@ function XF({ readOnly: e, toast: t, avatarInner: n }) {
cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, L.jsx)(gO, {
- "aria-label": `启用 ${HF(e.row.original)}`,
+ /* @__PURE__ */ (0, L.jsx)(yO, {
+ "aria-label": `启用 ${UF(e.row.original)}`,
isSelected: e.row.original.enabled,
isDisabled: f.current.readOnly,
onChange: (t) => f.current.toggle(e.row.original, t)
@@ -39863,8 +39890,8 @@ function XF({ readOnly: e, toast: t, avatarInner: n }) {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: MS,
- "aria-label": `拉取 ${HF(e.row.original)}`,
+ leadingIcon: NS,
+ "aria-label": `拉取 ${UF(e.row.original)}`,
disabled: f.current.readOnly,
...Y(f.current.busy === `check-${e.row.original.id}`),
onClick: () => f.current.fetch(e.row.original)
@@ -39873,8 +39900,8 @@ function XF({ readOnly: e, toast: t, avatarInner: n }) {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: bS,
- "aria-label": `移除 ${HF(e.row.original)}`,
+ leadingIcon: SS,
+ "aria-label": `移除 ${UF(e.row.original)}`,
disabled: f.current.readOnly,
onClick: () => f.current.remove(e.row.original)
})
@@ -39882,7 +39909,7 @@ function XF({ readOnly: e, toast: t, avatarInner: n }) {
})
})
];
- }, []), m = (0, I.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), h = MF({
+ }, []), m = (0, I.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), h = NF({
data: o,
columns: p,
getRowId: (e) => String(e.id),
@@ -39892,28 +39919,28 @@ function XF({ readOnly: e, toast: t, avatarInner: n }) {
let t = typeof e == "function" ? e(m) : e;
c(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));
},
- getCoreRowModel: TF()
+ getCoreRowModel: EF()
});
if (!a) return r.error ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "打不开订阅源",
children: K(r.error)
- }) : /* @__PURE__ */ (0, L.jsx)($A, { children: "正在读订阅源。" });
- let g = () => void i.run("check", (e) => EN(e), () => void VF()), _ = (e) => c((t) => {
+ }) : /* @__PURE__ */ (0, L.jsx)(tj, { children: "正在读订阅源。" });
+ let g = () => void i.run("check", (e) => DN(e), () => void HF()), _ = (e) => c((t) => {
let n = new Set(t);
return n.has(e) ? n.delete(e) : n.add(e), n;
}), v = o.filter((e) => s.has(e.id)), y = o.filter((e) => e.last_error);
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(RF, {
+ /* @__PURE__ */ (0, L.jsx)(zF, {
readOnly: e,
toast: t,
- onAdded: () => void VF()
+ onAdded: () => void HF()
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, L.jsx)($A, {
+ children: [/* @__PURE__ */ (0, L.jsx)(tj, {
role: "status",
children: a.unread ? `有 ${a.unread} 条新作还没看` : "新作都看过了"
}), /* @__PURE__ */ (0, L.jsx)(G, {
@@ -39927,11 +39954,11 @@ function XF({ readOnly: e, toast: t, avatarInner: n }) {
className: "flex flex-col gap-3",
children: [y.map((e) => /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
- title: `${HF(e)} 拉取失败`,
+ title: `${UF(e)} 拉取失败`,
children: e.last_error
- }, e.id)), i.error ? /* @__PURE__ */ (0, L.jsx)(ej, { children: i.error }) : null]
+ }, e.id)), i.error ? /* @__PURE__ */ (0, L.jsx)(nj, { children: i.error }) : null]
}) : null,
- v.length ? /* @__PURE__ */ (0, L.jsxs)(PF, {
+ v.length ? /* @__PURE__ */ (0, L.jsxs)(FF, {
label: "订阅源批量操作",
count: `已选 ${v.length} 条订阅源`,
children: [
@@ -39962,7 +39989,7 @@ function XF({ readOnly: e, toast: t, avatarInner: n }) {
size: "small",
disabled: e,
...Y(u.isPending),
- onClick: () => void YF(v, () => u.mutateAsync({
+ onClick: () => void XF(v, () => u.mutateAsync({
ids: v.map((e) => e.id),
action: "remove"
})),
@@ -39976,26 +40003,26 @@ function XF({ readOnly: e, toast: t, avatarInner: n }) {
})
]
}) : null,
- o.length ? /* @__PURE__ */ (0, L.jsx)(Lj, {
+ o.length ? /* @__PURE__ */ (0, L.jsx)(zj, {
onRowClick: (e) => _(Number(e)),
- children: /* @__PURE__ */ (0, L.jsxs)(Pj, {
+ children: /* @__PURE__ */ (0, L.jsxs)(Ij, {
"aria-label": "JAV 订阅源",
size: "sm",
- children: [/* @__PURE__ */ (0, L.jsx)(QD, { children: h.getHeaderGroups()[0].headers.map((e) => {
- let t = OF(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, L.jsx)($D, {
+ children: [/* @__PURE__ */ (0, L.jsx)(tO, { children: h.getHeaderGroups()[0].headers.map((e) => {
+ let t = kF(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, L.jsx)(nO, {
id: e.id,
isRowHeader: e.column.id === "name",
- children: BF.has(e.column.id) ? /* @__PURE__ */ (0, L.jsx)(G_, { children: t }) : t
+ children: VF.has(e.column.id) ? /* @__PURE__ */ (0, L.jsx)(K_, { children: t }) : t
}, e.id);
- }) }), /* @__PURE__ */ (0, L.jsx)(tO, { children: h.getRowModel().rows.map((e) => /* @__PURE__ */ (0, L.jsx)(iO, {
+ }) }), /* @__PURE__ */ (0, L.jsx)(iO, { children: h.getRowModel().rows.map((e) => /* @__PURE__ */ (0, L.jsx)(sO, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, L.jsx)(oO, { children: OF(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, L.jsx)(lO, { children: kF(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id)) })]
})
- }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
- icon: NS,
+ }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
+ icon: PS,
title: "还没有订阅源",
shell: "plain",
children: "在上面按女优名添加,或在人物页点「订阅新作」。"
@@ -40005,19 +40032,19 @@ function XF({ readOnly: e, toast: t, avatarInner: n }) {
}
//#endregion
//#region src/react/follow-manage/source-list.tsx
-var ZF = Object.fromEntries(Object.entries(oN).map(([e, t]) => [t, e])), QF = 740;
-function $F() {
+var QF = Object.fromEntries(Object.entries(sN).map(([e, t]) => [t, e])), $F = 740;
+function eI() {
let [e, t] = (0, I.useState)(!1), n = (0, I.useRef)(null), r = (0, I.useCallback)((e) => {
if (n.current?.disconnect(), !e) {
n.current = null;
return;
}
- let r = new ResizeObserver(() => t(e.clientWidth < QF));
- r.observe(e), n.current = r, t(e.clientWidth < QF);
+ let r = new ResizeObserver(() => t(e.clientWidth < $F));
+ r.observe(e), n.current = r, t(e.clientWidth < $F);
}, []);
return (0, I.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
}
-var eI = {
+var tI = {
select: "选择",
author: "创作者",
source: "来源",
@@ -40026,7 +40053,7 @@ var eI = {
checked: "上次检查",
actions: "操作"
};
-function tI({ page: e, pages: t, onPage: n }) {
+function nI({ page: e, pages: t, onPage: n }) {
return t <= 1 ? null : /* @__PURE__ */ (0, L.jsxs)("nav", {
"aria-label": "关注列表分页",
className: "flex flex-wrap items-center justify-center gap-2",
@@ -40040,7 +40067,7 @@ function tI({ page: e, pages: t, onPage: n }) {
}),
/* @__PURE__ */ (0, L.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: gk(e, t).map((t, r) => /* @__PURE__ */ (0, L.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, L.jsx)("span", {
+ children: _k(e, t).map((t, r) => /* @__PURE__ */ (0, L.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -40063,22 +40090,22 @@ function tI({ page: e, pages: t, onPage: n }) {
]
});
}
-function nI({ source: e, selected: t, onToggle: n, handlers: r }) {
+function rI({ source: e, selected: t, onToggle: n, handlers: r }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
"data-selected": t || void 0,
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",
onClick: (e) => {
- Ij(e, e.currentTarget) && n(!t);
+ Rj(e, e.currentTarget) && n(!t);
},
children: [
- /* @__PURE__ */ (0, L.jsx)(Nj, {
+ /* @__PURE__ */ (0, L.jsx)(Fj, {
isSelected: t,
onChange: n,
"aria-label": `选择 ${e.label}`
}),
/* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, L.jsx)(LN, { source: e }), e.last_error ? /* @__PURE__ */ (0, L.jsx)("small", {
+ children: [/* @__PURE__ */ (0, L.jsx)(RN, { source: e }), e.last_error ? /* @__PURE__ */ (0, L.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.last_error
}) : null]
@@ -40086,17 +40113,17 @@ function nI({ source: e, selected: t, onToggle: n, handlers: r }) {
/* @__PURE__ */ (0, L.jsx)("span", {
className: "flex shrink-0 items-center gap-1.5 text-body-2-regular text-text-secondary",
title: e.provider_label,
- children: /* @__PURE__ */ (0, L.jsx)(PN, {
+ children: /* @__PURE__ */ (0, L.jsx)(FN, {
provider: e.provider,
label: e.provider_label
})
}),
- /* @__PURE__ */ (0, L.jsx)(IN, { source: e }),
+ /* @__PURE__ */ (0, L.jsx)(LN, { source: e }),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",
- children: AN(e)
+ children: jN(e)
}),
- /* @__PURE__ */ (0, L.jsx)(gO, {
+ /* @__PURE__ */ (0, L.jsx)(yO, {
"aria-label": `启用 ${e.label}`,
isSelected: e.enabled,
isDisabled: r.readOnly,
@@ -40108,7 +40135,7 @@ function nI({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: MS,
+ leadingIcon: NS,
"aria-label": `检查 ${e.label} 的更新`,
disabled: !e.enabled || r.readOnly,
...Y(r.busy),
@@ -40117,7 +40144,7 @@ function nI({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: bS,
+ leadingIcon: SS,
"aria-label": `移除 ${e.label}`,
disabled: r.readOnly,
onClick: () => r.remove(e)
@@ -40126,11 +40153,11 @@ function nI({ source: e, selected: t, onToggle: n, handlers: r }) {
]
});
}
-function rI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
- let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(cN).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = hN(r, c);
+function iI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
+ let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(lN).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = gN(r, c);
return /* @__PURE__ */ (0, L.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
- className: Rw({
+ className: zw({
variant: "raised",
padding: "none",
className: "flex flex-col overflow-hidden p-2"
@@ -40140,7 +40167,7 @@ function rI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
"data-open": n || void 0,
className: "flex flex-wrap items-center gap-3 px-2 py-2.5",
children: [
- /* @__PURE__ */ (0, L.jsx)(FN, {
+ /* @__PURE__ */ (0, L.jsx)(IN, {
group: e,
name: t
}),
@@ -40152,7 +40179,7 @@ function rI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: MS,
+ leadingIcon: NS,
"aria-label": `检查 ${t} 的全部来源`,
disabled: !l.length || i.readOnly,
...Y(i.busy),
@@ -40161,7 +40188,7 @@ function rI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
/* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
title: d,
- children: [e.map((e) => /* @__PURE__ */ (0, L.jsx)(PN, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, L.jsx)(G_, { children: `来源:${d}` })]
+ children: [e.map((e) => /* @__PURE__ */ (0, L.jsx)(FN, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, L.jsx)(K_, { children: `来源:${d}` })]
}),
u ? /* @__PURE__ */ (0, L.jsx)("span", {
className: "shrink-0 text-body-2-regular text-text-error-primary",
@@ -40170,7 +40197,7 @@ function rI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
/* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: gS,
+ leadingIcon: vS,
"aria-pressed": p.all ? "true" : p.some ? "mixed" : "false",
"aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,
onClick: () => o(!p.all),
@@ -40181,7 +40208,7 @@ function rI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
size: "small",
"aria-expanded": n,
"aria-controls": f,
- leadingIcon: n ? hS : fS,
+ leadingIcon: n ? _S : mS,
"aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,
onClick: () => a(!n),
children: n ? "收起" : "展开"
@@ -40191,7 +40218,7 @@ function rI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
id: f,
hidden: !n,
"data-source-divider": !0,
- children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(nI, {
+ children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(rI, {
source: e,
handlers: i,
selected: r.has(e.id),
@@ -40200,8 +40227,8 @@ function rI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
})]
});
}
-function iI(e) {
- let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: u, onPage: d, onLayout: f, onPageSize: p, onSelected: m, toast: g, openFollow: _ } = e, v = t.sources, y = (0, I.useMemo)(() => t.author_aliases || [], [t.author_aliases]), b = t.counts || {}, [x, S] = (0, I.useState)(/* @__PURE__ */ new Set()), [C, w] = $F(), [T, E] = (0, I.useState)(""), D = (0, I.useMemo)(() => Jse(v, n, r, y), [
+function aI(e) {
+ let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: u, onPage: d, onLayout: f, onPageSize: p, onSelected: m, toast: g, openFollow: _ } = e, v = t.sources, y = (0, I.useMemo)(() => t.author_aliases || [], [t.author_aliases]), b = t.counts || {}, [x, S] = (0, I.useState)(/* @__PURE__ */ new Set()), [C, w] = eI(), [T, E] = (0, I.useState)(""), D = (0, I.useMemo)(() => Jse(v, n, r, y), [
v,
n,
r,
@@ -40211,26 +40238,26 @@ function iI(e) {
n,
r,
y
- ]), { job: k, running: A, outcome: j, start: M } = Dj({
+ ]), { job: k, running: A, outcome: j, start: M } = kj({
queryKey: Lse,
queryFn: ({ signal: e }) => Qse(e),
- start: (e) => yN(e),
+ start: (e) => bN(e),
onError: (e) => E(K(e)),
onFinish: (e) => {
- kN(), g(e.status === "failed" ? e.error || "检查失败" : uce(e));
+ AN(), g(e.status === "failed" ? e.error || "检查失败" : uce(e));
}
}), N = (e) => {
A || M.isPending || (E(""), M.mutate(e));
- }, ee = (e, t) => m(gN(s, [e], t)), te = (e, t) => m(gN(s, e, t)), P = At({
- mutationFn: (e) => xN(e),
+ }, ee = (e, t) => m(_N(s, [e], t)), te = (e, t) => m(_N(s, e, t)), P = At({
+ mutationFn: (e) => SN(e),
onSuccess: (e, t) => {
- ON([t]), m(gN(s, [t], !1)), g("已取消关注来源");
+ kN([t]), m(_N(s, [t], !1)), g("已取消关注来源");
},
onError: (e) => E(K(e))
}), F = At({
- mutationFn: (e) => bN(e.id, e.enabled),
+ mutationFn: (e) => xN(e.id, e.enabled),
onSuccess: (e, t) => {
- DN(t.id, { enabled: t.enabled }), E("");
+ ON(t.id, { enabled: t.enabled }), E("");
},
onError: (e) => E(K(e))
}), ne = (e) => void h({
@@ -40242,7 +40269,7 @@ function iI(e) {
}), re = At({
mutationFn: async (e) => {
let t = await l(e.ids, 4, async (t) => {
- e.action === "remove" ? await xN(t) : await bN(t, e.action === "enabled");
+ e.action === "remove" ? await SN(t) : await xN(t, e.action === "enabled");
});
return {
...e,
@@ -40251,9 +40278,9 @@ function iI(e) {
};
},
onSuccess: (e) => {
- if (e.action === "remove") ON(e.done);
- else for (let t of e.done) DN(t, { enabled: e.action === "enabled" });
- m(gN(s, e.done, !1));
+ if (e.action === "remove") kN(e.done);
+ else for (let t of e.done) ON(t, { enabled: e.action === "enabled" });
+ m(_N(s, e.done, !1));
let t = e.results.filter((e) => !e.ok);
if (t.length) {
E(`${t.length}/${e.ids.length} 个来源未更新:${K(t[0]?.error)}`);
@@ -40277,7 +40304,7 @@ function iI(e) {
};
},
onSuccess: (e) => {
- if (kN(), e.failed.length) {
+ if (AN(), e.failed.length) {
E(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);
return;
}
@@ -40302,12 +40329,12 @@ function iI(e) {
readOnly: c
};
let se = oe.current, ce = (0, I.useMemo)(() => {
- let e = cP(), t = (e) => () => eI[e] || e;
+ let e = lP(), t = (e) => () => tI[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, L.jsx)(Nj, {
+ cell: (e) => /* @__PURE__ */ (0, L.jsx)(Fj, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -40319,7 +40346,7 @@ function iI(e) {
header: t("author"),
cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(FN, {
+ children: [/* @__PURE__ */ (0, L.jsx)(IN, {
group: e.row.original.group,
name: e.row.original.author
}), /* @__PURE__ */ (0, L.jsx)("span", {
@@ -40333,7 +40360,7 @@ function iI(e) {
header: t("source"),
cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, L.jsx)(LN, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, L.jsx)("small", {
+ children: [/* @__PURE__ */ (0, L.jsx)(RN, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, L.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.row.original.source.last_error
}) : null]
@@ -40344,18 +40371,18 @@ function iI(e) {
header: t("provider"),
cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, L.jsx)(PN, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
+ children: [/* @__PURE__ */ (0, L.jsx)(FN, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, L.jsx)(IN, { source: e.row.original.source })
+ cell: (e) => /* @__PURE__ */ (0, L.jsx)(LN, { source: e.row.original.source })
}),
e.accessor((e) => e.source.last_checked_at || "", {
id: "checked",
header: t("checked"),
- cell: (e) => AN(e.row.original.source)
+ cell: (e) => jN(e.row.original.source)
}),
e.display({
id: "actions",
@@ -40363,7 +40390,7 @@ function iI(e) {
cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, L.jsx)(gO, {
+ /* @__PURE__ */ (0, L.jsx)(yO, {
"aria-label": `启用 ${e.row.original.source.label}`,
isSelected: e.row.original.source.enabled,
isDisabled: se.readOnly,
@@ -40373,7 +40400,7 @@ function iI(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: MS,
+ leadingIcon: NS,
"aria-label": `检查 ${e.row.original.source.label} 的更新`,
disabled: !e.row.original.source.enabled || se.readOnly,
...Y(se.busy),
@@ -40383,7 +40410,7 @@ function iI(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: bS,
+ leadingIcon: SS,
"aria-label": `移除 ${e.row.original.source.label}`,
disabled: se.readOnly,
onClick: () => oe.current.remove(e.row.original.source)
@@ -40393,12 +40420,12 @@ function iI(e) {
})
];
}, [se]), le = (0, I.useMemo)(() => {
- let e = ZF[n];
+ let e = QF[n];
return e ? [{
id: e,
desc: r === "desc"
}] : [];
- }, [n, r]), ue = (0, I.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), R = a === "table", z = Xse(R ? O.length : D.length, o, i), de = MF({
+ }, [n, r]), ue = (0, I.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), R = a === "table", z = Xse(R ? O.length : D.length, o, i), de = NF({
data: O,
columns: ce,
getRowId: (e) => String(e.source.id),
@@ -40415,7 +40442,7 @@ function iI(e) {
onSortingChange: (e) => {
let t = (typeof e == "function" ? e(le) : e)[0];
if (!t) return;
- let n = oN[t.id];
+ let n = sN[t.id];
n && u(n, t.desc ? "desc" : "asc");
},
onRowSelectionChange: (e) => {
@@ -40429,11 +40456,11 @@ function iI(e) {
}, n = typeof e == "function" ? e(t) : e;
n.pageSize === o ? n.pageIndex !== t.pageIndex && d(n.pageIndex + 1) : p(n.pageSize);
},
- getCoreRowModel: TF(),
- getPaginationRowModel: DF()
- }), fe = de.getRowModel().rows, pe = R ? fe.map((e) => e.original.source.id) : D.slice(z.start, z.end).flatMap((e) => e.map((e) => e.id)), me = hN(s, pe), he = [...s], ge = dce(j), _e = fce(j), ve = D.length > 0 && x.size >= D.length;
+ getCoreRowModel: EF(),
+ getPaginationRowModel: OF()
+ }), fe = de.getRowModel().rows, pe = R ? fe.map((e) => e.original.source.id) : D.slice(z.start, z.end).flatMap((e) => e.map((e) => e.id)), me = gN(s, pe), he = [...s], ge = dce(j), _e = fce(j), ve = D.length > 0 && x.size >= D.length;
return v.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
- className: Rw({
+ className: zw({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -40452,7 +40479,7 @@ function iI(e) {
}),
/* @__PURE__ */ (0, L.jsx)(G, {
variant: "primary",
- leadingIcon: MS,
+ leadingIcon: NS,
disabled: c,
"aria-label": "检查全部",
iconOnly: w,
@@ -40467,28 +40494,28 @@ function iI(e) {
children: [/* @__PURE__ */ (0, L.jsx)(G, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: kS,
- "aria-label": iN[0][1],
+ leadingIcon: AS,
+ "aria-label": aN[0][1],
"aria-pressed": !R,
onClick: () => f("default")
}), /* @__PURE__ */ (0, L.jsx)(G, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: FS,
- "aria-label": iN[1][1],
+ leadingIcon: IS,
+ "aria-label": aN[1][1],
"aria-pressed": R,
onClick: () => f("table")
})]
}),
- /* @__PURE__ */ (0, L.jsx)(Sj, {
+ /* @__PURE__ */ (0, L.jsx)(wj, {
"aria-label": "关注列表排序",
selectedKey: n,
onSelectionChange: (e) => {
if (e === null) return;
let t = String(e);
- u(t, qM[t]);
+ u(t, JM[t]);
},
- children: KM.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Cj, {
+ children: qM.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Tj, {
id: e,
children: t
}, e))
@@ -40496,14 +40523,14 @@ function iI(e) {
/* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
iconOnly: !0,
- leadingIcon: r === "asc" ? Kte : Gte,
+ leadingIcon: r === "asc" ? Wte : Ute,
"aria-label": Wse(n, r),
onClick: () => u(n, r === "asc" ? "desc" : "asc")
}),
R ? null : /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
iconOnly: w,
- leadingIcon: ve ? fS : hS,
+ leadingIcon: ve ? mS : _S,
"aria-label": ve ? "全部展开" : "全部收起",
onClick: () => S(ve ? /* @__PURE__ */ new Set() : new Set(D.map((e) => String(e[0].author_key || e[0].id)))),
children: ve ? "全部展开" : "全部收起"
@@ -40514,11 +40541,11 @@ function iI(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- A ? k?.total ? /* @__PURE__ */ (0, L.jsx)(Gw, {
+ A ? k?.total ? /* @__PURE__ */ (0, L.jsx)(Kw, {
label: k.message || `${k.older ? "抓取历史" : "检查更新"}:已完成 ${k.checked || 0}/${k.total} 个来源`,
value: k.checked || 0,
max: k.total
- }) : /* @__PURE__ */ (0, L.jsx)(Vw, { label: k?.message || "正在准备检查任务" }) : null,
+ }) : /* @__PURE__ */ (0, L.jsx)(Hw, { label: k?.message || "正在准备检查任务" }) : null,
T ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "操作未完成",
@@ -40539,7 +40566,7 @@ function iI(e) {
}) : null
]
}),
- he.length ? /* @__PURE__ */ (0, L.jsxs)(PF, {
+ he.length ? /* @__PURE__ */ (0, L.jsxs)(FF, {
label: "关注来源批量操作",
count: `已选 ${he.length} 个来源`,
children: [
@@ -40598,10 +40625,10 @@ function iI(e) {
})
]
}) : null,
- R ? /* @__PURE__ */ (0, L.jsx)(Lj, {
+ R ? /* @__PURE__ */ (0, L.jsx)(zj, {
follow: !0,
onRowClick: (e) => ee(Number(e), !s.has(Number(e))),
- children: /* @__PURE__ */ (0, L.jsxs)(Pj, {
+ children: /* @__PURE__ */ (0, L.jsxs)(Ij, {
"aria-label": "关注来源",
size: "sm",
sortDescriptor: le[0] ? {
@@ -40612,9 +40639,9 @@ function iI(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, L.jsx)(QD, { children: de.getHeaderGroups()[0].headers.map((e) => {
- let t = e.column.id in oN, n = OF(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, L.jsx)($D, {
+ children: [/* @__PURE__ */ (0, L.jsx)(tO, { children: de.getHeaderGroups()[0].headers.map((e) => {
+ let t = e.column.id in sN, n = kF(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, L.jsx)(nO, {
id: e.id,
allowsSorting: t,
isRowHeader: e.column.id === "source",
@@ -40623,20 +40650,20 @@ function iI(e) {
children: [n, /* @__PURE__ */ (0, L.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": e || void 0,
- children: /* @__PURE__ */ (0, L.jsx)(vj, {})
+ children: /* @__PURE__ */ (0, L.jsx)(bj, {})
})]
- }) : /* @__PURE__ */ (0, L.jsx)(G_, { children: n })
+ }) : /* @__PURE__ */ (0, L.jsx)(K_, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, L.jsx)(tO, {
+ }) }), /* @__PURE__ */ (0, L.jsx)(iO, {
renderEmptyState: () => "这一页没有来源",
- children: fe.map((e) => /* @__PURE__ */ (0, L.jsx)(iO, {
+ children: fe.map((e) => /* @__PURE__ */ (0, L.jsx)(sO, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, L.jsx)(oO, { children: OF(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, L.jsx)(lO, { children: kF(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
- }) : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Nj, {
+ }) : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Fj, {
isSelected: me.all,
isIndeterminate: me.some,
onChange: (e) => te(pe, e),
@@ -40646,9 +40673,9 @@ function iI(e) {
className: "flex flex-col gap-3",
children: D.slice(z.start, z.end).map((e) => {
let t = String(e[0].author_key || e[0].id);
- return /* @__PURE__ */ (0, L.jsx)(rI, {
+ return /* @__PURE__ */ (0, L.jsx)(iI, {
group: e,
- name: pN(e, y),
+ name: mN(e, y),
handlers: se,
selected: s,
open: !x.has(t),
@@ -40668,19 +40695,19 @@ function iI(e) {
className: "text-body-2-regular text-text-secondary",
children: `${z.start + 1}–${z.end} / ${z.total} ${R ? "个来源" : "位创作者"}`
}),
- /* @__PURE__ */ (0, L.jsx)(Sj, {
+ /* @__PURE__ */ (0, L.jsx)(wj, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(o),
onSelectionChange: (e) => {
e !== null && de.setPageSize(Number(e));
},
- children: aN.map((e) => /* @__PURE__ */ (0, L.jsx)(Cj, {
+ children: oN.map((e) => /* @__PURE__ */ (0, L.jsx)(Tj, {
id: String(e),
children: `每页 ${e} ${R ? "条" : "位"}`
}, e))
}),
- /* @__PURE__ */ (0, L.jsx)(tI, {
+ /* @__PURE__ */ (0, L.jsx)(nI, {
page: z.page,
pages: z.pages,
onPage: (e) => de.setPageIndex(e - 1)
@@ -40729,11 +40756,11 @@ function iI(e) {
]
}) : null
]
- }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
shell: "plain",
- icon: NS,
+ icon: PS,
title: "还没有关注来源",
- actions: /* @__PURE__ */ (0, L.jsx)(Dw, {
+ actions: /* @__PURE__ */ (0, L.jsx)(Ow, {
variant: "primary",
size: "small",
href: "/follow-manage?tab=add",
@@ -40744,15 +40771,15 @@ function iI(e) {
}
//#endregion
//#region src/react/follow-manage/follow-manage-page.tsx
-var aI = [
+var oI = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "JAV 订阅源"],
["source", "来源和凭证"]
-], oI = (e) => aI.some(([t]) => t === e);
-function sI({ term: e, figure: t, unit: n }) {
+], sI = (e) => oI.some(([t]) => t === e);
+function cI({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: Rw({
+ className: zw({
padding: "none",
className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"
}),
@@ -40768,16 +40795,16 @@ function sI({ term: e, figure: t, unit: n }) {
})]
});
}
-function cI(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, I.useState)(oI(e.tab) ? e.tab : "list"), [u, d] = (0, I.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, I.useState)(() => JM(e.sort, e.dir).sort), [m, h] = (0, I.useState)(() => JM(e.sort, e.dir).dir), [g, _] = (0, I.useState)(Vse(e.layout) ? e.layout : "default"), [v, y] = (0, I.useState)(Hse(e.pageSize)), [b, x] = (0, I.useState)(/* @__PURE__ */ new Set()), S = kt({
- queryKey: tN,
- queryFn: ({ signal: e }) => _N(e)
- }), C = kt({
+function lI(e) {
+ let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, I.useState)(sI(e.tab) ? e.tab : "list"), [u, d] = (0, I.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, I.useState)(() => YM(e.sort, e.dir).sort), [m, h] = (0, I.useState)(() => YM(e.sort, e.dir).dir), [g, _] = (0, I.useState)(Vse(e.layout) ? e.layout : "default"), [v, y] = (0, I.useState)(Hse(e.pageSize)), [b, x] = (0, I.useState)(/* @__PURE__ */ new Set()), S = kt({
queryKey: nN,
queryFn: ({ signal: e }) => vN(e)
- }), w = kt({
+ }), C = kt({
queryKey: rN,
- queryFn: ({ signal: e }) => CN(e)
+ queryFn: ({ signal: e }) => yN(e)
+ }), w = kt({
+ queryKey: iN,
+ queryFn: ({ signal: e }) => wN(e)
}), T = S.data || { sources: [] }, E = C.data || {
root: "",
providers: []
@@ -40794,10 +40821,10 @@ function cI(e) {
tab: e.tab ?? c,
page: e.page ?? u,
sort: n === "checked" ? "" : n,
- dir: r === qM[n] ? "" : r
+ dir: r === JM[n] ? "" : r
});
- }, k = mN(D), A = D.filter(cN).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !NN(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
- return /* @__PURE__ */ (0, L.jsxs)(Hw, { children: [
+ }, k = hN(D), A = D.filter(lN).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !PN(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
+ return /* @__PURE__ */ (0, L.jsxs)(Uw, { children: [
a ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "warning",
title: "本机只能浏览",
@@ -40812,62 +40839,62 @@ function cI(e) {
children: o
}) : null,
/* @__PURE__ */ (0, L.jsxs)("div", {
- className: Zae,
+ className: Xae,
"aria-label": "关注概览",
children: [
- /* @__PURE__ */ (0, L.jsx)(sI, {
+ /* @__PURE__ */ (0, L.jsx)(cI, {
term: "关注创作者",
figure: k.length,
unit: "位"
}),
- /* @__PURE__ */ (0, L.jsx)(sI, {
+ /* @__PURE__ */ (0, L.jsx)(cI, {
term: "启用来源",
figure: j,
unit: `/ ${D.length}`
}),
- /* @__PURE__ */ (0, L.jsx)(sI, {
+ /* @__PURE__ */ (0, L.jsx)(cI, {
term: "检查失败",
figure: A,
unit: "个来源"
}),
- /* @__PURE__ */ (0, L.jsx)(sI, {
+ /* @__PURE__ */ (0, L.jsx)(cI, {
term: "未看更新",
figure: T.counts?.new || 0,
unit: "条"
}),
- /* @__PURE__ */ (0, L.jsx)(sI, {
+ /* @__PURE__ */ (0, L.jsx)(cI, {
term: "JAV 订阅",
figure: N,
unit: "位"
}),
- /* @__PURE__ */ (0, L.jsx)(sI, {
+ /* @__PURE__ */ (0, L.jsx)(cI, {
term: "未看新作",
figure: w.data?.unread || 0,
unit: "条"
})
]
}),
- /* @__PURE__ */ (0, L.jsxs)(uO, {
+ /* @__PURE__ */ (0, L.jsxs)(pO, {
selectedKey: c,
onSelectionChange: (e) => {
let t = String(e);
- oI(t) && (l(t), O({ tab: t }));
+ sI(t) && (l(t), O({ tab: t }));
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, L.jsx)(dO, {
+ /* @__PURE__ */ (0, L.jsx)(mO, {
"aria-label": "关注管理区域",
- className: SM,
- children: aI.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(fO, {
+ className: CM,
+ children: oI.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(hO, {
id: e,
- className: CM,
+ className: wM,
children: e === "source" && M ? `${t}(${M})` : t
}, e))
}),
- /* @__PURE__ */ (0, L.jsx)(pO, {
+ /* @__PURE__ */ (0, L.jsx)(gO, {
id: "list",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, L.jsx)(iI, {
+ children: /* @__PURE__ */ (0, L.jsx)(aI, {
data: T,
sort: f,
dir: m,
@@ -40897,10 +40924,10 @@ function cI(e) {
}
})
}),
- /* @__PURE__ */ (0, L.jsxs)(pO, {
+ /* @__PURE__ */ (0, L.jsxs)(gO, {
id: "add",
className: "flex flex-col gap-8",
- children: [/* @__PURE__ */ (0, L.jsx)(qN, {
+ children: [/* @__PURE__ */ (0, L.jsx)(JN, {
data: T,
credentials: E,
readOnly: a,
@@ -40908,7 +40935,7 @@ function cI(e) {
openCredentials: () => {
l("source"), O({ tab: "source" });
}
- }), /* @__PURE__ */ (0, L.jsx)(QN, {
+ }), /* @__PURE__ */ (0, L.jsx)($N, {
groups: T.author_aliases || [],
readOnly: a,
toast: r,
@@ -40916,19 +40943,19 @@ function cI(e) {
sources: T.sources
})]
}),
- /* @__PURE__ */ (0, L.jsx)(pO, {
+ /* @__PURE__ */ (0, L.jsx)(gO, {
id: "feeds",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, L.jsx)(XF, {
+ children: /* @__PURE__ */ (0, L.jsx)(ZF, {
readOnly: a,
toast: r,
avatarInner: e.avatarInner
})
}),
- /* @__PURE__ */ (0, L.jsx)(pO, {
+ /* @__PURE__ */ (0, L.jsx)(gO, {
id: "source",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, L.jsx)(sP, {
+ children: /* @__PURE__ */ (0, L.jsx)(cP, {
data: E,
readOnly: a,
toast: r
@@ -40940,43 +40967,43 @@ function cI(e) {
}
//#endregion
//#region src/react/follow/online-vocab.ts
-var lI = "/api/follow/authors", uI = "/api/follow/tags", dI = (e) => [
+var uI = "/api/follow/authors", dI = "/api/follow/tags", fI = (e) => [
"follow",
"authors",
e
-], fI = (e, t) => [
+], pI = (e, t) => [
"follow",
"tags",
e,
t
];
-function pI(e, t, n) {
+function mI(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${lI}?${r}`;
+ return e && r.set("q", e), `${uI}?${r}`;
}
-function mI(e, t, n, r) {
+function hI(e, t, n, r) {
let i = new URLSearchParams({
types: "all",
limit: String(n),
offset: String(r)
});
- return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${uI}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${dI}?${i}`;
}
-var hI = (e, t, n, r) => Aw(pI(e, t, n), r), gI = (e, t, n, r, i) => Aw(mI(e, t, n, r), i), _I = "/api/index", vI = {
+var gI = (e, t, n, r) => jw(mI(e, t, n), r), _I = (e, t, n, r, i) => jw(hI(e, t, n, r), i), vI = "/api/index", yI = {
performers: "艺人",
creators: "创作者",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, yI = {
+}, bI = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency"
-}, bI = [
+}, xI = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -40986,26 +41013,26 @@ var hI = (e, t, n, r) => Aw(pI(e, t, n), r), gI = (e, t, n, r, i) => Aw(mI(e, t,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], xI = [
+], SI = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], SI = {
+], CI = {
people: 120,
tags: 180
-}, CI = (e) => e !== "tags", wI = (e) => e === "studios" || e === "agencies";
-function TI(e) {
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? xI : bI).some(([t]) => t === e.category);
+}, wI = (e) => e !== "tags", TI = (e) => e === "studios" || e === "agencies";
+function EI(e) {
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? SI : xI).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: e.kind === "tags" && n ? e.category : "all"
};
}
-function EI(e) {
+function DI(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -41024,50 +41051,50 @@ function EI(e) {
q: n
};
}
-var DI = (e, t, n = "all") => [
+var OI = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" ? [n] : []
];
-function OI(e, t, n, r, i) {
+function kI(e, t, n, r, i) {
let a = new URLSearchParams({
kind: e,
limit: String(r),
offset: String(i)
});
- return t && a.set("q", t), e === "tags" && n !== "all" && a.set("category", n), `${_I}?${a}`;
+ return t && a.set("q", t), e === "tags" && n !== "all" && a.set("category", n), `${vI}?${a}`;
}
-function kI(e) {
- let t = e.what === "people" || e.what === "online-authors" ? SI.people : SI.tags, n = {
+function AI(e) {
+ let t = e.what === "people" || e.what === "online-authors" ? CI.people : CI.tags, n = {
initialPageParam: 0,
getNextPageParam: (e, t) => e.has_more ? t.reduce((e, t) => e + t.items.length, 0) : void 0
};
switch (e.what) {
case "people": return {
...n,
- queryKey: DI(e.kind, e.q),
- queryFn: ({ pageParam: n, signal: r }) => Aw(OI(e.kind, e.q, "all", t, n), r)
+ queryKey: OI(e.kind, e.q),
+ queryFn: ({ pageParam: n, signal: r }) => jw(kI(e.kind, e.q, "all", t, n), r)
};
case "tags": return {
...n,
- queryKey: DI("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => Aw(OI("tags", e.q, e.category, t, n), r)
+ queryKey: OI("tags", e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => jw(kI("tags", e.q, e.category, t, n), r)
};
case "online-authors": return {
...n,
- queryKey: dI(e.q),
- queryFn: ({ pageParam: n, signal: r }) => hI(e.q, t, n, r)
+ queryKey: fI(e.q),
+ queryFn: ({ pageParam: n, signal: r }) => gI(e.q, t, n, r)
};
case "online-tags": return {
...n,
- queryKey: fI(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => gI(e.q, e.category, t, n, r)
+ queryKey: pI(e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => _I(e.q, e.category, t, n, r)
};
}
}
-async function AI(e, t) {
- let n = kI(EI(TI(e)));
+async function jI(e, t) {
+ let n = AI(DI(EI(e)));
X.removeQueries({
queryKey: n.queryKey,
exact: !0
@@ -41081,13 +41108,13 @@ async function AI(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var jI = (e) => e ? e.pages.flatMap((e) => e.items) : [], MI = (e, t) => `${e}${t ? "+" : ""} 项`, NI = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", PI = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), FI = {
+var MI = (e) => e ? e.pages.flatMap((e) => e.items) : [], NI = (e, t) => `${e}${t ? "+" : ""} 项`, PI = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", FI = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), II = {
numeric: !0,
sensitivity: "base"
};
-function II(e, t) {
+function LI(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", FI))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", II))) {
let e = t(r.k).normalize("NFKC").trim().charAt(0).toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);
a ? a.push(r) : n.set(i, [r]);
}
@@ -41095,15 +41122,15 @@ function II(e, t) {
}
//#endregion
//#region src/react/components/board-tabs.tsx
-function LI({ value: e }) {
+function RI({ value: e }) {
return /* @__PURE__ */ (0, L.jsx)("span", {
"data-tab-count": "",
className: "ml-1.5 inline-block rounded-sm bg-text-primary/10 px-1 py-px text-caption-1-medium text-text-primary opacity-50",
children: e.toLocaleString()
});
}
-var RI = "relative z-1 flex flex-none cursor-pointer items-center whitespace-nowrap border-b-2 border-transparent px-3 py-2.5 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring aria-selected:font-medium aria-selected:text-border-focus-ring max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
-function zI({ tabs: e, value: t, label: n, onChange: r }) {
+var zI = "relative z-1 flex flex-none cursor-pointer items-center whitespace-nowrap border-b-2 border-transparent px-3 py-2.5 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring aria-selected:font-medium aria-selected:text-border-focus-ring max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
+function BI({ tabs: e, value: t, label: n, onChange: r }) {
let i = (0, I.useRef)(null), a = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
let e = i.current;
@@ -41131,14 +41158,14 @@ function zI({ tabs: e, value: t, label: n, onChange: r }) {
},
className: "relative mb-5.5 flex flex-none gap-1 overflow-x-auto border-b border-border-button-default max-board-narrow:gap-0",
children: [e.map((e) => {
- let n = e.symbol ? ET(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? kT(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
role: "tab",
"data-tab": e.value,
"aria-selected": i,
tabIndex: i ? 0 : -1,
- className: RI,
+ className: zI,
onClick: () => {
i || r(e.value);
},
@@ -41154,7 +41181,7 @@ function zI({ tabs: e, value: t, label: n, onChange: r }) {
}
//#endregion
//#region src/react/index/index-people.tsx
-function BI({ html: e, face: t, company: n, big: r }) {
+function VI({ html: e, face: t, company: n, big: r }) {
let i = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -41166,18 +41193,18 @@ function BI({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var VI = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
-function HI({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
+var HI = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
+function UI({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
return /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
...a,
"data-index-cell": "",
onClick: i,
- className: Rw({
+ className: zw({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${VI} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${HI} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -41194,8 +41221,8 @@ function HI({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
]
});
}
-function UI({ kind: e, items: t, layout: n, props: r }) {
- let i = yI[e], a = wI(e), o = n === "big";
+function WI({ kind: e, items: t, layout: n, props: r }) {
+ let i = bI[e], a = TI(e), o = n === "big";
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-index-grid": "",
"data-layout": n,
@@ -41203,14 +41230,14 @@ function UI({ kind: e, items: t, layout: n, props: r }) {
className: `${a ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
let n = r.personAvatar(t, i, o);
- return /* @__PURE__ */ (0, L.jsx)(HI, {
+ return /* @__PURE__ */ (0, L.jsx)(UI, {
"data-k": t.k,
"data-kind": i,
name: t.k,
- readout: PI(e, t),
+ readout: FI(e, t),
big: o,
onPress: () => r.openEntity(i, t.k),
- children: /* @__PURE__ */ (0, L.jsx)(BI, {
+ children: /* @__PURE__ */ (0, L.jsx)(VI, {
html: n.html,
face: n.face,
company: a,
@@ -41220,21 +41247,21 @@ function UI({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function WI({ items: e, layout: t, props: n }) {
+function GI({ items: e, layout: t, props: n }) {
let r = t === "big";
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(HI, {
+ children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(UI, {
"data-follow-author": e.key,
"data-kind": "performer",
name: e.k,
readout: `${e.n.toLocaleString()} 项更新`,
big: r,
onPress: () => n.openFollowAuthor(e.key),
- children: /* @__PURE__ */ (0, L.jsx)(BI, {
+ children: /* @__PURE__ */ (0, L.jsx)(VI, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -41244,7 +41271,7 @@ function WI({ items: e, layout: t, props: n }) {
}
//#endregion
//#region src/react/index/index-tags.tsx
-var GI = () => /* @__PURE__ */ (0, L.jsx)("span", {
+var KI = () => /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
@@ -41255,12 +41282,12 @@ function mce({ tag: e, actions: t }) {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": NI(t.online, e.cat),
+ "data-tag-cat": PI(t.online, e.cat),
"aria-pressed": n,
onClick: () => t.press(e.k),
className: "flex h-9 min-w-0 cursor-pointer items-center gap-2.25 rounded-lg px-2.5 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [
- /* @__PURE__ */ (0, L.jsx)(GI, {}),
+ /* @__PURE__ */ (0, L.jsx)(KI, {}),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -41278,14 +41305,14 @@ function hce({ groups: e, actions: t }) {
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, L.jsxs)("section", {
"data-alpha-group": r,
- className: Rw({
+ className: zw({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
}),
children: [/* @__PURE__ */ (0, L.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, L.jsx)(LI, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, L.jsx)(RI, { value: n.length })]
}), /* @__PURE__ */ (0, L.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
children: n.map((e) => /* @__PURE__ */ (0, L.jsx)(mce, {
@@ -41305,7 +41332,7 @@ function _ce({ tags: e, actions: t }) {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": NI(t.online, e.cat),
+ "data-tag-cat": PI(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",
@@ -41327,15 +41354,15 @@ var vce = [[
"text-aa"
]];
function yce({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
- return /* @__PURE__ */ (0, L.jsx)(hM, {
+ return /* @__PURE__ */ (0, L.jsx)(gM, {
label: "标签筛选",
topLabel: "标签类型",
- top: e.map(([e, r]) => /* @__PURE__ */ (0, L.jsxs)(gM, {
+ top: e.map(([e, r]) => /* @__PURE__ */ (0, L.jsxs)(_M, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : NI(n, e),
+ "data-tag-cat": e === "all" ? "all" : PI(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, L.jsx)(GI, {}), r]
+ children: [/* @__PURE__ */ (0, L.jsx)(KI, {}), r]
}, e)),
bottom: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsx)("span", {
@@ -41354,19 +41381,19 @@ function yce({ categories: e, category: t, online: n, readout: r, letters: i, vi
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, L.jsx)(FD, {
+ /* @__PURE__ */ (0, L.jsx)(RD, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${wM}`,
+ className: `ml-auto ${TM}`,
children: vce.map(([e, t, n]) => {
- let r = ET(n);
- return /* @__PURE__ */ (0, L.jsx)(ID, {
+ let r = kT(n);
+ return /* @__PURE__ */ (0, L.jsx)(zD, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: TM,
+ className: EM,
children: /* @__PURE__ */ (0, L.jsx)("span", {
title: t,
className: "contents",
@@ -41379,11 +41406,11 @@ function yce({ categories: e, category: t, online: n, readout: r, letters: i, vi
});
}
function bce({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, L.jsxs)(PF, {
+ return /* @__PURE__ */ (0, L.jsxs)(FF, {
label: "所选标签操作",
count: `已选 ${e} 个标签`,
children: [
- /* @__PURE__ */ (0, L.jsx)(Nj, {
+ /* @__PURE__ */ (0, L.jsx)(Fj, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, L.jsxs)("span", {
@@ -41423,7 +41450,7 @@ var xce = [{
value: "agencies",
label: "事务所",
symbol: "briefcase"
-}], KI = [{
+}], qI = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -41452,16 +41479,16 @@ var xce = [{
]]
};
function Cce({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, L.jsx)(FD, {
- "aria-label": `${vI[e]}索引版式`,
+ return /* @__PURE__ */ (0, L.jsx)(RD, {
+ "aria-label": `${yI[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none max-board-narrow:order-3 ${SM}`,
- children: Sce[wI(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = ET(n);
- return /* @__PURE__ */ (0, L.jsx)(ID, {
+ className: `flex-none max-board-narrow:order-3 ${CM}`,
+ children: Sce[TI(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = kT(n);
+ return /* @__PURE__ */ (0, L.jsx)(zD, {
value: e,
"aria-label": t,
className: Moe,
@@ -41474,7 +41501,7 @@ function Cce({ kind: e, layout: t, onChange: n }) {
})
});
}
-var wce = ET("search");
+var wce = kT("search");
function Tce({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, I.useState)(t), a = (0, I.useRef)(!1), o = (0, I.useRef)(void 0);
(0, I.useEffect)(() => () => clearTimeout(o.current), []);
@@ -41490,13 +41517,13 @@ function Tce({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, L.jsx)(Qj, {
+ children: /* @__PURE__ */ (0, L.jsx)(eM, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, L.jsx)(eM, {
+ children: /* @__PURE__ */ (0, L.jsx)(nM, {
type: "search",
leadingIcon: wce,
spellCheck: !1,
@@ -41509,13 +41536,13 @@ function Tce({ label: e, value: t, onQuery: n }) {
});
}
function Ece(e) {
- let [t, n] = (0, I.useState)(() => TI({
+ let [t, n] = (0, I.useState)(() => EI({
kind: e.kind,
q: e.q,
scope: e.scope,
view: e.view,
category: e.category
- })), [r, i] = (0, I.useState)(e.layout), [a, o] = (0, I.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, I.useState)("any"), l = (0, I.useRef)(null), { kind: u, q: f, scope: p, view: m, category: h } = t, g = vI[u], v = u === "tags" && p === "online", y = u === "performers" && p === "online";
+ })), [r, i] = (0, I.useState)(e.layout), [a, o] = (0, I.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, I.useState)("any"), l = (0, I.useRef)(null), { kind: u, q: f, scope: p, view: m, category: h } = t, g = yI[u], v = u === "tags" && p === "online", y = u === "performers" && p === "online";
(0, I.useEffect)(() => {
e.selectMode || o(/* @__PURE__ */ new Set());
}, [e.selectMode]);
@@ -41525,7 +41552,7 @@ function Ece(e) {
...r
};
x(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });
- }, C = kI(EI(t)), w = jt({
+ }, C = AI(DI(t)), w = jt({
queryKey: C.queryKey,
queryFn: ({ pageParam: e, signal: t }) => C.queryFn({
pageParam: e,
@@ -41534,21 +41561,21 @@ function Ece(e) {
initialPageParam: 0,
getNextPageParam: C.getNextPageParam,
placeholderData: b ? Oe : void 0
- }), T = jI(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, D = MI(T.length, !!w.hasNextPage);
+ }), T = MI(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, D = NI(T.length, !!w.hasNextPage);
(0, I.useEffect)(() => {
l.current && e.refitImages(l.current);
}, [r]);
let O = (0, I.useMemo)(() => u === "tags" ? T.map((t) => ({
...t,
label: e.tagLabel(t.k)
- })) : [], [T, u]), k = (0, I.useMemo)(() => u === "tags" && m === "alphabet" ? II(O, (t) => e.tagLabel(t)) : [], [
+ })) : [], [T, u]), k = (0, I.useMemo)(() => u === "tags" && m === "alphabet" ? LI(O, (t) => e.tagLabel(t)) : [], [
O,
m,
u
]), A = (t) => {
i(t), e.savePreference({ layout: t });
- }, j = u === "tags" ? /* @__PURE__ */ (0, L.jsx)(zI, {
- tabs: KI,
+ }, j = u === "tags" ? /* @__PURE__ */ (0, L.jsx)(BI, {
+ tabs: qI,
value: p,
label: "词表",
onChange: (e) => {
@@ -41558,14 +41585,14 @@ function Ece(e) {
view: e === "online" ? "alphabet" : m
});
}
- }) : u === "performers" ? /* @__PURE__ */ (0, L.jsx)(zI, {
- tabs: KI,
+ }) : u === "performers" ? /* @__PURE__ */ (0, L.jsx)(BI, {
+ tabs: qI,
value: p,
label: "名册",
onChange: (t) => {
t === "online" && e.exitSelectMode(), S({ scope: t });
}
- }) : wI(u) ? /* @__PURE__ */ (0, L.jsx)(zI, {
+ }) : TI(u) ? /* @__PURE__ */ (0, L.jsx)(BI, {
tabs: xce,
value: u,
label: "公司类型",
@@ -41583,7 +41610,7 @@ function Ece(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
});
- }, N = (v ? xI : bI).filter(([e]) => e === "all" || Number(w.data?.pages[0]?.categories?.[e] || 0) > 0);
+ }, N = (v ? SI : xI).filter(([e]) => e === "all" || Number(w.data?.pages[0]?.categories?.[e] || 0) > 0);
return /* @__PURE__ */ (0, L.jsxs)("div", {
ref: l,
"data-index-page": u,
@@ -41598,12 +41625,12 @@ function Ece(e) {
className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: g
}),
- CI(u) ? /* @__PURE__ */ (0, L.jsx)("span", {
+ wI(u) ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
children: w.isPending ? "" : D
}) : null,
- CI(u) ? /* @__PURE__ */ (0, L.jsx)(Cce, {
+ wI(u) ? /* @__PURE__ */ (0, L.jsx)(Cce, {
kind: u,
layout: r,
onChange: A
@@ -41647,8 +41674,8 @@ function Ece(e) {
mode: m
}) }
});
- if (w.isError) return /* @__PURE__ */ (0, L.jsx)(Bw, {
- icon: ET("search"),
+ if (w.isError) return /* @__PURE__ */ (0, L.jsx)(Vw, {
+ icon: kT("search"),
title: `没能读取${g}`,
actions: /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
@@ -41663,12 +41690,12 @@ function Ece(e) {
online: v || y,
configurable: e.configurable
});
- if (y) return /* @__PURE__ */ (0, L.jsx)(WI, {
+ if (y) return /* @__PURE__ */ (0, L.jsx)(GI, {
items: T,
layout: r,
props: e
});
- if (CI(u)) return /* @__PURE__ */ (0, L.jsx)(UI, {
+ if (wI(u)) return /* @__PURE__ */ (0, L.jsx)(WI, {
kind: u,
items: T,
layout: r,
@@ -41697,7 +41724,7 @@ function Ece(e) {
disabled: w.isFetchingNextPage,
"aria-busy": w.isFetchingNextPage || void 0,
onClick: () => void w.fetchNextPage(),
- children: w.isFetchingNextPage ? /* @__PURE__ */ (0, L.jsx)(Vw, {
+ children: w.isFetchingNextPage ? /* @__PURE__ */ (0, L.jsx)(Hw, {
inline: !0,
label: "继续载入中…"
}) : "载入更多"
@@ -41724,23 +41751,23 @@ var Dce = {
agencies: "事务所"
};
function Oce({ kind: e, filtered: t, online: n, configurable: r }) {
- if (t) return /* @__PURE__ */ (0, L.jsx)(Bw, {
- icon: ET("search"),
+ if (t) return /* @__PURE__ */ (0, L.jsx)(Vw, {
+ icon: kT("search"),
title: "没有符合条件的内容",
- actions: /* @__PURE__ */ (0, L.jsx)(Dw, {
+ actions: /* @__PURE__ */ (0, L.jsx)(Ow, {
variant: "primary",
href: "/?loc=&thumb=0",
children: "查看全部内容"
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : Dce[e], a = /* @__PURE__ */ (0, L.jsx)(Dw, {
+ let i = n && e === "performers" ? "创作者" : Dce[e], a = /* @__PURE__ */ (0, L.jsx)(Ow, {
variant: !r || n ? "primary" : "secondary",
href: "/follow-manage?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, L.jsx)(Bw, {
- icon: ET(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, L.jsx)(Vw, {
+ icon: kT(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
actions: n ? a : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [r ? /* @__PURE__ */ (0, L.jsx)(G, {
variant: "primary",
@@ -41750,14 +41777,14 @@ function Oce({ kind: e, filtered: t, online: n, configurable: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var qI = {
+var JI = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, kce = (e) => qI[e.junk_kind || "other"] || qI.other;
+}, kce = (e) => JI[e.junk_kind || "other"] || JI.other;
function Ace(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
@@ -41783,7 +41810,7 @@ function Nce({ kind: e, view: t }) {
return e && n.set("kind", e), n.toString();
}
async function Pce(e, t) {
- let n = await Aw(`/api/ads?${Nce(e)}`, t);
+ let n = await jw(`/api/ads?${Nce(e)}`, t);
return {
...n,
items: n.items || []
@@ -41791,19 +41818,19 @@ async function Pce(e, t) {
}
//#endregion
//#region src/react/junk-queue/junk-card.tsx
-function JI({ name: e }) {
+function YI({ name: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })
});
}
-var YI = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+var XI = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
function Fce({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions: s }) {
let c = (0, I.useRef)(null), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), p = e.junk_kind || "other", [m, h] = kce(e), g = String(e.name || ""), _ = Ace(t), v = p === "video" ? `/thumb?id=${e.id}&c=4` : p === "image" ? `/photo-thumb?id=${e.id}` : "", y = p === "video" || p === "image", b = (t) => {
- t.target.closest("[data-junk-actions]") || YI(i, t) && (t.preventDefault(), s.toggleSelection(e.id, t.shiftKey));
+ t.target.closest("[data-junk-actions]") || XI(i, t) && (t.preventDefault(), s.toggleSelection(e.id, t.shiftKey));
}, x = (t) => {
- if (t.stopPropagation(), YI(i, t)) {
+ if (t.stopPropagation(), XI(i, t)) {
t.preventDefault(), s.toggleSelection(e.id, t.shiftKey);
return;
}
@@ -41845,7 +41872,7 @@ function Fce({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions
children: [
/* @__PURE__ */ (0, L.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, L.jsx)(JI, { name: h }), /* @__PURE__ */ (0, L.jsx)("b", { children: m })]
+ children: [/* @__PURE__ */ (0, L.jsx)(YI, { name: h }), /* @__PURE__ */ (0, L.jsx)("b", { children: m })]
}),
v ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-media-art": "thumb",
@@ -41857,7 +41884,7 @@ function Fce({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions
}),
/* @__PURE__ */ (0, L.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, L.jsx)(JI, { name: "check" })
+ children: /* @__PURE__ */ (0, L.jsx)(YI, { name: "check" })
})
]
}),
@@ -41894,7 +41921,7 @@ function Fce({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions
children: [l === "reveal" ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: w("正在定位") }
- }) : /* @__PURE__ */ (0, L.jsx)(JI, { name: "folder-open" }), /* @__PURE__ */ (0, L.jsx)("span", {
+ }) : /* @__PURE__ */ (0, L.jsx)(YI, { name: "folder-open" }), /* @__PURE__ */ (0, L.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -41906,7 +41933,7 @@ function Fce({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions
"aria-label": _.label,
...T(_.operation),
onClick: C(_.operation),
- children: [/* @__PURE__ */ (0, L.jsx)(JI, { name: _.glyph }), /* @__PURE__ */ (0, L.jsx)("span", {
+ children: [/* @__PURE__ */ (0, L.jsx)(YI, { name: _.glyph }), /* @__PURE__ */ (0, L.jsx)("span", {
"data-junk-label": "",
children: _.label
})]
@@ -41918,7 +41945,7 @@ function Fce({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions
"aria-label": "移入回收站",
...T("dispose"),
onClick: C("dispose"),
- children: [/* @__PURE__ */ (0, L.jsx)(JI, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("span", {
+ children: [/* @__PURE__ */ (0, L.jsx)(YI, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -41970,7 +41997,7 @@ var Ice = (0, I.memo)(Fce), Lce = [
"hard-drive"
]
];
-function XI(e = "", t = "pending") {
+function ZI(e = "", t = "pending") {
let n = new URLSearchParams();
e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");
let r = n.toString();
@@ -41981,41 +42008,41 @@ function Rce(e) {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: XI("", "pending")
+ href: ZI("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: XI("", "dismissed")
+ href: ZI("", "dismissed")
};
}
var zce = (e) => e === "dismissed" ? "已排除" : "待判断";
//#endregion
//#region src/react/junk-queue/junk-count.tsx
-function ZI({ name: e }) {
+function QI({ name: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })
});
}
-function QI({ scope: e, count: t }) {
+function $I({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [" ", /* @__PURE__ */ (0, L.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
function Bce({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = DO(), { kind: a, view: o } = e, s = Rce(o), c = (e) => {
+ let i = AO(), { kind: a, view: o } = e, s = Rce(o), c = (e) => {
let t = e.target.closest("a");
- !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || XI()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || ZI()));
}, l = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, L.jsxs)("div", {
"data-junk-count": "",
children: [/* @__PURE__ */ (0, L.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, L.jsx)(pM, {
+ children: /* @__PURE__ */ (0, L.jsx)(mM, {
label: zce(o),
figure: l,
pending: !t && !n,
@@ -42030,13 +42057,13 @@ function Bce({ route: e, page: t, failed: n, onNavigate: r }) {
onClick: c,
children: [
Lce.map(([e, n, r]) => /* @__PURE__ */ (0, L.jsxs)("a", {
- href: XI(e, o),
+ href: ZI(e, o),
"data-junk-kind-link": e,
"aria-current": e === a ? "page" : void 0,
children: [
- /* @__PURE__ */ (0, L.jsx)(ZI, { name: r }),
+ /* @__PURE__ */ (0, L.jsx)(QI, { name: r }),
n,
- /* @__PURE__ */ (0, L.jsx)(QI, {
+ /* @__PURE__ */ (0, L.jsx)($I, {
scope: e,
count: t ? jce(t, e) : 0
})
@@ -42051,9 +42078,9 @@ function Bce({ route: e, page: t, failed: n, onNavigate: r }) {
"data-junk-view-link": s.view,
"aria-current": o === "dismissed" ? "page" : void 0,
children: [
- /* @__PURE__ */ (0, L.jsx)(ZI, { name: s.glyph }),
+ /* @__PURE__ */ (0, L.jsx)(QI, { name: s.glyph }),
s.label,
- /* @__PURE__ */ (0, L.jsx)(QI, {
+ /* @__PURE__ */ (0, L.jsx)($I, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -42066,7 +42093,7 @@ function Bce({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var Vce = ET("check"), Hce = (e, t) => e[1] === t.view && e[2] === t.kind;
+var Vce = kT("check"), Hce = (e, t) => e[1] === t.view && e[2] === t.kind;
function Uce(e) {
let t = {
kind: e.kind,
@@ -42116,7 +42143,7 @@ function Wce(e) {
}, [e]), t;
}
function Gce({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = _T(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, I.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: f } = e, p = (0, I.useCallback)(() => {
+ let a = vT(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, I.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: f } = e, p = (0, I.useCallback)(() => {
f?.() !== !1 && c((e) => e + 1);
}, [f]);
return /* @__PURE__ */ (0, L.jsxs)("div", {
@@ -42124,13 +42151,13 @@ function Gce({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-grid-reveal": a.fading ? "" : void 0,
children: [a.layer, (() => {
if (n) return null;
- if (!t) return /* @__PURE__ */ (0, L.jsx)(vT, {
+ if (!t) return /* @__PURE__ */ (0, L.jsx)(yT, {
message: d(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, L.jsx)(Bw, {
+ return /* @__PURE__ */ (0, L.jsx)(Vw, {
icon: Vce,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
@@ -42170,10 +42197,10 @@ function Kce({ onMore: e }) {
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var $I = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", qce = {
- gray: `${$I} border-separator-border bg-background-secondary-default text-text-secondary`,
- warning: `${$I} border-current/35 bg-status-yellow-background text-status-yellow-text`,
- error: `${$I} border-current/35 bg-background-tertiary-error text-text-error-primary`
+var eL = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", qce = {
+ gray: `${eL} border-separator-border bg-background-secondary-default text-text-secondary`,
+ warning: `${eL} border-current/35 bg-status-yellow-background text-status-yellow-text`,
+ error: `${eL} border-current/35 bg-background-tertiary-error text-text-error-primary`
};
function Jce({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
@@ -42204,9 +42231,9 @@ function Jce({ value: e, max: t }) {
});
}
function Yce(e) {
- let { job: t } = cj(e), n = t.data, r = t.isError ? n ? XO : K(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+ let { job: t } = uj(e), n = t.data, r = t.isError ? n ? ZO : K(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
if (!r && !o && !a) return null;
- let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : ek(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? DS : Jte;
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : tk(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? OS : Kte;
return /* @__PURE__ */ (0, L.jsxs)("aside", {
role: a ? "alert" : "status",
className: qce[s],
@@ -42222,42 +42249,42 @@ function Yce(e) {
className: "min-w-0 text-body-2-regular",
children: u
})]
- }), /* @__PURE__ */ (0, L.jsx)(IA, {
+ }), /* @__PURE__ */ (0, L.jsx)(RA, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: pS,
+ trailingIcon: hS,
children: r || a ? "查看并处理" : "查看进度"
})]
});
}
//#endregion
//#region src/react/playlists/playlists.ts
-var Xce = "/api/playlists", eL = "/api/playlist", tL = ["playlists"], nL = (e) => Aw(Xce, e);
+var Xce = "/api/playlists", tL = "/api/playlist", nL = ["playlists"], rL = (e) => jw(Xce, e);
async function Zce(e) {
await X.fetchQuery({
- queryKey: tL,
- queryFn: () => nL(e),
+ queryKey: nL,
+ queryFn: () => rL(e),
staleTime: 0
});
}
-var rL = () => X.invalidateQueries({
- queryKey: tL,
+var iL = () => X.invalidateQueries({
+ queryKey: nL,
exact: !0
-}), Qce = (e) => e.current_asset_id || e.preview_asset_id || null, iL = (e) => `/poster?id=${e}&c=4`, $ce = (e) => q(eL, {
+}), Qce = (e) => e.current_asset_id || e.preview_asset_id || null, aL = (e) => `/poster?id=${e}&c=4`, $ce = (e) => q(tL, {
action: "create",
name: e,
asset_ids: []
-}), aL = (e, t) => q(eL, {
+}), oL = (e, t) => q(tL, {
action: "rename",
id: e,
name: t
-}), oL = (e) => q(eL, {
+}), sL = (e) => q(tL, {
action: "delete",
id: e
-}), ele = (e) => Aw(`${eL}?id=${e}`).catch(() => null);
+}), ele = (e) => jw(`${tL}?id=${e}`).catch(() => null);
function tle(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return q(eL, {
+ return q(tL, {
action: "create",
name: e.name,
asset_ids: t,
@@ -42267,18 +42294,18 @@ function tle(e) {
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
-var nle = ET("ellipsis"), rle = ET("pencil"), ile = ET("trash"), ale = ET("playlist"), sL = Sw(RA, zA, "text-body-2-medium"), cL = "播放列表名称不能为空", lL = (e) => async () => {
+var nle = kT("ellipsis"), rle = kT("pencil"), ile = kT("trash"), ale = kT("playlist"), cL = Cw(BA, VA, "text-body-2-medium"), lL = "播放列表名称不能为空", uL = (e) => async () => {
try {
await e();
} finally {
- rL();
+ iL();
}
};
function ole({ toast: e }) {
let [t, n] = (0, I.useState)(""), [r, i] = (0, I.useState)(""), a = At({
mutationFn: (e) => $ce(e),
onSuccess: (t) => {
- n(""), i(""), rL(), e("已新建播放列表", { undo: lL(() => oL(t.playlist.id)) });
+ n(""), i(""), iL(), e("已新建播放列表", { undo: uL(() => sL(t.playlist.id)) });
},
onError: (e) => i(K(e) || "新建失败")
});
@@ -42288,7 +42315,7 @@ function ole({ toast: e }) {
onSubmit: (e) => {
if (e.preventDefault(), !a.isPending) {
if (!t.trim()) {
- i(cL);
+ i(lL);
return;
}
a.mutate(t);
@@ -42297,7 +42324,7 @@ function ole({ toast: e }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none",
- children: /* @__PURE__ */ (0, L.jsx)(tM, {
+ children: /* @__PURE__ */ (0, L.jsx)(rM, {
label: "新播放列表",
placeholder: "输入名称",
maxLength: 80,
@@ -42327,13 +42354,13 @@ function sle({ target: e, close: t, toast: n }) {
return () => cancelAnimationFrame(t);
}, [e]);
let c = At({
- mutationFn: ({ row: e, value: t }) => aL(e.id, t),
+ mutationFn: ({ row: e, value: t }) => oL(e.id, t),
onSuccess: (e, { row: r }) => {
- t(), rL(), n("已重命名播放列表", { undo: lL(() => aL(r.id, r.name)) });
+ t(), iL(), n("已重命名播放列表", { undo: uL(() => oL(r.id, r.name)) });
},
onError: (e) => o(K(e))
});
- return /* @__PURE__ */ (0, L.jsx)(TO, {
+ return /* @__PURE__ */ (0, L.jsx)(OO, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
@@ -42345,7 +42372,7 @@ function sle({ target: e, close: t, toast: n }) {
if (t.preventDefault(), !e || c.isPending) return;
let n = r.trim();
if (!n) {
- o(cL);
+ o(lL);
return;
}
c.mutate({
@@ -42356,11 +42383,11 @@ function sle({ target: e, close: t, toast: n }) {
className: "flex min-h-0 flex-col",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-4 p-5",
- children: [/* @__PURE__ */ (0, L.jsx)(QT, {
+ children: [/* @__PURE__ */ (0, L.jsx)(tE, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "编辑名称"
- }), /* @__PURE__ */ (0, L.jsx)(tM, {
+ }), /* @__PURE__ */ (0, L.jsx)(rM, {
ref: s,
label: "名称",
placeholder: "输入名称",
@@ -42406,19 +42433,19 @@ function cle({ name: e, onRename: t, onDelete: n }) {
"aria-hidden": !0,
className: "size-4.5"
})
- }), /* @__PURE__ */ (0, L.jsx)(_D, {
+ }), /* @__PURE__ */ (0, L.jsx)(bD, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: LA,
- children: /* @__PURE__ */ (0, L.jsxs)(OD, {
+ className: zA,
+ children: /* @__PURE__ */ (0, L.jsxs)(jD, {
"aria-label": `播放列表操作:${e}`,
className: "flex w-37.5 flex-col gap-0.5 outline-none",
children: [/* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
- className: sL,
+ className: cL,
onClick: () => o(t),
children: [/* @__PURE__ */ (0, L.jsx)(rle, {
"aria-hidden": !0,
@@ -42426,7 +42453,7 @@ function cle({ name: e, onRename: t, onDelete: n }) {
}), "编辑名称"]
}), /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
- className: sL,
+ className: cL,
onClick: () => o(n),
children: [/* @__PURE__ */ (0, L.jsx)(ile, {
"aria-hidden": !0,
@@ -42438,11 +42465,11 @@ function cle({ name: e, onRename: t, onDelete: n }) {
}
function lle({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast: i, revision: a }) {
let o = kt({
- queryKey: tL,
- queryFn: ({ signal: e }) => nL(e)
+ queryKey: nL,
+ queryFn: ({ signal: e }) => rL(e)
}), [s, c] = (0, I.useState)(null), l = (0, I.useRef)(a);
(0, I.useEffect)(() => {
- l.current !== a && (l.current = a, rL());
+ l.current !== a && (l.current = a, iL());
}, [a]);
let u = o.data;
if (!u) return /* @__PURE__ */ (0, L.jsx)("div", {
@@ -42461,7 +42488,7 @@ function lle({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
danger: !0,
onConfirm: async () => {
let t = await ele(e.id);
- await oL(e.id), rL(), i("已删除播放列表", t ? { undo: lL(() => tle(t)) } : void 0);
+ await sL(e.id), iL(), i("已删除播放列表", t ? { undo: uL(() => tle(t)) } : void 0);
}
});
};
@@ -42483,13 +42510,13 @@ function lle({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
className: "card-grid-cover gap-4.5",
children: d.map((i) => {
let a = Qce(i);
- return /* @__PURE__ */ (0, L.jsx)(kT, {
+ return /* @__PURE__ */ (0, L.jsx)(MT, {
"data-playlist-card": String(i.id),
name: i.name,
caption: i.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
count: i.item_count,
- poster: i.preview_asset_id ? iL(i.preview_asset_id) : null,
- flipImages: async () => (i.preview_ids || []).map(iL),
+ poster: i.preview_asset_id ? aL(i.preview_asset_id) : null,
+ flipImages: async () => (i.preview_ids || []).map(aL),
canFlip: r,
faces: i.faces || [],
faceAvatar: n,
@@ -42503,7 +42530,7 @@ function lle({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
})
}, i.id);
})
- }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
icon: ale,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
@@ -42522,7 +42549,7 @@ function ule({ item: t, openItem: n, javTitleHtml: r, javDisplayName: o, srcBadg
let c = () => n(t.id);
return /* @__PURE__ */ (0, L.jsxs)("li", {
"data-goal-id": t.id,
- className: Rw({
+ className: zw({
padding: "none",
bordered: "soft",
className: "flex flex-col gap-3 p-3"
@@ -42538,7 +42565,7 @@ function ule({ item: t, openItem: n, javTitleHtml: r, javDisplayName: o, srcBadg
className: "text-caption-1-regular text-text-secondary",
children: "暂无预览"
}), /* @__PURE__ */ (0, L.jsx)("img", {
- src: hk(t),
+ src: gk(t),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
@@ -42588,17 +42615,17 @@ function ule({ item: t, openItem: n, javTitleHtml: r, javDisplayName: o, srcBadg
}
function dle(e) {
let t = kt({
- queryKey: fk,
- queryFn: ({ signal: e }) => pk(e)
+ queryKey: pk,
+ queryFn: ({ signal: e }) => mk(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, L.jsx)(Hw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ if (!n) return /* @__PURE__ */ (0, L.jsx)(Uw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "读取失败",
children: t.error ? K(t.error) : "读取高清版目标失败"
}) });
let r = n.items || [];
- return r.length ? /* @__PURE__ */ (0, L.jsxs)(Hw, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {
- className: Rw({
+ return r.length ? /* @__PURE__ */ (0, L.jsxs)(Uw, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {
+ className: zw({
variant: "raised",
className: "flex flex-col gap-1 px-6 py-5 max-sm:px-4"
}),
@@ -42615,9 +42642,9 @@ function dle(e) {
item: t,
...e
}, t.id))
- })] }) : /* @__PURE__ */ (0, L.jsx)(Hw, { children: /* @__PURE__ */ (0, L.jsx)(Bw, {
+ })] }) : /* @__PURE__ */ (0, L.jsx)(Uw, { children: /* @__PURE__ */ (0, L.jsx)(Vw, {
shell: "plain",
- icon: VS,
+ icon: HS,
title: "没有标记中的高清版目标",
children: "现有版本都已满足条件,或还没有加入追踪。"
}) });
@@ -42633,29 +42660,29 @@ function fle(e) {
"data-glass-pane": "",
className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(Sj, {
+ /* @__PURE__ */ (0, L.jsx)(wj, {
"aria-label": "筛选分组方式",
size: "sm",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: t.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Cj, {
+ children: t.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Tj, {
id: e,
children: t
}, e))
}),
- i.length > 1 ? /* @__PURE__ */ (0, L.jsxs)(Sj, {
+ i.length > 1 ? /* @__PURE__ */ (0, L.jsxs)(wj, {
"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",
size: "sm",
selectedKey: a || "*",
onSelectionChange: (e) => {
e !== null && o(String(e) === "*" ? "" : String(e));
},
- children: [/* @__PURE__ */ (0, L.jsx)(Cj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Tj, {
id: "*",
children: "全部分类"
- }), i.map((e) => /* @__PURE__ */ (0, L.jsx)(Cj, {
+ }), i.map((e) => /* @__PURE__ */ (0, L.jsx)(Tj, {
id: e.key,
children: `${e.title} · ${e.rows.length}`
}, e.key))]
@@ -42663,7 +42690,7 @@ function fle(e) {
/* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: gS,
+ leadingIcon: vS,
"aria-pressed": v,
disabled: p || !s.length,
onClick: () => {
@@ -42674,11 +42701,11 @@ function fle(e) {
children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"
})
]
- }), c.size ? /* @__PURE__ */ (0, L.jsxs)(PF, {
+ }), c.size ? /* @__PURE__ */ (0, L.jsxs)(FF, {
label: "复核所选项目",
count: `已选 ${c.size} 项`,
children: [
- b ? /* @__PURE__ */ (0, L.jsxs)(Sj, {
+ b ? /* @__PURE__ */ (0, L.jsxs)(wj, {
"aria-label": "统一选择来源",
size: "sm",
selectedKey: "",
@@ -42686,10 +42713,10 @@ function fle(e) {
onSelectionChange: (e) => {
e !== null && e !== "" && h(String(e));
},
- children: [/* @__PURE__ */ (0, L.jsx)(Cj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Tj, {
id: "",
children: x
- }), y.map((e) => /* @__PURE__ */ (0, L.jsx)(Cj, {
+ }), y.map((e) => /* @__PURE__ */ (0, L.jsx)(Tj, {
id: e,
children: e
}, e))]
@@ -42735,14 +42762,14 @@ var ple = {
cover_url: "封面",
screenshot_urls: "截图",
trailer_url: "预告片"
-}, uL = "reviewgenretags";
+}, dL = "reviewgenretags";
function mle({ tags: e }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)("datalist", {
- id: uL,
+ id: dL,
children: e.map((e) => /* @__PURE__ */ (0, L.jsx)("option", { value: e }, e))
}) : null;
}
-function dL({ candidate: e, selectable: t = !1 }) {
+function fL({ candidate: e, selectable: t = !1 }) {
let n = Object.entries(e.catalog_evidence || {}).filter(([, e]) => e && e.display_value), r = e.content_id || e.provider_id;
return /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col",
@@ -42798,17 +42825,17 @@ function hle({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
let a = e.candidates || [];
return a.length ? a.length === 1 ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
- children: /* @__PURE__ */ (0, L.jsx)(dL, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, L.jsx)(FD, {
+ children: /* @__PURE__ */ (0, L.jsx)(fL, { candidate: a[0] })
+ }) : /* @__PURE__ */ (0, L.jsx)(RD, {
"aria-label": `${t || "候选"}的来源`,
value: n,
isDisabled: i,
onChange: r,
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, L.jsx)(ID, {
+ children: a.map((e) => /* @__PURE__ */ (0, L.jsx)(zD, {
value: e.candidate_key,
className: "group flex cursor-pointer items-center gap-2 overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:border-border-button-active data-disabled:cursor-not-allowed",
- children: /* @__PURE__ */ (0, L.jsx)(dL, {
+ children: /* @__PURE__ */ (0, L.jsx)(fL, {
candidate: e,
selectable: !0
})
@@ -42817,13 +42844,13 @@ function hle({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
}
function gle({ genre: e, tags: t, locked: n, toast: r }) {
let [i, a] = (0, I.useState)(""), [o, s] = (0, I.useState)(""), c = At({
- mutationFn: (t) => Aae(e, t),
+ mutationFn: (t) => Mk(e, t),
onSuccess: async (t, n) => {
if (!t.ok) {
s(t.error || "服务端拒绝了这次收录");
return;
}
- r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await Nk();
+ r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await Fk();
},
onError: (e) => s(K(e))
}), l = () => {
@@ -42842,16 +42869,16 @@ function gle({ genre: e, tags: t, locked: n, toast: r }) {
className: "text-body-medium text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, L.jsx)(Qj, {
+ /* @__PURE__ */ (0, L.jsx)(eM, {
"aria-label": `「${e}」收录成的中文标签`,
value: i,
onChange: a,
maxLength: 40,
isDisabled: n || c.isPending,
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, L.jsx)(eM, {
+ children: /* @__PURE__ */ (0, L.jsx)(nM, {
size: "small",
- list: t.length ? uL : void 0,
+ list: t.length ? dL : void 0,
autoComplete: "off",
placeholder: "中文标签",
onKeyDown: (e) => {
@@ -42902,8 +42929,8 @@ function _le({ row: e, tags: t, locked: n, toast: r }) {
}
//#endregion
//#region src/react/review/review-evidence.tsx
-var fL = (e = "") => /^https?:\/\//i.test(e) ? e : "", vle = (e = "") => fL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
-function pL({ url: e }) {
+var pL = (e = "") => /^https?:\/\//i.test(e) ? e : "", vle = (e = "") => pL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+function mL({ url: e }) {
let t = vle(e || ""), [n, r] = (0, I.useState)(!1);
return /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",
@@ -42919,7 +42946,7 @@ function pL({ url: e }) {
})
});
}
-function mL({ asset: e, openItem: t }) {
+function hL({ asset: e, openItem: t }) {
let n = e.name || "";
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",
@@ -42935,7 +42962,7 @@ function mL({ asset: e, openItem: t }) {
}) : /* @__PURE__ */ (0, L.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "无封面"
- }), /* @__PURE__ */ (0, L.jsx)(G_, { children: `打开原视频 ${n}` })]
+ }), /* @__PURE__ */ (0, L.jsx)(K_, { children: `打开原视频 ${n}` })]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-1",
children: [/* @__PURE__ */ (0, L.jsx)("b", {
@@ -42945,7 +42972,7 @@ function mL({ asset: e, openItem: t }) {
}), /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: AS,
+ leadingIcon: jS,
onClick: () => t(e.id),
children: "打开原视频"
})]
@@ -42959,7 +42986,7 @@ function yle({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
type: "button",
"aria-label": `打开创作者页:${t}`,
onClick: () => i(e, t),
- className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${NF}`,
+ className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${PF}`,
dangerouslySetInnerHTML: { __html: r }
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 flex-col items-start",
@@ -42976,7 +43003,7 @@ function yle({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
});
}
function ble({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
- let o = fL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
+ let o = pL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
return /* @__PURE__ */ (0, L.jsxs)("section", {
className: "flex flex-col gap-3",
children: [
@@ -42986,10 +43013,10 @@ function ble({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [o ? /* @__PURE__ */ (0, L.jsx)(Dw, {
+ children: [o ? /* @__PURE__ */ (0, L.jsx)(Ow, {
variant: "secondary",
size: "small",
- trailingIcon: xS,
+ trailingIcon: CS,
href: o,
target: "_blank",
rel: "noopener noreferrer",
@@ -43001,7 +43028,7 @@ function ble({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
children: `查看全部 ${c.toLocaleString()} 部作品`
})]
}),
- /* @__PURE__ */ (0, L.jsx)(pL, { url: e.preview_url }),
+ /* @__PURE__ */ (0, L.jsx)(mL, { url: e.preview_url }),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "通过后记录身份判断。"
@@ -43100,7 +43127,7 @@ function xle({ assets: e, picked: t, onPicked: n, locked: r }) {
}),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, L.jsx)(Mj, {
+ children: /* @__PURE__ */ (0, L.jsx)(Pj, {
size: "sm",
state: {
isSelected: n,
@@ -43111,7 +43138,7 @@ function xle({ assets: e, picked: t, onPicked: n, locked: r }) {
}
})
}),
- /* @__PURE__ */ (0, L.jsx)(G_, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
+ /* @__PURE__ */ (0, L.jsx)(K_, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
]
}, e.id);
})
@@ -43120,15 +43147,15 @@ function xle({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var Sle = Rw({
+var Sle = zw({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
-}), hL = "flex min-h-6 min-w-0 items-center", Cle = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
+}), gL = "flex min-h-6 min-w-0 items-center", Cle = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
function wle(e) {
- let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, I.useRef)(!1), m = DO(), h = DO(), g = t === "metadata_fields", _ = vae[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = wae(t, n), x = Dk(t, n), S = Ek(t, n), C = Tae(n), w = Eae(n), T = Tk(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, L.jsx)("div", {
+ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, I.useRef)(!1), m = AO(), h = AO(), g = t === "metadata_fields", _ = vae[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = wae(t, n), x = Ok(t, n), S = Dk(t, n), C = Tae(n), w = Eae(n), T = Ek(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col gap-3",
- children: E.map((e) => /* @__PURE__ */ (0, L.jsx)(mL, {
+ children: E.map((e) => /* @__PURE__ */ (0, L.jsx)(hL, {
asset: e,
openItem: f.openItem
}, e.id))
@@ -43142,7 +43169,7 @@ function wle(e) {
has_image: !!n.has_image,
avatar_focus: n.avatar_focus
} : null, null, _)
- }) : n.asset_id ? /* @__PURE__ */ (0, L.jsx)(mL, {
+ }) : n.asset_id ? /* @__PURE__ */ (0, L.jsx)(hL, {
openItem: f.openItem,
asset: {
id: n.asset_id,
@@ -43166,9 +43193,9 @@ function wle(e) {
...r,
assets: e
})
- }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
shell: "inset",
- icon: TS,
+ icon: Yte,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
}) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, L.jsx)(ble, {
@@ -43178,9 +43205,9 @@ function wle(e) {
onReveal: f.onReveal,
revealing: f.revealing,
note: f.revealNote
- }) : /* @__PURE__ */ (0, L.jsx)(pL, { url: n.preview_url }), j = y ? k : x ? /* @__PURE__ */ (0, L.jsxs)("h4", {
- className: `${hL} flex-wrap gap-2`,
- children: [/* @__PURE__ */ (0, L.jsx)(Tw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(mL, { url: n.preview_url }), j = y ? k : x ? /* @__PURE__ */ (0, L.jsxs)("h4", {
+ className: `${gL} flex-wrap gap-2`,
+ children: [/* @__PURE__ */ (0, L.jsx)(Ew, {
variant: "caption",
color: "blue",
children: x
@@ -43190,7 +43217,7 @@ function wle(e) {
children: S
})]
}) : /* @__PURE__ */ (0, L.jsx)("h4", {
- className: hL,
+ className: gL,
children: /* @__PURE__ */ (0, L.jsx)("span", {
title: b,
className: "min-w-0 truncate text-body-medium text-text-primary",
@@ -43206,14 +43233,14 @@ function wle(e) {
className: "flex min-w-0 shrink-0 items-start gap-2",
children: [
s ? null : /* @__PURE__ */ (0, L.jsx)("span", {
- className: `${hL} shrink-0`,
+ className: `${gL} shrink-0`,
onPointerDownCapture: (e) => {
p.current = e.shiftKey;
},
onKeyDownCapture: (e) => {
p.current = e.shiftKey;
},
- children: /* @__PURE__ */ (0, L.jsx)(Nj, {
+ children: /* @__PURE__ */ (0, L.jsx)(Fj, {
isSelected: a,
"aria-label": `选择 ${b}`,
onChange: (e) => o(p.current, e)
@@ -43223,7 +43250,7 @@ function wle(e) {
className: "min-w-0 flex-1",
children: j
}),
- O ? /* @__PURE__ */ (0, L.jsx)(Tw, {
+ O ? /* @__PURE__ */ (0, L.jsx)(Ew, {
variant: "caption",
color: "neutral",
children: n.decision
@@ -43247,7 +43274,7 @@ function wle(e) {
!y && k ? k : null,
w.length || t === "creator_tags" ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-wrap gap-1",
- children: w.length ? w.map((e) => /* @__PURE__ */ (0, L.jsx)(Tw, {
+ children: w.length ? w.map((e) => /* @__PURE__ */ (0, L.jsx)(Ew, {
variant: "caption",
color: "soft",
children: e
@@ -43334,7 +43361,7 @@ function Ele({ page: e, pages: t, onPage: n }) {
}),
/* @__PURE__ */ (0, L.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: gk(e, t).map((t, r) => /* @__PURE__ */ (0, L.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, L.jsx)("span", {
+ children: _k(e, t).map((t, r) => /* @__PURE__ */ (0, L.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -43358,17 +43385,17 @@ function Ele({ page: e, pages: t, onPage: n }) {
});
}
function Dle(e) {
- let { route: t, openItem: n, openEntity: r, revealSource: i, avatarInner: a, toast: o, readOnly: s, readOnlyMessage: c, writerUrl: l } = e, [u, d] = (0, I.useState)(Ck(e.category) ? e.category : _ae), [f, p] = (0, I.useState)("candidates"), [m, h] = (0, I.useState)(""), [g, _] = (0, I.useState)(1), [v, y] = (0, I.useState)(/* @__PURE__ */ new Set()), [b, x] = (0, I.useState)(/* @__PURE__ */ new Map()), [S, C] = (0, I.useState)(/* @__PURE__ */ new Map()), [w, T] = (0, I.useState)(""), E = (0, I.useRef)(null), [D, O] = (0, I.useState)(0), [k, A] = (0, I.useState)(""), j = (0, I.useRef)(!0);
+ let { route: t, openItem: n, openEntity: r, revealSource: i, avatarInner: a, toast: o, readOnly: s, readOnlyMessage: c, writerUrl: l } = e, [u, d] = (0, I.useState)(wk(e.category) ? e.category : _ae), [f, p] = (0, I.useState)("candidates"), [m, h] = (0, I.useState)(""), [g, _] = (0, I.useState)(1), [v, y] = (0, I.useState)(/* @__PURE__ */ new Set()), [b, x] = (0, I.useState)(/* @__PURE__ */ new Map()), [S, C] = (0, I.useState)(/* @__PURE__ */ new Map()), [w, T] = (0, I.useState)(""), E = (0, I.useRef)(null), [D, O] = (0, I.useState)(0), [k, A] = (0, I.useState)(""), j = (0, I.useRef)(!0);
(0, I.useEffect)(() => () => {
j.current = !1;
}, []);
let M = kt({
- queryKey: xk,
- queryFn: ({ signal: e }) => kk(e)
+ queryKey: Sk,
+ queryFn: ({ signal: e }) => Ak(e)
}).data || {
sections: {},
counts: {}
- }, N = M.sections[u] || [], ee = u === "metadata_fields", te = s, P = yae(N, ee), F = P.some(([e]) => e === f) ? f : "candidates", ne = wk(N, F), re = ne.some((e) => e.key === m) ? m : "", ie = xae(bae(N, F, re), g), ae = ie.rows.map((e) => e.item_key), oe = new Set(ae), se = ne.map((e) => ({
+ }, N = M.sections[u] || [], ee = u === "metadata_fields", te = s, P = yae(N, ee), F = P.some(([e]) => e === f) ? f : "candidates", ne = Tk(N, F), re = ne.some((e) => e.key === m) ? m : "", ie = xae(bae(N, F, re), g), ae = ie.rows.map((e) => e.item_key), oe = new Set(ae), se = ne.map((e) => ({
...e,
rows: e.rows.filter((e) => oe.has(e.item_key))
})).filter((e) => e.rows.length), ce = (e) => b.get(e.item_key) || Oae(e), le = N.filter((e) => v.has(e.item_key)), ue = (e) => {
@@ -43377,13 +43404,13 @@ function Dle(e) {
}, R = (e, t) => C((n) => new Map(n).set(e, t)), z = (e) => {
d(e), p("candidates"), h(""), _(1), y(/* @__PURE__ */ new Set()), x(/* @__PURE__ */ new Map()), C(/* @__PURE__ */ new Map()), T(""), E.current = null, t({ category: e === "metadata_fields" ? "" : e });
}, de = At({
- mutationFn: ({ row: e, status: t }) => Ak(Ok(u, e, t, ce(e))),
+ mutationFn: ({ row: e, status: t }) => jk(kk(u, e, t, ce(e))),
onSuccess: (e, { row: t, status: n }) => {
if (!e.ok) {
R(t.item_key, e.error || "服务端拒绝了这次判定");
return;
}
- Mk(u, [t.item_key]), ue([t.item_key]), o(kae(n));
+ Pk(u, [t.item_key]), ue([t.item_key]), o(kae(n));
},
onError: (e, { row: t }) => R(t.item_key, K(e))
}), fe = At({
@@ -43393,7 +43420,7 @@ function Dle(e) {
if (!j.current) break;
T(`正在处理 ${i} / ${t.length}`);
try {
- let t = await Ak(Ok(u, a, e, ce(a)));
+ let t = await jk(kk(u, a, e, ce(a)));
if (!t.ok) throw Error(t.error || "服务端未采用该项");
n.push(a.item_key);
} catch (e) {
@@ -43407,7 +43434,7 @@ function Dle(e) {
};
},
onSuccess: ({ status: e, done: t, failures: n }) => {
- Mk(u, t), ue(t), n.forEach(([e, t]) => R(e, t)), T(""), o(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
+ Pk(u, t), ue(t), n.forEach(([e, t]) => R(e, t)), T(""), o(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
},
onError: (e) => {
T(K(e));
@@ -43437,7 +43464,7 @@ function Dle(e) {
O(e), A("");
let t = await i(e);
j.current && (O(0), A(t));
- }, ge = Pk(M.mirror, c), _e = M.genre_tags || [], ve = {
+ }, ge = Ik(M.mirror, c), _e = M.genre_tags || [], ve = {
openItem: n,
openEntity: r,
onReveal: he,
@@ -43446,7 +43473,7 @@ function Dle(e) {
avatarInner: a,
toast: o
};
- return /* @__PURE__ */ (0, L.jsx)(Hw, { children: /* @__PURE__ */ (0, L.jsxs)("div", {
+ return /* @__PURE__ */ (0, L.jsx)(Uw, { children: /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-5 pb-10",
children: [
te ? /* @__PURE__ */ (0, L.jsx)(J, {
@@ -43463,11 +43490,11 @@ function Dle(e) {
children: ge
}) : null,
/* @__PURE__ */ (0, L.jsx)(mle, { tags: _e }),
- /* @__PURE__ */ (0, L.jsxs)(uO, {
+ /* @__PURE__ */ (0, L.jsxs)(pO, {
selectedKey: u,
onSelectionChange: (e) => {
let t = String(e);
- Ck(t) && z(t);
+ wk(t) && z(t);
},
className: "flex flex-col gap-5 review-split:flex-row-reverse review-split:items-start review-split:gap-6",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -43476,22 +43503,22 @@ function Dle(e) {
id: "reviewcategories",
className: "px-3 pb-3 text-caption-1-regular text-text-secondary",
children: "复核分类"
- }), /* @__PURE__ */ (0, L.jsx)(dO, {
+ }), /* @__PURE__ */ (0, L.jsx)(mO, {
"aria-labelledby": "reviewcategories",
className: "flex flex-wrap gap-1 review-split:flex-col review-split:flex-nowrap review-split:items-stretch",
children: gae.map((e) => {
let t = Number(M.counts[e] || 0);
- return /* @__PURE__ */ (0, L.jsxs)(fO, {
+ return /* @__PURE__ */ (0, L.jsxs)(hO, {
id: e,
className: Tle,
- children: [Sk[e], t ? /* @__PURE__ */ (0, L.jsx)("span", {
+ children: [Ck[e], t ? /* @__PURE__ */ (0, L.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
}) : null]
}, e);
})
})]
- }), /* @__PURE__ */ (0, L.jsxs)(pO, {
+ }), /* @__PURE__ */ (0, L.jsxs)(gO, {
id: u,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
@@ -43511,7 +43538,7 @@ function Dle(e) {
onSelected: y,
selectedRows: le,
metadata: ee,
- approvable: le.every((e) => Tk(u, e)),
+ approvable: le.every((e) => Ek(u, e)),
busy: fe.isPending,
feedback: w,
onUnifySource: me,
@@ -43559,8 +43586,8 @@ function Dle(e) {
handlers: ve
}, e.item_key))
})]
- }, e.key)) : /* @__PURE__ */ (0, L.jsx)(Bw, {
- icon: qte,
+ }, e.key)) : /* @__PURE__ */ (0, L.jsx)(Vw, {
+ icon: Gte,
title: "暂无候选",
children: "该分类当前没有待人工复核的项目。"
}),
@@ -43577,13 +43604,9 @@ function Dle(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var Ole = "/api/scraping", kle = "/api/scraping/settings", Ale = "/api/scraping/check", gL = "/api/scraping/cover", jle = "/api/scraping/amane-bridge", Mle = "/api/scraping/amane-bridge/check", Nle = "/api/scraping/amane-bridge/rebuild", _L = ["scraping"], vL = ["scraping", "cover"], yL = ["scraping", "amane-bridge"], bL = (e) => Aw(Ole, e), xL = (e) => Aw(gL, e), SL = (e) => Aw(jle, e);
+var Ole = "/api/scraping", kle = "/api/scraping/settings", Ale = "/api/scraping/check", _L = "/api/scraping/cover", jle = "/api/scraping/amane-bridge", Mle = "/api/scraping/amane-bridge/check", Nle = "/api/scraping/amane-bridge/rebuild", vL = ["scraping"], yL = ["scraping", "cover"], bL = ["scraping", "amane-bridge"], xL = (e) => jw(Ole, e), SL = (e) => jw(_L, e), CL = (e) => jw(jle, e);
async function Ple(e) {
await Promise.all([
- X.fetchQuery({
- queryKey: _L,
- queryFn: () => bL(e)
- }),
X.fetchQuery({
queryKey: vL,
queryFn: () => xL(e)
@@ -43591,6 +43614,10 @@ async function Ple(e) {
X.fetchQuery({
queryKey: yL,
queryFn: () => SL(e)
+ }),
+ X.fetchQuery({
+ queryKey: bL,
+ queryFn: () => CL(e)
})
]);
}
@@ -43599,7 +43626,7 @@ function Fle(e, t) {
}
//#endregion
//#region src/react/scraping/scraping-page.tsx
-var Ile = [["peach", "Peach 代理"], ["direct", "直接连接"]], CL = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+var Ile = [["peach", "Peach 代理"], ["direct", "直接连接"]], wL = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
function Lle({ source: e }) {
return /* @__PURE__ */ (0, L.jsx)("img", {
src: f({ source: e }),
@@ -43612,7 +43639,7 @@ function Lle({ source: e }) {
});
}
function Rle({ source: e, toast: t }) {
- let [n, r] = (0, I.useState)(e.network), [i, a] = (0, I.useState)(""), [o, s] = (0, I.useState)(""), [c, l] = (0, I.useState)(CL[0][0]), [u, d] = (0, I.useState)(""), [f, p] = (0, I.useState)(""), m = (0, I.useRef)(null);
+ let [n, r] = (0, I.useState)(e.network), [i, a] = (0, I.useState)(""), [o, s] = (0, I.useState)(""), [c, l] = (0, I.useState)(wL[0][0]), [u, d] = (0, I.useState)(""), [f, p] = (0, I.useState)(""), m = (0, I.useRef)(null);
function h() {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
@@ -43625,7 +43652,7 @@ function Rle({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- X.setQueryData(_L, (t) => t && {
+ X.setQueryData(vL, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
@@ -43655,40 +43682,40 @@ function Rle({ source: e, toast: t }) {
}
}
let C = f || (g.error ? K(g.error) : "") || (_.error ? K(_.error) : ""), w = _.data?.results ?? [], T = n === "peach" || e.accepts_cookie || e.browser || !!C || w.length > 0;
- return /* @__PURE__ */ (0, L.jsxs)(YA, {
+ return /* @__PURE__ */ (0, L.jsxs)(ZA, {
title: e.label,
onSubmit: y,
aside: /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, L.jsx)(Lle, { source: e.source }), /* @__PURE__ */ (0, L.jsx)(nj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Lle, { source: e.source }), /* @__PURE__ */ (0, L.jsx)(ij, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, L.jsx)(XA, { children: /* @__PURE__ */ (0, L.jsx)(JA, {
+ /* @__PURE__ */ (0, L.jsx)(QA, { children: /* @__PURE__ */ (0, L.jsx)(XA, {
label: "连接方式",
- children: /* @__PURE__ */ (0, L.jsx)(Sj, {
+ children: /* @__PURE__ */ (0, L.jsx)(wj, {
"aria-label": "连接方式",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: Ile.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Cj, {
+ children: Ile.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Tj, {
id: e,
children: t
}, e))
})
}) }),
- T ? /* @__PURE__ */ (0, L.jsxs)(ZA, {
+ T ? /* @__PURE__ */ (0, L.jsxs)($A, {
divided: !0,
children: [
n === "peach" ? /* @__PURE__ */ (0, L.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, L.jsx)(IA, {
+ children: /* @__PURE__ */ (0, L.jsx)(RA, {
href: "/configuration#peachProxy",
size: "small",
- trailingIcon: pS,
+ trailingIcon: hS,
children: "配置 Peach 代理"
})
}) : null,
@@ -43701,20 +43728,20 @@ function Rle({ source: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, L.jsx)(FD, {
+ /* @__PURE__ */ (0, L.jsx)(RD, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), h();
},
- className: SM,
- children: CL.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(ID, {
+ className: CM,
+ children: wL.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(zD, {
value: e,
- className: CM,
+ className: wM,
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, L.jsx)(tM, {
+ c === "paste" ? /* @__PURE__ */ (0, L.jsx)(rM, {
type: "password",
label: "Cookie",
autoComplete: "off",
@@ -43723,7 +43750,7 @@ function Rle({ source: e, toast: t }) {
}) : /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(tj, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, L.jsx)(rj, { children: "Netscape Cookie 文件(.txt)" }),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [/* @__PURE__ */ (0, L.jsx)(G, {
@@ -43749,14 +43776,14 @@ function Rle({ source: e, toast: t }) {
]
})
] }) : null,
- C ? /* @__PURE__ */ (0, L.jsx)(ej, { children: C }) : null,
+ C ? /* @__PURE__ */ (0, L.jsx)(nj, { children: C }) : null,
w.map((t) => /* @__PURE__ */ (0, L.jsx)(J, {
tone: t.ok ? "success" : "error",
children: Fle(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, L.jsxs)(QA, { children: [
+ /* @__PURE__ */ (0, L.jsxs)(ej, { children: [
e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
onClick: b,
@@ -43779,25 +43806,25 @@ function Rle({ source: e, toast: t }) {
});
}
function zle({ toast: e }) {
- let [t, n] = (0, I.useState)(""), { running: r, outcome: i, start: a } = Dj({
- queryKey: vL,
- queryFn: ({ signal: e }) => xL(e),
- start: () => q(gL, { code: t }),
+ let [t, n] = (0, I.useState)(""), { running: r, outcome: i, start: a } = kj({
+ queryKey: yL,
+ queryFn: ({ signal: e }) => SL(e),
+ start: () => q(_L, { code: t }),
onFinish: (t) => {
t.status === "complete" && e(t.result || "封面采集完成");
}
}), o = (e) => {
e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();
}, s = a.error ? K(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, L.jsx)(YA, {
+ return /* @__PURE__ */ (0, L.jsx)(ZA, {
title: "高清封面",
onSubmit: o,
- children: /* @__PURE__ */ (0, L.jsxs)(ZA, { children: [
+ children: /* @__PURE__ */ (0, L.jsxs)($A, { children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, L.jsx)(tM, {
+ children: /* @__PURE__ */ (0, L.jsx)(rM, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: r,
@@ -43812,7 +43839,7 @@ function zle({ toast: e }) {
children: "抓取封面"
})]
}),
- r ? /* @__PURE__ */ (0, L.jsx)(Vw, { label: "正在抓取封面" }) : null,
+ r ? /* @__PURE__ */ (0, L.jsx)(Hw, { label: "正在抓取封面" }) : null,
s ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
children: s
@@ -43825,9 +43852,9 @@ function zle({ toast: e }) {
});
}
function Ble({ toast: e }) {
- let { query: t, running: n, outcome: r, start: i } = Dj({
- queryKey: yL,
- queryFn: ({ signal: e }) => SL(e),
+ let { query: t, running: n, outcome: r, start: i } = kj({
+ queryKey: bL,
+ queryFn: ({ signal: e }) => CL(e),
start: () => q(Nle, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
@@ -43838,48 +43865,48 @@ function Ble({ toast: e }) {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
}), a = At({ mutationFn: () => q(Mle, {}) }), o = t.data;
- if (!o) return t.error ? /* @__PURE__ */ (0, L.jsx)(YA, {
+ if (!o) return t.error ? /* @__PURE__ */ (0, L.jsx)(ZA, {
title: "amane 桥",
- children: /* @__PURE__ */ (0, L.jsx)(ZA, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ children: /* @__PURE__ */ (0, L.jsx)($A, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
children: K(t.error)
}) })
}) : null;
let s = n || i.isPending || a.isPending, c = i.error ? K(i.error) : a.error ? K(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";
- return /* @__PURE__ */ (0, L.jsxs)(YA, {
+ return /* @__PURE__ */ (0, L.jsxs)(ZA, {
title: "amane 桥",
- aside: /* @__PURE__ */ (0, L.jsx)(nj, {
+ aside: /* @__PURE__ */ (0, L.jsx)(ij, {
href: o.repository,
children: o.repository
}),
children: [
- /* @__PURE__ */ (0, L.jsxs)(rj, { children: [
- /* @__PURE__ */ (0, L.jsxs)(ij, {
+ /* @__PURE__ */ (0, L.jsxs)(aj, { children: [
+ /* @__PURE__ */ (0, L.jsxs)(oj, {
term: "钉住的版本",
children: [o.version ? `${o.version} · ` : "", o.revision.slice(0, 12)]
}),
- /* @__PURE__ */ (0, L.jsx)(ij, {
+ /* @__PURE__ */ (0, L.jsx)(oj, {
term: "上游最新版本",
children: a.data?.latest ?? "尚未检查"
}),
- /* @__PURE__ */ (0, L.jsx)(ij, {
+ /* @__PURE__ */ (0, L.jsx)(oj, {
term: "运行环境",
children: o.installed ? "已安装" : "未安装"
}),
- /* @__PURE__ */ (0, L.jsx)(ij, {
+ /* @__PURE__ */ (0, L.jsx)(oj, {
term: "开放的站",
children: o.sites.map((e) => e.label).join("、")
})
] }),
- /* @__PURE__ */ (0, L.jsxs)(ZA, {
+ /* @__PURE__ */ (0, L.jsxs)($A, {
divided: !0,
children: [
- /* @__PURE__ */ (0, L.jsxs)($A, { children: [
+ /* @__PURE__ */ (0, L.jsxs)(tj, { children: [
"这几站由 amane(",
o.license,
")的解析器经独立子进程回答,运行环境按钉住的版本单独安装, 不随上游自动升级;换版本要人读过上游改动再改清单。首次安装约需下载 98 MB。"
] }),
- n ? /* @__PURE__ */ (0, L.jsx)(Vw, { label: "正在重建运行环境" }) : null,
+ n ? /* @__PURE__ */ (0, L.jsx)(Hw, { label: "正在重建运行环境" }) : null,
c ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
children: c
@@ -43890,7 +43917,7 @@ function Ble({ toast: e }) {
}) : null
]
}),
- /* @__PURE__ */ (0, L.jsxs)(QA, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
+ /* @__PURE__ */ (0, L.jsxs)(ej, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
onClick: () => {
s || a.mutate();
@@ -43909,10 +43936,10 @@ function Ble({ toast: e }) {
}
function Vle({ toast: e }) {
let t = kt({
- queryKey: _L,
- queryFn: ({ signal: e }) => bL(e)
+ queryKey: vL,
+ queryFn: ({ signal: e }) => xL(e)
}), n = t.data;
- return n ? /* @__PURE__ */ (0, L.jsxs)(Hw, { children: [
+ return n ? /* @__PURE__ */ (0, L.jsxs)(Uw, { children: [
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
@@ -43923,7 +43950,7 @@ function Vle({ toast: e }) {
toast: e
}, t.source)),
/* @__PURE__ */ (0, L.jsx)(Ble, { toast: e })
- ] }) : /* @__PURE__ */ (0, L.jsx)(Hw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ ] }) : /* @__PURE__ */ (0, L.jsx)(Uw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "读取失败",
children: t.error ? K(t.error) : "读取采集来源失败"
@@ -43931,21 +43958,21 @@ function Vle({ toast: e }) {
}
//#endregion
//#region src/configuration-endpoints.ts
-var wL = "/api/configuration", Hle = "/api/pick-folder", TL = ["configuration"], EL = (e) => Aw(wL, e);
-async function DL(e) {
+var TL = "/api/configuration", Hle = "/api/pick-folder", EL = ["configuration"], DL = (e) => jw(TL, e);
+async function OL(e) {
await X.fetchQuery({
- queryKey: TL,
- queryFn: () => EL(e)
+ queryKey: EL,
+ queryFn: () => DL(e)
});
}
//#endregion
//#region src/react/settings/entry-links-settings.tsx
function Ule({ initial: e, receipt: t }) {
- let [n, r] = (0, I.useState)(e.sites), i = Kw(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+ let [n, r] = (0, I.useState)(e.sites), i = qw(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
} : n));
- return /* @__PURE__ */ (0, L.jsxs)(YA, {
+ return /* @__PURE__ */ (0, L.jsxs)(ZA, {
title: "外部入口",
onSubmit: (e) => {
e.preventDefault();
@@ -43954,9 +43981,9 @@ function Ule({ initial: e, receipt: t }) {
r(e.sites), t("已保存配置");
});
},
- children: [/* @__PURE__ */ (0, L.jsxs)(ZA, { children: [
- /* @__PURE__ */ (0, L.jsx)($A, { children: "账本里没有这个站点 id 的人物不显示它那一枚入口,地址不会退回站内搜索。 JavDB 与 MISSAV 只收 JAV 女优,这两枚还要账本里有哪个 JAV 目录站给过她 id 才出现; FC2 个人摄那类创作者没有这种 id,资料页上也就没有这一行。 这两站的主域名连不上时,把能打开的那个镜像域名填在下面,后面的路径由 Peach 自己拼。" }),
- n.map((e) => /* @__PURE__ */ (0, L.jsx)(tM, {
+ children: [/* @__PURE__ */ (0, L.jsxs)($A, { children: [
+ /* @__PURE__ */ (0, L.jsx)(tj, { children: "账本里没有这个站点 id 的人物不显示它那一枚入口,地址不会退回站内搜索。 JavDB 与 MISSAV 只收 JAV 女优,这两枚还要账本里有哪个 JAV 目录站给过她 id 才出现; FC2 个人摄那类创作者没有这种 id,资料页上也就没有这一行。 这两站的主域名连不上时,把能打开的那个镜像域名填在下面,后面的路径由 Peach 自己拼。" }),
+ n.map((e) => /* @__PURE__ */ (0, L.jsx)(rM, {
id: `entry-link-${e.key}`,
label: `${e.label} 地址`,
autoComplete: "off",
@@ -43967,8 +43994,8 @@ function Ule({ initial: e, receipt: t }) {
validationBehavior: "aria",
hint: "只写域名本身,留空就是默认"
}, e.key)),
- i.error ? /* @__PURE__ */ (0, L.jsx)(ej, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, L.jsx)(QA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ i.error ? /* @__PURE__ */ (0, L.jsx)(nj, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, L.jsx)(ej, { children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
...Y(i.busy === "save"),
children: "保存配置"
@@ -43990,8 +44017,8 @@ function Wle({ data: e, receipt: t }) {
});
}
function Gle({ startup: e, receipt: t }) {
- let [n, r] = (0, I.useState)(e.enabled), [i, a] = (0, I.useState)(e.silent), [o, s] = (0, I.useState)(e.desktop), c = Kw(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, L.jsxs)(YA, {
+ let [n, r] = (0, I.useState)(e.enabled), [i, a] = (0, I.useState)(e.silent), [o, s] = (0, I.useState)(e.desktop), c = qw(), l = e.available && !e.desktop_message;
+ return /* @__PURE__ */ (0, L.jsxs)(ZA, {
title: "开机自启",
onSubmit: (r) => {
r.preventDefault(), e.available && c.run("save", (e) => q("/api/configuration/startup", {
@@ -44001,30 +44028,30 @@ function Gle({ startup: e, receipt: t }) {
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, L.jsxs)(XA, { children: [
- /* @__PURE__ */ (0, L.jsx)(JA, {
+ /* @__PURE__ */ (0, L.jsxs)(QA, { children: [
+ /* @__PURE__ */ (0, L.jsx)(XA, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, L.jsx)(gO, {
+ children: /* @__PURE__ */ (0, L.jsx)(yO, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, L.jsx)(JA, {
+ /* @__PURE__ */ (0, L.jsx)(XA, {
label: "静默启动",
description: "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。",
- children: /* @__PURE__ */ (0, L.jsx)(gO, {
+ children: /* @__PURE__ */ (0, L.jsx)(yO, {
"aria-label": "静默启动",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, L.jsx)(JA, {
+ /* @__PURE__ */ (0, L.jsx)(XA, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
- children: /* @__PURE__ */ (0, L.jsx)(gO, {
+ children: /* @__PURE__ */ (0, L.jsx)(yO, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -44032,11 +44059,11 @@ function Gle({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, L.jsxs)(ZA, {
+ e.message || c.error ? /* @__PURE__ */ (0, L.jsxs)($A, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, L.jsx)($A, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, L.jsx)(ej, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, L.jsx)(tj, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, L.jsx)(nj, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, L.jsx)(QA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ /* @__PURE__ */ (0, L.jsx)(ej, { children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
disabled: !e.available,
...Y(c.busy === "save"),
@@ -44047,7 +44074,7 @@ function Gle({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/release-updates.tsx
-var OL = /* @__PURE__ */ new Set([
+var kL = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
@@ -44058,12 +44085,12 @@ var OL = /* @__PURE__ */ new Set([
65,
67,
90
-], kL = 120;
+], AL = 120;
function qle({ initial: e, initialJob: t }) {
let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(t || {
state: "idle",
progress: 0
- }), [o, s] = (0, I.useState)(""), c = Kw(), l = (0, I.useRef)(!1), u = (0, I.useRef)(!0), d = OL.has(i.state);
+ }), [o, s] = (0, I.useState)(""), c = qw(), l = (0, I.useRef)(!1), u = (0, I.useRef)(!0), d = kL.has(i.state);
(0, I.useEffect)(() => (u.current = !0, () => {
u.current = !1;
}), []);
@@ -44080,9 +44107,9 @@ function qle({ initial: e, initialJob: t }) {
(0, I.useEffect)(() => {
i.state !== "ready" || l.current || (l.current = !0, p());
}, [i.state]), (0, I.useEffect)(() => {
- let e = new AbortController(), t = OL.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
+ let e = new AbortController(), t = kL.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
try {
- let t = await Aw("/api/configuration/update-status", e.signal);
+ let t = await jw("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
a(t), o = 0, t.state === "complete" && r((e) => ({
...e,
@@ -44090,12 +44117,12 @@ function qle({ initial: e, initialJob: t }) {
state: "current",
message: "已是最新测试版。"
}));
- let n = await Aw("/api/configuration/automatic-updates", e.signal);
+ let n = await jw("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- o += 1, o >= kL && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
+ o += 1, o >= AL && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && o < kL && (n = setTimeout(c, t));
+ !e.signal.aborted && o < AL && (n = setTimeout(c, t));
};
return n = setTimeout(c, t), () => {
e.abort(), clearTimeout(n);
@@ -44103,63 +44130,63 @@ function qle({ initial: e, initialJob: t }) {
}, [i.state]);
let m = () => {
d || (l.current = !1, s(""), c.run("download", (e) => q("/api/configuration/update", {}, "POST", e), a));
- }, g = () => void c.run("check", (e) => Aw("/api/configuration/updates", e), r, (t) => {
+ }, g = () => void c.run("check", (e) => jw("/api/configuration/updates", e), r, (t) => {
r({
...e,
state: "error"
}), c.setError(K(t));
}), _ = c.error || o, v = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;
- return /* @__PURE__ */ (0, L.jsxs)(YA, {
+ return /* @__PURE__ */ (0, L.jsxs)(ZA, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, L.jsxs)(rj, { children: [
- /* @__PURE__ */ (0, L.jsx)(ij, {
+ /* @__PURE__ */ (0, L.jsxs)(aj, { children: [
+ /* @__PURE__ */ (0, L.jsx)(oj, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, L.jsx)(ij, {
+ /* @__PURE__ */ (0, L.jsx)(oj, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, L.jsx)(ij, {
+ /* @__PURE__ */ (0, L.jsx)(oj, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, L.jsx)(ij, {
+ /* @__PURE__ */ (0, L.jsx)(oj, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, L.jsxs)(ZA, {
+ /* @__PURE__ */ (0, L.jsxs)($A, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, L.jsxs)($A, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.checked_at ? /* @__PURE__ */ (0, L.jsxs)(tj, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
n.state === "available" && !_ ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : _ || n.state === "error" ? /* @__PURE__ */ (0, L.jsx)(ej, { children: _ || n.message }) : /* @__PURE__ */ (0, L.jsx)($A, {
+ }) : _ || n.state === "error" ? /* @__PURE__ */ (0, L.jsx)(nj, { children: _ || n.message }) : /* @__PURE__ */ (0, L.jsx)(tj, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, L.jsx)(ej, { children: i.message }) : null,
+ i.state === "error" ? /* @__PURE__ */ (0, L.jsx)(nj, { children: i.message }) : null,
i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, L.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(Gw, {
+ /* @__PURE__ */ (0, L.jsx)(Kw, {
label: "更新准备进度",
value: i.progress,
stops: Kle
}),
- /* @__PURE__ */ (0, L.jsxs)($A, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, L.jsx)($A, { children: v })
+ /* @__PURE__ */ (0, L.jsxs)(tj, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, L.jsx)(tj, { children: v })
]
}) : null
]
}),
- /* @__PURE__ */ (0, L.jsxs)(QA, {
- status: /* @__PURE__ */ (0, L.jsx)(nj, {
+ /* @__PURE__ */ (0, L.jsxs)(ej, {
+ status: /* @__PURE__ */ (0, L.jsx)(ij, {
href: n.release_url,
children: "查看发布页"
}),
@@ -44216,10 +44243,10 @@ function Yle({ data: e, receipt: t, reopenTutorial: n }) {
});
}
function Xle({ receipt: e, reopenTutorial: t }) {
- let n = Kw();
- return /* @__PURE__ */ (0, L.jsxs)(YA, {
+ let n = qw();
+ return /* @__PURE__ */ (0, L.jsxs)(ZA, {
title: "安装教程",
- children: [/* @__PURE__ */ (0, L.jsxs)(ZA, { children: [/* @__PURE__ */ (0, L.jsx)($A, { children: "关掉的安装教程从这里叫回来:跳过的项目会重新出现,做完的仍然算完成。" }), n.error ? /* @__PURE__ */ (0, L.jsx)(ej, { children: n.error }) : null] }), /* @__PURE__ */ (0, L.jsx)(QA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ children: [/* @__PURE__ */ (0, L.jsxs)($A, { children: [/* @__PURE__ */ (0, L.jsx)(tj, { children: "关掉的安装教程从这里叫回来:跳过的项目会重新出现,做完的仍然算完成。" }), n.error ? /* @__PURE__ */ (0, L.jsx)(nj, { children: n.error }) : null] }), /* @__PURE__ */ (0, L.jsx)(ej, { children: /* @__PURE__ */ (0, L.jsx)(G, {
onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),
...Y(n.busy === "reopen"),
children: "重新打开教程"
@@ -44227,57 +44254,57 @@ function Xle({ receipt: e, reopenTutorial: t }) {
});
}
function Zle({ initial: e, receipt: t }) {
- let [n, r] = (0, I.useState)(e.mode), [i, a] = (0, I.useState)(e.interval_hours), o = Kw(e.error), s = (r) => {
+ let [n, r] = (0, I.useState)(e.mode), [i, a] = (0, I.useState)(e.interval_hours), o = qw(e.error), s = (r) => {
r.preventDefault(), e.available && o.run("save", (e) => q("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行时在发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, L.jsxs)(YA, {
+ return /* @__PURE__ */ (0, L.jsxs)(ZA, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, L.jsxs)(XA, { children: [
- /* @__PURE__ */ (0, L.jsx)(JA, {
+ /* @__PURE__ */ (0, L.jsxs)(QA, { children: [
+ /* @__PURE__ */ (0, L.jsx)(XA, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, L.jsx)(gO, {
+ children: /* @__PURE__ */ (0, L.jsx)(yO, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, L.jsx)(JA, {
+ /* @__PURE__ */ (0, L.jsx)(XA, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, L.jsx)(gO, {
+ children: /* @__PURE__ */ (0, L.jsx)(yO, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, L.jsx)(JA, {
+ /* @__PURE__ */ (0, L.jsx)(XA, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, L.jsx)(Sj, {
+ children: /* @__PURE__ */ (0, L.jsx)(wj, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: Jle.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Cj, {
+ children: Jle.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Tj, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, L.jsx)(ZA, {
+ o.error ? /* @__PURE__ */ (0, L.jsx)($A, {
divided: !0,
- children: /* @__PURE__ */ (0, L.jsx)(ej, { children: o.error })
+ children: /* @__PURE__ */ (0, L.jsx)(nj, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, L.jsx)(QA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ /* @__PURE__ */ (0, L.jsx)(ej, { children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
disabled: !e.available,
...Y(o.busy === "save"),
@@ -44287,11 +44314,11 @@ function Zle({ initial: e, receipt: t }) {
});
}
function Qle({ facts: e }) {
- return /* @__PURE__ */ (0, L.jsx)(YA, {
+ return /* @__PURE__ */ (0, L.jsx)(ZA, {
title: "运行信息",
- children: /* @__PURE__ */ (0, L.jsx)(rj, { children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)(ij, {
+ children: /* @__PURE__ */ (0, L.jsx)(aj, { children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)(oj, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, L.jsx)(nj, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, L.jsx)(ij, {
href: e.download_url,
children: e.download_label
}) : null]
@@ -44312,26 +44339,26 @@ function $le({ uninstall: e, receipt: t }) {
a(e.message);
}
}), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, L.jsxs)(YA, {
+ return /* @__PURE__ */ (0, L.jsxs)(ZA, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, L.jsxs)(ZA, { children: [
- e.available ? /* @__PURE__ */ (0, L.jsx)($A, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, L.jsx)(Nj, {
+ children: [/* @__PURE__ */ (0, L.jsxs)($A, { children: [
+ e.available ? /* @__PURE__ */ (0, L.jsx)(tj, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, L.jsx)(Fj, {
isSelected: n,
isDisabled: !e.full_available || !!i,
onChange: r,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, L.jsx)(aj, {
+ /* @__PURE__ */ (0, L.jsx)(sj, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, L.jsx)(GA, {
+ children: c.map((e) => /* @__PURE__ */ (0, L.jsx)(qA, {
path: e,
className: "text-body-2-regular text-text-secondary",
onRevealed: t
}, e))
})
- ] }), /* @__PURE__ */ (0, L.jsx)(QA, {
+ ] }), /* @__PURE__ */ (0, L.jsx)(ej, {
status: s ? /* @__PURE__ */ (0, L.jsx)("p", {
role: i ? "status" : void 0,
children: s
@@ -44374,13 +44401,13 @@ var eue = [
function nue() {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, L.jsxs)($A, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, L.jsx)(nj, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(tj, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, L.jsx)(ij, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, L.jsxs)(aj, {
+ })] }), /* @__PURE__ */ (0, L.jsxs)(sj, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, L.jsx)($A, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,按实际播放表现再调。" }),
+ /* @__PURE__ */ (0, L.jsx)(tj, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,按实际播放表现再调。" }),
/* @__PURE__ */ (0, L.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
@@ -44412,9 +44439,9 @@ function nue() {
/* @__PURE__ */ (0, L.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, L.jsxs)($A, { children: [
+ /* @__PURE__ */ (0, L.jsxs)(tj, { children: [
"三处缓存的分工、往上调的方法和这些起步值的来源在",
- /* @__PURE__ */ (0, L.jsx)(nj, {
+ /* @__PURE__ */ (0, L.jsx)(ij, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -44426,7 +44453,7 @@ function nue() {
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var AL = [
+var jL = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -44474,7 +44501,7 @@ function rue(e) {
let t = e === "local" ? "" : p[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var jL = "auto";
+var ML = "auto";
function iue({ value: e, label: t, kind: n = "local", onChange: r }) {
let i = (0, I.useRef)(null), [a, o] = (0, I.useState)(!1), [s, c] = (0, I.useState)(e), [l, u] = rue(n);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
@@ -44490,35 +44517,35 @@ function iue({ value: e, label: t, kind: n = "local", onChange: r }) {
children: /* @__PURE__ */ (0, L.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(sj, { mark: e || l }), ((e) => e && AL.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, L.jsx)(lj, { mark: e || l }), ((e) => e && jL.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, L.jsx)(_D, {
+ }), /* @__PURE__ */ (0, L.jsx)(bD, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: LA,
- children: /* @__PURE__ */ (0, L.jsxs)(OD, {
+ className: zA,
+ children: /* @__PURE__ */ (0, L.jsxs)(jD, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, L.jsx)(QT, {
+ /* @__PURE__ */ (0, L.jsx)(tE, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, L.jsx)(FD, {
+ /* @__PURE__ */ (0, L.jsx)(RD, {
"aria-label": "候选图标",
- value: s || jL,
- onChange: (e) => c(e === jL ? "" : e),
+ value: s || ML,
+ onChange: (e) => c(e === ML ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: AL.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(ID, {
- value: e || jL,
+ children: jL.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(zD, {
+ value: e || ML,
"aria-label": e ? t : u,
className: "flex h-10 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none hover:bg-dropdown-item-hover-background focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-dropdown-item-hover-background data-selected:text-text-primary",
- children: /* @__PURE__ */ (0, L.jsx)(sj, { mark: e || l })
- }, e || jL))
+ children: /* @__PURE__ */ (0, L.jsx)(lj, { mark: e || l })
+ }, e || ML))
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
@@ -44542,13 +44569,13 @@ function iue({ value: e, label: t, kind: n = "local", onChange: r }) {
//#region src/react/settings/push-discovery-settings.tsx
var aue = "/api/configuration/push-discovery", oue = "/api/configuration/push-discovery/secret";
function sue({ initial: e, receipt: t }) {
- let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(e.prefixes), [o, s] = (0, I.useState)(""), c = Kw(), l = DO(), u = n.media_roots, [d, f] = (0, I.useState)(e), p = (e, n) => {
+ let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(e.prefixes), [o, s] = (0, I.useState)(""), c = qw(), l = AO(), u = n.media_roots, [d, f] = (0, I.useState)(e), p = (e, n) => {
r(e), f(e), a(e.prefixes), s(""), t(n);
}, m = (e, t) => a((n) => n.map((n, r) => r === e ? {
...n,
...t
} : n));
- return /* @__PURE__ */ (0, L.jsxs)(YA, {
+ return /* @__PURE__ */ (0, L.jsxs)(ZA, {
title: "推送发现",
onSubmit: (e) => {
e.preventDefault();
@@ -44561,11 +44588,11 @@ function sue({ initial: e, receipt: t }) {
c.run("save", (e) => q(aue, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(K(e)));
},
children: [
- /* @__PURE__ */ (0, L.jsxs)(XA, { children: [
- /* @__PURE__ */ (0, L.jsx)(JA, {
+ /* @__PURE__ */ (0, L.jsxs)(QA, { children: [
+ /* @__PURE__ */ (0, L.jsx)(XA, {
label: "新文件落地就入库",
description: "打开之后不必等下一轮扫描。定期全量扫描照常进行,漏掉的由它补上。",
- children: /* @__PURE__ */ (0, L.jsx)(gO, {
+ children: /* @__PURE__ */ (0, L.jsx)(yO, {
"aria-label": "新文件落地就入库",
isSelected: n.enabled,
isDisabled: !n.available,
@@ -44575,10 +44602,10 @@ function sue({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, L.jsx)(JA, {
+ /* @__PURE__ */ (0, L.jsx)(XA, {
label: "监视本机文件夹",
description: "订阅本地来源的文件系统事件。网盘挂载不监视,因为遍历它就是走网络。",
- children: /* @__PURE__ */ (0, L.jsx)(gO, {
+ children: /* @__PURE__ */ (0, L.jsx)(yO, {
"aria-label": "监视本机文件夹",
isSelected: n.watch_local,
isDisabled: !n.available || !n.enabled,
@@ -44588,10 +44615,10 @@ function sue({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, L.jsx)(JA, {
+ /* @__PURE__ */ (0, L.jsx)(XA, {
label: "接收 CloudDrive2 通知",
description: "由 CloudDrive2 把网盘里的新文件推给 Peach。只接受本机与局域网发来的请求。",
- children: /* @__PURE__ */ (0, L.jsx)(gO, {
+ children: /* @__PURE__ */ (0, L.jsx)(yO, {
"aria-label": "接收 CloudDrive2 通知",
isSelected: n.cloud,
isDisabled: !n.available || !n.enabled,
@@ -44602,30 +44629,30 @@ function sue({ initial: e, receipt: t }) {
})
})
] }),
- d.enabled ? /* @__PURE__ */ (0, L.jsx)(ZA, {
+ d.enabled ? /* @__PURE__ */ (0, L.jsx)($A, {
divided: !0,
- children: /* @__PURE__ */ (0, L.jsxs)(rj, { children: [d.watch_local ? /* @__PURE__ */ (0, L.jsx)(ij, {
+ children: /* @__PURE__ */ (0, L.jsxs)(aj, { children: [d.watch_local ? /* @__PURE__ */ (0, L.jsx)(oj, {
term: "本机文件夹监视",
children: d.local_running ? d.local_roots.join("、") : d.local_message || "没有运行"
- }) : null, /* @__PURE__ */ (0, L.jsx)(ij, {
+ }) : null, /* @__PURE__ */ (0, L.jsx)(oj, {
term: "已入库",
children: `${d.queue.ingested} 个文件,队列里还有 ${d.queue.pending} 条`
})] })
}) : null,
- d.enabled && d.cloud ? /* @__PURE__ */ (0, L.jsx)(ZA, {
+ d.enabled && d.cloud ? /* @__PURE__ */ (0, L.jsx)($A, {
divided: !0,
children: /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(tj, { children: "CloudDrive2 配置内容" }),
- /* @__PURE__ */ (0, L.jsx)($A, { children: "在 CloudDrive2 的「设置 → Webhooks」里添加一条,把这段配置贴进去保存。 地址、端点和密钥都已经填好了;换过密钥之后要重新贴一次。 Webhook 是 CloudDrive2 的会员功能:不是会员时列表照样显示有效,但一条都不会发出来。 Windows 桌面版的编辑框会把换行存坏,列表里标「无效」:那就把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
+ /* @__PURE__ */ (0, L.jsx)(rj, { children: "CloudDrive2 配置内容" }),
+ /* @__PURE__ */ (0, L.jsx)(tj, { children: "在 CloudDrive2 的「设置 → Webhooks」里添加一条,把这段配置贴进去保存。 地址、端点和密钥都已经填好了;换过密钥之后要重新贴一次。 Webhook 是 CloudDrive2 的会员功能:不是会员时列表照样显示有效,但一条都不会发出来。 Windows 桌面版的编辑框会把换行存坏,列表里标「无效」:那就把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
d.config_toml ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", { children: /* @__PURE__ */ (0, L.jsx)(G, {
size: "small",
onClick: () => {
navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看这段配置」选中自己复制。"));
},
children: "复制配置"
- }) }), /* @__PURE__ */ (0, L.jsx)(aj, {
+ }) }), /* @__PURE__ */ (0, L.jsx)(sj, {
summary: "查看这段配置",
children: /* @__PURE__ */ (0, L.jsx)("div", {
className: "relative",
@@ -44636,17 +44663,17 @@ function sue({ initial: e, receipt: t }) {
children: d.config_toml
})
})
- })] }) : /* @__PURE__ */ (0, L.jsx)($A, { children: d.origin ? "还没有生成共享密钥,保存一次配置就会有。" : "这台机器还没有对外的 HTTPS 地址,配置里的地址填不出来。CloudDrive2 只能推到 HTTPS:80 口那条服务对写请求回的是 426,不会替它转发。" })
+ })] }) : /* @__PURE__ */ (0, L.jsx)(tj, { children: d.origin ? "还没有生成共享密钥,保存一次配置就会有。" : "这台机器还没有对外的 HTTPS 地址,配置里的地址填不出来。CloudDrive2 只能推到 HTTPS:80 口那条服务对写请求回的是 426,不会替它转发。" })
]
})
}) : null,
- n.enabled && n.cloud ? /* @__PURE__ */ (0, L.jsx)(ZA, {
+ n.enabled && n.cloud ? /* @__PURE__ */ (0, L.jsx)($A, {
divided: !0,
children: /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(tj, { children: "云端路径前缀" }),
- /* @__PURE__ */ (0, L.jsx)($A, { children: "左边填 CloudDrive2 里看到的那一层目录,右边选它对应哪个媒体根。 CloudDrive2 给的是它自己的路径,Peach 按这张表换算成账本里的盘符路径。" }),
+ /* @__PURE__ */ (0, L.jsx)(rj, { children: "云端路径前缀" }),
+ /* @__PURE__ */ (0, L.jsx)(tj, { children: "左边填 CloudDrive2 里看到的那一层目录,右边选它对应哪个媒体根。 CloudDrive2 给的是它自己的路径,Peach 按这张表换算成账本里的盘符路径。" }),
/* @__PURE__ */ (0, L.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
@@ -44654,7 +44681,7 @@ function sue({ initial: e, receipt: t }) {
children: i.map((e, t) => /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(tM, {
+ /* @__PURE__ */ (0, L.jsx)(rM, {
className: "min-w-0 flex-1",
"aria-label": `云端路径前缀 ${t + 1}`,
placeholder: "/115",
@@ -44663,19 +44690,19 @@ function sue({ initial: e, receipt: t }) {
value: e.prefix,
onChange: (e) => m(t, { prefix: e })
}),
- /* @__PURE__ */ (0, L.jsx)(Sj, {
+ /* @__PURE__ */ (0, L.jsx)(wj, {
"aria-label": `前缀 ${t + 1} 对应的媒体根`,
selectedKey: e.root,
onSelectionChange: (e) => {
e !== null && m(t, { root: String(e) });
},
- children: u.map((e) => /* @__PURE__ */ (0, L.jsx)(Cj, {
+ children: u.map((e) => /* @__PURE__ */ (0, L.jsx)(Tj, {
id: e,
children: e
}, e))
}),
- /* @__PURE__ */ (0, L.jsx)(hO, {
- icon: _S,
+ /* @__PURE__ */ (0, L.jsx)(vO, {
+ icon: yS,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
})
@@ -44693,11 +44720,11 @@ function sue({ initial: e, receipt: t }) {
]
})
}) : null,
- o || c.error ? /* @__PURE__ */ (0, L.jsx)(ZA, {
+ o || c.error ? /* @__PURE__ */ (0, L.jsx)($A, {
divided: !0,
- children: /* @__PURE__ */ (0, L.jsx)(ej, { children: o || c.error })
+ children: /* @__PURE__ */ (0, L.jsx)(nj, { children: o || c.error })
}) : null,
- /* @__PURE__ */ (0, L.jsxs)(QA, {
+ /* @__PURE__ */ (0, L.jsxs)(ej, {
status: d.enabled && d.cloud ? "换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。" : void 0,
children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, L.jsx)(G, {
onClick: () => {
@@ -44732,11 +44759,11 @@ function lue({ className: e }) {
children: /* @__PURE__ */ (0, L.jsx)("use", { href: "#i-folder-search" })
});
}
-var ML = [
+var NL = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], uue = (e) => ML.find(([t]) => t === e)?.[1] ?? e, NL = (e) => p[e] || "database", PL = (e = "") => ({
+], uue = (e) => NL.find(([t]) => t === e)?.[1] ?? e, PL = (e) => p[e] || "database", FL = (e = "") => ({
path: e,
location: "local",
root: "",
@@ -44744,16 +44771,16 @@ var ML = [
library_icon: ""
});
function due(e) {
- let t = e.media_sources?.filter((e) => ML.some(([t]) => t === e.location));
+ let t = e.media_sources?.filter((e) => NL.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) => PL(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => FL(e));
}
-var fue = (e) => !(e instanceof Ow) || e.status !== 400 ? null : e.body?.errors ?? null;
+var fue = (e) => !(e instanceof kw) || e.status !== 400 ? null : e.body?.errors ?? null;
function pue({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-6",
@@ -44775,7 +44802,7 @@ function pue({ data: e, receipt: t }) {
});
}
function mue({ data: e, receipt: t }) {
- let [n, r] = (0, I.useState)(() => due(e)), [i, a] = (0, I.useState)(String(e.port)), [o, s] = (0, I.useState)(!1), [c, l] = (0, I.useState)([]), [u, d] = (0, I.useState)(""), [f, p] = (0, I.useState)(""), [m, h] = (0, I.useState)(null), [g, _] = (0, I.useState)(null), [v, y] = (0, I.useState)(null), b = (0, I.useRef)(!1), x = (0, I.useRef)(e.revision), S = (0, I.useRef)([]), C = Kw();
+ let [n, r] = (0, I.useState)(() => due(e)), [i, a] = (0, I.useState)(String(e.port)), [o, s] = (0, I.useState)(!1), [c, l] = (0, I.useState)([]), [u, d] = (0, I.useState)(""), [f, p] = (0, I.useState)(""), [m, h] = (0, I.useState)(null), [g, _] = (0, I.useState)(null), [v, y] = (0, I.useState)(null), b = (0, I.useRef)(!1), x = (0, I.useRef)(e.revision), S = (0, I.useRef)([]), C = qw();
(0, I.useLayoutEffect)(() => {
g !== null && (S.current[g]?.focus(), _(null));
}, [g]), (0, I.useEffect)(() => {
@@ -44791,7 +44818,7 @@ function mue({ data: e, receipt: t }) {
for (; r.length <= e;) r.push("");
return r[e] = t, r;
}), E = () => {
- _(n.length), r((e) => [...e, PL()]);
+ _(n.length), r((e) => [...e, FL()]);
}, D = (e) => {
r((t) => t.filter((t, n) => n !== e)), l((t) => t.filter((t, n) => n !== e));
}, O = async (e) => {
@@ -44807,7 +44834,7 @@ function mue({ data: e, receipt: t }) {
}
}
}, k = (r) => {
- r.preventDefault(), p(""), C.run("save", (t) => q(wL, {
+ r.preventDefault(), p(""), C.run("save", (t) => q(TL, {
revision: x.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -44820,14 +44847,14 @@ function mue({ data: e, receipt: t }) {
l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(K(e));
});
};
- if (m) return /* @__PURE__ */ (0, L.jsx)(YA, {
+ if (m) return /* @__PURE__ */ (0, L.jsx)(ZA, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, L.jsx)(ZA, { children: /* @__PURE__ */ (0, L.jsxs)(J, {
+ children: /* @__PURE__ */ (0, L.jsx)($A, { children: /* @__PURE__ */ (0, L.jsxs)(J, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, L.jsx)(IA, {
+ /* @__PURE__ */ (0, L.jsx)(RA, {
href: m.url,
size: "small",
children: "进入馆藏"
@@ -44837,14 +44864,14 @@ function mue({ data: e, receipt: t }) {
}) })
});
let A = n.some((e) => e.location === "115" || e.location === "pikpak"), j = A ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, L.jsxs)(YA, {
+ return /* @__PURE__ */ (0, L.jsxs)(ZA, {
title: "这台电脑",
onSubmit: k,
- children: [/* @__PURE__ */ (0, L.jsxs)(ZA, { children: [
+ children: [/* @__PURE__ */ (0, L.jsxs)($A, { children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(tj, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, L.jsx)(rj, { children: "媒体文件夹" }),
/* @__PURE__ */ (0, L.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
@@ -44855,7 +44882,7 @@ function mue({ data: e, receipt: t }) {
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(tM, {
+ /* @__PURE__ */ (0, L.jsx)(rM, {
className: "min-w-0 flex-1",
"aria-label": `媒体文件夹 ${r + 1}`,
placeholder: "本机文件夹路径",
@@ -44868,14 +44895,14 @@ function mue({ data: e, receipt: t }) {
isInvalid: !!c[r],
hint: c[r] || void 0
}),
- /* @__PURE__ */ (0, L.jsx)(hO, {
+ /* @__PURE__ */ (0, L.jsx)(vO, {
icon: lue,
"aria-label": "选择文件夹",
onClick: () => void O(r),
...Y(v === r)
}),
- n.length > 1 ? /* @__PURE__ */ (0, L.jsx)(hO, {
- icon: _S,
+ n.length > 1 ? /* @__PURE__ */ (0, L.jsx)(vO, {
+ icon: yS,
"aria-label": "移除这个文件夹",
onClick: () => D(r)
}) : null
@@ -44883,7 +44910,7 @@ function mue({ data: e, receipt: t }) {
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "inline-grid grid-cols-1 gap-3 @lg:grid-cols-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(tM, {
+ /* @__PURE__ */ (0, L.jsx)(rM, {
label: "媒体库名称",
maxLength: 80,
placeholder: "同名文件夹归入同一个媒体库",
@@ -44892,7 +44919,7 @@ function mue({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, L.jsx)(tj, { children: "媒体库图标" }), /* @__PURE__ */ (0, L.jsx)(iue, {
+ children: [/* @__PURE__ */ (0, L.jsx)(rj, { children: "媒体库图标" }), /* @__PURE__ */ (0, L.jsx)(iue, {
label: `媒体库图标 ${r + 1}`,
value: t.library_icon,
kind: t.location,
@@ -44901,20 +44928,20 @@ function mue({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, L.jsx)(tj, { children: "媒体来源" }), /* @__PURE__ */ (0, L.jsx)(Sj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(rj, { children: "媒体来源" }), /* @__PURE__ */ (0, L.jsx)(wj, {
"aria-label": `媒体来源 ${r + 1}`,
selectedKey: t.location,
onSelectionChange: (e) => {
e !== null && w(r, { location: String(e) });
},
- children: ML.map(([e, t]) => /* @__PURE__ */ (0, L.jsxs)(Cj, {
+ children: NL.map(([e, t]) => /* @__PURE__ */ (0, L.jsxs)(Tj, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, L.jsx)(sj, { mark: NL(e) }), t]
+ children: [/* @__PURE__ */ (0, L.jsx)(lj, { mark: PL(e) }), t]
}, e))
})]
}),
- e.windows === !1 ? /* @__PURE__ */ (0, L.jsx)(tM, {
+ e.windows === !1 ? /* @__PURE__ */ (0, L.jsx)(rM, {
label: "Windows 中的对应路径",
placeholder: "例如 B:\\",
value: t.root,
@@ -44932,17 +44959,17 @@ function mue({ data: e, receipt: t }) {
]
}),
A ? /* @__PURE__ */ (0, L.jsx)(nue, {}) : null,
- j.map((e) => /* @__PURE__ */ (0, L.jsxs)($A, { children: [
+ j.map((e) => /* @__PURE__ */ (0, L.jsxs)(tj, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, L.jsxs)(nj, {
+ /* @__PURE__ */ (0, L.jsxs)(ij, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, L.jsx)($A, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, L.jsx)(tM, {
+ e.windows === !1 ? /* @__PURE__ */ (0, L.jsx)(tj, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, L.jsx)(rM, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -44952,7 +44979,7 @@ function mue({ data: e, receipt: t }) {
isInvalid: !!u,
hint: u || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, L.jsx)(Nj, {
+ /* @__PURE__ */ (0, L.jsx)(Fj, {
isSelected: o,
onChange: s,
children: "保存后扫描并补全资料"
@@ -44962,7 +44989,7 @@ function mue({ data: e, receipt: t }) {
title: "没有保存",
children: f
}) : null
- ] }), /* @__PURE__ */ (0, L.jsx)(QA, {
+ ] }), /* @__PURE__ */ (0, L.jsx)(ej, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
@@ -44997,20 +45024,20 @@ function hue({ online: e }) {
});
}
function gue({ data: e }) {
- let t = e.media_sources, n = Kw();
- return t ? /* @__PURE__ */ (0, L.jsxs)(YA, {
+ let t = e.media_sources, n = qw();
+ return t ? /* @__PURE__ */ (0, L.jsxs)(ZA, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, L.jsx)(rj, { children: t.map((e, t) => /* @__PURE__ */ (0, L.jsxs)(ij, {
- term: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(sj, { mark: NL(e.location) }), uue(e.location)] }),
+ /* @__PURE__ */ (0, L.jsx)(aj, { children: t.map((e, t) => /* @__PURE__ */ (0, L.jsxs)(oj, {
+ term: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(lj, { mark: PL(e.location) }), uue(e.location)] }),
children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, L.jsx)(hue, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, L.jsx)(ZA, {
+ n.error ? /* @__PURE__ */ (0, L.jsx)($A, {
divided: !0,
- children: /* @__PURE__ */ (0, L.jsx)(ej, { children: n.error })
+ children: /* @__PURE__ */ (0, L.jsx)(nj, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, L.jsx)(QA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
- onClick: () => void n.run("refresh", (e) => EL(e), (e) => X.setQueryData(TL, e)),
+ /* @__PURE__ */ (0, L.jsx)(ej, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ onClick: () => void n.run("refresh", (e) => DL(e), (e) => X.setQueryData(EL, e)),
...Y(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
@@ -45025,7 +45052,7 @@ var _ue = {
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
function vue({ initial: e, receipt: t }) {
- let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(""), [o, s] = (0, I.useState)(""), [c, l] = (0, I.useState)(""), [u, d] = (0, I.useState)(!1), [f, p] = (0, I.useState)({}), m = (0, I.useRef)(null), h = Kw(), g = (e) => {
+ let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(""), [o, s] = (0, I.useState)(""), [c, l] = (0, I.useState)(""), [u, d] = (0, I.useState)(!1), [f, p] = (0, I.useState)({}), m = (0, I.useRef)(null), h = qw(), g = (e) => {
e.preventDefault();
let f = {};
if (n.mode === "password" && !i && (f.current_password = "请输入当前访问密码"), u || ((o.length < 8 || o.length > 256) && (f.password = "访问密码需为 8–256 个字符"), o !== c && (f.confirmation = "两次输入的密码不一致")), p(f), Object.keys(f).length) {
@@ -45042,28 +45069,28 @@ function vue({ initial: e, receipt: t }) {
}, "POST", e), (e) => {
r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");
}, (e) => {
- let t = e instanceof Ow ? e.body : null, n = t?.errors || t?.detail?.errors;
+ let t = e instanceof kw ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(K(e));
});
}, _ = _ue[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, L.jsxs)(YA, {
+ return /* @__PURE__ */ (0, L.jsxs)(ZA, {
title: "访问密码",
onSubmit: g,
children: [/* @__PURE__ */ (0, L.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, L.jsxs)(ZA, { children: [
- _ ? /* @__PURE__ */ (0, L.jsx)($A, { children: _ }) : null,
+ children: /* @__PURE__ */ (0, L.jsxs)($A, { children: [
+ _ ? /* @__PURE__ */ (0, L.jsx)(tj, { children: _ }) : null,
n.mode === "open" ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, L.jsx)(Nj, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, L.jsx)(Fj, {
isSelected: u,
onChange: d,
children: "关闭访问密码"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, L.jsx)(tM, {
+ n.mode === "password" ? /* @__PURE__ */ (0, L.jsx)(rM, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -45076,7 +45103,7 @@ function vue({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(tM, {
+ v ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(rM, {
id: "access-password",
type: "password",
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
@@ -45089,7 +45116,7 @@ function vue({ initial: e, receipt: t }) {
validationBehavior: "aria",
isInvalid: !u && !!f.password,
hint: u ? "关闭访问密码时无需填写。" : f.password || "至少 8 个字符。保存后其他设备需要重新登录。"
- }), /* @__PURE__ */ (0, L.jsx)(tM, {
+ }), /* @__PURE__ */ (0, L.jsx)(rM, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -45108,9 +45135,9 @@ function vue({ initial: e, receipt: t }) {
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, L.jsx)(ej, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, L.jsx)(nj, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, L.jsx)(QA, {
+ }), v ? /* @__PURE__ */ (0, L.jsx)(ej, {
status: "保存后立即生效。",
children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
@@ -45127,12 +45154,12 @@ var yue = 2e3, bue = [["quick", "临时链接"], ["named", "命名隧道"]], xue
named: "地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"
};
function Sue({ revision: e, initial: t, receipt: n }) {
- let [r, i] = (0, I.useState)(t), [a, o] = (0, I.useState)(e), [s, c] = (0, I.useState)(t.mode), [l, u] = (0, I.useState)(t.hostname), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)({}), h = Kw(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
+ let [r, i] = (0, I.useState)(t), [a, o] = (0, I.useState)(e), [s, c] = (0, I.useState)(t.mode), [l, u] = (0, I.useState)(t.hostname), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)({}), h = qw(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
(0, I.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
- EL(e.signal).then((t) => {
- e.signal.aborted || !t.tunnel || (X.setQueryData(TL, t), i(t.tunnel), o(t.revision));
+ DL(e.signal).then((t) => {
+ e.signal.aborted || !t.tunnel || (X.setQueryData(EL, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
}, yue);
return () => {
@@ -45149,30 +45176,30 @@ function Sue({ revision: e, initial: t, receipt: n }) {
}, "POST", e), (e) => {
i(e), o(e.revision), c(e.mode), u(e.hostname), f(""), n(e);
}, (e) => {
- let t = e instanceof Ow ? e.body : null, n = t?.errors || t?.detail?.errors;
+ let t = e instanceof kw ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? m(n) : h.setError(K(e));
});
};
- return /* @__PURE__ */ (0, L.jsxs)(YA, {
+ return /* @__PURE__ */ (0, L.jsxs)(ZA, {
title: "Cloudflare 公网入口",
onSubmit: (e) => {
e.preventDefault(), v("save", g, () => n("已保存配置"));
},
- children: [/* @__PURE__ */ (0, L.jsxs)(ZA, { children: [
- r.named_available ? /* @__PURE__ */ (0, L.jsx)(FD, {
+ children: [/* @__PURE__ */ (0, L.jsxs)($A, { children: [
+ r.named_available ? /* @__PURE__ */ (0, L.jsx)(RD, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: g,
onChange: (e) => c(e),
- className: SM,
- children: bue.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(ID, {
+ className: CM,
+ children: bue.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(zD, {
value: e,
- className: CM,
+ className: wM,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, L.jsx)($A, { children: xue[_ ? "named" : "quick"] }),
- _ ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(tM, {
+ /* @__PURE__ */ (0, L.jsx)(tj, { children: xue[_ ? "named" : "quick"] }),
+ _ ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(rM, {
id: "tunnel-hostname",
label: "公开主机名",
autoComplete: "off",
@@ -45183,7 +45210,7 @@ function Sue({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
isInvalid: !!p.hostname,
hint: p.hostname || "在 Cloudflare Zero Trust 里指向本机 origin 的那个主机名。"
- }), /* @__PURE__ */ (0, L.jsx)(tM, {
+ }), /* @__PURE__ */ (0, L.jsx)(rM, {
id: "tunnel-token",
type: "password",
label: "隧道令牌",
@@ -45203,7 +45230,7 @@ function Sue({ revision: e, initial: t, receipt: n }) {
r.state === "running" && r.url ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "info",
title: "公网地址",
- children: /* @__PURE__ */ (0, L.jsx)(nj, {
+ children: /* @__PURE__ */ (0, L.jsx)(ij, {
href: r.url,
children: r.url
})
@@ -45213,9 +45240,9 @@ function Sue({ revision: e, initial: t, receipt: n }) {
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
}) : null,
- r.error ? /* @__PURE__ */ (0, L.jsx)(ej, { children: r.error }) : null,
- h.error ? /* @__PURE__ */ (0, L.jsx)(ej, { children: h.error }) : null
- ] }), /* @__PURE__ */ (0, L.jsxs)(QA, {
+ r.error ? /* @__PURE__ */ (0, L.jsx)(nj, { children: r.error }) : null,
+ h.error ? /* @__PURE__ */ (0, L.jsx)(nj, { children: h.error }) : null
+ ] }), /* @__PURE__ */ (0, L.jsxs)(ej, {
status: r.enabled ? "服务重启时会按设置尝试恢复。" : "服务重启后保持关闭。",
children: [/* @__PURE__ */ (0, L.jsx)(G, {
onClick: () => v("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),
@@ -45257,8 +45284,8 @@ function wue({ data: e, receipt: t }) {
});
}
function Tue({ initial: e, receipt: t }) {
- let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(e.mode), [o, s] = (0, I.useState)(""), c = Kw();
- return /* @__PURE__ */ (0, L.jsxs)(YA, {
+ let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(e.mode), [o, s] = (0, I.useState)(""), c = qw();
+ return /* @__PURE__ */ (0, L.jsxs)(ZA, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
@@ -45270,25 +45297,25 @@ function Tue({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, L.jsx)(XA, { children: /* @__PURE__ */ (0, L.jsx)(JA, {
+ /* @__PURE__ */ (0, L.jsx)(QA, { children: /* @__PURE__ */ (0, L.jsx)(XA, {
label: "连接方式",
description: "采集来源选「Peach 代理」时共用这里的连接方式。",
- children: /* @__PURE__ */ (0, L.jsx)(Sj, {
+ children: /* @__PURE__ */ (0, L.jsx)(wj, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: Cue.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Cj, {
+ children: Cue.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Tj, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, L.jsxs)(ZA, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, L.jsxs)($A, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, L.jsx)(tM, {
+ i === "proxy" ? /* @__PURE__ */ (0, L.jsx)(rM, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -45302,10 +45329,10 @@ function Tue({ initial: e, receipt: t }) {
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, L.jsx)(ej, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, L.jsx)(nj, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, L.jsx)(QA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ /* @__PURE__ */ (0, L.jsx)(ej, { children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
...Y(c.busy === "save"),
children: "保存配置"
@@ -45317,8 +45344,8 @@ function Tue({ initial: e, receipt: t }) {
//#region src/react/settings/configuration-page.tsx
function Eue({ receipt: e, reopenTutorial: t }) {
let n = kt({
- queryKey: TL,
- queryFn: ({ signal: e }) => EL(e)
+ queryKey: EL,
+ queryFn: ({ signal: e }) => DL(e)
}), r = n.data;
if (!r) return /* @__PURE__ */ (0, L.jsx)("div", {
className: "configpage",
@@ -45369,29 +45396,29 @@ var Due = (e) => {
};
function Oue({ openConfiguration: e }) {
let t = kt({
- queryKey: TL,
- queryFn: ({ signal: e }) => EL(e)
+ queryKey: EL,
+ queryFn: ({ signal: e }) => DL(e)
}), n = t.data;
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col",
- children: [n ? /* @__PURE__ */ (0, L.jsxs)(rj, { children: [
- /* @__PURE__ */ (0, L.jsx)(ij, {
+ children: [n ? /* @__PURE__ */ (0, L.jsxs)(aj, { children: [
+ /* @__PURE__ */ (0, L.jsx)(oj, {
term: "媒体库",
children: `${n.library_count} 个`
}),
- /* @__PURE__ */ (0, L.jsx)(ij, {
+ /* @__PURE__ */ (0, L.jsx)(oj, {
term: "端口",
children: String(n.port)
}),
- /* @__PURE__ */ (0, L.jsx)(ij, {
+ /* @__PURE__ */ (0, L.jsx)(oj, {
term: "更新",
children: Due(n)
})
- ] }) : /* @__PURE__ */ (0, L.jsx)(ZA, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ ] }) : /* @__PURE__ */ (0, L.jsx)($A, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "打不开配置",
children: t.error ? K(t.error) : "没有读到配置"
- }) }), /* @__PURE__ */ (0, L.jsx)(QA, {
+ }) }), /* @__PURE__ */ (0, L.jsx)(ej, {
status: "媒体文件夹、端口、代理与更新在配置页上改。",
children: /* @__PURE__ */ (0, L.jsx)(G, {
onClick: e,
@@ -45402,14 +45429,14 @@ function Oue({ openConfiguration: e }) {
}
//#endregion
//#region src/react/stats/stats.ts
-var kue = "/api/stats", FL = ["stats"], IL = (e) => Aw(kue, e);
+var kue = "/api/stats", IL = ["stats"], LL = (e) => jw(kue, e);
async function Aue(e) {
await X.fetchQuery({
- queryKey: FL,
- queryFn: () => IL(e)
+ queryKey: IL,
+ queryFn: () => LL(e)
});
}
-var LL = (e, t) => t ? Math.round(e / t * 100) : 0, jue = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, RL = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, zL = (e) => (e.max_reached || 0) * 100, Mue = (e) => e.kind === "online" ? "在线直接观看" : RL(e) < zL(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Nue = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, Pue = (e) => Math.max(1, ...e) * 1.1, Fue = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), Iue = {
+var RL = (e, t) => t ? Math.round(e / t * 100) : 0, jue = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, zL = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, BL = (e) => (e.max_reached || 0) * 100, Mue = (e) => e.kind === "online" ? "在线直接观看" : zL(e) < BL(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Nue = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, Pue = (e) => Math.max(1, ...e) * 1.1, Fue = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), Iue = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -45425,10 +45452,10 @@ var LL = (e, t) => t ? Math.round(e / t * 100) : 0, jue = (e) => e >= 3600 ? `${
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, BL = (e, t = {}) => e.map((e) => ({
+}, VL = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), zue = (e) => BL(e, Rue), Bue = [
+})), zue = (e) => VL(e, Rue), Bue = [
[
1,
1,
@@ -45468,41 +45495,41 @@ var LL = (e, t) => t ? Math.round(e / t * 100) : 0, jue = (e) => e >= 3600 ? `${
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
})), Hue = /* @__PURE__ */ "dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture".split(".");
-function VL(e) {
+function HL(e) {
return typeof e == "string" && Hue.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js
var Uue = /* @__PURE__ */ new Set(/* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split("."));
-function HL(e) {
+function UL(e) {
return typeof e == "string" && Uue.has(e);
}
-function UL(e) {
+function WL(e) {
return typeof e == "string" && e.startsWith("data-");
}
-function WL(e) {
+function GL(e) {
if (typeof e != "object" || !e) return {};
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (HL(n) || UL(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (UL(n) || WL(n)) && (t[n] = e[n]);
return t;
}
-function GL(e) {
+function KL(e) {
if (e == null) return null;
if (/*#__PURE__*/ (0, I.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {
var t = e.props;
- return WL(t);
+ return GL(t);
}
- return typeof e == "object" && !Array.isArray(e) ? WL(e) : null;
+ return typeof e == "object" && !Array.isArray(e) ? GL(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesAndEvents.js
-function KL(e) {
+function qL(e) {
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (HL(n) || UL(n) || VL(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (UL(n) || WL(n) || HL(n)) && (t[n] = e[n]);
return t;
}
function Wue(e) {
- return e == null ? null : /*#__PURE__*/ (0, I.isValidElement)(e) ? KL(e.props) : typeof e == "object" && !Array.isArray(e) ? KL(e) : null;
+ return e == null ? null : /*#__PURE__*/ (0, I.isValidElement)(e) ? qL(e.props) : typeof e == "object" && !Array.isArray(e) ? qL(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
@@ -45516,14 +45543,14 @@ var Gue = [
"title",
"desc"
];
-function qL() {
- return qL = Object.assign ? Object.assign.bind() : function(e) {
+function JL() {
+ return JL = 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;
- }, qL.apply(null, arguments);
+ }, JL.apply(null, arguments);
}
function Kue(e, t) {
if (e == null) return {};
@@ -45543,14 +45570,14 @@ function que(e, t) {
}
return n;
}
-var JL = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+var YL = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = Kue(e, Gue), d = a || {
width: r,
height: i,
x: 0,
y: 0
}, f = Wm("recharts-surface", o);
- return /*#__PURE__*/ I.createElement("svg", qL({}, KL(u), {
+ return /*#__PURE__*/ I.createElement("svg", JL({}, qL(u), {
className: f,
width: r,
height: i,
@@ -45559,14 +45586,14 @@ var JL = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
ref: t
}), /*#__PURE__*/ I.createElement("title", null, c), /*#__PURE__*/ I.createElement("desc", null, l), n);
}), Jue = ["children", "className"];
-function YL() {
- return YL = Object.assign ? Object.assign.bind() : function(e) {
+function XL() {
+ return XL = 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;
- }, YL.apply(null, arguments);
+ }, XL.apply(null, arguments);
}
function Yue(e, t) {
if (e == null) return {};
@@ -45586,39 +45613,39 @@ function Xue(e, t) {
}
return n;
}
-var XL = /*#__PURE__*/ I.forwardRef((e, t) => {
+var ZL = /*#__PURE__*/ I.forwardRef((e, t) => {
var { children: n, className: r } = e, i = Yue(e, Jue), a = Wm("recharts-layer", r);
- return /*#__PURE__*/ I.createElement("g", YL({ className: a }, KL(i), { ref: t }), n);
-}), ZL = /*#__PURE__*/ (0, I.createContext)(null), Zue = () => (0, I.useContext)(ZL);
+ return /*#__PURE__*/ I.createElement("g", XL({ className: a }, qL(i), { ref: t }), n);
+}), QL = /*#__PURE__*/ (0, I.createContext)(null), Zue = () => (0, I.useContext)(QL);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
-function QL(e) {
+function $L(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js
-var $L = Math.cos, eR = Math.sin, tR = Math.sqrt, nR = Math.PI;
-nR / 2;
-var rR = 2 * nR, iR = Math.PI, aR = 2 * iR, oR = 1e-6, Que = aR - oR;
-function sR(e) {
+var eR = Math.cos, tR = Math.sin, nR = Math.sqrt, rR = Math.PI;
+rR / 2;
+var iR = 2 * rR, aR = Math.PI, oR = 2 * aR, sR = 1e-6, Que = oR - sR;
+function cR(e) {
this._ += e[0];
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
}
function $ue(e) {
let t = Math.floor(e);
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
- if (t > 15) return sR;
+ if (t > 15) return cR;
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 cR = class {
+var lR = class {
constructor(e) {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? sR : $ue(e);
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? cR : $ue(e);
}
moveTo(e, t) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@ -45639,18 +45666,18 @@ var cR = 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 > oR) {
- if (!(Math.abs(u * s - c * l) > oR) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
+ else if (d > sR) {
+ if (!(Math.abs(u * s - c * l) > sR) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
else {
- let f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((iR - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > oR && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
+ let f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((aR - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > sR && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
}
}
}
arc(e, t, n, r, i, a) {
if (e = +e, t = +t, n = +n, a = !!a, n < 0) throw Error(`negative radius: ${n}`);
let o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
- this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > oR || Math.abs(this._y1 - l) > oR) && this._append`L${c},${l}`, n && (d < 0 && (d = d % aR + aR), d > Que ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > oR && this._append`A${n},${n},0,${+(d >= iR)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
+ this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > sR || Math.abs(this._y1 - l) > sR) && this._append`L${c},${l}`, n && (d < 0 && (d = d % oR + oR), d > Que ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > sR && this._append`A${n},${n},0,${+(d >= aR)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
}
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`;
@@ -45659,10 +45686,10 @@ var cR = class {
return this._;
}
};
-cR.prototype;
+lR.prototype;
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/path.js
-function lR(e) {
+function uR(e) {
let t = 3;
return e.digits = function(n) {
if (!arguments.length) return t;
@@ -45673,18 +45700,18 @@ function lR(e) {
t = e;
}
return e;
- }, () => new cR(t);
+ }, () => new lR(t);
}
Array.prototype.slice;
-function uR(e) {
+function dR(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 dR(e) {
+function fR(e) {
this._context = e;
}
-dR.prototype = {
+fR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -45707,33 +45734,33 @@ dR.prototype = {
}
}
};
-function fR(e) {
- return new dR(e);
+function pR(e) {
+ return new fR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/point.js
-function pR(e) {
+function mR(e) {
return e[0];
}
-function mR(e) {
+function hR(e) {
return e[1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/line.js
-function hR(e, t) {
- var n = QL(!0), r = null, i = fR, a = null, o = lR(s);
- e = typeof e == "function" ? e : e === void 0 ? pR : QL(e), t = typeof t == "function" ? t : t === void 0 ? mR : QL(t);
+function gR(e, t) {
+ var n = $L(!0), r = null, i = pR, a = null, o = uR(s);
+ e = typeof e == "function" ? e : e === void 0 ? mR : $L(e), t = typeof t == "function" ? t : t === void 0 ? hR : $L(t);
function s(s) {
- var c, l = (s = uR(s)).length, u, d = !1, f;
+ var c, l = (s = dR(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 : QL(+t), s) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : $L(+t), s) : e;
}, s.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : QL(+e), s) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : $L(+e), s) : t;
}, s.defined = function(e) {
- return arguments.length ? (n = typeof e == "function" ? e : QL(!!e), s) : n;
+ return arguments.length ? (n = typeof e == "function" ? e : $L(!!e), s) : n;
}, s.curve = function(e) {
return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;
}, s.context = function(e) {
@@ -45742,11 +45769,11 @@ function hR(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/area.js
-function gR(e, t, n) {
- var r = null, i = QL(!0), a = null, o = fR, s = null, c = lR(l);
- e = typeof e == "function" ? e : e === void 0 ? pR : QL(+e), t = typeof t == "function" ? t : QL(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? mR : QL(+n);
+function _R(e, t, n) {
+ var r = null, i = $L(!0), a = null, o = pR, s = null, c = uR(l);
+ e = typeof e == "function" ? e : e === void 0 ? mR : $L(+e), t = typeof t == "function" ? t : $L(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? hR : $L(+n);
function l(l) {
- var u, d, f, p = (l = uR(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
+ var u, d, f, p = (l = dR(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();
@@ -45760,20 +45787,20 @@ function gR(e, t, n) {
if (g) return s = null, g + "" || null;
}
function u() {
- return hR().defined(i).curve(o).context(a);
+ return gR().defined(i).curve(o).context(a);
}
return l.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : QL(+t), r = null, l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : $L(+t), r = null, l) : e;
}, l.x0 = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : QL(+t), l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : $L(+t), l) : e;
}, l.x1 = function(e) {
- return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : QL(+e), l) : r;
+ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : $L(+e), l) : r;
}, l.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : QL(+e), n = null, l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : $L(+e), n = null, l) : t;
}, l.y0 = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : QL(+e), l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : $L(+e), l) : t;
}, l.y1 = function(e) {
- return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : QL(+e), l) : n;
+ return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : $L(+e), l) : n;
}, l.lineX0 = l.lineY0 = function() {
return u().x(e).y(t);
}, l.lineY1 = function() {
@@ -45781,7 +45808,7 @@ function gR(e, t, n) {
}, l.lineX1 = function() {
return u().x(r).y(t);
}, l.defined = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : QL(!!e), l) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : $L(!!e), l) : i;
}, l.curve = function(e) {
return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;
}, l.context = function(e) {
@@ -45790,7 +45817,7 @@ function gR(e, t, n) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/bump.js
-var _R = class {
+var vR = class {
constructor(e, t) {
this._context = e, this._x = t;
}
@@ -45818,69 +45845,69 @@ var _R = class {
}
};
function ede(e) {
- return new _R(e, !0);
+ return new vR(e, !0);
}
function tde(e) {
- return new _R(e, !1);
+ return new vR(e, !1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol/circle.js
-var vR = { draw(e, t) {
- let n = tR(t / nR);
- e.moveTo(n, 0), e.arc(0, 0, n, 0, rR);
+var yR = { draw(e, t) {
+ let n = nR(t / rR);
+ e.moveTo(n, 0), e.arc(0, 0, n, 0, iR);
} }, nde = { draw(e, t) {
- let n = tR(t / 5) / 2;
+ let n = nR(t / 5) / 2;
e.moveTo(-3 * n, -n), e.lineTo(-n, -n), e.lineTo(-n, -3 * n), e.lineTo(n, -3 * n), e.lineTo(n, -n), e.lineTo(3 * n, -n), e.lineTo(3 * n, n), e.lineTo(n, n), e.lineTo(n, 3 * n), e.lineTo(-n, 3 * n), e.lineTo(-n, n), e.lineTo(-3 * n, n), e.closePath();
-} }, yR = tR(1 / 3), rde = yR * 2, ide = { draw(e, t) {
- let n = tR(t / rde), r = n * yR;
+} }, bR = nR(1 / 3), rde = bR * 2, ide = { draw(e, t) {
+ let n = nR(t / rde), r = n * bR;
e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
} }, ade = { draw(e, t) {
- let n = tR(t), r = -n / 2;
+ let n = nR(t), r = -n / 2;
e.rect(r, r, n, n);
-} }, ode = .8908130915292852, bR = eR(nR / 10) / eR(7 * nR / 10), sde = eR(rR / 10) * bR, cde = -$L(rR / 10) * bR, lde = { draw(e, t) {
- let n = tR(t * ode), r = sde * n, i = cde * n;
+} }, ode = .8908130915292852, xR = tR(rR / 10) / tR(7 * rR / 10), sde = tR(iR / 10) * xR, cde = -eR(iR / 10) * xR, lde = { draw(e, t) {
+ let n = nR(t * ode), r = sde * n, i = cde * n;
e.moveTo(0, -n), e.lineTo(r, i);
for (let t = 1; t < 5; ++t) {
- let a = rR * t / 5, o = $L(a), s = eR(a);
+ let a = iR * t / 5, o = eR(a), s = tR(a);
e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
}
e.closePath();
-} }, xR = tR(3), ude = { draw(e, t) {
- let n = -tR(t / (xR * 3));
- e.moveTo(0, n * 2), e.lineTo(-xR * n, -n), e.lineTo(xR * n, -n), e.closePath();
-} }, SR = -.5, CR = tR(3) / 2, wR = 1 / tR(12), dde = (wR / 2 + 1) * 3, fde = { draw(e, t) {
- let n = tR(t / dde), r = n / 2, i = n * wR, a = r, o = n * wR + n, s = -a, c = o;
- e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(SR * r - CR * i, CR * r + SR * i), e.lineTo(SR * a - CR * o, CR * a + SR * o), e.lineTo(SR * s - CR * c, CR * s + SR * c), e.lineTo(SR * r + CR * i, SR * i - CR * r), e.lineTo(SR * a + CR * o, SR * o - CR * a), e.lineTo(SR * s + CR * c, SR * c - CR * s), e.closePath();
+} }, SR = nR(3), ude = { draw(e, t) {
+ let n = -nR(t / (SR * 3));
+ e.moveTo(0, n * 2), e.lineTo(-SR * n, -n), e.lineTo(SR * n, -n), e.closePath();
+} }, CR = -.5, wR = nR(3) / 2, TR = 1 / nR(12), dde = (TR / 2 + 1) * 3, fde = { draw(e, t) {
+ let n = nR(t / dde), r = n / 2, i = n * TR, a = r, o = n * TR + n, s = -a, c = o;
+ e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(CR * r - wR * i, wR * r + CR * i), e.lineTo(CR * a - wR * o, wR * a + CR * o), e.lineTo(CR * s - wR * c, wR * s + CR * c), e.lineTo(CR * r + wR * i, CR * i - wR * r), e.lineTo(CR * a + wR * o, CR * o - wR * a), e.lineTo(CR * s + wR * c, CR * c - wR * s), e.closePath();
} };
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js
function pde(e, t) {
- let n = null, r = lR(i);
- e = typeof e == "function" ? e : QL(e || vR), t = typeof t == "function" ? t : QL(t === void 0 ? 64 : +t);
+ let n = null, r = uR(i);
+ e = typeof e == "function" ? e : $L(e || yR), t = typeof t == "function" ? t : $L(t === void 0 ? 64 : +t);
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 : QL(t), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : $L(t), i) : e;
}, i.size = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : QL(+e), i) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : $L(+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 TR() {}
+function ER() {}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basis.js
-function ER(e, t, n) {
+function DR(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 DR(e) {
+function OR(e) {
this._context = e;
}
-DR.prototype = {
+OR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -45892,7 +45919,7 @@ DR.prototype = {
},
lineEnd: function() {
switch (this._point) {
- case 3: ER(this, this._x1, this._y1);
+ case 3: DR(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;
@@ -45906,22 +45933,22 @@ DR.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: ER(this, e, t);
+ default: DR(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
function mde(e) {
- return new DR(e);
+ return new OR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisClosed.js
-function OR(e) {
+function kR(e) {
this._context = e;
}
-OR.prototype = {
- areaStart: TR,
- areaEnd: TR,
+kR.prototype = {
+ areaStart: ER,
+ areaEnd: ER,
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;
},
@@ -45947,20 +45974,20 @@ OR.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: ER(this, e, t);
+ default: DR(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
function hde(e) {
- return new OR(e);
+ return new kR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisOpen.js
-function kR(e) {
+function AR(e) {
this._context = e;
}
-kR.prototype = {
+AR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -45987,22 +46014,22 @@ kR.prototype = {
this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
break;
case 3: this._point = 4;
- default: ER(this, e, t);
+ default: DR(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
function gde(e) {
- return new kR(e);
+ return new AR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linearClosed.js
-function AR(e) {
+function jR(e) {
this._context = e;
}
-AR.prototype = {
- areaStart: TR,
- areaEnd: TR,
+jR.prototype = {
+ areaStart: ER,
+ areaEnd: ER,
lineStart: function() {
this._point = 0;
},
@@ -46014,29 +46041,29 @@ AR.prototype = {
}
};
function _de(e) {
- return new AR(e);
+ return new jR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/monotone.js
-function jR(e) {
+function MR(e) {
return e < 0 ? -1 : 1;
}
-function MR(e, t, n) {
+function NR(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 (jR(a) + jR(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
+ return (MR(a) + MR(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
}
-function NR(e, t) {
+function PR(e, t) {
var n = e._x1 - e._x0;
return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
}
-function PR(e, t, n) {
+function FR(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 FR(e) {
+function IR(e) {
this._context = e;
}
-FR.prototype = {
+IR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -46051,7 +46078,7 @@ FR.prototype = {
case 2:
this._context.lineTo(this._x1, this._y1);
break;
- case 3: PR(this, this._t0, NR(this, this._t0));
+ case 3: FR(this, this._t0, PR(this, this._t0));
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
},
@@ -46066,24 +46093,24 @@ FR.prototype = {
this._point = 2;
break;
case 2:
- this._point = 3, PR(this, NR(this, n = MR(this, e, t)), n);
+ this._point = 3, FR(this, PR(this, n = NR(this, e, t)), n);
break;
- default: PR(this, this._t0, n = MR(this, e, t));
+ default: FR(this, this._t0, n = NR(this, e, t));
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
}
}
};
-function IR(e) {
- this._context = new LR(e);
+function LR(e) {
+ this._context = new RR(e);
}
-(IR.prototype = Object.create(FR.prototype)).point = function(e, t) {
- FR.prototype.point.call(this, t, e);
+(LR.prototype = Object.create(IR.prototype)).point = function(e, t) {
+ IR.prototype.point.call(this, t, e);
};
-function LR(e) {
+function RR(e) {
this._context = e;
}
-LR.prototype = {
+RR.prototype = {
moveTo: function(e, t) {
this._context.moveTo(t, e);
},
@@ -46098,17 +46125,17 @@ LR.prototype = {
}
};
function vde(e) {
- return new FR(e);
+ return new IR(e);
}
function yde(e) {
- return new IR(e);
+ return new LR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/natural.js
-function RR(e) {
+function zR(e) {
this._context = e;
}
-RR.prototype = {
+zR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -46122,7 +46149,7 @@ RR.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 = zR(e), i = zR(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
+ else for (var r = BR(e), i = BR(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
}
(this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
},
@@ -46130,7 +46157,7 @@ RR.prototype = {
this._x.push(+e), this._y.push(+t);
}
};
-function zR(e) {
+function BR(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];
@@ -46139,14 +46166,14 @@ function zR(e) {
return [i, a];
}
function bde(e) {
- return new RR(e);
+ return new zR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/step.js
-function BR(e, t) {
+function VR(e, t) {
this._context = e, this._t = t;
}
-BR.prototype = {
+VR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -46175,22 +46202,22 @@ BR.prototype = {
}
};
function xde(e) {
- return new BR(e, .5);
+ return new VR(e, .5);
}
function Sde(e) {
- return new BR(e, 0);
+ return new VR(e, 0);
}
function Cde(e) {
- return new BR(e, 1);
+ return new VR(e, 1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/none.js
-function VR(e, t) {
+function HR(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 HR(e) {
+function UR(e) {
for (var t = e.length, n = Array(t); --t >= 0;) n[t] = t;
return n;
}
@@ -46204,21 +46231,21 @@ function Tde(e) {
return t.key = e, t;
}
function Ede() {
- var e = QL([]), t = HR, n = VR, r = wde;
+ var e = $L([]), t = UR, n = HR, r = wde;
function i(i) {
var a = Array.from(e.apply(this, arguments), Tde), o, s = a.length, c = -1, l;
for (let e of i) for (o = 0, ++c; o < s; ++o) (a[o][c] = [0, +r(e, a[o].key, c, i)]).data = e;
- for (o = 0, l = uR(t(a)); o < s; ++o) a[l[o]].index = o;
+ for (o = 0, l = dR(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 : QL(Array.from(t)), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : $L(Array.from(t)), i) : e;
}, i.value = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : QL(+e), i) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : $L(+e), i) : r;
}, i.order = function(e) {
- return arguments.length ? (t = e == null ? HR : typeof e == "function" ? e : QL(Array.from(e)), i) : t;
+ return arguments.length ? (t = e == null ? UR : typeof e == "function" ? e : $L(Array.from(e)), i) : t;
}, i.offset = function(e) {
- return arguments.length ? (n = e ?? VR, i) : n;
+ return arguments.length ? (n = e ?? HR, i) : n;
}, i;
}
//#endregion
@@ -46229,7 +46256,7 @@ function Dde(e, t) {
for (o = n = 0; n < r; ++n) o += e[n][i][1] || 0;
if (o) for (n = 0; n < r; ++n) e[n][i][1] /= o;
}
- VR(e, t);
+ HR(e, t);
}
}
//#endregion
@@ -46240,7 +46267,7 @@ function Ode(e, t) {
for (var o = 0, s = 0; o < i; ++o) s += e[o][n][1] || 0;
r[n][1] += r[n][0] = -s / 2;
}
- VR(e, t);
+ HR(e, t);
}
}
//#endregion
@@ -46257,18 +46284,18 @@ function kde(e, t) {
}
i[r - 1][1] += i[r - 1][0] = n, c && (n -= l / c);
}
- i[r - 1][1] += i[r - 1][0] = n, VR(e, t);
+ i[r - 1][1] += i[r - 1][0] = n, HR(e, t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
-function UR(e) {
+function WR(e) {
return e === "__proto__";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
var Ade = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
-function WR(e) {
+function GR(e) {
switch (typeof e) {
case "number":
case "symbol": return !1;
@@ -46278,30 +46305,30 @@ function WR(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
-function GR(e) {
+function KR(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 KR(e) {
+function qR(e) {
return typeof e == "symbol" || e instanceof Symbol;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
function jde(e) {
- return e == null ? "" : qR(e);
+ return e == null ? "" : JR(e);
}
-function qR(e) {
+function JR(e) {
if (typeof e == "string") return e;
- if (Array.isArray(e)) return e.map(qR).join(",");
- if (KR(e)) return e.toString();
+ if (Array.isArray(e)) return e.map(JR).join(",");
+ if (qR(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 JR(e) {
- if (Array.isArray(e)) return e.map(GR);
+function YR(e) {
+ if (Array.isArray(e)) return e.map(KR);
if (typeof e == "symbol") return [e];
e = jde(e);
let t = [], n = e.length;
@@ -46331,23 +46358,23 @@ function JR(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/get.mjs
-function YR(e, t, n) {
+function XR(e, t, n) {
if (e == null) return n;
switch (typeof t) {
case "string": {
- if (UR(t)) return n;
+ if (WR(t)) return n;
let r = e[t];
- return r === void 0 ? WR(t) && !Object.hasOwn(e, t) ? YR(e, JR(t), n) : n : r;
+ return r === void 0 ? GR(t) && !Object.hasOwn(e, t) ? XR(e, YR(t), n) : n : r;
}
case "number":
case "symbol": {
- typeof t == "number" && (t = GR(t));
+ typeof t == "number" && (t = KR(t));
let r = e[t];
return r === void 0 ? n : r;
}
default: {
if (Array.isArray(t)) return Mde(e, t, n);
- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), UR(t)) return n;
+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), WR(t)) return n;
let r = e[t];
return r === void 0 ? n : r;
}
@@ -46357,7 +46384,7 @@ function Mde(e, t, n) {
if (t.length === 0) return n;
let r = e;
for (let e = 0; e < t.length; e++) {
- if (r == null || UR(t[e])) return n;
+ if (r == null || WR(t[e])) return n;
r = r[t[e]];
}
return r === void 0 ? n : r;
@@ -46365,49 +46392,49 @@ function Mde(e, t, n) {
//#endregion
//#region node_modules/recharts/es6/util/round.js
var Nde = 4;
-function XR(e) {
+function ZR(e) {
var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Nde), n = Math.round(e * t) / t;
return Object.is(n, -0) ? 0 : n;
}
-function ZR(e) {
+function QR(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 + XR(i) + n;
+ return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + ZR(i) + n;
}, "");
}
//#endregion
//#region node_modules/recharts/es6/util/DataUtils.js
-var QR = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, $R = (e) => typeof e == "number" && e != +e, ez = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !$R(e), tz = (e) => Z(e) || typeof e == "string", Pde = 0, nz = (e) => {
+var $R = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, ez = (e) => typeof e == "number" && e != +e, tz = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !ez(e), nz = (e) => Z(e) || typeof e == "string", Pde = 0, rz = (e) => {
var t = ++Pde;
return `${e || ""}${t}`;
-}, rz = function(e, t) {
+}, iz = 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 (ez(e)) {
+ if (tz(e)) {
if (t == null) return n;
var a = e.indexOf("%");
i = t * parseFloat(e.slice(0, a)) / 100;
} else i = +e;
- return $R(i) && (i = n), r && t != null && i > t && (i = t), i;
-}, iz = (e) => {
+ return ez(i) && (i = n), r && t != null && i > t && (i = t), i;
+}, az = (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 az(e, t, n) {
- return Z(e) && Z(t) ? XR(e + n * (t - e)) : t;
-}
function oz(e, t, n) {
- if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : YR(e, t)) === n);
+ return Z(e) && Z(t) ? ZR(e + n * (t - e)) : t;
}
-var sz = (e) => e == null, cz = (e) => sz(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
-function lz(e) {
+function sz(e, t, n) {
+ if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : XR(e, t)) === n);
+}
+var cz = (e) => e == null, lz = (e) => cz(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
+function uz(e) {
return e != null;
}
-function uz() {}
+function dz() {}
//#endregion
//#region node_modules/recharts/es6/shape/Symbols.js
var Fde = [
@@ -46415,16 +46442,16 @@ var Fde = [
"size",
"sizeType"
];
-function dz() {
- return dz = Object.assign ? Object.assign.bind() : function(e) {
+function fz() {
+ return fz = 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;
- }, dz.apply(null, arguments);
+ }, fz.apply(null, arguments);
}
-function fz(e, t) {
+function pz(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -46434,12 +46461,12 @@ function fz(e, t) {
}
return n;
}
-function pz(e) {
+function mz(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? fz(Object(n), !0).forEach(function(t) {
+ t % 2 ? pz(Object(n), !0).forEach(function(t) {
Ide(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fz(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pz(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -46485,15 +46512,15 @@ function Bde(e, t) {
}
return n;
}
-var mz = {
- symbolCircle: vR,
+var hz = {
+ symbolCircle: yR,
symbolCross: nde,
symbolDiamond: ide,
symbolSquare: ade,
symbolStar: lde,
symbolTriangle: ude,
symbolWye: fde
-}, Vde = Math.PI / 180, Hde = (e) => mz[`symbol${cz(e)}`] || vR, Ude = (e, t, n) => {
+}, Vde = Math.PI / 180, Hde = (e) => hz[`symbol${lz(e)}`] || yR, Ude = (e, t, n) => {
if (t === "area") return e;
switch (n) {
case "cross": return 5 * e * e / 9;
@@ -46507,9 +46534,9 @@ var mz = {
default: return Math.PI * e * e / 4;
}
}, Wde = (e, t) => {
- mz[`symbol${cz(e)}`] = t;
-}, hz = (e) => {
- var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = pz(pz({}, zde(e, Fde)), {}, {
+ hz[`symbol${lz(e)}`] = t;
+}, gz = (e) => {
+ var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = mz(mz({}, zde(e, Fde)), {}, {
type: t,
size: n,
sizeType: r
@@ -46518,35 +46545,35 @@ var mz = {
var o = () => {
var e = Hde(a), t = pde().type(e).size(Ude(n, r, a))();
if (t !== null) return t;
- }, { className: s, cx: c, cy: l } = i, u = KL(i);
- return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ I.createElement("path", dz({}, u, {
+ }, { className: s, cx: c, cy: l } = i, u = qL(i);
+ return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ I.createElement("path", fz({}, u, {
className: Wm("recharts-symbols", s),
transform: `translate(${c}, ${l})`,
d: o()
})) : null;
};
-hz.registerSymbol = Wde;
+gz.registerSymbol = Wde;
//#endregion
//#region node_modules/recharts/es6/util/types.js
-var gz = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, _z = (e, t) => {
+var _z = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, vz = (e, t) => {
if (!e || typeof e == "function" || typeof e == "boolean") return null;
var n = e;
if (/*#__PURE__*/ (0, I.isValidElement)(e) && (n = e.props), typeof n != "object" && typeof n != "function") return null;
var r = {};
return Object.keys(n).forEach((e) => {
- VL(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
+ HL(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
}), r;
-}, Gde = (e, t, n) => (r) => (e(t, n, r), null), vz = (e, t, n) => {
+}, Gde = (e, t, n) => (r) => (e(t, n, r), null), yz = (e, t, n) => {
if (e === null || typeof e != "object" && typeof e != "function") return null;
var r = null;
return Object.keys(e).forEach((i) => {
var a = e[i];
- VL(i) && typeof a == "function" && (r ||= {}, r[i] = Gde(a, t, n));
+ HL(i) && typeof a == "function" && (r ||= {}, r[i] = Gde(a, t, n));
}), r;
};
//#endregion
//#region node_modules/recharts/es6/util/resolveDefaultProps.js
-function yz(e, t) {
+function bz(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -46559,9 +46586,9 @@ function yz(e, t) {
function Kde(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? yz(Object(n), !0).forEach(function(t) {
+ t % 2 ? bz(Object(n), !0).forEach(function(t) {
qde(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yz(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : bz(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -46589,22 +46616,22 @@ function Yde(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function bz(e, t) {
+function xz(e, t) {
var n = Kde({}, e), r = t;
return Object.keys(t).reduce((e, t) => (e[t] === void 0 && r[t] !== void 0 && (e[t] = r[t]), e), n);
}
//#endregion
//#region node_modules/recharts/es6/component/DefaultLegendContent.js
-function xz() {
- return xz = Object.assign ? Object.assign.bind() : function(e) {
+function Sz() {
+ return Sz = 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;
- }, xz.apply(null, arguments);
+ }, Sz.apply(null, arguments);
}
-function Sz(e, t) {
+function Cz(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -46614,12 +46641,12 @@ function Sz(e, t) {
}
return n;
}
-function Cz(e) {
+function wz(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Sz(Object(n), !0).forEach(function(t) {
+ t % 2 ? Cz(Object(n), !0).forEach(function(t) {
Xde(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Sz(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Cz(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -46647,7 +46674,7 @@ function Qde(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var wz = 32, $de = {
+var Tz = 32, $de = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -46659,7 +46686,7 @@ function efe(e) {
if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);
}
function tfe(e) {
- var { data: t, iconType: n, inactiveColor: r } = e, i = wz / 2, a = wz / 6, o = wz / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
+ var { data: t, iconType: n, inactiveColor: r } = e, i = Tz / 2, a = Tz / 6, o = Tz / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
if (c === "none") return null;
if (c === "plainline") return /*#__PURE__*/ I.createElement("line", {
strokeWidth: 4,
@@ -46668,7 +46695,7 @@ function tfe(e) {
strokeDasharray: efe(t.payload),
x1: 0,
y1: i,
- x2: wz,
+ x2: Tz,
y2: i,
className: "recharts-legend-icon"
});
@@ -46678,25 +46705,25 @@ function tfe(e) {
stroke: s,
d: `M0,${i}h${o}
A${a},${a},0,1,1,${2 * o},${i}
- H${wz}M${2 * o},${i}
+ H${Tz}M${2 * o},${i}
A${a},${a},0,1,1,${o},${i}`,
className: "recharts-legend-icon"
});
if (c === "rect") return /*#__PURE__*/ I.createElement("path", {
stroke: "none",
fill: s,
- d: `M0,${wz / 8}h${wz}v${wz * 3 / 4}h${-wz}z`,
+ d: `M0,${Tz / 8}h${Tz}v${Tz * 3 / 4}h${-Tz}z`,
className: "recharts-legend-icon"
});
if (/*#__PURE__*/ I.isValidElement(t.legendIcon)) {
- var l = Cz({}, t);
+ var l = wz({}, t);
return delete l.legendIcon, /*#__PURE__*/ I.cloneElement(t.legendIcon, l);
}
- return /*#__PURE__*/ I.createElement(hz, {
+ return /*#__PURE__*/ I.createElement(gz, {
fill: s,
cx: i,
cy: i,
- size: wz,
+ size: Tz,
sizeType: "diameter",
type: c
});
@@ -46705,8 +46732,8 @@ function nfe(e) {
var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {
x: 0,
y: 0,
- width: wz,
- height: wz
+ width: Tz,
+ height: Tz
}, l = {
display: r === "horizontal" ? "inline-block" : "block",
marginRight: 10
@@ -46722,14 +46749,14 @@ function nfe(e) {
inactive: t.inactive
});
if (t.type === "none") return null;
- var p = typeof s == "object" ? Cz({}, s) : {};
+ var p = typeof s == "object" ? wz({}, s) : {};
p.color = t.inactive ? a : p.color || t.color;
var m = d ? d(t.value, t, r) : t.value;
- return /*#__PURE__*/ I.createElement("li", xz({
+ return /*#__PURE__*/ I.createElement("li", Sz({
className: f,
style: l,
key: `legend-item-${r}`
- }, vz(e, t, r)), /*#__PURE__*/ I.createElement(JL, {
+ }, yz(e, t, r)), /*#__PURE__*/ I.createElement(YL, {
width: n,
height: n,
viewBox: c,
@@ -46746,7 +46773,7 @@ function nfe(e) {
});
}
var rfe = (e) => {
- var t = bz(e, $de), { payload: n, layout: r, align: i } = t;
+ var t = xz(e, $de), { payload: n, layout: r, align: i } = t;
if (!n || !n.length) return null;
var a = {
padding: 0,
@@ -46756,7 +46783,7 @@ var rfe = (e) => {
return /*#__PURE__*/ I.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ I.createElement(nfe, xz({}, t, { payload: n })));
+ }, /*#__PURE__*/ I.createElement(nfe, Sz({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
@@ -46777,7 +46804,7 @@ function afe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/function/identity.mjs
-function Tz(e) {
+function Ez(e) {
return e;
}
//#endregion
@@ -46787,19 +46814,19 @@ function ofe(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
-function Ez(e) {
+function Dz(e) {
return e != null && typeof e != "function" && ofe(e.length);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/property.mjs
function sfe(e) {
return function(t) {
- return YR(t, e);
+ return XR(t, e);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
-function Dz(e) {
+function Oz(e) {
return e == null || typeof e != "object" && typeof e != "function";
}
//#endregion
@@ -46814,33 +46841,33 @@ function lfe(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
-function Oz(e) {
+function kz(e) {
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/tags.mjs
-var ufe = "[object RegExp]", kz = "[object String]", Az = "[object Number]", jz = "[object Boolean]", Mz = "[object Arguments]", dfe = "[object Symbol]", ffe = "[object Date]", pfe = "[object Map]", mfe = "[object Set]", hfe = "[object Array]", gfe = "[object ArrayBuffer]", _fe = "[object Object]", vfe = "[object DataView]", yfe = "[object Uint8Array]", bfe = "[object Uint8ClampedArray]", xfe = "[object Uint16Array]", Sfe = "[object Uint32Array]", Cfe = "[object Int8Array]", wfe = "[object Int16Array]", Tfe = "[object Int32Array]", Efe = "[object Float32Array]", Dfe = "[object Float64Array]", Nz = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
+var ufe = "[object RegExp]", Az = "[object String]", jz = "[object Number]", Mz = "[object Boolean]", Nz = "[object Arguments]", dfe = "[object Symbol]", ffe = "[object Date]", pfe = "[object Map]", mfe = "[object Set]", hfe = "[object Array]", gfe = "[object ArrayBuffer]", _fe = "[object Object]", vfe = "[object DataView]", yfe = "[object Uint8Array]", bfe = "[object Uint8ClampedArray]", xfe = "[object Uint16Array]", Sfe = "[object Uint32Array]", Cfe = "[object Int8Array]", wfe = "[object Int16Array]", Tfe = "[object Int32Array]", Efe = "[object Float32Array]", Dfe = "[object Float64Array]", Pz = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
return this;
})();
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isBuffer.mjs
function Ofe(e) {
- return Nz.Buffer !== void 0 && Nz.Buffer.isBuffer(e);
+ return Pz.Buffer !== void 0 && Pz.Buffer.isBuffer(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
function kfe(e, t) {
- return Pz(e, void 0, e, /* @__PURE__ */ new Map(), t);
+ return Fz(e, void 0, e, /* @__PURE__ */ new Map(), t);
}
-function Pz(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
+function Fz(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
let a = i?.(e, t, n, r);
if (a !== void 0) return a;
- if (Dz(e)) return e;
+ if (Oz(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] = Pz(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = Fz(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());
@@ -46851,71 +46878,71 @@ function Pz(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, Pz(o, a, n, r, i));
+ for (let [a, o] of e) t.set(a, Fz(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(Pz(a, void 0, n, r, i));
+ for (let a of e) t.add(Fz(a, void 0, n, r, i));
return t;
}
if (Ofe(e)) return e.subarray();
if (cfe(e)) {
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
r.set(e, t);
- for (let a = 0; a < e.length; a++) t[a] = Pz(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = Fz(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), Fz(t, e, n, r, i), t;
+ return r.set(e, t), Iz(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), Fz(t, e, n, r, i), t;
+ return r.set(e, t), Iz(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), Fz(t, e, n, r, i), t;
+ return r.set(e, t), Iz(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, Fz(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, Iz(t, e, n, r, i), t;
}
if (e instanceof Boolean) {
let t = new Boolean(e.valueOf());
- return r.set(e, t), Fz(t, e, n, r, i), t;
+ return r.set(e, t), Iz(t, e, n, r, i), t;
}
if (e instanceof Number) {
let t = new Number(e.valueOf());
- return r.set(e, t), Fz(t, e, n, r, i), t;
+ return r.set(e, t), Iz(t, e, n, r, i), t;
}
if (e instanceof String) {
let t = new String(e.valueOf());
- return r.set(e, t), Fz(t, e, n, r, i), t;
+ return r.set(e, t), Iz(t, e, n, r, i), t;
}
if (typeof e == "object" && Afe(e)) {
let t = Object.create(Object.getPrototypeOf(e));
- return r.set(e, t), Fz(t, e, n, r, i), t;
+ return r.set(e, t), Iz(t, e, n, r, i), t;
}
return e;
}
-function Fz(e, t, n = e, r, i) {
+function Iz(e, t, n = e, r, i) {
let a = [...Object.keys(t), ...lfe(t)];
for (let o = 0; o < a.length; o++) {
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
- (c == null || c.writable) && (e[s] = Pz(t[s], s, n, r, i));
+ (c == null || c.writable) && (e[s] = Fz(t[s], s, n, r, i));
}
}
function Afe(e) {
- switch (Oz(e)) {
- case Mz:
+ switch (kz(e)) {
+ case Nz:
case hfe:
case gfe:
case vfe:
- case jz:
+ case Mz:
case ffe:
case Efe:
case Dfe:
@@ -46923,11 +46950,11 @@ function Afe(e) {
case wfe:
case Tfe:
case pfe:
- case Az:
+ case jz:
case _fe:
case ufe:
case mfe:
- case kz:
+ case Az:
case dfe:
case yfe:
case bfe:
@@ -46939,44 +46966,44 @@ function Afe(e) {
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs
function jfe(e) {
- return Pz(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
+ return Fz(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/eq.mjs
-function Iz(e, t) {
+function Lz(e, t) {
return e === t || Number.isNaN(e) && Number.isNaN(t);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isObject.mjs
-function Lz(e) {
+function Rz(e) {
return e !== null && (typeof e == "object" || typeof e == "function");
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatchWith.mjs
-function Rz(e, t, n) {
- return typeof n == "function" ? zz(e, t, function e(t, r, i, a, o, s) {
+function zz(e, t, n) {
+ return typeof n == "function" ? Bz(e, t, function e(t, r, i, a, o, s) {
let c = n(t, r, i, a, o, s);
- return c === void 0 ? zz(t, r, e, s, !1) : !!c;
- }, /* @__PURE__ */ new Map(), !0) : Rz(e, t, () => void 0);
+ return c === void 0 ? Bz(t, r, e, s, !1) : !!c;
+ }, /* @__PURE__ */ new Map(), !0) : zz(e, t, () => void 0);
}
-function zz(e, t, n, r, i = !1) {
+function Bz(e, t, n, r, i = !1) {
if (t === e) return !0;
switch (typeof t) {
case "object": return Mfe(e, t, n, r, i);
- case "function": return Object.keys(t).length > 0 ? zz(e, { ...t }, n, r, i) : Iz(e, t);
- default: return Lz(e) && i ? typeof t != "string" || t === "" : Iz(e, t);
+ case "function": return Object.keys(t).length > 0 ? Bz(e, { ...t }, n, r, i) : Lz(e, t);
+ default: return Rz(e) && i ? typeof t != "string" || t === "" : Lz(e, t);
}
}
function Mfe(e, t, n, r, i = !1) {
if (t == null) return !0;
- if (Array.isArray(t)) return Bz(e, t, n, r);
+ if (Array.isArray(t)) return Vz(e, t, n, r);
if (t instanceof Map) return Nfe(e, t, n, r);
if (t instanceof Set) return Pfe(e, t, n, r);
let a = Object.keys(t);
if (e == null) return i && a.length === 0;
- if (i) Dz(e) && (e = Object(e));
+ if (i) Oz(e) && (e = Object(e));
else {
- let t = Oz(e);
+ let t = kz(e);
if (t !== "[object Object]" && t !== "[object Arguments]") return !1;
}
if (a.length === 0) return !0;
@@ -46998,7 +47025,7 @@ function Nfe(e, t, n, r) {
for (let [i, a] of t.entries()) if (n(e.get(i), a, i, e, t, r) === !1) return !1;
return !0;
}
-function Bz(e, t, n, r) {
+function Vz(e, t, n, r) {
if (t.length === 0) return !0;
if (!Array.isArray(e)) return !1;
let i = /* @__PURE__ */ new Set();
@@ -47017,17 +47044,17 @@ function Bz(e, t, n, r) {
return !0;
}
function Pfe(e, t, n, r) {
- return t.size === 0 || e instanceof Set && Bz([...e], [...t], n, r);
+ return t.size === 0 || e instanceof Set && Vz([...e], [...t], n, r);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatch.mjs
-function Vz(e, t) {
- return Rz(e, t, () => void 0);
+function Hz(e, t) {
+ return zz(e, t, () => void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs
function Ffe(e) {
- return e = jfe(e), (t) => Vz(t, e);
+ return e = jfe(e), (t) => Hz(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
@@ -47036,20 +47063,20 @@ function Ife(e, t) {
let o = t?.(n, r, i, a);
if (o !== void 0) return o;
if (typeof e == "object") {
- if (Oz(e) === "[object Object]" && typeof e.constructor != "function") {
+ if (kz(e) === "[object Object]" && typeof e.constructor != "function") {
let t = {};
- return a.set(e, t), Fz(t, e, i, a), t;
+ return a.set(e, t), Iz(t, e, i, a), t;
}
switch (Object.prototype.toString.call(e)) {
+ case jz:
case Az:
- case kz:
- case jz: {
+ case Mz: {
let t = new e.constructor(e?.valueOf());
- return Fz(t, e), t;
+ return Iz(t, e), t;
}
- case Mz: {
+ case Nz: {
let t = {};
- return Fz(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
+ return Iz(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
}
default: return;
}
@@ -47064,7 +47091,7 @@ function Lfe(e) {
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
var Rfe = /^(?:0|[1-9]\d*)$/;
-function Hz(e, t = 2 ** 53 - 1) {
+function Uz(e, t = 2 ** 53 - 1) {
switch (typeof e) {
case "number": return Number.isInteger(e) && e >= 0 && e < t;
case "symbol": return !1;
@@ -47074,17 +47101,17 @@ function Hz(e, t = 2 ** 53 - 1) {
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
function zfe(e) {
- return typeof e == "object" && !!e && Oz(e) === "[object Arguments]";
+ return typeof e == "object" && !!e && kz(e) === "[object Arguments]";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/has.mjs
function Bfe(e, t) {
let n;
- if (n = Array.isArray(t) ? t : typeof t == "string" && WR(t) && !(t in Object(e)) ? JR(t) : [t], n.length === 0) return !1;
+ if (n = Array.isArray(t) ? t : typeof t == "string" && GR(t) && !(t in Object(e)) ? YR(t) : [t], n.length === 0) return !1;
let r = e;
for (let e = 0; e < n.length; e++) {
- let t = GR(n[e]);
- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || zfe(r)) && Hz(t) && Number(t) < r.length)) return !1;
+ let t = KR(n[e]);
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || zfe(r)) && Uz(t) && Number(t) < r.length)) return !1;
r = r[t];
}
return !0;
@@ -47096,17 +47123,17 @@ function Vfe(e, t) {
case "object":
Object.is(e?.valueOf(), -0) && (e = "-0");
break;
- case "number": e = GR(e);
+ case "number": e = KR(e);
}
return t = Lfe(t), function(n) {
- let r = YR(n, e);
- return r === void 0 ? Bfe(n, e) : t === void 0 ? r === void 0 : Vz(r, t);
+ let r = XR(n, e);
+ return r === void 0 ? Bfe(n, e) : t === void 0 ? r === void 0 : Hz(r, t);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/iteratee.mjs
-function Uz(e) {
- if (e == null) return Tz;
+function Wz(e) {
+ if (e == null) return Ez;
switch (typeof e) {
case "function": return e;
case "object": return Array.isArray(e) && e.length === 2 ? Vfe(e[0], e[1]) : Ffe(e);
@@ -47120,13 +47147,13 @@ function Hfe(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs
-function Wz(e, t = Tz) {
- return Ez(e) ? ife(Array.from(e), afe(Uz(t), 1)).map(Hfe) : [];
+function Gz(e, t = Ez) {
+ return Dz(e) ? ife(Array.from(e), afe(Wz(t), 1)).map(Hfe) : [];
}
//#endregion
//#region node_modules/recharts/es6/util/payload/getUniqPayload.js
-function Gz(e, t, n) {
- return t === !0 ? Wz(e, n) : typeof t == "function" ? Wz(e, t) : e;
+function Kz(e, t, n) {
+ return t === !0 ? Gz(e, n) : typeof t == "function" ? Gz(e, t) : e;
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
@@ -47177,15 +47204,15 @@ var Ufe = /* @__PURE__ */ M(((e) => {
};
})), Wfe = /* @__PURE__ */ M(((e, t) => {
t.exports = Ufe();
-})), Kz = /*#__PURE__*/ (0, I.createContext)(null), Gfe = Wfe(), Kfe = (e) => e, qz = () => {
- var e = (0, I.useContext)(Kz);
+})), qz = /*#__PURE__*/ (0, I.createContext)(null), Gfe = Wfe(), Kfe = (e) => e, Jz = () => {
+ var e = (0, I.useContext)(qz);
return e ? e.store.dispatch : Kfe;
-}, Jz = () => {}, qfe = () => Jz, Jfe = (e, t) => e === t;
+}, Yz = () => {}, qfe = () => Yz, Jfe = (e, t) => e === t;
function Q(e) {
- var t = (0, I.useContext)(Kz), n = (0, I.useMemo)(() => t ? (t) => {
+ var t = (0, I.useContext)(qz), n = (0, I.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
- } : Jz, [t, e]);
- return (0, Gfe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : qfe, t ? t.store.getState : Jz, t ? t.store.getState : Jz, n, Jfe);
+ } : Yz, [t, e]);
+ return (0, Gfe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : qfe, t ? t.store.getState : Yz, t ? t.store.getState : Yz, n, Jfe);
}
//#endregion
//#region node_modules/reselect/dist/reselect.mjs
@@ -47201,7 +47228,7 @@ function Zfe(e, t = "expected all items to be functions, instead received the fo
throw TypeError(`${t}[${n}]`);
}
}
-var Yz = (e) => Array.isArray(e) ? e : [e];
+var Xz = (e) => Array.isArray(e) ? e : [e];
function Qfe(e) {
let t = Array.isArray(e[0]) ? e[0] : e;
return Zfe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
@@ -47218,8 +47245,8 @@ var epe = class {
deref() {
return this.value;
}
-}, tpe = typeof WeakRef < "u" ? WeakRef : epe, npe = 0, Xz = 1;
-function Zz() {
+}, tpe = typeof WeakRef < "u" ? WeakRef : epe, npe = 0, Zz = 1;
+function Qz() {
return {
s: npe,
v: void 0,
@@ -47227,8 +47254,8 @@ function Zz() {
p: null
};
}
-function Qz(e, t = {}) {
- let n = Zz(), { resultEqualityCheck: r } = t, i, a = 0;
+function $z(e, t = {}) {
+ let n = Qz(), { resultEqualityCheck: r } = t, i, a = 0;
function o() {
let t = n, { length: o } = arguments;
for (let e = 0, n = o; e < n; e++) {
@@ -47237,24 +47264,24 @@ function Qz(e, t = {}) {
let e = t.o;
e === null && (t.o = e = /* @__PURE__ */ new WeakMap());
let r = e.get(n);
- r === void 0 ? (t = Zz(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = Qz(), e.set(n, t)) : t = r;
} else {
let e = t.p;
e === null && (t.p = e = /* @__PURE__ */ new Map());
let r = e.get(n);
- r === void 0 ? (t = Zz(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = Qz(), e.set(n, t)) : t = r;
}
}
let s = t, c;
- if (t.s === Xz) c = t.v;
+ if (t.s === Zz) c = t.v;
else if (c = e.apply(null, arguments), a++, r) {
let e = i?.deref?.() ?? i;
e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new tpe(c) : c;
}
- return s.s = Xz, s.v = c, c;
+ return s.s = Zz, s.v = c, c;
}
return o.clearCache = () => {
- n = Zz(), o.resetResultsCount();
+ n = Qz(), o.resetResultsCount();
}, o.resultsCount = () => a, o.resetResultsCount = () => {
a = 0;
}, o;
@@ -47266,10 +47293,10 @@ function rpe(e, ...t) {
} : e, r = (...e) => {
let t = 0, r = 0, i, a = {}, o = e.pop();
typeof o == "object" && (a = o, o = e.pop()), Yfe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
- let { memoize: s, memoizeOptions: c = [], argsMemoize: l = Qz, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
+ let { memoize: s, memoizeOptions: c = [], argsMemoize: l = $z, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
...n,
...a
- }, f = Yz(c), p = Yz(u), m = Qfe(e), h = s(function() {
+ }, f = Xz(c), p = Xz(u), m = Qfe(e), h = s(function() {
return t++, o.apply(null, arguments);
}, ...f), g = l(function() {
r++;
@@ -47295,7 +47322,7 @@ function rpe(e, ...t) {
};
return Object.assign(r, { withTypes: () => r }), r;
}
-var $ = /* @__PURE__ */ rpe(Qz), ipe = Object.assign((e, t = $) => {
+var $ = /* @__PURE__ */ rpe($z), ipe = Object.assign((e, t = $) => {
Xfe(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
let n = Object.keys(e);
return t(n.map((t) => e[t]), (...e) => e.reduce((e, t, r) => (e[n[r]] = t, e), {}));
@@ -47313,17 +47340,17 @@ function ape(e, t = 1) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs
-function $z(e, t, n) {
- return Lz(n) && (typeof t == "number" && Ez(n) && Hz(t) && t < n.length || typeof t == "string" && t in n) ? Iz(n[t], e) : !1;
+function eB(e, t, n) {
+ return Rz(n) && (typeof t == "number" && Dz(n) && Uz(t) && t < n.length || typeof t == "string" && t in n) ? Lz(n[t], e) : !1;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs
-function eB(e) {
+function tB(e) {
return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;
}
var ope = (e, t, n) => {
if (e !== t) {
- let r = eB(e), i = eB(t);
+ let r = tB(e), i = tB(t);
if (r === i && r === 0) {
if (e < t) return n === "desc" ? 1 : -1;
if (e > t) return n === "desc" ? -1 : 1;
@@ -47333,13 +47360,13 @@ var ope = (e, t, n) => {
return 0;
}, spe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, cpe = /^\w*$/;
function lpe(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || KR(e) ? !0 : typeof e == "string" && (cpe.test(e) || !spe.test(e)) || t != null && Object.hasOwn(t, e);
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || qR(e) ? !0 : typeof e == "string" && (cpe.test(e) || !spe.test(e)) || t != null && Object.hasOwn(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs
function upe(e, t, n, r) {
if (e == null) return [];
- n = r ? void 0 : n, Array.isArray(e) || (e = Ez(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));
+ n = r ? void 0 : n, Array.isArray(e) || (e = Dz(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));
let i = (e, t) => {
let n = e, r = 0;
for (; r < t.length && n != null; ++r) n = n[t[r]];
@@ -47349,7 +47376,7 @@ function upe(e, t, n, r) {
if (t != null) return typeof e == "object" && "key" in e ? Object.hasOwn(t, e.key) ? t[e.key] : i(t, e.path) : typeof e == "function" ? e(t) : Array.isArray(e) ? i(t, e) : t[e];
}, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || lpe(e) ? e : {
key: e,
- path: JR(e)
+ path: YR(e)
}));
return e.map((e) => ({
original: e,
@@ -47364,15 +47391,15 @@ function upe(e, t, n, r) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs
-function tB(e, ...t) {
+function nB(e, ...t) {
let n = t.length;
- return n > 1 && $z(e, t[0], t[1]) ? t = [] : n > 2 && $z(t[0], t[1], t[2]) && (t = [t[0]]), upe(e, ape(t), ["asc"]);
+ return n > 1 && eB(e, t[0], t[1]) ? t = [] : n > 2 && eB(t[0], t[1], t[2]) && (t = [t[0]]), upe(e, ape(t), ["asc"]);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/legendSelectors.js
-var nB = (e) => e.legend.settings, dpe = (e) => e.legend.size, fpe = $([(e) => e.legend.payload, nB], (e, t) => {
+var rB = (e) => e.legend.settings, dpe = (e) => e.legend.size, fpe = $([(e) => e.legend.payload, rB], (e, t) => {
var { itemSorter: n } = t, r = e.flat(1);
- return n ? tB(r, n) : r;
+ return n ? nB(r, n) : r;
});
//#endregion
//#region node_modules/recharts/es6/context/legendPayloadContext.js
@@ -47381,8 +47408,8 @@ function ppe() {
}
//#endregion
//#region node_modules/recharts/es6/util/useElementOffset.js
-var rB = 1;
-function iB() {
+var iB = 1;
+function aB() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], [t, n] = (0, I.useState)({
height: 0,
left: 0,
@@ -47397,7 +47424,7 @@ function iB() {
top: r.top,
width: r.width
};
- (Math.abs(i.height - t.height) > rB || Math.abs(i.left - t.left) > rB || Math.abs(i.top - t.top) > rB || Math.abs(i.width - t.width) > rB) && n({
+ (Math.abs(i.height - t.height) > iB || Math.abs(i.left - t.left) > iB || Math.abs(i.top - t.top) > iB || Math.abs(i.width - t.width) > iB) && n({
height: i.height,
left: i.left,
top: i.top,
@@ -47414,26 +47441,26 @@ function iB() {
}
//#endregion
//#region node_modules/redux/dist/redux.mjs
-function aB(e) {
+function oB(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 oB = typeof Symbol == "function" && Symbol.observable || "@@observable", sB = () => Math.random().toString(36).substring(7).split("").join("."), cB = {
- INIT: `@@redux/INIT${/* @__PURE__ */ sB()}`,
- REPLACE: `@@redux/REPLACE${/* @__PURE__ */ sB()}`,
- PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${sB()}`
+var sB = typeof Symbol == "function" && Symbol.observable || "@@observable", cB = () => Math.random().toString(36).substring(7).split("").join("."), lB = {
+ INIT: `@@redux/INIT${/* @__PURE__ */ cB()}`,
+ REPLACE: `@@redux/REPLACE${/* @__PURE__ */ cB()}`,
+ PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${cB()}`
};
-function lB(e) {
+function uB(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 uB(e, t, n) {
- if (typeof e != "function") throw Error(aB(2));
- if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(aB(0));
+function dB(e, t, n) {
+ if (typeof e != "function") throw Error(oB(2));
+ if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(oB(0));
if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {
- if (typeof n != "function") throw Error(aB(1));
- return n(uB)(e, t);
+ if (typeof n != "function") throw Error(oB(1));
+ return n(dB)(e, t);
}
let r = e, i = t, a = /* @__PURE__ */ new Map(), o = a, s = 0, c = !1;
function l() {
@@ -47442,27 +47469,27 @@ function uB(e, t, n) {
}));
}
function u() {
- if (c) throw Error(aB(3));
+ if (c) throw Error(oB(3));
return i;
}
function d(e) {
- if (typeof e != "function") throw Error(aB(4));
- if (c) throw Error(aB(5));
+ if (typeof e != "function") throw Error(oB(4));
+ if (c) throw Error(oB(5));
let t = !0;
l();
let n = s++;
return o.set(n, e), function() {
if (t) {
- if (c) throw Error(aB(6));
+ if (c) throw Error(oB(6));
t = !1, l(), o.delete(n), a = null;
}
};
}
function f(e) {
- if (!lB(e)) throw Error(aB(7));
- if (e.type === void 0) throw Error(aB(8));
- if (typeof e.type != "string") throw Error(aB(17));
- if (c) throw Error(aB(9));
+ if (!uB(e)) throw Error(oB(7));
+ if (e.type === void 0) throw Error(oB(8));
+ if (typeof e.type != "string") throw Error(oB(17));
+ if (c) throw Error(oB(9));
try {
c = !0, i = r(i, e);
} finally {
@@ -47473,41 +47500,41 @@ function uB(e, t, n) {
}), e;
}
function p(e) {
- if (typeof e != "function") throw Error(aB(10));
- r = e, f({ type: cB.REPLACE });
+ if (typeof e != "function") throw Error(oB(10));
+ r = e, f({ type: lB.REPLACE });
}
function m() {
let e = d;
return {
subscribe(t) {
- if (typeof t != "object" || !t) throw Error(aB(11));
+ if (typeof t != "object" || !t) throw Error(oB(11));
function n() {
let e = t;
e.next && e.next(u());
}
return n(), { unsubscribe: e(n) };
},
- [oB]() {
+ [sB]() {
return this;
}
};
}
- return f({ type: cB.INIT }), {
+ return f({ type: lB.INIT }), {
dispatch: f,
subscribe: d,
getState: u,
replaceReducer: p,
- [oB]: m
+ [sB]: m
};
}
function mpe(e) {
Object.keys(e).forEach((t) => {
let n = e[t];
- if (n(void 0, { type: cB.INIT }) === void 0) throw Error(aB(12));
- if (n(void 0, { type: cB.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(aB(13));
+ if (n(void 0, { type: lB.INIT }) === void 0) throw Error(oB(12));
+ if (n(void 0, { type: lB.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(oB(13));
});
}
-function dB(e) {
+function fB(e) {
let t = Object.keys(e), n = {};
for (let r = 0; r < t.length; r++) {
let i = t[r];
@@ -47524,124 +47551,124 @@ function dB(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(aB(14));
+ if (u === void 0) throw t && t.type, Error(oB(14));
o[s] = u, a ||= u !== l;
}
return a ||= r.length !== Object.keys(e).length, a ? o : e;
};
}
-function fB(...e) {
+function pB(...e) {
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
}
function hpe(...e) {
return (t) => (n, r) => {
let i = t(n, r), a = () => {
- throw Error(aB(15));
+ throw Error(oB(15));
}, o = {
getState: i.getState,
dispatch: (e, ...t) => a(e, ...t)
};
- return a = fB(...e.map((e) => e(o)))(i.dispatch), {
+ return a = pB(...e.map((e) => e(o)))(i.dispatch), {
...i,
dispatch: a
};
};
}
-function pB(e) {
- return lB(e) && "type" in e && typeof e.type == "string";
+function mB(e) {
+ return uB(e) && "type" in e && typeof e.type == "string";
}
//#endregion
//#region node_modules/@reduxjs/toolkit/node_modules/immer/dist/immer.mjs
-var mB = Symbol.for("immer-nothing"), hB = Symbol.for("immer-draftable"), gB = Symbol.for("immer-state");
-function _B(e, ...t) {
+var hB = Symbol.for("immer-nothing"), gB = Symbol.for("immer-draftable"), _B = Symbol.for("immer-state");
+function vB(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var vB = Object, yB = vB.getPrototypeOf, bB = "constructor", xB = "prototype", SB = "configurable", CB = "enumerable", wB = "writable", TB = "value", EB = (e) => !!e && !!e[gB];
-function DB(e) {
- return e ? kB(e) || FB(e) || !!e[hB] || !!e[bB]?.[hB] || IB(e) || LB(e) : !1;
+var yB = Object, bB = yB.getPrototypeOf, xB = "constructor", SB = "prototype", CB = "configurable", wB = "enumerable", TB = "writable", EB = "value", DB = (e) => !!e && !!e[_B];
+function OB(e) {
+ return e ? AB(e) || IB(e) || !!e[gB] || !!e[xB]?.[gB] || LB(e) || RB(e) : !1;
}
-var gpe = vB[xB][bB].toString(), OB = /* @__PURE__ */ new WeakMap();
-function kB(e) {
- if (!e || !RB(e)) return !1;
- let t = yB(e);
- if (t === null || t === vB[xB]) return !0;
- let n = vB.hasOwnProperty.call(t, bB) && t[bB];
+var gpe = yB[SB][xB].toString(), kB = /* @__PURE__ */ new WeakMap();
+function AB(e) {
+ if (!e || !zB(e)) return !1;
+ let t = bB(e);
+ if (t === null || t === yB[SB]) return !0;
+ let n = yB.hasOwnProperty.call(t, xB) && t[xB];
if (n === Object) return !0;
- if (!zB(n)) return !1;
- let r = OB.get(n);
- return r === void 0 && (r = Function.toString.call(n), OB.set(n, r)), r === gpe;
+ if (!BB(n)) return !1;
+ let r = kB.get(n);
+ return r === void 0 && (r = Function.toString.call(n), kB.set(n, r)), r === gpe;
}
-function AB(e, t, n = !0) {
- jB(e) === 0 ? (n ? Reflect.ownKeys(e) : vB.keys(e)).forEach((n) => {
+function jB(e, t, n = !0) {
+ MB(e) === 0 ? (n ? Reflect.ownKeys(e) : yB.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function jB(e) {
- let t = e[gB];
- return t ? t.type_ : FB(e) ? 1 : IB(e) ? 2 : LB(e) ? 3 : 0;
+function MB(e) {
+ let t = e[_B];
+ return t ? t.type_ : IB(e) ? 1 : LB(e) ? 2 : RB(e) ? 3 : 0;
}
-var MB = (e, t, n = jB(e)) => n === 2 ? e.has(t) : vB[xB].hasOwnProperty.call(e, t), NB = (e, t, n = jB(e)) => n === 2 ? e.get(t) : e[t], PB = (e, t, n, r = jB(e)) => {
+var NB = (e, t, n = MB(e)) => n === 2 ? e.has(t) : yB[SB].hasOwnProperty.call(e, t), PB = (e, t, n = MB(e)) => n === 2 ? e.get(t) : e[t], FB = (e, t, n, r = MB(e)) => {
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
};
function _pe(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-var FB = Array.isArray, IB = (e) => e instanceof Map, LB = (e) => e instanceof Set, RB = (e) => typeof e == "object", zB = (e) => typeof e == "function", BB = (e) => typeof e == "boolean";
+var IB = Array.isArray, LB = (e) => e instanceof Map, RB = (e) => e instanceof Set, zB = (e) => typeof e == "object", BB = (e) => typeof e == "function", VB = (e) => typeof e == "boolean";
function vpe(e) {
let t = +e;
return Number.isInteger(t) && String(t) === e;
}
-var VB = (e) => e.copy_ || e.base_, HB = (e) => e.modified_ ? e.copy_ : e.base_;
-function UB(e, t) {
- if (IB(e)) return new Map(e);
- if (LB(e)) return new Set(e);
- if (FB(e)) return Array[xB].slice.call(e);
- let n = kB(e);
+var HB = (e) => e.copy_ || e.base_, UB = (e) => e.modified_ ? e.copy_ : e.base_;
+function WB(e, t) {
+ if (LB(e)) return new Map(e);
+ if (RB(e)) return new Set(e);
+ if (IB(e)) return Array[SB].slice.call(e);
+ let n = AB(e);
if (t === !0 || t === "class_only" && !n) {
- let t = vB.getOwnPropertyDescriptors(e);
- delete t[gB];
+ let t = yB.getOwnPropertyDescriptors(e);
+ delete t[_B];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
- a[wB] === !1 && (a[wB] = !0, a[SB] = !0), (a.get || a.set) && (t[i] = {
- [SB]: !0,
- [wB]: !0,
- [CB]: a[CB],
- [TB]: e[i]
+ a[TB] === !1 && (a[TB] = !0, a[CB] = !0), (a.get || a.set) && (t[i] = {
+ [CB]: !0,
+ [TB]: !0,
+ [wB]: a[wB],
+ [EB]: e[i]
});
}
- return vB.create(yB(e), t);
+ return yB.create(bB(e), t);
}
{
- let t = yB(e);
+ let t = bB(e);
if (t !== null && n) return { ...e };
- let r = vB.create(t);
- return vB.assign(r, e);
- }
-}
-function WB(e, t = !1) {
- return KB(e) || EB(e) || !DB(e) ? e : (jB(e) > 1 && vB.defineProperties(e, {
- set: GB,
- add: GB,
- clear: GB,
- delete: GB
- }), vB.freeze(e), t && AB(e, (e, t) => {
- WB(t, !0);
+ let r = yB.create(t);
+ return yB.assign(r, e);
+ }
+}
+function GB(e, t = !1) {
+ return qB(e) || DB(e) || !OB(e) ? e : (MB(e) > 1 && yB.defineProperties(e, {
+ set: KB,
+ add: KB,
+ clear: KB,
+ delete: KB
+ }), yB.freeze(e), t && jB(e, (e, t) => {
+ GB(t, !0);
}, !1), e);
}
function ype() {
- _B(2);
+ vB(2);
}
-var GB = { [TB]: ype };
-function KB(e) {
- return e === null || !RB(e) || vB.isFrozen(e);
+var KB = { [EB]: ype };
+function qB(e) {
+ return e === null || !zB(e) || yB.isFrozen(e);
}
-var qB = "MapSet", JB = "Patches", YB = "ArrayMethods", XB = {};
-function ZB(e) {
- let t = XB[e];
- return t || _B(0, e), t;
+var JB = "MapSet", YB = "Patches", XB = "ArrayMethods", ZB = {};
+function QB(e) {
+ let t = ZB[e];
+ return t || vB(0, e), t;
}
-var QB = (e) => !!XB[e], $B, eV = () => $B, bpe = (e, t) => ({
+var $B = (e) => !!ZB[e], eV, tV = () => eV, bpe = (e, t) => ({
drafts_: [],
parent_: e,
immer_: t,
@@ -47649,114 +47676,114 @@ var QB = (e) => !!XB[e], $B, eV = () => $B, bpe = (e, t) => ({
unfinalizedDrafts_: 0,
handledSet_: /* @__PURE__ */ new Set(),
processedForPatches_: /* @__PURE__ */ new Set(),
- mapSetPlugin_: QB(qB) ? ZB(qB) : void 0,
- arrayMethodsPlugin_: QB(YB) ? ZB(YB) : void 0
+ mapSetPlugin_: $B(JB) ? QB(JB) : void 0,
+ arrayMethodsPlugin_: $B(XB) ? QB(XB) : void 0
});
-function tV(e, t) {
- t && (e.patchPlugin_ = ZB(JB), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
-}
-function nV(e) {
- rV(e), e.drafts_.forEach(xpe), e.drafts_ = null;
+function nV(e, t) {
+ t && (e.patchPlugin_ = QB(YB), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
function rV(e) {
- e === $B && ($B = e.parent_);
+ iV(e), e.drafts_.forEach(xpe), e.drafts_ = null;
}
-var iV = (e) => $B = bpe($B, e);
+function iV(e) {
+ e === eV && (eV = e.parent_);
+}
+var aV = (e) => eV = bpe(eV, e);
function xpe(e) {
- let t = e[gB];
+ let t = e[_B];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function aV(e, t) {
+function oV(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
if (e !== void 0 && e !== n) {
- n[gB].modified_ && (nV(t), _B(4)), DB(e) && (e = oV(t, e));
+ n[_B].modified_ && (rV(t), vB(4)), OB(e) && (e = sV(t, e));
let { patchPlugin_: r } = t;
- r && r.generateReplacementPatches_(n[gB].base_, e, t);
- } else e = oV(t, n);
- return Spe(t, e, !0), nV(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === mB ? void 0 : e;
-}
-function oV(e, t) {
- if (KB(t)) return t;
- let n = t[gB];
- if (!n) return dV(t, e.handledSet_, e);
- if (!cV(n, e)) return t;
+ r && r.generateReplacementPatches_(n[_B].base_, e, t);
+ } else e = sV(t, n);
+ return Spe(t, e, !0), rV(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === hB ? void 0 : e;
+}
+function sV(e, t) {
+ if (qB(t)) return t;
+ let n = t[_B];
+ if (!n) return fV(t, e.handledSet_, e);
+ if (!lV(n, e)) return t;
if (!n.modified_) return n.base_;
if (!n.finalized_) {
let { callbacks_: t } = n;
if (t) for (; t.length > 0;) t.pop()(e);
- uV(n, e);
+ dV(n, e);
}
return n.copy_;
}
function Spe(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && WB(t, n);
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && GB(t, n);
}
-function sV(e) {
+function cV(e) {
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
}
-var cV = (e, t) => e.scope_ === t, Cpe = [];
-function lV(e, t, n, r) {
- let i = VB(e), a = e.type_;
- if (r !== void 0 && NB(i, r, a) === t) {
- PB(i, r, n, a);
+var lV = (e, t) => e.scope_ === t, Cpe = [];
+function uV(e, t, n, r) {
+ let i = HB(e), a = e.type_;
+ if (r !== void 0 && PB(i, r, a) === t) {
+ FB(i, r, n, a);
return;
}
if (!e.draftLocations_) {
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
- AB(i, (e, n) => {
- if (EB(n)) {
+ jB(i, (e, n) => {
+ if (DB(n)) {
let r = t.get(n) || [];
r.push(e), t.set(n, r);
}
});
}
let o = e.draftLocations_.get(t) ?? Cpe;
- for (let e of o) PB(i, e, n, a);
+ for (let e of o) FB(i, e, n, a);
}
function wpe(e, t, n) {
e.callbacks_.push(function(r) {
let i = t;
- if (!i || !cV(i, r)) return;
+ if (!i || !lV(i, r)) return;
r.mapSetPlugin_?.fixSetContents(i);
- let a = HB(i);
- lV(e, i.draft_ ?? i, a, n), uV(i, r);
+ let a = UB(i);
+ uV(e, i.draft_ ?? i, a, n), dV(i, r);
});
}
-function uV(e, t) {
+function dV(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);
}
- sV(e);
+ cV(e);
}
}
function Tpe(e, t, n) {
let { scope_: r } = e;
- if (EB(n)) {
- let i = n[gB];
- cV(i, r) && i.callbacks_.push(function() {
- _V(e), lV(e, n, HB(i), t);
+ if (DB(n)) {
+ let i = n[_B];
+ lV(i, r) && i.callbacks_.push(function() {
+ vV(e), uV(e, n, UB(i), t);
});
- } else DB(n) && e.callbacks_.push(function() {
- let i = VB(e);
- e.type_ === 3 ? i.has(n) && dV(n, r.handledSet_, r) : NB(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && dV(NB(e.copy_, t, e.type_), r.handledSet_, r);
+ } else OB(n) && e.callbacks_.push(function() {
+ let i = HB(e);
+ e.type_ === 3 ? i.has(n) && fV(n, r.handledSet_, r) : PB(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && fV(PB(e.copy_, t, e.type_), r.handledSet_, r);
});
}
-function dV(e, t, n) {
- return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || EB(e) || t.has(e) || !DB(e) || KB(e) ? e : (t.add(e), AB(e, (r, i) => {
- if (EB(i)) {
- let t = i[gB];
- cV(t, n) && (PB(e, r, HB(t), e.type_), sV(t));
- } else DB(i) && dV(i, t, n);
+function fV(e, t, n) {
+ return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || DB(e) || t.has(e) || !OB(e) || qB(e) ? e : (t.add(e), jB(e, (r, i) => {
+ if (DB(i)) {
+ let t = i[_B];
+ lV(t, n) && (FB(e, r, UB(t), e.type_), cV(t));
+ } else OB(i) && fV(i, t, n);
}), e);
}
function Epe(e, t) {
- let n = FB(e), r = {
+ let n = IB(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : eV(),
+ scope_: t ? t.scope_ : tV(),
modified_: !1,
finalized_: !1,
assigned_: void 0,
@@ -47767,108 +47794,108 @@ function Epe(e, t) {
revoke_: null,
isManual_: !1,
callbacks_: void 0
- }, i = r, a = fV;
- n && (i = [r], a = pV);
+ }, i = r, a = pV;
+ n && (i = [r], a = mV);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, [s, r];
}
-var fV = {
+var pV = {
get(e, t) {
- if (t === gB) return e;
+ if (t === _B) 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 = VB(e);
- if (!MB(i, t, e.type_)) return Ope(e, i, t);
+ let i = HB(e);
+ if (!NB(i, t, e.type_)) return Ope(e, i, t);
let a = i[t];
- if (e.finalized_ || !DB(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && vpe(t)) return a;
- if (a === mV(e.base_, t) || Dpe(e, t, a)) {
- _V(e);
- let n = e.type_ === 1 ? +t : t, r = vV(e.scope_, a, e, n);
+ if (e.finalized_ || !OB(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && vpe(t)) return a;
+ if (a === hV(e.base_, t) || Dpe(e, t, a)) {
+ vV(e);
+ let n = e.type_ === 1 ? +t : t, r = yV(e.scope_, a, e, n);
return e.copy_[n] = r;
}
return a;
},
has(e, t) {
- return t in VB(e);
+ return t in HB(e);
},
ownKeys(e) {
- return Reflect.ownKeys(VB(e));
+ return Reflect.ownKeys(HB(e));
},
set(e, t, n) {
- let r = hV(VB(e), t);
+ let r = gV(HB(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = mV(VB(e), t), i = r?.[gB];
+ let r = hV(HB(e), t), i = r?.[_B];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
- if (_pe(n, r) && (n !== void 0 || MB(e.base_, t, e.type_))) return !0;
- _V(e), gV(e);
+ if (_pe(n, r) && (n !== void 0 || NB(e.base_, t, e.type_))) return !0;
+ vV(e), _V(e);
}
- return e.copy_[t] === n && (n !== void 0 || MB(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), Tpe(e, t, n), !0);
+ return e.copy_[t] === n && (n !== void 0 || NB(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), Tpe(e, t, n), !0);
},
deleteProperty(e, t) {
- return _V(e), mV(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), gV(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
+ return vV(e), hV(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), _V(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = VB(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = HB(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
- [wB]: !0,
- [SB]: e.type_ !== 1 || t !== "length",
- [CB]: r[CB],
- [TB]: n[t]
+ [TB]: !0,
+ [CB]: e.type_ !== 1 || t !== "length",
+ [wB]: r[wB],
+ [EB]: n[t]
};
},
defineProperty() {
- _B(11);
+ vB(11);
},
getPrototypeOf(e) {
- return yB(e.base_);
+ return bB(e.base_);
},
setPrototypeOf() {
- _B(12);
+ vB(12);
}
-}, pV = {};
-for (let e in fV) {
- let t = fV[e];
- pV[e] = function() {
+}, mV = {};
+for (let e in pV) {
+ let t = pV[e];
+ mV[e] = function() {
let e = arguments;
return e[0] = e[0][0], t.apply(this, e);
};
}
-pV.deleteProperty = function(e, t) {
- return pV.set.call(this, e, t, void 0);
-}, pV.set = function(e, t, n) {
- return fV.set.call(this, e[0], t, n, e[0]);
+mV.deleteProperty = function(e, t) {
+ return mV.set.call(this, e, t, void 0);
+}, mV.set = function(e, t, n) {
+ return pV.set.call(this, e[0], t, n, e[0]);
};
-function mV(e, t) {
- let n = e[gB];
- return (n ? VB(n) : e)[t];
+function hV(e, t) {
+ let n = e[_B];
+ return (n ? HB(n) : e)[t];
}
function Dpe(e, t, n) {
- return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !DB(n) || n[gB] ? !1 : e.baseRefs_.has(n);
+ return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !OB(n) || n[_B] ? !1 : e.baseRefs_.has(n);
}
function Ope(e, t, n) {
- let r = hV(t, n);
- return r ? TB in r ? r[TB] : r.get?.call(e.draft_) : void 0;
+ let r = gV(t, n);
+ return r ? EB in r ? r[EB] : r.get?.call(e.draft_) : void 0;
}
-function hV(e, t) {
+function gV(e, t) {
if (!(t in e)) return;
- let n = yB(e);
+ let n = bB(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = yB(n);
+ n = bB(n);
}
}
-function gV(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && gV(e.parent_));
-}
function _V(e) {
- e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), UB(e.base_, e.scope_.immer_.useStrictShallowCopy_));
+ e.modified_ || (e.modified_ = !0, e.parent_ && _V(e.parent_));
+}
+function vV(e) {
+ e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), WB(e.base_, e.scope_.immer_.useStrictShallowCopy_));
}
var kpe = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
- if (zB(e) && !zB(t)) {
+ if (BB(e) && !BB(t)) {
let n = t;
t = e;
let r = this;
@@ -47876,30 +47903,30 @@ var kpe = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- zB(t) || _B(6), n !== void 0 && !zB(n) && _B(7);
+ BB(t) || vB(6), n !== void 0 && !BB(n) && vB(7);
let r;
- if (DB(e)) {
- let i = iV(this), a = vV(i, e, void 0), o = !0;
+ if (OB(e)) {
+ let i = aV(this), a = yV(i, e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? nV(i) : rV(i);
+ o ? rV(i) : iV(i);
}
- return tV(i, n), aV(r, i);
+ return nV(i, n), oV(r, i);
}
- if (!e || !RB(e)) {
- if (r = t(e), r === void 0 && (r = e), r === mB && (r = void 0), this.autoFreeze_ && WB(r, !0), n) {
+ if (!e || !zB(e)) {
+ if (r = t(e), r === void 0 && (r = e), r === hB && (r = void 0), this.autoFreeze_ && GB(r, !0), n) {
let t = [], i = [];
- ZB(JB).generateReplacementPatches_(e, r, {
+ QB(YB).generateReplacementPatches_(e, r, {
patches_: t,
inversePatches_: i
}), n(t, i);
}
return r;
}
- _B(1, e);
+ vB(1, e);
}, this.produceWithPatches = (e, t) => {
- if (zB(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
+ if (BB(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
return [
this.produce(e, t, (e, t) => {
@@ -47908,18 +47935,18 @@ var kpe = class {
n,
r
];
- }, BB(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), BB(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), BB(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
+ }, VB(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), VB(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), VB(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- DB(e) || _B(8), EB(e) && (e = yV(e));
- let t = iV(this), n = vV(t, e, void 0);
- return n[gB].isManual_ = !0, rV(t), n;
+ OB(e) || vB(8), DB(e) && (e = bV(e));
+ let t = aV(this), n = yV(t, e, void 0);
+ return n[_B].isManual_ = !0, iV(t), n;
}
finishDraft(e, t) {
- let n = e && e[gB];
- (!n || !n.isManual_) && _B(9);
+ let n = e && e[_B];
+ (!n || !n.isManual_) && vB(9);
let { scope_: r } = n;
- return tV(r, t), aV(void 0, r);
+ return nV(r, t), oV(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -47943,48 +47970,48 @@ var kpe = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = ZB(JB).applyPatches_;
- return EB(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = QB(YB).applyPatches_;
+ return DB(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function vV(e, t, n, r) {
- let [i, a] = IB(t) ? ZB(qB).proxyMap_(t, n) : LB(t) ? ZB(qB).proxySet_(t, n) : Epe(t, n);
- return (n?.scope_ ?? eV()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? wpe(n, a, r) : a.callbacks_.push(function(e) {
+function yV(e, t, n, r) {
+ let [i, a] = LB(t) ? QB(JB).proxyMap_(t, n) : RB(t) ? QB(JB).proxySet_(t, n) : Epe(t, n);
+ return (n?.scope_ ?? tV()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? wpe(n, a, r) : a.callbacks_.push(function(e) {
e.mapSetPlugin_?.fixSetContents(a);
let { patchPlugin_: t } = e;
a.modified_ && t && t.generatePatches_(a, [], e);
}), i;
}
-function yV(e) {
- return EB(e) || _B(10, e), bV(e);
-}
function bV(e) {
- if (!DB(e) || KB(e)) return e;
- let t = e[gB], n, r = !0;
+ return DB(e) || vB(10, e), xV(e);
+}
+function xV(e) {
+ if (!OB(e) || qB(e)) return e;
+ let t = e[_B], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = UB(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = UB(e, !0);
- return AB(n, (e, t) => {
- PB(n, e, bV(t));
+ t.finalized_ = !0, n = WB(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = WB(e, !0);
+ return jB(n, (e, t) => {
+ FB(n, e, xV(t));
}, r), t && (t.finalized_ = !1), n;
}
globalThis.Iterator?.from;
-var xV = new kpe().produce;
+var SV = new kpe().produce;
//#endregion
//#region node_modules/redux-thunk/dist/redux-thunk.mjs
-function SV(e) {
+function CV(e) {
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
}
-var Ape = SV(), jpe = SV, Mpe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
- if (arguments.length !== 0) return typeof arguments[0] == "object" ? fB : fB.apply(null, arguments);
+var Ape = CV(), jpe = CV, Mpe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
+ if (arguments.length !== 0) return typeof arguments[0] == "object" ? pB : pB.apply(null, arguments);
};
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
-function CV(e, t) {
+function wV(e, t) {
function n(...n) {
if (t) {
let r = t(...n);
- if (!r) throw Error(MH(0));
+ if (!r) throw Error(NH(0));
return {
type: e,
payload: r.payload,
@@ -47997,9 +48024,9 @@ function CV(e, t) {
payload: n[0]
};
}
- return n.toString = () => `${e}`, n.type = e, n.match = (t) => pB(t) && t.type === e, n;
+ return n.toString = () => `${e}`, n.type = e, n.match = (t) => mB(t) && t.type === e, n;
}
-var wV = class e extends Array {
+var TV = class e extends Array {
constructor(...t) {
super(...t), Object.setPrototypeOf(this, e.prototype);
}
@@ -48013,29 +48040,29 @@ var wV = class e extends Array {
return t.length === 1 && Array.isArray(t[0]) ? new e(...t[0].concat(this)) : new e(...t.concat(this));
}
};
-function TV(e) {
- return DB(e) ? xV(e, () => {}) : e;
+function EV(e) {
+ return OB(e) ? SV(e, () => {}) : e;
}
-function EV(e, t, n) {
+function DV(e, t, n) {
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
}
-function DV(e) {
+function OV(e) {
return typeof e == "boolean";
}
-var OV = () => function(e) {
- let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new wV();
- return t && (DV(t) ? a.push(Ape) : a.push(jpe(t.extraArgument))), a;
-}, kV = "RTK_autoBatch", AV = () => (e) => ({
+var kV = () => function(e) {
+ let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new TV();
+ return t && (OV(t) ? a.push(Ape) : a.push(jpe(t.extraArgument))), a;
+}, AV = "RTK_autoBatch", jV = () => (e) => ({
payload: e,
- meta: { [kV]: !0 }
-}), jV = (e) => (t) => {
+ meta: { [AV]: !0 }
+}), MV = (e) => (t) => {
setTimeout(t, e);
-}, MV = (e, t) => (n) => {
+}, NV = (e, t) => (n) => {
let r = !1, i = () => {
r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());
}, a = e(i), o = setTimeout(i, t);
-}, NV = (e = { type: "raf" }) => (t) => (...n) => {
- let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? MV(window.requestAnimationFrame, 100) : jV(10) : e.type === "callback" ? e.queueNotification : jV(e.timeout), l = () => {
+}, PV = (e = { type: "raf" }) => (t) => (...n) => {
+ let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? NV(window.requestAnimationFrame, 100) : MV(10) : e.type === "callback" ? e.queueNotification : MV(e.timeout), l = () => {
o = !1, a && (a = !1, s.forEach((e) => e()));
};
return Object.assign({}, r, {
@@ -48047,37 +48074,37 @@ var OV = () => function(e) {
},
dispatch(e) {
try {
- return i = !e?.meta?.[kV], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
+ return i = !e?.meta?.[AV], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
} finally {
i = !0;
}
}
});
-}, PV = (e) => function(t) {
- let { autoBatch: n = !0 } = t ?? {}, r = new wV(e);
- return n && r.push(NV(typeof n == "object" ? n : void 0)), r;
+}, FV = (e) => function(t) {
+ let { autoBatch: n = !0 } = t ?? {}, r = new TV(e);
+ return n && r.push(PV(typeof n == "object" ? n : void 0)), r;
};
-function FV(e) {
- let t = OV(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
+function IV(e) {
+ let t = kV(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
if (typeof n == "function") c = n;
- else if (lB(n)) c = dB(n);
- else throw Error(MH(1));
+ else if (uB(n)) c = fB(n);
+ else throw Error(NH(1));
let l;
l = typeof r == "function" ? r(t) : t();
- let u = fB;
+ let u = pB;
i && (u = Mpe({
trace: !1,
...typeof i == "object" && i
}));
- let d = PV(hpe(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
- return uB(c, o, p);
+ let d = FV(hpe(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
+ return dB(c, o, p);
}
-function IV(e) {
+function LV(e) {
let t = {}, n = [], r, i = {
addCase(e, n) {
let r = typeof e == "string" ? e : e.type;
- if (!r) throw Error(MH(28));
- if (r in t) throw Error(MH(29));
+ if (!r) throw Error(NH(28));
+ if (r in t) throw Error(NH(29));
return t[r] = n, i;
},
addAsyncThunk(e, r) {
@@ -48102,25 +48129,25 @@ function IV(e) {
r
];
}
-function LV(e) {
+function RV(e) {
return typeof e == "function";
}
-function RV(e, t) {
- let [n, r, i] = IV(t), a;
- if (LV(e)) a = () => TV(e());
+function zV(e, t) {
+ let [n, r, i] = LV(t), a;
+ if (RV(e)) a = () => EV(e());
else {
- let t = TV(e);
+ let t = EV(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 (EB(e)) {
+ if (DB(e)) {
let r = n(e, t);
return r === void 0 ? e : r;
}
- if (DB(e)) return xV(e, (e) => n(e, t));
+ if (OB(e)) return SV(e, (e) => n(e, t));
{
let r = n(e, t);
if (r === void 0) {
@@ -48135,20 +48162,20 @@ function RV(e, t) {
}
return o.getInitialState = a, o;
}
-var zV = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", BV = (e = 21) => {
+var BV = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", VV = (e = 21) => {
let t = "", n = e;
- for (; n--;) t += zV[Math.random() * 64 | 0];
+ for (; n--;) t += BV[Math.random() * 64 | 0];
return t;
-}, VV = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
-function HV(e, t) {
+}, HV = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
+function UV(e, t) {
return `${e}/${t}`;
}
-function UV({ creators: e } = {}) {
- let t = e?.asyncThunk?.[VV];
+function WV({ creators: e } = {}) {
+ let t = e?.asyncThunk?.[HV];
return function(e) {
let { name: n, reducerPath: r = n } = e;
- if (!n) throw Error(MH(11));
- let i = (typeof e.reducers == "function" ? e.reducers(KV()) : e.reducers) || {}, a = Object.keys(i), o = {
+ if (!n) throw Error(NH(11));
+ let i = (typeof e.reducers == "function" ? e.reducers(qV()) : e.reducers) || {}, a = Object.keys(i), o = {
sliceCaseReducersByName: {},
sliceCaseReducersByType: {},
actionCreators: {},
@@ -48156,8 +48183,8 @@ function UV({ creators: e } = {}) {
}, s = {
addCase(e, t) {
let n = typeof e == "string" ? e : e.type;
- if (!n) throw Error(MH(12));
- if (n in o.sliceCaseReducersByType) throw Error(MH(13));
+ if (!n) throw Error(NH(12));
+ if (n in o.sliceCaseReducersByType) throw Error(NH(13));
return o.sliceCaseReducersByType[n] = t, s;
},
addMatcher(e, t) {
@@ -48176,17 +48203,17 @@ function UV({ creators: e } = {}) {
a.forEach((r) => {
let a = i[r], o = {
reducerName: r,
- type: HV(n, r),
+ type: UV(n, r),
createNotation: typeof e.reducers == "function"
};
- JV(a) ? XV(o, a, s, t) : qV(o, a, s);
+ YV(a) ? ZV(o, a, s, t) : JV(o, a, s);
});
function c() {
- let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? IV(e.extraReducers) : [e.extraReducers], i = {
+ let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? LV(e.extraReducers) : [e.extraReducers], i = {
...t,
...o.sliceCaseReducersByType
};
- return RV(e.initialState, (e) => {
+ return zV(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);
@@ -48203,12 +48230,12 @@ function UV({ creators: e } = {}) {
function h(t, n = !1) {
function r(e) {
let i = e[t];
- return i === void 0 && n && (i = EV(d, r, m)), i;
+ return i === void 0 && n && (i = DV(d, r, m)), i;
}
function i(t = l) {
- return EV(EV(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
+ return DV(DV(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
let r = {};
- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = WV(a, t, () => EV(d, t, m), n);
+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = GV(a, t, () => DV(d, t, m), n);
return r;
});
}
@@ -48242,15 +48269,15 @@ function UV({ creators: e } = {}) {
return g;
};
}
-function WV(e, t, n, r) {
+function GV(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 GV = /* @__PURE__ */ UV();
-function KV() {
+var KV = /* @__PURE__ */ WV();
+function qV() {
function e(e, t) {
return {
_reducerDefinitionType: "asyncThunk",
@@ -48274,57 +48301,57 @@ function KV() {
asyncThunk: e
};
}
-function qV({ type: e, reducerName: t, createNotation: n }, r, i) {
+function JV({ type: e, reducerName: t, createNotation: n }, r, i) {
let a, o;
if ("reducer" in r) {
- if (n && !YV(r)) throw Error(MH(17));
+ if (n && !XV(r)) throw Error(NH(17));
a = r.reducer, o = r.prepare;
} else a = r;
- i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? CV(e, o) : CV(e));
+ i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? wV(e, o) : wV(e));
}
-function JV(e) {
+function YV(e) {
return e._reducerDefinitionType === "asyncThunk";
}
-function YV(e) {
+function XV(e) {
return e._reducerDefinitionType === "reducerWithPrepare";
}
-function XV({ type: e, reducerName: t }, n, r, i) {
- if (!i) throw Error(MH(18));
+function ZV({ type: e, reducerName: t }, n, r, i) {
+ if (!i) throw Error(NH(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 || ZV,
- pending: s || ZV,
- rejected: c || ZV,
- settled: l || ZV
+ fulfilled: o || QV,
+ pending: s || QV,
+ rejected: c || QV,
+ settled: l || QV
});
}
-function ZV() {}
-var QV = "task", $V = "listener", eH = "completed", tH = "cancelled", nH = `task-${tH}`, rH = `task-${eH}`, iH = `${$V}-${tH}`, aH = `${$V}-${eH}`, oH = class {
+function QV() {}
+var $V = "task", eH = "listener", tH = "completed", nH = "cancelled", rH = `task-${nH}`, iH = `task-${tH}`, aH = `${eH}-${nH}`, oH = `${eH}-${tH}`, sH = class {
constructor(e) {
- this.code = e, this.message = `${QV} ${tH} (reason: ${e})`;
+ this.code = e, this.message = `${$V} ${nH} (reason: ${e})`;
}
code;
name = "TaskAbortError";
message;
-}, sH = (e, t) => {
- if (typeof e != "function") throw TypeError(MH(32));
-}, cH = () => {}, lH = (e, t = cH) => (e.catch(t), e), uH = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), dH = (e) => {
- if (e.aborted) throw new oH(e.reason);
+}, cH = (e, t) => {
+ if (typeof e != "function") throw TypeError(NH(32));
+}, lH = () => {}, uH = (e, t = lH) => (e.catch(t), e), dH = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), fH = (e) => {
+ if (e.aborted) throw new sH(e.reason);
};
-function fH(e, t) {
- let n = cH;
+function pH(e, t) {
+ let n = lH;
return new Promise((r, i) => {
- let a = () => i(new oH(e.reason));
+ let a = () => i(new sH(e.reason));
if (e.aborted) {
a();
return;
}
- n = uH(e, a), t.finally(() => n()).then(r, i);
+ n = dH(e, a), t.finally(() => n()).then(r, i);
}).finally(() => {
- n = cH;
+ n = lH;
});
}
-var pH = async (e, t) => {
+var mH = async (e, t) => {
try {
return await Promise.resolve(), {
status: "ok",
@@ -48332,40 +48359,40 @@ var pH = async (e, t) => {
};
} catch (e) {
return {
- status: e instanceof oH ? "cancelled" : "rejected",
+ status: e instanceof sH ? "cancelled" : "rejected",
error: e
};
} finally {
t?.();
}
-}, mH = (e) => (t) => lH(fH(e, t).then((t) => (dH(e), t))), hH = (e) => {
- let t = mH(e);
+}, hH = (e) => (t) => uH(pH(e, t).then((t) => (fH(e), t))), gH = (e) => {
+ let t = hH(e);
return (e) => t(new Promise((t) => setTimeout(t, e)));
-}, { assign: gH } = Object, _H = {}, vH = "listenerMiddleware", yH = (e, t) => {
- let n = (t) => uH(e, () => t.abort(e.reason));
+}, { assign: _H } = Object, vH = {}, yH = "listenerMiddleware", bH = (e, t) => {
+ let n = (t) => dH(e, () => t.abort(e.reason));
return (r, i) => {
- sH(r, "taskExecutor");
+ cH(r, "taskExecutor");
let a = new AbortController();
n(a);
- let o = pH(async () => {
- dH(e), dH(a.signal);
+ let o = mH(async () => {
+ fH(e), fH(a.signal);
let t = await r({
- pause: mH(a.signal),
- delay: hH(a.signal),
+ pause: hH(a.signal),
+ delay: gH(a.signal),
signal: a.signal
});
- return dH(a.signal), t;
- }, () => a.abort(rH));
- return i?.autoJoin && t.push(o.catch(cH)), {
- result: mH(e)(o),
+ return fH(a.signal), t;
+ }, () => a.abort(iH));
+ return i?.autoJoin && t.push(o.catch(lH)), {
+ result: hH(e)(o),
cancel() {
- a.abort(nH);
+ a.abort(rH);
}
};
};
-}, bH = (e, t) => {
+}, xH = (e, t) => {
let n = async (n, r) => {
- dH(t);
+ fH(t);
let i = () => {}, a = [new Promise((t, r) => {
let a = e({
predicate: n,
@@ -48383,47 +48410,47 @@ var pH = async (e, t) => {
})];
r != null && a.push(new Promise((e) => setTimeout(e, r, null)));
try {
- let e = await fH(t, Promise.race(a));
- return dH(t), e;
+ let e = await pH(t, Promise.race(a));
+ return fH(t), e;
} finally {
i();
}
};
- return ((e, t) => lH(n(e, t)));
-}, xH = (e) => {
+ return ((e, t) => uH(n(e, t)));
+}, SH = (e) => {
let { type: t, actionCreator: n, matcher: r, predicate: i, effect: a } = e;
- if (t) i = CV(t).match;
+ if (t) i = wV(t).match;
else if (n) t = n.type, i = n.match;
else if (r) i = r;
- else if (!i) throw Error(MH(21));
- return sH(a, "options.listener"), {
+ else if (!i) throw Error(NH(21));
+ return cH(a, "options.listener"), {
predicate: i,
type: t,
effect: a
};
-}, SH = /* @__PURE__ */ gH((e) => {
- let { type: t, predicate: n, effect: r } = xH(e);
+}, CH = /* @__PURE__ */ _H((e) => {
+ let { type: t, predicate: n, effect: r } = SH(e);
return {
- id: BV(),
+ id: VV(),
effect: r,
type: t,
predicate: n,
pending: /* @__PURE__ */ new Set(),
unsubscribe: () => {
- throw Error(MH(22));
+ throw Error(NH(22));
}
};
-}, { withTypes: () => SH }), CH = (e, t) => {
- let { type: n, effect: r, predicate: i } = xH(t);
+}, { withTypes: () => CH }), wH = (e, t) => {
+ let { type: n, effect: r, predicate: i } = SH(t);
return Array.from(e.values()).find((e) => (typeof n == "string" ? e.type === n : e.predicate === i) && e.effect === r);
-}, wH = (e) => {
+}, TH = (e) => {
e.pending.forEach((e) => {
- e.abort(iH);
+ e.abort(aH);
});
-}, TH = (e, t) => () => {
- for (let e of t.keys()) wH(e);
+}, EH = (e, t) => () => {
+ for (let e of t.keys()) TH(e);
e.clear();
-}, EH = (e, t, n) => {
+}, DH = (e, t, n) => {
try {
e(t, n);
} catch (e) {
@@ -48431,74 +48458,74 @@ var pH = async (e, t) => {
throw e;
}, 0);
}
-}, DH = /* @__PURE__ */ gH(/* @__PURE__ */ CV(`${vH}/add`), { withTypes: () => DH }), OH = /* @__PURE__ */ CV(`${vH}/removeAll`), kH = /* @__PURE__ */ gH(/* @__PURE__ */ CV(`${vH}/remove`), { withTypes: () => kH }), AH = (...e) => {
- console.error(`${vH}/error`, ...e);
-}, jH = (e = {}) => {
+}, OH = /* @__PURE__ */ _H(/* @__PURE__ */ wV(`${yH}/add`), { withTypes: () => OH }), kH = /* @__PURE__ */ wV(`${yH}/removeAll`), AH = /* @__PURE__ */ _H(/* @__PURE__ */ wV(`${yH}/remove`), { withTypes: () => AH }), jH = (...e) => {
+ console.error(`${yH}/error`, ...e);
+}, MH = (e = {}) => {
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 = AH } = e;
- sH(o, "onError");
+ }, { extra: a, onError: o = jH } = e;
+ cH(o, "onError");
let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {
- e.unsubscribe(), t?.cancelActive && wH(e);
+ e.unsubscribe(), t?.cancelActive && TH(e);
}), c = ((e) => {
- let n = CH(t, e) ?? SH(e);
+ let n = wH(t, e) ?? CH(e);
return s(n);
});
- gH(c, { withTypes: () => c });
+ _H(c, { withTypes: () => c });
let l = (e) => {
- let n = CH(t, e);
- return n && (n.unsubscribe(), e.cancelActive && wH(n)), !!n;
+ let n = wH(t, e);
+ return n && (n.unsubscribe(), e.cancelActive && TH(n)), !!n;
};
- gH(l, { withTypes: () => l });
+ _H(l, { withTypes: () => l });
let u = async (e, n, s, l) => {
- let u = new AbortController(), d = bH(c, u.signal), f = [];
+ let u = new AbortController(), d = xH(c, u.signal), f = [];
try {
- e.pending.add(u), r(e), await Promise.resolve(e.effect(n, gH({}, s, {
+ e.pending.add(u), r(e), await Promise.resolve(e.effect(n, _H({}, s, {
getOriginalState: l,
condition: (e, t) => d(e, t).then(Boolean),
take: d,
- delay: hH(u.signal),
- pause: mH(u.signal),
+ delay: gH(u.signal),
+ pause: hH(u.signal),
extra: a,
signal: u.signal,
- fork: yH(u.signal, f),
+ fork: bH(u.signal, f),
unsubscribe: e.unsubscribe,
subscribe: () => {
t.set(e.id, e);
},
cancelActiveListeners: () => {
e.pending.forEach((e, t, n) => {
- e !== u && (e.abort(iH), n.delete(e));
+ e !== u && (e.abort(aH), n.delete(e));
});
},
cancel: () => {
- u.abort(iH), e.pending.delete(u);
+ u.abort(aH), e.pending.delete(u);
},
throwIfCancelled: () => {
- dH(u.signal);
+ fH(u.signal);
}
})));
} catch (e) {
- e instanceof oH || EH(o, e, { raisedBy: "effect" });
+ e instanceof sH || DH(o, e, { raisedBy: "effect" });
} finally {
- await Promise.all(f), u.abort(aH), i(e), e.pending.delete(u);
+ await Promise.all(f), u.abort(oH), i(e), e.pending.delete(u);
}
- }, d = TH(t, n);
+ }, d = EH(t, n);
return {
middleware: (e) => (n) => (r) => {
- if (!pB(r)) return n(r);
- if (DH.match(r)) return c(r.payload);
- if (OH.match(r)) {
+ if (!mB(r)) return n(r);
+ if (OH.match(r)) return c(r.payload);
+ if (kH.match(r)) {
d();
return;
}
- if (kH.match(r)) return l(r.payload);
+ if (AH.match(r)) return l(r.payload);
let i = e.getState(), a = () => {
- if (i === _H) throw Error(MH(23));
+ if (i === vH) throw Error(NH(23));
return i;
}, s;
try {
@@ -48509,13 +48536,13 @@ var pH = async (e, t) => {
try {
s = t.predicate(r, n, i);
} catch (e) {
- s = !1, EH(o, e, { raisedBy: "predicate" });
+ s = !1, DH(o, e, { raisedBy: "predicate" });
}
s && u(t, r, e, a);
}
}
} finally {
- i = _H;
+ i = vH;
}
return s;
},
@@ -48524,12 +48551,12 @@ var pH = async (e, t) => {
clearListeners: d
};
};
-function MH(e) {
+function NH(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 NH = GV({
+var PH = KV({
name: "chartLayout",
initialState: {
layoutType: "horizontal",
@@ -48557,23 +48584,23 @@ var NH = GV({
e.scale = t.payload;
}
}
-}), { setMargin: PH, setLayout: FH, setChartSize: IH, setScale: LH } = NH.actions, RH = NH.reducer;
+}), { setMargin: FH, setLayout: IH, setChartSize: LH, setScale: RH } = PH.actions, zH = PH.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getSliced.js
-function zH(e, t, n) {
+function BH(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 BH(e) {
+function VH(e) {
return Number.isFinite(e);
}
-function VH(e) {
+function HH(e) {
return typeof e == "number" && e > 0 && Number.isFinite(e);
}
//#endregion
//#region node_modules/recharts/es6/util/ChartUtils.js
-function HH(e, t) {
+function UH(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48583,30 +48610,30 @@ function HH(e, t) {
}
return n;
}
-function UH(e) {
+function WH(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? HH(Object(n), !0).forEach(function(t) {
- WH(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : HH(Object(n)).forEach(function(t) {
+ t % 2 ? UH(Object(n), !0).forEach(function(t) {
+ GH(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : UH(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function WH(e, t, n) {
- return (t = GH(t)) in e ? Object.defineProperty(e, t, {
+function GH(e, t, n) {
+ return (t = KH(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function GH(e) {
- var t = KH(e, "string");
+function KH(e) {
+ var t = qH(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function KH(e, t) {
+function qH(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48616,63 +48643,63 @@ function KH(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function qH(e, t, n) {
- return sz(e) || sz(t) ? n : tz(t) ? YR(e, t, n) : typeof t == "function" ? t(e) : n;
+function JH(e, t, n) {
+ return cz(e) || cz(t) ? n : nz(t) ? XR(e, t, n) : typeof t == "function" ? t(e) : n;
}
-var JH = (e, t, n) => {
+var YH = (e, t, n) => {
if (t && n) {
var { width: r, height: i } = n, { align: a, verticalAlign: o, layout: s } = t;
- if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return UH(UH({}, e), {}, { [a]: e[a] + (r || 0) });
- if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return UH(UH({}, e), {}, { [o]: e[o] + (i || 0) });
+ if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return WH(WH({}, e), {}, { [a]: e[a] + (r || 0) });
+ if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return WH(WH({}, e), {}, { [o]: e[o] + (i || 0) });
}
return e;
-}, YH = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", XH = (e, t, n, r) => {
+}, XH = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", ZH = (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;
-}, ZH = (e, t, n) => {
+}, QH = (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 ? QR(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
+ return h = p === "angleAxis" && a && a.length >= 2 ? $R(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 BH(i) ? {
+ return VH(i) ? {
coordinate: i + h,
value: e,
offset: h,
index: t
} : null;
- }).filter(lz) : c && l ? l.map((e, t) => {
+ }).filter(uz) : c && l ? l.map((e, t) => {
var n = o.map(e);
- return BH(n) ? {
+ return VH(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(lz) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
+ }).filter(uz) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
var n = o.map(e);
- return BH(n) ? {
+ return VH(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(lz) : o.domain().map((e, t) => {
+ }).filter(uz) : o.domain().map((e, t) => {
var n = o.map(e);
- return BH(n) ? {
+ return VH(n) ? {
coordinate: n + h,
value: r ? r[e] : e,
index: t,
offset: h
} : null;
- }).filter(lz);
-}, QH = (e, t) => {
+ }).filter(uz);
+}, $H = (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;
-}, $H = {
+}, eU = {
sign: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -48680,14 +48707,14 @@ var JH = (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 = $R(c) ? l : c;
+ var c = s[1], l = s[0], u = ez(c) ? l : c;
u >= 0 ? (s[0] = i, i += u, s[1] = i) : (s[0] = a, a += u, s[1] = a);
}
}
}
},
expand: Dde,
- none: VR,
+ none: HR,
silhouette: Ode,
wiggle: kde,
positive: (e) => {
@@ -48697,70 +48724,70 @@ var JH = (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 = $R(o[1]) ? o[0] : o[1];
+ var s = ez(o[1]) ? o[0] : o[1];
s >= 0 ? (o[0] = i, i += s, o[1] = i) : (o[0] = 0, o[1] = 0);
}
}
}
}
-}, eU = (e, t, n) => {
- var r = $H[n] ?? VR, i = Ede().keys(t).value((e, t) => Number(qH(e, t, 0))).order(HR).offset(r)(e);
+}, tU = (e, t, n) => {
+ var r = eU[n] ?? HR, i = Ede().keys(t).value((e, t) => Number(JH(e, t, 0))).order(UR).offset(r)(e);
return i.forEach((n, r) => {
n.forEach((n, i) => {
- var a = qH(e[i], t[r], 0);
+ var a = JH(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 tU(e) {
+function nU(e) {
return e == null ? void 0 : String(e);
}
-function nU(e) {
+function rU(e) {
var { axis: t, ticks: n, bandSize: r, entry: i, index: a, dataKey: o } = e;
if (t.type === "category") {
- if (!t.allowDuplicatedCategory && t.dataKey && !sz(i[t.dataKey])) {
- var s = oz(n, "value", i[t.dataKey]);
+ if (!t.allowDuplicatedCategory && t.dataKey && !cz(i[t.dataKey])) {
+ var s = sz(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 = qH(i, sz(o) ? t.dataKey : o), l = t.scale.map(c);
+ var c = JH(i, cz(o) ? t.dataKey : o), l = t.scale.map(c);
return Z(l) ? l : null;
}
-var rU = (e) => {
+var iU = (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 = qH(a, t.dataKey, t.scale.domain()[o]);
- if (sz(s)) return null;
+ var s = JH(a, t.dataKey, t.scale.domain()[o]);
+ if (cz(s)) return null;
var c = t.scale.map(s);
return Z(c) ? c - i / 2 + r : null;
-}, iU = (e) => {
+}, aU = (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];
-}, aU = (e) => {
+}, oU = (e) => {
var t = e.flat(2).filter(Z);
return [Math.min(...t), Math.max(...t)];
-}, oU = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], sU = (e, t, n) => {
- if (e != null) return oU(Object.keys(e).reduce((r, i) => {
+}, sU = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], cU = (e, t, n) => {
+ if (e != null) return sU(Object.keys(e).reduce((r, i) => {
var a = e[i];
if (!a) return r;
var { stackedData: o } = a, s = o.reduce((e, r) => {
- var i = aU(zH(r, t, n));
- return !BH(i[0]) || !BH(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
+ var i = oU(BH(r, t, n));
+ return !VH(i[0]) || !VH(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
}, [Infinity, -Infinity]);
return [Math.min(s[0], r[0]), Math.max(s[1], r[1])];
}, [Infinity, -Infinity]));
-}, cU = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, lU = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, uU = (e, t, n) => {
+}, lU = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, uU = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, dU = (e, t, n) => {
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 = tB(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {
+ for (var i = nB(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);
}
@@ -48768,26 +48795,26 @@ var rU = (e) => {
}
return n ? void 0 : 0;
};
-function dU(e) {
+function fU(e) {
var { tooltipEntrySettings: t, dataKey: n, payload: r, value: i, name: a } = e;
- return UH(UH({}, t), {}, {
+ return WH(WH({}, t), {}, {
dataKey: n,
payload: r,
value: i,
name: a
});
}
-function fU(e, t) {
+function pU(e, t) {
if (e) return String(e);
if (typeof t == "string") return t;
}
-var pU = (e, t) => {
+var mU = (e, t) => {
if (t === "horizontal") return e.relativeX;
if (t === "vertical") return e.relativeY;
-}, mU = (e, t) => t === "centric" ? e.angle : e.radius, hU = (e) => e.layout.width, gU = (e) => e.layout.height, _U = (e) => e.layout.scale, vU = (e) => e.layout.margin, yU = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), bU = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), xU = "data-recharts-item-index";
+}, hU = (e, t) => t === "centric" ? e.angle : e.radius, gU = (e) => e.layout.width, _U = (e) => e.layout.height, vU = (e) => e.layout.scale, yU = (e) => e.layout.margin, bU = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), xU = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), SU = "data-recharts-item-index";
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js
-function SU(e, t) {
+function CU(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48797,30 +48824,30 @@ function SU(e, t) {
}
return n;
}
-function CU(e) {
+function wU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? SU(Object(n), !0).forEach(function(t) {
- wU(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : SU(Object(n)).forEach(function(t) {
+ t % 2 ? CU(Object(n), !0).forEach(function(t) {
+ TU(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : CU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function wU(e, t, n) {
- return (t = TU(t)) in e ? Object.defineProperty(e, t, {
+function TU(e, t, n) {
+ return (t = EU(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function TU(e) {
- var t = EU(e, "string");
+function EU(e) {
+ var t = DU(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function EU(e, t) {
+function DU(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48830,58 +48857,58 @@ function EU(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var DU = (e) => e.brush.height;
-function OU(e) {
- return bU(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
-}
+var OU = (e) => e.brush.height;
function kU(e) {
- return bU(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+ return xU(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
function AU(e) {
- return yU(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
+ return xU(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
function jU(e) {
- return yU(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
+ return bU(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
+}
+function MU(e) {
+ return bU(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
-var MU = $([
- hU,
+var NU = $([
gU,
- vU,
- DU,
+ _U,
+ yU,
OU,
kU,
AU,
jU,
- nB,
+ MU,
+ rB,
dpe
], (e, t, n, r, i, a, o, s, c, l) => {
var u = {
left: (n.left || 0) + i,
right: (n.right || 0) + a
- }, d = CU(CU({}, {
+ }, d = wU(wU({}, {
top: (n.top || 0) + o,
bottom: (n.bottom || 0) + s
}), u), f = d.bottom;
- d.bottom += r, d = JH(d, c, l);
+ d.bottom += r, d = YH(d, c, l);
var p = e - d.left - d.right, m = t - d.top - d.bottom;
- return CU(CU({ brushBottom: f }, d), {}, {
+ return wU(wU({ brushBottom: f }, d), {}, {
width: Math.max(p, 0),
height: Math.max(m, 0)
});
-}), NU = $(MU, (e) => ({
+}), PU = $(NU, (e) => ({
x: e.left,
y: e.top,
width: e.width,
height: e.height
-})), PU = $(hU, gU, (e, t) => ({
+})), FU = $(gU, _U, (e, t) => ({
x: 0,
y: 0,
width: e,
height: t
-})), FU = /*#__PURE__*/ (0, I.createContext)(null), IU = () => (0, I.useContext)(FU) != null, LU = (e) => e.brush, RU = $([
- LU,
- MU,
- vU
+})), IU = /*#__PURE__*/ (0, I.createContext)(null), LU = () => (0, I.useContext)(IU) != null, RU = (e) => e.brush, zU = $([
+ RU,
+ NU,
+ yU
], (e, t, n) => ({
height: e.height,
x: Z(e.x) ? e.x : t.left,
@@ -48890,7 +48917,7 @@ var MU = $([
}));
//#endregion
//#region node_modules/es-toolkit/dist/function/debounce.mjs
-function zU(e, t, { signal: n, edges: r } = {}) {
+function BU(e, t, { signal: n, edges: r } = {}) {
let i, a = null, o = r != null && r.includes("leading"), s = r == null || r.includes("trailing"), c = () => {
a !== null && (e.apply(i, a), i = void 0, a = null);
}, l = () => {
@@ -48915,11 +48942,11 @@ function zU(e, t, { signal: n, edges: r } = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs
-function BU(e, t = 0, n = {}) {
+function VU(e, t = 0, n = {}) {
typeof n != "object" && (n = {});
let { leading: r = !1, trailing: i = !0, maxWait: a } = n, o = [, ,];
r && (o[0] = "leading"), i && (o[1] = "trailing");
- let s, c = null, l = zU(function(...t) {
+ let s, c = null, l = BU(function(...t) {
s = e.apply(this, t), c = null;
}, t, { edges: o }), u = function(...t) {
return a != null && (c === null && (c = Date.now()), Date.now() - c >= a) ? ((r || i) && (s = e.apply(this, t)), c = Date.now(), l.cancel(), l.schedule(), s) : (l.apply(this, t), s);
@@ -48928,9 +48955,9 @@ function BU(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs
-function VU(e, t = 0, n = {}) {
+function HU(e, t = 0, n = {}) {
let { leading: r = !0, trailing: i = !0 } = n;
- return BU(e, t, {
+ return VU(e, t, {
leading: r,
maxWait: t,
trailing: i
@@ -48938,7 +48965,7 @@ function VU(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/recharts/es6/util/LogUtils.js
-var HU = function(e, t) {
+var UU = function(e, t) {
var n = [...arguments].slice(2);
if (typeof console < "u" && console.warn && (t === void 0 && console.warn("LogUtils requires an error message argument"), !e)) {
if (t === void 0) console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
@@ -48947,7 +48974,7 @@ var HU = function(e, t) {
console.warn(t.replace(/%s/g, () => n[r++]));
}
}
-}, UU = {
+}, WU = {
width: "100%",
height: "100%",
debounce: 0,
@@ -48956,45 +48983,45 @@ var HU = function(e, t) {
width: -1,
height: -1
}
-}, WU = (e, t, n) => {
- var { width: r = UU.width, height: i = UU.height, aspect: a, maxHeight: o } = n, s = ez(r) ? e : Number(r), c = ez(i) ? t : Number(i);
+}, GU = (e, t, n) => {
+ var { width: r = WU.width, height: i = WU.height, aspect: a, maxHeight: o } = n, s = tz(r) ? e : Number(r), c = tz(i) ? t : Number(i);
return a && a > 0 && (s ? c = s / a : c && (s = c * a), o && c != null && c > o && (c = o)), {
calculatedWidth: s,
calculatedHeight: c
};
-}, GU = {
+}, KU = {
width: 0,
height: 0,
overflow: "visible"
-}, KU = {
+}, qU = {
width: 0,
overflowX: "visible"
-}, qU = {
+}, JU = {
height: 0,
overflowY: "visible"
-}, JU = {}, YU = (e) => {
- var { width: t, height: n } = e, r = ez(t), i = ez(n);
- return r && i ? GU : r ? KU : i ? qU : JU;
+}, YU = {}, XU = (e) => {
+ var { width: t, height: n } = e, r = tz(t), i = tz(n);
+ return r && i ? KU : r ? qU : i ? JU : YU;
};
-function XU(e) {
+function ZU(e) {
var { width: t, height: n, aspect: r } = e, i = t, a = n;
- return i === void 0 && a === void 0 ? (i = UU.width, a = UU.height) : i === void 0 ? i = r && r > 0 ? void 0 : UU.width : a === void 0 && (a = r && r > 0 ? void 0 : UU.height), {
+ return i === void 0 && a === void 0 ? (i = WU.width, a = WU.height) : i === void 0 ? i = r && r > 0 ? void 0 : WU.width : a === void 0 && (a = r && r > 0 ? void 0 : WU.height), {
width: i,
height: a
};
}
//#endregion
//#region node_modules/recharts/es6/component/ResponsiveContainer.js
-function ZU() {
- return ZU = Object.assign ? Object.assign.bind() : function(e) {
+function QU() {
+ return QU = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, ZU.apply(null, arguments);
+ }, QU.apply(null, arguments);
}
-function QU(e, t) {
+function $U(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -49004,30 +49031,30 @@ function QU(e, t) {
}
return n;
}
-function $U(e) {
+function eW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? QU(Object(n), !0).forEach(function(t) {
- eW(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : QU(Object(n)).forEach(function(t) {
+ t % 2 ? $U(Object(n), !0).forEach(function(t) {
+ tW(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $U(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function eW(e, t, n) {
- return (t = tW(t)) in e ? Object.defineProperty(e, t, {
+function tW(e, t, n) {
+ return (t = nW(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function tW(e) {
- var t = nW(e, "string");
+function nW(e) {
+ var t = rW(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function nW(e, t) {
+function rW(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -49037,19 +49064,19 @@ function nW(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var rW = /*#__PURE__*/ (0, I.createContext)(UU.initialDimension);
-function iW(e) {
- return VH(e.width) && VH(e.height);
-}
+var iW = /*#__PURE__*/ (0, I.createContext)(WU.initialDimension);
function aW(e) {
+ return HH(e.width) && HH(e.height);
+}
+function oW(e) {
var { children: t, width: n, height: r } = e, i = (0, I.useMemo)(() => ({
width: n,
height: r
}), [n, r]);
- return iW(i) ? /*#__PURE__*/ I.createElement(rW.Provider, { value: i }, t) : null;
+ return aW(i) ? /*#__PURE__*/ I.createElement(iW.Provider, { value: i }, t) : null;
}
-var oW = () => (0, I.useContext)(rW), sW = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { aspect: n, initialDimension: r = UU.initialDimension, width: i, height: a, minWidth: o = UU.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = UU.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, I.useRef)(null), g = (0, I.useRef)();
+var sW = () => (0, I.useContext)(iW), cW = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var { aspect: n, initialDimension: r = WU.initialDimension, width: i, height: a, minWidth: o = WU.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = WU.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, I.useRef)(null), g = (0, I.useRef)();
g.current = p, (0, I.useImperativeHandle)(t, () => h.current);
var [_, v] = (0, I.useState)({
containerWidth: r.width,
@@ -49064,7 +49091,7 @@ var oW = () => (0, I.useContext)(rW), sW = /*#__PURE__*/ (0, I.forwardRef)((e, t
});
}, []);
(0, I.useEffect)(() => {
- if (h.current == null || typeof ResizeObserver > "u") return uz;
+ if (h.current == null || typeof ResizeObserver > "u") return dz;
var e = (e) => {
var t, n = e[0];
if (n != null) {
@@ -49072,7 +49099,7 @@ var oW = () => (0, I.useContext)(rW), sW = /*#__PURE__*/ (0, I.forwardRef)((e, t
y(r, i), (t = g.current) == null || t.call(g, r, i);
}
};
- u > 0 && (e = VU(e, u, {
+ u > 0 && (e = HU(e, u, {
trailing: !0,
leading: !1
}));
@@ -49082,17 +49109,17 @@ var oW = () => (0, I.useContext)(rW), sW = /*#__PURE__*/ (0, I.forwardRef)((e, t
};
}, [y, u]);
var { containerWidth: b, containerHeight: x } = _;
- HU(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
- var { calculatedWidth: S, calculatedHeight: C } = WU(b, x, {
+ UU(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
+ var { calculatedWidth: S, calculatedHeight: C } = GU(b, x, {
width: i,
height: a,
aspect: n,
maxHeight: c
});
- return HU(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ I.createElement("div", {
+ return UU(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ I.createElement("div", {
id: d ? `${d}` : void 0,
className: Wm("recharts-responsive-container", f),
- style: $U($U({}, m), {}, {
+ style: eW(eW({}, m), {}, {
width: i,
height: a,
minWidth: o,
@@ -49100,30 +49127,30 @@ var oW = () => (0, I.useContext)(rW), sW = /*#__PURE__*/ (0, I.forwardRef)((e, t
maxHeight: c
}),
ref: h
- }, /*#__PURE__*/ I.createElement("div", { style: YU({
+ }, /*#__PURE__*/ I.createElement("div", { style: XU({
width: i,
height: a
- }) }, /*#__PURE__*/ I.createElement(aW, {
+ }) }, /*#__PURE__*/ I.createElement(oW, {
width: S,
height: C
}, l)));
-}), cW = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = oW();
- if (VH(n.width) && VH(n.height)) return e.children;
- var { width: r, height: i } = XU({
+}), lW = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var n = sW();
+ if (HH(n.width) && HH(n.height)) return e.children;
+ var { width: r, height: i } = ZU({
width: e.width,
height: e.height,
aspect: e.aspect
- }), { calculatedWidth: a, calculatedHeight: o } = WU(void 0, void 0, {
+ }), { calculatedWidth: a, calculatedHeight: o } = GU(void 0, void 0, {
width: r,
height: i,
aspect: e.aspect,
maxHeight: e.maxHeight
});
- return Z(a) && Z(o) ? /*#__PURE__*/ I.createElement(aW, {
+ return Z(a) && Z(o) ? /*#__PURE__*/ I.createElement(oW, {
width: a,
height: o
- }, e.children) : /*#__PURE__*/ I.createElement(sW, ZU({}, e, {
+ }, e.children) : /*#__PURE__*/ I.createElement(cW, QU({}, e, {
width: r,
height: i,
ref: t
@@ -49131,7 +49158,7 @@ var oW = () => (0, I.useContext)(rW), sW = /*#__PURE__*/ (0, I.forwardRef)((e, t
});
//#endregion
//#region node_modules/recharts/es6/context/chartLayoutContext.js
-function lW(e) {
+function uW(e) {
if (e) return {
x: e.x,
y: e.y,
@@ -49141,15 +49168,15 @@ function lW(e) {
height: e.height
};
}
-var uW = () => {
- var e = IU(), t = Q(NU), n = Q(RU), r = Q(LU)?.padding;
+var dW = () => {
+ var e = LU(), t = Q(PU), n = Q(zU), r = Q(RU)?.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
};
-}, dW = {
+}, fW = {
top: 0,
bottom: 0,
left: 0,
@@ -49157,16 +49184,16 @@ var uW = () => {
width: 0,
height: 0,
brushBottom: 0
-}, fW = () => Q(MU) ?? dW, pW = () => Q(hU), mW = () => Q(gU), hW = () => Q((e) => e.layout.margin), gW = (e) => e.layout.layoutType, _W = () => Q(gW), vW = () => {
- var e = _W();
+}, pW = () => Q(NU) ?? fW, mW = () => Q(gU), hW = () => Q(_U), gW = () => Q((e) => e.layout.margin), _W = (e) => e.layout.layoutType, vW = () => Q(_W), yW = () => {
+ var e = vW();
if (e === "horizontal" || e === "vertical") return e;
-}, yW = (e) => {
+}, bW = (e) => {
var t = e.layout.layoutType;
if (t === "centric" || t === "radial") return t;
-}, bW = () => Q(yW), xW = () => _W() !== void 0, SW = (e) => {
- var t = qz(), n = IU(), { width: r, height: i } = e, a = oW(), o = r, s = i;
+}, xW = () => Q(bW), SW = () => vW() !== void 0, CW = (e) => {
+ var t = Jz(), n = LU(), { width: r, height: i } = e, a = sW(), o = r, s = i;
return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, I.useEffect)(() => {
- !n && VH(o) && VH(s) && t(IH({
+ !n && HH(o) && HH(s) && t(LH({
width: o,
height: s
}));
@@ -49176,64 +49203,64 @@ var uW = () => {
o,
s
]), null;
-}, CW = Symbol.for("immer-nothing"), wW = Symbol.for("immer-draftable"), TW = Symbol.for("immer-state");
-function EW(e, ...t) {
+}, wW = Symbol.for("immer-nothing"), TW = Symbol.for("immer-draftable"), EW = Symbol.for("immer-state");
+function DW(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var DW = Object.getPrototypeOf;
-function OW(e) {
- return !!e && !!e[TW];
-}
+var OW = Object.getPrototypeOf;
function kW(e) {
- return e ? MW(e) || Array.isArray(e) || !!e[wW] || !!e.constructor?.[wW] || RW(e) || zW(e) : !1;
+ return !!e && !!e[EW];
+}
+function AW(e) {
+ return e ? NW(e) || Array.isArray(e) || !!e[TW] || !!e.constructor?.[TW] || zW(e) || BW(e) : !1;
}
-var AW = Object.prototype.constructor.toString(), jW = /* @__PURE__ */ new WeakMap();
-function MW(e) {
+var jW = Object.prototype.constructor.toString(), MW = /* @__PURE__ */ new WeakMap();
+function NW(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 = jW.get(n);
- return r === void 0 && (r = Function.toString.call(n), jW.set(n, r)), r === AW;
+ let r = MW.get(n);
+ return r === void 0 && (r = Function.toString.call(n), MW.set(n, r)), r === jW;
}
-function NW(e, t, n = !0) {
- PW(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
+function PW(e, t, n = !0) {
+ FW(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 PW(e) {
- let t = e[TW];
- return t ? t.type_ : Array.isArray(e) ? 1 : RW(e) ? 2 : zW(e) ? 3 : 0;
+function FW(e) {
+ let t = e[EW];
+ return t ? t.type_ : Array.isArray(e) ? 1 : zW(e) ? 2 : BW(e) ? 3 : 0;
}
-function FW(e, t) {
- return PW(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
+function IW(e, t) {
+ return FW(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
}
-function IW(e, t, n) {
- let r = PW(e);
+function LW(e, t, n) {
+ let r = FW(e);
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
}
-function LW(e, t) {
+function RW(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function RW(e) {
+function zW(e) {
return e instanceof Map;
}
-function zW(e) {
+function BW(e) {
return e instanceof Set;
}
-function BW(e) {
+function VW(e) {
return e.copy_ || e.base_;
}
-function VW(e, t) {
- if (RW(e)) return new Map(e);
- if (zW(e)) return new Set(e);
+function HW(e, t) {
+ if (zW(e)) return new Map(e);
+ if (BW(e)) return new Set(e);
if (Array.isArray(e)) return Array.prototype.slice.call(e);
- let n = MW(e);
+ let n = NW(e);
if (t === !0 || t === "class_only" && !n) {
let t = Object.getOwnPropertyDescriptors(e);
- delete t[TW];
+ delete t[EW];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
@@ -49244,40 +49271,40 @@ function VW(e, t) {
value: e[i]
});
}
- return Object.create(DW(e), t);
+ return Object.create(OW(e), t);
}
{
- let t = DW(e);
+ let t = OW(e);
if (t !== null && n) return { ...e };
let r = Object.create(t);
return Object.assign(r, e);
}
}
-function HW(e, t = !1) {
- return GW(e) || OW(e) || !kW(e) ? e : (PW(e) > 1 && Object.defineProperties(e, {
- set: WW,
- add: WW,
- clear: WW,
- delete: WW
- }), Object.freeze(e), t && Object.values(e).forEach((e) => HW(e, !0)), e);
+function UW(e, t = !1) {
+ return KW(e) || kW(e) || !AW(e) ? e : (FW(e) > 1 && Object.defineProperties(e, {
+ set: GW,
+ add: GW,
+ clear: GW,
+ delete: GW
+ }), Object.freeze(e), t && Object.values(e).forEach((e) => UW(e, !0)), e);
}
-function UW() {
- EW(2);
+function WW() {
+ DW(2);
}
-var WW = { value: UW };
-function GW(e) {
+var GW = { value: WW };
+function KW(e) {
return typeof e != "object" || !e || Object.isFrozen(e);
}
-var KW = {};
-function qW(e) {
- let t = KW[e];
- return t || EW(0, e), t;
+var qW = {};
+function JW(e) {
+ let t = qW[e];
+ return t || DW(0, e), t;
}
-var JW;
-function YW() {
- return JW;
+var YW;
+function XW() {
+ return YW;
}
-function XW(e, t) {
+function ZW(e, t) {
return {
drafts_: [],
parent_: e,
@@ -49286,62 +49313,62 @@ function XW(e, t) {
unfinalizedDrafts_: 0
};
}
-function ZW(e, t) {
- t && (qW("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
-}
-function QW(e) {
- $W(e), e.drafts_.forEach(tG), e.drafts_ = null;
+function QW(e, t) {
+ t && (JW("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
function $W(e) {
- e === JW && (JW = e.parent_);
+ eG(e), e.drafts_.forEach(nG), e.drafts_ = null;
}
function eG(e) {
- return JW = XW(JW, e);
+ e === YW && (YW = e.parent_);
}
function tG(e) {
- let t = e[TW];
+ return YW = ZW(YW, e);
+}
+function nG(e) {
+ let t = e[EW];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function nG(e, t) {
+function rG(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
- return e !== void 0 && e !== n ? (n[TW].modified_ && (QW(t), EW(4)), kW(e) && (e = rG(t, e), t.parent_ || aG(t, e)), t.patches_ && qW("Patches").generateReplacementPatches_(n[TW].base_, e, t.patches_, t.inversePatches_)) : e = rG(t, n, []), QW(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === CW ? void 0 : e;
+ return e !== void 0 && e !== n ? (n[EW].modified_ && ($W(t), DW(4)), AW(e) && (e = iG(t, e), t.parent_ || oG(t, e)), t.patches_ && JW("Patches").generateReplacementPatches_(n[EW].base_, e, t.patches_, t.inversePatches_)) : e = iG(t, n, []), $W(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === wW ? void 0 : e;
}
-function rG(e, t, n) {
- if (GW(t)) return t;
- let r = e.immer_.shouldUseStrictIteration(), i = t[TW];
- if (!i) return NW(t, (r, a) => iG(e, i, t, r, a, n), r), t;
+function iG(e, t, n) {
+ if (KW(t)) return t;
+ let r = e.immer_.shouldUseStrictIteration(), i = t[EW];
+ if (!i) return PW(t, (r, a) => aG(e, i, t, r, a, n), r), t;
if (i.scope_ !== e) return t;
- if (!i.modified_) return aG(e, i.base_, !0), i.base_;
+ if (!i.modified_) return oG(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), NW(a, (r, a) => iG(e, i, t, r, a, n, o), r), aG(e, t, !1), n && e.patches_ && qW("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
+ i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), PW(a, (r, a) => aG(e, i, t, r, a, n, o), r), oG(e, t, !1), n && e.patches_ && JW("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
}
return i.copy_;
}
-function iG(e, t, n, r, i, a, o) {
+function aG(e, t, n, r, i, a, o) {
if (i == null || typeof i != "object" && !o) return;
- let s = GW(i);
+ let s = KW(i);
if (!(s && !o)) {
- if (OW(i)) {
- let o = rG(e, i, a && t && t.type_ !== 3 && !FW(t.assigned_, r) ? a.concat(r) : void 0);
- if (IW(n, r, o), OW(o)) e.canAutoFreeze_ = !1;
+ if (kW(i)) {
+ let o = iG(e, i, a && t && t.type_ !== 3 && !IW(t.assigned_, r) ? a.concat(r) : void 0);
+ if (LW(n, r, o), kW(o)) e.canAutoFreeze_ = !1;
else return;
} else o && n.add(i);
- if (kW(i) && !s) {
+ if (AW(i) && !s) {
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || t && t.base_ && t.base_[r] === i && s) return;
- rG(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (RW(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && aG(e, i);
+ iG(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (zW(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && oG(e, i);
}
}
}
-function aG(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && HW(t, n);
+function oG(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && UW(t, n);
}
-function oG(e, t) {
+function sG(e, t) {
let n = Array.isArray(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : YW(),
+ scope_: t ? t.scope_ : XW(),
modified_: !1,
finalized_: !1,
assigned_: {},
@@ -49351,41 +49378,41 @@ function oG(e, t) {
copy_: null,
revoke_: null,
isManual_: !1
- }, i = r, a = sG;
- n && (i = [r], a = cG);
+ }, i = r, a = cG;
+ n && (i = [r], a = lG);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, s;
}
-var sG = {
+var cG = {
get(e, t) {
- if (t === TW) return e;
- let n = BW(e);
- if (!FW(n, t)) return uG(e, n, t);
+ if (t === EW) return e;
+ let n = VW(e);
+ if (!IW(n, t)) return dG(e, n, t);
let r = n[t];
- return e.finalized_ || !kW(r) ? r : r === lG(e.base_, t) ? (pG(e), e.copy_[t] = hG(r, e)) : r;
+ return e.finalized_ || !AW(r) ? r : r === uG(e.base_, t) ? (mG(e), e.copy_[t] = gG(r, e)) : r;
},
has(e, t) {
- return t in BW(e);
+ return t in VW(e);
},
ownKeys(e) {
- return Reflect.ownKeys(BW(e));
+ return Reflect.ownKeys(VW(e));
},
set(e, t, n) {
- let r = dG(BW(e), t);
+ let r = fG(VW(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = lG(BW(e), t), i = r?.[TW];
+ let r = uG(VW(e), t), i = r?.[EW];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;
- if (LW(n, r) && (n !== void 0 || FW(e.base_, t))) return !0;
- pG(e), fG(e);
+ if (RW(n, r) && (n !== void 0 || IW(e.base_, t))) return !0;
+ mG(e), pG(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 lG(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, pG(e), fG(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
+ return uG(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, mG(e), pG(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = BW(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = VW(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
writable: !0,
configurable: e.type_ !== 1 || t !== "length",
@@ -49394,48 +49421,48 @@ var sG = {
};
},
defineProperty() {
- EW(11);
+ DW(11);
},
getPrototypeOf(e) {
- return DW(e.base_);
+ return OW(e.base_);
},
setPrototypeOf() {
- EW(12);
+ DW(12);
}
-}, cG = {};
-NW(sG, (e, t) => {
- cG[e] = function() {
+}, lG = {};
+PW(cG, (e, t) => {
+ lG[e] = function() {
return arguments[0] = arguments[0][0], t.apply(this, arguments);
};
-}), cG.deleteProperty = function(e, t) {
- return cG.set.call(this, e, t, void 0);
-}, cG.set = function(e, t, n) {
- return sG.set.call(this, e[0], t, n, e[0]);
+}), lG.deleteProperty = function(e, t) {
+ return lG.set.call(this, e, t, void 0);
+}, lG.set = function(e, t, n) {
+ return cG.set.call(this, e[0], t, n, e[0]);
};
-function lG(e, t) {
- let n = e[TW];
- return (n ? BW(n) : e)[t];
+function uG(e, t) {
+ let n = e[EW];
+ return (n ? VW(n) : e)[t];
}
-function uG(e, t, n) {
- let r = dG(t, n);
+function dG(e, t, n) {
+ let r = fG(t, n);
return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;
}
-function dG(e, t) {
+function fG(e, t) {
if (!(t in e)) return;
- let n = DW(e);
+ let n = OW(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = DW(n);
+ n = OW(n);
}
}
-function fG(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && fG(e.parent_));
-}
function pG(e) {
- e.copy_ ||= VW(e.base_, e.scope_.immer_.useStrictShallowCopy_);
+ e.modified_ || (e.modified_ = !0, e.parent_ && pG(e.parent_));
+}
+function mG(e) {
+ e.copy_ ||= HW(e.base_, e.scope_.immer_.useStrictShallowCopy_);
}
-var mG = class {
+var hG = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (e, t, n) => {
if (typeof e == "function" && typeof t != "function") {
@@ -49446,25 +49473,25 @@ var mG = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- typeof t != "function" && EW(6), n !== void 0 && typeof n != "function" && EW(7);
+ typeof t != "function" && DW(6), n !== void 0 && typeof n != "function" && DW(7);
let r;
- if (kW(e)) {
- let i = eG(this), a = hG(e, void 0), o = !0;
+ if (AW(e)) {
+ let i = tG(this), a = gG(e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? QW(i) : $W(i);
+ o ? $W(i) : eG(i);
}
- return ZW(i, n), nG(r, i);
+ return QW(i, n), rG(r, i);
}
if (!e || typeof e != "object") {
- if (r = t(e), r === void 0 && (r = e), r === CW && (r = void 0), this.autoFreeze_ && HW(r, !0), n) {
+ if (r = t(e), r === void 0 && (r = e), r === wW && (r = void 0), this.autoFreeze_ && UW(r, !0), n) {
let t = [], i = [];
- qW("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
+ JW("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
}
return r;
}
- EW(1, e);
+ DW(1, e);
}, this.produceWithPatches = (e, t) => {
if (typeof e == "function") return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
@@ -49478,15 +49505,15 @@ var mG = 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) {
- kW(e) || EW(8), OW(e) && (e = gG(e));
- let t = eG(this), n = hG(e, void 0);
- return n[TW].isManual_ = !0, $W(t), n;
+ AW(e) || DW(8), kW(e) && (e = _G(e));
+ let t = tG(this), n = gG(e, void 0);
+ return n[EW].isManual_ = !0, eG(t), n;
}
finishDraft(e, t) {
- let n = e && e[TW];
- (!n || !n.isManual_) && EW(9);
+ let n = e && e[EW];
+ (!n || !n.isManual_) && DW(9);
let { scope_: r } = n;
- return ZW(r, t), nG(void 0, r);
+ return QW(r, t), rG(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -49510,35 +49537,35 @@ var mG = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = qW("Patches").applyPatches_;
- return OW(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = JW("Patches").applyPatches_;
+ return kW(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function hG(e, t) {
- let n = RW(e) ? qW("MapSet").proxyMap_(e, t) : zW(e) ? qW("MapSet").proxySet_(e, t) : oG(e, t);
- return (t ? t.scope_ : YW()).drafts_.push(n), n;
-}
-function gG(e) {
- return OW(e) || EW(10, e), _G(e);
+function gG(e, t) {
+ let n = zW(e) ? JW("MapSet").proxyMap_(e, t) : BW(e) ? JW("MapSet").proxySet_(e, t) : sG(e, t);
+ return (t ? t.scope_ : XW()).drafts_.push(n), n;
}
function _G(e) {
- if (!kW(e) || GW(e)) return e;
- let t = e[TW], n, r = !0;
+ return kW(e) || DW(10, e), vG(e);
+}
+function vG(e) {
+ if (!AW(e) || KW(e)) return e;
+ let t = e[EW], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = VW(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = VW(e, !0);
- return NW(n, (e, t) => {
- IW(n, e, _G(t));
+ t.finalized_ = !0, n = HW(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = HW(e, !0);
+ return PW(n, (e, t) => {
+ LW(n, e, vG(t));
}, r), t && (t.finalized_ = !1), n;
}
-new mG().produce;
-function vG(e) {
+new hG().produce;
+function yG(e) {
return e;
}
//#endregion
//#region node_modules/recharts/es6/state/legendSlice.js
-var yG = GV({
+var bG = KV({
name: "legend",
initialState: {
settings: {
@@ -49562,43 +49589,43 @@ var yG = GV({
},
addLegendPayload: {
reducer(e, t) {
- e.payload.push(vG(t.payload));
+ e.payload.push(yG(t.payload));
},
- prepare: AV()
+ prepare: jV()
},
replaceLegendPayload: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = yV(e).payload.indexOf(vG(n));
- i > -1 && (e.payload[i] = vG(r));
+ var { prev: n, next: r } = t.payload, i = bV(e).payload.indexOf(yG(n));
+ i > -1 && (e.payload[i] = yG(r));
},
- prepare: AV()
+ prepare: jV()
},
removeLegendPayload: {
reducer(e, t) {
- var n = yV(e).payload.indexOf(vG(t.payload));
+ var n = bV(e).payload.indexOf(yG(t.payload));
n > -1 && e.payload.splice(n, 1);
},
- prepare: AV()
+ prepare: jV()
}
}
-}), { setLegendSize: bG, setLegendSettings: xG, addLegendPayload: SG, replaceLegendPayload: CG, removeLegendPayload: wG } = yG.actions, TG = yG.reducer, EG = /* @__PURE__ */ M(((e) => {
+}), { setLegendSize: xG, setLegendSettings: SG, addLegendPayload: CG, replaceLegendPayload: wG, removeLegendPayload: TG } = bG.actions, EG = bG.reducer, DG = /* @__PURE__ */ M(((e) => {
var t = ne();
t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;
}));
(/* @__PURE__ */ M(((e, t) => {
- t.exports = EG();
+ t.exports = DG();
})))();
-function DG(e) {
+function OG(e) {
e();
}
-function OG() {
+function kG() {
let e = null, t = null;
return {
clear() {
e = null, t = null;
},
notify() {
- DG(() => {
+ OG(() => {
let t = e;
for (; t;) t.callback(), t = t.next;
});
@@ -49620,12 +49647,12 @@ function OG() {
}
};
}
-var kG = {
+var AG = {
notify() {},
get: () => []
};
-function AG(e, t) {
- let n, r = kG, i = 0, a = !1;
+function jG(e, t) {
+ let n, r = AG, i = 0, a = !1;
function o(e) {
u();
let t = r.subscribe(e), n = !1;
@@ -49643,10 +49670,10 @@ function AG(e, t) {
return a;
}
function u() {
- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = OG());
+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = kG());
}
function d() {
- i--, n && i === 0 && (n(), n = void 0, r.clear(), r = kG);
+ i--, n && i === 0 && (n(), n = void 0, r.clear(), r = AG);
}
function f() {
a || (a = !0, u());
@@ -49665,44 +49692,44 @@ function AG(e, t) {
};
return m;
}
-var jG = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, MG = typeof navigator < "u" && navigator.product === "ReactNative", NG = jG || MG ? I.useLayoutEffect : I.useEffect;
-function PG(e, t) {
+var MG = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, NG = typeof navigator < "u" && navigator.product === "ReactNative", PG = MG || NG ? I.useLayoutEffect : I.useEffect;
+function FG(e, t) {
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function FG(e, t) {
- if (PG(e, t)) return !0;
+function IG(e, t) {
+ if (FG(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]) || !PG(e[n[r]], t[n[r]])) return !1;
+ for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !FG(e[n[r]], t[n[r]])) return !1;
return !0;
}
-var IG = /* @__PURE__ */ Symbol.for("react-redux-context"), LG = typeof globalThis < "u" ? globalThis : {};
-function RG() {
+var LG = /* @__PURE__ */ Symbol.for("react-redux-context"), RG = typeof globalThis < "u" ? globalThis : {};
+function zG() {
if (!I.createContext) return {};
- let e = LG[IG] ??= /* @__PURE__ */ new Map(), t = e.get(I.createContext);
+ let e = RG[LG] ??= /* @__PURE__ */ new Map(), t = e.get(I.createContext);
return t || (t = I.createContext(null), e.set(I.createContext, t)), t;
}
-var zG = /* @__PURE__ */ RG();
-function BG(e) {
+var BG = /* @__PURE__ */ zG();
+function VG(e) {
let { children: t, context: n, serverState: r, store: i } = e, a = I.useMemo(() => {
- let e = AG(i);
+ let e = jG(i);
return {
store: i,
subscription: e,
getServerState: r ? () => r : void 0
};
}, [i, r]), o = I.useMemo(() => i.getState(), [i]);
- NG(() => {
+ PG(() => {
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 || zG;
+ let s = n || BG;
return /* @__PURE__ */ I.createElement(s.Provider, { value: a }, t);
}
-var VG = BG, HG = /* @__PURE__ */ new Set([
+var HG = VG, UG = /* @__PURE__ */ new Set([
"axisLine",
"tickLine",
"activeBar",
@@ -49725,29 +49752,29 @@ var VG = BG, HG = /* @__PURE__ */ new Set([
"radius",
"throttledEvents"
]);
-function UG(e, t) {
+function WG(e, t) {
return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;
}
-function WG(e, t) {
- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (HG.has(n)) {
+function GG(e, t) {
+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (UG.has(n)) {
if (e[n] == null && t[n] == null) continue;
- if (!FG(e[n], t[n])) return !1;
- } else if (!UG(e[n], t[n])) return !1;
+ if (!IG(e[n], t[n])) return !1;
+ } else if (!WG(e[n], t[n])) return !1;
return !0;
}
//#endregion
//#region node_modules/recharts/es6/component/Legend.js
-var GG = ["contextPayload"];
-function KG() {
- return KG = Object.assign ? Object.assign.bind() : function(e) {
+var KG = ["contextPayload"];
+function qG() {
+ return qG = 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;
- }, KG.apply(null, arguments);
+ }, qG.apply(null, arguments);
}
-function qG(e, t) {
+function JG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -49757,30 +49784,30 @@ function qG(e, t) {
}
return n;
}
-function JG(e) {
+function YG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[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) {
+ t % 2 ? JG(Object(n), !0).forEach(function(t) {
+ XG(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : JG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function YG(e, t, n) {
- return (t = XG(t)) in e ? Object.defineProperty(e, t, {
+function XG(e, t, n) {
+ return (t = ZG(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function XG(e) {
- var t = ZG(e, "string");
+function ZG(e) {
+ var t = QG(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ZG(e, t) {
+function QG(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -49790,16 +49817,16 @@ function ZG(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function QG(e, t) {
+function $G(e, t) {
if (e == null) return {};
- var n, r, i = $G(e, t);
+ var n, r, i = eK(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 $G(e, t) {
+function eK(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -49808,36 +49835,36 @@ function $G(e, t) {
}
return n;
}
-function eK(e) {
+function tK(e) {
return e.value;
}
-function tK(e) {
- var { contextPayload: t } = e, n = QG(e, GG), r = Gz(t, e.payloadUniqBy, eK), i = JG(JG({}, n), {}, { payload: r });
+function nK(e) {
+ var { contextPayload: t } = e, n = $G(e, KG), r = Kz(t, e.payloadUniqBy, tK), i = YG(YG({}, n), {}, { payload: r });
return /*#__PURE__*/ I.isValidElement(e.content) ? /*#__PURE__*/ I.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ I.createElement(e.content, i) : /*#__PURE__*/ I.createElement(rfe, i);
}
-function nK(e, t, n, r, i, a) {
+function rK(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 }), JG(JG({}, l), u);
+ return (!e || (e.left === void 0 || e.left === null) && (e.right === void 0 || e.right === null)) && (l = s === "center" && o === "vertical" ? { left: ((r || 0) - a.width) / 2 } : s === "right" ? { right: n && n.right || 0 } : { left: n && n.left || 0 }), (!e || (e.top === void 0 || e.top === null) && (e.bottom === void 0 || e.bottom === null)) && (u = c === "middle" ? { top: ((i || 0) - a.height) / 2 } : c === "bottom" ? { bottom: n && n.bottom || 0 } : { top: n && n.top || 0 }), YG(YG({}, l), u);
}
-function rK(e) {
- var t = qz();
+function iK(e) {
+ var t = Jz();
return (0, I.useEffect)(() => {
- t(xG(e));
+ t(SG(e));
}, [t, e]), null;
}
-function iK(e) {
- var t = qz();
- return (0, I.useEffect)(() => (t(bG(e)), () => {
- t(bG({
+function aK(e) {
+ var t = Jz();
+ return (0, I.useEffect)(() => (t(xG(e)), () => {
+ t(xG({
width: 0,
height: 0
}));
}), [t, e]), null;
}
-function aK(e, t, n, r) {
+function oK(e, t, n, r) {
return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;
}
-var oK = {
+var sK = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -49845,28 +49872,28 @@ var oK = {
layout: "horizontal",
verticalAlign: "bottom"
};
-function sK(e) {
- var t = bz(e, oK), n = ppe(), r = Zue(), i = hW(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = iB([n]), d = pW(), f = mW();
+function cK(e) {
+ var t = xz(e, sK), n = ppe(), r = Zue(), i = gW(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = aB([n]), d = mW(), f = hW();
if (d == null || f == null) return null;
- var p = d - (i?.left || 0) - (i?.right || 0), m = aK(t.layout, o, a, p), h = c ? s : JG(JG({
+ var p = d - (i?.left || 0) - (i?.right || 0), m = oK(t.layout, o, a, p), h = c ? s : YG(YG({
position: "absolute",
width: m?.width || a || "auto",
height: m?.height || o || "auto"
- }, nK(s, t, i, d, f, l)), s), g = c ?? r;
+ }, rK(s, t, i, d, f, l)), s), g = c ?? r;
if (g == null || n == null) return null;
var _ = /*#__PURE__*/ I.createElement("div", {
className: "recharts-legend-wrapper",
style: h,
ref: u
- }, /*#__PURE__*/ I.createElement(rK, {
+ }, /*#__PURE__*/ I.createElement(iK, {
layout: t.layout,
align: t.align,
verticalAlign: t.verticalAlign,
itemSorter: t.itemSorter
- }), !c && /*#__PURE__*/ I.createElement(iK, {
+ }), !c && /*#__PURE__*/ I.createElement(aK, {
width: l.width,
height: l.height
- }), /*#__PURE__*/ I.createElement(tK, KG({}, t, m, {
+ }), /*#__PURE__*/ I.createElement(nK, qG({}, t, m, {
margin: i,
chartWidth: d,
chartHeight: f,
@@ -49874,20 +49901,20 @@ function sK(e) {
})));
return /*#__PURE__*/ (0, yh.createPortal)(_, g);
}
-var cK = /*#__PURE__*/ I.memo(sK, WG);
-cK.displayName = "Legend";
+var lK = /*#__PURE__*/ I.memo(cK, GG);
+lK.displayName = "Legend";
//#endregion
//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
-function lK() {
- return lK = Object.assign ? Object.assign.bind() : function(e) {
+function uK() {
+ return uK = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, lK.apply(null, arguments);
+ }, uK.apply(null, arguments);
}
-function uK(e, t) {
+function dK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -49897,30 +49924,30 @@ function uK(e, t) {
}
return n;
}
-function dK(e) {
+function fK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? uK(Object(n), !0).forEach(function(t) {
- fK(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : uK(Object(n)).forEach(function(t) {
+ t % 2 ? dK(Object(n), !0).forEach(function(t) {
+ pK(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fK(e, t, n) {
- return (t = pK(t)) in e ? Object.defineProperty(e, t, {
+function pK(e, t, n) {
+ return (t = mK(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pK(e) {
- var t = mK(e, "string");
+function mK(e) {
+ var t = hK(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mK(e, t) {
+function hK(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -49930,10 +49957,10 @@ function mK(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function hK(e) {
- return Array.isArray(e) && tz(e[0]) && tz(e[1]) ? e.join(" ~ ") : e;
+function gK(e) {
+ return Array.isArray(e) && nz(e[0]) && nz(e[1]) ? e.join(" ~ ") : e;
}
-var gK = {
+var _K = {
separator: " : ",
contentStyle: {
margin: 0,
@@ -49951,30 +49978,30 @@ var gK = {
labelStyle: {},
accessibilityLayer: !1
};
-function _K(e, t) {
- return t == null ? e : tB(e, t);
+function vK(e, t) {
+ return t == null ? e : nB(e, t);
}
-var vK = (e) => {
- var { separator: t = gK.separator, contentStyle: n, itemStyle: r, labelStyle: i = gK.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = gK.accessibilityLayer } = e, p = () => {
+var yK = (e) => {
+ var { separator: t = _K.separator, contentStyle: n, itemStyle: r, labelStyle: i = _K.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = _K.accessibilityLayer } = e, p = () => {
if (a && a.length) {
var e = {
padding: 0,
margin: 0
- }, n = _K(a, s).map((e, n) => {
+ }, n = vK(a, s).map((e, n) => {
if (e.type === "none") return null;
- var i = e.formatter || o || hK, { value: s, name: c } = e, l = s, u = c;
+ var i = e.formatter || o || gK, { 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 = dK(dK({}, gK.itemStyle), {}, { color: e.color || gK.itemStyle.color }, r);
+ var f = fK(fK({}, _K.itemStyle), {}, { color: e.color || _K.itemStyle.color }, r);
return /*#__PURE__*/ I.createElement("li", {
className: "recharts-tooltip-item",
key: `tooltip-item-${n}`,
style: f
- }, tz(u) ? /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, tz(u) ? /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
+ }, nz(u) ? /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, nz(u) ? /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
});
return /*#__PURE__*/ I.createElement("ul", {
className: "recharts-tooltip-item-list",
@@ -49982,30 +50009,30 @@ var vK = (e) => {
}, n);
}
return null;
- }, m = dK(dK({}, gK.contentStyle), n), h = dK({ margin: 0 }, i), g = !sz(u), _ = g ? u : "", v = Wm("recharts-default-tooltip", c), y = Wm("recharts-tooltip-label", l);
+ }, m = fK(fK({}, _K.contentStyle), n), h = fK({ margin: 0 }, i), g = !cz(u), _ = g ? u : "", v = Wm("recharts-default-tooltip", c), y = Wm("recharts-tooltip-label", l);
g && d && a != null && (_ = d(u, a));
var b = f ? {
role: "status",
"aria-live": "assertive"
} : {};
- return /*#__PURE__*/ I.createElement("div", lK({
+ return /*#__PURE__*/ I.createElement("div", uK({
className: v,
style: m
}, b), /*#__PURE__*/ I.createElement("p", {
className: y,
style: h
}, /*#__PURE__*/ I.isValidElement(_) ? _ : `${_}`), p());
-}, yK = "recharts-tooltip-wrapper", bK = { visibility: "hidden" };
-function xK(e) {
+}, bK = "recharts-tooltip-wrapper", xK = { visibility: "hidden" };
+function SK(e) {
var { coordinate: t, translateX: n, translateY: r } = e;
- return Wm(yK, {
- [`${yK}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
- [`${yK}-left`]: Z(n) && t && Z(t.x) && n < t.x,
- [`${yK}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
- [`${yK}-top`]: Z(r) && t && Z(t.y) && r < t.y
+ return Wm(bK, {
+ [`${bK}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
+ [`${bK}-left`]: Z(n) && t && Z(t.x) && n < t.x,
+ [`${bK}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
+ [`${bK}-top`]: Z(r) && t && Z(t.y) && r < t.y
});
}
-function SK(e) {
+function CK(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;
@@ -50013,13 +50040,13 @@ function SK(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 CK(e) {
+function wK(e) {
var { translateX: t, translateY: n, useTranslate3d: r } = e;
return { transform: r ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };
}
-function wK(e) {
+function TK(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 = SK({
+ return s.height > 0 && s.width > 0 && n ? (d = CK({
allowEscapeViewBox: t,
coordinate: n,
key: "x",
@@ -50029,7 +50056,7 @@ function wK(e) {
tooltipDimension: s.width,
viewBox: l,
viewBoxDimension: l.width
- }), f = SK({
+ }), f = CK({
allowEscapeViewBox: t,
coordinate: n,
key: "y",
@@ -50039,27 +50066,27 @@ function wK(e) {
tooltipDimension: s.height,
viewBox: l,
viewBoxDimension: l.height
- }), u = CK({
+ }), u = wK({
translateX: d,
translateY: f,
useTranslate3d: c
- })) : u = bK, {
+ })) : u = xK, {
cssProperties: u,
- cssClasses: xK({
+ cssClasses: SK({
translateX: d,
translateY: f,
coordinate: n
})
};
}
-var TK = {
+var EK = {
devToolsEnabled: !0,
isSsr: !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout)
};
//#endregion
//#region node_modules/recharts/es6/util/usePrefersReducedMotion.js
-function EK() {
- var [e, t] = (0, I.useState)(() => TK.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
+function DK() {
+ var [e, t] = (0, I.useState)(() => EK.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
return (0, I.useEffect)(() => {
if (window.matchMedia) {
var e = window.matchMedia("(prefers-reduced-motion: reduce)"), n = () => {
@@ -50073,7 +50100,7 @@ function EK() {
}
//#endregion
//#region node_modules/recharts/es6/component/TooltipBoundingBox.js
-function DK(e, t) {
+function OK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50083,30 +50110,30 @@ function DK(e, t) {
}
return n;
}
-function OK(e) {
+function kK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? DK(Object(n), !0).forEach(function(t) {
- kK(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : DK(Object(n)).forEach(function(t) {
+ t % 2 ? OK(Object(n), !0).forEach(function(t) {
+ AK(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : OK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function kK(e, t, n) {
- return (t = AK(t)) in e ? Object.defineProperty(e, t, {
+function AK(e, t, n) {
+ return (t = jK(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function AK(e) {
- var t = jK(e, "string");
+function jK(e) {
+ var t = MK(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function jK(e, t) {
+function MK(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50116,11 +50143,11 @@ function jK(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function MK(e) {
+function NK(e) {
if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;
}
-function NK(e) {
- var t = EK(), [n, r] = I.useState(() => ({
+function PK(e) {
+ var t = DK(), [n, r] = I.useState(() => ({
dismissed: !1,
dismissedAtCoordinate: {
x: 0,
@@ -50140,8 +50167,8 @@ function NK(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(OK(OK({}, n), {}, { dismissed: !1 }));
- var { cssClasses: i, cssProperties: a } = wK({
+ }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(kK(kK({}, n), {}, { dismissed: !1 }));
+ var { cssClasses: i, cssProperties: a } = TK({
allowEscapeViewBox: e.allowEscapeViewBox,
coordinate: e.coordinate,
offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,
@@ -50154,7 +50181,7 @@ function NK(e) {
},
useTranslate3d: e.useTranslate3d,
viewBox: e.viewBox
- }), o = OK(OK({}, e.hasPortalFromProps ? {} : OK(OK({ transition: MK({
+ }), o = kK(kK({}, e.hasPortalFromProps ? {} : kK(kK({ transition: NK({
prefersReducedMotion: t,
isAnimationActive: e.isAnimationActive,
active: e.active,
@@ -50174,19 +50201,19 @@ function NK(e) {
ref: e.innerRef
}, e.children);
}
-var PK = /*#__PURE__*/ I.memo(NK), FK = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
+var FK = /*#__PURE__*/ I.memo(PK), IK = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
//#endregion
//#region node_modules/recharts/es6/shape/Curve.js
-function IK() {
- return IK = Object.assign ? Object.assign.bind() : function(e) {
+function LK() {
+ return LK = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, IK.apply(null, arguments);
+ }, LK.apply(null, arguments);
}
-function LK(e, t) {
+function RK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50196,30 +50223,30 @@ function LK(e, t) {
}
return n;
}
-function RK(e) {
+function zK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? LK(Object(n), !0).forEach(function(t) {
- zK(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : LK(Object(n)).forEach(function(t) {
+ t % 2 ? RK(Object(n), !0).forEach(function(t) {
+ BK(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : RK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function zK(e, t, n) {
- return (t = BK(t)) in e ? Object.defineProperty(e, t, {
+function BK(e, t, n) {
+ return (t = VK(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function BK(e) {
- var t = VK(e, "string");
+function VK(e) {
+ var t = HK(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function VK(e, t) {
+function HK(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50229,40 +50256,40 @@ function VK(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var HK = {
+var UK = {
curveBasisClosed: hde,
curveBasisOpen: gde,
curveBasis: mde,
curveBumpX: ede,
curveBumpY: tde,
curveLinearClosed: _de,
- curveLinear: fR,
+ curveLinear: pR,
curveMonotoneX: vde,
curveMonotoneY: yde,
curveNatural: bde,
curveStep: xde,
curveStepAfter: Cde,
curveStepBefore: Sde
-}, UK = (e) => BH(e.x) && BH(e.y), WK = (e) => e.base != null && UK(e.base) && UK(e), GK = (e) => e.x, KK = (e) => e.y, qK = (e, t) => {
+}, WK = (e) => VH(e.x) && VH(e.y), GK = (e) => e.base != null && WK(e.base) && WK(e), KK = (e) => e.x, qK = (e) => e.y, JK = (e, t) => {
if (typeof e == "function") return e;
- var n = `curve${cz(e)}`;
+ var n = `curve${lz(e)}`;
if ((n === "curveMonotone" || n === "curveBump") && t) {
- var r = HK[`${n}${t === "vertical" ? "Y" : "X"}`];
+ var r = UK[`${n}${t === "vertical" ? "Y" : "X"}`];
if (r) return r;
}
- return HK[n] || fR;
-}, JK = {
+ return UK[n] || pR;
+}, YK = {
connectNulls: !1,
type: "linear"
-}, YK = (e) => {
- var { type: t = JK.type, points: n = [], baseLine: r, layout: i, connectNulls: a = JK.connectNulls } = e, o = qK(t, i), s = a ? n.filter(UK) : n;
+}, XK = (e) => {
+ var { type: t = YK.type, points: n = [], baseLine: r, layout: i, connectNulls: a = YK.connectNulls } = e, o = JK(t, i), s = a ? n.filter(WK) : n;
if (Array.isArray(r)) {
- var c, l = n.map((e, t) => RK(RK({}, e), {}, { base: r[t] }));
- return c = i === "vertical" ? gR().y(KK).x1(GK).x0((e) => e.base.x) : gR().x(GK).y1(KK).y0((e) => e.base.y), c.defined(WK).curve(o)(a ? l.filter(WK) : l);
+ var c, l = n.map((e, t) => zK(zK({}, e), {}, { base: r[t] }));
+ return c = i === "vertical" ? _R().y(qK).x1(KK).x0((e) => e.base.x) : _R().x(KK).y1(qK).y0((e) => e.base.y), c.defined(GK).curve(o)(a ? l.filter(GK) : l);
}
- return (i === "vertical" && Z(r) ? gR().y(KK).x1(GK).x0(r) : Z(r) ? gR().x(GK).y1(KK).y0(r) : hR().x(GK).y(KK)).defined(UK).curve(o)(s);
-}, XK = (e) => {
- var { className: t, points: n, path: r, pathRef: i } = e, a = _W();
+ return (i === "vertical" && Z(r) ? _R().y(qK).x1(KK).x0(r) : Z(r) ? _R().x(KK).y1(qK).y0(r) : gR().x(KK).y(qK)).defined(WK).curve(o)(s);
+}, ZK = (e) => {
+ var { className: t, points: n, path: r, pathRef: i } = e, a = vW();
if ((!n || !n.length) && !r) return null;
var o = {
type: e.type,
@@ -50270,13 +50297,13 @@ var HK = {
baseLine: e.baseLine,
layout: e.layout || a,
connectNulls: e.connectNulls
- }, s = n && n.length ? YK(o) : r;
- return /*#__PURE__*/ I.createElement("path", IK({}, WL(e), _z(e), {
+ }, s = n && n.length ? XK(o) : r;
+ return /*#__PURE__*/ I.createElement("path", LK({}, GL(e), vz(e), {
className: Wm("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
-}, ZK = [
+}, QK = [
"x",
"y",
"top",
@@ -50285,16 +50312,16 @@ var HK = {
"height",
"className"
];
-function QK() {
- return QK = Object.assign ? Object.assign.bind() : function(e) {
+function $K() {
+ return $K = 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;
- }, QK.apply(null, arguments);
+ }, $K.apply(null, arguments);
}
-function $K(e, t) {
+function eq(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50304,30 +50331,30 @@ function $K(e, t) {
}
return n;
}
-function eq(e) {
+function tq(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) {
- tq(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $K(Object(n)).forEach(function(t) {
+ t % 2 ? eq(Object(n), !0).forEach(function(t) {
+ nq(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : eq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function tq(e, t, n) {
- return (t = nq(t)) in e ? Object.defineProperty(e, t, {
+function nq(e, t, n) {
+ return (t = rq(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function nq(e) {
- var t = rq(e, "string");
+function rq(e) {
+ var t = iq(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function rq(e, t) {
+function iq(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50337,16 +50364,16 @@ function rq(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function iq(e, t) {
+function aq(e, t) {
if (e == null) return {};
- var n, r, i = aq(e, t);
+ var n, r, i = oq(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 aq(e, t) {
+function oq(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -50355,8 +50382,8 @@ function aq(e, t) {
}
return n;
}
-var oq = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, sq = (e) => {
- var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = iq(e, ZK), l = eq({
+var sq = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, cq = (e) => {
+ var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = aq(e, QK), l = tq({
x: t,
y: n,
top: r,
@@ -50364,14 +50391,14 @@ var oq = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, sq = (e) => {
width: a,
height: o
}, c);
- return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ I.createElement("path", QK({}, KL(l), {
+ return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ I.createElement("path", $K({}, qL(l), {
className: Wm("recharts-cross", s),
- d: oq(t, n, a, o, r, i)
+ d: sq(t, n, a, o, r, i)
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js
-function cq(e, t, n, r) {
+function lq(e, t, n, r) {
var i = r / 2;
return {
stroke: "none",
@@ -50384,7 +50411,7 @@ function cq(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/animation/util.js
-function lq(e, t) {
+function uq(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50394,30 +50421,30 @@ function lq(e, t) {
}
return n;
}
-function uq(e) {
+function dq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? lq(Object(n), !0).forEach(function(t) {
- dq(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : lq(Object(n)).forEach(function(t) {
+ t % 2 ? uq(Object(n), !0).forEach(function(t) {
+ fq(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : uq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function dq(e, t, n) {
- return (t = fq(t)) in e ? Object.defineProperty(e, t, {
+function fq(e, t, n) {
+ return (t = pq(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function fq(e) {
- var t = pq(e, "string");
+function pq(e) {
+ var t = mq(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function pq(e, t) {
+function mq(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50427,10 +50454,10 @@ function pq(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var mq = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), hq = (e, t, n) => e.map((e) => `${mq(e)} ${t}ms ${n}`).join(","), gq = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), _q = (e, t) => Object.keys(t).reduce((n, r) => uq(uq({}, n), {}, { [r]: e(r, t[r]) }), {});
+var hq = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), gq = (e, t, n) => e.map((e) => `${hq(e)} ${t}ms ${n}`).join(","), _q = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), vq = (e, t) => Object.keys(t).reduce((n, r) => dq(dq({}, n), {}, { [r]: e(r, t[r]) }), {});
//#endregion
//#region node_modules/recharts/es6/animation/configUpdate.js
-function vq(e, t) {
+function yq(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50440,30 +50467,30 @@ function vq(e, t) {
}
return n;
}
-function yq(e) {
+function bq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? vq(Object(n), !0).forEach(function(t) {
- bq(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vq(Object(n)).forEach(function(t) {
+ t % 2 ? yq(Object(n), !0).forEach(function(t) {
+ xq(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bq(e, t, n) {
- return (t = xq(t)) in e ? Object.defineProperty(e, t, {
+function xq(e, t, n) {
+ return (t = Sq(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xq(e) {
- var t = Sq(e, "string");
+function Sq(e) {
+ var t = Cq(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Sq(e, t) {
+function Cq(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50473,51 +50500,51 @@ function Sq(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Cq = (e, t, n) => e + (t - e) * n, wq = (e) => {
+var wq = (e, t, n) => e + (t - e) * n, Tq = (e) => {
var { from: t, to: n } = e;
return t !== n;
-}, Tq = (e, t, n) => {
- var r = _q((t, n) => {
- if (wq(n)) {
+}, Eq = (e, t, n) => {
+ var r = vq((t, n) => {
+ if (Tq(n)) {
var [r, i] = e(n.from, n.to, n.velocity);
- return yq(yq({}, n), {}, {
+ return bq(bq({}, n), {}, {
from: r,
velocity: i
});
}
return n;
}, t);
- return n < 1 ? _q((e, t) => wq(t) && r[e] != null ? yq(yq({}, t), {}, {
- velocity: Cq(t.velocity, r[e].velocity, n),
- from: Cq(t.from, r[e].from, n)
- }) : t, t) : Tq(e, r, n - 1);
+ return n < 1 ? vq((e, t) => Tq(t) && r[e] != null ? bq(bq({}, t), {}, {
+ velocity: wq(t.velocity, r[e].velocity, n),
+ from: wq(t.from, r[e].from, n)
+ }) : t, t) : Eq(e, r, n - 1);
};
-function Eq(e, t, n, r, i, a) {
- var o, s = r.reduce((n, r) => yq(yq({}, n), {}, { [r]: {
+function Dq(e, t, n, r, i, a) {
+ var o, s = r.reduce((n, r) => bq(bq({}, n), {}, { [r]: {
from: e[r],
velocity: 0,
to: t[r]
- } }), {}), c = () => _q((e, t) => t.from, s), l = () => !Object.values(s).filter(wq).length, u = null, d = (r) => {
+ } }), {}), c = () => vq((e, t) => t.from, s), l = () => !Object.values(s).filter(Tq).length, u = null, d = (r) => {
o ||= r;
var f = (r - o) / n.dt;
- s = Tq(n, s, f), i(yq(yq(yq({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
+ s = Eq(n, s, f), i(bq(bq(bq({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
};
return () => (u = a.setTimeout(d), () => {
var e;
(e = u) == null || e();
});
}
-function Dq(e, t, n, r, i, a, o) {
+function Oq(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 : yq(yq({}, n), {}, { [r]: [i, a] });
+ return i == null || a == null ? n : bq(bq({}, n), {}, { [r]: [i, a] });
}, {}), l, u = (i) => {
l ||= i;
- var d = (i - l) / r, f = _q((e, t) => Cq(...t, n(d)), c);
- if (a(yq(yq(yq({}, e), t), f)), d < 1) s = o.setTimeout(u);
+ var d = (i - l) / r, f = vq((e, t) => wq(...t, n(d)), c);
+ if (a(bq(bq(bq({}, e), t), f)), d < 1) s = o.setTimeout(u);
else {
- var p = _q((e, t) => Cq(...t, n(1)), c);
- a(yq(yq(yq({}, e), t), p));
+ var p = vq((e, t) => wq(...t, n(1)), c);
+ a(bq(bq(bq({}, e), t), p));
}
};
return () => (s = o.setTimeout(u), () => {
@@ -50525,15 +50552,15 @@ function Dq(e, t, n, r, i, a, o) {
(e = s) == null || e();
});
}
-var Oq = (e, t, n, r, i, a) => {
- var o = gq(e, t);
- return n == null ? () => (i(yq(yq({}, e), t)), () => {}) : n.isStepper === !0 ? Eq(e, t, n, o, i, a) : Dq(e, t, n, r, o, i, a);
-}, kq = (e, t) => [
+var kq = (e, t, n, r, i, a) => {
+ var o = _q(e, t);
+ return n == null ? () => (i(bq(bq({}, e), t)), () => {}) : n.isStepper === !0 ? Dq(e, t, n, o, i, a) : Oq(e, t, n, r, o, i, a);
+}, Aq = (e, t) => [
0,
3 * e,
3 * t - 6 * e,
3 * e - 3 * t + 1
-], Aq = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), jq = (e, t) => (n) => Aq(kq(e, t), n), Mq = (e, t) => (n) => Aq([...kq(e, t).map((e, t) => e * t).slice(1), 0], n), Nq = (e) => {
+], jq = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), Mq = (e, t) => (n) => jq(Aq(e, t), n), Nq = (e, t) => (n) => jq([...Aq(e, t).map((e, t) => e * t).slice(1), 0], n), Pq = (e) => {
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(",");
@@ -50545,7 +50572,7 @@ var Oq = (e, t, n, r, i, a) => {
i[2],
i[3]
];
-}, Pq = function() {
+}, Fq = function() {
var e = [...arguments];
if (e.length === 1) switch (e[0]) {
case "linear": return [
@@ -50579,7 +50606,7 @@ var Oq = (e, t, n, r, i, a) => {
1
];
default:
- var t = Nq(e[0]);
+ var t = Pq(e[0]);
if (t) return t;
}
return e.length === 4 ? e : [
@@ -50588,8 +50615,8 @@ var Oq = (e, t, n, r, i, a) => {
1,
1
];
-}, Fq = (e, t, n, r) => {
- var i = jq(e, n), a = jq(t, r), o = Mq(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
+}, Iq = (e, t, n, r) => {
+ var i = Mq(e, n), a = Mq(t, r), o = Nq(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
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);
@@ -50598,29 +50625,29 @@ var Oq = (e, t, n, r, i, a) => {
return a(n);
};
return c.isStepper = !1, c;
-}, Iq = function() {
- return Fq(...Pq(...arguments));
}, Lq = function() {
+ return Iq(...Fq(...arguments));
+}, Rq = function() {
var { stiff: e = 100, damping: t = 8, dt: n = 17 } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = (r, i, a) => {
var o = a + (-(r - i) * e - a * t) * n / 1e3, s = a * n / 1e3 + r;
return Math.abs(s - i) < 1e-4 && Math.abs(o) < 1e-4 ? [i, 0] : [s, o];
};
return r.isStepper = !0, r.dt = n, r;
-}, Rq = (e) => {
+}, zq = (e) => {
if (typeof e == "string") switch (e) {
case "ease":
case "ease-in-out":
case "ease-out":
case "ease-in":
- case "linear": return Iq(e);
- case "spring": return Lq();
- default: if (e.split("(")[0] === "cubic-bezier") return Iq(e);
+ case "linear": return Lq(e);
+ case "spring": return Rq();
+ default: if (e.split("(")[0] === "cubic-bezier") return Lq(e);
}
return typeof e == "function" ? e : null;
};
//#endregion
//#region node_modules/recharts/es6/animation/AnimationManager.js
-function zq(e) {
+function Bq(e) {
var t, n = () => null, r = !1, i = null, a = (o) => {
if (!r) {
if (Array.isArray(o)) {
@@ -50651,7 +50678,7 @@ function zq(e) {
}
//#endregion
//#region node_modules/recharts/es6/animation/timeoutController.js
-var Bq = class {
+var Vq = 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));
@@ -50663,14 +50690,14 @@ var Bq = class {
};
//#endregion
//#region node_modules/recharts/es6/animation/createDefaultAnimationManager.js
-function Vq() {
- return zq(new Bq());
+function Hq() {
+ return Bq(new Vq());
}
//#endregion
//#region node_modules/recharts/es6/animation/useAnimationManager.js
-var Hq = /*#__PURE__*/ (0, I.createContext)(Vq);
-function Uq(e, t) {
- var n = (0, I.useContext)(Hq);
+var Uq = /*#__PURE__*/ (0, I.createContext)(Hq);
+function Wq(e, t) {
+ var n = (0, I.useContext)(Uq);
return (0, I.useMemo)(() => t ?? n(e), [
e,
t,
@@ -50679,7 +50706,7 @@ function Uq(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/animation/JavascriptAnimate.js
-var Wq = {
+var Gq = {
begin: 0,
duration: 1e3,
easing: "ease",
@@ -50687,14 +50714,14 @@ var Wq = {
canBegin: !0,
onAnimationEnd: () => {},
onAnimationStart: () => {}
-}, Gq = { t: 0 }, Kq = { t: 1 };
-function qq(e) {
- var t = bz(e, Wq), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = EK(), d = n === "auto" ? !TK.isSsr && !u : n, f = Uq(t.animationId, t.animationManager), [p, m] = (0, I.useState)(d ? Gq : Kq), h = (0, I.useRef)(null);
+}, Kq = { t: 0 }, qq = { t: 1 };
+function Jq(e) {
+ var t = xz(e, Gq), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = DK(), d = n === "auto" ? !EK.isSsr && !u : n, f = Wq(t.animationId, t.animationManager), [p, m] = (0, I.useState)(d ? Kq : qq), h = (0, I.useRef)(null);
return (0, I.useEffect)(() => {
- d || m(Kq);
+ d || m(qq);
}, [d]), (0, I.useEffect)(() => {
- if (!d || !r) return uz;
- var e = Oq(Gq, Kq, Rq(a), i, m, f.getTimeoutController());
+ if (!d || !r) return dz;
+ var e = kq(Kq, qq, zq(a), i, m, f.getTimeoutController());
return f.start([
c,
o,
@@ -50719,14 +50746,14 @@ function qq(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/useAnimationId.js
-function Jq(e) {
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, I.useRef)(nz(t)), r = (0, I.useRef)(e);
- return r.current !== e && (n.current = nz(t), r.current = e), n.current;
+function Yq(e) {
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, I.useRef)(rz(t)), r = (0, I.useRef)(e);
+ return r.current !== e && (n.current = rz(t), r.current = e), n.current;
}
//#endregion
//#region node_modules/recharts/es6/shape/Rectangle.js
-var Yq = ["radius"], Xq = ["radius"], Zq, Qq, $q, eJ, tJ, nJ, rJ, iJ, aJ, oJ;
-function sJ(e, t) {
+var Xq = ["radius"], Zq = ["radius"], Qq, $q, eJ, tJ, nJ, rJ, iJ, aJ, oJ, sJ;
+function cJ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50736,30 +50763,30 @@ function sJ(e, t) {
}
return n;
}
-function cJ(e) {
+function lJ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? sJ(Object(n), !0).forEach(function(t) {
- lJ(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : sJ(Object(n)).forEach(function(t) {
+ t % 2 ? cJ(Object(n), !0).forEach(function(t) {
+ uJ(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : cJ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function lJ(e, t, n) {
- return (t = uJ(t)) in e ? Object.defineProperty(e, t, {
+function uJ(e, t, n) {
+ return (t = dJ(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function uJ(e) {
- var t = dJ(e, "string");
+function dJ(e) {
+ var t = fJ(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function dJ(e, t) {
+function fJ(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50769,25 +50796,25 @@ function dJ(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function fJ() {
- return fJ = Object.assign ? Object.assign.bind() : function(e) {
+function pJ() {
+ return pJ = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, fJ.apply(null, arguments);
+ }, pJ.apply(null, arguments);
}
-function pJ(e, t) {
+function mJ(e, t) {
if (e == null) return {};
- var n, r, i = mJ(e, t);
+ var n, r, i = hJ(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 mJ(e, t) {
+function hJ(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -50796,11 +50823,11 @@ function mJ(e, t) {
}
return n;
}
-function hJ(e, t) {
+function gJ(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var gJ = (e, t, n, r, i) => {
- var a = XR(n), o = XR(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;
+var _J = (e, t, n, r, i) => {
+ var a = ZR(n), o = ZR(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;
if (s > 0 && Array.isArray(i)) {
for (var f = [
0,
@@ -50811,44 +50838,44 @@ var gJ = (e, t, n, r, i) => {
var h = i[p] ?? 0;
f[p] = h > s ? s : h;
}
- d = ZR(Zq ||= hJ([
+ d = QR(Qq ||= gJ([
"M",
",",
""
- ]), e, t + c * f[0]), f[0] > 0 && (d += ZR(Qq ||= hJ([
+ ]), e, t + c * f[0]), f[0] > 0 && (d += QR($q ||= gJ([
"A ",
",",
",0,0,",
",",
",",
""
- ]), f[0], f[0], u, e + l * f[0], t)), d += ZR($q ||= hJ([
+ ]), f[0], f[0], u, e + l * f[0], t)), d += QR(eJ ||= gJ([
"L ",
",",
""
- ]), e + n - l * f[1], t), f[1] > 0 && (d += ZR(eJ ||= hJ([
+ ]), e + n - l * f[1], t), f[1] > 0 && (d += QR(tJ ||= gJ([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += ZR(tJ ||= hJ([
+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += QR(nJ ||= gJ([
"L ",
",",
""
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += ZR(nJ ||= hJ([
+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += QR(rJ ||= gJ([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += ZR(rJ ||= hJ([
+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += QR(iJ ||= gJ([
"L ",
",",
""
- ]), e + l * f[3], t + r), f[3] > 0 && (d += ZR(iJ ||= hJ([
+ ]), e + l * f[3], t + r), f[3] > 0 && (d += QR(aJ ||= gJ([
"A ",
",",
",0,0,",
@@ -50858,8 +50885,8 @@ var gJ = (e, t, n, r, i) => {
]), f[3], f[3], u, e, t + r - c * f[3])), d += "Z";
} else if (s > 0 && i === +i && i > 0) {
var g = Math.min(s, i);
- d = ZR(aJ ||= hJ(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);
- } else d = ZR(oJ ||= hJ([
+ d = QR(oJ ||= gJ(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);
+ } else d = QR(sJ ||= gJ([
"M ",
",",
" h ",
@@ -50868,7 +50895,7 @@ var gJ = (e, t, n, r, i) => {
" Z"
]), e, t, n, r, -n);
return d;
-}, _J = {
+}, vJ = {
x: 0,
y: 0,
width: 0,
@@ -50879,15 +50906,15 @@ var gJ = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, vJ = (e) => {
- var t = bz(e, _J), n = (0, I.useRef)(null), [r, i] = (0, I.useState)(-1);
+}, yJ = (e) => {
+ var t = xz(e, vJ), n = (0, I.useRef)(null), [r, i] = (0, I.useState)(-1);
(0, I.useEffect)(() => {
if (n.current && n.current.getTotalLength) try {
var e = n.current.getTotalLength();
e && i(e);
} catch {}
}, []);
- var { x: a, y: o, width: s, height: c, radius: l, className: u } = t, { animationEasing: d, animationDuration: f, animationBegin: p, isAnimationActive: m, isUpdateAnimationActive: h } = t, g = (0, I.useRef)(s), _ = (0, I.useRef)(c), v = (0, I.useRef)(a), y = (0, I.useRef)(o), b = Jq((0, I.useMemo)(() => ({
+ var { x: a, y: o, width: s, height: c, radius: l, className: u } = t, { animationEasing: d, animationDuration: f, animationBegin: p, isAnimationActive: m, isUpdateAnimationActive: h } = t, g = (0, I.useRef)(s), _ = (0, I.useRef)(c), v = (0, I.useRef)(a), y = (0, I.useRef)(o), b = Yq((0, I.useMemo)(() => ({
x: a,
y: o,
width: s,
@@ -50903,19 +50930,19 @@ var gJ = (e, t, n, r, i) => {
if (a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0) return null;
var x = Wm("recharts-rectangle", u);
if (!h) {
- var S = KL(t), { radius: C } = S, w = pJ(S, Yq);
- return /*#__PURE__*/ I.createElement("path", fJ({}, w, {
- x: XR(a),
- y: XR(o),
- width: XR(s),
- height: XR(c),
+ var S = qL(t), { radius: C } = S, w = mJ(S, Xq);
+ return /*#__PURE__*/ I.createElement("path", pJ({}, w, {
+ x: ZR(a),
+ y: ZR(o),
+ width: ZR(s),
+ height: ZR(c),
radius: typeof l == "number" ? l : void 0,
className: x,
- d: gJ(a, o, s, c, l)
+ d: _J(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 = hq(["strokeDasharray"], f, typeof d == "string" ? d : _J.animationEasing);
- return /*#__PURE__*/ I.createElement(qq, {
+ var T = g.current, E = _.current, D = v.current, O = y.current, k = `0px ${r === -1 ? 1 : r}px`, A = `${r}px ${r}px`, j = gq(["strokeDasharray"], f, typeof d == "string" ? d : vJ.animationEasing);
+ return /*#__PURE__*/ I.createElement(Jq, {
animationId: b,
key: b,
canBegin: r > 0,
@@ -50924,24 +50951,24 @@ var gJ = (e, t, n, r, i) => {
isActive: h,
begin: p
}, (e) => {
- var r = az(T, s, e), i = az(E, c, e), u = az(D, a, e), d = az(O, o, e);
+ var r = oz(T, s, e), i = oz(E, c, e), u = oz(D, a, e), d = oz(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 = KL(t), { radius: h } = p, b = pJ(p, Xq);
- return /*#__PURE__*/ I.createElement("path", fJ({}, b, {
+ } : { strokeDasharray: k } : { strokeDasharray: A }, p = qL(t), { radius: h } = p, b = mJ(p, Zq);
+ return /*#__PURE__*/ I.createElement("path", pJ({}, b, {
radius: typeof l == "number" ? l : void 0,
className: x,
- d: gJ(u, d, r, i, l),
+ d: _J(u, d, r, i, l),
ref: n,
- style: cJ(cJ({}, f), t.style)
+ style: lJ(lJ({}, f), t.style)
}));
});
};
//#endregion
//#region node_modules/recharts/es6/util/PolarUtils.js
-function yJ(e, t) {
+function bJ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50951,30 +50978,30 @@ function yJ(e, t) {
}
return n;
}
-function bJ(e) {
+function xJ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? yJ(Object(n), !0).forEach(function(t) {
- xJ(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yJ(Object(n)).forEach(function(t) {
+ t % 2 ? bJ(Object(n), !0).forEach(function(t) {
+ SJ(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : bJ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function xJ(e, t, n) {
- return (t = SJ(t)) in e ? Object.defineProperty(e, t, {
+function SJ(e, t, n) {
+ return (t = CJ(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function SJ(e) {
- var t = CJ(e, "string");
+function CJ(e) {
+ var t = wJ(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function CJ(e, t) {
+function wJ(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50984,10 +51011,10 @@ function CJ(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var wJ = Math.PI / 180, TJ = (e) => e * Math.PI / 180, EJ = (e) => e * 180 / Math.PI, DJ = (e, t, n, r) => ({
- x: e + Math.cos(-wJ * r) * n,
- y: t + Math.sin(-wJ * r) * n
-}), OJ = function(e, t) {
+var TJ = Math.PI / 180, EJ = (e) => e * Math.PI / 180, DJ = (e) => e * 180 / Math.PI, OJ = (e, t, n, r) => ({
+ x: e + Math.cos(-TJ * r) * n,
+ y: t + Math.sin(-TJ * r) * n
+}), kJ = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
top: 0,
right: 0,
@@ -50998,11 +51025,11 @@ var wJ = Math.PI / 180, TJ = (e) => e * Math.PI / 180, EJ = (e) => e * 180 / Mat
brushBottom: 0
};
return Math.min(Math.abs(e - (n.left || 0) - (n.right || 0)), Math.abs(t - (n.top || 0) - (n.bottom || 0))) / 2;
-}, kJ = (e, t) => {
+}, AJ = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return Math.sqrt((n - i) ** 2 + (r - a) ** 2);
-}, AJ = (e, t) => {
- var { x: n, y: r } = e, { cx: i, cy: a } = t, o = kJ({
+}, jJ = (e, t) => {
+ var { x: n, y: r } = e, { cx: i, cy: a } = t, o = AJ({
x: n,
y: r
}, {
@@ -51016,25 +51043,25 @@ var wJ = Math.PI / 180, TJ = (e) => e * Math.PI / 180, EJ = (e) => e * 180 / Mat
var s = (n - i) / o, c = Math.acos(s);
return r > a && (c = 2 * Math.PI - c), {
radius: o,
- angle: EJ(c),
+ angle: DJ(c),
angleInRadian: c
};
-}, jJ = (e) => {
+}, MJ = (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
};
-}, MJ = (e, t) => {
+}, NJ = (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;
-}, NJ = (e, t) => {
- var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = AJ({
+}, PJ = (e, t) => {
+ var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = jJ({
x: n,
y: r
}, t), { innerRadius: o, outerRadius: s } = t;
if (i < o || i > s || i === 0) return null;
- var { startAngle: c, endAngle: l } = jJ(t), u = a, d;
+ var { startAngle: c, endAngle: l } = MJ(t), u = a, d;
if (c <= l) {
for (; u > l;) u -= 360;
for (; u < c;) u += 360;
@@ -51044,17 +51071,17 @@ var wJ = Math.PI / 180, TJ = (e) => e * Math.PI / 180, EJ = (e) => e * 180 / Mat
for (; u < l;) u += 360;
d = u >= l && u <= c;
}
- return d ? bJ(bJ({}, t), {}, {
+ return d ? xJ(xJ({}, t), {}, {
radius: i,
- angle: MJ(u, t)
+ angle: NJ(u, t)
}) : null;
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js
-function PJ(e) {
+function FJ(e) {
var { cx: t, cy: n, radius: r, startAngle: i, endAngle: a } = e;
return {
- points: [DJ(t, n, r, i), DJ(t, n, r, a)],
+ points: [OJ(t, n, r, i), OJ(t, n, r, a)],
cx: t,
cy: n,
radius: r,
@@ -51064,29 +51091,29 @@ function PJ(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Sector.js
-var FJ, IJ, LJ, RJ, zJ, BJ, VJ;
-function HJ() {
- return HJ = Object.assign ? Object.assign.bind() : function(e) {
+var IJ, LJ, RJ, zJ, BJ, VJ, HJ;
+function UJ() {
+ return UJ = 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;
- }, HJ.apply(null, arguments);
+ }, UJ.apply(null, arguments);
}
-function UJ(e, t) {
+function WJ(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var WJ = (e, t) => QR(t - e) * Math.min(Math.abs(t - e), 359.999), GJ = (e) => {
- var { cx: t, cy: n, radius: r, angle: i, sign: a, isExternal: o, cornerRadius: s, cornerIsExternal: c } = e, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / wJ, d = c ? i : i + a * u, f = DJ(t, n, l, d), p = DJ(t, n, r, d), m = c ? i - a * u : i;
+var GJ = (e, t) => $R(t - e) * Math.min(Math.abs(t - e), 359.999), KJ = (e) => {
+ var { cx: t, cy: n, radius: r, angle: i, sign: a, isExternal: o, cornerRadius: s, cornerIsExternal: c } = e, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / TJ, d = c ? i : i + a * u, f = OJ(t, n, l, d), p = OJ(t, n, r, d), m = c ? i - a * u : i;
return {
center: f,
circleTangency: p,
- lineTangency: DJ(t, n, l * Math.cos(u * wJ), m),
+ lineTangency: OJ(t, n, l * Math.cos(u * TJ), m),
theta: u
};
-}, KJ = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = WJ(a, o), c = a + s, l = DJ(t, n, i, a), u = DJ(t, n, i, c), d = ZR(FJ ||= UJ([
+}, qJ = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = GJ(a, o), c = a + s, l = OJ(t, n, i, a), u = OJ(t, n, i, c), d = QR(IJ ||= WJ([
"M ",
",",
"\n A ",
@@ -51098,8 +51125,8 @@ var WJ = (e, t) => QR(t - e) * Math.min(Math.abs(t - e), 359.999), GJ = (e) => {
"\n "
]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);
if (r > 0) {
- var f = DJ(t, n, r, a), p = DJ(t, n, r, c);
- d += ZR(IJ ||= UJ([
+ var f = OJ(t, n, r, a), p = OJ(t, n, r, c);
+ d += QR(LJ ||= WJ([
"L ",
",",
"\n A ",
@@ -51110,14 +51137,14 @@ var WJ = (e, t) => QR(t - e) * Math.min(Math.abs(t - e), 359.999), GJ = (e) => {
",",
" Z"
]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);
- } else d += ZR(LJ ||= UJ([
+ } else d += QR(RJ ||= WJ([
"L ",
",",
" Z"
]), t, n);
return d;
-}, qJ = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = QR(l - c), { circleTangency: d, lineTangency: f, theta: p } = GJ({
+}, JJ = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = $R(l - c), { circleTangency: d, lineTangency: f, theta: p } = KJ({
cx: t,
cy: n,
radius: i,
@@ -51125,7 +51152,7 @@ var WJ = (e, t) => QR(t - e) * Math.min(Math.abs(t - e), 359.999), GJ = (e) => {
sign: u,
cornerRadius: a,
cornerIsExternal: s
- }), { circleTangency: m, lineTangency: h, theta: g } = GJ({
+ }), { circleTangency: m, lineTangency: h, theta: g } = KJ({
cx: t,
cy: n,
radius: i,
@@ -51134,7 +51161,7 @@ var WJ = (e, t) => QR(t - e) * Math.min(Math.abs(t - e), 359.999), GJ = (e) => {
cornerRadius: a,
cornerIsExternal: s
}), _ = s ? Math.abs(c - l) : Math.abs(c - l) - p - g;
- if (_ < 0) return o ? ZR(RJ ||= UJ([
+ if (_ < 0) return o ? QR(zJ ||= WJ([
"M ",
",",
"\n a",
@@ -51144,7 +51171,7 @@ var WJ = (e, t) => QR(t - e) * Math.min(Math.abs(t - e), 359.999), GJ = (e) => {
",",
",0,0,1,",
",0\n "
- ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : KJ({
+ ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : qJ({
cx: t,
cy: n,
innerRadius: r,
@@ -51152,7 +51179,7 @@ var WJ = (e, t) => QR(t - e) * Math.min(Math.abs(t - e), 359.999), GJ = (e) => {
startAngle: c,
endAngle: l
});
- var v = ZR(zJ ||= UJ([
+ var v = QR(BJ ||= WJ([
"M ",
",",
"\n A",
@@ -51174,7 +51201,7 @@ var WJ = (e, t) => QR(t - e) * Math.min(Math.abs(t - e), 359.999), GJ = (e) => {
"\n "
]), f.x, f.y, a, a, +(u < 0), d.x, d.y, i, i, +(_ > 180), +(u < 0), m.x, m.y, a, a, +(u < 0), h.x, h.y);
if (r > 0) {
- var { circleTangency: y, lineTangency: b, theta: x } = GJ({
+ var { circleTangency: y, lineTangency: b, theta: x } = KJ({
cx: t,
cy: n,
radius: r,
@@ -51183,7 +51210,7 @@ var WJ = (e, t) => QR(t - e) * Math.min(Math.abs(t - e), 359.999), GJ = (e) => {
isExternal: !0,
cornerRadius: a,
cornerIsExternal: s
- }), { circleTangency: S, lineTangency: C, theta: w } = GJ({
+ }), { circleTangency: S, lineTangency: C, theta: w } = KJ({
cx: t,
cy: n,
radius: r,
@@ -51194,7 +51221,7 @@ var WJ = (e, t) => QR(t - e) * Math.min(Math.abs(t - e), 359.999), GJ = (e) => {
cornerIsExternal: s
}), T = s ? Math.abs(c - l) : Math.abs(c - l) - x - w;
if (T < 0 && a === 0) return `${v}L${t},${n}Z`;
- v += ZR(BJ ||= UJ([
+ v += QR(VJ ||= WJ([
"L",
",",
"\n A",
@@ -51215,13 +51242,13 @@ var WJ = (e, t) => QR(t - e) * Math.min(Math.abs(t - e), 359.999), GJ = (e) => {
",",
"Z"
]), C.x, C.y, a, a, +(u < 0), S.x, S.y, r, r, +(T > 180), +(u > 0), y.x, y.y, a, a, +(u < 0), b.x, b.y);
- } else v += ZR(VJ ||= UJ([
+ } else v += QR(HJ ||= WJ([
"L",
",",
"Z"
]), t, n);
return v;
-}, JJ = {
+}, YJ = {
cx: 0,
cy: 0,
innerRadius: 0,
@@ -51231,10 +51258,10 @@ var WJ = (e, t) => QR(t - e) * Math.min(Math.abs(t - e), 359.999), GJ = (e) => {
cornerRadius: 0,
forceCornerRadius: !1,
cornerIsExternal: !1
-}, YJ = (e) => {
- var t = bz(e, JJ), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
+}, XJ = (e) => {
+ var t = xz(e, YJ), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
if (a < i || l === u) return null;
- var f = Wm("recharts-sector", d), p = a - i, m = rz(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? qJ({
+ var f = Wm("recharts-sector", d), p = a - i, m = iz(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? JJ({
cx: n,
cy: r,
innerRadius: i,
@@ -51244,7 +51271,7 @@ var WJ = (e, t) => QR(t - e) * Math.min(Math.abs(t - e), 359.999), GJ = (e) => {
cornerIsExternal: c,
startAngle: l,
endAngle: u
- }) : KJ({
+ }) : qJ({
cx: n,
cy: r,
innerRadius: i,
@@ -51252,14 +51279,14 @@ var WJ = (e, t) => QR(t - e) * Math.min(Math.abs(t - e), 359.999), GJ = (e) => {
startAngle: l,
endAngle: u
});
- return /*#__PURE__*/ I.createElement("path", HJ({}, KL(t), {
+ return /*#__PURE__*/ I.createElement("path", UJ({}, qL(t), {
className: f,
d: h
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js
-function XJ(e, t, n) {
+function ZJ(e, t, n) {
if (e === "horizontal") return [{
x: t.x,
y: n.top
@@ -51274,9 +51301,9 @@ function XJ(e, t, n) {
x: n.left + n.width,
y: t.y
}];
- if (gz(t)) {
+ if (_z(t)) {
if (e === "centric") {
- var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = DJ(r, i, a, s), l = DJ(r, i, o, s);
+ var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = OJ(r, i, a, s), l = OJ(r, i, o, s);
return [{
x: c.x,
y: c.y
@@ -51285,30 +51312,30 @@ function XJ(e, t, n) {
y: l.y
}];
}
- return PJ(t);
+ return FJ(t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs
-function ZJ(e) {
- return KR(e) ? NaN : Number(e);
+function QJ(e) {
+ return qR(e) ? NaN : Number(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs
-function QJ(e) {
- return e ? (e = ZJ(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
+function $J(e) {
+ return e ? (e = QJ(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/range.mjs
-function $J(e, t, n) {
- n && typeof n != "number" && $z(e, t, n) && (t = n = void 0), e = QJ(e), t === void 0 ? (t = e, e = 0) : t = QJ(t), n = n === void 0 ? e < t ? 1 : -1 : QJ(n);
+function eY(e, t, n) {
+ n && typeof n != "number" && eB(e, t, n) && (t = n = void 0), e = $J(e), t === void 0 ? (t = e, e = 0) : t = $J(t), n = n === void 0 ? e < t ? 1 : -1 : $J(n);
let r = Math.max(Math.ceil((t - e) / (n || 1)), 0), i = Array(r);
for (let t = 0; t < r; t++) i[t] = e, e += n;
return i;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/dataSelectors.js
-var eY = (e) => e.chartData, tY = $([eY], (e) => {
+var tY = (e) => e.chartData, nY = $([tY], (e) => {
var t = e.chartData == null ? 0 : e.chartData.length - 1;
return {
chartData: e.chartData,
@@ -51316,35 +51343,35 @@ var eY = (e) => e.chartData, tY = $([eY], (e) => {
dataEndIndex: t,
dataStartIndex: 0
};
-}), nY = (e, t, n, r) => r ? tY(e) : eY(e), rY = (e, t, n) => n ? tY(e) : eY(e);
+}), rY = (e, t, n, r) => r ? nY(e) : tY(e), iY = (e, t, n) => n ? nY(e) : tY(e);
//#endregion
//#region node_modules/recharts/es6/util/isDomainSpecifiedByUser.js
-function iY(e) {
+function aY(e) {
if (Array.isArray(e) && e.length === 2) {
var [t, n] = e;
- if (BH(t) && BH(n)) return !0;
+ if (VH(t) && VH(n)) return !0;
}
return !1;
}
-function aY(e, t, n) {
+function oY(e, t, n) {
return n ? e : [Math.min(e[0], t[0]), Math.max(e[1], t[1])];
}
-function oY(e, t) {
+function sY(e, t) {
if (t && typeof e != "function" && Array.isArray(e) && e.length === 2) {
var [n, r] = e, i, a;
- if (BH(n)) i = n;
+ if (VH(n)) i = n;
else if (typeof n == "function") return;
- if (BH(r)) a = r;
+ if (VH(r)) a = r;
else if (typeof r == "function") return;
var o = [i, a];
- if (iY(o)) return o;
+ if (aY(o)) return o;
}
}
-function sY(e, t, n) {
+function cY(e, t, n) {
if (!(!n && t == null)) {
if (typeof e == "function" && t != null) try {
var r = e(t, n);
- if (iY(r)) return aY(r, t, n);
+ if (aY(r)) return oY(r, t, n);
} catch {}
if (Array.isArray(e) && e.length === 2) {
var [i, a] = e, o, s;
@@ -51353,8 +51380,8 @@ function sY(e, t, n) {
else if (typeof i == "function") try {
t != null && (o = i(t?.[0]));
} catch {}
- else if (typeof i == "string" && cU.test(i)) {
- var c = cU.exec(i);
+ else if (typeof i == "string" && lU.test(i)) {
+ var c = lU.exec(i);
if (c == null || c[1] == null || t == null) o = void 0;
else {
var l = +c[1];
@@ -51366,8 +51393,8 @@ function sY(e, t, n) {
else if (typeof a == "function") try {
t != null && (s = a(t?.[1]));
} catch {}
- else if (typeof a == "string" && lU.test(a)) {
- var u = lU.exec(a);
+ else if (typeof a == "string" && uU.test(a)) {
+ var u = uU.exec(a);
if (u == null || u[1] == null || t == null) s = void 0;
else {
var d = +u[1];
@@ -51375,13 +51402,13 @@ function sY(e, t, n) {
}
} else s = t?.[1];
var f = [o, s];
- if (iY(f)) return t == null ? f : aY(f, t, n);
+ if (aY(f)) return t == null ? f : oY(f, t, n);
}
}
}
//#endregion
//#region node_modules/recharts/es6/util/scale/util/arithmetic.js
-var cY = /* @__PURE__ */ te((/* @__PURE__ */ M(((e, t) => {
+var lY = /* @__PURE__ */ te((/* @__PURE__ */ M(((e, t) => {
(function(e) {
var n = 1e9, r = {
precision: 20,
@@ -51757,75 +51784,75 @@ var cY = /* @__PURE__ */ te((/* @__PURE__ */ M(((e, t) => {
}) : t !== void 0 && t.exports ? t.exports = r : (e ||= typeof self < "u" && self && self.self == self ? self : Function("return this")(), e.Decimal = r);
})(e);
})))());
-function lY(e) {
- return e === 0 ? 1 : Math.floor(new cY.default(e).abs().log(10).toNumber()) + 1;
+function uY(e) {
+ return e === 0 ? 1 : Math.floor(new lY.default(e).abs().log(10).toNumber()) + 1;
}
-function uY(e, t, n) {
- for (var r = new cY.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;
+function dY(e, t, n) {
+ for (var r = new lY.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;
return a;
}
//#endregion
//#region node_modules/recharts/es6/util/scale/getNiceTickValues.js
-var dY = (e) => {
+var fY = (e) => {
var [t, n] = e, [r, i] = [t, n];
return t > n && ([r, i] = [n, t]), [r, i];
-}, fY = (e, t, n) => {
- if (e.lte(0)) return new cY.default(0);
- var r = lY(e.toNumber()), i = new cY.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new cY.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
- return t ? new cY.default(s.toNumber()) : new cY.default(Math.ceil(s.toNumber()));
}, pY = (e, t, n) => {
- if (e.lte(0)) return new cY.default(0);
+ if (e.lte(0)) return new lY.default(0);
+ var r = uY(e.toNumber()), i = new lY.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new lY.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
+ return t ? new lY.default(s.toNumber()) : new lY.default(Math.ceil(s.toNumber()));
+}, mY = (e, t, n) => {
+ if (e.lte(0)) return new lY.default(0);
var r = [
1,
2,
2.5,
5
- ], i = e.toNumber(), a = Math.floor(new cY.default(i).abs().log(10).toNumber()), o = new cY.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);
+ ], i = e.toNumber(), a = Math.floor(new lY.default(i).abs().log(10).toNumber()), o = new lY.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);
if (c === -1 && (o = o.mul(10), c = 0), c += n, c >= r.length) {
var l = Math.floor(c / r.length);
- c %= r.length, o = o.mul(new cY.default(10).pow(l));
+ c %= r.length, o = o.mul(new lY.default(10).pow(l));
}
- var u = r[c] ?? 1, d = new cY.default(u).mul(o);
- return t ? d : new cY.default(Math.ceil(d.toNumber()));
-}, mY = (e, t, n) => {
- var r = new cY.default(1), i = new cY.default(e);
+ var u = r[c] ?? 1, d = new lY.default(u).mul(o);
+ return t ? d : new lY.default(Math.ceil(d.toNumber()));
+}, hY = (e, t, n) => {
+ var r = new lY.default(1), i = new lY.default(e);
if (!i.isint() && n) {
var a = Math.abs(e);
- a < 1 ? (r = new cY.default(10).pow(lY(e) - 1), i = new cY.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new cY.default(Math.floor(e)));
- } else e === 0 ? i = new cY.default(Math.floor((t - 1) / 2)) : n || (i = new cY.default(Math.floor(e)));
- for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new cY.default(c - o).mul(r)).toNumber());
+ a < 1 ? (r = new lY.default(10).pow(uY(e) - 1), i = new lY.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new lY.default(Math.floor(e)));
+ } else e === 0 ? i = new lY.default(Math.floor((t - 1) / 2)) : n || (i = new lY.default(Math.floor(e)));
+ for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new lY.default(c - o).mul(r)).toNumber());
return s;
-}, hY = function(e, t, n, r) {
- var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : fY;
+}, gY = function(e, t, n, r) {
+ var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : pY;
if (!Number.isFinite((t - e) / (n - 1))) return {
- step: new cY.default(0),
- tickMin: new cY.default(0),
- tickMax: new cY.default(0)
+ step: new lY.default(0),
+ tickMin: new lY.default(0),
+ tickMax: new lY.default(0)
};
- var o = a(new cY.default(t).sub(e).div(n - 1), r, i), s;
- e <= 0 && t >= 0 ? s = new cY.default(0) : (s = new cY.default(e).add(t).div(2), s = s.sub(new cY.default(s).mod(o)));
- var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new cY.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
- return u > n ? hY(e, t, n, r, i + 1, a) : (u < n && (l = t > 0 ? l + (n - u) : l, c = t > 0 ? c : c + (n - u)), {
+ var o = a(new lY.default(t).sub(e).div(n - 1), r, i), s;
+ e <= 0 && t >= 0 ? s = new lY.default(0) : (s = new lY.default(e).add(t).div(2), s = s.sub(new lY.default(s).mod(o)));
+ var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new lY.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
+ return u > n ? gY(e, t, n, r, i + 1, a) : (u < n && (l = t > 0 ? l + (n - u) : l, c = t > 0 ? c : c + (n - u)), {
step: o,
- tickMin: s.sub(new cY.default(c).mul(o)),
- tickMax: s.add(new cY.default(l).mul(o))
+ tickMin: s.sub(new lY.default(c).mul(o)),
+ tickMax: s.add(new lY.default(l).mul(o))
});
-}, gY = function(e) {
- var [t, n] = e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", o = Math.max(r, 2), [s, c] = dY([t, n]);
+}, _Y = function(e) {
+ var [t, n] = e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", o = Math.max(r, 2), [s, c] = fY([t, n]);
if (s === -Infinity || c === Infinity) {
var l = c === Infinity ? [s, ...Array(r - 1).fill(Infinity)] : [...Array(r - 1).fill(-Infinity), c];
return t > n ? l.reverse() : l;
}
- if (s === c) return mY(s, r, i);
- var { step: u, tickMin: d, tickMax: f } = hY(s, c, o, i, 0, a === "snap125" ? pY : fY), p = uY(d, f.add(new cY.default(.1).mul(u)), u);
+ if (s === c) return hY(s, r, i);
+ var { step: u, tickMin: d, tickMax: f } = gY(s, c, o, i, 0, a === "snap125" ? mY : pY), p = dY(d, f.add(new lY.default(.1).mul(u)), u);
return t > n ? p.reverse() : p;
-}, _Y = function(e, t) {
- var [n, r] = e, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", [o, s] = dY([n, r]);
+}, vY = function(e, t) {
+ var [n, r] = e, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", [o, s] = fY([n, r]);
if (o === -Infinity || s === Infinity) return [n, r];
if (o === s) return [o];
- var c = a === "snap125" ? pY : fY, l = Math.max(t, 2), u = c(new cY.default(s).sub(o).div(l - 1), i, 0), d = [...uY(new cY.default(o), new cY.default(s), u), s];
+ var c = a === "snap125" ? mY : pY, l = Math.max(t, 2), u = c(new lY.default(s).sub(o).div(l - 1), i, 0), d = [...dY(new lY.default(o), new lY.default(s), u), s];
return i === !1 && (d = d.map((e) => Math.round(e))), n > r ? d.reverse() : d;
-}, vY = (e) => e.rootProps.maxBarSize, yY = (e) => e.rootProps.barGap, bY = (e) => e.rootProps.barCategoryGap, xY = (e) => e.rootProps.barSize, SY = (e) => e.rootProps.stackOffset, CY = (e) => e.rootProps.reverseStackOrder, wY = (e) => e.options.chartName, TY = (e) => e.rootProps.syncId, EY = (e) => e.rootProps.syncMethod, DY = (e) => e.options.eventEmitter, OY = (e) => e.rootProps.baseValue, kY = {
+}, yY = (e) => e.rootProps.maxBarSize, bY = (e) => e.rootProps.barGap, xY = (e) => e.rootProps.barCategoryGap, SY = (e) => e.rootProps.barSize, CY = (e) => e.rootProps.stackOffset, wY = (e) => e.rootProps.reverseStackOrder, TY = (e) => e.options.chartName, EY = (e) => e.rootProps.syncId, DY = (e) => e.rootProps.syncMethod, OY = (e) => e.options.eventEmitter, kY = (e) => e.rootProps.baseValue, AY = {
grid: -100,
barBackground: -50,
area: 100,
@@ -51838,7 +51865,7 @@ var dY = (e) => {
cursorLine: 1100,
activeDot: 1200,
label: 2e3
-}, AY = {
+}, jY = {
allowDecimals: !1,
allowDuplicatedCategory: !0,
allowDataOverflow: !1,
@@ -51859,8 +51886,8 @@ var dY = (e) => {
tickLine: !0,
tickSize: 8,
type: "auto",
- zIndex: kY.axis
-}, jY = {
+ zIndex: AY.axis
+}, MY = {
allowDataOverflow: !1,
allowDecimals: !1,
allowDuplicatedCategory: !0,
@@ -51879,19 +51906,19 @@ var dY = (e) => {
tickCount: 5,
tickLine: !0,
type: "auto",
- zIndex: kY.axis
-}, MY = (e, t) => {
+ zIndex: AY.axis
+}, NY = (e, t) => {
if (!(!e || !t)) return e != null && e.reversed ? [t[1], t[0]] : t;
};
//#endregion
//#region node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.js
-function NY(e, t, n) {
+function PY(e, t, n) {
if (n !== "auto") return n;
- if (e != null) return YH(e, t) ? "category" : "number";
+ if (e != null) return XH(e, t) ? "category" : "number";
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/polarAxisSelectors.js
-function PY(e, t) {
+function FY(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -51901,30 +51928,30 @@ function PY(e, t) {
}
return n;
}
-function FY(e) {
+function IY(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? PY(Object(n), !0).forEach(function(t) {
- IY(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : PY(Object(n)).forEach(function(t) {
+ t % 2 ? FY(Object(n), !0).forEach(function(t) {
+ LY(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : FY(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function IY(e, t, n) {
- return (t = LY(t)) in e ? Object.defineProperty(e, t, {
+function LY(e, t, n) {
+ return (t = RY(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function LY(e) {
- var t = RY(e, "string");
+function RY(e) {
+ var t = zY(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function RY(e, t) {
+function zY(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -51934,81 +51961,81 @@ function RY(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var zY = {
- allowDataOverflow: AY.allowDataOverflow,
- allowDecimals: AY.allowDecimals,
+var BY = {
+ allowDataOverflow: jY.allowDataOverflow,
+ allowDecimals: jY.allowDecimals,
allowDuplicatedCategory: !1,
dataKey: void 0,
domain: void 0,
- id: AY.angleAxisId,
+ id: jY.angleAxisId,
includeHidden: !1,
name: void 0,
- reversed: AY.reversed,
- scale: AY.scale,
- tick: AY.tick,
+ reversed: jY.reversed,
+ scale: jY.scale,
+ tick: jY.tick,
tickCount: void 0,
ticks: void 0,
- type: AY.type,
+ type: jY.type,
unit: void 0,
niceTicks: "auto"
-}, BY = {
- allowDataOverflow: jY.allowDataOverflow,
- allowDecimals: jY.allowDecimals,
- allowDuplicatedCategory: jY.allowDuplicatedCategory,
+}, VY = {
+ allowDataOverflow: MY.allowDataOverflow,
+ allowDecimals: MY.allowDecimals,
+ allowDuplicatedCategory: MY.allowDuplicatedCategory,
dataKey: void 0,
domain: void 0,
- id: jY.radiusAxisId,
- includeHidden: jY.includeHidden,
+ id: MY.radiusAxisId,
+ includeHidden: MY.includeHidden,
name: void 0,
- reversed: jY.reversed,
- scale: jY.scale,
- tick: jY.tick,
- tickCount: jY.tickCount,
+ reversed: MY.reversed,
+ scale: MY.scale,
+ tick: MY.tick,
+ tickCount: MY.tickCount,
ticks: void 0,
- type: jY.type,
+ type: MY.type,
unit: void 0,
niceTicks: "auto"
-}, VY = $([(e, t) => {
+}, HY = $([(e, t) => {
if (t != null) return e.polarAxis.angleAxis[t];
-}, yW], (e, t) => {
+}, bW], (e, t) => {
if (e != null) return e;
- var n = NY(t, "angleAxis", zY.type) ?? "category";
- return FY(FY({}, zY), {}, { type: n });
-}), HY = $([(e, t) => e.polarAxis.radiusAxis[t], yW], (e, t) => {
+ var n = PY(t, "angleAxis", BY.type) ?? "category";
+ return IY(IY({}, BY), {}, { type: n });
+}), UY = $([(e, t) => e.polarAxis.radiusAxis[t], bW], (e, t) => {
if (e != null) return e;
- var n = NY(t, "radiusAxis", BY.type) ?? "category";
- return FY(FY({}, BY), {}, { type: n });
-}), UY = (e) => e.polarOptions, WY = $([
- hU,
+ var n = PY(t, "radiusAxis", VY.type) ?? "category";
+ return IY(IY({}, VY), {}, { type: n });
+}), WY = (e) => e.polarOptions, GY = $([
gU,
- MU
-], OJ), GY = $([UY, WY], (e, t) => {
- if (e != null) return rz(e.innerRadius, t, 0);
-}), KY = $([UY, WY], (e, t) => {
- if (e != null) return rz(e.outerRadius, t, t * .8);
-}), qY = $([UY], (e) => {
+ _U,
+ NU
+], kJ), KY = $([WY, GY], (e, t) => {
+ if (e != null) return iz(e.innerRadius, t, 0);
+}), qY = $([WY, GY], (e, t) => {
+ if (e != null) return iz(e.outerRadius, t, t * .8);
+}), JY = $([WY], (e) => {
if (e == null) return [0, 0];
var { startAngle: t, endAngle: n } = e;
return [t, n];
-}), JY = $([VY, qY], MY), YY = $([
- WY,
+}), YY = $([HY, JY], NY), XY = $([
GY,
- KY
+ KY,
+ qY
], (e, t, n) => {
if (e != null && t != null && n != null) return [t, n];
-}), XY = $([HY, YY], MY), ZY = $([
- gW,
- UY,
- GY,
+}), ZY = $([UY, XY], NY), QY = $([
+ _W,
+ WY,
KY,
- hU,
- gU
+ qY,
+ gU,
+ _U
], (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: rz(o, i, i / 2),
- cy: rz(s, a, a / 2),
+ cx: iz(o, i, i / 2),
+ cy: iz(s, a, a / 2),
innerRadius: n,
outerRadius: r,
startAngle: c,
@@ -52016,22 +52043,22 @@ var zY = {
clockWise: !1
};
}
-}), QY = (e, t) => t, $Y = (e, t, n) => n;
+}), $Y = (e, t) => t, eX = (e, t, n) => n;
//#endregion
//#region node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js
-function eX(e) {
+function tX(e) {
return e?.id;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js
-function tX(e, t, n) {
+function nX(e, t, n) {
var { chartData: r = [] } = t, { allowDuplicatedCategory: i, dataKey: a } = n, o = /* @__PURE__ */ new Map();
return e.forEach((e) => {
var t = e.data ?? r;
if (t != null && t.length !== 0) {
- var n = eX(e);
+ var n = tX(e);
t.forEach((t, r) => {
- var s = a == null || i ? r : String(qH(t, a, null)), c = qH(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
+ var s = a == null || i ? r : String(JH(t, a, null)), c = JH(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
Object.assign(l, { [n]: c }), o.set(s, l);
});
}
@@ -52039,18 +52066,18 @@ function tX(e, t, n) {
}
//#endregion
//#region node_modules/recharts/es6/state/types/StackedGraphicalItem.js
-function nX(e) {
+function rX(e) {
return "stackId" in e && e.stackId != null && e.dataKey != null;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/numberDomainEqualityCheck.js
-var rX = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];
+var iX = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];
//#endregion
//#region node_modules/recharts/es6/state/selectors/arrayEqualityCheck.js
-function iX(e, t) {
+function aX(e, t) {
return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;
}
-function aX(e, t) {
+function oX(e, t) {
if (e.length === t.length) {
for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
return !0;
@@ -52059,13 +52086,13 @@ function aX(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js
-var oX = (e) => {
- var t = gW(e);
+var sX = (e) => {
+ var t = _W(e);
return t === "horizontal" ? "xAxis" : t === "vertical" ? "yAxis" : t === "centric" ? "angleAxis" : "radiusAxis";
-}, sX = (e) => e.tooltip.settings.axisId;
+}, cX = (e) => e.tooltip.settings.axisId;
//#endregion
//#region node_modules/recharts/es6/util/scale/RechartsScale.js
-function cX(e) {
+function lX(e) {
if (e != null) {
var t = e.ticks, n = e.bandwidth, r = e.range(), i = [Math.min(...r), Math.max(...r)];
return {
@@ -52106,13 +52133,13 @@ function cX(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineCheckedDomain.js
-var lX = (e, t) => {
+var uX = (e, t) => {
if (t != null) switch (e) {
case "linear":
- if (!iY(t)) {
+ if (!aY(t)) {
for (var n, r, i = 0; i < t.length; i++) {
var a = t[i];
- BH(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
+ VH(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;
}
@@ -52122,14 +52149,14 @@ var lX = (e, t) => {
};
//#endregion
//#region node_modules/d3-array/src/ascending.js
-function uX(e, t) {
+function dX(e, t) {
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
}
//#endregion
//#region node_modules/d3-array/src/bisector.js
-function dX(e) {
+function fX(e) {
let t = e, n = e;
- e.length === 1 && (t = (t, n) => e(t) - n, n = fX(e));
+ e.length === 1 && (t = (t, n) => e(t) - n, n = pX(e));
function r(e, t, r, i) {
for (r ??= 0, i ??= e.length; r < i;) {
let a = r + i >>> 1;
@@ -52155,15 +52182,15 @@ function dX(e) {
right: i
};
}
-function fX(e) {
- return (t, n) => uX(e(t), n);
+function pX(e) {
+ return (t, n) => dX(e(t), n);
}
//#endregion
//#region node_modules/d3-array/src/number.js
-function pX(e) {
+function mX(e) {
return e === null ? NaN : +e;
}
-function* mX(e, t) {
+function* hX(e, t) {
if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);
else {
let n = -1;
@@ -52172,43 +52199,43 @@ function* mX(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/bisect.js
-var hX = dX(uX), gX = hX.right;
-hX.left, dX(pX).center;
+var gX = fX(dX), _X = gX.right;
+gX.left, fX(mX).center;
//#endregion
//#region node_modules/internmap/src/index.js
-var _X = class extends Map {
- constructor(e, t = xX) {
+var vX = class extends Map {
+ constructor(e, t = Npe) {
if (super(), Object.defineProperties(this, {
_intern: { value: /* @__PURE__ */ new Map() },
_key: { value: t }
}), e != null) for (let [t, n] of e) this.set(t, n);
}
get(e) {
- return super.get(vX(this, e));
+ return super.get(yX(this, e));
}
has(e) {
- return super.has(vX(this, e));
+ return super.has(yX(this, e));
}
set(e, t) {
- return super.set(yX(this, e), t);
+ return super.set(bX(this, e), t);
}
delete(e) {
- return super.delete(bX(this, e));
+ return super.delete(xX(this, e));
}
};
-function vX({ _intern: e, _key: t }, n) {
+function yX({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : n;
}
-function yX({ _intern: e, _key: t }, n) {
+function bX({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : (e.set(r, n), n);
}
-function bX({ _intern: e, _key: t }, n) {
+function xX({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) && (n = e.get(n), e.delete(r)), n;
}
-function xX(e) {
+function Npe(e) {
return typeof e == "object" && e ? e.valueOf() : e;
}
//#endregion
@@ -52260,7 +52287,7 @@ function kX(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/quickselect.js
-function AX(e, t, n = 0, r = e.length - 1, i = uX) {
+function AX(e, t, n = 0, r = e.length - 1, i = dX) {
for (; r > n;) {
if (r - n > 600) {
let a = r - n + 1, o = t - n + 1, s = Math.log(a), c = .5 * Math.exp(2 * s / 3), l = .5 * Math.sqrt(s * c * (a - c) / a) * (o - a / 2 < 0 ? -1 : 1);
@@ -52281,15 +52308,15 @@ function jX(e, t, n) {
}
//#endregion
//#region node_modules/d3-array/src/quantile.js
-function Npe(e, t, n) {
- if (e = Float64Array.from(mX(e, n)), r = e.length) {
+function Ppe(e, t, n) {
+ if (e = Float64Array.from(hX(e, n)), r = e.length) {
if ((t = +t) <= 0 || r < 2) return kX(e);
if (t >= 1) return OX(e);
var r, i = (r - 1) * t, a = Math.floor(i), o = OX(AX(e, a).subarray(0, a + 1));
return o + (kX(e.subarray(a + 1)) - o) * (i - a);
}
}
-function Ppe(e, t, n = pX) {
+function Fpe(e, t, n = mX) {
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);
@@ -52299,7 +52326,7 @@ function Ppe(e, t, n = pX) {
}
//#endregion
//#region node_modules/d3-array/src/range.js
-function Fpe(e, t, n) {
+function Ipe(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;
@@ -52341,7 +52368,7 @@ function PX(e, t) {
//#region node_modules/d3-scale/src/ordinal.js
var FX = Symbol("implicit");
function IX() {
- var e = new _X(), t = [], n = [], r = FX;
+ var e = new vX(), t = [], n = [], r = FX;
function i(i) {
let a = e.get(i);
if (a === void 0) {
@@ -52352,7 +52379,7 @@ function IX() {
}
return i.domain = function(n) {
if (!arguments.length) return t.slice();
- t = [], e = new _X();
+ t = [], e = new vX();
for (let r of n) e.has(r) || e.set(r, t.push(r) - 1);
return i;
}, i.range = function(e) {
@@ -52371,7 +52398,7 @@ function LX() {
function d() {
var e = t().length, d = i < r, f = d ? i : r, p = d ? r : i;
a = (p - f) / Math.max(1, e - c + l * 2), s && (a = Math.floor(a)), f += (p - f - a * (e - c)) * u, o = a * (1 - c), s && (f = Math.round(f), o = Math.round(o));
- var m = Fpe(e).map(function(e) {
+ var m = Ipe(e).map(function(e) {
return f + a * e;
});
return n(d ? m.reverse() : m);
@@ -52406,7 +52433,7 @@ function RX(e) {
return RX(t());
}, e;
}
-function Ipe() {
+function Lpe() {
return RX(LX.apply(null, arguments).paddingInner(1));
}
//#endregion
@@ -52422,7 +52449,7 @@ function BX(e, t) {
//#endregion
//#region node_modules/d3-color/src/color.js
function VX() {}
-var HX = .7, UX = 1 / HX, WX = "\\s*([+-]?\\d+)\\s*", GX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", KX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Lpe = /^#([0-9a-f]{3,8})$/, Rpe = RegExp(`^rgb\\(${WX},${WX},${WX}\\)$`), zpe = RegExp(`^rgb\\(${KX},${KX},${KX}\\)$`), Bpe = RegExp(`^rgba\\(${WX},${WX},${WX},${GX}\\)$`), Vpe = RegExp(`^rgba\\(${KX},${KX},${KX},${GX}\\)$`), Hpe = RegExp(`^hsl\\(${GX},${KX},${KX}\\)$`), Upe = RegExp(`^hsla\\(${GX},${KX},${KX},${GX}\\)$`), qX = {
+var HX = .7, UX = 1 / HX, WX = "\\s*([+-]?\\d+)\\s*", GX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", KX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Rpe = /^#([0-9a-f]{3,8})$/, zpe = RegExp(`^rgb\\(${WX},${WX},${WX}\\)$`), Bpe = RegExp(`^rgb\\(${KX},${KX},${KX}\\)$`), Vpe = RegExp(`^rgba\\(${WX},${WX},${WX},${GX}\\)$`), Hpe = RegExp(`^rgba\\(${KX},${KX},${KX},${GX}\\)$`), Upe = RegExp(`^hsl\\(${GX},${KX},${KX}\\)$`), Wpe = RegExp(`^hsla\\(${GX},${KX},${KX},${GX}\\)$`), qX = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
@@ -52581,18 +52608,18 @@ zX(VX, XX, {
},
hex: JX,
formatHex: JX,
- formatHex8: Wpe,
- formatHsl: Gpe,
+ formatHex8: Gpe,
+ formatHsl: Kpe,
formatRgb: YX,
toString: YX
});
function JX() {
return this.rgb().formatHex();
}
-function Wpe() {
+function Gpe() {
return this.rgb().formatHex8();
}
-function Gpe() {
+function Kpe() {
return sZ(this).formatHsl();
}
function YX() {
@@ -52600,7 +52627,7 @@ function YX() {
}
function XX(e) {
var t, n;
- return e = (e + "").trim().toLowerCase(), (t = Lpe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? ZX(t) : n === 3 ? new eZ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? QX(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? QX(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = Rpe.exec(e)) ? new eZ(t[1], t[2], t[3], 1) : (t = zpe.exec(e)) ? new eZ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Bpe.exec(e)) ? QX(t[1], t[2], t[3], t[4]) : (t = Vpe.exec(e)) ? QX(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Hpe.exec(e)) ? oZ(t[1], t[2] / 100, t[3] / 100, 1) : (t = Upe.exec(e)) ? oZ(t[1], t[2] / 100, t[3] / 100, t[4]) : qX.hasOwnProperty(e) ? ZX(qX[e]) : e === "transparent" ? new eZ(NaN, NaN, NaN, 0) : null;
+ return e = (e + "").trim().toLowerCase(), (t = Rpe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? ZX(t) : n === 3 ? new eZ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? QX(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? QX(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = zpe.exec(e)) ? new eZ(t[1], t[2], t[3], 1) : (t = Bpe.exec(e)) ? new eZ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Vpe.exec(e)) ? QX(t[1], t[2], t[3], t[4]) : (t = Hpe.exec(e)) ? QX(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Upe.exec(e)) ? oZ(t[1], t[2] / 100, t[3] / 100, 1) : (t = Wpe.exec(e)) ? oZ(t[1], t[2] / 100, t[3] / 100, t[4]) : qX.hasOwnProperty(e) ? ZX(qX[e]) : e === "transparent" ? new eZ(NaN, NaN, NaN, 0) : null;
}
function ZX(e) {
return new eZ(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
@@ -52608,11 +52635,11 @@ function ZX(e) {
function QX(e, t, n, r) {
return r <= 0 && (e = t = n = NaN), new eZ(e, t, n, r);
}
-function Kpe(e) {
+function qpe(e) {
return e instanceof VX || (e = XX(e)), e ? (e = e.rgb(), new eZ(e.r, e.g, e.b, e.opacity)) : new eZ();
}
function $X(e, t, n, r) {
- return arguments.length === 1 ? Kpe(e) : new eZ(e, t, n, r ?? 1);
+ return arguments.length === 1 ? qpe(e) : new eZ(e, t, n, r ?? 1);
}
function eZ(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
@@ -52635,14 +52662,14 @@ zX(eZ, $X, BX(VX, {
},
hex: tZ,
formatHex: tZ,
- formatHex8: qpe,
+ formatHex8: Jpe,
formatRgb: nZ,
toString: nZ
}));
function tZ() {
return `#${aZ(this.r)}${aZ(this.g)}${aZ(this.b)}`;
}
-function qpe() {
+function Jpe() {
return `#${aZ(this.r)}${aZ(this.g)}${aZ(this.b)}${aZ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
}
function nZ() {
@@ -52669,13 +52696,13 @@ function sZ(e) {
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new cZ(o, s, c, e.opacity);
}
-function Jpe(e, t, n, r) {
+function Ype(e, t, n, r) {
return arguments.length === 1 ? sZ(e) : new cZ(e, t, n, r ?? 1);
}
function cZ(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
}
-zX(cZ, Jpe, BX(VX, {
+zX(cZ, Ype, BX(VX, {
brighter(e) {
return e = e == null ? UX : UX ** +e, new cZ(this.h, this.s, this.l * e, this.opacity);
},
@@ -52711,29 +52738,29 @@ function dZ(e, t, n) {
var fZ = (e) => () => e;
//#endregion
//#region node_modules/d3-interpolate/src/color.js
-function Ype(e, t) {
+function Xpe(e, t) {
return function(n) {
return e + n * t;
};
}
-function Xpe(e, t, n) {
+function Zpe(e, t, n) {
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
return (e + r * t) ** +n;
};
}
-function Zpe(e) {
+function Qpe(e) {
return (e = +e) == 1 ? pZ : function(t, n) {
- return n - t ? Xpe(t, n, e) : fZ(isNaN(t) ? n : t);
+ return n - t ? Zpe(t, n, e) : fZ(isNaN(t) ? n : t);
};
}
function pZ(e, t) {
var n = t - e;
- return n ? Ype(e, n) : fZ(isNaN(e) ? t : e);
+ return n ? Xpe(e, n) : fZ(isNaN(e) ? t : e);
}
//#endregion
//#region node_modules/d3-interpolate/src/rgb.js
var mZ = (function e(t) {
- var n = Zpe(t);
+ var n = Qpe(t);
function r(e, t) {
var r = n((e = $X(e)).r, (t = $X(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = pZ(e.opacity, t.opacity);
return function(t) {
@@ -52744,7 +52771,7 @@ var mZ = (function e(t) {
})(1);
//#endregion
//#region node_modules/d3-interpolate/src/numberArray.js
-function Qpe(e, t) {
+function $pe(e, t) {
t ||= [];
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
return function(a) {
@@ -52752,12 +52779,12 @@ function Qpe(e, t) {
return r;
};
}
-function $pe(e) {
+function eme(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/d3-interpolate/src/array.js
-function eme(e, t) {
+function tme(e, t) {
var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o;
for (o = 0; o < r; ++o) i[o] = vZ(e[o], t[o]);
for (; o < n; ++o) a[o] = t[o];
@@ -52768,7 +52795,7 @@ function eme(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/date.js
-function tme(e, t) {
+function nme(e, t) {
var n = /* @__PURE__ */ new Date();
return e = +e, t = +t, function(r) {
return n.setTime(e * (1 - r) + t * r), n;
@@ -52783,7 +52810,7 @@ function hZ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/object.js
-function nme(e, t) {
+function rme(e, t) {
var n = {}, r = {}, i;
for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = vZ(e[i], t[i]) : r[i] = t[i];
return function(e) {
@@ -52794,23 +52821,23 @@ function nme(e, t) {
//#endregion
//#region node_modules/d3-interpolate/src/string.js
var gZ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, _Z = new RegExp(gZ.source, "g");
-function rme(e) {
+function ime(e) {
return function() {
return e;
};
}
-function ime(e) {
+function ame(e) {
return function(t) {
return e(t) + "";
};
}
-function ame(e, t) {
+function ome(e, t) {
var n = gZ.lastIndex = _Z.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
for (e += "", t += ""; (r = gZ.exec(e)) && (i = _Z.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
i: o,
x: hZ(r, i)
})), n = _Z.lastIndex;
- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? ime(c[0].x) : rme(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] ? ame(c[0].x) : ime(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("");
});
@@ -52819,7 +52846,7 @@ function ame(e, t) {
//#region node_modules/d3-interpolate/src/value.js
function vZ(e, t) {
var n = typeof t, r;
- return t == null || n === "boolean" ? fZ(t) : (n === "number" ? hZ : n === "string" ? (r = XX(t)) ? (t = r, mZ) : ame : t instanceof XX ? mZ : t instanceof Date ? tme : $pe(t) ? Qpe : Array.isArray(t) ? eme : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? nme : hZ)(e, t);
+ return t == null || n === "boolean" ? fZ(t) : (n === "number" ? hZ : n === "string" ? (r = XX(t)) ? (t = r, mZ) : ome : t instanceof XX ? mZ : t instanceof Date ? nme : eme(t) ? $pe : Array.isArray(t) ? tme : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? rme : hZ)(e, t);
}
//#endregion
//#region node_modules/d3-interpolate/src/round.js
@@ -52830,7 +52857,7 @@ function yZ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/piecewise.js
-function ome(e, t) {
+function sme(e, t) {
t === void 0 && (t = e, e = vZ);
for (var n = 0, r = t.length - 1, i = t[0], a = Array(r < 0 ? 0 : r); n < r;) a[n] = e(i, i = t[++n]);
return function(e) {
@@ -52840,7 +52867,7 @@ function ome(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/constant.js
-function sme(e) {
+function cme(e) {
return function() {
return e;
};
@@ -52859,25 +52886,25 @@ function SZ(e) {
function CZ(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t;
- } : sme(isNaN(t) ? NaN : .5);
+ } : cme(isNaN(t) ? NaN : .5);
}
-function cme(e, t) {
+function lme(e, t) {
var n;
return e > t && (n = e, e = t, t = n), function(n) {
return Math.max(e, Math.min(t, n));
};
}
-function lme(e, t, n) {
+function ume(e, t, n) {
var r = e[0], i = e[1], a = t[0], o = t[1];
return i < r ? (r = CZ(i, r), a = n(o, a)) : (r = CZ(r, i), a = n(a, o)), function(e) {
return a(r(e));
};
}
-function ume(e, t, n) {
+function dme(e, t, n) {
var r = Math.min(e.length, t.length) - 1, i = Array(r), a = Array(r), o = -1;
for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = CZ(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
return function(t) {
- var n = gX(e, t, 1, r) - 1;
+ var n = _X(e, t, 1, r) - 1;
return a[n](i[n](t));
};
}
@@ -52888,7 +52915,7 @@ function TZ() {
var e = xZ, t = xZ, n = vZ, r, i, a, o = SZ, s, c, l;
function u() {
var n = Math.min(e.length, t.length);
- return o !== SZ && (o = cme(e[0], e[n - 1])), s = n > 2 ? ume : lme, c = l = null, d;
+ return o !== SZ && (o = lme(e[0], e[n - 1])), s = n > 2 ? dme : ume, c = l = null, d;
}
function d(i) {
return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));
@@ -52916,7 +52943,7 @@ function EZ() {
}
//#endregion
//#region node_modules/d3-format/src/formatDecimal.js
-function dme(e) {
+function fme(e) {
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
function DZ(e, t) {
@@ -52931,7 +52958,7 @@ function OZ(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatGroup.js
-function fme(e, t) {
+function pme(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);
@@ -52939,7 +52966,7 @@ function fme(e, t) {
}
//#endregion
//#region node_modules/d3-format/src/formatNumerals.js
-function pme(e) {
+function mme(e) {
return function(t) {
return t.replace(/[0-9]/g, function(t) {
return e[+t];
@@ -52948,9 +52975,9 @@ function pme(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatSpecifier.js
-var mme = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
+var hme = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
function kZ(e) {
- if (!(t = mme.exec(e))) throw Error("invalid format: " + e);
+ if (!(t = hme.exec(e))) throw Error("invalid format: " + e);
var t;
return new AZ({
fill: t[1],
@@ -52974,7 +53001,7 @@ AZ.prototype.toString = function() {
};
//#endregion
//#region node_modules/d3-format/src/formatTrim.js
-function hme(e) {
+function gme(e) {
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
case ".":
r = i = n;
@@ -52991,7 +53018,7 @@ function hme(e) {
//#endregion
//#region node_modules/d3-format/src/formatPrefixAuto.js
var jZ;
-function gme(e, t) {
+function _me(e, t) {
var n = DZ(e, t);
if (!n) return jZ = void 0, e.toPrecision(t);
var r = n[0], i = n[1], a = i - (jZ = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
@@ -53011,14 +53038,14 @@ var NZ = {
"%": (e, t) => (e * 100).toFixed(t),
b: (e) => Math.round(e).toString(2),
c: (e) => e + "",
- d: dme,
+ d: fme,
e: (e, t) => e.toExponential(t),
f: (e, t) => e.toFixed(t),
g: (e, t) => e.toPrecision(t),
o: (e) => Math.round(e).toString(8),
p: (e, t) => MZ(e * 100, t),
r: MZ,
- s: gme,
+ s: _me,
X: (e) => Math.round(e).toString(16).toUpperCase(),
x: (e) => Math.round(e).toString(16)
};
@@ -53048,8 +53075,8 @@ var FZ = Array.prototype.map, IZ = [
"Z",
"Y"
];
-function _me(e) {
- var t = e.grouping === void 0 || e.thousands === void 0 ? PZ : fme(FZ.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? PZ : pme(FZ.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
+function vme(e) {
+ var t = e.grouping === void 0 || e.thousands === void 0 ? PZ : pme(FZ.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? PZ : mme(FZ.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
function l(e, l) {
e = kZ(e);
var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, g = e.comma, _ = e.precision, v = e.trim, y = e.type;
@@ -53062,7 +53089,7 @@ function _me(e) {
else {
e = +e;
var w = e < 0 || 1 / e < 0;
- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = hme(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && jZ !== void 0 ? IZ[8 + jZ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
+ if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = gme(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && jZ !== void 0 ? IZ[8 + jZ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
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;
@@ -53103,27 +53130,27 @@ function _me(e) {
//#endregion
//#region node_modules/d3-format/src/defaultLocale.js
var LZ, RZ, zZ;
-vme({
+yme({
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
-function vme(e) {
- return LZ = _me(e), RZ = LZ.format, zZ = LZ.formatPrefix, LZ;
+function yme(e) {
+ return LZ = vme(e), RZ = LZ.format, zZ = LZ.formatPrefix, LZ;
}
//#endregion
//#region node_modules/d3-format/src/precisionFixed.js
-function yme(e) {
+function bme(e) {
return Math.max(0, -OZ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionPrefix.js
-function bme(e, t) {
+function xme(e, t) {
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(OZ(t) / 3))) * 3 - OZ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionRound.js
-function xme(e, t) {
+function Sme(e, t) {
return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, OZ(t) - OZ(e)) + 1;
}
//#endregion
@@ -53133,16 +53160,16 @@ function BZ(e, t, n, r) {
switch (r = kZ(r ?? ",f"), r.type) {
case "s":
var o = Math.max(Math.abs(e), Math.abs(t));
- return r.precision == null && !isNaN(a = bme(i, o)) && (r.precision = a), zZ(r, o);
+ return r.precision == null && !isNaN(a = xme(i, o)) && (r.precision = a), zZ(r, o);
case "":
case "e":
case "g":
case "p":
case "r":
- r.precision == null && !isNaN(a = xme(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
+ r.precision == null && !isNaN(a = Sme(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
break;
case "f":
- case "%": r.precision == null && !isNaN(a = yme(i)) && (r.precision = a - (r.type === "%") * 2);
+ case "%": r.precision == null && !isNaN(a = bme(i)) && (r.precision = a - (r.type === "%") * 2);
}
return RZ(r);
}
@@ -53205,19 +53232,19 @@ function GZ(e) {
function KZ(e) {
return Math.exp(e);
}
-function Sme(e) {
- return -Math.log(-e);
-}
function Cme(e) {
- return -Math.exp(-e);
+ return -Math.log(-e);
}
function wme(e) {
- return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
+ return -Math.exp(-e);
}
function Tme(e) {
- return e === 10 ? wme : e === Math.E ? Math.exp : (t) => e ** +t;
+ return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
}
function Eme(e) {
+ return e === 10 ? Tme : e === Math.E ? Math.exp : (t) => e ** +t;
+}
+function Dme(e) {
return e === Math.E ? Math.log : e === 10 && Math.log10 || e === 2 && Math.log2 || (e = Math.log(e), (t) => Math.log(t) / e);
}
function qZ(e) {
@@ -53226,7 +53253,7 @@ function qZ(e) {
function JZ(e) {
let t = e(GZ, KZ), n = t.domain, r = 10, i, a;
function o() {
- return i = Eme(r), a = Tme(r), n()[0] < 0 ? (i = qZ(i), a = qZ(a), e(Sme, Cme)) : e(GZ, KZ), t;
+ return i = Dme(r), a = Eme(r), n()[0] < 0 ? (i = qZ(i), a = qZ(a), e(Cme, wme)) : e(GZ, KZ), t;
}
return t.base = function(e) {
return arguments.length ? (r = +e, o()) : r;
@@ -53296,16 +53323,16 @@ function eQ(e) {
return t < 0 ? -((-t) ** +e) : t ** +e;
};
}
-function Dme(e) {
+function Ome(e) {
return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);
}
-function Ome(e) {
+function kme(e) {
return e < 0 ? -e * e : e * e;
}
function tQ(e) {
var t = e(SZ, SZ), n = 1;
function r() {
- return n === 1 ? e(SZ, SZ) : n === .5 ? e(Dme, Ome) : e(eQ(n), eQ(1 / n));
+ return n === 1 ? e(SZ, SZ) : n === .5 ? e(Ome, kme) : e(eQ(n), eQ(1 / n));
}
return t.exponent = function(e) {
return arguments.length ? (n = +e, r()) : n;
@@ -53317,7 +53344,7 @@ function nQ() {
return wZ(e, nQ()).exponent(e.exponent());
}, NX.apply(e, arguments), e;
}
-function kme() {
+function Ame() {
return nQ.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -53325,13 +53352,13 @@ function kme() {
function rQ(e) {
return Math.sign(e) * e * e;
}
-function Ame(e) {
+function jme(e) {
return Math.sign(e) * Math.sqrt(Math.abs(e));
}
function iQ() {
var e = EZ(), t = [0, 1], n = !1, r;
function i(t) {
- var i = Ame(e(t));
+ var i = jme(e(t));
return isNaN(i) ? r : n ? Math.round(i) : i;
}
return i.invert = function(t) {
@@ -53358,11 +53385,11 @@ function aQ() {
var e = [], t = [], n = [], r;
function i() {
var r = 0, i = Math.max(1, t.length);
- for (n = Array(i - 1); ++r < i;) n[r - 1] = Ppe(e, r / i);
+ for (n = Array(i - 1); ++r < i;) n[r - 1] = Fpe(e, r / i);
return a;
}
function a(e) {
- return e == null || isNaN(e = +e) ? r : t[gX(n, e)];
+ return e == null || isNaN(e = +e) ? r : t[_X(n, e)];
}
return a.invertExtent = function(r) {
var i = t.indexOf(r);
@@ -53371,7 +53398,7 @@ function aQ() {
if (!arguments.length) return e.slice();
e = [];
for (let n of t) n != null && !isNaN(n = +n) && e.push(n);
- return e.sort(uX), i();
+ return e.sort(dX), i();
}, a.range = function(e) {
return arguments.length ? (t = Array.from(e), i()) : t.slice();
}, a.unknown = function(e) {
@@ -53387,7 +53414,7 @@ function aQ() {
function oQ() {
var e = 0, t = 1, n = 1, r = [.5], i = [0, 1], a;
function o(e) {
- return e != null && e <= e ? i[gX(r, e, 0, n)] : a;
+ return e != null && e <= e ? i[_X(r, e, 0, n)] : a;
}
function s() {
var i = -1;
@@ -53414,7 +53441,7 @@ function oQ() {
function sQ() {
var e = [.5], t = [0, 1], n, r = 1;
function i(i) {
- return i != null && i <= i ? t[gX(e, i, 0, r)] : n;
+ return i != null && i <= i ? t[_X(e, i, 0, r)] : n;
}
return i.domain = function(n) {
return arguments.length ? (e = Array.from(n), r = Math.min(e.length, t.length - 1), i) : e.slice();
@@ -53527,8 +53554,8 @@ function DQ(e) {
e.setDate(e.getDate() + t * 7);
}, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * pQ) / gQ);
}
-var OQ = DQ(0), kQ = DQ(1), jme = DQ(2), Mme = DQ(3), AQ = DQ(4), Nme = DQ(5), Pme = DQ(6);
-OQ.range, kQ.range, jme.range, Mme.range, AQ.range, Nme.range, Pme.range;
+var OQ = DQ(0), kQ = DQ(1), Mme = DQ(2), Nme = DQ(3), AQ = DQ(4), Pme = DQ(5), Fme = DQ(6);
+OQ.range, kQ.range, Mme.range, Nme.range, AQ.range, Pme.range, Fme.range;
function jQ(e) {
return uQ((t) => {
t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
@@ -53536,8 +53563,8 @@ function jQ(e) {
e.setUTCDate(e.getUTCDate() + t * 7);
}, (e, t) => (t - e) / gQ);
}
-var MQ = jQ(0), NQ = jQ(1), Fme = jQ(2), Ime = jQ(3), PQ = jQ(4), Lme = jQ(5), Rme = jQ(6);
-MQ.range, NQ.range, Fme.range, Ime.range, PQ.range, Lme.range, Rme.range;
+var MQ = jQ(0), NQ = jQ(1), Ime = jQ(2), Lme = jQ(3), PQ = jQ(4), Rme = jQ(5), zme = jQ(6);
+MQ.range, NQ.range, Ime.range, Lme.range, PQ.range, Rme.range, zme.range;
//#endregion
//#region node_modules/d3-time/src/month.js
var FQ = uQ((e) => {
@@ -53676,7 +53703,7 @@ function zQ(e, t, n, r, i, a) {
return r ? a.reverse() : a;
}
function c(t, n, r) {
- let i = Math.abs(n - t) / r, a = dX(([, , e]) => e).right(o, i);
+ let i = Math.abs(n - t) / r, a = fX(([, , e]) => e).right(o, i);
if (a === o.length) return e.every(DX(t / vQ, n / vQ, r));
if (a === 0) return dQ.every(Math.max(DX(t, n, r), 1));
let [s, c] = o[i / o[a - 1][2] < o[a][2] / i ? a - 1 : a];
@@ -53684,7 +53711,7 @@ function zQ(e, t, n, r, i, a) {
}
return [s, c];
}
-var [zme, Bme] = zQ(RQ, IQ, MQ, EQ, CQ, xQ), [Vme, Hme] = zQ(LQ, FQ, OQ, wQ, SQ, bQ);
+var [Bme, Vme] = zQ(RQ, IQ, MQ, EQ, CQ, xQ), [Hme, Ume] = zQ(LQ, FQ, OQ, wQ, SQ, bQ);
//#endregion
//#region node_modules/d3-time-format/src/locale.js
function BQ(e) {
@@ -53712,7 +53739,7 @@ function HQ(e, t, n) {
L: 0
};
}
-function Ume(e) {
+function Wme(e) {
var t = e.dateTime, n = e.date, r = e.time, i = e.periods, a = e.days, o = e.shortDays, s = e.months, c = e.shortMonths, l = KQ(i), u = qQ(i), d = KQ(a), f = qQ(a), p = KQ(o), m = qQ(o), h = KQ(s), g = qQ(s), _ = KQ(c), v = qQ(c), y = {
a: N,
A: ee,
@@ -53721,30 +53748,30 @@ function Ume(e) {
c: null,
d: QQ,
e: QQ,
- f: fhe,
- g: She,
- G: whe,
- H: lhe,
- I: uhe,
- j: dhe,
+ f: phe,
+ g: Che,
+ G: The,
+ H: uhe,
+ I: dhe,
+ j: fhe,
L: $Q,
- m: phe,
- M: mhe,
+ m: mhe,
+ M: hhe,
p: F,
q: ne,
Q: a$,
s: o$,
- S: hhe,
- u: ghe,
- U: _he,
- V: vhe,
- w: yhe,
- W: bhe,
+ S: ghe,
+ u: _he,
+ U: vhe,
+ V: yhe,
+ w: bhe,
+ W: xhe,
x: null,
X: null,
- y: xhe,
- Y: Che,
- Z: The,
+ y: She,
+ Y: whe,
+ Z: Ehe,
"%": i$
}, b = {
a: re,
@@ -53754,30 +53781,30 @@ function Ume(e) {
c: null,
d: t$,
e: t$,
- f: khe,
- g: zhe,
- G: Vhe,
- H: Ehe,
- I: Dhe,
- j: Ohe,
+ f: Ahe,
+ g: Bhe,
+ G: Hhe,
+ H: Dhe,
+ I: Ohe,
+ j: khe,
L: n$,
- m: Ahe,
- M: jhe,
+ m: jhe,
+ M: Mhe,
p: ae,
q: oe,
Q: a$,
s: o$,
- S: Mhe,
- u: Nhe,
- U: Phe,
- V: Fhe,
- w: Ihe,
- W: Lhe,
+ S: Nhe,
+ u: Phe,
+ U: Fhe,
+ V: Ihe,
+ w: Lhe,
+ W: Rhe,
x: null,
X: null,
- y: Rhe,
- Y: Bhe,
- Z: Hhe,
+ y: zhe,
+ Y: Vhe,
+ Z: Uhe,
"%": i$
}, x = {
a: E,
@@ -53787,31 +53814,31 @@ function Ume(e) {
c: A,
d: XQ,
e: XQ,
- f: ahe,
+ f: ohe,
g: YQ,
G: JQ,
H: ZQ,
I: ZQ,
- j: the,
- L: ihe,
- m: ehe,
- M: nhe,
+ j: nhe,
+ L: ahe,
+ m: the,
+ M: rhe,
p: T,
- q: $me,
- Q: she,
- s: che,
- S: rhe,
- u: Jme,
- U: Yme,
- V: Xme,
- w: qme,
- W: Zme,
+ q: ehe,
+ Q: che,
+ s: lhe,
+ S: ihe,
+ u: Yme,
+ U: Xme,
+ V: Zme,
+ w: Jme,
+ W: Qme,
x: j,
X: M,
y: YQ,
Y: JQ,
- Z: Qme,
- "%": ohe
+ Z: $me,
+ "%": she
};
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) {
@@ -53939,37 +53966,37 @@ var UQ = {
"-": "",
_: " ",
0: "0"
-}, WQ = /^\s*\d+/, Wme = /^%/, Gme = /[\\^$*+?|[\]().{}]/g;
+}, WQ = /^\s*\d+/, Gme = /^%/, Kme = /[\\^$*+?|[\]().{}]/g;
function GQ(e, t, n) {
var r = e < 0 ? "-" : "", i = (r ? -e : e) + "", a = i.length;
return r + (a < n ? Array(n - a + 1).join(t) + i : i);
}
-function Kme(e) {
- return e.replace(Gme, "\\$&");
+function qme(e) {
+ return e.replace(Kme, "\\$&");
}
function KQ(e) {
- return RegExp("^(?:" + e.map(Kme).join("|") + ")", "i");
+ return RegExp("^(?:" + e.map(qme).join("|") + ")", "i");
}
function qQ(e) {
return new Map(e.map((e, t) => [e.toLowerCase(), t]));
}
-function qme(e, t, n) {
+function Jme(e, t, n) {
var r = WQ.exec(t.slice(n, n + 1));
return r ? (e.w = +r[0], n + r[0].length) : -1;
}
-function Jme(e, t, n) {
+function Yme(e, t, n) {
var r = WQ.exec(t.slice(n, n + 1));
return r ? (e.u = +r[0], n + r[0].length) : -1;
}
-function Yme(e, t, n) {
+function Xme(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.U = +r[0], n + r[0].length) : -1;
}
-function Xme(e, t, n) {
+function Zme(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.V = +r[0], n + r[0].length) : -1;
}
-function Zme(e, t, n) {
+function Qme(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.W = +r[0], n + r[0].length) : -1;
}
@@ -53981,15 +54008,15 @@ function YQ(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
}
-function Qme(e, t, n) {
+function $me(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 $me(e, t, n) {
+function ehe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 1));
return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
}
-function ehe(e, t, n) {
+function the(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
}
@@ -53997,7 +54024,7 @@ function XQ(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.d = +r[0], n + r[0].length) : -1;
}
-function the(e, t, n) {
+function nhe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 3));
return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
}
@@ -54005,159 +54032,159 @@ function ZQ(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.H = +r[0], n + r[0].length) : -1;
}
-function nhe(e, t, n) {
+function rhe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.M = +r[0], n + r[0].length) : -1;
}
-function rhe(e, t, n) {
+function ihe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.S = +r[0], n + r[0].length) : -1;
}
-function ihe(e, t, n) {
+function ahe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 3));
return r ? (e.L = +r[0], n + r[0].length) : -1;
}
-function ahe(e, t, n) {
+function ohe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 6));
return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
}
-function ohe(e, t, n) {
- var r = Wme.exec(t.slice(n, n + 1));
+function she(e, t, n) {
+ var r = Gme.exec(t.slice(n, n + 1));
return r ? n + r[0].length : -1;
}
-function she(e, t, n) {
+function che(e, t, n) {
var r = WQ.exec(t.slice(n));
return r ? (e.Q = +r[0], n + r[0].length) : -1;
}
-function che(e, t, n) {
+function lhe(e, t, n) {
var r = WQ.exec(t.slice(n));
return r ? (e.s = +r[0], n + r[0].length) : -1;
}
function QQ(e, t) {
return GQ(e.getDate(), t, 2);
}
-function lhe(e, t) {
+function uhe(e, t) {
return GQ(e.getHours(), t, 2);
}
-function uhe(e, t) {
+function dhe(e, t) {
return GQ(e.getHours() % 12 || 12, t, 2);
}
-function dhe(e, t) {
+function fhe(e, t) {
return GQ(1 + wQ.count(LQ(e), e), t, 3);
}
function $Q(e, t) {
return GQ(e.getMilliseconds(), t, 3);
}
-function fhe(e, t) {
+function phe(e, t) {
return $Q(e, t) + "000";
}
-function phe(e, t) {
+function mhe(e, t) {
return GQ(e.getMonth() + 1, t, 2);
}
-function mhe(e, t) {
+function hhe(e, t) {
return GQ(e.getMinutes(), t, 2);
}
-function hhe(e, t) {
+function ghe(e, t) {
return GQ(e.getSeconds(), t, 2);
}
-function ghe(e) {
+function _he(e) {
var t = e.getDay();
return t === 0 ? 7 : t;
}
-function _he(e, t) {
+function vhe(e, t) {
return GQ(OQ.count(LQ(e) - 1, e), t, 2);
}
function e$(e) {
var t = e.getDay();
return t >= 4 || t === 0 ? AQ(e) : AQ.ceil(e);
}
-function vhe(e, t) {
+function yhe(e, t) {
return e = e$(e), GQ(AQ.count(LQ(e), e) + (LQ(e).getDay() === 4), t, 2);
}
-function yhe(e) {
+function bhe(e) {
return e.getDay();
}
-function bhe(e, t) {
+function xhe(e, t) {
return GQ(kQ.count(LQ(e) - 1, e), t, 2);
}
-function xhe(e, t) {
+function She(e, t) {
return GQ(e.getFullYear() % 100, t, 2);
}
-function She(e, t) {
+function Che(e, t) {
return e = e$(e), GQ(e.getFullYear() % 100, t, 2);
}
-function Che(e, t) {
+function whe(e, t) {
return GQ(e.getFullYear() % 1e4, t, 4);
}
-function whe(e, t) {
+function The(e, t) {
var n = e.getDay();
return e = n >= 4 || n === 0 ? AQ(e) : AQ.ceil(e), GQ(e.getFullYear() % 1e4, t, 4);
}
-function The(e) {
+function Ehe(e) {
var t = e.getTimezoneOffset();
return (t > 0 ? "-" : (t *= -1, "+")) + GQ(t / 60 | 0, "0", 2) + GQ(t % 60, "0", 2);
}
function t$(e, t) {
return GQ(e.getUTCDate(), t, 2);
}
-function Ehe(e, t) {
+function Dhe(e, t) {
return GQ(e.getUTCHours(), t, 2);
}
-function Dhe(e, t) {
+function Ohe(e, t) {
return GQ(e.getUTCHours() % 12 || 12, t, 2);
}
-function Ohe(e, t) {
+function khe(e, t) {
return GQ(1 + TQ.count(RQ(e), e), t, 3);
}
function n$(e, t) {
return GQ(e.getUTCMilliseconds(), t, 3);
}
-function khe(e, t) {
+function Ahe(e, t) {
return n$(e, t) + "000";
}
-function Ahe(e, t) {
+function jhe(e, t) {
return GQ(e.getUTCMonth() + 1, t, 2);
}
-function jhe(e, t) {
+function Mhe(e, t) {
return GQ(e.getUTCMinutes(), t, 2);
}
-function Mhe(e, t) {
+function Nhe(e, t) {
return GQ(e.getUTCSeconds(), t, 2);
}
-function Nhe(e) {
+function Phe(e) {
var t = e.getUTCDay();
return t === 0 ? 7 : t;
}
-function Phe(e, t) {
+function Fhe(e, t) {
return GQ(MQ.count(RQ(e) - 1, e), t, 2);
}
function r$(e) {
var t = e.getUTCDay();
return t >= 4 || t === 0 ? PQ(e) : PQ.ceil(e);
}
-function Fhe(e, t) {
+function Ihe(e, t) {
return e = r$(e), GQ(PQ.count(RQ(e), e) + (RQ(e).getUTCDay() === 4), t, 2);
}
-function Ihe(e) {
+function Lhe(e) {
return e.getUTCDay();
}
-function Lhe(e, t) {
+function Rhe(e, t) {
return GQ(NQ.count(RQ(e) - 1, e), t, 2);
}
-function Rhe(e, t) {
+function zhe(e, t) {
return GQ(e.getUTCFullYear() % 100, t, 2);
}
-function zhe(e, t) {
+function Bhe(e, t) {
return e = r$(e), GQ(e.getUTCFullYear() % 100, t, 2);
}
-function Bhe(e, t) {
+function Vhe(e, t) {
return GQ(e.getUTCFullYear() % 1e4, t, 4);
}
-function Vhe(e, t) {
+function Hhe(e, t) {
var n = e.getUTCDay();
return e = n >= 4 || n === 0 ? PQ(e) : PQ.ceil(e), GQ(e.getUTCFullYear() % 1e4, t, 4);
}
-function Hhe() {
+function Uhe() {
return "+0000";
}
function i$() {
@@ -54172,7 +54199,7 @@ function o$(e) {
//#endregion
//#region node_modules/d3-time-format/src/defaultLocale.js
var s$, c$, l$;
-Uhe({
+Whe({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
time: "%-I:%M:%S %p",
@@ -54224,15 +54251,15 @@ Uhe({
"Dec"
]
});
-function Uhe(e) {
- return s$ = Ume(e), c$ = s$.format, s$.parse, l$ = s$.utcFormat, s$.utcParse, s$;
+function Whe(e) {
+ return s$ = Wme(e), c$ = s$.format, s$.parse, l$ = s$.utcFormat, s$.utcParse, s$;
}
//#endregion
//#region node_modules/d3-scale/src/time.js
-function Whe(e) {
+function Ghe(e) {
return new Date(e);
}
-function Ghe(e) {
+function Khe(e) {
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
}
function u$(e, t, n, r, i, a, o, s, c, l) {
@@ -54243,7 +54270,7 @@ function u$(e, t, n, r, i, a, o, s, c, l) {
return u.invert = function(e) {
return new Date(d(e));
}, u.domain = function(e) {
- return arguments.length ? f(Array.from(e, Ghe)) : f().map(Whe);
+ return arguments.length ? f(Array.from(e, Khe)) : f().map(Ghe);
}, u.ticks = function(t) {
var n = f();
return e(n[0], n[n.length - 1], t ?? 10);
@@ -54256,13 +54283,13 @@ function u$(e, t, n, r, i, a, o, s, c, l) {
return wZ(u, u$(e, t, n, r, i, a, o, s, c, l));
}, u;
}
-function Khe() {
- return NX.apply(u$(Vme, Hme, LQ, FQ, OQ, wQ, SQ, bQ, yQ, c$).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
+function qhe() {
+ return NX.apply(u$(Hme, Ume, LQ, FQ, OQ, wQ, SQ, bQ, yQ, c$).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/utcTime.js
-function qhe() {
- return NX.apply(u$(zme, Bme, RQ, IQ, MQ, TQ, CQ, xQ, yQ, l$).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
+function Jhe() {
+ return NX.apply(u$(Bme, Vme, RQ, IQ, MQ, TQ, CQ, xQ, yQ, l$).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/sequential.js
@@ -54317,7 +54344,7 @@ function g$() {
return f$(e, g$()).exponent(e.exponent());
}, PX.apply(e, arguments);
}
-function Jhe() {
+function Yhe() {
return g$.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -54325,19 +54352,19 @@ function Jhe() {
function _$() {
var e = [], t = SZ;
function n(n) {
- if (n != null && !isNaN(n = +n)) return t((gX(e, n, 1) - 1) / (e.length - 1));
+ if (n != null && !isNaN(n = +n)) return t((_X(e, n, 1) - 1) / (e.length - 1));
}
return n.domain = function(t) {
if (!arguments.length) return e.slice();
e = [];
for (let n of t) n != null && !isNaN(n = +n) && e.push(n);
- return e.sort(uX), n;
+ return e.sort(dX), n;
}, n.interpolator = function(e) {
return arguments.length ? (t = e, n) : t;
}, n.range = function() {
return e.map((n, r) => t(r / (e.length - 1)));
}, n.quantiles = function(t) {
- return Array.from({ length: t + 1 }, (n, r) => Npe(e, r / t));
+ return Array.from({ length: t + 1 }, (n, r) => Ppe(e, r / t));
}, n.copy = function() {
return _$(t).domain(e);
}, PX.apply(n, arguments);
@@ -54363,7 +54390,7 @@ function v$() {
function m(e) {
return function(t) {
var n, r, i;
- return arguments.length ? ([n, r, i] = t, l = ome(e, [
+ return arguments.length ? ([n, r, i] = t, l = sme(e, [
n,
r,
i
@@ -54408,7 +54435,7 @@ function S$() {
return f$(e, S$()).exponent(e.exponent());
}, PX.apply(e, arguments);
}
-function Yhe() {
+function Xhe() {
return S$.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -54418,14 +54445,14 @@ var C$ = /* @__PURE__ */ N({
scaleDiverging: () => y$,
scaleDivergingLog: () => b$,
scaleDivergingPow: () => S$,
- scaleDivergingSqrt: () => Yhe,
+ scaleDivergingSqrt: () => Xhe,
scaleDivergingSymlog: () => x$,
scaleIdentity: () => UZ,
scaleImplicit: () => FX,
scaleLinear: () => HZ,
scaleLog: () => YZ,
scaleOrdinal: () => IX,
- scalePoint: () => Ipe,
+ scalePoint: () => Lpe,
scalePow: () => nQ,
scaleQuantile: () => aQ,
scaleQuantize: () => oQ,
@@ -54434,26 +54461,26 @@ var C$ = /* @__PURE__ */ N({
scaleSequentialLog: () => m$,
scaleSequentialPow: () => g$,
scaleSequentialQuantile: () => _$,
- scaleSequentialSqrt: () => Jhe,
+ scaleSequentialSqrt: () => Yhe,
scaleSequentialSymlog: () => h$,
- scaleSqrt: () => kme,
+ scaleSqrt: () => Ame,
scaleSymlog: () => $Z,
scaleThreshold: () => sQ,
- scaleTime: () => Khe,
- scaleUtc: () => qhe,
+ scaleTime: () => qhe,
+ scaleUtc: () => Jhe,
tickFormat: () => BZ
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
-function Xhe(e) {
+function Zhe(e) {
if (e in C$) return C$[e]();
- var t = `scale${cz(e)}`;
+ var t = `scale${lz(e)}`;
if (t in C$) return C$[t]();
}
function w$(e, t, n) {
if (typeof e == "function") return e.copy().domain(t).range(n);
if (e != null) {
- var r = Xhe(e);
+ var r = Zhe(e);
if (r != null) return r.domain(t).range(n), r;
}
}
@@ -54462,22 +54489,22 @@ function T$(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
-function Zhe(e) {
- return `scale${cz(e)}`;
-}
function Qhe(e) {
- return Zhe(e) in C$;
+ return `scale${lz(e)}`;
+}
+function $he(e) {
+ return Qhe(e) in C$;
}
var E$ = (e, t, n) => {
if (e != null) {
var { scale: r, type: i } = e;
if (r === "auto") return i === "category" && n && (n.indexOf("LineChart") >= 0 || n.indexOf("AreaChart") >= 0 || n.indexOf("ComposedChart") >= 0 && !t) ? "point" : i === "category" ? "band" : "linear";
- if (typeof r == "string") return Qhe(r) ? r : "point";
+ if (typeof r == "string") return $he(r) ? r : "point";
}
};
//#endregion
//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js
-function $he(e, t) {
+function ege(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;
@@ -54488,7 +54515,7 @@ function D$(e, t) {
if (e) {
var n = t ?? e.domain(), r = n.map((t) => e(t) ?? 0), i = e.range();
if (!(n.length === 0 || i.length < 2)) return (e) => {
- var t = $he(r, e);
+ var t = ege(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;
@@ -54498,7 +54525,7 @@ function D$(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
-function ege(e) {
+function tge(e) {
if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : D$(e, void 0);
}
//#endregion
@@ -54517,26 +54544,26 @@ function k$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? O$(Object(n), !0).forEach(function(t) {
- tge(e, t, n[t]);
+ nge(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function tge(e, t, n) {
- return (t = nge(t)) in e ? Object.defineProperty(e, t, {
+function nge(e, t, n) {
+ return (t = rge(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function nge(e) {
- var t = rge(e, "string");
+function rge(e) {
+ var t = ige(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function rge(e, t) {
+function ige(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54604,7 +54631,7 @@ var A$ = [0, "auto"], j$ = {
unit: void 0,
niceTicks: "auto",
width: 60
-}, F$ = (e, t) => e.cartesianAxis.yAxis[t], I$ = (e, t) => F$(e, t) ?? P$, ige = {
+}, F$ = (e, t) => e.cartesianAxis.yAxis[t], I$ = (e, t) => F$(e, t) ?? P$, age = {
domain: [0, "auto"],
includeHidden: !1,
reversed: !1,
@@ -54617,16 +54644,16 @@ var A$ = [0, "auto"], j$ = {
scale: "auto",
type: "number",
unit: ""
-}, L$ = (e, t) => e.cartesianAxis.zAxis[t] ?? ige, R$ = (e, t, n) => {
+}, L$ = (e, t) => e.cartesianAxis.zAxis[t] ?? age, R$ = (e, t, n) => {
switch (t) {
case "xAxis": return N$(e, n);
case "yAxis": return I$(e, n);
case "zAxis": return L$(e, n);
- case "angleAxis": return VY(e, n);
- case "radiusAxis": return HY(e, n);
+ case "angleAxis": return HY(e, n);
+ case "radiusAxis": return UY(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, age = (e, t, n) => {
+}, oge = (e, t, n) => {
switch (t) {
case "xAxis": return N$(e, n);
case "yAxis": return I$(e, n);
@@ -54636,8 +54663,8 @@ var A$ = [0, "auto"], j$ = {
switch (t) {
case "xAxis": return N$(e, n);
case "yAxis": return I$(e, n);
- case "angleAxis": return VY(e, n);
- case "radiusAxis": return HY(e, n);
+ case "angleAxis": return HY(e, n);
+ case "radiusAxis": return UY(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
}, B$ = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
@@ -54653,40 +54680,40 @@ function V$(e, t) {
}
};
}
-var H$ = (e) => e.graphicalItems.cartesianItems, oge = $([QY, $Y], V$), U$ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), W$ = $([
+var H$ = (e) => e.graphicalItems.cartesianItems, sge = $([$Y, eX], V$), U$ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), W$ = $([
H$,
R$,
- oge
-], U$, { memoizeOptions: { resultEqualityCheck: iX } }), G$ = $([W$], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(nX)), K$ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), sge = $([W$], K$), q$ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), cge = $([W$], q$, { memoizeOptions: { resultEqualityCheck: iX } }), J$ = (e, t) => {
+ sge
+], U$, { memoizeOptions: { resultEqualityCheck: aX } }), G$ = $([W$], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(rX)), K$ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), cge = $([W$], K$), q$ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), lge = $([W$], q$, { memoizeOptions: { resultEqualityCheck: aX } }), J$ = (e, t) => {
var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;
return e.length > 0 ? e : n.slice(r, i + 1);
-}, Y$ = $([cge, nY], J$), X$ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: qH(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: qH(e, t.dataKey) })), Z$ = $([
+}, Y$ = $([lge, rY], J$), X$ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: JH(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: JH(e, t.dataKey) })), Z$ = $([
Y$,
R$,
W$
], X$);
function Q$(e) {
- if (tz(e) || e instanceof Date) {
+ if (nz(e) || e instanceof Date) {
var t = Number(e);
- if (BH(t)) return t;
+ if (VH(t)) return t;
}
}
function $$(e) {
if (Array.isArray(e)) {
var t = [Q$(e[0]), Q$(e[1])];
- return iY(t) ? t : void 0;
+ return aY(t) ? t : void 0;
}
var n = Q$(e);
if (n != null) return [n, n];
}
function e1(e) {
- return e.map(Q$).filter(lz);
+ return e.map(Q$).filter(uz);
}
-function lge(e, t) {
+function uge(e, t) {
var n = Q$(e), r = Q$(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var uge = $([Z$], (e) => e?.map((e) => e.value).sort(lge));
+var dge = $([Z$], (e) => e?.map((e) => e.value).sort(uge));
function t1(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
@@ -54694,17 +54721,17 @@ function t1(e, t) {
default: return !1;
}
}
-function dge(e, t, n) {
- return !n || typeof t != "number" || $R(t) || !n.length ? [] : e1(n.flatMap((n) => {
- var r = qH(e, n.dataKey), i, a;
- if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!BH(i) || !BH(a))) return [t - i, t + a];
+function fge(e, t, n) {
+ return !n || typeof t != "number" || ez(t) || !n.length ? [] : e1(n.flatMap((n) => {
+ var r = JH(e, n.dataKey), i, a;
+ if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!VH(i) || !VH(a))) return [t - i, t + a];
}));
}
-var n1 = (e) => z$(e, oX(e), sX(e)), r1 = $([n1], (e) => e?.dataKey), fge = $([
+var n1 = (e) => z$(e, sX(e), cX(e)), r1 = $([n1], (e) => e?.dataKey), pge = $([
G$,
- nY,
+ rY,
n1
-], tX), i1 = (e, t, n, r) => {
+], nX), i1 = (e, t, n, r) => {
var i = t.reduce((e, t) => {
if (t.stackId == null) return e;
var n = e[t.stackId];
@@ -54713,22 +54740,22 @@ var n1 = (e) => z$(e, oX(e), sX(e)), r1 = $([n1], (e) => e?.dataKey), fge = $([
return Object.fromEntries(Object.entries(i).map((t) => {
var [i, a] = t, o = r ? [...a].reverse() : a;
return [i, {
- stackedData: eU(e, o.map(eX), n),
+ stackedData: tU(e, o.map(tX), n),
graphicalItems: o
}];
}));
}, a1 = $([
- fge,
+ pge,
G$,
- SY,
- CY
+ CY,
+ wY
], i1), o1 = (e, t, n, r) => {
var { dataStartIndex: i, dataEndIndex: a } = t;
if (r == null && n !== "zAxis") {
- var o = sU(e, i, a);
+ var o = cU(e, i, a);
if (o == null || o[0] !== 0 || o[1] !== 0) return o;
}
-}, pge = $([R$], (e) => e.allowDataOverflow), s1 = (e) => {
+}, mge = $([R$], (e) => e.allowDataOverflow), s1 = (e) => {
if (e == null || !("domain" in e)) return A$;
if (e.domain != null) return e.domain;
if ("ticks" in e && e.ticks != null) {
@@ -54739,12 +54766,12 @@ var n1 = (e) => z$(e, oX(e), sX(e)), r1 = $([n1], (e) => e?.dataKey), fge = $([
if (e.type === "category") return e.ticks.map(String);
}
return e?.domain ?? A$;
-}, c1 = $([R$], s1), l1 = $([c1, pge], oY), mge = $([
+}, c1 = $([R$], s1), l1 = $([c1, mge], sY), hge = $([
a1,
- eY,
- QY,
+ tY,
+ $Y,
l1
-], o1, { memoizeOptions: { resultEqualityCheck: rX } }), u1 = (e) => e.errorBars, hge = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => t1(n, e)), d1 = function() {
+], o1, { memoizeOptions: { resultEqualityCheck: iX } }), u1 = (e) => e.errorBars, gge = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => t1(n, e)), d1 = function() {
var e = [...arguments].filter(Boolean);
if (e.length !== 0) {
var t = e.flat();
@@ -54754,7 +54781,7 @@ var n1 = (e) => z$(e, oX(e), sX(e)), r1 = $([n1], (e) => e?.dataKey), fge = $([
var a, o;
if (n.length > 0 && e.forEach((e) => {
n.forEach((n) => {
- var s = r[n.id]?.filter((e) => t1(i, e)), c = qH(e, t.dataKey ?? n.dataKey), l = dge(e, c, s);
+ var s = r[n.id]?.filter((e) => t1(i, e)), c = JH(e, t.dataKey ?? n.dataKey), l = fge(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);
@@ -54763,98 +54790,98 @@ var n1 = (e) => z$(e, oX(e), sX(e)), r1 = $([n1], (e) => e?.dataKey), fge = $([
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 = $$(qH(e, t.dataKey));
+ var n = $$(JH(e, t.dataKey));
n != null && (a = a == null ? n[0] : Math.min(a, n[0]), o = o == null ? n[1] : Math.max(o, n[1]));
- }), BH(a) && BH(o)) return [a, o];
-}, gge = $([
+ }), VH(a) && VH(o)) return [a, o];
+}, _ge = $([
Y$,
R$,
- sge,
+ cge,
u1,
- QY
-], f1, { memoizeOptions: { resultEqualityCheck: rX } });
-function _ge(e) {
+ $Y
+], f1, { memoizeOptions: { resultEqualityCheck: iX } });
+function vge(e) {
var { value: t } = e;
- if (tz(t) || t instanceof Date) return t;
+ if (nz(t) || t instanceof Date) return t;
}
-var vge = (e, t, n) => {
- var r = e.map(_ge).filter((e) => e != null);
- return n && (t.dataKey == null || t.allowDuplicatedCategory && iz(r)) ? $J(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
-}, p1 = (e) => e.referenceElements.dots, m1 = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), yge = $([
+var yge = (e, t, n) => {
+ var r = e.map(vge).filter((e) => e != null);
+ return n && (t.dataKey == null || t.allowDuplicatedCategory && az(r)) ? eY(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
+}, p1 = (e) => e.referenceElements.dots, m1 = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), bge = $([
p1,
- QY,
- $Y
-], m1), h1 = (e) => e.referenceElements.areas, bge = $([
+ $Y,
+ eX
+], m1), h1 = (e) => e.referenceElements.areas, xge = $([
h1,
- QY,
- $Y
-], m1), g1 = (e) => e.referenceElements.lines, xge = $([
+ $Y,
+ eX
+], m1), g1 = (e) => e.referenceElements.lines, Sge = $([
g1,
- QY,
- $Y
+ $Y,
+ eX
], m1), _1 = (e, t) => {
if (e != null) {
var n = e1(e.map((e) => t === "xAxis" ? e.x : e.y));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Sge = $(yge, QY, _1), v1 = (e, t) => {
+}, Cge = $(bge, $Y, _1), v1 = (e, t) => {
if (e != null) {
var n = e1(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Cge = $([bge, QY], v1);
-function wge(e) {
+}, wge = $([xge, $Y], v1);
+function Tge(e) {
if (e.x != null) return e1([e.x]);
var t = e.segment?.map((e) => e.x);
return t == null || t.length === 0 ? [] : e1(t);
}
-function Tge(e) {
+function Ege(e) {
if (e.y != null) return e1([e.y]);
var t = e.segment?.map((e) => e.y);
return t == null || t.length === 0 ? [] : e1(t);
}
var y1 = (e, t) => {
if (e != null) {
- var n = e.flatMap((e) => t === "xAxis" ? wge(e) : Tge(e));
+ var n = e.flatMap((e) => t === "xAxis" ? Tge(e) : Ege(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Ege = $(Sge, $([xge, QY], y1), Cge, (e, t, n) => d1(e, n, t)), b1 = (e, t, n, r, i, a, o, s) => n ?? sY(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? d1(r, a, i) : d1(a, i), e.allowDataOverflow), Dge = $([
+}, Dge = $(Cge, $([Sge, $Y], y1), wge, (e, t, n) => d1(e, n, t)), b1 = (e, t, n, r, i, a, o, s) => n ?? cY(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? d1(r, a, i) : d1(a, i), e.allowDataOverflow), Oge = $([
R$,
c1,
l1,
- mge,
- gge,
- Ege,
- gW,
- QY
-], b1, { memoizeOptions: { resultEqualityCheck: rX } }), Oge = [0, 1], x1 = (e, t, n, r, i, a, o) => {
+ hge,
+ _ge,
+ Dge,
+ _W,
+ $Y
+], b1, { memoizeOptions: { resultEqualityCheck: iX } }), kge = [0, 1], x1 = (e, t, n, r, i, a, o) => {
if (e != null && n != null && n.length !== 0 || o !== void 0) {
- var { dataKey: s, type: c } = e, l = YH(t, a);
- return l && s == null ? $J(0, n?.length ?? 0) : c === "category" ? vge(r, e, l) : i === "expand" ? Oge : o;
+ var { dataKey: s, type: c } = e, l = XH(t, a);
+ return l && s == null ? eY(0, n?.length ?? 0) : c === "category" ? yge(r, e, l) : i === "expand" ? kge : o;
}
}, S1 = $([
R$,
- gW,
+ _W,
Y$,
Z$,
- SY,
- QY,
- Dge
+ CY,
+ $Y,
+ Oge
], x1), C1 = $([
R$,
B$,
- wY
+ TY
], E$), w1 = (e, t, n) => {
var { niceTicks: r } = t;
if (r !== "none") {
var i = s1(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
- if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && iY(e)) {
- if (a) return gY(e, t.tickCount, t.allowDecimals, r);
- if (t.type === "number") return _Y(e, t.tickCount, t.allowDecimals, r);
+ if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && aY(e)) {
+ if (a) return _Y(e, t.tickCount, t.allowDecimals, r);
+ if (t.type === "number") return vY(e, t.tickCount, t.allowDecimals, r);
}
if (r === "auto" && n === "linear" && t != null && t.tickCount) {
- if (a && iY(e)) return gY(e, t.tickCount, t.allowDecimals, "adaptive");
- if (t.type === "number" && iY(e)) return _Y(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (a && aY(e)) return _Y(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (t.type === "number" && aY(e)) return vY(e, t.tickCount, t.allowDecimals, "adaptive");
}
}
}, T1 = $([
@@ -54862,16 +54889,16 @@ var y1 = (e, t) => {
z$,
C1
], w1), E1 = (e, t, n, r) => {
- if (r !== "angleAxis" && e?.type === "number" && iY(t) && Array.isArray(n) && n.length > 0) {
+ if (r !== "angleAxis" && e?.type === "number" && aY(t) && Array.isArray(n) && n.length > 0) {
var i = t[0], a = n[0] ?? 0, o = t[1], s = n[n.length - 1] ?? 0;
return [Math.min(i, a), Math.max(o, s)];
}
return t;
-}, kge = $([
+}, Age = $([
R$,
S1,
T1,
- QY
+ $Y
], E1), D1 = $($(Z$, R$, (e, t) => {
if (!(!t || t.type !== "number")) {
var n = Infinity, r = Array.from(e1(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];
@@ -54887,22 +54914,22 @@ var y1 = (e, t) => {
}
return n / o;
}
-}), gW, bY, MU, (e, t, n, r, i) => i, (e, t, n, r, i) => {
- if (!BH(e)) return 0;
+}), _W, xY, NU, (e, t, n, r, i) => i, (e, t, n, r, i) => {
+ if (!VH(e)) return 0;
var a = t === "vertical" ? r.height : r.width;
if (i === "gap") return e * a / 2;
if (i === "no-gap") {
- var o = rz(n, e * a), s = e * a / 2;
+ var o = iz(n, e * a), s = e * a / 2;
return s - o - (s - o) / a * o;
}
return 0;
-}), Age = (e, t, n) => {
+}), jge = (e, t, n) => {
var r = N$(e, t);
return r == null || typeof r.padding != "string" ? 0 : D1(e, "xAxis", t, n, r.padding);
-}, jge = (e, t, n) => {
+}, Mge = (e, t, n) => {
var r = I$(e, t);
return r == null || typeof r.padding != "string" ? 0 : D1(e, "yAxis", t, n, r.padding);
-}, Mge = $(N$, Age, (e, t) => {
+}, Nge = $(N$, jge, (e, t) => {
if (e == null) return {
left: 0,
right: 0
@@ -54915,7 +54942,7 @@ var y1 = (e, t) => {
left: (n.left ?? 0) + t,
right: (n.right ?? 0) + t
};
-}), Nge = $(I$, jge, (e, t) => {
+}), Pge = $(I$, Mge, (e, t) => {
if (e == null) return {
top: 0,
bottom: 0
@@ -54928,94 +54955,94 @@ var y1 = (e, t) => {
top: (n.top ?? 0) + t,
bottom: (n.bottom ?? 0) + t
};
-}), Pge = $([
- MU,
- Mge,
+}), Fge = $([
+ NU,
+ Nge,
+ zU,
RU,
- LU,
(e, t, n) => n
], (e, t, n, r, i) => {
var { padding: a } = r;
return i ? [a.left, n.width - a.right] : [e.left + t.left, e.left + e.width - t.right];
-}), Fge = $([
- MU,
- gW,
- Nge,
+}), Ige = $([
+ NU,
+ _W,
+ Pge,
+ zU,
RU,
- LU,
(e, t, n) => n
], (e, t, n, r, i, a) => {
var { padding: o } = i;
return a ? [r.height - o.bottom, o.top] : t === "horizontal" ? [e.top + e.height - n.bottom, e.top + n.top] : [e.top + n.top, e.top + e.height - n.bottom];
}), O1 = (e, t, n, r) => {
switch (t) {
- case "xAxis": return Pge(e, n, r);
- case "yAxis": return Fge(e, n, r);
+ case "xAxis": return Fge(e, n, r);
+ case "yAxis": return Ige(e, n, r);
case "zAxis": return L$(e, n)?.range;
- case "angleAxis": return qY(e);
- case "radiusAxis": return YY(e, n);
+ case "angleAxis": return JY(e);
+ case "radiusAxis": return XY(e, n);
default: return;
}
-}, k1 = $([R$, O1], MY), A1 = $([
+}, k1 = $([R$, O1], NY), A1 = $([
R$,
C1,
- $([C1, kge], lX),
+ $([C1, Age], uX),
k1
], T$), j1 = (e, t, n, r) => {
if (n != null && n.dataKey != null) {
var { type: i, scale: a } = n;
- if (YH(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
+ if (XH(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
}
}, M1 = $([
- gW,
+ _W,
Z$,
z$,
- QY
-], j1), N1 = $([A1], cX);
-$([A1], ege), $([A1, uge], D$), $([
+ $Y
+], j1), N1 = $([A1], lX);
+$([A1], tge), $([A1, dge], D$), $([
W$,
u1,
- QY
-], hge);
+ $Y
+], gge);
function P1(e, t) {
return e.id < t.id ? -1 : +(e.id > t.id);
}
-var F1 = (e, t) => t, I1 = (e, t, n) => n, Ige = $(yU, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), Lge = $(bU, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), L1 = (e, t) => ({
+var F1 = (e, t) => t, I1 = (e, t, n) => n, Lge = $(bU, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), Rge = $(xU, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), L1 = (e, t) => ({
width: e.width,
height: t.height
-}), Rge = (e, t) => ({
+}), zge = (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-}), R1 = $(MU, N$, L1), zge = (e, t, n) => {
+}), R1 = $(NU, N$, L1), Bge = (e, t, n) => {
switch (t) {
case "top": return e.top;
case "bottom": return n - e.bottom;
default: return 0;
}
-}, Bge = (e, t, n) => {
+}, Vge = (e, t, n) => {
switch (t) {
case "left": return e.left;
case "right": return n - e.right;
default: return 0;
}
-}, z1 = $(gU, MU, Ige, F1, I1, (e, t, n, r, i) => {
+}, z1 = $(_U, NU, Lge, F1, I1, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
var s = L1(t, n);
- o ??= zge(t, r, e);
+ o ??= Bge(t, r, e);
var c = r === "top" && !i || r === "bottom" && i;
a[n.id] = o - Number(c) * s.height, o += (c ? -1 : 1) * s.height;
}), a;
-}), Vge = $(hU, MU, Lge, F1, I1, (e, t, n, r, i) => {
+}), Hge = $(gU, NU, Rge, F1, I1, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = Rge(t, n);
- o ??= Bge(t, r, e);
+ var s = zge(t, n);
+ o ??= Vge(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;
-}), Hge = $([
- MU,
+}), Uge = $([
+ NU,
N$,
(e, t) => {
var n = N$(e, t);
@@ -55033,12 +55060,12 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, Ige = $(yU, F1, I1, (e, t, n) => e.fi
y: i
};
}
-}), Uge = $([
- MU,
+}), Wge = $([
+ NU,
I$,
(e, t) => {
var n = I$(e, t);
- if (n != null) return Vge(e, n.orientation, n.mirror);
+ if (n != null) return Hge(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -55052,7 +55079,7 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, Ige = $(yU, F1, I1, (e, t, n) => e.fi
y: e.top
};
}
-}), B1 = $(MU, I$, (e, t) => ({
+}), B1 = $(NU, I$, (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
})), V1 = (e, t, n) => {
@@ -55063,27 +55090,27 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, Ige = $(yU, F1, I1, (e, t, n) => e.fi
}
}, H1 = (e, t, n, r) => {
if (n != null) {
- var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = YH(e, r), c = t.map((e) => e.value);
- if (o && s && a === "category" && i && iz(c)) return c;
+ var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = XH(e, r), c = t.map((e) => e.value);
+ if (o && s && a === "category" && i && az(c)) return c;
}
}, U1 = $([
- gW,
+ _W,
Z$,
R$,
- QY
+ $Y
], H1), W1 = $([
- gW,
- age,
+ _W,
+ oge,
C1,
N1,
U1,
M1,
O1,
T1,
- QY
+ $Y
], (e, t, n, r, i, a, o, s, c) => {
if (t != null) {
- var l = YH(e, c);
+ var l = XH(e, c);
return {
angle: t.angle,
interval: t.interval,
@@ -55107,45 +55134,45 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, Ige = $(yU, F1, I1, (e, t, n) => e.fi
}
}), G1 = (e, t, n, r, i, a, o, s, c) => {
if (t != null && r != null) {
- var l = YH(e, c), { type: u, ticks: d, tickCount: f } = t, p = n === "scaleBand" && typeof r.bandwidth == "function" ? r.bandwidth() / 2 : 2, m = u === "category" && r.bandwidth ? r.bandwidth() / p : 0;
- m = c === "angleAxis" && a != null && a.length >= 2 ? QR(a[0] - a[1]) * 2 * m : m;
+ var l = XH(e, c), { type: u, ticks: d, tickCount: f } = t, p = n === "scaleBand" && typeof r.bandwidth == "function" ? r.bandwidth() / 2 : 2, m = u === "category" && r.bandwidth ? r.bandwidth() / p : 0;
+ m = c === "angleAxis" && a != null && a.length >= 2 ? $R(a[0] - a[1]) * 2 * m : m;
var h = d || i;
return h ? h.map((e, t) => {
var n = o ? o.indexOf(e) : e, i = r.map(n);
- return BH(i) ? {
+ return VH(i) ? {
index: t,
coordinate: i + m,
value: e,
offset: m
} : null;
- }).filter(lz) : l && s ? s.map((e, t) => {
+ }).filter(uz) : l && s ? s.map((e, t) => {
var n = r.map(e);
- return BH(n) ? {
+ return VH(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(lz) : r.ticks ? r.ticks(f).map((e, t) => {
+ }).filter(uz) : r.ticks ? r.ticks(f).map((e, t) => {
var n = r.map(e);
- return BH(n) ? {
+ return VH(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(lz) : r.domain().map((e, t) => {
+ }).filter(uz) : r.domain().map((e, t) => {
var n = r.map(e);
- return BH(n) ? {
+ return VH(n) ? {
coordinate: n + m,
value: o ? o[e] : e,
index: t,
offset: m
} : null;
- }).filter(lz);
+ }).filter(uz);
}
}, K1 = $([
- gW,
+ _W,
z$,
C1,
N1,
@@ -55153,44 +55180,44 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, Ige = $(yU, F1, I1, (e, t, n) => e.fi
O1,
U1,
M1,
- QY
+ $Y
], G1), q1 = (e, t, n, r, i, a, o) => {
if (t != null && n != null && r != null && r[0] !== r[1]) {
- var s = YH(e, o), { tickCount: c } = t, l = 0;
- return l = o === "angleAxis" && r?.length >= 2 ? QR(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
+ var s = XH(e, o), { tickCount: c } = t, l = 0;
+ return l = o === "angleAxis" && r?.length >= 2 ? $R(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
var r = n.map(e);
- return BH(r) ? {
+ return VH(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(lz) : n.ticks ? n.ticks(c).map((e, t) => {
+ }).filter(uz) : n.ticks ? n.ticks(c).map((e, t) => {
var r = n.map(e);
- return BH(r) ? {
+ return VH(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(lz) : n.domain().map((e, t) => {
+ }).filter(uz) : n.domain().map((e, t) => {
var r = n.map(e);
- return BH(r) ? {
+ return VH(r) ? {
coordinate: r + l,
value: i ? i[e] : e,
index: t,
offset: l
} : null;
- }).filter(lz);
+ }).filter(uz);
}
}, J1 = $([
- gW,
+ _W,
z$,
N1,
O1,
U1,
M1,
- QY
+ $Y
], q1), Y1 = $(R$, N1, (e, t) => {
if (e != null && t != null) return k$(k$({}, e), {}, { scale: t });
});
@@ -55199,13 +55226,13 @@ $((e, t, n) => L$(e, n), $([$([
C1,
S1,
k1
-], T$)], cX), (e, t) => {
+], T$)], lX), (e, t) => {
if (e != null && t != null) return k$(k$({}, e), {}, { scale: t });
});
-var Wge = $([
- gW,
- yU,
- bU
+var Gge = $([
+ _W,
+ bU,
+ xU
], (e, t, n) => {
switch (e) {
case "horizontal": return t.some((e) => e.reversed) ? "right-to-left" : "left-to-right";
@@ -55236,21 +55263,21 @@ function Q1(e, t, n) {
function $1(e, t) {
return Q1(t, X1(e), Z1(e));
}
-function Gge(e) {
+function Kge(e) {
return Q((t) => $1(t, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js
var e0 = (e, t) => {
var n, r = Number(t);
- if (!($R(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
-}, Kge = (e) => e.tooltip.settings, t0 = {
+ if (!(ez(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
+}, qge = (e) => e.tooltip.settings, t0 = {
active: !1,
index: null,
dataKey: void 0,
graphicalItemId: void 0,
coordinate: void 0
-}, n0 = GV({
+}, n0 = KV({
name: "tooltip",
initialState: {
itemInteraction: {
@@ -55283,23 +55310,23 @@ var e0 = (e, t) => {
reducers: {
addTooltipEntrySettings: {
reducer(e, t) {
- e.tooltipItemPayloads.push(vG(t.payload));
+ e.tooltipItemPayloads.push(yG(t.payload));
},
- prepare: AV()
+ prepare: jV()
},
replaceTooltipEntrySettings: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = yV(e).tooltipItemPayloads.indexOf(vG(n));
- i > -1 && (e.tooltipItemPayloads[i] = vG(r));
+ var { prev: n, next: r } = t.payload, i = bV(e).tooltipItemPayloads.indexOf(yG(n));
+ i > -1 && (e.tooltipItemPayloads[i] = yG(r));
},
- prepare: AV()
+ prepare: jV()
},
removeTooltipEntrySettings: {
reducer(e, t) {
- var n = yV(e).tooltipItemPayloads.indexOf(vG(t.payload));
+ var n = bV(e).tooltipItemPayloads.indexOf(yG(t.payload));
n > -1 && e.tooltipItemPayloads.splice(n, 1);
},
- prepare: AV()
+ prepare: jV()
},
setTooltipSettingsState(e, t) {
e.settings = t.payload;
@@ -55329,7 +55356,7 @@ var e0 = (e, t) => {
e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;
}
}
-}), { addTooltipEntrySettings: qge, replaceTooltipEntrySettings: Jge, removeTooltipEntrySettings: Yge, setTooltipSettingsState: Xge, setActiveMouseOverItemIndex: r0, mouseLeaveItem: Zge, mouseLeaveChart: i0, setActiveClickItemIndex: Qge, setMouseOverAxisIndex: a0, setMouseClickAxisIndex: $ge, setSyncInteraction: o0, setKeyboardInteraction: s0 } = n0.actions, e_e = n0.reducer;
+}), { addTooltipEntrySettings: Jge, replaceTooltipEntrySettings: Yge, removeTooltipEntrySettings: Xge, setTooltipSettingsState: Zge, setActiveMouseOverItemIndex: r0, mouseLeaveItem: Qge, mouseLeaveChart: i0, setActiveClickItemIndex: $ge, setMouseOverAxisIndex: a0, setMouseClickAxisIndex: e_e, setSyncInteraction: o0, setKeyboardInteraction: s0 } = n0.actions, t_e = n0.reducer;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js
function c0(e, t) {
@@ -55346,26 +55373,26 @@ function l0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? c0(Object(n), !0).forEach(function(t) {
- t_e(e, t, n[t]);
+ n_e(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function t_e(e, t, n) {
- return (t = n_e(t)) in e ? Object.defineProperty(e, t, {
+function n_e(e, t, n) {
+ return (t = r_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function n_e(e) {
- var t = r_e(e, "string");
+function r_e(e) {
+ var t = i_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function r_e(e, t) {
+function i_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55375,21 +55402,21 @@ function r_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function i_e(e, t, n) {
+function a_e(e, t, n) {
return t === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;
}
-function a_e(e) {
+function o_e(e) {
return e.index != null;
}
var u0 = (e, t, n, r) => {
if (t == null) return t0;
- var i = i_e(e, t, n);
+ var i = a_e(e, t, n);
if (i == null) return t0;
if (i.active) return i;
if (e.keyboardInteraction.active) return e.keyboardInteraction;
if (e.syncInteraction.active && e.syncInteraction.index != null) return e.syncInteraction;
var a = e.settings.active === !0;
- if (a_e(i)) {
+ if (o_e(i)) {
if (a) return l0(l0({}, i), {}, { active: !0 });
} else if (r != null) return {
active: !0,
@@ -55402,7 +55429,7 @@ var u0 = (e, t, n, r) => {
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js
-function o_e(e) {
+function s_e(e) {
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
if (e instanceof Date) {
var t = e.valueOf();
@@ -55411,24 +55438,24 @@ function o_e(e) {
var n = Number(e);
return Number.isFinite(n) ? n : void 0;
}
-function s_e(e, t) {
- var n = o_e(e), r = t[0], i = t[1];
+function c_e(e, t) {
+ var n = s_e(e), r = t[0], i = t[1];
return n !== void 0 && n >= Math.min(r, i) && n <= Math.max(r, i);
}
-function c_e(e, t, n) {
+function l_e(e, t, n) {
if (n == null || t == null) return !0;
- var r = qH(e, t);
- return r == null || !iY(n) || s_e(r, n);
+ var r = JH(e, t);
+ return r == null || !aY(n) || c_e(r, n);
}
var d0 = (e, t, n, r) => {
var i = e?.index;
if (i == null) return null;
var a = Number(i);
- if (!BH(a)) return i;
+ if (!VH(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 || c_e(l, n, r) ? String(c) : null;
+ return l == null || l_e(l, n, r) ? String(c) : null;
}, f0 = (e, t, n, r, i, a, o) => {
if (a != null) {
var s = o[0]?.getPosition(a);
@@ -55472,26 +55499,26 @@ function _0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? g0(Object(n), !0).forEach(function(t) {
- l_e(e, t, n[t]);
+ u_e(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function l_e(e, t, n) {
- return (t = u_e(t)) in e ? Object.defineProperty(e, t, {
+function u_e(e, t, n) {
+ return (t = d_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function u_e(e) {
- var t = d_e(e, "string");
+function d_e(e) {
+ var t = f_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function d_e(e, t) {
+function f_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55501,126 +55528,126 @@ function d_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function f_e(e) {
+function p_e(e) {
if (typeof e == "string" || typeof e == "number") return e;
}
-function p_e(e) {
+function m_e(e) {
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;
}
-function m_e(e) {
+function h_e(e) {
if (typeof e == "string" || typeof e == "number") return e;
if (typeof e == "function") return (t) => e(t);
}
function v0(e) {
if (typeof e == "string") return e;
}
-function h_e(e) {
+function g_e(e) {
if (!(typeof e != "object" || !e)) return {
- name: "name" in e ? f_e(e.name) : void 0,
- unit: "unit" in e ? p_e(e.unit) : void 0,
- dataKey: "dataKey" in e ? m_e(e.dataKey) : void 0,
+ name: "name" in e ? p_e(e.name) : void 0,
+ unit: "unit" in e ? m_e(e.unit) : void 0,
+ dataKey: "dataKey" in e ? h_e(e.dataKey) : void 0,
payload: "payload" in e ? e.payload : void 0,
color: "color" in e ? v0(e.color) : void 0,
fill: "fill" in e ? v0(e.fill) : void 0
};
}
-function g_e(e, t) {
+function __e(e, t) {
return e ?? t;
}
var y0 = (e, t, n, r, i, a, o) => {
if (t != null && a != null) {
var { chartData: s, computedData: c, dataStartIndex: l, dataEndIndex: u } = n;
return e.reduce((e, n) => {
- var { dataDefinedOnItem: d, settings: f } = n, p = g_e(d, s), m = Array.isArray(p) ? zH(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? oz(m, r, i) : a(m, t, c, g);
+ var { dataDefinedOnItem: d, settings: f } = n, p = __e(d, s), m = Array.isArray(p) ? BH(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? sz(m, r, i) : a(m, t, c, g);
return Array.isArray(_) ? _.forEach((t) => {
- var n = h_e(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = _0(_0({}, f), {}, {
+ var n = g_e(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = _0(_0({}, f), {}, {
name: r,
unit: n?.unit,
color: n?.color ?? f?.color,
fill: n?.fill ?? f?.fill
});
- e.push(dU({
+ e.push(fU({
tooltipEntrySettings: o,
dataKey: i,
payload: a,
- value: qH(a, i),
+ value: JH(a, i),
name: r == null ? void 0 : String(r)
}));
- }) : e.push(dU({
+ }) : e.push(fU({
tooltipEntrySettings: f,
dataKey: h,
payload: _,
- value: qH(_, h),
- name: qH(_, g) ?? f?.name
+ value: JH(_, h),
+ name: JH(_, g) ?? f?.name
})), e;
}, []);
}
}, b0 = $([
n1,
B$,
- wY
+ TY
], E$), x0 = $([
$([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),
n1,
- $([oX, sX], V$)
-], U$, { memoizeOptions: { resultEqualityCheck: iX } }), __e = $([x0], (e) => e.filter(nX)), S0 = $([$([x0], q$, { memoizeOptions: { resultEqualityCheck: iX } }), eY], J$), v_e = $([
- __e,
- eY,
+ $([sX, cX], V$)
+], U$, { memoizeOptions: { resultEqualityCheck: aX } }), v_e = $([x0], (e) => e.filter(rX)), S0 = $([$([x0], q$, { memoizeOptions: { resultEqualityCheck: aX } }), tY], J$), y_e = $([
+ v_e,
+ tY,
n1
-], tX), C0 = $([
+], nX), C0 = $([
S0,
n1,
x0
-], X$), w0 = $([n1], s1), T0 = $([w0, $([n1], (e) => e.allowDataOverflow)], oY), y_e = $([
+], X$), w0 = $([n1], s1), T0 = $([w0, $([n1], (e) => e.allowDataOverflow)], sY), b_e = $([
$([
- v_e,
- $([x0], (e) => e.filter(nX)),
- SY,
- CY
+ y_e,
+ $([x0], (e) => e.filter(rX)),
+ CY,
+ wY
], i1),
- eY,
- oX,
+ tY,
+ sX,
T0
-], o1), b_e = $([
+], o1), x_e = $([
S0,
n1,
$([x0], K$),
u1,
- oX
-], f1, { memoizeOptions: { resultEqualityCheck: rX } }), x_e = $([$([
- p1,
- oX,
sX
-], m1), oX], _1), S_e = $([$([
+], f1, { memoizeOptions: { resultEqualityCheck: iX } }), S_e = $([$([
+ p1,
+ sX,
+ cX
+], m1), sX], _1), C_e = $([$([
h1,
- oX,
- sX
-], m1), oX], v1), E0 = $([
+ sX,
+ cX
+], m1), sX], v1), E0 = $([
n1,
- gW,
+ _W,
S0,
C0,
- SY,
- oX,
+ CY,
+ sX,
$([
n1,
w0,
T0,
- y_e,
b_e,
+ x_e,
$([
- x_e,
+ S_e,
$([$([
g1,
- oX,
- sX
- ], m1), oX], y1),
- S_e
+ sX,
+ cX
+ ], m1), sX], y1),
+ C_e
], d1),
- gW,
- oX
+ _W,
+ sX
], b1)
-], x1), C_e = $([
+], x1), w_e = $([
n1,
E0,
$([
@@ -55628,59 +55655,59 @@ var y0 = (e, t, n, r, i, a, o) => {
n1,
b0
], w1),
- oX
-], E1), D0 = (e) => O1(e, oX(e), sX(e), !1), O0 = $([n1, D0], MY), k0 = $([$([
+ sX
+], E1), D0 = (e) => O1(e, sX(e), cX(e), !1), O0 = $([n1, D0], NY), k0 = $([$([
n1,
b0,
- C_e,
+ w_e,
O0
-], T$)], cX), A0 = $([
- gW,
+], T$)], lX), A0 = $([
+ _W,
n1,
b0,
k0,
D0,
$([
- gW,
+ _W,
C0,
n1,
- oX
+ sX
], H1),
$([
- gW,
+ _W,
C0,
n1,
- oX
+ sX
], j1),
- oX
+ sX
], (e, t, n, r, i, a, o, s) => {
if (t) {
- var { type: c } = t, l = YH(e, s);
+ var { type: c } = t, l = XH(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 ? QR(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
+ return d = s === "angleAxis" && i != null && i?.length >= 2 ? $R(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
var n = r.map(e);
- return BH(n) ? {
+ return VH(n) ? {
coordinate: n + d,
value: e,
index: t,
offset: d
} : null;
- }).filter(lz) : r.domain().map((e, t) => {
+ }).filter(uz) : r.domain().map((e, t) => {
var n = r.map(e);
- return BH(n) ? {
+ return VH(n) ? {
coordinate: n + d,
value: a ? a[e] : e,
index: t,
offset: d
} : null;
- }).filter(lz);
+ }).filter(uz);
}
}
}), j0 = $([
X1,
Z1,
- Kge
+ qge
], (e, t, n) => Q1(n.shared, e, t)), M0 = (e) => e.tooltip.settings.trigger, N0 = (e) => e.tooltip.settings.defaultIndex, P0 = $([
h0,
j0,
@@ -55693,25 +55720,25 @@ var y0 = (e, t, n, r, i, a, o) => {
E0
], d0), I0 = $([A0, F0], e0), L0 = $([P0], (e) => {
if (e) return e.dataKey;
-}), w_e = $([P0], (e) => {
+}), T_e = $([P0], (e) => {
if (e) return e.graphicalItemId;
}), R0 = $([
h0,
j0,
M0,
N0
-], p0), T_e = $([P0, $([
- hU,
+], p0), E_e = $([P0, $([
gU,
- gW,
- MU,
+ _U,
+ _W,
+ NU,
A0,
N0,
R0
-], f0)], (e, t) => e != null && e.coordinate ? e.coordinate : t), E_e = $([P0], (e) => e?.active ?? !1), D_e = $([$([
+], f0)], (e, t) => e != null && e.coordinate ? e.coordinate : t), D_e = $([P0], (e) => e?.active ?? !1), O_e = $([$([
R0,
F0,
- eY,
+ tY,
r1,
I0,
m0,
@@ -55738,26 +55765,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) {
- O_e(e, t, n[t]);
+ k_e(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function O_e(e, t, n) {
- return (t = k_e(t)) in e ? Object.defineProperty(e, t, {
+function k_e(e, t, n) {
+ return (t = A_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function k_e(e) {
- var t = A_e(e, "string");
+function A_e(e) {
+ var t = j_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function A_e(e, t) {
+function j_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55767,9 +55794,9 @@ function A_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var j_e = () => Q(n1), M_e = () => {
- var e = j_e(), t = Q(A0), n = Q(k0);
- return uU(!e || !n ? void 0 : B0(B0({}, e), {}, { scale: n }), t);
+var M_e = () => Q(n1), N_e = () => {
+ var e = M_e(), t = Q(A0), n = Q(k0);
+ return dU(!e || !n ? void 0 : B0(B0({}, e), {}, { scale: n }), t);
};
//#endregion
//#region node_modules/recharts/es6/util/getActiveCoordinate.js
@@ -55787,26 +55814,26 @@ function H0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? V0(Object(n), !0).forEach(function(t) {
- N_e(e, t, n[t]);
+ P_e(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function N_e(e, t, n) {
- return (t = P_e(t)) in e ? Object.defineProperty(e, t, {
+function P_e(e, t, n) {
+ return (t = F_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 F_e(e) {
+ var t = I_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function F_e(e, t) {
+function I_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55816,7 +55843,7 @@ function F_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var I_e = (e, t, n, r) => {
+var L_e = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "horizontal") return {
@@ -55832,18 +55859,18 @@ var I_e = (e, t, n, r) => {
x: 0,
y: 0
};
-}, L_e = (e, t, n, r) => {
+}, R_e = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "centric") {
var a = i.coordinate, { radius: o } = r;
- return H0(H0(H0({}, r), DJ(r.cx, r.cy, o, a)), {}, {
+ return H0(H0(H0({}, r), OJ(r.cx, r.cy, o, a)), {}, {
angle: a,
radius: o
});
}
var s = i.coordinate, { angle: c } = r;
- return H0(H0(H0({}, r), DJ(r.cx, r.cy, s, c)), {}, {
+ return H0(H0(H0({}, r), OJ(r.cx, r.cy, s, c)), {}, {
angle: c,
radius: s
});
@@ -55862,7 +55889,7 @@ var I_e = (e, t, n, r) => {
y: 0
};
};
-function R_e(e, t) {
+function z_e(e, t) {
var { relativeX: n, relativeY: r } = e;
return n >= t.left && n <= t.left + t.width && r >= t.top && r <= t.top + t.height;
}
@@ -55872,9 +55899,9 @@ var U0 = (e, t, n, r, i) => {
if (r === "angleAxis" && i != null && Math.abs(Math.abs(i[1] - i[0]) - 360) <= 1e-6) for (var o = 0; o < a; o++) {
var s = o > 0 ? n[o - 1]?.coordinate : n[a - 1]?.coordinate, c = n[o]?.coordinate, l = o >= a - 1 ? n[0]?.coordinate : n[o + 1]?.coordinate, u = void 0;
if (s != null && c != null && l != null) {
- if (QR(c - s) !== QR(l - c)) {
+ if ($R(c - s) !== $R(l - c)) {
var d = [];
- if (QR(l - c) === QR(i[1] - i[0])) {
+ if ($R(l - c) === $R(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);
@@ -55899,7 +55926,7 @@ var U0 = (e, t, n, r, i) => {
}
}
return -1;
-}, W0 = () => Q(wY), G0 = (e, t) => t, K0 = (e, t, n) => n, q0 = (e, t, n, r) => r, z_e = $(A0, (e) => tB(e, (e) => e.coordinate)), J0 = $([
+}, W0 = () => Q(TY), G0 = (e, t) => t, K0 = (e, t, n) => n, q0 = (e, t, n, r) => r, B_e = $(A0, (e) => nB(e, (e) => e.coordinate)), J0 = $([
h0,
G0,
K0,
@@ -55909,7 +55936,7 @@ var U0 = (e, t, n, r, i) => {
S0,
r1,
E0
-], d0), B_e = (e, t, n) => {
+], d0), V_e = (e, t, n) => {
if (t != null) {
var r = h0(e);
return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;
@@ -55920,54 +55947,54 @@ var U0 = (e, t, n, r, i) => {
K0,
q0
], p0), Z0 = $([
- hU,
gU,
- gW,
- MU,
+ _U,
+ _W,
+ NU,
A0,
q0,
X0
-], f0), V_e = $([J0, Z0], (e, t) => e.coordinate ?? t), Q0 = $([A0, Y0], e0), H_e = $([
+], f0), H_e = $([J0, Z0], (e, t) => e.coordinate ?? t), Q0 = $([A0, Y0], e0), U_e = $([
X0,
Y0,
- eY,
+ tY,
r1,
Q0,
m0,
G0
-], y0), U_e = $([J0, Y0], (e, t) => ({
+], y0), W_e = $([J0, Y0], (e, t) => ({
isActive: e.active && t != null,
activeIndex: t
-})), W_e = (e, t, n, r, i, a, o) => {
- if (!(!e || !n || !r || !i) && R_e(e, o)) {
- var s = U0(pU(e, t), a, i, n, r), c = I_e(t, i, s, e);
+})), G_e = (e, t, n, r, i, a, o) => {
+ if (!(!e || !n || !r || !i) && z_e(e, o)) {
+ var s = U0(mU(e, t), a, i, n, r), c = L_e(t, i, s, e);
return {
activeIndex: String(s),
activeCoordinate: c
};
}
-}, G_e = (e, t, n, r, i, a, o) => {
+}, K_e = (e, t, n, r, i, a, o) => {
if (!(!e || !r || !i || !a || !n)) {
- var s = NJ(e, n);
+ var s = PJ(e, n);
if (s) {
- var c = U0(mU(s, t), o, a, r, i), l = L_e(t, a, c, s);
+ var c = U0(hU(s, t), o, a, r, i), l = R_e(t, a, c, s);
return {
activeIndex: String(c),
activeCoordinate: l
};
}
}
-}, K_e = (e, t, n, r, i, a, o, s) => {
- if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? W_e(e, t, r, i, a, o, s) : G_e(e, t, n, r, i, a, o);
-}, q_e = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
+}, q_e = (e, t, n, r, i, a, o, s) => {
+ if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? G_e(e, t, r, i, a, o, s) : K_e(e, t, n, r, i, a, o);
+}, J_e = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
if (t != null) {
var r = e[t];
if (r != null) return n ? r.panoramaElement : r.element;
}
-}), J_e = $((e) => e.zIndex.zIndexMap, (e) => {
- var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(kY));
+}), Y_e = $((e) => e.zIndex.zIndexMap, (e) => {
+ var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(AY));
return Array.from(new Set(t)).sort((e, t) => e - t);
-}, { memoizeOptions: { resultEqualityCheck: aX } });
+}, { memoizeOptions: { resultEqualityCheck: oX } });
//#endregion
//#region node_modules/recharts/es6/state/zIndexSlice.js
function $0(e, t) {
@@ -55984,26 +56011,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) {
- Y_e(e, t, n[t]);
+ X_e(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Y_e(e, t, n) {
- return (t = X_e(t)) in e ? Object.defineProperty(e, t, {
+function X_e(e, t, n) {
+ return (t = Z_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function X_e(e) {
- var t = Z_e(e, "string");
+function Z_e(e) {
+ var t = Q_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Z_e(e, t) {
+function Q_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56013,17 +56040,17 @@ function Z_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Q_e = { zIndexMap: Object.values(kY).reduce((e, t) => e2(e2({}, e), {}, { [t]: {
+var $_e = { zIndexMap: Object.values(AY).reduce((e, t) => e2(e2({}, e), {}, { [t]: {
element: void 0,
panoramaElement: void 0,
consumers: 0
-} }), {}) }, $_e = new Set(Object.values(kY));
-function eve(e) {
- return $_e.has(e);
+} }), {}) }, eve = new Set(Object.values(AY));
+function tve(e) {
+ return eve.has(e);
}
-var t2 = GV({
+var t2 = KV({
name: "zIndex",
- initialState: Q_e,
+ initialState: $_e,
reducers: {
registerZIndexPortal: {
reducer: (e, t) => {
@@ -56034,47 +56061,47 @@ var t2 = GV({
panoramaElement: void 0
};
},
- prepare: AV()
+ prepare: jV()
},
unregisterZIndexPortal: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
- e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !eve(n) && delete e.zIndexMap[n]);
+ e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !tve(n) && delete e.zIndexMap[n]);
},
- prepare: AV()
+ prepare: jV()
},
registerZIndexPortalElement: {
reducer: (e, t) => {
var { zIndex: n, element: r, isPanorama: i } = t.payload;
- e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = vG(r) : e.zIndexMap[n].element = vG(r) : e.zIndexMap[n] = {
+ e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = yG(r) : e.zIndexMap[n].element = yG(r) : e.zIndexMap[n] = {
consumers: 0,
- element: i ? void 0 : vG(r),
- panoramaElement: i ? vG(r) : void 0
+ element: i ? void 0 : yG(r),
+ panoramaElement: i ? yG(r) : void 0
};
},
- prepare: AV()
+ prepare: jV()
},
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: AV()
+ prepare: jV()
}
}
-}), { registerZIndexPortal: tve, unregisterZIndexPortal: nve, registerZIndexPortalElement: rve, unregisterZIndexPortalElement: ive } = t2.actions, ave = t2.reducer;
+}), { registerZIndexPortal: nve, unregisterZIndexPortal: rve, registerZIndexPortalElement: ive, unregisterZIndexPortalElement: ave } = t2.actions, ove = t2.reducer;
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
function n2(e) {
- var { zIndex: t, children: n } = e, r = xW() && t !== void 0 && t !== 0, i = IU(), a = qz();
- (0, I.useLayoutEffect)(() => r ? (a(tve({ zIndex: t })), () => {
- a(nve({ zIndex: t }));
- }) : uz, [
+ var { zIndex: t, children: n } = e, r = SW() && t !== void 0 && t !== 0, i = LU(), a = Jz();
+ (0, I.useLayoutEffect)(() => r ? (a(nve({ zIndex: t })), () => {
+ a(rve({ zIndex: t }));
+ }) : dz, [
a,
t,
r
]);
- var o = Q((e) => q_e(e, t, i));
+ var o = Q((e) => J_e(e, t, i));
return r ? o ? /*#__PURE__*/ (0, yh.createPortal)(n, o) : null : n;
}
//#endregion
@@ -56102,26 +56129,26 @@ function a2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? i2(Object(n), !0).forEach(function(t) {
- ove(e, t, n[t]);
+ sve(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ove(e, t, n) {
- return (t = sve(t)) in e ? Object.defineProperty(e, t, {
+function sve(e, t, n) {
+ return (t = cve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function sve(e) {
- var t = cve(e, "string");
+function cve(e) {
+ var t = lve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function cve(e, t) {
+function lve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56131,18 +56158,18 @@ function cve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function lve(e) {
+function uve(e) {
var { cursor: t, cursorComp: n, cursorProps: r } = e;
return /*#__PURE__*/ (0, I.isValidElement)(t) ? /*#__PURE__*/ (0, I.cloneElement)(t, r) : /*#__PURE__*/ (0, I.createElement)(n, r);
}
-function uve(e) {
+function dve(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 = sq, h = kY.cursorLine;
- else if (l === "BarChart") p = cq(o, u, i, a), m = vJ, h = kY.cursorRectangle;
- else if (o === "radial" && gz(u)) {
- var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = PJ(u);
+ if (l === "ScatterChart") p = u, m = cq, h = AY.cursorLine;
+ else if (l === "BarChart") p = lq(o, u, i, a), m = yJ, h = AY.cursorRectangle;
+ else if (o === "radial" && _z(u)) {
+ var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = FJ(u);
p = {
cx: g,
cy: _,
@@ -56150,25 +56177,25 @@ function uve(e) {
endAngle: b,
innerRadius: v,
outerRadius: v
- }, m = YJ, h = kY.cursorLine;
- } else p = { points: XJ(o, u, i) }, m = XK, h = kY.cursorLine;
+ }, m = XJ, h = AY.cursorLine;
+ } else p = { points: ZJ(o, u, i) }, m = ZK, h = AY.cursorLine;
var x = typeof s == "object" && "className" in s ? s.className : void 0, S = a2(a2(a2(a2({
stroke: "#ccc",
pointerEvents: "none"
- }, i), p), GL(s)), {}, {
+ }, i), p), KL(s)), {}, {
payload: d,
payloadIndex: f,
className: Wm("recharts-tooltip-cursor", x)
});
- return /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ I.createElement(lve, {
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ I.createElement(uve, {
cursor: s,
cursorComp: m,
cursorProps: S
}));
}
-function dve(e) {
- var t = M_e(), n = fW(), r = _W(), i = W0();
- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ I.createElement(uve, r2({}, e, {
+function fve(e) {
+ var t = N_e(), n = pW(), r = vW(), i = W0();
+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ I.createElement(dve, r2({}, e, {
offset: n,
layout: r,
tooltipAxisBandSize: t,
@@ -56177,7 +56204,7 @@ function dve(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipPortalContext.js
-var o2 = /*#__PURE__*/ (0, I.createContext)(null), fve = () => (0, I.useContext)(o2), pve = (/* @__PURE__ */ te((/* @__PURE__ */ M(((e, t) => {
+var o2 = /*#__PURE__*/ (0, I.createContext)(null), pve = () => (0, I.useContext)(o2), mve = (/* @__PURE__ */ te((/* @__PURE__ */ M(((e, t) => {
var n = Object.prototype.hasOwnProperty, r = "~";
function i() {}
Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
@@ -56264,12 +56291,12 @@ var o2 = /*#__PURE__*/ (0, I.createContext)(null), fve = () => (0, I.useContext)
var t;
return e ? (t = r ? r + e : e, this._events[t] && s(this, t)) : (this._events = new i(), this._eventsCount = 0), this;
}, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = r, c.EventEmitter = c, t !== void 0 && (t.exports = c);
-})))(), 1)).default, s2 = new pve(), c2 = "recharts.syncEvent.tooltip", l2 = "recharts.syncEvent.brush", u2 = (e, t) => {
+})))(), 1)).default, s2 = new mve(), c2 = "recharts.syncEvent.tooltip", l2 = "recharts.syncEvent.brush", u2 = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
- if (!$R(n)) return e[n];
+ if (!ez(n)) return e[n];
}
-}, d2 = GV({
+}, d2 = KV({
name: "options",
initialState: {
chartName: "",
@@ -56280,13 +56307,13 @@ var o2 = /*#__PURE__*/ (0, I.createContext)(null), fve = () => (0, I.useContext)
reducers: { createEventEmitter: (e) => {
e.eventEmitter ??= Symbol("rechartsEventEmitter");
} }
-}), mve = d2.reducer, { createEventEmitter: hve } = d2.actions;
+}), hve = d2.reducer, { createEventEmitter: gve } = d2.actions;
//#endregion
//#region node_modules/recharts/es6/synchronisation/syncSelectors.js
-function gve(e) {
+function _ve(e) {
return e.tooltip.syncInteraction;
}
-var f2 = GV({
+var f2 = KV({
name: "chartData",
initialState: {
chartData: void 0,
@@ -56296,7 +56323,7 @@ var f2 = GV({
},
reducers: {
setChartData(e, t) {
- if (e.chartData = vG(t.payload), t.payload == null) {
+ if (e.chartData = yG(t.payload), t.payload == null) {
e.dataStartIndex = 0, e.dataEndIndex = 0;
return;
}
@@ -56310,7 +56337,7 @@ var f2 = GV({
n != null && (e.dataStartIndex = n), r != null && (e.dataEndIndex = r);
}
}
-}), { setChartData: p2, setDataStartEndIndexes: _ve, setComputedData: vve } = f2.actions, yve = f2.reducer, bve = ["x", "y"];
+}), { setChartData: p2, setDataStartEndIndexes: vve, setComputedData: yve } = f2.actions, bve = f2.reducer, xve = ["x", "y"];
function m2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -56325,26 +56352,26 @@ function h2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? m2(Object(n), !0).forEach(function(t) {
- xve(e, t, n[t]);
+ Sve(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : m2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function xve(e, t, n) {
- return (t = Sve(t)) in e ? Object.defineProperty(e, t, {
+function Sve(e, t, n) {
+ return (t = Cve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Sve(e) {
- var t = Cve(e, "string");
+function Cve(e) {
+ var t = wve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Cve(e, t) {
+function wve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56354,16 +56381,16 @@ function Cve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function wve(e, t) {
+function Tve(e, t) {
if (e == null) return {};
- var n, r, i = Tve(e, t);
+ var n, r, i = Eve(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 Tve(e, t) {
+function Eve(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56372,16 +56399,16 @@ function Tve(e, t) {
}
return n;
}
-function Eve() {
- var e = Q(TY), t = Q(DY), n = qz(), r = Q(EY), i = Q(A0), a = _W(), o = uW(), s = Q((e) => e.rootProps.className);
+function Dve() {
+ var e = Q(EY), t = Q(OY), n = Jz(), r = Q(DY), i = Q(A0), a = vW(), o = dW(), s = Q((e) => e.rootProps.className);
(0, I.useEffect)(() => {
- if (e == null) return uz;
+ if (e == null) return dz;
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 = wve(d, bve), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = h2(h2({}, m), {}, {
+ var d = c.payload.coordinate, { x: f, y: p } = d, m = Tve(d, xve), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = h2(h2({}, m), {}, {
x: o.x + (_ ? (f - h) / _ : 0) * o.width,
y: o.y + (v ? (p - g) / v : 0) * o.height
});
@@ -56442,12 +56469,12 @@ function Eve() {
o
]);
}
-function Dve() {
- var e = Q(TY), t = Q(DY), n = qz();
+function Ove() {
+ var e = Q(EY), t = Q(OY), n = Jz();
(0, I.useEffect)(() => {
- if (e == null) return uz;
+ if (e == null) return dz;
var r = (r, i, a) => {
- t !== a && e === r && n(_ve(i));
+ t !== a && e === r && n(vve(i));
};
return s2.on(l2, r), () => {
s2.off(l2, r);
@@ -56458,14 +56485,14 @@ function Dve() {
e
]);
}
-function Ove() {
- var e = qz();
+function kve() {
+ var e = Jz();
(0, I.useEffect)(() => {
- e(hve());
- }, [e]), Eve(), Dve();
+ e(gve());
+ }, [e]), Dve(), Ove();
}
-function kve(e, t, n, r, i, a) {
- var o = Q((n) => B_e(n, e, t)), s = Q(w_e), c = Q(DY), l = Q(TY), u = Q(EY), d = Q(gve)?.active, f = uW();
+function Ave(e, t, n, r, i, a) {
+ var o = Q((n) => V_e(n, e, t)), s = Q(T_e), c = Q(OY), l = Q(EY), u = Q(DY), d = Q(_ve)?.active, f = dW();
(0, I.useEffect)(() => {
if (!d && l != null && c != null) {
var e = o0({
@@ -56509,26 +56536,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) {
- Ave(e, t, n[t]);
+ jve(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 Ave(e, t, n) {
- return (t = jve(t)) in e ? Object.defineProperty(e, t, {
+function jve(e, t, n) {
+ return (t = Mve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function jve(e) {
- var t = Mve(e, "string");
+function Mve(e) {
+ var t = Nve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Mve(e, t) {
+function Nve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56538,13 +56565,13 @@ function Mve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Nve(e) {
+function Pve(e) {
return e.dataKey;
}
-function Pve(e, t) {
- return /*#__PURE__*/ I.isValidElement(e) ? /*#__PURE__*/ I.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ I.createElement(e, t) : /*#__PURE__*/ I.createElement(vK, t);
+function Fve(e, t) {
+ return /*#__PURE__*/ I.isValidElement(e) ? /*#__PURE__*/ I.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ I.createElement(e, t) : /*#__PURE__*/ I.createElement(yK, t);
}
-var v2 = [], Fve = {
+var v2 = [], Ive = {
allowEscapeViewBox: {
x: !1,
y: !1
@@ -56570,10 +56597,10 @@ var v2 = [], Fve = {
useTranslate3d: !1,
wrapperStyle: {}
};
-function Ive(e) {
- var t = bz(e, Fve), { active: n, allowEscapeViewBox: r, animationDuration: i, animationEasing: a, content: o, filterNull: s, isAnimationActive: c, offset: l, payloadUniqBy: u, position: d, reverseDirection: f, useTranslate3d: p, wrapperStyle: m, cursor: h, shared: g, trigger: _, defaultIndex: v, portal: y, axisId: b } = t, x = qz(), S = typeof v == "number" ? String(v) : v;
+function Lve(e) {
+ var t = xz(e, Ive), { active: n, allowEscapeViewBox: r, animationDuration: i, animationEasing: a, content: o, filterNull: s, isAnimationActive: c, offset: l, payloadUniqBy: u, position: d, reverseDirection: f, useTranslate3d: p, wrapperStyle: m, cursor: h, shared: g, trigger: _, defaultIndex: v, portal: y, axisId: b } = t, x = Jz(), S = typeof v == "number" ? String(v) : v;
(0, I.useEffect)(() => {
- x(Xge({
+ x(Zge({
shared: g,
trigger: _,
axisId: b,
@@ -56588,12 +56615,12 @@ function Ive(e) {
n,
S
]);
- var C = uW(), w = FK(), T = Gge(g), { activeIndex: E, isActive: D } = Q((e) => U_e(e, T, _, S)) ?? {}, O = Q((e) => H_e(e, T, _, S)), k = Q((e) => Q0(e, T, _, S)), A = Q((e) => V_e(e, T, _, S)), j = O, M = fve(), N = n ?? D ?? !1, [ee, te] = iB([j, N]), P = T === "axis" ? k : void 0;
- kve(T, _, A, P, E, N);
+ var C = dW(), w = IK(), T = Kge(g), { activeIndex: E, isActive: D } = Q((e) => W_e(e, T, _, S)) ?? {}, O = Q((e) => U_e(e, T, _, S)), k = Q((e) => Q0(e, T, _, S)), A = Q((e) => H_e(e, T, _, S)), j = O, M = pve(), N = n ?? D ?? !1, [ee, te] = aB([j, N]), P = T === "axis" ? k : void 0;
+ Ave(T, _, A, P, E, N);
var F = y ?? M;
if (F == null || C == null || T == null) return null;
var ne = j ?? v2;
- N || (ne = v2), s && ne.length && (ne = Gz(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, Nve));
+ N || (ne = v2), s && ne.length && (ne = Kz(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, Pve));
var re = ne.length > 0, ie = _2(_2({}, t), {}, {
payload: ne,
label: P,
@@ -56601,7 +56628,7 @@ function Ive(e) {
activeIndex: E,
coordinate: A,
accessibilityLayer: w
- }), L = /*#__PURE__*/ I.createElement(PK, {
+ }), L = /*#__PURE__*/ I.createElement(FK, {
allowEscapeViewBox: r,
animationDuration: i,
animationEasing: a,
@@ -56618,8 +56645,8 @@ function Ive(e) {
lastBoundingBox: ee,
innerRef: te,
hasPortalFromProps: !!y
- }, Pve(o, ie));
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ (0, yh.createPortal)(L, F), N && /*#__PURE__*/ I.createElement(dve, {
+ }, Fve(o, ie));
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ (0, yh.createPortal)(L, F), N && /*#__PURE__*/ I.createElement(fve, {
cursor: h,
tooltipEventType: T,
coordinate: A,
@@ -56633,19 +56660,19 @@ var y2 = (e) => null;
y2.displayName = "Cell";
//#endregion
//#region node_modules/recharts/es6/util/LRUCache.js
-function Lve(e, t, n) {
- return (t = Rve(t)) in e ? Object.defineProperty(e, t, {
+function Rve(e, t, n) {
+ return (t = zve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Rve(e) {
- var t = zve(e, "string");
+function zve(e) {
+ var t = Bve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function zve(e, t) {
+function Bve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56655,9 +56682,9 @@ function zve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Bve = class {
+var Vve = class {
constructor(e) {
- Lve(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
+ Rve(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
}
get(e) {
var t = this.cache.get(e);
@@ -56690,30 +56717,30 @@ function b2(e, t) {
}
return n;
}
-function Vve(e) {
+function Hve(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? b2(Object(n), !0).forEach(function(t) {
- Hve(e, t, n[t]);
+ Uve(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : b2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Hve(e, t, n) {
- return (t = Uve(t)) in e ? Object.defineProperty(e, t, {
+function Uve(e, t, n) {
+ return (t = Wve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Uve(e) {
- var t = Wve(e, "string");
+function Wve(e) {
+ var t = Gve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Wve(e, t) {
+function Gve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56723,10 +56750,10 @@ function Wve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var x2 = Vve({}, {
+var x2 = Hve({}, {
cacheSize: 2e3,
enableCache: !0
-}), S2 = new Bve(x2.cacheSize), Gve = {
+}), S2 = new Vve(x2.cacheSize), Kve = {
position: "absolute",
top: "-20000px",
left: 0,
@@ -56735,13 +56762,13 @@ var x2 = Vve({}, {
border: "none",
whiteSpace: "pre"
}, C2 = "recharts_measurement_span";
-function Kve(e, t) {
+function qve(e, t) {
return `${e}|${t.fontSize || ""}|${t.fontFamily || ""}|${t.fontWeight || ""}|${t.fontStyle || ""}|${t.letterSpacing || ""}|${t.textTransform || ""}`;
}
var w2 = (e, t) => {
try {
var n = document.getElementById(C2);
- n || (n = document.createElement("span"), n.setAttribute("id", C2), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, Gve, t), n.textContent = `${e}`;
+ n || (n = document.createElement("span"), n.setAttribute("id", C2), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, Kve, t), n.textContent = `${e}`;
var r = n.getBoundingClientRect();
return {
width: r.width,
@@ -56755,29 +56782,29 @@ var w2 = (e, t) => {
}
}, T2 = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- if (e == null || TK.isSsr) return {
+ if (e == null || EK.isSsr) return {
width: 0,
height: 0
};
if (!x2.enableCache) return w2(e, t);
- var n = Kve(e, t), r = S2.get(n);
+ var n = qve(e, t), r = S2.get(n);
if (r) return r;
var i = w2(e, t);
return S2.set(n, i), i;
}, E2;
-function qve(e, t, n) {
- return (t = Jve(t)) in e ? Object.defineProperty(e, t, {
+function Jve(e, t, n) {
+ return (t = Yve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Jve(e) {
- var t = Yve(e, "string");
+function Yve(e) {
+ var t = Xve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Yve(e, t) {
+function Xve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56787,7 +56814,7 @@ function Yve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, O2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, Xve = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, Zve = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, Qve = {
+var D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, O2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, Zve = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, Qve = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, $ve = {
cm: 96 / 2.54,
mm: 96 / 25.4,
pt: 96 / 72,
@@ -56795,7 +56822,7 @@ var D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, O2 = /(
in: 96,
Q: 96 / 101.6,
px: 1
-}, $ve = [
+}, eye = [
"cm",
"mm",
"pt",
@@ -56804,20 +56831,20 @@ var D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, O2 = /(
"Q",
"px"
];
-function eye(e) {
- return $ve.includes(e);
+function tye(e) {
+ return eye.includes(e);
}
var k2 = "NaN";
-function tye(e, t) {
- return e * Qve[t];
+function nye(e, t) {
+ return e * $ve[t];
}
var A2 = class e {
static parse(t) {
- var [, n, r] = Zve.exec(t) ?? [];
+ var [, n, r] = Qve.exec(t) ?? [];
return n == null ? e.NaN : new e(parseFloat(n), r ?? "");
}
constructor(e, t) {
- this.num = e, this.unit = t, this.num = e, this.unit = t, $R(e) && (this.unit = ""), t !== "" && !Xve.test(t) && (this.num = NaN, this.unit = ""), eye(t) && (this.num = tye(e, t), this.unit = "px");
+ this.num = e, this.unit = t, this.num = e, this.unit = t, ez(e) && (this.unit = ""), t !== "" && !Zve.test(t) && (this.num = NaN, this.unit = ""), tye(t) && (this.num = nye(e, t), this.unit = "px");
}
add(t) {
return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");
@@ -56835,10 +56862,10 @@ var A2 = class e {
return `${this.num}${this.unit}`;
}
isNaN() {
- return $R(this.num);
+ return ez(this.num);
}
};
-E2 = A2, qve(A2, "NaN", new E2(NaN, ""));
+E2 = A2, Jve(A2, "NaN", new E2(NaN, ""));
function j2(e) {
if (e == null || e.includes(k2)) return k2;
for (var t = e; t.includes("*") || t.includes("/");) {
@@ -56854,31 +56881,31 @@ function j2(e) {
return t;
}
var M2 = /\(([^()]*)\)/;
-function nye(e) {
+function rye(e) {
for (var t = e, n; (n = M2.exec(t)) != null;) {
var [, r] = n;
t = t.replace(M2, j2(r));
}
return t;
}
-function rye(e) {
+function iye(e) {
var t = e.replace(/\s+/g, "");
- return t = nye(t), t = j2(t), t;
+ return t = rye(t), t = j2(t), t;
}
-function iye(e) {
+function aye(e) {
try {
- return rye(e);
+ return iye(e);
} catch {
return k2;
}
}
function N2(e) {
- var t = iye(e.slice(5, -1));
+ var t = aye(e.slice(5, -1));
return t === k2 ? "" : t;
}
//#endregion
//#region node_modules/recharts/es6/component/Text.js
-var aye = [
+var oye = [
"x",
"y",
"lineHeight",
@@ -56887,7 +56914,7 @@ var aye = [
"scaleToFit",
"textAnchor",
"verticalAnchor"
-], oye = [
+], sye = [
"dx",
"dy",
"angle",
@@ -56905,14 +56932,14 @@ function P2() {
}
function F2(e, t) {
if (e == null) return {};
- var n, r, i = sye(e, t);
+ var n, r, i = cye(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 sye(e, t) {
+function cye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56925,7 +56952,7 @@ var I2 = /[ \f\n\r\t\v\u2028\u2029]+/, L2 = (e) => {
var { children: t, breakAll: n, style: r } = e;
try {
var i = [];
- return sz(t) || (i = n ? t.toString().split("") : t.toString().split(I2)), {
+ return cz(t) || (i = n ? t.toString().split("") : t.toString().split(I2)), {
wordsWithComputedWidth: i.map((e) => ({
word: e,
width: T2(e, r).width
@@ -56939,8 +56966,8 @@ var I2 = /[ \f\n\r\t\v\u2028\u2029]+/, L2 = (e) => {
function R2(e) {
return e === "start" || e === "middle" || e === "end" || e === "inherit";
}
-function cye(e) {
- return sz(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
+function lye(e) {
+ return cz(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
}
var z2 = (e, t, n, r) => e.reduce((e, i) => {
var { word: a, width: o } = i, s = e[e.length - 1];
@@ -56953,16 +56980,16 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
e.push(c);
}
return e;
-}, []), B2 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), lye = "…", V2 = (e, t, n, r, i, a, o, s) => {
+}, []), B2 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), uye = "…", V2 = (e, t, n, r, i, a, o, s) => {
var c = L2({
breakAll: n,
style: r,
- children: e.slice(0, t) + lye
+ children: e.slice(0, t) + uye
});
if (!c) return [!1, []];
var l = z2(c.wordsWithComputedWidth, a, o, s);
return [l.length > i || B2(l).width > Number(a), l];
-}, uye = (e, t, n, r, i) => {
+}, dye = (e, t, n, r, i) => {
var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = z2(t, r, n, i);
if (!l || i || !(d.length > a || B2(d).width > Number(r))) return d;
for (var f = 0, p = u.length - 1, m = 0, h; f <= p && m <= u.length - 1;) {
@@ -56975,11 +57002,11 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
}
return h || d;
}, H2 = (e) => [{
- words: sz(e) ? [] : e.toString().split(I2),
+ words: cz(e) ? [] : e.toString().split(I2),
width: void 0
-}], dye = (e) => {
+}], fye = (e) => {
var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;
- if ((t || n) && !TK.isSsr) {
+ if ((t || n) && !EK.isSsr) {
var s, c, l = L2({
breakAll: a,
children: r,
@@ -56989,7 +57016,7 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
var { wordsWithComputedWidth: u, spaceWidth: d } = l;
s = u, c = d;
} else return H2(r);
- return uye({
+ return dye({
breakAll: a,
children: r,
maxLines: o,
@@ -56997,7 +57024,7 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
}, s, c, t, !!n);
}
return H2(r);
-}, U2 = "#808080", fye = {
+}, U2 = "#808080", pye = {
angle: 0,
breakAll: !1,
capHeight: "0.71em",
@@ -57009,7 +57036,7 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
x: 0,
y: 0
}, W2 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = bz(e, fye), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = F2(n, aye), f = (0, I.useMemo)(() => dye({
+ var n = xz(e, pye), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = F2(n, oye), f = (0, I.useMemo)(() => fye({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -57023,10 +57050,10 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
c,
d.style,
d.width
- ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = F2(d, oye);
- if (!tz(r) || !tz(i) || f.length === 0) return null;
+ ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = F2(d, sye);
+ if (!nz(r) || !nz(i) || f.length === 0) return null;
var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);
- if (!BH(y) || !BH(b)) return null;
+ if (!VH(y) || !VH(b)) return null;
var x;
switch (u) {
case "start":
@@ -57042,7 +57069,7 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
var w = C.width, { width: T } = d;
S.push(`scale(${Z(T) && Z(w) ? T / w : 1})`);
}
- return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ I.createElement("text", P2({}, KL(v), {
+ return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ I.createElement("text", P2({}, qL(v), {
ref: t,
x: y,
y: b,
@@ -57075,26 +57102,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) {
- pye(e, t, n[t]);
+ mye(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 pye(e, t, n) {
- return (t = mye(t)) in e ? Object.defineProperty(e, t, {
+function mye(e, t, n) {
+ return (t = hye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function mye(e) {
- var t = hye(e, "string");
+function hye(e) {
+ var t = gye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function hye(e, t) {
+function gye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57104,8 +57131,8 @@ function hye(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var gye = (e) => {
- var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = lW(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;
+var _ye = (e) => {
+ var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = uW(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;
if (n === "top") {
var T = {
x: d + l / 2,
@@ -57186,9 +57213,9 @@ var gye = (e) => {
y: s + c - _,
horizontalAnchor: S,
verticalAnchor: v
- }, k) : n && typeof n == "object" && (Z(n.x) || ez(n.x)) && (Z(n.y) || ez(n.y)) ? K2({
- x: o + rz(n.x, m),
- y: s + rz(n.y, c),
+ }, k) : n && typeof n == "object" && (Z(n.x) || tz(n.x)) && (Z(n.y) || tz(n.y)) ? K2({
+ x: o + iz(n.x, m),
+ y: s + iz(n.y, c),
horizontalAnchor: "end",
verticalAnchor: "end"
}, k) : K2({
@@ -57197,17 +57224,17 @@ var gye = (e) => {
horizontalAnchor: "middle",
verticalAnchor: "middle"
}, k);
-}, _ye = ["labelRef"], vye = ["content"];
+}, vye = ["labelRef"], yye = ["content"];
function q2(e, t) {
if (e == null) return {};
- var n, r, i = yye(e, t);
+ var n, r, i = bye(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function yye(e, t) {
+function bye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57230,26 +57257,26 @@ function Y2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? J2(Object(n), !0).forEach(function(t) {
- bye(e, t, n[t]);
+ xye(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 bye(e, t, n) {
- return (t = xye(t)) in e ? Object.defineProperty(e, t, {
+function xye(e, t, n) {
+ return (t = Sye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xye(e) {
- var t = Sye(e, "string");
+function Sye(e) {
+ var t = Cye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Sye(e, t) {
+function Cye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57286,9 +57313,9 @@ var Z2 = /*#__PURE__*/ (0, I.createContext)(null), Q2 = (e) => {
]);
return /*#__PURE__*/ I.createElement(Z2.Provider, { value: c }, s);
}, $2 = () => {
- var e = (0, I.useContext)(Z2), t = uW();
- return e || (t ? lW(t) : void 0);
-}, e4 = /*#__PURE__*/ (0, I.createContext)(null), Cye = (e) => {
+ var e = (0, I.useContext)(Z2), t = dW();
+ return e || (t ? uW(t) : void 0);
+}, e4 = /*#__PURE__*/ (0, I.createContext)(null), wye = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, clockWise: s, children: c } = e, l = (0, I.useMemo)(() => ({
cx: t,
cy: n,
@@ -57308,13 +57335,13 @@ var Z2 = /*#__PURE__*/ (0, I.createContext)(null), Q2 = (e) => {
]);
return /*#__PURE__*/ I.createElement(e4.Provider, { value: l }, c);
}, t4 = () => {
- var e = (0, I.useContext)(e4), t = Q(ZY);
+ var e = (0, I.useContext)(e4), t = Q(QY);
return e || t;
-}, wye = (e) => {
- var { value: t, formatter: n } = e, r = sz(e.children) ? t : e.children;
+}, Tye = (e) => {
+ var { value: t, formatter: n } = e, r = cz(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
-}, n4 = (e) => e != null && typeof e == "function", Tye = (e, t) => QR(t - e) * Math.min(Math.abs(t - e), 360), Eye = (e, t, n, r, i) => {
- var { offset: a, className: o } = e, { cx: s, cy: c, innerRadius: l, outerRadius: u, startAngle: d, endAngle: f, clockWise: p } = i, m = (l + u) / 2, h = Tye(d, f), g = h >= 0 ? 1 : -1, _, v;
+}, n4 = (e) => e != null && typeof e == "function", Eye = (e, t) => $R(t - e) * Math.min(Math.abs(t - e), 360), Dye = (e, t, n, r, i) => {
+ var { offset: a, className: o } = e, { cx: s, cy: c, innerRadius: l, outerRadius: u, startAngle: d, endAngle: f, clockWise: p } = i, m = (l + u) / 2, h = Eye(d, f), g = h >= 0 ? 1 : -1, _, v;
switch (t) {
case "insideStart":
_ = d + g * a, v = p;
@@ -57328,9 +57355,9 @@ var Z2 = /*#__PURE__*/ (0, I.createContext)(null), Q2 = (e) => {
default: throw Error(`Unsupported position ${t}`);
}
v = h <= 0 ? v : !v;
- var y = DJ(s, c, m, _), b = DJ(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
+ var y = OJ(s, c, m, _), b = OJ(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
A${m},${m},0,1,${+!v},
- ${b.x},${b.y}`, S = sz(e.id) ? nz("recharts-radial-line-") : e.id;
+ ${b.x},${b.y}`, S = cz(e.id) ? rz("recharts-radial-line-") : e.id;
return /*#__PURE__*/ I.createElement("text", X2({}, r, {
dominantBaseline: "central",
className: Wm("recharts-radial-bar-label", o)
@@ -57338,10 +57365,10 @@ var Z2 = /*#__PURE__*/ (0, I.createContext)(null), Q2 = (e) => {
id: S,
d: x
})), /*#__PURE__*/ I.createElement("textPath", { xlinkHref: `#${S}` }, n));
-}, Dye = (e, t, n) => {
+}, Oye = (e, t, n) => {
var { cx: r, cy: i, innerRadius: a, outerRadius: o, startAngle: s, endAngle: c } = e, l = (s + c) / 2;
if (n === "outside") {
- var { x: u, y: d } = DJ(r, i, o + t, l);
+ var { x: u, y: d } = OJ(r, i, o + t, l);
return {
x: u,
y: d,
@@ -57367,21 +57394,21 @@ var Z2 = /*#__PURE__*/ (0, I.createContext)(null), Q2 = (e) => {
textAnchor: "middle",
verticalAnchor: "end"
};
- var { x: f, y: p } = DJ(r, i, (a + o) / 2, l);
+ var { x: f, y: p } = OJ(r, i, (a + o) / 2, l);
return {
x: f,
y: p,
textAnchor: "middle",
verticalAnchor: "middle"
};
-}, r4 = (e) => e != null && "cx" in e && Z(e.cx), Oye = {
+}, r4 = (e) => e != null && "cx" in e && Z(e.cx), kye = {
angle: 0,
offset: 5,
- zIndex: kY.label,
+ zIndex: AY.label,
position: "middle",
textBreakAll: !1
};
-function kye(e) {
+function Aye(e) {
if (!r4(e)) return e;
var { cx: t, cy: n, outerRadius: r } = e, i = r * 2;
return {
@@ -57394,24 +57421,24 @@ function kye(e) {
};
}
function i4(e) {
- var t = bz(e, Oye), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = t4(), f = $2(), p = n == null ? i === "center" ? f : d ?? f : r4(n) ? n : lW(n), m, h, g = kye(p);
- if (!p || sz(a) && sz(o) && !/*#__PURE__*/ (0, I.isValidElement)(s) && typeof s != "function") return null;
+ var t = xz(e, kye), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = t4(), f = $2(), p = n == null ? i === "center" ? f : d ?? f : r4(n) ? n : uW(n), m, h, g = Aye(p);
+ if (!p || cz(a) && cz(o) && !/*#__PURE__*/ (0, I.isValidElement)(s) && typeof s != "function") return null;
var _ = Y2(Y2({}, t), {}, { viewBox: p });
if (/*#__PURE__*/ (0, I.isValidElement)(s)) {
- var { labelRef: v } = _, y = q2(_, _ye);
+ var { labelRef: v } = _, y = q2(_, vye);
return /*#__PURE__*/ (0, I.cloneElement)(s, y);
}
if (typeof s == "function") {
- var { content: b } = _, x = q2(_, vye);
+ var { content: b } = _, x = q2(_, yye);
if (m = /*#__PURE__*/ (0, I.createElement)(s, x), /*#__PURE__*/ (0, I.isValidElement)(m)) return m;
- } else m = wye(t);
- var S = KL(t);
+ } else m = Tye(t);
+ var S = qL(t);
if (r4(p)) {
- if (i === "insideStart" || i === "insideEnd" || i === "end") return Eye(t, i, m, S, p);
- h = Dye(p, t.offset, t.position);
+ if (i === "insideStart" || i === "insideEnd" || i === "end") return Dye(t, i, m, S, p);
+ h = Oye(p, t.offset, t.position);
} else {
if (!g) return null;
- var C = gye({
+ var C = _ye({
viewBox: g,
position: i,
offset: t.offset,
@@ -57440,7 +57467,7 @@ var a4 = (e, t, n) => {
viewBox: t,
labelRef: n
};
- return e === !0 ? /*#__PURE__*/ I.createElement(i4, X2({ key: "label-implicit" }, r)) : tz(e) ? /*#__PURE__*/ I.createElement(i4, X2({
+ return e === !0 ? /*#__PURE__*/ I.createElement(i4, X2({ key: "label-implicit" }, r)) : nz(e) ? /*#__PURE__*/ I.createElement(i4, X2({
key: "label-implicit",
value: e
}, r)) : /*#__PURE__*/ (0, I.isValidElement)(e) ? e.type === i4 ? /*#__PURE__*/ (0, I.cloneElement)(e, Y2({ key: "label-implicit" }, r)) : /*#__PURE__*/ I.createElement(i4, X2({
@@ -57455,13 +57482,13 @@ function o4(e) {
var { label: t, labelRef: n } = e;
return a4(t, $2(), n) || null;
}
-function Aye(e) {
+function jye(e) {
var { label: t } = e;
return a4(t, t4()) || null;
}
//#endregion
//#region node_modules/recharts/es6/component/LabelList.js
-var jye = ["valueAccessor"], Mye = [
+var Mye = ["valueAccessor"], Nye = [
"dataKey",
"clockWise",
"id",
@@ -57479,14 +57506,14 @@ function s4() {
}
function c4(e, t) {
if (e == null) return {};
- var n, r, i = Nye(e, t);
+ var n, r, i = Pye(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 Nye(e, t) {
+function Pye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57495,21 +57522,21 @@ function Nye(e, t) {
}
return n;
}
-var Pye = (e) => {
+var Fye = (e) => {
var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;
- if (cye(t)) return t;
-}, l4 = /*#__PURE__*/ (0, I.createContext)(void 0), u4 = l4.Provider, d4 = /*#__PURE__*/ (0, I.createContext)(void 0), Fye = d4.Provider;
-function Iye() {
+ if (lye(t)) return t;
+}, l4 = /*#__PURE__*/ (0, I.createContext)(void 0), u4 = l4.Provider, d4 = /*#__PURE__*/ (0, I.createContext)(void 0), Iye = d4.Provider;
+function Lye() {
return (0, I.useContext)(l4);
}
-function Lye() {
+function Rye() {
return (0, I.useContext)(d4);
}
function f4(e) {
- var { valueAccessor: t = Pye } = e, n = c4(e, jye), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = c4(n, Mye), l = Iye(), u = Lye(), d = l || u;
- return !d || !d.length ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: s ?? kY.label }, /*#__PURE__*/ I.createElement(XL, { className: "recharts-label-list" }, d.map((e, i) => {
- var s = sz(r) ? t(e, i) : qH(e.payload, r), l = sz(a) ? {} : { id: `${a}-${i}` };
- return /*#__PURE__*/ I.createElement(i4, s4({ key: `label-${i}` }, KL(e), c, l, {
+ var { valueAccessor: t = Fye } = e, n = c4(e, Mye), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = c4(n, Nye), l = Lye(), u = Rye(), d = l || u;
+ return !d || !d.length ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: s ?? AY.label }, /*#__PURE__*/ I.createElement(ZL, { className: "recharts-label-list" }, d.map((e, i) => {
+ var s = cz(r) ? t(e, i) : JH(e.payload, r), l = cz(a) ? {} : { id: `${a}-${i}` };
+ return /*#__PURE__*/ I.createElement(i4, s4({ key: `label-${i}` }, qL(e), c, l, {
fill: n.fill ?? e.fill,
parentViewBox: e.parentViewBox,
value: s,
@@ -57530,12 +57557,12 @@ function p4(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Polygon.js
-var Rye = [
+var zye = [
"points",
"className",
"baseLinePoints",
"connectNulls"
-], zye;
+], Bye;
function m4() {
return m4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -57545,16 +57572,16 @@ function m4() {
return e;
}, m4.apply(null, arguments);
}
-function Bye(e, t) {
+function Vye(e, t) {
if (e == null) return {};
- var n, r, i = Vye(e, t);
+ var n, r, i = Hye(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Vye(e, t) {
+function Hye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57563,10 +57590,10 @@ function Vye(e, t) {
}
return n;
}
-function Hye(e, t) {
+function Uye(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var h4 = (e) => e != null && e.x === +e.x && e.y === +e.y, Uye = function() {
+var h4 = (e) => e != null && e.x === +e.x && e.y === +e.y, Wye = function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
e.forEach((e) => {
var n = t[t.length - 1];
@@ -57577,9 +57604,9 @@ var h4 = (e) => e != null && e.x === +e.x && e.y === +e.y, Uye = function() {
var i = t[t.length - 1];
return i && i.length <= 0 && (t = t.slice(0, -1)), t;
}, g4 = (e, t) => {
- var n = Uye(e);
+ var n = Wye(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
- var r = n.map((e) => e.reduce((e, t, n) => ZR(zye ||= Hye([
+ var r = n.map((e) => e.reduce((e, t, n) => QR(Bye ||= Uye([
"",
"",
"",
@@ -57587,29 +57614,29 @@ var h4 = (e) => e != null && e.x === +e.x && e.y === +e.y, Uye = function() {
""
]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");
return n.length === 1 ? `${r}Z` : r;
-}, Wye = (e, t, n) => {
+}, Gye = (e, t, n) => {
var r = g4(e, n);
return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${g4(Array.from(t).reverse(), n).slice(1)}`;
}, _4 = (e) => {
- var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = Bye(e, Rye);
+ var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = Vye(e, zye);
if (!t || !t.length) return null;
var o = Wm("recharts-polygon", n);
if (r && r.length) {
- var s = a.stroke && a.stroke !== "none", c = Wye(t, r, i);
- return /*#__PURE__*/ I.createElement("g", { className: o }, /*#__PURE__*/ I.createElement("path", m4({}, KL(a), {
+ var s = a.stroke && a.stroke !== "none", c = Gye(t, r, i);
+ return /*#__PURE__*/ I.createElement("g", { className: o }, /*#__PURE__*/ I.createElement("path", m4({}, qL(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
d: c
- })), s ? /*#__PURE__*/ I.createElement("path", m4({}, KL(a), {
+ })), s ? /*#__PURE__*/ I.createElement("path", m4({}, qL(a), {
fill: "none",
d: g4(t, i)
- })) : null, s ? /*#__PURE__*/ I.createElement("path", m4({}, KL(a), {
+ })) : null, s ? /*#__PURE__*/ I.createElement("path", m4({}, qL(a), {
fill: "none",
d: g4(r, i)
})) : null);
}
var l = g4(t, i);
- return /*#__PURE__*/ I.createElement("path", m4({}, KL(a), {
+ return /*#__PURE__*/ I.createElement("path", m4({}, qL(a), {
fill: l.slice(-1) === "Z" ? a.fill : "none",
className: o,
d: l
@@ -57628,7 +57655,7 @@ function v4() {
}
var y4 = (e) => {
var { cx: t, cy: n, r, className: i } = e, a = Wm("recharts-dot", i);
- return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ I.createElement("circle", v4({}, WL(e), _z(e), {
+ return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ I.createElement("circle", v4({}, GL(e), vz(e), {
className: a,
cx: t,
cy: n,
@@ -57637,8 +57664,8 @@ var y4 = (e) => {
}, b4 = (e) => e.graphicalItems.polarItems, x4 = $([
b4,
R$,
- $([QY, $Y], V$)
-], U$), S4 = $([$([x4], q$), tY], J$), C4 = $([
+ $([$Y, eX], V$)
+], U$), S4 = $([$([x4], q$), nY], J$), C4 = $([
S4,
R$,
x4
@@ -57648,22 +57675,22 @@ $([
R$,
x4
], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({
- value: qH(e, t.dataKey ?? n.dataKey),
+ value: JH(e, t.dataKey ?? n.dataKey),
errorDomain: []
}))).filter(Boolean) : t?.dataKey == null ? e.map((e) => ({
value: e,
errorDomain: []
})) : e.map((e) => ({
- value: qH(e, t.dataKey),
+ value: JH(e, t.dataKey),
errorDomain: []
})));
var w4 = () => void 0, T4 = $([
R$,
- gW,
+ _W,
S4,
C4,
- SY,
- QY,
+ CY,
+ $Y,
$([
R$,
c1,
@@ -57674,45 +57701,45 @@ var w4 = () => void 0, T4 = $([
R$,
x4,
u1,
- QY
+ $Y
], f1),
w4,
- gW,
- QY
+ _W,
+ $Y
], b1)
], x1), E4 = $([
T4,
z$,
C1
-], w1), Gye = $([C1, $([
+], w1), Kye = $([C1, $([
R$,
T4,
E4,
- QY
-], E1)], lX), D4 = (e, t, n) => {
+ $Y
+], E1)], uX), D4 = (e, t, n) => {
switch (t) {
- case "angleAxis": return VY(e, n);
- case "radiusAxis": return HY(e, n);
+ case "angleAxis": return HY(e, n);
+ case "radiusAxis": return UY(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
}, O4 = (e, t, n) => {
switch (t) {
- case "angleAxis": return JY(e, n);
- case "radiusAxis": return XY(e, n);
+ case "angleAxis": return YY(e, n);
+ case "radiusAxis": return ZY(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
}, k4 = $([$([
D4,
C1,
- Gye,
+ Kye,
O4
-], T$)], cX), A4 = $([
- gW,
+], T$)], lX), A4 = $([
+ _W,
C4,
z$,
- QY
+ $Y
], j1), j4 = $([
- gW,
+ _W,
D4,
C1,
k4,
@@ -57720,8 +57747,8 @@ var w4 = () => void 0, T4 = $([
O4,
U1,
A4,
- QY
-], G1), Kye = $([j4], (e) => {
+ $Y
+], G1), qye = $([j4], (e) => {
if (e) {
var t = /* @__PURE__ */ new Map();
return e.forEach((e) => {
@@ -57729,19 +57756,19 @@ var w4 = () => void 0, T4 = $([
t.has(n) || t.set(n, e);
}), Array.from(t.values());
}
-}), qye = $([
- gW,
+}), Jye = $([
+ _W,
D4,
k4,
O4,
U1,
A4,
- QY
-], q1), Jye = $([(e, t) => j4(e, "angleAxis", t, !1)], (e) => {
+ $Y
+], q1), Yye = $([(e, t) => j4(e, "angleAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), Yye = $([(e, t) => j4(e, "radiusAxis", t, !1)], (e) => {
+}), Xye = $([(e, t) => j4(e, "radiusAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), Xye = [
+}), Zye = [
"gridType",
"radialLines",
"angleAxisId",
@@ -57754,16 +57781,16 @@ var w4 = () => void 0, T4 = $([
"polarRadius",
"zIndex"
];
-function Zye(e, t) {
+function Qye(e, t) {
if (e == null) return {};
- var n, r, i = Qye(e, t);
+ var n, r, i = $ye(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 Qye(e, t) {
+function $ye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57795,26 +57822,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) {
- $ye(e, t, n[t]);
+ ebe(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 $ye(e, t, n) {
- return (t = ebe(t)) in e ? Object.defineProperty(e, t, {
+function ebe(e, t, n) {
+ return (t = tbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ebe(e) {
- var t = tbe(e, "string");
+function tbe(e) {
+ var t = nbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function tbe(e, t) {
+function nbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57824,18 +57851,18 @@ function tbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var nbe = (e, t, n, r) => {
+var rbe = (e, t, n, r) => {
var i = "";
return r.forEach((r, a) => {
- var o = DJ(t, n, e, r);
+ var o = OJ(t, n, e, r);
i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;
}), i += "Z", i;
-}, rbe = (e) => {
+}, ibe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;
if (!a || !a.length || !o) return null;
- var s = P4({ stroke: "#ccc" }, WL(e));
+ var s = P4({ stroke: "#ccc" }, GL(e));
return /*#__PURE__*/ I.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {
- var a = DJ(t, n, r, e), o = DJ(t, n, i, e);
+ var a = OJ(t, n, r, e), o = OJ(t, n, i, e);
return /*#__PURE__*/ I.createElement("line", M4({ key: `line-${e}` }, s, {
x1: a.x,
y1: a.y,
@@ -57847,7 +57874,7 @@ var nbe = (e, t, n, r) => {
var { cx: t, cy: n, radius: r } = e, i = P4({
stroke: "#ccc",
fill: "none"
- }, WL(e));
+ }, GL(e));
return /*#__PURE__*/ I.createElement("circle", M4({}, i, {
className: Wm("recharts-polar-grid-concentric-circle", e.className),
cx: t,
@@ -57858,12 +57885,12 @@ var nbe = (e, t, n, r) => {
var { radius: t } = e, n = P4({
stroke: "#ccc",
fill: "none"
- }, WL(e));
+ }, GL(e));
return /*#__PURE__*/ I.createElement("path", M4({}, n, {
className: Wm("recharts-polar-grid-concentric-polygon", e.className),
- d: nbe(t, e.cx, e.cy, e.polarAngles)
+ d: rbe(t, e.cx, e.cy, e.polarAngles)
}));
-}, ibe = (e) => {
+}, abe = (e) => {
var { polarRadius: t, gridType: n } = e;
if (!t || !t.length) return null;
var r = Math.max(...t), i = e.fill && e.fill !== "none";
@@ -57877,14 +57904,14 @@ var nbe = (e, t, n, r) => {
radius: t
}));
}));
-}, abe = {
+}, obe = {
angleAxisId: 0,
radiusAxisId: 0,
gridType: "polygon",
radialLines: !0,
- zIndex: kY.grid
+ zIndex: AY.grid
}, L4 = (e) => {
- var t = bz(e, abe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = Zye(t, Xye), m = Q(ZY), h = Q((e) => Jye(e, i)), g = Q((e) => Yye(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
+ var t = xz(e, obe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = Qye(t, Zye), m = Q(QY), h = Q((e) => Yye(e, i)), g = Q((e) => Xye(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
if (_ == null || v == null) return null;
var y = P4({
cx: m?.cx ?? o ?? 0,
@@ -57895,13 +57922,13 @@ var nbe = (e, t, n, r) => {
polarRadius: v,
zIndex: f
}, p), { outerRadius: b } = y;
- return b <= 0 ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: y.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ I.createElement(ibe, M4({
+ return b <= 0 ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: y.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ I.createElement(abe, M4({
gridType: n,
radialLines: r
}, y, {
polarAngles: _,
polarRadius: v
- })), /*#__PURE__*/ I.createElement(rbe, M4({
+ })), /*#__PURE__*/ I.createElement(ibe, M4({
gridType: n,
radialLines: r
}, y, {
@@ -57917,11 +57944,11 @@ function R4(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
-function obe(e, t = Tz) {
+function sbe(e, t = Ez) {
if (e == null) return;
let n = R4(e);
if (n.length === 0) return;
- let r = Uz(t), i, a;
+ let r = Wz(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);
@@ -57930,11 +57957,11 @@ function obe(e, t = Tz) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
-function sbe(e, t = Tz) {
+function cbe(e, t = Ez) {
if (e == null) return;
let n = R4(e);
if (n.length === 0) return;
- let r = Uz(t), i, a;
+ let r = Wz(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);
@@ -57943,7 +57970,7 @@ function sbe(e, t = Tz) {
}
//#endregion
//#region node_modules/recharts/es6/state/polarAxisSlice.js
-var z4 = GV({
+var z4 = KV({
name: "polarAxis",
initialState: {
radiusAxis: {},
@@ -57951,19 +57978,19 @@ var z4 = GV({
},
reducers: {
addRadiusAxis(e, t) {
- e.radiusAxis[t.payload.id] = vG(t.payload);
+ e.radiusAxis[t.payload.id] = yG(t.payload);
},
removeRadiusAxis(e, t) {
delete e.radiusAxis[t.payload.id];
},
addAngleAxis(e, t) {
- e.angleAxis[t.payload.id] = vG(t.payload);
+ e.angleAxis[t.payload.id] = yG(t.payload);
},
removeAngleAxis(e, t) {
delete e.angleAxis[t.payload.id];
}
}
-}), { addRadiusAxis: cbe, removeRadiusAxis: lbe, addAngleAxis: ube, removeAngleAxis: dbe } = z4.actions, fbe = z4.reducer;
+}), { addRadiusAxis: lbe, removeRadiusAxis: ube, addAngleAxis: dbe, removeAngleAxis: fbe } = z4.actions, pbe = z4.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getClassNameFromUnknown.js
function B4(e) {
@@ -57971,12 +57998,12 @@ function B4(e) {
}
//#endregion
//#region node_modules/recharts/es6/polar/PolarRadiusAxis.js
-var pbe = ["type"], mbe = [
+var mbe = ["type"], hbe = [
"cx",
"cy",
"angle",
"axisLine"
-], hbe = [
+], gbe = [
"angle",
"tickFormatter",
"stroke",
@@ -58005,26 +58032,26 @@ function U4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? H4(Object(n), !0).forEach(function(t) {
- gbe(e, t, n[t]);
+ _be(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function gbe(e, t, n) {
- return (t = _be(t)) in e ? Object.defineProperty(e, t, {
+function _be(e, t, n) {
+ return (t = vbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function _be(e) {
- var t = vbe(e, "string");
+function vbe(e) {
+ var t = ybe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function vbe(e, t) {
+function ybe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58036,14 +58063,14 @@ function vbe(e, t) {
}
function W4(e, t) {
if (e == null) return {};
- var n, r, i = ybe(e, t);
+ var n, r, i = bbe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function ybe(e, t) {
+function bbe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58052,20 +58079,20 @@ function ybe(e, t) {
}
return n;
}
-var bbe = "radiusAxis";
-function xbe(e) {
- var t = qz(), n = bW(), r = (0, I.useMemo)(() => {
- var { type: t } = e, r = W4(e, pbe), i = NY(n, "radiusAxis", t);
+var xbe = "radiusAxis";
+function Sbe(e) {
+ var t = Jz(), n = xW(), r = (0, I.useMemo)(() => {
+ var { type: t } = e, r = W4(e, mbe), i = PY(n, "radiusAxis", t);
if (i != null) return U4(U4({}, r), {}, { type: i });
}, [e, n]);
- return (0, I.useEffect)(() => r == null ? uz : (t(cbe(r)), () => {
- t(lbe(r));
+ return (0, I.useEffect)(() => r == null ? dz : (t(lbe(r)), () => {
+ t(ube(r));
}), [t, r]), null;
}
-var Sbe = (e, t, n, r) => {
+var Cbe = (e, t, n, r) => {
var { coordinate: i } = e;
- return DJ(n, r, i, t);
-}, Cbe = (e) => {
+ return OJ(n, r, i, t);
+}, wbe = (e) => {
var t;
switch (e) {
case "left":
@@ -58077,49 +58104,49 @@ var Sbe = (e, t, n, r) => {
default: t = "middle";
}
return t;
-}, wbe = (e, t, n, r) => {
- var i = obe(r, (e) => e.coordinate || 0);
+}, Tbe = (e, t, n, r) => {
+ var i = sbe(r, (e) => e.coordinate || 0);
return {
cx: t,
cy: n,
startAngle: e,
endAngle: e,
- innerRadius: sbe(r, (e) => e.coordinate || 0)?.coordinate || 0,
+ innerRadius: cbe(r, (e) => e.coordinate || 0)?.coordinate || 0,
outerRadius: i?.coordinate || 0,
clockWise: !1
};
-}, Tbe = (e, t) => {
- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = W4(e, mbe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = DJ(n, r, s[0], i), l = DJ(n, r, s[1], i), u = U4(U4(U4({}, WL(o)), {}, { fill: "none" }, WL(a)), {}, {
+}, Ebe = (e, t) => {
+ var { cx: n, cy: r, angle: i, axisLine: a } = e, o = W4(e, hbe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = OJ(n, r, s[0], i), l = OJ(n, r, s[1], i), u = U4(U4(U4({}, GL(o)), {}, { fill: "none" }, GL(a)), {}, {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
});
return /*#__PURE__*/ I.createElement("line", V4({ className: "recharts-polar-radius-axis-line" }, u));
-}, Ebe = (e, t, n) => /*#__PURE__*/ I.isValidElement(e) ? /*#__PURE__*/ I.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ I.createElement(W2, V4({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), Dbe = (e, t) => {
- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = W4(e, hbe), s = Cbe(e.orientation), c = WL(o), l = GL(a), u = t.map((t, o) => {
- var u = Sbe(t, e.angle, e.cx, e.cy), d = U4(U4(U4(U4({
+}, Dbe = (e, t, n) => /*#__PURE__*/ I.isValidElement(e) ? /*#__PURE__*/ I.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ I.createElement(W2, V4({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), Obe = (e, t) => {
+ var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = W4(e, gbe), s = wbe(e.orientation), c = GL(o), l = KL(a), u = t.map((t, o) => {
+ var u = Cbe(t, e.angle, e.cx, e.cy), d = U4(U4(U4(U4({
textAnchor: s,
transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
}, c), {}, {
stroke: "none",
fill: i
}, l), {}, { index: o }, u), {}, { payload: t });
- return /*#__PURE__*/ I.createElement(XL, V4({
+ return /*#__PURE__*/ I.createElement(ZL, V4({
className: Wm("recharts-polar-radius-axis-tick", B4(a)),
key: `tick-${t.coordinate}`
- }, vz(e, t, o)), Ebe(a, d, r ? r(t.value, o) : t.value));
+ }, yz(e, t, o)), Dbe(a, d, r ? r(t.value, o) : t.value));
});
- return /*#__PURE__*/ I.createElement(XL, { className: "recharts-polar-radius-axis-ticks" }, u);
-}, Obe = (e) => {
- var { radiusAxisId: t } = e, n = Q(ZY), r = Q((e) => k4(e, "radiusAxis", t)), i = Q((e) => j4(e, "radiusAxis", t, !1));
+ return /*#__PURE__*/ I.createElement(ZL, { className: "recharts-polar-radius-axis-ticks" }, u);
+}, kbe = (e) => {
+ var { radiusAxisId: t } = e, n = Q(QY), r = Q((e) => k4(e, "radiusAxis", t)), i = Q((e) => j4(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
var a = U4(U4({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
- return /*#__PURE__*/ I.createElement(n2, { zIndex: a.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: Wm("recharts-polar-radius-axis", bbe, a.className) }, s && Tbe(a, i), o && Dbe(a, i), /*#__PURE__*/ I.createElement(Cye, wbe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ I.createElement(Aye, { label: a.label }), a.children)));
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: a.zIndex }, /*#__PURE__*/ I.createElement(ZL, { className: Wm("recharts-polar-radius-axis", xbe, a.className) }, s && Ebe(a, i), o && Obe(a, i), /*#__PURE__*/ I.createElement(wye, Tbe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ I.createElement(jye, { label: a.label }), a.children)));
};
function G4(e) {
- var t = bz(e, jY);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(xbe, {
+ var t = xz(e, MY);
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(Sbe, {
domain: t.domain,
id: t.radiusAxisId,
scale: t.scale,
@@ -58136,12 +58163,12 @@ function G4(e) {
ticks: t.ticks,
tickCount: t.tickCount,
tick: t.tick
- }), /*#__PURE__*/ I.createElement(Obe, t));
+ }), /*#__PURE__*/ I.createElement(kbe, t));
}
G4.displayName = "PolarRadiusAxis";
//#endregion
//#region node_modules/recharts/es6/polar/PolarAngleAxis.js
-var kbe = ["children", "type"], Abe = ["ref"];
+var Abe = ["children", "type"], jbe = ["ref"];
function K4() {
return K4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -58165,26 +58192,26 @@ function J4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? q4(Object(n), !0).forEach(function(t) {
- jbe(e, t, n[t]);
+ Mbe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function jbe(e, t, n) {
- return (t = Mbe(t)) in e ? Object.defineProperty(e, t, {
+function Mbe(e, t, n) {
+ return (t = Nbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Mbe(e) {
- var t = Nbe(e, "string");
+function Nbe(e) {
+ var t = Pbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Nbe(e, t) {
+function Pbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58196,14 +58223,14 @@ function Nbe(e, t) {
}
function Y4(e, t) {
if (e == null) return {};
- var n, r, i = Pbe(e, t);
+ var n, r, i = Fbe(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 Pbe(e, t) {
+function Fbe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58212,47 +58239,47 @@ function Pbe(e, t) {
}
return n;
}
-var X4 = 1e-5, Fbe = Math.cos(TJ(45)), Ibe = "angleAxis";
-function Lbe(e) {
- var t = qz(), n = bW(), r = (0, I.useMemo)(() => {
- var { children: t, type: r } = e, i = Y4(e, kbe), a = NY(n, "angleAxis", r);
+var X4 = 1e-5, Ibe = Math.cos(EJ(45)), Lbe = "angleAxis";
+function Rbe(e) {
+ var t = Jz(), n = xW(), r = (0, I.useMemo)(() => {
+ var { children: t, type: r } = e, i = Y4(e, Abe), a = PY(n, "angleAxis", r);
if (a != null) return J4(J4({}, i), {}, { type: a });
- }, [e, n]), i = r === Q((e) => VY(e, r?.id));
- return (0, I.useEffect)(() => r == null ? uz : (t(ube(r)), () => {
- t(dbe(r));
+ }, [e, n]), i = r === Q((e) => HY(e, r?.id));
+ return (0, I.useEffect)(() => r == null ? dz : (t(dbe(r)), () => {
+ t(fbe(r));
}), [t, r]), i ? e.children : null;
}
-var Rbe = (e, t) => {
- var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = DJ(n, r, i, e.coordinate), l = DJ(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
+var zbe = (e, t) => {
+ var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = OJ(n, r, i, e.coordinate), l = OJ(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
return {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
};
-}, zbe = (e, t) => {
- var n = Math.cos(TJ(-e.coordinate));
+}, Bbe = (e, t) => {
+ var n = Math.cos(EJ(-e.coordinate));
return n > X4 ? t === "outer" ? "start" : "end" : n < -X4 ? t === "outer" ? "end" : "start" : "middle";
-}, Bbe = (e) => {
- var t = Math.cos(TJ(-e.coordinate)), n = Math.sin(TJ(-e.coordinate));
- return Math.abs(t) <= Fbe ? n > 0 ? "start" : "end" : "middle";
}, Vbe = (e) => {
+ var t = Math.cos(EJ(-e.coordinate)), n = Math.sin(EJ(-e.coordinate));
+ return Math.abs(t) <= Ibe ? n > 0 ? "start" : "end" : "middle";
+}, Hbe = (e) => {
var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;
if (!a) return null;
- var s = J4(J4({}, WL(e)), {}, { fill: "none" }, WL(a));
+ var s = J4(J4({}, GL(e)), {}, { fill: "none" }, GL(a));
if (i === "circle") return /*#__PURE__*/ I.createElement(y4, K4({ className: "recharts-polar-angle-axis-line" }, s, {
cx: t,
cy: n,
r
}));
- var c = o.map((e) => DJ(t, n, r, e.coordinate));
+ var c = o.map((e) => OJ(t, n, r, e.coordinate));
return /*#__PURE__*/ I.createElement(_4, K4({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
-}, Hbe = (e) => {
+}, Ube = (e) => {
var { tick: t, tickProps: n, value: r } = e;
return t ? /*#__PURE__*/ I.isValidElement(t) ? /*#__PURE__*/ I.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ I.createElement(W2, K4({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
-}, Ube = (e) => {
- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = WL(e), { ref: s } = o, c = Y4(o, Abe), l = GL(t), u = J4(J4({}, c), {}, { fill: "none" }, WL(n)), d = a.map((a, o) => {
- var s = Rbe(a, e), d = zbe(a, e.orientation), f = Bbe(a), p = J4(J4(J4({}, c), {}, {
+}, Wbe = (e) => {
+ var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = GL(e), { ref: s } = o, c = Y4(o, jbe), l = KL(t), u = J4(J4({}, c), {}, { fill: "none" }, GL(n)), d = a.map((a, o) => {
+ var s = zbe(a, e), d = Bbe(a, e.orientation), f = Vbe(a), p = J4(J4(J4({}, c), {}, {
textAnchor: d,
verticalAnchor: f,
stroke: "none",
@@ -58263,28 +58290,28 @@ var Rbe = (e, t) => {
x: s.x2,
y: s.y2
});
- return /*#__PURE__*/ I.createElement(XL, K4({
+ return /*#__PURE__*/ I.createElement(ZL, K4({
className: Wm("recharts-polar-angle-axis-tick", B4(t)),
key: `tick-${a.coordinate}`
- }, vz(e, a, o)), n && /*#__PURE__*/ I.createElement("line", K4({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ I.createElement(Hbe, {
+ }, yz(e, a, o)), n && /*#__PURE__*/ I.createElement("line", K4({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ I.createElement(Ube, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
- return /*#__PURE__*/ I.createElement(XL, { className: "recharts-polar-angle-axis-ticks" }, d);
-}, Wbe = (e) => {
- var { angleAxisId: t } = e, n = Q(ZY), r = Q((e) => k4(e, "angleAxis", t)), i = IU(), a = Q((e) => Kye(e, "angleAxis", t, i));
+ return /*#__PURE__*/ I.createElement(ZL, { className: "recharts-polar-angle-axis-ticks" }, d);
+}, Gbe = (e) => {
+ var { angleAxisId: t } = e, n = Q(QY), r = Q((e) => k4(e, "angleAxis", t)), i = LU(), a = Q((e) => qye(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
var o = J4(J4(J4({}, e), {}, { scale: r }, n), {}, {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ I.createElement(n2, { zIndex: o.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: Wm("recharts-polar-angle-axis", Ibe, o.className) }, /*#__PURE__*/ I.createElement(Vbe, o), /*#__PURE__*/ I.createElement(Ube, o)));
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: o.zIndex }, /*#__PURE__*/ I.createElement(ZL, { className: Wm("recharts-polar-angle-axis", Lbe, o.className) }, /*#__PURE__*/ I.createElement(Hbe, o), /*#__PURE__*/ I.createElement(Wbe, o)));
};
function Z4(e) {
- var t = bz(e, AY);
- return /*#__PURE__*/ I.createElement(Lbe, {
+ var t = xz(e, jY);
+ return /*#__PURE__*/ I.createElement(Rbe, {
id: t.angleAxisId,
scale: t.scale,
type: t.type,
@@ -58301,12 +58328,12 @@ function Z4(e) {
ticks: t.ticks,
tick: t.tick,
domain: t.domain
- }, /*#__PURE__*/ I.createElement(Wbe, t));
+ }, /*#__PURE__*/ I.createElement(Gbe, t));
}
Z4.displayName = "PolarAngleAxis";
//#endregion
//#region node_modules/react-is/cjs/react-is.production.js
-var Gbe = /* @__PURE__ */ M(((e) => {
+var Kbe = /* @__PURE__ */ M(((e) => {
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.view_transition");
function m(e) {
if (typeof e == "object" && e) {
@@ -58335,26 +58362,26 @@ var Gbe = /* @__PURE__ */ M(((e) => {
e.isFragment = function(e) {
return m(e) === r;
};
-})), Kbe = (/* @__PURE__ */ M(((e, t) => {
- t.exports = Gbe();
+})), qbe = (/* @__PURE__ */ M(((e, t) => {
+ t.exports = Kbe();
})))(), Q4 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", $4 = null, e3 = null, t3 = (e) => {
if (e === $4 && Array.isArray(e3)) return e3;
var t = [];
return I.Children.forEach(e, (e) => {
- sz(e) || ((0, Kbe.isFragment)(e) ? t = t.concat(t3(e.props.children)) : t.push(e));
+ cz(e) || ((0, qbe.isFragment)(e) ? t = t.concat(t3(e.props.children)) : t.push(e));
}), e3 = t, $4 = e, t;
};
function n3(e, t) {
var n = [], r = [];
return r = Array.isArray(t) ? t.map((e) => Q4(e)) : [Q4(t)], t3(e).forEach((e) => {
- var t = YR(e, "type.displayName") || YR(e, "type.name");
+ var t = XR(e, "type.displayName") || XR(e, "type.name");
t && r.indexOf(t) !== -1 && n.push(e);
}), n;
}
var r3 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
-function qbe(e) {
+function Jbe(e) {
if (typeof e != "object" || !e) return !1;
if (Object.getPrototypeOf(e) === null) return !0;
if (Object.prototype.toString.call(e) !== "[object Object]") {
@@ -58367,7 +58394,7 @@ function qbe(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Trapezoid.js
-var Jbe, Ybe, Xbe, Zbe, Qbe;
+var Ybe, Xbe, Zbe, Qbe, $be;
function i3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -58382,26 +58409,26 @@ function a3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? i3(Object(n), !0).forEach(function(t) {
- $be(e, t, n[t]);
+ exe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function $be(e, t, n) {
- return (t = exe(t)) in e ? Object.defineProperty(e, t, {
+function exe(e, t, n) {
+ return (t = txe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function exe(e) {
- var t = txe(e, "string");
+function txe(e) {
+ var t = nxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function txe(e, t) {
+function nxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58424,29 +58451,29 @@ function s3(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
var c3 = (e, t, n, r, i) => {
- var a = n - r, o = ZR(Jbe ||= s3([
+ var a = n - r, o = QR(Ybe ||= s3([
"M ",
",",
""
]), e, t);
- return o += ZR(Ybe ||= s3([
+ return o += QR(Xbe ||= s3([
"L ",
",",
""
- ]), e + n, t), o += ZR(Xbe ||= s3([
+ ]), e + n, t), o += QR(Zbe ||= s3([
"L ",
",",
""
- ]), e + n - a / 2, t + i), o += ZR(Zbe ||= s3([
+ ]), e + n - a / 2, t + i), o += QR(Qbe ||= s3([
"L ",
",",
""
- ]), e + n - a / 2 - r, t + i), o += ZR(Qbe ||= s3([
+ ]), e + n - a / 2 - r, t + i), o += QR($be ||= s3([
"L ",
",",
" Z"
]), e, t), o;
-}, nxe = {
+}, rxe = {
x: 0,
y: 0,
upperWidth: 0,
@@ -58456,8 +58483,8 @@ var c3 = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, rxe = (e) => {
- var t = bz(e, nxe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, I.useRef)(null), [p, m] = (0, I.useState)(-1), h = (0, I.useRef)(i), g = (0, I.useRef)(a), _ = (0, I.useRef)(o), v = (0, I.useRef)(n), y = (0, I.useRef)(r), b = Jq(e, "trapezoid-");
+}, ixe = (e) => {
+ var t = xz(e, rxe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, I.useRef)(null), [p, m] = (0, I.useState)(-1), h = (0, I.useRef)(i), g = (0, I.useRef)(a), _ = (0, I.useRef)(o), v = (0, I.useRef)(n), y = (0, I.useRef)(r), b = Yq(e, "trapezoid-");
if ((0, I.useEffect)(() => {
if (f.current && f.current.getTotalLength) try {
var e = f.current.getTotalLength();
@@ -58465,12 +58492,12 @@ var c3 = (e, t, n, r, i) => {
} catch {}
}, []), n !== +n || r !== +r || i !== +i || a !== +a || o !== +o || i === 0 && a === 0 || o === 0) return null;
var x = Wm("recharts-trapezoid", s);
- if (!d) return /*#__PURE__*/ I.createElement("g", null, /*#__PURE__*/ I.createElement("path", o3({}, KL(t), {
+ if (!d) return /*#__PURE__*/ I.createElement("g", null, /*#__PURE__*/ I.createElement("path", o3({}, qL(t), {
className: x,
d: c3(n, r, i, a, o)
})));
- var S = h.current, C = g.current, w = _.current, T = v.current, E = y.current, D = `0px ${p === -1 ? 1 : p}px`, O = `${p}px ${p}px`, k = hq(["strokeDasharray"], l, c);
- return /*#__PURE__*/ I.createElement(qq, {
+ var S = h.current, C = g.current, w = _.current, T = v.current, E = y.current, D = `0px ${p === -1 ? 1 : p}px`, O = `${p}px ${p}px`, k = gq(["strokeDasharray"], l, c);
+ return /*#__PURE__*/ I.createElement(Jq, {
animationId: b,
key: b,
canBegin: p > 0,
@@ -58479,35 +58506,35 @@ var c3 = (e, t, n, r, i) => {
isActive: d,
begin: u
}, (e) => {
- var s = az(S, i, e), c = az(C, a, e), l = az(w, o, e), u = az(T, n, e), d = az(E, r, e);
+ var s = oz(S, i, e), c = oz(C, a, e), l = oz(w, o, e), u = oz(T, n, e), d = oz(E, r, e);
f.current && (h.current = s, g.current = c, _.current = l, v.current = u, y.current = d);
var p = e > 0 ? {
transition: k,
strokeDasharray: O
} : { strokeDasharray: D };
- return /*#__PURE__*/ I.createElement("path", o3({}, KL(t), {
+ return /*#__PURE__*/ I.createElement("path", o3({}, qL(t), {
className: x,
d: c3(u, d, s, c, l),
ref: f,
style: a3(a3({}, p), t.style)
}));
});
-}, ixe = [
+}, axe = [
"option",
"shapeType",
"activeClassName",
"inActiveClassName"
];
-function axe(e, t) {
+function oxe(e, t) {
if (e == null) return {};
- var n, r, i = oxe(e, t);
+ var n, r, i = sxe(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 oxe(e, t) {
+function sxe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58530,26 +58557,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) {
- sxe(e, t, n[t]);
+ cxe(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 sxe(e, t, n) {
- return (t = cxe(t)) in e ? Object.defineProperty(e, t, {
+function cxe(e, t, n) {
+ return (t = lxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function cxe(e) {
- var t = lxe(e, "string");
+function lxe(e) {
+ var t = uxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function lxe(e, t) {
+function uxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58559,34 +58586,34 @@ function lxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function uxe(e, t) {
+function dxe(e, t) {
return u3(u3({}, t), e);
}
-function dxe(e, t) {
+function fxe(e, t) {
return e === "symbols";
}
function d3(e) {
var { shapeType: t, elementProps: n } = e;
switch (t) {
- case "rectangle": return /*#__PURE__*/ I.createElement(vJ, n);
- case "trapezoid": return /*#__PURE__*/ I.createElement(rxe, n);
- case "sector": return /*#__PURE__*/ I.createElement(YJ, n);
+ case "rectangle": return /*#__PURE__*/ I.createElement(yJ, n);
+ case "trapezoid": return /*#__PURE__*/ I.createElement(ixe, n);
+ case "sector": return /*#__PURE__*/ I.createElement(XJ, n);
case "symbols":
- if (dxe(t, n)) return /*#__PURE__*/ I.createElement(hz, n);
+ if (fxe(t, n)) return /*#__PURE__*/ I.createElement(gz, n);
break;
- case "curve": return /*#__PURE__*/ I.createElement(XK, n);
+ case "curve": return /*#__PURE__*/ I.createElement(ZK, n);
default: return null;
}
}
-function fxe(e) {
+function pxe(e) {
return /*#__PURE__*/ (0, I.isValidElement)(e) ? e.props : e;
}
function f3(e) {
- var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = axe(e, ixe), o;
- if (/*#__PURE__*/ (0, I.isValidElement)(t)) o = /*#__PURE__*/ (0, I.cloneElement)(t, u3(u3({}, a), fxe(t)));
+ var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = oxe(e, axe), o;
+ if (/*#__PURE__*/ (0, I.isValidElement)(t)) o = /*#__PURE__*/ (0, I.cloneElement)(t, u3(u3({}, a), pxe(t)));
else if (typeof t == "function") o = t(a, a.index);
- else if (qbe(t) && typeof t != "boolean") {
- var s = uxe(t, a);
+ else if (Jbe(t) && typeof t != "boolean") {
+ var s = dxe(t, a);
o = /*#__PURE__*/ I.createElement(d3, {
shapeType: n,
elementProps: s
@@ -58598,12 +58625,12 @@ function f3(e) {
elementProps: c
});
}
- return a.isActive ? /*#__PURE__*/ I.createElement(XL, { className: r }, o) : /*#__PURE__*/ I.createElement(XL, { className: i }, o);
+ return a.isActive ? /*#__PURE__*/ I.createElement(ZL, { className: r }, o) : /*#__PURE__*/ I.createElement(ZL, { className: i }, o);
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipContext.js
var p3 = (e, t, n) => {
- var r = qz();
+ var r = Jz();
return (i, a) => (o) => {
e?.(i, a, o), r(r0({
activeIndex: String(a),
@@ -58613,14 +58640,14 @@ var p3 = (e, t, n) => {
}));
};
}, m3 = (e) => {
- var t = qz();
+ var t = Jz();
return (n, r) => (i) => {
- e?.(n, r, i), t(Zge());
+ e?.(n, r, i), t(Qge());
};
}, h3 = (e, t, n) => {
- var r = qz();
+ var r = Jz();
return (i, a) => (o) => {
- e?.(i, a, o), r(Qge({
+ e?.(i, a, o), r($ge({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
@@ -58631,9 +58658,9 @@ var p3 = (e, t, n) => {
//#endregion
//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js
function g3(e) {
- var { tooltipEntrySettings: t } = e, n = qz(), r = IU(), i = (0, I.useRef)(null);
+ var { tooltipEntrySettings: t } = e, n = Jz(), r = LU(), i = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- r || (i.current === null ? n(qge(t)) : i.current !== t && n(Jge({
+ r || (i.current === null ? n(Jge(t)) : i.current !== t && n(Yge({
prev: i.current,
next: t
})), i.current = t);
@@ -58642,15 +58669,15 @@ function g3(e) {
n,
r
]), (0, I.useLayoutEffect)(() => () => {
- i.current &&= (n(Yge(i.current)), null);
+ i.current &&= (n(Xge(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/state/SetLegendPayload.js
function _3(e) {
- var { legendPayload: t } = e, n = qz(), r = IU(), i = (0, I.useRef)(null);
+ var { legendPayload: t } = e, n = Jz(), r = LU(), i = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- r || (i.current === null ? n(SG(t)) : i.current !== t && n(CG({
+ r || (i.current === null ? n(CG(t)) : i.current !== t && n(wG({
prev: i.current,
next: t
})), i.current = t);
@@ -58659,13 +58686,13 @@ function _3(e) {
r,
t
]), (0, I.useLayoutEffect)(() => () => {
- i.current &&= (n(wG(i.current)), null);
+ i.current &&= (n(TG(i.current)), null);
}, [n]), null;
}
function v3(e) {
- var { legendPayload: t } = e, n = qz(), r = Q(gW), i = (0, I.useRef)(null);
+ var { legendPayload: t } = e, n = Jz(), r = Q(_W), i = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- (r === "centric" || r === "radial") && (i.current === null ? n(SG(t)) : i.current !== t && n(CG({
+ (r === "centric" || r === "radial") && (i.current === null ? n(CG(t)) : i.current !== t && n(wG({
prev: i.current,
next: t
})), i.current = t);
@@ -58674,27 +58701,27 @@ function v3(e) {
r,
t
]), (0, I.useLayoutEffect)(() => () => {
- i.current &&= (n(wG(i.current)), null);
+ i.current &&= (n(TG(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/util/useId.js
-var pxe = I.useId ?? (() => {
- var [e] = I.useState(() => nz("uid-"));
+var mxe = I.useId ?? (() => {
+ var [e] = I.useState(() => rz("uid-"));
return e;
});
//#endregion
//#region node_modules/recharts/es6/util/useUniqueId.js
-function mxe(e, t) {
- var n = pxe();
+function hxe(e, t) {
+ var n = mxe();
return t || (e ? `${e}-${n}` : n);
}
//#endregion
//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js
-var hxe = /*#__PURE__*/ (0, I.createContext)(void 0), y3 = (e) => {
- var { id: t, type: n, children: r } = e, i = mxe(`recharts-${n}`, t);
- return /*#__PURE__*/ I.createElement(hxe.Provider, { value: i }, r(i));
-}, b3 = GV({
+var gxe = /*#__PURE__*/ (0, I.createContext)(void 0), y3 = (e) => {
+ var { id: t, type: n, children: r } = e, i = hxe(`recharts-${n}`, t);
+ return /*#__PURE__*/ I.createElement(gxe.Provider, { value: i }, r(i));
+}, b3 = KV({
name: "graphicalItems",
initialState: {
cartesianItems: [],
@@ -58703,79 +58730,79 @@ var hxe = /*#__PURE__*/ (0, I.createContext)(void 0), y3 = (e) => {
reducers: {
addCartesianGraphicalItem: {
reducer(e, t) {
- e.cartesianItems.push(vG(t.payload));
+ e.cartesianItems.push(yG(t.payload));
},
- prepare: AV()
+ prepare: jV()
},
replaceCartesianGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = yV(e).cartesianItems.indexOf(vG(n));
- i > -1 && (e.cartesianItems[i] = vG(r));
+ var { prev: n, next: r } = t.payload, i = bV(e).cartesianItems.indexOf(yG(n));
+ i > -1 && (e.cartesianItems[i] = yG(r));
},
- prepare: AV()
+ prepare: jV()
},
removeCartesianGraphicalItem: {
reducer(e, t) {
- var n = yV(e).cartesianItems.indexOf(vG(t.payload));
+ var n = bV(e).cartesianItems.indexOf(yG(t.payload));
n > -1 && e.cartesianItems.splice(n, 1);
},
- prepare: AV()
+ prepare: jV()
},
addPolarGraphicalItem: {
reducer(e, t) {
- e.polarItems.push(vG(t.payload));
+ e.polarItems.push(yG(t.payload));
},
- prepare: AV()
+ prepare: jV()
},
removePolarGraphicalItem: {
reducer(e, t) {
- var n = yV(e).polarItems.indexOf(vG(t.payload));
+ var n = bV(e).polarItems.indexOf(yG(t.payload));
n > -1 && e.polarItems.splice(n, 1);
},
- prepare: AV()
+ prepare: jV()
},
replacePolarGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = yV(e).polarItems.indexOf(vG(n));
- i > -1 && (e.polarItems[i] = vG(r));
+ var { prev: n, next: r } = t.payload, i = bV(e).polarItems.indexOf(yG(n));
+ i > -1 && (e.polarItems[i] = yG(r));
},
- prepare: AV()
+ prepare: jV()
}
}
-}), { addCartesianGraphicalItem: gxe, replaceCartesianGraphicalItem: _xe, removeCartesianGraphicalItem: vxe, addPolarGraphicalItem: yxe, removePolarGraphicalItem: bxe, replacePolarGraphicalItem: xxe } = b3.actions, Sxe = b3.reducer, x3 = /*#__PURE__*/ (0, I.memo)((e) => {
- var t = qz(), n = (0, I.useRef)(null);
+}), { addCartesianGraphicalItem: _xe, replaceCartesianGraphicalItem: vxe, removeCartesianGraphicalItem: yxe, addPolarGraphicalItem: bxe, removePolarGraphicalItem: xxe, replacePolarGraphicalItem: Sxe } = b3.actions, Cxe = b3.reducer, x3 = /*#__PURE__*/ (0, I.memo)((e) => {
+ var t = Jz(), n = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- n.current === null ? t(gxe(e)) : n.current !== e && t(_xe({
+ n.current === null ? t(_xe(e)) : n.current !== e && t(vxe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, I.useLayoutEffect)(() => () => {
- n.current &&= (t(vxe(n.current)), null);
+ n.current &&= (t(yxe(n.current)), null);
}, [t]), null;
}), S3 = /*#__PURE__*/ (0, I.memo)((e) => {
- var t = qz(), n = (0, I.useRef)(null);
+ var t = Jz(), n = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- n.current === null ? t(yxe(e)) : n.current !== e && t(xxe({
+ n.current === null ? t(bxe(e)) : n.current !== e && t(Sxe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, I.useLayoutEffect)(() => () => {
- n.current &&= (t(bxe(n.current)), null);
+ n.current &&= (t(xxe(n.current)), null);
}, [t]), null;
});
//#endregion
//#region node_modules/es-toolkit/dist/array/last.mjs
-function Cxe(e) {
+function wxe(e) {
return e[e.length - 1];
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
-function wxe(e) {
- if (!(!Ez(e) || e.length === 0)) return Cxe(R4(e));
+function Txe(e) {
+ if (!(!Dz(e) || e.length === 0)) return wxe(R4(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
-var Txe = ["points"];
+var Exe = ["points"];
function C3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -58790,26 +58817,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) {
- Exe(e, t, n[t]);
+ Dxe(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 Exe(e, t, n) {
- return (t = Dxe(t)) in e ? Object.defineProperty(e, t, {
+function Dxe(e, t, n) {
+ return (t = Oxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Dxe(e) {
- var t = Oxe(e, "string");
+function Oxe(e) {
+ var t = kxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Oxe(e, t) {
+function kxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58828,16 +58855,16 @@ function T3() {
return e;
}, T3.apply(null, arguments);
}
-function kxe(e, t) {
+function Axe(e, t) {
if (e == null) return {};
- var n, r, i = Axe(e, t);
+ var n, r, i = jxe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Axe(e, t) {
+function jxe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58846,19 +58873,19 @@ function Axe(e, t) {
}
return n;
}
-function jxe(e) {
+function Mxe(e) {
var { option: t, dotProps: n, className: r } = e;
if (/*#__PURE__*/ (0, I.isValidElement)(t)) return /*#__PURE__*/ (0, I.cloneElement)(t, n);
if (typeof t == "function") return t(n);
- var i = Wm(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = kxe(a, Txe);
+ var i = Wm(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = Axe(a, Exe);
return /*#__PURE__*/ I.createElement(y4, T3({}, s, { className: i }));
}
-function Mxe(e, t) {
+function Nxe(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
}
function E3(e) {
- var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = kY.scatter } = e;
- if (!Mxe(t, n)) return null;
+ var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = AY.scatter } = e;
+ if (!Nxe(t, n)) return null;
var u = r3(n), d = Wue(n), f = t.map((e, r) => {
var s = w3(w3(w3({ r: 3 }, o), d), {}, {
index: r,
@@ -58869,14 +58896,14 @@ function E3(e) {
payload: e.payload,
points: t
});
- return /*#__PURE__*/ I.createElement(jxe, {
+ return /*#__PURE__*/ I.createElement(Mxe, {
key: `dot-${r}`,
option: n,
dotProps: s,
className: i
});
}), p = {};
- return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ I.createElement(n2, { zIndex: l }, /*#__PURE__*/ I.createElement(XL, T3({ className: r }, p), f));
+ return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ I.createElement(n2, { zIndex: l }, /*#__PURE__*/ I.createElement(ZL, T3({ className: r }, p), f));
}
//#endregion
//#region node_modules/recharts/es6/state/cartesianAxisSlice.js
@@ -58894,26 +58921,26 @@ function O3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? D3(Object(n), !0).forEach(function(t) {
- Nxe(e, t, n[t]);
+ Pxe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : D3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Nxe(e, t, n) {
- return (t = Pxe(t)) in e ? Object.defineProperty(e, t, {
+function Pxe(e, t, n) {
+ return (t = Fxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Pxe(e) {
- var t = Fxe(e, "string");
+function Fxe(e) {
+ var t = Ixe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Fxe(e, t) {
+function Ixe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58923,7 +58950,7 @@ function Fxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var k3 = GV({
+var k3 = KV({
name: "cartesianAxis",
initialState: {
xAxis: {},
@@ -58933,60 +58960,60 @@ var k3 = GV({
reducers: {
addXAxis: {
reducer(e, t) {
- e.xAxis[t.payload.id] = vG(t.payload);
+ e.xAxis[t.payload.id] = yG(t.payload);
},
- prepare: AV()
+ prepare: jV()
},
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] = vG(r));
+ e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = yG(r));
},
- prepare: AV()
+ prepare: jV()
},
removeXAxis: {
reducer(e, t) {
delete e.xAxis[t.payload.id];
},
- prepare: AV()
+ prepare: jV()
},
addYAxis: {
reducer(e, t) {
- e.yAxis[t.payload.id] = vG(t.payload);
+ e.yAxis[t.payload.id] = yG(t.payload);
},
- prepare: AV()
+ prepare: jV()
},
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] = vG(r));
+ e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = yG(r));
},
- prepare: AV()
+ prepare: jV()
},
removeYAxis: {
reducer(e, t) {
delete e.yAxis[t.payload.id];
},
- prepare: AV()
+ prepare: jV()
},
addZAxis: {
reducer(e, t) {
- e.zAxis[t.payload.id] = vG(t.payload);
+ e.zAxis[t.payload.id] = yG(t.payload);
},
- prepare: AV()
+ prepare: jV()
},
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] = vG(r));
+ e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = yG(r));
},
- prepare: AV()
+ prepare: jV()
},
removeZAxis: {
reducer(e, t) {
delete e.zAxis[t.payload.id];
},
- prepare: AV()
+ prepare: jV()
},
updateYAxisWidth(e, t) {
var { id: n, width: r } = t.payload, i = e.yAxis[n];
@@ -59001,15 +59028,15 @@ var k3 = GV({
}
}
}
-}), { addXAxis: Ixe, replaceXAxis: Lxe, removeXAxis: Rxe, addYAxis: zxe, replaceYAxis: Bxe, removeYAxis: Vxe, addZAxis: Hxe, replaceZAxis: Uxe, removeZAxis: Wxe, updateYAxisWidth: Gxe } = k3.actions, Kxe = k3.reducer, qxe = $([
- $([MU], (e) => ({
+}), { addXAxis: Lxe, replaceXAxis: Rxe, removeXAxis: zxe, addYAxis: Bxe, replaceYAxis: Vxe, removeYAxis: Hxe, addZAxis: Uxe, replaceZAxis: Wxe, removeZAxis: Gxe, updateYAxisWidth: Kxe } = k3.actions, qxe = k3.reducer, Jxe = $([
+ $([NU], (e) => ({
top: e.top,
bottom: e.bottom,
left: e.left,
right: e.right
})),
- hU,
- gU
+ gU,
+ _U
], (e, t, n) => {
if (!(!e || t == null || n == null)) return {
x: e.left,
@@ -59017,7 +59044,7 @@ var k3 = GV({
width: Math.max(0, t - e.left - e.right),
height: Math.max(0, n - e.top - e.bottom)
};
-}), A3 = () => Q(qxe), Jxe = () => Q(D_e);
+}), A3 = () => Q(Jxe), Yxe = () => Q(O_e);
//#endregion
//#region node_modules/recharts/es6/component/ActivePoints.js
function j3(e, t) {
@@ -59034,26 +59061,26 @@ function M3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? j3(Object(n), !0).forEach(function(t) {
- Yxe(e, t, n[t]);
+ Xxe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : j3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Yxe(e, t, n) {
- return (t = Xxe(t)) in e ? Object.defineProperty(e, t, {
+function Xxe(e, t, n) {
+ return (t = Zxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Xxe(e) {
- var t = Zxe(e, "string");
+function Zxe(e) {
+ var t = Qxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Zxe(e, t) {
+function Qxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59063,7 +59090,7 @@ function Zxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Qxe = (e) => {
+var $xe = (e) => {
var { point: t, childIndex: n, mainColor: r, activeDot: i, dataKey: a, clipPath: o } = e;
if (i === !1 || t.x == null || t.y == null) return null;
var s = M3(M3(M3({}, {
@@ -59077,17 +59104,17 @@ var Qxe = (e) => {
stroke: "#fff",
payload: t.payload,
value: t.value
- }), GL(i)), _z(i)), c = /*#__PURE__*/ (0, I.isValidElement)(i) ? /*#__PURE__*/ (0, I.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ I.createElement(y4, s);
- return /*#__PURE__*/ I.createElement(XL, {
+ }), KL(i)), vz(i)), c = /*#__PURE__*/ (0, I.isValidElement)(i) ? /*#__PURE__*/ (0, I.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ I.createElement(y4, s);
+ return /*#__PURE__*/ I.createElement(ZL, {
className: "recharts-active-dot",
clipPath: o
}, c);
};
function N3(e) {
- var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = kY.activeDot } = e, s = Q(F0), c = Jxe();
+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = AY.activeDot } = e, s = Q(F0), c = Yxe();
if (t == null || c == null) return null;
var l = t.find((e) => c.includes(e.payload));
- return sz(l) ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: o }, /*#__PURE__*/ I.createElement(Qxe, {
+ return cz(l) ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: o }, /*#__PURE__*/ I.createElement($xe, {
point: l,
childIndex: Number(s),
mainColor: n,
@@ -59112,26 +59139,26 @@ function F3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? P3(Object(n), !0).forEach(function(t) {
- $xe(e, t, n[t]);
+ eSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function $xe(e, t, n) {
- return (t = eSe(t)) in e ? Object.defineProperty(e, t, {
+function eSe(e, t, n) {
+ return (t = tSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function eSe(e) {
- var t = tSe(e, "string");
+function tSe(e) {
+ var t = nSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function tSe(e, t) {
+function nSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59141,16 +59168,16 @@ function tSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var I3 = (e, t) => k4(e, "radiusAxis", t), nSe = $([I3], (e) => {
+var I3 = (e, t) => k4(e, "radiusAxis", t), rSe = $([I3], (e) => {
if (e != null) return { scale: e };
-}), rSe = $([HY, I3], (e, t) => {
+}), iSe = $([UY, I3], (e, t) => {
if (e != null && t != null) return F3(F3({}, e), {}, { scale: t });
-}), iSe = (e, t, n, r) => j4(e, "radiusAxis", t, r), L3 = (e, t, n) => VY(e, n), R3 = (e, t, n) => k4(e, "angleAxis", n), aSe = $([L3, R3], (e, t) => {
+}), aSe = (e, t, n, r) => j4(e, "radiusAxis", t, r), L3 = (e, t, n) => HY(e, n), R3 = (e, t, n) => k4(e, "angleAxis", n), oSe = $([L3, R3], (e, t) => {
if (e != null && t != null) return F3(F3({}, e), {}, { scale: t });
-}), oSe = (e, t, n, r) => j4(e, "angleAxis", n, r), sSe = $([
+}), sSe = (e, t, n, r) => j4(e, "angleAxis", n, r), cSe = $([
L3,
R3,
- ZY
+ QY
], (e, t, n) => {
if (n != null && t != null) return {
scale: t,
@@ -59159,30 +59186,30 @@ var I3 = (e, t) => k4(e, "radiusAxis", t), nSe = $([I3], (e) => {
cx: n.cx,
cy: n.cy
};
-}), cSe = (e, t, n, r, i) => i, lSe = $([
- gW,
- rSe,
+}), lSe = (e, t, n, r, i) => i, uSe = $([
+ _W,
iSe,
aSe,
- oSe
-], (e, t, n, r, i) => YH(e, "radiusAxis") ? uU(t, n, !1) : uU(r, i, !1)), uSe = $([
- nSe,
- sSe,
- tY,
- $([b4, cSe], (e, t) => {
+ oSe,
+ sSe
+], (e, t, n, r, i) => XH(e, "radiusAxis") ? dU(t, n, !1) : dU(r, i, !1)), dSe = $([
+ rSe,
+ cSe,
+ nY,
+ $([b4, lSe], (e, t) => {
if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;
}),
- lSe
+ uSe
], (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 bSe({
+ if (e != null && t != null && a != null && i != null && r != null) return xSe({
radiusAxis: e,
angleAxis: t,
displayedData: a.slice(o, s + 1),
dataKey: r,
bandSize: i
});
-}), dSe = ["id"];
+}), fSe = ["id"];
function z3() {
return z3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -59206,26 +59233,26 @@ function V3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? B3(Object(n), !0).forEach(function(t) {
- fSe(e, t, n[t]);
+ pSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fSe(e, t, n) {
- return (t = pSe(t)) in e ? Object.defineProperty(e, t, {
+function pSe(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 pSe(e) {
- var t = mSe(e, "string");
+function mSe(e) {
+ var t = hSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mSe(e, t) {
+function hSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59235,16 +59262,16 @@ function mSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function hSe(e, t) {
+function gSe(e, t) {
if (e == null) return {};
- var n, r, i = gSe(e, t);
+ var n, r, i = _Se(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 gSe(e, t) {
+function _Se(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59256,27 +59283,27 @@ function gSe(e, t) {
function H3(e, t) {
return e && e !== "none" ? e : t;
}
-var _Se = (e) => {
+var vSe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
color: H3(r, i),
- value: fU(n, t),
+ value: pU(n, t),
payload: e
}];
-}, vSe = /*#__PURE__*/ I.memo((e) => {
+}, ySe = /*#__PURE__*/ I.memo((e) => {
var { dataKey: t, stroke: n, strokeWidth: r, fill: i, name: a, hide: o, tooltipType: s, id: c } = e, l = {
dataDefinedOnItem: void 0,
- getPosition: uz,
+ getPosition: dz,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
nameKey: void 0,
dataKey: t,
- name: fU(a, t),
+ name: pU(a, t),
hide: o,
type: s,
color: H3(n, i),
@@ -59286,8 +59313,8 @@ var _Se = (e) => {
};
return /*#__PURE__*/ I.createElement(g3, { tooltipEntrySettings: l });
});
-function ySe(e) {
- var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = WL(hSe(n, dSe));
+function bSe(e) {
+ var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = GL(gSe(n, fSe));
return /*#__PURE__*/ I.createElement(E3, {
points: t,
dot: r,
@@ -59297,11 +59324,11 @@ function ySe(e) {
baseProps: o
});
}
-function bSe(e) {
+function xSe(e) {
var { radiusAxis: t, angleAxis: n, displayedData: r, dataKey: i, bandSize: a } = e, { cx: o, cy: s } = n, c = !1, l = [], u = n.type === "number" ? 0 : a ?? 0;
r.forEach((e, r) => {
- var a = qH(e, n.dataKey, r), d = qH(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? wxe(d) : d, m = sz(p) ? 0 : t.scale.map(p) ?? 0;
- Array.isArray(d) && d.length >= 2 && (c = !0), l.push(V3(V3({}, DJ(o, s, m, f)), {}, {
+ var a = JH(e, n.dataKey, r), d = JH(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? Txe(d) : d, m = cz(p) ? 0 : t.scale.map(p) ?? 0;
+ Array.isArray(d) && d.length >= 2 && (c = !0), l.push(V3(V3({}, OJ(o, s, m, f)), {}, {
name: a,
value: d,
cx: o,
@@ -59314,8 +59341,8 @@ function bSe(e) {
var d = [];
return c && l.forEach((e) => {
if (Array.isArray(e.value)) {
- var n = e.value[0], r = sz(n) ? 0 : t.scale.map(n) ?? 0;
- d.push(V3(V3({}, e), {}, { radius: r }, DJ(o, s, r, e.angle)));
+ var n = e.value[0], r = cz(n) ? 0 : t.scale.map(n) ?? 0;
+ d.push(V3(V3({}, e), {}, { radius: r }, OJ(o, s, r, e.angle)));
} else d.push(e);
}), {
points: l,
@@ -59323,7 +59350,7 @@ function bSe(e) {
baseLinePoints: d
};
}
-function xSe(e) {
+function SSe(e) {
var { showLabels: t, points: n, children: r } = e, i = n.map((e) => {
var t = {
x: e.x,
@@ -59343,10 +59370,10 @@ function xSe(e) {
});
return /*#__PURE__*/ I.createElement(u4, { value: t ? i : void 0 }, r);
}
-function SSe(e) {
+function CSe(e) {
var { points: t, baseLinePoints: n, props: r } = e;
if (t == null) return null;
- var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ I.isValidElement(i) ? /*#__PURE__*/ I.cloneElement(i, V3(V3({}, r), {}, { points: t })) : typeof i == "function" ? i(V3(V3({}, r), {}, { points: t })) : /*#__PURE__*/ I.createElement(_4, z3({}, KL(r), {
+ var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ I.isValidElement(i) ? /*#__PURE__*/ I.cloneElement(i, V3(V3({}, r), {}, { points: t })) : typeof i == "function" ? i(V3(V3({}, r), {}, { points: t })) : /*#__PURE__*/ I.createElement(_4, z3({}, qL(r), {
onMouseEnter: (e) => {
var { onMouseEnter: t } = r;
t && t(r, e);
@@ -59359,7 +59386,7 @@ function SSe(e) {
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ I.createElement(XL, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ I.createElement(ySe, {
+ return /*#__PURE__*/ I.createElement(ZL, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ I.createElement(bSe, {
props: r,
points: t
}));
@@ -59367,23 +59394,23 @@ function SSe(e) {
var U3 = (e, t, n) => (r, i) => {
var a = e && e[Math.floor(i * t)];
return a ? V3(V3({}, r), {}, {
- x: az(a.x, r.x, n),
- y: az(a.y, r.y, n)
+ x: oz(a.x, r.x, n),
+ y: oz(a.y, r.y, n)
}) : V3(V3({}, r), {}, {
- x: az(r.cx, r.x, n),
- y: az(r.cy, r.y, n)
+ x: oz(r.cx, r.x, n),
+ y: oz(r.cy, r.y, n)
});
};
-function CSe(e) {
- var { props: t, previousPointsRef: n, previousBaseLinePointsRef: r } = e, { points: i, baseLinePoints: a, isAnimationActive: o, animationBegin: s, animationDuration: c, animationEasing: l, onAnimationEnd: u, onAnimationStart: d } = t, f = n.current, p = r.current, m = f ? f.length / i.length : 1, h = p ? p.length / a.length : 1, g = Jq(t, "recharts-radar-"), [_, v] = (0, I.useState)(!1), y = !_, b = (0, I.useCallback)(() => {
+function wSe(e) {
+ var { props: t, previousPointsRef: n, previousBaseLinePointsRef: r } = e, { points: i, baseLinePoints: a, isAnimationActive: o, animationBegin: s, animationDuration: c, animationEasing: l, onAnimationEnd: u, onAnimationStart: d } = t, f = n.current, p = r.current, m = f ? f.length / i.length : 1, h = p ? p.length / a.length : 1, g = Yq(t, "recharts-radar-"), [_, v] = (0, I.useState)(!1), y = !_, b = (0, I.useCallback)(() => {
typeof u == "function" && u(), v(!1);
}, [u]), x = (0, I.useCallback)(() => {
typeof d == "function" && d(), v(!0);
}, [d]);
- return /*#__PURE__*/ I.createElement(xSe, {
+ return /*#__PURE__*/ I.createElement(SSe, {
showLabels: y,
points: i
- }, /*#__PURE__*/ I.createElement(qq, {
+ }, /*#__PURE__*/ I.createElement(Jq, {
animationId: g,
begin: s,
duration: c,
@@ -59394,22 +59421,22 @@ function CSe(e) {
onAnimationStart: x
}, (e) => {
var o = e === 1 ? i : i.map(U3(f, m, e)), s = e === 1 ? a : a?.map(U3(p, h, e));
- return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ I.createElement(SSe, {
+ return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ I.createElement(CSe, {
points: o,
baseLinePoints: s,
props: t
});
}), /*#__PURE__*/ I.createElement(p4, { label: t.label }), t.children);
}
-function wSe(e) {
+function TSe(e) {
var t = (0, I.useRef)(void 0), n = (0, I.useRef)(void 0);
- return /*#__PURE__*/ I.createElement(CSe, {
+ return /*#__PURE__*/ I.createElement(wSe, {
props: e,
previousPointsRef: t,
previousBaseLinePointsRef: n
});
}
-var TSe = {
+var ESe = {
activeDot: !0,
angleAxisId: 0,
animationBegin: 0,
@@ -59421,29 +59448,29 @@ var TSe = {
label: !1,
legendType: "rect",
radiusAxisId: 0,
- zIndex: kY.area
+ zIndex: AY.area
};
-function ESe(e) {
+function DSe(e) {
var { hide: t, className: n, points: r } = e;
if (t) return null;
var i = Wm("recharts-radar", n);
- return /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: i }, /*#__PURE__*/ I.createElement(wSe, e)), /*#__PURE__*/ I.createElement(N3, {
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(ZL, { className: i }, /*#__PURE__*/ I.createElement(TSe, e)), /*#__PURE__*/ I.createElement(N3, {
points: r,
mainColor: H3(e.stroke, e.fill),
itemDataKey: e.dataKey,
activeDot: e.activeDot
}));
}
-function DSe(e) {
- var t = IU(), n = Q((n) => uSe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
- return n?.points == null ? null : /*#__PURE__*/ I.createElement(ESe, z3({}, e, {
+function OSe(e) {
+ var t = LU(), n = Q((n) => dSe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
+ return n?.points == null ? null : /*#__PURE__*/ I.createElement(DSe, z3({}, e, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
isRange: n?.isRange
}));
}
function W3(e) {
- var t = bz(e, TSe);
+ var t = xz(e, ESe);
return /*#__PURE__*/ I.createElement(y3, {
id: t.id,
type: "radar"
@@ -59455,7 +59482,7 @@ function W3(e) {
hide: t.hide,
angleAxisId: t.angleAxisId,
radiusAxisId: t.radiusAxisId
- }), /*#__PURE__*/ I.createElement(v3, { legendPayload: _Se(t) }), /*#__PURE__*/ I.createElement(vSe, {
+ }), /*#__PURE__*/ I.createElement(v3, { legendPayload: vSe(t) }), /*#__PURE__*/ I.createElement(ySe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -59464,7 +59491,7 @@ function W3(e) {
hide: t.hide,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ I.createElement(DSe, z3({}, t, { id: e }))));
+ }), /*#__PURE__*/ I.createElement(OSe, z3({}, t, { id: e }))));
}
W3.displayName = "Radar";
//#endregion
@@ -59488,9 +59515,9 @@ function q3(e) {
//#region node_modules/recharts/es6/state/selectors/combiners/combineBarSizeList.js
var J3 = (e, t, n) => {
var r = n ?? e;
- if (!sz(r)) return rz(r, t, 0);
+ if (!cz(r)) return iz(r, t, 0);
}, Y3 = (e, t, n) => {
- var r = {}, i = e.filter(nX), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
+ var r = {}, i = e.filter(rX), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
var n = e[t.stackId];
return n ??= [], n.push(t), e[t.stackId] = n, e;
}, r), s = Object.entries(o).map((e) => {
@@ -59523,26 +59550,26 @@ function Z3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? X3(Object(n), !0).forEach(function(t) {
- OSe(e, t, n[t]);
+ kSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function OSe(e, t, n) {
- return (t = kSe(t)) in e ? Object.defineProperty(e, t, {
+function kSe(e, t, n) {
+ return (t = ASe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function kSe(e) {
- var t = ASe(e, "string");
+function ASe(e) {
+ var t = jSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ASe(e, t) {
+function jSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59552,11 +59579,11 @@ function ASe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function jSe(e, t, n, r, i) {
+function MSe(e, t, n, r, i) {
var a = r.length;
if (!(a < 1)) {
- var o = rz(e, n, 0, !0), s, c = [];
- if (BH(r[0]?.barSize)) {
+ var o = iz(e, n, 0, !0), s, c = [];
+ if (VH(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 = {
@@ -59575,11 +59602,11 @@ function jSe(e, t, n, r, i) {
return f = n.position, r;
}, c);
} else {
- var p = rz(t, n, 0, !0);
+ var p = iz(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 = BH(i) ? Math.min(m, i) : m;
+ var h = VH(i) ? Math.min(m, i) : m;
s = r.reduce((e, t, n) => [...e, {
stackId: t.stackId,
dataKeys: t.dataKeys,
@@ -59593,10 +59620,10 @@ function jSe(e, t, n, r, i) {
}
}
var Q3 = (e, t, n, r, i, a, o) => {
- var s = sz(o) ? t : o, c = jSe(n, r, i === a ? a : i, e, s);
+ var s = cz(o) ? t : o, c = MSe(n, r, i === a ? a : i, e, s);
return i !== a && c != null && (c = c.map((e) => Z3(Z3({}, e), {}, { position: Z3(Z3({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
}, $3 = (e, t) => {
- var n = eX(t);
+ var n = tX(t);
if (!(!e || n == null || t == null)) {
var { stackId: r } = t;
if (r != null) {
@@ -59629,26 +59656,26 @@ function n6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? t6(Object(n), !0).forEach(function(t) {
- MSe(e, t, n[t]);
+ NSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : t6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function MSe(e, t, n) {
- return (t = NSe(t)) in e ? Object.defineProperty(e, t, {
+function NSe(e, t, n) {
+ return (t = PSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function NSe(e) {
- var t = PSe(e, "string");
+function PSe(e) {
+ var t = FSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function PSe(e, t) {
+function FSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59658,81 +59685,81 @@ function PSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var r6 = $([(e, t) => HY(e, t), (e, t) => k4(e, "radiusAxis", t)], (e, t) => {
+var r6 = $([(e, t) => UY(e, t), (e, t) => k4(e, "radiusAxis", t)], (e, t) => {
if (e != null && t != null) return n6(n6({}, e), {}, { scale: t });
-}), i6 = (e, t) => qye(e, "radiusAxis", t, !1), a6 = $([(e, t, n) => VY(e, n), (e, t, n) => k4(e, "angleAxis", n)], (e, t) => {
+}), i6 = (e, t) => Jye(e, "radiusAxis", t, !1), a6 = $([(e, t, n) => HY(e, n), (e, t, n) => k4(e, "angleAxis", n)], (e, t) => {
if (e != null && t != null) return n6(n6({}, e), {}, { scale: t });
}), o6 = (e, t, n) => j4(e, "angleAxis", n, !1), s6 = $([b4, (e, t, n, r) => r], (e, t) => {
if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;
}), c6 = $([
- gW,
+ _W,
r6,
i6,
a6,
o6
-], (e, t, n, r, i) => YH(e, "radiusAxis") ? uU(t, n, !1) : uU(r, i, !1)), FSe = $([
+], (e, t, n, r, i) => XH(e, "radiusAxis") ? dU(t, n, !1) : dU(r, i, !1)), ISe = $([
a6,
r6,
- gW
+ _W
], (e, t, n) => {
var r = n === "radial" ? e : t;
- if (r != null && r.scale != null) return iU({ numericAxis: r });
-}), ISe = (e, t, n, r, i) => i, LSe = (e, t, n, r, i) => n, RSe = (e, t, n, r, i) => t, l6 = (e, t, n, r, i) => r.maxBarSize, u6 = (e) => e.type === "radialBar", zSe = $([$([
+ if (r != null && r.scale != null) return aU({ numericAxis: r });
+}), LSe = (e, t, n, r, i) => i, RSe = (e, t, n, r, i) => n, zSe = (e, t, n, r, i) => t, l6 = (e, t, n, r, i) => r.maxBarSize, u6 = (e) => e.type === "radialBar", BSe = $([$([
$([
$([
- gW,
+ _W,
b4,
- LSe,
- RSe
+ RSe,
+ zSe
], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(u6)),
- xY,
+ SY,
() => void 0
], Y3),
- vY,
yY,
bY,
+ xY,
$([
- gW,
- vY,
+ _W,
+ yY,
a6,
o6,
r6,
i6,
l6
], (e, t, n, r, i, a, o) => {
- var s = sz(o) ? t : o;
- return e === "centric" ? uU(n, r, !0) ?? s ?? 0 : uU(i, a, !0) ?? s ?? 0;
+ var s = cz(o) ? t : o;
+ return e === "centric" ? dU(n, r, !0) ?? s ?? 0 : dU(i, a, !0) ?? s ?? 0;
}),
c6,
l6
-], Q3), s6], e6), d6 = $([x4], (e) => e.filter(u6).filter(nX)), f6 = $([
+], Q3), s6], e6), d6 = $([x4], (e) => e.filter(u6).filter(rX)), f6 = $([
$([
d6,
- tY,
+ nY,
n1
- ], tX),
+ ], nX),
d6,
- SY,
- CY
-], i1), BSe = $([
+ CY,
+ wY
+], i1), VSe = $([
a6,
o6,
r6,
i6,
- eY,
+ tY,
s6,
c6,
- gW,
- FSe,
- ZY,
+ _W,
ISe,
- zSe,
- $([(e, t, n) => gW(e) === "centric" ? f6(e, "radiusAxis", t) : f6(e, "angleAxis", n), s6], $3)
+ QY,
+ LSe,
+ BSe,
+ $([(e, t, n) => _W(e) === "centric" ? f6(e, "radiusAxis", t) : f6(e, "angleAxis", n), s6], $3)
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var { chartData: p, dataStartIndex: m, dataEndIndex: h } = i;
if (a == null || n == null || e == null || p == null || o == null || d == null || s !== "centric" && s !== "radial" || r == null || l == null) return [];
var { dataKey: g, minPointSize: _ } = a, { cx: v, cy: y, startAngle: b, endAngle: x } = l;
- return rCe({
+ return iCe({
angleAxis: e,
angleAxisTicks: t,
bandSize: o,
@@ -59753,7 +59780,7 @@ var r6 = $([(e, t) => HY(e, t), (e, t) => k4(e, "radiusAxis", t)], (e, t) => {
stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,
startAngle: b
});
-}), VSe = $([tY, (e, t) => t], (e, t) => {
+}), HSe = $([nY, (e, t) => t], (e, t) => {
var { chartData: n, dataStartIndex: r, dataEndIndex: i } = e;
if (n == null) return [];
var a = n.slice(r, i + 1);
@@ -59767,20 +59794,20 @@ var r6 = $([(e, t) => HY(e, t), (e, t) => k4(e, "radiusAxis", t)], (e, t) => {
//#endregion
//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.js
function p6(e, t) {
- return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && BH(e.zIndex) ? e.zIndex : t;
+ return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && VH(e.zIndex) ? e.zIndex : t;
}
//#endregion
//#region node_modules/recharts/es6/polar/RadialBar.js
-var HSe = [
+var USe = [
"shape",
"activeShape",
"cornerRadius",
"id"
-], USe = [
+], WSe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
-], WSe = ["value", "background"];
+], GSe = ["value", "background"];
function m6() {
return m6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -59804,26 +59831,26 @@ function g6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? h6(Object(n), !0).forEach(function(t) {
- GSe(e, t, n[t]);
+ KSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function GSe(e, t, n) {
- return (t = KSe(t)) in e ? Object.defineProperty(e, t, {
+function KSe(e, t, n) {
+ return (t = qSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function KSe(e) {
- var t = qSe(e, "string");
+function qSe(e) {
+ var t = JSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function qSe(e, t) {
+function JSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59835,14 +59862,14 @@ function qSe(e, t) {
}
function _6(e, t) {
if (e == null) return {};
- var n, r, i = JSe(e, t);
+ var n, r, i = YSe(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 JSe(e, t) {
+function YSe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59852,7 +59879,7 @@ function JSe(e, t) {
return n;
}
var v6 = [];
-function YSe(e) {
+function XSe(e) {
var { showLabels: t, sectors: n, children: r } = e, i = n.map((e) => ({
value: e.value,
payload: e.payload,
@@ -59869,15 +59896,15 @@ function YSe(e) {
},
fill: e.fill
}));
- return /*#__PURE__*/ I.createElement(Fye, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ I.createElement(Iye, { value: t ? i : void 0 }, r);
}
-function XSe(e) {
- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = _6(n, HSe), l = WL(c), u = Q(F0), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = _6(n, USe), h = p3(d, n.dataKey, s), g = m3(p), _ = h3(f, n.dataKey, s);
- return t == null ? null : /*#__PURE__*/ I.createElement(YSe, {
+function ZSe(e) {
+ var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = _6(n, USe), l = GL(c), u = Q(F0), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = _6(n, WSe), h = p3(d, n.dataKey, s), g = m3(p), _ = h3(f, n.dataKey, s);
+ return t == null ? null : /*#__PURE__*/ I.createElement(XSe, {
showLabels: r,
sectors: t
}, t.map((e, t) => {
- var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = g6(g6(g6(g6({}, l), {}, { cornerRadius: K3(o) }, e), vz(m, e, t)), {}, {
+ var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = g6(g6(g6(g6({}, l), {}, { cornerRadius: K3(o) }, e), yz(m, e, t)), {}, {
onMouseEnter: r,
onMouseLeave: s,
onClick: d,
@@ -59889,18 +59916,18 @@ function XSe(e) {
index: t
});
return n ? /*#__PURE__*/ I.createElement(n2, {
- zIndex: kY.activeBar,
+ zIndex: AY.activeBar,
key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`
}, /*#__PURE__*/ I.createElement(q3, f)) : /*#__PURE__*/ I.createElement(q3, m6({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
}), /*#__PURE__*/ I.createElement(p4, { label: n.label }), n.children);
}
-function ZSe(e) {
- var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = Jq(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, I.useState)(!1), m = (0, I.useCallback)(() => {
+function QSe(e) {
+ var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = Yq(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, I.useState)(!1), m = (0, I.useCallback)(() => {
typeof c == "function" && c(), p(!1);
}, [c]), h = (0, I.useCallback)(() => {
typeof l == "function" && l(), p(!0);
}, [l]);
- return /*#__PURE__*/ I.createElement(qq, {
+ return /*#__PURE__*/ I.createElement(Jq, {
animationId: u,
begin: a,
duration: o,
@@ -59913,34 +59940,34 @@ function ZSe(e) {
var i = e === 1 ? r : (r ?? v6).map((t, n) => {
var r = d && d[n];
if (r) return g6(g6({}, t), {}, {
- startAngle: az(r.startAngle, t.startAngle, e),
- endAngle: az(r.endAngle, t.endAngle, e)
+ startAngle: oz(r.startAngle, t.startAngle, e),
+ endAngle: oz(r.endAngle, t.endAngle, e)
});
var { endAngle: i, startAngle: a } = t;
- return g6(g6({}, t), {}, { endAngle: az(a, i, e) });
+ return g6(g6({}, t), {}, { endAngle: oz(a, i, e) });
});
- return e > 0 && (n.current = i ?? null), /*#__PURE__*/ I.createElement(XSe, {
+ return e > 0 && (n.current = i ?? null), /*#__PURE__*/ I.createElement(ZSe, {
sectors: i ?? v6,
allOtherRadialBarProps: t,
showLabels: !f
});
});
}
-function QSe(e) {
+function $Se(e) {
var t = (0, I.useRef)(null);
- return /*#__PURE__*/ I.createElement(ZSe, {
+ return /*#__PURE__*/ I.createElement(QSe, {
props: e,
previousSectorsRef: t
});
}
-function $Se(e) {
- var t = Q((t) => VSe(t, e.legendType));
+function eCe(e) {
+ var t = Q((t) => HSe(t, e.legendType));
return /*#__PURE__*/ I.createElement(v3, { legendPayload: t ?? [] });
}
-var eCe = /*#__PURE__*/ I.memo((e) => {
+var tCe = /*#__PURE__*/ I.memo((e) => {
var { dataKey: t, sectors: n, stroke: r, strokeWidth: i, name: a, hide: o, fill: s, tooltipType: c, id: l } = e, u = {
dataDefinedOnItem: n,
- getPosition: uz,
+ getPosition: dz,
settings: {
graphicalItemId: l,
stroke: r,
@@ -59948,7 +59975,7 @@ var eCe = /*#__PURE__*/ I.memo((e) => {
fill: s,
nameKey: void 0,
dataKey: t,
- name: fU(a, t),
+ name: pU(a, t),
hide: o,
type: c,
color: s,
@@ -59956,14 +59983,14 @@ var eCe = /*#__PURE__*/ I.memo((e) => {
}
};
return /*#__PURE__*/ I.createElement(g3, { tooltipEntrySettings: u });
-}), tCe = class extends I.PureComponent {
+}), nCe = class extends I.PureComponent {
renderBackground(e) {
if (e == null) return null;
- var { cornerRadius: t } = this.props, n = GL(this.props.background);
- return /*#__PURE__*/ I.createElement(n2, { zIndex: p6(this.props.background, kY.barBackground) }, e.map((e, r) => {
- var { value: i, background: a } = e, o = _6(e, WSe);
+ var { cornerRadius: t } = this.props, n = KL(this.props.background);
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: p6(this.props.background, AY.barBackground) }, e.map((e, r) => {
+ var { value: i, background: a } = e, o = _6(e, GSe);
if (!a) return null;
- var s = g6(g6(g6(g6(g6({ cornerRadius: K3(t) }, o), {}, { fill: "#eee" }, a), n), vz(this.props, e, r)), {}, {
+ var s = g6(g6(g6(g6(g6({ cornerRadius: K3(t) }, o), {}, { fill: "#eee" }, a), n), yz(this.props, e, r)), {}, {
index: r,
className: Wm("recharts-radial-bar-background-sector", String(n?.className)),
option: a,
@@ -59976,17 +60003,17 @@ var eCe = /*#__PURE__*/ I.memo((e) => {
var { hide: e, sectors: t, className: n, background: r } = this.props;
if (e) return null;
var i = Wm("recharts-area", n);
- return /*#__PURE__*/ I.createElement(n2, { zIndex: this.props.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: i }, r && /*#__PURE__*/ I.createElement(XL, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ I.createElement(XL, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ I.createElement(QSe, this.props))));
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: this.props.zIndex }, /*#__PURE__*/ I.createElement(ZL, { className: i }, r && /*#__PURE__*/ I.createElement(ZL, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ I.createElement(ZL, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ I.createElement($Se, this.props))));
}
};
-function nCe(e) {
+function rCe(e) {
var t = I.useMemo(() => n3(e.children, y2), [e.children]), n = I.useMemo(() => ({
data: void 0,
hide: !1,
id: e.id,
dataKey: e.dataKey,
minPointSize: e.minPointSize,
- stackId: tU(e.stackId),
+ stackId: nU(e.stackId),
maxBarSize: e.maxBarSize,
barSize: e.barSize,
type: "radialBar",
@@ -60001,8 +60028,8 @@ function nCe(e) {
e.barSize,
e.angleAxisId,
e.radiusAxisId
- ]), r = Q((r) => BSe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? v6;
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(eCe, {
+ ]), r = Q((r) => VSe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? v6;
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(tCe, {
dataKey: e.dataKey,
sectors: r,
stroke: e.stroke,
@@ -60012,7 +60039,7 @@ function nCe(e) {
fill: e.fill,
tooltipType: e.tooltipType,
id: e.id
- }), /*#__PURE__*/ I.createElement(tCe, m6({}, e, { sectors: r })));
+ }), /*#__PURE__*/ I.createElement(nCe, m6({}, e, { sectors: r })));
}
var y6 = {
angleAxisId: 0,
@@ -60029,14 +60056,14 @@ var y6 = {
legendType: "rect",
minPointSize: 0,
radiusAxisId: 0,
- zIndex: kY.bar
+ zIndex: AY.bar
};
-function rCe(e) {
+function iCe(e) {
var { displayedData: t, stackedData: n, dataStartIndex: r, stackedDomain: i, dataKey: a, baseValue: o, layout: s, radiusAxis: c, radiusAxisTicks: l, bandSize: u, pos: d, angleAxis: f, minPointSize: p, cx: m, cy: h, angleAxisTicks: g, cells: _, startAngle: v, endAngle: y } = e;
return g == null || l == null ? v6 : (t ?? []).map((e, t) => {
var b, x, S, C, w, T;
- if (n ? b = QH(n[r + t], i) : (b = qH(e, a), Array.isArray(b) || (b = [o, b])), s === "radial") {
- if (C = f.scale.map(b[0]) ?? v, w = f.scale.map(b[1]) ?? y, x = rU({
+ if (n ? b = $H(n[r + t], i) : (b = JH(e, a), Array.isArray(b) || (b = [o, b])), s === "radial") {
+ if (C = f.scale.map(b[0]) ?? v, w = f.scale.map(b[1]) ?? y, x = iU({
axis: c,
ticks: l,
bandSize: u,
@@ -60047,7 +60074,7 @@ function rCe(e) {
S = x + d.size;
var E = w - C;
if (Math.abs(p) > 0 && Math.abs(E) < Math.abs(p)) {
- var D = QR(E || p) * (Math.abs(p) - Math.abs(E));
+ var D = $R(E || p) * (Math.abs(p) - Math.abs(E));
w += D;
}
T = { background: {
@@ -60059,7 +60086,7 @@ function rCe(e) {
endAngle: y
} };
}
- } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = rU({
+ } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = iU({
axis: f,
ticks: g,
bandSize: u,
@@ -60070,7 +60097,7 @@ function rCe(e) {
w = C + d.size;
var O = S - x;
if (Math.abs(p) > 0 && Math.abs(O) < Math.abs(p)) {
- var k = QR(O || p) * (Math.abs(p) - Math.abs(O));
+ var k = $R(O || p) * (Math.abs(p) - Math.abs(O));
S += k;
}
}
@@ -60087,7 +60114,7 @@ function rCe(e) {
});
}
function b6(e) {
- var t = bz(e, y6);
+ var t = xz(e, y6);
return /*#__PURE__*/ I.createElement(y3, {
id: t.id,
type: "radialBar"
@@ -60099,17 +60126,17 @@ function b6(e) {
hide: t.hide ?? y6.hide,
angleAxisId: t.angleAxisId ?? y6.angleAxisId,
radiusAxisId: t.radiusAxisId ?? y6.radiusAxisId,
- stackId: tU(t.stackId),
+ stackId: nU(t.stackId),
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
- }), /*#__PURE__*/ I.createElement($Se, t), /*#__PURE__*/ I.createElement(nCe, m6({}, t, { id: e }))));
+ }), /*#__PURE__*/ I.createElement(eCe, t), /*#__PURE__*/ I.createElement(rCe, m6({}, t, { id: e }))));
}
b6.displayName = "RadialBar";
//#endregion
//#region node_modules/recharts/es6/context/chartDataContext.js
var x6 = (e) => {
- var { chartData: t } = e, n = qz(), r = IU();
+ var { chartData: t } = e, n = Jz(), r = LU();
return (0, I.useEffect)(() => r ? () => {} : (n(p2(t)), () => {
n(p2(void 0));
}), [
@@ -60128,13 +60155,13 @@ var x6 = (e) => {
bottom: 0,
left: 0
}
-}, C6 = GV({
+}, C6 = KV({
name: "brush",
initialState: S6,
reducers: { setBrushSettings(e, t) {
return t.payload == null ? S6 : t.payload;
} }
-}), { setBrushSettings: iCe } = C6.actions, aCe = C6.reducer, oCe = (e, t) => {
+}), { setBrushSettings: aCe } = C6.actions, oCe = C6.reducer, sCe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return {
x: Math.min(n, i),
@@ -60142,9 +60169,9 @@ var x6 = (e) => {
width: Math.abs(i - n),
height: Math.abs(a - r)
};
-}, sCe = (e) => {
+}, cCe = (e) => {
var { x1: t, y1: n, x2: r, y2: i } = e;
- return oCe({
+ return sCe({
x: t,
y: n
}, {
@@ -60152,13 +60179,13 @@ var x6 = (e) => {
y: i
});
};
-function cCe(e) {
+function lCe(e) {
return (e % 180 + 180) % 180;
}
-var lCe = function(e) {
- var { width: t, height: n } = e, r = cCe(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);
+var uCe = function(e) {
+ var { width: t, height: n } = e, r = lCe(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);
return Math.abs(a);
-}, w6 = GV({
+}, w6 = KV({
name: "referenceElements",
initialState: {
dots: [],
@@ -60170,26 +60197,26 @@ var lCe = function(e) {
e.dots.push(t.payload);
},
removeDot: (e, t) => {
- var n = yV(e).dots.findIndex((e) => e === t.payload);
+ var n = bV(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 = yV(e).areas.findIndex((e) => e === t.payload);
+ var n = bV(e).areas.findIndex((e) => e === t.payload);
n !== -1 && e.areas.splice(n, 1);
},
addLine: (e, t) => {
- e.lines.push(vG(t.payload));
+ e.lines.push(yG(t.payload));
},
removeLine: (e, t) => {
- var n = yV(e).lines.findIndex((e) => e === t.payload);
+ var n = bV(e).lines.findIndex((e) => e === t.payload);
n !== -1 && e.lines.splice(n, 1);
}
}
-}), { addDot: uCe, removeDot: dCe, addArea: fCe, removeArea: pCe, addLine: mCe, removeLine: hCe } = w6.actions, gCe = w6.reducer, T6 = /*#__PURE__*/ (0, I.createContext)(void 0), _Ce = (e) => {
- var { children: t } = e, [n] = (0, I.useState)(`${nz("recharts")}-clip`), r = A3();
+}), { addDot: dCe, removeDot: fCe, addArea: pCe, removeArea: mCe, addLine: hCe, removeLine: gCe } = w6.actions, _Ce = w6.reducer, T6 = /*#__PURE__*/ (0, I.createContext)(void 0), vCe = (e) => {
+ var { children: t } = e, [n] = (0, I.useState)(`${rz("recharts")}-clip`), r = A3();
if (r == null) return null;
var { x: i, y: a, width: o, height: s } = r;
return /*#__PURE__*/ I.createElement(T6.Provider, { value: n }, /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement("clipPath", { id: n }, /*#__PURE__*/ I.createElement("rect", {
@@ -60198,7 +60225,7 @@ var lCe = function(e) {
height: s,
width: o
}))), t);
-}, vCe = () => (0, I.useContext)(T6), yCe = class {
+}, yCe = () => (0, I.useContext)(T6), bCe = class {
constructor(e) {
var { x: t, y: n } = e;
this.xAxisScale = t, this.yAxisScale = n;
@@ -60238,26 +60265,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) {
- bCe(e, t, n[t]);
+ xCe(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 bCe(e, t, n) {
- return (t = xCe(t)) in e ? Object.defineProperty(e, t, {
+function xCe(e, t, n) {
+ return (t = SCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xCe(e) {
- var t = SCe(e, "string");
+function SCe(e) {
+ var t = CCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function SCe(e, t) {
+function CCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60276,18 +60303,18 @@ function O6() {
return e;
}, O6.apply(null, arguments);
}
-var CCe = (e, t) => {
+var wCe = (e, t) => {
var n;
if (/*#__PURE__*/ I.isValidElement(e)) n = /*#__PURE__*/ I.cloneElement(e, t);
else if (typeof e == "function") n = e(t);
else {
- if (!BH(t.x1) || !BH(t.y1) || !BH(t.x2) || !BH(t.y2)) return null;
+ if (!VH(t.x1) || !VH(t.y1) || !VH(t.x2) || !VH(t.y2)) return null;
n = /*#__PURE__*/ I.createElement("line", O6({}, t, { className: "recharts-reference-line-line" }));
}
return n;
-}, wCe = (e, t, n, r, i, a) => {
+}, TCe = (e, t, n, r, i, a) => {
var { x: o, width: s } = a, c = i.map(e, { position: n });
- if (!BH(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!VH(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: o + s,
y: c
@@ -60296,9 +60323,9 @@ var CCe = (e, t) => {
y: c
}];
return r === "left" ? l.reverse() : l;
-}, TCe = (e, t, n, r, i, a) => {
+}, ECe = (e, t, n, r, i, a) => {
var { y: o, height: s } = a, c = i.map(e, { position: n });
- if (!BH(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!VH(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: c,
y: o + s
@@ -60307,7 +60334,7 @@ var CCe = (e, t) => {
y: o
}];
return r === "top" ? l.reverse() : l;
-}, ECe = (e, t, n, r) => {
+}, DCe = (e, t, n, r) => {
var i = [r.mapWithFallback(e[0], {
position: n,
fallback: "rangeMin"
@@ -60316,43 +60343,43 @@ var CCe = (e, t) => {
fallback: "rangeMax"
})];
return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;
-}, DCe = (e, t, n, r, i, a, o) => {
- var { x: s, y: c, segment: l, ifOverflow: u } = o, d = tz(s);
- return tz(c) ? wCe(c, u, r, a, t, n) : d ? TCe(s, u, r, i, e, n) : l != null && l.length === 2 ? ECe(l, u, r, new yCe({
+}, OCe = (e, t, n, r, i, a, o) => {
+ var { x: s, y: c, segment: l, ifOverflow: u } = o, d = nz(s);
+ return nz(c) ? TCe(c, u, r, a, t, n) : d ? ECe(s, u, r, i, e, n) : l != null && l.length === 2 ? DCe(l, u, r, new bCe({
x: e,
y: t
})) : null;
};
-function OCe(e) {
- var t = qz();
- return (0, I.useEffect)(() => (t(mCe(e)), () => {
- t(hCe(e));
+function kCe(e) {
+ var t = Jz();
+ return (0, I.useEffect)(() => (t(hCe(e)), () => {
+ t(gCe(e));
})), null;
}
-function kCe(e) {
- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = IU(), s = vCe(), c = Q((e) => N$(e, t)), l = Q((e) => I$(e, n)), u = Q((e) => N1(e, "xAxis", t, o)), d = Q((e) => N1(e, "yAxis", n, o)), f = uW();
+function ACe(e) {
+ var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = LU(), s = yCe(), c = Q((e) => N$(e, t)), l = Q((e) => I$(e, n)), u = Q((e) => N1(e, "xAxis", t, o)), d = Q((e) => N1(e, "yAxis", n, o)), f = dW();
if (!s || !f || c == null || l == null || u == null || d == null) return null;
- var p = DCe(u, d, f, e.position, c.orientation, l.orientation, e);
+ var p = OCe(u, d, f, e.position, c.orientation, l.orientation, e);
if (!p) return null;
var m = p[0], h = p[1];
if (m == null || h == null) return null;
- var { x: g, y: _ } = m, { x: v, y } = h, b = D6(D6({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, KL(e)), {}, {
+ var { x: g, y: _ } = m, { x: v, y } = h, b = D6(D6({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, qL(e)), {}, {
x1: g,
y1: _,
x2: v,
y2: y
- }), x = sCe({
+ }), x = cCe({
x1: g,
y1: _,
x2: v,
y2: y
});
- return /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: Wm("recharts-reference-line", i) }, CCe(r, b), /*#__PURE__*/ I.createElement(Q2, O6({}, x, {
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(ZL, { className: Wm("recharts-reference-line", i) }, wCe(r, b), /*#__PURE__*/ I.createElement(Q2, O6({}, x, {
lowerWidth: x.width,
upperWidth: x.width
}), /*#__PURE__*/ I.createElement(o4, { label: e.label }), e.children)));
}
-var ACe = {
+var jCe = {
ifOverflow: "discard",
xAxisId: 0,
yAxisId: 0,
@@ -60362,18 +60389,18 @@ var ACe = {
fillOpacity: 1,
strokeWidth: 1,
position: "middle",
- zIndex: kY.line
+ zIndex: AY.line
};
function k6(e) {
- var t = bz(e, ACe);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(OCe, {
+ var t = xz(e, jCe);
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(kCe, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
ifOverflow: t.ifOverflow,
x: t.x,
y: t.y,
segment: t.segment
- }), /*#__PURE__*/ I.createElement(kCe, t));
+ }), /*#__PURE__*/ I.createElement(ACe, t));
}
k6.displayName = "ReferenceLine";
//#endregion
@@ -60389,13 +60416,13 @@ function A6(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/util/TickUtils.js
-function jCe(e, t, n) {
- return lCe({
+function MCe(e, t, n) {
+ return uCe({
width: e.width + t.width,
height: e.height + t.height
}, n);
}
-function MCe(e, t, n) {
+function NCe(e, t, n) {
var r = n === "width", { x: i, y: a, width: o, height: s } = e;
return t === 1 ? {
start: r ? i : a,
@@ -60410,12 +60437,12 @@ function j6(e, t, n, r, i) {
var a = n();
return e * (t - e * a / 2 - r) >= 0 && e * (t + e * a / 2 - i) <= 0;
}
-function NCe(e, t) {
+function PCe(e, t) {
return A6(e, t + 1);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.js
-function PCe(e, t, n, r, i) {
+function FCe(e, t, n, r, i) {
for (var a = (r || []).slice(), { start: o, end: s } = t, c = 0, l = 1, u = o, d = function() {
var t = r?.[c];
if (t === void 0) return { v: A6(r, l) };
@@ -60424,7 +60451,7 @@ function PCe(e, t, n, r, i) {
}, f; l <= a.length;) if (f = d(), f) return f.v;
return [];
}
-function FCe(e, t, n, r, i) {
+function ICe(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++) {
@@ -60461,26 +60488,26 @@ function N6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? M6(Object(n), !0).forEach(function(t) {
- ICe(e, t, n[t]);
+ LCe(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 ICe(e, t, n) {
- return (t = LCe(t)) in e ? Object.defineProperty(e, t, {
+function LCe(e, t, n) {
+ return (t = RCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function LCe(e) {
- var t = RCe(e, "string");
+function RCe(e) {
+ var t = zCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function RCe(e, t) {
+function zCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60490,7 +60517,7 @@ function RCe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function zCe(e, t, n, r, i) {
+function BCe(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;
@@ -60503,7 +60530,7 @@ function zCe(e, t, n, r, i) {
}, u = o - 1; u >= 0; u--) if (l(u)) continue;
return a;
}
-function BCe(e, t, n, r, i, a) {
+function VCe(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];
@@ -60527,7 +60554,7 @@ function BCe(e, t, n, r, i, a) {
function P6(e, t, n) {
var { tick: r, ticks: i, viewBox: a, minTickGap: o, orientation: s, interval: c, tickFormatter: l, unit: u, angle: d } = e;
if (!i || !i.length || !r) return [];
- if (Z(c) || TK.isSsr) return NCe(i, Z(c) ? c : 0) ?? [];
+ if (Z(c) || EK.isSsr) return PCe(i, Z(c) ? c : 0) ?? [];
var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? T2(u, {
fontSize: t,
letterSpacing: n
@@ -60536,19 +60563,19 @@ function P6(e, t, n) {
height: 0
}, h = (e, r) => {
var i = typeof l == "function" ? l(e.value, r) : e.value;
- return p === "width" ? jCe(T2(i, {
+ return p === "width" ? MCe(T2(i, {
fontSize: t,
letterSpacing: n
}), m, d) : T2(i, {
fontSize: t,
letterSpacing: n
})[p];
- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? QR(_.coordinate - g.coordinate) : 1, y = MCe(a, v, p);
- return c === "equidistantPreserveStart" ? PCe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? FCe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? BCe(v, y, h, i, o, c === "preserveStartEnd") : zCe(v, y, h, i, o), f.filter((e) => e.isShow));
+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? $R(_.coordinate - g.coordinate) : 1, y = NCe(a, v, p);
+ return c === "equidistantPreserveStart" ? FCe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? ICe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? VCe(v, y, h, i, o, c === "preserveStartEnd") : BCe(v, y, h, i, o), f.filter((e) => e.isShow));
}
//#endregion
//#region node_modules/recharts/es6/util/YAxisUtils.js
-var VCe = (e) => {
+var HCe = (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) => {
@@ -60561,7 +60588,7 @@ var VCe = (e) => {
return Math.round(l);
}
return 0;
-}, F6 = GV({
+}, F6 = KV({
name: "renderedTicks",
initialState: {
xAxis: {},
@@ -60570,14 +60597,14 @@ var VCe = (e) => {
reducers: {
setRenderedTicks: (e, t) => {
var { axisType: n, axisId: r, ticks: i } = t.payload;
- e[n][r] = vG(i);
+ e[n][r] = yG(i);
},
removeRenderedTicks: (e, t) => {
var { axisType: n, axisId: r } = t.payload;
delete e[n][r];
}
}
-}), { setRenderedTicks: HCe, removeRenderedTicks: UCe } = F6.actions, WCe = F6.reducer, GCe = [
+}), { setRenderedTicks: UCe, removeRenderedTicks: WCe } = F6.actions, GCe = F6.reducer, KCe = [
"axisLine",
"width",
"height",
@@ -60587,16 +60614,16 @@ var VCe = (e) => {
"axisType",
"axisId"
];
-function KCe(e, t) {
+function qCe(e, t) {
if (e == null) return {};
- var n, r, i = qCe(e, t);
+ var n, r, i = JCe(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 qCe(e, t) {
+function JCe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60628,26 +60655,26 @@ function R6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? L6(Object(n), !0).forEach(function(t) {
- JCe(e, t, n[t]);
+ YCe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function JCe(e, t, n) {
- return (t = YCe(t)) in e ? Object.defineProperty(e, t, {
+function YCe(e, t, n) {
+ return (t = XCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function YCe(e) {
- var t = XCe(e, "string");
+function XCe(e) {
+ var t = ZCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function XCe(e, t) {
+function ZCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60679,12 +60706,12 @@ var z6 = {
tickSize: 6,
tickMargin: 2,
interval: "preserveEnd",
- zIndex: kY.axis
+ zIndex: AY.axis
};
-function ZCe(e) {
+function QCe(e) {
var { x: t, y: n, width: r, height: i, orientation: a, mirror: o, axisLine: s, otherSvgProps: c } = e;
if (!s) return null;
- var l = R6(R6(R6({}, c), WL(s)), {}, { fill: "none" });
+ var l = R6(R6(R6({}, c), GL(s)), {}, { fill: "none" });
if (a === "top" || a === "bottom") {
var u = +(a === "top" && !o || a === "bottom" && o);
l = R6(R6({}, l), {}, {
@@ -60702,9 +60729,9 @@ function ZCe(e) {
y2: n + i
});
}
- return /*#__PURE__*/ I.createElement("line", I6({}, l, { className: Wm("recharts-cartesian-axis-line", YR(s, "className")) }));
+ return /*#__PURE__*/ I.createElement("line", I6({}, l, { className: Wm("recharts-cartesian-axis-line", XR(s, "className")) }));
}
-function QCe(e, t, n, r, i, a, o, s, c) {
+function $Ce(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":
@@ -60731,14 +60758,14 @@ function QCe(e, t, n, r, i, a, o, s, c) {
}
};
}
-function $Ce(e, t) {
+function ewe(e, t) {
switch (e) {
case "left": return t ? "start" : "end";
case "right": return t ? "end" : "start";
default: return "middle";
}
}
-function ewe(e, t) {
+function twe(e, t) {
switch (e) {
case "left":
case "right": return "middle";
@@ -60746,7 +60773,7 @@ function ewe(e, t) {
default: return t ? "end" : "start";
}
}
-function twe(e) {
+function nwe(e) {
var { option: t, tickProps: n, value: r } = e, i, a = Wm(n.className, "recharts-cartesian-axis-tick-value");
if (/*#__PURE__*/ I.isValidElement(t)) i = /*#__PURE__*/ I.cloneElement(t, R6(R6({}, n), {}, { className: a }));
else if (typeof t == "function") i = t(R6(R6({}, n), {}, { className: a }));
@@ -60756,9 +60783,9 @@ function twe(e) {
}
return i;
}
-function nwe(e) {
- var { ticks: t, axisType: n, axisId: r } = e, i = qz();
- return (0, I.useEffect)(() => r == null || n == null ? uz : (i(HCe({
+function rwe(e) {
+ var { ticks: t, axisType: n, axisId: r } = e, i = Jz();
+ return (0, I.useEffect)(() => r == null || n == null ? dz : (i(UCe({
ticks: t.map((e) => ({
value: e.value,
coordinate: e.coordinate,
@@ -60768,7 +60795,7 @@ function nwe(e) {
axisId: r,
axisType: n
})), () => {
- i(UCe({
+ i(WCe({
axisId: r,
axisType: n
}));
@@ -60779,15 +60806,15 @@ function nwe(e) {
n
]), null;
}
-var rwe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { ticks: n = [], tick: r, tickLine: i, stroke: a, tickFormatter: o, unit: s, padding: c, tickTextProps: l, orientation: u, mirror: d, x: f, y: p, width: m, height: h, tickSize: g, tickMargin: _, fontSize: v, letterSpacing: y, getTicksConfig: b, events: x, axisType: S, axisId: C } = e, w = P6(R6(R6({}, b), {}, { ticks: n }), v, y), T = WL(b), E = GL(r), D = R2(T.textAnchor) ? T.textAnchor : $Ce(u, d), O = ewe(u, d), k = {};
+var iwe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var { ticks: n = [], tick: r, tickLine: i, stroke: a, tickFormatter: o, unit: s, padding: c, tickTextProps: l, orientation: u, mirror: d, x: f, y: p, width: m, height: h, tickSize: g, tickMargin: _, fontSize: v, letterSpacing: y, getTicksConfig: b, events: x, axisType: S, axisId: C } = e, w = P6(R6(R6({}, b), {}, { ticks: n }), v, y), T = GL(b), E = KL(r), D = R2(T.textAnchor) ? T.textAnchor : ewe(u, d), O = twe(u, d), k = {};
typeof i == "object" && (k = i);
- var A = R6(R6({}, T), {}, { fill: "none" }, k), j = w.map((e) => R6({ entry: e }, QCe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
+ var A = R6(R6({}, T), {}, { fill: "none" }, k), j = w.map((e) => R6({ entry: e }, $Ce(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
var { entry: t, line: n } = e;
- return /*#__PURE__*/ I.createElement(XL, {
+ return /*#__PURE__*/ I.createElement(ZL, {
className: "recharts-cartesian-axis-tick",
key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`
- }, i && /*#__PURE__*/ I.createElement("line", I6({}, A, n, { className: Wm("recharts-cartesian-axis-tick-line", YR(i, "className")) })));
+ }, i && /*#__PURE__*/ I.createElement("line", I6({}, A, n, { className: Wm("recharts-cartesian-axis-tick-line", XR(i, "className")) })));
}), N = j.map((e, t) => {
var { entry: n, tick: i } = e, u = R6(R6({}, R6(R6(R6(R6({ verticalAnchor: O }, T), {}, {
textAnchor: D,
@@ -60800,26 +60827,26 @@ var rwe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
tickFormatter: o,
padding: c
}, l), {}, { angle: l?.angle ?? T.angle ?? 0 })), E);
- return /*#__PURE__*/ I.createElement(XL, I6({
+ return /*#__PURE__*/ I.createElement(ZL, I6({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, vz(x, n, t)), r && /*#__PURE__*/ I.createElement(twe, {
+ }, yz(x, n, t)), r && /*#__PURE__*/ I.createElement(nwe, {
option: r,
tickProps: u,
value: `${typeof o == "function" ? o(n.value, t) : n.value}${s || ""}`
}));
});
- return /*#__PURE__*/ I.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ I.createElement(nwe, {
+ return /*#__PURE__*/ I.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ I.createElement(rwe, {
ticks: w,
axisId: C,
axisType: S
- }), N.length > 0 && /*#__PURE__*/ I.createElement(n2, { zIndex: kY.label }, /*#__PURE__*/ I.createElement("g", {
+ }), N.length > 0 && /*#__PURE__*/ I.createElement(n2, { zIndex: AY.label }, /*#__PURE__*/ I.createElement("g", {
className: `recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,
ref: t
}, N)), M.length > 0 && /*#__PURE__*/ I.createElement("g", { className: `recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines` }, M));
-}), iwe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = KCe(e, GCe), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(""), h = (0, I.useRef)(null);
- (0, I.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => VCe({
+}), awe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = qCe(e, KCe), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(""), h = (0, I.useRef)(null);
+ (0, I.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => HCe({
ticks: h.current,
label: e.labelRef?.current,
labelGapWithTick: 5,
@@ -60837,7 +60864,7 @@ var rwe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
}
}
}, [d, p]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: Wm("recharts-cartesian-axis", a) }, /*#__PURE__*/ I.createElement(ZCe, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(ZL, { className: Wm("recharts-cartesian-axis", a) }, /*#__PURE__*/ I.createElement(QCe, {
x: e.x,
y: e.y,
width: r,
@@ -60845,8 +60872,8 @@ var rwe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
orientation: e.orientation,
mirror: e.mirror,
axisLine: n,
- otherSvgProps: WL(e)
- }), /*#__PURE__*/ I.createElement(rwe, {
+ otherSvgProps: GL(e)
+ }), /*#__PURE__*/ I.createElement(iwe, {
ref: g,
axisType: c,
events: u,
@@ -60882,19 +60909,19 @@ var rwe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
labelRef: e.labelRef
}), e.children)));
}), B6 = /*#__PURE__*/ I.forwardRef((e, t) => {
- var n = bz(e, z6);
- return /*#__PURE__*/ I.createElement(iwe, I6({}, n, { ref: t }));
+ var n = xz(e, z6);
+ return /*#__PURE__*/ I.createElement(awe, I6({}, n, { ref: t }));
});
B6.displayName = "CartesianAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/CartesianGrid.js
-var awe = [
+var owe = [
"x1",
"y1",
"x2",
"y2",
"key"
-], owe = ["offset"], swe = ["xAxisId", "yAxisId"], cwe = ["xAxisId", "yAxisId"];
+], swe = ["offset"], cwe = ["xAxisId", "yAxisId"], lwe = ["xAxisId", "yAxisId"];
function V6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -60909,26 +60936,26 @@ function H6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? V6(Object(n), !0).forEach(function(t) {
- lwe(e, t, n[t]);
+ uwe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function lwe(e, t, n) {
- return (t = uwe(t)) in e ? Object.defineProperty(e, t, {
+function uwe(e, t, n) {
+ return (t = dwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function uwe(e) {
- var t = dwe(e, "string");
+function dwe(e) {
+ var t = fwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function dwe(e, t) {
+function fwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60949,14 +60976,14 @@ function U6() {
}
function W6(e, t) {
if (e == null) return {};
- var n, r, i = fwe(e, t);
+ var n, r, i = pwe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function fwe(e, t) {
+function pwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60965,7 +60992,7 @@ function fwe(e, t) {
}
return n;
}
-var pwe = (e) => {
+var mwe = (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;
@@ -60986,7 +61013,7 @@ function G6(e) {
if (/*#__PURE__*/ I.isValidElement(t)) r = /*#__PURE__*/ I.cloneElement(t, n);
else if (typeof t == "function") r = t(n);
else {
- var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = WL(W6(n, awe)) ?? {}, { offset: u } = l, d = W6(l, owe);
+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = GL(W6(n, owe)) ?? {}, { offset: u } = l, d = W6(l, swe);
r = /*#__PURE__*/ I.createElement("line", U6({}, d, {
x1: i,
y1: a,
@@ -60998,10 +61025,10 @@ function G6(e) {
}
return r;
}
-function mwe(e) {
+function hwe(e) {
var { x: t, width: n, horizontal: r = !0, horizontalPoints: i } = e;
if (!r || !i || !i.length) return null;
- var { xAxisId: a, yAxisId: o } = e, s = W6(e, swe), c = i.map((e, i) => {
+ var { xAxisId: a, yAxisId: o } = e, s = W6(e, cwe), c = i.map((e, i) => {
var a = H6(H6({}, s), {}, {
x1: t,
y1: e,
@@ -61018,10 +61045,10 @@ function mwe(e) {
});
return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, c);
}
-function hwe(e) {
+function gwe(e) {
var { y: t, height: n, vertical: r = !0, verticalPoints: i } = e;
if (!r || !i || !i.length) return null;
- var { xAxisId: a, yAxisId: o } = e, s = W6(e, cwe), c = i.map((e, i) => {
+ var { xAxisId: a, yAxisId: o } = e, s = W6(e, lwe), c = i.map((e, i) => {
var a = H6(H6({}, s), {}, {
x1: e,
y1: t,
@@ -61038,7 +61065,7 @@ function hwe(e) {
});
return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid-vertical" }, c);
}
-function gwe(e) {
+function _we(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);
@@ -61061,7 +61088,7 @@ function gwe(e) {
});
return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);
}
-function _we(e) {
+function vwe(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);
@@ -61084,10 +61111,10 @@ function _we(e) {
});
return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, u);
}
-var vwe = (e, t) => {
+var ywe = (e, t) => {
var { xAxis: n, width: r, height: i, offset: a } = e;
- return XH(P6(H6(H6(H6({}, z6), n), {}, {
- ticks: ZH(n, !0),
+ return ZH(P6(H6(H6(H6({}, z6), n), {}, {
+ ticks: QH(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -61095,10 +61122,10 @@ var vwe = (e, t) => {
height: i
}
})), a.left, a.left + a.width, t);
-}, ywe = (e, t) => {
+}, bwe = (e, t) => {
var { yAxis: n, width: r, height: i, offset: a } = e;
- return XH(P6(H6(H6(H6({}, z6), n), {}, {
- ticks: ZH(n, !0),
+ return ZH(P6(H6(H6(H6({}, z6), n), {}, {
+ ticks: QH(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -61106,7 +61133,7 @@ var vwe = (e, t) => {
height: i
}
})), a.top, a.top + a.height, t);
-}, bwe = {
+}, xwe = {
horizontal: !0,
vertical: !0,
horizontalPoints: [],
@@ -61118,17 +61145,17 @@ var vwe = (e, t) => {
xAxisId: 0,
yAxisId: 0,
syncWithTicks: !1,
- zIndex: kY.grid
+ zIndex: AY.grid
};
function K6(e) {
- var t = pW(), n = mW(), r = fW(), i = H6(H6({}, bz(e, bwe)), {}, {
+ var t = mW(), n = hW(), r = pW(), i = H6(H6({}, xz(e, xwe)), {}, {
x: Z(e.x) ? e.x : r.left,
y: Z(e.y) ? e.y : r.top,
width: Z(e.width) ? e.width : r.width,
height: Z(e.height) ? e.height : r.height
- }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = IU(), h = Q((e) => W1(e, "xAxis", a, m)), g = Q((e) => W1(e, "yAxis", o, m));
- if (!VH(l) || !VH(u) || !Z(s) || !Z(c)) return null;
- var _ = i.verticalCoordinatesGenerator || vwe, v = i.horizontalCoordinatesGenerator || ywe, { horizontalPoints: y, verticalPoints: b } = i;
+ }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = LU(), h = Q((e) => W1(e, "xAxis", a, m)), g = Q((e) => W1(e, "yAxis", o, m));
+ if (!HH(l) || !HH(u) || !Z(s) || !Z(c)) return null;
+ var _ = i.verticalCoordinatesGenerator || ywe, v = i.horizontalCoordinatesGenerator || bwe, { horizontalPoints: y, verticalPoints: b } = i;
if ((!y || !y.length) && typeof v == "function") {
var x = f && f.length, S = v({
yAxis: g ? H6(H6({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
@@ -61136,7 +61163,7 @@ function K6(e) {
height: n ?? u,
offset: r
}, x ? !0 : d);
- HU(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
+ UU(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 = _({
@@ -61145,9 +61172,9 @@ function K6(e) {
height: n ?? u,
offset: r
}, C ? !0 : d);
- HU(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
+ UU(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
}
- return /*#__PURE__*/ I.createElement(n2, { zIndex: i.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ I.createElement(pwe, {
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: i.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ I.createElement(mwe, {
fill: i.fill,
fillOpacity: i.fillOpacity,
x: i.x,
@@ -61155,12 +61182,12 @@ function K6(e) {
width: i.width,
height: i.height,
ry: i.ry
- }), /*#__PURE__*/ I.createElement(gwe, U6({}, i, { horizontalPoints: y })), /*#__PURE__*/ I.createElement(_we, U6({}, i, { verticalPoints: b })), /*#__PURE__*/ I.createElement(mwe, U6({}, i, {
+ }), /*#__PURE__*/ I.createElement(_we, U6({}, i, { horizontalPoints: y })), /*#__PURE__*/ I.createElement(vwe, U6({}, i, { verticalPoints: b })), /*#__PURE__*/ I.createElement(hwe, U6({}, i, {
offset: r,
horizontalPoints: y,
xAxis: h,
yAxis: g
- })), /*#__PURE__*/ I.createElement(hwe, U6({}, i, {
+ })), /*#__PURE__*/ I.createElement(gwe, U6({}, i, {
offset: r,
verticalPoints: b,
xAxis: h,
@@ -61170,7 +61197,7 @@ function K6(e) {
K6.displayName = "CartesianGrid";
//#endregion
//#region node_modules/recharts/es6/state/errorBarSlice.js
-var q6 = GV({
+var q6 = KV({
name: "errorBars",
initialState: {},
reducers: {
@@ -61187,17 +61214,17 @@ var q6 = GV({
e[n] && (e[n] = e[n].filter((e) => e.dataKey !== r.dataKey || e.direction !== r.direction));
}
}
-}), { addErrorBar: xwe, replaceErrorBar: Swe, removeErrorBar: Cwe } = q6.actions, wwe = q6.reducer, Twe = ["children"];
-function Ewe(e, t) {
+}), { addErrorBar: Swe, replaceErrorBar: Cwe, removeErrorBar: wwe } = q6.actions, Twe = q6.reducer, Ewe = ["children"];
+function Dwe(e, t) {
if (e == null) return {};
- var n, r, i = Dwe(e, t);
+ var n, r, i = Owe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Dwe(e, t) {
+function Owe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61206,7 +61233,7 @@ function Dwe(e, t) {
}
return n;
}
-var Owe = /*#__PURE__*/ (0, I.createContext)({
+var kwe = /*#__PURE__*/ (0, I.createContext)({
data: [],
xAxisId: "xAxis-0",
yAxisId: "yAxis-0",
@@ -61218,8 +61245,8 @@ var Owe = /*#__PURE__*/ (0, I.createContext)({
errorBarOffset: 0
});
function J6(e) {
- var { children: t } = e, n = Ewe(e, Twe);
- return /*#__PURE__*/ I.createElement(Owe.Provider, { value: n }, t);
+ var { children: t } = e, n = Dwe(e, Ewe);
+ return /*#__PURE__*/ I.createElement(kwe.Provider, { value: n }, t);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
@@ -61244,30 +61271,30 @@ function X6(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/lineSelectors.js
-var Z6 = (e, t, n, r) => Y1(e, "xAxis", t, r), Q6 = (e, t, n, r) => J1(e, "xAxis", t, r), $6 = (e, t, n, r) => Y1(e, "yAxis", n, r), e8 = (e, t, n, r) => J1(e, "yAxis", n, r), kwe = $([
- gW,
+var Z6 = (e, t, n, r) => Y1(e, "xAxis", t, r), Q6 = (e, t, n, r) => J1(e, "xAxis", t, r), $6 = (e, t, n, r) => Y1(e, "yAxis", n, r), e8 = (e, t, n, r) => J1(e, "yAxis", n, r), Awe = $([
+ _W,
Z6,
$6,
Q6,
e8
-], (e, t, n, r, i) => YH(e, "xAxis") ? uU(t, r, !1) : uU(n, i, !1)), Awe = (e, t, n, r, i) => i;
-function jwe(e) {
+], (e, t, n, r, i) => XH(e, "xAxis") ? dU(t, r, !1) : dU(n, i, !1)), jwe = (e, t, n, r, i) => i;
+function Mwe(e) {
return e.type === "line";
}
-var Mwe = $([
- gW,
+var Nwe = $([
+ _W,
Z6,
$6,
Q6,
e8,
- $([H$, Awe], (e, t) => e.filter(jwe).find((e) => e.id === t)),
- kwe,
- nY
+ $([H$, jwe], (e, t) => e.filter(Mwe).find((e) => e.id === t)),
+ Awe,
+ rY
], (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 Qwe({
+ if (p != null) return $we({
layout: e,
xAxis: t,
yAxis: n,
@@ -61282,7 +61309,7 @@ var Mwe = $([
//#endregion
//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js
function t8(e) {
- var t = GL(e), n = 3, r = 2;
+ var t = KL(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), {
@@ -61297,13 +61324,13 @@ function t8(e) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/Line.js
-var Nwe = ["id"], Pwe = [
+var Pwe = ["id"], Fwe = [
"type",
"layout",
"connectNulls",
"needClip",
"shape"
-], Fwe = [
+], Iwe = [
"activeDot",
"animateNewValues",
"animationBegin",
@@ -61342,26 +61369,26 @@ function i8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? r8(Object(n), !0).forEach(function(t) {
- Iwe(e, t, n[t]);
+ Lwe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Iwe(e, t, n) {
- return (t = Lwe(t)) in e ? Object.defineProperty(e, t, {
+function Lwe(e, t, n) {
+ return (t = Rwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Lwe(e) {
- var t = Rwe(e, "string");
+function Rwe(e) {
+ var t = zwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Rwe(e, t) {
+function zwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61373,14 +61400,14 @@ function Rwe(e, t) {
}
function a8(e, t) {
if (e == null) return {};
- var n, r, i = zwe(e, t);
+ var n, r, i = Bwe(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 Bwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61389,27 +61416,27 @@ function zwe(e, t) {
}
return n;
}
-var Bwe = (e) => {
+var Vwe = (e) => {
var { dataKey: t, name: n, stroke: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: fU(n, t),
+ value: pU(n, t),
payload: e
}];
-}, Vwe = /*#__PURE__*/ I.memo((e) => {
+}, Hwe = /*#__PURE__*/ I.memo((e) => {
var { dataKey: t, data: n, stroke: r, strokeWidth: i, fill: a, name: o, hide: s, unit: c, tooltipType: l, id: u } = e, d = {
dataDefinedOnItem: n,
- getPosition: uz,
+ getPosition: dz,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: fU(o, t),
+ name: pU(o, t),
hide: s,
type: l,
color: r,
@@ -61419,11 +61446,11 @@ var Bwe = (e) => {
};
return /*#__PURE__*/ I.createElement(g3, { tooltipEntrySettings: d });
}), o8 = (e, t) => `${t}px ${e}px`;
-function Hwe(e, t) {
+function Uwe(e, t) {
for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);
return r;
}
-var Uwe = (e, t, n) => {
+var Wwe = (e, t, n) => {
var r = n.reduce((e, t) => e + t, 0);
if (!r) return o8(t, e);
for (var i = Math.floor(e / r), a = e % r, o = [], s = 0, c = 0; s < n.length; c += (l = n[s]) ?? 0, ++s) {
@@ -61435,13 +61462,13 @@ var Uwe = (e, t, n) => {
}
var d = o.length % 2 == 0 ? [0, t] : [t];
return [
- ...Hwe(n, i),
+ ...Uwe(n, i),
...o,
...d
].map((e) => `${e}px`).join(", ");
};
-function Wwe(e) {
- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = WL(a8(r, Nwe));
+function Gwe(e) {
+ var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = GL(a8(r, Pwe));
return /*#__PURE__*/ I.createElement(E3, {
points: n,
dot: i,
@@ -61453,7 +61480,7 @@ function Wwe(e) {
clipPathId: t
});
}
-function Gwe(e) {
+function Kwe(e) {
var { showLabels: t, children: n, points: r } = e, i = (0, I.useMemo)(() => r?.map((e) => {
var t = {
x: e.x ?? 0,
@@ -61474,7 +61501,7 @@ function Gwe(e) {
return /*#__PURE__*/ I.createElement(u4, { value: t ? i : void 0 }, n);
}
function s8(e) {
- var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = i8(i8({}, KL(a8(a, Pwe))), {}, {
+ var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = i8(i8({}, qL(a8(a, Fwe))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: l ? `url(#clipPath-${t})` : void 0,
@@ -61487,31 +61514,31 @@ function s8(e) {
return /*#__PURE__*/ I.createElement(I.Fragment, null, r?.length > 1 && /*#__PURE__*/ I.createElement(f3, n8({
shapeType: "curve",
option: u
- }, d, { pathRef: n })), /*#__PURE__*/ I.createElement(Wwe, {
+ }, d, { pathRef: n })), /*#__PURE__*/ I.createElement(Gwe, {
points: r,
clipPathId: t,
props: a
}));
}
-function Kwe(e) {
+function qwe(e) {
try {
return e && e.getTotalLength && e.getTotalLength() || 0;
} catch {
return 0;
}
}
-function qwe(e) {
- var { clipPathId: t, props: n, pathRef: r, previousPointsRef: i, longestAnimatedLengthRef: a } = e, { points: o, strokeDasharray: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, animateNewValues: f, width: p, height: m, onAnimationEnd: h, onAnimationStart: g } = n, _ = i.current, v = Jq(o, "recharts-line-"), y = (0, I.useRef)(v), [b, x] = (0, I.useState)(!1), S = !b, C = (0, I.useCallback)(() => {
+function Jwe(e) {
+ var { clipPathId: t, props: n, pathRef: r, previousPointsRef: i, longestAnimatedLengthRef: a } = e, { points: o, strokeDasharray: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, animateNewValues: f, width: p, height: m, onAnimationEnd: h, onAnimationStart: g } = n, _ = i.current, v = Yq(o, "recharts-line-"), y = (0, I.useRef)(v), [b, x] = (0, I.useState)(!1), S = !b, C = (0, I.useCallback)(() => {
typeof h == "function" && h(), x(!1);
}, [h]), w = (0, I.useCallback)(() => {
typeof g == "function" && g(), x(!0);
- }, [g]), T = Kwe(r.current), E = (0, I.useRef)(0);
+ }, [g]), T = qwe(r.current), E = (0, I.useRef)(0);
y.current !== v && (E.current = a.current, y.current = v);
var D = E.current;
- return /*#__PURE__*/ I.createElement(Gwe, {
+ return /*#__PURE__*/ I.createElement(Kwe, {
points: o,
showLabels: S
- }, n.children, /*#__PURE__*/ I.createElement(qq, {
+ }, n.children, /*#__PURE__*/ I.createElement(Jq, {
animationId: v,
begin: l,
duration: u,
@@ -61521,20 +61548,20 @@ function qwe(e) {
onAnimationStart: w,
key: v
}, (e) => {
- var l = az(D, T + D, e), u = Math.min(l, T), d = c ? s ? Uwe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : o8(T, u) : s == null ? void 0 : String(s);
+ var l = oz(D, T + D, e), u = Math.min(l, T), d = c ? s ? Wwe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : o8(T, u) : s == null ? void 0 : String(s);
if (e > 0 && T > 0 && (i.current = o, a.current = Math.max(a.current, u)), _) {
var h = _.length / o.length, g = e === 1 ? o : o.map((t, n) => {
var r = Math.floor(n * h);
if (_[r]) {
var i = _[r];
return i8(i8({}, t), {}, {
- x: az(i.x, t.x, e),
- y: az(i.y, t.y, e)
+ x: oz(i.x, t.x, e),
+ y: oz(i.y, t.y, e)
});
}
return f ? i8(i8({}, t), {}, {
- x: az(p * 2, t.x, e),
- y: az(m / 2, t.y, e)
+ x: oz(p * 2, t.x, e),
+ y: oz(m / 2, t.y, e)
}) : i8(i8({}, t), {}, {
x: t.x,
y: t.y
@@ -61557,9 +61584,9 @@ function qwe(e) {
});
}), /*#__PURE__*/ I.createElement(p4, { label: n.label }));
}
-function Jwe(e) {
+function Ywe(e) {
var { clipPathId: t, props: n } = e, r = (0, I.useRef)(null), i = (0, I.useRef)(0), a = (0, I.useRef)(null);
- return /*#__PURE__*/ I.createElement(qwe, {
+ return /*#__PURE__*/ I.createElement(Jwe, {
props: n,
clipPathId: t,
previousPointsRef: r,
@@ -61567,17 +61594,17 @@ function Jwe(e) {
pathRef: a
});
}
-var Ywe = (e, t) => ({
+var Xwe = (e, t) => ({
x: e.x ?? void 0,
y: e.y ?? void 0,
value: e.value,
- errorVal: qH(e.payload, t)
-}), Xwe = class extends I.Component {
+ errorVal: JH(e.payload, t)
+}), Zwe = class extends I.Component {
render() {
var { hide: e, dot: t, points: n, className: r, xAxisId: i, yAxisId: a, top: o, left: s, width: c, height: l, id: u, needClip: d, zIndex: f } = this.props;
if (e) return null;
var p = Wm("recharts-line", r), m = u, { r: h, strokeWidth: g } = t8(t), _ = r3(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
- return /*#__PURE__*/ I.createElement(n2, { zIndex: f }, /*#__PURE__*/ I.createElement(XL, { className: p }, d && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement(X6, {
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: f }, /*#__PURE__*/ I.createElement(ZL, { className: p }, d && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement(X6, {
clipPathId: m,
xAxisId: i,
yAxisId: a
@@ -61590,9 +61617,9 @@ var Ywe = (e, t) => ({
xAxisId: i,
yAxisId: a,
data: n,
- dataPointFormatter: Ywe,
+ dataPointFormatter: Xwe,
errorBarOffset: 0
- }, /*#__PURE__*/ I.createElement(Jwe, {
+ }, /*#__PURE__*/ I.createElement(Ywe, {
props: this.props,
clipPathId: m
}))), /*#__PURE__*/ I.createElement(N3, {
@@ -61620,14 +61647,14 @@ var Ywe = (e, t) => ({
strokeWidth: 1,
xAxisId: 0,
yAxisId: 0,
- zIndex: kY.line,
+ zIndex: AY.line,
type: "linear"
};
-function Zwe(e) {
- var t = bz(e, c8), { activeDot: n, animateNewValues: r, animationBegin: i, animationDuration: a, animationEasing: o, connectNulls: s, dot: c, hide: l, isAnimationActive: u, label: d, legendType: f, xAxisId: p, yAxisId: m, id: h } = t, g = a8(t, Fwe), { needClip: _ } = Y6(p, m), v = A3(), y = _W(), b = IU(), x = Q((e) => Mwe(e, p, m, b, h));
+function Qwe(e) {
+ var t = xz(e, c8), { activeDot: n, animateNewValues: r, animationBegin: i, animationDuration: a, animationEasing: o, connectNulls: s, dot: c, hide: l, isAnimationActive: u, label: d, legendType: f, xAxisId: p, yAxisId: m, id: h } = t, g = a8(t, Iwe), { needClip: _ } = Y6(p, m), v = A3(), y = vW(), b = LU(), x = Q((e) => Nwe(e, p, m, b, h));
if (y !== "horizontal" && y !== "vertical" || x == null || v == null) return null;
var { height: S, width: C, x: w, y: T } = v;
- return /*#__PURE__*/ I.createElement(Xwe, n8({}, g, {
+ return /*#__PURE__*/ I.createElement(Zwe, n8({}, g, {
id: h,
connectNulls: s,
dot: c,
@@ -61651,23 +61678,23 @@ function Zwe(e) {
needClip: _
}));
}
-function Qwe(e) {
+function $we(e) {
var { layout: t, xAxis: n, yAxis: r, xAxisTicks: i, yAxisTicks: a, dataKey: o, bandSize: s, displayedData: c } = e;
return c.map((e, c) => {
- var l = qH(e, o);
+ var l = JH(e, o);
if (t === "horizontal") return {
- x: nU({
+ x: rU({
axis: n,
ticks: i,
bandSize: s,
entry: e,
index: c
}),
- y: (sz(l) ? null : r.scale.map(l)) ?? null,
+ y: (cz(l) ? null : r.scale.map(l)) ?? null,
value: l,
payload: e
};
- var u = sz(l) ? null : n.scale.map(l), d = nU({
+ var u = cz(l) ? null : n.scale.map(l), d = rU({
axis: r,
ticks: a,
bandSize: s,
@@ -61682,12 +61709,12 @@ function Qwe(e) {
};
}).filter(Boolean);
}
-function $we(e) {
- var t = bz(e, c8), n = IU();
+function eTe(e) {
+ var t = xz(e, c8), n = LU();
return /*#__PURE__*/ I.createElement(y3, {
id: t.id,
type: "line"
- }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(_3, { legendPayload: Bwe(t) }), /*#__PURE__*/ I.createElement(Vwe, {
+ }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(_3, { legendPayload: Vwe(t) }), /*#__PURE__*/ I.createElement(Hwe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -61708,9 +61735,9 @@ function $we(e) {
dataKey: t.dataKey,
hide: t.hide,
isPanorama: n
- }), /*#__PURE__*/ I.createElement(Zwe, n8({}, t, { id: e }))));
+ }), /*#__PURE__*/ I.createElement(Qwe, n8({}, t, { id: e }))));
}
-var l8 = /*#__PURE__*/ I.memo($we, WG);
+var l8 = /*#__PURE__*/ I.memo(eTe, GG);
l8.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
@@ -61722,36 +61749,36 @@ function d8(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/areaSelectors.js
-var f8 = (e, t, n) => Y1(e, "xAxis", u8(e, t), n), p8 = (e, t, n) => J1(e, "xAxis", u8(e, t), n), m8 = (e, t, n) => Y1(e, "yAxis", d8(e, t), n), h8 = (e, t, n) => J1(e, "yAxis", d8(e, t), n), eTe = $([
- gW,
+var f8 = (e, t, n) => Y1(e, "xAxis", u8(e, t), n), p8 = (e, t, n) => J1(e, "xAxis", u8(e, t), n), m8 = (e, t, n) => Y1(e, "yAxis", d8(e, t), n), h8 = (e, t, n) => J1(e, "yAxis", d8(e, t), n), tTe = $([
+ _W,
f8,
m8,
p8,
h8
-], (e, t, n, r, i) => YH(e, "xAxis") ? uU(t, r, !1) : uU(n, i, !1)), g8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), _8 = (e) => YH(gW(e), "xAxis") ? "yAxis" : "xAxis", tTe = (e, t) => _8(e) === "yAxis" ? d8(e, t) : u8(e, t), nTe = $([
- gW,
+], (e, t, n, r, i) => XH(e, "xAxis") ? dU(t, r, !1) : dU(n, i, !1)), g8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), _8 = (e) => XH(_W(e), "xAxis") ? "yAxis" : "xAxis", nTe = (e, t) => _8(e) === "yAxis" ? d8(e, t) : u8(e, t), rTe = $([
+ _W,
f8,
m8,
p8,
h8,
- $([g8, (e, t, n) => a1(e, _8(e), tTe(e, t), n)], (e, t) => {
+ $([g8, (e, t, n) => a1(e, _8(e), nTe(e, t), n)], (e, t) => {
if (e != null && t != null) {
- var { stackId: n } = e, r = eX(e);
+ var { stackId: n } = e, r = tX(e);
if (n != null && r != null) {
var i = (t[n]?.stackedData)?.find((e) => e.key === r);
if (i != null) return i.map((e) => [e[0], e[1]]);
}
}
}),
- rY,
- eTe,
+ iY,
+ tTe,
g8,
- OY
+ kY
], (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 STe({
+ if (m != null) return CTe({
layout: e,
xAxis: t,
yAxis: n,
@@ -61765,7 +61792,7 @@ var f8 = (e, t, n) => Y1(e, "xAxis", u8(e, t), n), p8 = (e, t, n) => J1(e, "xAxi
bandSize: s
});
}
-}), rTe = ["id"], iTe = [
+}), iTe = ["id"], aTe = [
"activeDot",
"animationBegin",
"animationDuration",
@@ -61792,14 +61819,14 @@ function v8() {
}
function y8(e, t) {
if (e == null) return {};
- var n, r, i = aTe(e, t);
+ var n, r, i = oTe(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 aTe(e, t) {
+function oTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61822,26 +61849,26 @@ function x8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? b8(Object(n), !0).forEach(function(t) {
- oTe(e, t, n[t]);
+ sTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : b8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function oTe(e, t, n) {
- return (t = sTe(t)) in e ? Object.defineProperty(e, t, {
+function sTe(e, t, n) {
+ return (t = cTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function sTe(e) {
- var t = cTe(e, "string");
+function cTe(e) {
+ var t = lTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function cTe(e, t) {
+function lTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61854,27 +61881,27 @@ function cTe(e, t) {
function S8(e, t) {
return e && e !== "none" ? e : t;
}
-var lTe = (e) => {
+var uTe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
color: S8(r, i),
- value: fU(n, t),
+ value: pU(n, t),
payload: e
}];
-}, uTe = /*#__PURE__*/ I.memo((e) => {
+}, dTe = /*#__PURE__*/ I.memo((e) => {
var { dataKey: t, data: n, stroke: r, strokeWidth: i, fill: a, name: o, hide: s, unit: c, tooltipType: l, id: u } = e, d = {
dataDefinedOnItem: n,
- getPosition: uz,
+ getPosition: dz,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: fU(o, t),
+ name: pU(o, t),
hide: s,
type: l,
color: S8(r, a),
@@ -61884,8 +61911,8 @@ var lTe = (e) => {
};
return /*#__PURE__*/ I.createElement(g3, { tooltipEntrySettings: d });
});
-function dTe(e) {
- var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = WL(r);
+function fTe(e) {
+ var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = GL(r);
return /*#__PURE__*/ I.createElement(E3, {
points: n,
dot: a,
@@ -61897,7 +61924,7 @@ function dTe(e) {
clipPathId: t
});
}
-function fTe(e) {
+function pTe(e) {
var { showLabels: t, children: n, points: r } = e, i = r.map((e) => {
var t = {
x: e.x ?? 0,
@@ -61918,8 +61945,8 @@ function fTe(e) {
return /*#__PURE__*/ I.createElement(u4, { value: t ? i : void 0 }, n);
}
function C8(e) {
- var { points: t, baseLine: n, needClip: r, clipPathId: i, props: a } = e, { layout: o, type: s, stroke: c, connectNulls: l, isRange: u } = a, { id: d } = a, f = y8(a, rTe), p = WL(f), m = KL(f);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, t?.length > 1 && /*#__PURE__*/ I.createElement(XL, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ I.createElement(XK, v8({}, m, {
+ var { points: t, baseLine: n, needClip: r, clipPathId: i, props: a } = e, { layout: o, type: s, stroke: c, connectNulls: l, isRange: u } = a, { id: d } = a, f = y8(a, iTe), p = GL(f), m = qL(f);
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, t?.length > 1 && /*#__PURE__*/ I.createElement(ZL, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ I.createElement(ZK, v8({}, m, {
id: d,
points: t,
connectNulls: l,
@@ -61928,29 +61955,29 @@ function C8(e) {
layout: o,
stroke: "none",
className: "recharts-area-area"
- })), c !== "none" && /*#__PURE__*/ I.createElement(XK, v8({}, p, {
+ })), c !== "none" && /*#__PURE__*/ I.createElement(ZK, v8({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: t
- })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ I.createElement(XK, v8({}, p, {
+ })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ I.createElement(ZK, v8({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: n
- }))), /*#__PURE__*/ I.createElement(dTe, {
+ }))), /*#__PURE__*/ I.createElement(fTe, {
points: t,
props: f,
clipPathId: i
}));
}
-function pTe(e) {
+function mTe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;
- if (!BH(a) || !BH(o)) return null;
+ if (!VH(a) || !VH(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.x || 0));
return Z(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.x || 0), c)), Z(c) ? /*#__PURE__*/ I.createElement("rect", {
x: 0,
@@ -61959,9 +61986,9 @@ function pTe(e) {
height: Math.floor(s)
}) : null;
}
-function mTe(e) {
+function hTe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;
- if (!BH(a) || !BH(o)) return null;
+ if (!VH(a) || !VH(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.y || 0));
return Z(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.y || 0), c)), Z(c) ? /*#__PURE__*/ I.createElement("rect", {
x: a < o ? a : a - s,
@@ -61970,35 +61997,35 @@ function mTe(e) {
height: Math.floor(c + (i ? parseInt(`${i}`, 10) : 1))
}) : null;
}
-function hTe(e) {
+function gTe(e) {
var { alpha: t, layout: n, points: r, baseLine: i, strokeWidth: a } = e;
- return n === "vertical" ? /*#__PURE__*/ I.createElement(pTe, {
+ return n === "vertical" ? /*#__PURE__*/ I.createElement(mTe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
- }) : /*#__PURE__*/ I.createElement(mTe, {
+ }) : /*#__PURE__*/ I.createElement(hTe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
});
}
-function gTe(e) {
- var { needClip: t, clipPathId: n, props: r, previousPointsRef: i, previousBaselineRef: a } = e, { points: o, baseLine: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, onAnimationStart: f, onAnimationEnd: p } = r, m = Jq((0, I.useMemo)(() => ({
+function _Te(e) {
+ var { needClip: t, clipPathId: n, props: r, previousPointsRef: i, previousBaselineRef: a } = e, { points: o, baseLine: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, onAnimationStart: f, onAnimationEnd: p } = r, m = Yq((0, I.useMemo)(() => ({
points: o,
baseLine: s
- }), [o, s]), "recharts-area-"), h = vW(), [g, _] = (0, I.useState)(!1), v = !g, y = (0, I.useCallback)(() => {
+ }), [o, s]), "recharts-area-"), h = yW(), [g, _] = (0, I.useState)(!1), v = !g, y = (0, I.useCallback)(() => {
typeof p == "function" && p(), _(!1);
}, [p]), b = (0, I.useCallback)(() => {
typeof f == "function" && f(), _(!0);
}, [f]);
if (h == null) return null;
var x = i.current, S = a.current;
- return /*#__PURE__*/ I.createElement(fTe, {
+ return /*#__PURE__*/ I.createElement(pTe, {
showLabels: v,
points: o
- }, r.children, /*#__PURE__*/ I.createElement(qq, {
+ }, r.children, /*#__PURE__*/ I.createElement(Jq, {
animationId: m,
begin: l,
duration: u,
@@ -62014,18 +62041,18 @@ function gTe(e) {
if (x[r]) {
var i = x[r];
return x8(x8({}, t), {}, {
- x: az(i.x, t.x, e),
- y: az(i.y, t.y, e)
+ x: oz(i.x, t.x, e),
+ y: oz(i.y, t.y, e)
});
}
return t;
- }), d = Z(s) ? az(S, s, e) : sz(s) || $R(s) ? az(S, 0, e) : s.map((t, n) => {
+ }), d = Z(s) ? oz(S, s, e) : cz(s) || ez(s) ? oz(S, 0, e) : s.map((t, n) => {
var r = Math.floor(n * l);
if (Array.isArray(S) && S[r]) {
var i = S[r];
return x8(x8({}, t), {}, {
- x: az(i.x, t.x, e),
- y: az(i.y, t.y, e)
+ x: oz(i.x, t.x, e),
+ y: oz(i.y, t.y, e)
});
}
return t;
@@ -62038,13 +62065,13 @@ function gTe(e) {
props: r
});
}
- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ I.createElement(XL, null, c && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ I.createElement(hTe, {
+ return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ I.createElement(ZL, null, c && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ I.createElement(gTe, {
alpha: e,
points: o,
baseLine: s,
layout: h,
strokeWidth: r.strokeWidth
- }))), /*#__PURE__*/ I.createElement(XL, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ I.createElement(C8, {
+ }))), /*#__PURE__*/ I.createElement(ZL, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ I.createElement(C8, {
points: o,
baseLine: s,
needClip: t,
@@ -62053,9 +62080,9 @@ function gTe(e) {
})));
}), /*#__PURE__*/ I.createElement(p4, { label: r.label }));
}
-function _Te(e) {
+function vTe(e) {
var { needClip: t, clipPathId: n, props: r } = e, i = (0, I.useRef)(null), a = (0, I.useRef)();
- return /*#__PURE__*/ I.createElement(gTe, {
+ return /*#__PURE__*/ I.createElement(_Te, {
needClip: t,
clipPathId: n,
props: r,
@@ -62063,12 +62090,12 @@ function _Te(e) {
previousBaselineRef: a
});
}
-var vTe = class extends I.PureComponent {
+var yTe = class extends I.PureComponent {
render() {
var { hide: e, dot: t, points: n, className: r, top: i, left: a, needClip: o, xAxisId: s, yAxisId: c, width: l, height: u, id: d, baseLine: f, zIndex: p } = this.props;
if (e) return null;
var m = Wm("recharts-area", r), h = d, { r: g, strokeWidth: _ } = t8(t), v = r3(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
- return /*#__PURE__*/ I.createElement(n2, { zIndex: p }, /*#__PURE__*/ I.createElement(XL, { className: m }, o && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement(X6, {
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: p }, /*#__PURE__*/ I.createElement(ZL, { className: m }, o && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement(X6, {
clipPathId: h,
xAxisId: s,
yAxisId: c
@@ -62077,7 +62104,7 @@ var vTe = class extends I.PureComponent {
y: i - y / 2,
width: l + y,
height: u + y
- }))), /*#__PURE__*/ I.createElement(_Te, {
+ }))), /*#__PURE__*/ I.createElement(vTe, {
needClip: o,
clipPathId: h,
props: this.props
@@ -62095,7 +62122,7 @@ var vTe = class extends I.PureComponent {
clipPath: b
}));
}
-}, yTe = {
+}, bTe = {
activeDot: !0,
animationBegin: 0,
animationDuration: 1500,
@@ -62113,13 +62140,13 @@ var vTe = class extends I.PureComponent {
label: !1,
xAxisId: 0,
yAxisId: 0,
- zIndex: kY.area
+ zIndex: AY.area
};
-function bTe(e) {
- var { activeDot: t, animationBegin: n, animationDuration: r, animationEasing: i, connectNulls: a, dot: o, fill: s, fillOpacity: c, hide: l, isAnimationActive: u, legendType: d, stroke: f, xAxisId: p, yAxisId: m } = e, h = y8(e, iTe), g = _W(), _ = W0(), { needClip: v } = Y6(p, m), y = IU(), { points: b, isRange: x, baseLine: S } = Q((t) => nTe(t, e.id, y)) ?? {}, C = A3();
+function xTe(e) {
+ var { activeDot: t, animationBegin: n, animationDuration: r, animationEasing: i, connectNulls: a, dot: o, fill: s, fillOpacity: c, hide: l, isAnimationActive: u, legendType: d, stroke: f, xAxisId: p, yAxisId: m } = e, h = y8(e, aTe), g = vW(), _ = W0(), { needClip: v } = Y6(p, m), y = LU(), { points: b, isRange: x, baseLine: S } = Q((t) => rTe(t, e.id, y)) ?? {}, C = A3();
if (g !== "horizontal" && g !== "vertical" || C == null || _ !== "AreaChart" && _ !== "ComposedChart") return null;
var { height: w, width: T, x: E, y: D } = C;
- return !b || !b.length ? null : /*#__PURE__*/ I.createElement(vTe, v8({}, h, {
+ return !b || !b.length ? null : /*#__PURE__*/ I.createElement(yTe, v8({}, h, {
activeDot: t,
animationBegin: n,
animationDuration: r,
@@ -62145,7 +62172,7 @@ function bTe(e) {
yAxisId: m
}));
}
-var xTe = (e, t, n, r, i) => {
+var STe = (e, t, n, r, i) => {
var a = n ?? t;
if (Z(a)) return a;
var o = e === "horizontal" ? i : r, s = o.scale.domain();
@@ -62155,17 +62182,17 @@ var xTe = (e, t, n, r, i) => {
}
return a === "dataMin" ? s[0] : a === "dataMax" ? s[1] : s[0];
};
-function STe(e) {
- var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = xTe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
+function CTe(e) {
+ var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = STe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
var a;
if (m) a = i[u + n];
else {
- var o = qH(e, r);
+ var o = JH(e, r);
Array.isArray(o) ? (a = o, _ = !0) : a = [h, o];
}
- var l = a?.[1] ?? null, v = l == null || m && !t && qH(e, r) == null;
+ var l = a?.[1] ?? null, v = l == null || m && !t && JH(e, r) == null;
return g ? {
- x: nU({
+ x: rU({
axis: s,
ticks: d,
bandSize: p,
@@ -62177,7 +62204,7 @@ function STe(e) {
payload: e
} : {
x: v ? null : s.scale.map(l) ?? null,
- y: nU({
+ y: rU({
axis: c,
ticks: f,
bandSize: p,
@@ -62205,12 +62232,12 @@ function STe(e) {
isRange: _
};
}
-function CTe(e) {
- var t = bz(e, yTe), n = IU();
+function wTe(e) {
+ var t = xz(e, bTe), n = LU();
return /*#__PURE__*/ I.createElement(y3, {
id: t.id,
type: "area"
- }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(_3, { legendPayload: lTe(t) }), /*#__PURE__*/ I.createElement(uTe, {
+ }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(_3, { legendPayload: uTe(t) }), /*#__PURE__*/ I.createElement(dTe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -62229,21 +62256,21 @@ function CTe(e) {
xAxisId: t.xAxisId,
yAxisId: t.yAxisId,
zAxisId: 0,
- stackId: tU(t.stackId),
+ stackId: nU(t.stackId),
hide: t.hide,
barSize: void 0,
baseValue: t.baseValue,
isPanorama: n,
connectNulls: t.connectNulls
- }), /*#__PURE__*/ I.createElement(bTe, v8({}, t, { id: e }))));
+ }), /*#__PURE__*/ I.createElement(xTe, v8({}, t, { id: e }))));
}
-var w8 = /*#__PURE__*/ I.memo(CTe, WG);
+var w8 = /*#__PURE__*/ I.memo(wTe, GG);
w8.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
-var wTe = "Invariant failed";
-function TTe(e, t) {
- if (!e) throw Error(wTe);
+var TTe = "Invariant failed";
+function ETe(e, t) {
+ if (!e) throw Error(TTe);
}
//#endregion
//#region node_modules/recharts/es6/util/BarUtils.js
@@ -62263,45 +62290,45 @@ function E8(e) {
inActiveClassName: "recharts-inactive-bar"
}, e));
}
-var ETe = function(e) {
+var DTe = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
return (n, r) => {
if (Z(e)) return e;
- var i = Z(n) || sz(n);
- return i ? e(n, r) : (!i && TTe(!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) || cz(n);
+ return i ? e(n, r) : (!i && ETe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
};
-}, DTe = (e, t, n) => n, D8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), OTe = $([D8], (e) => e?.maxBarSize), kTe = (e, t, n, r) => r, ATe = $([
- gW,
+}, OTe = (e, t, n) => n, D8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), kTe = $([D8], (e) => e?.maxBarSize), ATe = (e, t, n, r) => r, jTe = $([
+ _W,
H$,
u8,
d8,
- DTe
-], (e, t, n, r, i) => t.filter((t) => e === "horizontal" ? t.xAxisId === n : t.yAxisId === r).filter((e) => e.isPanorama === i).filter((e) => e.hide === !1).filter((e) => e.type === "bar")), jTe = (e, t, n) => {
- var r = gW(e), i = u8(e, t), a = d8(e, t);
+ OTe
+], (e, t, n, r, i) => t.filter((t) => e === "horizontal" ? t.xAxisId === n : t.yAxisId === r).filter((e) => e.isPanorama === i).filter((e) => e.hide === !1).filter((e) => e.type === "bar")), MTe = (e, t, n) => {
+ var r = _W(e), i = u8(e, t), a = d8(e, t);
if (i != null && a != null) return r === "horizontal" ? a1(e, "yAxis", a, n) : a1(e, "xAxis", i, n);
-}, MTe = $([
- ATe,
- xY,
+}, NTe = $([
+ jTe,
+ SY,
(e, t) => {
- var n = gW(e), r = u8(e, t), i = d8(e, t);
+ var n = _W(e), r = u8(e, t), i = d8(e, t);
if (r != null && i != null) return n === "horizontal" ? V1(e, "xAxis", r) : V1(e, "yAxis", i);
}
-], Y3), NTe = (e, t, n) => {
+], Y3), PTe = (e, t, n) => {
var r = D8(e, t);
if (r == null) return 0;
var i = u8(e, t), a = d8(e, t);
if (i == null || a == null) return 0;
- var o = gW(e), s = vY(e), { maxBarSize: c } = r, l = sz(c) ? s : c, u, d;
- return o === "horizontal" ? (u = Y1(e, "xAxis", i, n), d = J1(e, "xAxis", i, n)) : (u = Y1(e, "yAxis", a, n), d = J1(e, "yAxis", a, n)), uU(u, d, !0) ?? l ?? 0;
+ var o = _W(e), s = yY(e), { maxBarSize: c } = r, l = cz(c) ? s : c, u, d;
+ return o === "horizontal" ? (u = Y1(e, "xAxis", i, n), d = J1(e, "xAxis", i, n)) : (u = Y1(e, "yAxis", a, n), d = J1(e, "yAxis", a, n)), dU(u, d, !0) ?? l ?? 0;
}, O8 = (e, t, n) => {
- var r = gW(e), i = u8(e, t), a = d8(e, t);
+ var r = _W(e), i = u8(e, t), a = d8(e, t);
if (i != null && a != null) {
var o, s;
- return r === "horizontal" ? (o = Y1(e, "xAxis", i, n), s = J1(e, "xAxis", i, n)) : (o = Y1(e, "yAxis", a, n), s = J1(e, "yAxis", a, n)), uU(o, s);
+ return r === "horizontal" ? (o = Y1(e, "xAxis", i, n), s = J1(e, "xAxis", i, n)) : (o = Y1(e, "yAxis", a, n), s = J1(e, "yAxis", a, n)), dU(o, s);
}
-}, PTe = $([
- MU,
- PU,
+}, FTe = $([
+ NU,
+ FU,
(e, t, n) => {
var r = u8(e, t);
if (r != null) return Y1(e, "xAxis", r, n);
@@ -62319,25 +62346,25 @@ var ETe = function(e) {
if (r != null) return J1(e, "yAxis", r, n);
},
$([$([
- MTe,
- vY,
+ NTe,
yY,
bY,
- NTe,
+ xY,
+ PTe,
O8,
- OTe
+ kTe
], Q3), D8], e6),
- gW,
- rY,
+ _W,
+ iY,
O8,
- $([jTe, D8], $3),
+ $([MTe, D8], $3),
D8,
- kTe
+ ATe
], (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 cEe({
+ if (_ != null) return lEe({
layout: s,
barSettings: d,
pos: o,
@@ -62354,7 +62381,7 @@ var ETe = function(e) {
dataStartIndex: m
});
}
-}), FTe = ["index"];
+}), ITe = ["index"];
function k8() {
return k8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -62364,16 +62391,16 @@ function k8() {
return e;
}, k8.apply(null, arguments);
}
-function ITe(e, t) {
+function LTe(e, t) {
if (e == null) return {};
- var n, r, i = LTe(e, t);
+ var n, r, i = RTe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function LTe(e, t) {
+function RTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62382,31 +62409,31 @@ function LTe(e, t) {
}
return n;
}
-var A8 = /*#__PURE__*/ (0, I.createContext)(void 0), RTe = (e) => {
+var A8 = /*#__PURE__*/ (0, I.createContext)(void 0), zTe = (e) => {
var t = (0, I.useContext)(A8);
if (t != null) return t.stackId;
- if (e != null) return tU(e);
-}, zTe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, BTe = (e) => {
+ if (e != null) return nU(e);
+}, BTe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, VTe = (e) => {
var t = (0, I.useContext)(A8);
if (t != null) {
var { stackId: n } = t;
- return `url(#${zTe(n, e)})`;
+ return `url(#${BTe(n, e)})`;
}
}, j8 = (e) => {
- var { index: t } = e, n = ITe(e, FTe), r = BTe(t);
- return /*#__PURE__*/ I.createElement(XL, k8({
+ var { index: t } = e, n = LTe(e, ITe), r = VTe(t);
+ return /*#__PURE__*/ I.createElement(ZL, k8({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
-}, VTe = [
+}, HTe = [
"onMouseEnter",
"onMouseLeave",
"onClick"
-], HTe = [
+], UTe = [
"value",
"background",
"tooltipPosition"
-], UTe = ["id"], WTe = [
+], WTe = ["id"], GTe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
@@ -62434,26 +62461,26 @@ function P8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? N8(Object(n), !0).forEach(function(t) {
- GTe(e, t, n[t]);
+ KTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function GTe(e, t, n) {
- return (t = KTe(t)) in e ? Object.defineProperty(e, t, {
+function KTe(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 KTe(e) {
- var t = qTe(e, "string");
+function qTe(e) {
+ var t = JTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function qTe(e, t) {
+function JTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62465,14 +62492,14 @@ function qTe(e, t) {
}
function F8(e, t) {
if (e == null) return {};
- var n, r, i = JTe(e, t);
+ var n, r, i = YTe(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 JTe(e, t) {
+function YTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62481,27 +62508,27 @@ function JTe(e, t) {
}
return n;
}
-var YTe = (e) => {
+var XTe = (e) => {
var { dataKey: t, name: n, fill: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: fU(n, t),
+ value: pU(n, t),
payload: e
}];
-}, XTe = /*#__PURE__*/ I.memo((e) => {
+}, ZTe = /*#__PURE__*/ I.memo((e) => {
var { dataKey: t, stroke: n, strokeWidth: r, fill: i, name: a, hide: o, unit: s, tooltipType: c, id: l } = e, u = {
dataDefinedOnItem: void 0,
- getPosition: uz,
+ getPosition: dz,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
dataKey: t,
nameKey: void 0,
- name: fU(a, t),
+ name: pU(a, t),
hide: o,
type: c,
color: i,
@@ -62511,17 +62538,17 @@ var YTe = (e) => {
};
return /*#__PURE__*/ I.createElement(g3, { tooltipEntrySettings: u });
});
-function ZTe(e) {
- var t = Q(F0), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = F8(a, VTe), u = p3(o, r, a.id), d = m3(s), f = h3(c, r, a.id);
+function QTe(e) {
+ var t = Q(F0), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = F8(a, HTe), u = p3(o, r, a.id), d = m3(s), f = h3(c, r, a.id);
if (!i || n == null) return null;
- var p = GL(i);
- return /*#__PURE__*/ I.createElement(n2, { zIndex: p6(i, kY.barBackground) }, n.map((e, n) => {
- var { value: a, background: o, tooltipPosition: s } = e, c = F8(e, HTe);
+ var p = KL(i);
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: p6(i, AY.barBackground) }, n.map((e, n) => {
+ var { value: a, background: o, tooltipPosition: s } = e, c = F8(e, UTe);
if (!o) return null;
var m = u(e, n), h = d(e, n), g = f(e, n), _ = P8(P8(P8(P8(P8({
option: i,
isActive: String(n) === t
- }, c), {}, { fill: "#eee" }, o), p), vz(l, e, n)), {}, {
+ }, c), {}, { fill: "#eee" }, o), p), yz(l, e, n)), {}, {
onMouseEnter: m,
onMouseLeave: h,
onClick: g,
@@ -62532,7 +62559,7 @@ function ZTe(e) {
return /*#__PURE__*/ I.createElement(E8, M8({ key: `background-bar-${n}` }, _));
}));
}
-function QTe(e) {
+function $Te(e) {
var { showLabels: t, children: n, rects: r } = e, i = r?.map((e) => {
var t = {
x: e.x,
@@ -62552,7 +62579,7 @@ function QTe(e) {
});
return /*#__PURE__*/ I.createElement(u4, { value: t ? i : void 0 }, n);
}
-function $Te(e) {
+function eEe(e) {
var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(F0), c = Q(L0), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, I.useState)(!1), [f, p] = (0, I.useState)(!1);
(0, I.useEffect)(() => {
var e;
@@ -62571,9 +62598,9 @@ function $Te(e) {
dataKey: o,
onTransitionEnd: m
}));
- return g ? /*#__PURE__*/ I.createElement(n2, { zIndex: kY.activeBar }, /*#__PURE__*/ I.createElement(j8, { index: i.originalDataIndex }, v)) : v;
+ return g ? /*#__PURE__*/ I.createElement(n2, { zIndex: AY.activeBar }, /*#__PURE__*/ I.createElement(j8, { index: i.originalDataIndex }, v)) : v;
}
-function eEe(e) {
+function tEe(e) {
var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;
return /*#__PURE__*/ I.createElement(E8, M8({}, n, { name: String(n.name) }, r, {
isActive: !1,
@@ -62582,24 +62609,24 @@ function eEe(e) {
dataKey: a
}));
}
-function tEe(e) {
- var { data: t, props: n } = e, r = WL(n) ?? {}, { id: i } = r, a = F8(r, UTe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = F8(n, WTe), p = p3(l, s, i), m = m3(d), h = h3(u, s, i);
+function nEe(e) {
+ var { data: t, props: n } = e, r = GL(n) ?? {}, { id: i } = r, a = F8(r, WTe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = F8(n, GTe), p = p3(l, s, i), m = m3(d), h = h3(u, s, i);
return t ? /*#__PURE__*/ I.createElement(I.Fragment, null, t.map((e, t) => /*#__PURE__*/ I.createElement(j8, M8({
index: e.originalDataIndex,
key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
className: "recharts-bar-rectangle"
- }, vz(f, e, t), {
+ }, yz(f, e, t), {
onMouseEnter: p(e, t),
onMouseLeave: m(e, t),
onClick: h(e, t)
- }), c ? /*#__PURE__*/ I.createElement($Te, {
+ }), c ? /*#__PURE__*/ I.createElement(eEe, {
shape: o,
activeBar: c,
baseProps: a,
entry: e,
index: t,
dataKey: s
- }) : /*#__PURE__*/ I.createElement(eEe, {
+ }) : /*#__PURE__*/ I.createElement(tEe, {
shape: o,
baseProps: a,
entry: e,
@@ -62607,16 +62634,16 @@ function tEe(e) {
dataKey: s
})))) : null;
}
-function nEe(e) {
- var { props: t, previousRectanglesRef: n } = e, { data: r, layout: i, isAnimationActive: a, animationBegin: o, animationDuration: s, animationEasing: c, onAnimationEnd: l, onAnimationStart: u } = t, d = n.current, f = Jq(t, "recharts-bar-"), [p, m] = (0, I.useState)(!1), h = !p, g = (0, I.useCallback)(() => {
+function rEe(e) {
+ var { props: t, previousRectanglesRef: n } = e, { data: r, layout: i, isAnimationActive: a, animationBegin: o, animationDuration: s, animationEasing: c, onAnimationEnd: l, onAnimationStart: u } = t, d = n.current, f = Yq(t, "recharts-bar-"), [p, m] = (0, I.useState)(!1), h = !p, g = (0, I.useCallback)(() => {
typeof l == "function" && l(), m(!1);
}, [l]), _ = (0, I.useCallback)(() => {
typeof u == "function" && u(), m(!0);
}, [u]);
- return /*#__PURE__*/ I.createElement(QTe, {
+ return /*#__PURE__*/ I.createElement($Te, {
showLabels: h,
rects: r
- }, /*#__PURE__*/ I.createElement(qq, {
+ }, /*#__PURE__*/ I.createElement(Jq, {
animationId: f,
begin: o,
duration: s,
@@ -62629,68 +62656,68 @@ function nEe(e) {
var a = e === 1 ? r : r?.map((t, n) => {
var r = d && d[n];
if (r) return P8(P8({}, t), {}, {
- x: az(r.x, t.x, e),
- y: az(r.y, t.y, e),
- width: az(r.width, t.width, e),
- height: az(r.height, t.height, e)
+ x: oz(r.x, t.x, e),
+ y: oz(r.y, t.y, e),
+ width: oz(r.width, t.width, e),
+ height: oz(r.height, t.height, e)
});
if (i === "horizontal") {
- var a = az(0, t.height, e), o = az(t.stackedBarStart, t.y, e);
+ var a = oz(0, t.height, e), o = oz(t.stackedBarStart, t.y, e);
return P8(P8({}, t), {}, {
y: o,
height: a
});
}
- var s = az(0, t.width, e), c = az(t.stackedBarStart, t.x, e);
+ var s = oz(0, t.width, e), c = oz(t.stackedBarStart, t.x, e);
return P8(P8({}, t), {}, {
width: s,
x: c
});
});
- return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ I.createElement(XL, null, /*#__PURE__*/ I.createElement(tEe, {
+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ I.createElement(ZL, null, /*#__PURE__*/ I.createElement(nEe, {
props: t,
data: a
}));
}), /*#__PURE__*/ I.createElement(p4, { label: t.label }), t.children);
}
-function rEe(e) {
+function iEe(e) {
var t = (0, I.useRef)(null);
- return /*#__PURE__*/ I.createElement(nEe, {
+ return /*#__PURE__*/ I.createElement(rEe, {
previousRectanglesRef: t,
props: e
});
}
-var I8 = 0, iEe = (e, t) => {
+var I8 = 0, aEe = (e, t) => {
var n = Array.isArray(e.value) ? e.value[1] : e.value;
return {
x: e.x,
y: e.y,
value: n,
- errorVal: qH(e, t)
+ errorVal: JH(e, t)
};
-}, aEe = class extends I.PureComponent {
+}, oEe = class extends I.PureComponent {
render() {
var { hide: e, data: t, dataKey: n, className: r, xAxisId: i, yAxisId: a, needClip: o, background: s, id: c } = this.props;
if (e || t == null) return null;
var l = Wm("recharts-bar", r), u = c;
- return /*#__PURE__*/ I.createElement(XL, {
+ return /*#__PURE__*/ I.createElement(ZL, {
className: l,
id: c
}, o && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement(X6, {
clipPathId: u,
xAxisId: i,
yAxisId: a
- })), /*#__PURE__*/ I.createElement(XL, {
+ })), /*#__PURE__*/ I.createElement(ZL, {
className: "recharts-bar-rectangles",
clipPath: o ? `url(#clipPath-${u})` : void 0
- }, /*#__PURE__*/ I.createElement(ZTe, {
+ }, /*#__PURE__*/ I.createElement(QTe, {
data: t,
dataKey: n,
background: s,
allOtherBarProps: this.props
- }), /*#__PURE__*/ I.createElement(rEe, this.props)));
+ }), /*#__PURE__*/ I.createElement(iEe, this.props)));
}
-}, oEe = {
+}, sEe = {
activeBar: !1,
animationBegin: 0,
animationDuration: 400,
@@ -62703,19 +62730,19 @@ var I8 = 0, iEe = (e, t) => {
minPointSize: I8,
xAxisId: 0,
yAxisId: 0,
- zIndex: kY.bar
+ zIndex: AY.bar
};
-function sEe(e) {
- var { xAxisId: t, yAxisId: n, hide: r, legendType: i, minPointSize: a, activeBar: o, animationBegin: s, animationDuration: c, animationEasing: l, isAnimationActive: u } = e, { needClip: d } = Y6(t, n), f = _W(), p = IU(), m = n3(e.children, y2), h = Q((t) => PTe(t, e.id, p, m));
+function cEe(e) {
+ var { xAxisId: t, yAxisId: n, hide: r, legendType: i, minPointSize: a, activeBar: o, animationBegin: s, animationDuration: c, animationEasing: l, isAnimationActive: u } = e, { needClip: d } = Y6(t, n), f = vW(), p = LU(), m = n3(e.children, y2), h = Q((t) => FTe(t, e.id, p, m));
if (f !== "vertical" && f !== "horizontal") return null;
var g, _ = h?.[0];
return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ I.createElement(J6, {
xAxisId: t,
yAxisId: n,
data: h,
- dataPointFormatter: iEe,
+ dataPointFormatter: aEe,
errorBarOffset: g
- }, /*#__PURE__*/ I.createElement(aEe, M8({}, e, {
+ }, /*#__PURE__*/ I.createElement(oEe, M8({}, e, {
layout: f,
needClip: d,
data: h,
@@ -62731,20 +62758,20 @@ function sEe(e) {
isAnimationActive: u
})));
}
-function cEe(e) {
- var { layout: t, barSettings: { dataKey: n, minPointSize: r, hasCustomShape: i }, pos: a, bandSize: o, xAxis: s, yAxis: c, xAxisTicks: l, yAxisTicks: u, stackedData: d, displayedData: f, offset: p, cells: m, parentViewBox: h, dataStartIndex: g } = e, _ = t === "horizontal" ? c : s, v = d ? _.scale.domain() : null, y = iU({ numericAxis: _ }), b = _.scale.map(y);
+function lEe(e) {
+ var { layout: t, barSettings: { dataKey: n, minPointSize: r, hasCustomShape: i }, pos: a, bandSize: o, xAxis: s, yAxis: c, xAxisTicks: l, yAxisTicks: u, stackedData: d, displayedData: f, offset: p, cells: m, parentViewBox: h, dataStartIndex: g } = e, _ = t === "horizontal" ? c : s, v = d ? _.scale.domain() : null, y = aU({ numericAxis: _ }), b = _.scale.map(y);
return f.map((e, f) => {
var _, x, S, C, w, T;
if (d) {
var E = d[f + g];
if (E == null) return null;
- _ = QH(E, v);
- } else _ = qH(e, n), Array.isArray(_) || (_ = [y, _]);
- var D = ETe(r, I8)(_[1], f);
+ _ = $H(E, v);
+ } else _ = JH(e, n), Array.isArray(_) || (_ = [y, _]);
+ var D = DTe(r, I8)(_[1], f);
if (t === "horizontal") {
var O = c.scale.map(_[0]), k = c.scale.map(_[1]);
if (O == null || k == null) return null;
- x = rU({
+ x = iU({
axis: s,
ticks: l,
bandSize: o,
@@ -62753,19 +62780,19 @@ function cEe(e) {
index: f
}), S = k ?? O ?? void 0, C = a.size;
var A = O - k;
- if (w = $R(A) ? 0 : A, T = {
+ if (w = ez(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 = QR(w || D) * (Math.abs(D) - Math.abs(w));
+ var j = $R(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 = rU({
+ if (x = M, S = iU({
axis: c,
ticks: u,
bandSize: o,
@@ -62778,7 +62805,7 @@ function cEe(e) {
width: p.width,
height: w
}, Math.abs(D) > 0 && Math.abs(C) < Math.abs(D)) {
- var ee = QR(C || D) * (Math.abs(D) - Math.abs(C));
+ var ee = $R(C || D) * (Math.abs(D) - Math.abs(C));
C += ee;
}
}
@@ -62800,12 +62827,12 @@ function cEe(e) {
}, m && m[f] && m[f].props);
}).filter(Boolean);
}
-function lEe(e) {
- var t = bz(e, oEe), n = RTe(t.stackId), r = IU();
+function uEe(e) {
+ var t = xz(e, sEe), n = zTe(t.stackId), r = LU();
return /*#__PURE__*/ I.createElement(y3, {
id: t.id,
type: "bar"
- }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(_3, { legendPayload: YTe(t) }), /*#__PURE__*/ I.createElement(XTe, {
+ }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(_3, { legendPayload: XTe(t) }), /*#__PURE__*/ I.createElement(ZTe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -62830,23 +62857,23 @@ function lEe(e) {
maxBarSize: t.maxBarSize,
isPanorama: r,
hasCustomShape: t.shape != null
- }), /*#__PURE__*/ I.createElement(n2, { zIndex: t.zIndex }, /*#__PURE__*/ I.createElement(sEe, M8({}, t, { id: e })))));
+ }), /*#__PURE__*/ I.createElement(n2, { zIndex: t.zIndex }, /*#__PURE__*/ I.createElement(cEe, M8({}, t, { id: e })))));
}
-var L8 = /*#__PURE__*/ I.memo(lEe, WG);
+var L8 = /*#__PURE__*/ I.memo(uEe, GG);
L8.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
-var uEe = ["domain", "range"], dEe = ["domain", "range"];
+var dEe = ["domain", "range"], fEe = ["domain", "range"];
function R8(e, t) {
if (e == null) return {};
- var n, r, i = fEe(e, t);
+ var n, r, i = pEe(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 fEe(e, t) {
+function pEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62860,16 +62887,16 @@ function z8(e, t) {
}
function B8(e, t) {
if (e === t) return !0;
- var { domain: n, range: r } = e, i = R8(e, uEe), { domain: a, range: o } = t, s = R8(t, dEe);
- return !z8(n, a) || !z8(r, o) ? !1 : WG(i, s);
+ var { domain: n, range: r } = e, i = R8(e, dEe), { domain: a, range: o } = t, s = R8(t, fEe);
+ return !z8(n, a) || !z8(r, o) ? !1 : GG(i, s);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/XAxis.js
-var pEe = ["type"], mEe = [
+var mEe = ["type"], hEe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], hEe = ["id", "scale"];
+], gEe = ["id", "scale"];
function V8() {
return V8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -62893,26 +62920,26 @@ function U8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? H8(Object(n), !0).forEach(function(t) {
- gEe(e, t, n[t]);
+ _Ee(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function gEe(e, t, n) {
- return (t = _Ee(t)) in e ? Object.defineProperty(e, t, {
+function _Ee(e, t, n) {
+ return (t = vEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function _Ee(e) {
- var t = vEe(e, "string");
+function vEe(e) {
+ var t = yEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function vEe(e, t) {
+function yEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62924,14 +62951,14 @@ function vEe(e, t) {
}
function W8(e, t) {
if (e == null) return {};
- var n, r, i = yEe(e, t);
+ var n, r, i = bEe(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 yEe(e, t) {
+function bEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62940,23 +62967,23 @@ function yEe(e, t) {
}
return n;
}
-function bEe(e) {
- var t = qz(), n = (0, I.useRef)(null), r = vW(), { type: i } = e, a = W8(e, pEe), o = NY(r, "xAxis", i), s = (0, I.useMemo)(() => {
+function xEe(e) {
+ var t = Jz(), n = (0, I.useRef)(null), r = yW(), { type: i } = e, a = W8(e, mEe), o = PY(r, "xAxis", i), s = (0, I.useMemo)(() => {
if (o != null) return U8(U8({}, a), {}, { type: o });
}, [a, o]);
return (0, I.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(Ixe(s)) : n.current !== s && t(Lxe({
+ s != null && (n.current === null ? t(Lxe(s)) : n.current !== s && t(Rxe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, I.useLayoutEffect)(() => () => {
- n.current &&= (t(Rxe(n.current)), null);
+ n.current &&= (t(zxe(n.current)), null);
}, [t]), null;
}
-var xEe = (e) => {
- var { xAxisId: t, className: n } = e, r = Q(PU), i = IU(), a = "xAxis", o = Q((e) => K1(e, a, t, i)), s = Q((e) => R1(e, t)), c = Q((e) => Hge(e, t)), l = Q((e) => M$(e, t));
+var SEe = (e) => {
+ var { xAxisId: t, className: n } = e, r = Q(FU), i = LU(), a = "xAxis", o = Q((e) => K1(e, a, t, i)), s = Q((e) => R1(e, t)), c = Q((e) => Uge(e, t)), l = Q((e) => M$(e, t));
if (s == null || c == null || l == null) return null;
- var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = W8(e, mEe), { id: m, scale: h } = l, g = W8(l, hEe);
+ var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = W8(e, hEe), { id: m, scale: h } = l, g = W8(l, gEe);
return /*#__PURE__*/ I.createElement(B6, V8({}, p, g, {
x: c.x,
y: c.y,
@@ -62968,7 +62995,7 @@ var xEe = (e) => {
axisType: a,
axisId: t
}));
-}, SEe = {
+}, CEe = {
allowDataOverflow: j$.allowDataOverflow,
allowDecimals: j$.allowDecimals,
allowDuplicatedCategory: j$.allowDuplicatedCategory,
@@ -62993,8 +63020,8 @@ var xEe = (e) => {
niceTicks: j$.niceTicks,
xAxisId: 0
}, G8 = /*#__PURE__*/ I.memo((e) => {
- var t = bz(e, SEe);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(bEe, {
+ var t = xz(e, CEe);
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(xEe, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
allowDuplicatedCategory: t.allowDuplicatedCategory,
@@ -63020,16 +63047,16 @@ var xEe = (e) => {
type: t.type,
unit: t.unit,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ I.createElement(xEe, t));
+ }), /*#__PURE__*/ I.createElement(SEe, t));
}, B8);
G8.displayName = "XAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/YAxis.js
-var CEe = ["type"], wEe = [
+var wEe = ["type"], TEe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], TEe = ["id", "scale"];
+], EEe = ["id", "scale"];
function K8() {
return K8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -63053,26 +63080,26 @@ function J8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? q8(Object(n), !0).forEach(function(t) {
- EEe(e, t, n[t]);
+ DEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function EEe(e, t, n) {
- return (t = DEe(t)) in e ? Object.defineProperty(e, t, {
+function DEe(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 DEe(e) {
- var t = OEe(e, "string");
+function OEe(e) {
+ var t = kEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function OEe(e, t) {
+function kEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63084,14 +63111,14 @@ function OEe(e, t) {
}
function Y8(e, t) {
if (e == null) return {};
- var n, r, i = kEe(e, t);
+ var n, r, i = AEe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function kEe(e, t) {
+function AEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63100,27 +63127,27 @@ function kEe(e, t) {
}
return n;
}
-function AEe(e) {
- var t = qz(), n = (0, I.useRef)(null), r = vW(), { type: i } = e, a = Y8(e, CEe), o = NY(r, "yAxis", i), s = (0, I.useMemo)(() => {
+function jEe(e) {
+ var t = Jz(), n = (0, I.useRef)(null), r = yW(), { type: i } = e, a = Y8(e, wEe), o = PY(r, "yAxis", i), s = (0, I.useMemo)(() => {
if (o != null) return J8(J8({}, a), {}, { type: o });
}, [o, a]);
return (0, I.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(zxe(s)) : n.current !== s && t(Bxe({
+ s != null && (n.current === null ? t(Bxe(s)) : n.current !== s && t(Vxe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, I.useLayoutEffect)(() => () => {
- n.current &&= (t(Vxe(n.current)), null);
+ n.current &&= (t(Hxe(n.current)), null);
}, [t]), null;
}
-function jEe(e) {
- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = Q(PU), c = IU(), l = qz(), u = "yAxis", d = Q((e) => B1(e, t)), f = Q((e) => Uge(e, t)), p = Q((e) => K1(e, u, t, c)), m = Q((e) => F$(e, t));
+function MEe(e) {
+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = Q(FU), c = LU(), l = Jz(), u = "yAxis", d = Q((e) => B1(e, t)), f = Q((e) => Wge(e, t)), p = Q((e) => K1(e, u, t, c)), m = Q((e) => F$(e, t));
if ((0, I.useLayoutEffect)(() => {
if (!(r !== "auto" || !d || n4(i) || /*#__PURE__*/ (0, I.isValidElement)(i) || m == null)) {
var e = a.current;
if (e) {
var n = e.getCalculatedWidth();
- Math.round(d.width) !== Math.round(n) && l(Gxe({
+ Math.round(d.width) !== Math.round(n) && l(Kxe({
id: t,
width: n
}));
@@ -63135,7 +63162,7 @@ function jEe(e) {
r,
m
]), d == null || f == null || m == null) return null;
- var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = Y8(e, wEe), { id: y, scale: b } = m, x = Y8(m, TEe);
+ var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = Y8(e, TEe), { id: y, scale: b } = m, x = Y8(m, EEe);
return /*#__PURE__*/ I.createElement(B6, K8({}, v, x, {
ref: a,
labelRef: o,
@@ -63151,7 +63178,7 @@ function jEe(e) {
axisId: t
}));
}
-var MEe = {
+var NEe = {
allowDataOverflow: P$.allowDataOverflow,
allowDecimals: P$.allowDecimals,
allowDuplicatedCategory: P$.allowDuplicatedCategory,
@@ -63176,8 +63203,8 @@ var MEe = {
width: P$.width,
yAxisId: 0
}, X8 = /*#__PURE__*/ I.memo((e) => {
- var t = bz(e, MEe);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(AEe, {
+ var t = xz(e, NEe);
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(jEe, {
interval: t.interval,
id: t.yAxisId,
scale: t.scale,
@@ -63203,27 +63230,27 @@ var MEe = {
tick: t.tick,
tickFormatter: t.tickFormatter,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ I.createElement(jEe, t));
+ }), /*#__PURE__*/ I.createElement(MEe, t));
}, B8);
X8.displayName = "YAxis";
var Z8 = $([
(e, t) => t,
- gW,
- ZY,
- oX,
+ _W,
+ QY,
+ sX,
O0,
A0,
- z_e,
- MU
-], K_e);
+ B_e,
+ NU
+], q_e);
//#endregion
//#region node_modules/recharts/es6/util/getRelativeCoordinate.js
-function NEe(e) {
+function PEe(e) {
return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";
}
function Q8(e) {
var t = e.currentTarget.getBoundingClientRect(), n, r;
- if (NEe(e)) {
+ if (PEe(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 {
@@ -63238,19 +63265,19 @@ function Q8(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js
-var $8 = CV("mouseClick"), e5 = jH();
+var $8 = wV("mouseClick"), e5 = MH();
e5.startListening({
actionCreator: $8,
effect: (e, t) => {
var n = e.payload, r = Z8(t.getState(), Q8(n));
- r?.activeIndex != null && t.dispatch($ge({
+ r?.activeIndex != null && t.dispatch(e_e({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
});
-var t5 = CV("mouseMove"), n5 = jH(), r5 = null, i5 = null, a5 = null;
+var t5 = wV("mouseMove"), n5 = MH(), r5 = null, i5 = null, a5 = null;
n5.startListening({
actionCreator: t5,
effect: (e, t) => {
@@ -63281,7 +63308,7 @@ n5.startListening({
});
//#endregion
//#region node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js
-function PEe(e, t) {
+function FEe(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
@@ -63298,17 +63325,17 @@ var o5 = {
syncMethod: "index",
baseValue: void 0,
reverseStackOrder: !1
-}, s5 = GV({
+}, s5 = KV({
name: "rootProps",
initialState: o5,
reducers: { updateOptions: (e, t) => {
e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? o5.barGap, e.barSize = t.payload.barSize, e.maxBarSize = t.payload.maxBarSize, e.stackOffset = t.payload.stackOffset, e.syncId = t.payload.syncId, e.syncMethod = t.payload.syncMethod, e.className = t.payload.className, e.baseValue = t.payload.baseValue, e.reverseStackOrder = t.payload.reverseStackOrder;
} }
-}), FEe = s5.reducer, { updateOptions: IEe } = s5.actions, c5 = GV({
+}), IEe = s5.reducer, { updateOptions: LEe } = s5.actions, c5 = KV({
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: LEe } = c5.actions, REe = c5.reducer, l5 = CV("keyDown"), u5 = CV("focus"), d5 = CV("blur"), f5 = jH(), p5 = null, m5 = null, h5 = null;
+}), { updatePolarOptions: REe } = c5.actions, zEe = c5.reducer, l5 = wV("keyDown"), u5 = wV("focus"), d5 = wV("blur"), f5 = MH(), p5 = null, m5 = null, h5 = null;
f5.startListening({
actionCreator: l5,
effect: (e, t) => {
@@ -63333,7 +63360,7 @@ f5.startListening({
}));
return;
}
- var c = Wge(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
+ var c = Gge(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
if (o == null || l >= o.length || l < 0) return;
var u = Z0(e, "axis", "hover", String(l));
t.dispatch(s0({
@@ -63396,7 +63423,7 @@ function g5(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/externalEventsMiddleware.js
-var _5 = CV("externalEvent"), v5 = jH(), y5 = /* @__PURE__ */ new Map(), b5 = /* @__PURE__ */ new Map(), x5 = /* @__PURE__ */ new Map();
+var _5 = wV("externalEvent"), v5 = MH(), y5 = /* @__PURE__ */ new Map(), b5 = /* @__PURE__ */ new Map(), x5 = /* @__PURE__ */ new Map();
v5.startListening({
actionCreator: _5,
effect: (e, t) => {
@@ -63416,12 +63443,12 @@ v5.startListening({
try {
if (!e) return;
var { handler: n, reactEvent: r } = e, a = t.getState(), o = {
- activeCoordinate: T_e(a),
+ activeCoordinate: E_e(a),
activeDataKey: L0(a),
activeIndex: F0(a),
activeLabel: I0(a),
activeTooltipIndex: F0(a),
- isTooltipActive: E_e(a)
+ isTooltipActive: D_e(a)
};
n && n(o, r);
} finally {
@@ -63445,7 +63472,7 @@ v5.startListening({
}
}
});
-var zEe = $([
+var BEe = $([
$([h0], (e) => e.tooltipItemPayloads),
(e, t) => t,
(e, t, n) => n
@@ -63457,7 +63484,7 @@ var zEe = $([
if (i != null) return i(t);
}
}
-}), S5 = CV("touchMove"), C5 = jH(), w5 = null, T5 = null, E5 = null, D5 = null;
+}), S5 = wV("touchMove"), C5 = MH(), w5 = null, T5 = null, E5 = null, D5 = null;
C5.startListening({
actionCreator: S5,
effect: (e, t) => {
@@ -63490,9 +63517,9 @@ C5.startListening({
if (document.elementFromPoint == null || a == null) return;
var o = document.elementFromPoint(a.clientX, a.clientY);
if (!o || !o.getAttribute) return;
- var s = o.getAttribute(xU), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = x0(e).find((e) => e.id === c);
+ var s = o.getAttribute(SU), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = x0(e).find((e) => e.id === c);
if (s == null || l == null || c == null) return;
- var { dataKey: u } = l, d = zEe(e, s, c);
+ var { dataKey: u } = l, d = BEe(e, s, c);
t.dispatch(r0({
activeDataKey: u,
activeIndex: s,
@@ -63524,33 +63551,33 @@ var O5 = {
"scroll",
"wheel"
]
-}, k5 = GV({
+}, k5 = KV({
name: "eventSettings",
initialState: O5,
reducers: { setEventSettings: (e, t) => {
- t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = vG(t.payload.throttledEvents));
+ t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = yG(t.payload.throttledEvents));
} }
-}), { setEventSettings: BEe } = k5.actions, VEe = k5.reducer, HEe = dB({
- brush: aCe,
- cartesianAxis: Kxe,
- chartData: yve,
- errorBars: wwe,
- eventSettings: VEe,
- graphicalItems: Sxe,
- layout: RH,
- legend: TG,
- options: mve,
- polarAxis: fbe,
- polarOptions: REe,
- referenceElements: gCe,
- renderedTicks: WCe,
- rootProps: FEe,
- tooltip: e_e,
- zIndex: ave
-}), UEe = function(e) {
+}), { setEventSettings: VEe } = k5.actions, HEe = k5.reducer, UEe = fB({
+ brush: oCe,
+ cartesianAxis: qxe,
+ chartData: bve,
+ errorBars: Twe,
+ eventSettings: HEe,
+ graphicalItems: Cxe,
+ layout: zH,
+ legend: EG,
+ options: hve,
+ polarAxis: pbe,
+ polarOptions: zEe,
+ referenceElements: _Ce,
+ renderedTicks: GCe,
+ rootProps: IEe,
+ tooltip: t_e,
+ zIndex: ove
+}), WEe = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";
- return FV({
- reducer: HEe,
+ return IV({
+ reducer: UEe,
preloadedState: e,
middleware: (e) => e({
serializableCheck: !1,
@@ -63568,10 +63595,10 @@ var O5 = {
]),
enhancers: (e) => {
var t = e;
- return typeof e == "function" && (t = e()), t.concat(NV({ type: "raf" }));
+ return typeof e == "function" && (t = e()), t.concat(PV({ type: "raf" }));
},
- devTools: TK.devToolsEnabled && {
- serialize: { replacer: PEe },
+ devTools: EK.devToolsEnabled && {
+ serialize: { replacer: FEe },
name: `recharts-${t}`
}
});
@@ -63579,21 +63606,21 @@ var O5 = {
//#endregion
//#region node_modules/recharts/es6/state/RechartsStoreProvider.js
function A5(e) {
- var { preloadedState: t, children: n, reduxStoreName: r } = e, i = IU(), a = (0, I.useRef)(null);
+ var { preloadedState: t, children: n, reduxStoreName: r } = e, i = LU(), a = (0, I.useRef)(null);
if (i) return n;
- a.current ??= UEe(t, r);
- var o = Kz;
- return /*#__PURE__*/ I.createElement(VG, {
+ a.current ??= WEe(t, r);
+ var o = qz;
+ return /*#__PURE__*/ I.createElement(HG, {
context: o,
store: a.current
}, n);
}
//#endregion
//#region node_modules/recharts/es6/state/ReportMainChartProps.js
-function WEe(e) {
- var { layout: t, margin: n } = e, r = qz(), i = IU();
+function GEe(e) {
+ var { layout: t, margin: n } = e, r = Jz(), i = LU();
return (0, I.useEffect)(() => {
- i || (r(FH(t)), r(PH(n)));
+ i || (r(IH(t)), r(FH(n)));
}, [
r,
i,
@@ -63601,31 +63628,31 @@ function WEe(e) {
n
]), null;
}
-var j5 = /*#__PURE__*/ (0, I.memo)(WEe, WG);
+var j5 = /*#__PURE__*/ (0, I.memo)(GEe, GG);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
function M5(e) {
- var t = qz();
+ var t = Jz();
return (0, I.useEffect)(() => {
- t(IEe(e));
+ t(LEe(e));
}, [t, e]), null;
}
var N5 = /*#__PURE__*/ (0, I.memo)((e) => {
- var t = qz();
+ var t = Jz();
return (0, I.useEffect)(() => {
- t(BEe(e));
+ t(VEe(e));
}, [t, e]), null;
-}, WG);
+}, GG);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
function P5(e) {
- var { zIndex: t, isPanorama: n } = e, r = (0, I.useRef)(null), i = qz();
- return (0, I.useLayoutEffect)(() => (r.current && i(rve({
+ var { zIndex: t, isPanorama: n } = e, r = (0, I.useRef)(null), i = Jz();
+ return (0, I.useLayoutEffect)(() => (r.current && i(ive({
zIndex: t,
element: r.current,
isPanorama: n
})), () => {
- i(ive({
+ i(ave({
zIndex: t,
isPanorama: n
}));
@@ -63640,7 +63667,7 @@ function P5(e) {
});
}
function F5(e) {
- var { children: t, isPanorama: n } = e, r = Q(J_e);
+ var { children: t, isPanorama: n } = e, r = Q(Y_e);
if (!r || r.length === 0) return t;
var i = r.filter((e) => e < 0), a = r.filter((e) => e > 0);
return /*#__PURE__*/ I.createElement(I.Fragment, null, i.map((e) => /*#__PURE__*/ I.createElement(P5, {
@@ -63655,17 +63682,17 @@ function F5(e) {
}
//#endregion
//#region node_modules/recharts/es6/container/RootSurface.js
-var GEe = ["children"];
-function KEe(e, t) {
+var KEe = ["children"];
+function qEe(e, t) {
if (e == null) return {};
- var n, r, i = qEe(e, t);
+ var n, r, i = JEe(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 qEe(e, t) {
+function JEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63683,46 +63710,46 @@ function I5() {
return e;
}, I5.apply(null, arguments);
}
-var JEe = {
+var YEe = {
width: "100%",
height: "100%",
display: "block"
-}, YEe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = pW(), r = mW(), i = FK();
- if (!VH(n) || !VH(r)) return null;
+}, XEe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var n = mW(), r = hW(), i = IK();
+ if (!HH(n) || !HH(r)) return null;
var { children: a, otherAttributes: o, title: s, desc: c } = e, l, u;
- return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ I.createElement(JL, I5({}, o, {
+ return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ I.createElement(YL, I5({}, o, {
title: s,
desc: c,
role: u,
tabIndex: l,
width: n,
height: r,
- style: JEe,
+ style: YEe,
ref: t
}), a);
-}), XEe = (e) => {
- var { children: t } = e, n = Q(RU);
+}), ZEe = (e) => {
+ var { children: t } = e, n = Q(zU);
if (!n) return null;
var { width: r, height: i, y: a, x: o } = n;
- return /*#__PURE__*/ I.createElement(JL, {
+ return /*#__PURE__*/ I.createElement(YL, {
width: r,
height: i,
x: o,
y: a
}, t);
}, L5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { children: n } = e, r = KEe(e, GEe);
- return IU() ? /*#__PURE__*/ I.createElement(XEe, null, /*#__PURE__*/ I.createElement(F5, { isPanorama: !0 }, n)) : /*#__PURE__*/ I.createElement(YEe, I5({ ref: t }, r), /*#__PURE__*/ I.createElement(F5, { isPanorama: !1 }, n));
+ var { children: n } = e, r = qEe(e, KEe);
+ return LU() ? /*#__PURE__*/ I.createElement(ZEe, null, /*#__PURE__*/ I.createElement(F5, { isPanorama: !0 }, n)) : /*#__PURE__*/ I.createElement(XEe, I5({ ref: t }, r), /*#__PURE__*/ I.createElement(F5, { isPanorama: !1 }, n));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
-function ZEe() {
- var e = qz(), [t, n] = (0, I.useState)(null), r = Q(_U);
+function QEe() {
+ var e = Jz(), [t, n] = (0, I.useState)(null), r = Q(vU);
return (0, I.useEffect)(() => {
if (t != null) {
var n = t.getBoundingClientRect().width / t.offsetWidth;
- BH(n) && n !== r && e(LH(n));
+ VH(n) && n !== r && e(RH(n));
}
}, [
t,
@@ -63742,30 +63769,30 @@ function R5(e, t) {
}
return n;
}
-function QEe(e) {
+function $Ee(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? R5(Object(n), !0).forEach(function(t) {
- $Ee(e, t, n[t]);
+ eDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function $Ee(e, t, n) {
- return (t = eDe(t)) in e ? Object.defineProperty(e, t, {
+function eDe(e, t, n) {
+ return (t = tDe(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 tDe(e) {
+ var t = nDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function tDe(e, t) {
+function nDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63784,7 +63811,7 @@ function z5() {
return e;
}, z5.apply(null, arguments);
}
-var nDe = () => (Ove(), null);
+var rDe = () => (kve(), null);
function B5(e) {
if (typeof e == "number") return e;
if (typeof e == "string") {
@@ -63793,7 +63820,7 @@ function B5(e) {
}
return 0;
}
-var rDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+var iDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var n = (0, I.useRef)(null), [r, i] = (0, I.useState)({
containerWidth: B5(e.style?.width),
containerHeight: B5(e.style?.height)
@@ -63821,11 +63848,11 @@ var rDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
}, [t, a]);
return (0, I.useEffect)(() => () => {
n.current?.disconnect();
- }, [a]), /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(SW, {
+ }, [a]), /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(CW, {
width: r.containerWidth,
height: r.containerHeight
}), /*#__PURE__*/ I.createElement("div", z5({ ref: o }, e)));
-}), iDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+}), aDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var { width: n, height: r } = e, [i, a] = (0, I.useState)({
containerWidth: B5(n),
containerHeight: B5(r)
@@ -63843,32 +63870,32 @@ var rDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
o(n, r);
}
}, [t, o]);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(SW, {
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(CW, {
width: i.containerWidth,
height: i.containerHeight
}), /*#__PURE__*/ I.createElement("div", z5({ ref: s }, e)));
-}), aDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+}), oDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(SW, {
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(CW, {
width: n,
height: r
}), /*#__PURE__*/ I.createElement("div", z5({ ref: t }, e)));
-}), oDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+}), sDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ I.createElement(iDe, z5({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ I.createElement(aDe, z5({}, e, {
+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ I.createElement(aDe, z5({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ I.createElement(oDe, z5({}, e, {
width: n,
height: r,
ref: t
- })) : /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(SW, {
+ })) : /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(CW, {
width: n,
height: r
}), /*#__PURE__*/ I.createElement("div", z5({ ref: t }, e)));
});
-function sDe(e) {
- return e ? rDe : oDe;
+function cDe(e) {
+ return e ? iDe : sDe;
}
-var cDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, I.useRef)(null), x = qz(), [S, C] = (0, I.useState)(null), [w, T] = (0, I.useState)(null), E = ZEe(), D = oW(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, I.useCallback)((e) => {
+var lDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, I.useRef)(null), x = Jz(), [S, C] = (0, I.useState)(null), [w, T] = (0, I.useState)(null), E = QEe(), D = sW(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, I.useCallback)((e) => {
E(e), typeof t == "function" && t(e), C(e), T(e), e != null && (b.current = e);
}, [
E,
@@ -63940,12 +63967,12 @@ var cDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
handler: p,
reactEvent: e
}));
- }, [x, p]), ce = sDe(v);
- return /*#__PURE__*/ I.createElement(o2.Provider, { value: S }, /*#__PURE__*/ I.createElement(ZL.Provider, { value: w }, /*#__PURE__*/ I.createElement(ce, {
+ }, [x, p]), ce = cDe(v);
+ return /*#__PURE__*/ I.createElement(o2.Provider, { value: S }, /*#__PURE__*/ I.createElement(QL.Provider, { value: w }, /*#__PURE__*/ I.createElement(ce, {
width: O ?? g?.width,
height: k ?? g?.height,
className: Wm("recharts-wrapper", r),
- style: QEe({
+ style: $Ee({
position: "relative",
cursor: "default",
width: O,
@@ -63966,8 +63993,8 @@ var cDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
onTouchMove: oe,
onTouchStart: ae,
ref: A
- }, /*#__PURE__*/ I.createElement(nDe, null), n)));
-}), lDe = [
+ }, /*#__PURE__*/ I.createElement(rDe, null), n)));
+}), uDe = [
"width",
"height",
"responsive",
@@ -63978,16 +64005,16 @@ var cDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
"title",
"desc"
];
-function uDe(e, t) {
+function dDe(e, t) {
if (e == null) return {};
- var n, r, i = dDe(e, t);
+ var n, r, i = fDe(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 dDe(e, t) {
+function fDe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63997,15 +64024,15 @@ function dDe(e, t) {
return n;
}
var V5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = WL(uDe(e, lDe));
- return c ? /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(SW, {
+ var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = GL(dDe(e, uDe));
+ return c ? /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(CW, {
width: n,
height: r
}), /*#__PURE__*/ I.createElement(L5, {
otherAttributes: d,
title: l,
desc: u
- }, a)) : /*#__PURE__*/ I.createElement(cDe, {
+ }, a)) : /*#__PURE__*/ I.createElement(lDe, {
className: o,
style: s,
width: n,
@@ -64027,7 +64054,7 @@ var V5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
title: l,
desc: u,
ref: t
- }, /*#__PURE__*/ I.createElement(_Ce, null, a)));
+ }, /*#__PURE__*/ I.createElement(vCe, null, a)));
});
//#endregion
//#region node_modules/recharts/es6/chart/CartesianChart.js
@@ -64050,30 +64077,30 @@ function U5(e, t) {
}
return n;
}
-function fDe(e) {
+function pDe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? U5(Object(n), !0).forEach(function(t) {
- pDe(e, t, n[t]);
+ mDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function pDe(e, t, n) {
- return (t = mDe(t)) in e ? Object.defineProperty(e, t, {
+function mDe(e, t, n) {
+ return (t = hDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function mDe(e) {
- var t = hDe(e, "string");
+function hDe(e) {
+ var t = gDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function hDe(e, t) {
+function gDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64083,7 +64110,7 @@ function hDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var gDe = fDe({
+var _De = pDe({
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -64099,7 +64126,7 @@ var gDe = fDe({
stackOffset: "none",
syncMethod: "index"
}, O5), W5 = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- var n = bz(e.categoricalChartProps, gDe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
+ var n = xz(e.categoricalChartProps, _De), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
chartName: r,
defaultTooltipEventType: i,
validateTooltipEventTypes: a,
@@ -64128,32 +64155,32 @@ var gDe = fDe({
className: n.className,
reverseStackOrder: n.reverseStackOrder
}), /*#__PURE__*/ I.createElement(V5, H5({}, n, { ref: t })));
-}), _De = ["axis"], vDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(W5, {
+}), vDe = ["axis"], yDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(W5, {
chartName: "LineChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: _De,
+ validateTooltipEventTypes: vDe,
tooltipPayloadSearcher: u2,
categoricalChartProps: e,
ref: t
-})), yDe = ["axis", "item"], G5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(W5, {
+})), bDe = ["axis", "item"], G5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(W5, {
chartName: "BarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: yDe,
+ validateTooltipEventTypes: bDe,
tooltipPayloadSearcher: u2,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/state/ReportPolarOptions.js
-function bDe(e) {
- var t = qz();
+function xDe(e) {
+ var t = Jz();
return (0, I.useEffect)(() => {
- t(LEe(e));
+ t(REe(e));
}, [t, e]), null;
}
//#endregion
//#region node_modules/recharts/es6/chart/PolarChart.js
-var xDe = ["layout"];
+var SDe = ["layout"];
function K5() {
return K5 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -64163,16 +64190,16 @@ function K5() {
return e;
}, K5.apply(null, arguments);
}
-function SDe(e, t) {
+function CDe(e, t) {
if (e == null) return {};
- var n, r, i = CDe(e, t);
+ var n, r, i = wDe(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 CDe(e, t) {
+function wDe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64191,30 +64218,30 @@ function q5(e, t) {
}
return n;
}
-function wDe(e) {
+function TDe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? q5(Object(n), !0).forEach(function(t) {
- TDe(e, t, n[t]);
+ EDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function TDe(e, t, n) {
- return (t = EDe(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 EDe(e) {
- var t = DDe(e, "string");
+function DDe(e) {
+ var t = ODe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function DDe(e, t) {
+function ODe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64224,7 +64251,7 @@ function DDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var J5 = wDe({
+var J5 = TDe({
accessibilityLayer: !0,
stackOffset: "none",
barCategoryGap: "10%",
@@ -64244,7 +64271,7 @@ var J5 = wDe({
innerRadius: 0,
outerRadius: "80%"
}, O5), Y5 = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- var n = bz(e.categoricalChartProps, J5), { layout: r } = n, i = SDe(n, xDe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
+ var n = xz(e.categoricalChartProps, J5), { layout: r } = n, i = CDe(n, SDe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
chartName: a,
defaultTooltipEventType: o,
validateTooltipEventTypes: s,
@@ -64272,7 +64299,7 @@ var J5 = wDe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ I.createElement(bDe, {
+ }), /*#__PURE__*/ I.createElement(xDe, {
cx: n.cx,
cy: n.cy,
startAngle: n.startAngle,
@@ -64297,26 +64324,26 @@ function Z5(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? X5(Object(n), !0).forEach(function(t) {
- ODe(e, t, n[t]);
+ kDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ODe(e, t, n) {
- return (t = kDe(t)) in e ? Object.defineProperty(e, t, {
+function kDe(e, t, n) {
+ return (t = ADe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function kDe(e) {
- var t = ADe(e, "string");
+function ADe(e) {
+ var t = jDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ADe(e, t) {
+function jDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64326,24 +64353,24 @@ function ADe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var jDe = ["axis"], MDe = Z5(Z5({}, J5), {}, {
+var MDe = ["axis"], NDe = Z5(Z5({}, J5), {}, {
layout: "centric",
startAngle: 90,
endAngle: -270
-}), NDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = bz(e, MDe);
+}), PDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var n = xz(e, NDe);
return /*#__PURE__*/ I.createElement(Y5, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: jDe,
+ validateTooltipEventTypes: MDe,
tooltipPayloadSearcher: u2,
categoricalChartProps: n,
ref: t
});
-}), PDe = ["axis"], FDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(W5, {
+}), FDe = ["axis"], IDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(W5, {
chartName: "AreaChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: PDe,
+ validateTooltipEventTypes: FDe,
tooltipPayloadSearcher: u2,
categoricalChartProps: e,
ref: t
@@ -64364,26 +64391,26 @@ function $5(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? Q5(Object(n), !0).forEach(function(t) {
- IDe(e, t, n[t]);
+ LDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function IDe(e, t, n) {
- return (t = LDe(t)) in e ? Object.defineProperty(e, t, {
+function LDe(e, t, n) {
+ return (t = RDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function LDe(e) {
- var t = RDe(e, "string");
+function RDe(e) {
+ var t = zDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function RDe(e, t) {
+function zDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64393,16 +64420,16 @@ function RDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var zDe = ["axis", "item"], BDe = $5($5({}, J5), {}, {
+var BDe = ["axis", "item"], VDe = $5($5({}, J5), {}, {
layout: "radial",
startAngle: 0,
endAngle: 360
-}), VDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = bz(e, BDe);
+}), HDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var n = xz(e, VDe);
return /*#__PURE__*/ I.createElement(Y5, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: zDe,
+ validateTooltipEventTypes: BDe,
tooltipPayloadSearcher: u2,
categoricalChartProps: n,
ref: t
@@ -64411,7 +64438,7 @@ var zDe = ["axis", "item"], BDe = $5($5({}, J5), {}, {
//#endregion
//#region src/react/charts/cn.ts
function e7(...e) {
- return Sw(Wm(e));
+ return Cw(Wm(e));
}
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-chart.tsx
@@ -64419,7 +64446,7 @@ var t7 = {
light: "",
dark: ".dark"
}, n7 = Object.keys(t7);
-function HDe(e) {
+function UDe(e) {
for (let [t, n] of Object.entries(e)) if (n.colors && !n7.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${n7.join(", ")}). Received empty object or invalid keys.`);
}
var r7 = I.createContext(null);
@@ -64433,7 +64460,7 @@ function a7({ id: e, config: t, initialDimension: n = {
height: 200
}, className: r, children: i, footer: a, ...o }) {
let s = I.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
- return HDe(t), /* @__PURE__ */ (0, L.jsx)(r7.Provider, {
+ return UDe(t), /* @__PURE__ */ (0, L.jsx)(r7.Provider, {
value: { config: t },
children: /* @__PURE__ */ (0, L.jsxs)("div", {
"data-slot": "chart",
@@ -64445,7 +64472,7 @@ function a7({ id: e, config: t, initialDimension: n = {
id: c,
config: t
}),
- /* @__PURE__ */ (0, L.jsx)(cW, {
+ /* @__PURE__ */ (0, L.jsx)(lW, {
className: "min-h-0 w-full flex-1",
initialDimension: n,
children: i
@@ -64464,7 +64491,7 @@ function o7({ isLoading: e }) {
})
}) : null;
}
-function UDe(e, t) {
+function WDe(e, t) {
let n = e.length;
if (n >= t) return e.slice(0, t);
let r = [], i = Math.floor(t / n), a = t % n;
@@ -64479,7 +64506,7 @@ var s7 = ({ id: e, config: t }) => {
if (!n.length) return null;
let r = (e) => n.flatMap(([t, n]) => {
let r = n.colors?.[e];
- return !r || !Array.isArray(r) || r.length === 0 ? [] : UDe(r, l7(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
+ return !r || !Array.isArray(r) || r.length === 0 ? [] : WDe(r, l7(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
}).filter(Boolean).join("\n"), i = Object.entries(t7).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
return /* @__PURE__ */ (0, L.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });
};
@@ -64493,15 +64520,15 @@ function l7(e) {
let t = n7.map((t) => e.colors?.[t]?.length ?? 0);
return Math.max(...t, 1);
}
-var WDe = (e = 10, t = 0, n = 70) => {
+var GDe = (e = 10, t = 0, n = 70) => {
let r = n - t;
return Array.from({ length: e }, () => ({ loading: Math.floor(Math.random() * r) + t }));
-}, GDe = {
+}, KDe = {
sm: "rounded-sm",
md: "rounded-md",
lg: "rounded-lg",
xl: "rounded-xl"
-}, KDe = {
+}, qDe = {
default: "bg-background",
"frosted-glass": "bg-background/70 backdrop-blur-sm"
};
@@ -64528,7 +64555,7 @@ function u7({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
if (!e || !t?.length) return /* @__PURE__ */ (0, L.jsx)("span", { className: "p-4" });
let _ = t.length === 1 && r !== "dot";
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: e7("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", GDe[p], KDe[m], n),
+ className: e7("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", KDe[p], qDe[m], n),
children: [_ ? null : g, /* @__PURE__ */ (0, L.jsx)("div", {
className: "grid gap-1.5",
children: t.filter((e) => e.type !== "none").map((e, t) => {
@@ -64542,7 +64569,7 @@ function u7({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
"w-0 border-[1.5px] border-dashed bg-transparent!": r === "dashed",
"my-0.5": _ && r === "dashed"
}),
- style: qDe(n, o)
+ style: JDe(n, o)
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: e7("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -64561,10 +64588,10 @@ function u7({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
})]
});
}
-function qDe(e, t) {
+function JDe(e, t) {
return t <= 1 ? { background: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };
}
-var d7 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, L.jsx)(Ive, {
+var d7 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, L.jsx)(Lve, {
animationDuration: e,
...t
});
@@ -64581,7 +64608,7 @@ function f7({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
onClick: () => {
c && s?.(o === r ? null : r);
},
- children: [i?.icon && !t ? /* @__PURE__ */ (0, L.jsx)(i.icon, {}) : /* @__PURE__ */ (0, L.jsx)(JDe, {
+ children: [i?.icon && !t ? /* @__PURE__ */ (0, L.jsx)(i.icon, {}) : /* @__PURE__ */ (0, L.jsx)(YDe, {
variant: l,
dataKey: r,
colorsCount: d
@@ -64590,8 +64617,8 @@ function f7({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
})
}) : null;
}
-function JDe({ variant: e, dataKey: t, colorsCount: n }) {
- let r = YDe(t, n), i = XDe(t, n);
+function YDe({ variant: e, dataKey: t, colorsCount: n }) {
+ let r = XDe(t, n), i = ZDe(t, n);
switch (e) {
case "square": return /* @__PURE__ */ (0, L.jsx)("div", {
className: "h-2 w-2 shrink-0",
@@ -64623,10 +64650,10 @@ function JDe({ variant: e, dataKey: t, colorsCount: n }) {
});
}
}
-function YDe(e, t) {
+function XDe(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 XDe(e, t) {
+function ZDe(e, t) {
let n = {
WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
WebkitMaskComposite: "xor",
@@ -64641,12 +64668,12 @@ function XDe(e, t) {
...n
};
}
-var p7 = cK, m7 = () => null, h7 = {
+var p7 = lK, m7 = () => null, h7 = {
stiffness: 300,
damping: 35,
mass: .8
};
-function ZDe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
+function QDe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
let i = I.useRef(null), [a, o] = I.useState(!1), s = (0, I.useCallback)((e) => !n.current || t <= 1 ? 0 : Math.round(e / n.current.getBoundingClientRect().width * (t - 1)), [t, n]), c = (0, I.useCallback)((t, n) => {
t.preventDefault(), t.target.setPointerCapture(t.pointerId), i.current = {
type: n,
@@ -64692,7 +64719,7 @@ function ZDe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
])
};
}
-function QDe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {
+function $De({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {
let x = I.useRef(null), S = I.useMemo(() => n ?? Object.keys(t), [n, t]), C = e.length, w = I.useId().replace(/:/g, ""), T = d !== void 0 && f !== void 0, [E, D] = I.useState(() => ({
startIndex: Math.max(0, Math.min(p, C - 1)),
endIndex: Math.max(0, Math.min(m ?? C - 1, C - 1))
@@ -64726,7 +64753,7 @@ function QDe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
startIndex: n,
endIndex: r
};
- }, [C, v]), { isDragging: A, bind: j } = ZDe({
+ }, [C, v]), { isDragging: A, bind: j } = QDe({
range: E,
totalPoints: C,
containerRef: x,
@@ -64782,7 +64809,7 @@ function QDe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
}),
/* @__PURE__ */ (0, L.jsx)("div", {
className: "absolute inset-0 overflow-hidden rounded-md",
- children: /* @__PURE__ */ (0, L.jsx)($De, {
+ children: /* @__PURE__ */ (0, L.jsx)(eOe, {
data: e,
keys: S,
chartConfig: t,
@@ -64851,7 +64878,7 @@ function g7({ side: e, position: t, label: n, bind: r }) {
})]
});
}
-function $De({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
+function eOe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
let u = I.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({
dataKey: e,
colorsCount: l7(t)
@@ -64908,10 +64935,10 @@ function $De({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
})] })] }, e);
})] });
- if (r === "line") return /* @__PURE__ */ (0, L.jsx)(cW, {
+ if (r === "line") return /* @__PURE__ */ (0, L.jsx)(lW, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, L.jsxs)(vDe, {
+ children: /* @__PURE__ */ (0, L.jsxs)(yDe, {
data: e,
margin: {
top: 4,
@@ -64935,7 +64962,7 @@ function $De({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
});
if (r === "bar") {
let n = l ?? 3;
- return /* @__PURE__ */ (0, L.jsx)(cW, {
+ return /* @__PURE__ */ (0, L.jsx)(lW, {
width: "100%",
height: "100%",
children: /* @__PURE__ */ (0, L.jsxs)(G5, {
@@ -64964,10 +64991,10 @@ function $De({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
- return /* @__PURE__ */ (0, L.jsx)(cW, {
+ return /* @__PURE__ */ (0, L.jsx)(lW, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, L.jsxs)(FDe, {
+ children: /* @__PURE__ */ (0, L.jsxs)(IDe, {
data: e,
margin: {
top: 4,
@@ -64993,7 +65020,7 @@ function $De({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
-function eOe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
+function tOe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
let [r, i] = I.useState({
startIndex: t,
endIndex: n ?? Math.max(0, e.length - 1)
@@ -65017,7 +65044,7 @@ function eOe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
}
};
}
-var tOe = {
+var nOe = {
dots: ({ id: e }) => /* @__PURE__ */ (0, L.jsx)("pattern", {
id: e,
x: "0",
@@ -65190,7 +65217,7 @@ var tOe = {
})
};
function _7({ variant: e }) {
- let t = (0, I.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = tOe[e];
+ let t = (0, I.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = nOe[e];
return /* @__PURE__ */ (0, L.jsxs)(n2, {
zIndex: -1,
children: [/* @__PURE__ */ (0, L.jsxs)("defs", { children: [
@@ -65221,7 +65248,7 @@ function _7({ variant: e }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx
-var v7 = 2, nOe = "loading", rOe = 2e3, iOe = "evil-stacked", aOe = .5, oOe = .05, sOe = [
+var v7 = 2, rOe = "loading", iOe = 2e3, aOe = "evil-stacked", oOe = .5, sOe = .05, cOe = [
0,
.7,
.5,
@@ -65233,7 +65260,7 @@ function b7() {
return e;
}
function x7({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = v7, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {
- let _ = (0, I.useId)().replace(/:/g, ""), [v] = (0, I.useState)(() => Date.now()), [y, b] = (0, I.useState)(f), [x, S] = (0, I.useState)(!1), { loadingData: C, onShimmerExit: w } = EOe(m, h), { visibleData: T, brushProps: E } = eOe({ data: t }), D = (0, I.useMemo)(() => {
+ let _ = (0, I.useId)().replace(/:/g, ""), [v] = (0, I.useState)(() => Date.now()), [y, b] = (0, I.useState)(f), [x, S] = (0, I.useState)(!1), { loadingData: C, onShimmerExit: w } = DOe(m, h), { visibleData: T, brushProps: E } = tOe({ data: t }), D = (0, I.useMemo)(() => {
let e = I.Children.toArray(n), t = e.find((e) => (0, I.isValidElement)(e) && e.type === m7), r = (0, I.isValidElement)(t) ? t.props : {};
return {
slot: {
@@ -65276,7 +65303,7 @@ function x7({ config: e, data: t, children: n, className: r, chartProps: i, stac
children: /* @__PURE__ */ (0, L.jsxs)(a7, {
className: r,
config: e,
- footer: O && !m && /* @__PURE__ */ (0, L.jsx)(QDe, {
+ footer: O && !m && /* @__PURE__ */ (0, L.jsx)($De, {
data: t,
chartConfig: e,
xDataKey: g,
@@ -65307,7 +65334,7 @@ function x7({ config: e, data: t, children: n, className: r, chartProps: i, stac
d && /* @__PURE__ */ (0, L.jsx)(_7, { variant: d }),
/* @__PURE__ */ (0, L.jsx)(k6, { color: "white" }),
D.chartChildren,
- m && /* @__PURE__ */ (0, L.jsx)(DOe, {
+ m && /* @__PURE__ */ (0, L.jsx)(OOe, {
chartId: _,
onShimmerExit: w
})
@@ -65316,7 +65343,7 @@ function x7({ config: e, data: t, children: n, className: r, chartProps: i, stac
})
});
}
-function cOe({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {
+function lOe({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {
let { config: l, isStacked: u, isHorizontal: d, isLoading: f, barRadius: p, animationType: m, introStartedAt: h, dataLength: g, selectedDataKey: _, selectDataKey: v, isMouseInChart: y } = b7(), b = (0, I.useId)().replace(/:/g, ""), x = Df();
if (f) return null;
let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {
@@ -65339,7 +65366,7 @@ function cOe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
};
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(L8, {
dataKey: e,
- stackId: u ? iOe : void 0,
+ stackId: u ? aOe : void 0,
fill: `url(#${b}-colors-${e})`,
radius: S,
isAnimationActive: !1,
@@ -65356,44 +65383,44 @@ function cOe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
}),
...c
}), /* @__PURE__ */ (0, L.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, L.jsx)(_Oe, {
+ /* @__PURE__ */ (0, L.jsx)(vOe, {
id: b,
dataKey: e,
config: l
}),
- t === "hatched" && /* @__PURE__ */ (0, L.jsx)(vOe, {
+ t === "hatched" && /* @__PURE__ */ (0, L.jsx)(yOe, {
id: b,
dataKey: e
}),
- t === "duotone" && /* @__PURE__ */ (0, L.jsx)(bOe, {
+ t === "duotone" && /* @__PURE__ */ (0, L.jsx)(xOe, {
id: b,
dataKey: e,
config: l
}),
- t === "duotone-reverse" && /* @__PURE__ */ (0, L.jsx)(xOe, {
+ t === "duotone-reverse" && /* @__PURE__ */ (0, L.jsx)(SOe, {
id: b,
dataKey: e,
config: l
}),
- t === "gradient" && /* @__PURE__ */ (0, L.jsx)(SOe, {
+ t === "gradient" && /* @__PURE__ */ (0, L.jsx)(COe, {
id: b,
dataKey: e
}),
- t === "stripped" && /* @__PURE__ */ (0, L.jsx)(COe, {
+ t === "stripped" && /* @__PURE__ */ (0, L.jsx)(wOe, {
id: b,
dataKey: e
}),
- s && /* @__PURE__ */ (0, L.jsx)(yOe, {
+ s && /* @__PURE__ */ (0, L.jsx)(bOe, {
id: b,
dataKey: e
}),
- o && /* @__PURE__ */ (0, L.jsx)(wOe, {
+ o && /* @__PURE__ */ (0, L.jsx)(TOe, {
id: b,
dataKey: e
})
] })] });
}
-function lOe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
+function uOe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
let { isLoading: o, isHorizontal: s } = b7();
return o ? null : /* @__PURE__ */ (0, L.jsx)(G8, {
tickLine: e,
@@ -65404,7 +65431,7 @@ function lOe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...a
});
}
-function uOe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
+function dOe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
let { isLoading: s, isHorizontal: c } = b7();
return s ? null : /* @__PURE__ */ (0, L.jsx)(X8, {
tickLine: e,
@@ -65416,7 +65443,7 @@ function uOe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...o
});
}
-function dOe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
+function fOe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
let { isHorizontal: i } = b7();
return /* @__PURE__ */ (0, L.jsx)(K6, {
strokeDasharray: e,
@@ -65425,7 +65452,7 @@ function dOe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
...r
});
}
-function fOe({ variant: e, roundness: t, defaultIndex: n }) {
+function pOe({ variant: e, roundness: t, defaultIndex: n }) {
let { isLoading: r, selectedDataKey: i } = b7();
return r ? null : /* @__PURE__ */ (0, L.jsx)(d7, {
cursor: !1,
@@ -65437,7 +65464,7 @@ function fOe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function pOe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
+function mOe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
let { selectedDataKey: i, selectDataKey: a } = b7();
return /* @__PURE__ */ (0, L.jsx)(p7, {
verticalAlign: n,
@@ -65451,7 +65478,7 @@ function pOe({ variant: e, align: t = "right", verticalAlign: n = "top", isClick
});
}
var S7 = (e) => {
- let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = mOe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : hOe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = gOe({
+ let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = hOe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : gOe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = _Oe({
isClickable: d,
selectedDataKey: _,
dataKey: o,
@@ -65463,7 +65490,7 @@ var S7 = (e) => {
c,
0,
0
- ] : c, A = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(vJ, {
+ ] : c, A = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(yJ, {
x: t,
y: n,
width: r,
@@ -65474,7 +65501,7 @@ var S7 = (e) => {
filter: E,
stroke: S ? `url(#${a}-colors-${o})` : void 0,
strokeWidth: S ? 1 : void 0
- }), C && /* @__PURE__ */ (0, L.jsx)(vJ, {
+ }), C && /* @__PURE__ */ (0, L.jsx)(yJ, {
x: t,
y: n - 4,
width: r,
@@ -65485,7 +65512,7 @@ var S7 = (e) => {
return /* @__PURE__ */ (0, L.jsxs)("g", {
style: O,
onClick: b,
- children: [/* @__PURE__ */ (0, L.jsx)(vJ, {
+ children: [/* @__PURE__ */ (0, L.jsx)(yJ, {
...e,
fill: "transparent"
}), w ? /* @__PURE__ */ (0, L.jsx)(Of.g, {
@@ -65496,7 +65523,7 @@ var S7 = (e) => {
children: A
}) : A]
});
-}, mOe = (e, t, n, r, i) => {
+}, hOe = (e, t, n, r, i) => {
if (e === "none" || t < 0 || n <= 0) return null;
let a = n - 1, o = a / 2, s;
switch (e) {
@@ -65511,11 +65538,11 @@ var S7 = (e) => {
break;
default: s = t;
}
- let c = s * oOe * 1e3, l = aOe * 1e3, u = c + l, d = Date.now() - i;
+ let c = s * sOe * 1e3, l = oOe * 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: sOe,
+ ease: cOe,
delay: Math.max(0, c - d) / 1e3
};
return r ? {
@@ -65529,7 +65556,7 @@ var S7 = (e) => {
transition: p,
style: { originY: 1 }
};
-}, hOe = (e, t, n) => {
+}, gOe = (e, t, n) => {
switch (e) {
case "hatched": return `url(#${t}-hatched-${n})`;
case "duotone": return `url(#${t}-duotone-${n})`;
@@ -65538,10 +65565,10 @@ var S7 = (e) => {
case "stripped": return `url(#${t}-stripped-${n})`;
default: return `url(#${t}-colors-${n})`;
}
-}, gOe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
+}, _Oe = ({ 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;
-}, _Oe = ({ id: e, dataKey: t, config: n }) => {
+}, vOe = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
@@ -65563,7 +65590,7 @@ var S7 = (e) => {
}, i);
})
});
-}, vOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+}, yOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("pattern", {
id: `${e}-hatched-mask-pattern`,
x: "0",
@@ -65604,7 +65631,7 @@ var S7 = (e) => {
mask: `url(#${e}-hatched-mask-${t})`
})
})
-] }), yOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+] }), bOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("pattern", {
id: `${e}-buffer-hatched-mask-pattern`,
x: "0",
@@ -65645,7 +65672,7 @@ var S7 = (e) => {
mask: `url(#${e}-buffer-hatched-mask-${t})`
})
})
-] }), bOe = ({ id: e, dataKey: t, config: n }) => {
+] }), xOe = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("linearGradient", {
@@ -65713,7 +65740,7 @@ var S7 = (e) => {
})
})
] });
-}, xOe = ({ id: e, dataKey: t, config: n }) => {
+}, SOe = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("linearGradient", {
@@ -65781,7 +65808,7 @@ var S7 = (e) => {
})
})
] });
-}, SOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+}, COe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("linearGradient", {
id: `${e}-gradient-mask-gradient`,
x1: "0",
@@ -65818,7 +65845,7 @@ var S7 = (e) => {
mask: `url(#${e}-gradient-mask-${t})`
})
})
-] }), COe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+] }), wOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("linearGradient", {
id: `${e}-stripped-mask-gradient`,
x1: "0",
@@ -65855,7 +65882,7 @@ var S7 = (e) => {
mask: `url(#${e}-stripped-mask-${t})`
})
})
-] }), wOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {
+] }), TOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {
id: `${e}-bar-glow-${t}`,
x: "-100%",
y: "-100%",
@@ -65875,35 +65902,35 @@ var S7 = (e) => {
}),
/* @__PURE__ */ (0, L.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), TOe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
+}), EOe = (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 EOe(e, t = 12) {
+function DOe(e, t = 12) {
let [n, r] = (0, I.useState)(!1), i = (0, I.useCallback)(() => {
e && r((e) => !e);
}, [e]);
return {
- loadingData: (0, I.useMemo)(() => WDe(t, 20, 80), [t, n]),
+ loadingData: (0, I.useMemo)(() => GDe(t, 20, 80), [t, n]),
onShimmerExit: i
};
}
-var DOe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(L8, {
- dataKey: nOe,
+var OOe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(L8, {
+ dataKey: rOe,
fill: "currentColor",
fillOpacity: .15,
radius: v7,
isAnimationActive: !1,
legendType: "none",
style: { mask: `url(#${e}-loading-mask)` }
-}), /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(OOe, {
+}), /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(kOe, {
chartId: e,
onShimmerExit: t
-}) })] }), OOe = ({ chartId: e, onShimmerExit: t }) => {
- let n = TOe(), r = (0, I.useRef)(-1);
+}) })] }), kOe = ({ chartId: e, onShimmerExit: t }) => {
+ let n = EOe(), r = (0, I.useRef)(-1);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${e}-loading-mask-gradient`,
@@ -65934,7 +65961,7 @@ var DOe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fr
initial: { x: -1 },
animate: { x: 2 },
transition: {
- duration: rOe / 1e3,
+ duration: iOe / 1e3,
ease: "linear",
repeat: Infinity,
repeatType: "loop"
@@ -65956,10 +65983,10 @@ var DOe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fr
})
] });
};
-x7.Bar = cOe, x7.XAxis = lOe, x7.YAxis = uOe, x7.Grid = dOe, x7.Tooltip = fOe, x7.Legend = pOe, x7.Brush = m7;
+x7.Bar = lOe, x7.XAxis = uOe, x7.YAxis = dOe, x7.Grid = fOe, x7.Tooltip = pOe, x7.Legend = mOe, x7.Brush = m7;
//#endregion
//#region src/react/charts/chart-card.tsx
-var C7 = `${Rw({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+var C7 = `${zw({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
function w7({ title: e, figure: t, note: n }) {
return /* @__PURE__ */ (0, L.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
@@ -65986,7 +66013,7 @@ var T7 = [
"var(--color-chart-5)",
"var(--color-chart-6)"
], E7 = (e) => ({ light: [e] }), D7 = (e) => `s${e}`;
-function kOe(e) {
+function AOe(e) {
return Object.fromEntries(e.map((e, t) => [D7(t), {
label: e,
colors: E7(T7[t % T7.length])
@@ -66011,7 +66038,7 @@ function k7({ swatch: e, name: t, value: n }) {
});
}
var A7 = "size-2.5 shrink-0 rounded-xs";
-function AOe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
+function jOe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
let { config: o } = i7(), s = (t ?? []).filter((e) => e.type !== "none");
if (!e || !s.length) return /* @__PURE__ */ (0, L.jsx)("span", { className: "p-4" });
let c = a || typeof n != "string" ? null : o[n]?.label ?? n;
@@ -66036,7 +66063,7 @@ function AOe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLab
function j7({ nameKey: e, valueKey: t, hideLabel: n }) {
return /* @__PURE__ */ (0, L.jsx)(d7, {
cursor: !1,
- content: /* @__PURE__ */ (0, L.jsx)(AOe, {
+ content: /* @__PURE__ */ (0, L.jsx)(jOe, {
nameKey: e,
valueKey: t,
hideLabel: n
@@ -66113,7 +66140,7 @@ var F7 = [
"周六",
"周日"
], I7 = (e, t) => e ? Math.max(.12, e / t) : 0;
-function jOe(e) {
+function MOe(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;
@@ -66130,7 +66157,7 @@ function jOe(e) {
total: n.reduce((e, t) => e + t, 0)
};
}
-function MOe(e) {
+function NOe(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,
@@ -66169,19 +66196,19 @@ var L7 = 14, R7 = 17, z7 = {
fill: "fill-chart-5",
dot: "bg-chart-5"
}
-}, NOe = {
+}, POe = {
start: "translate-x-0",
center: "-translate-x-1/2",
end: "-translate-x-full"
};
-function POe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
+function FOe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
"aria-hidden": !0,
style: {
left: `${r}%`,
top: `${i}%`
},
- className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${O7} ${NOe[a]}`,
+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${O7} ${POe[a]}`,
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "font-medium text-foreground",
children: e.label
@@ -66239,7 +66266,7 @@ function B7({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
}, e.key);
})]
})
- }), g && _ ? /* @__PURE__ */ (0, L.jsx)(POe, {
+ }), g && _ ? /* @__PURE__ */ (0, L.jsx)(FOe, {
cell: g,
series: t.series,
tone: c,
@@ -66255,7 +66282,7 @@ function B7({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
]
});
}
-var FOe = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [F7.map((e, t) => /* @__PURE__ */ (0, L.jsx)("text", {
+var IOe = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [F7.map((e, t) => /* @__PURE__ */ (0, L.jsx)("text", {
x: 0,
y: 18 + t * R7 + 7,
dominantBaseline: "middle",
@@ -66269,7 +66296,7 @@ var FOe = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [F7.map((e, t) =>
children: t
}, t))] });
function V7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
- let o = jOe(e), s = MOe(e);
+ let o = MOe(e), s = NOe(e);
return s.cells.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",
children: [/* @__PURE__ */ (0, L.jsx)(B7, {
@@ -66280,7 +66307,7 @@ function V7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
total: o.total,
columns: 24,
rows: 7,
- axis: FOe,
+ axis: IOe,
footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, L.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
}), /* @__PURE__ */ (0, L.jsx)(B7, {
title: n,
@@ -66346,20 +66373,20 @@ function H7({ children: e, className: t = "", previewCount: n = 10 }) {
onClick: () => {
c(!0), o((e) => !e);
},
- children: /* @__PURE__ */ (0, L.jsx)(fS, { "aria-hidden": !0 })
+ children: /* @__PURE__ */ (0, L.jsx)(mS, { "aria-hidden": !0 })
}) : null]
});
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
-var IOe = "30%", LOe = "100%", U7 = 5, W7 = 14, ROe = 5, G7 = 1500, K7 = (0, I.createContext)(null);
+var LOe = "30%", ROe = "100%", U7 = 5, W7 = 14, zOe = 5, G7 = 1500, K7 = (0, I.createContext)(null);
function q7() {
let e = (0, I.use)(K7);
if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");
return e;
}
-function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = IOe, outerRadius: l = LOe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
- let m = (0, I.useId)().replace(/:/g, ""), [h, g] = (0, I.useState)(u), _ = GOe(f), v = HOe(o), y = (0, I.useCallback)((e, t) => {
+function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = LOe, outerRadius: l = ROe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
+ let m = (0, I.useId)().replace(/:/g, ""), [h, g] = (0, I.useState)(u), _ = KOe(f), v = UOe(o), y = (0, I.useCallback)((e, t) => {
g(e), d?.(e === null ? null : {
dataKey: e,
value: t ?? 0
@@ -66391,7 +66418,7 @@ function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
children: /* @__PURE__ */ (0, L.jsxs)(a7, {
className: i,
config: e,
- children: [/* @__PURE__ */ (0, L.jsx)(o7, { isLoading: f }), /* @__PURE__ */ (0, L.jsxs)(VDe, {
+ children: [/* @__PURE__ */ (0, L.jsx)(o7, { isLoading: f }), /* @__PURE__ */ (0, L.jsxs)(HDe, {
id: m,
data: f ? _ : b,
innerRadius: c,
@@ -66410,8 +66437,8 @@ function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
}),
p && /* @__PURE__ */ (0, L.jsx)(_7, { variant: p }),
r,
- f && /* @__PURE__ */ (0, L.jsx)(KOe, {}),
- /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(UOe, {
+ f && /* @__PURE__ */ (0, L.jsx)(qOe, {}),
+ /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(WOe, {
config: e,
chartId: m
}) })
@@ -66420,7 +66447,7 @@ function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
})
});
}
-function zOe({ dataKey: e, cornerRadius: t = U7, barSize: n = W7, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
+function BOe({ dataKey: e, cornerRadius: t = U7, barSize: n = W7, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = q7();
return s ? null : /* @__PURE__ */ (0, L.jsx)(b6, {
dataKey: e,
@@ -66436,7 +66463,7 @@ function zOe({ dataKey: e, cornerRadius: t = U7, barSize: n = W7, showBackground
},
shape: (e) => {
let t = e[o], n = c === null || c === t;
- return /* @__PURE__ */ (0, L.jsx)(YJ, {
+ return /* @__PURE__ */ (0, L.jsx)(XJ, {
...e,
opacity: i && !n ? .15 : 1,
className: "transition-opacity duration-200"
@@ -66445,7 +66472,7 @@ function zOe({ dataKey: e, cornerRadius: t = U7, barSize: n = W7, showBackground
...a
});
}
-function BOe({ variant: e, roundness: t, defaultIndex: n }) {
+function VOe({ variant: e, roundness: t, defaultIndex: n }) {
let { nameKey: r, isLoading: i } = q7();
return i ? null : /* @__PURE__ */ (0, L.jsx)(d7, {
defaultIndex: n,
@@ -66458,7 +66485,7 @@ function BOe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function VOe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+function HOe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = q7();
return a ? null : /* @__PURE__ */ (0, L.jsx)(p7, {
verticalAlign: n,
@@ -66472,7 +66499,7 @@ function VOe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-function HOe(e) {
+function UOe(e) {
switch (e) {
case "semi": return {
startAngle: 180,
@@ -66488,7 +66515,7 @@ function HOe(e) {
};
}
}
-var UOe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, L.jsx)(L.Fragment, { children: Object.entries(e).map(([e, n]) => {
+var WOe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, L.jsx)(L.Fragment, { children: Object.entries(e).map(([e, n]) => {
let r = l7(n);
return /* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${t}-radial-colors-${e}`,
@@ -66511,13 +66538,13 @@ var UOe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, L.jsx)(L.Fragment,
})
}, `${t}-radial-colors-${e}`);
}) });
-function WOe() {
- return Array.from({ length: ROe }, (e, t) => ({
+function GOe() {
+ return Array.from({ length: zOe }, (e, t) => ({
name: `loading${t}`,
value: 40 + Math.random() * 60
}));
}
-function GOe(e) {
+function KOe(e) {
let [t, n] = (0, I.useState)(0);
return (0, I.useEffect)(() => {
if (!e) return;
@@ -66525,9 +66552,9 @@ function GOe(e) {
n((e) => e + 1);
}, G7);
return () => clearInterval(t);
- }, [e]), (0, I.useMemo)(() => WOe(), [t]);
+ }, [e]), (0, I.useMemo)(() => GOe(), [t]);
}
-var KOe = () => /* @__PURE__ */ (0, L.jsx)(b6, {
+var qOe = () => /* @__PURE__ */ (0, L.jsx)(b6, {
dataKey: "value",
cornerRadius: U7,
barSize: W7,
@@ -66535,23 +66562,23 @@ var KOe = () => /* @__PURE__ */ (0, L.jsx)(b6, {
isAnimationActive: !0,
animationDuration: G7,
animationEasing: "ease-in-out",
- shape: (e) => /* @__PURE__ */ (0, L.jsx)(YJ, {
+ shape: (e) => /* @__PURE__ */ (0, L.jsx)(XJ, {
...e,
fill: "currentColor",
fillOpacity: .25
})
});
-J7.RadialBar = zOe, J7.Tooltip = BOe, J7.Legend = VOe;
+J7.RadialBar = BOe, J7.Tooltip = VOe, J7.Legend = HOe;
//#endregion
//#region src/react/stats/radial-card.tsx
-var qOe = [
+var JOe = [
"bg-chart-1",
"bg-chart-2",
"bg-chart-3",
"bg-chart-4",
"bg-chart-5",
"bg-chart-6"
-], JOe = [
+], YOe = [
"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",
@@ -66592,7 +66619,7 @@ function Y7({ title: e, rows: t, unit: n = "个视频" }) {
children: /* @__PURE__ */ (0, L.jsxs)(J7, {
data: f,
nameKey: "slice",
- config: kOe(s.map((e) => e.name)),
+ config: AOe(s.map((e) => e.name)),
max: Pue(s.map((e) => e.value)),
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
@@ -66600,7 +66627,7 @@ function Y7({ title: e, rows: t, unit: n = "个视频" }) {
dataKey: "value",
barSize: Fue(s.length),
radialBarProps: {
- shape: (e) => /* @__PURE__ */ (0, L.jsx)(YJ, {
+ shape: (e) => /* @__PURE__ */ (0, L.jsx)(XJ, {
...e,
opacity: c >= 0 && c !== e.index ? .3 : 1,
className: "cursor-pointer transition-opacity duration-200"
@@ -66624,13 +66651,13 @@ function Y7({ title: e, rows: t, unit: n = "个视频" }) {
onPointerLeave: () => o(-1),
onFocus: () => o(t),
onBlur: () => o(-1),
- className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${JOe[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 ${YOe[t % 6]}`,
children: [
/* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, L.jsx)("i", {
"aria-hidden": !0,
- className: `size-3 shrink-0 rounded-sm ${qOe[t % 6]}`
+ className: `size-3 shrink-0 rounded-sm ${JOe[t % 6]}`
}), e.name]
}),
/* @__PURE__ */ (0, L.jsx)("b", {
@@ -66649,7 +66676,7 @@ function Y7({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var YOe = 10, X7 = T7[5], XOe = T7[4], ZOe = `${Rw()} flex flex-col gap-4`, QOe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", $Oe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", eke = "开始播放后,这里会显示最近的真实观看证据。", tke = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", nke = "添加媒体文件夹后,这里会显示存储空间。";
+var XOe = 10, X7 = T7[5], ZOe = T7[4], QOe = `${zw()} flex flex-col gap-4`, $Oe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", eke = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", tke = "开始播放后,这里会显示最近的真实观看证据。", nke = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", rke = "添加媒体文件夹后,这里会显示存储空间。";
function Z7({ term: e, value: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
@@ -66671,10 +66698,10 @@ function Q7({ term: e, value: t, total: n }) {
className: "tabular-nums",
children: [t.toLocaleString(), /* @__PURE__ */ (0, L.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [LL(t, n), "%"]
+ children: [RL(t, n), "%"]
})]
})]
- }), /* @__PURE__ */ (0, L.jsx)(Gw, {
+ }), /* @__PURE__ */ (0, L.jsx)(Kw, {
label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,
value: t,
max: Math.max(n, 1)
@@ -66702,14 +66729,14 @@ function $7({ term: e, figure: t, unit: n }) {
}
function e9({ headline: e, children: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: `${ZOe} md:flex-row md:gap-6`,
+ className: `${QOe} md:flex-row md:gap-6`,
children: [e, /* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
-function rke({ data: t, configurable: n, openMediaSettings: r }) {
+function ike({ data: t, configurable: n, openMediaSettings: r }) {
return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -66744,7 +66771,7 @@ function rke({ data: t, configurable: n, openMediaSettings: r }) {
unit: "个视频",
series: "视频",
color: X7,
- rows: BL(t.by_quality)
+ rows: VL(t.by_quality)
}),
/* @__PURE__ */ (0, L.jsx)(P7, {
title: "文件类型",
@@ -66756,24 +66783,24 @@ function rke({ data: t, configurable: n, openMediaSettings: r }) {
})
]
})]
- }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
shell: "plain",
- icon: BS,
+ icon: VS,
title: "还没有视频",
actions: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [n ? /* @__PURE__ */ (0, L.jsx)(G, {
size: "small",
onClick: r,
children: "添加媒体文件夹"
- }) : null, /* @__PURE__ */ (0, L.jsx)(Dw, {
+ }) : null, /* @__PURE__ */ (0, L.jsx)(Ow, {
variant: "secondary",
href: "/follow-manage?tab=add",
size: "small",
children: "添加关注"
})] }),
- children: QOe
+ children: $Oe
});
}
-function ike({ data: e }) {
+function ake({ data: e }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(V7, {
activity: e.play_activity,
title: "播放时间",
@@ -66788,11 +66815,11 @@ function ike({ data: e }) {
title: "播放次数",
unit: "个作品",
series: "作品",
- color: XOe,
+ color: ZOe,
rows: Vue(e.replays)
})] });
}
-function ake({ attribution: e }) {
+function oke({ attribution: e }) {
let t = e.videos;
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col",
@@ -66825,7 +66852,7 @@ function ake({ attribution: e }) {
]
});
}
-function oke({ volume: e }) {
+function ske({ volume: e }) {
let t = e.total, n = e.used ?? 0;
return /* @__PURE__ */ (0, L.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -66842,11 +66869,11 @@ function oke({ volume: e }) {
className: "whitespace-nowrap tabular-nums",
children: [a(n), /* @__PURE__ */ (0, L.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [LL(n, t), "%"]
+ children: [RL(n, t), "%"]
})]
})]
}),
- t == null ? null : /* @__PURE__ */ (0, L.jsx)(Gw, {
+ t == null ? null : /* @__PURE__ */ (0, L.jsx)(Kw, {
label: `${e.label}空间使用率`,
value: n,
max: Math.max(t, 1)
@@ -66864,25 +66891,25 @@ function oke({ volume: e }) {
]
});
}
-function ske({ volumes: e, configurable: t, openMediaSettings: n }) {
+function cke({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col",
- children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(oke, { volume: e }, `${e.kind}:${e.label}`))
- }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
+ children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(ske, { volume: e }, `${e.kind}:${e.label}`))
+ }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
shell: "plain",
- icon: CS,
+ icon: TS,
title: "还没有存储来源",
actions: t ? /* @__PURE__ */ (0, L.jsx)(G, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
}) : void 0,
- children: nke
+ children: rke
});
}
-function cke({ tags: e, tagLabel: t, onTag: n }) {
+function lke({ tags: e, tagLabel: t, onTag: n }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)(H7, {
- previewCount: YOe,
+ previewCount: XOe,
className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",
children: e.map((e, r) => /* @__PURE__ */ (0, L.jsx)("li", {
className: "min-w-0",
@@ -66906,24 +66933,24 @@ function cke({ tags: e, tagLabel: t, onTag: n }) {
]
})
}, e.k))
- }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
shell: "plain",
- icon: jS,
+ icon: MS,
title: "还没有内容标签",
- actions: /* @__PURE__ */ (0, L.jsx)(Dw, {
+ actions: /* @__PURE__ */ (0, L.jsx)(Ow, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: $Oe
+ children: eke
});
}
-function lke({ rows: e }) {
+function uke({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
- let t = RL(e);
+ let t = zL(e);
return /* @__PURE__ */ (0, L.jsxs)("article", {
className: "flex flex-wrap items-center gap-x-6 gap-y-2",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -66942,30 +66969,30 @@ function lke({ rows: e }) {
})]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "min-w-0 basis-40",
- children: [/* @__PURE__ */ (0, L.jsx)(Gw, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Kw, {
label: `真实观看 ${t.toFixed(0)}%`,
value: t
}), /* @__PURE__ */ (0, L.jsx)("small", {
className: "mt-1.5 block text-caption-1-regular text-text-secondary",
- children: `真实 ${t.toFixed(0)}% · 到达 ${zL(e).toFixed(0)}%`
+ children: `真实 ${t.toFixed(0)}% · 到达 ${BL(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
})
- }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
shell: "plain",
- icon: wS,
+ icon: ES,
title: "还没有观看记录",
- actions: /* @__PURE__ */ (0, L.jsx)(Dw, {
+ actions: /* @__PURE__ */ (0, L.jsx)(Ow, {
variant: "secondary",
href: "/",
size: "small",
children: "浏览馆藏"
}),
- children: eke
+ children: tke
});
}
-function uke({ sources: e, videos: t }) {
+function dke({ sources: e, videos: t }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)("article", {
@@ -66984,7 +67011,7 @@ function uke({ sources: e, videos: t }) {
})]
})]
}),
- /* @__PURE__ */ (0, L.jsx)(Gw, {
+ /* @__PURE__ */ (0, L.jsx)(Kw, {
label: `${e.k} 覆盖视频`,
value: e.assets,
max: Math.max(t, 1)
@@ -66995,27 +67022,27 @@ function uke({ sources: e, videos: t }) {
})
]
}, e.k))
- }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
shell: "plain",
- icon: jS,
+ icon: MS,
title: "还没有标签来源",
- actions: /* @__PURE__ */ (0, L.jsx)(Dw, {
+ actions: /* @__PURE__ */ (0, L.jsx)(Ow, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: tke
+ children: nke
});
}
function t9({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, L.jsx)(fO, {
+ return /* @__PURE__ */ (0, L.jsx)(hO, {
id: e,
- className: AA({
+ className: MA({
interactive: !0,
selectable: !0
}),
- children: /* @__PURE__ */ (0, L.jsx)(PA, {
+ children: /* @__PURE__ */ (0, L.jsx)(IA, {
label: t,
icon: i,
accent: a,
@@ -67024,33 +67051,33 @@ function t9({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
})
});
}
-function dke(e) {
+function fke(e) {
let t = kt({
- queryKey: FL,
- queryFn: ({ signal: e }) => IL(e)
+ queryKey: IL,
+ queryFn: ({ signal: e }) => LL(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, L.jsx)(Hw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ if (!n) return /* @__PURE__ */ (0, L.jsx)(Uw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "读取失败",
children: t.error ? K(t.error) : "读取统计失败"
}) });
- let r = n.consumption, i = n.storage_summary, o = n.by_loc.reduce((e, t) => e + t.videos, 0), s = n.by_loc.reduce((e, t) => e + t.bytes, 0), c = LL(n.tag_cov, n.attribution.videos);
- return /* @__PURE__ */ (0, L.jsxs)(Hw, { children: [
+ let r = n.consumption, i = n.storage_summary, o = n.by_loc.reduce((e, t) => e + t.videos, 0), s = n.by_loc.reduce((e, t) => e + t.bytes, 0), c = RL(n.tag_cov, n.attribution.videos);
+ return /* @__PURE__ */ (0, L.jsxs)(Uw, { children: [
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${o.toLocaleString()} 个视频 · ${a(s)}`
}),
- /* @__PURE__ */ (0, L.jsxs)(uO, {
+ /* @__PURE__ */ (0, L.jsxs)(pO, {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, L.jsxs)(dO, {
+ /* @__PURE__ */ (0, L.jsxs)(mO, {
"aria-label": "统计视图",
- className: jA,
+ className: NA,
children: [
/* @__PURE__ */ (0, L.jsx)(t9, {
id: "inventory",
label: "馆藏视频",
- icon: yS,
+ icon: xS,
accent: 0,
figure: o.toLocaleString(),
detail: a(s)
@@ -67058,7 +67085,7 @@ function dke(e) {
/* @__PURE__ */ (0, L.jsx)(t9, {
id: "viewing",
label: "看过",
- icon: SS,
+ icon: wS,
accent: 1,
figure: r.played.toLocaleString(),
detail: jue(r.play_seconds)
@@ -67066,7 +67093,7 @@ function dke(e) {
/* @__PURE__ */ (0, L.jsx)(t9, {
id: "coverage",
label: "内容标签",
- icon: jS,
+ icon: MS,
accent: 2,
figure: `${c}%`,
detail: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
@@ -67074,21 +67101,21 @@ function dke(e) {
/* @__PURE__ */ (0, L.jsx)(t9, {
id: "storage",
label: "使用空间",
- icon: CS,
+ icon: TS,
accent: 3,
figure: `${i.online} 个卷`,
detail: i.measured ? `已用 ${a(i.used)}` : "容量未取得"
})
]
}),
- /* @__PURE__ */ (0, L.jsx)(pO, {
+ /* @__PURE__ */ (0, L.jsx)(gO, {
id: "inventory",
- children: /* @__PURE__ */ (0, L.jsx)(rke, {
+ children: /* @__PURE__ */ (0, L.jsx)(ike, {
data: n,
...e
})
}),
- /* @__PURE__ */ (0, L.jsxs)(pO, {
+ /* @__PURE__ */ (0, L.jsxs)(gO, {
id: "viewing",
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, L.jsx)(e9, {
@@ -67134,9 +67161,9 @@ function dke(e) {
})
]
})
- }), /* @__PURE__ */ (0, L.jsx)(ike, { data: n })]
+ }), /* @__PURE__ */ (0, L.jsx)(ake, { data: n })]
}),
- /* @__PURE__ */ (0, L.jsx)(pO, {
+ /* @__PURE__ */ (0, L.jsx)(gO, {
id: "coverage",
children: /* @__PURE__ */ (0, L.jsx)(e9, {
headline: /* @__PURE__ */ (0, L.jsx)($7, {
@@ -67144,10 +67171,10 @@ function dke(e) {
figure: `${c}%`,
unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- children: /* @__PURE__ */ (0, L.jsx)(ake, { attribution: n.attribution })
+ children: /* @__PURE__ */ (0, L.jsx)(oke, { attribution: n.attribution })
})
}),
- /* @__PURE__ */ (0, L.jsx)(pO, {
+ /* @__PURE__ */ (0, L.jsx)(gO, {
id: "storage",
children: /* @__PURE__ */ (0, L.jsx)(e9, {
headline: /* @__PURE__ */ (0, L.jsx)($7, {
@@ -67155,7 +67182,7 @@ function dke(e) {
figure: String(i.measured),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, L.jsx)(ske, {
+ children: /* @__PURE__ */ (0, L.jsx)(cke, {
volumes: n.storage_volumes,
...e
})
@@ -67163,50 +67190,50 @@ function dke(e) {
})
]
}),
- /* @__PURE__ */ (0, L.jsxs)(uO, {
- className: `${Rw({ padding: "none" })} flex flex-col`,
+ /* @__PURE__ */ (0, L.jsxs)(pO, {
+ className: `${zw({ padding: "none" })} flex flex-col`,
children: [
/* @__PURE__ */ (0, L.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, L.jsxs)(dO, {
+ children: /* @__PURE__ */ (0, L.jsxs)(mO, {
"aria-label": "统计维度",
- className: SM,
+ className: CM,
children: [
- /* @__PURE__ */ (0, L.jsx)(fO, {
+ /* @__PURE__ */ (0, L.jsx)(hO, {
id: "tags",
- className: CM,
+ className: wM,
children: "内容标签"
}),
- /* @__PURE__ */ (0, L.jsx)(fO, {
+ /* @__PURE__ */ (0, L.jsx)(hO, {
id: "recent",
- className: CM,
+ className: wM,
children: "最近看过"
}),
- /* @__PURE__ */ (0, L.jsx)(fO, {
+ /* @__PURE__ */ (0, L.jsx)(hO, {
id: "sources",
- className: CM,
+ className: wM,
children: "标签来源"
})
]
})
}),
- /* @__PURE__ */ (0, L.jsx)(pO, {
+ /* @__PURE__ */ (0, L.jsx)(gO, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, L.jsx)(cke, {
+ children: /* @__PURE__ */ (0, L.jsx)(lke, {
tags: n.top_tags,
...e
})
}),
- /* @__PURE__ */ (0, L.jsx)(pO, {
+ /* @__PURE__ */ (0, L.jsx)(gO, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, L.jsx)(lke, { rows: n.recent })
+ children: /* @__PURE__ */ (0, L.jsx)(uke, { rows: n.recent })
}),
- /* @__PURE__ */ (0, L.jsx)(pO, {
+ /* @__PURE__ */ (0, L.jsx)(gO, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, L.jsx)(uke, {
+ children: /* @__PURE__ */ (0, L.jsx)(dke, {
sources: n.tag_source,
videos: n.attribution.videos
})
@@ -67217,7 +67244,7 @@ function dke(e) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function fke(e, t) {
+function pke(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
@@ -67241,13 +67268,13 @@ function a9(e, t) {
function o9(e) {
return e.value;
}
-function pke(e) {
+function mke(e) {
return e.index;
}
-function mke(e) {
+function hke(e) {
return e.nodes;
}
-function hke(e) {
+function gke(e) {
return e.links;
}
function s9(e, t) {
@@ -67262,8 +67289,8 @@ function c9({ nodes: e }) {
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function gke() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = pke, c = fke, l, u, d = mke, f = hke, p = 6;
+function _ke() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = mke, c = pke, l, u, d = hke, f = gke, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
@@ -67449,7 +67476,7 @@ function gke() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var l9 = Math.PI, u9 = 2 * l9, d9 = 1e-6, _ke = u9 - d9;
+var l9 = Math.PI, u9 = 2 * l9, d9 = 1e-6, vke = u9 - d9;
function f9() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
@@ -67490,7 +67517,7 @@ f9.prototype = p9.prototype = {
e = +e, t = +t, n = +n, a = !!a;
var o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
if (n < 0) throw Error("negative radius: " + n);
- this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > d9 || Math.abs(this._y1 - l) > d9) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % u9 + u9), d > _ke ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > d9 && (this._ += "A" + n + "," + n + ",0," + +(d >= l9) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > d9 || Math.abs(this._y1 - l) > d9) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % u9 + u9), d > vke ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > d9 && (this._ += "A" + n + "," + n + ",0," + +(d >= l9) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
},
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";
@@ -67508,27 +67535,27 @@ function m9(e) {
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function vke(e) {
+function yke(e) {
return e[0];
}
-function yke(e) {
+function bke(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var bke = Array.prototype.slice;
+var xke = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function xke(e) {
+function Ske(e) {
return e.source;
}
-function Ske(e) {
+function Cke(e) {
return e.target;
}
-function Cke(e) {
- var t = xke, n = Ske, r = vke, i = yke, a = null;
+function wke(e) {
+ var t = Ske, n = Cke, r = yke, i = bke, a = null;
function o() {
- var o, s = bke.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ var o, s = xke.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
if (a ||= o = p9(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
}
return o.source = function(e) {
@@ -67543,48 +67570,48 @@ function Cke(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function wke(e, t, n, r, i) {
+function Tke(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function Tke() {
- return Cke(wke);
+function Eke() {
+ return wke(Tke);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function Eke(e) {
+function Dke(e) {
return [e.source.x1, e.y0];
}
-function Dke(e) {
+function Oke(e) {
return [e.target.x0, e.y1];
}
-function Oke() {
- return Tke().source(Eke).target(Dke);
+function kke() {
+ return Eke().source(Dke).target(Oke);
}
//#endregion
//#region src/react/taste/taste.ts
-var kke = "/api/taste", h9 = "/api/taste/refresh", Ake = "/api/taste/import", jke = "/api/taste/source", g9 = (e) => ["taste", e], Mke = ["taste", "refresh"], Nke = [
+var Ake = "/api/taste", h9 = "/api/taste/refresh", jke = "/api/taste/import", Mke = "/api/taste/source", g9 = (e) => ["taste", e], Nke = ["taste", "refresh"], Pke = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], _9 = (e, t) => Aw(`${kke}?window=${e}`, t), Pke = (e) => Aw(h9, e);
-async function Fke(e, t) {
+], _9 = (e, t) => jw(`${Ake}?window=${e}`, t), Fke = (e) => jw(h9, e);
+async function Ike(e, t) {
await X.fetchQuery({
queryKey: g9(e),
queryFn: () => _9(e, t)
});
}
-var Ike = (e) => q(h9, {
+var Lke = (e) => q(h9, {
window: e,
background: !0
-}), Lke = (e, t) => q(jke, {
+}), Rke = (e, t) => q(Mke, {
operation: "remove",
source_key: e,
window: t
});
-async function Rke(e) {
- let t = await fetch(Ake, {
+async function zke(e) {
+ let t = await fetch(jke, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -67598,25 +67625,25 @@ async function Rke(e) {
} catch {}
if (!t.ok) {
let e = n?.error;
- throw new Ow(e || `导入失败(${t.status})`, t.status, n);
+ throw new kw(e || `导入失败(${t.status})`, t.status, n);
}
return n;
}
-var zke = 1e4, v9 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", Bke = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, Vke = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function Hke(e) {
+var Bke = 1e4, v9 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", Vke = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, Hke = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function Uke(e) {
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 Uke(e) {
- let t = e.map(Vke), n = Math.max(1, ...t);
+function Wke(e) {
+ let t = e.map(Hke), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
var y9 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
name: e.name,
value: Number(e.score)
})).sort((e, t) => t.value - e.value).slice(0, t);
-function Wke(e) {
+function Gke(e) {
let t = y9(e, 6);
return t.length < 3 ? [] : t;
}
@@ -67627,10 +67654,10 @@ var b9 = {
source: 145,
target: 545
};
-function Gke(e = []) {
+function Kke(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 = gke().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 = _ke().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
nodes: [...n.map((e) => ({
id: `source:${e}`,
name: e,
@@ -67645,7 +67672,7 @@ function Gke(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), a = t.reduce((e, t) => e + t.value, 0), o = Oke();
+ }), a = t.reduce((e, t) => e + t.value, 0), o = kke();
return {
nodes: i.nodes.map((e) => ({
id: e.id,
@@ -67675,7 +67702,7 @@ function Gke(e = []) {
total: a
};
}
-var Kke = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, S9 = I.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
+var qke = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, S9 = I.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
let c = I.useId().replace(/:/g, ""), l = `url(#${r}-colors-${String(n)})`;
if (e === void 0 || t === void 0) return null;
switch (o) {
@@ -67798,14 +67825,14 @@ var T9 = I.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
T9.displayName = "ColoredBorderDot";
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
-var qke = 1, Jke = .3, Yke = 6, E9 = 1500, D9 = "value", O9 = (0, I.createContext)(null);
+var Jke = 1, Yke = .3, Xke = 6, E9 = 1500, D9 = "value", O9 = (0, I.createContext)(null);
function k9() {
let e = (0, I.use)(O9);
if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");
return e;
}
function A9({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {
- let u = (0, I.useId)().replace(/:/g, ""), [d, f] = (0, I.useState)(o), p = cAe(c, l), m = (0, I.useCallback)((e) => {
+ let u = (0, I.useId)().replace(/:/g, ""), [d, f] = (0, I.useState)(o), p = lAe(c, l), m = (0, I.useCallback)((e) => {
f(e), s?.(e);
}, [s]), h = (0, I.useMemo)(() => ({
config: e,
@@ -67823,32 +67850,32 @@ function A9({ config: e, data: t, children: n, className: r, chartProps: i, back
children: /* @__PURE__ */ (0, L.jsxs)(a7, {
className: r,
config: e,
- children: [/* @__PURE__ */ (0, L.jsx)(o7, { isLoading: c }), /* @__PURE__ */ (0, L.jsxs)(NDe, {
+ children: [/* @__PURE__ */ (0, L.jsx)(o7, { isLoading: c }), /* @__PURE__ */ (0, L.jsxs)(PDe, {
id: u,
data: c ? p : t,
...i,
children: [
a && /* @__PURE__ */ (0, L.jsx)(_7, { variant: a }),
n,
- c && /* @__PURE__ */ (0, L.jsx)(lAe, {})
+ c && /* @__PURE__ */ (0, L.jsx)(uAe, {})
]
})]
})
});
}
-function Xke({ dataKey: e, variant: t = "filled", fillOpacity: n = Jke, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
+function Zke({ dataKey: e, variant: t = "filled", fillOpacity: n = Yke, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = k9(), d = (0, I.useId)().replace(/:/g, "");
if (c) return null;
let f = i && l !== null && l !== e, p = {
stroke: f ? .2 : 1,
fill: f ? .1 : 1,
dot: f ? .2 : 1
- }, m = t === "filled", { dot: h, activeDot: g } = nAe(a, d, e, p.dot);
+ }, m = t === "filled", { dot: h, activeDot: g } = rAe(a, d, e, p.dot);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(W3, {
dataKey: e,
stroke: `url(#${d}-radar-stroke-${e})`,
strokeOpacity: p.stroke,
- strokeWidth: qke,
+ strokeWidth: Jke,
fill: m ? `url(#${d}-radar-fill-${e})` : "none",
fillOpacity: m ? n * p.fill : 0,
dot: h,
@@ -67861,29 +67888,29 @@ function Xke({ dataKey: e, variant: t = "filled", fillOpacity: n = Jke, isGlowin
},
...o
}), /* @__PURE__ */ (0, L.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, L.jsx)(rAe, {
+ /* @__PURE__ */ (0, L.jsx)(iAe, {
id: d,
dataKey: e,
config: s
}),
- /* @__PURE__ */ (0, L.jsx)(iAe, {
+ /* @__PURE__ */ (0, L.jsx)(aAe, {
id: d,
dataKey: e,
config: s
}),
- m && /* @__PURE__ */ (0, L.jsx)(aAe, {
+ m && /* @__PURE__ */ (0, L.jsx)(oAe, {
id: d,
dataKey: e,
config: s
}),
- r && /* @__PURE__ */ (0, L.jsx)(oAe, {
+ r && /* @__PURE__ */ (0, L.jsx)(sAe, {
id: d,
dataKey: e
})
] })] });
}
var j9 = () => null, M9 = () => null;
-function Zke({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
+function Qke({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
return /* @__PURE__ */ (0, L.jsx)(L4, {
gridType: e,
stroke: t,
@@ -67892,7 +67919,7 @@ function Zke({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacit
...i
});
}
-function Qke({ tick: e = {
+function $ke({ tick: e = {
fill: "currentColor",
fontSize: 12
}, tickLine: t = !1, ...n }) {
@@ -67903,7 +67930,7 @@ function Qke({ tick: e = {
...n
});
}
-function $ke({ tick: e = {
+function eAe({ tick: e = {
fill: "currentColor",
fontSize: 10
}, tickLine: t = !1, axisLine: n = !1, ...r }) {
@@ -67915,7 +67942,7 @@ function $ke({ tick: e = {
...r
});
}
-function eAe({ variant: e, roundness: t, defaultIndex: n }) {
+function tAe({ variant: e, roundness: t, defaultIndex: n }) {
let { isLoading: r, selectedDataKey: i } = k9();
return r ? null : /* @__PURE__ */ (0, L.jsx)(d7, {
defaultIndex: n,
@@ -67927,7 +67954,7 @@ function eAe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function tAe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+function nAe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
let { isLoading: i, selectedDataKey: a, selectDataKey: o } = k9();
return i ? null : /* @__PURE__ */ (0, L.jsx)(p7, {
verticalAlign: n,
@@ -67940,7 +67967,7 @@ function tAe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-var nAe = (e, t, n, r) => {
+var rAe = (e, t, n, r) => {
let i = !1, a = !1;
return I.Children.forEach(e, (e) => {
if ((0, I.isValidElement)(e)) {
@@ -67982,7 +68009,7 @@ var nAe = (e, t, n, r) => {
stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,
stopOpacity: n?.[i]
}, a);
-}) }), rAe = ({ id: e, dataKey: t, config: n }) => {
+}) }), iAe = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
@@ -67995,7 +68022,7 @@ var nAe = (e, t, n, r) => {
colorsCount: r
})
});
-}, iAe = ({ id: e, dataKey: t, config: n }) => {
+}, aAe = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${e}-radar-stroke-${t}`,
@@ -68008,7 +68035,7 @@ var nAe = (e, t, n, r) => {
colorsCount: r
})
});
-}, aAe = ({ id: e, dataKey: t, config: n }) => {
+}, oAe = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
return /* @__PURE__ */ (0, L.jsx)("radialGradient", {
id: `${e}-radar-fill-${t}`,
@@ -68021,7 +68048,7 @@ var nAe = (e, t, n, r) => {
opacities: i
})
});
-}, oAe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {
+}, sAe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {
id: `${e}-radar-glow-${t}`,
x: "-50%",
y: "-50%",
@@ -68041,7 +68068,7 @@ var nAe = (e, t, n, r) => {
}),
/* @__PURE__ */ (0, L.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), sAe = (e) => [
+}), cAe = (e) => [
"A",
"B",
"C",
@@ -68052,7 +68079,7 @@ var nAe = (e, t, n, r) => {
skill: e,
[D9]: 30 + Math.random() * 70
}));
-function cAe(e, t = Yke) {
+function lAe(e, t = Xke) {
let [n, r] = (0, I.useState)(0);
return (0, I.useEffect)(() => {
if (!e) return;
@@ -68060,9 +68087,9 @@ function cAe(e, t = Yke) {
r((e) => e + 1);
}, E9);
return () => clearInterval(t);
- }, [e]), (0, I.useMemo)(() => sAe(t), [t, n]);
+ }, [e]), (0, I.useMemo)(() => cAe(t), [t, n]);
}
-var lAe = () => /* @__PURE__ */ (0, L.jsx)(W3, {
+var uAe = () => /* @__PURE__ */ (0, L.jsx)(W3, {
dataKey: D9,
stroke: "currentColor",
strokeOpacity: .3,
@@ -68074,17 +68101,17 @@ var lAe = () => /* @__PURE__ */ (0, L.jsx)(W3, {
animationDuration: E9,
animationEasing: "ease-in-out"
});
-A9.Radar = Xke, A9.Dot = j9, A9.ActiveDot = M9, A9.PolarGrid = Zke, A9.PolarAngleAxis = Qke, A9.PolarRadiusAxis = $ke, A9.Tooltip = eAe, A9.Legend = tAe;
+A9.Radar = Zke, A9.Dot = j9, A9.ActiveDot = M9, A9.PolarGrid = Qke, A9.PolarAngleAxis = $ke, A9.PolarRadiusAxis = eAe, A9.Tooltip = tAe, A9.Legend = nAe;
//#endregion
//#region src/react/taste/charts.tsx
-var uAe = [
+var dAe = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], dAe = [
+], fAe = [
"fill-chart-1",
"fill-chart-2",
"fill-chart-3",
@@ -68094,7 +68121,7 @@ var uAe = [
], P9 = { value: {
label: "标签命中",
colors: E7(T7[3])
-} }, fAe = [
+} }, pAe = [
"min-h-24",
"min-h-24",
"min-h-24",
@@ -68104,20 +68131,20 @@ var uAe = [
"min-h-52",
"min-h-60",
"min-h-64"
-], pAe = 26, mAe = { radius: P9.value }, hAe = (e, t) => Math.sqrt(e / t);
-function gAe({ rows: e, label: t }) {
- let n = Wke(e);
+], mAe = 26, hAe = { radius: P9.value }, gAe = (e, t) => Math.sqrt(e / t);
+function _Ae({ rows: e, label: t }) {
+ let n = Gke(e);
if (!n.length) return null;
let r = n[0].value, i = n.map((e) => ({
...e,
- radius: hAe(e.value, r)
+ radius: gAe(e.value, r)
}));
return /* @__PURE__ */ (0, L.jsx)("div", {
role: "img",
"aria-label": `${t}:${i.map((e) => e.name).join(",")}`,
children: /* @__PURE__ */ (0, L.jsxs)(A9, {
data: i,
- config: mAe,
+ config: hAe,
chartProps: { outerRadius: "58%" },
className: "aspect-auto h-70 text-text-secondary",
children: [
@@ -68134,17 +68161,17 @@ function gAe({ rows: e, label: t }) {
})
});
}
-function _Ae({ rows: e, label: t }) {
+function vAe({ rows: e, label: t }) {
let n = y9(e, 8);
return n.length ? /* @__PURE__ */ (0, L.jsx)("section", {
"aria-label": t,
- className: `flex grow flex-col ${fAe[n.length]}`,
+ className: `flex grow flex-col ${pAe[n.length]}`,
children: /* @__PURE__ */ (0, L.jsxs)(x7, {
data: n,
config: P9,
layout: "horizontal",
barRadius: 4,
- chartProps: { maxBarSize: pAe },
+ chartProps: { maxBarSize: mAe },
className: "aspect-auto text-text-secondary",
children: [
/* @__PURE__ */ (0, L.jsx)(x7.YAxis, {
@@ -68168,8 +68195,8 @@ function _Ae({ rows: e, label: t }) {
})
}) : null;
}
-function vAe({ flows: e }) {
- let [t, n] = (0, I.useState)(null), r = Gke(e);
+function yAe({ flows: e }) {
+ let [t, n] = (0, I.useState)(null), r = Kke(e);
if (!r) return null;
let i = t?.node ?? null, a = (e, n) => t ? i === null ? t.label === n : e.source === i || e.target === i : !0;
return /* @__PURE__ */ (0, L.jsxs)("section", {
@@ -68197,7 +68224,7 @@ function vAe({ flows: e }) {
"aria-label": `${e.label}:${e.value} 条线索`,
fillOpacity: 0,
strokeOpacity: a(e, e.label) ? .55 : .08,
- className: `outline-none transition-opacity ${uAe[e.color]}`,
+ className: `outline-none transition-opacity ${dAe[e.color]}`,
onPointerEnter: () => n({
value: e.value,
label: e.label,
@@ -68231,14 +68258,14 @@ function vAe({ flows: e }) {
width: 10,
height: e.height,
rx: 5,
- className: e.side === "source" ? dAe[e.color] : "fill-text-secondary"
+ className: e.side === "source" ? fAe[e.color] : "fill-text-secondary"
}), /* @__PURE__ */ (0, L.jsxs)("text", {
x: x9[e.side],
y: e.y + e.height / 2,
textAnchor: e.side === "source" ? "end" : "start",
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
- children: [Kke(e.name), /* @__PURE__ */ (0, L.jsx)("tspan", {
+ children: [qke(e.name), /* @__PURE__ */ (0, L.jsx)("tspan", {
x: x9[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
@@ -68256,11 +68283,11 @@ function vAe({ flows: e }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var yAe = 10, F9 = Sw(RA, zA, "text-body-2-medium"), I9 = `${Rw()} flex flex-col gap-4`, L9 = "rounded-xl bg-background-primary-default p-3", bAe = "读取运行 Peach 的这台电脑上的浏览记录", xAe = "导入或读取浏览记录后,这里会列出已采集设备。", SAe = "馆藏里暂时没有对得上浏览信号的标签。", CAe = "采集浏览记录后,这里会显示聚合后的口味证据。", wAe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", TAe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", EAe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", DAe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", OAe = "这个数据源将不再用于口味分析。原始导出文件保留。", R9 = "peach-taste-guide-dismissed";
+var bAe = 10, F9 = Cw(BA, VA, "text-body-2-medium"), I9 = `${zw()} flex flex-col gap-4`, L9 = "rounded-xl bg-background-primary-default p-3", xAe = "读取运行 Peach 的这台电脑上的浏览记录", SAe = "导入或读取浏览记录后,这里会列出已采集设备。", CAe = "馆藏里暂时没有对得上浏览信号的标签。", wAe = "采集浏览记录后,这里会显示聚合后的口味证据。", TAe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", EAe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", DAe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", OAe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", kAe = "这个数据源将不再用于口味分析。原始导出文件保留。", R9 = "peach-taste-guide-dismissed";
function z9({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
- className: AA(),
- children: /* @__PURE__ */ (0, L.jsx)(PA, {
+ className: MA(),
+ children: /* @__PURE__ */ (0, L.jsx)(IA, {
label: t,
icon: e,
accent: i,
@@ -68283,22 +68310,22 @@ function B9({ name: e, domain: t }) {
})]
});
}
-function kAe({ html: e }) {
+function AAe({ html: e }) {
return /* @__PURE__ */ (0, L.jsx)("span", {
- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${NF}`,
+ className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${PF}`,
dangerouslySetInnerHTML: { __html: e }
});
}
-function AAe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
- if (!e.length) return /* @__PURE__ */ (0, L.jsx)(Bw, {
+function jAe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
+ if (!e.length) return /* @__PURE__ */ (0, L.jsx)(Vw, {
shell: "plain",
- icon: PS,
+ icon: FS,
title: "暂无足够证据",
children: r
});
- let o = Uke(e);
+ let o = Wke(e);
return /* @__PURE__ */ (0, L.jsx)(H7, {
- previewCount: yAe,
+ previewCount: bAe,
className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",
children: e.map((e, r) => {
let s = !!t && !!e.peach_items, c = String(e.source_domain || ""), l = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
@@ -68325,7 +68352,7 @@ function AAe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
name: e.name,
domain: c
}) : null,
- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, L.jsx)(kAe, { html: a(e.name, e.entity_id ? {
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, L.jsx)(AAe, { html: a(e.name, e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
avatar_focus: e.avatar_focus
@@ -68337,10 +68364,10 @@ function AAe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
children: e.name
}), /* @__PURE__ */ (0, L.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: Hke(e)
+ children: Uke(e)
})]
}),
- s ? /* @__PURE__ */ (0, L.jsx)(mS, {
+ s ? /* @__PURE__ */ (0, L.jsx)(gS, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
}) : null
@@ -68361,23 +68388,23 @@ function AAe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
});
}
function V9({ label: e, panels: t, onSignal: n, avatarInner: r }) {
- return /* @__PURE__ */ (0, L.jsxs)(uO, {
- className: `${Rw({ padding: "none" })} flex flex-col`,
+ return /* @__PURE__ */ (0, L.jsxs)(pO, {
+ className: `${zw({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, L.jsx)(dO, {
+ children: /* @__PURE__ */ (0, L.jsx)(mO, {
"aria-label": e,
- className: SM,
- children: t.map((e) => /* @__PURE__ */ (0, L.jsx)(fO, {
+ className: CM,
+ children: t.map((e) => /* @__PURE__ */ (0, L.jsx)(hO, {
id: e.id,
- className: CM,
+ className: wM,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, L.jsx)(pO, {
+ }), t.map((e) => /* @__PURE__ */ (0, L.jsx)(gO, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, L.jsx)(AAe, {
+ children: /* @__PURE__ */ (0, L.jsx)(jAe, {
...e.props,
onSignal: n,
avatarInner: r
@@ -68385,7 +68412,7 @@ function V9({ label: e, panels: t, onSignal: n, avatarInner: r }) {
}, e.id))]
});
}
-function jAe({ data: e, onSignal: t, navigate: n }) {
+function MAe({ data: e, onSignal: t, navigate: n }) {
let r = e.analysis;
if (!r?.headline) return null;
let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({
@@ -68451,21 +68478,21 @@ function jAe({ data: e, onSignal: t, navigate: n }) {
className: "text-caption-1-regular text-text-secondary",
children: e.detail
})]
- }), /* @__PURE__ */ (0, L.jsx)(mS, {
+ }), /* @__PURE__ */ (0, L.jsx)(gS, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
})]
}, e.key))
- }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
shell: "plain",
- icon: PS,
+ icon: FS,
title: "还没有可探索的入口",
- children: SAe
+ children: CAe
})
]
});
}
-function MAe({ onboarding: e, done: t }) {
+function NAe({ onboarding: e, done: t }) {
let [n, r] = (0, I.useState)(() => {
try {
return localStorage.getItem(R9) === "1";
@@ -68474,21 +68501,21 @@ function MAe({ onboarding: e, done: t }) {
}
});
return t || n ? null : /* @__PURE__ */ (0, L.jsx)("div", {
- className: Rw({
+ className: zw({
padding: "none",
className: "p-4"
}),
- children: /* @__PURE__ */ (0, L.jsxs)(aj, {
+ children: /* @__PURE__ */ (0, L.jsxs)(sj, {
summary: "浏览器历史记录导入指南",
defaultOpen: e,
children: [
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: TAe
+ children: EAe
}),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: EAe
+ children: DAe
}),
/* @__PURE__ */ (0, L.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
@@ -68518,7 +68545,7 @@ function MAe({ onboarding: e, done: t }) {
}),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: DAe
+ children: OAe
}),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "self-start",
@@ -68538,7 +68565,7 @@ function MAe({ onboarding: e, done: t }) {
})
});
}
-function NAe({ busy: e, onRefresh: t, onImport: n }) {
+function PAe({ busy: e, onRefresh: t, onImport: n }) {
let r = (0, I.useRef)(null), [i, a] = (0, I.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -68547,35 +68574,35 @@ function NAe({ busy: e, onRefresh: t, onImport: n }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, L.jsx)(G, {
- leadingIcon: vS,
- title: bAe,
+ leadingIcon: bS,
+ title: xAe,
onClick: t,
...Y(e),
children: "读取浏览器历史"
}), /* @__PURE__ */ (0, L.jsx)(G, {
ref: r,
iconOnly: !0,
- leadingIcon: fS,
+ leadingIcon: mS,
"aria-label": "更多取得浏览记录的方式",
"aria-haspopup": "dialog",
"aria-expanded": i,
onClick: () => a(!0)
})]
- }), /* @__PURE__ */ (0, L.jsx)(_D, {
+ }), /* @__PURE__ */ (0, L.jsx)(bD, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: LA,
- children: /* @__PURE__ */ (0, L.jsxs)(OD, {
+ className: zA,
+ children: /* @__PURE__ */ (0, L.jsxs)(jD, {
"aria-label": "更多取得浏览记录的方式",
className: "flex w-52 flex-col gap-1 outline-none",
children: [/* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
className: F9,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, L.jsx)(vS, {
+ children: [/* @__PURE__ */ (0, L.jsx)(bS, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "读取浏览器历史"]
@@ -68583,7 +68610,7 @@ function NAe({ busy: e, onRefresh: t, onImport: n }) {
type: "button",
className: F9,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, L.jsx)(RS, {
+ children: [/* @__PURE__ */ (0, L.jsx)(zS, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "导入历史文件"]
@@ -68591,9 +68618,9 @@ function NAe({ busy: e, onRefresh: t, onImport: n }) {
})
})] });
}
-function PAe({ sources: e, window: t, toast: n }) {
+function FAe({ sources: e, window: t, toast: n }) {
let r = At({
- mutationFn: (e) => Lke(e, t),
+ mutationFn: (e) => Rke(e, t),
onSuccess: (e) => {
X.setQueryData(g9(t), e.dashboard), n("已移除口味数据源");
}
@@ -68617,10 +68644,10 @@ function PAe({ sources: e, window: t, toast: n }) {
children: [
/* @__PURE__ */ (0, L.jsx)("span", {
className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",
- children: e.browser === "browserexport" ? /* @__PURE__ */ (0, L.jsx)(RS, {
+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, L.jsx)(zS, {
"aria-hidden": !0,
className: "size-4"
- }) : /* @__PURE__ */ (0, L.jsx)(yS, {
+ }) : /* @__PURE__ */ (0, L.jsx)(xS, {
"aria-hidden": !0,
className: "size-4"
})
@@ -68640,12 +68667,12 @@ function PAe({ sources: e, window: t, toast: n }) {
size: "small",
"aria-label": `移除 ${e.profile}`,
iconOnly: !0,
- leadingIcon: bS,
+ leadingIcon: SS,
...Y(r.isPending),
onClick: () => {
r.isPending || h({
title: "移除口味数据源",
- body: OAe,
+ body: kAe,
confirmLabel: "移除口味数据源",
onConfirm: () => r.mutateAsync(e.source_key)
});
@@ -68653,30 +68680,30 @@ function PAe({ sources: e, window: t, toast: n }) {
})
]
}, e.source_key))
- }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
shell: "plain",
- icon: yS,
+ icon: xS,
title: "还没有数据源",
- children: xAe
+ children: SAe
})
]
});
}
-function FAe(e) {
+function IAe(e) {
let { onSignal: t, navigate: n, toast: r, avatarInner: i, onboarding: o } = e, [s, c] = (0, I.useState)("all"), [l, u] = (0, I.useState)("browser"), d = (0, I.useRef)(null), f = kt({
queryKey: g9(s),
queryFn: ({ signal: e }) => _9(s, e),
placeholderData: Oe
- }), { job: p, running: m, outcome: h, start: g } = Dj({
- queryKey: Mke,
- queryFn: ({ signal: e }) => Pke(e),
- start: () => Ike(s),
- idlePollMs: zke,
+ }), { job: p, running: m, outcome: h, start: g } = kj({
+ queryKey: Nke,
+ queryFn: ({ signal: e }) => Fke(e),
+ start: () => Lke(s),
+ idlePollMs: Bke,
onFinish: (e) => {
e.status !== "failed" && (X.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));
}
}), _ = At({
- mutationFn: (e) => Rke(e),
+ mutationFn: (e) => zke(e),
onSuccess: (e) => {
X.setQueryData(g9("all"), e.dashboard), c("all"), r("已导入口味数据");
}
@@ -68686,47 +68713,47 @@ function FAe(e) {
}, y = () => {
m || g.isPending || (g.reset(), g.mutate());
}, b = f.data;
- if (!b) return /* @__PURE__ */ (0, L.jsx)(Hw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ if (!b) return /* @__PURE__ */ (0, L.jsx)(Uw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "读取失败",
children: f.error ? K(f.error) : "读取口味分析失败"
}) });
let x = b.summary || {}, S = b.coverage || {}, C = b.rankings || {}, w = b.storage || {}, T = C.browser_categories || [], E = b.gaps || [], D = S.tagged || 0, O = S.identified || 0, k = g.error ? K(g.error) : _.error ? K(_.error) : h?.status === "failed" ? h.error || "读取未取得" : "";
- return /* @__PURE__ */ (0, L.jsxs)(Hw, { children: [
- /* @__PURE__ */ (0, L.jsxs)(uO, {
+ return /* @__PURE__ */ (0, L.jsxs)(Uw, { children: [
+ /* @__PURE__ */ (0, L.jsxs)(pO, {
selectedKey: l,
onSelectionChange: (e) => u(String(e)),
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, L.jsxs)(dO, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(mO, {
"aria-label": "口味证据来源",
- className: SM,
- children: [/* @__PURE__ */ (0, L.jsx)(fO, {
+ className: CM,
+ children: [/* @__PURE__ */ (0, L.jsx)(hO, {
id: "browser",
- className: CM,
+ className: wM,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, L.jsx)(fO, {
+ }), /* @__PURE__ */ (0, L.jsx)(hO, {
id: "peach",
- className: CM,
+ className: wM,
children: "Peach 内部"
})]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(Sj, {
+ /* @__PURE__ */ (0, L.jsx)(wj, {
"aria-label": "分析范围",
selectedKey: s,
onSelectionChange: (e) => {
e !== null && c(String(e));
},
- children: Nke.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Cj, {
+ children: Pke.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Tj, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, L.jsx)(NAe, {
+ /* @__PURE__ */ (0, L.jsx)(PAe, {
busy: m || g.isPending || _.isPending,
onRefresh: y,
onImport: () => d.current?.click()
@@ -68742,7 +68769,7 @@ function FAe(e) {
]
})]
}),
- /* @__PURE__ */ (0, L.jsx)(MAe, {
+ /* @__PURE__ */ (0, L.jsx)(NAe, {
onboarding: o,
done: !!(x.history_sources || b.updated_at)
}),
@@ -68752,7 +68779,7 @@ function FAe(e) {
children: [
m ? p?.total ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, L.jsx)(Gw, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Kw, {
label: p.message || "正在读取浏览记录",
value: p.checked || 0,
max: p.total
@@ -68760,44 +68787,44 @@ function FAe(e) {
className: "text-caption-1-regular text-text-secondary",
children: `${p.message || "正在读取浏览记录"} · ${p.checked || 0} / ${p.total}`
})]
- }) : /* @__PURE__ */ (0, L.jsx)(Vw, { label: p?.message || "正在读取浏览记录并更新口味分析" }) : null,
- _.isPending ? /* @__PURE__ */ (0, L.jsx)(Vw, { label: "正在导入历史文件" }) : null,
+ }) : /* @__PURE__ */ (0, L.jsx)(Hw, { label: p?.message || "正在读取浏览记录并更新口味分析" }) : null,
+ _.isPending ? /* @__PURE__ */ (0, L.jsx)(Hw, { label: "正在导入历史文件" }) : null,
k ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
children: k
}) : null
]
}),
- /* @__PURE__ */ (0, L.jsxs)(pO, {
+ /* @__PURE__ */ (0, L.jsxs)(gO, {
id: "browser",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
- className: jA,
+ className: NA,
children: [
/* @__PURE__ */ (0, L.jsx)(z9, {
accent: 0,
- icon: wS,
+ icon: ES,
term: "浏览记录",
figure: Number(x.history_visits || 0).toLocaleString(),
detail: `${x.history_sources || 0} 个数据源 · ${v9(x.range_start)}—${v9(x.range_end)}`
}),
/* @__PURE__ */ (0, L.jsx)(z9, {
accent: 1,
- icon: jS,
+ icon: MS,
term: "口味维度",
figure: T.length.toLocaleString(),
detail: T[0]?.name || "尚无主维度"
}),
/* @__PURE__ */ (0, L.jsx)(z9, {
accent: 2,
- icon: PS,
+ icon: FS,
term: "浏览候选",
figure: E.length.toLocaleString()
}),
/* @__PURE__ */ (0, L.jsx)(z9, {
accent: 3,
- icon: yS,
+ icon: xS,
term: "私有导出",
figure: Number(w.exports || 0).toLocaleString(),
detail: a(w.bytes || 0)
@@ -68814,7 +68841,7 @@ function FAe(e) {
className: "text-caption-1-regular text-text-secondary",
children: "浏览器画像"
}),
- /* @__PURE__ */ (0, L.jsx)(gAe, {
+ /* @__PURE__ */ (0, L.jsx)(_Ae, {
rows: T,
label: "主要口味维度"
}),
@@ -68825,14 +68852,14 @@ function FAe(e) {
]
}), /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex min-w-0 grow flex-col",
- children: T.length ? /* @__PURE__ */ (0, L.jsx)(_Ae, {
+ children: T.length ? /* @__PURE__ */ (0, L.jsx)(vAe, {
rows: T,
label: "口味维度排名"
- }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
shell: "plain",
- icon: PS,
+ icon: FS,
title: "暂无口味维度",
- children: CAe
+ children: wAe
})
})]
}),
@@ -68848,7 +68875,7 @@ function FAe(e) {
tone: 4,
empty: "还没有可用于分析的口味网站访问记录。"
}),
- /* @__PURE__ */ (0, L.jsx)(vAe, { flows: b.creator_flows }),
+ /* @__PURE__ */ (0, L.jsx)(yAe, { flows: b.creator_flows }),
/* @__PURE__ */ (0, L.jsx)(V9, {
label: "浏览器口味维度",
onSignal: t,
@@ -68891,42 +68918,42 @@ function FAe(e) {
rows: E,
kind: "",
visual: "none",
- empty: wAe
+ empty: TAe
}
}
]
})
]
}),
- /* @__PURE__ */ (0, L.jsxs)(pO, {
+ /* @__PURE__ */ (0, L.jsxs)(gO, {
id: "peach",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
- className: jA,
+ className: NA,
children: [
/* @__PURE__ */ (0, L.jsx)(z9, {
accent: 0,
- icon: SS,
+ icon: wS,
term: "Peach 看过",
figure: Number(x.peach_items || 0).toLocaleString(),
- detail: Bke(x.peach_seconds || 0)
+ detail: Vke(x.peach_seconds || 0)
}),
/* @__PURE__ */ (0, L.jsx)(z9, {
accent: 1,
- icon: LS,
+ icon: RS,
term: "喜欢",
figure: Number(x.liked || 0).toLocaleString()
}),
/* @__PURE__ */ (0, L.jsx)(z9, {
accent: 2,
- icon: IS,
+ icon: LS,
term: "不合口味",
figure: Number(x.disliked || 0).toLocaleString()
}),
/* @__PURE__ */ (0, L.jsx)(z9, {
accent: 3,
- icon: jS,
+ icon: MS,
term: "有标签",
figure: D.toLocaleString()
})
@@ -69005,12 +69032,12 @@ function FAe(e) {
})
]
}),
- /* @__PURE__ */ (0, L.jsx)(jAe, {
+ /* @__PURE__ */ (0, L.jsx)(MAe, {
data: b,
onSignal: t,
navigate: n
}),
- /* @__PURE__ */ (0, L.jsx)(PAe, {
+ /* @__PURE__ */ (0, L.jsx)(FAe, {
sources: b.sources || [],
window: s,
toast: r
@@ -69030,7 +69057,7 @@ function H9({ term: e, value: t, rest: n }) {
children: `${n} 项待补`
})]
})]
- }), /* @__PURE__ */ (0, L.jsx)(Gw, {
+ }), /* @__PURE__ */ (0, L.jsx)(Kw, {
label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,
value: t,
max: r
@@ -69039,26 +69066,26 @@ function H9({ term: e, value: t, rest: n }) {
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
-function IAe(e) {
+function LAe(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 LAe = (e) => {
+var RAe = (e) => {
switch (e) {
- case "success": return BAe;
- case "info": return HAe;
- case "warning": return VAe;
- case "error": return UAe;
+ case "success": return VAe;
+ case "info": return UAe;
+ case "warning": return HAe;
+ case "error": return WAe;
default: return null;
}
-}, RAe = Array(12).fill(0), zAe = ({ visible: e, className: t }) => /*#__PURE__*/ I.createElement("div", {
+}, zAe = Array(12).fill(0), BAe = ({ visible: e, className: t }) => /*#__PURE__*/ I.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ I.createElement("div", { className: "sonner-spinner" }, RAe.map((e, t) => /*#__PURE__*/ I.createElement("div", {
+}, /*#__PURE__*/ I.createElement("div", { className: "sonner-spinner" }, zAe.map((e, t) => /*#__PURE__*/ I.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), BAe = /*#__PURE__*/ I.createElement("svg", {
+})))), VAe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -69069,7 +69096,7 @@ var LAe = (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"
-})), VAe = /*#__PURE__*/ I.createElement("svg", {
+})), HAe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -69080,7 +69107,7 @@ var LAe = (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"
-})), HAe = /*#__PURE__*/ I.createElement("svg", {
+})), UAe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -69091,7 +69118,7 @@ var LAe = (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"
-})), UAe = /*#__PURE__*/ I.createElement("svg", {
+})), WAe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -69102,7 +69129,7 @@ var LAe = (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"
-})), WAe = /*#__PURE__*/ I.createElement("svg", {
+})), GAe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -69123,7 +69150,7 @@ var LAe = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), GAe = () => {
+})), KAe = () => {
let [e, t] = I.useState(document.hidden);
return I.useEffect(() => {
let e = () => {
@@ -69131,7 +69158,7 @@ var LAe = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, KAe = 1, qAe = 100, U9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : KAe++, W9 = new class {
+}, qAe = 1, JAe = 100, U9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : qAe++, W9 = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -69141,7 +69168,7 @@ var LAe = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - qAe;
+ let e = this.toasts.length - JAe;
e <= 0 || (this.toasts = this.toasts.filter((t) => e > 0 && this.dismissedToasts.has(t.id) ? (this.dismissedToasts.delete(t.id), e--, !1) : !0));
}, this.create = (e) => {
let { message: t, ...n } = e, r = U9(e), i = this.pendingDismissals.get(r);
@@ -69219,7 +69246,7 @@ var LAe = (e) => {
type: "default",
message: e
});
- else if (YAe(e) && !e.ok) {
+ else if (XAe(e) && !e.ok) {
i = !1;
let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !I.isValidElement(r) ? r : { message: r };
this.create({
@@ -69272,7 +69299,7 @@ var LAe = (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();
}
-}(), JAe = (e, t) => W9.message(e, t), YAe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", G9 = Object.assign(JAe, {
+}(), YAe = (e, t) => W9.message(e, t), XAe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", G9 = Object.assign(YAe, {
success: W9.success,
info: W9.info,
warning: W9.warning,
@@ -69286,20 +69313,20 @@ var LAe = (e) => {
getHistory: () => W9.toasts,
getToasts: () => W9.getActiveToasts()
});
-IAe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
+LAe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
function K9(e) {
return e.label !== void 0;
}
-var XAe = 3, ZAe = "24px", QAe = "16px", q9 = 4e3, $Ae = 356, eje = 14, tje = 45, nje = 200;
+var ZAe = 3, QAe = "24px", $Ae = "16px", q9 = 4e3, eje = 356, tje = 14, nje = 45, rje = 200;
function J9(...e) {
return e.filter(Boolean).join(" ");
}
-function rje(e) {
+function ije(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var ije = (e) => {
- let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = I.useState(null), [O, k] = I.useState(null), [A, j] = I.useState(!1), [M, N] = I.useState(!1), [ee, te] = I.useState(!1), [P, F] = I.useState(!1), [ne, re] = I.useState(!1), [ie, L] = I.useState(0), [ae, oe] = I.useState(0), se = I.useRef(n.duration || y || q9), ce = I.useRef(null), le = I.useRef(null), ue = c === 0, R = c + 1 <= o, z = n.type, de = z ?? "default", fe = n.dismissible !== !1, pe = n.className || "", me = n.descriptionClassName || "", he = I.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ge = I.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), _e = I.useMemo(() => n.duration || y || q9, [n.duration, y]), ve = I.useRef(0), ye = I.useRef(0), be = I.useRef(0), xe = I.useRef(null), [Se, Ce] = b.split("-"), we = I.useMemo(() => s.reduce((e, t, n) => n >= he ? e : e + t.height, 0), [s, he]), Te = GAe(), Ee = I.useMemo(() => e.swipeDirections ?? rje(b), [e.swipeDirections, b]), De = n.invert || t, Oe = z === "loading";
+var aje = (e) => {
+ let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = I.useState(null), [O, k] = I.useState(null), [A, j] = I.useState(!1), [M, N] = I.useState(!1), [ee, te] = I.useState(!1), [P, F] = I.useState(!1), [ne, re] = I.useState(!1), [ie, L] = I.useState(0), [ae, oe] = I.useState(0), se = I.useRef(n.duration || y || q9), ce = I.useRef(null), le = I.useRef(null), ue = c === 0, R = c + 1 <= o, z = n.type, de = z ?? "default", fe = n.dismissible !== !1, pe = n.className || "", me = n.descriptionClassName || "", he = I.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ge = I.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), _e = I.useMemo(() => n.duration || y || q9, [n.duration, y]), ve = I.useRef(0), ye = I.useRef(0), be = I.useRef(0), xe = I.useRef(null), [Se, Ce] = b.split("-"), we = I.useMemo(() => s.reduce((e, t, n) => n >= he ? e : e + t.height, 0), [s, he]), Te = KAe(), Ee = I.useMemo(() => e.swipeDirections ?? ije(b), [e.swipeDirections, b]), De = n.invert || t, Oe = z === "loading";
ye.current = I.useMemo(() => he * x + we, [he, we]), I.useEffect(() => {
se.current = _e;
}, [_e]), I.useEffect(() => {
@@ -69340,7 +69367,7 @@ var ije = (e) => {
let ke = I.useCallback(() => {
N(!0), L(ye.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, nje);
+ }, rje);
}, [
n,
d,
@@ -69373,12 +69400,12 @@ var ije = (e) => {
return w?.loading ? /*#__PURE__*/ I.createElement("div", {
className: J9(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": z === "loading"
- }, w.loading) : /*#__PURE__*/ I.createElement(zAe, {
+ }, w.loading) : /*#__PURE__*/ I.createElement(BAe, {
className: J9(C?.loader, n?.classNames?.loader),
visible: z === "loading"
});
}
- let je = n.icon || w?.[z] || LAe(z);
+ let je = n.icon || w?.[z] || RAe(z);
return /*#__PURE__*/ I.createElement("li", {
tabIndex: 0,
ref: le,
@@ -69425,7 +69452,7 @@ var ije = (e) => {
if (P || !fe) return;
xe.current = null;
let e = Number(le.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(le.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - ce.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;
- if ((E === "x" ? Ee.includes(e > 0 ? "right" : "left") : Ee.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= tje || a > .11)) {
+ if ((E === "x" ? Ee.includes(e > 0 ? "right" : "left") : Ee.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= nje || a > .11)) {
L(ye.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), ke(), F(!0);
return;
}
@@ -69466,7 +69493,7 @@ var ije = (e) => {
ke(), n.onDismiss == null || n.onDismiss.call(n, n);
},
className: J9(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? WAe) : null, (z || n.icon || n.promise) && n.icon !== null && (w?.[z] !== null || n.icon) ? /*#__PURE__*/ I.createElement("div", {
+ }, w?.close ?? GAe) : null, (z || n.icon || n.promise) && n.icon !== null && (w?.[z] !== null || n.icon) ? /*#__PURE__*/ I.createElement("div", {
"data-icon": "",
className: J9(C?.icon, n?.classNames?.icon)
}, z === "loading" ? n.icon || Ae() : n.promise ? Ae() : null, z === "loading" ? null : je) : null, /*#__PURE__*/ I.createElement("div", {
@@ -69501,10 +69528,10 @@ function Y9() {
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function aje(e, t) {
+function oje(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? QAe : ZAe;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? $Ae : QAe;
function o(e) {
[
"top",
@@ -69525,8 +69552,8 @@ function aje(e, t) {
}) : o(a);
}), n;
}
-var oje = /*#__PURE__*/ I.forwardRef(function(e, t) {
- let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = XAe, toastOptions: g, dir: _ = Y9(), gap: v = eje, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = I.useState([]), w = I.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = I.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = I.useState([]), [O, k] = I.useState(!1), [A, j] = I.useState(!1), [M, N] = I.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = I.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = I.useRef(null), F = I.useRef(!1), ne = I.useCallback((e) => {
+var sje = /*#__PURE__*/ I.forwardRef(function(e, t) {
+ let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = ZAe, toastOptions: g, dir: _ = Y9(), gap: v = tje, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = I.useState([]), w = I.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = I.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = I.useState([]), [O, k] = I.useState(!1), [A, j] = I.useState(!1), [M, N] = I.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = I.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = I.useRef(null), F = I.useRef(!1), ne = I.useCallback((e) => {
C((t) => (t.find((t) => t.id === e.id)?.delete || W9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
return I.useEffect(() => W9.subscribe((e) => {
@@ -69612,10 +69639,10 @@ var oje = /*#__PURE__*/ I.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${$Ae}px`,
+ "--width": `${eje}px`,
"--gap": `${v}px`,
...m,
- ...aje(l, u)
+ ...oje(l, u)
},
onBlur: (e) => {
F.current && !e.currentTarget.contains(e.relatedTarget) && (F.current = !1, P.current &&= (P.current.focus({ preventScroll: !0 }), null));
@@ -69633,7 +69660,7 @@ var oje = /*#__PURE__*/ I.forwardRef(function(e, t) {
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || j(!0);
},
onPointerUp: () => j(!1)
- }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ I.createElement(ije, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ I.createElement(aje, {
key: n.id,
icons: y,
index: i,
@@ -69667,8 +69694,8 @@ var oje = /*#__PURE__*/ I.forwardRef(function(e, t) {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), Z9 = !1, sje = (e, t) => {
- Z9 || (Z9 = !0, (0, dS.createRoot)(e).render(/* @__PURE__ */ (0, L.jsx)(oje, {
+}), Z9 = !1, cje = (e, t) => {
+ Z9 || (Z9 = !0, (0, pS.createRoot)(e).render(/* @__PURE__ */ (0, L.jsx)(sje, {
position: "bottom-right",
closeButton: !0,
gap: 8,
@@ -69689,7 +69716,7 @@ var oje = /*#__PURE__*/ I.forwardRef(function(e, t) {
error: X9(t.error, !1)
}
})));
-}, cje = (e, t) => {
+}, lje = (e, t) => {
let n = t.alert ? G9.error : G9.success, r = t.action;
n(/* @__PURE__ */ (0, L.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
@@ -69702,17 +69729,17 @@ var oje = /*#__PURE__*/ I.forwardRef(function(e, t) {
} : void 0
});
}, Q9 = null;
-function lje() {
+function uje() {
return Q9?.isConnected || (Q9 = document.createElement("div"), Q9.className = "peach-react", Q9.dataset.reactOverlays = "", document.body.append(Q9)), Q9;
}
function $9(e) {
return (t, n) => {
- let r = (0, dS.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, L.jsx)(se, {
+ let r = (0, pS.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, L.jsx)(se, {
client: X,
children: /* @__PURE__ */ (0, L.jsx)(Pu, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, L.jsx)(ty, {
- getContainer: lje,
+ children: /* @__PURE__ */ (0, L.jsx)(iy, {
+ getContainer: uje,
children: /* @__PURE__ */ (0, L.jsx)(e, { ...t })
})
})
@@ -69723,33 +69750,33 @@ function $9(e) {
};
};
}
-var uje = {
+var dje = {
activity: {
- prefetch: (e, t) => tT(t),
- mount: $9(cne)
+ prefetch: (e, t) => nT(t),
+ mount: $9(sne)
},
"catalog-grid": {
- prefetch: hne,
- mount: $9(Hne)
+ prefetch: mne,
+ mount: $9(Bne)
},
"cover-crop": {
prefetch: async () => {},
- mount: $9(eae)
+ mount: $9(Qie)
},
configuration: {
- prefetch: (e, t) => DL(t),
+ prefetch: (e, t) => OL(t),
mount: $9(Eue)
},
"configuration-summary": {
- prefetch: (e, t) => DL(t),
+ prefetch: (e, t) => OL(t),
mount: $9(Oue)
},
"data-cleanup": {
- prefetch: (e, t) => Jae(t),
+ prefetch: (e, t) => qae(t),
mount: $9(Soe)
},
duplicates: {
- prefetch: (e, t) => LO(t),
+ prefetch: (e, t) => aae(t),
mount: $9(joe)
},
"entity-hero": {
@@ -69762,10 +69789,10 @@ var uje = {
},
"follow-manage": {
prefetch: (e, t) => lce(t, e.tab),
- mount: $9(cI)
+ mount: $9(lI)
},
index: {
- prefetch: (e, t) => AI(e, t),
+ prefetch: (e, t) => jI(e, t),
mount: $9(Ece)
},
"junk-queue": {
@@ -69773,19 +69800,19 @@ var uje = {
mount: $9(Uce)
},
"library-processing": {
- prefetch: (e, t) => qO(t),
- mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, L.jsx)(Yce, { ...e }) : /* @__PURE__ */ (0, L.jsx)(gj, { ...e }))
+ prefetch: (e, t) => JO(t),
+ mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, L.jsx)(Yce, { ...e }) : /* @__PURE__ */ (0, L.jsx)(vj, { ...e }))
},
playlists: {
prefetch: (e, t) => Zce(t),
mount: $9(lle)
},
"quality-goals": {
- prefetch: (e, t) => mk(t),
+ prefetch: (e, t) => hk(t),
mount: $9(dle)
},
review: {
- prefetch: (e, t) => jk(t),
+ prefetch: (e, t) => Nk(t),
mount: $9(Dle)
},
scraping: {
@@ -69794,12 +69821,12 @@ var uje = {
},
stats: {
prefetch: (e, t) => Aue(t),
- mount: $9(dke)
+ mount: $9(fke)
},
taste: {
- prefetch: (e, t) => Fke("all", t),
- mount: $9(FAe)
+ prefetch: (e, t) => Ike("all", t),
+ mount: $9(IAe)
}
};
//#endregion
-export { sje as mountToaster, uje as pages, cje as showToast };
+export { cje as mountToaster, dje as pages, lje as showToast };
diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.js
index 2516386f9..307343bb3 100644
--- a/web/dist/peach-ui.js
+++ b/web/dist/peach-ui.js
@@ -887,6 +887,12 @@ function pt(e, t) {
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 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)));
+ }), n;
+}
//#endregion
//#region src/islands.ts
var Z = {
@@ -909,8 +915,8 @@ var Z = {
activity: { react: "activity" },
stats: { react: "stats" },
taste: { react: "taste" }
-}, mt = () => import("/dist/peach-react.js").then(() => void 0), ht = () => Object.keys(Z), Q = /* @__PURE__ */ new Map();
-async function gt(e, t, n, r = {}) {
+}, ht = () => import("/dist/peach-react.js").then(() => void 0), gt = () => Object.keys(Z), Q = /* @__PURE__ */ new Map();
+async function _t(e, t, n, r = {}) {
let i = Z[e];
if (!i) throw Error(`未注册的 island:${String(e)}`);
$(t);
@@ -922,7 +928,7 @@ async function gt(e, t, n, r = {}) {
} catch {
if (a.controller.signal.aborted) return;
}
- if (!vt(t, a, r)) return;
+ if (!yt(t, a, r)) return;
let s = () => {
t.textContent = "";
let e = t.ownerDocument.createElement("div");
@@ -934,27 +940,27 @@ async function gt(e, t, n, r = {}) {
};
r.reveal ? r.reveal(t, s) : s();
}
-function _t(e, t) {
+function vt(e, t) {
let n = e ? Q.get(e) : void 0;
!n?.update || !n.props || (n.props = {
...n.props,
...t
}, n.update(n.props));
}
-function vt(e, t, n) {
+function yt(e, t, n) {
return Q.get(e) === t ? n.isCurrent && !n.isCurrent() ? (Q.delete(e), !1) : !0 : !1;
}
-var yt = (e) => !!e && Q.has(e);
+var bt = (e) => !!e && Q.has(e);
function $(e) {
- for (let t of [...Q.keys()]) (t === e || e.contains(t)) && bt(t);
+ for (let t of [...Q.keys()]) (t === e || e.contains(t)) && xt(t);
}
-function bt(e) {
+function xt(e) {
let t = Q.get(e);
t && (t.controller.abort(), Q.delete(e), t.dispose?.());
}
-var xt = null;
-function St(e, t, n, r) {
- xt ??= import("/dist/peach-react.js").then((n) => (n.mountToaster(e, t), n)), xt.then((e) => e.showToast(n, r));
+var St = null;
+function Ct(e, t, n, r) {
+ St ??= import("/dist/peach-react.js").then((n) => (n.mountToaster(e, t), n)), St.then((e) => e.showToast(n, r));
}
//#endregion
-export { Be as boardPageSkeleton, u as boundedPreference, We as catalogEmptyHtml, Ue as catalogSuggestions, le as clampPage, $e as cleanupSkeletonHtml, ze as detailSkeletonHtml, He as emptyCatalogLayout, pe as entitySkeletonHtml, de as faceSourceScale, ne as followJobProgress, m as initBoardControls, yt as islandMounted, ht as islandNames, dt as javImageKind, C as jobActivityHtml, lt as junkCountSkeletonHtml, q as junkPath, tt as junkRoute, gt as mountIsland, f as mountNumberSetting, fe as nativeImageFit, X as normalizeJavImage, Y as normalizeJavLayout, ut as normalizeJavPreferences, ce as pageCount, ue as paginationHtml, ft as panelFrame, c as preferredDirection, mt as preloadIslands, ae as selectGroup, re as selectRange, ie as selectionSummary, St as showToast, Ge as sidebarHasCatalogContent, b as sidebarSectionHtml, qe as sidebarTagCounts, p as syncBoardRange, pt as syncJavImages, d as syncNumberSetting, oe as syncSelectionToolbar, Ke as syncSidebarSurface, ee as transitionTheme, $ as unmountIsland, _t as updateIsland, w as watchJob, x as wireSidebarGroups };
+export { Be as boardPageSkeleton, u as boundedPreference, We as catalogEmptyHtml, Ue as catalogSuggestions, le as clampPage, $e as cleanupSkeletonHtml, ze as detailSkeletonHtml, He as emptyCatalogLayout, pe as entitySkeletonHtml, de as faceSourceScale, ne as followJobProgress, m as initBoardControls, bt as islandMounted, gt as islandNames, dt as javImageKind, C as jobActivityHtml, lt as junkCountSkeletonHtml, q as junkPath, tt as junkRoute, _t as mountIsland, f as mountNumberSetting, fe as nativeImageFit, X as normalizeJavImage, Y as normalizeJavLayout, ut as normalizeJavPreferences, ce as pageCount, ue as paginationHtml, ft as panelFrame, c as preferredDirection, ht as preloadIslands, mt as relayoutJavImages, ae as selectGroup, re as selectRange, ie as selectionSummary, Ct as showToast, Ge as sidebarHasCatalogContent, b as sidebarSectionHtml, qe as sidebarTagCounts, p as syncBoardRange, pt as syncJavImages, d as syncNumberSetting, oe as syncSelectionToolbar, Ke as syncSidebarSurface, ee as transitionTheme, $ as unmountIsland, vt as updateIsland, w as watchJob, x as wireSidebarGroups };