Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(settings): 配置页「媒体」分组加云下载与 PikPak 账号两张卡

longmeidao4ebce89bb4f9
diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.ts
index 63cf1f6b4..9705297bd 100644
--- a/frontend/src/react/bundle.d.ts
+++ b/frontend/src/react/bundle.d.ts
@@ -107,6 +107,87 @@ export interface AutomaticUpdateState {
mode: string; interval_hours: number; available: boolean; download_available: boolean; error?: string;
}
+/** 云下载的两条渠道:115 经 CloudDrive2,PikPak 直连。 */
+export type DownloadProviderKey = '115' | 'pikpak';
+
+export interface DownloadConfig {
+ clouddrive_address: string;
+ targets: Partial<Record<DownloadProviderKey, string>>;
+ /** PikPak 根目录在账本里对应的声明根,空串表示还没选。 */
+ pikpak_root: string;
+ wait_hours: number;
+}
+
+/** 设置页的云下载块。凭据只报存没存过,不回值。 */
+export interface DownloadSettingsState {
+ available: boolean;
+ config: DownloadConfig;
+ token_set: boolean;
+ pikpak: { logged_in: boolean; username: string; remember: boolean };
+ pikpak_roots: string[];
+ providers: { key: DownloadProviderKey; label: string }[];
+ max_wait_hours: number;
+}
+
+/** 「检查」的结果:每一项各自报,一项失败不挡住其余几项。 */
+export interface DownloadCheckReport {
+ ok: boolean;
+ permissions: { name: string; label: string; granted: boolean }[];
+ missing: string[];
+ root: string;
+ folder: { path: string; can_offline: boolean; cloud: string } | null;
+ quota: { total: number; used: number; left: number } | null;
+ problems: string[];
+}
+
+export interface PikPakLoginResult {
+ ok: boolean;
+ /** 要人机验证时给验证页地址,用户在浏览器里完成后再登录一次。 */
+ captcha_url?: string;
+ message?: string;
+ settings: DownloadSettingsState;
+}
+
+export interface DownloadTask {
+ id: number;
+ info_hash: string | null;
+ provider: DownloadProviderKey;
+ provider_label: string;
+ source_uri: string;
+ display_name: string;
+ target: string;
+ code: string | null;
+ title: string | null;
+ origin: string | null;
+ state: string;
+ state_label: string;
+ failure: string | null;
+ failure_label: string | null;
+ failure_detail: string | null;
+ progress: number | null;
+ remote_name: string | null;
+ ledger_path: string | null;
+ asset_id: number | null;
+ submitted_at: string | null;
+ updated_at: string;
+ finished_at: string | null;
+ blocked: boolean;
+ cancellable: boolean;
+ resubmittable: boolean;
+}
+
+export interface DownloadsSnapshot {
+ available: boolean;
+ providers: { key: DownloadProviderKey; label: string; configured: boolean; target: string }[];
+ tasks: DownloadTask[];
+}
+
+export interface DownloadSubmitResult {
+ ok: boolean;
+ outcome: 'submitted' | 'adopted' | 'adopted_remote' | 'refused' | 'failed';
+ task: DownloadTask;
+}
+
export interface ReleaseState {
current_version: string;
latest_version: string | null;
@@ -139,6 +220,7 @@ export interface ConfigurationData {
peach_proxy?: PeachProxyState;
entry_links?: EntryLinksState;
push_discovery?: PushDiscoveryState;
+ downloads?: DownloadSettingsState;
updates?: ReleaseState;
update_job?: UpdateJob;
automatic_updates?: AutomaticUpdateState;
diff --git a/frontend/src/react/settings/download-settings.tsx b/frontend/src/react/settings/download-settings.tsx
new file mode 100644
index 000000000..e3b03b034
--- /dev/null
+++ b/frontend/src/react/settings/download-settings.tsx
@@ -0,0 +1,214 @@
+/* 「云下载」:把磁力交给 115 或 PikPak 离线下载,文件落在已挂载的网盘目录,由推送发现入库。
+ *
+ * 两张卡。第一张是地址、令牌、目标目录与等待上限:115 走 CloudDrive2 的 gRPC,令牌在
+ * CloudDrive2「设置 → API 令牌」里生成;「检查」按此刻填的值去问 CloudDrive2 有没有离线权限、
+ * 目标目录能不能离线、115 还剩几条配额,只读,不提交。第二张是 PikPak 账号的登录与登出。
+ *
+ * 令牌与密码只往本机凭据文件写,读接口只回「存没存过」,所以令牌框保存后清空、提示改成
+ * 「已保存,留空不改」。PikPak 要人机验证时服务端回一个验证页地址,这里给出链接让用户在浏览器
+ * 里完成,Peach 不替他过验证。 */
+import { useState, type FormEvent } from 'react';
+
+import { Button } from '@/components/base/buttons/button';
+import { Checkbox } from '@/components/base/checkbox/checkbox';
+import { Input } from '@/components/base/input/input';
+import { Select, SelectItem } from '@/components/base/select/select';
+
+import { apiSend, errorMessage } from '../../api';
+import type {
+ DownloadCheckReport, DownloadConfig, DownloadSettingsState, PikPakLoginResult,
+} from '../bundle';
+import { Note } from '../components/note';
+import { ErrorText, ExternalLink, Fact, FactList, FieldLabel, Footer, Help, Section, Stack } from './section';
+import { busyProps, useAction } from './use-action';
+
+export const DOWNLOADS_URL = '/api/configuration/downloads';
+const CHECK_URL = '/api/configuration/downloads/check';
+const LOGIN_URL = '/api/configuration/downloads/pikpak/login';
+const LOGOUT_URL = '/api/configuration/downloads/pikpak/logout';
+
+export function DownloadSettings({ initial, receipt }: {
+ initial: DownloadSettingsState;
+ receipt(message: string): void;
+}) {
+ const [state, setState] = useState(initial);
+ return (
+ <>
+ <DownloadForm state={state} settle={setState} receipt={receipt} />
+ <PikPakAccount state={state} settle={setState} receipt={receipt} />
+ </>
+ );
+}
+
+interface CardProps {
+ state: DownloadSettingsState;
+ settle(next: DownloadSettingsState): void;
+ receipt(message: string): void;
+}
+
+function DownloadForm({ state, settle, receipt }: CardProps) {
+ const [config, setConfig] = useState<DownloadConfig>(state.config);
+ const [token, setToken] = useState('');
+ const [hours, setHours] = useState(String(state.config.wait_hours));
+ const [report, setReport] = useState<DownloadCheckReport | null>(null);
+ const [failure, setFailure] = useState('');
+ const action = useAction();
+ const target = (key: '115' | 'pikpak') => config.targets[key] ?? '';
+ const setTarget = (key: '115' | 'pikpak', value: string) =>
+ setConfig({ ...config, targets: { ...config.targets, [key]: value } });
+
+ const submit = (event: FormEvent<HTMLFormElement>) => {
+ event.preventDefault();
+ const body = { ...config, wait_hours: hours, token };
+ void action.run('save', (signal) => apiSend<DownloadSettingsState>(DOWNLOADS_URL, body, 'POST', signal),
+ (next) => {
+ settle(next);
+ setConfig(next.config);
+ setHours(String(next.config.wait_hours));
+ setToken('');
+ setFailure('');
+ receipt('已保存配置');
+ }, (cause) => setFailure(errorMessage(cause)));
+ };
+
+ const check = () => {
+ const body = { clouddrive_address: config.clouddrive_address, token, target: target('115') };
+ void action.run('check', (signal) => apiSend<DownloadCheckReport>(CHECK_URL, body, 'POST', signal),
+ (next) => { setReport(next); setFailure(''); }, (cause) => setFailure(errorMessage(cause)));
+ };
+
+ return (
+ <Section title="云下载" onSubmit={submit}>
+ <Stack>
+ <Help>把磁力交给 115 或 PikPak 离线下载,文件落在已挂载的网盘目录,再由推送发现登记入库,不经过这台电脑。
+ 115 每个任务扣一条离线配额(年费会员每月 1500 条、月费 200 条),被判违规的资源不重试。</Help>
+ <Input label="CloudDrive2 地址" placeholder="http://127.0.0.1:19798" autoComplete="off" maxLength={200}
+ value={config.clouddrive_address} isDisabled={!state.available}
+ onChange={(value) => setConfig({ ...config, clouddrive_address: value })} />
+ <Input label="CloudDrive2 API 令牌" type="password" autoComplete="off" maxLength={400}
+ placeholder={state.token_set ? '已保存,留空不改' : '在 CloudDrive2「设置 → API 令牌」中生成'}
+ hint="令牌需要「提交离线任务」「查看离线任务与配额」两项权限;要在 Peach 里取消任务,再勾上「取消离线任务」。"
+ value={token} isDisabled={!state.available} onChange={setToken} />
+ <Input label="115 目标目录" placeholder="/115/云下载" autoComplete="off" maxLength={300}
+ hint="CloudDrive2 挂载树里的路径。这个目录要落在「推送发现」的某个云端路径前缀下面,下载完才找得到。"
+ value={target('115')} isDisabled={!state.available} onChange={(value) => setTarget('115', value)} />
+ <Input label="PikPak 目标目录" placeholder="/云下载" autoComplete="off" maxLength={300}
+ hint="PikPak 网盘里的路径,目录要已经存在。"
+ value={target('pikpak')} isDisabled={!state.available} onChange={(value) => setTarget('pikpak', value)} />
+ <div className="flex flex-col gap-1">
+ <FieldLabel>PikPak 根目录对应的媒体文件夹</FieldLabel>
+ {state.pikpak_roots.length ? (
+ <Select aria-label="PikPak 根目录对应的媒体文件夹" selectedKey={config.pikpak_root || null}
+ isDisabled={!state.available} placeholder="选择媒体文件夹"
+ onSelectionChange={(key) => setConfig({ ...config, pikpak_root: key === null ? '' : String(key) })}>
+ {state.pikpak_roots.map((root) => <SelectItem key={root} id={root}>{root}</SelectItem>)}
+ </Select>
+ ) : (
+ <Help>媒体文件夹里还没有「CloudDrive · PikPak」来源。在上方添加 PikPak 的挂载目录后,这里才能选。</Help>
+ )}
+ </div>
+ <Input label="等待上限(小时)" type="number" inputMode="numeric" autoComplete="off"
+ hint={`远端超过这么久还没下完就标为停滞,多半是没有人做种。1 到 ${state.max_wait_hours} 小时。`}
+ value={hours} isDisabled={!state.available} onChange={setHours} />
+ </Stack>
+ {report ? <CheckReport report={report} /> : null}
+ {failure || action.error ? <Stack divided><ErrorText>{failure || action.error}</ErrorText></Stack> : null}
+ <Footer status={state.available ? undefined : '云下载只在账本写入端可用。'}>
+ <Button onClick={check} disabled={!state.available} {...busyProps(action.busy === 'check')}>检查</Button>
+ <Button type="submit" disabled={!state.available} {...busyProps(action.busy === 'save')}>保存配置</Button>
+ </Footer>
+ </Section>
+ );
+}
+
+function CheckReport({ report }: { report: DownloadCheckReport }) {
+ return (
+ <Stack divided>
+ <FactList>
+ {report.permissions.length ? (
+ <Fact term="离线权限">
+ {report.missing.length ? `缺少:${report.missing.join('、')}` : '齐全'}
+ </Fact>
+ ) : null}
+ {report.folder ? (
+ <Fact term="目标目录">{report.folder.can_offline ? `${report.folder.path} 可以离线下载` : `${report.folder.path} 不支持离线下载`}</Fact>
+ ) : null}
+ {report.quota ? (
+ <Fact term="115 离线配额">{`本月还剩 ${report.quota.left} 条,共 ${report.quota.total} 条`}</Fact>
+ ) : null}
+ </FactList>
+ {report.problems.map((problem) => <ErrorText key={problem}>{problem}</ErrorText>)}
+ </Stack>
+ );
+}
+
+function PikPakAccount({ state, settle, receipt }: CardProps) {
+ const [username, setUsername] = useState('');
+ const [password, setPassword] = useState('');
+ const [remember, setRemember] = useState(false);
+ const [captcha, setCaptcha] = useState('');
+ const [failure, setFailure] = useState('');
+ const action = useAction();
+ const account = state.pikpak;
+
+ const login = (event: FormEvent<HTMLFormElement>) => {
+ event.preventDefault();
+ if (account.logged_in) return;
+ const body = { username, password, remember };
+ void action.run('login', (signal) => apiSend<PikPakLoginResult>(LOGIN_URL, body, 'POST', signal),
+ (result) => {
+ settle(result.settings);
+ setFailure('');
+ if (!result.ok) {
+ setCaptcha(result.captcha_url ?? '');
+ return;
+ }
+ setCaptcha('');
+ setPassword('');
+ receipt('已登录 PikPak');
+ }, (cause) => setFailure(errorMessage(cause)));
+ };
+
+ const logout = () => {
+ void action.run('logout', (signal) => apiSend<DownloadSettingsState>(LOGOUT_URL, {}, 'POST', signal),
+ (next) => { settle(next); setFailure(''); receipt('已登出 PikPak'); },
+ (cause) => setFailure(errorMessage(cause)));
+ };
+
+ return (
+ <Section title="PikPak 账号" onSubmit={login}>
+ {account.logged_in ? (
+ <FactList>
+ <Fact term="账号">{account.username || '已登录'}</Fact>
+ <Fact term="密码">{account.remember ? '已保存,登录过期时自动重新登录' : '未保存,登录过期后需要回到这里重新登录'}</Fact>
+ </FactList>
+ ) : (
+ <Stack>
+ <Help>PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。
+ 账号密码只用来换登录令牌,令牌存在这台电脑上。</Help>
+ <Input label="账号" placeholder="邮箱或手机号" autoComplete="username" maxLength={200}
+ value={username} isDisabled={!state.available} onChange={setUsername} />
+ <Input label="密码" type="password" autoComplete="current-password" maxLength={200}
+ value={password} isDisabled={!state.available} onChange={setPassword} />
+ <Checkbox isSelected={remember} isDisabled={!state.available} onChange={setRemember}>
+ 保存密码,登录过期时自动重新登录
+ </Checkbox>
+ {captcha ? (
+ <Note tone="warning" title="需要人机验证"
+ extra={<div className="pt-2"><ExternalLink href={captcha}>打开 PikPak 验证页</ExternalLink></div>}>
+ 在浏览器里完成验证后,回到这里再点一次「登录」。
+ </Note>
+ ) : null}
+ </Stack>
+ )}
+ {failure || action.error ? <Stack divided><ErrorText>{failure || action.error}</ErrorText></Stack> : null}
+ <Footer>
+ {account.logged_in ? (
+ <Button onClick={logout} disabled={!state.available} {...busyProps(action.busy === 'logout')}>登出</Button>
+ ) : (
+ <Button type="submit" disabled={!state.available} {...busyProps(action.busy === 'login')}>登录</Button>
+ )}
+ </Footer>
+ </Section>
+ );
+}
diff --git a/frontend/src/react/settings/media-settings.tsx b/frontend/src/react/settings/media-settings.tsx
index 95b7dfe4f..b8acc5acb 100644
--- a/frontend/src/react/settings/media-settings.tsx
+++ b/frontend/src/react/settings/media-settings.tsx
@@ -23,6 +23,7 @@ import { Note } from '../components/note';
import { queryClient } from '../query';
import { CloudDriveGuide } from './clouddrive-guide';
import { CONFIGURATION_KEY, fetchConfiguration } from './configuration';
+import { DownloadSettings } from './download-settings';
import { LibraryIconPicker } from './library-icon-picker';
import { PushDiscoveryForm } from './push-discovery-settings';
import {
@@ -78,6 +79,7 @@ export function MediaSettings({ data, receipt }: ConfigurationGroupProps) {
{data.push_discovery
? <PushDiscoveryForm initial={data.push_discovery} receipt={receipt} />
: null}
+ {data.downloads ? <DownloadSettings initial={data.downloads} receipt={receipt} /> : null}
</div>
);
}
diff --git a/frontend/test/react/download-settings.test.tsx b/frontend/test/react/download-settings.test.tsx
new file mode 100644
index 000000000..996fadaa1
--- /dev/null
+++ b/frontend/test/react/download-settings.test.tsx
@@ -0,0 +1,93 @@
+import { expect, it, vi } from 'vitest';
+
+import { DownloadSettings } from '../../src/react/settings/download-settings';
+import type { DownloadSettingsState } from '../../src/react/bundle';
+import { buttonNamed, click, fetchMock, mount, section, sentBody, settle, submit, type } from './render';
+
+const state = (patch: Partial<DownloadSettingsState> = {}): DownloadSettingsState => ({
+ available: true,
+ config: { clouddrive_address: 'http://127.0.0.1:19798', targets: { '115': '/115/云下载' },
+ pikpak_root: '', wait_hours: 168 },
+ token_set: false,
+ pikpak: { logged_in: false, username: '', remember: false },
+ pikpak_roots: ['P:\\'],
+ providers: [{ key: '115', label: '115' }, { key: 'pikpak', label: 'PikPak' }],
+ max_wait_hours: 1440,
+ ...patch,
+});
+
+const field = (host: HTMLElement, label: string) =>
+ [...host.querySelectorAll('label')].find((node) => node.textContent?.trim() === label)
+ ?.closest('[data-input-size]')?.querySelector('input') ?? null;
+
+it('保存时令牌随表单交给服务端,回来后清空,提示改成已保存', async () => {
+ const fetcher = fetchMock(200, state({ token_set: true }));
+ vi.stubGlobal('fetch', fetcher);
+ const receipt = vi.fn();
+ const host = await mount(<DownloadSettings initial={state()} receipt={receipt} />);
+ const token = field(host, 'CloudDrive2 API 令牌');
+ expect(token?.type).toBe('password');
+ await type(token, 'cd2-token');
+ await submit(section(host, '云下载'));
+ await settle();
+ expect(fetcher.mock.calls[0]?.[0]).toBe('/api/configuration/downloads');
+ expect(sentBody(fetcher)).toMatchObject({
+ clouddrive_address: 'http://127.0.0.1:19798', token: 'cd2-token', targets: { '115': '/115/云下载' },
+ });
+ expect(receipt).toHaveBeenCalledWith('已保存配置');
+ expect(field(host, 'CloudDrive2 API 令牌')?.value).toBe('');
+ expect(field(host, 'CloudDrive2 API 令牌')?.placeholder).toBe('已保存,留空不改');
+});
+
+it('检查报出缺的权限、目标目录与剩余配额,操作键都是主按钮', async () => {
+ vi.stubGlobal('fetch', fetchMock(200, {
+ ok: true, permissions: [{ name: 'a', label: '提交离线任务', granted: true },
+ { name: 'b', label: '取消离线任务', granted: false }],
+ missing: ['取消离线任务'], root: '/', folder: { path: '/115/云下载', can_offline: true, cloud: '115open' },
+ quota: { total: 1500, used: 3, left: 1497 }, problems: [],
+ }));
+ const host = await mount(<DownloadSettings initial={state()} receipt={vi.fn()} />);
+ for (const name of ['检查', '保存配置', '登录']) {
+ expect(buttonNamed(name, host)?.className, name).toContain('bg-button-primary');
+ }
+ await click(buttonNamed('检查', host));
+ await settle();
+ expect(host.textContent).toContain('缺少:取消离线任务');
+ expect(host.textContent).toContain('/115/云下载 可以离线下载');
+ expect(host.textContent).toContain('本月还剩 1497 条,共 1500 条');
+});
+
+it('PikPak 要人机验证时给出验证页,完成后再登录', async () => {
+ vi.stubGlobal('fetch', fetchMock(200, {
+ ok: false, captcha_url: 'https://user.mypikpak.com/captcha?x=1', settings: state(),
+ }));
+ const host = await mount(<DownloadSettings initial={state()} receipt={vi.fn()} />);
+ await type(field(host, '账号'), '[email protected]');
+ await type(field(host, '密码'), 'pw');
+ await submit(section(host, 'PikPak 账号'));
+ await settle();
+ const link = host.querySelector<HTMLAnchorElement>('a[href^="https://user.mypikpak.com/captcha"]');
+ expect(link?.target).toBe('_blank');
+ expect(host.textContent).toContain('回到这里再点一次「登录」');
+});
+
+it('登录之后只显示账号与密码保存与否,可以登出', async () => {
+ const fetcher = fetchMock(200, state());
+ vi.stubGlobal('fetch', fetcher);
+ const receipt = vi.fn();
+ const host = await mount(<DownloadSettings receipt={receipt}
+ initial={state({ pikpak: { logged_in: true, username: '[email protected]', remember: false } })} />);
+ expect(host.textContent).toContain('[email protected]');
+ expect(field(host, '密码')).toBeNull();
+ await click(buttonNamed('登出', host));
+ await settle();
+ expect(fetcher.mock.calls[0]?.[0]).toBe('/api/configuration/downloads/pikpak/logout');
+ expect(receipt).toHaveBeenCalledWith('已登出 PikPak');
+ expect(buttonNamed('登录', host)).not.toBeNull();
+});
+
+it('只读端整块不可操作,并说明原因', async () => {
+ const host = await mount(<DownloadSettings initial={state({ available: false })} receipt={vi.fn()} />);
+ expect(buttonNamed('保存配置', host)?.disabled).toBe(true);
+ expect(host.textContent).toContain('云下载只在账本写入端可用');
+});
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index 43224256d..c412aa0a8 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -18559,7 +18559,7 @@ function tg(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function nee(e, t, n) {
+function ng(e, t, n) {
let r = tg({
isReadOnly: e.isReadOnly || t.isReadOnly,
isSelected: t.isSelected(e.value),
@@ -18610,32 +18610,32 @@ function nee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Checkbox.mjs
-var ng = /*#__PURE__*/ (0, R.createContext)(null), rg = /*#__PURE__*/ (0, R.createContext)(null), ree = /*#__PURE__*/ (0, R.createContext)(null), ig = /*#__PURE__*/ (0, R.createContext)(null);
-function iee(e, t) {
- let { validationBehavior: n } = Lu(Gh) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useContext)(ree), a = Nu((0, R.useMemo)(() => ku(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+var rg = /*#__PURE__*/ (0, R.createContext)(null), ig = /*#__PURE__*/ (0, R.createContext)(null), ag = /*#__PURE__*/ (0, R.createContext)(null), og = /*#__PURE__*/ (0, R.createContext)(null);
+function nee(e, t) {
+ let { validationBehavior: n } = Lu(Gh) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useContext)(ag), a = Nu((0, R.useMemo)(() => ku(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
...Bu(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? nee(o, i, a) : eg(o, tg(e), a), a];
+ return [i ? ng(o, i, a) : eg(o, tg(e), a), a];
}
-var aee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+var ree = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Ru(r, t, ng);
- let [i, a] = iee(e, n);
- return /*#__PURE__*/ R.createElement(ig.Provider, { value: {
+ [e, t] = Ru(r, t, rg);
+ let [i, a] = nee(e, n);
+ return /*#__PURE__*/ R.createElement(og.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ R.createElement(oee, {
+ } }, /*#__PURE__*/ R.createElement(iee, {
...e,
ref: t
}));
-}), oee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, R.useContext)(ig), { isFocused: p, isFocusVisible: m, focusProps: h } = Ym(), g = a || o, { hoverProps: _, isHovered: v } = th({
+}), iee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, R.useContext)(og), { isFocused: p, isFocusVisible: m, focusProps: h } = Ym(), g = a || o, { hoverProps: _, isHovered: v } = th({
...e,
isDisabled: g
}), y = Iu({
@@ -18672,8 +18672,8 @@ var aee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
...Y(r, h),
ref: l
})), y.children);
-}), ag = /*#__PURE__*/ (0, R.createContext)({}), see = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = Ru(e, t, ag);
+}), sg = /*#__PURE__*/ (0, R.createContext)({}), aee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = Ru(e, t, sg);
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 } = th({
@@ -18705,11 +18705,11 @@ var aee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), og = /*#__PURE__*/ (0, R.createContext)({}), cee = (e) => {
+}), cg = /*#__PURE__*/ (0, R.createContext)({}), oee = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, lee = /*#__PURE__*/ Gp(function(e, t) {
- [e, t] = Ru(e, t, og);
+}, see = /*#__PURE__*/ Gp(function(e, t) {
+ [e, t] = Ru(e, t, cg);
let { hoverProps: n, isHovered: r } = th({
...e,
isDisabled: e.disabled
@@ -18728,7 +18728,7 @@ var aee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
defaultClassName: "react-aria-Input"
});
return /*#__PURE__*/ R.createElement(Uu.input, {
- ...Y(cee(e), o, n),
+ ...Y(oee(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -18740,7 +18740,7 @@ var aee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
});
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function uee(e, t) {
+function cee(e, t) {
let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = rp(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Hp(e, t), d = zh({
...e,
value: c
@@ -18799,8 +18799,8 @@ function uee(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ar-AE.mjs
-var sg = {};
-sg = {
+var lg = {};
+lg = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -18808,8 +18808,8 @@ sg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var cg = {};
-cg = {
+var ug = {};
+ug = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -18817,8 +18817,8 @@ cg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var lg = {};
-lg = {
+var dg = {};
+dg = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -18826,8 +18826,8 @@ lg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var ug = {};
-ug = {
+var fg = {};
+fg = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -18835,8 +18835,8 @@ ug = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var dg = {};
-dg = {
+var pg = {};
+pg = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -18844,8 +18844,8 @@ dg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var fg = {};
-fg = {
+var mg = {};
+mg = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -18853,8 +18853,8 @@ fg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var pg = {};
-pg = {
+var hg = {};
+hg = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -18862,8 +18862,8 @@ pg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var mg = {};
-mg = {
+var gg = {};
+gg = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -18871,8 +18871,8 @@ mg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var hg = {};
-hg = {
+var _g = {};
+_g = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -18880,8 +18880,8 @@ hg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var gg = {};
-gg = {
+var vg = {};
+vg = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -18889,8 +18889,8 @@ gg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var _g = {};
-_g = {
+var yg = {};
+yg = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -18898,8 +18898,8 @@ _g = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var vg = {};
-vg = {
+var bg = {};
+bg = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -18907,8 +18907,8 @@ vg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var yg = {};
-yg = {
+var xg = {};
+xg = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -18916,8 +18916,8 @@ yg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var bg = {};
-bg = {
+var Sg = {};
+Sg = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -18925,8 +18925,8 @@ bg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var xg = {};
-xg = {
+var Cg = {};
+Cg = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -18934,8 +18934,8 @@ xg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var Sg = {};
-Sg = {
+var wg = {};
+wg = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -18943,8 +18943,8 @@ Sg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var Cg = {};
-Cg = {
+var Tg = {};
+Tg = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -18952,8 +18952,8 @@ Cg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var wg = {};
-wg = {
+var Eg = {};
+Eg = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -18961,8 +18961,8 @@ wg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var Tg = {};
-Tg = {
+var Dg = {};
+Dg = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -18970,8 +18970,8 @@ Tg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var Eg = {};
-Eg = {
+var Og = {};
+Og = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -18979,8 +18979,8 @@ Eg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var Dg = {};
-Dg = {
+var kg = {};
+kg = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -18988,8 +18988,8 @@ Dg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var Og = {};
-Og = {
+var Ag = {};
+Ag = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -18997,8 +18997,8 @@ Og = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var kg = {};
-kg = {
+var jg = {};
+jg = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -19006,8 +19006,8 @@ kg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var Ag = {};
-Ag = {
+var Mg = {};
+Mg = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -19015,8 +19015,8 @@ Ag = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var jg = {};
-jg = {
+var Ng = {};
+Ng = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -19024,8 +19024,8 @@ jg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var Mg = {};
-Mg = {
+var Pg = {};
+Pg = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -19033,8 +19033,8 @@ Mg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var Ng = {};
-Ng = {
+var Fg = {};
+Fg = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -19042,8 +19042,8 @@ Ng = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var Pg = {};
-Pg = {
+var Ig = {};
+Ig = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -19051,8 +19051,8 @@ Pg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var Fg = {};
-Fg = {
+var Lg = {};
+Lg = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -19060,8 +19060,8 @@ Fg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var Ig = {};
-Ig = {
+var Rg = {};
+Rg = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -19069,8 +19069,8 @@ Ig = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var Lg = {};
-Lg = {
+var zg = {};
+zg = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -19078,8 +19078,8 @@ Lg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var Rg = {};
-Rg = {
+var Bg = {};
+Bg = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -19087,8 +19087,8 @@ Rg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var zg = {};
-zg = {
+var Vg = {};
+Vg = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -19096,8 +19096,8 @@ zg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var Bg = {};
-Bg = {
+var Hg = {};
+Hg = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -19105,52 +19105,52 @@ Bg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var Vg = {};
-Vg = {
- "ar-AE": sg,
- "bg-BG": cg,
- "cs-CZ": lg,
- "da-DK": ug,
- "de-DE": dg,
- "el-GR": fg,
- "en-US": pg,
- "es-ES": mg,
- "et-EE": hg,
- "fi-FI": gg,
- "fr-FR": _g,
- "he-IL": vg,
- "hr-HR": yg,
- "hu-HU": bg,
- "it-IT": xg,
- "ja-JP": Sg,
- "ko-KR": Cg,
- "lt-LT": wg,
- "lv-LV": Tg,
- "nb-NO": Eg,
- "nl-NL": Dg,
- "pl-PL": Og,
- "pt-BR": kg,
- "pt-PT": Ag,
- "ro-RO": jg,
- "ru-RU": Mg,
- "sk-SK": Ng,
- "sl-SI": Pg,
- "sr-SP": Fg,
- "sv-SE": Ig,
- "tr-TR": Lg,
- "uk-UA": Rg,
- "zh-CN": zg,
- "zh-TW": Bg
+var Ug = {};
+Ug = {
+ "ar-AE": lg,
+ "bg-BG": ug,
+ "cs-CZ": dg,
+ "da-DK": fg,
+ "de-DE": pg,
+ "el-GR": mg,
+ "en-US": hg,
+ "es-ES": gg,
+ "et-EE": _g,
+ "fi-FI": vg,
+ "fr-FR": yg,
+ "he-IL": bg,
+ "hr-HR": xg,
+ "hu-HU": Sg,
+ "it-IT": Cg,
+ "ja-JP": wg,
+ "ko-KR": Tg,
+ "lt-LT": Eg,
+ "lv-LV": Dg,
+ "nb-NO": Og,
+ "nl-NL": kg,
+ "pl-PL": Ag,
+ "pt-BR": jg,
+ "pt-PT": Mg,
+ "ro-RO": Ng,
+ "ru-RU": Pg,
+ "sk-SK": Fg,
+ "sl-SI": Ig,
+ "sr-SP": Lg,
+ "sv-SE": Rg,
+ "tr-TR": zg,
+ "uk-UA": Bg,
+ "zh-CN": Vg,
+ "zh-TW": Hg
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var Hg = /*#__PURE__*/ (0, R.createContext)({}), Ug = /*#__PURE__*/ (0, R.createContext)(null), dee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { render: n } = (0, R.useContext)(Ug);
+var Wg = /*#__PURE__*/ (0, R.createContext)({}), Gg = /*#__PURE__*/ (0, R.createContext)(null), lee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { render: n } = (0, R.useContext)(Gg);
return /*#__PURE__*/ R.createElement(R.Fragment, null, n(e, t));
});
-function Wg(e, t) {
+function Kg(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, R.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ R.createElement(dee, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ R.createElement(lee, { target: e });
}, [
t?.target,
r,
@@ -19158,7 +19158,7 @@ function Wg(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function Gg(e, t, n) {
+function qg(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;
@@ -19181,17 +19181,17 @@ function Gg(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var Kg = /*#__PURE__*/ (0, R.createContext)({}), fee = /*#__PURE__*/ (0, R.createContext)(null);
-function qg(e) {
+var Jg = /*#__PURE__*/ (0, R.createContext)({}), uee = /*#__PURE__*/ (0, R.createContext)(null);
+function Yg(e) {
let t = (0, R.useRef)({});
- return /*#__PURE__*/ R.createElement(fee.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ R.createElement(uee.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var Jg = /*#__PURE__*/ (0, R.createContext)({ isSelected: !1 });
+var Xg = /*#__PURE__*/ (0, R.createContext)({ isSelected: !1 });
//#endregion
//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function pee(e) {
+function dee(e) {
let t = wm(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
@@ -19201,7 +19201,7 @@ function pee(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Separator.mjs
-var Yg = /*#__PURE__*/ (0, R.createContext)({}), mee = /*#__PURE__*/ om(class extends op {
+var Zg = /*#__PURE__*/ (0, R.createContext)({}), fee = /*#__PURE__*/ om(class extends op {
static {
this.type = "separator";
}
@@ -19214,10 +19214,10 @@ var Yg = /*#__PURE__*/ (0, R.createContext)({}), mee = /*#__PURE__*/ om(class ex
return null;
}
}, function(e, t) {
- [e, t] = Ru(e, t, Yg);
+ [e, t] = Ru(e, t, Zg);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = Uu[c], { separatorProps: u } = pee({
+ let l = Uu[c], { separatorProps: u } = dee({
...s,
elementType: n,
orientation: r
@@ -19230,18 +19230,18 @@ var Yg = /*#__PURE__*/ (0, R.createContext)({}), mee = /*#__PURE__*/ om(class ex
ref: t,
slot: o || void 0
});
-}), Xg = /* @__PURE__ */ new WeakMap();
-function hee(e) {
+}), Qg = /* @__PURE__ */ new WeakMap();
+function pee(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function gee(e, t) {
- let n = Xg.get(e);
+function mee(e, t) {
+ let n = Qg.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${hee(t)}`;
+ return `${n.id}-option-${pee(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var _ee = class {
+var hee = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -19344,45 +19344,45 @@ var _ee = class {
return null;
}
};
-function Zg(e, t, n, r) {
- return td() ? new _ee(e, t, n, r) : e.createTreeWalker(t, n, r);
+function $g(e, t, n, r) {
+ return td() ? new hee(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var Qg = /*#__PURE__*/ R.createContext(null), $g = "react-aria-focus-scope-restore", e_ = null;
-function t_(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)([]), { parentNode: c } = (0, R.useContext)(Qg) || {}, l = (0, R.useMemo)(() => new m_({ scopeRef: s }), [s]);
+var e_ = /*#__PURE__*/ R.createContext(null), t_ = "react-aria-focus-scope-restore", n_ = null;
+function r_(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)([]), { parentNode: c } = (0, R.useContext)(e_) || {}, l = (0, R.useMemo)(() => new g_({ scopeRef: s }), [s]);
cu(() => {
- let e = c || h_.root;
- if (h_.getTreeNode(e.scopeRef) && e_ && !s_(e_, e.scopeRef)) {
- let t = h_.getTreeNode(e_);
+ let e = c || __.root;
+ if (__.getTreeNode(e.scopeRef) && n_ && !l_(n_, e.scopeRef)) {
+ let t = __.getTreeNode(n_);
t && (e = t);
}
- e.addChild(l), h_.addNode(l);
+ e.addChild(l), __.addNode(l);
}, [l, c]), cu(() => {
- let e = h_.getTreeNode(s);
+ let e = __.getTreeNode(s);
e && (e.contain = !!n);
}, [n]), cu(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener($g, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(t_, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener($g, n);
+ for (let e of t) e.removeEventListener(t_, n);
};
- }, [t]), wee(s, r, n), xee(s, n), Tee(s, r, n), Cee(s, i), (0, R.useEffect)(() => {
+ }, [t]), See(s, r, n), yee(s, n), Cee(s, r, n), xee(s, i), (0, R.useEffect)(() => {
let e = rd(Ku(s.current ? s.current[0] : void 0)), t = null;
- if (a_(e, s.current)) {
- for (let n of h_.traverse()) n.scopeRef && a_(e, n.scopeRef.current) && (t = n);
- t === h_.getTreeNode(s) && (e_ = t.scopeRef);
+ if (s_(e, s.current)) {
+ for (let n of __.traverse()) n.scopeRef && s_(e, n.scopeRef.current) && (t = n);
+ t === __.getTreeNode(s) && (n_ = t.scopeRef);
}
}, [s]), cu(() => () => {
- let e = h_.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === e_ || s_(s, e_)) && (!e || h_.getTreeNode(e)) && (e_ = e), h_.removeTreeNode(s);
+ let e = __.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === n_ || l_(s, n_)) && (!e || __.getTreeNode(e)) && (n_ = e), __.removeTreeNode(s);
}, [s]);
- let u = (0, R.useMemo)(() => vee(s), []), d = (0, R.useMemo)(() => ({
+ let u = (0, R.useMemo)(() => gee(s), []), d = (0, R.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ R.createElement(Qg.Provider, { value: d }, /*#__PURE__*/ R.createElement("span", {
+ return /*#__PURE__*/ R.createElement(e_.Provider, { value: d }, /*#__PURE__*/ R.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -19392,68 +19392,68 @@ function t_(e) {
ref: o
}));
}
-function vee(e) {
+function gee(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || rd(Ku(n[0] ?? void 0)), c = n[0].previousElementSibling, l = p_(n_(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || rd(Ku(n[0] ?? void 0)), c = n[0].previousElementSibling, l = h_(i_(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = a_(s, n) ? s : c;
+ l.currentNode = s_(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && c_(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && u_(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || rd(Ku(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = p_(n_(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || rd(Ku(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = h_(i_(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = a_(s, n) ? s : c;
+ l.currentNode = s_(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && c_(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && u_(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = p_(n_(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = h_(i_(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && c_(o, !0), o;
+ return o && u_(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = p_(n_(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = h_(i_(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && c_(o, !0), o;
+ return o && u_(o, !0), o;
}
};
}
-function n_(e) {
+function i_(e) {
return e[0].parentElement;
}
-function r_(e) {
- let t = h_.getTreeNode(e_);
+function a_(e) {
+ let t = __.getTreeNode(n_);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function yee(e) {
+function _ee(e) {
if (!e.form) return Array.from(Ku(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
let t = e.form.elements.namedItem(e.name), n = qu(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function bee(e) {
+function vee(e) {
if (e.checked) return !0;
- let t = yee(e);
+ let t = _ee(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function xee(e, t) {
+function yee(e, t) {
let n = (0, R.useRef)(void 0), r = (0, R.useRef)(void 0);
cu(() => {
let i = e.current;
@@ -19462,23 +19462,23 @@ function xee(e, t) {
return;
}
let a = Ku(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !r_(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !a_(e) || t.isComposing) return;
let n = rd(a), r = e.current;
- if (!r || !a_(n, r)) return;
- let i = p_(n_(r), { tabbable: !0 }, r);
+ if (!r || !s_(n, r)) return;
+ let i = h_(i_(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 && (c_(o, !0), o instanceof qu(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 && (u_(o, !0), o instanceof qu(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!e_ || s_(e_, e)) && a_(X(t), e.current) ? (e_ = e, n.current = X(t)) : r_(e) && !o_(X(t), e) ? n.current ? c_(n.current) : e_ && e_.current && u_(e_.current) : r_(e) && (n.current = X(t));
+ (!n_ || l_(n_, e)) && s_(X(t), e.current) ? (n_ = e, n.current = X(t)) : a_(e) && !c_(X(t), e) ? n.current ? u_(n.current) : n_ && n_.current && f_(n_.current) : a_(e) && (n.current = X(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
let r = _f(), i = (r === "virtual" || r === null) && Bd() && zd(), o = rd(a);
- if (!i && o && r_(e) && !o_(o, e)) {
- e_ = e;
+ if (!i && o && a_(e) && !c_(o, e)) {
+ n_ = e;
let r = X(t);
- r && r.isConnected ? (n.current = r, c_(n.current)) : e_.current && u_(e_.current);
+ r && r.isConnected ? (n.current = r, u_(n.current)) : n_.current && f_(n_.current);
}
});
};
@@ -19489,29 +19489,29 @@ function xee(e, t) {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function i_(e) {
- return o_(e);
+function o_(e) {
+ return c_(e);
}
-function a_(e, t) {
+function s_(e, t) {
return !e || !t ? !1 : t.some((t) => nd(t, e));
}
-function o_(e, t = null) {
+function c_(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of h_.traverse(h_.getTreeNode(t))) if (n && a_(e, n.current)) return !0;
+ for (let { scopeRef: n } of __.traverse(__.getTreeNode(t))) if (n && s_(e, n.current)) return !0;
return !1;
}
-function See(e) {
- return o_(e, e_);
+function bee(e) {
+ return c_(e, n_);
}
-function s_(e, t) {
- let n = h_.getTreeNode(t)?.parent;
+function l_(e, t) {
+ let n = __.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function c_(e, t = !1) {
+function u_(e, t = !1) {
if (e != null && !t) try {
Cp(e);
} catch {}
@@ -19519,27 +19519,27 @@ function c_(e, t = !1) {
e.focus();
} catch {}
}
-function l_(e, t = !0) {
- let n = e[0].previousElementSibling, r = n_(e), i = p_(r, { tabbable: t }, e);
+function d_(e, t = !0) {
+ let n = e[0].previousElementSibling, r = i_(e), i = h_(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = n_(e), i = p_(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = i_(e), i = h_(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function u_(e, t = !0) {
- c_(l_(e, t));
+function f_(e, t = !0) {
+ u_(d_(e, t));
}
-function Cee(e, t) {
+function xee(e, t) {
let n = R.useRef(t);
(0, R.useEffect)(() => {
- n.current && (e_ = e, !a_(rd(Ku(e.current ? e.current[0] : void 0)), e_.current) && e.current && u_(e.current)), n.current = !1;
+ n.current && (n_ = e, !s_(rd(Ku(e.current ? e.current[0] : void 0)), n_.current) && e.current && f_(e.current)), n.current = !1;
}, [e]);
}
-function wee(e, t, n) {
+function See(e, t, n) {
cu(() => {
if (t || n) return;
let r = e.current, i = Ku(r ? r[0] : void 0), a = (t) => {
let n = X(t);
- a_(n, e.current) ? e_ = e : i_(n) || (e_ = null);
+ s_(n, e.current) ? n_ = e : o_(n) || (n_ = 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));
@@ -19550,21 +19550,21 @@ function wee(e, t, n) {
n
]);
}
-function d_(e) {
- let t = h_.getTreeNode(e_);
+function p_(e) {
+ let t = __.getTreeNode(n_);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function Tee(e, t, n) {
+function Cee(e, t, n) {
let r = (0, R.useRef)(typeof document < "u" ? rd(Ku(e.current ? e.current[0] : void 0)) : null);
cu(() => {
let r = e.current, i = Ku(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!e_ || s_(e_, e)) && a_(rd(i), e.current) && (e_ = e);
+ (!n_ || l_(n_, e)) && s_(rd(i), e.current) && (n_ = 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));
@@ -19573,20 +19573,20 @@ function Tee(e, t, n) {
let r = Ku(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !r_(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !a_(e) || t.isComposing) return;
let n = r.activeElement;
- if (!o_(n, e) || !d_(e)) return;
- let i = h_.getTreeNode(e);
+ if (!c_(n, e) || !p_(e)) return;
+ let i = __.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = p_(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = h_(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 || !o_(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !c_(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (o_(s, e));
- t.preventDefault(), t.stopPropagation(), s ? c_(s, !0) : i_(a) ? c_(a, !0) : n.blur();
+ while (c_(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? u_(s, !0) : o_(a) ? u_(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -19599,28 +19599,28 @@ function Tee(e, t, n) {
]), cu(() => {
let n = Ku(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = h_.getTreeNode(e);
+ let i = __.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = h_.getTreeNode(e);
+ let r = __.getTreeNode(e);
if (!r) return;
let i = r.nodeToRestore, a = rd(n);
- if (t && i && (a && o_(a, e) || a === n.body && d_(e))) {
- let t = h_.clone();
+ if (t && i && (a && c_(a, e) || a === n.body && p_(e))) {
+ let t = __.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- f_(n.nodeToRestore);
+ m_(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && h_.getTreeNode(n.scopeRef)) {
- let e = l_(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && __.getTreeNode(n.scopeRef)) {
+ let e = d_(n.scopeRef.current, !0);
if (e) {
- f_(e);
+ m_(e);
return;
}
}
@@ -19632,21 +19632,21 @@ function Tee(e, t, n) {
};
}, [e, t]);
}
-function f_(e) {
- e.dispatchEvent(new CustomEvent($g, {
+function m_(e) {
+ e.dispatchEvent(new CustomEvent(t_, {
bubbles: !0,
cancelable: !0
- })) && c_(e);
+ })) && u_(e);
}
-function p_(e, t, n) {
- let r = t?.tabbable ? Cd : Sd, i = Ku(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = Zg(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return nd(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!bee(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || a_(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function h_(e, t, n) {
+ let r = t?.tabbable ? Cd : Sd, i = Ku(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = $g(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return nd(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!vee(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || s_(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var Eee = class e {
+var wee = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new m_({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new g_({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -19657,7 +19657,7 @@ var Eee = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new m_({ scopeRef: e });
+ let i = new g_({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -19668,7 +19668,7 @@ var Eee = 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 && a_(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 && s_(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);
}
@@ -19680,7 +19680,7 @@ var Eee = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, m_ = class {
+}, g_ = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -19690,28 +19690,28 @@ var Eee = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, h_ = new Eee();
+}, __ = new wee();
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function g_(e) {
+function v_(e) {
return Ld() ? e.altKey : e.ctrlKey;
}
-function __(e, t) {
+function y_(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 v_ = /* @__PURE__ */ new WeakMap();
-function Dee(e) {
+var b_ = /* @__PURE__ */ new WeakMap();
+function Tee(e) {
let t = Eu();
- return v_.set(e, t), t;
+ return b_.set(e, t), t;
}
-function Oee(e) {
- return v_.get(e);
+function Eee(e) {
+ return b_.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var y_ = 1e3;
-function b_(e) {
+var x_ = 1e3;
+function S_(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, R.useRef)({
search: "",
timeout: void 0
@@ -19730,11 +19730,11 @@ function b_(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, y_);
+ }, x_);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = kee(e.key);
+ let a = Dee(e.key);
if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !nd(e.currentTarget, X(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
@@ -19746,17 +19746,17 @@ function b_(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, y_);
+ }, x_);
}
} : void 0
} };
}
-function kee(e) {
+function Dee(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function x_(e, t) {
+function C_(e, t) {
let n = (0, R.useRef)(!0), r = (0, R.useRef)(null);
cu(() => (n.current = !0, () => {
n.current = !1;
@@ -19766,14 +19766,14 @@ function x_(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function S_(e) {
+function w_(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 } = Vf(), _ = Gd(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !g_(e)) {
+ if (t.isLink(n) && m === "selection" && l && !v_(e)) {
(0, Re.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = __(r, n), o = t.getItemProps(n);
+ let a = y_(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -19785,7 +19785,7 @@ function S_(e) {
t.extendSelection(n);
return;
}
- if (l && !g_(e)) {
+ if (l && !v_(e)) {
t.replaceSelection(n);
return;
}
@@ -19885,7 +19885,7 @@ function S_(e) {
return !1;
}, k = () => {
if (!f && r.current) {
- let e = p_(r.current, { tabbable: !0 }), t, n;
+ let e = h_(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
@@ -19948,7 +19948,7 @@ function S_(e) {
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
} else p.current && (p.current.scrollTop = P.current.top, p.current.scrollLeft = P.current.left);
if (t.focusedKey != null && p.current) {
- let e = __(r, t.focusedKey);
+ let e = y_(r, t.focusedKey);
e instanceof HTMLElement && (!ad(e) && !d && ud(e), (i === "keyboard" || h && i === "virtual") && Eh(e, { containingElement: r.current }));
}
}, F = (e) => {
@@ -19959,14 +19959,14 @@ function S_(e) {
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (I.current = !0);
} : void 0);
let te = n.getFirstKey?.() ?? null;
- x_(() => {
+ C_(() => {
if (I.current) {
if (te == null) {
let e = rd();
od(r.current), cd(e, null), t.collection.size > 0 && (I.current = !1);
} else t.setFocusedKey(te), I.current = !1;
}
- }, [te, t.collection.size]), x_(() => {
+ }, [te, t.collection.size]), C_(() => {
t.collection.size > 0 && (I.current = !1);
}, [t.focusedKey]), kf(r, Wu, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
@@ -19989,7 +19989,7 @@ function S_(e) {
let ie = (0, R.useRef)(t.focusedKey), ae = (0, R.useRef)(null);
(0, R.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ie.current || re.current) && p.current && r.current) {
- let e = _f(), n = __(r, t.focusedKey);
+ let e = _f(), n = y_(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || re.current) && (ae.current && cancelAnimationFrame(ae.current), ae.current = requestAnimationFrame(() => {
p.current && (wh(p.current, n), e !== "virtual" && Eh(n, { containingElement: r.current }));
@@ -20008,14 +20008,14 @@ function S_(e) {
onMouseDown(e) {
p.current === X(e) && e.preventDefault();
}
- }, { typeSelectProps: se } = b_({
+ }, { typeSelectProps: se } = S_({
keyboardDelegate: n,
selectionManager: t
});
u || (oe = Y(se, oe));
let ce;
d || (ce = t.focusedKey == null ? 0 : -1);
- let le = Dee(t.collection);
+ let le = Tee(t.collection);
return { collectionProps: Y(oe, {
tabIndex: ce,
"data-collection": le
@@ -20023,14 +20023,14 @@ function S_(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var C_ = class {
+var T_ = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : __(this.ref, e);
+ let n = e == null ? null : y_(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -20056,12 +20056,12 @@ var C_ = class {
height: e?.clientHeight ?? 0
};
}
-}, w_ = class {
+}, E_ = 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 C_(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 C_(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 T_(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 T_(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -20101,14 +20101,14 @@ var C_ = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = __(this.ref, e);
+ let t = this.getNextKey(e), n = y_(this.ref, e);
if (t != null) {
- let e = __(this.ref, t);
+ let e = y_(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = __(this.ref, r);
+ let e = y_(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -20180,20 +20180,20 @@ var C_ = class {
}
return null;
}
-}, T_ = /* @__PURE__ */ new Map();
-function E_(e) {
+}, D_ = /* @__PURE__ */ new Map();
+function O_(e) {
let { locale: t } = Vf(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (T_.has(n)) return T_.get(n);
+ if (D_.has(n)) return D_.get(n);
let r = new Intl.Collator(t, e);
- return T_.set(n, r), r;
+ return D_.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function D_(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = E_({
+function k_(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = O_({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, R.useMemo)(() => a || new w_({
+ }), l = t.disabledBehavior, u = (0, R.useMemo)(() => a || new E_({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -20210,7 +20210,7 @@ function D_(e) {
c,
l,
s
- ]), { collectionProps: d } = S_({
+ ]), { collectionProps: d } = w_({
...e,
ref: i,
selectionManager: t,
@@ -20220,10 +20220,10 @@ function D_(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Aee(e, t, n) {
+function Oee(e, t, n) {
let r = wm(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 } = D_({
+ let { listProps: s } = k_({
...e,
ref: n,
selectionManager: t.selectionManager,
@@ -20235,7 +20235,7 @@ function Aee(e, t, n) {
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
}), l = Eu(e.id);
- Xg.set(t, {
+ Qg.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -20261,9 +20261,9 @@ function Aee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var jee = 500;
-function O_(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = jee, accessibilityDescription: s } = e, c = (0, R.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Pm(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = Bm({
+var kee = 500;
+function A_(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = kee, accessibilityDescription: s } = e, c = (0, R.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Pm(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = Bm({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -20295,11 +20295,11 @@ function O_(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function k_(e) {
+function j_(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 = Gd();
t = Eu(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && g_(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && v_(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -20342,22 +20342,22 @@ function k_(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 || j_(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || N_(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" && !A_(e.key)) return;
+ if (e.pointerType === "keyboard" && !M_(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 || j_(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || N_(e.key))) && p(e);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && A_(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 && M_(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
});
- let A = Oee(n.collection);
+ let A = Eee(n.collection);
if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = Y(k, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
@@ -20375,7 +20375,7 @@ function k_(e) {
]) D[e] && (k[e] = su(k[e], D[e]));
let { pressProps: j, isPressed: M } = Bm(k), N = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: P } = O_({
+ } : void 0, { longPressProps: P } = A_({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -20424,21 +20424,21 @@ function k_(e) {
hasAction: S
};
}
-function A_(e) {
+function M_(e) {
return e === "Enter";
}
-function j_(e) {
+function N_(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function M_(e, t) {
+function P_(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function N_(e) {
- return P_(e, 0);
+function F_(e) {
+ return I_(e, 0);
}
-function P_(e, t) {
+function I_(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -20446,36 +20446,36 @@ function P_(e, t) {
n++;
}
}
-function F_(e) {
+function L_(e) {
let t;
for (let n of e) t = n;
return t;
}
-function I_(e, t, n) {
+function R_(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...L_(e, t), t], i = [...L_(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...z_(e, t), t], i = [...z_(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 L_(e, t) {
+function z_(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 R_ = /* @__PURE__ */ new WeakMap();
-function z_(e) {
- let t = R_.get(e);
+var B_ = /* @__PURE__ */ new WeakMap();
+function V_(e) {
+ let t = B_.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(M_(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(P_(i, e)) : i.type === "item" && n++;
};
- return r(e), R_.set(e, n), n;
+ return r(e), B_.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function Mee(e, t, n) {
- let { key: r } = e, i = Xg.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 = Ou(), f = Ou(), p = {
+function Aee(e, t, n) {
+ let { key: r } = e, i = Qg.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 = Ou(), f = Ou(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -20485,9 +20485,9 @@ function Mee(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"] = z_(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = V_(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = gee(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = k_({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = mee(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = j_({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -20527,7 +20527,7 @@ function Mee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Nee(e) {
+function jee(e) {
let { heading: t, "aria-label": n } = e, r = Eu();
return {
itemProps: { role: "presentation" },
@@ -20547,13 +20547,13 @@ function Nee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function B_(e) {
+function H_(e) {
let t = R.version.split(".");
return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;
}
//#endregion
//#region node_modules/react-stately/dist/private/list/ListCollection.mjs
-var V_ = class {
+var U_ = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -20597,20 +20597,20 @@ var V_ = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, H_ = class e extends Set {
+}, W_ = 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 Pee(e, t) {
+function Mee(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function U_(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, R.useRef)(!1), [, s] = (0, R.useState)(!1), c = (0, R.useRef)(null), l = (0, R.useRef)(null), [, u] = (0, R.useState)(null), [d, f] = rp((0, R.useMemo)(() => W_(e.selectedKeys), [e.selectedKeys]), (0, R.useMemo)(() => W_(e.defaultSelectedKeys, new H_()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, R.useState)(i);
+function G_(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, R.useRef)(!1), [, s] = (0, R.useState)(!1), c = (0, R.useRef)(null), l = (0, R.useRef)(null), [, u] = (0, R.useState)(null), [d, f] = rp((0, R.useMemo)(() => K_(e.selectedKeys), [e.selectedKeys]), (0, R.useMemo)(() => K_(e.defaultSelectedKeys, new W_()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, R.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, R.useRef)(i);
return (0, R.useEffect)(() => {
@@ -20637,18 +20637,18 @@ function U_(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !Pee(e, d)) && f(e);
+ (r || !Mee(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function W_(e, t) {
- return e ? e === "all" ? "all" : new H_(e) : t;
+function K_(e, t) {
+ return e ? e === "all" ? "all" : new W_(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var G_ = class e {
+var q_ = 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;
}
@@ -20704,7 +20704,7 @@ var G_ = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && I_(this.collection, n, e) < 0) && (e = n);
+ (!e || n && R_(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -20712,7 +20712,7 @@ var G_ = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && I_(this.collection, n, e) > 0) && (e = n);
+ (!e || n && R_(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -20731,10 +20731,10 @@ var G_ = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new H_([t], t, t);
+ if (this.state.selectedKeys === "all") n = new W_([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new H_(e, r, t);
+ n = new W_(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);
}
@@ -20742,7 +20742,7 @@ var G_ = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? I_(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? R_(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);
@@ -20768,19 +20768,19 @@ var G_ = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new H_(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new W_(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 H_([t], t, t) : new H_();
+ let n = this.canSelectItem(t) ? new W_([t], t, t) : new W_();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new H_();
+ let t = new W_();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -20792,7 +20792,7 @@ var G_ = 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(N_(M_(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(F_(P_(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -20803,7 +20803,7 @@ var G_ = 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 H_());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new W_());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -20844,9 +20844,9 @@ var G_ = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, Fee = class {
+}, Nee = class {
build(e, t) {
- return this.context = t, K_(() => this.iterateCollection(e));
+ return this.context = t, J_(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -20928,10 +20928,10 @@ var G_ = class e {
...a,
key: l,
index: s,
- wrapper: Iee(e.wrapper, a.wrapper)
+ wrapper: Pee(e.wrapper, a.wrapper)
}, this.getChildState(t, a), n ? `${n}${i.key}` : i.key, r)];
for (let t of u) {
- if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${q_(t.type)}> in <${q_(r?.type ?? "unknown parent type")}>. Only <${q_(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 <${Y_(t.type)}> in <${Y_(r?.type ?? "unknown parent type")}>. Only <${Y_(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -20953,7 +20953,7 @@ var G_ = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: K_(function* () {
+ childNodes: J_(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -20972,7 +20972,7 @@ var G_ = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function K_(e) {
+function J_(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -20980,18 +20980,18 @@ function K_(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function Iee(e, t) {
+function Pee(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function q_(e) {
+function Y_(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function J_(e, t, n) {
- let r = (0, R.useMemo)(() => new Fee(), []), { children: i, items: a, collection: o } = e;
+function X_(e, t, n) {
+ let r = (0, R.useMemo)(() => new Nee(), []), { children: i, items: a, collection: o } = e;
return (0, R.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -21006,27 +21006,27 @@ function J_(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function Y_(e) {
- let { filter: t, layoutDelegate: n } = e, r = U_(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = J_(e, (0, R.useCallback)((e) => t ? new V_(t(e)) : new V_(e), [t]), (0, R.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, R.useMemo)(() => new G_(a, r, { layoutDelegate: n }), [
+function Z_(e) {
+ let { filter: t, layoutDelegate: n } = e, r = G_(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = X_(e, (0, R.useCallback)((e) => t ? new U_(t(e)) : new U_(e), [t]), (0, R.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, R.useMemo)(() => new q_(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return X_(a, o), {
+ return Q_(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function Lee(e, t) {
+function Fee(e, t) {
let n = (0, R.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return X_(n, r), {
+ return Q_(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function X_(e, t) {
+function Q_(e, t) {
let n = (0, R.useRef)(null);
(0, R.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -21054,7 +21054,7 @@ function X_(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function Z_(e, t) {
+function $_(e, t) {
let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, R.useRef)(null), s = Of((e) => {
for (let t of e) t.isIntersecting && r && r();
});
@@ -21078,42 +21078,42 @@ function Z_(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var Q_ = /*#__PURE__*/ (0, R.createContext)(null), $_ = /*#__PURE__*/ (0, R.createContext)(null), Ree = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = Ru(e, t, Q_);
- let n = (0, R.useContext)($_);
- return n ? /*#__PURE__*/ R.createElement(ev, {
+var ev = /*#__PURE__*/ (0, R.createContext)(null), tv = /*#__PURE__*/ (0, R.createContext)(null), Iee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = Ru(e, t, ev);
+ let n = (0, R.useContext)(tv);
+ return n ? /*#__PURE__*/ R.createElement(nv, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ R.createElement(Qp, { content: /*#__PURE__*/ R.createElement(um, e) }, (n) => /*#__PURE__*/ R.createElement(zee, {
+ }) : /*#__PURE__*/ R.createElement(Qp, { content: /*#__PURE__*/ R.createElement(um, e) }, (n) => /*#__PURE__*/ R.createElement(Lee, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function zee({ props: e, listBoxRef: t, collection: n }) {
+function Lee({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, R.useContext)(gm), i = Y_({
+ let { layoutDelegate: r } = (0, R.useContext)(gm), i = Z_({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ R.createElement(ev, {
+ return /*#__PURE__*/ R.createElement(nv, {
state: i,
props: e,
listBoxRef: t
});
}
-function ev({ state: e, props: t, listBoxRef: n }) {
+function nv({ state: e, props: t, listBoxRef: n }) {
[t, n] = Ru(t, n, ip);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Lee(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Vf(), { disabledBehavior: p, disabledKeys: m } = l, h = E_({
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Fee(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Vf(), { disabledBehavior: p, disabledKeys: m } = l, h = O_({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, R.useContext)(gm), b = (0, R.useMemo)(() => t.keyboardDelegate || new w_({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, R.useContext)(gm), b = (0, R.useMemo)(() => t.keyboardDelegate || new E_({
collection: c,
collator: h,
ref: n,
@@ -21134,7 +21134,7 @@ function ev({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Aee({
+ ]), { listBoxProps: x } = Oee({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -21185,7 +21185,7 @@ function ev({ state: e, props: t, listBoxRef: n }) {
style: { display: "contents" }
}, t.renderEmptyState(M)));
let ee = wm(t, { global: !0 });
- return /*#__PURE__*/ R.createElement(t_, null, /*#__PURE__*/ R.createElement(Uu.div, {
+ return /*#__PURE__*/ R.createElement(r_, null, /*#__PURE__*/ R.createElement(Uu.div, {
...Y(ee, N, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -21197,28 +21197,28 @@ function ev({ state: e, props: t, listBoxRef: n }) {
"data-layout": t.layout || "stack",
"data-orientation": a
}, /*#__PURE__*/ R.createElement(Fu, { values: [
- [Q_, t],
- [$_, s],
- [Hg, {
+ [ev, t],
+ [tv, s],
+ [Wg, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [Yg, { elementType: "div" }],
- [Ug, { render: Hee }],
+ [Zg, { elementType: "div" }],
+ [Gg, { render: Bee }],
[fm, {
name: "ListBoxSection",
- render: Bee
+ render: Ree
}]
- ] }, /*#__PURE__*/ R.createElement(qg, null, /*#__PURE__*/ R.createElement(y, {
+ ] }, /*#__PURE__*/ R.createElement(Yg, null, /*#__PURE__*/ R.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: Gg(l, r, C),
- renderDropIndicator: Wg(r, C)
+ persistedKeys: qg(l, r, C),
+ renderDropIndicator: Kg(r, C)
}))), P, E));
}
-function Bee(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, R.useContext)($_), { dragAndDropHooks: a, dropState: o } = (0, R.useContext)(Hg), { CollectionBranch: s } = (0, R.useContext)(gm), [c, l] = zu(), { headingProps: u, groupProps: d } = Nee({
+function Ree(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, R.useContext)(tv), { dragAndDropHooks: a, dropState: o } = (0, R.useContext)(Wg), { CollectionBranch: s } = (0, R.useContext)(gm), [c, l] = zu(), { headingProps: u, groupProps: d } = jee({
heading: l,
"aria-label": e["aria-label"] ?? void 0
}), f = Iu({
@@ -21231,17 +21231,17 @@ function Bee(e, t, n, r = "react-aria-ListBoxSection") {
return delete p.id, /*#__PURE__*/ R.createElement(Uu.section, {
...Y(p, f, d),
ref: t
- }, /*#__PURE__*/ R.createElement(Kg.Provider, { value: {
+ }, /*#__PURE__*/ R.createElement(Jg.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ R.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: Wg(a, o)
+ renderDropIndicator: Kg(a, o)
})));
}
-var Vee = /*#__PURE__*/ om(lp, function(e, t, n) {
- let r = Nu(t), i = (0, R.useContext)($_), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(Hg), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Mee({
+var zee = /*#__PURE__*/ om(lp, function(e, t, n) {
+ let r = Nu(t), i = (0, R.useContext)(tv), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(Wg), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Aee({
key: n.key,
"aria-label": e?.["aria-label"]
}, i, r), { hoverProps: p, isHovered: m } = th({
@@ -21296,19 +21296,19 @@ var Vee = /*#__PURE__*/ om(lp, function(e, t, n) {
[Pu]: u,
label: u,
description: d
- } }], [Jg, { isSelected: f.isSelected }]] }, b.children));
+ } }], [Xg, { isSelected: f.isSelected }]] }, b.children));
});
-function Hee(e, t) {
+function Bee(e, t) {
t = Nu(t);
- let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(Hg), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ R.createElement(Wee, {
+ let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(Wg), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ R.createElement(Hee, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Uee(e, t) {
+function Vee(e, t) {
let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = Iu({
...i,
defaultClassName: "react-aria-DropIndicator",
@@ -21322,10 +21322,10 @@ function Uee(e, t) {
"data-drop-target": r || void 0
}));
}
-var Wee = /*#__PURE__*/ (0, R.forwardRef)(Uee);
+var Hee = /*#__PURE__*/ (0, R.forwardRef)(Vee);
om(cp, function(e, t, n) {
- let r = (0, R.useContext)($_), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
- Z_((0, R.useMemo)(() => ({
+ let r = (0, R.useContext)(tv), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
+ $_((0, R.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -21348,7 +21348,7 @@ om(cp, function(e, t, n) {
width: 0,
height: 0
},
- inert: B_(!0)
+ inert: H_(!0)
}, /*#__PURE__*/ R.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -21366,13 +21366,13 @@ om(cp, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Gee = /*#__PURE__*/ (0, R.createContext)({ placement: "bottom" }), Kee = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function tv(e) {
+var Uee = /*#__PURE__*/ (0, R.createContext)({ placement: "bottom" }), Wee = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function rv(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var nv = /* @__PURE__ */ new WeakMap(), rv = [];
-function iv(e, t) {
- let n = qu(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Kee, 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 iv = /* @__PURE__ */ new WeakMap(), av = [];
+function ov(e, t) {
+ let n = qu(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Wee, 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 (td()) {
@@ -21388,19 +21388,19 @@ function iv(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 (nd(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = Zg(Ku(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = $g(Ku(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 = nv.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), nv.set(e, t + 1));
+ let t = iv.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), iv.set(e, t + 1));
};
- rv.length && rv[rv.length - 1].disconnect(), d(i);
+ av.length && av[av.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) => nd(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && tv(e) ? o.add(e) : e instanceof Element && d(e);
+ if (t.target.isConnected && ![...o, ...s].some((e) => nd(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && rv(e) ? o.add(e) : e instanceof Element && d(e);
if (td()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
@@ -21417,7 +21417,7 @@ function iv(e, t) {
if (td()) 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) => nd(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && tv(e) ? o.add(e) : e instanceof Element && d(e);
+ if (t.target.isConnected && ![...o, ...s].some((e) => nd(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && rv(e) ? o.add(e) : e instanceof Element && d(e);
if (td()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
@@ -21444,49 +21444,49 @@ function iv(e, t) {
p.disconnect();
}
};
- return rv.push(h), () => {
+ return av.push(h), () => {
if (p.disconnect(), td()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = nv.get(e);
- t != null && (t === 1 ? (l(e, !1), nv.delete(e)) : nv.set(e, t - 1));
+ let t = iv.get(e);
+ t != null && (t === 1 ? (l(e, !1), iv.delete(e)) : iv.set(e, t - 1));
}
- h === rv[rv.length - 1] ? (rv.pop(), rv.length && rv[rv.length - 1].observe()) : rv.splice(rv.indexOf(h), 1);
+ h === av[av.length - 1] ? (av.pop(), av.length && av[av.length - 1].observe()) : av.splice(av.indexOf(h), 1);
};
}
-function qee(e) {
- let t = rv[rv.length - 1];
+function Gee(e) {
+ let t = av[av.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var av = {
+var sv = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, ov = {
+}, cv = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, Jee = {
+}, Kee = {
top: "left",
left: "top"
-}, sv = {
+}, lv = {
top: "height",
left: "width"
-}, cv = {
+}, uv = {
width: "totalWidth",
height: "totalHeight"
-}, lv = {}, Yee = () => typeof document < "u" ? window.visualViewport : null;
-function uv(e, t) {
+}, dv = {}, qee = () => typeof document < "u" ? window.visualViewport : null;
+function fv(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} = gv(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ } else ({width: n, height: r, top: o, left: s} = xv(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
return Rd() && (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,
@@ -21497,7 +21497,7 @@ function uv(e, t) {
left: s
};
}
-function Xee(e) {
+function Jee(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -21505,11 +21505,11 @@ function Xee(e) {
height: e.scrollHeight
};
}
-function dv(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[sv[e]], l = o[e] + r.scroll[av[e]] + a, u = o[e] + r.scroll[av[e]] + c - a, d = t - s + r.scroll[av[e]] + o[e] - r[av[e]], f = t - s + n + r.scroll[av[e]] + o[e] - r[av[e]];
+function pv(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[lv[e]], l = o[e] + r.scroll[sv[e]] + a, u = o[e] + r.scroll[sv[e]] + c - a, d = t - s + r.scroll[sv[e]] + o[e] - r[sv[e]], f = t - s + n + r.scroll[sv[e]] + o[e] - r[sv[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function Zee(e) {
+function Yee(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -21518,55 +21518,55 @@ function Zee(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function fv(e) {
- if (lv[e]) return lv[e];
- let [t, n] = e.split(" "), r = av[t] || "right", i = Jee[r];
- av[n] || (n = "center");
- let a = sv[r], o = sv[i];
- return lv[e] = {
+function mv(e) {
+ if (dv[e]) return dv[e];
+ let [t, n] = e.split(" "), r = sv[t] || "right", i = Kee[r];
+ sv[n] || (n = "center");
+ let a = lv[r], o = lv[i];
+ return dv[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, lv[e];
+ }, dv[e];
}
-function pv(e, t, n, r, i, a, o, s, c, l, u) {
+function hv(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] = ah(_[m], v, y), d === p) {
- let t = s ? u[h] : u[cv[h]];
- _[ov[p]] = Math.floor(t - e[p] + i);
+ let t = s ? u[h] : u[uv[h]];
+ _[cv[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function Qee(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[cv.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function gv(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[uv.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 mv(e, t, n, r, i, a, o, s) {
+function _v(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[ov[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[ov[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[cv[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[cv[l]] - i);
}
-function $ee(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = fv(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = pv(t, s, n, v, u, d, l, f, m, h, c), T = u, E = mv(s, l, t, i, a + u, v, c, g);
+function vv(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = mv(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = hv(t, s, n, v, u, d, l, f, m, h, c), T = u, E = _v(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = fv(`${ov[S]} ${C}`), r = pv(t, s, n, e, u, d, l, f, m, h, c);
- mv(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = mv(`${cv[S]} ${C}`), r = hv(t, s, n, e, u, d, l, f, m, h, c);
+ _v(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 = dv(b, w[b], n[x], s, c, a, l);
+ let O = pv(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = Qee(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = pv(t, s, n, v, T, d, l, f, m, h, c), O = dv(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[av[b]], M = j + .5 * t[x], N = m / 2 + h, P = av[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ee = n[x] - P - m / 2 - h;
- A[b] = ah(ah(M, t[b] + m / 2 - (w[b] + i[av[b]]), t[b] + t[x] - m / 2 - (w[b] + i[av[b]])), N, ee), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = gv(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = hv(t, s, n, v, T, d, l, f, m, h, c), O = pv(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[sv[b]], M = j + .5 * t[x], N = m / 2 + h, P = sv[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ee = n[x] - P - m / 2 - h;
+ A[b] = ah(ah(M, t[b] + m / 2 - (w[b] + i[sv[b]]), t[b] + t[x] - m / 2 - (w[b] + i[sv[b]])), N, ee), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let F = S === "left" || S === "top" ? n[y] : 0, I = {
x: S === "top" || S === "bottom" ? j : F,
y: S === "left" || S === "right" ? j : F
@@ -21580,17 +21580,17 @@ function $ee(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: I
};
}
-function ete(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 = Yee(), h = r instanceof HTMLElement ? tte(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? gv(n, !1, p) : _v(n, h, !1, p);
+function yv(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 = qee(), h = r instanceof HTMLElement ? Cv(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? xv(n, !1, p) : Sv(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 = gv(r, !0), x = Zee(r);
+ let b = xv(r, !0), x = Yee(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = Xee(i), C = uv(s, m), w = uv(h, m), T;
+ let S = Jee(i), C = fv(s, m), w = fv(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = hv(h, !1);
+ let e = bv(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -21602,11 +21602,11 @@ function ete(e) {
left: 0,
width: 0,
height: 0
- } : _v(s, h, !1);
+ } : Sv(s, h, !1);
let E = nd(s, h);
- return $ee(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ return vv(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function hv(e, t) {
+function bv(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,
@@ -21615,8 +21615,8 @@ function hv(e, t) {
height: a
};
}
-function gv(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || hv(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function xv(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || bv(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -21624,34 +21624,34 @@ function gv(e, t, n) {
height: o
};
}
-function _v(e, t, n, r) {
+function Sv(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || hv(e, n);
+ if (i.position === "fixed") a = r || bv(e, n);
else {
- a = gv(e, n, r);
- let i = gv(t, n), o = window.getComputedStyle(t);
+ a = xv(e, n, r);
+ let i = xv(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 tte(e) {
+function Cv(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !vv(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !vv(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !wv(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !wv(t);) t = t.parentElement;
return t || document.documentElement;
}
-function vv(e) {
+function wv(e) {
let t = window.getComputedStyle(e);
return t.transform !== "none" || /transform|perspective/.test(t.willChange) || t.filter !== "none" || t.contain === "paint" || "backdropFilter" in t && t.backdropFilter !== "none" || "WebkitBackdropFilter" in t && t.WebkitBackdropFilter !== "none";
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var yv = /* @__PURE__ */ new WeakMap();
-function nte(e) {
+var Tv = /* @__PURE__ */ new WeakMap();
+function Ev(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
(0, R.useEffect)(() => !n || r === null ? void 0 : Qu(id(t.current), "scroll", (e) => {
let n = X(e);
if (!t.current || n instanceof Node && !nd(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || yv.get(t.current);
+ let i = r || Tv.get(t.current);
i && i();
}, !0), [
n,
@@ -21661,15 +21661,15 @@ function nte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function rte() {
+function Dv() {
return window.ResizeObserver !== void 0;
}
-function bv(e) {
+function Ov(e) {
let { ref: t, box: n, onResize: r } = e, i = Of(r);
(0, R.useEffect)(() => {
let e = t?.current;
if (e) {
- if (rte()) {
+ if (Dv()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -21685,8 +21685,8 @@ function bv(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var xv = typeof document < "u" ? window.visualViewport : null;
-function ite(e) {
+var kv = typeof document < "u" ? window.visualViewport : null;
+function Av(e) {
let { direction: t } = Vf(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, R.useState)(null), x = [
p,
s,
@@ -21704,12 +21704,12 @@ function ite(e) {
g,
_,
n
- ], S = (0, R.useRef)(xv?.scale);
+ ], S = (0, R.useRef)(kv?.scale);
(0, R.useEffect)(() => {
- m && (S.current = xv?.scale);
+ m && (S.current = kv?.scale);
}, [m]);
let C = (0, R.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || xv?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || kv?.scale !== S.current) return;
let e = null;
if (o.current && ad(o.current)) {
let t = rd()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
@@ -21720,8 +21720,8 @@ function ite(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 = ete({
- placement: ote(s, t),
+ let y = yv({
+ placement: Mv(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -21731,7 +21731,7 @@ function ite(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? hv(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? bv(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
@@ -21744,10 +21744,10 @@ function ite(e) {
}
b(y);
}, x);
- cu(C, x), ate(C), bv({
+ cu(C, x), jv(C), Ov({
ref: i,
onResize: C
- }), bv({
+ }), Ov({
ref: r,
onResize: C
});
@@ -21760,16 +21760,16 @@ function ite(e) {
}, n = () => {
w.current && t();
};
- xv?.addEventListener("resize", t), xv?.addEventListener("scroll", n);
+ kv?.addEventListener("resize", t), kv?.addEventListener("scroll", n);
let r = Qu(id(window), "scroll", n);
return () => {
- xv?.removeEventListener("resize", t), xv?.removeEventListener("scroll", n), r();
+ kv?.removeEventListener("resize", t), kv?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, R.useCallback)(() => {
w.current || h?.();
}, [h, w]);
- return nte({
+ return Ev({
triggerRef: r,
isOpen: m,
onClose: h && T
@@ -21795,22 +21795,22 @@ function ite(e) {
updatePosition: C
};
}
-function ate(e) {
+function jv(e) {
cu(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function ote(e, t) {
+function Mv(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/interactions/useInteractOutside.mjs
-function ste(e) {
+function Nv(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, R.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
}), o = Of((e) => {
- n && Sv(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ n && Pv(e, t) && (i && i(e), a.current.isPointerDown = !0);
}), s = Of((e) => {
n && n(e);
});
@@ -21820,7 +21820,7 @@ function ste(e) {
let n = t.current, i = Ku(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && Sv(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && Pv(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);
@@ -21828,7 +21828,7 @@ function ste(e) {
}
}, [t, r]);
}
-function Sv(e, t) {
+function Pv(e, t) {
if (e.button > 0) return !1;
let n = X(e);
if (n) {
@@ -21839,22 +21839,22 @@ function Sv(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var Cv = [];
-function wv(e, t) {
+var Fv = [];
+function Iv(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, R.useRef)(void 0);
(0, R.useEffect)(() => {
- if (i && !Cv.includes(t)) return Cv.push(t), () => {
- let e = Cv.indexOf(t);
- e >= 0 && Cv.splice(e, 1);
+ if (i && !Fv.includes(t)) return Fv.push(t), () => {
+ let e = Fv.indexOf(t);
+ e >= 0 && Fv.splice(e, 1);
};
}, [i, t]);
let l = () => {
- Cv[Cv.length - 1] === t && n && n();
+ Fv[Fv.length - 1] === t && n && n();
}, u = (e) => {
- let n = Cv[Cv.length - 1];
+ let n = Fv[Fv.length - 1];
c.current = n, (!s || s(X(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(X(e))) && (Cv[Cv.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ (!s || s(X(e))) && (Fv[Fv.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
}, { keyboardProps: f } = Rp({ shortcuts: { Escape: () => {
if (!o) {
l();
@@ -21862,7 +21862,7 @@ function wv(e, t) {
}
return !1;
} } });
- ste({
+ Nv({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
@@ -21870,7 +21870,7 @@ function wv(e, t) {
let { focusWithinProps: p } = Jm({
isDisabled: !r,
onBlurWithin: (e) => {
- !e.relatedTarget || See(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
+ !e.relatedTarget || bee(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -21883,20 +21883,20 @@ function wv(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var Tv = typeof document < "u" && window.visualViewport, Ev = 0, Dv;
-function Ov(e = {}) {
+var Lv = typeof document < "u" && window.visualViewport, Rv = 0, zv;
+function Bv(e = {}) {
let { isDisabled: t } = e;
cu(() => {
- if (!t) return Ev++, Ev === 1 && (Dv = Id() && Rd() ? lte() : cte()), () => {
- Ev--, Ev === 0 && Dv();
+ if (!t) return Rv++, Rv === 1 && (zv = Id() && Rd() ? Zee() : Xee()), () => {
+ Rv--, Rv === 0 && zv();
};
}, [t]);
}
-function cte() {
+function Xee() {
let e = window.innerWidth - document.documentElement.clientWidth;
return su(e > 0 && ("scrollbarGutter" in document.documentElement.style ? $u(document.documentElement, "scrollbar-gutter", "stable") : $u(document.documentElement, "padding-right", `${e}px`)), $u(document.documentElement, "overflow", "hidden"));
}
-function lte() {
+function Zee() {
let e = $u(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = X(e);
t = xh(r) ? r : Sh(r, !0), n = !1;
@@ -21914,7 +21914,7 @@ function lte() {
}
}, s = (e) => {
let t = X(e), n = e.relatedTarget;
- n && Ef(n) ? (n.focus({ preventScroll: !0 }), kv(n, Ef(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && Ef(n) ? (n.focus({ preventScroll: !0 }), Vv(n, Ef(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, c = HTMLElement.prototype.focus;
Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -21924,7 +21924,7 @@ function lte() {
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && kv(this, n);
+ }), (!e || !e.preventScroll) && Vv(this, n);
}
});
let l = su(Qu(document, "touchstart", r, {
@@ -21942,10 +21942,10 @@ function lte() {
});
};
}
-function kv(e, t) {
- t || !Tv ? Av(e) : Tv.addEventListener("resize", () => Av(e), { once: !0 });
+function Vv(e, t) {
+ t || !Lv ? Hv(e) : Lv.addEventListener("resize", () => Hv(e), { once: !0 });
}
-function Av(e) {
+function Hv(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
let e = Sh(n);
@@ -21953,7 +21953,7 @@ function Av(e) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- Tv && (n = Math.min(n, Tv.offsetTop + Tv.height));
+ Lv && (n = Math.min(n, Lv.offsetTop + Lv.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)),
@@ -21966,15 +21966,15 @@ function Av(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function ute(e, t) {
- let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = wv({
+function Qee(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 } = Iv({
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 } = ite({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Av({
...c,
targetRef: n,
overlayRef: r,
@@ -21982,8 +21982,8 @@ function ute(e, t) {
onClose: a && !l ? t.close : null,
getTargetRect: c.getTargetRect ?? (t.point ? () => new DOMRect(t.point.x, t.point.y, 0, 0) : void 0)
});
- Ov({ isDisabled: a || !t.isOpen }), (0, R.useEffect)(() => {
- if (t.isOpen && r.current) return a ? qee(i?.current ?? r.current) : iv([i?.current ?? r.current], { shouldUseInert: !0 });
+ Bv({ isDisabled: a || !t.isOpen }), (0, R.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? Gee(i?.current ?? r.current) : ov([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
@@ -22001,186 +22001,186 @@ function ute(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var jv = {};
-jv = { dismiss: "تجاهل" };
+var Uv = {};
+Uv = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var Mv = {};
-Mv = { dismiss: "Отхвърляне" };
+var Wv = {};
+Wv = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var Nv = {};
-Nv = { dismiss: "Odstranit" };
+var Gv = {};
+Gv = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var Pv = {};
-Pv = { dismiss: "Luk" };
+var Kv = {};
+Kv = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var Fv = {};
-Fv = { dismiss: "Schließen" };
+var qv = {};
+qv = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var Iv = {};
-Iv = { dismiss: "Απόρριψη" };
+var Jv = {};
+Jv = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var Lv = {};
-Lv = { dismiss: "Dismiss" };
+var Yv = {};
+Yv = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var Rv = {};
-Rv = { dismiss: "Descartar" };
+var Xv = {};
+Xv = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var zv = {};
-zv = { dismiss: "Lõpeta" };
+var Zv = {};
+Zv = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var Bv = {};
-Bv = { dismiss: "Hylkää" };
+var Qv = {};
+Qv = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var Vv = {};
-Vv = { dismiss: "Rejeter" };
+var $v = {};
+$v = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var Hv = {};
-Hv = { dismiss: "התעלם" };
+var ey = {};
+ey = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var Uv = {};
-Uv = { dismiss: "Odbaci" };
+var ty = {};
+ty = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var Wv = {};
-Wv = { dismiss: "Elutasítás" };
+var ny = {};
+ny = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var Gv = {};
-Gv = { dismiss: "Ignora" };
+var ry = {};
+ry = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var Kv = {};
-Kv = { dismiss: "閉じる" };
+var iy = {};
+iy = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var qv = {};
-qv = { dismiss: "무시" };
+var ay = {};
+ay = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var Jv = {};
-Jv = { dismiss: "Atmesti" };
+var oy = {};
+oy = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var Yv = {};
-Yv = { dismiss: "Nerādīt" };
+var sy = {};
+sy = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var Xv = {};
-Xv = { dismiss: "Lukk" };
+var cy = {};
+cy = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var Zv = {};
-Zv = { dismiss: "Negeren" };
+var ly = {};
+ly = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var Qv = {};
-Qv = { dismiss: "Zignoruj" };
+var uy = {};
+uy = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var $v = {};
-$v = { dismiss: "Descartar" };
+var dy = {};
+dy = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var ey = {};
-ey = { dismiss: "Dispensar" };
+var fy = {};
+fy = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var ty = {};
-ty = { dismiss: "Revocare" };
+var py = {};
+py = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var ny = {};
-ny = { dismiss: "Пропустить" };
+var my = {};
+my = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var ry = {};
-ry = { dismiss: "Zrušiť" };
+var hy = {};
+hy = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var iy = {};
-iy = { dismiss: "Opusti" };
+var gy = {};
+gy = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var ay = {};
-ay = { dismiss: "Odbaci" };
+var _y = {};
+_y = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var oy = {};
-oy = { dismiss: "Avvisa" };
+var vy = {};
+vy = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var sy = {};
-sy = { dismiss: "Kapat" };
+var yy = {};
+yy = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var cy = {};
-cy = { dismiss: "Скасувати" };
+var by = {};
+by = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var ly = {};
-ly = { dismiss: "取消" };
+var xy = {};
+xy = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var uy = {};
-uy = { dismiss: "關閉" };
+var Sy = {};
+Sy = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var dy = {};
-dy = {
- "ar-AE": jv,
- "bg-BG": Mv,
- "cs-CZ": Nv,
- "da-DK": Pv,
- "de-DE": Fv,
- "el-GR": Iv,
- "en-US": Lv,
- "es-ES": Rv,
- "et-EE": zv,
- "fi-FI": Bv,
- "fr-FR": Vv,
- "he-IL": Hv,
- "hr-HR": Uv,
- "hu-HU": Wv,
- "it-IT": Gv,
- "ja-JP": Kv,
- "ko-KR": qv,
- "lt-LT": Jv,
- "lv-LV": Yv,
- "nb-NO": Xv,
- "nl-NL": Zv,
- "pl-PL": Qv,
- "pt-BR": $v,
- "pt-PT": ey,
- "ro-RO": ty,
- "ru-RU": ny,
- "sk-SK": ry,
- "sl-SI": iy,
- "sr-SP": ay,
- "sv-SE": oy,
- "tr-TR": sy,
- "uk-UA": cy,
- "zh-CN": ly,
- "zh-TW": uy
+var Cy = {};
+Cy = {
+ "ar-AE": Uv,
+ "bg-BG": Wv,
+ "cs-CZ": Gv,
+ "da-DK": Kv,
+ "de-DE": qv,
+ "el-GR": Jv,
+ "en-US": Yv,
+ "es-ES": Xv,
+ "et-EE": Zv,
+ "fi-FI": Qv,
+ "fr-FR": $v,
+ "he-IL": ey,
+ "hr-HR": ty,
+ "hu-HU": ny,
+ "it-IT": ry,
+ "ja-JP": iy,
+ "ko-KR": ay,
+ "lt-LT": oy,
+ "lv-LV": sy,
+ "nb-NO": cy,
+ "nl-NL": ly,
+ "pl-PL": uy,
+ "pt-BR": dy,
+ "pt-PT": fy,
+ "ro-RO": py,
+ "ru-RU": my,
+ "sk-SK": hy,
+ "sl-SI": gy,
+ "sr-SP": _y,
+ "sv-SE": vy,
+ "tr-TR": yy,
+ "uk-UA": by,
+ "zh-CN": xy,
+ "zh-TW": Sy
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function dte(e) {
+function $ee(e) {
return e && e.__esModule ? e.default : e;
}
-function fy(e) {
- let { onDismiss: t, ...n } = e, r = Af(n, tp(dte(dy), "@react-aria/overlays").format("dismiss")), i = () => {
+function wy(e) {
+ let { onDismiss: t, ...n } = e, r = Af(n, tp($ee(Cy), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
return /*#__PURE__*/ R.createElement(Mh, null, /*#__PURE__*/ R.createElement("button", {
@@ -22195,7 +22195,7 @@ function fy(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var fte = /*#__PURE__*/ R.forwardRef(({ children: e, ...t }, n) => {
+var ete = /*#__PURE__*/ R.forwardRef(({ children: e, ...t }, n) => {
let r = (0, R.useRef)(!1), i = (0, R.useContext)(Nm), a = Y(i || {}, {
...t,
register() {
@@ -22206,44 +22206,44 @@ var fte = /*#__PURE__*/ R.forwardRef(({ children: e, ...t }, n) => {
r.current ||= !0;
}, []), /*#__PURE__*/ R.createElement(Nm.Provider, { value: a }, e);
});
-function pte({ children: e }) {
+function tte({ children: e }) {
let t = (0, R.useMemo)(() => ({ register: () => {} }), []);
return /*#__PURE__*/ R.createElement(Nm.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var py = /*#__PURE__*/ (0, R.createContext)({});
-function my(e) {
- let { getContainer: t } = e, { getContainer: n } = hy();
- return /*#__PURE__*/ R.createElement(py.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var Ty = /*#__PURE__*/ (0, R.createContext)({});
+function Ey(e) {
+ let { getContainer: t } = e, { getContainer: n } = Dy();
+ return /*#__PURE__*/ R.createElement(Ty.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function hy() {
- return (0, R.useContext)(py) ?? {};
+function Dy() {
+ return (0, R.useContext)(Ty) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var gy = /*#__PURE__*/ R.createContext(null);
-function _y(e) {
+var Oy = /*#__PURE__*/ R.createContext(null);
+function ky(e) {
let t = bu(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, R.useState)(!1), o = (0, R.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = hy();
+ }), [i, a]), { getContainer: s } = Dy();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ R.createElement(t_, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ R.createElement(r_, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ R.createElement(gy.Provider, { value: o }, /*#__PURE__*/ R.createElement(pte, null, /*#__PURE__*/ R.createElement(Bp.Provider, { value: null }, c))), /*#__PURE__*/ Re.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ R.createElement(Oy.Provider, { value: o }, /*#__PURE__*/ R.createElement(tte, null, /*#__PURE__*/ R.createElement(Bp.Provider, { value: null }, c))), /*#__PURE__*/ Re.createPortal(c, n);
}
-function vy() {
- let e = (0, R.useContext)(gy)?.setContain;
+function Ay() {
+ let e = (0, R.useContext)(Oy)?.setContain;
cu(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function yy(e) {
+function jy(e) {
let [t, n] = rp(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, R.useState)(null);
return {
isOpen: t,
@@ -22263,13 +22263,13 @@ function yy(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function by(e, t = !0) {
+function My(e, t = !0) {
let [n, r] = (0, R.useState)(!0), i = n && t;
return cu(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), Sy(e, i, (0, R.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), Py(e, i, (0, R.useCallback)(() => r(!1), [])), i;
}
-function xy(e, t) {
+function Ny(e, t) {
let [n, r] = (0, R.useState)(t ? "open" : "closed");
switch (n) {
case "open":
@@ -22279,11 +22279,11 @@ function xy(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return Sy(e, i, (0, R.useCallback)(() => {
+ return Py(e, i, (0, R.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function Sy(e, t, n) {
+function Py(e, t, n) {
cu(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
@@ -22312,9 +22312,9 @@ function Sy(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var Cy = /*#__PURE__*/ (0, R.createContext)(null), wy = /*#__PURE__*/ (0, R.createContext)(null), Ty = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = Ru(e, t, Cy);
- let n = (0, R.useContext)(vb), r = yy(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = xy(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Kp(), { direction: c } = Vf();
+var Fy = /*#__PURE__*/ (0, R.createContext)(null), Iy = /*#__PURE__*/ (0, R.createContext)(null), Ly = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = Ru(e, t, Fy);
+ let n = (0, R.useContext)(Ab), r = jy(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Ny(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Kp(), { direction: c } = Vf();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -22325,7 +22325,7 @@ var Cy = /*#__PURE__*/ (0, R.createContext)(null), wy = /*#__PURE__*/ (0, R.crea
defaultChildren: null
})), /*#__PURE__*/ R.createElement(R.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ R.createElement(mte, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ R.createElement(nte, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -22334,13 +22334,13 @@ var Cy = /*#__PURE__*/ (0, R.createContext)(null), wy = /*#__PURE__*/ (0, R.crea
dir: c
});
});
-function mte({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useContext)(wy), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = ute({
+function nte({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useContext)(Iy), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Qee({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = by(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = Iu({
+ }, e), m = i.popoverRef, h = My(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = Iu({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -22366,7 +22366,7 @@ function mte({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}, [_.children, r]), [S, C] = (0, R.useState)(null), w = (0, R.useCallback)(() => {
i.triggerRef.current && C(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- cu(w, [w]), bv({
+ cu(w, [w]), Ov({
ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: w
});
@@ -22391,17 +22391,17 @@ function mte({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ R.createElement(fy, { onDismiss: e.close }), /*#__PURE__*/ R.createElement(Gee.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ R.createElement(wy, { onDismiss: e.close }), /*#__PURE__*/ R.createElement(Uee.Provider, { value: {
...d,
placement: f,
ref: a
- } }, x), /*#__PURE__*/ R.createElement(fy, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ R.createElement(_y, {
+ } }, x), /*#__PURE__*/ R.createElement(wy, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ R.createElement(ky, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, E) : /*#__PURE__*/ R.createElement(_y, {
+ }, E) : /*#__PURE__*/ R.createElement(ky, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -22416,187 +22416,187 @@ function mte({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ R.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ R.createElement(wy.Provider, { value: o }, E)));
+ }, /*#__PURE__*/ R.createElement(Iy.Provider, { value: o }, E)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Keyboard.mjs
-var hte = /*#__PURE__*/ (0, R.createContext)({}), Ey = {};
-Ey = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+var rte = /*#__PURE__*/ (0, R.createContext)({}), Ry = {};
+Ry = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var Dy = {};
-Dy = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var zy = {};
+zy = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var Oy = {};
-Oy = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var By = {};
+By = { 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 ky = {};
-ky = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var Vy = {};
+Vy = { 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 Ay = {};
-Ay = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var Hy = {};
+Hy = { 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 jy = {};
-jy = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var Uy = {};
+Uy = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var My = {};
-My = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var Wy = {};
+Wy = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var Ny = {};
-Ny = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var Gy = {};
+Gy = { 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 Py = {};
-Py = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var Ky = {};
+Ky = { 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 Fy = {};
-Fy = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var qy = {};
+qy = { 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 Iy = {};
-Iy = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var Jy = {};
+Jy = { 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 Ly = {};
-Ly = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var Yy = {};
+Yy = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var Ry = {};
-Ry = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var Xy = {};
+Xy = { 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 zy = {};
-zy = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var Zy = {};
+Zy = { 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 By = {};
-By = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var Qy = {};
+Qy = { 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 Vy = {};
-Vy = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var $y = {};
+$y = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var Hy = {};
-Hy = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var eb = {};
+eb = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var Uy = {};
-Uy = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var tb = {};
+tb = { 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 Wy = {};
-Wy = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var nb = {};
+nb = { 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 Gy = {};
-Gy = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var rb = {};
+rb = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var Ky = {};
-Ky = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var ib = {};
+ib = { 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 qy = {};
-qy = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var ab = {};
+ab = { 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 Jy = {};
-Jy = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var ob = {};
+ob = { 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 Yy = {};
-Yy = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var sb = {};
+sb = { 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 Xy = {};
-Xy = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var cb = {};
+cb = { 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 Zy = {};
-Zy = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var lb = {};
+lb = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var Qy = {};
-Qy = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var ub = {};
+ub = { 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 $y = {};
-$y = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var db = {};
+db = { 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 eb = {};
-eb = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var fb = {};
+fb = { 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 tb = {};
-tb = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var pb = {};
+pb = { 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 nb = {};
-nb = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var mb = {};
+mb = { 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 rb = {};
-rb = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var hb = {};
+hb = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var ib = {};
-ib = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var gb = {};
+gb = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var ab = {};
-ab = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var _b = {};
+_b = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var ob = {};
-ob = {
- "ar-AE": Ey,
- "bg-BG": Dy,
- "cs-CZ": Oy,
- "da-DK": ky,
- "de-DE": Ay,
- "el-GR": jy,
- "en-US": My,
- "es-ES": Ny,
- "et-EE": Py,
- "fi-FI": Fy,
- "fr-FR": Iy,
- "he-IL": Ly,
- "hr-HR": Ry,
- "hu-HU": zy,
- "it-IT": By,
- "ja-JP": Vy,
- "ko-KR": Hy,
- "lt-LT": Uy,
- "lv-LV": Wy,
- "nb-NO": Gy,
- "nl-NL": Ky,
- "pl-PL": qy,
- "pt-BR": Jy,
- "pt-PT": Yy,
- "ro-RO": Xy,
- "ru-RU": Zy,
- "sk-SK": Qy,
- "sl-SI": $y,
- "sr-SP": eb,
- "sv-SE": tb,
- "tr-TR": nb,
- "uk-UA": rb,
- "zh-CN": ib,
- "zh-TW": ab
+var vb = {};
+vb = {
+ "ar-AE": Ry,
+ "bg-BG": zy,
+ "cs-CZ": By,
+ "da-DK": Vy,
+ "de-DE": Hy,
+ "el-GR": Uy,
+ "en-US": Wy,
+ "es-ES": Gy,
+ "et-EE": Ky,
+ "fi-FI": qy,
+ "fr-FR": Jy,
+ "he-IL": Yy,
+ "hr-HR": Xy,
+ "hu-HU": Zy,
+ "it-IT": Qy,
+ "ja-JP": $y,
+ "ko-KR": eb,
+ "lt-LT": tb,
+ "lv-LV": nb,
+ "nb-NO": rb,
+ "nl-NL": ib,
+ "pl-PL": ab,
+ "pt-BR": ob,
+ "pt-PT": sb,
+ "ro-RO": cb,
+ "ru-RU": lb,
+ "sk-SK": ub,
+ "sl-SI": db,
+ "sr-SP": fb,
+ "sv-SE": pb,
+ "tr-TR": mb,
+ "uk-UA": hb,
+ "zh-CN": gb,
+ "zh-TW": _b
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function gte(e) {
- let { onContextMenu: t } = e, n = (0, R.useRef)(!1), { longPressProps: r } = O_({
+function ite(e) {
+ let { onContextMenu: t } = e, n = (0, R.useRef)(!1), { longPressProps: r } = A_({
onLongPressStart() {
n.current = !1;
},
@@ -22639,10 +22639,10 @@ function gte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function _te(e, t, n) {
+function ate(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, R.useEffect)(() => {
- n && n.current && yv.set(n.current, t.close);
+ n && n.current && Tv.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
@@ -22659,11 +22659,11 @@ function _te(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function vte(e) {
+function ote(e) {
return e && e.__esModule ? e.default : e;
}
-function sb(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Eu(), { triggerProps: s, overlayProps: c } = _te({ type: r }, t, n), l = (e, n, r = "first") => {
+function yb(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Eu(), { triggerProps: s, overlayProps: c } = ate({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
}, { keyboardProps: u } = Rp({
@@ -22678,7 +22678,7 @@ function sb(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = tp(vte(ob), "@react-aria/menu"), { longPressProps: f } = O_({
+ }), d = tp(ote(vb), "@react-aria/menu"), { longPressProps: f } = A_({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -22697,7 +22697,7 @@ function sb(e, t, n) {
}
};
delete s.onPress;
- let { contextMenuProps: m } = gte({ onContextMenu(e) {
+ let { contextMenuProps: m } = ite({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -22742,13 +22742,13 @@ function sb(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/utils.mjs
-var cb = /* @__PURE__ */ new WeakMap();
+var bb = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenu.mjs
-function yte(e, t, n) {
+function ste(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = wm(e, { labelable: !0 }), { listProps: c } = D_({
+ let s = wm(e, { labelable: !0 }), { listProps: c } = k_({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -22757,7 +22757,7 @@ function yte(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return cb.set(t, {
+ return bb.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -22774,8 +22774,8 @@ function yte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function bte(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 = cb.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = Gd(), M = () => {
+function cte(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 = bb.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = Gd(), M = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
@@ -22799,7 +22799,7 @@ function bte(e, t, n) {
};
if (C.selectionMode !== "none" && !w && (I["aria-checked"] = D), s) {
let e = Number(k?.index);
- I["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, I["aria-setsize"] = z_(t.collection);
+ I["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, I["aria-setsize"] = V_(t.collection);
}
let te = (0, R.useRef)(!1), ne = (e) => {
f?.(e), te.current = e;
@@ -22809,7 +22809,7 @@ function bte(e, t, n) {
m?.(e), M(), Qd(e, j, k.props.href, k?.props.routerOptions);
let t = re.current?.pointerType === "keyboard" ? re.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);
t = o ?? a ?? t, A && !w && t && A(), re.current = null;
- }, { itemProps: oe, isFocused: se } = k_({
+ }, { itemProps: oe, isFocused: se } = j_({
id: r,
selectionManager: C,
key: i,
@@ -22887,7 +22887,7 @@ function bte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function xte(e) {
+function lte(e) {
let { heading: t, "aria-label": n } = e, r = Eu();
return {
itemProps: { role: "presentation" },
@@ -22904,8 +22904,8 @@ function xte(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function lb(e) {
- let t = yy(e), [n, r] = (0, R.useState)(null), [i, a] = (0, R.useState)([]), o = () => {
+function xb(e) {
+ let t = jy(e), [n, r] = (0, R.useState)(null), [i, a] = (0, R.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -22931,7 +22931,7 @@ function lb(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var Ste = class {
+var ute = 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) => {
@@ -22975,8 +22975,8 @@ var Ste = class {
};
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function Cte(e) {
- let { onExpandedChange: t } = e, [n, r] = rp(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = U_(e), a = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = J_(e, (0, R.useCallback)((e) => new Ste(e, { expandedKeys: n }), [n]), null);
+function dte(e) {
+ let { onExpandedChange: t } = e, [n, r] = rp(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = G_(e), a = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = X_(e, (0, R.useCallback)((e) => new ute(e, { expandedKeys: n }), [n]), null);
return (0, R.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -22984,32 +22984,32 @@ function Cte(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(wte(n, e));
+ r(fte(n, e));
},
setExpandedKeys: r,
- selectionManager: new G_(o, i)
+ selectionManager: new q_(o, i)
};
}
-function wte(e, t) {
+function fte(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 ub = /*#__PURE__*/ (0, R.createContext)(null), db = /*#__PURE__*/ (0, R.createContext)(null), fb = /*#__PURE__*/ (0, R.createContext)(null), pb = /*#__PURE__*/ (0, R.createContext)(null);
-function Tte(e) {
- let t = lb(e), n = (0, R.useRef)(null), { menuTriggerProps: r, menuProps: i } = sb({
+var Sb = /*#__PURE__*/ (0, R.createContext)(null), Cb = /*#__PURE__*/ (0, R.createContext)(null), wb = /*#__PURE__*/ (0, R.createContext)(null), Tb = /*#__PURE__*/ (0, R.createContext)(null);
+function pte(e) {
+ let t = xb(e), n = (0, R.useRef)(null), { menuTriggerProps: r, menuProps: i } = yb({
...e,
type: "menu"
}, t, n), a = (0, R.useRef)(null);
return Kp() ? null : /*#__PURE__*/ R.createElement(Fu, { values: [
- [ub, {
+ [Sb, {
...i,
ref: a
}],
- [vb, t],
- [fb, t],
- [Cy, {
+ [Ab, t],
+ [wb, t],
+ [Fy, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -23017,13 +23017,13 @@ function Tte(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ R.createElement(fte, {
+ ] }, /*#__PURE__*/ R.createElement(ete, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var Ete = /*#__PURE__*/ (0, R.createContext)(null);
+var mte = /*#__PURE__*/ (0, R.createContext)(null);
(class extends op {
static {
this.type = "submenutrigger";
@@ -23037,20 +23037,20 @@ var Ete = /*#__PURE__*/ (0, R.createContext)(null);
return null;
}
});
-var Dte = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- return [e, t] = Ru(e, t, ub), /*#__PURE__*/ R.createElement(Qp, { content: /*#__PURE__*/ R.createElement(um, e) }, (n) => /*#__PURE__*/ R.createElement(Ote, {
+var hte = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ return [e, t] = Ru(e, t, Sb), /*#__PURE__*/ R.createElement(Qp, { content: /*#__PURE__*/ R.createElement(um, e) }, (n) => /*#__PURE__*/ R.createElement(gte, {
props: e,
collection: n,
menuRef: t
}));
});
-function Ote({ props: e, collection: t, menuRef: n }) {
+function gte({ props: e, collection: t, menuRef: n }) {
[e, n] = Ru(e, n, ip);
- let { filter: r, ...i } = e, a = (0, R.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Cte({
+ let { filter: r, ...i } = e, a = (0, R.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = dte({
...e,
collection: a,
children: void 0
- }), s = (0, R.useContext)(fb), { isVirtualized: c, CollectionRoot: l } = (0, R.useContext)(gm), { menuProps: u } = yte({
+ }), s = (0, R.useContext)(wb), { isVirtualized: c, CollectionRoot: l } = (0, R.useContext)(gm), { menuProps: u } = ste({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
@@ -23065,35 +23065,35 @@ function Ote({ props: e, collection: t, menuRef: n }) {
style: { display: "contents" }
}, e.renderEmptyState()));
let p = wm(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(t_, null, /*#__PURE__*/ R.createElement(Uu.div, {
+ return /*#__PURE__*/ R.createElement(r_, null, /*#__PURE__*/ R.createElement(Uu.div, {
...Y(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
}, /*#__PURE__*/ R.createElement(Fu, { values: [
- [db, o],
- [Yg, { elementType: "div" }],
+ [Cb, o],
+ [Zg, { elementType: "div" }],
[fm, {
name: "MenuSection",
- render: mb
+ render: Eb
}],
- [Ete, {
+ [mte, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [gb, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [Ob, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
[ip, null],
[ap, null],
- [pb, o.selectionManager],
- [fb, s ?? lb({})]
- ] }, /*#__PURE__*/ R.createElement(qg, null, /*#__PURE__*/ R.createElement(l, {
+ [Tb, o.selectionManager],
+ [wb, s ?? xb({})]
+ ] }, /*#__PURE__*/ R.createElement(Yg, null, /*#__PURE__*/ R.createElement(l, {
collection: o.collection,
persistedKeys: _m(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var kte = class extends G_ {
+var _te = class extends q_ {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -23113,8 +23113,8 @@ var kte = class extends G_ {
return this.parent.childFocusStrategy;
}
};
-function mb(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, R.useContext)(db), { CollectionBranch: a } = (0, R.useContext)(gm), [o, s] = zu(), { headingProps: c, groupProps: l } = xte({
+function Eb(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, R.useContext)(Cb), { CollectionBranch: a } = (0, R.useContext)(gm), [o, s] = zu(), { headingProps: c, groupProps: l } = lte({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
}), u = Iu({
@@ -23125,25 +23125,25 @@ function mb(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, R.useContext)(pb), f = U_(e), p = e.selectionMode == null ? d : new kte(d, f), m = Lu(gb)?.shouldCloseOnSelect, h = wm(e, { global: !0 });
+ }), d = (0, R.useContext)(Tb), f = G_(e), p = e.selectionMode == null ? d : new _te(d, f), m = Lu(Ob)?.shouldCloseOnSelect, h = wm(e, { global: !0 });
return delete h.id, /*#__PURE__*/ R.createElement(Uu.section, {
...Y(h, u, l),
ref: t
}, /*#__PURE__*/ R.createElement(Fu, { values: [
- [Kg, {
+ [Jg, {
...c,
ref: o
}],
- [pb, p],
- [gb, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [Tb, p],
+ [Ob, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ R.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var hb = /*#__PURE__*/ sm(up, mb), gb = /*#__PURE__*/ (0, R.createContext)(null), _b = /*#__PURE__*/ om(lp, function(e, t, n) {
- [e, t] = Ru(e, t, gb);
- let r = Lu(gb)?.id, i = (0, R.useContext)(db), a = Nu(t), o = (0, R.useContext)(pb), { isVirtualized: s } = (0, R.useContext)(gm), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = bte({
+var Db = /*#__PURE__*/ sm(up, Eb), Ob = /*#__PURE__*/ (0, R.createContext)(null), kb = /*#__PURE__*/ om(lp, function(e, t, n) {
+ [e, t] = Ru(e, t, Ob);
+ let r = Lu(Ob)?.id, i = (0, R.useContext)(Cb), a = Nu(t), o = (0, R.useContext)(Tb), { isVirtualized: s } = (0, R.useContext)(gm), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = cte({
...e,
id: r,
key: n.key,
@@ -23182,13 +23182,13 @@ var hb = /*#__PURE__*/ sm(up, mb), gb = /*#__PURE__*/ (0, R.createContext)(null)
label: l,
description: u
} }],
- [hte, d],
- [Jg, { isSelected: f.isSelected }]
+ [rte, d],
+ [Xg, { isSelected: f.isSelected }]
] }, h.children));
});
om(cp, function(e, t, n) {
- let r = (0, R.useContext)(db), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
- Z_((0, R.useMemo)(() => ({
+ let r = (0, R.useContext)(Cb), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
+ $_((0, R.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -23211,7 +23211,7 @@ om(cp, function(e, t, n) {
width: 0,
height: 0
},
- inert: B_(!0)
+ inert: H_(!0)
}, /*#__PURE__*/ R.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -23229,7 +23229,7 @@ om(cp, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function Ate(e, t) {
+function vte(e, t) {
let { role: n = "dialog" } = e, r = Ou();
r = e["aria-label"] ? void 0 : r;
let i = Ou();
@@ -23245,7 +23245,7 @@ function Ate(e, t) {
clearTimeout(e);
};
}
- }, [t]), vy(), (0, R.useRef)(!1), (0, R.useEffect)(() => {});
+ }, [t]), Ay(), (0, R.useRef)(!1), (0, R.useEffect)(() => {});
let o = e["aria-describedby"] ?? i;
return {
dialogProps: {
@@ -23264,13 +23264,13 @@ function Ate(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var jte = /*#__PURE__*/ (0, R.createContext)(null), vb = /*#__PURE__*/ (0, R.createContext)(null), yb = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+var yte = /*#__PURE__*/ (0, R.createContext)(null), Ab = /*#__PURE__*/ (0, R.createContext)(null), jb = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = Ru(e, t, jte);
- let { dialogProps: r, titleProps: i, contentProps: a } = Ate({
+ [e, t] = Ru(e, t, yte);
+ let { dialogProps: r, titleProps: i, contentProps: a } = vte({
...e,
"aria-labelledby": n
- }, t), o = (0, R.useContext)(vb);
+ }, t), o = (0, R.useContext)(Ab);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
let s = Iu({
defaultClassName: "react-aria-Dialog",
@@ -23304,14 +23304,14 @@ var jte = /*#__PURE__*/ (0, R.createContext)(null), vb = /*#__PURE__*/ (0, R.cre
});
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function Mte(e = {}) {
+function bte(e = {}) {
let { locale: t } = Vf();
return (0, R.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var bb = {};
-bb = {
+var Mb = {};
+Mb = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -23325,8 +23325,8 @@ bb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var xb = {};
-xb = {
+var Nb = {};
+Nb = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -23340,8 +23340,8 @@ xb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var Sb = {};
-Sb = {
+var Pb = {};
+Pb = {
deselectedItem: (e) => `Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,
longPressToSelect: "Dlouhým stisknutím přejdete do režimu výběru.",
select: "Vybrat",
@@ -23355,8 +23355,8 @@ Sb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var Cb = {};
-Cb = {
+var Fb = {};
+Fb = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -23370,8 +23370,8 @@ Cb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var wb = {};
-wb = {
+var Ib = {};
+Ib = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -23385,8 +23385,8 @@ wb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var Tb = {};
-Tb = {
+var Lb = {};
+Lb = {
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: "Επιλογή",
@@ -23400,8 +23400,8 @@ Tb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var Eb = {};
-Eb = {
+var Rb = {};
+Rb = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -23415,8 +23415,8 @@ Eb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var Db = {};
-Db = {
+var zb = {};
+zb = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -23430,8 +23430,8 @@ Db = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var Ob = {};
-Ob = {
+var Bb = {};
+Bb = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -23445,8 +23445,8 @@ Ob = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var kb = {};
-kb = {
+var Vb = {};
+Vb = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -23460,8 +23460,8 @@ kb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var Ab = {};
-Ab = {
+var Hb = {};
+Hb = {
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",
@@ -23475,8 +23475,8 @@ Ab = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var jb = {};
-jb = {
+var Ub = {};
+Ub = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -23490,8 +23490,8 @@ jb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var Mb = {};
-Mb = {
+var Wb = {};
+Wb = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -23505,8 +23505,8 @@ Mb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var Nb = {};
-Nb = {
+var Gb = {};
+Gb = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -23520,8 +23520,8 @@ Nb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var Pb = {};
-Pb = {
+var Kb = {};
+Kb = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -23535,8 +23535,8 @@ Pb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var Fb = {};
-Fb = {
+var qb = {};
+qb = {
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: "選択",
@@ -23550,8 +23550,8 @@ Fb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var Ib = {};
-Ib = {
+var Jb = {};
+Jb = {
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: "선택",
@@ -23565,8 +23565,8 @@ Ib = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var Lb = {};
-Lb = {
+var Yb = {};
+Yb = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -23580,8 +23580,8 @@ Lb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var Rb = {};
-Rb = {
+var Xb = {};
+Xb = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -23595,8 +23595,8 @@ Rb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var zb = {};
-zb = {
+var Zb = {};
+Zb = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -23610,8 +23610,8 @@ zb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var Bb = {};
-Bb = {
+var Qb = {};
+Qb = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -23625,8 +23625,8 @@ Bb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var Vb = {};
-Vb = {
+var $b = {};
+$b = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -23640,8 +23640,8 @@ Vb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var Hb = {};
-Hb = {
+var ex = {};
+ex = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -23655,8 +23655,8 @@ Hb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var Ub = {};
-Ub = {
+var tx = {};
+tx = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -23670,8 +23670,8 @@ Ub = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var Wb = {};
-Wb = {
+var nx = {};
+nx = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -23685,8 +23685,8 @@ Wb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var Gb = {};
-Gb = {
+var rx = {};
+rx = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -23700,8 +23700,8 @@ Gb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var Kb = {};
-Kb = {
+var ix = {};
+ix = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -23715,8 +23715,8 @@ Kb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var qb = {};
-qb = {
+var ax = {};
+ax = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -23730,8 +23730,8 @@ qb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var Jb = {};
-Jb = {
+var ox = {};
+ox = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -23745,8 +23745,8 @@ Jb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var Yb = {};
-Yb = {
+var sx = {};
+sx = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -23760,8 +23760,8 @@ Yb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var Xb = {};
-Xb = {
+var cx = {};
+cx = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -23775,8 +23775,8 @@ Xb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var Zb = {};
-Zb = {
+var lx = {};
+lx = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -23790,8 +23790,8 @@ Zb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var Qb = {};
-Qb = {
+var ux = {};
+ux = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -23805,8 +23805,8 @@ Qb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var $b = {};
-$b = {
+var dx = {};
+dx = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -23820,55 +23820,55 @@ $b = {
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var ex = {};
-ex = {
- "ar-AE": bb,
- "bg-BG": xb,
- "cs-CZ": Sb,
- "da-DK": Cb,
- "de-DE": wb,
- "el-GR": Tb,
- "en-US": Eb,
- "es-ES": Db,
- "et-EE": Ob,
- "fi-FI": kb,
- "fr-FR": Ab,
- "he-IL": jb,
- "hr-HR": Mb,
- "hu-HU": Nb,
- "it-IT": Pb,
- "ja-JP": Fb,
- "ko-KR": Ib,
- "lt-LT": Lb,
- "lv-LV": Rb,
- "nb-NO": zb,
- "nl-NL": Bb,
- "pl-PL": Vb,
- "pt-BR": Hb,
- "pt-PT": Ub,
- "ro-RO": Wb,
- "ru-RU": Gb,
- "sk-SK": Kb,
- "sl-SI": qb,
- "sr-SP": Jb,
- "sv-SE": Yb,
- "tr-TR": Xb,
- "uk-UA": Zb,
- "zh-CN": Qb,
- "zh-TW": $b
+var fx = {};
+fx = {
+ "ar-AE": Mb,
+ "bg-BG": Nb,
+ "cs-CZ": Pb,
+ "da-DK": Fb,
+ "de-DE": Ib,
+ "el-GR": Lb,
+ "en-US": Rb,
+ "es-ES": zb,
+ "et-EE": Bb,
+ "fi-FI": Vb,
+ "fr-FR": Hb,
+ "he-IL": Ub,
+ "hr-HR": Wb,
+ "hu-HU": Gb,
+ "it-IT": Kb,
+ "ja-JP": qb,
+ "ko-KR": Jb,
+ "lt-LT": Yb,
+ "lv-LV": Xb,
+ "nb-NO": Zb,
+ "nl-NL": Qb,
+ "pl-PL": $b,
+ "pt-BR": ex,
+ "pt-PT": tx,
+ "ro-RO": nx,
+ "ru-RU": rx,
+ "sk-SK": ix,
+ "sl-SI": ax,
+ "sr-SP": ox,
+ "sv-SE": sx,
+ "tr-TR": cx,
+ "uk-UA": lx,
+ "zh-CN": ux,
+ "zh-TW": dx
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function Nte(e) {
+function xte(e) {
return e && e.__esModule ? e.default : e;
}
-function Pte(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = tp(Nte(ex), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, R.useRef)(i), o = (0, R.useCallback)(() => {
+function Ste(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = tp(xte(fx), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, R.useRef)(i), o = (0, R.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = tx(i, a.current), o = tx(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = px(i, a.current), o = px(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)) {
@@ -23907,7 +23907,7 @@ function Pte(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function tx(e, t) {
+function px(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);
@@ -23915,13 +23915,13 @@ function tx(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function nx(e, t) {
+function mx(e, t) {
let n = t?.isDisabled, [r, i] = (0, R.useState)(!1);
return cu(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = p_(e.current, { tabbable: !0 });
+ let t = h_(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -23940,11 +23940,11 @@ function nx(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function Fte(e) {
+function Cte(e) {
return e && e.__esModule ? e.default : e;
}
-function Ite(e) {
- let t = tp(Fte(ex), "@react-aria/grid"), n = yf(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+function wte(e) {
+ let t = tp(Cte(fx), "@react-aria/grid"), n = yf(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
return kh((0, R.useMemo)(() => {
let n = e.selectionManager.selectionMode, i = e.selectionManager.selectionBehavior, a;
return r && (a = t.format("longPressToSelect")), i === "replace" && n !== "none" && e.hasItemActions ? a : void 0;
@@ -23958,14 +23958,14 @@ function Ite(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function Lte(e) {
+function Tte(e) {
return e && e.__esModule ? e.default : e;
}
-function Rte(e, t) {
+function Ete(e, t) {
let { key: n } = e, r = t.selectionManager, i = Eu(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": tp(Lte(ex), "@react-aria/grid").format("select"),
+ "aria-label": tp(Tte(fx), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -23973,14 +23973,14 @@ function Rte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function zte(e, t, n) {
- let { overlayProps: r, underlayProps: i } = wv({
+function Dte(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = Iv({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- return Ov({ isDisabled: !t.isOpen }), vy(), (0, R.useEffect)(() => {
- if (t.isOpen && n.current) return iv([n.current], { shouldUseInert: !0 });
+ return Bv({ isDisabled: !t.isOpen }), Ay(), (0, R.useEffect)(() => {
+ if (t.isOpen && n.current) return ov([n.current], { shouldUseInert: !0 });
}, [t.isOpen, n]), {
modalProps: Y(r),
underlayProps: i
@@ -23988,19 +23988,19 @@ function zte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useViewportSize.mjs
-var rx = typeof document < "u" && window.visualViewport;
-function Bte() {
+var hx = typeof document < "u" && window.visualViewport;
+function Ote() {
let e = bu(), [t, n] = (0, R.useState)(() => e ? {
width: 0,
height: 0
- } : ix());
+ } : gx());
return (0, R.useEffect)(() => {
let e = (e) => {
n((t) => e.width === t.width && e.height === t.height ? t : e);
}, t = () => {
- rx && rx.scale > 1 || e(ix());
+ hx && hx.scale > 1 || e(gx());
}, r, i = (t) => {
- rx && rx.scale > 1 || Ef(X(t)) && (r = requestAnimationFrame(() => {
+ hx && hx.scale > 1 || Ef(X(t)) && (r = requestAnimationFrame(() => {
let t = rd();
(!t || !Ef(t)) && e({
width: document.documentElement.clientWidth,
@@ -24008,26 +24008,26 @@ function Bte() {
});
}));
};
- return e(ix()), Id() && Rd() && window.addEventListener("blur", i, !0), rx ? rx.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
- cancelAnimationFrame(r), Id() && Rd() && window.removeEventListener("blur", i, !0), rx ? rx.removeEventListener("resize", t) : window.removeEventListener("resize", t);
+ return e(gx()), Id() && Rd() && window.addEventListener("blur", i, !0), hx ? hx.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
+ cancelAnimationFrame(r), Id() && Rd() && window.removeEventListener("blur", i, !0), hx ? hx.removeEventListener("resize", t) : window.removeEventListener("resize", t);
};
}, []), t;
}
-function ix() {
+function gx() {
return {
- width: rx ? Math.min(rx.width * rx.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: rx ? rx.height * rx.scale : document.documentElement.clientHeight
+ width: hx ? Math.min(hx.width * hx.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: hx ? hx.height * hx.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var Vte = /*#__PURE__*/ (0, R.createContext)(null), ax = /*#__PURE__*/ (0, R.createContext)(null), Hte = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- if ((0, R.useContext)(ax)) return /*#__PURE__*/ R.createElement(sx, {
+var kte = /*#__PURE__*/ (0, R.createContext)(null), _x = /*#__PURE__*/ (0, R.createContext)(null), Ate = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ if ((0, R.useContext)(_x)) return /*#__PURE__*/ R.createElement(yx, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ R.createElement(ox, {
+ return /*#__PURE__*/ R.createElement(vx, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -24037,15 +24037,15 @@ var Vte = /*#__PURE__*/ (0, R.createContext)(null), ax = /*#__PURE__*/ (0, R.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ R.createElement(sx, {
+ }, /*#__PURE__*/ R.createElement(yx, {
...f,
modalRef: t
}, s));
});
-function Ute(e, t) {
- [e, t] = Ru(e, t, Vte);
- let n = (0, R.useContext)(vb), r = yy(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Nu(t), o = (0, R.useRef)(null), s = xy(a, i.isOpen), c = xy(o, i.isOpen), l = s || c || e.isExiting || !1, u = bu();
- return !i.isOpen && !l || u ? null : /*#__PURE__*/ R.createElement(Wte, {
+function jte(e, t) {
+ [e, t] = Ru(e, t, kte);
+ let n = (0, R.useContext)(Ab), r = jy(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Nu(t), o = (0, R.useRef)(null), s = Ny(a, i.isOpen), c = Ny(o, i.isOpen), l = s || c || e.isExiting || !1, u = bu();
+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ R.createElement(Mte, {
...e,
state: i,
isExiting: l,
@@ -24053,9 +24053,9 @@ function Ute(e, t) {
modalRef: o
});
}
-var ox = /*#__PURE__*/ (0, R.forwardRef)(Ute);
-function Wte({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = zte(t, r, n), o = by(t.overlayRef) || t.isEntering || !1, s = Iu({
+var vx = /*#__PURE__*/ (0, R.forwardRef)(jte);
+function Mte({ UNSTABLE_portalContainer: e, ...t }) {
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Dte(t, r, n), o = My(t.overlayRef) || t.isEntering || !1, s = Iu({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -24063,7 +24063,7 @@ function Wte({ UNSTABLE_portalContainer: e, ...t }) {
isExiting: t.isExiting,
state: r
}
- }), c = Bte(), l, u;
+ }), c = Ote(), l, u;
if (typeof document < "u") {
let e = xh(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;
@@ -24075,7 +24075,7 @@ function Wte({ UNSTABLE_portalContainer: e, ...t }) {
"--page-width": l === void 0 ? void 0 : l + "px",
"--page-height": u === void 0 ? void 0 : u + "px"
};
- return /*#__PURE__*/ R.createElement(_y, {
+ return /*#__PURE__*/ R.createElement(ky, {
isExiting: t.isExiting,
portalContainer: e
}, /*#__PURE__*/ R.createElement(Uu.div, {
@@ -24085,15 +24085,15 @@ function Wte({ UNSTABLE_portalContainer: e, ...t }) {
ref: t.overlayRef,
"data-entering": o || void 0,
"data-exiting": t.isExiting || void 0
- }, /*#__PURE__*/ R.createElement(Fu, { values: [[ax, {
+ }, /*#__PURE__*/ R.createElement(Fu, { values: [[_x, {
modalProps: i,
modalRef: n,
isExiting: t.isExiting,
isDismissable: t.isDismissable
- }], [vb, r]] }, s.children)));
+ }], [Ab, r]] }, s.children)));
}
-function sx(e) {
- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, R.useContext)(ax), a = (0, R.useContext)(vb), o = Nu((0, R.useMemo)(() => ku(e.modalRef, n), [e.modalRef, n])), s = by(o), c = Iu({
+function yx(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, R.useContext)(_x), a = (0, R.useContext)(Ab), o = Nu((0, R.useMemo)(() => ku(e.modalRef, n), [e.modalRef, n])), s = My(o), c = Iu({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -24108,14 +24108,14 @@ function sx(e) {
ref: o,
"data-entering": s || void 0,
"data-exiting": r || void 0
- }, i && /*#__PURE__*/ R.createElement(fy, { onDismiss: a.close }), c.children);
+ }, i && /*#__PURE__*/ R.createElement(wy, { onDismiss: a.close }), c.children);
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var cx = /* @__PURE__ */ new WeakMap();
+var bx = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function Gte(e, t, n) {
+function Nte(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: _ } = Bm({
@@ -24138,7 +24138,7 @@ function Gte(e, t, n) {
}
}), { focusableProps: b } = Hp(Y(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = Y(g, b), S = wm(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 } = cx.get(t);
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = bx.get(t);
Jh(n, t.defaultSelectedValue, t.setSelectedValue), Yh({ validationBehavior: O }, t, n);
let k = Qh();
return {
@@ -24172,7 +24172,7 @@ function Gte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function Kte(e, t) {
+function Pte(e, t) {
let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Vf(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = qh({
...e,
labelElementType: "span",
@@ -24186,7 +24186,7 @@ function Kte(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = p_(n.currentTarget, {
+ let r = h_(n.currentTarget, {
from: X(n),
accept: (e) => e instanceof qu(e).HTMLInputElement && e.type === "radio"
}), i;
@@ -24201,7 +24201,7 @@ function Kte(e, t) {
},
allowRepeats: !0
}), x = Eu(n);
- return cx.set(t, {
+ return bx.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -24230,9 +24230,9 @@ function Kte(e, t) {
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var qte = Math.round(Math.random() * 1e10), Jte = 0;
-function Yte(e) {
- let t = (0, R.useMemo)(() => e.name || `radio-group-${qte}-${++Jte}`, [e.name]), [n, r] = rp(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, R.useState)(n), [a, o] = (0, R.useState)(null), s = zh({
+var Fte = Math.round(Math.random() * 1e10), Ite = 0;
+function Lte(e) {
+ let t = (0, R.useMemo)(() => e.name || `radio-group-${Fte}-${++Ite}`, [e.name]), [n, r] = rp(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, R.useState)(n), [a, o] = (0, R.useState)(null), s = zh({
...e,
value: n
}), c = (t) => {
@@ -24255,12 +24255,12 @@ function Yte(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Xte = /*#__PURE__*/ (0, R.createContext)(null), Zte = /*#__PURE__*/ (0, R.createContext)(null), lx = /*#__PURE__*/ (0, R.createContext)(null), ux = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = Ru(e, t, Xte);
- let { validationBehavior: n } = Lu(Gh) || {}, r = e.validationBehavior ?? n ?? "native", i = Yte({
+var Rte = /*#__PURE__*/ (0, R.createContext)(null), zte = /*#__PURE__*/ (0, R.createContext)(null), xx = /*#__PURE__*/ (0, R.createContext)(null), Sx = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = Ru(e, t, Rte);
+ let { validationBehavior: n } = Lu(Gh) || {}, r = e.validationBehavior ?? n ?? "native", i = Lte({
...e,
validationBehavior: r
- }), [a, o] = zu(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Kte({
+ }), [a, o] = zu(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Pte({
...e,
label: o,
validationBehavior: r
@@ -24286,7 +24286,7 @@ var Xte = /*#__PURE__*/ (0, R.createContext)(null), Zte = /*#__PURE__*/ (0, R.cr
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
}, /*#__PURE__*/ R.createElement(Fu, { values: [
- [lx, i],
+ [xx, i],
[nh, {
...c,
ref: a,
@@ -24297,24 +24297,24 @@ var Xte = /*#__PURE__*/ (0, R.createContext)(null), Zte = /*#__PURE__*/ (0, R.cr
errorMessage: u
} }],
[Nh, d]
- ] }, /*#__PURE__*/ R.createElement(qg, null, f.children)));
-}), dx = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ ] }, /*#__PURE__*/ R.createElement(Yg, null, f.children)));
+}), Cx = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Ru(r, t, Zte);
- let i = R.useContext(lx), a = Nu((0, R.useMemo)(() => ku(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Gte({
+ [e, t] = Ru(r, t, zte);
+ let i = R.useContext(xx), a = Nu((0, R.useMemo)(() => ku(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Nte({
...Bu(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ R.createElement(fx.Provider, { value: {
+ return /*#__PURE__*/ R.createElement(wx.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ R.createElement(Qte, {
+ } }, /*#__PURE__*/ R.createElement(Bte, {
...e,
ref: t
}));
-}), fx = /*#__PURE__*/ (0, R.createContext)(null), Qte = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, R.useContext)(fx), l = R.useContext(lx), { isFocused: u, isFocusVisible: d, focusProps: f } = Ym(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = th({
+}), wx = /*#__PURE__*/ (0, R.createContext)(null), Bte = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, R.useContext)(wx), l = R.useContext(xx), { isFocused: u, isFocusVisible: d, focusProps: f } = Ym(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = th({
...e,
isDisabled: p
}), g = Iu({
@@ -24348,18 +24348,18 @@ var Xte = /*#__PURE__*/ (0, R.createContext)(null), Zte = /*#__PURE__*/ (0, R.cr
...Y(r, f),
ref: c
})), g.children);
-}), px = /* @__PURE__ */ new WeakMap();
-function $te(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = E_({
+}), Tx = /* @__PURE__ */ new WeakMap();
+function Vte(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = O_({
usage: "search",
sensitivity: "base"
- }), u = (0, R.useMemo)(() => r || new w_(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, R.useMemo)(() => r || new E_(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = sb({
+ ]), { menuTriggerProps: d, menuProps: f } = yb({
isDisabled: i,
type: "listbox"
}, t, n), { keyboardProps: p } = Rp({
@@ -24378,7 +24378,7 @@ function $te(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = b_({
+ }), { typeSelectProps: m } = S_({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
@@ -24392,7 +24392,7 @@ function $te(e, t, n) {
});
t.selectionManager.selectionMode === "multiple" && (m = {});
let S = wm(e, { labelable: !0 }), C = Y(m, d, y), w = Eu();
- return px.set(t, {
+ return Tx.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -24453,8 +24453,8 @@ function $te(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function ene(e, t, n) {
- let r = px.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = jh({ style: {
+function Hte(e, t, n) {
+ let r = Tx.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = jh({ style: {
position: "fixed",
top: 0,
left: 0
@@ -24489,8 +24489,8 @@ function ene(e, t, n) {
}
};
}
-function tne(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, R.useRef)(null), c = (0, R.useRef)(null), { containerProps: l, selectProps: u } = ene({
+function Ute(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, R.useRef)(null), c = (0, R.useRef)(null), { containerProps: l, selectProps: u } = Hte({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -24514,7 +24514,7 @@ function tne(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = px.get(t) || {};
+ let { validationBehavior: e } = Tx.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -24545,8 +24545,8 @@ function tne(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function nne(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = yy(e), [i, a] = (0, R.useState)(null), o = (0, R.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function Wte(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = jy(e), [i, a] = (0, R.useState)(null), o = (0, R.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
@@ -24562,12 +24562,12 @@ function nne(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = Y_({
+ }, d = Z_({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, R.useMemo)(() => rne(l), [l]),
+ selectedKeys: (0, R.useMemo)(() => Gte(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -24604,16 +24604,16 @@ function nne(e) {
setFocused: g
};
}
-function rne(e) {
+function Gte(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 ine(e) {
+function Kte(e) {
return e && e.__esModule ? e.default : e;
}
-var mx = /*#__PURE__*/ (0, R.createContext)(null), hx = /*#__PURE__*/ (0, R.createContext)(null), ane = /*#__PURE__*/ Gp(function(e, t) {
- [e, t] = Ru(e, t, mx);
+var Ex = /*#__PURE__*/ (0, R.createContext)(null), Dx = /*#__PURE__*/ (0, R.createContext)(null), qte = /*#__PURE__*/ Gp(function(e, t) {
+ [e, t] = Ru(e, t, Ex);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, R.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -24628,23 +24628,23 @@ var mx = /*#__PURE__*/ (0, R.createContext)(null), hx = /*#__PURE__*/ (0, R.crea
i,
a
]);
- return /*#__PURE__*/ R.createElement(Qp, { content: o }, (n) => /*#__PURE__*/ R.createElement(sne, {
+ return /*#__PURE__*/ R.createElement(Qp, { content: o }, (n) => /*#__PURE__*/ R.createElement(Yte, {
props: e,
collection: n,
selectRef: t
}));
-}), one = [
+}), Jte = [
nh,
fh,
vh
];
-function sne({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = Lu(Gh) || {}, i = e.validationBehavior ?? r ?? "native", a = nne({
+function Yte({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = Lu(Gh) || {}, i = e.validationBehavior ?? r ?? "native", a = Wte({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = Ym({ within: !0 }), c = (0, R.useRef)(null), [l, u] = zu(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = $te({
+ }), { isFocusVisible: o, focusProps: s } = Ym({ within: !0 }), c = (0, R.useRef)(null), [l, u] = zu(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Vte({
...Bu(e),
label: u,
validationBehavior: i
@@ -24670,9 +24670,9 @@ function sne({ props: e, selectRef: t, collection: n }) {
delete x.id;
let S = (0, R.useRef)(null);
return /*#__PURE__*/ R.createElement(Fu, { values: [
- [mx, e],
- [hx, a],
- [gx, p],
+ [Ex, e],
+ [Dx, a],
+ [Ox, p],
[nh, {
...d,
ref: l,
@@ -24684,20 +24684,20 @@ function sne({ props: e, selectRef: t, collection: n }) {
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [vb, a],
- [Cy, {
+ [Ab, a],
+ [Fy, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: one
+ clearContexts: Jte
}],
- [Q_, {
+ [ev, {
...m,
ref: S
}],
- [$_, a],
+ [tv, a],
[vh, { slots: {
description: h,
errorMessage: g
@@ -24713,14 +24713,14 @@ function sne({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ R.createElement(tne, {
+ }, b.children, /*#__PURE__*/ R.createElement(Ute, {
..._,
autoComplete: e.autoComplete
})));
}
-var gx = /*#__PURE__*/ (0, R.createContext)(null), cne = /*#__PURE__*/ Gp(function(e, t) {
- [e, t] = Ru(e, t, gx);
- let n = (0, R.useContext)(hx), { placeholder: r } = Lu(mx), i = n.selectedItems.map((e) => {
+var Ox = /*#__PURE__*/ (0, R.createContext)(null), Xte = /*#__PURE__*/ Gp(function(e, t) {
+ [e, t] = Ru(e, t, Ox);
+ let n = (0, R.useContext)(Dx), { placeholder: r } = Lu(Ex), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -24732,7 +24732,7 @@ var gx = /*#__PURE__*/ (0, R.createContext)(null), cne = /*#__PURE__*/ Gp(functi
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = Mte(), o = (0, R.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, R.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = bte(), o = (0, R.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, R.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -24747,7 +24747,7 @@ var gx = /*#__PURE__*/ (0, R.createContext)(null), cne = /*#__PURE__*/ Gp(functi
a,
o,
i
- ]), u = tp(ine(Vg), "react-aria-components"), d = Iu({
+ ]), u = tp(Kte(Ug), "react-aria-components"), d = Iu({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -24768,7 +24768,7 @@ var gx = /*#__PURE__*/ (0, R.createContext)(null), cne = /*#__PURE__*/ Gp(functi
});
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function lne(e, t, n) {
+function Zte(e, t, n) {
let { labelProps: r, inputProps: i, isSelected: a, ...o } = $h(e, t, n);
return {
labelProps: r,
@@ -24781,23 +24781,23 @@ function lne(e, t, n) {
...o
};
}
-for (var une = /*#__PURE__*/ (0, R.createContext)(null), _x = /*#__PURE__*/ (0, R.createContext)(null), dne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+for (var Qte = /*#__PURE__*/ (0, R.createContext)(null), kx = /*#__PURE__*/ (0, R.createContext)(null), $te = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Ru(r, t, une);
- let i = Nu((0, R.useMemo)(() => ku(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = tg(e), o = lne({
+ [e, t] = Ru(r, t, Qte);
+ let i = Nu((0, R.useMemo)(() => ku(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = tg(e), o = Zte({
...Bu(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ R.createElement(Fu, { values: [[_x, a], [vx, {
+ return /*#__PURE__*/ R.createElement(Fu, { values: [[kx, a], [Ax, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ R.createElement(fne, {
+ }]] }, /*#__PURE__*/ R.createElement(ene, {
...e,
ref: t
}));
-}), vx = /*#__PURE__*/ (0, R.createContext)(null), fne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, R.useContext)(vx), { isFocused: f, isFocusVisible: p, focusProps: m } = Ym(), h = a || o, g = (0, R.useContext)(_x), { hoverProps: _, isHovered: v } = th({
+}), Ax = /*#__PURE__*/ (0, R.createContext)(null), ene = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, R.useContext)(Ax), { isFocused: f, isFocusVisible: p, focusProps: m } = Ym(), h = a || o, g = (0, R.useContext)(kx), { hoverProps: _, isHovered: v } = th({
...e,
isDisabled: h
}), y = Iu({
@@ -24833,7 +24833,7 @@ for (var une = /*#__PURE__*/ (0, R.createContext)(null), _x = /*#__PURE__*/ (0,
...Y(r, m),
ref: l
})), y.children);
-}), yx = 10, bx = 5, pne = class {
+}), jx = 10, Mx = 5, tne = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -24843,7 +24843,7 @@ for (var une = /*#__PURE__*/ (0, R.createContext)(null), _x = /*#__PURE__*/ (0,
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > bx && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > yx && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > Mx && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > jx && (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);
@@ -24922,11 +24922,11 @@ for (var une = /*#__PURE__*/ (0, R.createContext)(null), _x = /*#__PURE__*/ (0,
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > bx && i) {
+ if (Math.abs(r - c.lastSwitchY) > Mx && 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 > yx && a) {
+ if (l > jx && 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;
}
@@ -24941,7 +24941,7 @@ for (var une = /*#__PURE__*/ (0, R.createContext)(null), _x = /*#__PURE__*/ (0,
boundaryContext: null
};
}
-}, mne = class {
+}, nne = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -25011,8 +25011,8 @@ for (var une = /*#__PURE__*/ (0, R.createContext)(null), _x = /*#__PURE__*/ (0,
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, xx = "row-header-column-" + Math.random().toString(36).slice(2), Sx = "row-header-column-" + Math.random().toString(36).slice(2); xx === Sx;) Sx = "row-header-column-" + Math.random().toString(36).slice(2);
-function Cx(e, t) {
+}, Nx = "row-header-column-" + Math.random().toString(36).slice(2), Px = "row-header-column-" + Math.random().toString(36).slice(2); Nx === Px;) Px = "row-header-column-" + Math.random().toString(36).slice(2);
+function Fx(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -25096,13 +25096,13 @@ function Cx(e, t) {
textValue: ""
}));
}
-var hne = class extends mne {
+var rne = class extends nne {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: xx,
+ key: Nx,
value: null,
textValue: "",
level: 0,
@@ -25117,7 +25117,7 @@ var hne = class extends mne {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: Sx,
+ key: Px,
value: null,
textValue: "",
level: 0,
@@ -25144,7 +25144,7 @@ var hne = class extends mne {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = Cx(s, a);
+ let l = Fx(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -25170,10 +25170,10 @@ var hne = class extends mne {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return N_(this.body.childNodes)?.key ?? null;
+ return F_(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return F_(this.body.childNodes)?.key ?? null;
+ return L_(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -25205,19 +25205,19 @@ var hne = class extends mne {
};
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function gne(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || U_(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function ine(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || G_(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = M_(n, t);
- e = r === "last" ? F_(i)?.key ?? null : N_(i)?.key ?? null;
+ let i = P_(n, t);
+ e = r === "last" ? L_(i)?.key ?? null : F_(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, R.useMemo)(() => new G_(t, r), [t, r]), s = (0, R.useRef)(null);
+ let o = (0, R.useMemo)(() => new q_(t, r), [t, r]), s = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
if (r.focusedKey != null && s.current && !t.getItem(r.focusedKey)) {
let e = s.current.getItem(r.focusedKey), n = e?.parentKey != null && (e.type === "cell" || e.type === "rowheader" || e.type === "column") ? s.current.getItem(e.parentKey) : e;
@@ -25237,7 +25237,7 @@ function gne(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...M_(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...P_(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);
}
@@ -25256,11 +25256,11 @@ function gne(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var _ne = {
+var ane = {
ascending: "descending",
descending: "ascending"
};
-function vne(e) {
+function one(e) {
let [t, n] = (0, R.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, R.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -25271,7 +25271,7 @@ function vne(e) {
i,
r,
a
- ]), c = J_(e, (0, R.useCallback)((e) => new hne(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = gne({
+ ]), c = X_(e, (0, R.useCallback)((e) => new rne(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = ine({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
@@ -25287,7 +25287,7 @@ function vne(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? _ne[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? ane[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -25300,7 +25300,7 @@ function vne(e) {
treeColumn: o
};
}
-function yne(e, t) {
+function sne(e, t) {
let n = (0, R.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -25310,10 +25310,10 @@ function yne(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var wx = class {
+var Ix = 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 bne(e.layout) : new C_(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new cne(e.layout) : new T_(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -25349,7 +25349,7 @@ var wx = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of M_(n, this.collection)) {
+ for (let e of P_(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -25383,13 +25383,13 @@ var wx = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = M_(t, this.collection);
- return (this.direction === "rtl" ? F_(e)?.key : N_(e)?.key) ?? null;
+ let e = P_(t, this.collection);
+ return (this.direction === "rtl" ? L_(e)?.key : F_(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = M_(n, this.collection), i = (this.direction === "rtl" ? P_(r, t.index - 1) : P_(r, t.index + 1)) ?? null;
+ let r = P_(n, this.collection), i = (this.direction === "rtl" ? I_(r, t.index - 1) : I_(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;
@@ -25398,13 +25398,13 @@ var wx = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = M_(t, this.collection);
- return (this.direction === "rtl" ? N_(e)?.key : F_(e)?.key) ?? null;
+ let e = P_(t, this.collection);
+ return (this.direction === "rtl" ? F_(e)?.key : L_(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = M_(n, this.collection), i = (this.direction === "rtl" ? P_(r, t.index + 1) : P_(r, t.index - 1)) ?? null;
+ let r = P_(n, this.collection), i = (this.direction === "rtl" ? I_(r, t.index + 1) : I_(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;
@@ -25415,13 +25415,13 @@ var wx = 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 ? N_(M_(e, this.collection))?.key ?? null : null;
+ return e ? F_(P_(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 = N_(M_(e, this.collection))?.key ?? null;
+ n = F_(P_(e, this.collection))?.key ?? null;
}
return n;
}
@@ -25431,13 +25431,13 @@ var wx = 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 ? F_(M_(e, this.collection))?.key ?? null : null;
+ return e ? L_(P_(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 = F_(M_(e, this.collection))?.key ?? null;
+ n = L_(P_(e, this.collection))?.key ?? null;
}
return n;
}
@@ -25473,13 +25473,13 @@ var wx = 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" ? N_(M_(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? F_(P_(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;
}
-}, bne = class {
+}, cne = class {
constructor(e) {
this.layout = e;
}
@@ -25492,16 +25492,16 @@ var wx = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, Tx = /* @__PURE__ */ new WeakMap();
+}, Lx = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function xne(e, t, n) {
+function lne(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 = E_({
+ let h = O_({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Vf(), _ = t.selectionManager.disabledBehavior, v = (0, R.useMemo)(() => a || new wx({
+ }), { direction: g } = Vf(), _ = t.selectionManager.disabledBehavior, v = (0, R.useMemo)(() => a || new Ix({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -25518,7 +25518,7 @@ function xne(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = S_({
+ ]), { collectionProps: y } = w_({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -25527,7 +25527,7 @@ function xne(e, t, n) {
disallowTypeAhead: i,
escapeKeyBehavior: d
}), b = Eu(e.id);
- Tx.set(t, {
+ Lx.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -25536,7 +25536,7 @@ function xne(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = Ite({
+ let x = wte({
selectionManager: m,
hasItemActions: !!(l || u)
}), S = wm(e, { labelable: !0 }), C = (0, R.useCallback)((e) => {
@@ -25548,36 +25548,36 @@ function xne(e, t, n) {
}, [m]), w = (0, R.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = nx(n, { isDisabled: t.collection.size !== 0 }), E = Y(S, {
+ }), [C, y.onBlur]), T = mx(n, { isDisabled: t.collection.size !== 0 }), E = Y(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), Pte({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), Ste({ getRowText: c }, t), { gridProps: E };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var Ex = /* @__PURE__ */ new WeakMap();
-function Dx(e) {
+var Rx = /* @__PURE__ */ new WeakMap();
+function zx(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Sne(e, t) {
- let n = Ex.get(e);
+function une(e, t) {
+ let n = Rx.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${Dx(t)}`;
+ return `${n}-${zx(t)}`;
}
-function Ox(e, t, n) {
- let r = Ex.get(e);
+function Bx(e, t, n) {
+ let r = Rx.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${Dx(t)}-${Dx(n)}`;
+ return `${r}-${zx(t)}-${zx(n)}`;
}
-function kx(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => Ox(e, t, n)).join(" ");
+function Vx(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => Bx(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var Ax = {};
-Ax = {
+var Hx = {};
+Hx = {
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: "طي",
@@ -25592,8 +25592,8 @@ Ax = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var jx = {};
-jx = {
+var Ux = {};
+Ux = {
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: "Свиване",
@@ -25608,8 +25608,8 @@ jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var Mx = {};
-Mx = {
+var Wx = {};
+Wx = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -25624,8 +25624,8 @@ Mx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var Nx = {};
-Nx = {
+var Gx = {};
+Gx = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -25640,8 +25640,8 @@ Nx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var Px = {};
-Px = {
+var Kx = {};
+Kx = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -25656,8 +25656,8 @@ Px = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var Fx = {};
-Fx = {
+var qx = {};
+qx = {
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: "Σύμπτυξη",
@@ -25672,8 +25672,8 @@ Fx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var Ix = {};
-Ix = {
+var Jx = {};
+Jx = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -25688,8 +25688,8 @@ Ix = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var Lx = {};
-Lx = {
+var Yx = {};
+Yx = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -25704,8 +25704,8 @@ Lx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var Rx = {};
-Rx = {
+var Xx = {};
+Xx = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -25720,8 +25720,8 @@ Rx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var zx = {};
-zx = {
+var Zx = {};
+Zx = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -25736,8 +25736,8 @@ zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var Bx = {};
-Bx = {
+var Qx = {};
+Qx = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -25752,8 +25752,8 @@ Bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var Vx = {};
-Vx = {
+var $x = {};
+$x = {
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: "כווץ",
@@ -25768,8 +25768,8 @@ Vx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var Hx = {};
-Hx = {
+var eS = {};
+eS = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -25784,8 +25784,8 @@ Hx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var Ux = {};
-Ux = {
+var tS = {};
+tS = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -25800,8 +25800,8 @@ Ux = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var Wx = {};
-Wx = {
+var nS = {};
+nS = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -25816,8 +25816,8 @@ Wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var Gx = {};
-Gx = {
+var rS = {};
+rS = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -25832,8 +25832,8 @@ Gx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var Kx = {};
-Kx = {
+var iS = {};
+iS = {
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: "접기",
@@ -25848,8 +25848,8 @@ Kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var qx = {};
-qx = {
+var aS = {};
+aS = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -25864,8 +25864,8 @@ qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var Jx = {};
-Jx = {
+var oS = {};
+oS = {
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",
@@ -25880,8 +25880,8 @@ Jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var Yx = {};
-Yx = {
+var sS = {};
+sS = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -25896,8 +25896,8 @@ Yx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var Xx = {};
-Xx = {
+var cS = {};
+cS = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -25912,8 +25912,8 @@ Xx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var Zx = {};
-Zx = {
+var lS = {};
+lS = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -25928,8 +25928,8 @@ Zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var Qx = {};
-Qx = {
+var uS = {};
+uS = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -25944,8 +25944,8 @@ Qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var $x = {};
-$x = {
+var dS = {};
+dS = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -25960,8 +25960,8 @@ $x = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var eS = {};
-eS = {
+var fS = {};
+fS = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -25976,8 +25976,8 @@ eS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var tS = {};
-tS = {
+var pS = {};
+pS = {
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: "Свернуть",
@@ -25992,8 +25992,8 @@ tS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var nS = {};
-nS = {
+var mS = {};
+mS = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -26008,8 +26008,8 @@ nS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var rS = {};
-rS = {
+var hS = {};
+hS = {
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",
@@ -26024,8 +26024,8 @@ rS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var iS = {};
-iS = {
+var gS = {};
+gS = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -26040,8 +26040,8 @@ iS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var aS = {};
-aS = {
+var _S = {};
+_S = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -26056,8 +26056,8 @@ aS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var oS = {};
-oS = {
+var vS = {};
+vS = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -26072,8 +26072,8 @@ oS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var sS = {};
-sS = {
+var yS = {};
+yS = {
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: "Згорнути",
@@ -26088,8 +26088,8 @@ sS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var cS = {};
-cS = {
+var bS = {};
+bS = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -26104,8 +26104,8 @@ cS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var lS = {};
-lS = {
+var xS = {};
+xS = {
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: "收合",
@@ -26120,46 +26120,46 @@ lS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var uS = {};
-uS = {
- "ar-AE": Ax,
- "bg-BG": jx,
- "cs-CZ": Mx,
- "da-DK": Nx,
- "de-DE": Px,
- "el-GR": Fx,
- "en-US": Ix,
- "es-ES": Lx,
- "et-EE": Rx,
- "fi-FI": zx,
- "fr-FR": Bx,
- "he-IL": Vx,
- "hr-HR": Hx,
- "hu-HU": Ux,
- "it-IT": Wx,
- "ja-JP": Gx,
- "ko-KR": Kx,
- "lt-LT": qx,
- "lv-LV": Jx,
- "nb-NO": Yx,
- "nl-NL": Xx,
- "pl-PL": Zx,
- "pt-BR": Qx,
- "pt-PT": $x,
- "ro-RO": eS,
- "ru-RU": tS,
- "sk-SK": nS,
- "sl-SI": rS,
- "sr-SP": iS,
- "sv-SE": aS,
- "tr-TR": oS,
- "uk-UA": sS,
- "zh-CN": cS,
- "zh-TW": lS
+var SS = {};
+SS = {
+ "ar-AE": Hx,
+ "bg-BG": Ux,
+ "cs-CZ": Wx,
+ "da-DK": Gx,
+ "de-DE": Kx,
+ "el-GR": qx,
+ "en-US": Jx,
+ "es-ES": Yx,
+ "et-EE": Xx,
+ "fi-FI": Zx,
+ "fr-FR": Qx,
+ "he-IL": $x,
+ "hr-HR": eS,
+ "hu-HU": tS,
+ "it-IT": nS,
+ "ja-JP": rS,
+ "ko-KR": iS,
+ "lt-LT": aS,
+ "lv-LV": oS,
+ "nb-NO": sS,
+ "nl-NL": cS,
+ "pl-PL": lS,
+ "pt-BR": uS,
+ "pt-PT": dS,
+ "ro-RO": fS,
+ "ru-RU": pS,
+ "sk-SK": mS,
+ "sl-SI": hS,
+ "sr-SP": gS,
+ "sv-SE": _S,
+ "tr-TR": vS,
+ "uk-UA": yS,
+ "zh-CN": bS,
+ "zh-TW": xS
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var Cne = class extends wx {
+var dne = class extends Ix {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -26167,7 +26167,7 @@ var Cne = class extends wx {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = N_(M_(n, this.collection));
+ let e = F_(P_(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);
@@ -26188,13 +26188,13 @@ var Cne = class extends wx {
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 M_(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of P_(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 = [...M_(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...P_(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -26223,7 +26223,7 @@ var Cne = class extends wx {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of M_(o, this.collection)) {
+ for (let r of P_(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);
@@ -26237,14 +26237,14 @@ var Cne = class extends wx {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function wne(e) {
+function fne(e) {
return e && e.__esModule ? e.default : e;
}
-function Tne(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = E_({
+function pne(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = O_({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Vf(), l = t.selectionManager.disabledBehavior, u = (0, R.useMemo)(() => r || new Cne({
+ }), { direction: c } = Vf(), l = t.selectionManager.disabledBehavior, u = (0, R.useMemo)(() => r || new dne({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -26264,14 +26264,14 @@ function Tne(e, t, n) {
a,
o
]), d = Eu(e.id);
- Ex.set(t, d);
- let { gridProps: f } = xne({
+ Rx.set(t, d);
+ let { gridProps: f } = lne({
...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 = tp(wne(uS), "@react-aria/table"), g = (0, R.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = tp(fne(SS), "@react-aria/table"), g = (0, R.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
@@ -26285,13 +26285,13 @@ function Tne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function dS(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Vf(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Tx.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, R.useRef)(null), h = () => {
+function CS(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Vf(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Lx.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, R.useRef)(null), h = () => {
if (n.current) {
- let e = p_(n.current);
+ let e = h_(n.current);
if (p === "child") {
if (ad(n.current) && n.current !== rd(Ku(n.current))) return;
- let r = t.selectionManager.childFocusStrategy === "last" ? fS(e) : e.firstChild();
+ let r = t.selectionManager.childFocusStrategy === "last" ? wS(e) : e.firstChild();
if (r) {
Cp(r);
return;
@@ -26299,7 +26299,7 @@ function dS(e, t, n) {
}
(m.current != null && r.key !== m.current || !ad(n.current)) && Cp(n.current);
}
- }, { itemProps: g, isPressed: _ } = k_({
+ }, { itemProps: g, isPressed: _ } = j_({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -26313,7 +26313,7 @@ function dS(e, t, n) {
onKeyDownCapture: f !== "tab" || o ? (e) => {
let i = rd(Ku(n.current));
if (!nd(e.currentTarget, X(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = p_(n.current);
+ let a = h_(n.current);
switch (a.currentNode = i, e.key) {
case "ArrowLeft": {
let t = l === "rtl" ? a.nextNode() : a.previousNode();
@@ -26323,7 +26323,7 @@ function dS(e, t, n) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (Cp(n.current), Eh(n.current, { containingElement: Sh(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : fS(a), t && (Cp(t), Eh(t, { containingElement: Sh(n.current) })));
+ p === "cell" && l === "rtl" ? (Cp(n.current), Eh(n.current, { containingElement: Sh(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : wS(a), t && (Cp(t), Eh(t, { containingElement: Sh(n.current) })));
}
break;
}
@@ -26335,7 +26335,7 @@ function dS(e, t, n) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (Cp(n.current), Eh(n.current, { containingElement: Sh(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? fS(a) : a.firstChild(), t && (Cp(t), Eh(t, { containingElement: Sh(n.current) })));
+ p === "cell" && l === "ltr" ? (Cp(n.current), Eh(n.current, { containingElement: Sh(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? wS(a) : a.firstChild(), t && (Cp(t), Eh(t, { containingElement: Sh(n.current) })));
}
break;
}
@@ -26351,7 +26351,7 @@ function dS(e, t, n) {
return;
}
if (e.key === "Tab" && f === "tab") {
- let t = p_(n.current, { tabbable: !0 });
+ let t = h_(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -26380,7 +26380,7 @@ function dS(e, t, n) {
isPressed: _
};
}
-function fS(e) {
+function wS(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -26389,11 +26389,11 @@ function fS(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function Ene(e) {
+function mne(e) {
return e && e.__esModule ? e.default : e;
}
-function Dne(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = dS({
+function hne(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = CS({
focusMode: "child",
...e
}, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = Bm({
@@ -26404,7 +26404,7 @@ function Dne(e, t, n) {
ref: n
}), { focusableProps: l } = Hp({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
r.props.allowsSorting && !Bd() && (u = d ? f : "none");
- let p = tp(Ene(uS), "@react-aria/table"), m;
+ let p = tp(mne(SS), "@react-aria/table"), m;
i && (m = `${p.format("sortable")}`, d && f && Bd() && (m = `${m}, ${p.format(f)}`));
let h = kh(m), g = t.collection.size === 0;
return (0, R.useEffect)(() => {
@@ -26417,7 +26417,7 @@ function Dne(e, t, n) {
columnHeaderProps: {
...Y(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: Sne(t, r.key),
+ id: une(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -26426,8 +26426,8 @@ function Dne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function One(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Tx.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = k_({
+function gne(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Lx.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = j_({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -26448,10 +26448,10 @@ function One(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRow.mjs
-function kne(e) {
+function _ne(e) {
return e && e.__esModule ? e.default : e;
}
-var pS = {
+var TS = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -26461,21 +26461,21 @@ var pS = {
rtl: "ArrowRight"
}
};
-function Ane(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = One(e, t, n), { direction: s } = Vf();
+function vne(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = gne(e, t, n), { direction: s } = Vf();
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 = tp(kne(uS), "@react-aria/table"), u = Af({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = tp(_ne(SS), "@react-aria/table"), u = Af({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": kx(t, r.key)
+ "aria-labelledby": Vx(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = mS(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 = mS(t.collection, a);
+ let n = ES(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 = ES(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === pS.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === pS.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 === TS.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === TS.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,
@@ -26497,46 +26497,46 @@ function Ane(e, t, n) {
return {
rowProps: {
...Y(a, d, m),
- "aria-labelledby": kx(t, r.key)
+ "aria-labelledby": Vx(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function mS(e, t) {
+function ES(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function jne(e, t, n) {
+function yne(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
-function Mne(e, t, n) {
- let { gridCellProps: r, isPressed: i } = dS(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = Ox(t, e.node.parentKey, a)), {
+function bne(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = CS(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = Bx(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function Nne(e) {
+function xne(e) {
return e && e.__esModule ? e.default : e;
}
-function Pne(e, t) {
- let { key: n } = e, { checkboxProps: r } = Rte(e, t);
+function Sne(e, t) {
+ let { key: n } = e, { checkboxProps: r } = Ete(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${kx(t, n)}`
+ "aria-labelledby": `${r.id} ${Vx(t, n)}`
} };
}
-function Fne(e) {
+function Cne(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": tp(Nne(uS), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": tp(xne(SS), "@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,
@@ -26545,17 +26545,17 @@ function Fne(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function Ine() {
+function wne() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function hS() {
- return Ine();
+function DS() {
+ return wne();
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-var Lne = class extends dp {
+var Tne = class extends dp {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -26570,7 +26570,7 @@ var Lne = class extends dp {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new SS(-2);
+ return new PS(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -26596,7 +26596,7 @@ var Lne = class extends dp {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = Cx(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 = Fx(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;
@@ -26677,11 +26677,11 @@ var Lne = class extends dp {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new yS(-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 jS(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Rne = /*#__PURE__*/ (0, R.createContext)(null), zne = /*#__PURE__*/ (0, R.createContext)(null), gS = /*#__PURE__*/ (0, R.createContext)(null), _S = /*#__PURE__*/ (0, R.createContext)(null), Bne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = Ru(e, t, zne);
- let n = U_(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, R.useMemo)(() => ({
+}, Ene = /*#__PURE__*/ (0, R.createContext)(null), Dne = /*#__PURE__*/ (0, R.createContext)(null), OS = /*#__PURE__*/ (0, R.createContext)(null), kS = /*#__PURE__*/ (0, R.createContext)(null), One = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = Ru(e, t, Dne);
+ let n = G_(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, R.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -26691,17 +26691,17 @@ var Lne = class extends dp {
i,
a,
o
- ]), c = /*#__PURE__*/ R.createElement(Une.Provider, { value: s }, /*#__PURE__*/ R.createElement(um, e));
+ ]), c = /*#__PURE__*/ R.createElement(jne.Provider, { value: s }, /*#__PURE__*/ R.createElement(um, e));
return /*#__PURE__*/ R.createElement(Qp, {
content: c,
- createCollection: () => new Lne()
- }, (r) => /*#__PURE__*/ R.createElement(Hne, {
+ createCollection: () => new Tne()
+ }, (r) => /*#__PURE__*/ R.createElement(Ane, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), Vne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+}), kne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, R.useContext)(gm);
return n ? /*#__PURE__*/ R.createElement(Uu.div, {
...e,
@@ -26710,7 +26710,7 @@ var Lne = class extends dp {
...e,
ref: t
});
-}), vS = {
+}), AS = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -26720,26 +26720,26 @@ var Lne = class extends dp {
rtl: "ArrowRight"
}
};
-function Hne({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+function Ane({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
[e, t] = Ru(e, t, ip);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, R.useContext)(Rne);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, R.useContext)(Ene);
t = Nu((0, R.useMemo)(() => ku(t, c?.tableRef), [t, c?.tableRef]));
let [l, u] = rp(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, R.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = vne({
+ let d = one({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = yne(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, R.useContext)(gm), { dragAndDropHooks: _ } = e, { gridProps: v } = Tne({
+ }), f = sne(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, R.useContext)(gm), { dragAndDropHooks: _ } = e, { gridProps: v } = pne({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, R.useRef)(b), (0, R.useRef)(x), (0, R.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, R.useRef)(null), { direction: O } = Vf(), [k] = (0, R.useState)(() => new pne());
+ let S, C, w, T = !1, E = null, D = (0, R.useRef)(null), { direction: O } = Vf(), [k] = (0, R.useState)(() => new tne());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -26754,7 +26754,7 @@ function Hne({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new w_({
+ let e = new E_({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -26774,7 +26774,7 @@ function Hne({ 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 === vS.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === vS.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === AS.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === AS.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
@@ -26797,17 +26797,17 @@ function Hne({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
}));
let I = wm(e, { global: !0 });
return /*#__PURE__*/ R.createElement(Fu, { values: [
- [gS, f],
- [_S, F],
- [Hg, {
+ [OS, f],
+ [kS, F],
+ [Wg, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [Ug, { render: $ne }],
+ [Gg, { render: Vne }],
[ip, null],
[ap, null]
- ] }, /*#__PURE__*/ R.createElement(t_, null, /*#__PURE__*/ R.createElement(Vne, {
+ ] }, /*#__PURE__*/ R.createElement(r_, null, /*#__PURE__*/ R.createElement(kne, {
...Y(I, N, v, A, w?.collectionProps),
style: ee,
ref: t,
@@ -26817,17 +26817,17 @@ function Hne({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": j || void 0,
"data-focus-visible": M || void 0
- }, /*#__PURE__*/ R.createElement(qg, null, /*#__PURE__*/ R.createElement(g, {
+ }, /*#__PURE__*/ R.createElement(Yg, null, /*#__PURE__*/ R.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: Gg(y, _, C)
+ persistedKeys: qg(y, _, C)
})))), E);
}
-var Une = /*#__PURE__*/ (0, R.createContext)(null), yS = class extends op {
+var jne = /*#__PURE__*/ (0, R.createContext)(null), jS = class extends op {
static {
this.type = "tableheader";
}
-}, Wne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+}, Mne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, R.useContext)(gm);
return n ? /*#__PURE__*/ R.createElement(Uu.div, {
...e,
@@ -26836,16 +26836,16 @@ var Une = /*#__PURE__*/ (0, R.createContext)(null), yS = class extends op {
...e,
ref: t
});
-}), bS = /*#__PURE__*/ sm(yS, (e, t) => {
- let n = (0, R.useContext)(gS).collection, r = gp({
+}), MS = /*#__PURE__*/ sm(jS, (e, t) => {
+ let n = (0, R.useContext)(OS).collection, r = gp({
items: n.headerRows,
children: (0, R.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ R.createElement(Kne, { item: e });
+ case "headerrow": return /*#__PURE__*/ R.createElement(Pne, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = hS(), { hoverProps: a, isHovered: o } = th({
+ }), { rowGroupProps: i } = DS(), { hoverProps: a, isHovered: o } = th({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
@@ -26855,7 +26855,7 @@ var Une = /*#__PURE__*/ (0, R.createContext)(null), yS = class extends op {
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ R.createElement(Wne, {
+ return /*#__PURE__*/ R.createElement(Mne, {
...Y(wm(e, { global: !0 }), i, a),
...s,
ref: t,
@@ -26864,7 +26864,7 @@ var Une = /*#__PURE__*/ (0, R.createContext)(null), yS = class extends op {
}, (e) => /*#__PURE__*/ R.createElement(um, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), Gne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+}, e.children)), Nne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, R.useContext)(gm);
return n ? /*#__PURE__*/ R.createElement("div", {
...e,
@@ -26874,24 +26874,24 @@ var Une = /*#__PURE__*/ (0, R.createContext)(null), yS = class extends op {
ref: t
});
});
-function Kne({ item: e }) {
- let t = (0, R.useRef)(null), n = (0, R.useContext)(gS), { isVirtualized: r, CollectionBranch: i } = (0, R.useContext)(gm), { rowProps: a } = jne({
+function Pne({ item: e }) {
+ let t = (0, R.useRef)(null), n = (0, R.useContext)(OS), { isVirtualized: r, CollectionBranch: i } = (0, R.useContext)(gm), { rowProps: a } = yne({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = Fne(n);
- return /*#__PURE__*/ R.createElement(Gne, {
+ }, n, t), { checkboxProps: o } = Cne(n);
+ return /*#__PURE__*/ R.createElement(Nne, {
...a,
ref: t
- }, /*#__PURE__*/ R.createElement(Fu, { values: [[ng, { slots: { selection: o } }], [rg, { slots: { selection: o } }]] }, /*#__PURE__*/ R.createElement(i, {
+ }, /*#__PURE__*/ R.createElement(Fu, { values: [[rg, { slots: { selection: o } }], [ig, { slots: { selection: o } }]] }, /*#__PURE__*/ R.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var qne = class extends op {
+var Fne = class extends op {
static {
this.type = "column";
}
-}, Jne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+}, Ine = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, R.useContext)(gm);
return n ? /*#__PURE__*/ R.createElement(Uu.div, {
...e,
@@ -26900,13 +26900,13 @@ var qne = class extends op {
...e,
ref: t
});
-}), xS = /*#__PURE__*/ om(qne, (e, t, n) => {
- let r = Nu(t), i = (0, R.useContext)(gS), { isVirtualized: a } = (0, R.useContext)(gm), { columnHeaderProps: o, isPressed: s } = Dne({
+}), NS = /*#__PURE__*/ om(Fne, (e, t, n) => {
+ let r = Nu(t), i = (0, R.useContext)(OS), { isVirtualized: a } = (0, R.useContext)(gm), { columnHeaderProps: o, isPressed: s } = hne({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = Ym(), d = (0, R.useContext)(_S), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = Ym(), d = (0, R.useContext)(kS), f = !1;
d && (f = d.resizingColumn === n.key);
let { hoverProps: p, isHovered: m } = th({ isDisabled: !e.allowsSorting }), h = Iu({
...e,
@@ -26935,7 +26935,7 @@ var qne = class extends op {
width: d.getColumnWidth(n.key)
});
let _ = wm(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ R.createElement(Jne, {
+ return delete _.id, /*#__PURE__*/ R.createElement(Ine, {
...Y(_, o, u, p),
...h,
style: g,
@@ -26947,15 +26947,15 @@ var qne = class extends op {
"data-resizing": f || void 0,
"data-allows-sorting": n.props.allowsSorting || void 0,
"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0
- }, /*#__PURE__*/ R.createElement(Fu, { values: [[Yne, {
+ }, /*#__PURE__*/ R.createElement(Fu, { values: [[Lne, {
column: n,
triggerRef: r
}], [gm, pm]] }, h.children));
-}), Yne = /*#__PURE__*/ (0, R.createContext)(null), SS = class extends sp {
+}), Lne = /*#__PURE__*/ (0, R.createContext)(null), PS = class extends sp {
static {
this.type = "tablebody";
}
-}, Xne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+}, Rne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, R.useContext)(gm);
return n ? /*#__PURE__*/ R.createElement(Uu.div, {
...e,
@@ -26964,8 +26964,8 @@ var qne = class extends op {
...e,
ref: t
});
-}), CS = /*#__PURE__*/ sm(SS, (e, t, n) => {
- let r = (0, R.useContext)(gS), { isVirtualized: i } = (0, R.useContext)(gm), a = r.collection, { CollectionBranch: o } = (0, R.useContext)(gm), { dragAndDropHooks: s, dropState: c } = (0, R.useContext)(Hg), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), FS = /*#__PURE__*/ sm(PS, (e, t, n) => {
+ let r = (0, R.useContext)(OS), { isVirtualized: i } = (0, R.useContext)(gm), a = r.collection, { CollectionBranch: o } = (0, R.useContext)(gm), { dragAndDropHooks: s, dropState: c } = (0, R.useContext)(Wg), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
}, p = Iu({
@@ -26977,25 +26977,25 @@ var qne = class extends op {
}), m, h = a.columnCount;
if (d && e.renderEmptyState && r) {
let t = {}, n = {}, r = {};
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ R.createElement(TS, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ R.createElement(LS, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ R.createElement(DS, {
+ }, /*#__PURE__*/ R.createElement(zS, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = hS(), _ = wm(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(Xne, {
+ let { rowGroupProps: g } = DS(), _ = wm(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(Rne, {
...Y(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ R.createElement(ire, null), /*#__PURE__*/ R.createElement(o, {
+ }, l && /*#__PURE__*/ R.createElement(Kne, null), /*#__PURE__*/ R.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: Wg(s, c)
+ renderDropIndicator: Kg(s, c)
}), m);
});
(class extends sp {
@@ -27003,7 +27003,7 @@ var qne = class extends op {
this.type = "tablefooter";
}
});
-var wS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Zne = class extends op {
+var IS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), zne = class extends op {
static {
this.type = "item";
}
@@ -27015,7 +27015,7 @@ var wS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Zn
}
return null;
}
-}, TS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+}, LS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, R.useContext)(gm);
return n ? /*#__PURE__*/ R.createElement(Uu.div, {
...e,
@@ -27024,8 +27024,8 @@ var wS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Zn
...e,
ref: t
});
-}), ES = /*#__PURE__*/ sm(Zne, (e, t, n) => {
- let r = Nu(t), i = (0, R.useContext)(gS), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(Hg), { isVirtualized: c, CollectionBranch: l } = (0, R.useContext)(gm), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Ane({
+}), RS = /*#__PURE__*/ sm(zne, (e, t, n) => {
+ let r = Nu(t), i = (0, R.useContext)(OS), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(Wg), { isVirtualized: c, CollectionBranch: l } = (0, R.useContext)(gm), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = vne({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
@@ -27034,7 +27034,7 @@ var wS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Zn
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = Pne({ key: n.key }, i), S;
+ }), { checkboxProps: x } = Sne({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
@@ -27071,10 +27071,10 @@ var wS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Zn
level: n.level + 1
}
}), N = wm(e, { global: !0 });
- return delete N.id, delete N.onClick, /*#__PURE__*/ R.createElement(R.Fragment, null, C && !C.isHidden && /*#__PURE__*/ R.createElement(TS, {
+ return delete N.id, delete N.onClick, /*#__PURE__*/ R.createElement(R.Fragment, null, C && !C.isHidden && /*#__PURE__*/ R.createElement(LS, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ R.createElement(DS, {
+ }, /*#__PURE__*/ R.createElement(zS, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -27083,7 +27083,7 @@ var wS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Zn
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ R.createElement(TS, {
+ }))), /*#__PURE__*/ R.createElement(LS, {
...Y(N, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -27100,11 +27100,11 @@ var wS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Zn
"data-has-child-items": A || void 0,
"data-level": n.level + 1
}, /*#__PURE__*/ R.createElement(Fu, { values: [
- [ng, { slots: {
+ [rg, { slots: {
[Pu]: {},
selection: x
} }],
- [rg, { slots: {
+ [ig, { slots: {
[Pu]: {},
selection: x
} }],
@@ -27117,8 +27117,8 @@ var wS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Zn
style: { pointerEvents: "none" }
}
} }],
- [Jg, { isSelected: p.isSelected }],
- [wS, { isFocusVisibleWithinRow: _ }]
+ [Xg, { isSelected: p.isSelected }],
+ [IS, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ R.createElement(l, {
collection: i.collection,
parent: n
@@ -27131,11 +27131,11 @@ var wS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Zn
items: e.columns,
idScope: e.id
}, e.children);
-}), Qne = class extends op {
+}), Bne = class extends op {
static {
this.type = "cell";
}
-}, DS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+}, zS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, R.useContext)(gm);
return n ? /*#__PURE__*/ R.createElement(Uu.div, {
...e,
@@ -27144,16 +27144,16 @@ var wS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Zn
...e,
ref: t
});
-}), OS = /*#__PURE__*/ om(Qne, (e, t, n) => {
- let r = Nu(t), i = (0, R.useContext)(gS), { dragState: a } = (0, R.useContext)(Hg), { isVirtualized: o } = (0, R.useContext)(gm);
+}), BS = /*#__PURE__*/ om(Bne, (e, t, n) => {
+ let r = Nu(t), i = (0, R.useContext)(OS), { dragState: a } = (0, R.useContext)(Wg), { isVirtualized: o } = (0, R.useContext)(gm);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = Mne({
+ let { gridCellProps: s, isPressed: c } = bne({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = Ym(), { hoverProps: f, isHovered: p } = th({}), { isFocusVisibleWithinRow: m } = (0, R.useContext)(wS), 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 = Iu({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = Ym(), { hoverProps: f, isHovered: p } = th({}), { isFocusVisibleWithinRow: m } = (0, R.useContext)(IS), 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 = Iu({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -27173,7 +27173,7 @@ var wS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Zn
isTreeColumn: n.column.key === i.treeColumn
}
}), S = wm(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ R.createElement(DS, {
+ return delete S.id, /*#__PURE__*/ R.createElement(zS, {
...Y(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -27189,12 +27189,12 @@ var wS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Zn
"data-disabled": b || void 0
}, /*#__PURE__*/ R.createElement(gm.Provider, { value: pm }, x.children));
});
-function $ne(e, t) {
+function Vne(e, t) {
t = Nu(t);
- let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(Hg), i = (0, R.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+ let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(Wg), i = (0, R.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ R.createElement(rre, {
+ return /*#__PURE__*/ R.createElement(Gne, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -27203,7 +27203,7 @@ function $ne(e, t) {
ref: t
});
}
-var ere = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+var Hne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, R.useContext)(gm);
return n ? /*#__PURE__*/ R.createElement(Uu.div, {
...e,
@@ -27212,7 +27212,7 @@ var ere = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
...e,
ref: t
});
-}), tre = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+}), Une = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, R.useContext)(gm);
return n ? /*#__PURE__*/ R.createElement(Uu.div, {
...e,
@@ -27222,21 +27222,21 @@ var ere = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
ref: t
});
});
-function nre(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, R.useContext)(gS), { visuallyHiddenProps: c } = jh(), l = Iu({
+function Wne(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, R.useContext)(OS), { visuallyHiddenProps: c } = jh(), l = Iu({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ R.createElement(ere, {
+ return /*#__PURE__*/ R.createElement(Hne, {
...wm(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ R.createElement(tre, {
+ }, /*#__PURE__*/ R.createElement(Une, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -27247,14 +27247,14 @@ function nre(e, t) {
ref: i
}), l.children));
}
-var rre = /*#__PURE__*/ (0, R.forwardRef)(nre);
-function ire() {
- let e = (0, R.useContext)(gS), { dragAndDropHooks: t, dropState: n } = (0, R.useContext)(Hg), r = (0, R.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = jh();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ R.createElement(TS, {
+var Gne = /*#__PURE__*/ (0, R.forwardRef)(Wne);
+function Kne() {
+ let e = (0, R.useContext)(OS), { dragAndDropHooks: t, dropState: n } = (0, R.useContext)(Wg), r = (0, R.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = jh();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ R.createElement(LS, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ R.createElement(DS, {
+ }, /*#__PURE__*/ R.createElement(zS, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -27266,8 +27266,8 @@ function ire() {
})));
}
om(cp, function(e, t, n) {
- let r = (0, R.useContext)(gS), { isVirtualized: i } = (0, R.useContext)(gm), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, R.useRef)(null);
- Z_((0, R.useMemo)(() => ({
+ let r = (0, R.useContext)(OS), { isVirtualized: i } = (0, R.useContext)(gm), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, R.useRef)(null);
+ $_((0, R.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -27285,10 +27285,10 @@ om(cp, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(TS, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(LS, {
style: { height: 0 },
- inert: B_(!0)
- }, /*#__PURE__*/ R.createElement(DS, { style: {
+ inert: H_(!0)
+ }, /*#__PURE__*/ R.createElement(zS, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ R.createElement("div", {
@@ -27299,14 +27299,14 @@ om(cp, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ R.createElement(TS, {
+ }))), a && d.children && /*#__PURE__*/ R.createElement(LS, {
...Y(wm(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ R.createElement(DS, {
+ }, /*#__PURE__*/ R.createElement(zS, {
role: "rowheader",
...p,
style: m
@@ -27314,21 +27314,21 @@ om(cp, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var kS = /* @__PURE__ */ new WeakMap();
-function AS(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${kS.get(e)}-${n}-${t}`) : "";
+var VS = /* @__PURE__ */ new WeakMap();
+function HS(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${VS.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function are(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 } = k_({
+function qne(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 } = j_({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = AS(t, r, "tab"), m = AS(t, r, "tabpanel"), { tabIndex: h } = d, g = wm(u?.props, { labelable: !0 });
+ }), p = HS(t, r, "tab"), m = HS(t, r, "tabpanel"), { tabIndex: h } = d, g = wm(u?.props, { labelable: !0 });
delete g.id;
let _ = Zd(u?.props), { focusableProps: v } = Hp({
...u?.props,
@@ -27350,12 +27350,12 @@ function are(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function ore(e, t, n) {
- let r = nx(n) ? void 0 : 0, i = AS(t, e.id ?? t?.selectedKey, "tabpanel");
+function Jne(e, t, n) {
+ let r = mx(n) ? void 0 : 0, i = HS(t, e.id ?? t?.selectedKey, "tabpanel");
return { tabPanelProps: Y(Af({
...e,
id: i,
- "aria-labelledby": AS(t, t?.selectedKey, "tab")
+ "aria-labelledby": HS(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -27365,7 +27365,7 @@ function ore(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var sre = class {
+var Yne = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -27409,11 +27409,11 @@ var sre = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function cre(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Vf(), { collectionProps: l } = S_({
+function Xne(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Vf(), { collectionProps: l } = w_({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, R.useMemo)(() => new sre(a, c, r, s), [
+ keyboardDelegate: (0, R.useMemo)(() => new Yne(a, c, r, s), [
a,
s,
r,
@@ -27424,7 +27424,7 @@ function cre(e, t, n) {
scrollRef: n,
linkBehavior: "selection"
}), u = Eu();
- return kS.set(t, u), { tabListProps: {
+ return VS.set(t, u), { tabListProps: {
...Y(l, Af({
...e,
id: u
@@ -27436,8 +27436,8 @@ function cre(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function lre(e) {
- let [t, n] = rp(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, R.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = Y_({
+function Zne(e) {
+ let [t, n] = rp(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, R.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = Z_({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -27460,24 +27460,24 @@ function lre(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function ure(e) {
- let t = lre({
+function Qne(e) {
+ let t = Zne({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? jS(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? US(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, R.useRef)(i);
return (0, R.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = jS(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 = US(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 jS(e, t) {
+function US(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);
@@ -27487,20 +27487,20 @@ function jS(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var MS = /*#__PURE__*/ (0, R.createContext)(null), NS = /*#__PURE__*/ (0, R.createContext)(null), PS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = Ru(e, t, MS);
+var WS = /*#__PURE__*/ (0, R.createContext)(null), GS = /*#__PURE__*/ (0, R.createContext)(null), KS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = Ru(e, t, WS);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, R.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ R.createElement(Qp, { content: n }, (n) => /*#__PURE__*/ R.createElement(dre, {
+ }) : n, [n, r]), /*#__PURE__*/ R.createElement(Qp, { content: n }, (n) => /*#__PURE__*/ R.createElement($ne, {
props: e,
collection: n,
tabsRef: t
}));
});
-function dre({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = ure({
+function $ne({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = Qne({
...e,
collection: n,
children: void 0
@@ -27525,16 +27525,16 @@ function dre({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ R.createElement(Fu, { values: [[MS, e], [NS, i]] }, l.children));
+ }, /*#__PURE__*/ R.createElement(Fu, { values: [[WS, e], [GS, i]] }, l.children));
}
-var FS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- return (0, R.useContext)(NS) ? /*#__PURE__*/ R.createElement(fre, {
+var qS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ return (0, R.useContext)(GS) ? /*#__PURE__*/ R.createElement(ere, {
props: e,
forwardedRef: t
}) : /*#__PURE__*/ R.createElement(um, e);
});
-function fre({ props: e, forwardedRef: t }) {
- let n = (0, R.useContext)(NS), { CollectionRoot: r } = (0, R.useContext)(gm), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Lu(MS), o = Nu(t), { tabListProps: s } = cre({
+function ere({ props: e, forwardedRef: t }) {
+ let n = (0, R.useContext)(GS), { CollectionRoot: r } = (0, R.useContext)(gm), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Lu(WS), o = Nu(t), { tabListProps: s } = Xne({
...e,
orientation: i,
keyboardActivation: a
@@ -27551,17 +27551,17 @@ function fre({ props: e, forwardedRef: t }) {
...Y(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ R.createElement(qg, null, /*#__PURE__*/ R.createElement(r, {
+ }, /*#__PURE__*/ R.createElement(Yg, null, /*#__PURE__*/ R.createElement(r, {
collection: n.collection,
persistedKeys: _m(n.selectionManager.focusedKey)
})));
}
-var IS = /*#__PURE__*/ om(class extends op {
+var JS = /*#__PURE__*/ om(class extends op {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, R.useContext)(NS), i = Nu(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = are({
+ let r = (0, R.useContext)(GS), i = Nu(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = qne({
key: n.key,
...e
}, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = Ym(), { hoverProps: f, isHovered: p } = th({
@@ -27592,26 +27592,26 @@ var IS = /*#__PURE__*/ om(class extends op {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ R.createElement(Jg.Provider, { value: { isSelected: o } }, m.children));
-}), LS = /*#__PURE__*/ Gp(function(e, t) {
- let n = (0, R.useContext)(NS), r = Nu(t), i = n.selectedKey === e.id, [a, o] = (0, R.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ R.createElement(Xg.Provider, { value: { isSelected: o } }, m.children));
+}), YS = /*#__PURE__*/ Gp(function(e, t) {
+ let n = (0, R.useContext)(GS), r = Nu(t), i = n.selectedKey === e.id, [a, o] = (0, R.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = xy(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ R.createElement(pre, {
+ let s = Ny(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ R.createElement(tre, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function pre(e) {
- let t = (0, R.useContext)(NS), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = ore(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = Ym(), d = t.selectedKey === e.id, f = by(r) && !i, p = Iu({
+function tre(e) {
+ let t = (0, R.useContext)(GS), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Jne(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = Ym(), d = t.selectedKey === e.id, f = My(r) && !i, p = Iu({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: B_(!d),
+ isInert: H_(!d),
isEntering: f,
isExiting: a,
state: t
@@ -27624,19 +27624,19 @@ function pre(e) {
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: B_(!d || e.inert),
+ inert: H_(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ R.createElement(Fu, { values: [[MS, null], [NS, null]] }, /*#__PURE__*/ R.createElement(gm.Provider, { value: pm }, p.children)));
+ }, /*#__PURE__*/ R.createElement(Fu, { values: [[WS, null], [GS, null]] }, /*#__PURE__*/ R.createElement(gm.Provider, { value: pm }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var RS = /*#__PURE__*/ (0, R.createContext)({}), zS = /*#__PURE__*/ (0, R.createContext)(null), BS = /*#__PURE__*/ Gp(function(e, t) {
- [e, t] = Ru(e, t, zS);
+var nre = /*#__PURE__*/ (0, R.createContext)({}), rre = /*#__PURE__*/ (0, R.createContext)(null), ire = /*#__PURE__*/ Gp(function(e, t) {
+ [e, t] = Ru(e, t, rre);
let { validationBehavior: n } = Lu(Gh) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useRef)(null);
[e, i] = Ru(e, i, ap);
- let [a, o] = zu(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, R.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = uee({
+ let [a, o] = zu(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, R.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = cee({
...Bu(e),
inputElementType: s,
label: o,
@@ -27667,15 +27667,15 @@ var RS = /*#__PURE__*/ (0, R.createContext)({}), zS = /*#__PURE__*/ (0, R.create
...l,
ref: a
}],
- [og, {
+ [cg, {
...u,
ref: m
}],
- [RS, {
+ [nre, {
...u,
ref: m
}],
- [ag, {
+ [sg, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
@@ -27689,34 +27689,34 @@ var RS = /*#__PURE__*/ (0, R.createContext)({}), zS = /*#__PURE__*/ (0, R.create
});
//#endregion
//#region node_modules/motion-utils/dist/es/array.mjs
-function VS(e, t) {
+function XS(e, t) {
e.indexOf(t) === -1 && e.push(t);
}
-function HS(e, t) {
+function ZS(e, t) {
let n = e.indexOf(t);
n > -1 && e.splice(n, 1);
}
//#endregion
//#region node_modules/motion-utils/dist/es/clamp.mjs
-var US = (e, t, n) => n > t ? t : n < e ? e : n, WS = {}, GS = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), KS = (e) => typeof e == "object" && !!e, qS = (e) => /^0[^.\s]+$/u.test(e);
+var QS = (e, t, n) => n > t ? t : n < e ? e : n, $S = {}, eC = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), tC = (e) => typeof e == "object" && !!e, nC = (e) => /^0[^.\s]+$/u.test(e);
//#endregion
//#region node_modules/motion-utils/dist/es/memo.mjs
/*#__NO_SIDE_EFFECTS__*/
-function JS(e) {
+function rC(e) {
let t;
return () => (t === void 0 && (t = e()), t);
}
//#endregion
//#region node_modules/motion-utils/dist/es/noop.mjs
-var YS = /* @__NO_SIDE_EFFECTS__ */ (e) => e, XS = (...e) => e.reduce((e, t) => (n) => t(e(n))), ZS = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
+var iC = /* @__NO_SIDE_EFFECTS__ */ (e) => e, aC = (...e) => e.reduce((e, t) => (n) => t(e(n))), oC = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
let r = t - e;
return r ? (n - e) / r : 1;
-}, QS = class {
+}, sC = class {
constructor() {
this.subscriptions = [];
}
add(e) {
- return VS(this.subscriptions, e), () => HS(this.subscriptions, e);
+ return XS(this.subscriptions, e), () => ZS(this.subscriptions, e);
}
notify(e, t, n) {
let r = this.subscriptions.length;
@@ -27734,42 +27734,42 @@ var YS = /* @__NO_SIDE_EFFECTS__ */ (e) => e, XS = (...e) => e.reduce((e, t) =>
clear() {
this.subscriptions.length = 0;
}
-}, $S = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, eC = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, tC = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, nC = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, rC = 1e-7, iC = 12;
-function aC(e, t, n, r, i) {
+}, cC = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, lC = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, uC = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, dC = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, are = 1e-7, ore = 12;
+function sre(e, t, n, r, i) {
let a, o, s = 0;
do
- o = t + (n - t) / 2, a = nC(o, r, i) - e, a > 0 ? n = o : t = o;
- while (Math.abs(a) > rC && ++s < iC);
+ o = t + (n - t) / 2, a = dC(o, r, i) - e, a > 0 ? n = o : t = o;
+ while (Math.abs(a) > are && ++s < ore);
return o;
}
/*#__NO_SIDE_EFFECTS__*/
-function oC(e, t, n, r) {
- if (e === t && n === r) return YS;
- let i = (t) => aC(t, 0, 1, e, n);
- return (e) => e === 0 || e === 1 ? e : nC(i(e), t, r);
+function fC(e, t, n, r) {
+ if (e === t && n === r) return iC;
+ let i = (t) => sre(t, 0, 1, e, n);
+ return (e) => e === 0 || e === 1 ? e : dC(i(e), t, r);
}
//#endregion
//#region node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
-var sC = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, cC = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), lC = /*@__PURE__*/ oC(.33, 1.53, .69, .99), uC = /*@__PURE__*/ cC(lC), dC = /*@__PURE__*/ sC(uC), fC = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * uC(e) : .5 * (2 - 2 ** (-10 * (e - 1))), pC = (e) => 1 - Math.sin(Math.acos(e)), mC = /* @__PURE__ */ cC(pC), hC = /* @__PURE__ */ sC(pC), gC = /*@__PURE__*/ oC(.42, 0, 1, 1), _C = /*@__PURE__*/ oC(0, 0, .58, 1), vC = /*@__PURE__*/ oC(.42, 0, .58, 1), yC = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number", bC = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", xC = {
- linear: YS,
- easeIn: gC,
- easeInOut: vC,
- easeOut: _C,
- circIn: pC,
- circInOut: hC,
- circOut: mC,
- backIn: uC,
- backInOut: dC,
- backOut: lC,
- anticipate: fC
-}, SC = (e) => typeof e == "string", CC = (e) => {
- if (/* @__PURE__ */ bC(e)) {
+var pC = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, mC = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), hC = /*@__PURE__*/ fC(.33, 1.53, .69, .99), gC = /*@__PURE__*/ mC(hC), _C = /*@__PURE__*/ pC(gC), vC = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * gC(e) : .5 * (2 - 2 ** (-10 * (e - 1))), yC = (e) => 1 - Math.sin(Math.acos(e)), bC = /* @__PURE__ */ mC(yC), xC = /* @__PURE__ */ pC(yC), SC = /*@__PURE__*/ fC(.42, 0, 1, 1), cre = /*@__PURE__*/ fC(0, 0, .58, 1), CC = /*@__PURE__*/ fC(.42, 0, .58, 1), lre = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number", wC = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", TC = {
+ linear: iC,
+ easeIn: SC,
+ easeInOut: CC,
+ easeOut: cre,
+ circIn: yC,
+ circInOut: xC,
+ circOut: bC,
+ backIn: gC,
+ backInOut: _C,
+ backOut: hC,
+ anticipate: vC
+}, EC = (e) => typeof e == "string", DC = (e) => {
+ if (/* @__PURE__ */ wC(e)) {
e.length;
let [t, n, r, i] = e;
- return /* @__PURE__ */ oC(t, n, r, i);
+ return /* @__PURE__ */ fC(t, n, r, i);
}
- return SC(e) ? (xC[e], `${e}`, xC[e]) : e;
-}, wC = [
+ return EC(e) ? (TC[e], `${e}`, TC[e]) : e;
+}, OC = [
"setup",
"read",
"resolveKeyframes",
@@ -27781,7 +27781,7 @@ var sC = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 -
];
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/render-step.mjs
-function mre(e) {
+function ure(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, i = !1, a = /* @__PURE__ */ new WeakSet(), o = {
delta: 0,
timestamp: 0,
@@ -27812,25 +27812,25 @@ function mre(e) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/batcher.mjs
-var hre = 40;
-function TC(e, t) {
+var dre = 40;
+function kC(e, t) {
let n = !1, r = !0, i = {
delta: 0,
timestamp: 0,
isProcessing: !1
- }, a = () => n = !0, o = wC.reduce((e, t) => (e[t] = mre(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
- let a = WS.useManualTiming, o = a ? i.timestamp : performance.now();
- n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, hre), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
+ }, a = () => n = !0, o = OC.reduce((e, t) => (e[t] = ure(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
+ let a = $S.useManualTiming, o = a ? i.timestamp : performance.now();
+ n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, dre), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
}, g = () => {
n = !0, r = !0, i.isProcessing || e(h);
};
return {
- schedule: wC.reduce((e, t) => {
+ schedule: OC.reduce((e, t) => {
let r = o[t];
return e[t] = (e, t = !1, i = !1) => (n || g(), r.schedule(e, t, i)), e;
}, {}),
cancel: (e) => {
- for (let t = 0; t < wC.length; t++) o[wC[t]].cancel(e);
+ for (let t = 0; t < OC.length; t++) o[OC[t]].cancel(e);
},
state: i,
steps: o
@@ -27838,59 +27838,59 @@ function TC(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/frame.mjs
-var { schedule: EC, cancel: DC, state: OC, steps: kC } = /* @__PURE__ */ TC(typeof requestAnimationFrame < "u" ? requestAnimationFrame : YS, !0), AC;
-function gre() {
- AC = void 0;
+var { schedule: AC, cancel: jC, state: MC, steps: NC } = /* @__PURE__ */ kC(typeof requestAnimationFrame < "u" ? requestAnimationFrame : iC, !0), PC;
+function fre() {
+ PC = void 0;
}
-var jC = {
- now: () => (AC === void 0 && jC.set(OC.isProcessing || WS.useManualTiming ? OC.timestamp : performance.now()), AC),
+var FC = {
+ now: () => (PC === void 0 && FC.set(MC.isProcessing || $S.useManualTiming ? MC.timestamp : performance.now()), PC),
set: (e) => {
- AC = e, queueMicrotask(gre);
+ PC = e, queueMicrotask(fre);
}
-}, MC = (e) => (t) => typeof t == "string" && t.startsWith(e), NC = /*@__PURE__*/ MC("--"), _re = /*@__PURE__*/ MC("var(--"), PC = (e) => _re(e) ? vre.test(e.split("/*")[0].trim()) : !1, vre = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
-function FC(e) {
+}, IC = (e) => (t) => typeof t == "string" && t.startsWith(e), LC = /*@__PURE__*/ IC("--"), pre = /*@__PURE__*/ IC("var(--"), RC = (e) => pre(e) ? mre.test(e.split("/*")[0].trim()) : !1, mre = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
+function zC(e) {
return typeof e == "string" && e.split("/*")[0].includes("var(--");
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/numbers/index.mjs
-var IC = {
+var BC = {
test: (e) => typeof e == "number",
parse: parseFloat,
transform: (e) => e
-}, LC = {
- ...IC,
- transform: (e) => US(0, 1, e)
-}, RC = {
- ...IC,
+}, VC = {
+ ...BC,
+ transform: (e) => QS(0, 1, e)
+}, HC = {
+ ...BC,
default: 1
-}, zC = (e) => Math.round(e * 1e5) / 1e5, BC = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
+}, UC = (e) => Math.round(e * 1e5) / 1e5, WC = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
-function yre(e) {
+function hre(e) {
return e == null;
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
-var bre = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, VC = (e, t) => (n) => !!(typeof n == "string" && bre.test(n) && n.startsWith(e) || t && !yre(n) && Object.prototype.hasOwnProperty.call(n, t)), HC = (e, t, n) => (r) => {
+var gre = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, GC = (e, t) => (n) => !!(typeof n == "string" && gre.test(n) && n.startsWith(e) || t && !hre(n) && Object.prototype.hasOwnProperty.call(n, t)), KC = (e, t, n) => (r) => {
if (typeof r != "string") return r;
- let [i, a, o, s] = r.match(BC);
+ let [i, a, o, s] = r.match(WC);
return {
[e]: parseFloat(i),
[t]: parseFloat(a),
[n]: parseFloat(o),
alpha: s === void 0 ? 1 : parseFloat(s)
};
-}, xre = (e) => US(0, 255, e), UC = {
- ...IC,
- transform: (e) => Math.round(xre(e))
-}, WC = {
- test: /*@__PURE__*/ VC("rgb", "red"),
- parse: /*@__PURE__*/ HC("red", "green", "blue"),
- transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + UC.transform(e) + ", " + UC.transform(t) + ", " + UC.transform(n) + ", " + zC(LC.transform(r)) + ")"
+}, _re = (e) => QS(0, 255, e), qC = {
+ ...BC,
+ transform: (e) => Math.round(_re(e))
+}, JC = {
+ test: /*@__PURE__*/ GC("rgb", "red"),
+ parse: /*@__PURE__*/ KC("red", "green", "blue"),
+ transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + qC.transform(e) + ", " + qC.transform(t) + ", " + qC.transform(n) + ", " + UC(VC.transform(r)) + ")"
};
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/color/hex.mjs
-function Sre(e) {
+function vre(e) {
let t = "", n = "", r = "", i = "";
return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
red: parseInt(t, 16),
@@ -27899,38 +27899,38 @@ function Sre(e) {
alpha: i ? parseInt(i, 16) / 255 : 1
};
}
-var GC = {
- test: /*@__PURE__*/ VC("#"),
- parse: Sre,
- transform: WC.transform
-}, KC = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
+var YC = {
+ test: /*@__PURE__*/ GC("#"),
+ parse: vre,
+ transform: JC.transform
+}, XC = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
parse: parseFloat,
transform: (t) => `${t}${e}`
-}), qC = /*@__PURE__*/ KC("deg"), JC = /*@__PURE__*/ KC("%"), YC = /*@__PURE__*/ KC("px"), Cre = /*@__PURE__*/ KC("vh"), wre = /*@__PURE__*/ KC("vw"), XC = {
- ...JC,
- parse: (e) => JC.parse(e) / 100,
- transform: (e) => JC.transform(e * 100)
-}, ZC = {
- test: /*@__PURE__*/ VC("hsl", "hue"),
- parse: /*@__PURE__*/ HC("hue", "saturation", "lightness"),
- transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + JC.transform(zC(t)) + ", " + JC.transform(zC(n)) + ", " + zC(LC.transform(r)) + ")"
-}, QC = {
- test: (e) => WC.test(e) || GC.test(e) || ZC.test(e),
- parse: (e) => WC.test(e) ? WC.parse(e) : ZC.test(e) ? ZC.parse(e) : GC.parse(e),
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? WC.transform(e) : ZC.transform(e),
+}), ZC = /*@__PURE__*/ XC("deg"), QC = /*@__PURE__*/ XC("%"), $C = /*@__PURE__*/ XC("px"), ew = /*@__PURE__*/ XC("vh"), tw = /*@__PURE__*/ XC("vw"), nw = {
+ ...QC,
+ parse: (e) => QC.parse(e) / 100,
+ transform: (e) => QC.transform(e * 100)
+}, rw = {
+ test: /*@__PURE__*/ GC("hsl", "hue"),
+ parse: /*@__PURE__*/ KC("hue", "saturation", "lightness"),
+ transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + QC.transform(UC(t)) + ", " + QC.transform(UC(n)) + ", " + UC(VC.transform(r)) + ")"
+}, iw = {
+ test: (e) => JC.test(e) || YC.test(e) || rw.test(e),
+ parse: (e) => JC.test(e) ? JC.parse(e) : rw.test(e) ? rw.parse(e) : YC.parse(e),
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? JC.transform(e) : rw.transform(e),
getAnimatableNone: (e) => {
- let t = QC.parse(e);
- return t.alpha = 0, QC.transform(t);
+ let t = iw.parse(e);
+ return t.alpha = 0, iw.transform(t);
}
-}, Tre = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
+}, yre = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/complex/index.mjs
-function Ere(e) {
- return isNaN(e) && typeof e == "string" && (e.match(BC)?.length || 0) + (e.match(Tre)?.length || 0) > 0;
+function bre(e) {
+ return isNaN(e) && typeof e == "string" && (e.match(WC)?.length || 0) + (e.match(yre)?.length || 0) > 0;
}
-var $C = "number", ew = "color", Dre = "var", Ore = "var(", tw = "${}", kre = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
-function nw(e) {
+var aw = "number", ow = "color", xre = "var", Sre = "var(", sw = "${}", Cre = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
+function cw(e) {
let t = e.toString(), n = [], r = {
color: [],
number: [],
@@ -27938,51 +27938,51 @@ function nw(e) {
}, i = [], a = 0;
return {
values: n,
- split: t.replace(kre, (e) => (QC.test(e) ? (r.color.push(a), i.push(ew), n.push(QC.parse(e))) : e.startsWith(Ore) ? (r.var.push(a), i.push(Dre), n.push(e)) : (r.number.push(a), i.push($C), n.push(parseFloat(e))), ++a, tw)).split(tw),
+ split: t.replace(Cre, (e) => (iw.test(e) ? (r.color.push(a), i.push(ow), n.push(iw.parse(e))) : e.startsWith(Sre) ? (r.var.push(a), i.push(xre), n.push(e)) : (r.number.push(a), i.push(aw), n.push(parseFloat(e))), ++a, sw)).split(sw),
indexes: r,
types: i
};
}
-function Are(e) {
- return nw(e).values;
+function wre(e) {
+ return cw(e).values;
}
-function rw({ split: e, types: t }) {
+function lw({ split: e, types: t }) {
let n = e.length;
return (r) => {
let i = "";
for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {
let e = t[a];
- i += e === $C ? zC(r[a]) : e === ew ? QC.transform(r[a]) : r[a];
+ i += e === aw ? UC(r[a]) : e === ow ? iw.transform(r[a]) : r[a];
}
return i;
};
}
-function jre(e) {
- return rw(nw(e));
+function Tre(e) {
+ return lw(cw(e));
}
-var Mre = (e) => typeof e == "number" ? 0 : QC.test(e) ? QC.getAnimatableNone(e) : e, Nre = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : Mre(e);
-function Pre(e) {
- let t = nw(e);
- return rw(t)(t.values.map((e, n) => Nre(e, t.split[n])));
+var Ere = (e) => typeof e == "number" ? 0 : iw.test(e) ? iw.getAnimatableNone(e) : e, Dre = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : Ere(e);
+function Ore(e) {
+ let t = cw(e);
+ return lw(t)(t.values.map((e, n) => Dre(e, t.split[n])));
}
-var iw = {
- test: Ere,
- parse: Are,
- createTransformer: jre,
- getAnimatableNone: Pre
+var uw = {
+ test: bre,
+ parse: wre,
+ createTransformer: Tre,
+ getAnimatableNone: Ore
};
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs
-function aw(e, t, n) {
+function dw(e, t, n) {
return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
}
-function Fre({ hue: e, saturation: t, lightness: n, alpha: r }) {
+function kre({ hue: e, saturation: t, lightness: n, alpha: r }) {
e /= 360, t /= 100, n /= 100;
let i = 0, a = 0, o = 0;
if (!t) i = a = o = n;
else {
let r = n < .5 ? n * (1 + t) : n + t - n * t, s = 2 * n - r;
- i = aw(s, r, e + 1 / 3), a = aw(s, r, e), o = aw(s, r, e - 1 / 3);
+ i = dw(s, r, e + 1 / 3), a = dw(s, r, e), o = dw(s, r, e - 1 / 3);
}
return {
red: Math.round(i * 255),
@@ -27993,61 +27993,61 @@ function Fre({ hue: e, saturation: t, lightness: n, alpha: r }) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/immediate.mjs
-function ow(e, t) {
+function fw(e, t) {
return (n) => n > 0 ? t : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/number.mjs
-var sw = (e, t, n) => e + (t - e) * n, cw = (e, t, n) => {
+var pw = (e, t, n) => e + (t - e) * n, mw = (e, t, n) => {
let r = e * e, i = n * (t * t - r) + r;
return i < 0 ? 0 : Math.sqrt(i);
-}, Ire = [
- GC,
- WC,
- ZC
-], Lre = (e) => Ire.find((t) => t.test(e));
-function lw(e) {
- let t = Lre(e);
+}, Are = [
+ YC,
+ JC,
+ rw
+], jre = (e) => Are.find((t) => t.test(e));
+function hw(e) {
+ let t = jre(e);
if (`${e}`, !t) return !1;
let n = t.parse(e);
- return t === ZC && (n = Fre(n)), n;
+ return t === rw && (n = kre(n)), n;
}
-var uw = (e, t) => {
- let n = lw(e), r = lw(t);
- if (!n || !r) return ow(e, t);
+var gw = (e, t) => {
+ let n = hw(e), r = hw(t);
+ if (!n || !r) return fw(e, t);
let i = { ...n };
- return (e) => (i.red = cw(n.red, r.red, e), i.green = cw(n.green, r.green, e), i.blue = cw(n.blue, r.blue, e), i.alpha = sw(n.alpha, r.alpha, e), WC.transform(i));
-}, dw = /* @__PURE__ */ new Set(["none", "hidden"]);
-function Rre(e, t) {
- return dw.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
+ return (e) => (i.red = mw(n.red, r.red, e), i.green = mw(n.green, r.green, e), i.blue = mw(n.blue, r.blue, e), i.alpha = pw(n.alpha, r.alpha, e), JC.transform(i));
+}, _w = /* @__PURE__ */ new Set(["none", "hidden"]);
+function Mre(e, t) {
+ return _w.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/complex.mjs
-function zre(e, t) {
- return (n) => sw(e, t, n);
+function vw(e, t) {
+ return (n) => pw(e, t, n);
}
-function fw(e) {
- return typeof e == "number" ? zre : typeof e == "string" ? PC(e) ? ow : QC.test(e) ? uw : Hre : Array.isArray(e) ? pw : typeof e == "object" ? QC.test(e) ? uw : Bre : ow;
+function yw(e) {
+ return typeof e == "number" ? vw : typeof e == "string" ? RC(e) ? fw : iw.test(e) ? gw : Cw : Array.isArray(e) ? bw : typeof e == "object" ? iw.test(e) ? gw : xw : fw;
}
-function pw(e, t) {
- let n = [...e], r = n.length, i = e.map((e, n) => fw(e)(e, t[n]));
+function bw(e, t) {
+ let n = [...e], r = n.length, i = e.map((e, n) => yw(e)(e, t[n]));
return (e) => {
for (let t = 0; t < r; t++) n[t] = i[t](e);
return n;
};
}
-function Bre(e, t) {
+function xw(e, t) {
let n = {
...e,
...t
}, r = {};
- for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = fw(e[i])(e[i], t[i]));
+ for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = yw(e[i])(e[i], t[i]));
return (e) => {
for (let t in r) n[t] = r[t](e);
return n;
};
}
-function Vre(e, t) {
+function Sw(e, t) {
let n = [], r = {
color: 0,
var: 0,
@@ -28059,50 +28059,50 @@ function Vre(e, t) {
}
return n;
}
-var Hre = (e, t) => {
- let n = iw.createTransformer(t), r = nw(e), i = nw(t);
- return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? dw.has(e) && !i.values.length || dw.has(t) && !r.values.length ? Rre(e, t) : XS(pw(Vre(r, i), i.values), n) : (`${e}${t}`, ow(e, t));
+var Cw = (e, t) => {
+ let n = uw.createTransformer(t), r = cw(e), i = cw(t);
+ return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? _w.has(e) && !i.values.length || _w.has(t) && !r.values.length ? Mre(e, t) : aC(bw(Sw(r, i), i.values), n) : (`${e}${t}`, fw(e, t));
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/index.mjs
-function mw(e, t, n) {
- return typeof e == "number" && typeof t == "number" && typeof n == "number" ? sw(e, t, n) : fw(e)(e, t);
+function ww(e, t, n) {
+ return typeof e == "number" && typeof t == "number" && typeof n == "number" ? pw(e, t, n) : yw(e)(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/drivers/frame.mjs
-var Ure = (e) => {
+var Tw = (e) => {
let t = ({ timestamp: t }) => e(t);
return {
- start: (e = !0) => EC.update(t, e),
- stop: () => DC(t),
- now: () => OC.isProcessing ? OC.timestamp : jC.now()
+ start: (e = !0) => AC.update(t, e),
+ stop: () => jC(t),
+ now: () => MC.isProcessing ? MC.timestamp : FC.now()
};
-}, hw = (e, t, n = 10) => {
+}, Ew = (e, t, n = 10) => {
let r = "", i = Math.max(Math.round(t / n), 2);
for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
return `linear(${r.substring(0, r.length - 2)})`;
-}, gw = 2e4;
-function _w(e) {
+}, Dw = 2e4;
+function Ow(e) {
let t = 0, n = e.next(t);
for (; !n.done && t < 2e4;) t += 50, n = e.next(t);
return t >= 2e4 ? Infinity : t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
-function Wre(e, t = 100, n) {
+function Nre(e, t = 100, n) {
let r = n({
...e,
keyframes: [0, t]
- }), i = Math.min(_w(r), gw);
+ }), i = Math.min(Ow(r), Dw);
return {
type: "keyframes",
ease: (e) => r.next(i * e).value / t,
- duration: /* @__PURE__ */ eC(i)
+ duration: /* @__PURE__ */ lC(i)
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/spring.mjs
-var vw = {
+var kw = {
stiffness: 100,
damping: 10,
mass: 1,
@@ -28123,31 +28123,31 @@ var vw = {
minDamping: .05,
maxDamping: 1
};
-function yw(e, t) {
+function Aw(e, t) {
return e * Math.sqrt(1 - t * t);
}
-var Gre = 12;
-function Kre(e, t, n) {
+var Pre = 12;
+function Fre(e, t, n) {
let r = n;
- for (let n = 1; n < Gre; n++) r -= e(r) / t(r);
+ for (let n = 1; n < Pre; n++) r -= e(r) / t(r);
return r;
}
-var bw = .001;
-function qre({ duration: e = vw.duration, bounce: t = vw.bounce, velocity: n = vw.velocity, mass: r = vw.mass }) {
+var jw = .001;
+function Ire({ duration: e = kw.duration, bounce: t = kw.bounce, velocity: n = kw.velocity, mass: r = kw.mass }) {
let i, a;
- vw.maxDuration;
+ kw.maxDuration;
let o = 1 - t;
- o = US(vw.minDamping, vw.maxDamping, o), e = US(vw.minDuration, vw.maxDuration, /* @__PURE__ */ eC(e)), o < 1 ? (i = (t) => {
- let r = t * o, i = r * e, a = r - n, s = yw(t, o), c = Math.exp(-i);
- return bw - a / s * c;
+ o = QS(kw.minDamping, kw.maxDamping, o), e = QS(kw.minDuration, kw.maxDuration, /* @__PURE__ */ lC(e)), o < 1 ? (i = (t) => {
+ let r = t * o, i = r * e, a = r - n, s = Aw(t, o), c = Math.exp(-i);
+ return jw - a / s * c;
}, a = (t) => {
- let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = yw(t ** 2, o);
- return (-i(t) + bw > 0 ? -1 : 1) * ((a - s) * c) / l;
+ let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = Aw(t ** 2, o);
+ return (-i(t) + jw > 0 ? -1 : 1) * ((a - s) * c) / l;
}) : (i = (t) => -.001 + Math.exp(-t * e) * ((t - n) * e + 1), a = (t) => Math.exp(-t * e) * ((n - t) * (e * e)));
- let s = 5 / e, c = Kre(i, a, s);
- if (e = /* @__PURE__ */ $S(e), isNaN(c)) return {
- stiffness: vw.stiffness,
- damping: vw.damping,
+ let s = 5 / e, c = Fre(i, a, s);
+ if (e = /* @__PURE__ */ cC(e), isNaN(c)) return {
+ stiffness: kw.stiffness,
+ damping: kw.damping,
duration: e
};
{
@@ -28159,47 +28159,47 @@ function qre({ duration: e = vw.duration, bounce: t = vw.bounce, velocity: n = v
};
}
}
-var Jre = ["duration", "bounce"], Yre = [
+var Lre = ["duration", "bounce"], Rre = [
"stiffness",
"damping",
"mass"
];
-function xw(e, t) {
+function Mw(e, t) {
return t.some((t) => e[t] !== void 0);
}
-function Xre(e) {
+function zre(e) {
let t = {
- velocity: vw.velocity,
- stiffness: vw.stiffness,
- damping: vw.damping,
- mass: vw.mass,
+ velocity: kw.velocity,
+ stiffness: kw.stiffness,
+ damping: kw.damping,
+ mass: kw.mass,
isResolvedFromDuration: !1,
...e
};
- if (!xw(e, Yre) && xw(e, Jre)) {
+ if (!Mw(e, Rre) && Mw(e, Lre)) {
if (t.velocity = 0, e.visualDuration) {
- let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * US(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
+ let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * QS(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
t = {
...t,
- mass: vw.mass,
+ mass: kw.mass,
stiffness: i,
damping: a
};
} else {
- let n = qre({
+ let n = Ire({
...e,
velocity: 0
});
t = {
...t,
...n,
- mass: vw.mass
+ mass: kw.mass
}, t.isResolvedFromDuration = !0;
}
}
return t;
}
-function Sw(e = vw.visualDuration, t = vw.bounce) {
+function Nw(e = kw.visualDuration, t = kw.bounce) {
let n = typeof e == "object" ? e : {
visualDuration: e,
keyframes: [0, 1],
@@ -28207,13 +28207,13 @@ function Sw(e = vw.visualDuration, t = vw.bounce) {
}, { restSpeed: r, restDelta: i } = n, a = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], s = {
done: !1,
value: a
- }, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = Xre({
+ }, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = zre({
...n,
- velocity: -/* @__PURE__ */ eC(n.velocity || 0)
- }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ eC(Math.sqrt(c / u)), v = Math.abs(g) < 5;
- r ||= v ? vw.restSpeed.granular : vw.restSpeed.default, i ||= v ? vw.restDelta.granular : vw.restDelta.default;
+ velocity: -/* @__PURE__ */ lC(n.velocity || 0)
+ }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ lC(Math.sqrt(c / u)), v = Math.abs(g) < 5;
+ r ||= v ? kw.restSpeed.granular : kw.restSpeed.default, i ||= v ? kw.restDelta.granular : kw.restDelta.default;
let y, b, x, S, C, w;
- if (h < 1) x = yw(_, h), S = (m + h * _ * g) / x, y = (e) => {
+ if (h < 1) x = Aw(_, h), S = (m + h * _ * g) / x, y = (e) => {
let t = Math.exp(-h * _ * e);
return o - t * (S * Math.sin(x * e) + g * Math.cos(x * e));
}, C = h * _ * S + g * x, w = h * _ * g - S * x, b = (e) => Math.exp(-h * _ * e) * (C * Math.sin(x * e) + w * Math.cos(x * e));
@@ -28235,42 +28235,42 @@ function Sw(e = vw.visualDuration, t = vw.bounce) {
}
let T = {
calculatedDuration: p && d || null,
- velocity: (e) => /* @__PURE__ */ $S(b(e)),
+ velocity: (e) => /* @__PURE__ */ cC(b(e)),
next: (e) => {
if (!p && h < 1) {
- let t = Math.exp(-h * _ * e), n = Math.sin(x * e), a = Math.cos(x * e), c = o - t * (S * n + g * a), l = /* @__PURE__ */ $S(t * (C * n + w * a));
+ let t = Math.exp(-h * _ * e), n = Math.sin(x * e), a = Math.cos(x * e), c = o - t * (S * n + g * a), l = /* @__PURE__ */ cC(t * (C * n + w * a));
return s.done = Math.abs(l) <= r && Math.abs(o - c) <= i, s.value = s.done ? o : c, s;
}
let t = y(e);
if (p) s.done = e >= d;
else {
- let n = /* @__PURE__ */ $S(b(e));
+ let n = /* @__PURE__ */ cC(b(e));
s.done = Math.abs(n) <= r && Math.abs(o - t) <= i;
}
return s.value = s.done ? o : t, s;
},
toString: () => {
- let e = Math.min(_w(T), gw), t = hw((t) => T.next(e * t).value, e, 30);
+ let e = Math.min(Ow(T), Dw), t = Ew((t) => T.next(e * t).value, e, 30);
return e + "ms " + t;
},
toTransition: () => {}
};
return T;
}
-Sw.applyToOptions = (e) => {
- let t = Wre(e, 100, Sw);
- return e.ease = t.ease, e.duration = /* @__PURE__ */ $S(t.duration), e.type = "keyframes", e;
+Nw.applyToOptions = (e) => {
+ let t = Nre(e, 100, Nw);
+ return e.ease = t.ease, e.duration = /* @__PURE__ */ cC(t.duration), e.type = "keyframes", e;
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
-var Zre = 5;
-function Cw(e, t, n) {
- let r = Math.max(t - Zre, 0);
- return /* @__PURE__ */ tC(n - e(r), t - r);
+var Bre = 5;
+function Pw(e, t, n) {
+ let r = Math.max(t - Bre, 0);
+ return /* @__PURE__ */ uC(n - e(r), t - r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
-function ww({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
+function Fw({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
let d = e[0], f = {
done: !1,
value: d
@@ -28280,9 +28280,9 @@ function ww({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
let t = v(e), n = y(e);
f.done = Math.abs(t) <= l, f.value = f.done ? _ : n;
}, x, S, C = (e) => {
- p(f.value) && (x = e, S = Sw({
+ p(f.value) && (x = e, S = Nw({
keyframes: [f.value, m(f.value)],
- velocity: Cw(y, e, f.value),
+ velocity: Pw(y, e, f.value),
damping: i,
stiffness: a,
restDelta: l,
@@ -28299,59 +28299,59 @@ function ww({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/interpolate.mjs
-function Qre(e, t, n) {
- let r = [], i = n || WS.mix || mw, a = e.length - 1;
+function Vre(e, t, n) {
+ let r = [], i = n || $S.mix || ww, a = e.length - 1;
for (let n = 0; n < a; n++) {
let a = i(e[n], e[n + 1]);
- t && (a = XS(Array.isArray(t) ? t[n] || YS : t, a)), r.push(a);
+ t && (a = aC(Array.isArray(t) ? t[n] || iC : t, a)), r.push(a);
}
return r;
}
-function Tw(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
+function Iw(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
let a = e.length;
if (t.length, a === 1) return () => t[0];
if (a === 2 && t[0] === t[1]) return () => t[1];
let o = e[0] === e[1];
e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
- let s = Qre(t, r, i), c = s.length, l = (n) => {
+ let s = Vre(t, r, i), c = s.length, l = (n) => {
if (o && n < e[0]) return t[0];
let r = 0;
if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
- let i = /* @__PURE__ */ ZS(e[r], e[r + 1], n);
+ let i = /* @__PURE__ */ oC(e[r], e[r + 1], n);
return s[r](i);
};
- return n ? (t) => l(US(e[0], e[a - 1], t)) : l;
+ return n ? (t) => l(QS(e[0], e[a - 1], t)) : l;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
-function $re(e, t) {
+function Hre(e, t) {
let n = e[e.length - 1];
for (let r = 1; r <= t; r++) {
- let i = /* @__PURE__ */ ZS(0, t, r);
- e.push(sw(n, 1, i));
+ let i = /* @__PURE__ */ oC(0, t, r);
+ e.push(pw(n, 1, i));
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
-function eie(e) {
+function Ure(e) {
let t = [0];
- return $re(t, e.length - 1), t;
+ return Hre(t, e.length - 1), t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
-function tie(e, t) {
+function Wre(e, t) {
return e.map((e) => e * t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
-function nie(e, t) {
- return e.map(() => t || vC).splice(0, e.length - 1);
+function Gre(e, t) {
+ return e.map(() => t || CC).splice(0, e.length - 1);
}
-function Ew({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
- let i = /* @__PURE__ */ yC(r) ? r.map(CC) : CC(r), a = {
+function Lw({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
+ let i = /* @__PURE__ */ lre(r) ? r.map(DC) : DC(r), a = {
done: !1,
value: t[0]
- }, o = Tw(tie(n && n.length === t.length ? n : eie(t), e), t, { ease: Array.isArray(i) ? i : nie(t, i) });
+ }, o = Iw(Wre(n && n.length === t.length ? n : Ure(t), e), t, { ease: Array.isArray(i) ? i : Gre(t, i) });
return {
calculatedDuration: e,
next: (t) => (a.value = o(t), a.done = t >= e, a)
@@ -28359,26 +28359,26 @@ function Ew({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
-var rie = (e) => e !== null;
-function Dw(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
- let a = e.filter(rie), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
+var Kre = (e) => e !== null;
+function Rw(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
+ let a = e.filter(Kre), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
return !o || r === void 0 ? a[o] : r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
-var iie = {
- decay: ww,
- inertia: ww,
- tween: Ew,
- keyframes: Ew,
- spring: Sw
+var qre = {
+ decay: Fw,
+ inertia: Fw,
+ tween: Lw,
+ keyframes: Lw,
+ spring: Nw
};
-function Ow(e) {
- typeof e.type == "string" && (e.type = iie[e.type]);
+function zw(e) {
+ typeof e.type == "string" && (e.type = qre[e.type]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
-var kw = class {
+var Bw = class {
constructor() {
this.updateFinished();
}
@@ -28396,21 +28396,21 @@ var kw = class {
then(e, t) {
return this.finished.then(e, t);
}
-}, aie = (e) => e / 100, Aw = class extends kw {
+}, Jre = (e) => e / 100, Vw = class extends Bw {
constructor(e) {
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
done: !1,
value: void 0
}, this.stop = () => {
let { motionValue: e } = this.options;
- e && e.updatedAt !== jC.now() && this.tick(jC.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
+ e && e.updatedAt !== FC.now() && this.tick(FC.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
}, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause();
}
initAnimation() {
let { options: e } = this;
- Ow(e);
- let { type: t = Ew, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Ew;
- s !== Ew && typeof o[0] != "number" && (this.mixKeyframes = XS(aie, mw(o[0], o[1])), o = [0, 100]);
+ zw(e);
+ let { type: t = Lw, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Lw;
+ s !== Lw && typeof o[0] != "number" && (this.mixKeyframes = aC(Jre, ww(o[0], o[1])), o = [0, 100]);
let c = s({
...e,
keyframes: o
@@ -28419,7 +28419,7 @@ var kw = class {
...e,
keyframes: [...o].reverse(),
velocity: -a
- })), c.calculatedDuration === null && (c.calculatedDuration = _w(c));
+ })), c.calculatedDuration === null && (c.calculatedDuration = Ow(c));
let { calculatedDuration: l } = c;
this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
}
@@ -28437,54 +28437,54 @@ var kw = class {
let v = this.currentTime, y = n;
if (u) {
let e = Math.min(this.currentTime, r) / o, t = Math.floor(e), n = e % 1;
- !n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = US(0, 1, n) * o;
+ !n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = QS(0, 1, n) * o;
}
let b;
_ ? (this.delayState.value = l[0], b = this.delayState) : b = y.next(v), i && !_ && (b.value = i(b.value));
let { done: x } = b;
!_ && s !== null && (x = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
let S = this.holdTime === null && (this.state === "finished" || this.state === "running" && x);
- return S && p !== ww && (b.value = Dw(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;
+ return S && p !== Fw && (b.value = Rw(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;
}
then(e, t) {
return this.finished.then(e, t);
}
get duration() {
- return /* @__PURE__ */ eC(this.calculatedDuration);
+ return /* @__PURE__ */ lC(this.calculatedDuration);
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ eC(e);
+ return this.duration + /* @__PURE__ */ lC(e);
}
get time() {
- return /* @__PURE__ */ eC(this.currentTime);
+ return /* @__PURE__ */ lC(this.currentTime);
}
set time(e) {
- e = /* @__PURE__ */ $S(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
+ e = /* @__PURE__ */ cC(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
}
getGeneratorVelocity() {
let e = this.currentTime;
if (e <= 0) return this.options.velocity || 0;
if (this.generator.velocity) return this.generator.velocity(e);
let t = this.generator.next(e).value;
- return Cw((e) => this.generator.next(e).value, e, t);
+ return Pw((e) => this.generator.next(e).value, e, t);
}
get speed() {
return this.playbackSpeed;
}
set speed(e) {
let t = this.playbackSpeed !== e;
- t && this.driver && this.updateTime(jC.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ eC(this.currentTime));
+ t && this.driver && this.updateTime(FC.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ lC(this.currentTime));
}
play() {
if (this.isStopped) return;
- let { driver: e = Ure, startTime: t } = this.options;
+ let { driver: e = Tw, startTime: t } = this.options;
this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
let n = this.driver.now();
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? n : this.startTime = n - this.holdTime, this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
}
pause() {
- this.state = "paused", this.updateTime(jC.now()), this.holdTime = this.currentTime;
+ this.state = "paused", this.updateTime(FC.now()), this.holdTime = this.currentTime;
}
complete() {
this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
@@ -28510,12 +28510,12 @@ var kw = class {
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
-function jw(e) {
+function Hw(e) {
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
-var Mw = (e) => e * 180 / Math.PI, Nw = (e) => Pw(Mw(Math.atan2(e[1], e[0]))), oie = {
+var Uw = (e) => e * 180 / Math.PI, Ww = (e) => Gw(Uw(Math.atan2(e[1], e[0]))), Yre = {
x: 4,
y: 5,
translateX: 4,
@@ -28523,54 +28523,54 @@ var Mw = (e) => e * 180 / Math.PI, Nw = (e) => Pw(Mw(Math.atan2(e[1], e[0]))), o
scaleX: 0,
scaleY: 3,
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
- rotate: Nw,
- rotateZ: Nw,
- skewX: (e) => Mw(Math.atan(e[1])),
- skewY: (e) => Mw(Math.atan(e[2])),
+ rotate: Ww,
+ rotateZ: Ww,
+ skewX: (e) => Uw(Math.atan(e[1])),
+ skewY: (e) => Uw(Math.atan(e[2])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
-}, Pw = (e) => (e %= 360, e < 0 && (e += 360), e), Fw = Nw, Iw = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Lw = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), sie = {
+}, Gw = (e) => (e %= 360, e < 0 && (e += 360), e), Kw = Ww, qw = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Jw = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), Xre = {
x: 12,
y: 13,
z: 14,
translateX: 12,
translateY: 13,
translateZ: 14,
- scaleX: Iw,
- scaleY: Lw,
- scale: (e) => (Iw(e) + Lw(e)) / 2,
- rotateX: (e) => Pw(Mw(Math.atan2(e[6], e[5]))),
- rotateY: (e) => Pw(Mw(Math.atan2(-e[2], e[0]))),
- rotateZ: Fw,
- rotate: Fw,
- skewX: (e) => Mw(Math.atan(e[4])),
- skewY: (e) => Mw(Math.atan(e[1])),
+ scaleX: qw,
+ scaleY: Jw,
+ scale: (e) => (qw(e) + Jw(e)) / 2,
+ rotateX: (e) => Gw(Uw(Math.atan2(e[6], e[5]))),
+ rotateY: (e) => Gw(Uw(Math.atan2(-e[2], e[0]))),
+ rotateZ: Kw,
+ rotate: Kw,
+ skewX: (e) => Uw(Math.atan(e[4])),
+ skewY: (e) => Uw(Math.atan(e[1])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
};
-function Rw(e) {
+function Yw(e) {
return +!!e.includes("scale");
}
-function zw(e, t) {
- if (!e || e === "none") return Rw(t);
+function Xw(e, t) {
+ if (!e || e === "none") return Yw(t);
let n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u), r, i;
- if (n) r = sie, i = n;
+ if (n) r = Xre, i = n;
else {
let t = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
- r = oie, i = t;
+ r = Yre, i = t;
}
- if (!i) return Rw(t);
- let a = r[t], o = i[1].split(",").map(lie);
+ if (!i) return Yw(t);
+ let a = r[t], o = i[1].split(",").map(Qre);
return typeof a == "function" ? a(o) : o[a];
}
-var cie = (e, t) => {
+var Zre = (e, t) => {
let { transform: n = "none" } = getComputedStyle(e);
- return zw(n, t);
+ return Xw(n, t);
};
-function lie(e) {
+function Qre(e) {
return parseFloat(e.trim());
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs
-var Bw = [
+var Zw = [
"transformPerspective",
"x",
"y",
@@ -28588,19 +28588,19 @@ var Bw = [
"skew",
"skewX",
"skewY"
-], Vw = /* @__PURE__ */ new Set([...Bw, "pathRotation"]), Hw = (e) => e === IC || e === YC, uie = /* @__PURE__ */ new Set([
+], Qw = /* @__PURE__ */ new Set([...Zw, "pathRotation"]), $w = (e) => e === BC || e === $C, $re = /* @__PURE__ */ new Set([
"x",
"y",
"z"
-]), die = Bw.filter((e) => !uie.has(e));
-function fie(e) {
+]), eie = Zw.filter((e) => !$re.has(e));
+function tie(e) {
let t = [];
- return die.forEach((n) => {
+ return eie.forEach((n) => {
let r = e.getValue(n);
r !== void 0 && (t.push([n, r.get()]), r.set(+!!n.startsWith("scale")));
}), t;
}
-var Uw = {
+var eT = {
width: ({ x: e }, { paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }) => {
let i = e.max - e.min;
return r === "border-box" ? i : i - parseFloat(t) - parseFloat(n);
@@ -28613,18 +28613,18 @@ var Uw = {
left: (e, { left: t }) => parseFloat(t),
bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
- x: (e, { transform: t }) => zw(t, "x"),
- y: (e, { transform: t }) => zw(t, "y")
+ x: (e, { transform: t }) => Xw(t, "x"),
+ y: (e, { transform: t }) => Xw(t, "y")
};
-Uw.translateX = Uw.x, Uw.translateY = Uw.y;
+eT.translateX = eT.x, eT.translateY = eT.y;
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs
-var Ww = /* @__PURE__ */ new Set(), Gw = !1, Kw = !1, qw = !1;
-function Jw() {
- if (Kw) {
- let e = Array.from(Ww).filter((e) => e.needsMeasurement), t = new Set(e.map((e) => e.element)), n = /* @__PURE__ */ new Map();
+var tT = /* @__PURE__ */ new Set(), nT = !1, rT = !1, iT = !1;
+function aT() {
+ if (rT) {
+ let e = Array.from(tT).filter((e) => e.needsMeasurement), t = new Set(e.map((e) => e.element)), n = /* @__PURE__ */ new Map();
t.forEach((e) => {
- let t = fie(e);
+ let t = tie(e);
t.length && (n.set(e, t), e.render());
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
e.render();
@@ -28636,22 +28636,22 @@ function Jw() {
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
});
}
- Kw = !1, Gw = !1, Ww.forEach((e) => e.complete(qw)), Ww.clear();
+ rT = !1, nT = !1, tT.forEach((e) => e.complete(iT)), tT.clear();
}
-function Yw() {
- Ww.forEach((e) => {
- e.readKeyframes(), e.needsMeasurement && (Kw = !0);
+function oT() {
+ tT.forEach((e) => {
+ e.readKeyframes(), e.needsMeasurement && (rT = !0);
});
}
-function pie() {
- qw = !0, Yw(), Jw(), qw = !1;
+function sT() {
+ iT = !0, oT(), aT(), iT = !1;
}
-var Xw = class {
+var cT = class {
constructor(e, t, n, r, i, a = !1) {
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
}
scheduleResolve() {
- this.state = "scheduled", this.isAsync ? (Ww.add(this), Gw || (Gw = !0, EC.read(Yw), EC.resolveKeyframes(Jw))) : (this.readKeyframes(), this.complete());
+ this.state = "scheduled", this.isAsync ? (tT.add(this), nT || (nT = !0, AC.read(oT), AC.resolveKeyframes(aT))) : (this.readKeyframes(), this.complete());
}
readKeyframes() {
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
@@ -28664,70 +28664,70 @@ var Xw = class {
}
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
}
- jw(e);
+ Hw(e);
}
setFinalKeyframe() {}
measureInitialState() {}
renderEndStyles() {}
measureEndState() {}
complete(e = !1) {
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), Ww.delete(this);
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), tT.delete(this);
}
cancel() {
- this.state === "scheduled" && (Ww.delete(this), this.state = "pending");
+ this.state === "scheduled" && (tT.delete(this), this.state = "pending");
}
resume() {
this.state === "pending" && this.scheduleResolve();
}
-}, Zw = (e) => e.startsWith("--");
+}, lT = (e) => e.startsWith("--");
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/style-set.mjs
-function Qw(e, t, n) {
- Zw(t) ? e.style.setProperty(t, n) : e.style[t] = n;
+function uT(e, t, n) {
+ lT(t) ? e.style.setProperty(t, n) : e.style[t] = n;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/flags.mjs
-var mie = {};
+var dT = {};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/memo.mjs
-function $w(e, t) {
- let n = /* @__PURE__ */ JS(e);
- return () => mie[t] ?? n();
+function fT(e, t) {
+ let n = /* @__PURE__ */ rC(e);
+ return () => dT[t] ?? n();
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
-var hie = /* @__PURE__ */ $w(() => window.ScrollTimeline !== void 0, "scrollTimeline"), eT = /*@__PURE__*/ $w(() => {
+var nie = /* @__PURE__ */ fT(() => window.ScrollTimeline !== void 0, "scrollTimeline"), pT = /*@__PURE__*/ fT(() => {
try {
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
} catch {
return !1;
}
return !0;
-}, "linearEasing"), tT = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, nT = {
+}, "linearEasing"), mT = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, hT = {
linear: "linear",
ease: "ease",
easeIn: "ease-in",
easeOut: "ease-out",
easeInOut: "ease-in-out",
- circIn: /*@__PURE__*/ tT([
+ circIn: /*@__PURE__*/ mT([
0,
.65,
.55,
1
]),
- circOut: /*@__PURE__*/ tT([
+ circOut: /*@__PURE__*/ mT([
.55,
0,
1,
.45
]),
- backIn: /*@__PURE__*/ tT([
+ backIn: /*@__PURE__*/ mT([
.31,
.01,
.66,
-.59
]),
- backOut: /*@__PURE__*/ tT([
+ backOut: /*@__PURE__*/ mT([
.33,
1.53,
.69,
@@ -28736,15 +28736,15 @@ var hie = /* @__PURE__ */ $w(() => window.ScrollTimeline !== void 0, "scrollTime
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
-function rT(e, t) {
- if (e) return typeof e == "function" ? eT() ? hw(e, t) : "ease-out" : /* @__PURE__ */ bC(e) ? tT(e) : Array.isArray(e) ? e.map((e) => rT(e, t) || nT.easeOut) : nT[e];
+function gT(e, t) {
+ if (e) return typeof e == "function" ? pT() ? Ew(e, t) : "ease-out" : /* @__PURE__ */ wC(e) ? mT(e) : Array.isArray(e) ? e.map((e) => gT(e, t) || hT.easeOut) : hT[e];
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
-function gie(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
+function rie(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
let u = { [t]: n };
c && (u.offset = c);
- let d = rT(s, i);
+ let d = gT(s, i);
Array.isArray(d) && (u.easing = d);
let f = {
delay: r,
@@ -28758,26 +28758,26 @@ function gie(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTy
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
-function iT(e) {
+function _T(e) {
return typeof e == "function" && "applyToOptions" in e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
-function _ie({ type: e, ...t }) {
- return iT(e) && eT() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
+function iie({ type: e, ...t }) {
+ return _T(e) && pT() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
-var aT = class extends kw {
+var vT = class extends Bw {
constructor(e) {
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e, e.type;
- let c = _ie(e);
- this.animation = gie(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
+ let c = iie(e);
+ this.animation = rie(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
if (this.finishedTime = this.time, !i) {
- let e = Dw(r, this.options, o, this.speed);
- this.updateMotionValue && this.updateMotionValue(e), Qw(t, n, e), this.animation.cancel();
+ let e = Rw(r, this.options, o, this.speed);
+ this.updateMotionValue && this.updateMotionValue(e), uT(t, n, e), this.animation.cancel();
}
s?.(), this.notifyFinished();
};
@@ -28808,18 +28808,18 @@ var aT = class extends kw {
}
get duration() {
let e = this.animation.effect?.getComputedTiming?.().duration || 0;
- return /* @__PURE__ */ eC(Number(e));
+ return /* @__PURE__ */ lC(Number(e));
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ eC(e);
+ return this.duration + /* @__PURE__ */ lC(e);
}
get time() {
- return /* @__PURE__ */ eC(Number(this.animation.currentTime) || 0);
+ return /* @__PURE__ */ lC(Number(this.animation.currentTime) || 0);
}
set time(e) {
let t = this.finishedTime !== null;
- this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ $S(e), t && this.animation.pause();
+ this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ cC(e), t && this.animation.pause();
}
get speed() {
return this.animation.playbackRate;
@@ -28837,24 +28837,24 @@ var aT = class extends kw {
this.manualStartTime = this.animation.startTime = e;
}
attachTimeline({ timeline: e, rangeStart: t, rangeEnd: n, observe: r }) {
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && hie() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), YS) : r(this);
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && nie() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), iC) : r(this);
}
-}, oT = {
- anticipate: fC,
- backInOut: dC,
- circInOut: hC
+}, yT = {
+ anticipate: vC,
+ backInOut: _C,
+ circInOut: xC
};
-function vie(e) {
- return e in oT;
+function aie(e) {
+ return e in yT;
}
-function yie(e) {
- typeof e.ease == "string" && vie(e.ease) && (e.ease = oT[e.ease]);
+function oie(e) {
+ typeof e.ease == "string" && aie(e.ease) && (e.ease = yT[e.ease]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs
-var sT = 10, bie = class extends aT {
+var bT = 10, sie = class extends vT {
constructor(e) {
- yie(e), Ow(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
+ oie(e), zw(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
}
updateMotionValue(e) {
let { motionValue: t, onUpdate: n, onComplete: r, element: i, ...a } = this.options;
@@ -28863,48 +28863,48 @@ var sT = 10, bie = class extends aT {
t.set(e);
return;
}
- let o = new Aw({
+ let o = new Vw({
...a,
autoplay: !1
- }), s = Math.max(sT, jC.now() - this.startTime), c = US(0, sT, s - sT), l = o.sample(s).value, { name: u } = this.options;
- i && u && Qw(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();
+ }), s = Math.max(bT, FC.now() - this.startTime), c = QS(0, bT, s - bT), l = o.sample(s).value, { name: u } = this.options;
+ i && u && uT(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();
}
-}, cT = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (iw.test(e) || e === "0") && !e.startsWith("url("));
+}, xT = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (uw.test(e) || e === "0") && !e.startsWith("url("));
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
-function xie(e) {
+function cie(e) {
let t = e[0];
if (e.length === 1) return !0;
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
}
-function Sie(e, t, n, r) {
+function lie(e, t, n, r) {
let i = e[0];
if (i === null) return !1;
if (t === "display" || t === "visibility") return !0;
- let a = e[e.length - 1], o = cT(i, t), s = cT(a, t);
- return `${t}${i}${a}${o ? a : i}`, !o || !s ? !1 : xie(e) || (n === "spring" || iT(n)) && r;
+ let a = e[e.length - 1], o = xT(i, t), s = xT(a, t);
+ return `${t}${i}${a}${o ? a : i}`, !o || !s ? !1 : cie(e) || (n === "spring" || _T(n)) && r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
-function lT(e) {
+function ST(e) {
e.duration = 0, e.type = "keyframes";
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
-var uT = /* @__PURE__ */ new Set([
+var CT = /* @__PURE__ */ new Set([
"opacity",
"clipPath",
"filter",
"transform",
"backgroundColor"
-]), Cie = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
-function wie(e) {
- for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && Cie.test(e[t])) return !0;
+]), uie = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
+function die(e) {
+ for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && uie.test(e[t])) return !0;
return !1;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs
-var Tie = /* @__PURE__ */ new Set([
+var fie = /* @__PURE__ */ new Set([
"color",
"backgroundColor",
"outlineColor",
@@ -28915,20 +28915,20 @@ var Tie = /* @__PURE__ */ new Set([
"borderRightColor",
"borderBottomColor",
"borderLeftColor"
-]), Eie = /*@__PURE__*/ JS(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
-function Die(e) {
+]), pie = /*@__PURE__*/ rC(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
+function mie(e) {
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e, c = t?.owner?.current;
if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;
let { onUpdate: l, transformTemplate: u } = t.owner.getProps();
- return Eie() && n && (uT.has(n) || Tie.has(n) && wie(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia";
+ return pie() && n && (CT.has(n) || fie.has(n) && die(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia";
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
-var Oie = 40, kie = class extends kw {
+var hie = 40, gie = class extends Bw {
constructor({ autoplay: e = !0, delay: t = 0, type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: a = "loop", keyframes: o, name: s, motionValue: c, element: l, ...u }) {
super(), this.stop = () => {
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
- }, this.createdAt = jC.now();
+ }, this.createdAt = FC.now();
let d = {
autoplay: e,
delay: t,
@@ -28940,33 +28940,33 @@ var Oie = 40, kie = class extends kw {
motionValue: c,
element: l,
...u
- }, f = l?.KeyframeResolver || Xw;
+ }, f = l?.KeyframeResolver || cT;
this.keyframeResolver = new f(o, (e, t, n) => this.onKeyframesResolved(e, t, d, !n), s, c, l), this.keyframeResolver?.scheduleResolve();
}
onKeyframesResolved(e, t, n, r) {
this.keyframeResolver = void 0;
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
- this.resolvedAt = jC.now();
+ this.resolvedAt = FC.now();
let u = !0;
- Sie(e, i, a, o) || (u = !1, (WS.instantAnimations || !s) && l?.(Dw(e, n, t)), e[0] = e[e.length - 1], lT(n), n.repeat = 0);
+ lie(e, i, a, o) || (u = !1, ($S.instantAnimations || !s) && l?.(Rw(e, n, t)), e[0] = e[e.length - 1], ST(n), n.repeat = 0);
let d = {
- startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > Oie ? this.resolvedAt : this.createdAt : void 0,
+ startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > hie ? this.resolvedAt : this.createdAt : void 0,
finalKeyframe: t,
...n,
keyframes: e
- }, f = u && !c && Die(d), p = d.motionValue?.owner?.current, m;
+ }, f = u && !c && mie(d), p = d.motionValue?.owner?.current, m;
if (f) try {
- m = new bie({
+ m = new sie({
...d,
element: p
});
} catch {
- m = new Aw(d);
+ m = new Vw(d);
}
- else m = new Aw(d);
+ else m = new Vw(d);
m.finished.then(() => {
this.notifyFinished();
- }).catch(YS), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
+ }).catch(iC), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
}
get finished() {
return this._animation ? this.animation.finished : this._finished;
@@ -28975,7 +28975,7 @@ var Oie = 40, kie = class extends kw {
return this.finished.finally(e).then(() => {});
}
get animation() {
- return this._animation || (this.keyframeResolver?.resume(), pie()), this._animation;
+ return this._animation || (this.keyframeResolver?.resume(), sT()), this._animation;
}
get duration() {
return this.animation.duration;
@@ -29016,7 +29016,7 @@ var Oie = 40, kie = class extends kw {
cancel() {
this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
}
-}, Aie = class {
+}, _ie = class {
constructor(e) {
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
}
@@ -29056,10 +29056,10 @@ var Oie = 40, kie = class extends kw {
return this.getAll("startTime");
}
get duration() {
- return dT(this.animations, "duration");
+ return wT(this.animations, "duration");
}
get iterationDuration() {
- return dT(this.animations, "iterationDuration");
+ return wT(this.animations, "iterationDuration");
}
runAll(e) {
this.animations.forEach((t) => t[e]());
@@ -29077,7 +29077,7 @@ var Oie = 40, kie = class extends kw {
this.runAll("complete");
}
};
-function dT(e, t) {
+function wT(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) {
let i = e[r][t];
@@ -29087,32 +29087,32 @@ function dT(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
-var jie = class extends Aie {
+var vie = class extends _ie {
then(e, t) {
return this.finished.finally(e).then(() => {});
}
-}, fT = /* @__PURE__ */ new WeakMap(), Mie = (e, t = "") => `${e}:${t}`;
-function Nie(e) {
- let t = fT.get(e);
- return t || (t = /* @__PURE__ */ new Map(), fT.set(e, t)), t;
+}, TT = /* @__PURE__ */ new WeakMap(), yie = (e, t = "") => `${e}:${t}`;
+function bie(e) {
+ let t = TT.get(e);
+ return t || (t = /* @__PURE__ */ new Map(), TT.set(e, t)), t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
-function pT(e, t, n, r = 0, i = 1) {
+function ET(e, t, n, r = 0, i = 1) {
let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/index.mjs
-var mT = 30, Pie = (e) => !isNaN(parseFloat(e)), hT = { current: void 0 }, Fie = class {
+var DT = 30, xie = (e) => !isNaN(parseFloat(e)), OT = { current: void 0 }, Sie = class {
constructor(e, t = {}) {
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
- let t = jC.now();
+ let t = FC.now();
if (this.updatedAt !== t && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(e), this.current !== this.prev && (this.events.change?.notify(this.current), this.dependents)) for (let e of this.dependents) e.dirty();
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
}
setCurrent(e) {
- this.current = e, this.updatedAt = jC.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Pie(this.current));
+ this.current = e, this.updatedAt = FC.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = xie(this.current));
}
setPrevFrameValue(e = this.current) {
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -29121,10 +29121,10 @@ var mT = 30, Pie = (e) => !isNaN(parseFloat(e)), hT = { current: void 0 }, Fie =
return this.on("change", e);
}
on(e, t) {
- this.events[e] || (this.events[e] = new QS());
+ this.events[e] || (this.events[e] = new sC());
let n = this.events[e].add(t);
return e === "change" ? () => {
- n(), EC.read(() => {
+ n(), AC.read(() => {
this.events.change.getSize() || this.stop();
});
} : n;
@@ -29154,16 +29154,16 @@ var mT = 30, Pie = (e) => !isNaN(parseFloat(e)), hT = { current: void 0 }, Fie =
this.dependents && this.dependents.delete(e);
}
get() {
- return hT.current && hT.current.push(this), this.current;
+ return OT.current && OT.current.push(this), this.current;
}
getPrevious() {
return this.prev;
}
getVelocity() {
- let e = jC.now();
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > mT) return 0;
- let t = Math.min(this.updatedAt - this.prevUpdatedAt, mT);
- return /* @__PURE__ */ tC(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
+ let e = FC.now();
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > DT) return 0;
+ let t = Math.min(this.updatedAt - this.prevUpdatedAt, DT);
+ return /* @__PURE__ */ uC(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
}
start(e) {
return this.stop(), new Promise((t) => {
@@ -29185,12 +29185,12 @@ var mT = 30, Pie = (e) => !isNaN(parseFloat(e)), hT = { current: void 0 }, Fie =
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
}
};
-function gT(e, t) {
- return new Fie(e, t);
+function kT(e, t) {
+ return new Sie(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
-function _T(e, t) {
+function AT(e, t) {
if (e?.inherit && t) {
let { inherit: n, ...r } = e;
return {
@@ -29202,26 +29202,26 @@ function _T(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
-function vT(e, t) {
+function jT(e, t) {
let n = e?.[t] ?? e?.default ?? e;
- return n === e ? n : _T(n, e);
+ return n === e ? n : AT(n, e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
-var Iie = {
+var Cie = {
type: "spring",
stiffness: 500,
damping: 25,
restSpeed: 10
-}, Lie = (e) => ({
+}, wie = (e) => ({
type: "spring",
stiffness: 550,
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
restSpeed: 10
-}), Rie = {
+}), Tie = {
type: "keyframes",
duration: .8
-}, zie = {
+}, Eie = {
type: "keyframes",
ease: [
.25,
@@ -29230,7 +29230,7 @@ var Iie = {
1
],
duration: .3
-}, Bie = (e, { keyframes: t }) => t.length > 2 ? Rie : Vw.has(e) ? e.startsWith("scale") ? Lie(t[1]) : Iie : zie, Vie = /* @__PURE__ */ new Set([
+}, Die = (e, { keyframes: t }) => t.length > 2 ? Tie : Qw.has(e) ? e.startsWith("scale") ? wie(t[1]) : Cie : Eie, Oie = /* @__PURE__ */ new Set([
"when",
"delay",
"delayChildren",
@@ -29242,15 +29242,15 @@ var Iie = {
"from",
"elapsed"
]);
-function Hie(e) {
- for (let t in e) if (!Vie.has(t)) return !0;
+function kie(e) {
+ for (let t in e) if (!Oie.has(t)) return !0;
return !1;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
-var yT = (e, t, n, r = {}, i, a) => (o) => {
- let s = vT(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
- l -= /* @__PURE__ */ $S(c);
+var MT = (e, t, n, r = {}, i, a) => (o) => {
+ let s = jT(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
+ l -= /* @__PURE__ */ cC(c);
let u = {
keyframes: Array.isArray(n) ? n : [null, n],
ease: "easeOut",
@@ -29267,160 +29267,160 @@ var yT = (e, t, n, r = {}, i, a) => (o) => {
motionValue: t,
element: a ? void 0 : i
};
- Hie(s) || Object.assign(u, Bie(e, u)), u.duration &&= /* @__PURE__ */ $S(u.duration), u.repeatDelay &&= /* @__PURE__ */ $S(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
+ kie(s) || Object.assign(u, Die(e, u)), u.duration &&= /* @__PURE__ */ cC(u.duration), u.repeatDelay &&= /* @__PURE__ */ cC(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
let d = !1;
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (lT(u), u.delay === 0 && (d = !0)), (WS.instantAnimations || WS.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, lT(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
- let e = Dw(u.keyframes, s);
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (ST(u), u.delay === 0 && (d = !0)), ($S.instantAnimations || $S.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, ST(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
+ let e = Rw(u.keyframes, s);
if (e !== void 0) {
- EC.update(() => {
+ AC.update(() => {
u.onUpdate(e), u.onComplete();
});
return;
}
}
- return s.isSync ? new Aw(u) : new kie(u);
-}, Uie = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
-function Wie(e) {
- let t = Uie.exec(e);
+ return s.isSync ? new Vw(u) : new gie(u);
+}, Aie = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
+function jie(e) {
+ let t = Aie.exec(e);
if (!t) return [,];
let [, n, r, i] = t;
return [`--${n ?? r}`, i];
}
-function bT(e, t, n = 1) {
+function NT(e, t, n = 1) {
`${e}`;
- let [r, i] = Wie(e);
+ let [r, i] = jie(e);
if (!r) return;
let a = window.getComputedStyle(t).getPropertyValue(r);
if (a) {
let e = a.trim();
- return GS(e) ? parseFloat(e) : e;
+ return eC(e) ? parseFloat(e) : e;
}
- return PC(i) ? bT(i, t, n + 1) : i;
+ return RC(i) ? NT(i, t, n + 1) : i;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
-function xT(e) {
+function PT(e) {
let t = [{}, {}];
return e?.values.forEach((e, n) => {
t[0][n] = e.get(), t[1][n] = e.getVelocity();
}), t;
}
-function ST(e, t, n, r) {
+function FT(e, t, n, r) {
if (typeof t == "function") {
- let [i, a] = xT(r);
+ let [i, a] = PT(r);
t = t(n === void 0 ? e.custom : n, i, a);
}
if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
- let [i, a] = xT(r);
+ let [i, a] = PT(r);
t = t(n === void 0 ? e.custom : n, i, a);
}
return t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
-function CT(e, t, n) {
+function IT(e, t, n) {
let r = e.getProps();
- return ST(r, t, n === void 0 ? r.custom : n, e);
+ return FT(r, t, n === void 0 ? r.custom : n, e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/keys-position.mjs
-var wT = /* @__PURE__ */ new Set([
+var LT = /* @__PURE__ */ new Set([
"width",
"height",
"top",
"left",
"right",
"bottom",
- ...Bw
-]), TT = (e) => Array.isArray(e);
+ ...Zw
+]), RT = (e) => Array.isArray(e);
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/setters.mjs
-function Gie(e, t, n) {
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, gT(n));
+function Mie(e, t, n) {
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, kT(n));
}
-function Kie(e) {
- return TT(e) ? e[e.length - 1] || 0 : e;
+function Nie(e) {
+ return RT(e) ? e[e.length - 1] || 0 : e;
}
-function qie(e, t) {
- let { transitionEnd: n = {}, transition: r = {}, ...i } = CT(e, t) || {};
+function Pie(e, t) {
+ let { transitionEnd: n = {}, transition: r = {}, ...i } = IT(e, t) || {};
i = {
...i,
...n
};
- for (let t in i) Gie(e, t, Kie(i[t]));
+ for (let t in i) Mie(e, t, Nie(i[t]));
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
-var ET = (e) => !!(e && e.getVelocity);
+var zT = (e) => !!(e && e.getVelocity);
//#endregion
//#region node_modules/motion-dom/dist/es/value/will-change/is.mjs
-function Jie(e) {
- return !!(ET(e) && e.add);
+function Fie(e) {
+ return !!(zT(e) && e.add);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
-function DT(e, t) {
+function BT(e, t) {
let n = e.getValue("willChange");
- if (Jie(n)) return n.add(t);
- if (!n && WS.WillChange) {
- let n = new WS.WillChange("auto");
+ if (Fie(n)) return n.add(t);
+ if (!n && $S.WillChange) {
+ let n = new $S.WillChange("auto");
e.addValue("willChange", n), n.add(t);
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
-function OT(e) {
+function VT(e) {
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
}
-var kT = "data-" + OT("framerAppearId");
+var HT = "data-" + VT("framerAppearId");
//#endregion
//#region node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
-function AT(e) {
- return e.props[kT];
+function UT(e) {
+ return e.props[HT];
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
-function Yie({ protectedKeys: e, needsAnimating: t }, n) {
+function Iie({ protectedKeys: e, needsAnimating: t }, n) {
let r = e.hasOwnProperty(n) && t[n] !== !0;
return t[n] = !1, r;
}
-function jT(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
+function WT(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
- a = a ? _T(a, c) : c;
+ a = a ? AT(a, c) : c;
let l = a?.reduceMotion, u = a?.skipAnimations;
r && (a = r);
let d = [], f = i && e.animationState && e.animationState.getState()[i], p = a?.path;
p && p.animateVisualElement(e, s, a, n, d);
for (let t in s) {
let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
- if (i === void 0 || f && Yie(f, t)) continue;
+ if (i === void 0 || f && Iie(f, t)) continue;
let o = {
delay: n,
- ...vT(a || {}, t)
+ ...jT(a || {}, t)
};
u && (o.skipAnimations = !0);
let c = r.get();
if (c !== void 0 && !r.isAnimating() && !Array.isArray(i) && i === c && !o.velocity) {
- EC.update(() => r.set(i));
+ AC.update(() => r.set(i));
continue;
}
let p = !1;
if (window.MotionHandoffAnimation) {
- let n = AT(e);
+ let n = UT(e);
if (n) {
- let e = window.MotionHandoffAnimation(n, t, EC);
+ let e = window.MotionHandoffAnimation(n, t, AC);
e !== null && (o.startTime = e, p = !0);
}
}
- DT(e, t);
+ BT(e, t);
let m = l ?? e.shouldReduceMotion;
- r.start(yT(t, r, i, m && wT.has(t) ? { type: !1 } : o, e, p));
+ r.start(MT(t, r, i, m && LT.has(t) ? { type: !1 } : o, e, p));
let h = r.animation;
h && d.push(h);
}
if (o) {
- let t = () => EC.update(() => {
- o && qie(e, o);
+ let t = () => AC.update(() => {
+ o && Pie(e, o);
});
d.length ? Promise.all(d).then(t) : t();
}
@@ -29428,12 +29428,12 @@ function jT(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
-function MT(e, t, n = {}) {
- let r = CT(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0), { transition: i = e.getDefaultTransition() || {} } = r || {};
+function GT(e, t, n = {}) {
+ let r = IT(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0), { transition: i = e.getDefaultTransition() || {} } = r || {};
n.transitionOverride && (i = n.transitionOverride);
- let a = r ? () => Promise.all(jT(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {
+ let a = r ? () => Promise.all(WT(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {
let { delayChildren: a = 0, staggerChildren: o, staggerDirection: s } = i;
- return Xie(e, t, r, a, o, s, n);
+ return Lie(e, t, r, a, o, s, n);
} : () => Promise.resolve(), { when: s } = i;
if (s) {
let [e, t] = s === "beforeChildren" ? [a, o] : [o, a];
@@ -29441,26 +29441,26 @@ function MT(e, t, n = {}) {
}
return Promise.all([a(), o(n.delay)]);
}
-function Xie(e, t, n = 0, r = 0, i = 0, a = 1, o) {
+function Lie(e, t, n = 0, r = 0, i = 0, a = 1, o) {
let s = [];
- for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(MT(c, t, {
+ for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(GT(c, t, {
...o,
- delay: n + (typeof r == "function" ? 0 : r) + pT(e.variantChildren, c, r, i, a)
+ delay: n + (typeof r == "function" ? 0 : r) + ET(e.variantChildren, c, r, i, a)
}).then(() => c.notify("AnimationComplete", t)));
return Promise.all(s);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
-function Zie(e, t, n = {}) {
+function Rie(e, t, n = {}) {
e.notify("AnimationStart", t);
let r;
if (Array.isArray(t)) {
- let i = t.map((t) => MT(e, t, n));
+ let i = t.map((t) => GT(e, t, n));
r = Promise.all(i);
- } else if (typeof t == "string") r = MT(e, t, n);
+ } else if (typeof t == "string") r = GT(e, t, n);
else {
- let i = typeof t == "function" ? CT(e, t, n.custom) : t;
- r = Promise.all(jT(e, i, n));
+ let i = typeof t == "function" ? IT(e, t, n.custom) : t;
+ r = Promise.all(WT(e, i, n));
}
return r.then(() => {
e.notify("AnimationComplete", t);
@@ -29468,176 +29468,176 @@ function Zie(e, t, n = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/auto.mjs
-var Qie = {
+var zie = {
test: (e) => e === "auto",
parse: (e) => e
-}, NT = (e) => (t) => t.test(e), PT = [
- IC,
- YC,
- JC,
- qC,
- wre,
- Cre,
- Qie
-], FT = (e) => PT.find(NT(e));
+}, KT = (e) => (t) => t.test(e), qT = [
+ BC,
+ $C,
+ QC,
+ ZC,
+ tw,
+ ew,
+ zie
+], JT = (e) => qT.find(KT(e));
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
-function $ie(e) {
- return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || qS(e);
+function Bie(e) {
+ return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || nC(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/complex/filter.mjs
-var eae = /* @__PURE__ */ new Set([
+var Vie = /* @__PURE__ */ new Set([
"brightness",
"contrast",
"saturate",
"opacity"
]);
-function tae(e) {
+function Hie(e) {
let [t, n] = e.slice(0, -1).split("(");
if (t === "drop-shadow") return e;
- let [r] = n.match(BC) || [];
+ let [r] = n.match(WC) || [];
if (!r) return e;
- let i = n.replace(r, ""), a = +!!eae.has(t);
+ let i = n.replace(r, ""), a = +!!Vie.has(t);
return r !== n && (a *= 100), t + "(" + a + i + ")";
}
-var nae = /\b([a-z-]*)\(.*?\)/gu, IT = {
- ...iw,
+var Uie = /\b([a-z-]*)\(.*?\)/gu, YT = {
+ ...uw,
getAnimatableNone: (e) => {
- let t = e.match(nae);
- return t ? t.map(tae).join(" ") : e;
+ let t = e.match(Uie);
+ return t ? t.map(Hie).join(" ") : e;
}
-}, LT = {
- ...iw,
+}, XT = {
+ ...uw,
getAnimatableNone: (e) => {
- let t = iw.parse(e);
- return iw.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
+ let t = uw.parse(e);
+ return uw.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
...e,
alpha: 1
} : e));
}
-}, RT = {
- ...IC,
+}, ZT = {
+ ...BC,
transform: Math.round
-}, zT = {
- borderWidth: YC,
- borderTopWidth: YC,
- borderRightWidth: YC,
- borderBottomWidth: YC,
- borderLeftWidth: YC,
- borderRadius: YC,
- borderTopLeftRadius: YC,
- borderTopRightRadius: YC,
- borderBottomRightRadius: YC,
- borderBottomLeftRadius: YC,
- width: YC,
- maxWidth: YC,
- height: YC,
- maxHeight: YC,
- top: YC,
- right: YC,
- bottom: YC,
- left: YC,
- inset: YC,
- insetBlock: YC,
- insetBlockStart: YC,
- insetBlockEnd: YC,
- insetInline: YC,
- insetInlineStart: YC,
- insetInlineEnd: YC,
- padding: YC,
- paddingTop: YC,
- paddingRight: YC,
- paddingBottom: YC,
- paddingLeft: YC,
- paddingBlock: YC,
- paddingBlockStart: YC,
- paddingBlockEnd: YC,
- paddingInline: YC,
- paddingInlineStart: YC,
- paddingInlineEnd: YC,
- margin: YC,
- marginTop: YC,
- marginRight: YC,
- marginBottom: YC,
- marginLeft: YC,
- marginBlock: YC,
- marginBlockStart: YC,
- marginBlockEnd: YC,
- marginInline: YC,
- marginInlineStart: YC,
- marginInlineEnd: YC,
- fontSize: YC,
- backgroundPositionX: YC,
- backgroundPositionY: YC,
- rotate: qC,
- pathRotation: qC,
- rotateX: qC,
- rotateY: qC,
- rotateZ: qC,
- scale: RC,
- scaleX: RC,
- scaleY: RC,
- scaleZ: RC,
- skew: qC,
- skewX: qC,
- skewY: qC,
- distance: YC,
- translateX: YC,
- translateY: YC,
- translateZ: YC,
- x: YC,
- y: YC,
- z: YC,
- perspective: YC,
- transformPerspective: YC,
- opacity: LC,
- originX: XC,
- originY: XC,
- originZ: YC,
- zIndex: RT,
- fillOpacity: LC,
- strokeOpacity: LC,
- numOctaves: RT
-}, rae = {
- ...zT,
- color: QC,
- backgroundColor: QC,
- outlineColor: QC,
- fill: QC,
- stroke: QC,
- borderColor: QC,
- borderTopColor: QC,
- borderRightColor: QC,
- borderBottomColor: QC,
- borderLeftColor: QC,
- filter: IT,
- WebkitFilter: IT,
- mask: LT,
- WebkitMask: LT
-}, BT = (e) => rae[e], iae = /*@__PURE__*/ new Set([IT, LT]);
-function VT(e, t) {
- let n = BT(e);
- return iae.has(n) || (n = iw), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
+}, QT = {
+ borderWidth: $C,
+ borderTopWidth: $C,
+ borderRightWidth: $C,
+ borderBottomWidth: $C,
+ borderLeftWidth: $C,
+ borderRadius: $C,
+ borderTopLeftRadius: $C,
+ borderTopRightRadius: $C,
+ borderBottomRightRadius: $C,
+ borderBottomLeftRadius: $C,
+ width: $C,
+ maxWidth: $C,
+ height: $C,
+ maxHeight: $C,
+ top: $C,
+ right: $C,
+ bottom: $C,
+ left: $C,
+ inset: $C,
+ insetBlock: $C,
+ insetBlockStart: $C,
+ insetBlockEnd: $C,
+ insetInline: $C,
+ insetInlineStart: $C,
+ insetInlineEnd: $C,
+ padding: $C,
+ paddingTop: $C,
+ paddingRight: $C,
+ paddingBottom: $C,
+ paddingLeft: $C,
+ paddingBlock: $C,
+ paddingBlockStart: $C,
+ paddingBlockEnd: $C,
+ paddingInline: $C,
+ paddingInlineStart: $C,
+ paddingInlineEnd: $C,
+ margin: $C,
+ marginTop: $C,
+ marginRight: $C,
+ marginBottom: $C,
+ marginLeft: $C,
+ marginBlock: $C,
+ marginBlockStart: $C,
+ marginBlockEnd: $C,
+ marginInline: $C,
+ marginInlineStart: $C,
+ marginInlineEnd: $C,
+ fontSize: $C,
+ backgroundPositionX: $C,
+ backgroundPositionY: $C,
+ rotate: ZC,
+ pathRotation: ZC,
+ rotateX: ZC,
+ rotateY: ZC,
+ rotateZ: ZC,
+ scale: HC,
+ scaleX: HC,
+ scaleY: HC,
+ scaleZ: HC,
+ skew: ZC,
+ skewX: ZC,
+ skewY: ZC,
+ distance: $C,
+ translateX: $C,
+ translateY: $C,
+ translateZ: $C,
+ x: $C,
+ y: $C,
+ z: $C,
+ perspective: $C,
+ transformPerspective: $C,
+ opacity: VC,
+ originX: nw,
+ originY: nw,
+ originZ: $C,
+ zIndex: ZT,
+ fillOpacity: VC,
+ strokeOpacity: VC,
+ numOctaves: ZT
+}, Wie = {
+ ...QT,
+ color: iw,
+ backgroundColor: iw,
+ outlineColor: iw,
+ fill: iw,
+ stroke: iw,
+ borderColor: iw,
+ borderTopColor: iw,
+ borderRightColor: iw,
+ borderBottomColor: iw,
+ borderLeftColor: iw,
+ filter: YT,
+ WebkitFilter: YT,
+ mask: XT,
+ WebkitMask: XT
+}, $T = (e) => Wie[e], Gie = /*@__PURE__*/ new Set([YT, XT]);
+function eE(e, t) {
+ let n = $T(e);
+ return Gie.has(n) || (n = uw), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
-var aae = /* @__PURE__ */ new Set([
+var Kie = /* @__PURE__ */ new Set([
"auto",
"none",
"0"
]);
-function oae(e, t, n) {
+function qie(e, t, n) {
let r = 0, i;
for (; r < e.length && !i;) {
let t = e[r];
- typeof t == "string" && !aae.has(t) && nw(t).values.length && (i = e[r]), r++;
+ typeof t == "string" && !Kie.has(t) && cw(t).values.length && (i = e[r]), r++;
}
- if (i && n) for (let r of t) e[r] = VT(n, i);
+ if (i && n) for (let r of t) e[r] = eE(n, i);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
-var sae = class extends Xw {
+var Jie = class extends cT {
constructor(e, t, n, r, i) {
super(e, t, n, r, i, !0);
}
@@ -29647,34 +29647,34 @@ var sae = class extends Xw {
super.readKeyframes();
for (let n = 0; n < e.length; n++) {
let r = e[n];
- if (typeof r == "string" && (r = r.trim(), PC(r))) {
- let i = bT(r, t.current);
+ if (typeof r == "string" && (r = r.trim(), RC(r))) {
+ let i = NT(r, t.current);
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
}
}
- if (this.resolveNoneKeyframes(), !wT.has(n) || e.length !== 2) return;
- let [r, i] = e, a = FT(r), o = FT(i);
- if (FC(r) !== FC(i) && Uw[n]) {
+ if (this.resolveNoneKeyframes(), !LT.has(n) || e.length !== 2) return;
+ let [r, i] = e, a = JT(r), o = JT(i);
+ if (zC(r) !== zC(i) && eT[n]) {
this.needsMeasurement = !0;
return;
}
if (a !== o) {
- if (Hw(a) && Hw(o)) for (let t = 0; t < e.length; t++) {
+ if ($w(a) && $w(o)) for (let t = 0; t < e.length; t++) {
let n = e[t];
typeof n == "string" && (e[t] = parseFloat(n));
}
- else Uw[n] && (this.needsMeasurement = !0);
+ else eT[n] && (this.needsMeasurement = !0);
}
}
resolveNoneKeyframes() {
let { unresolvedKeyframes: e, name: t } = this, n = [];
- for (let t = 0; t < e.length; t++) (e[t] === null || $ie(e[t])) && n.push(t);
- n.length && oae(e, n, t);
+ for (let t = 0; t < e.length; t++) (e[t] === null || Bie(e[t])) && n.push(t);
+ n.length && qie(e, n, t);
}
measureInitialState() {
let { element: e, unresolvedKeyframes: t, name: n } = this;
if (!e || !e.current) return;
- n === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Uw[n](e.measureViewportBox(), window.getComputedStyle(e.current)), t[0] = this.measuredOrigin;
+ n === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = eT[n](e.measureViewportBox(), window.getComputedStyle(e.current)), t[0] = this.measuredOrigin;
let r = t[t.length - 1];
r !== void 0 && e.getValue(n, r).jump(r, !1);
}
@@ -29684,23 +29684,23 @@ var sae = class extends Xw {
let r = e.getValue(t);
r && r.jump(this.measuredOrigin, !1);
let i = n.length - 1, a = n[i];
- n[i] = Uw[t](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([t, n]) => {
+ n[i] = eT[t](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([t, n]) => {
e.getValue(t).set(n);
}), this.resolveNoneKeyframes();
}
-}, HT = [
+}, tE = [
"borderTopLeftRadius",
"borderTopRightRadius",
"borderBottomRightRadius",
"borderBottomLeftRadius"
-], cae = /* @__PURE__ */ new Set([
+], Yie = /* @__PURE__ */ new Set([
"borderWidth",
"borderTopWidth",
"borderRightWidth",
"borderBottomWidth",
"borderLeftWidth",
"borderRadius",
- ...HT,
+ ...tE,
"width",
"maxWidth",
"height",
@@ -29744,12 +29744,12 @@ var sae = class extends Xw {
]);
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs
-function lae(e, t) {
- for (let n = 0; n < e.length; n++) typeof e[n] == "number" && cae.has(t) && (e[n] = e[n] + "px");
+function Xie(e, t) {
+ for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Yie.has(t) && (e[n] = e[n] + "px");
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
-function UT(e, t, n) {
+function nE(e, t, n) {
if (e == null) return [];
if (e instanceof EventTarget) return [e];
if (typeof e == "string") {
@@ -29762,34 +29762,34 @@ function UT(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
-var WT = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
+var rE = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-html-element.mjs
-function GT(e) {
- return KS(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
+function iE(e) {
+ return tC(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/microtask.mjs
-var { schedule: KT, cancel: uae } = /* @__PURE__ */ TC(queueMicrotask, !1), qT = {
+var { schedule: aE, cancel: Zie } = /* @__PURE__ */ kC(queueMicrotask, !1), oE = {
x: !1,
y: !1
};
-function JT() {
- return qT.x || qT.y;
+function sE() {
+ return oE.x || oE.y;
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
-function dae(e) {
- return e === "x" || e === "y" ? qT[e] ? null : (qT[e] = !0, () => {
- qT[e] = !1;
- }) : qT.x || qT.y ? null : (qT.x = qT.y = !0, () => {
- qT.x = qT.y = !1;
+function Qie(e) {
+ return e === "x" || e === "y" ? oE[e] ? null : (oE[e] = !0, () => {
+ oE[e] = !1;
+ }) : oE.x || oE.y ? null : (oE.x = oE.y = !0, () => {
+ oE.x = oE.y = !1;
});
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
-function YT(e, t) {
- let n = UT(e), r = new AbortController();
+function cE(e, t) {
+ let n = nE(e), r = new AbortController();
return [
n,
{
@@ -29802,11 +29802,11 @@ function YT(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/hover.mjs
-function fae(e) {
- return !(e.pointerType === "touch" || JT());
+function lE(e) {
+ return !(e.pointerType === "touch" || sE());
}
-function pae(e, t, n = {}) {
- let [r, i, a] = YT(e, n);
+function uE(e, t, n = {}) {
+ let [r, i, a] = cE(e, n);
return r.forEach((e) => {
let n = !1, r = !1, a, o = () => {
e.removeEventListener("pointerleave", u);
@@ -29826,7 +29826,7 @@ function pae(e, t, n = {}) {
}
};
e.addEventListener("pointerenter", (n) => {
- if (!fae(n)) return;
+ if (!lE(n)) return;
r = !1;
let o = t(e, n);
typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
@@ -29835,130 +29835,130 @@ function pae(e, t, n = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
-var XT = (e, t) => t ? e === t || XT(e, t.parentElement) : !1, ZT = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, mae = /* @__PURE__ */ new Set([
+var dE = (e, t) => t ? e === t || dE(e, t.parentElement) : !1, fE = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, pE = /* @__PURE__ */ new Set([
"BUTTON",
"INPUT",
"SELECT",
"TEXTAREA",
"A"
]);
-function hae(e) {
- return mae.has(e.tagName) || e.isContentEditable === !0;
+function mE(e) {
+ return pE.has(e.tagName) || e.isContentEditable === !0;
}
-var gae = /* @__PURE__ */ new Set([
+var hE = /* @__PURE__ */ new Set([
"INPUT",
"SELECT",
"TEXTAREA"
]);
-function _ae(e) {
- return gae.has(e.tagName) || e.isContentEditable === !0;
+function gE(e) {
+ return hE.has(e.tagName) || e.isContentEditable === !0;
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs
-var QT = /* @__PURE__ */ new WeakSet();
+var _E = /* @__PURE__ */ new WeakSet();
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
-function $T(e) {
+function vE(e) {
return (t) => {
t.key === "Enter" && e(t);
};
}
-function eE(e, t) {
+function yE(e, t) {
e.dispatchEvent(new PointerEvent("pointer" + t, {
isPrimary: !0,
bubbles: !0
}));
}
-var vae = (e, t) => {
+var bE = (e, t) => {
let n = e.currentTarget;
if (!n) return;
- let r = $T(() => {
- if (QT.has(n)) return;
- eE(n, "down");
- let e = $T(() => {
- eE(n, "up");
+ let r = vE(() => {
+ if (_E.has(n)) return;
+ yE(n, "down");
+ let e = vE(() => {
+ yE(n, "up");
});
- n.addEventListener("keyup", e, t), n.addEventListener("blur", () => eE(n, "cancel"), t);
+ n.addEventListener("keyup", e, t), n.addEventListener("blur", () => yE(n, "cancel"), t);
});
n.addEventListener("keydown", r, t), n.addEventListener("blur", () => n.removeEventListener("keydown", r), t);
};
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/index.mjs
-function tE(e) {
- return ZT(e) && !JT();
+function xE(e) {
+ return fE(e) && !sE();
}
-var nE = /* @__PURE__ */ new WeakSet();
-function yae(e, t, n = {}) {
- let [r, i, a] = YT(e, n), o = (e) => {
+var SE = /* @__PURE__ */ new WeakSet();
+function CE(e, t, n = {}) {
+ let [r, i, a] = cE(e, n), o = (e) => {
let r = e.currentTarget;
- if (!tE(e) || nE.has(e)) return;
- QT.add(r), n.stopPropagation && nE.add(e);
+ if (!xE(e) || SE.has(e)) return;
+ _E.add(r), n.stopPropagation && SE.add(e);
let a = t(r, e), o = {
...i,
capture: !0
}, s = (e, t) => {
- window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), QT.has(r) && QT.delete(r), tE(e) && typeof a == "function" && a(e, { success: t });
+ window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), _E.has(r) && _E.delete(r), xE(e) && typeof a == "function" && a(e, { success: t });
}, c = (e) => {
- s(e, r === window || r === document || n.useGlobalTarget || XT(r, e.target));
+ s(e, r === window || r === document || n.useGlobalTarget || dE(r, e.target));
}, l = (e) => {
s(e, !1);
};
window.addEventListener("pointerup", c, o), window.addEventListener("pointercancel", l, o);
};
return r.forEach((e) => {
- (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), GT(e) && (e.addEventListener("focus", (e) => vae(e, i)), !hae(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), iE(e) && (e.addEventListener("focus", (e) => bE(e, i)), !mE(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
}), a;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
-function rE(e, t) {
+function wE(e, t) {
let n = window.getComputedStyle(e);
- return Zw(t) ? n.getPropertyValue(t) : n[t];
+ return lT(t) ? n.getPropertyValue(t) : n[t];
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
-function iE(e) {
- return KS(e) && "ownerSVGElement" in e;
+function TE(e) {
+ return tC(e) && "ownerSVGElement" in e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/handle-element.mjs
-var aE = /* @__PURE__ */ new WeakMap(), oE, sE = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : iE(r) && "getBBox" in r ? r.getBBox()[t] : r[n], bae = /*@__PURE__*/ sE("inline", "width", "offsetWidth"), xae = /*@__PURE__*/ sE("block", "height", "offsetHeight");
-function Sae({ target: e, borderBoxSize: t }) {
- aE.get(e)?.forEach((n) => {
+var EE = /* @__PURE__ */ new WeakMap(), DE, OE = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : TE(r) && "getBBox" in r ? r.getBBox()[t] : r[n], $ie = /*@__PURE__*/ OE("inline", "width", "offsetWidth"), eae = /*@__PURE__*/ OE("block", "height", "offsetHeight");
+function tae({ target: e, borderBoxSize: t }) {
+ EE.get(e)?.forEach((n) => {
n(e, {
get width() {
- return bae(e, t);
+ return $ie(e, t);
},
get height() {
- return xae(e, t);
+ return eae(e, t);
}
});
});
}
-function Cae(e) {
- e.forEach(Sae);
+function nae(e) {
+ e.forEach(tae);
}
-function wae() {
- typeof ResizeObserver > "u" || (oE = new ResizeObserver(Cae));
+function rae() {
+ typeof ResizeObserver > "u" || (DE = new ResizeObserver(nae));
}
-function Tae(e, t) {
- oE || wae();
- let n = UT(e);
+function iae(e, t) {
+ DE || rae();
+ let n = nE(e);
return n.forEach((e) => {
- let n = aE.get(e);
- n || (n = /* @__PURE__ */ new Set(), aE.set(e, n)), n.add(t), oE?.observe(e);
+ let n = EE.get(e);
+ n || (n = /* @__PURE__ */ new Set(), EE.set(e, n)), n.add(t), DE?.observe(e);
}), () => {
n.forEach((e) => {
- let n = aE.get(e);
- n?.delete(t), n?.size || oE?.unobserve(e);
+ let n = EE.get(e);
+ n?.delete(t), n?.size || DE?.unobserve(e);
});
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/handle-window.mjs
-var cE = /* @__PURE__ */ new Set(), lE;
-function Eae() {
- lE = () => {
+var kE = /* @__PURE__ */ new Set(), AE;
+function aae() {
+ AE = () => {
let e = {
get width() {
return window.innerWidth;
@@ -29967,49 +29967,49 @@ function Eae() {
return window.innerHeight;
}
};
- cE.forEach((t) => t(e));
- }, window.addEventListener("resize", lE);
+ kE.forEach((t) => t(e));
+ }, window.addEventListener("resize", AE);
}
-function Dae(e) {
- return cE.add(e), lE || Eae(), () => {
- cE.delete(e), !cE.size && typeof lE == "function" && (window.removeEventListener("resize", lE), lE = void 0);
+function oae(e) {
+ return kE.add(e), AE || aae(), () => {
+ kE.delete(e), !kE.size && typeof AE == "function" && (window.removeEventListener("resize", AE), AE = void 0);
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/index.mjs
-function uE(e, t) {
- return typeof e == "function" ? Dae(e) : Tae(e, t);
+function jE(e, t) {
+ return typeof e == "function" ? oae(e) : iae(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/stats/buffer.mjs
-var dE = {
+var ME = {
value: null,
addProjectionMetrics: null
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
-function Oae(e) {
- return iE(e) && e.tagName === "svg";
+function sae(e) {
+ return TE(e) && e.tagName === "svg";
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/transform.mjs
-function kae(...e) {
- let t = !Array.isArray(e[0]), n = t ? 0 : -1, r = e[0 + n], i = e[1 + n], a = e[2 + n], o = e[3 + n], s = Tw(i, a, o);
+function cae(...e) {
+ let t = !Array.isArray(e[0]), n = t ? 0 : -1, r = e[0 + n], i = e[1 + n], a = e[2 + n], o = e[3 + n], s = Iw(i, a, o);
return t ? s(r) : s;
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/follow-value.mjs
-function Aae(e, t, n = {}) {
+function lae(e, t, n = {}) {
let r = e.get(), i = null, a = r, o, s = typeof r == "string" ? r.replace(/[\d.-]/g, "") : void 0, c = () => {
i &&= (i.stop(), null), e.animation = void 0;
}, l = () => {
- let t = pE(e.get()), r = pE(a);
+ let t = PE(e.get()), r = PE(a);
if (t === r) {
c();
return;
}
let s = i ? i.getGeneratorVelocity() : e.getVelocity();
- c(), i = new Aw({
+ c(), i = new Vw({
keyframes: [t, r],
velocity: s,
type: "spring",
@@ -30024,10 +30024,10 @@ function Aae(e, t, n = {}) {
});
};
if (e.attach((e, t) => {
- a = e, o = (e) => t(fE(e, s)), EC.postRender(u);
- }, c), ET(t)) {
+ a = e, o = (e) => t(NE(e, s)), AC.postRender(u);
+ }, c), zT(t)) {
let r = n.skipInitialAnimation === !0, i = t.on("change", (t) => {
- r ? (r = !1, e.jump(fE(t, s), !1)) : e.set(fE(t, s));
+ r ? (r = !1, e.jump(NE(t, s), !1)) : e.set(NE(t, s));
}), a = e.on("destroy", i);
return () => {
i(), a();
@@ -30035,46 +30035,46 @@ function Aae(e, t, n = {}) {
}
return c;
}
-function fE(e, t) {
+function NE(e, t) {
return t ? e + t : e;
}
-function pE(e) {
+function PE(e) {
return typeof e == "number" ? e : parseFloat(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/find.mjs
-var jae = [
- ...PT,
- QC,
- iw
-], Mae = (e) => jae.find(NT(e)), mE = () => ({
+var uae = [
+ ...qT,
+ iw,
+ uw
+], dae = (e) => uae.find(KT(e)), FE = () => ({
translate: 0,
scale: 1,
origin: 0,
originPoint: 0
-}), hE = () => ({
- x: mE(),
- y: mE()
-}), gE = () => ({
+}), IE = () => ({
+ x: FE(),
+ y: FE()
+}), LE = () => ({
min: 0,
max: 0
-}), _E = () => ({
- x: gE(),
- y: gE()
-}), Nae = /* @__PURE__ */ new WeakMap();
+}), RE = () => ({
+ x: LE(),
+ y: LE()
+}), fae = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
-function vE(e) {
+function zE(e) {
return typeof e == "object" && !!e && typeof e.start == "function";
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
-function yE(e) {
+function BE(e) {
return typeof e == "string" || Array.isArray(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
-var bE = [
+var VE = [
"animate",
"whileInView",
"whileFocus",
@@ -30082,29 +30082,29 @@ var bE = [
"whileTap",
"whileDrag",
"exit"
-], xE = ["initial", ...bE];
+], HE = ["initial", ...VE];
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
-function SE(e) {
- return vE(e.animate) || xE.some((t) => yE(e[t]));
+function UE(e) {
+ return zE(e.animate) || HE.some((t) => BE(e[t]));
}
-function CE(e) {
- return !!(SE(e) || e.variants);
+function WE(e) {
+ return !!(UE(e) || e.variants);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
-function Pae(e, t, n) {
+function pae(e, t, n) {
for (let r in t) {
let i = t[r], a = n[r];
- if (ET(i)) e.addValue(r, i);
- else if (ET(a)) e.addValue(r, gT(i, { owner: e }));
+ if (zT(i)) e.addValue(r, i);
+ else if (zT(a)) e.addValue(r, kT(i, { owner: e }));
else if (a !== i) {
if (e.hasValue(r)) {
let t = e.getValue(r);
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
} else {
let t = e.getStaticValue(r);
- e.addValue(r, gT(t === void 0 ? i : t, { owner: e }));
+ e.addValue(r, kT(t === void 0 ? i : t, { owner: e }));
}
}
}
@@ -30113,18 +30113,18 @@ function Pae(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
-var wE = { current: null }, TE = { current: !1 }, Fae = typeof window < "u";
-function EE() {
- if (TE.current = !0, Fae) {
+var GE = { current: null }, KE = { current: !1 }, mae = typeof window < "u";
+function qE() {
+ if (KE.current = !0, mae) {
if (window.matchMedia) {
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => wE.current = e.matches;
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => GE.current = e.matches;
e.addEventListener("change", t), t();
- } else wE.current = !1;
+ } else GE.current = !1;
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/VisualElement.mjs
-var DE = [
+var JE = [
"AnimationStart",
"AnimationComplete",
"Update",
@@ -30132,38 +30132,38 @@ var DE = [
"LayoutMeasure",
"LayoutAnimationStart",
"LayoutAnimationComplete"
-], OE = {};
-function kE(e) {
- OE = e;
+], YE = {};
+function XE(e) {
+ YE = e;
}
-function Iae() {
- return OE;
+function hae() {
+ return YE;
}
-var Lae = class {
+var gae = class {
scrapeMotionValuesFromProps(e, t, n) {
return {};
}
constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Xw, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = cT, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
- let e = jC.now();
- this.renderScheduledAt < e && (this.renderScheduledAt = e, EC.render(this.render, !1, !0));
+ let e = FC.now();
+ this.renderScheduledAt < e && (this.renderScheduledAt = e, AC.render(this.render, !1, !0));
};
let { latestValues: c, renderState: l } = o;
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = SE(t), this.isVariantNode = CE(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = UE(t), this.isVariantNode = WE(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
for (let e in d) {
let t = d[e];
- c[e] !== void 0 && ET(t) && t.set(c[e]);
+ c[e] !== void 0 && zT(t) && t.set(c[e]);
}
}
mount(e) {
if (this.hasBeenMounted) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
- this.current = e, Nae.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (TE.current || EE(), this.shouldReduceMotion = wE.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
+ this.current = e, fae.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (KE.current || qE(), this.shouldReduceMotion = GE.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
}
unmount() {
- this.projection && this.projection.unmount(), DC(this.notifyUpdate), DC(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
+ this.projection && this.projection.unmount(), jC(this.notifyUpdate), jC(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
for (let e in this.events) this.events[e].clear();
for (let e in this.features) {
let t = this.features[e];
@@ -30178,24 +30178,24 @@ var Lae = class {
this.children.delete(e), this.enteringChildren && this.enteringChildren.delete(e);
}
bindToMotionValue(e, t) {
- if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && uT.has(e) && this.current instanceof HTMLElement) {
- let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new aT({
+ if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && CT.has(e) && this.current instanceof HTMLElement) {
+ let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new vT({
element: this.current,
name: e,
keyframes: r,
times: i,
ease: a,
- duration: /* @__PURE__ */ $S(o)
+ duration: /* @__PURE__ */ cC(o)
}), c = n(s);
this.valueSubscriptions.set(e, () => {
c(), s.cancel();
});
return;
}
- let n = Vw.has(e);
+ let n = Qw.has(e);
n && this.onBindTransform && this.onBindTransform();
let r = t.on("change", (t) => {
- this.latestValues[e] = t, this.props.onUpdate && EC.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
+ this.latestValues[e] = t, this.props.onUpdate && AC.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
}), i;
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
r(), i && i();
@@ -30206,8 +30206,8 @@ var Lae = class {
}
updateFeatures() {
let e = "animation";
- for (e in OE) {
- let t = OE[e];
+ for (e in YE) {
+ let t = YE[e];
if (!t) continue;
let { isEnabled: n, Feature: r } = t;
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
@@ -30220,7 +30220,7 @@ var Lae = class {
this.build(this.renderState, this.latestValues, this.props);
}
measureViewportBox() {
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : _E();
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : RE();
}
getStaticValue(e) {
return this.latestValues[e];
@@ -30230,13 +30230,13 @@ var Lae = class {
}
update(e, t) {
(e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
- for (let t = 0; t < DE.length; t++) {
- let n = DE[t];
+ for (let t = 0; t < JE.length; t++) {
+ let n = JE[t];
this.propEventSubscriptions[n] && (this.propEventSubscriptions[n](), delete this.propEventSubscriptions[n]);
let r = e["on" + n];
r && (this.propEventSubscriptions[n] = this.on(n, r));
}
- this.prevMotionValues = Pae(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
+ this.prevMotionValues = pae(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
}
getProps() {
return this.props;
@@ -30272,11 +30272,11 @@ var Lae = class {
getValue(e, t) {
if (this.props.values && this.props.values[e]) return this.props.values[e];
let n = this.values.get(e);
- return n === void 0 && t !== void 0 && (n = gT(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
+ return n === void 0 && t !== void 0 && (n = kT(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
}
readValue(e, t) {
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
- return n != null && (typeof n == "string" && (GS(n) || qS(n)) ? n = parseFloat(n) : !Mae(n) && iw.test(t) && (n = VT(e, t)), this.setBaseTarget(e, ET(n) ? n.get() : n)), ET(n) ? n.get() : n;
+ return n != null && (typeof n == "string" && (eC(n) || nC(n)) ? n = parseFloat(n) : !dae(n) && uw.test(t) && (n = eE(e, t)), this.setBaseTarget(e, zT(n) ? n.get() : n)), zT(n) ? n.get() : n;
}
setBaseTarget(e, t) {
this.baseTarget[e] = t;
@@ -30284,25 +30284,25 @@ var Lae = class {
getBaseTarget(e) {
let { initial: t } = this.props, n;
if (typeof t == "string" || typeof t == "object") {
- let r = ST(this.props, t, this.presenceContext?.custom);
+ let r = FT(this.props, t, this.presenceContext?.custom);
r && (n = r[e]);
}
if (t && n !== void 0) return n;
let r = this.getBaseTargetFromProps(this.props, e);
- return r !== void 0 && !ET(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
+ return r !== void 0 && !zT(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
}
on(e, t) {
- return this.events[e] || (this.events[e] = new QS()), this.events[e].add(t);
+ return this.events[e] || (this.events[e] = new sC()), this.events[e].add(t);
}
notify(e, ...t) {
this.events[e] && this.events[e].notify(...t);
}
scheduleRenderMicrotask() {
- KT.render(this.render);
+ aE.render(this.render);
}
-}, AE = class extends Lae {
+}, ZE = class extends gae {
constructor() {
- super(...arguments), this.KeyframeResolver = sae;
+ super(...arguments), this.KeyframeResolver = Jie;
}
sortInstanceNodePosition(e, t) {
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
@@ -30317,11 +30317,11 @@ var Lae = class {
handleChildMotionValue() {
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
let { children: e } = this.props;
- ET(e) && (this.childSubscription = e.on("change", (e) => {
+ zT(e) && (this.childSubscription = e.on("change", (e) => {
this.current && (this.current.textContent = `${e}`);
}));
}
-}, jE = class {
+}, QE = class {
constructor(e) {
this.isMounted = !1, this.node = e;
}
@@ -30329,7 +30329,7 @@ var Lae = class {
};
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
-function ME({ top: e, left: t, right: n, bottom: r }) {
+function $E({ top: e, left: t, right: n, bottom: r }) {
return {
x: {
min: t,
@@ -30341,7 +30341,7 @@ function ME({ top: e, left: t, right: n, bottom: r }) {
}
};
}
-function Rae({ x: e, y: t }) {
+function _ae({ x: e, y: t }) {
return {
top: t.min,
right: e.max,
@@ -30349,7 +30349,7 @@ function Rae({ x: e, y: t }) {
left: e.min
};
}
-function zae(e, t) {
+function vae(e, t) {
if (!t) return e;
let n = t({
x: e.left,
@@ -30367,37 +30367,37 @@ function zae(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
-function NE(e) {
+function eD(e) {
return e === void 0 || e === 1;
}
-function PE({ scale: e, scaleX: t, scaleY: n }) {
- return !NE(e) || !NE(t) || !NE(n);
+function tD({ scale: e, scaleX: t, scaleY: n }) {
+ return !eD(e) || !eD(t) || !eD(n);
}
-function FE(e) {
- return PE(e) || IE(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
+function nD(e) {
+ return tD(e) || rD(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
}
-function IE(e) {
- return LE(e.x) || LE(e.y);
+function rD(e) {
+ return iD(e.x) || iD(e.y);
}
-function LE(e) {
+function iD(e) {
return e && e !== "0%";
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
-function RE(e, t, n) {
+function aD(e, t, n) {
return n + t * (e - n);
}
-function zE(e, t, n, r, i) {
- return i !== void 0 && (e = RE(e, i, r)), RE(e, n, r) + t;
+function oD(e, t, n, r, i) {
+ return i !== void 0 && (e = aD(e, i, r)), aD(e, n, r) + t;
}
-function BE(e, t = 0, n = 1, r, i) {
- e.min = zE(e.min, t, n, r, i), e.max = zE(e.max, t, n, r, i);
+function sD(e, t = 0, n = 1, r, i) {
+ e.min = oD(e.min, t, n, r, i), e.max = oD(e.max, t, n, r, i);
}
-function VE(e, { x: t, y: n }) {
- BE(e.x, t.translate, t.scale, t.originPoint), BE(e.y, n.translate, n.scale, n.originPoint);
+function cD(e, { x: t, y: n }) {
+ sD(e.x, t.translate, t.scale, t.originPoint), sD(e.y, n.translate, n.scale, n.originPoint);
}
-var HE = .999999999999, UE = 1.0000000000001;
-function Bae(e, t, n, r = !1) {
+var lD = .999999999999, uD = 1.0000000000001;
+function yae(e, t, n, r = !1) {
let i = n.length;
if (!i) return;
t.x = t.y = 1;
@@ -30405,44 +30405,44 @@ function Bae(e, t, n, r = !1) {
for (let s = 0; s < i; s++) {
a = n[s], o = a.projectionDelta;
let { visualElement: i } = a.options;
- i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && (WE(e.x, -a.scroll.offset.x), WE(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, VE(e, o)), r && FE(a.latestValues) && qE(e, a.latestValues, a.layout?.layoutBox));
+ i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && (dD(e.x, -a.scroll.offset.x), dD(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, cD(e, o)), r && nD(a.latestValues) && mD(e, a.latestValues, a.layout?.layoutBox));
}
- t.x < UE && t.x > HE && (t.x = 1), t.y < UE && t.y > HE && (t.y = 1);
+ t.x < uD && t.x > lD && (t.x = 1), t.y < uD && t.y > lD && (t.y = 1);
}
-function WE(e, t) {
+function dD(e, t) {
e.min += t, e.max += t;
}
-function GE(e, t, n, r, i = .5) {
- BE(e, t, n, sw(e.min, e.max, i), r);
+function fD(e, t, n, r, i = .5) {
+ sD(e, t, n, pw(e.min, e.max, i), r);
}
-function KE(e, t) {
+function pD(e, t) {
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
}
-function qE(e, t, n) {
+function mD(e, t, n) {
let r = n ?? e;
- GE(e.x, KE(t.x, r.x), t.scaleX, t.scale, t.originX), GE(e.y, KE(t.y, r.y), t.scaleY, t.scale, t.originY);
+ fD(e.x, pD(t.x, r.x), t.scaleX, t.scale, t.originX), fD(e.y, pD(t.y, r.y), t.scaleY, t.scale, t.originY);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/measure.mjs
-function JE(e, t) {
- return ME(zae(e.getBoundingClientRect(), t));
+function hD(e, t) {
+ return $E(vae(e.getBoundingClientRect(), t));
}
-function Vae(e, t, n) {
- let r = JE(e, n), { scroll: i } = t;
- return i && (WE(r.x, i.offset.x), WE(r.y, i.offset.y)), r;
+function bae(e, t, n) {
+ let r = hD(e, n), { scroll: i } = t;
+ return i && (dD(r.x, i.offset.x), dD(r.y, i.offset.y)), r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs
-var Hae = {
+var xae = {
x: "translateX",
y: "translateY",
z: "translateZ",
transformPerspective: "perspective"
-}, Uae = Bw.length;
-function Wae(e, t, n) {
+}, Sae = Zw.length;
+function Cae(e, t, n) {
let r = "", i = !0;
- for (let a = 0; a < Uae; a++) {
- let o = Bw[a], s = e[o];
+ for (let a = 0; a < Sae; a++) {
+ let o = Zw[a], s = e[o];
if (s === void 0) continue;
let c = !0;
if (typeof s == "number") c = s === +!!o.startsWith("scale");
@@ -30451,154 +30451,154 @@ function Wae(e, t, n) {
c = o.startsWith("scale") ? e === 1 : e === 0;
}
if (!c || n) {
- let e = WT(s, zT[o]);
+ let e = rE(s, QT[o]);
if (!c) {
i = !1;
- let t = Hae[o] || o;
+ let t = xae[o] || o;
r += `${t}(${e}) `;
}
n && (t[o] = e);
}
}
let a = e.pathRotation;
- return a && (i = !1, r += `rotate(${WT(a, zT.pathRotation)}) `), r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;
+ return a && (i = !1, r += `rotate(${rE(a, QT.pathRotation)}) `), r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
-function YE(e, t, n) {
+function gD(e, t, n) {
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
for (let e in t) {
let n = t[e];
- if (Vw.has(e)) {
+ if (Qw.has(e)) {
o = !0;
continue;
}
- if (NC(e)) {
+ if (LC(e)) {
i[e] = n;
continue;
}
{
- let t = WT(n, zT[e]);
+ let t = rE(n, QT[e]);
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
}
}
- if (t.transform || (o || n ? r.transform = Wae(t, e.transform, n) : r.transform &&= "none"), s) {
+ if (t.transform || (o || n ? r.transform = Cae(t, e.transform, n) : r.transform &&= "none"), s) {
let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
r.transformOrigin = `${e} ${t} ${n}`;
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/render.mjs
-function XE(e, { style: t, vars: n }, r, i) {
+function _D(e, { style: t, vars: n }, r, i) {
let a = e.style, o;
for (o in t) a[o] = t[o];
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
-function ZE(e, t) {
+function vD(e, t) {
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
}
-var QE = { correct: (e, t) => {
+var yD = { correct: (e, t) => {
if (!t.target) return e;
if (typeof e == "string") {
- if (YC.test(e)) e = parseFloat(e);
+ if ($C.test(e)) e = parseFloat(e);
else return e;
}
- return `${ZE(e, t.target.x)}% ${ZE(e, t.target.y)}%`;
-} }, Gae = { correct: (e, { treeScale: t, projectionDelta: n }) => {
- let r = e, i = iw.parse(e);
+ return `${vD(e, t.target.x)}% ${vD(e, t.target.y)}%`;
+} }, wae = { correct: (e, { treeScale: t, projectionDelta: n }) => {
+ let r = e, i = uw.parse(e);
if (i.length > 5) return r;
- let a = iw.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
+ let a = uw.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
i[0 + o] /= s, i[1 + o] /= c;
- let l = sw(s, c, .5);
+ let l = pw(s, c, .5);
return typeof i[2 + o] == "number" && (i[2 + o] /= l), typeof i[3 + o] == "number" && (i[3 + o] /= l), a(i);
-} }, $E = {
+} }, bD = {
borderRadius: {
- ...QE,
- applyTo: [...HT]
+ ...yD,
+ applyTo: [...tE]
},
- borderTopLeftRadius: QE,
- borderTopRightRadius: QE,
- borderBottomLeftRadius: QE,
- borderBottomRightRadius: QE,
- boxShadow: Gae
+ borderTopLeftRadius: yD,
+ borderTopRightRadius: yD,
+ borderBottomLeftRadius: yD,
+ borderBottomRightRadius: yD,
+ boxShadow: wae
};
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
-function eD(e, { layout: t, layoutId: n }) {
- return Vw.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!$E[e] || e === "opacity");
+function xD(e, { layout: t, layoutId: n }) {
+ return Qw.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!bD[e] || e === "opacity");
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
-function tD(e, t, n) {
+function SD(e, t, n) {
let r = e.style, i = t?.style, a = {};
if (!r) return a;
- for (let t in r) (ET(r[t]) || i && ET(i[t]) || eD(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
+ for (let t in r) (zT(r[t]) || i && zT(i[t]) || xD(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
return a;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
-function Kae(e) {
+function Tae(e) {
return window.getComputedStyle(e);
}
-var qae = class extends AE {
+var Eae = class extends ZE {
constructor() {
- super(...arguments), this.type = "html", this.renderInstance = XE;
+ super(...arguments), this.type = "html", this.renderInstance = _D;
}
mount(e) {
e.style, super.mount(e);
}
readValueFromInstance(e, t) {
- if (Vw.has(t)) return this.projection?.isProjecting ? Rw(t) : cie(e, t);
+ if (Qw.has(t)) return this.projection?.isProjecting ? Yw(t) : Zre(e, t);
{
- let n = Kae(e), r = (NC(t) ? n.getPropertyValue(t) : n[t]) || 0;
+ let n = Tae(e), r = (LC(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
measureInstanceViewportBox(e, { transformPagePoint: t }) {
- return JE(e, t);
+ return hD(e, t);
}
build(e, t, n) {
- YE(e, t, n.transformTemplate);
+ gD(e, t, n.transformTemplate);
}
scrapeMotionValuesFromProps(e, t, n) {
- return tD(e, t, n);
+ return SD(e, t, n);
}
-}, Jae = {
+}, Dae = {
offset: "stroke-dashoffset",
array: "stroke-dasharray"
-}, Yae = {
+}, Oae = {
offset: "strokeDashoffset",
array: "strokeDasharray"
};
-function Xae(e, t, n = 1, r = 0, i = !0) {
+function kae(e, t, n = 1, r = 0, i = !0) {
e.pathLength = 1;
- let a = i ? Jae : Yae;
+ let a = i ? Dae : Oae;
e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
-var Zae = [
+var Aae = [
"offsetDistance",
"offsetPath",
"offsetRotate",
"offsetAnchor"
];
-function nD(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
- if (YE(e, s, l), c) {
+function CD(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
+ if (gD(e, s, l), c) {
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
return;
}
e.attrs = e.style, e.style = {};
let { attrs: d, style: f } = e;
d.transform && (f.transform = d.transform, delete d.transform), (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox);
- for (let e of Zae) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
- t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && Xae(d, i, a, o, !1);
+ for (let e of Aae) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
+ t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && kae(d, i, a, o, !1);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.mjs
-var rD = /* @__PURE__ */ new Set([
+var wD = /* @__PURE__ */ new Set([
"baseFrequency",
"diffuseConstant",
"kernelMatrix",
@@ -30622,68 +30622,68 @@ var rD = /* @__PURE__ */ new Set([
"startOffset",
"textLength",
"lengthAdjust"
-]), iD = (e) => typeof e == "string" && e.toLowerCase() === "svg";
+]), TD = (e) => typeof e == "string" && e.toLowerCase() === "svg";
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
-function Qae(e, t, n, r) {
- XE(e, t, void 0, r);
- for (let n in t.attrs) e.setAttribute(rD.has(n) ? n : OT(n), t.attrs[n]);
+function jae(e, t, n, r) {
+ _D(e, t, void 0, r);
+ for (let n in t.attrs) e.setAttribute(wD.has(n) ? n : VT(n), t.attrs[n]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
-function aD(e, t, n) {
- let r = tD(e, t, n);
- for (let n in e) if (ET(e[n]) || ET(t[n])) {
- let t = Bw.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
+function ED(e, t, n) {
+ let r = SD(e, t, n);
+ for (let n in e) if (zT(e[n]) || zT(t[n])) {
+ let t = Zw.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
r[t] = e[n];
}
return r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
-var $ae = class extends AE {
+var Mae = class extends ZE {
constructor() {
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = _E;
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = RE;
}
getBaseTargetFromProps(e, t) {
return e[t];
}
readValueFromInstance(e, t) {
- if (Vw.has(t)) {
- let e = BT(t);
+ if (Qw.has(t)) {
+ let e = $T(t);
return e && e.default || 0;
}
- return t = rD.has(t) ? t : OT(t), e.getAttribute(t);
+ return t = wD.has(t) ? t : VT(t), e.getAttribute(t);
}
scrapeMotionValuesFromProps(e, t, n) {
- return aD(e, t, n);
+ return ED(e, t, n);
}
build(e, t, n) {
- nD(e, t, this.isSVGTag, n.transformTemplate, n.style);
+ CD(e, t, this.isSVGTag, n.transformTemplate, n.style);
}
renderInstance(e, t, n, r) {
- Qae(e, t, n, r);
+ jae(e, t, n, r);
}
mount(e) {
- this.isSVGTag = iD(e.tagName), super.mount(e);
+ this.isSVGTag = TD(e.tagName), super.mount(e);
}
-}, eoe = xE.length;
-function oD(e) {
+}, Nae = HE.length;
+function DD(e) {
if (!e) return;
if (!e.isControllingVariants) {
- let t = e.parent && oD(e.parent) || {};
+ let t = e.parent && DD(e.parent) || {};
return e.props.initial !== void 0 && (t.initial = e.props.initial), t;
}
let t = {};
- for (let n = 0; n < eoe; n++) {
- let r = xE[n], i = e.props[r];
- (yE(i) || i === !1) && (t[r] = i);
+ for (let n = 0; n < Nae; n++) {
+ let r = HE[n], i = e.props[r];
+ (BE(i) || i === !1) && (t[r] = i);
}
return t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
-function sD(e, t) {
+function OD(e, t) {
if (!Array.isArray(t)) return !1;
let n = t.length;
if (n !== e.length) return !1;
@@ -30692,13 +30692,13 @@ function sD(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
-var toe = [...bE].reverse(), noe = bE.length;
-function roe(e) {
- return (t) => Promise.all(t.map(({ animation: t, options: n }) => Zie(e, t, n)));
+var Pae = [...VE].reverse(), Fae = VE.length;
+function Iae(e) {
+ return (t) => Promise.all(t.map(({ animation: t, options: n }) => Rie(e, t, n)));
}
-function ioe(e) {
- let t = roe(e), n = lD(), r = !0, i = !1, a = (t) => (n, r) => {
- let i = CT(e, r, t === "exit" ? e.presenceContext?.custom : void 0);
+function Lae(e) {
+ let t = Iae(e), n = AD(), r = !0, i = !1, a = (t) => (n, r) => {
+ let i = IT(e, r, t === "exit" ? e.presenceContext?.custom : void 0);
if (i) {
let { transition: e, transitionEnd: t, ...r } = i;
n = {
@@ -30713,12 +30713,12 @@ function ioe(e) {
t = n(e);
}
function s(o) {
- let { props: s } = e, c = oD(e.parent) || {}, l = [], u = /* @__PURE__ */ new Set(), d = {}, f = Infinity;
- for (let t = 0; t < noe; t++) {
- let p = toe[t], m = n[p], h = s[p] === void 0 ? c[p] : s[p], g = yE(h), _ = p === o ? m.isActive : null;
+ let { props: s } = e, c = DD(e.parent) || {}, l = [], u = /* @__PURE__ */ new Set(), d = {}, f = Infinity;
+ for (let t = 0; t < Fae; t++) {
+ let p = Pae[t], m = n[p], h = s[p] === void 0 ? c[p] : s[p], g = BE(h), _ = p === o ? m.isActive : null;
_ === !1 && (f = t);
let v = h === c[p] && h !== s[p] && g;
- if (v && (r || i) && e.manuallyAnimateOnMount && (v = !1), m.protectedKeys = { ...d }, !m.isActive && _ === null || !h && !m.prevProp || vE(h) || typeof h == "boolean") continue;
+ if (v && (r || i) && e.manuallyAnimateOnMount && (v = !1), m.protectedKeys = { ...d }, !m.isActive && _ === null || !h && !m.prevProp || zE(h) || typeof h == "boolean") continue;
if (p === "exit" && m.isActive && _ !== !0) {
m.prevResolvedValues && (d = {
...d,
@@ -30726,7 +30726,7 @@ function ioe(e) {
});
continue;
}
- let y = aoe(m.prevProp, h), b = y || p === o && m.isActive && !v && g || t > f && g, x = !1, S = Array.isArray(h) ? h : [h], C = S.reduce(a(p), {});
+ let y = Rae(m.prevProp, h), b = y || p === o && m.isActive && !v && g || t > f && g, x = !1, S = Array.isArray(h) ? h : [h], C = S.reduce(a(p), {});
_ === !1 && (C = {});
let { prevResolvedValues: w = {} } = m, T = {
...w,
@@ -30740,7 +30740,7 @@ function ioe(e) {
let t = C[e], n = w[e];
if (d.hasOwnProperty(e)) continue;
let r = !1;
- r = TT(t) && TT(n) ? !sD(t, n) || y : t !== n, r ? t == null ? u.add(e) : E(e) : t !== void 0 && u.has(e) ? E(e) : m.protectedKeys[e] = !0;
+ r = RT(t) && RT(n) ? !OD(t, n) || y : t !== n, r ? t == null ? u.add(e) : E(e) : t !== void 0 && u.has(e) ? E(e) : m.protectedKeys[e] = !0;
}
m.prevProp = h, m.prevResolvedValues = C, m.isActive && (d = {
...d,
@@ -30750,10 +30750,10 @@ function ioe(e) {
b && (!D || x) && l.push(...S.map((t) => {
let n = { type: p };
if (typeof t == "string" && (r || i) && !D && e.manuallyAnimateOnMount && e.parent) {
- let { parent: r } = e, i = CT(r, t);
+ let { parent: r } = e, i = IT(r, t);
if (r.enteringChildren && i) {
let { delayChildren: t } = i.transition || {};
- n.delay = pT(r.enteringChildren, e, t);
+ n.delay = ET(r.enteringChildren, e, t);
}
}
return {
@@ -30765,7 +30765,7 @@ function ioe(e) {
if (u.size) {
let t = {};
if (typeof s.initial != "boolean") {
- let n = CT(e, Array.isArray(s.initial) ? s.initial[0] : s.initial);
+ let n = IT(e, Array.isArray(s.initial) ? s.initial[0] : s.initial);
n && n.transition && (t.transition = n.transition);
}
u.forEach((n) => {
@@ -30789,14 +30789,14 @@ function ioe(e) {
setAnimateFunction: o,
getState: () => n,
reset: () => {
- n = lD(), i = !0;
+ n = AD(), i = !0;
}
};
}
-function aoe(e, t) {
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !sD(t, e) : !1;
+function Rae(e, t) {
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !OD(t, e) : !1;
}
-function cD(e = !1) {
+function kD(e = !1) {
return {
isActive: e,
protectedKeys: {},
@@ -30804,115 +30804,115 @@ function cD(e = !1) {
prevResolvedValues: {}
};
}
-function lD() {
+function AD() {
return {
- animate: cD(!0),
- whileInView: cD(),
- whileHover: cD(),
- whileTap: cD(),
- whileDrag: cD(),
- whileFocus: cD(),
- exit: cD()
+ animate: kD(!0),
+ whileInView: kD(),
+ whileHover: kD(),
+ whileTap: kD(),
+ whileDrag: kD(),
+ whileFocus: kD(),
+ exit: kD()
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
-function uD(e, t) {
+function jD(e, t) {
e.min = t.min, e.max = t.max;
}
-function dD(e, t) {
- uD(e.x, t.x), uD(e.y, t.y);
+function MD(e, t) {
+ jD(e.x, t.x), jD(e.y, t.y);
}
-function fD(e, t) {
+function ND(e, t) {
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
-var ooe = .9999, soe = 1.0001, coe = -.01, loe = .01;
-function pD(e) {
+var zae = .9999, Bae = 1.0001, Vae = -.01, Hae = .01;
+function PD(e) {
return e.max - e.min;
}
-function uoe(e, t, n) {
+function Uae(e, t, n) {
return Math.abs(e - t) <= n;
}
-function mD(e, t, n, r = .5) {
- e.origin = r, e.originPoint = sw(t.min, t.max, e.origin), e.scale = pD(n) / pD(t), e.translate = sw(n.min, n.max, e.origin) - e.originPoint, (e.scale >= ooe && e.scale <= soe || isNaN(e.scale)) && (e.scale = 1), (e.translate >= coe && e.translate <= loe || isNaN(e.translate)) && (e.translate = 0);
+function FD(e, t, n, r = .5) {
+ e.origin = r, e.originPoint = pw(t.min, t.max, e.origin), e.scale = PD(n) / PD(t), e.translate = pw(n.min, n.max, e.origin) - e.originPoint, (e.scale >= zae && e.scale <= Bae || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Vae && e.translate <= Hae || isNaN(e.translate)) && (e.translate = 0);
}
-function hD(e, t, n, r) {
- mD(e.x, t.x, n.x, r ? r.originX : void 0), mD(e.y, t.y, n.y, r ? r.originY : void 0);
+function ID(e, t, n, r) {
+ FD(e.x, t.x, n.x, r ? r.originX : void 0), FD(e.y, t.y, n.y, r ? r.originY : void 0);
}
-function gD(e, t, n, r = 0) {
- e.min = (r ? sw(n.min, n.max, r) : n.min) + t.min, e.max = e.min + pD(t);
+function LD(e, t, n, r = 0) {
+ e.min = (r ? pw(n.min, n.max, r) : n.min) + t.min, e.max = e.min + PD(t);
}
-function doe(e, t, n, r) {
- gD(e.x, t.x, n.x, r?.x), gD(e.y, t.y, n.y, r?.y);
+function Wae(e, t, n, r) {
+ LD(e.x, t.x, n.x, r?.x), LD(e.y, t.y, n.y, r?.y);
}
-function _D(e, t, n, r = 0) {
- let i = r ? sw(n.min, n.max, r) : n.min;
- e.min = t.min - i, e.max = e.min + pD(t);
+function RD(e, t, n, r = 0) {
+ let i = r ? pw(n.min, n.max, r) : n.min;
+ e.min = t.min - i, e.max = e.min + PD(t);
}
-function vD(e, t, n, r) {
- _D(e.x, t.x, n.x, r?.x), _D(e.y, t.y, n.y, r?.y);
+function zD(e, t, n, r) {
+ RD(e.x, t.x, n.x, r?.x), RD(e.y, t.y, n.y, r?.y);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
-function yD(e, t, n, r, i) {
- return e -= t, e = RE(e, 1 / n, r), i !== void 0 && (e = RE(e, 1 / i, r)), e;
+function BD(e, t, n, r, i) {
+ return e -= t, e = aD(e, 1 / n, r), i !== void 0 && (e = aD(e, 1 / i, r)), e;
}
-function foe(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
- if (JC.test(t) && (t = parseFloat(t), t = sw(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
- let s = sw(a.min, a.max, r);
- e === a && (s -= t), e.min = yD(e.min, t, n, s, i), e.max = yD(e.max, t, n, s, i);
+function Gae(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
+ if (QC.test(t) && (t = parseFloat(t), t = pw(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
+ let s = pw(a.min, a.max, r);
+ e === a && (s -= t), e.min = BD(e.min, t, n, s, i), e.max = BD(e.max, t, n, s, i);
}
-function bD(e, t, [n, r, i], a, o) {
- foe(e, t[n], t[r], t[i], t.scale, a, o);
+function VD(e, t, [n, r, i], a, o) {
+ Gae(e, t[n], t[r], t[i], t.scale, a, o);
}
-var poe = [
+var Kae = [
"x",
"scaleX",
"originX"
-], moe = [
+], qae = [
"y",
"scaleY",
"originY"
];
-function xD(e, t, n, r) {
- bD(e.x, t, poe, n ? n.x : void 0, r ? r.x : void 0), bD(e.y, t, moe, n ? n.y : void 0, r ? r.y : void 0);
+function HD(e, t, n, r) {
+ VD(e.x, t, Kae, n ? n.x : void 0, r ? r.x : void 0), VD(e.y, t, qae, n ? n.y : void 0, r ? r.y : void 0);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
-function SD(e) {
+function UD(e) {
return e.translate === 0 && e.scale === 1;
}
-function CD(e) {
- return SD(e.x) && SD(e.y);
+function WD(e) {
+ return UD(e.x) && UD(e.y);
}
-function wD(e, t) {
+function GD(e, t) {
return e.min === t.min && e.max === t.max;
}
-function hoe(e, t) {
- return wD(e.x, t.x) && wD(e.y, t.y);
+function Jae(e, t) {
+ return GD(e.x, t.x) && GD(e.y, t.y);
}
-function TD(e, t) {
+function KD(e, t) {
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
}
-function ED(e, t) {
- return TD(e.x, t.x) && TD(e.y, t.y);
+function qD(e, t) {
+ return KD(e.x, t.x) && KD(e.y, t.y);
}
-function DD(e) {
- return pD(e.x) / pD(e.y);
+function JD(e) {
+ return PD(e.x) / PD(e.y);
}
-function OD(e, t) {
+function YD(e, t) {
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs
-function kD(e) {
+function XD(e) {
return [e("x"), e("y")];
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/styles/transform.mjs
-function goe(e, t, n) {
+function Yae(e, t, n) {
let r = "", i = e.x.translate / t.x, a = e.y.translate / t.y, o = n?.z || 0;
if ((i || a || o) && (r = `translate3d(${i}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
let { transformPerspective: e, rotate: t, pathRotation: i, rotateX: a, rotateY: o, skewX: s, skewY: c } = n;
@@ -30923,81 +30923,81 @@ function goe(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs
-var _oe = HT.length, AD = (e) => typeof e == "string" ? parseFloat(e) : e, jD = (e) => typeof e == "number" || YC.test(e);
-function voe(e, t, n, r, i, a) {
- i ? (e.opacity = sw(0, n.opacity ?? 1, yoe(r)), e.opacityExit = sw(t.opacity ?? 1, 0, boe(r))) : a && (e.opacity = sw(t.opacity ?? 1, n.opacity ?? 1, r));
- for (let i = 0; i < _oe; i++) {
- let a = HT[i], o = MD(t, a), s = MD(n, a);
- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || jD(o) === jD(s) ? (e[a] = Math.max(sw(AD(o), AD(s), r), 0), (JC.test(s) || JC.test(o)) && (e[a] += "%")) : e[a] = s);
+var Xae = tE.length, ZD = (e) => typeof e == "string" ? parseFloat(e) : e, QD = (e) => typeof e == "number" || $C.test(e);
+function Zae(e, t, n, r, i, a) {
+ i ? (e.opacity = pw(0, n.opacity ?? 1, Qae(r)), e.opacityExit = pw(t.opacity ?? 1, 0, $ae(r))) : a && (e.opacity = pw(t.opacity ?? 1, n.opacity ?? 1, r));
+ for (let i = 0; i < Xae; i++) {
+ let a = tE[i], o = $D(t, a), s = $D(n, a);
+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || QD(o) === QD(s) ? (e[a] = Math.max(pw(ZD(o), ZD(s), r), 0), (QC.test(s) || QC.test(o)) && (e[a] += "%")) : e[a] = s);
}
- (t.rotate || n.rotate) && (e.rotate = sw(t.rotate || 0, n.rotate || 0, r));
+ (t.rotate || n.rotate) && (e.rotate = pw(t.rotate || 0, n.rotate || 0, r));
}
-function MD(e, t) {
+function $D(e, t) {
return e[t] === void 0 ? e.borderRadius : e[t];
}
-var yoe = /*@__PURE__*/ ND(0, .5, mC), boe = /*@__PURE__*/ ND(.5, .95, YS);
-function ND(e, t, n) {
- return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ ZS(e, t, r));
+var Qae = /*@__PURE__*/ eO(0, .5, bC), $ae = /*@__PURE__*/ eO(.5, .95, iC);
+function eO(e, t, n) {
+ return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ oC(e, t, r));
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
-function xoe(e, t, n) {
- let r = ET(e) ? e : gT(e);
- return r.start(yT("", r, t, n)), r.animation;
+function eoe(e, t, n) {
+ let r = zT(e) ? e : kT(e);
+ return r.start(MT("", r, t, n)), r.animation;
}
//#endregion
//#region node_modules/motion-dom/dist/es/events/add-dom-event.mjs
-function PD(e, t, n, r = { passive: !0 }) {
+function tO(e, t, n, r = { passive: !0 }) {
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
-var Soe = (e, t) => e.depth - t.depth, Coe = class {
+var toe = (e, t) => e.depth - t.depth, noe = class {
constructor() {
this.children = [], this.isDirty = !1;
}
add(e) {
- VS(this.children, e), this.isDirty = !0;
+ XS(this.children, e), this.isDirty = !0;
}
remove(e) {
- HS(this.children, e), this.isDirty = !0;
+ ZS(this.children, e), this.isDirty = !0;
}
forEach(e) {
- this.isDirty && this.children.sort(Soe), this.isDirty = !1, this.children.forEach(e);
+ this.isDirty && this.children.sort(toe), this.isDirty = !1, this.children.forEach(e);
}
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/delay.mjs
-function woe(e, t) {
- let n = jC.now(), r = ({ timestamp: i }) => {
+function roe(e, t) {
+ let n = FC.now(), r = ({ timestamp: i }) => {
let a = i - n;
- a >= t && (DC(r), e(a - t));
+ a >= t && (jC(r), e(a - t));
};
- return EC.setup(r, !0), () => DC(r);
+ return AC.setup(r, !0), () => jC(r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
-function FD(e) {
- return ET(e) ? e.get() : e;
+function nO(e) {
+ return zT(e) ? e.get() : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/shared/stack.mjs
-var Toe = class {
+var ioe = class {
constructor() {
this.members = [];
}
add(e) {
- VS(this.members, e);
+ XS(this.members, e);
for (let t = this.members.length - 1; t >= 0; t--) {
let n = this.members[t];
if (n === e || n === this.lead || n === this.prevLead) continue;
let r = n.instance;
- (!r || r.isConnected === !1) && !n.snapshot && (HS(this.members, n), n.unmount());
+ (!r || r.isConnected === !1) && !n.snapshot && (ZS(this.members, n), n.unmount());
}
e.scheduleRender();
}
remove(e) {
- if (HS(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
+ if (ZS(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
let e = this.members[this.members.length - 1];
e && this.promote(e);
}
@@ -31028,51 +31028,51 @@ var Toe = class {
removeLeadSnapshot() {
this.lead?.snapshot && (this.lead.snapshot = void 0);
}
-}, ID = {
+}, rO = {
hasAnimatedSinceResize: !0,
hasEverUpdated: !1
-}, LD = {
+}, iO = {
nodes: 0,
calculatedTargetDeltas: 0,
calculatedProjections: 0
-}, RD = [
+}, aO = [
"",
"X",
"Y",
"Z"
-], Eoe = 1e3, Doe = 0;
-function zD(e, t, n, r) {
+], aoe = 1e3, ooe = 0;
+function oO(e, t, n, r) {
let { latestValues: i } = t;
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
}
-function BD(e) {
+function sO(e) {
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
let { visualElement: t } = e.options;
if (!t) return;
- let n = AT(t);
+ let n = UT(t);
if (window.MotionHasOptimisedAnimation(n, "transform")) {
let { layout: t, layoutId: r } = e.options;
- window.MotionCancelOptimisedAnimation(n, "transform", EC, !(t || r));
+ window.MotionCancelOptimisedAnimation(n, "transform", AC, !(t || r));
}
let { parent: r } = e;
- r && !r.hasCheckedOptimisedAppear && BD(r);
+ r && !r.hasCheckedOptimisedAppear && sO(r);
}
-function VD({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
+function cO({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
return class {
constructor(e = {}, n = t?.()) {
- this.id = Doe++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
+ this.id = ooe++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
x: 1,
y: 1
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
}, this.updateProjection = () => {
- this.projectionUpdateScheduled = !1, dE.value && (LD.nodes = LD.calculatedTargetDeltas = LD.calculatedProjections = 0), this.nodes.forEach(Aoe), this.nodes.forEach(Ioe), this.nodes.forEach(Loe), this.nodes.forEach(joe), dE.addProjectionMetrics && dE.addProjectionMetrics(LD);
+ this.projectionUpdateScheduled = !1, ME.value && (iO.nodes = iO.calculatedTargetDeltas = iO.calculatedProjections = 0), this.nodes.forEach(loe), this.nodes.forEach(hoe), this.nodes.forEach(goe), this.nodes.forEach(uoe), ME.addProjectionMetrics && ME.addProjectionMetrics(iO);
}, this.resolvedRelativeTargetAt = 0, this.linkedParentVersion = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = n ? n.root || n : this, this.path = n ? [...n.path, n] : [], this.parent = n, this.depth = n ? n.depth + 1 : 0;
for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
- this.root === this && (this.nodes = new Coe());
+ this.root === this && (this.nodes = new noe());
}
addEventListener(e, t) {
- return this.eventHandlers.has(e) || this.eventHandlers.set(e, new QS()), this.eventHandlers.get(e).add(t);
+ return this.eventHandlers.has(e) || this.eventHandlers.set(e, new sC()), this.eventHandlers.get(e).add(t);
}
notifyListeners(e, ...t) {
let n = this.eventHandlers.get(e);
@@ -31083,15 +31083,15 @@ function VD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
mount(t) {
if (this.instance) return;
- this.isSVG = iE(t) && !Oae(t), this.instance = t;
+ this.isSVG = TE(t) && !sae(t), this.instance = t;
let { layoutId: n, layout: r, visualElement: i } = this.options;
if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
- EC.read(() => {
+ AC.read(() => {
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
- e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = woe(i, 250), ID.hasAnimatedSinceResize && (ID.hasAnimatedSinceResize = !1, this.nodes.forEach(WD)));
+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = roe(i, 250), rO.hasAnimatedSinceResize && (rO.hasAnimatedSinceResize = !1, this.nodes.forEach(dO)));
});
}
n && this.root.registerSharedNode(n, this), this.options.animate !== !1 && i && (n || r) && this.addEventListener("didUpdate", ({ delta: e, hasLayoutChanged: t, hasRelativeLayoutChanged: n, layout: r }) => {
@@ -31099,23 +31099,23 @@ function VD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.target = void 0, this.relativeTarget = void 0;
return;
}
- let a = this.options.transition || i.getDefaultTransition() || Hoe, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !ED(this.targetLayout, r), l = !t && n;
+ let a = this.options.transition || i.getDefaultTransition() || xoe, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !qD(this.targetLayout, r), l = !t && n;
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
let t = {
- ...vT(a, "layout"),
+ ...jT(a, "layout"),
onPlay: o,
onComplete: s
};
(i.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
- } else t || WD(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
+ } else t || dO(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
this.targetLayout = r;
});
}
unmount() {
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
let e = this.getStack();
- e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), DC(this.updateProjection);
+ e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), jC(this.updateProjection);
}
blockUpdate() {
this.updateManuallyBlocked = !0;
@@ -31130,7 +31130,7 @@ function VD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
}
startUpdate() {
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Roe), this.animationId++);
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(_oe), this.animationId++);
}
getTransformTemplate() {
let { visualElement: e } = this.options;
@@ -31141,7 +31141,7 @@ function VD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.onExitComplete && this.options.onExitComplete();
return;
}
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && BD(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && sO(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
this.isLayoutDirty = !0;
for (let e = 0; e < this.path.length; e++) {
let t = this.path[e];
@@ -31155,39 +31155,39 @@ function VD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
update() {
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
let e = this.updateBlockedByResize;
- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Noe), this.nodes.forEach(HD);
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(foe), this.nodes.forEach(lO);
return;
}
if (this.animationId <= this.animationCommitId) {
- this.nodes.forEach(UD);
+ this.nodes.forEach(uO);
return;
}
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Poe), this.nodes.forEach(Foe), this.nodes.forEach(Ooe), this.nodes.forEach(koe)) : this.nodes.forEach(UD), this.clearAllSnapshots();
- let e = jC.now();
- OC.delta = US(0, 1e3 / 60, e - OC.timestamp), OC.timestamp = e, OC.isProcessing = !0, kC.update.process(OC), kC.preRender.process(OC), kC.render.process(OC), OC.isProcessing = !1;
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(poe), this.nodes.forEach(moe), this.nodes.forEach(soe), this.nodes.forEach(coe)) : this.nodes.forEach(uO), this.clearAllSnapshots();
+ let e = FC.now();
+ MC.delta = QS(0, 1e3 / 60, e - MC.timestamp), MC.timestamp = e, MC.isProcessing = !0, NC.update.process(MC), NC.preRender.process(MC), NC.render.process(MC), MC.isProcessing = !1;
}
didUpdate() {
- this.updateScheduled || (this.updateScheduled = !0, KT.read(this.scheduleUpdate));
+ this.updateScheduled || (this.updateScheduled = !0, aE.read(this.scheduleUpdate));
}
clearAllSnapshots() {
- this.nodes.forEach(Moe), this.sharedNodes.forEach(zoe);
+ this.nodes.forEach(doe), this.sharedNodes.forEach(voe);
}
scheduleUpdateProjection() {
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, EC.preRender(this.updateProjection, !1, !0));
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, AC.preRender(this.updateProjection, !1, !0));
}
scheduleCheckAfterUnmount() {
- EC.postRender(() => {
+ AC.postRender(() => {
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
});
}
updateSnapshot() {
- this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !pD(this.snapshot.measuredBox.x) && !pD(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
+ this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !PD(this.snapshot.measuredBox.x) && !PD(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
}
updateLayout() {
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
if (this.resumeFrom && !this.resumeFrom.instance) for (let e = 0; e < this.path.length; e++) this.path[e].updateScroll();
let e = this.layout;
- this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected ||= _E(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
+ this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected ||= RE(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
let { visualElement: t } = this.options;
t && t.notify("LayoutMeasure", this.layout.layoutBox, e ? e.layoutBox : void 0);
}
@@ -31206,12 +31206,12 @@ function VD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
resetTransform() {
if (!i) return;
- let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !CD(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
- e && this.instance && (t || FE(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
+ let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !WD(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
+ e && this.instance && (t || nD(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
}
measure(e = !0) {
let t = this.measurePageBox(), n = this.removeElementScroll(t);
- return e && (n = this.removeTransform(n)), Uoe(n), {
+ return e && (n = this.removeTransform(n)), Soe(n), {
animationId: this.root.animationId,
measuredBox: t,
layoutBox: n,
@@ -31221,42 +31221,42 @@ function VD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
measurePageBox() {
let { visualElement: e } = this.options;
- if (!e) return _E();
+ if (!e) return RE();
let t = e.measureViewportBox();
- if (!(this.scroll?.wasRoot || this.path.some(Woe))) {
+ if (!(this.scroll?.wasRoot || this.path.some(Coe))) {
let { scroll: e } = this.root;
- e && (WE(t.x, e.offset.x), WE(t.y, e.offset.y));
+ e && (dD(t.x, e.offset.x), dD(t.y, e.offset.y));
}
return t;
}
removeElementScroll(e) {
- let t = _E();
- if (dD(t, e), this.scroll?.wasRoot) return t;
+ let t = RE();
+ if (MD(t, e), this.scroll?.wasRoot) return t;
for (let n = 0; n < this.path.length; n++) {
let r = this.path[n], { scroll: i, options: a } = r;
- r !== this.root && i && a.layoutScroll && (i.wasRoot && dD(t, e), WE(t.x, i.offset.x), WE(t.y, i.offset.y));
+ r !== this.root && i && a.layoutScroll && (i.wasRoot && MD(t, e), dD(t.x, i.offset.x), dD(t.y, i.offset.y));
}
return t;
}
applyTransform(e, t = !1, n) {
- let r = n || _E();
- dD(r, e);
+ let r = n || RE();
+ MD(r, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- !t && n.options.layoutScroll && n.scroll && n !== n.root && (WE(r.x, -n.scroll.offset.x), WE(r.y, -n.scroll.offset.y)), FE(n.latestValues) && qE(r, n.latestValues, n.layout?.layoutBox);
+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (dD(r.x, -n.scroll.offset.x), dD(r.y, -n.scroll.offset.y)), nD(n.latestValues) && mD(r, n.latestValues, n.layout?.layoutBox);
}
- return FE(this.latestValues) && qE(r, this.latestValues, this.layout?.layoutBox), r;
+ return nD(this.latestValues) && mD(r, this.latestValues, this.layout?.layoutBox), r;
}
removeTransform(e) {
- let t = _E();
- dD(t, e);
+ let t = RE();
+ MD(t, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- if (!FE(n.latestValues)) continue;
+ if (!nD(n.latestValues)) continue;
let r;
- n.instance && (PE(n.latestValues) && n.updateSnapshot(), r = _E(), dD(r, n.measurePageBox())), xD(t, n.latestValues, n.snapshot?.layoutBox, r);
+ n.instance && (tD(n.latestValues) && n.updateSnapshot(), r = RE(), MD(r, n.measurePageBox())), HD(t, n.latestValues, n.snapshot?.layoutBox, r);
}
- return FE(this.latestValues) && xD(t, this.latestValues), t;
+ return nD(this.latestValues) && HD(t, this.latestValues), t;
}
setTargetDelta(e) {
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -31272,7 +31272,7 @@ function VD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
}
forceRelativeParentToResolveTarget() {
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== OC.timestamp && this.relativeParent.resolveTargetDelta(!0);
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== MC.timestamp && this.relativeParent.resolveTargetDelta(!0);
}
resolveTargetDelta(e = !1) {
let t = this.getLead();
@@ -31281,36 +31281,36 @@ function VD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if (!(e || n && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
let { layout: r, layoutId: i } = this.options;
if (!this.layout || !(r || i)) return;
- this.resolvedRelativeTargetAt = OC.timestamp;
+ this.resolvedRelativeTargetAt = MC.timestamp;
let a = this.getClosestProjectingParent();
- a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = _E(), this.targetWithTransforms = _E()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), doe(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : dD(this.target, this.layout.layoutBox), VE(this.target, this.targetDelta)) : dD(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), dE.value && LD.calculatedTargetDeltas++);
+ a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = RE(), this.targetWithTransforms = RE()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Wae(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : MD(this.target, this.layout.layoutBox), cD(this.target, this.targetDelta)) : MD(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), ME.value && iO.calculatedTargetDeltas++);
}
getClosestProjectingParent() {
- if (!(!this.parent || PE(this.parent.latestValues) || IE(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
+ if (!(!this.parent || tD(this.parent.latestValues) || rD(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
}
isProjecting() {
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
}
createRelativeTarget(e, t, n) {
- this.relativeParent = e, this.linkedParentVersion = e.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = _E(), this.relativeTargetOrigin = _E(), vD(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), dD(this.relativeTarget, this.relativeTargetOrigin);
+ this.relativeParent = e, this.linkedParentVersion = e.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = RE(), this.relativeTargetOrigin = RE(), zD(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), MD(this.relativeTarget, this.relativeTargetOrigin);
}
removeRelativeTarget() {
this.relativeParent = this.relativeTarget = void 0;
}
calcProjection() {
let e = this.getLead(), t = !!this.resumingFrom || this !== e, n = !0;
- if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === OC.timestamp && (n = !1), n) return;
+ if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === MC.timestamp && (n = !1), n) return;
let { layout: r, layoutId: i } = this.options;
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
- dD(this.layoutCorrected, this.layout.layoutBox);
+ MD(this.layoutCorrected, this.layout.layoutBox);
let a = this.treeScale.x, o = this.treeScale.y;
- Bae(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = _E());
+ yae(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = RE());
let { target: s } = e;
if (!s) {
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
return;
}
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (fD(this.prevProjectionDelta.x, this.projectionDelta.x), fD(this.prevProjectionDelta.y, this.projectionDelta.y)), hD(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !OD(this.projectionDelta.x, this.prevProjectionDelta.x) || !OD(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), dE.value && LD.calculatedProjections++;
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (ND(this.prevProjectionDelta.x, this.projectionDelta.x), ND(this.prevProjectionDelta.y, this.projectionDelta.y)), ID(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !YD(this.projectionDelta.x, this.prevProjectionDelta.x) || !YD(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), ME.value && iO.calculatedProjections++;
}
hide() {
this.isVisible = !1;
@@ -31326,22 +31326,22 @@ function VD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
}
createProjectionDeltas() {
- this.prevProjectionDelta = hE(), this.projectionDelta = hE(), this.projectionDeltaWithTransform = hE();
+ this.prevProjectionDelta = IE(), this.projectionDelta = IE(), this.projectionDeltaWithTransform = IE();
}
setAnimationOrigin(e, t = !1, n) {
- let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = hE();
+ let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = IE();
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
- let s = _E(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !!(c && !u && this.options.crossfade === !0 && !this.path.some(Voe));
+ let s = RE(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !!(c && !u && this.options.crossfade === !0 && !this.path.some(boe));
this.animationProgress = 0;
let f, p = n?.interpolateProjection(e);
this.mixTargetDelta = (t) => {
let n = t / 1e3, r = p?.(n);
- r ? (o.x.translate = r.x, o.x.scale = sw(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = sw(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (GD(o.x, e.x, n), GD(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (vD(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Boe(this.relativeTarget, this.relativeTargetOrigin, s, n), f && hoe(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= _E(), dD(f, this.relativeTarget)), c && (this.animationValues = a, voe(a, i, this.latestValues, n, d, u)), r && r.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
+ r ? (o.x.translate = r.x, o.x.scale = pw(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = pw(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (fO(o.x, e.x, n), fO(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (zD(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), yoe(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Jae(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= RE(), MD(f, this.relativeTarget)), c && (this.animationValues = a, Zae(a, i, this.latestValues, n, d, u)), r && r.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
}
startAnimation(e) {
- this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (DC(this.pendingAnimation), void 0), this.pendingAnimation = EC.update(() => {
- ID.hasAnimatedSinceResize = !0, this.motionValue ||= gT(0), this.motionValue.jump(0, !1), this.currentAnimation = xoe(this.motionValue, [0, 1e3], {
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (jC(this.pendingAnimation), void 0), this.pendingAnimation = AC.update(() => {
+ rO.hasAnimatedSinceResize = !0, this.motionValue ||= kT(0), this.motionValue.jump(0, !1), this.currentAnimation = eoe(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
isSync: !0,
@@ -31360,23 +31360,23 @@ function VD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
e && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
}
finishAnimation() {
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Eoe), this.currentAnimation.stop()), this.completeAnimation();
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(aoe), this.currentAnimation.stop()), this.completeAnimation();
}
applyTransformsToTarget() {
let e = this.getLead(), { targetWithTransforms: t, target: n, layout: r, latestValues: i } = e;
if (!(!t || !n || !r)) {
- if (this !== e && this.layout && r && XD(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {
- n = this.target || _E();
- let t = pD(this.layout.layoutBox.x);
+ if (this !== e && this.layout && r && _O(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {
+ n = this.target || RE();
+ let t = PD(this.layout.layoutBox.x);
n.x.min = e.target.x.min, n.x.max = n.x.min + t;
- let r = pD(this.layout.layoutBox.y);
+ let r = PD(this.layout.layoutBox.y);
n.y.min = e.target.y.min, n.y.max = n.y.min + r;
}
- dD(t, n), qE(t, i), hD(this.projectionDeltaWithTransform, this.layoutCorrected, t, i);
+ MD(t, n), mD(t, i), ID(this.projectionDeltaWithTransform, this.layoutCorrected, t, i);
}
}
registerSharedNode(e, t) {
- this.sharedNodes.has(e) || this.sharedNodes.set(e, new Toe()), this.sharedNodes.get(e).add(t);
+ this.sharedNodes.has(e) || this.sharedNodes.set(e, new ioe()), this.sharedNodes.get(e).add(t);
let n = t.options.initialPromotionConfig;
t.promote({
transition: n ? n.transition : void 0,
@@ -31413,8 +31413,8 @@ function VD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let t = !1, { latestValues: n } = e;
if ((n.z || n.rotate || n.rotateX || n.rotateY || n.rotateZ || n.skewX || n.skewY) && (t = !0), !t) return;
let r = {};
- n.z && zD("z", e, r, this.animationValues);
- for (let t = 0; t < RD.length; t++) zD(`rotate${RD[t]}`, e, r, this.animationValues), zD(`skew${RD[t]}`, e, r, this.animationValues);
+ n.z && oO("z", e, r, this.animationValues);
+ for (let t = 0; t < aO.length; t++) oO(`rotate${aO[t]}`, e, r, this.animationValues), oO(`skew${aO[t]}`, e, r, this.animationValues);
e.render();
for (let t in r) e.setStaticValue(t, r[t]), this.animationValues && (this.animationValues[t] = r[t]);
e.scheduleRender();
@@ -31427,71 +31427,71 @@ function VD({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
let n = this.getTransformTemplate();
if (this.needsReset) {
- this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = FD(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = nO(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
return;
}
let r = this.getLead();
if (!this.projectionDelta || !this.layout || !r.target) {
- this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = FD(t?.pointerEvents) || ""), this.hasProjected && !FE(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
+ this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = nO(t?.pointerEvents) || ""), this.hasProjected && !nD(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
return;
}
e.visibility = "";
let i = r.animationValues || r.latestValues;
this.applyTransformsToTarget();
- let a = goe(this.projectionDeltaWithTransform, this.treeScale, i);
+ let a = Yae(this.projectionDeltaWithTransform, this.treeScale, i);
n && (a = n(i, a)), e.transform = a;
let { x: o, y: s } = this.projectionDelta;
e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, e.opacity = r.animationValues ? r === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : r === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;
- for (let t in $E) {
+ for (let t in bD) {
if (i[t] === void 0) continue;
- let { correct: n, applyTo: o, isCSSVariable: s } = $E[t], c = a === "none" ? i[t] : n(i[t], r);
+ let { correct: n, applyTo: o, isCSSVariable: s } = bD[t], c = a === "none" ? i[t] : n(i[t], r);
if (o) {
let t = o.length;
for (let n = 0; n < t; n++) e[o[n]] = c;
} else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;
}
- this.options.layoutId && (e.pointerEvents = r === this ? FD(t?.pointerEvents) || "" : "none");
+ this.options.layoutId && (e.pointerEvents = r === this ? nO(t?.pointerEvents) || "" : "none");
}
clearSnapshot() {
this.resumeFrom = this.snapshot = void 0;
}
resetTree() {
- this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(HD), this.root.sharedNodes.clear();
+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(lO), this.root.sharedNodes.clear();
}
};
}
-function Ooe(e) {
+function soe(e) {
e.updateLayout();
}
-function koe(e) {
+function coe(e) {
let t = e.resumeFrom?.snapshot || e.snapshot;
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source;
- if (i === "size") kD((e) => {
- let r = a ? t.measuredBox[e] : t.layoutBox[e], i = pD(r);
+ if (i === "size") XD((e) => {
+ let r = a ? t.measuredBox[e] : t.layoutBox[e], i = PD(r);
r.min = n[e].min, r.max = r.min + i;
});
else if (i === "x" || i === "y") {
let e = i === "x" ? "y" : "x";
- uD(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
- } else XD(i, t.layoutBox, n) && kD((r) => {
- let i = a ? t.measuredBox[r] : t.layoutBox[r], o = pD(n[r]);
+ jD(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
+ } else _O(i, t.layoutBox, n) && XD((r) => {
+ let i = a ? t.measuredBox[r] : t.layoutBox[r], o = PD(n[r]);
i.max = i.min + o, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[r].max = e.relativeTarget[r].min + o);
});
- let o = hE();
- hD(o, n, t.layoutBox);
- let s = hE();
- a ? hD(s, e.applyTransform(r, !0), t.measuredBox) : hD(s, n, t.layoutBox);
- let c = !CD(o), l = !1;
+ let o = IE();
+ ID(o, n, t.layoutBox);
+ let s = IE();
+ a ? ID(s, e.applyTransform(r, !0), t.measuredBox) : ID(s, n, t.layoutBox);
+ let c = !WD(o), l = !1;
if (!e.resumeFrom) {
let r = e.getClosestProjectingParent();
if (r && !r.resumeFrom) {
let { snapshot: i, layout: a } = r;
if (i && a) {
- let o = e.options.layoutAnchor || void 0, s = _E();
- vD(s, t.layoutBox, i.layoutBox, o);
- let c = _E();
- vD(c, n, a.layoutBox, o), ED(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
+ let o = e.options.layoutAnchor || void 0, s = RE();
+ zD(s, t.layoutBox, i.layoutBox, o);
+ let c = RE();
+ zD(c, n, a.layoutBox, o), qD(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
}
}
}
@@ -31509,59 +31509,59 @@ function koe(e) {
}
e.options.transition = void 0;
}
-function Aoe(e) {
- dE.value && LD.nodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
+function loe(e) {
+ ME.value && iO.nodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
}
-function joe(e) {
+function uoe(e) {
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
}
-function Moe(e) {
+function doe(e) {
e.clearSnapshot();
}
-function HD(e) {
+function lO(e) {
e.clearMeasurements();
}
-function Noe(e) {
+function foe(e) {
e.isLayoutDirty = !0, e.updateLayout();
}
-function UD(e) {
+function uO(e) {
e.isLayoutDirty = !1;
}
-function Poe(e) {
+function poe(e) {
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.layout, e.isLayoutDirty = !0);
}
-function Foe(e) {
+function moe(e) {
let { visualElement: t } = e.options;
t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
}
-function WD(e) {
+function dO(e) {
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
}
-function Ioe(e) {
+function hoe(e) {
e.resolveTargetDelta();
}
-function Loe(e) {
+function goe(e) {
e.calcProjection();
}
-function Roe(e) {
+function _oe(e) {
e.resetSkewAndRotation();
}
-function zoe(e) {
+function voe(e) {
e.removeLeadSnapshot();
}
-function GD(e, t, n) {
- e.translate = sw(t.translate, 0, n), e.scale = sw(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
+function fO(e, t, n) {
+ e.translate = pw(t.translate, 0, n), e.scale = pw(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
}
-function KD(e, t, n, r) {
- e.min = sw(t.min, n.min, r), e.max = sw(t.max, n.max, r);
+function pO(e, t, n, r) {
+ e.min = pw(t.min, n.min, r), e.max = pw(t.max, n.max, r);
}
-function Boe(e, t, n, r) {
- KD(e.x, t.x, n.x, r), KD(e.y, t.y, n.y, r);
+function yoe(e, t, n, r) {
+ pO(e.x, t.x, n.x, r), pO(e.y, t.y, n.y, r);
}
-function Voe(e) {
+function boe(e) {
return e.animationValues && e.animationValues.opacityExit !== void 0;
}
-var Hoe = {
+var xoe = {
duration: .45,
ease: [
.4,
@@ -31569,39 +31569,39 @@ var Hoe = {
.1,
1
]
-}, qD = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), JD = qD("applewebkit/") && !qD("chrome/") ? Math.round : YS;
-function YD(e) {
- e.min = JD(e.min), e.max = JD(e.max);
+}, mO = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), hO = mO("applewebkit/") && !mO("chrome/") ? Math.round : iC;
+function gO(e) {
+ e.min = hO(e.min), e.max = hO(e.max);
}
-function Uoe(e) {
- YD(e.x), YD(e.y);
+function Soe(e) {
+ gO(e.x), gO(e.y);
}
-function XD(e, t, n) {
- return e === "position" || e === "preserve-aspect" && !uoe(DD(t), DD(n), .2);
+function _O(e, t, n) {
+ return e === "position" || e === "preserve-aspect" && !Uae(JD(t), JD(n), .2);
}
-function Woe(e) {
+function Coe(e) {
return e !== e.root && e.scroll?.wasRoot;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
-var Goe = VD({
- attachResizeListener: (e, t) => PD(e, "resize", t),
+var woe = cO({
+ attachResizeListener: (e, t) => tO(e, "resize", t),
measureScroll: () => ({
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
}),
checkIsScrollRoot: () => !0
-}), ZD = { current: void 0 }, QD = VD({
+}), vO = { current: void 0 }, yO = cO({
measureScroll: (e) => ({
x: e.scrollLeft,
y: e.scrollTop
}),
defaultParent: () => {
- if (!ZD.current) {
- let e = new Goe({});
- e.mount(window), e.setOptions({ layoutScroll: !0 }), ZD.current = e;
+ if (!vO.current) {
+ let e = new woe({});
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), vO.current = e;
}
- return ZD.current;
+ return vO.current;
},
resetTransform: (e, t) => {
e.style.transform = t === void 0 ? "none" : t;
@@ -31610,18 +31610,18 @@ var Goe = VD({
});
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
-function Koe(e, t, n, r) {
+function Toe(e, t, n, r) {
if (e == null) return [];
- let i = UT(e, r), a = i.length, o = [];
+ let i = nE(e, r), a = i.length, o = [];
for (let e = 0; e < a; e++) {
let r = i[e], s = { ...n };
typeof s.delay == "function" && (s.delay = s.delay(e, a));
for (let e in t) {
let n = t[e];
Array.isArray(n) || (n = [n]);
- let i = { ...vT(s, e) };
- i.duration &&= /* @__PURE__ */ $S(i.duration), i.delay &&= /* @__PURE__ */ $S(i.delay);
- let a = Nie(r), c = Mie(e, i.pseudoElement || ""), l = a.get(c);
+ let i = { ...jT(s, e) };
+ i.duration &&= /* @__PURE__ */ cC(i.duration), i.delay &&= /* @__PURE__ */ cC(i.delay);
+ let a = bie(r), c = yie(e, i.pseudoElement || ""), l = a.get(c);
l && l.stop(), o.push({
map: a,
key: c,
@@ -31637,40 +31637,40 @@ function Koe(e, t, n, r) {
}
for (let e = 0; e < o.length; e++) {
let { unresolvedKeyframes: t, options: n } = o[e], { element: r, name: i, pseudoElement: a } = n;
- !a && t[0] === null && (t[0] = rE(r, i)), jw(t), lae(t, i), !a && t.length < 2 && t.unshift(rE(r, i)), n.keyframes = t;
+ !a && t[0] === null && (t[0] = wE(r, i)), Hw(t), Xie(t, i), !a && t.length < 2 && t.unshift(wE(r, i)), n.keyframes = t;
}
let s = [];
for (let e = 0; e < o.length; e++) {
- let { map: t, key: n, options: r } = o[e], i = new aT(r);
+ let { map: t, key: n, options: r } = o[e], i = new vT(r);
t.set(n, i), i.finished.finally(() => t.delete(n)), s.push(i);
}
return s;
}
-var qoe = /*@__PURE__*/ ((e) => {
+var Eoe = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new jie(Koe(t, n, r, e));
+ return new vie(Toe(t, n, r, e));
}
return t;
-})(), $D = (e, t) => Math.abs(e - t);
-function Joe(e, t) {
- let n = $D(e.x, t.x), r = $D(e.y, t.y);
+})(), bO = (e, t) => Math.abs(e - t);
+function Doe(e, t) {
+ let n = bO(e.x, t.x), r = bO(e.y, t.y);
return Math.sqrt(n ** 2 + r ** 2);
}
//#endregion
//#region src/react/components/use-moving-surface.ts
-var Yoe = {
+var Ooe = {
selection: {
- type: Sw,
+ type: Nw,
duration: .16,
bounce: 0
},
hover: {
- type: Sw,
+ type: Nw,
duration: .08,
bounce: 0
}
};
-function eO(e) {
+function xO(e) {
let [t, n] = (0, R.useState)(null);
return (0, R.useLayoutEffect)(() => {
if (!t) return;
@@ -31691,7 +31691,7 @@ function eO(e) {
let E = `translate(${b}px, ${x}px) scale(1, 1)`;
if (u && a && !r.matches && T && s !== h) {
let r = `translate(${(T.left - _.left) / v + t.scrollLeft - t.clientLeft}px, ${(T.top - _.top) / y + t.scrollTop - t.clientTop}px) scale(${T.width / v / S}, ${T.height / y / C})`;
- l = qoe(n, { transform: [r, E] }, Yoe[e]);
+ l = Eoe(n, { transform: [r, E] }, Ooe[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -31728,16 +31728,16 @@ function eO(e) {
}
//#endregion
//#region src/react/components/menu-dialog.tsx
-function tO(e) {
- let t = eO("hover");
- return /* @__PURE__ */ (0, z.jsx)(yb, {
+function SO(e) {
+ let t = xO("hover");
+ return /* @__PURE__ */ (0, z.jsx)(jb, {
...e,
ref: t
});
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var nO = Fi({
+var CO = Fi({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -31761,15 +31761,15 @@ var nO = Fi({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function rO({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = Pi(nO.base, nO.size[t], nO.variant[e], a), l = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
+function wO({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = Pi(CO.base, CO.size[t], CO.variant[e], a), l = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
n ? /* @__PURE__ */ (0, z.jsx)(n, {
- className: nO.icon[t],
+ className: CO.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, z.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, z.jsx)(r, {
- className: nO.icon[t],
+ className: CO.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -31796,7 +31796,7 @@ function rO({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var iO = [
+var TO = [
"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",
@@ -31804,74 +31804,74 @@ var iO = [
"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(" "), Xoe = "w-[266px]", Zoe = "flex w-full flex-col gap-1 outline-none", aO = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), oO = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+].join(" "), EO = "w-[266px]", DO = "flex w-full flex-col gap-1 outline-none", OO = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), kO = "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 Qoe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", $oe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", ese = Yi({
+var AO = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", jO = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", MO = Yi({
padding: "none",
bordered: "line",
className: "overflow-hidden"
-}), tse = {
+}), NO = {
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"
-}, nse = {
+}, PO = {
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"
-}, rse = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", ise = {
+}, FO = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", IO = {
neutral: "border-border-button-default bg-card-footer",
error: "border-border-error-default bg-background-tertiary-error"
-}, ase = Yi({
+}, LO = Yi({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
-}), sO = "border-t border-border-button-default p-4 first:border-t-0";
-function cO({ tone: e = "neutral", status: t, children: n }) {
+}), RO = "border-t border-border-button-default p-4 first:border-t-0";
+function zO({ tone: e = "neutral", status: t, children: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: `${rse} ${ise[e]}`,
+ className: `${FO} ${IO[e]}`,
children: [t ? /* @__PURE__ */ (0, z.jsx)("p", {
className: `mr-auto min-w-0 text-caption-1-regular ${e === "error" ? "text-text-error-primary" : "text-text-secondary"}`,
children: t
}) : null, n]
});
}
-function lO({ id: e, children: t }) {
+function BO({ id: e, children: t }) {
return /* @__PURE__ */ (0, z.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
children: t
});
}
-function uO({ id: e, gap: t = "none", children: n }) {
+function VO({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, z.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function dO({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function HO({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, z.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: `${ese} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
+ className: `${MO} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
children: [/* @__PURE__ */ (0, z.jsx)("div", {
- className: tse[e],
+ className: NO[e],
children: a
}), i ? /* @__PURE__ */ (0, z.jsx)("footer", {
- className: nse[e],
+ className: PO[e],
children: i
}) : null]
});
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function fO() {
+function UO() {
let e = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
v(e.current);
@@ -31879,7 +31879,7 @@ function fO() {
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var pO = Fi({
+var WO = Fi({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -31900,21 +31900,21 @@ var pO = Fi({
small: "size-4 shrink-0"
}
});
-function mO({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function GO({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, z.jsx)("button", {
ref: i,
type: r,
- className: Pi(pO.base, pO.size[t], n),
+ className: Pi(WO.base, WO.size[t], n),
...a,
children: /* @__PURE__ */ (0, z.jsx)(e, {
- className: pO.icon[t],
+ className: WO.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/components/path-line.tsx
-function ose({ className: e }) {
+function KO({ className: e }) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -31927,8 +31927,8 @@ function ose({ className: e }) {
children: /* @__PURE__ */ (0, z.jsx)("use", { href: "#i-folder-open" })
});
}
-var sse = "打开文件管理器失败,请重试";
-function hO({ path: e, prefix: t, className: n, onRevealed: r }) {
+var qO = "打开文件管理器失败,请重试";
+function JO({ path: e, prefix: t, className: n, onRevealed: r }) {
let [i, a] = (0, R.useState)(!1), [o, s] = (0, R.useState)(""), c = (0, R.useRef)(!0);
(0, R.useEffect)(() => () => {
c.current = !1;
@@ -31939,7 +31939,7 @@ function hO({ path: e, prefix: t, className: n, onRevealed: r }) {
try {
await G("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof Bi ? e.message : sse);
+ c.current && s(e instanceof Bi ? e.message : qO);
} finally {
c.current && a(!1);
}
@@ -31952,8 +31952,8 @@ function hO({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, z.jsxs)("p", {
className: Pi("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, z.jsx)(mO, {
- icon: ose,
+ }), /* @__PURE__ */ (0, z.jsx)(GO, {
+ icon: KO,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
@@ -31968,7 +31968,7 @@ function hO({ path: e, prefix: t, className: n, onRevealed: r }) {
}
//#endregion
//#region src/react/components/task-progress.tsx
-function gO({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function YO({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-task-progress": !0,
className: r ? "flex flex-col gap-1.5" : Yi({
@@ -31988,19 +31988,19 @@ function gO({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function cse({ className: e, children: t }) {
+function XO({ className: e, children: t }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
className: Pi("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function _O({ className: e, children: t }) {
+function ZO({ className: e, children: t }) {
return /* @__PURE__ */ (0, z.jsx)("p", {
className: Pi("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function vO({ label: e, description: t, children: n }) {
+function QO({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: Pi("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
@@ -32017,14 +32017,14 @@ function vO({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/settings/section.tsx
-function yO({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+function $O({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
let a = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [n ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, z.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, z.jsx)(_O, { children: e })
+ children: /* @__PURE__ */ (0, z.jsx)(ZO, { children: e })
}), n]
- }) : /* @__PURE__ */ (0, z.jsx)(_O, { children: e }), /* @__PURE__ */ (0, z.jsx)(cse, { children: i })] });
+ }) : /* @__PURE__ */ (0, z.jsx)(ZO, { children: e }), /* @__PURE__ */ (0, z.jsx)(XO, { children: i })] });
return r ? /* @__PURE__ */ (0, z.jsx)("form", {
id: t,
"aria-label": e,
@@ -32039,13 +32039,13 @@ function yO({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
children: a
});
}
-function bO({ children: e }) {
+function ek({ children: e }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function xO({ divided: e = !1, children: t }) {
+function tk({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
@@ -32054,7 +32054,7 @@ function xO({ divided: e = !1, children: t }) {
children: t
});
}
-function SO({ status: e, children: t }) {
+function nk({ status: e, children: t }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3",
children: [e ? /* @__PURE__ */ (0, z.jsx)("div", {
@@ -32063,28 +32063,28 @@ function SO({ status: e, children: t }) {
}) : null, t]
});
}
-function CO({ role: e, children: t }) {
+function rk({ role: e, children: t }) {
return /* @__PURE__ */ (0, z.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function wO({ children: e }) {
+function ik({ children: e }) {
return /* @__PURE__ */ (0, z.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function TO({ children: e }) {
+function ak({ children: e }) {
return /* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function EO({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, z.jsx)(rO, {
+function ok({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, z.jsx)(wO, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
@@ -32098,13 +32098,13 @@ function EO({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function DO({ children: e }) {
+function sk({ children: e }) {
return /* @__PURE__ */ (0, z.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function OO({ term: e, children: t }) {
+function ck({ term: e, children: t }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0",
children: [/* @__PURE__ */ (0, z.jsx)("dt", {
@@ -32116,7 +32116,7 @@ function OO({ term: e, children: t }) {
})]
});
}
-function kO({ summary: e, defaultOpen: t = !1, children: n }) {
+function lk({ summary: e, defaultOpen: t = !1, children: n }) {
let r = (0, R.useId)(), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(!1), [s, c] = (0, R.useState)(t);
return /* @__PURE__ */ (0, z.jsxs)("details", {
ref: (e) => {
@@ -32144,7 +32144,7 @@ function kO({ summary: e, defaultOpen: t = !1, children: n }) {
})]
});
}
-function lse({ name: e }) {
+function koe({ name: e }) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -32153,18 +32153,18 @@ function lse({ name: e }) {
children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
});
}
-function AO({ mark: e }) {
+function uk({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, z.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, z.jsx)(lse, { name: e });
+ }) : /* @__PURE__ */ (0, z.jsx)(koe, { name: e });
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function jO({ toast: e, mode: t, monitor: n }) {
+function dk({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = Zn({
queryKey: ls,
queryFn: ({ signal: e }) => us(e),
@@ -32188,7 +32188,7 @@ function jO({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var use = [
+var Aoe = [
{
label: "扫描并补全资料",
icon: Ze,
@@ -32204,13 +32204,13 @@ var use = [
icon: rt,
command: { stage: "collect" }
}
-], dse = Pi(aO, oO, "text-body-2-medium"), fse = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", pse = (e) => {
+], joe = Pi(OO, kO, "text-body-2-medium"), Moe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Noe = (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(",")}。`;
-}, mse = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + pse(e);
-function hse({ busy: e, onRun: t }) {
+}, Poe = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + Noe(e);
+function Foe({ busy: e, onRun: t }) {
let n = (0, R.useRef)(null), [r, i] = (0, R.useState)(!1), a = (n) => {
e || (i(!1), t(n));
};
@@ -32235,19 +32235,19 @@ function hse({ busy: e, onRun: t }) {
e || i(!0);
}
})]
- }), /* @__PURE__ */ (0, z.jsx)(Ty, {
+ }), /* @__PURE__ */ (0, z.jsx)(Ly, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: iO,
- children: /* @__PURE__ */ (0, z.jsx)(tO, {
+ className: TO,
+ children: /* @__PURE__ */ (0, z.jsx)(SO, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: use.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ children: Aoe.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
- className: dse,
+ className: joe,
onClick: () => a(n),
children: [/* @__PURE__ */ (0, z.jsx)(t, {
"aria-hidden": !0,
@@ -32257,8 +32257,8 @@ function hse({ busy: e, onRun: t }) {
})
})] });
}
-function gse({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = bs(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = vs(e.notes || {}), c = fO();
+function Ioe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = bs(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = vs(e.notes || {}), c = UO();
return /* @__PURE__ */ (0, z.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
@@ -32266,7 +32266,7 @@ function gse({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
e.status === "running" && e.stalled ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "warning",
title: "处理较慢",
- children: fse
+ children: Moe
}) : null,
t || e.status === "failed" ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
@@ -32278,7 +32278,7 @@ function gse({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
extra: a ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5",
- children: /* @__PURE__ */ (0, z.jsxs)(kO, {
+ children: /* @__PURE__ */ (0, z.jsxs)(lk, {
summary: a.label,
children: [/* @__PURE__ */ (0, z.jsx)("div", {
className: "relative",
@@ -32309,7 +32309,7 @@ function gse({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}), a.log ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",
- children: /* @__PURE__ */ (0, z.jsx)(hO, {
+ children: /* @__PURE__ */ (0, z.jsx)(JO, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -32323,13 +32323,13 @@ function gse({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
n?.status === "complete" ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "success",
title: "处理完成",
- children: mse(n)
+ children: Poe(n)
}) : null,
e.status !== "running" && s ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "neutral",
extra: e.issues_log ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",
- children: /* @__PURE__ */ (0, z.jsx)(hO, {
+ children: /* @__PURE__ */ (0, z.jsx)(JO, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -32341,8 +32341,8 @@ function gse({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
]
});
}
-function MO(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = jO(e), o = Qn({
+function fk(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = dk(e), o = Qn({
mutationFn: (e) => G(cs, e),
onSuccess: (e) => {
a(), J.setQueryData(ls, e), J.invalidateQueries({ queryKey: ls });
@@ -32356,23 +32356,23 @@ function MO(e) {
};
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, z.jsx)(dO, {
+ children: [/* @__PURE__ */ (0, z.jsx)(HO, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)(rO, {
+ /* @__PURE__ */ (0, z.jsx)(wO, {
href: "/scraping",
size: "small",
trailingIcon: Ue,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, z.jsx)(rO, {
+ s.candidates ? /* @__PURE__ */ (0, z.jsx)(wO, {
href: "/review",
size: "small",
trailingIcon: Ue,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, z.jsx)(hse, {
+ /* @__PURE__ */ (0, z.jsx)(Foe, {
busy: l,
onRun: d
})
@@ -32380,12 +32380,12 @@ function MO(e) {
children: /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(uO, { children: "扫描与采集" }),
+ /* @__PURE__ */ (0, z.jsx)(VO, { children: "扫描与采集" }),
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: Qoe
+ children: AO
}),
- s.status === "running" ? /* @__PURE__ */ (0, z.jsx)(gO, {
+ s.status === "running" ? /* @__PURE__ */ (0, z.jsx)(YO, {
embedded: !0,
label: u,
value: s.checked,
@@ -32393,7 +32393,7 @@ function MO(e) {
}) : null
]
})
- }), /* @__PURE__ */ (0, z.jsx)(gse, {
+ }), /* @__PURE__ */ (0, z.jsx)(Ioe, {
state: s,
problem: c,
settled: i,
@@ -32409,7 +32409,7 @@ function MO(e) {
}
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function _se(e) {
+function Loe(e) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -32423,7 +32423,7 @@ function _se(e) {
})
});
}
-function vse(e) {
+function Roe(e) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -32437,7 +32437,7 @@ function vse(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function yse(e, t, n) {
+function zoe(e, t, n) {
(0, R.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -32451,7 +32451,7 @@ function yse(e, t, n) {
n
]);
}
-function bse(e, t) {
+function Boe(e, t) {
let n = (0, R.useRef)(!1);
return (0, R.useEffect)(() => {
if (!e) return;
@@ -32465,12 +32465,12 @@ function bse(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var NO = (0, R.createContext)("md");
-function PO({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var pk = (0, R.createContext)("md");
+function mk({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, R.useRef)(null), u = (0, R.useRef)(null), [d, f] = (0, R.useState)(!1);
- yse(d, () => f(!1), [l, u]);
- let p = bse(d, l);
- return /* @__PURE__ */ (0, z.jsx)(ane, {
+ zoe(d, () => f(!1), [l, u]);
+ let p = Boe(d, l);
+ return /* @__PURE__ */ (0, z.jsx)(qte, {
ref: s,
...c,
isOpen: d,
@@ -32479,19 +32479,19 @@ function PO({ className: e, triggerClassName: t, popoverClassName: n, size: r =
children: ({ isOpen: e }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)(ph, {
ref: l,
className: Pi("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
- children: [/* @__PURE__ */ (0, z.jsx)(cne, {
+ children: [/* @__PURE__ */ (0, z.jsx)(Xte, {
className: Pi("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, z.jsx)(_se, { className: Pi("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, z.jsx)(Ty, {
+ }), /* @__PURE__ */ (0, z.jsx)(Loe, { className: Pi("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, z.jsx)(Ly, {
ref: u,
isNonModal: !0,
offset: 4,
- className: Pi(Xoe, iO, "p-2", n),
- children: /* @__PURE__ */ (0, z.jsx)(Ree, {
+ className: Pi(EO, TO, "p-2", n),
+ children: /* @__PURE__ */ (0, z.jsx)(Iee, {
items: a,
- className: Pi(Zoe, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, z.jsx)(NO.Provider, {
+ className: Pi(DO, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, z.jsx)(pk.Provider, {
value: r,
children: i
})
@@ -32499,19 +32499,19 @@ function PO({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function FO({ className: e, children: t, ...n }) {
- let r = (0, R.useContext)(NO);
- return /* @__PURE__ */ (0, z.jsx)(Vee, {
+function hk({ className: e, children: t, ...n }) {
+ let r = (0, R.useContext)(pk);
+ return /* @__PURE__ */ (0, z.jsx)(zee, {
...n,
- className: (t) => Pi(aO, 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) => Pi(OO, 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 IO = 2e3, xse = (e) => e, Sse = (e, t) => t;
-function LO(e) {
- let { queryKey: t, jobOf: n = xse, withJob: r = Sse, idlePollMs: i } = e, [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(null), l = (0, R.useRef)(e);
+var gk = 2e3, Voe = (e) => e, Hoe = (e, t) => t;
+function _k(e) {
+ let { queryKey: t, jobOf: n = Voe, withJob: r = Hoe, idlePollMs: i } = e, [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(null), l = (0, R.useRef)(e);
(0, R.useEffect)(() => {
l.current = e;
});
@@ -32520,7 +32520,7 @@ function LO(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? IO : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? gk : i ?? !1;
}
}), d = Qn({
mutationFn: (e) => l.current.start(e),
@@ -32551,12 +32551,12 @@ function LO(e) {
}
//#endregion
//#region src/react/media-repair/media-repair-card.tsx
-var Cse = (e) => _[e] || e, RO = (e) => J.setQueryData(Ts, e);
-function wse() {
+var Uoe = (e) => _[e] || e, vk = (e) => J.setQueryData(Ts, e);
+function Woe() {
let e = Zn({
queryKey: Ts,
queryFn: ({ signal: e }) => Os(e),
- refetchInterval: (e) => e.state.data?.status === "running" && IO
+ refetchInterval: (e) => e.state.data?.status === "running" && gk
}), t = Zn({
queryKey: Es,
queryFn: ({ signal: e }) => ks(e)
@@ -32565,18 +32565,18 @@ function wse() {
title: `修复媒体库「${c.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
confirmLabel: "修复媒体库",
- onConfirm: async () => RO(await G(ws, {
+ onConfirm: async () => vk(await G(ws, {
library: c.id,
restart: !0
}))
});
- }, u = () => void i.run("stop", (e) => G(ws, { stop: !0 }, "POST", e), RO), d = Ms(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
+ }, u = () => void i.run("stop", (e) => G(ws, { stop: !0 }, "POST", e), vk), d = Ms(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, z.jsx)(dO, {
+ children: [/* @__PURE__ */ (0, z.jsx)(HO, {
layout: "split",
label: "媒体修复",
- footer: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(PO, {
+ footer: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(mk, {
"aria-label": "媒体库",
className: "w-48",
selectedKey: c?.id ?? null,
@@ -32584,10 +32584,10 @@ function wse() {
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: o.map((e) => /* @__PURE__ */ (0, z.jsxs)(FO, {
+ children: o.map((e) => /* @__PURE__ */ (0, z.jsxs)(hk, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, z.jsx)(AO, { mark: Cse(e.icon) }), e.name]
+ children: [/* @__PURE__ */ (0, z.jsx)(uk, { mark: Uoe(e.icon) }), e.name]
}, e.id))
}), s ? /* @__PURE__ */ (0, z.jsx)(H, {
onClick: u,
@@ -32601,10 +32601,10 @@ function wse() {
children: /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(uO, { children: "媒体修复" }),
+ /* @__PURE__ */ (0, z.jsx)(VO, { children: "媒体修复" }),
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: $oe
+ children: jO
}),
s && a.total ? /* @__PURE__ */ (0, z.jsx)(na, {
label: "修复进度",
@@ -32642,7 +32642,7 @@ function wse() {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var zO = {
+var yk = {
md: {
box: "size-4",
glyph: "size-4",
@@ -32656,8 +32656,8 @@ var zO = {
gap: "gap-1.5"
}
};
-function BO({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = zO[t], c = n || r, l = o && !a;
+function bk({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = yk[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, z.jsx)("span", {
"aria-hidden": !0,
className: Pi("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? Pi("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : Pi("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"),
@@ -32684,13 +32684,13 @@ function BO({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function VO({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = zO[n];
- return /* @__PURE__ */ (0, z.jsx)(aee, {
+function xk({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = yk[n];
+ return /* @__PURE__ */ (0, z.jsx)(ree, {
ref: r,
...i,
className: (t) => Pi("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(BO, {
+ children: (e) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(bk, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, z.jsx)("span", {
@@ -32701,10 +32701,10 @@ function VO({ className: e, children: t, size: n = "md", ref: r, ...i }) {
}
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
-function HO({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function Sk({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
className: Pi("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, z.jsx)(Bne, {
+ children: /* @__PURE__ */ (0, z.jsx)(One, {
ref: r,
...i,
className: Pi("bui-table", e === "sm" && "bui-table-sm", t)
@@ -32713,7 +32713,7 @@ function HO({ size: e = "md", className: t, containerClassName: n, ref: r, ...i
}
//#endregion
//#region src/react/components/row-click.ts
-var Tse = [
+var Goe = [
"a",
"button",
"input",
@@ -32726,15 +32726,15 @@ var Tse = [
"[role=\"link\"]",
"[role=\"menu\"]"
].join(",");
-function UO(e, t) {
+function Ck(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(Tse);
+ let r = n.closest(Goe);
return !r || !t.contains(r) || r === t;
}
//#endregion
//#region src/react/components/data-table-frame.tsx
-function WO({ children: e, follow: t = !1, onRowClick: n }) {
+function wk({ children: e, follow: t = !1, onRowClick: n }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-board-data-table": !0,
"data-follow-table": t || void 0,
@@ -32742,15 +32742,15 @@ function WO({ 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 && UO(e, r) && n(r.dataset.key);
+ r && Ck(e, r) && n(r.dataset.key);
} : void 0,
children: e
});
}
//#endregion
//#region src/react/data-cleanup/link-manager.tsx
-var Ese = wo("unlink"), GO = wo("rotate-cw"), Dse = "站点返回 404 或 410,确认这个地址不存在。", Ose = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", kse = "删除前会逐条重验一次;此操作不可撤销。", Ase = "暂时无法读取进度,正在重新连接…", KO = (e) => Number(e || 0).toLocaleString();
-function qO({ label: e, value: t, note: n }) {
+var Koe = wo("unlink"), Tk = wo("rotate-cw"), qoe = "站点返回 404 或 410,确认这个地址不存在。", Joe = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Yoe = "删除前会逐条重验一次;此操作不可撤销。", Xoe = "暂时无法读取进度,正在重新连接…", Ek = (e) => Number(e || 0).toLocaleString();
+function Dk({ label: e, value: t, note: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-w-0 flex-col gap-0.5",
children: [
@@ -32769,11 +32769,11 @@ function qO({ label: e, value: t, note: n }) {
]
});
}
-function JO({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
+function Ok({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
if (!t.length) return null;
let o = r ?? [], s = o.length > 0 && o.length === t.length;
return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: sO,
+ className: RO,
children: [
/* @__PURE__ */ (0, z.jsxs)("h4", {
className: "mb-1 text-body-semibold text-text-primary",
@@ -32786,13 +32786,13 @@ function JO({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
className: "mb-3 text-caption-1-regular text-text-secondary",
children: n
}),
- /* @__PURE__ */ (0, z.jsx)(WO, { children: /* @__PURE__ */ (0, z.jsxs)(HO, {
+ /* @__PURE__ */ (0, z.jsx)(wk, { children: /* @__PURE__ */ (0, z.jsxs)(Sk, {
"aria-label": e,
size: "sm",
- children: [/* @__PURE__ */ (0, z.jsxs)(bS, { children: [
- i ? /* @__PURE__ */ (0, z.jsx)(xS, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(MS, { children: [
+ i ? /* @__PURE__ */ (0, z.jsx)(NS, {
id: "pick",
- children: /* @__PURE__ */ (0, z.jsx)(VO, {
+ children: /* @__PURE__ */ (0, z.jsx)(xk, {
slot: null,
"aria-label": "全选本次未访问成功的链接",
isSelected: s,
@@ -32800,44 +32800,44 @@ function JO({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
onChange: (e) => i(e ? t.map((e) => e.id) : [])
})
}) : null,
- /* @__PURE__ */ (0, z.jsx)(xS, {
+ /* @__PURE__ */ (0, z.jsx)(NS, {
id: "entity",
isRowHeader: !0,
children: "所属"
}),
- /* @__PURE__ */ (0, z.jsx)(xS, {
+ /* @__PURE__ */ (0, z.jsx)(NS, {
id: "kind",
children: "类型"
}),
- /* @__PURE__ */ (0, z.jsx)(xS, {
+ /* @__PURE__ */ (0, z.jsx)(NS, {
id: "label",
children: "标签"
}),
- /* @__PURE__ */ (0, z.jsx)(xS, {
+ /* @__PURE__ */ (0, z.jsx)(NS, {
id: "note",
children: "结果"
}),
- /* @__PURE__ */ (0, z.jsx)(xS, {
+ /* @__PURE__ */ (0, z.jsx)(NS, {
id: "url",
children: "地址"
})
- ] }), /* @__PURE__ */ (0, z.jsx)(CS, { children: t.map((e) => /* @__PURE__ */ (0, z.jsxs)(ES, {
+ ] }), /* @__PURE__ */ (0, z.jsx)(FS, { children: t.map((e) => /* @__PURE__ */ (0, z.jsxs)(RS, {
id: e.id,
children: [
- i ? /* @__PURE__ */ (0, z.jsx)(OS, { children: /* @__PURE__ */ (0, z.jsx)(VO, {
+ i ? /* @__PURE__ */ (0, z.jsx)(BS, { children: /* @__PURE__ */ (0, z.jsx)(xk, {
slot: null,
"aria-label": `选择 ${e.entity} 的${e.label || e.url}`,
isSelected: o.includes(e.id),
onChange: (t) => i(t ? [...o, e.id] : o.filter((t) => t !== e.id))
}) }) : null,
- /* @__PURE__ */ (0, z.jsx)(OS, { children: e.entity }),
- /* @__PURE__ */ (0, z.jsx)(OS, { children: Oc[e.link_kind] || e.link_kind }),
- /* @__PURE__ */ (0, z.jsx)(OS, { children: e.label || "" }),
- /* @__PURE__ */ (0, z.jsx)(OS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, z.jsx)(BS, { children: e.entity }),
+ /* @__PURE__ */ (0, z.jsx)(BS, { children: Oc[e.link_kind] || e.link_kind }),
+ /* @__PURE__ */ (0, z.jsx)(BS, { children: e.label || "" }),
+ /* @__PURE__ */ (0, z.jsx)(BS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
className: "tabular-nums text-text-error-primary",
children: e.note
}) }),
- /* @__PURE__ */ (0, z.jsx)(OS, { children: /* @__PURE__ */ (0, z.jsxs)("a", {
+ /* @__PURE__ */ (0, z.jsx)(BS, { children: /* @__PURE__ */ (0, z.jsxs)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer",
@@ -32859,11 +32859,11 @@ function JO({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
]
});
}
-function jse() {
+function Zoe() {
let e = Zn({
queryKey: Tc,
queryFn: ({ signal: e }) => Ac(e)
- }), [t, n] = (0, R.useState)([]), r = LO({
+ }), [t, n] = (0, R.useState)([]), r = _k({
queryKey: Dc,
queryFn: ({ signal: e }) => Nc(e),
start: Pc,
@@ -32876,7 +32876,7 @@ function jse() {
exact: !0
});
}
- }), i = LO({
+ }), i = _k({
queryKey: Ec,
queryFn: ({ signal: e }) => jc(e),
start: Mc,
@@ -32919,7 +32919,7 @@ function jse() {
else if (i.query.isError && a) x = /* @__PURE__ */ (0, z.jsx)(K, {
tone: "neutral",
title: "任务状态",
- children: Ase
+ children: Xoe
});
else if (a?.status === "failed") x = /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
@@ -32927,12 +32927,12 @@ function jse() {
children: a.error || "检查失败"
});
else if (a && a.status !== "idle") {
- y = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, z.jsx)(gO, {
+ y = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, z.jsx)(YO, {
embedded: !0,
label: Lc(a),
value: a.checked,
total: a.total
- }) : null, c ? /* @__PURE__ */ (0, z.jsx)(gO, {
+ }) : null, c ? /* @__PURE__ */ (0, z.jsx)(YO, {
embedded: !0,
label: r.job?.message || "正在重验并删除失效链接…",
value: r.job?.checked,
@@ -32940,38 +32940,38 @@ function jse() {
}) : null] });
let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";
x = l || u.length || d.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
- className: ase,
+ className: LO,
children: [
- /* @__PURE__ */ (0, z.jsx)(JO, {
+ /* @__PURE__ */ (0, z.jsx)(Ok, {
title: "地址已失效",
items: u,
- hint: Dse
+ hint: qoe
}),
- /* @__PURE__ */ (0, z.jsx)(JO, {
+ /* @__PURE__ */ (0, z.jsx)(Ok, {
title: "本次未访问成功",
items: d,
- hint: Ose,
+ hint: Joe,
picked: f.length ? t : void 0,
onPick: f.length ? n : void 0,
children: f.length ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "-mx-4 mt-3 -mb-4",
- children: /* @__PURE__ */ (0, z.jsxs)(cO, { children: [/* @__PURE__ */ (0, z.jsx)(H, {
- leadingIcon: GO,
+ children: /* @__PURE__ */ (0, z.jsxs)(zO, { children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ leadingIcon: Tk,
disabled: !t.length,
...q(s),
onClick: () => h(t),
children: e
}), /* @__PURE__ */ (0, z.jsx)(H, {
- leadingIcon: GO,
+ leadingIcon: Tk,
...q(s),
onClick: () => h(f.map((e) => e.id)),
children: `全部重试(${f.length})`
})] })
}) : null
}),
- l && u.length ? /* @__PURE__ */ (0, z.jsx)(cO, {
+ l && u.length ? /* @__PURE__ */ (0, z.jsx)(zO, {
tone: "error",
- status: kse,
+ status: Yoe,
children: /* @__PURE__ */ (0, z.jsx)(H, {
variant: "danger",
...q(c),
@@ -32980,7 +32980,7 @@ function jse() {
})
}) : null,
l && !u.length && !d.length ? /* @__PURE__ */ (0, z.jsx)("p", {
- className: `${sO} text-body-regular text-notification-success-foreground`,
+ className: `${RO} text-body-regular text-notification-success-foreground`,
children: "全部链接均可访问。"
}) : null
]
@@ -32991,21 +32991,21 @@ function jse() {
"aria-labelledby": "link-manager-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, z.jsx)(lO, {
+ /* @__PURE__ */ (0, z.jsx)(BO, {
id: "link-manager-title",
children: "链接管理"
}),
- /* @__PURE__ */ (0, z.jsxs)(dO, {
+ /* @__PURE__ */ (0, z.jsxs)(HO, {
layout: "stack",
labelledBy: "link-manager-box",
footer: /* @__PURE__ */ (0, z.jsx)(H, {
- leadingIcon: Ese,
+ leadingIcon: Koe,
...q(s),
onClick: () => h(),
children: s ? "检查中" : l ? "重新检查" : "检查死链"
}),
children: [
- /* @__PURE__ */ (0, z.jsx)(uO, {
+ /* @__PURE__ */ (0, z.jsx)(VO, {
id: "link-manager-box",
gap: "small",
children: "站外链接"
@@ -33016,13 +33016,13 @@ function jse() {
children: U(e.error)
}) : p ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "link-stat-grid mt-4 gap-x-8 gap-y-3",
- children: [/* @__PURE__ */ (0, z.jsx)(qO, {
+ children: [/* @__PURE__ */ (0, z.jsx)(Dk, {
label: "链接总数",
- value: KO(p.total),
- note: `分布在 ${KO(p.entities)} 个女优、厂牌与系列`
- }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(qO, {
+ value: Ek(p.total),
+ note: `分布在 ${Ek(p.entities)} 个女优、厂牌与系列`
+ }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(Dk, {
label: Oc[e] || e,
- value: KO(t)
+ value: Ek(t)
}, e))]
}), m ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: "mt-4 flex min-w-0 flex-col gap-0.5",
@@ -33051,7 +33051,7 @@ function jse() {
}
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function Mse({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+function Qoe({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
return /* @__PURE__ */ (0, z.jsxs)(rh, {
"data-label": "true",
...a,
@@ -33072,7 +33072,7 @@ function Mse({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function Nse({ isInvalid: e = !1, className: t, ...n }) {
+function $oe({ isInvalid: e = !1, className: t, ...n }) {
return /* @__PURE__ */ (0, z.jsx)(yh, {
slot: e ? "errorMessage" : "description",
...n,
@@ -33081,15 +33081,15 @@ function Nse({ isInvalid: e = !1, className: t, ...n }) {
}
//#endregion
//#region src/react/boardui/components/base/input/input.tsx
-var YO = (0, R.createContext)({});
-function XO({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, z.jsx)(YO.Provider, {
+var kk = (0, R.createContext)({});
+function Ak({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, z.jsx)(kk.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, z.jsx)(BS, {
+ children: /* @__PURE__ */ (0, z.jsx)(ire, {
...a,
"data-input-size": e,
className: Pi("group flex h-max w-full flex-col items-start gap-1", r),
@@ -33097,8 +33097,8 @@ function XO({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
})
});
}
-XO.displayName = "TextField";
-var ZO = Fi({
+Ak.displayName = "TextField";
+var jk = Fi({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -33127,44 +33127,44 @@ var ZO = Fi({
].join(" "),
icon: "size-5 shrink-0"
});
-function QO({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, R.useContext)(YO), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, z.jsx)(see, {
+function Mk({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, R.useContext)(kk), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, z.jsx)(aee, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => Pi(ZO.field, d ? ZO.fieldWithAddonSize[u] : ZO.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 }) => Pi(jk.field, d ? jk.fieldWithAddonSize[u] : jk.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
children: /* @__PURE__ */ (0, z.jsxs)("div", {
- className: ZO.content,
+ className: jk.content,
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
- className: ZO.leftSection,
+ className: jk.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, z.jsx)(t, {
- className: ZO.icon,
+ className: jk.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, z.jsx)(lee, {
+ }) : null, /* @__PURE__ */ (0, z.jsx)(see, {
ref: o,
...c,
- className: Pi(ZO.input, l.inputClassName, a)
+ className: Pi(jk.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, z.jsx)(n, {
- className: ZO.icon,
+ className: jk.icon,
"aria-hidden": !0
}) : null]
})
});
}
-QO.displayName = "InputBase";
-function $O({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
- return /* @__PURE__ */ (0, z.jsx)(XO, {
+Mk.displayName = "InputBase";
+function Nk({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
+ return /* @__PURE__ */ (0, z.jsx)(Ak, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- e && /* @__PURE__ */ (0, z.jsx)(Mse, {
+ e && /* @__PURE__ */ (0, z.jsx)(Qoe, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, z.jsx)(QO, {
+ /* @__PURE__ */ (0, z.jsx)(Mk, {
ref: c,
groupRef: l,
placeholder: r,
@@ -33173,21 +33173,21 @@ function $O({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, z.jsx)(Nse, {
+ t && /* @__PURE__ */ (0, z.jsx)($oe, {
isInvalid: d,
children: t
})
] })
});
}
-$O.displayName = "Input";
+Nk.displayName = "Input";
//#endregion
//#region src/react/data-cleanup/organize-card.tsx
-var Pse = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Fse = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Ise = 8;
-function Lse({ plan: e }) {
+var ese = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, tse = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", nse = 8;
+function rse({ plan: e }) {
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("ol", {
className: "mt-2 flex min-w-0 flex-col gap-1",
- children: e.rows.slice(0, Ise).map((e) => /* @__PURE__ */ (0, z.jsxs)("li", {
+ children: e.rows.slice(0, nse).map((e) => /* @__PURE__ */ (0, z.jsxs)("li", {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, z.jsx)("span", {
@@ -33213,7 +33213,7 @@ function Lse({ plan: e }) {
children: "只列出前 8 行,完整计划在计划 CSV 里。"
}) : null] });
}
-function Rse({ toast: t, failure: n }) {
+function ise({ toast: t, failure: n }) {
let r = Zn({
queryKey: rl,
queryFn: ({ signal: e }) => il(e)
@@ -33241,7 +33241,7 @@ function Rse({ toast: t, failure: n }) {
let t = ul.test(U(e)) ? "dir" : "file";
h(t), (t === "dir" ? v : g).current?.focus();
}
- }), S = LO({
+ }), S = _k({
queryKey: rl,
queryFn: ({ signal: e }) => il(e),
start: sl,
@@ -33260,7 +33260,7 @@ function Rse({ toast: t, failure: n }) {
x.isPending || !c || (h(null), x.mutate(y()));
}, k = () => void b({
title: "按模板整理文件",
- body: Pse(E),
+ body: ese(E),
confirmLabel: "整理文件",
onConfirm: () => S.start.mutateAsync({
kind: "apply",
@@ -33268,13 +33268,13 @@ function Rse({ toast: t, failure: n }) {
})
}), A = () => void b({
title: "回滚上一批整理",
- body: Fse,
+ body: tse,
confirmLabel: "回滚整理",
onConfirm: () => S.start.mutateAsync({ kind: "rollback" })
}), j = null, M = S.job, N = S.outcome;
if (M?.status === "running") {
let e = M.message || M.stage || "正在整理文件…";
- j = /* @__PURE__ */ (0, z.jsx)(gO, {
+ j = /* @__PURE__ */ (0, z.jsx)(YO, {
embedded: !0,
label: e,
value: M.checked,
@@ -33296,7 +33296,7 @@ function Rse({ toast: t, failure: n }) {
tone: "error",
title: "整理失败",
children: U(S.start.error)
- }) : x.isPending ? j = /* @__PURE__ */ (0, z.jsx)(gO, {
+ }) : x.isPending ? j = /* @__PURE__ */ (0, z.jsx)(YO, {
embedded: !0,
label: "正在按模板算计划…"
}) : x.isError ? j = /* @__PURE__ */ (0, z.jsx)(K, {
@@ -33307,8 +33307,8 @@ function Rse({ toast: t, failure: n }) {
tone: "neutral",
title: "预览结果",
children: pl(w)
- }), T ? /* @__PURE__ */ (0, z.jsx)(Lse, { plan: w }) : null] }));
- return /* @__PURE__ */ (0, z.jsxs)(dO, {
+ }), T ? /* @__PURE__ */ (0, z.jsx)(rse, { plan: w }) : null] }));
+ return /* @__PURE__ */ (0, z.jsxs)(HO, {
layout: "stack",
id: "organize",
labelledBy: "cleanup-organize-title",
@@ -33332,7 +33332,7 @@ function Rse({ toast: t, failure: n }) {
}) : null
] }),
children: [
- /* @__PURE__ */ (0, z.jsx)(uO, {
+ /* @__PURE__ */ (0, z.jsx)(VO, {
id: "cleanup-organize-title",
gap: "medium",
children: "整理"
@@ -33352,20 +33352,20 @@ function Rse({ toast: t, failure: n }) {
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "mt-3 flex flex-col gap-3",
children: [
- a.length ? /* @__PURE__ */ (0, z.jsx)(PO, {
+ a.length ? /* @__PURE__ */ (0, z.jsx)(mk, {
"aria-label": "整理哪个来源",
className: "w-fit min-w-25",
selectedKey: c || null,
onSelectionChange: (e) => {
e !== null && (s(String(e)), h(null), x.reset());
},
- children: a.map((t) => /* @__PURE__ */ (0, z.jsxs)(FO, {
+ children: a.map((t) => /* @__PURE__ */ (0, z.jsxs)(hk, {
id: t.location,
textValue: e[t.location] || t.location,
- children: [/* @__PURE__ */ (0, z.jsx)(AO, { mark: _[t.location] || "database" }), e[t.location] || t.location]
+ children: [/* @__PURE__ */ (0, z.jsx)(uk, { mark: _[t.location] || "database" }), e[t.location] || t.location]
}, t.location))
}) : null,
- /* @__PURE__ */ (0, z.jsx)($O, {
+ /* @__PURE__ */ (0, z.jsx)(Nk, {
label: "文件名模板",
placeholder: "{number}[ {title}]",
value: f.file,
@@ -33376,7 +33376,7 @@ function Rse({ toast: t, failure: n }) {
p({ file: e }), h(null);
}
}),
- /* @__PURE__ */ (0, z.jsx)($O, {
+ /* @__PURE__ */ (0, z.jsx)(Nk, {
label: "目录模板",
placeholder: "留空表示原地改名",
value: f.dir,
@@ -33416,56 +33416,56 @@ function Rse({ toast: t, failure: n }) {
}
//#endregion
//#region src/react/data-cleanup/orphan-records.ts
-var zse = "/api/orphan-records", Bse = "/api/orphan-records/attach", ek = ["orphan-records"], Vse = [
+var ase = "/api/orphan-records", ose = "/api/orphan-records/attach", Pk = ["orphan-records"], sse = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], Hse = (e) => W(zse, e), Use = (e, t) => G(Bse, {
+], cse = (e) => W(ase, e), lse = (e, t) => G(ose, {
id: e,
target: t
-}), Wse = (e) => G(Qo, {
+}), use = (e) => G(Qo, {
ids: [e],
operation: "delete"
-}), Gse = (e) => [
+}), dse = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], tk = (e) => [...Vse.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...Gse(e)].filter(Boolean).join(" · "), Kse = (e) => e ? `${Math.round(e / 60)} 分钟` : "", nk = (e) => [e.name, Kse(e.duration)].filter(Boolean).join(" · "), qse = wo("play"), rk = () => J.invalidateQueries({
- queryKey: ek,
+], Fk = (e) => [...sse.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...dse(e)].filter(Boolean).join(" · "), fse = (e) => e ? `${Math.round(e / 60)} 分钟` : "", Ik = (e) => [e.name, fse(e.duration)].filter(Boolean).join(" · "), pse = wo("play"), Lk = () => J.invalidateQueries({
+ queryKey: Pk,
exact: !0
});
-function Jse({ item: t, toast: n }) {
+function mse({ item: t, toast: n }) {
let [r, i] = (0, R.useState)(t.candidates[0]?.id ?? null), a = Qn({
- mutationFn: () => Use(t.id, Number(r)),
+ mutationFn: () => lse(t.id, Number(r)),
onSuccess: (e) => {
- n(`记录已接到新文件,批次 ${e.batch}`), rk();
+ n(`记录已接到新文件,批次 ${e.batch}`), Lk();
},
onError: (e) => n(U(e))
}), o = Qn({
- mutationFn: () => Wse(t.id),
+ mutationFn: () => use(t.id),
onSuccess: (e) => {
- n(e.blocked.length ? `${t.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${t.name}`), rk();
+ n(e.blocked.length ? `${t.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${t.name}`), Lk();
}
}), s = () => {
b({
title: "彻底删除",
- body: `将删除「${t.name}」这一条和它带的记录(${tk(t.records)})。此操作不可撤销。`,
+ body: `将删除「${t.name}」这一条和它带的记录(${Fk(t.records)})。此操作不可撤销。`,
confirmLabel: "彻底删除",
danger: !0,
onConfirm: () => o.mutateAsync()
});
}, c = a.isPending || o.isPending;
- return /* @__PURE__ */ (0, z.jsxs)(ES, {
+ return /* @__PURE__ */ (0, z.jsxs)(RS, {
id: t.id,
children: [
- /* @__PURE__ */ (0, z.jsx)(OS, { children: /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, z.jsx)(BS, { children: /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, z.jsxs)("span", {
className: "relative inline-grid aspect-16/10 w-24 flex-none place-items-center max-cleanup-tight:hidden overflow-hidden rounded-lg border border-separator-border bg-background-tertiary-default text-text-tertiary",
- children: [/* @__PURE__ */ (0, z.jsx)(qse, {
+ children: [/* @__PURE__ */ (0, z.jsx)(pse, {
"aria-hidden": !0,
className: "size-5"
}), t.has_thumb ? /* @__PURE__ */ (0, z.jsx)("img", {
@@ -33487,27 +33487,27 @@ function Jse({ item: t, toast: n }) {
})]
})]
}) }),
- /* @__PURE__ */ (0, z.jsx)(OS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, z.jsx)(BS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
className: "block min-w-44",
- children: tk(t.records)
+ children: Fk(t.records)
}) }),
- /* @__PURE__ */ (0, z.jsx)(OS, { children: t.candidates.length ? /* @__PURE__ */ (0, z.jsx)(PO, {
+ /* @__PURE__ */ (0, z.jsx)(BS, { children: t.candidates.length ? /* @__PURE__ */ (0, z.jsx)(mk, {
"aria-label": `把 ${t.name} 的记录接到哪个文件`,
className: "w-64",
selectedKey: r,
onSelectionChange: (e) => {
e !== null && i(Number(e));
},
- children: t.candidates.map((e) => /* @__PURE__ */ (0, z.jsx)(FO, {
+ children: t.candidates.map((e) => /* @__PURE__ */ (0, z.jsx)(hk, {
id: e.id,
- textValue: nk(e),
- children: nk(e)
+ textValue: Ik(e),
+ children: Ik(e)
}, e.id))
}) : /* @__PURE__ */ (0, z.jsx)("span", {
className: "text-text-secondary",
children: "没有番号或文件名对得上的文件"
}) }),
- /* @__PURE__ */ (0, z.jsx)(OS, { children: /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, z.jsx)(BS, { children: /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex flex-wrap gap-2",
children: [t.candidates.length ? /* @__PURE__ */ (0, z.jsx)(H, {
size: "small",
@@ -33527,23 +33527,23 @@ function Jse({ item: t, toast: n }) {
]
});
}
-function Yse({ toast: e }) {
+function hse({ toast: e }) {
let t = Zn({
- queryKey: ek,
- queryFn: ({ signal: e }) => Hse(e)
+ queryKey: Pk,
+ queryFn: ({ signal: e }) => cse(e)
}), n = t.data?.items ?? [];
return !t.isError && !n.length ? null : /* @__PURE__ */ (0, z.jsxs)("section", {
id: "orphan-records",
"aria-labelledby": "orphan-records-title",
className: "flex scroll-mt-20 flex-col gap-4",
- children: [/* @__PURE__ */ (0, z.jsx)(lO, {
+ children: [/* @__PURE__ */ (0, z.jsx)(BO, {
id: "orphan-records-title",
children: "孤儿记录"
- }), /* @__PURE__ */ (0, z.jsxs)(dO, {
+ }), /* @__PURE__ */ (0, z.jsxs)(HO, {
layout: "stack",
labelledBy: "orphan-records-box",
children: [
- /* @__PURE__ */ (0, z.jsx)(uO, {
+ /* @__PURE__ */ (0, z.jsx)(VO, {
id: "orphan-records-box",
gap: "small",
children: "文件已消失的作品"
@@ -33556,28 +33556,28 @@ function Yse({ toast: e }) {
tone: "error",
title: "孤儿记录读取失败",
children: U(t.error)
- }) : /* @__PURE__ */ (0, z.jsx)(WO, { children: /* @__PURE__ */ (0, z.jsxs)(HO, {
+ }) : /* @__PURE__ */ (0, z.jsx)(wk, { children: /* @__PURE__ */ (0, z.jsxs)(Sk, {
"aria-label": "文件已消失的作品",
size: "sm",
- children: [/* @__PURE__ */ (0, z.jsxs)(bS, { children: [
- /* @__PURE__ */ (0, z.jsx)(xS, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(MS, { children: [
+ /* @__PURE__ */ (0, z.jsx)(NS, {
id: "item",
isRowHeader: !0,
children: "作品"
}),
- /* @__PURE__ */ (0, z.jsx)(xS, {
+ /* @__PURE__ */ (0, z.jsx)(NS, {
id: "records",
children: "带的记录"
}),
- /* @__PURE__ */ (0, z.jsx)(xS, {
+ /* @__PURE__ */ (0, z.jsx)(NS, {
id: "target",
children: "接到"
}),
- /* @__PURE__ */ (0, z.jsx)(xS, {
+ /* @__PURE__ */ (0, z.jsx)(NS, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, z.jsx)(CS, { children: n.map((t) => /* @__PURE__ */ (0, z.jsx)(Jse, {
+ ] }), /* @__PURE__ */ (0, z.jsx)(FS, { children: n.map((t) => /* @__PURE__ */ (0, z.jsx)(mse, {
item: t,
toast: e
}, t.id)) })]
@@ -33588,36 +33588,36 @@ function Yse({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/resource-sync-card.tsx
-var Xse = wo("git-compare"), Zse = wo("rotate-cw"), Qse = "暂时无法读取进度,正在重新连接…", ik = "清理失效条目", ak = "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", ok = (e) => Number(e || 0).toLocaleString();
-function $se({ scan: e }) {
+var gse = wo("git-compare"), _se = wo("rotate-cw"), vse = "暂时无法读取进度,正在重新连接…", Rk = "清理失效条目", zk = "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", Bk = (e) => Number(e || 0).toLocaleString();
+function yse({ scan: e }) {
let t = e.cache ?? {
files: 0,
bytes: 0
};
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("div", {
- className: ak,
+ className: zk,
children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, z.jsx)("article", {
className: ru(),
children: /* @__PURE__ */ (0, z.jsx)(au, {
label: El[e.location] || "媒体来源",
- mark: /* @__PURE__ */ (0, z.jsx)(AO, { mark: _[e.location] ?? "database" }),
+ mark: /* @__PURE__ */ (0, z.jsx)(uk, { mark: _[e.location] ?? "database" }),
aside: /* @__PURE__ */ (0, z.jsx)("span", {
className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",
children: e.online ? "可访问" : "离线,已跳过"
}),
- figure: e.online ? `${ok(e.missing)} 项` : "—",
+ figure: e.online ? `${Bk(e.missing)} 项` : "—",
meta: Pl(e),
wrapMeta: !0
})
}, e.location))
}), /* @__PURE__ */ (0, z.jsxs)("div", {
- className: ak,
+ className: zk,
children: [
/* @__PURE__ */ (0, z.jsx)("article", {
className: ru(),
children: /* @__PURE__ */ (0, z.jsx)(au, {
label: "待永久删除",
- figure: `${ok(kl(e))} 项`,
+ figure: `${Bk(kl(e))} 项`,
meta: "文件已不在盘上,含回收站"
})
}),
@@ -33625,7 +33625,7 @@ function $se({ scan: e }) {
className: ru(),
children: /* @__PURE__ */ (0, z.jsx)(au, {
label: "将标为已消失",
- figure: `${ok(e.vanish)} 项`,
+ figure: `${Bk(e.vanish)} 项`,
meta: "带个人记录,记录留着"
})
}),
@@ -33633,7 +33633,7 @@ function $se({ scan: e }) {
className: ru(),
children: /* @__PURE__ */ (0, z.jsx)(au, {
label: "空文件夹",
- figure: `${ok(e.empty)} 个`,
+ figure: `${Bk(e.empty)} 个`,
meta: "保留来源根目录"
})
}),
@@ -33641,15 +33641,15 @@ function $se({ scan: e }) {
className: ru(),
children: /* @__PURE__ */ (0, z.jsx)(au, {
label: "可清理的缓存",
- figure: `${ok(t.files)} 个`,
+ figure: `${Bk(t.files)} 个`,
meta: t.files ? s(t.bytes) : ""
})
})
]
})] });
}
-function ece({ toast: e }) {
- let t = LO({
+function bse({ toast: e }) {
+ let t = _k({
queryKey: vl,
queryFn: ({ signal: e }) => xl(e),
start: Sl,
@@ -33662,17 +33662,17 @@ function ece({ toast: e }) {
exact: !0
}), t.status !== "complete") return;
let { done: n, left: r } = Fl(t);
- r ? e(`已完成 ${ok(n)} 项,${ok(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
+ r ? e(`已完成 ${Bk(n)} 项,${Bk(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
- }), n = LO({
+ }), n = _k({
queryKey: _l,
queryFn: ({ signal: e }) => yl(e),
start: bl,
onStarted: () => t.dismiss()
}), r = n.job, i = n.running || n.start.isPending, a = t.running || t.start.isPending, o = r?.status === "complete" || r?.status === "failed", c = i ? "扫描中" : o ? "重新扫描" : "检查文件", l = (e) => void b({
- title: ik,
+ title: Rk,
body: Nl(e),
- confirmLabel: ik,
+ confirmLabel: Rk,
danger: !0,
onConfirm: () => t.start.mutateAsync(e.scan_id || "")
}), u = t.outcome, d = (e) => {
@@ -33689,7 +33689,7 @@ function ece({ toast: e }) {
children: u.error || "请查看任务记录,核对已处理的文件。"
});
else if (u) p = d(u);
- else if (t.running) f = /* @__PURE__ */ (0, z.jsx)(gO, {
+ else if (t.running) f = /* @__PURE__ */ (0, z.jsx)(YO, {
embedded: !0,
label: t.job?.message || "正在复核并清理失效条目…"
});
@@ -33701,11 +33701,11 @@ function ece({ toast: e }) {
else if (n.query.isError && r) p = /* @__PURE__ */ (0, z.jsx)(K, {
tone: "neutral",
title: "任务状态",
- children: Qse
+ children: vse
});
else if (r?.status === "running") {
let e = Ol(r);
- f = /* @__PURE__ */ (0, z.jsx)(gO, {
+ f = /* @__PURE__ */ (0, z.jsx)(YO, {
embedded: !0,
label: e,
value: r.completed_sources,
@@ -33724,7 +33724,7 @@ function ece({ toast: e }) {
else if (r?.status === "complete") {
let e = Tl(r);
p = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)($se, { scan: r }),
+ /* @__PURE__ */ (0, z.jsx)(yse, { scan: r }),
e ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "neutral",
title: "清理内容",
@@ -33736,7 +33736,7 @@ function ece({ toast: e }) {
variant: "danger",
...q(a),
onClick: () => l(r),
- children: a ? "正在复核并清理…" : ik
+ children: a ? "正在复核并清理…" : Rk
}) : /* @__PURE__ */ (0, z.jsx)("p", {
className: "mr-auto text-body-regular text-notification-success-foreground",
children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"
@@ -33753,16 +33753,16 @@ function ece({ toast: e }) {
"aria-labelledby": "resource-sync-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, z.jsx)(lO, {
+ /* @__PURE__ */ (0, z.jsx)(BO, {
id: "resource-sync-title",
children: "资源同步"
}),
- /* @__PURE__ */ (0, z.jsxs)(dO, {
+ /* @__PURE__ */ (0, z.jsxs)(HO, {
layout: "split",
labelledBy: "resource-sync-box",
footer: /* @__PURE__ */ (0, z.jsx)(H, {
"data-resource-scan": !0,
- leadingIcon: o && !i ? Zse : Xse,
+ leadingIcon: o && !i ? _se : gse,
...q(i),
onClick: () => {
i || n.start.mutate();
@@ -33770,7 +33770,7 @@ function ece({ toast: e }) {
children: c
}),
children: [
- /* @__PURE__ */ (0, z.jsx)(uO, {
+ /* @__PURE__ */ (0, z.jsx)(VO, {
id: "resource-sync-box",
gap: "small",
children: "文件与记录核对"
@@ -33796,10 +33796,10 @@ function ece({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/data-cleanup-page.tsx
-function sk(e, t) {
+function Vk(e, t) {
return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);
}
-function ck({ section: e, label: t, icon: n, value: r, open: i }) {
+function Hk({ section: e, label: t, icon: n, value: r, open: i }) {
return /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
className: ru({ interactive: !0 }),
@@ -33813,17 +33813,17 @@ function ck({ section: e, label: t, icon: n, value: r, open: i }) {
})
});
}
-var tce = wo("square-check-big"), lk = wo("sparkles"), uk = wo("file-stack"), nce = wo("file-archive"), rce = wo("trash"), ice = [
+var xse = wo("square-check-big"), Sse = wo("sparkles"), Cse = wo("file-stack"), wse = wo("file-archive"), Tse = wo("trash"), Ese = [
Rl,
Fs,
Zo
-], ace = () => {
- for (let e of ice) J.invalidateQueries({
+], Dse = () => {
+ for (let e of Ese) J.invalidateQueries({
queryKey: e,
exact: !0
});
};
-function oce({ toast: e, failure: t, open: n }) {
+function Ose({ toast: e, failure: t, open: n }) {
let r = Zn({
queryKey: Rl,
queryFn: ({ signal: e }) => Wl(e)
@@ -33847,46 +33847,46 @@ function oce({ toast: e, failure: t, open: n }) {
/* @__PURE__ */ (0, z.jsxs)("div", {
className: iu,
children: [
- /* @__PURE__ */ (0, z.jsx)(ck, {
+ /* @__PURE__ */ (0, z.jsx)(Hk, {
section: "review",
label: "人工复核",
- icon: tce,
+ icon: xse,
open: n,
- value: sk(r, Jl)
+ value: Vk(r, Jl)
}),
- /* @__PURE__ */ (0, z.jsx)(ck, {
+ /* @__PURE__ */ (0, z.jsx)(Hk, {
section: "quality",
label: "高清版",
- icon: lk,
+ icon: Sse,
open: n,
- value: sk(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
+ value: Vk(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
}),
- /* @__PURE__ */ (0, z.jsx)(ck, {
+ /* @__PURE__ */ (0, z.jsx)(Hk, {
section: "duplicates",
label: "重复文件",
- icon: uk,
+ icon: Cse,
open: n,
- value: sk(a, (e) => Number(e.total || 0) ? {
+ value: Vk(a, (e) => Number(e.total || 0) ? {
figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,
meta: `可回收 ${s(e.reclaimable || 0)}`
} : { figure: "没有重复内容" })
}),
- /* @__PURE__ */ (0, z.jsx)(ck, {
+ /* @__PURE__ */ (0, z.jsx)(Hk, {
section: "ads",
label: "垃圾文件",
- icon: nce,
+ icon: wse,
open: n,
- value: sk(o, (e) => ({
+ value: Vk(o, (e) => ({
figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,
meta: Yl(e)
}))
}),
- /* @__PURE__ */ (0, z.jsx)(ck, {
+ /* @__PURE__ */ (0, z.jsx)(Hk, {
section: "trash",
label: "回收站",
- icon: rce,
+ icon: Tse,
open: n,
- value: sk(c, (e) => ({
+ value: Vk(c, (e) => ({
figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,
meta: e.total ? `占用 ${s(e.bytes || 0)}` : ""
}))
@@ -33899,30 +33899,30 @@ function oce({ toast: e, failure: t, open: n }) {
/* @__PURE__ */ (0, z.jsx)("div", {
id: "libraryProcessing",
className: "scroll-mt-20",
- children: /* @__PURE__ */ (0, z.jsx)(MO, {
+ children: /* @__PURE__ */ (0, z.jsx)(fk, {
toast: u,
monitor: !0,
- onComplete: ace
+ onComplete: Dse
})
}),
/* @__PURE__ */ (0, z.jsx)("div", {
id: "mediaRepair",
- children: /* @__PURE__ */ (0, z.jsx)(wse, {})
+ children: /* @__PURE__ */ (0, z.jsx)(Woe, {})
}),
- /* @__PURE__ */ (0, z.jsx)(Rse, {
+ /* @__PURE__ */ (0, z.jsx)(ise, {
toast: u,
failure: t
})
]
}),
- /* @__PURE__ */ (0, z.jsx)(jse, {}),
- /* @__PURE__ */ (0, z.jsx)(Yse, { toast: u }),
- Cl(l.data) ? /* @__PURE__ */ (0, z.jsx)(ece, { toast: e }) : null
+ /* @__PURE__ */ (0, z.jsx)(Zoe, {}),
+ /* @__PURE__ */ (0, z.jsx)(hse, { toast: u }),
+ Cl(l.data) ? /* @__PURE__ */ (0, z.jsx)(bse, { toast: e }) : null
] });
}
//#endregion
//#region src/react/components/collection-summary.tsx
-function dk({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function Uk({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-collection-summary": "",
className: `${i ? "" : "mb-5 "}flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5
@@ -33949,7 +33949,7 @@ function dk({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
}
//#endregion
//#region src/react/components/use-stuck.ts
-function fk(e) {
+function Wk(e) {
(0, R.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -33967,9 +33967,9 @@ function fk(e) {
}
//#endregion
//#region src/react/components/filter-glass.tsx
-function sce({ title: e, children: t }) {
+function kse({ title: e, children: t }) {
let n = (0, R.useRef)(null);
- return fk(n), /* @__PURE__ */ (0, z.jsxs)("div", {
+ return Wk(n), /* @__PURE__ */ (0, z.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -33982,9 +33982,9 @@ function sce({ title: e, children: t }) {
}), t]
});
}
-function pk({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+function Gk({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
let d = (0, R.useRef)(null);
- return fk(d), /* @__PURE__ */ (0, z.jsxs)("div", {
+ return Wk(d), /* @__PURE__ */ (0, z.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
@@ -34011,23 +34011,23 @@ function pk({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
]
});
}
-var cce = "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 mk({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var Ase = "flex h-7.5 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
+function Kk({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: Pi(cce, r),
+ className: Pi(Ase, r),
onClick: n,
children: e
});
}
-var lce = "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 focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-function hk({ children: e, onPress: t, busy: n = !1 }) {
+var jse = "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 focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
+function qk({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: lce,
+ className: jse,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -34038,11 +34038,11 @@ function hk({ children: e, onPress: t, busy: n = !1 }) {
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var uce = wo("play"), dce = wo("file-stack"), fce = Yi({
+var Mse = wo("play"), Nse = wo("file-stack"), Pse = Yi({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
-}), gk = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", _k = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", vk = "font-mono text-caption-1-regular leading-5 text-text-secondary", yk = () => {
+}), Jk = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", Yk = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", Xk = "font-mono text-caption-1-regular leading-5 text-text-secondary", Zk = () => {
J.invalidateQueries({
queryKey: Zo,
exact: !0
@@ -34051,16 +34051,16 @@ var uce = wo("play"), dce = wo("file-stack"), fce = Yi({
exact: !0
});
};
-function pce(e) {
+function Fse(e) {
return e.identical ? /* @__PURE__ */ (0, z.jsx)("span", {
- className: `${_k} text-(--keep)`,
+ className: `${Yk} text-(--keep)`,
children: "sha1 一致"
}) : /* @__PURE__ */ (0, z.jsx)("span", {
- className: `${_k} text-text-secondary`,
+ className: `${Yk} text-text-secondary`,
children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"
});
}
-function mce({ file: t, openItem: n }) {
+function Ise({ file: t, openItem: n }) {
let r = () => n(t.id);
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",
@@ -34070,7 +34070,7 @@ function mce({ file: t, openItem: n }) {
onClick: r,
"aria-label": `预览 ${t.name}`,
className: "relative row-span-2 inline-grid aspect-16/10 w-full cursor-pointer place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default text-text-secondary",
- children: [/* @__PURE__ */ (0, z.jsx)(uce, {
+ children: [/* @__PURE__ */ (0, z.jsx)(Mse, {
"aria-hidden": !0,
className: "size-6"
}), /* @__PURE__ */ (0, z.jsx)("img", {
@@ -34094,39 +34094,39 @@ function mce({ file: t, openItem: n }) {
}), t.is_largest || t.is_longest ? /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex flex-none gap-1",
children: [t.is_largest ? /* @__PURE__ */ (0, z.jsx)("i", {
- className: `${gk} not-italic bg-background-primary-hover text-text-secondary`,
+ className: `${Jk} not-italic bg-background-primary-hover text-text-secondary`,
children: "最大"
}) : null, t.is_longest ? /* @__PURE__ */ (0, z.jsx)("i", {
- className: `${gk} not-italic bg-(--keep)/22 text-(--keep)`,
+ className: `${Jk} not-italic bg-(--keep)/22 text-(--keep)`,
children: "最长"
}) : null]
}) : null]
}),
/* @__PURE__ */ (0, z.jsxs)("span", {
- className: `${vk} flex min-w-0 items-center gap-1.5`,
- children: [/* @__PURE__ */ (0, z.jsx)(AO, { mark: _[t.location] || "database" }), /* @__PURE__ */ (0, z.jsx)("span", {
+ className: `${Xk} flex min-w-0 items-center gap-1.5`,
+ children: [/* @__PURE__ */ (0, z.jsx)(uk, { mark: _[t.location] || "database" }), /* @__PURE__ */ (0, z.jsx)("span", {
className: "whitespace-nowrap",
children: e[t.location] || t.location || t.drive
})]
}),
/* @__PURE__ */ (0, z.jsx)("span", {
- className: vk,
+ className: Xk,
children: s(t.size || 0)
}),
/* @__PURE__ */ (0, z.jsx)("span", {
- className: vk,
+ className: Xk,
children: o(t.duration)
}),
/* @__PURE__ */ (0, z.jsx)("span", {
"data-middle-truncate": !0,
title: t.path ?? "",
- className: `${vk} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
+ className: `${Xk} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
children: t.path ?? ""
})
]
});
}
-function hce({ openItem: t, toast: n, failure: r }) {
+function Lse({ openItem: t, toast: n, failure: r }) {
let i = Zn({
queryKey: Zo,
queryFn: ({ signal: e }) => $o(e)
@@ -34136,13 +34136,13 @@ function hce({ openItem: t, toast: n, failure: r }) {
}), [o, c] = (0, R.useState)(""), l = Qn({
mutationFn: (e) => ss(e, "dispose"),
onSuccess: (e, t) => {
- yk(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {
+ Zk(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {
try {
await ss(t, "restore");
} catch (e) {
r("撤销移入回收站", e);
} finally {
- yk();
+ Zk();
}
} });
},
@@ -34169,15 +34169,15 @@ function hce({ openItem: t, toast: n, failure: r }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "mx-auto w-full max-w-board pb-10.5",
children: [
- /* @__PURE__ */ (0, z.jsx)(dk, {
+ /* @__PURE__ */ (0, z.jsx)(Uk, {
label: "重复内容",
figure: `${Number(u.total || 0).toLocaleString()} 组`,
detail: `${u.files} 个文件 · 可回收 ${s(u.reclaimable)}`
}),
- d.length ? /* @__PURE__ */ (0, z.jsxs)(sce, {
+ d.length ? /* @__PURE__ */ (0, z.jsxs)(kse, {
title: "批量保留",
children: [
- /* @__PURE__ */ (0, z.jsx)(hk, {
+ /* @__PURE__ */ (0, z.jsx)(qk, {
busy: o === "all:largest",
onPress: () => p({
groups: d,
@@ -34186,7 +34186,7 @@ function hce({ openItem: t, toast: n, failure: r }) {
}),
children: "全部保留最大"
}),
- /* @__PURE__ */ (0, z.jsx)(hk, {
+ /* @__PURE__ */ (0, z.jsx)(qk, {
busy: o === "all:longest",
onPress: () => p({
groups: d,
@@ -34195,7 +34195,7 @@ function hce({ openItem: t, toast: n, failure: r }) {
}),
children: "全部保留最长"
}),
- is(d, f).map((t) => /* @__PURE__ */ (0, z.jsx)(hk, {
+ is(d, f).map((t) => /* @__PURE__ */ (0, z.jsx)(qk, {
busy: o === `all:${t}`,
onPress: () => p({
groups: d,
@@ -34218,7 +34218,7 @@ function hce({ openItem: t, toast: n, failure: r }) {
let i = [n], a = (e) => `${r}:${e}`;
return /* @__PURE__ */ (0, z.jsxs)("section", {
"aria-label": n.code,
- className: fce,
+ className: Pse,
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default",
children: [
@@ -34230,9 +34230,9 @@ function hce({ openItem: t, toast: n, failure: r }) {
className: "font-mono text-caption-1-regular leading-5 text-text-primary",
children: `${n.count} 个 · 可回收 ${s(n.reclaimable)}`
}),
- pce(n),
+ Fse(n),
n.cross_drive ? /* @__PURE__ */ (0, z.jsx)("span", {
- className: `${_k} text-text-secondary`,
+ className: `${Yk} text-text-secondary`,
children: `跨盘 ${n.drives.join(" ")}`
}) : null,
/* @__PURE__ */ (0, z.jsxs)("span", {
@@ -34285,13 +34285,13 @@ function hce({ openItem: t, toast: n, failure: r }) {
]
})
]
- }), /* @__PURE__ */ (0, z.jsx)("div", { children: n.files.map((e) => /* @__PURE__ */ (0, z.jsx)(mce, {
+ }), /* @__PURE__ */ (0, z.jsx)("div", { children: n.files.map((e) => /* @__PURE__ */ (0, z.jsx)(Ise, {
file: e,
openItem: t
}, e.id)) })]
}, `${n.code}-${r}`);
}) : /* @__PURE__ */ (0, z.jsx)(Zi, {
- icon: dce,
+ icon: Nse,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
})
@@ -34300,7 +34300,7 @@ function hce({ openItem: t, toast: n, failure: r }) {
}
//#endregion
//#region src/react/components/use-view-glide.ts
-function gce(e, t, n) {
+function Rse(e, t, n) {
if (!t.contains(e)) return null;
let r = 0, i = 0;
for (let n = e; n && n !== t; n = n.offsetParent) r += n.offsetLeft, i += n.offsetTop;
@@ -34324,11 +34324,11 @@ function gce(e, t, n) {
h: e.offsetHeight
};
}
-function bk(e, t, n, r, { axis: i = "x" } = {}) {
+function Qk(e, t, n, r, { axis: i = "x" } = {}) {
let a = (0, R.useRef)(null), o = (0, R.useCallback)((r, o) => {
let s = e.current, c = t.current, l = s?.parentElement;
if (!s) return;
- let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? gce(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? Rse(u, l, i) : null;
if (!d || !d.w) {
s.hidden = !0;
return;
@@ -34370,33 +34370,33 @@ function bk(e, t, n, r, { axis: i = "x" } = {}) {
}
//#endregion
//#region src/react/components/segmented.tsx
-function xk(e) {
- let t = eO("selection");
- return /* @__PURE__ */ (0, z.jsx)(FS, {
+function $k(e) {
+ let t = xO("selection");
+ return /* @__PURE__ */ (0, z.jsx)(qS, {
...e,
ref: t
});
}
-function Sk(e) {
- let t = eO("selection");
- return /* @__PURE__ */ (0, z.jsx)(ux, {
+function eA(e) {
+ let t = xO("selection");
+ return /* @__PURE__ */ (0, z.jsx)(Sx, {
...e,
ref: t
});
}
-var Ck = "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", wk = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", _ce = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Tk = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", Ek = "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)", vce = (e) => e === "videos", Dk = () => /* @__PURE__ */ (0, z.jsx)("span", {
+var tA = "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", nA = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", zse = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", rA = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", iA = "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)", Bse = (e) => e === "videos", aA = () => /* @__PURE__ */ (0, z.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
});
-function yce(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = vce(t), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (0, R.useRef)(null), _ = bk(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = bk(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
+function Vse(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Bse(t), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (0, R.useRef)(null), _ = Qk(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = Qk(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
return (0, R.useEffect)(() => {
c.wireDrag(h.current), c.wireScroller(m.current), c.wireDrag(g.current);
- }, [c]), /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(Ok, {
+ }, [c]), /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(oA, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, z.jsx)(pk, {
+ }), /* @__PURE__ */ (0, z.jsx)(Gk, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -34416,13 +34416,13 @@ function yce(e) {
"data-view-glide": "round",
"aria-hidden": "true"
})] }),
- top: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [n ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(bce, {
+ top: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [n ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(Hse, {
keys: n,
view: t,
row: p,
glide: v,
onView: s.setView
- }), l ? /* @__PURE__ */ (0, z.jsx)(Dk, {}) : null] }) : null, /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), l ? /* @__PURE__ */ (0, z.jsx)(aA, {}) : null] }) : null, /* @__PURE__ */ (0, z.jsxs)("div", {
ref: m,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
@@ -34442,11 +34442,11 @@ function yce(e) {
r !== e.k && s.setState(e.k);
},
children: e.label
- }, e.k)), /* @__PURE__ */ (0, z.jsx)(Dk, {})]
+ }, e.k)), /* @__PURE__ */ (0, z.jsx)(aA, {})]
}), /* @__PURE__ */ (0, z.jsx)("div", {
ref: h,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, z.jsxs)(mk, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, z.jsxs)(Kk, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -34458,10 +34458,10 @@ function yce(e) {
}, e.k)) : null
})]
})] }),
- bottom: /* @__PURE__ */ (0, z.jsx)(xce, { ...e })
+ bottom: /* @__PURE__ */ (0, z.jsx)(Use, { ...e })
})] });
}
-function bce({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function Hse({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -34503,7 +34503,7 @@ function bce({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function Ok({ items: e, hidden: t, actions: n }) {
+function oA({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -34523,7 +34523,7 @@ function Ok({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function xce(e) {
+function Use(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, z.jsxs)("button", {
@@ -34535,22 +34535,22 @@ function xce(e) {
dangerouslySetInnerHTML: { __html: l("chevron-left") }
}), /* @__PURE__ */ (0, z.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, z.jsx)(Sce, {
+ /* @__PURE__ */ (0, z.jsx)(Wse, {
text: n,
busy: r
}),
- t === "videos" && i ? /* @__PURE__ */ (0, z.jsx)(jk, {
+ t === "videos" && i ? /* @__PURE__ */ (0, z.jsx)(Gse, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, z.jsx)(Nk, {
+ t === "photos" && a ? /* @__PURE__ */ (0, z.jsx)(Kse, {
head: a,
actions: o,
helpers: s
}) : null
] });
}
-function Sce({ text: e, busy: t }) {
+function Wse({ text: e, busy: t }) {
return /* @__PURE__ */ (0, z.jsx)("h3", {
"data-entity-readout": "",
children: t ? /* @__PURE__ */ (0, z.jsx)("span", {
@@ -34560,22 +34560,22 @@ function Sce({ text: e, busy: t }) {
}) : e
});
}
-function kk({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, z.jsx)(ux, {
+function sA({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, z.jsx)(Sx, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: Tk,
+ className: rA,
children: r.map(([e, t, n]) => {
let r = wo(n);
- return /* @__PURE__ */ (0, z.jsx)(dx, {
+ return /* @__PURE__ */ (0, z.jsx)(Cx, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: Ek,
+ className: iA,
children: /* @__PURE__ */ (0, z.jsx)("span", {
title: t,
className: "contents",
@@ -34585,7 +34585,7 @@ function kk({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function Ak({ onPress: e, busy: t = !1 }) {
+function cA({ onPress: e, busy: t = !1 }) {
return /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"data-entity-batch": "",
@@ -34599,25 +34599,25 @@ function Ak({ onPress: e, busy: t = !1 }) {
dangerouslySetInnerHTML: { __html: t ? ie("正在换一批") : l("shuffle") }
});
}
-function jk({ head: e, actions: t }) {
+function Gse({ head: e, actions: t }) {
return /* @__PURE__ */ (0, z.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, z.jsx)(Ak, { onPress: () => void t.reshuffle() }),
- e.jav ? /* @__PURE__ */ (0, z.jsx)(kk, {
+ /* @__PURE__ */ (0, z.jsx)(cA, { onPress: () => void t.reshuffle() }),
+ e.jav ? /* @__PURE__ */ (0, z.jsx)(sA, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, z.jsx)(Mk, {
+ /* @__PURE__ */ (0, z.jsx)(lA, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function Mk({ sorts: e, onSort: t }) {
+function lA({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, z.jsx)(z.Fragment, { children: e.map((e) => {
let n = wo(e.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, z.jsxs)("button", {
@@ -34631,20 +34631,20 @@ function Mk({ sorts: e, onSort: t }) {
}, e.key);
}) });
}
-function Nk({ head: e, actions: t, helpers: n }) {
+function Kse({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, R.useState)(!1), a = (0, R.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, R.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, z.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, z.jsx)(Ak, {
+ e.shuffle ? /* @__PURE__ */ (0, z.jsx)(cA, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, z.jsx)(kk, {
+ /* @__PURE__ */ (0, z.jsx)(sA, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -34660,34 +34660,34 @@ function Nk({ head: e, actions: t, helpers: n }) {
}
//#endregion
//#region src/react/catalog-filter/catalog-filter-page.tsx
-var Pk = "";
-function Cce(e) {
- let t = !e.tiers, n = Ace(e.comboHost);
+var uA = "";
+function qse(e) {
+ let t = !e.tiers, n = ece(e.comboHost);
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, Re.createPortal)(/* @__PURE__ */ (0, z.jsx)(Ok, {
+ n ? (0, Re.createPortal)(/* @__PURE__ */ (0, z.jsx)(oA, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, z.jsx)(Ece, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, z.jsx)(wce, { ...e })
+ /* @__PURE__ */ (0, z.jsx)(Xse, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, z.jsx)(Jse, { ...e })
]
});
}
-function wce(e) {
- let { actions: t, helpers: n } = e, r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = bk(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+function Jse(e) {
+ let { actions: t, helpers: n } = e, r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = Qk(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, R.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
- let l = !e.tiers, u = Ik(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let l = !e.tiers, u = fA(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, R.useLayoutEffect)(() => {
M(o.current, "tagbar");
- }, [u]), /* @__PURE__ */ (0, z.jsx)(pk, {
+ }, [u]), /* @__PURE__ */ (0, z.jsx)(Gk, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -34730,17 +34730,17 @@ function wce(e) {
}), /* @__PURE__ */ (0, z.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || l ? /* @__PURE__ */ (0, z.jsx)(Fk, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, z.jsx)(Tce, {
+ children: [e.empty || l ? /* @__PURE__ */ (0, z.jsx)(dA, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, z.jsx)(Yse, {
tag: e,
onPress: t.toggleTag
}, e.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, z.jsx)(Oce, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, z.jsx)(Qse, { ...e })
});
}
-function Tce({ tag: e, onPress: t }) {
- return /* @__PURE__ */ (0, z.jsxs)(mk, {
+function Yse({ tag: e, onPress: t }) {
+ return /* @__PURE__ */ (0, z.jsxs)(Kk, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -34751,12 +34751,12 @@ function Tce({ tag: e, onPress: t }) {
})]
});
}
-function Ece(e) {
+function Xse(e) {
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
studios: []
- }, i = e.empty || !e.tiers, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useCallback)((e) => () => t.moreTops(e), [t]), c = Ik(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = Ik(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;
+ }, i = e.empty || !e.tiers, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useCallback)((e) => () => t.moreTops(e), [t]), c = fA(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = fA(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;
return (0, R.useEffect)(() => {
n.wireDrag(a.current), n.wireDrag(o.current);
}, [
@@ -34769,7 +34769,7 @@ function Ece(e) {
children: [u ? /* @__PURE__ */ (0, z.jsx)("div", {
ref: a,
"data-catalog-tier": "performers",
- children: i ? /* @__PURE__ */ (0, z.jsx)(Fk, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, z.jsx)(dA, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -34786,18 +34786,18 @@ function Ece(e) {
}) : null, d ? /* @__PURE__ */ (0, z.jsx)("div", {
ref: o,
"data-catalog-tier": "studios",
- children: i ? /* @__PURE__ */ (0, z.jsx)(Fk, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, z.jsx)(dA, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
"data-tier-studio": "",
"data-entity-kind": "studio",
"data-entity-name": e.name,
onClick: () => t.openEntity("studio", e.name),
- children: [/* @__PURE__ */ (0, z.jsx)(Dce, { studio: e }), e.name]
+ children: [/* @__PURE__ */ (0, z.jsx)(Zse, { studio: e }), e.name]
}, e.name))
}) : null]
});
}
-function Dce({ studio: e }) {
+function Zse({ studio: e }) {
let [t, n] = (0, R.useState)(!1);
return /* @__PURE__ */ (0, z.jsx)("span", {
"data-tier-mark": "",
@@ -34811,7 +34811,7 @@ function Dce({ studio: e }) {
}) : e.fallback
});
}
-function Fk({ kind: e }) {
+function dA({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -34827,32 +34827,32 @@ function Fk({ kind: e }) {
children: [/* @__PURE__ */ (0, z.jsx)("span", {}), /* @__PURE__ */ (0, z.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function Oce({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+function Qse({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
let [a, o] = (0, R.useState)(!1);
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(kce, { count: e }), /* @__PURE__ */ (0, z.jsxs)("span", {
+ return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)($se, { count: e }), /* @__PURE__ */ (0, z.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, z.jsx)(Ak, {
+ /* @__PURE__ */ (0, z.jsx)(cA, {
onPress: () => {
o(!0), i.reshuffle().finally(() => o(!1));
},
busy: a || t
}),
- n ? /* @__PURE__ */ (0, z.jsx)(kk, {
+ n ? /* @__PURE__ */ (0, z.jsx)(sA, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, z.jsx)(Mk, {
+ /* @__PURE__ */ (0, z.jsx)(lA, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function kce({ count: e }) {
+function $se({ count: e }) {
let t = (0, R.useRef)(null), n = (0, R.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown}` : "";
return (0, R.useLayoutEffect)(() => {
if (!e) {
@@ -34860,7 +34860,7 @@ function kce({ count: e }) {
return;
}
let i = t.current;
- i && (Pk && i.dataset.popCount === void 0 && (i.dataset.popCount = Pk), Pk = r, N(i, r));
+ i && (uA && i.dataset.popCount === void 0 && (i.dataset.popCount = uA), uA = r, N(i, r));
}, [e, r]), e ? /* @__PURE__ */ (0, z.jsx)("span", {
ref: t,
"data-catalog-readout": "",
@@ -34876,7 +34876,7 @@ function kce({ count: e }) {
})
}, "skeleton");
}
-function Ace(e) {
+function ece(e) {
let [t, n] = (0, R.useState)(null);
return (0, R.useLayoutEffect)(() => {
if (!e) return;
@@ -34886,7 +34886,7 @@ function Ace(e) {
};
}, [e]), t;
}
-function Ik(e, t, n, r, i) {
+function fA(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -34932,15 +34932,15 @@ function Ik(e, t, n, r, i) {
}
//#endregion
//#region src/react/components/board-tabs.tsx
-function Lk({ value: e }) {
+function pA({ value: e }) {
return /* @__PURE__ */ (0, z.jsx)("span", {
"data-tab-count": "",
className: "ml-1.5 inline-block rounded-sm bg-text-primary/10 px-1 py-px text-caption-1-medium text-text-primary opacity-50",
children: e.toLocaleString()
});
}
-var jce = "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 Rk({ tabs: e, value: t, label: n, onChange: r }) {
+var tce = "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 mA({ tabs: e, value: t, label: n, onChange: r }) {
let i = (0, R.useRef)(null), a = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
let e = i.current;
@@ -34975,7 +34975,7 @@ function Rk({ tabs: e, value: t, label: n, onChange: r }) {
"data-tab": e.value,
"aria-selected": i,
tabIndex: i ? 0 : -1,
- className: jce,
+ className: tce,
onClick: () => {
i || r(e.value);
},
@@ -34991,21 +34991,21 @@ function Rk({ tabs: e, value: t, label: n, onChange: r }) {
}
//#endregion
//#region src/react/search/search.ts
-var zk = /* @__PURE__ */ new Set([
+var hA = /* @__PURE__ */ new Set([
"performer",
"creator",
"studio",
"agency",
"series"
-]), Bk = /* @__PURE__ */ new Set(["asset"]), Vk = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function Mce({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {
+]), gA = /* @__PURE__ */ new Set(["asset"]), _A = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
+function nce({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {
let s = 0, c = [], l = (e) => {
let t = {
...e,
index: s++
};
return c.push(t), t;
- }, u = t.filter((t) => !e || Vk(t).includes(Vk(e)));
+ }, u = t.filter((t) => !e || _A(t).includes(_A(e)));
if (!e) {
let e = u.length ? {
label: "搜索记录",
@@ -35043,7 +35043,7 @@ function Mce({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
kind: e.kind,
item: t
}))
- }), h = p.filter((e) => !Bk.has(e.kind)).map(m), g = p.filter((e) => Bk.has(e.kind)).map(m);
+ }), h = p.filter((e) => !gA.has(e.kind)).map(m), g = p.filter((e) => gA.has(e.kind)).map(m);
return {
tabs: d && a.length > 1 ? [...a] : null,
recent: f,
@@ -35052,17 +35052,17 @@ function Mce({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: c
};
}
-function Nce(e, t, n = Math.random) {
+function rce(e, t, n = Math.random) {
let r = [...e];
for (let e = r.length - 1; e > 0; --e) {
let t = Math.floor(n() * (e + 1));
[r[e], r[t]] = [r[t], r[e]];
}
- return r.filter((e) => !t.some((t) => Vk(t) === Vk(e))).slice(0, 5);
+ return r.filter((e) => !t.some((t) => _A(t) === _A(e))).slice(0, 5);
}
//#endregion
//#region src/react/search/search-page.tsx
-var Pce = () => ({
+var ice = () => ({
history: [],
pool: [],
poolRequest: 0,
@@ -35077,7 +35077,7 @@ var Pce = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), Hk = (e) => Mce({
+}), vA = (e) => nce({
query: e.query,
history: e.history,
picks: e.picks,
@@ -35085,18 +35085,18 @@ var Pce = () => ({
groups: e.groups,
tabs: e.tabs,
kind: e.kind
-}), Fce = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), Uk = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
+}), ace = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), yA = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
});
-function Ice(e) {
+function oce(e) {
let t = (0, R.useRef)(e);
t.current = e;
let n = (0, R.useRef)(null);
- n.current ??= Pce();
+ n.current ??= ice();
let r = n.current, i = (0, R.useRef)(null), [, a] = (0, R.useReducer)((e) => e + 1, 0), o = (0, R.useRef)(null);
- o.current ??= Lce(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= sce(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
let s = o.current;
(0, R.useLayoutEffect)(() => {
let { input: e } = t.current, n = (e) => s.input(e), i = () => t.current.helpers.composing(), a = (e) => s.key(e), o = () => s.focus();
@@ -35109,7 +35109,7 @@ function Ice(e) {
let e = i.current?.closest("[data-search-menu]");
r.rewind && e && (e.scrollTop = 0), r.rewind = !1, r.reveal && i.current?.querySelector("[data-search-option][data-active]")?.scrollIntoView({ block: "nearest" }), r.reveal = !1;
});
- let c = Hk(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, z.jsx)(zce, {
+ let c = vA(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, z.jsx)(lce, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -35129,7 +35129,7 @@ function Ice(e) {
"data-search-root": "",
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, z.jsx)(Rce, {
+ c.tabs ? /* @__PURE__ */ (0, z.jsx)(cce, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -35150,7 +35150,7 @@ function Ice(e) {
]
});
}
-function Lce(e, t, n, r) {
+function sce(e, t, n, r) {
let i = () => e().input, a = () => document.activeElement === i(), o = () => t.history.slice(0, e().historyLimit), s = (n) => {
t.history = n.slice(0, e().historyLimit);
}, c = async () => {
@@ -35164,7 +35164,7 @@ function Lce(e, t, n, r) {
t.history = Array.isArray(e.items) ? e.items.map(String) : [];
} catch {}
}, l = (t) => {
- !t || !e().historyLimit || (s([t, ...o().filter((e) => Vk(e) !== Vk(t))]), G("/api/search-history", { query: t }).catch(() => null));
+ !t || !e().historyLimit || (s([t, ...o().filter((e) => _A(e) !== _A(t))]), G("/api/search-history", { query: t }).catch(() => null));
}, u = async () => {
let n = ++t.poolRequest;
t.pool = [];
@@ -35197,9 +35197,9 @@ function Lce(e, t, n, r) {
let i = n();
i && e().helpers.dismiss(i), t.active = -1, r();
}, m = () => {
- t.query = i().value.trim(), t.picks = t.query ? [] : Nce(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : rce(t.pool, o()), t.active = -1;
let a = n();
- a && (Fce(Hk(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (ace(vA(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, h = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -35211,7 +35211,7 @@ function Lce(e, t, n, r) {
!n || e === t.kind || (t.kind = e, clearTimeout(t.timer), m(), t.rewind = !0, d(n, e).then(() => {
a() && t.kind === e && m();
}));
- }, _ = () => f() ? Hk(t).options : [], v = (e) => {
+ }, _ = () => f() ? vA(t).options : [], v = (e) => {
let n = _();
return n.length ? (t.active = (t.active + e + n.length) % n.length, t.reveal = !0, r(), !0) : !1;
}, y = (t, n) => {
@@ -35224,7 +35224,7 @@ function Lce(e, t, n, r) {
i().blur(), e().actions.openItem(t.item.id);
return;
}
- if (t.type === "suggest" && zk.has(t.kind)) {
+ if (t.type === "suggest" && hA.has(t.kind)) {
b(t.kind, t.value);
return;
}
@@ -35276,12 +35276,12 @@ function Lce(e, t, n, r) {
await G("/api/search-history", {
operation: "remove",
query: e
- }).catch(() => null), s(o().filter((t) => Vk(t) !== Vk(e))), t.active = -1, r();
+ }).catch(() => null), s(o().filter((t) => _A(t) !== _A(e))), t.active = -1, r();
},
pickKind: g
};
}
-function Rce({ tabs: e, kind: t, onPick: n, wire: r }) {
+function cce({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, R.useRef)(null);
(0, R.useLayoutEffect)(() => {
r(i.current);
@@ -35293,7 +35293,7 @@ function Rce({ tabs: e, kind: t, onPick: n, wire: r }) {
"aria-selected": t === e,
onMouseDown: (e) => e.preventDefault(),
onClick: () => n(e),
- children: [r, i ? /* @__PURE__ */ (0, z.jsx)(Lk, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, z.jsx)(pA, { value: i }) : null]
}, e || "all");
return /* @__PURE__ */ (0, z.jsxs)("div", {
ref: i,
@@ -35303,8 +35303,8 @@ function Rce({ tabs: e, kind: t, onPick: n, wire: r }) {
children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]
});
}
-var Wk = (e) => e.preventDefault();
-function zce({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+var bA = (e) => e.preventDefault();
+function lce({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -35316,28 +35316,28 @@ function zce({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, z.jsx)(Uk, { name: e.type === "history" ? "history" : "sparkles" }),
+ /* @__PURE__ */ (0, z.jsx)(yA, { name: e.type === "history" ? "history" : "sparkles" }),
/* @__PURE__ */ (0, z.jsx)("span", { children: e.value }),
e.type === "history" ? /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"data-remove-history": e.value,
"aria-label": `删除历史 ${e.value}`,
- onMouseDown: Wk,
+ onMouseDown: bA,
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, z.jsx)(Uk, { name: "x" })
+ children: /* @__PURE__ */ (0, z.jsx)(yA, { name: "x" })
}) : null
]
});
- let { item: s, kind: c } = e, l = zk.has(c) ? c : void 0;
+ let { item: s, kind: c } = e, l = hA.has(c) ? c : void 0;
if (c === "asset") {
let e = [s.who, s.code ? s.title : ""].filter(Boolean).join(" · ");
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-search-option": "work",
"data-open-item": s.id,
...o,
- children: [/* @__PURE__ */ (0, z.jsx)(Gk, {
+ children: [/* @__PURE__ */ (0, z.jsx)(xA, {
card: s.card,
helpers: n
}), /* @__PURE__ */ (0, z.jsxs)("span", {
@@ -35363,7 +35363,7 @@ function zce({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- /* @__PURE__ */ (0, z.jsx)(Kk, {
+ /* @__PURE__ */ (0, z.jsx)(SA, {
item: s,
kind: c,
helpers: n
@@ -35384,11 +35384,11 @@ function zce({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-open-work": e.id,
"aria-label": `打开 ${e.code || s.value}`,
- onMouseDown: Wk,
+ onMouseDown: bA,
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, z.jsx)(Gk, {
+ children: /* @__PURE__ */ (0, z.jsx)(xA, {
card: e,
helpers: n
})
@@ -35402,7 +35402,7 @@ function zce({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, z.jsx)(Kk, {
+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, z.jsx)(SA, {
item: s,
kind: c,
helpers: n
@@ -35416,13 +35416,13 @@ function zce({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
]
});
}
-function Gk({ card: e, helpers: t }) {
+function xA({ card: e, helpers: t }) {
return /* @__PURE__ */ (0, z.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
-function Kk({ item: e, kind: t, helpers: n }) {
+function SA({ item: e, kind: t, helpers: n }) {
return /* @__PURE__ */ (0, z.jsx)("span", {
"data-search-face": "",
"data-kind": t,
@@ -35431,8 +35431,8 @@ function Kk({ item: e, kind: t, helpers: n }) {
}
//#endregion
//#region src/react/feed-new/feed-new.ts
-var qk = (e) => ["feed-new", e ?? "home"], Bce = 8, Vce = 1500;
-function Hce(e, t, n) {
+var CA = (e) => ["feed-new", e ?? "home"], uce = 8, dce = 1500;
+function fce(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -35443,32 +35443,32 @@ function Hce(e, t, n) {
setTimeout(e, n);
})]);
}
-async function Uce(e, n, r) {
+async function pce(e, n, r) {
let i = new URLSearchParams({ limit: "12" });
e && i.set("entity", String(e));
let a = await t(`/api/feeds/discoveries?${i}`).catch(() => null), o = a && !a.error ? a : null, s = o?.items || [], c = n(o);
- return r && s.length && await Hce(c, Bce, Vce), {
+ return r && s.length && await fce(c, uce, dce), {
items: s,
html: c
};
}
-var Jk = (e, t, n = !1) => ({
- queryKey: qk(e),
- queryFn: () => Uce(e, t, n),
+var wA = (e, t, n = !1) => ({
+ queryKey: CA(e),
+ queryFn: () => pce(e, t, n),
staleTime: Infinity
-}), Yk = (e, n) => t("/api/feeds/discovery", {
+}), TA = (e, n) => t("/api/feeds/discovery", {
method: "POST",
body: JSON.stringify({
action: n,
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function Wce(e) {
- J.removeQueries({ queryKey: qk(null) }), await J.fetchQuery(Jk(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+async function mce(e) {
+ J.removeQueries({ queryKey: CA(null) }), await J.fetchQuery(wA(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
//#endregion
//#region src/react/entity-page/entity-page.ts
-var Gce = [
+var hce = [
"loc",
"creator",
"tag",
@@ -35478,52 +35478,52 @@ var Gce = [
"orient",
"sort",
"dir"
-], Xk = {
+], EA = {
media: "videos",
set: 0
-}, Zk = (e, t) => [
+}, DA = (e, t) => [
"entity",
e,
t
-], Kce = (e, t, n, r) => [
+], gce = (e, t, n, r) => [
"entity-items",
e,
t,
n,
r
-], Qk = (e, t, n, r) => [
+], OA = (e, t, n, r) => [
"entity-photos",
e,
t,
n,
r
-], $k = (e) => String(e || "").split(",").filter(Boolean), qce = (e, t) => $k(e).includes(t);
-function eA(e, t, n, r, i = 0) {
+], kA = (e) => String(e || "").split(",").filter(Boolean), _ce = (e, t) => kA(e).includes(t);
+function AA(e, t, n, r, i = 0) {
let a = new URLSearchParams();
a.set(e, t), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");
- for (let t of Gce) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
+ for (let t of hce) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
return r.jav && a.set("jav", "1"), a;
}
-async function tA(e, n, r, i, a, o, s) {
- let c = await t(`/api/items?${eA(e, n, r, i, a)}`, s ? { signal: s } : {});
+async function jA(e, n, r, i, a, o, s) {
+ let c = await t(`/api/items?${AA(e, n, r, i, a)}`, s ? { signal: s } : {});
return o(c.items || []), c;
}
-var nA = (e) => {
+var MA = (e) => {
let t = {
jav: e.jav,
seed: e.seed
- }, n = eA(e.kind, e.name, e.filters, t).toString();
+ }, n = AA(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: Kce(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => tA(e.kind, e.name, e.filters, t, 0, e.cache, n),
+ queryKey: gce(e.kind, e.name, n, e.revision),
+ queryFn: ({ signal: n }) => jA(e.kind, e.name, e.filters, t, 0, e.cache, n),
staleTime: Infinity
};
-}, rA = (e, n) => ({
- queryKey: Zk(e, n),
+}, NA = (e, n) => ({
+ queryKey: DA(e, n),
queryFn: ({ signal: r }) => t(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(n)}`, { signal: r }),
staleTime: Infinity
});
-function iA(e, t, n, r, i, a) {
+function vce(e, t, n, r, i, a) {
let o = `kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`;
if (i) {
let e = `&limit=120&offset=${i}${a ? `&seed=${encodeURIComponent(a)}` : ""}`;
@@ -35532,10 +35532,10 @@ function iA(e, t, n, r, i, a) {
let s = r ? `&seed=${encodeURIComponent(r)}` : "";
return n ? `/api/photo-set?id=${n}&limit=120${s}` : r ? `/api/photos?${o}&limit=120${s}` : `/api/photos?${o}`;
}
-var aA = (e, n, r, i) => ({
- queryKey: Qk(e, n, r, i),
+var PA = (e, n, r, i) => ({
+ queryKey: OA(e, n, r, i),
queryFn: async ({ pageParam: a }) => {
- let o = await t(iA(e, n, r, i, a?.offset || 0, a?.seed || "")).catch((e) => {
+ let o = await t(vce(e, n, r, i, a?.offset || 0, a?.seed || "")).catch((e) => {
if (a) throw e;
return { error: String(e) };
});
@@ -35548,8 +35548,8 @@ var aA = (e, n, r, i) => ({
seed: t[0]?.seed || ""
} : void 0,
staleTime: Infinity
-}), oA = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function Jce(e) {
+}), FA = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
+async function yce(e) {
let { kind: t, name: n } = e;
for (let e of [
"entity",
@@ -35561,51 +35561,51 @@ async function Jce(e) {
n
] });
await Promise.all([
- J.fetchQuery(rA(t, n)).then((t) => !t || t.error || !t.id ? null : (J.removeQueries({ queryKey: qk(Number(t.id)) }), J.fetchQuery(Jk(Number(t.id), e.helpers.feedRowHtml, !0)))),
- J.fetchQuery(nA(e)),
- J.fetchInfiniteQuery(aA(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? J.fetchInfiniteQuery(aA(t, n, e.media.set, "")) : null
+ J.fetchQuery(NA(t, n)).then((t) => !t || t.error || !t.id ? null : (J.removeQueries({ queryKey: CA(Number(t.id)) }), J.fetchQuery(wA(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ J.fetchQuery(MA(e)),
+ J.fetchInfiniteQuery(PA(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? J.fetchInfiniteQuery(PA(t, n, e.media.set, "")) : null
]);
}
//#endregion
//#region src/react/follow/online-vocab.ts
-var Yce = "/api/follow/authors", Xce = "/api/follow/tags", Zce = (e) => [
+var bce = "/api/follow/authors", xce = "/api/follow/tags", Sce = (e) => [
"follow",
"authors",
e
-], Qce = (e, t) => [
+], Cce = (e, t) => [
"follow",
"tags",
e,
t
];
-function $ce(e, t, n) {
+function wce(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${Yce}?${r}`;
+ return e && r.set("q", e), `${bce}?${r}`;
}
-function ele(e, t, n, r) {
+function Tce(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), `${Xce}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${xce}?${i}`;
}
-var tle = (e, t, n, r) => W($ce(e, t, n), r), nle = (e, t, n, r, i) => W(ele(e, t, n, r), i), rle = "/api/index", sA = {
+var Ece = (e, t, n, r) => W(wce(e, t, n), r), Dce = (e, t, n, r, i) => W(Tce(e, t, n, r), i), Oce = "/api/index", IA = {
performers: "艺人",
creators: "创作者",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, ile = {
+}, kce = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency"
-}, cA = [
+}, LA = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -35615,26 +35615,26 @@ var tle = (e, t, n, r) => W($ce(e, t, n), r), nle = (e, t, n, r, i) => W(ele(e,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], lA = [
+], RA = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], uA = {
+], zA = {
people: 120,
tags: 180
-}, dA = (e) => e !== "tags", fA = (e) => e === "studios" || e === "agencies";
-function pA(e) {
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? lA : cA).some(([t]) => t === e.category);
+}, BA = (e) => e !== "tags", VA = (e) => e === "studios" || e === "agencies";
+function HA(e) {
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? RA : LA).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: e.kind === "tags" && n ? e.category : "all"
};
}
-function mA(e) {
+function UA(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -35653,50 +35653,50 @@ function mA(e) {
q: n
};
}
-var hA = (e, t, n = "all") => [
+var WA = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" ? [n] : []
];
-function gA(e, t, n, r, i) {
+function GA(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), `${rle}?${a}`;
+ return t && a.set("q", t), e === "tags" && n !== "all" && a.set("category", n), `${Oce}?${a}`;
}
-function _A(e) {
- let t = e.what === "people" || e.what === "online-authors" ? uA.people : uA.tags, n = {
+function KA(e) {
+ let t = e.what === "people" || e.what === "online-authors" ? zA.people : zA.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: hA(e.kind, e.q),
- queryFn: ({ pageParam: n, signal: r }) => W(gA(e.kind, e.q, "all", t, n), r)
+ queryKey: WA(e.kind, e.q),
+ queryFn: ({ pageParam: n, signal: r }) => W(GA(e.kind, e.q, "all", t, n), r)
};
case "tags": return {
...n,
- queryKey: hA("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => W(gA("tags", e.q, e.category, t, n), r)
+ queryKey: WA("tags", e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => W(GA("tags", e.q, e.category, t, n), r)
};
case "online-authors": return {
...n,
- queryKey: Zce(e.q),
- queryFn: ({ pageParam: n, signal: r }) => tle(e.q, t, n, r)
+ queryKey: Sce(e.q),
+ queryFn: ({ pageParam: n, signal: r }) => Ece(e.q, t, n, r)
};
case "online-tags": return {
...n,
- queryKey: Qce(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => nle(e.q, e.category, t, n, r)
+ queryKey: Cce(e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => Dce(e.q, e.category, t, n, r)
};
}
}
-async function ale(e, t) {
- let n = _A(mA(pA(e)));
+async function Ace(e, t) {
+ let n = KA(UA(HA(e)));
J.removeQueries({
queryKey: n.queryKey,
exact: !0
@@ -35710,13 +35710,13 @@ async function ale(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var ole = (e) => e ? e.pages.flatMap((e) => e.items) : [], sle = (e, t) => `${e}${t ? "+" : ""} 项`, vA = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", cle = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), lle = {
+var jce = (e) => e ? e.pages.flatMap((e) => e.items) : [], Mce = (e, t) => `${e}${t ? "+" : ""} 项`, qA = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Nce = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), Pce = {
numeric: !0,
sensitivity: "base"
};
-function ule(e, t) {
+function Fce(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", lle))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Pce))) {
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]);
}
@@ -35724,7 +35724,7 @@ function ule(e, t) {
}
//#endregion
//#region src/react/index/index-people.tsx
-function yA({ html: e, face: t, company: n, big: r }) {
+function JA({ html: e, face: t, company: n, big: r }) {
let i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -35736,8 +35736,8 @@ function yA({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var dle = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
-function bA({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
+var Ice = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
+function YA({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
return /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
...a,
@@ -35747,7 +35747,7 @@ function bA({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
radius: "plain",
padding: "none",
interactive: !0,
- className: `${dle} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${Ice} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -35764,8 +35764,8 @@ function bA({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
]
});
}
-function xA({ kind: e, items: t, layout: n, props: r }) {
- let i = ile[e], a = fA(e), o = n === "big";
+function XA({ kind: e, items: t, layout: n, props: r }) {
+ let i = kce[e], a = VA(e), o = n === "big";
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-index-grid": "",
"data-layout": n,
@@ -35773,14 +35773,14 @@ function xA({ kind: e, items: t, layout: n, props: r }) {
className: `${a ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
let n = r.personAvatar(t, i, o);
- return /* @__PURE__ */ (0, z.jsx)(bA, {
+ return /* @__PURE__ */ (0, z.jsx)(YA, {
"data-k": t.k,
"data-kind": i,
name: t.k,
- readout: cle(e, t),
+ readout: Nce(e, t),
big: o,
onPress: () => r.openEntity(i, t.k),
- children: /* @__PURE__ */ (0, z.jsx)(yA, {
+ children: /* @__PURE__ */ (0, z.jsx)(JA, {
html: n.html,
face: n.face,
company: a,
@@ -35790,21 +35790,21 @@ function xA({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function fle({ items: e, layout: t, props: n }) {
+function Lce({ items: e, layout: t, props: n }) {
let r = t === "big";
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, z.jsx)(bA, {
+ children: e.map((e) => /* @__PURE__ */ (0, z.jsx)(YA, {
"data-follow-author": e.key,
"data-kind": "performer",
name: e.k,
readout: `${e.n.toLocaleString()} 项更新`,
big: r,
onPress: () => n.openFollowAuthor(e.key),
- children: /* @__PURE__ */ (0, z.jsx)(yA, {
+ children: /* @__PURE__ */ (0, z.jsx)(JA, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -35814,14 +35814,14 @@ function fle({ items: e, layout: t, props: n }) {
}
//#endregion
//#region src/board-controls.ts
-function ple(e) {
+function Rce(e) {
let t = Number(e.min) || 0, n = Number(e.max) || 100, r = Number(e.value), i = n > t ? Math.max(0, Math.min(100, (r - t) / (n - t) * 100)) : 0;
e.style.setProperty("--board-range-value", `${i}%`);
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox.ts
-var SA = "/vendor/swiper/14.2.0/", CA = null, mle = () => CA ??= Promise.all([new Promise((e, t) => {
- let n = `${SA}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+var ZA = "/vendor/swiper/14.2.0/", QA = null, zce = () => QA ??= Promise.all([new Promise((e, t) => {
+ let n = `${ZA}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@ -35835,11 +35835,11 @@ var SA = "/vendor/swiper/14.2.0/", CA = null, mle = () => CA ??= Promise.all([ne
return;
}
let r = document.createElement("script");
- r.src = `${SA}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
+ r.src = `${ZA}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
})]).then(([, e]) => e).catch((e) => {
- throw CA = null, e;
+ throw QA = null, e;
});
-function hle(e, t, n) {
+function Bce(e, t, n) {
let r = "fit", i = () => t.slides?.[t.activeIndex]?.querySelector("img"), a = () => {
let e = i();
return !e?.naturalWidth || !e.naturalHeight ? 100 : Math.min(100, e.offsetWidth / e.naturalWidth * 100, e.offsetHeight / e.naturalHeight * 100);
@@ -35860,48 +35860,48 @@ function hle(e, t, n) {
}
};
}
-var wA = (e) => {
+var $A = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : s(t)).replace(" ", "\xA0") : "大小未知";
-}, gle = (e) => e.asset?.name || e.name || "未命名图片";
-function _le(t, n) {
+}, Vce = (e) => e.asset?.name || e.name || "未命名图片";
+function Hce(t, n) {
let r = t.asset;
- if (r) return [e[r.location ?? ""] || r.location || "来源未知", wA(r.size)].join(" · ");
+ if (r) return [e[r.location ?? ""] || r.location || "来源未知", $A(r.size)].join(" · ");
let i = (t.total ?? 0) > 1 ? `第 ${t.position} / ${t.total} 张` : "", a = n?.[0] && n[1] ? `${n[0]} × ${n[1]}` : "";
return [
t.source || "在线图片",
i,
a,
- t.size ? wA(t.size) : ""
+ t.size ? $A(t.size) : ""
].filter(Boolean).join(" · ");
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var TA = null, EA = null, vle = 0;
-function yle() {
- return (!EA || !TA?.isConnected) && (EA?.unmount(), TA = document.createElement("div"), TA.className = "peach-react", TA.dataset.photoLightboxHost = "", document.body.append(TA), EA = (0, ze.createRoot)(TA)), EA;
+var ej = null, tj = null, Uce = 0;
+function Wce() {
+ return (!tj || !ej?.isConnected) && (tj?.unmount(), ej = document.createElement("div"), ej.className = "peach-react", ej.dataset.photoLightboxHost = "", document.body.append(ej), tj = (0, ze.createRoot)(ej)), tj;
}
-async function DA(e, t, n) {
+async function nj(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await mle();
+ r = await zce();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = yle();
- (0, Re.flushSync)(() => i.render(/* @__PURE__ */ (0, z.jsx)(ble, {
+ let i = Wce();
+ (0, Re.flushSync)(() => i.render(/* @__PURE__ */ (0, z.jsx)(Gce, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++vle)));
+ }, ++Uce)));
}
-function OA() {
- EA && (0, Re.flushSync)(() => EA.render(null));
+function rj() {
+ tj && (0, Re.flushSync)(() => tj.render(null));
}
-function ble({ slides: e, index: t, Swiper: n, host: r }) {
+function Gce({ slides: e, index: t, Swiper: n, host: r }) {
let i = e.length > 1, a = (0, R.useId)(), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = (0, R.useRef)(null), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (0, R.useRef)(null), _ = (0, R.useRef)(null), [v, y] = (0, R.useState)(t), [b, x] = (0, R.useState)(100), [S, C] = (0, R.useState)({}), [w, T] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [E, D] = (0, R.useState)(!1), [O, k] = (0, R.useState)({
at: t,
text: ""
@@ -35944,7 +35944,7 @@ function ble({ slides: e, index: t, Swiper: n, host: r }) {
y(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), g.current = hle(e, a, x);
+ i(t, 0), g.current = Bce(e, a, x);
let l = oe(e, p.current, m.current), h = (e = !1) => {
l.hide(), p.current?.setAttribute("aria-expanded", "false"), e && p.current && document.contains(p.current) && p.current.focus();
};
@@ -35961,13 +35961,13 @@ function ble({ slides: e, index: t, Swiper: n, host: r }) {
});
v.observe(e);
let b = (e) => {
- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), _.current?.isOpen() ? _.current.dismiss(!0) : OA());
+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), _.current?.isOpen() ? _.current.dismiss(!0) : rj());
};
return document.addEventListener("keydown", b, !0), () => {
document.removeEventListener("keydown", b, !0), h(), v.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), g.current = null, _.current = null, e.close(), document.body.classList.remove("photolight-open");
};
}, []), (0, R.useLayoutEffect)(() => {
- h.current && ple(h.current);
+ h.current && Rce(h.current);
}, [b]);
let A = e[v], j = A.asset ?? null, M = async (e) => {
if (!j || !r || e.getAttribute("aria-busy") === "true") return;
@@ -35998,18 +35998,18 @@ function ble({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), OA();
+ e.preventDefault(), rj();
},
onClick: (e) => {
let t = e.target;
- _.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && OA();
+ _.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && rj();
},
children: [
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: OA,
+ onClick: rj,
dangerouslySetInnerHTML: { __html: l("x") }
}),
/* @__PURE__ */ (0, z.jsxs)("div", {
@@ -36142,10 +36142,10 @@ function ble({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: gle(A)
+ children: Vce(A)
}, v), /* @__PURE__ */ (0, z.jsx)("span", {
"data-photo-detail-meta": "",
- children: _le(A, S[v])
+ children: Hce(A, S[v])
})]
}),
/* @__PURE__ */ (0, z.jsx)("button", {
@@ -36184,28 +36184,28 @@ function ble({ slides: e, index: t, Swiper: n, host: r }) {
}
//#endregion
//#region src/react/entity-body/entity-body-page.tsx
-function xle(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, z.jsx)(Sle, {
+function Kce(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, z.jsx)(qce, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, z.jsx)(Cle, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, z.jsx)(Ele, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, z.jsx)(Jce, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, z.jsx)(Zce, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
-function Sle({ roster: e, props: t }) {
+function qce({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, R.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
}), [n, r]);
- return /* @__PURE__ */ (0, z.jsx)(xA, {
+ return /* @__PURE__ */ (0, z.jsx)(XA, {
kind: e.kind,
items: e.people,
layout: e.layout,
props: i
});
}
-function Cle(e) {
+function Jce(e) {
let t = to(!e.items, e.skeletonHtml);
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-entity-grid": "",
@@ -36230,16 +36230,16 @@ function Cle(e) {
}) : null]
});
}
-var wle = (e) => Array.from({ length: e.n }, (t, n) => ({
+var Yce = (e) => Array.from({ length: e.n }, (t, n) => ({
sample: !0,
code: e.code,
position: n + 1,
total: e.n,
name: `${e.code} 样张 ${n + 1}`,
source: e.site_label || "官方样张"
-})), kA = (e) => e.sample === !0, AA = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, jA = (e) => kA(e) ? `/sample-thumb?${AA(e)}` : `/photo-thumb?id=${e.id}`, Tle = (e) => kA(e) ? {
- src: `/sample-image?${AA(e)}`,
- thumb: jA(e),
+})), ij = (e) => e.sample === !0, aj = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, oj = (e) => ij(e) ? `/sample-thumb?${aj(e)}` : `/photo-thumb?id=${e.id}`, Xce = (e) => ij(e) ? {
+ src: `/sample-image?${aj(e)}`,
+ thumb: oj(e),
name: e.name,
asset: null,
source: e.source,
@@ -36247,18 +36247,18 @@ var wle = (e) => Array.from({ length: e.n }, (t, n) => ({
total: e.total
} : {
src: `/photo?id=${e.id}`,
- thumb: jA(e),
+ thumb: oj(e),
name: e.name || "",
asset: e
};
-function Ele({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, R.useMemo)(() => [...e.codeSets.flatMap(wle), ...e.items], [e]), [s, c] = (0, R.useState)(() => /* @__PURE__ */ new Set()), l = (0, R.useCallback)((e) => c((t) => {
+function Zce({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, R.useMemo)(() => [...e.codeSets.flatMap(Yce), ...e.items], [e]), [s, c] = (0, R.useState)(() => /* @__PURE__ */ new Set()), l = (0, R.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, R.useCallback)((e) => {
- DA(e, o.map(Tle), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, z.jsx)(Dle, {
+ nj(e, o.map(Xce), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, z.jsx)(Qce, {
item: e,
index: t,
lost: s.has(t),
@@ -36276,7 +36276,7 @@ function Ele({ photos: e, props: t }) {
};
}), h = p;
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, z.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(MA, {
+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, z.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(sj, {
label: e.code,
title: e.name,
meta: [
@@ -36288,7 +36288,7 @@ function Ele({ photos: e, props: t }) {
...f,
children: o.slice(t, t + e.n).map((e, n) => d(e, t + n))
})] }, e.code)),
- m.length && e.total ? /* @__PURE__ */ (0, z.jsx)(MA, {
+ m.length && e.total ? /* @__PURE__ */ (0, z.jsx)(sj, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@ -36304,7 +36304,7 @@ function Ele({ photos: e, props: t }) {
}, e.items.length) : null
] });
}
-function MA({ label: e, title: t, meta: n }) {
+function sj({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-photo-group": "",
children: [
@@ -36321,7 +36321,7 @@ function MA({ label: e, title: t, meta: n }) {
]
});
}
-function Dle({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function Qce({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -36330,7 +36330,7 @@ function Dle({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, z.jsx)("img", {
- src: jA(e),
+ src: oj(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -36339,7 +36339,7 @@ function Dle({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
})
});
}
-function NA(e) {
+function cj(e) {
return {
x0: 0,
y0: 0,
@@ -36347,7 +36347,7 @@ function NA(e) {
y1: e.height
};
}
-function PA(e) {
+function lj(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -36355,40 +36355,40 @@ function PA(e) {
y1: Math.round(e.y1)
};
}
-function FA(e) {
+function uj(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function IA(e, t) {
- if (!FA(e)) return {
+function dj(e, t) {
+ if (!uj(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return NA(e);
+ if (t == null || !(t > 0)) return cj(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 PA({
+ return lj({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function Ole(e, t) {
- if (!FA(e) || !(t > 0)) return NA(e);
+function $ce(e, t) {
+ if (!uj(e) || !(t > 0)) return cj(e);
let n = Math.min(e.width, e.height * t);
- return PA({
+ return lj({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function kle(e, t, n) {
- if (!FA(t) || !(n > 0)) return NA(t);
- let r = LA(e, t), i = IA({
+function ele(e, t, n) {
+ if (!uj(t) || !(n > 0)) return cj(t);
+ let r = fj(e, t), i = dj({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -36399,8 +36399,8 @@ function kle(e, t, n) {
y1: r.y0 + i.y1
};
}
-function LA(e, t, n = null, r = "width") {
- if (!FA(t)) return {
+function fj(e, t, n = null, r = "width") {
+ if (!uj(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -36409,43 +36409,43 @@ function LA(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 PA({
+ return lj({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function RA(e, t, n, r) {
+function pj(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 PA({
+ return lj({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function zA(e, t, n, r = null) {
- if (!FA(n) || !(t > 0)) return e;
+function mj(e, t, n, r = null) {
+ if (!uj(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 LA({
+ return fj({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function Ale(e, t, n, r, i = null) {
+function tle(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 LA(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return fj(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function jle(e, t) {
- return FA(t) ? {
+function nle(e, t) {
+ return uj(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -36457,8 +36457,8 @@ function jle(e, t) {
height: 0
};
}
-function Mle(e, t) {
- if (!FA(t)) return {
+function rle(e, t) {
+ if (!uj(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -36468,7 +36468,7 @@ function Mle(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function Nle(e, t) {
+function ile(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}%`,
@@ -36477,29 +36477,29 @@ function Nle(e, t) {
height: `${t.height / r * 100}%`
};
}
-function BA(e, t, n) {
+function hj(e, t, n) {
return t > 0 ? e * n / t : 0;
}
//#endregion
//#region src/react/components/modal-frame.tsx
-var Ple = {
+var ale = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal"
};
-function VA({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
+function gj({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
let { isFocusVisible: a } = Sf();
- return /* @__PURE__ */ (0, z.jsx)(ox, {
+ return /* @__PURE__ */ (0, z.jsx)(vx, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
"data-modal-motion": "",
"data-motion-instant": a || void 0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, z.jsx)(Hte, {
+ children: /* @__PURE__ */ (0, z.jsx)(Ate, {
"data-modal-surface": "",
- className: `flex max-h-full w-full ${Ple[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, z.jsx)(yb, {
+ className: `flex max-h-full w-full ${ale[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
+ children: /* @__PURE__ */ (0, z.jsx)(jb, {
"aria-label": r,
className: "flex min-h-0 flex-col outline-none",
children: i
@@ -36507,7 +36507,7 @@ function VA({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
})
});
}
-function HA({ children: e }) {
+function _j({ children: e }) {
return /* @__PURE__ */ (0, z.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",
@@ -36516,8 +36516,8 @@ function HA({ children: e }) {
}
//#endregion
//#region src/react/crop/crop-frame.tsx
-var Fle = .02, UA = 1.08;
-function WA({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var ole = .02, vj = 1.08;
+function yj({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, R.useRef)(null), c = (0, R.useRef)(null), [l, u] = (0, R.useState)(!1);
(0, R.useEffect)(() => {
u(!1);
@@ -36528,8 +36528,8 @@ function WA({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: BA(e, n.clientWidth, r.width),
- dy: BA(t, n.clientHeight, r.height)
+ dx: hj(e, n.clientWidth, r.width),
+ dy: hj(t, n.clientHeight, r.height)
};
}, [r]);
function f(e) {
@@ -36547,29 +36547,29 @@ function WA({ 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(RA(n.box, o.dx, o.dy, r));
+ i(pj(n.box, o.dx, o.dy, r));
return;
}
- i(Ale(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(tle(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) * Fle), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * ole), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
if (o[e.key]) {
- e.preventDefault(), i(RA(n, o[e.key][0], o[e.key][1], r));
+ e.preventDefault(), i(pj(n, o[e.key][0], o[e.key][1], r));
return;
}
- (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(zA(n, e.key === "-" ? 1 / UA : UA, r, t)));
+ (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(mj(n, e.key === "-" ? 1 / vj : vj, r, t)));
}
- let g = n && r ? jle(LA(n, r, t), r) : null, _ = g ? {
+ let g = n && r ? nle(fj(n, r, t), r) : null, _ = g ? {
"--crop-l": `${g.left}%`,
"--crop-t": `${g.top}%`,
"--crop-w": `${g.width}%`,
@@ -36588,7 +36588,7 @@ function WA({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- FA({
+ uj({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -36627,7 +36627,7 @@ function WA({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: m,
onKeyDown: h,
onWheel: (e) => {
- !n || !r || i(zA(n, e.deltaY > 0 ? UA : 1 / UA, r, t));
+ !n || !r || i(mj(n, e.deltaY > 0 ? vj : 1 / vj, 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, z.jsx)("span", {
@@ -36649,29 +36649,29 @@ function WA({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var Ile = "/api/avatar-choices", GA = "/api/avatar-pick", Lle = "/api/avatar-code-cover", Rle = "/avatar-choice", KA = (e, t) => [
+var sle = "/api/avatar-choices", bj = "/api/avatar-pick", cle = "/api/avatar-code-cover", lle = "/avatar-choice", xj = (e, t) => [
"avatar-choices",
e,
t
-], qA = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, JA = (e, t, n) => `${Rle}${qA(e, t)}&ref=${encodeURIComponent(n)}`, zle = (e, t, n) => W(Ile + qA(e, t), n), Ble = (e) => G(Lle, { code: e });
-function YA(e, t, n) {
+], Sj = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, Cj = (e, t, n) => `${lle}${Sj(e, t)}&ref=${encodeURIComponent(n)}`, ule = (e, t, n) => W(sle + Sj(e, t), n), dle = (e) => G(cle, { code: e });
+function wj(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? kle(e.focus, t, n) : IA(t, n);
+ return e.focus && r ? ele(e.focus, t, n) : dj(t, n);
}
-var Vle = (e) => e.crop && FA({
+var fle = (e) => e.crop && uj({
width: e.width,
height: e.height
});
-async function Hle(e, t, n) {
+async function ple(e, t, n) {
if (!("file" in n)) {
- await G(GA, {
+ await G(bj, {
kind: e,
id: t,
...n
});
return;
}
- let r = n.file, i = await fetch(`${GA}${qA(e, t)}&name=${encodeURIComponent(r.name)}`, {
+ let r = n.file, i = await fetch(`${bj}${Sj(e, t)}&name=${encodeURIComponent(r.name)}`, {
method: "POST",
credentials: "same-origin",
body: r
@@ -36680,30 +36680,30 @@ async function Hle(e, t, n) {
let a = await i.json().catch(() => null);
throw new Bi(a?.error || `请求失败(${i.status})`, i.status, a);
}
-function Ule(e, t) {
+function mle(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
return n.length ? `${e}:图库里按「${n.join("」「")}」找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:图库里没有这个名字,用下面两种方式换。`;
}
-var Wle = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function Gle(e) {
- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${Wle(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var hle = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function gle(e) {
+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${hle(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var XA = (e) => e.cast > 1, Kle = (e) => XA(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, qle = {
+var Tj = (e) => e.cast > 1, _le = (e) => Tj(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, vle = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
code: "番号封面"
};
-function Jle(e) {
+function yle(e) {
if (e.startsWith("cover:")) return "封面";
let t = e.split(":")[2] || "";
if (t === "cover") return "封面";
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var Yle = (e) => `${qle[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (XA(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Xle = 8, Zle = 3 / 4;
-function Qle({ kind: e, entityId: t, name: n, onPicked: r }) {
+var ble = (e) => `${vle[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (Tj(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), xle = 8, Sle = 3 / 4;
+function Cle({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, R.useState)(!1);
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -36718,12 +36718,12 @@ function Qle({ kind: e, entityId: t, name: n, onPicked: r }) {
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, z.jsx)(VA, {
+ }), /* @__PURE__ */ (0, z.jsx)(gj, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, z.jsx)($le, {
+ children: /* @__PURE__ */ (0, z.jsx)(wle, {
kind: e,
entityId: t,
name: n,
@@ -36732,33 +36732,33 @@ function Qle({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function $le({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, R.useRef)(null), o = fO(), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(null), h = KA(e, t), g = (0, R.useRef)(!1), _ = Zn({
+function wle({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, R.useRef)(null), o = UO(), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(null), h = xj(e, t), g = (0, R.useRef)(!1), _ = Zn({
queryKey: h,
- queryFn: ({ signal: n }) => zle(e, t, n),
+ queryFn: ({ signal: n }) => ule(e, t, n),
retryOnMount: !0
});
(0, R.useEffect)(() => () => {
- g.current && J.removeQueries({ queryKey: KA(e, t) });
+ g.current && J.removeQueries({ queryKey: xj(e, t) });
}, [e, t]);
let v = Qn({
- mutationFn: (n) => Hle(e, t, n),
+ mutationFn: (n) => ple(e, t, n),
onSuccess: () => {
g.current = !0, i(), r();
}
}), y = Qn({
- mutationFn: (e) => Ble(e),
+ mutationFn: (e) => dle(e),
onSuccess: (e) => m(e)
});
function b(e) {
let t = e.currentTarget, n = t.files?.[0];
t.value = "", f(""), n && v.mutate({ file: n });
}
- let x = _.data, S = x?.choices ?? [], C = d || (v.error ? U(v.error) : "") || (!p && y.error ? U(y.error) : "") || (_.error ? U(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : Gle(x);
+ let x = _.data, S = x?.choices ?? [], C = d || (v.error ? U(v.error) : "") || (!p && y.error ? U(y.error) : "") || (_.error ? U(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : gle(x);
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, z.jsx)(HA, { children: /* @__PURE__ */ (0, z.jsx)(bt, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, z.jsx)(_j, { children: /* @__PURE__ */ (0, z.jsx)(bt, { className: "size-6" }) }),
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
@@ -36775,7 +36775,7 @@ function $le({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: p ? Kle(p) : Ule(n, x)
+ children: p ? _le(p) : mle(n, x)
}),
T ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "neutral",
@@ -36787,14 +36787,14 @@ function $le({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsx)(mO, {
+ /* @__PURE__ */ (0, z.jsx)(GO, {
icon: Ye,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), p ? /* @__PURE__ */ (0, z.jsx)(tue, {
+ }), p ? /* @__PURE__ */ (0, z.jsx)(Ele, {
kind: e,
entityId: t,
choice: p,
@@ -36817,7 +36817,7 @@ function $le({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
"aria-busy": _.isPending || void 0,
"data-skeleton": _.isPending ? "avatar-choices" : void 0,
className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",
- children: _.isPending ? Array.from({ length: Xle }, (e, t) => /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: _.isPending ? Array.from({ length: xle }, (e, t) => /* @__PURE__ */ (0, z.jsxs)("span", {
"aria-hidden": !0,
"data-avatar-skeleton": !0,
className: "flex flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-caption-1-regular",
@@ -36830,15 +36830,15 @@ function $le({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: Yle(n),
+ title: ble(n),
...q(w),
onClick: () => {
w || (n.crop ? m(n) : v.mutate({ ref: n.ref }));
},
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
- /* @__PURE__ */ (0, z.jsx)(eue, {
- src: JA(e, t, n.ref),
+ /* @__PURE__ */ (0, z.jsx)(Tle, {
+ src: Cj(e, t, n.ref),
choice: n
}),
/* @__PURE__ */ (0, z.jsx)("span", {
@@ -36853,7 +36853,7 @@ function $le({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
children: "在用"
})
}) : null,
- XA(n) ? /* @__PURE__ */ (0, z.jsx)("span", {
+ Tj(n) ? /* @__PURE__ */ (0, z.jsx)("span", {
className: "absolute top-1 right-1",
children: /* @__PURE__ */ (0, z.jsxs)(Li, {
variant: "caption",
@@ -36874,7 +36874,7 @@ function $le({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, z.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, z.jsx)($O, {
+ children: /* @__PURE__ */ (0, z.jsx)(Nk, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -36909,7 +36909,7 @@ function $le({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 items-center gap-2",
children: [/* @__PURE__ */ (0, z.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, z.jsx)($O, {
+ children: /* @__PURE__ */ (0, z.jsx)(Nk, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -36929,7 +36929,7 @@ function $le({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function eue({ src: e, choice: t }) {
+function Tle({ src: e, choice: t }) {
let n = (0, R.useRef)(null), [r, i] = (0, R.useState)(!1);
(0, R.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@ -36937,7 +36937,7 @@ function eue({ src: e, choice: t }) {
let a = {
width: t.width,
height: t.height
- }, o = Vle(t) ? Nle(YA(t, a, Zle), a) : null, s = r ? !0 : void 0;
+ }, o = fle(t) ? ile(wj(t, a, Sle), a) : null, s = r ? !0 : void 0;
return /* @__PURE__ */ (0, z.jsxs)("span", {
className: "relative block w-full aspect-avatar-choice overflow-hidden",
children: [/* @__PURE__ */ (0, z.jsx)("img", {
@@ -36962,23 +36962,23 @@ function eue({ src: e, choice: t }) {
})]
});
}
-function tue({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, R.useState)(o[0]), [l, u] = (0, R.useState)(null), [d, f] = (0, R.useState)(null), p = JA(e, t, s), m = fO();
+function Ele({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, R.useState)(o[0]), [l, u] = (0, R.useState)(null), [d, f] = (0, R.useState)(null), p = Cj(e, t, s), m = UO();
function h(e) {
c(e), u(null), f(null);
}
- let g = d && l ? Mle(d, l) : null;
+ let g = d && l ? rle(d, l) : null;
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("div", {
ref: m,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: [/* @__PURE__ */ (0, z.jsx)(WA, {
+ children: [/* @__PURE__ */ (0, z.jsx)(yj, {
src: p,
aspect: 1,
box: d,
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), FA(e) && f(s === n.ref ? YA(n, e, 1) : IA(e, 1));
+ u(e), uj(e) && f(s === n.ref ? wj(n, e, 1) : dj(e, 1));
},
onBox: f
}), o.length > 1 ? /* @__PURE__ */ (0, z.jsx)("div", {
@@ -36992,7 +36992,7 @@ function tue({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
"data-crop-base": !0,
onClick: () => h(e),
className: "cursor-pointer rounded-lg px-2 py-1 text-caption-1-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-checked:bg-background-tertiary-default aria-checked:text-text-primary",
- children: Jle(e)
+ children: yle(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, z.jsxs)("div", {
@@ -37026,7 +37026,7 @@ function tue({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}
//#endregion
//#region src/react/feed-new/feed-new-row.tsx
-function ZA({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
+function Ej({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
let a = (0, R.useRef)(null), o = e?.items.length ? e.html : "";
(0, R.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !o, e && i?.(!!o);
@@ -37055,12 +37055,12 @@ function ZA({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
}
//#endregion
//#region src/react/entity-hero/glyph.tsx
-var nue = {
+var Dle = {
"text-aa": 1.435,
"mark-javdb": 326 / 111
};
-function QA({ name: e }) {
- let t = nue[e];
+function Dj({ name: e }) {
+ let t = Dle[e];
return /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24",
"aria-hidden": "true",
@@ -37070,19 +37070,19 @@ function QA({ name: e }) {
}
//#endregion
//#region src/react/entity-hero/hero-pop.tsx
-function $A(e, t) {
+function Oj(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 ej = (e) => !!e?.isConnected && e.matches(":popover-open");
-function tj(e, t, n, r) {
+var kj = (e) => !!e?.isConnected && e.matches(":popover-open");
+function Aj(e, t, n, r) {
let i = (0, R.useRef)(r);
i.current = r, (0, R.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && ej(n.current) ? $A(t.current, n.current) : i.current();
+ t.current && kj(n.current) ? Oj(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -37096,17 +37096,17 @@ function tj(e, t, n, r) {
n
]);
}
-function nj({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function jj({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, R.useRef)(null), s = (0, R.useRef)(null), [c, l] = (0, R.useState)(!1), u = (0, R.useRef)(!1), d = (0, R.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, ej(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, kj(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), !(!s.current || !o.current || ej(s.current)) && (s.current.showPopover(), $A(o.current, s.current), l(!0));
+ clearTimeout(d.current), !(!s.current || !o.current || kj(s.current)) && (s.current.showPopover(), Oj(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 tj(c, o, s, f), (0, R.useEffect)(() => {
+ return Aj(c, o, s, f), (0, R.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -37132,7 +37132,7 @@ function nj({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && ej(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && kj(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, z.jsxs)("div", {
@@ -37150,16 +37150,16 @@ function nj({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function rue({ following: e, busy: t, onToggle: n, tip: r }) {
+function Ole({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), [s, c] = (0, R.useState)(!1), l = (0, R.useRef)(!1), u = () => {
- ej(o.current) && o.current.hidePopover(), c(!1);
+ kj(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- l.current || !o.current || !i.current || ej(o.current) || (o.current.showPopover(), $A(i.current, o.current), c(!0));
+ l.current || !o.current || !i.current || kj(o.current) || (o.current.showPopover(), Oj(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return tj(s, i, o, () => c(!1)), (0, R.useEffect)(() => {
- i.current && ej(o.current) && $A(i.current, o.current);
+ return Aj(s, i, o, () => c(!1)), (0, R.useEffect)(() => {
+ i.current && kj(o.current) && Oj(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, z.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -37168,7 +37168,7 @@ function rue({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, z.jsx)(QA, { name: "rss" }),
+ /* @__PURE__ */ (0, z.jsx)(Dj, { name: "rss" }),
/* @__PURE__ */ (0, z.jsx)("input", {
ref: a,
type: "checkbox",
@@ -37203,29 +37203,29 @@ function rue({ following: e, busy: t, onToggle: n, tip: r }) {
}
//#endregion
//#region src/react/entity-hero/name-picker.tsx
-function iue({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function kle({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, R.useState)(!1), o = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, z.jsxs)(Tte, {
+ }, []), /* @__PURE__ */ (0, z.jsxs)(pte, {
isOpen: i,
onOpenChange: a,
children: [/* @__PURE__ */ (0, z.jsx)(ph, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, z.jsx)(QA, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, z.jsx)(Ty, {
+ children: /* @__PURE__ */ (0, z.jsx)(Dj, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, z.jsx)(Ly, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: iO,
+ className: TO,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, z.jsxs)(Dte, {
+ children: /* @__PURE__ */ (0, z.jsxs)(hte, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, z.jsx)(hb, {
+ /* @__PURE__ */ (0, z.jsx)(Db, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -37233,31 +37233,31 @@ function iue({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, z.jsxs)(_b, {
+ children: t.map((e) => /* @__PURE__ */ (0, z.jsxs)(kb, {
id: e,
textValue: e,
"data-namepick-name": e,
- children: [/* @__PURE__ */ (0, z.jsx)(QA, { name: "check" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, z.jsx)(Dj, { name: "check" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e })]
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)(mee, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, z.jsx)(hb, { children: /* @__PURE__ */ (0, z.jsxs)(_b, {
+ /* @__PURE__ */ (0, z.jsx)(fee, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, z.jsx)(Db, { children: /* @__PURE__ */ (0, z.jsxs)(kb, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, z.jsx)(QA, { name: "plus" }), /* @__PURE__ */ (0, z.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, z.jsx)(Dj, { name: "plus" }), /* @__PURE__ */ (0, z.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var aue = (e) => e === "studio" || e === "agency", oue = (e) => e === "performer" || e === "creator", sue = (e) => e ? "已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。" : "订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。";
-function cue(e) {
+var Ale = (e) => e === "studio" || e === "agency", jle = (e) => e === "performer" || e === "creator", Mle = (e) => e ? "已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。" : "订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。";
+function Nle(e) {
return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);
}
-function rj(e) {
+function Mj(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0
@@ -37268,13 +37268,13 @@ function rj(e) {
linked: !1
} : null;
}
-function ij(e, t) {
+function Nj(e, t) {
let n = f(e, "performer"), r = c(t);
return r && [e.label, n].map(c).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var aj = (e) => ({ site: u(e) });
-function oj(e, t) {
- let r = rj(e)?.name || "", i = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+var Pj = (e) => ({ site: u(e) });
+function Ple(e, t) {
+ let r = Mj(e)?.name || "", i = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -37284,7 +37284,7 @@ function oj(e, t) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${ij(e, r)} · ${t}`
+ title: `${Nj(e, r)} · ${t}`
};
}
let i = e.url || "";
@@ -37295,8 +37295,8 @@ function oj(e, t) {
if (t === "performer" && e.link_kind !== "social") return {
type: "icon",
url: i,
- title: ij(e, r),
- mark: aj(e)
+ title: Nj(e, r),
+ mark: Pj(e)
};
if (e.link_kind === "social") {
let t = n(i);
@@ -37304,7 +37304,7 @@ function oj(e, t) {
type: "icon",
url: i,
title: e.label || "",
- mark: t ? { brand: t } : aj(e)
+ mark: t ? { brand: t } : Pj(e)
};
}
return {
@@ -37312,13 +37312,13 @@ function oj(e, t) {
url: i,
title: e.label || "",
text: f(e, t, a),
- mark: aj(e)
+ mark: Pj(e)
};
});
return [...i, ...o];
}
-var sj = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function cj(e) {
+var Fj = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function Fle(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -37375,14 +37375,14 @@ function cj(e) {
tags: e.tags
}), t;
}
-function lj(e) {
+function Ile(e) {
let t = e.length > 5 ? 4 : e.length;
return {
shown: e.slice(0, t),
rest: e.length - t
};
}
-function uj(e) {
+function Lle(e) {
if (!e) return null;
let t = e.shown || [], n = [e.reading || "", ...t].filter(Boolean), r = (e.total || 0) - t.length;
return n.length || r > 0 ? {
@@ -37393,8 +37393,8 @@ function uj(e) {
}
//#endregion
//#region src/react/entity-hero/entity-hero-page.tsx
-function dj({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o, helpers: s }) {
- let c = oue(e), l = aue(e), u = e === "performer" ? cj(n.profile) : [], d = oj(n, e), f = sj(n), p = e === "agency" ? [] : n.related_performers || [], m = (0, R.useRef)(null), h = (0, R.useRef)(null);
+function Rle({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o, helpers: s }) {
+ let c = jle(e), l = Ale(e), u = e === "performer" ? Fle(n.profile) : [], d = Ple(n, e), f = Fj(n), p = e === "agency" ? [] : n.related_performers || [], m = (0, R.useRef)(null), h = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
s.wireScroller(m.current);
}, [s, d.length]), (0, R.useEffect)(() => {
@@ -37407,7 +37407,7 @@ function dj({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
children: [
/* @__PURE__ */ (0, z.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, z.jsx)(fj, {
+ children: [/* @__PURE__ */ (0, z.jsx)(zle, {
kind: e,
name: t,
helpers: s,
@@ -37415,7 +37415,7 @@ function dj({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
company: l
}), c && n.id ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, z.jsx)(Qle, {
+ children: /* @__PURE__ */ (0, z.jsx)(Cle, {
kind: e,
entityId: Number(n.id),
name: n.canonical_name || t,
@@ -37428,14 +37428,14 @@ function dj({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
children: [
/* @__PURE__ */ (0, z.jsxs)("div", {
"data-entity-title": "",
- children: [/* @__PURE__ */ (0, z.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, z.jsx)(iue, {
+ children: [/* @__PURE__ */ (0, z.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, z.jsx)(kle, {
current: n.canonical_name,
- choices: cue(n),
+ choices: Nle(n),
onChoose: o.chooseName,
onAddAlias: o.addAlias
})]
}),
- /* @__PURE__ */ (0, z.jsx)(pj, {
+ /* @__PURE__ */ (0, z.jsx)(Ble, {
kind: e,
entity: n,
actions: o
@@ -37443,9 +37443,9 @@ function dj({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
d.length ? /* @__PURE__ */ (0, z.jsx)("div", {
ref: m,
"data-entity-links": "",
- children: d.map((e, t) => /* @__PURE__ */ (0, z.jsx)(vj, { link: e }, t))
+ children: d.map((e, t) => /* @__PURE__ */ (0, z.jsx)(Wle, { link: e }, t))
}) : null,
- f.length || n.feed ? /* @__PURE__ */ (0, z.jsx)(yj, {
+ f.length || n.feed ? /* @__PURE__ */ (0, z.jsx)(Gle, {
entity: n,
actions: o,
helpers: s
@@ -37454,11 +37454,11 @@ function dj({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
}),
u.length ? /* @__PURE__ */ (0, z.jsx)("dl", {
"data-entity-facts": "",
- children: u.map((e) => /* @__PURE__ */ (0, z.jsx)(hj, {
+ children: u.map((e) => /* @__PURE__ */ (0, z.jsx)(Hle, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, z.jsx)(gj, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, z.jsx)(Ule, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, z.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
@@ -37485,14 +37485,14 @@ function dj({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
}, e.k))
})
}) : null]
- }), a ? (0, Re.createPortal)(/* @__PURE__ */ (0, z.jsx)(ZA, {
+ }), a ? (0, Re.createPortal)(/* @__PURE__ */ (0, z.jsx)(Ej, {
feedNew: r,
host: a,
wire: s.wireFeedRow,
act: (e, t) => o.feedAction(e, t)
}), a) : null] });
}
-function fj({ kind: e, name: t, helpers: n, people: r, company: a }) {
+function zle({ kind: e, name: t, helpers: n, people: r, company: a }) {
let [o] = (0, R.useState)(() => `${n.portraitImg()}<span>${i(t.slice(0, 1))}</span>`);
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-entity-portrait": r ? "round" : "square",
@@ -37501,8 +37501,8 @@ function fj({ kind: e, name: t, helpers: n, people: r, company: a }) {
dangerouslySetInnerHTML: { __html: o }
});
}
-function pj({ kind: e, entity: t, actions: n }) {
- let i = rj(t), a = (e, t) => (r) => {
+function Ble({ kind: e, entity: t, actions: n }) {
+ let i = Mj(t), a = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, o = i ? i.linked ? /* @__PURE__ */ (0, z.jsx)("a", {
href: r("agency", i.name),
@@ -37511,36 +37511,36 @@ function pj({ kind: e, entity: t, actions: n }) {
children: i.name
}) : i.name : null, s = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer") {
- let e = uj(t.name_groups);
+ let e = Lle(t.name_groups);
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-entity-alias": "meta",
children: [
/* @__PURE__ */ (0, z.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, z.jsx)(QA, { name: "film" }), /* @__PURE__ */ (0, z.jsx)("span", { children: s })]
+ children: [/* @__PURE__ */ (0, z.jsx)(Dj, { name: "film" }), /* @__PURE__ */ (0, z.jsx)("span", { children: s })]
}),
o ? /* @__PURE__ */ (0, z.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, z.jsx)(QA, { name: "briefcase" }), /* @__PURE__ */ (0, z.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, z.jsx)(Dj, { name: "briefcase" }), /* @__PURE__ */ (0, z.jsx)("span", { children: o })]
}) : null,
e ? /* @__PURE__ */ (0, z.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, z.jsx)(QA, { name: "id-card" }),
+ /* @__PURE__ */ (0, z.jsx)(Dj, { name: "id-card" }),
/* @__PURE__ */ (0, z.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: e.names.map((e, t) => /* @__PURE__ */ (0, z.jsx)("span", { children: e }, t))
}),
- e.rest > 0 ? /* @__PURE__ */ (0, z.jsx)(nj, {
+ e.rest > 0 ? /* @__PURE__ */ (0, z.jsx)(jj, {
id: "entityAliasPop",
hook: "alias",
rest: e.rest,
label: `另外 ${e.rest} 个别名`,
heading: `${e.total} 个别名`,
- children: /* @__PURE__ */ (0, z.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, z.jsx)(mj, {
+ children: /* @__PURE__ */ (0, z.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, z.jsx)(Vle, {
label: e.label,
names: e.names
}, t)) })
@@ -37575,25 +37575,25 @@ function pj({ kind: e, entity: t, actions: n }) {
]
});
}
-function mj({ label: e, names: t }) {
+function Vle({ label: e, names: t }) {
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [e ? /* @__PURE__ */ (0, z.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, z.jsx)("dd", {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, z.jsxs)("span", { children: [e.name, e.reading ? /* @__PURE__ */ (0, z.jsx)("small", { children: e.reading }) : null] }, t))
})] });
}
-function hj({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("dt", { children: [/* @__PURE__ */ (0, z.jsx)(QA, { name: e }), t] }), /* @__PURE__ */ (0, z.jsx)("dd", {
+function Hle({ glyph: e, label: t, clip: n, children: r }) {
+ return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("dt", { children: [/* @__PURE__ */ (0, z.jsx)(Dj, { name: e }), t] }), /* @__PURE__ */ (0, z.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function gj({ tags: e }) {
- let { shown: t, rest: n } = lj(e);
+function Ule({ tags: e }) {
+ let { shown: t, rest: n } = Ile(e);
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, z.jsx)("span", {
"data-fact-tag": "",
children: e
- }, e)), n ? /* @__PURE__ */ (0, z.jsx)(nj, {
+ }, e)), n ? /* @__PURE__ */ (0, z.jsx)(jj, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -37608,10 +37608,10 @@ function gj({ tags: e }) {
})
}) : null] });
}
-function _j({ mark: e }) {
+function Ij({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, z.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, z.jsx)(QA, { name: e.brand })
+ children: /* @__PURE__ */ (0, z.jsx)(Dj, { name: e.brand })
});
let t = l("globe") + ("site" in e ? `<img src="${i(e.site)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, z.jsx)("span", {
@@ -37619,7 +37619,7 @@ function _j({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function vj({ link: e }) {
+function Wle({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, z.jsx)("a", {
"data-link": "icon",
@@ -37628,19 +37628,19 @@ function vj({ link: e }) {
rel: "noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, z.jsx)(_j, { mark: e.mark })
+ children: /* @__PURE__ */ (0, z.jsx)(Ij, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, z.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, z.jsx)(_j, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, z.jsx)(Ij, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, z.jsxs)("span", {
"data-link": "private",
title: "私人馆藏来源记录,不直接打开下载页",
- children: [/* @__PURE__ */ (0, z.jsx)(_j, { mark: { globe: !0 } }), /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, z.jsx)(Ij, { mark: { globe: !0 } }), /* @__PURE__ */ (0, z.jsxs)("span", {
"data-link-label": "",
children: ["来源 · ", e.label]
})]
@@ -37651,14 +37651,14 @@ function vj({ link: e }) {
target: "_blank",
rel: "noreferrer",
title: e.title,
- children: [/* @__PURE__ */ (0, z.jsx)(_j, { mark: e.mark }), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, z.jsx)(Ij, { mark: e.mark }), /* @__PURE__ */ (0, z.jsx)("span", {
"data-link-label": "",
children: e.text
})]
});
}
}
-function yj({ entity: e, actions: t, helpers: n }) {
+function Gle({ entity: e, actions: t, helpers: n }) {
let [r, i] = (0, R.useState)(!!e.feed?.following), [a, o] = (0, R.useState)(!1), s = (0, R.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
@@ -37676,34 +37676,34 @@ function yj({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-entry-marks": "",
- children: [sj(e).map((e, t) => /* @__PURE__ */ (0, z.jsxs)("a", {
+ children: [Fj(e).map((e, t) => /* @__PURE__ */ (0, z.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, z.jsx)(QA, { name: e.mark }) : /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, z.jsx)(Dj, { name: e.mark }) : /* @__PURE__ */ (0, z.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, z.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, z.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, z.jsx)(rue, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, z.jsx)(Ole, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: sue(r)
+ tip: Mle(r)
}) : null]
});
}
//#endregion
//#region src/react/entity-page/entity-page-view.tsx
-function bj(e) {
- let { kind: t, name: n } = e, r = Zn(rA(t, n)), i = !!r.data?.error, { actions: a } = e;
+function Kle(e) {
+ let { kind: t, name: n } = e, r = Zn(NA(t, n)), i = !!r.data?.error, { actions: a } = e;
return (0, R.useLayoutEffect)(() => {
i && a.missing();
}, [a, i]), r.isError ? /* @__PURE__ */ (0, z.jsx)(no, {
@@ -37711,12 +37711,12 @@ function bj(e) {
onRetry: () => {
r.refetch();
}
- }) : !r.data || i ? null : /* @__PURE__ */ (0, z.jsx)(wj, {
+ }) : !r.data || i ? null : /* @__PURE__ */ (0, z.jsx)(Yle, {
...e,
entity: r.data
});
}
-function xj(e) {
+function Lj(e) {
let [t, n] = (0, R.useState)({
key: e,
n: 1
@@ -37728,14 +37728,14 @@ function xj(e) {
};
return n(r), r.n;
}
-var Sj = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function Cj(e, t) {
+var qle = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function Jle(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function wj(e) {
- let { kind: n, name: r, entity: i, filters: a, media: o, helpers: s, actions: c, hosts: l } = e, u = n === "agency" || n === "studio", d = n === "agency" ? i.related_performers || [] : n === "studio" && i.labels || [], f = Number(i.id) || 0, p = $n(aA(n, r, 0, "")).data?.pages[0], m = p && !p.error ? p : null, h = m ? (m.total || 0) + (m.sample_total || 0) : 0, g = (m?.total || 0) > 0 || oA(m).length > 0, _ = o.media === "photos" && g ? o : Xk, [v, y] = (0, R.useState)("people"), x = new URLSearchParams(Object.entries(a).filter(([, e]) => e)).toString(), [S, C] = (0, R.useState)(x);
+function Yle(e) {
+ let { kind: n, name: r, entity: i, filters: a, media: o, helpers: s, actions: c, hosts: l } = e, u = n === "agency" || n === "studio", d = n === "agency" ? i.related_performers || [] : n === "studio" && i.labels || [], f = Number(i.id) || 0, p = $n(PA(n, r, 0, "")).data?.pages[0], m = p && !p.error ? p : null, h = m ? (m.total || 0) + (m.sample_total || 0) : 0, g = (m?.total || 0) > 0 || FA(m).length > 0, _ = o.media === "photos" && g ? o : EA, [v, y] = (0, R.useState)("people"), x = new URLSearchParams(Object.entries(a).filter(([, e]) => e)).toString(), [S, C] = (0, R.useState)(x);
S !== x && (C(x), y("videos"));
- let w = u && v === "people" && d.length ? "people" : _.media, T = nA(e), E = Zn(T), D = xj(JSON.stringify(T.queryKey)), [O] = (0, R.useState)(() => (n === "performer" || n === "studio") && (e.jav || (E.data?.items || []).some((e) => e.is_jav)));
+ let w = u && v === "people" && d.length ? "people" : _.media, T = MA(e), E = Zn(T), D = Lj(JSON.stringify(T.queryKey)), [O] = (0, R.useState)(() => (n === "performer" || n === "studio") && (e.jav || (E.data?.items || []).some((e) => e.is_jav)));
(0, R.useLayoutEffect)(() => {
c.javContext(O);
}, [c, O]);
@@ -37745,26 +37745,26 @@ function wj(e) {
}, [e.layout, O]), A = {
jav: e.jav,
seed: e.seed
- }, j = (0, R.useCallback)((t, i) => tA(n, r, a, A, t, e.cache, i), [D]), [M, N] = (0, R.useState)({}), P = _.set, ee = M[P] || "", F = $n({
- ...aA(n, r, P, ee),
+ }, j = (0, R.useCallback)((t, i) => jA(n, r, a, A, t, e.cache, i), [D]), [M, N] = (0, R.useState)({}), P = _.set, ee = M[P] || "", F = $n({
+ ...PA(n, r, P, ee),
enabled: w === "photos"
- }), I = F.data?.pages[0], te = xj(JSON.stringify(Qk(n, r, P, ee))), ne = (0, R.useMemo)(() => {
+ }), I = F.data?.pages[0], te = Lj(JSON.stringify(OA(n, r, P, ee))), ne = (0, R.useMemo)(() => {
let e = F.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
return {
revision: te,
- codeSets: t.id ? [] : oA(t),
+ codeSets: t.id ? [] : FA(t),
items: e.flatMap((e) => e.items || []),
total: t.total || 0,
hasMore: !!e[e.length - 1]?.has_more
};
}, [F.data, te]), re = F.refetch, ie = F.fetchNextPage, ae = Zn({
- ...Jk(f, s.feedRowHtml),
+ ...wA(f, s.feedRowHtml),
enabled: !!f
}), oe = (0, R.useRef)(e.feedRevision);
(0, R.useEffect)(() => {
- oe.current !== e.feedRevision && (oe.current = e.feedRevision, J.invalidateQueries({ queryKey: qk(f) }));
+ oe.current !== e.feedRevision && (oe.current = e.feedRevision, J.invalidateQueries({ queryKey: CA(f) }));
}, [f, e.feedRevision]);
let se = !!E.data;
(0, R.useEffect)(() => {
@@ -37781,7 +37781,7 @@ function wj(e) {
ce.current = !1;
}, []);
let [le, ue] = (0, R.useState)(0), L = (0, R.useCallback)(async () => {
- await J.invalidateQueries({ queryKey: Zk(n, r) }), await J.invalidateQueries({ queryKey: [
+ await J.invalidateQueries({ queryKey: DA(n, r) }), await J.invalidateQueries({ queryKey: [
"entity-items",
n,
r
@@ -37812,7 +37812,7 @@ function wj(e) {
enabled: e
})
}),
- onSuccess: (e, t) => J.setQueryData(Zk(n, r), (e) => e && {
+ onSuccess: (e, t) => J.setQueryData(DA(n, r), (e) => e && {
...e,
feed: {
...e.feed,
@@ -37860,12 +37860,12 @@ function wj(e) {
let e = await t("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- ce.current && await J.invalidateQueries({ queryKey: qk(f) });
+ ce.current && await J.invalidateQueries({ queryKey: CA(f) });
})();
},
- feedAction: Yk,
+ feedAction: TA,
avatarPicked: () => {
- J.refetchQueries({ queryKey: Zk(n, r) }).then(() => {
+ J.refetchQueries({ queryKey: DA(n, r) }).then(() => {
ce.current && ue((e) => e + 1);
});
}
@@ -37894,19 +37894,19 @@ function wj(e) {
e === w && !_.set || (y(e === "people" ? "people" : "videos"), c.route(a, e === "photos" ? {
media: "photos",
set: 0
- } : Xk));
+ } : EA));
},
setState: (e) => c.route({
...a,
state: e
- }, Xk),
+ }, EA),
toggleTag: c.toggleTag,
clearFilter: c.clearFilter,
clearAll: c.clearAll,
setSort: c.setSort,
reshuffle: async () => {
if (w !== "photos") {
- let t = c.reshuffleVideos(), i = nA({
+ let t = c.reshuffleVideos(), i = MA({
kind: n,
name: r,
filters: {
@@ -37921,7 +37921,7 @@ function wj(e) {
await J.fetchQuery(i).catch(() => null);
return;
}
- let t = Sj(), i = await J.fetchInfiniteQuery(aA(n, r, P, t)).catch(() => null);
+ let t = qle(), i = await J.fetchInfiniteQuery(PA(n, r, P, t)).catch(() => null);
!ce.current || !i?.pages[0] || i.pages[0].error || N((e) => ({
...e,
[P]: t
@@ -37955,7 +37955,7 @@ function wj(e) {
k: e.k,
label: s.tagLabel(e.k),
n: e.n,
- selected: qce(a.tag, e.k)
+ selected: _ce(a.tag, e.k)
})), ye = h || d.length ? {
label: d.length ? "页面视图" : "媒体类型",
people: d.length ? {
@@ -37981,9 +37981,9 @@ function wj(e) {
if (w === "people") Ce = `${n === "studio" ? "厂牌" : "艺人"} · ${d.length.toLocaleString()}`;
else if (w === "videos") {
we = !E.data;
- let e = $k(a.tag).map(s.tagLabel);
+ let e = kA(a.tag).map(s.tagLabel);
Ce = `视频 · ${(E.data?.total || 0).toLocaleString()}${e.length ? ` · ${e.join(" · ")}` : ""}`;
- } else I && !I.error ? Ce = xe ? `${I.title} · ${(I.total || 0).toLocaleString()} 张` : Cj(I, oA(I).length) : we = F.isPending;
+ } else I && !I.error ? Ce = xe ? `${I.title} · ${(I.total || 0).toLocaleString()} 张` : Jle(I, FA(I).length) : we = F.isPending;
let Te = (0, R.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -38000,7 +38000,7 @@ function wj(e) {
d
]);
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)(dj, {
+ /* @__PURE__ */ (0, z.jsx)(Rle, {
kind: n,
name: r,
entity: i,
@@ -38010,7 +38010,7 @@ function wj(e) {
actions: me,
helpers: he
}, le),
- (0, Re.createPortal)(/* @__PURE__ */ (0, z.jsx)(yce, {
+ (0, Re.createPortal)(/* @__PURE__ */ (0, z.jsx)(Vse, {
kind: n,
name: r,
view: w,
@@ -38031,7 +38031,7 @@ function wj(e) {
onRetry: () => {
E.refetch();
}
- }) : /* @__PURE__ */ (0, z.jsx)(xle, {
+ }) : /* @__PURE__ */ (0, z.jsx)(Kce, {
kind: n,
name: r,
view: w,
@@ -38058,21 +38058,21 @@ function wj(e) {
}
//#endregion
//#region src/react/feed-new/feed-new-page.tsx
-function Tj({ host: e, revision: t, helpers: n, actions: r }) {
- let i = Zn(Jk(null, n.feedRowHtml)), a = (0, R.useRef)(t);
+function Xle({ host: e, revision: t, helpers: n, actions: r }) {
+ let i = Zn(wA(null, n.feedRowHtml)), a = (0, R.useRef)(t);
return (0, R.useEffect)(() => {
- a.current !== t && (a.current = t, J.invalidateQueries({ queryKey: qk(null) }));
- }, [t]), (0, Re.createPortal)(/* @__PURE__ */ (0, z.jsx)(ZA, {
+ a.current !== t && (a.current = t, J.invalidateQueries({ queryKey: CA(null) }));
+ }, [t]), (0, Re.createPortal)(/* @__PURE__ */ (0, z.jsx)(Ej, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
- act: Yk,
+ act: TA,
settled: r.settled
}), e);
}
//#endregion
//#region src/follow-sort.ts
-var Ej = [
+var Rj = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -38080,7 +38080,7 @@ var Ej = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], lue = "checked", Dj = {
+], Zle = "checked", zj = {
checked: "desc",
added: "desc",
name: "asc",
@@ -38088,32 +38088,32 @@ var Ej = [
source: "asc",
provider: "asc",
status: "asc"
-}, uue = (e) => Ej.some(([t]) => t === e);
-function Oj(e, t) {
- let n = uue(e) ? e : lue;
+}, Qle = (e) => Rj.some(([t]) => t === e);
+function Bj(e, t) {
+ let n = Qle(e) ? e : Zle;
return {
sort: n,
- dir: t === "asc" || t === "desc" ? t : Dj[n]
+ dir: t === "asc" || t === "desc" ? t : zj[n]
};
}
//#endregion
//#region src/react/follow-manage/follow-manage.ts
-var kj = "/api/follow", Aj = "/api/follow/credentials", jj = "/api/follow/check", Mj = "/api/follow/source", Nj = "/api/follow/resolve", due = "/api/follow/suggest", Pj = "/api/follow/author-alias", fue = "/api/follow/credential", Fj = "/api/follow/status", pue = "/api/feeds", Ij = "/api/feeds/source", mue = "/api/feeds/check", hue = "/api/feeds/lookup", Lj = ["follow-manage"], Rj = ["follow-manage", "credentials"], gue = ["follow-manage", "check"], _ue = ["follow-manage", "resolve"], zj = ["follow-manage", "feeds"], vue = (e) => [
+var Vj = "/api/follow", Hj = "/api/follow/credentials", Uj = "/api/follow/check", Wj = "/api/follow/source", Gj = "/api/follow/resolve", $le = "/api/follow/suggest", Kj = "/api/follow/author-alias", eue = "/api/follow/credential", qj = "/api/follow/status", tue = "/api/feeds", Jj = "/api/feeds/source", nue = "/api/feeds/check", rue = "/api/feeds/lookup", Yj = ["follow-manage"], Xj = ["follow-manage", "credentials"], iue = ["follow-manage", "check"], aue = ["follow-manage", "resolve"], Zj = ["follow-manage", "feeds"], oue = (e) => [
"follow-manage",
"suggest",
e
-], Bj = [["default", "默认视图"], ["table", "表格视图"]], Vj = [
+], Qj = [["default", "默认视图"], ["table", "表格视图"]], $j = [
10,
20,
50,
100
-], yue = Object.fromEntries(Ej), Hj = {
+], sue = Object.fromEntries(Rj), eM = {
author: "name",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, bue = (e) => Bj.some(([t]) => t === e), xue = (e) => Vj.includes(Number(e)) ? Number(e) : 20, Sue = {
+}, cue = (e) => Qj.some(([t]) => t === e), lue = (e) => $j.includes(Number(e)) ? Number(e) : 20, uue = {
checked: ["从近到远", "从远到近"],
added: ["从近到远", "从远到近"],
name: ["倒序", "正序"],
@@ -38121,25 +38121,25 @@ var kj = "/api/follow", Aj = "/api/follow/credentials", jj = "/api/follow/check"
source: ["倒序", "正序"],
provider: ["倒序", "正序"],
status: ["倒序", "正序"]
-}, Cue = (e, t) => `按${yue[e]}${Sue[e][t === "asc" ? 0 : 1]}排序`;
-function Uj(e) {
+}, due = (e, t) => `按${sue[e]}${uue[e][t === "asc" ? 0 : 1]}排序`;
+function tM(e) {
let t = e.last_status;
return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;
}
-function wue(e) {
+function fue(e) {
return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";
}
-var Wj = (e) => e.last_status === "error" || e.last_status === "unauthorized", Gj = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), Kj = {
- source: Gj,
- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || Gj(e, t),
- status: (e, t) => Uj(e) - Uj(t) || Gj(e, t)
-}, qj = (e) => Date.parse(e || "") || 0, Jj = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
-function Yj(e, t = []) {
+var nM = (e) => e.last_status === "error" || e.last_status === "unauthorized", rM = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), iM = {
+ source: rM,
+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || rM(e, t),
+ status: (e, t) => tM(e) - tM(t) || rM(e, t)
+}, aM = (e) => Date.parse(e || "") || 0, oM = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
+function sM(e, t = []) {
if (!e.length) return "";
- let n = (e) => String(e.author_name || "").trim() || Jj(e.label), r = e.find((e) => e.entity_name);
+ let n = (e) => String(e.author_name || "").trim() || oM(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 Jj(i.canonical_name);
+ if (i) return oM(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);
@@ -38147,18 +38147,18 @@ function Yj(e, t = []) {
let s = (e) => (e.match(/[A-Z]/g) || []).length;
return o.reduce((e, t) => s(t) > s(e) ? t : e, o[0]);
}
-function Xj(e) {
+function cM(e) {
let t = e.trim().match(/[A-Za-z0-9]/);
return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();
}
-function Zj(e) {
+function lM(e) {
let t = e.find((e) => e.official_avatar_url), n = e.find((e) => e.avatar_url), r = t?.official_avatar_url || n?.avatar_url || "";
return {
src: r,
fallback: t && n && n.avatar_url !== r && n.avatar_url || ""
};
}
-function Qj(e) {
+function uM(e) {
let t = [], n = /* @__PURE__ */ new Map();
for (let r of e) {
let e = r.author_key || `source:${r.id}`;
@@ -38166,31 +38166,31 @@ function Qj(e) {
}
return t.map((e) => n.get(e));
}
-function Tue(e, t, n, r = []) {
- let i = Qj(e), a = n === Dj[t] ? 1 : -1, o = (e) => Yj(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = Kj[t];
+function pue(e, t, n, r = []) {
+ let i = uM(e), a = n === zj[t] ? 1 : -1, o = (e) => sM(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = iM[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) => qj(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => qj(e.created_at)));
+ let l = (e) => Math.max(...e.map((e) => aM(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => aM(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 Eue(e, t, n, r = []) {
+function mue(e, t, n, r = []) {
let i = e.flatMap((e) => {
- let t = Yj(e, r);
+ let t = sM(e, r);
return e.map((n) => ({
source: n,
group: e,
author: t
}));
- }), a = Kj[t];
+ }), a = iM[t];
if (a) {
- let e = n === Dj[t] ? 1 : -1;
+ let e = n === zj[t] ? 1 : -1;
i.sort((t, n) => e * a(t.source, n.source));
}
return i;
}
-function $j(e, t, n) {
+function dM(e, t, n) {
let r = Bs(e, t), i = Vs(n, r), a = (i - 1) * t;
return {
page: i,
@@ -38200,91 +38200,91 @@ function $j(e, t, n) {
end: Math.min(a + t, e)
};
}
-function Due(e, t) {
+function hue(e, t) {
let n = new Set(t.map((e) => e.id));
return new Set([...e].filter((e) => n.has(e)));
}
-function eM(e, t) {
+function fM(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 tM(e, t, n) {
+function pM(e, t, n) {
let r = new Set(e);
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var nM = (e) => W(`${kj}?summary=1`, e), rM = (e) => W(Aj, e), Oue = (e) => W(jj, e), kue = (e) => W(Nj, e), Aue = (e, t) => W(`${due}?q=${encodeURIComponent(e)}`, t), iM = (e) => G(jj, {
+var mM = (e) => W(`${Vj}?summary=1`, e), hM = (e) => W(Hj, e), gue = (e) => W(Uj, e), _ue = (e) => W(Gj, e), vue = (e, t) => W(`${$le}?q=${encodeURIComponent(e)}`, t), gM = (e) => G(Uj, {
...e?.length ? { sources: e } : {},
background: !0
-}), jue = (e) => G(Nj, {
+}), yue = (e) => G(Gj, {
lines: e,
background: !0
-}), aM = (e, t) => G(Mj, {
+}), _M = (e, t) => G(Wj, {
action: "enabled",
id: e,
enabled: t
-}), oM = (e) => G(Mj, {
+}), vM = (e) => G(Wj, {
action: "remove",
id: e
-}), Mue = (e) => G(Mj, {
+}), bue = (e) => G(Wj, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), sM = (e, t) => G(Pj, {
+}), yM = (e, t) => G(Kj, {
action: "add",
canonical: e,
alias: t
-}), Nue = (e) => G(Pj, {
+}), xue = (e) => G(Kj, {
action: "remove",
alias: e
-}), Pue = (e, t) => G(fue, {
+}), Sue = (e, t) => G(eue, {
provider: e,
values: t
-}), Fue = (e, t) => G(Fj, {
+}), Cue = (e, t) => G(qj, {
item: e,
to: t
-}), Iue = () => W(`${kj}?status=new&limit=1000`);
-async function cM(e) {
- let t = await W(pue, e);
+}), wue = () => W(`${Vj}?status=new&limit=1000`);
+async function bM(e) {
+ let t = await W(tue, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
-var lM = (e, t, n) => G(Ij, {
+var xM = (e, t, n) => G(Jj, {
action: "enabled",
id: e,
enabled: t
-}, "POST", n), uM = (e, t) => G(Ij, {
+}, "POST", n), SM = (e, t) => G(Jj, {
action: "remove",
id: e
-}, "POST", t), dM = (e, t) => G(mue, t?.length ? { sources: t } : { all: !0 }, "POST", e), Lue = (e, t) => W(`${hue}?q=${encodeURIComponent(e)}`, t), Rue = (e, t, n) => G(Ij, {
+}, "POST", t), CM = (e, t) => G(nue, t?.length ? { sources: t } : { all: !0 }, "POST", e), Tue = (e, t) => W(`${rue}?q=${encodeURIComponent(e)}`, t), Eue = (e, t, n) => G(Jj, {
action: "follow-name",
name: e,
ids: t
}, "POST", n);
-async function zue(e, t = "") {
+async function Due(e, t = "") {
await Promise.all([
J.fetchQuery({
- queryKey: Lj,
- queryFn: () => nM(e)
+ queryKey: Yj,
+ queryFn: () => mM(e)
}),
J.fetchQuery({
- queryKey: Rj,
- queryFn: () => rM(e)
+ queryKey: Xj,
+ queryFn: () => hM(e)
}),
t === "feeds" ? J.fetchQuery({
- queryKey: zj,
- queryFn: () => cM(e)
+ queryKey: Zj,
+ queryFn: () => bM(e)
}) : null
]);
}
-function fM(e, t) {
- J.setQueryData(Lj, (n) => n && {
+function wM(e, t) {
+ J.setQueryData(Yj, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -38292,24 +38292,24 @@ function fM(e, t) {
} : n)
});
}
-function pM(e) {
+function TM(e) {
let t = new Set(e);
- J.setQueryData(Lj, (e) => e && {
+ J.setQueryData(Yj, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var mM = () => J.invalidateQueries({
- queryKey: Lj,
+var EM = () => J.invalidateQueries({
+ queryKey: Yj,
exact: !0
});
-function Bue(e) {
+function DM(e) {
let t = e.results || [], n = (e) => t.reduce((t, n) => t + (e(n) || 0), 0), r = n((e) => e.added), i = n((e) => e.updated), a = n((e) => e.skipped_compilations), o = n((e) => e.skipped) - a, s = n((e) => e.history_skipped), c = n((e) => e.probed), l = t.filter((e) => e.ok && !e.added && !e.updated).length, u = t.filter((e) => !e.ok).length, d = [];
r && d.push(`新增 ${r} 条`), i && d.push(`更新 ${i} 条`), o && d.push(`跳过 ${o} 条无资源`), a && d.push(`排除 ${a} 个超大合集`), s && d.push(`跳过 ${s} 条超出首次采集范围的历史内容`), c && d.push(`回查 ${c} 条`), l && d.push(`${l} 个来源没有更新`), d.length || d.push("没有任何更新");
let f = t.filter((e) => e.exhausted).length;
return f && d.push(`${f} 个没有更多内容`), u && d.push(`${u} 个失败`), `检查了 ${t.length} 个来源:${d.join(" · ")}`;
}
-var Vue = (e) => (e?.results || []).filter((e) => !e.ok), Hue = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", hM = (e) => e.last_checked_at ? Us(e.last_checked_at) : "未检查", Uue = /* @__PURE__ */ new Set([
+var OM = (e) => (e?.results || []).filter((e) => !e.ok), kM = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", AM = (e) => e.last_checked_at ? Us(e.last_checked_at) : "未检查", jM = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -38322,50 +38322,50 @@ var Vue = (e) => (e?.results || []).filter((e) => !e.ok), Hue = (e) => (e?.resul
"gofile",
"f95zone",
"simpcity"
-]), gM = (e) => Uue.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Wue = {
+]), MM = (e) => jM.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", NM = {
required: "需要",
optional: "可选",
none: "不需要",
blocked: "接不进来"
-}, _M = (e) => !!e.present && !e.missing.length, Gue = [
+}, PM = (e) => !!e.present && !e.missing.length, FM = [
["", "全部"],
["new", "未看"],
["saved", "已保存"],
["ignored", "已忽略"]
-], Kue = [
+], IM = [
["new", "更新时间"],
["hot", "热度"],
["dur", "时长"]
-], vM = {
+], LM = {
new: ["从新到旧", "从旧到新"],
hot: ["从高到低", "从低到高"],
dur: ["从长到短", "从短到长"]
};
-function yM(e, t) {
+function RM(e, t) {
let n = (e) => encodeURIComponent(e.join(","));
return `/api/follow?limit=300&offset=${t}` + (e.status ? `&status=${e.status}` : "") + (e.author ? `&author=${n([e.author])}` : "") + (e.provider ? `&provider=${n([e.provider])}` : "") + (e.tags.length ? `&tag=${n(e.tags)}` : "") + (e.work ? `&work=${n([e.work])}` : "") + (e.sort === "new" ? "" : `&sort=${e.sort}`) + (e.sort === "rand" ? `&seed=${e.seed}` : "") + (e.dir === "desc" ? "" : `&dir=${e.dir}`);
}
-function bM(e, t) {
+function zM(e, t) {
return {
queryKey: [
"follow-feed",
- yM(e, 0),
+ RM(e, 0),
t
],
- queryFn: ({ pageParam: t, signal: n }) => W(yM(e, t), n),
+ queryFn: ({ pageParam: t, signal: n }) => W(RM(e, t), n),
initialPageParam: 0,
getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 300 : void 0,
placeholderData: Yt
};
}
-var xM = ["follow-feed", "credentials"], SM = (e) => W(Aj, e).catch(() => ({ providers: [] }));
-async function que(e, t) {
- let n = bM(e.view, e.revision);
+var BM = ["follow-feed", "credentials"], VM = (e) => W(Hj, e).catch(() => ({ providers: [] }));
+async function HM(e, t) {
+ let n = zM(e.view, e.revision);
J.removeQueries({
queryKey: n.queryKey,
exact: !0
}), J.removeQueries({
- queryKey: xM,
+ queryKey: BM,
exact: !0
}), await Promise.all([J.fetchInfiniteQuery({
queryKey: n.queryKey,
@@ -38376,11 +38376,11 @@ async function que(e, t) {
initialPageParam: 0,
getNextPageParam: n.getNextPageParam
}), J.fetchQuery({
- queryKey: xM,
- queryFn: () => SM(t)
+ queryKey: BM,
+ queryFn: () => VM(t)
})]);
}
-function CM(e) {
+function UM(e) {
if (!e?.pages.length) return null;
let t = e.pages, n = t[t.length - 1];
return {
@@ -38389,10 +38389,10 @@ function CM(e) {
groups: t.flatMap((e) => e.groups || [])
};
}
-function wM(e, t, n) {
+function WM(e, t, n) {
return [...e].sort((e, r) => h(n, t(e)) - h(n, t(r)) || String(t(e)).localeCompare(String(t(r))));
}
-function TM(e) {
+function GM(e) {
let t = /* @__PURE__ */ new Set();
return [
e.primary,
@@ -38400,12 +38400,12 @@ function TM(e) {
...e.duplicates
].filter((e) => !e || t.has(e.id) ? !1 : (t.add(e.id), !0));
}
-function Jue(e) {
+function KM(e) {
for (let [, t] of J.getQueriesData({ queryKey: ["follow-feed"] })) {
if (!Array.isArray(t?.pages) || !t.pages.length) continue;
let n = t.pages[t.pages.length - 1];
for (let r of t.pages) for (let t of r.groups || []) {
- let r = TM(t).find((t) => t.id === e);
+ let r = GM(t).find((t) => t.id === e);
if (r) return {
item: r,
group: t,
@@ -38416,7 +38416,7 @@ function Jue(e) {
}
return null;
}
-function Yue(e) {
+function qM(e) {
J.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
@@ -38426,7 +38426,7 @@ function Yue(e) {
...t,
groups: (t.groups || []).map((t) => {
let n = (t) => t.id === e.id ? e : t;
- return TM(t).some((t) => t.id === e.id) ? {
+ return GM(t).some((t) => t.id === e.id) ? {
...t,
primary: n(t.primary),
variants: t.variants.map(n),
@@ -38436,39 +38436,39 @@ function Yue(e) {
}))
});
}
-function Xue(e, t) {
+function JM(e, t) {
J.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
- }, (n) => n && NM(n, null, e, t));
+ }, (n) => n && aN(n, null, e, t));
}
-function EM(e) {
- return TM(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
+function YM(e) {
+ return GM(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
}
-function DM(e) {
+function XM(e) {
let t = /* @__PURE__ */ new Set(), n = e.media_items || [];
return n.length ? n.forEach((e) => {
(e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind);
}) : (e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind), t;
}
-function OM(e) {
+function ZM(e) {
let t = /* @__PURE__ */ new Set();
- return TM(e).forEach((e) => DM(e).forEach((e) => t.add(e))), t;
+ return GM(e).forEach((e) => XM(e).forEach((e) => t.add(e))), t;
}
-function kM(e, t) {
+function QM(e, t) {
let n = t === "images" ? "image" : "video";
- return EM(e).find((e) => DM(e).has(n)) || e.primary;
+ return YM(e).find((e) => XM(e).has(n)) || e.primary;
}
-function AM(e) {
- return EM(e).filter((e) => e.playable && e.media_kind === "video");
+function $M(e) {
+ return YM(e).filter((e) => e.playable && e.media_kind === "video");
}
-var jM = {
+var eN = {
video: "个视频",
image: "张图片",
mixed: "个媒体"
};
-function Zue({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {
- let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${jM[s] || jM.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
+function tN({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {
+ let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${eN[s] || eN.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
for (let t of n?.faces || []) r && t.media_kind !== "image" || !t.thumb_url || t.thumb_url === e || u.has(t.face) || (u.add(t.face), d.push(t.thumb_url));
return {
isMix: !!c,
@@ -38477,14 +38477,14 @@ function Zue({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r
faces: d.length > 1 ? d.slice(0, i) : []
};
}
-function Que(e) {
+function nN(e) {
let t = e.filter((e) => e.can_backfill).map((e) => (e.backfill_page || 0) + 1);
if (!t.length) return "";
let n = Math.max(...t), r = Math.min(...t);
return n <= 1 ? "每个来源都只抓了第 1 页" : r === n ? `每个来源都抓到第 ${n} 页` : `已抓到第 ${r}–${n} 页`;
}
-function MM(e, t, n) {
- return e === t ? vM[e] ? {
+function rN(e, t, n) {
+ return e === t ? LM[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
@@ -38492,13 +38492,13 @@ function MM(e, t, n) {
dir: "desc"
};
}
-function $ue(e, t, n, r) {
- let i = MM(e, n, r);
+function iN(e, t, n, r) {
+ let i = rN(e, n, r);
if (!i) return "";
- let a = vM[i.sort];
+ let a = LM[i.sort];
return `按${t}${a ? a[+(i.dir === "asc")] : ""}排序`;
}
-function NM(e, t, n, r) {
+function aN(e, t, n, r) {
let i = "", a = e.pages.map((e) => ({
...e,
groups: (e.groups || []).flatMap((e) => {
@@ -38528,7 +38528,7 @@ function NM(e, t, n, r) {
})
};
}
-function ede(e, t) {
+function oN(e, t) {
let n = [];
return e.author && n.push({
kind: "创作者",
@@ -38548,7 +38548,7 @@ function ede(e, t) {
label: e
})), n;
}
-function tde(e, t) {
+function sN(e, t) {
return t.kind === "创作者" ? {
...e,
author: ""
@@ -38563,7 +38563,7 @@ function tde(e, t) {
tags: e.tags.filter((e) => e !== t.key)
};
}
-function nde(e, t) {
+function cN(e, t) {
for (let n of e) {
let e = n.primary?.tag_types?.[t];
if (e) return e;
@@ -38572,7 +38572,7 @@ function nde(e, t) {
}
//#endregion
//#region src/sidebar.ts
-var rde = [
+var lN = [
"",
"follow",
"jav",
@@ -38581,7 +38581,7 @@ var rde = [
"studios",
"flagged",
"manage"
-], ide = [
+], uN = [
"playlists",
"immerse",
"stats",
@@ -38591,77 +38591,77 @@ var rde = [
"follow-manage",
"quality"
];
-[...rde, ...ide];
-function ade(e) {
+[...lN, ...uN];
+function dN(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of new Set(n.tags || [])) t.set(e, (t.get(e) || 0) + 1);
return [...t].sort((e, t) => t[1] - e[1]).slice(0, 30);
}
//#endregion
//#region src/react/follow-feed/follow-marks.ts
-var PM = (e) => typeof e == "string" ? e : "", FM = (e) => e.aliases;
-function IM(e, t = "") {
- let n = gM(e);
+var fN = (e) => typeof e == "string" ? e : "", pN = (e) => e.aliases;
+function mN(e, t = "") {
+ let n = MM(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${i(t)}"${t ? ` title="${i(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-var LM = (e, t) => Yj(e, FM(t));
-function RM(e, t) {
- let { src: n, fallback: r } = Zj(e), a = Xj(t);
+var hN = (e, t) => sM(e, pN(t));
+function gN(e, t) {
+ let { src: n, fallback: r } = lM(e), a = cM(t);
if (!n) return `<span class="favatar none" title="没有可用头像">${i(a)}</span>`;
let o = r ? ` data-fallbacks="${i(r)}"` : "";
return `<img class="favatar" src="${i(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${o} data-initial="${i(a)}" data-drop-class="favatar none">`;
}
-function zM(e, t, n) {
- let r = FM(n), i = e.credit, a = i?.poster;
+function _N(e, t, n) {
+ let r = pN(n), i = e.credit, a = i?.poster;
if (!a) {
- let n = Yj(t, r);
+ let n = sM(t, r);
return {
- author: n || PM(e.author) || PM(e.source_label) || "创作者未取得",
- avatar: RM(t, n),
+ author: n || fN(e.author) || fN(e.source_label) || "创作者未取得",
+ avatar: gN(t, n),
credited: ""
};
}
- let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && Yj(c, r) || a;
+ let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && sM(c, r) || a;
return {
author: l,
- avatar: RM(c, l),
+ avatar: gN(c, l),
credited: i.credited || ""
};
}
-function BM(e, t = e.primary) {
+function vN(e, t = e.primary) {
let n = [], r = (e, t) => `<small class="javedition" data-follow-edition="${e}">${t}</small>`;
e.primary.variant_kind === "wip" ? n.push(r("wip", "WIP")) : e.has_wip && n.push(r("has-wip", "含 WIP"));
- let a = PM(e.primary.version);
+ let a = fN(e.primary.version);
a && n.push(r("version", i(a)));
- let o = PM(t.audio), s = o === "voiced" ? "配音版" : o === "silent" ? "无声版" : "";
+ let o = fN(t.audio), s = o === "voiced" ? "配音版" : o === "silent" ? "无声版" : "";
return s && n.push(r(o, s)), n.join("");
}
-function VM(e, t = e.primary) {
+function yN(e, t = e.primary) {
let n = new Map([
e.primary,
...e.variants,
...e.duplicates
].filter((e) => e.provider !== t.provider).map((e) => [e.provider, e.provider_label || e.provider]));
if (!n.size) return "";
- let r = [...n].map(([e, t]) => IM(e, t) || `<span>${i(t)}</span>`).join("");
+ let r = [...n].map(([e, t]) => mN(e, t) || `<span>${i(t)}</span>`).join("");
return `<span data-follow-seealso="" title="另见 ${i([...n.values()].join("、"))}">另见 ${r}</span>`;
}
-function HM(e, t) {
- let n = PM(e.media_error);
+function bN(e, t) {
+ let n = fN(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var UM = (e) => e.published_at ? Us(e.published_at) : "时间未取得", WM = /* @__PURE__ */ new Set(), GM = [], KM = null;
-function qM() {
- if (KM = null, !GM.length) return;
- let e = GM.splice(0, 200);
+var xN = (e) => e.published_at ? Us(e.published_at) : "时间未取得", SN = /* @__PURE__ */ new Set(), CN = [], wN = null;
+function TN() {
+ if (wN = null, !CN.length) return;
+ let e = CN.splice(0, 200);
t("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), GM.length && (KM = setTimeout(qM, 800));
+ }).catch(() => {}), CN.length && (wN = setTimeout(TN, 800));
}
-function ode(e, t, n, r) {
+function EN(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- WM.has(i) || (WM.add(i), GM.push(t === null ? {
+ SN.has(i) || (SN.add(i), CN.push(t === null ? {
item: e,
width: n,
height: r
@@ -38670,15 +38670,15 @@ function ode(e, t, n, r) {
width: n,
height: r,
media: t
- }), KM ||= setTimeout(qM, 800));
+ }), wN ||= setTimeout(TN, 800));
}
//#endregion
//#region src/react/follow-feed/follow-card.tsx
-var sde = (e) => Number(e) > 0;
-function cde(e) {
+var DN = (e) => Number(e) > 0;
+function Oue(e) {
return /^\d{4}-/.test(e) ? e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10) : e;
}
-function lde({ src: e, width: t, height: n, onLearn: r }) {
+function kue({ src: e, width: t, height: n, onLearn: r }) {
let [i, a] = (0, R.useState)(!1);
return i ? null : /* @__PURE__ */ (0, z.jsx)("img", {
src: e,
@@ -38694,8 +38694,8 @@ function lde({ src: e, width: t, height: n, onLearn: r }) {
} : void 0
});
}
-function ude(e) {
- let { group: t, authorSources: n, media: r, context: a, selected: s, selectMode: c, busy: u, failure: d, helpers: f, actions: p } = e, m = kM(t, r), h = r === "images", g = h ? (m.media_items || []).find((e) => e.media_kind === "image") : void 0, _ = g?.thumb_url || m.thumb_url || "", v = g && g.thumb_url === _ ? g : null, y = !v || _ === m.thumb_url, b = h ? [v, y ? m : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, x = h && !b && _ ? (e, t) => ode(m.id, v ? v.index : null, e, t) : void 0, S = r === "videos" ? AM(t) : [], C = (m.media_items || []).length > 1 ? m.id : S[0]?.id || m.id, w = Zue({
+function Aue(e) {
+ let { group: t, authorSources: n, media: r, context: a, selected: s, selectMode: c, busy: u, failure: d, helpers: f, actions: p } = e, m = QM(t, r), h = r === "images", g = h ? (m.media_items || []).find((e) => e.media_kind === "image") : void 0, _ = g?.thumb_url || m.thumb_url || "", v = g && g.thumb_url === _ ? g : null, y = !v || _ === m.thumb_url, b = h ? [v, y ? m : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, x = h && !b && _ ? (e, t) => EN(m.id, v ? v.index : null, e, t) : void 0, S = r === "videos" ? $M(t) : [], C = (m.media_items || []).length > 1 ? m.id : S[0]?.id || m.id, w = tN({
cover: _,
coverFace: (g?.thumb_url ? g : m).face,
stack: t.stack,
@@ -38711,7 +38711,7 @@ function ude(e) {
D.current = E.onPointerLeave;
let O = (0, R.useCallback)((e) => {
e && (e._stopHover = () => D.current());
- }, []), k = zM(m, n, a), A = UM(m), j = (m.tags || []).slice(0, 3), M = HM(m, a), N = VM(t, m), P = m.status === "saved", ee = (e) => {
+ }, []), k = _N(m, n, a), A = xN(m), j = (m.tags || []).slice(0, 3), M = bN(m, a), N = yN(t, m), P = m.status === "saved", ee = (e) => {
if (!e.target.closest("[data-media-tag]")) {
if (c || e.shiftKey || e.ctrlKey || e.metaKey) {
e.preventDefault(), p.toggleSelection(m.id, e.shiftKey);
@@ -38745,14 +38745,14 @@ function ude(e) {
"data-follow-open": "",
"aria-label": `打开 ${m.title} 详情`
}),
- _ ? /* @__PURE__ */ (0, z.jsx)(lde, {
+ _ ? /* @__PURE__ */ (0, z.jsx)(kue, {
src: _,
width: b?.width,
height: b?.height,
onLearn: x
}, _) : /* @__PURE__ */ (0, z.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: IM(m.resource_provider || m.provider) }
+ dangerouslySetInnerHTML: { __html: mN(m.resource_provider || m.provider) }
}),
w.faces.length > 1 ? /* @__PURE__ */ (0, z.jsx)("div", {
"data-mix-faces": "",
@@ -38771,7 +38771,7 @@ function ude(e) {
"data-media-badge": "",
title: m.provider_label,
"aria-label": `来源:${m.provider_label || ""}`,
- dangerouslySetInnerHTML: { __html: IM(m.provider) }
+ dangerouslySetInnerHTML: { __html: mN(m.provider) }
}),
/* @__PURE__ */ (0, z.jsx)("span", {
"data-media-check": "",
@@ -38780,7 +38780,7 @@ function ude(e) {
},
dangerouslySetInnerHTML: { __html: l("check") }
}),
- sde(m.duration) ? /* @__PURE__ */ (0, z.jsx)("span", {
+ DN(m.duration) ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-media-duration": "",
children: o(m.duration)
}) : null,
@@ -38862,7 +38862,7 @@ function ude(e) {
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: BM(t, m) + i(m.title) }
+ dangerouslySetInnerHTML: { __html: vN(t, m) + i(m.title) }
}),
/* @__PURE__ */ (0, z.jsxs)("div", {
"data-follow-byline": "",
@@ -38873,7 +38873,7 @@ function ude(e) {
}), /* @__PURE__ */ (0, z.jsx)("time", {
dateTime: m.published_at || "",
title: A,
- children: cde(A)
+ children: Oue(A)
})]
}),
k.credited ? /* @__PURE__ */ (0, z.jsx)("div", {
@@ -38909,10 +38909,10 @@ function ude(e) {
]
});
}
-var dde = (0, R.memo)(ude), JM = () => /* @__PURE__ */ (0, z.jsx)("span", {
+var jue = (0, R.memo)(Aue), ON = () => /* @__PURE__ */ (0, z.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), fde = wo("settings"), pde = wo("chevron-down"), mde = wo("history"), hde = [[
+}), Mue = wo("settings"), Nue = wo("chevron-down"), Pue = wo("history"), Fue = [[
"fixed",
"固定比例",
"layout-grid"
@@ -38921,19 +38921,19 @@ var dde = (0, R.memo)(ude), JM = () => /* @__PURE__ */ (0, z.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function gde(e, t, n) {
+function Iue(e, t, n) {
return (0, R.useMemo)(() => {
let r = e?.groups || [], i = e?.counts || {}, a = e?.sources || [], o = e?.facets || {}, s = new Set(o.authors || []), c = new Map(a.map((e) => [e.provider, e.provider_label || e.provider])), l = new Map((o.providers || []).map((e) => [e, c.get(e) || e])), u = new Map(o.tags || []), d = /* @__PURE__ */ new Map();
a.forEach((e) => {
e.author_key && (d.has(e.author_key) || d.set(e.author_key, []), d.get(e.author_key).push(e));
});
- let f = wM([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = wM(o.works || [], (e) => e[0], n).slice(0, 24);
+ let f = WM([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = WM(o.works || [], (e) => e[0], n).slice(0, 24);
t.work && !p.some((e) => e[0] === t.work) && p.push([
t.work,
t.work,
0
]);
- let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = wM([...u], (e) => e[0], n).slice(0, 20);
+ let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = WM([...u], (e) => e[0], n).slice(0, 20);
t.tags.forEach((e) => {
h.some(([t]) => t === e) || h.push([e, u.get(e) || m]);
});
@@ -38941,7 +38941,7 @@ function gde(e, t, n) {
videos: 0,
images: 0
};
- r.forEach((e) => OM(e).forEach((e) => {
+ r.forEach((e) => ZM(e).forEach((e) => {
g[e === "image" ? "images" : "videos"] += 1;
}));
let _ = t.media === "images" ? "image" : "video";
@@ -38956,7 +38956,7 @@ function gde(e, t, n) {
workRows: p,
allCount: m,
mediaCounts: g,
- visible: r.filter((e) => OM(e).has(_)),
+ visible: r.filter((e) => ZM(e).has(_)),
author: d.has(t.author) && s.has(t.author) ? t.author : "",
provider: l.has(t.provider) ? t.provider : "",
workNames: new Map((o.works || []).map((e) => [e[0], e[1]])),
@@ -38969,15 +38969,15 @@ function gde(e, t, n) {
n
]);
}
-function _de(e) {
- let { view: t, seed: n, revision: r, helpers: i, actions: a } = e, o = bM(t, r), s = $n(o), c = Zn({
- queryKey: xM,
- queryFn: ({ signal: e }) => SM(e)
- }), l = (0, R.useMemo)(() => CM(s.data), [s.data]), u = (0, R.useMemo)(() => new Set((c.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [c.data]), d = (0, R.useMemo)(() => ({
+function Lue(e) {
+ let { view: t, seed: n, revision: r, helpers: i, actions: a } = e, o = zM(t, r), s = $n(o), c = Zn({
+ queryKey: BM,
+ queryFn: ({ signal: e }) => VM(e)
+ }), l = (0, R.useMemo)(() => UM(s.data), [s.data]), u = (0, R.useMemo)(() => new Set((c.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [c.data]), d = (0, R.useMemo)(() => ({
sources: l?.sources || [],
aliases: l?.author_aliases || [],
credentials: u
- }), [l, u]), f = gde(l, t, n), p = s.isPending || s.isPlaceholderData, h = !p && !!l, g = (0, R.useMemo)(() => ade(f.visible.flatMap(TM).map((e) => ({ tags: e.tags || [] }))), [f.visible]);
+ }), [l, u]), f = Iue(l, t, n), p = s.isPending || s.isPlaceholderData, h = !p && !!l, g = (0, R.useMemo)(() => dN(f.visible.flatMap(GM).map((e) => ({ tags: e.tags || [] }))), [f.visible]);
(0, R.useEffect)(() => {
h && a.loaded(g);
}, [
@@ -38985,7 +38985,7 @@ function _de(e) {
g,
a
]);
- let _ = vde(e, !!l);
+ let _ = Rue(e, !!l);
if (!l) return s.isError ? /* @__PURE__ */ (0, z.jsx)(no, {
message: m(s.error),
onRetry: () => void s.refetch()
@@ -38993,12 +38993,12 @@ function _de(e) {
let v = (e) => a.route({
...t,
...e
- }), y = ede({
+ }), y = oN({
...t,
author: f.author,
provider: f.provider
}, {
- authors: new Map([...f.authorSources].map(([e, t]) => [e, LM(t, d)])),
+ authors: new Map([...f.authorSources].map(([e, t]) => [e, hN(t, d)])),
providers: f.providers,
works: f.workNames
}), b = t.status ? f.counts[t.status] || 0 : f.allCount, x = f.sources.some((e) => e.can_backfill);
@@ -39018,7 +39018,7 @@ function _de(e) {
"data-follow-head-actions": "",
children: [/* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
- leadingIcon: fde,
+ leadingIcon: Mue,
"data-follow-manage": "",
onClick: a.openManage,
children: "管理关注"
@@ -39035,20 +39035,20 @@ function _de(e) {
}) : null]
})]
}),
- /* @__PURE__ */ (0, z.jsx)(yde, {
+ /* @__PURE__ */ (0, z.jsx)(zue, {
facets: f,
pressed: f.author,
context: d,
props: e,
onPick: (e) => v({ author: f.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, z.jsx)(bde, {
+ /* @__PURE__ */ (0, z.jsx)(Bue, {
rows: f.workRows,
pressed: t.work,
props: e,
onPick: (e) => v({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, z.jsx)(xde, {
+ /* @__PURE__ */ (0, z.jsx)(Vue, {
facets: f,
view: t,
total: b,
@@ -39056,9 +39056,9 @@ function _de(e) {
props: e,
route: v
}),
- /* @__PURE__ */ (0, z.jsx)(Sde, {
+ /* @__PURE__ */ (0, z.jsx)(Hue, {
conditions: y,
- onDrop: (e) => a.route(tde(t, e)),
+ onDrop: (e) => a.route(sN(t, e)),
onClear: () => v({
author: "",
provider: "",
@@ -39066,11 +39066,11 @@ function _de(e) {
tags: []
})
}),
- f.broken.length ? /* @__PURE__ */ (0, z.jsx)(Cde, {
+ f.broken.length ? /* @__PURE__ */ (0, z.jsx)(Uue, {
count: f.broken.length,
onManage: a.openManage
}) : null,
- /* @__PURE__ */ (0, z.jsx)(wde, {
+ /* @__PURE__ */ (0, z.jsx)(Wue, {
pending: p,
facets: f,
data: l,
@@ -39087,13 +39087,13 @@ function _de(e) {
load: async () => {
await s.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, z.jsx)(pde, { className: "size-3.5" }), "加载更多"]
+ children: [/* @__PURE__ */ (0, z.jsx)(Nue, { className: "size-3.5" }), "加载更多"]
}, s.data?.pages.length)
}) : null, x ? /* @__PURE__ */ (0, z.jsxs)("span", {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
- leadingIcon: _.olderBusy ? void 0 : mde,
+ leadingIcon: _.olderBusy ? void 0 : Pue,
"data-follow-older": "",
"aria-busy": _.busy || void 0,
onClick: () => void _.start(!0),
@@ -39103,14 +39103,14 @@ function _de(e) {
}), /* @__PURE__ */ (0, z.jsx)("span", { children: "抓取中…" })] }) : "抓更早的一页"
}), /* @__PURE__ */ (0, z.jsx)("span", {
"data-follow-backfill": "",
- children: Que(f.sources)
+ children: nN(f.sources)
})]
}) : null]
}) : null
]
})] });
}
-function vde(e, t) {
+function Rue(e, t) {
let { helpers: n, actions: r } = e, [i, a] = (0, R.useState)(0), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(!1), f = (0, R.useRef)(!1), p = (0, R.useRef)(null), h = (0, R.useRef)({
helpers: n,
actions: r
@@ -39125,7 +39125,7 @@ function vde(e, t) {
return h.current.helpers.jobProgress({
host: e,
active: () => t,
- read: (e) => W(jj, e),
+ read: (e) => W(Uj, e),
busy: (e) => {
t && (f.current = e, s(e));
},
@@ -39150,7 +39150,7 @@ function vde(e, t) {
f.current = !0, l(e ? "older" : "check");
let t = !1;
try {
- let n = await G(jj, e ? {
+ let n = await G(Uj, e ? {
older: !0,
background: !0
} : { background: !0 });
@@ -39168,7 +39168,7 @@ function vde(e, t) {
olderBusy: c === "older" || u && o
};
}
-function yde({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function zue({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
let a = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
r.helpers.wireDrag(a.current);
@@ -39185,16 +39185,16 @@ function yde({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
onClick: () => i(r),
children: [/* @__PURE__ */ (0, z.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: RM(a, LM(a, n)) }
+ dangerouslySetInnerHTML: { __html: gN(a, hN(a, n)) }
}), /* @__PURE__ */ (0, z.jsx)("span", {
"data-follow-name": "",
- children: LM(a, n)
+ children: hN(a, n)
})]
}, r);
})
}) : null;
}
-function bde({ rows: e, pressed: t, props: n, onPick: r }) {
+function Bue({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -39215,13 +39215,13 @@ function bde({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function xde({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (0, R.useRef)(null), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(null), h = !!e.mediaCounts.images || t.media === "images", g = bk(c, d, "[data-follow-filter][aria-pressed=\"true\"]", t.status), _ = bk(u, f, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${h}`);
+function Vue({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
+ let { helpers: o, actions: s } = i, c = (0, R.useRef)(null), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(null), h = !!e.mediaCounts.images || t.media === "images", g = Qk(c, d, "[data-follow-filter][aria-pressed=\"true\"]", t.status), _ = Qk(u, f, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${h}`);
(0, R.useEffect)(() => {
o.wireDrag(p.current), o.wireDrag(m.current), o.wireScroller(m.current);
}, [o]);
let v = [...e.providers], y = v.length + e.tagRows.length > 0, b = t.media === "images";
- return /* @__PURE__ */ (0, z.jsx)(pk, {
+ return /* @__PURE__ */ (0, z.jsx)(Gk, {
label: "筛选与排序",
topLabel: h ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -39273,7 +39273,7 @@ function xde({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: l(i) }
}, e);
})
- }), /* @__PURE__ */ (0, z.jsx)(JM, {})] }) : null, /* @__PURE__ */ (0, z.jsxs)("div", {
+ }), /* @__PURE__ */ (0, z.jsx)(ON, {})] }) : null, /* @__PURE__ */ (0, z.jsxs)("div", {
ref: p,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
@@ -39282,7 +39282,7 @@ function xde({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"aria-label": "状态",
"data-entity-states": "",
onPointerLeave: g.leave,
- children: [Gue.map(([e, n]) => /* @__PURE__ */ (0, z.jsx)("button", {
+ children: [FM.map(([e, n]) => /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"data-entity-state": e,
"data-follow-filter": e,
@@ -39293,7 +39293,7 @@ function xde({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
t.status !== e && a({ status: e });
},
children: n
- }, e)), y ? /* @__PURE__ */ (0, z.jsx)(JM, {}) : null]
+ }, e)), y ? /* @__PURE__ */ (0, z.jsx)(ON, {}) : null]
}), /* @__PURE__ */ (0, z.jsxs)("div", {
ref: m,
"data-entity-tags": "",
@@ -39306,13 +39306,13 @@ function xde({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
title: n,
"aria-label": `来源:${n}`,
onClick: () => a({ provider: e.provider === t ? "" : t }),
- dangerouslySetInnerHTML: { __html: IM(t) }
+ dangerouslySetInnerHTML: { __html: mN(t) }
}, t)),
- v.length && e.tagRows.length ? /* @__PURE__ */ (0, z.jsx)(JM, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, z.jsxs)(mk, {
+ v.length && e.tagRows.length ? /* @__PURE__ */ (0, z.jsx)(ON, {}) : null,
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, z.jsxs)(Kk, {
"data-follow-tag": n,
"data-entity-press": "",
- "data-tag-cat": `r34-${nde(e.groups, n)}`,
+ "data-tag-cat": `r34-${cN(e.groups, n)}`,
pressed: t.tags.includes(n),
onPress: () => a({ tags: t.tags.includes(n) ? t.tags.filter((e) => e !== n) : [...t.tags, n] }),
children: [o.tagLabel(n), r ? /* @__PURE__ */ (0, z.jsx)("span", {
@@ -39330,11 +39330,11 @@ function xde({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
}), /* @__PURE__ */ (0, z.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, z.jsx)(Ak, { onPress: s.shuffle }),
- b ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(kk, {
+ /* @__PURE__ */ (0, z.jsx)(cA, { onPress: s.shuffle }),
+ b ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(sA, {
label: "图片布局",
value: i.photoLayout,
- options: hde,
+ options: Fue,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
@@ -39351,7 +39351,7 @@ function xde({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: l("captions-off") }
})]
})] }) : null,
- Kue.map(([e, n]) => {
+ IM.map(([e, n]) => {
let r = t.sort === e, i = wo(t.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
@@ -39359,9 +39359,9 @@ function xde({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"data-follow-sort": e,
"data-entity-press": "",
"aria-pressed": r,
- "aria-label": $ue(e, n, t.sort, t.dir) || void 0,
+ "aria-label": iN(e, n, t.sort, t.dir) || void 0,
onClick: () => {
- let n = MM(e, t.sort, t.dir);
+ let n = rN(e, t.sort, t.dir);
n && a(n);
},
children: [n, r ? /* @__PURE__ */ (0, z.jsx)(i, { className: "size-3.5" }) : null]
@@ -39371,7 +39371,7 @@ function xde({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
})] })
});
}
-function Sde({ conditions: e, onDrop: t, onClear: n }) {
+function Hue({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -39396,7 +39396,7 @@ function Sde({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function Cde({ count: e, onManage: t }) {
+function Uue({ count: e, onManage: t }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-follow-broken": "",
onClick: (e) => {
@@ -39405,12 +39405,12 @@ function Cde({ count: e, onManage: t }) {
dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${l("alert")}<span>${e} 个来源上次检查失败,去<button type="button" class="flink" data-follow-manage>管理关注</button>看原因。</span></div>` }
});
}
-function wde({ pending: e, facets: t, data: n, context: r, props: i }) {
+function Wue({ pending: e, facets: t, data: n, context: r, props: i }) {
let { view: a, helpers: o } = i, s = a.media === "images", c = to(e, () => o.listSkeletonHtml(a.media));
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-follow-list-body": "",
"data-grid-reveal": c.fading ? "" : void 0,
- children: [c.layer, e ? null : /* @__PURE__ */ (0, z.jsx)(Tde, {
+ children: [c.layer, e ? null : /* @__PURE__ */ (0, z.jsx)(Gue, {
facets: t,
data: n,
context: r,
@@ -39419,39 +39419,39 @@ function wde({ pending: e, facets: t, data: n, context: r, props: i }) {
})]
});
}
-function Tde({ facets: e, data: t, context: n, props: r, images: i }) {
- let { view: a, helpers: o, actions: s } = r, c = Ode(r), l = i ? {
+function Gue({ facets: e, data: t, context: n, props: r, images: i }) {
+ let { view: a, helpers: o, actions: s } = r, c = Jue(r), l = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
} : {}, u;
return u = e.visible.length ? e.visible.map((t) => {
let i = e.byId.get(t.primary?.source_id), l = i?.author_key && e.authorSources.get(i.author_key) || [], u = t.primary.id;
- return /* @__PURE__ */ (0, z.jsx)(dde, {
+ return /* @__PURE__ */ (0, z.jsx)(jue, {
group: t,
authorSources: l,
media: a.media,
context: n,
- selected: r.selected.has(YM(t, a)),
+ selected: r.selected.has(kN(t, a)),
selectMode: r.selectMode,
- busy: c.busy.get(YM(t, a)) || "",
- failure: c.failures.get(YM(t, a)) || "",
+ busy: c.busy.get(kN(t, a)) || "",
+ failure: c.failures.get(kN(t, a)) || "",
helpers: o,
actions: s,
onStatus: c.status,
onSave: c.save
}, `${u}:${a.media}`);
- }) : /* @__PURE__ */ (0, z.jsx)(Ede, { data: t }), /* @__PURE__ */ (0, z.jsx)("div", {
+ }) : /* @__PURE__ */ (0, z.jsx)(Kue, { data: t }), /* @__PURE__ */ (0, z.jsx)("div", {
"data-follow-list": "",
"data-follow-wall": i ? "" : void 0,
...l,
children: u
});
}
-function YM(e, t) {
- return kM(e, t.media).id;
+function kN(e, t) {
+ return QM(e, t.media).id;
}
-function Ede({ data: e }) {
+function Kue({ data: e }) {
let t = (e.groups || []).length ? C("search-x", "当前筛选下没有更新", "切换媒体类型、创作者、来源或标签后再试。") : (e.sources || []).length ? C("rss", "没有符合条件的更新", "切换状态或来源筛选后再试。") : C("rss", "还没有关注任何来源", "添加创作者或订阅来源后,更新会集中显示在这里。", { actions: "<a class=\"geist-button primary\" href=\"/follow-manage?tab=add\">添加关注</a>" });
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-follow-empty": "",
@@ -39459,22 +39459,22 @@ function Ede({ data: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-var Dde = {
+var que = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
-function Ode(e) {
- let { view: t, revision: n, actions: r } = e, [i, a] = (0, R.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, R.useState)(() => /* @__PURE__ */ new Map()), c = bM(t, n).queryKey, l = (e, t, n) => n((n) => {
+function Jue(e) {
+ let { view: t, revision: n, actions: r } = e, [i, a] = (0, R.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, R.useState)(() => /* @__PURE__ */ new Map()), c = zM(t, n).queryKey, l = (e, t, n) => n((n) => {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
}), u = (e, n) => {
- J.setQueryData(c, (r) => r && NM(r, t, e, n));
+ J.setQueryData(c, (r) => r && aN(r, t, e, n));
}, d = () => void J.invalidateQueries({
queryKey: c,
exact: !0
}), f = (e) => {
- let t = CM(J.getQueryData(c));
+ let t = UM(J.getQueryData(c));
for (let n of t?.groups || []) for (let t of [
n.primary,
...n.variants,
@@ -39482,13 +39482,13 @@ function Ode(e) {
]) if (t.id === e) return t.status;
return "new";
}, p = Qn({
- mutationFn: ({ id: e, to: t }) => G(Fj, {
+ mutationFn: ({ id: e, to: t }) => G(qj, {
item: e,
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(Dde[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
- await G(Fj, {
+ u(t, n), d(), r.toast(que[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ await G(qj, {
item: t,
to: i
}), u(t, i), d();
@@ -39533,8 +39533,8 @@ function Ode(e) {
}
//#endregion
//#region src/react/follow-manage/source-view.tsx
-function XM({ provider: e, label: t }) {
- let n = gM(e), [r, i] = (0, R.useState)(!1);
+function AN({ provider: e, label: t }) {
+ let n = MM(e), [r, i] = (0, R.useState)(!1);
return !n || r ? t ? /* @__PURE__ */ (0, z.jsx)(z.Fragment, { children: t }) : null : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("img", {
src: n,
alt: "",
@@ -39545,8 +39545,8 @@ function XM({ provider: e, label: t }) {
className: "size-3.5 shrink-0 rounded-sm object-contain"
}), t ? /* @__PURE__ */ (0, z.jsx)(Mh, { children: t }) : null] });
}
-function ZM({ group: e, name: t }) {
- let { src: n, fallback: r } = Zj(e), [i, a] = (0, R.useState)(0), o = [n, r].filter(Boolean)[i];
+function jN({ group: e, name: t }) {
+ let { src: n, fallback: r } = lM(e), [i, a] = (0, R.useState)(0), o = [n, r].filter(Boolean)[i];
return o ? /* @__PURE__ */ (0, z.jsx)("img", {
src: o,
alt: "",
@@ -39559,18 +39559,18 @@ function ZM({ group: e, name: t }) {
}) : /* @__PURE__ */ (0, z.jsx)("span", {
title: "没有可用头像",
className: "inline-grid size-8 shrink-0 place-items-center rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary",
- children: Xj(t)
+ children: cM(t)
});
}
-function QM({ source: e }) {
- let t = Wj(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
+function MN({ source: e }) {
+ let t = nM(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
return /* @__PURE__ */ (0, z.jsx)(Li, {
variant: "caption",
color: t,
- children: wue(e)
+ children: fue(e)
});
}
-function $M({ source: e }) {
+function NN({ source: e }) {
return /* @__PURE__ */ (0, z.jsx)("a", {
href: e.url,
target: "_blank",
@@ -39582,11 +39582,11 @@ function $M({ source: e }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var eN = Pi(aO, oO, "text-body-2-medium"), kde = "粘贴来源链接,或输入创作者名、id…", Ade = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", jde = "识别中…", Mde = "站内没有查到来源", tN = (e, t) => `${e}:${t.url}`;
-function Nde({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
+var PN = Pi(OO, kO, "text-body-2-medium"), Yue = "粘贴来源链接,或输入创作者名、id…", Xue = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Zue = "识别中…", Que = "站内没有查到来源", FN = (e, t) => `${e}:${t.url}`;
+function $ue({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
return (0, R.useEffect)(() => {
t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });
- }, [t, r]), /* @__PURE__ */ (0, z.jsxs)(Ty, {
+ }, [t, r]), /* @__PURE__ */ (0, z.jsxs)(Ly, {
ref: t,
triggerRef: e,
isOpen: !0,
@@ -39598,7 +39598,7 @@ function Nde({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
placement: "bottom start",
offset: 4,
"aria-label": "来源建议",
- className: Pi(iO, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
+ className: Pi(TO, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
children: [i && !n.length ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "px-2 py-1.5",
children: /* @__PURE__ */ (0, z.jsx)(Qi, { label: "正在查找建议" })
@@ -39608,7 +39608,7 @@ function Nde({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
}), /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
"aria-current": t === r ? "true" : void 0,
- className: t === r ? Pi(eN, "bg-background-secondary-default") : eN,
+ className: t === r ? Pi(PN, "bg-background-secondary-default") : PN,
onMouseDown: (e) => e.preventDefault(),
onClick: () => a(e.value),
children: [
@@ -39628,7 +39628,7 @@ function Nde({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
})] }, `${e.group}-${e.value}`))]
});
}
-function Pde({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
+function ede({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
let i = (0, R.useRef)(null), [a, o] = (0, R.useState)(!1), s = (e.providers || []).filter((e) => e.followable), c = s.filter((e) => !t.has(e.provider_label)).length, l = c === s.length ? "全部来源" : `${c}/${s.length} 个来源`, u = (e, r) => {
let i = new Set(t);
r ? i.delete(e) : i.add(e), n(i);
@@ -39642,14 +39642,14 @@ function Pde({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
"aria-label": l,
onClick: () => o(!0),
children: l
- }), /* @__PURE__ */ (0, z.jsx)(Ty, {
+ }), /* @__PURE__ */ (0, z.jsx)(Ly, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom end",
offset: 4,
- className: iO,
- children: /* @__PURE__ */ (0, z.jsxs)(yb, {
+ className: TO,
+ children: /* @__PURE__ */ (0, z.jsxs)(jb, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
children: [s.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
@@ -39665,16 +39665,16 @@ function Pde({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
onClick: () => n(new Set(s.map((e) => e.provider_label))),
children: "全不选"
})]
- }) : /* @__PURE__ */ (0, z.jsx)(CO, { children: "暂无可用来源" }), s.map((e) => {
+ }) : /* @__PURE__ */ (0, z.jsx)(rk, { children: "暂无可用来源" }), s.map((e) => {
let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(VO, {
+ children: [/* @__PURE__ */ (0, z.jsx)(xk, {
isSelected: !t.has(e.provider_label),
onChange: (t) => u(e.provider_label, t),
children: /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, z.jsx)(XM, { provider: e.provider }), e.provider_label]
+ children: [/* @__PURE__ */ (0, z.jsx)(AN, { provider: e.provider }), e.provider_label]
})
}), n ? /* @__PURE__ */ (0, z.jsx)(H, {
variant: "ghost",
@@ -39690,7 +39690,7 @@ function Pde({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
})
})] });
}
-function Fde({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
+function tde({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
if (e.kind === "error") return /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: e.line,
@@ -39709,15 +39709,15 @@ function Fde({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
children: e.line
}),
a.length ? a.map((e) => {
- let n = tN(t, e);
- return /* @__PURE__ */ (0, z.jsx)(VO, {
+ let n = FN(t, e);
+ return /* @__PURE__ */ (0, z.jsx)(xk, {
isSelected: !e.known && !r.has(n),
isDisabled: e.known,
onChange: (e) => i(n, e),
children: /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-1.5",
children: [
- /* @__PURE__ */ (0, z.jsx)(XM, { provider: e.provider }),
+ /* @__PURE__ */ (0, z.jsx)(AN, { provider: e.provider }),
/* @__PURE__ */ (0, z.jsx)("b", {
className: "text-body-medium",
children: e.provider_label
@@ -39733,22 +39733,22 @@ function Fde({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
})
}, n);
- }) : /* @__PURE__ */ (0, z.jsx)(CO, { children: Mde }),
+ }) : /* @__PURE__ */ (0, z.jsx)(rk, { children: Que }),
(e.external_searches || []).map((e) => /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, z.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.evidence
- }), /* @__PURE__ */ (0, z.jsx)(EO, {
+ }), /* @__PURE__ */ (0, z.jsx)(ok, {
href: e.url,
children: `${e.label}:${e.query}`
})]
}, e.url)),
- o.length ? /* @__PURE__ */ (0, z.jsx)(CO, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
+ o.length ? /* @__PURE__ */ (0, z.jsx)(rk, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
]
});
}
-function Ide({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
+function nde({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
let [a, o] = (0, R.useState)(""), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(!1), [p, m] = (0, R.useState)(null), [h, g] = (0, R.useState)(-1), _ = (0, R.useRef)(null), v = (0, R.useRef)(null), [y, b] = (0, R.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, R.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, R.useState)(""), [T, E] = (0, R.useState)(0);
(0, R.useEffect)(() => {
let e = a.trim();
@@ -39760,18 +39760,18 @@ function Ide({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
return () => clearTimeout(t);
}, [a]);
let D = Zn({
- queryKey: vue(l),
- queryFn: ({ signal: e }) => Aue(l, e),
+ queryKey: oue(l),
+ queryFn: ({ signal: e }) => vue(l, e),
enabled: l.length > 0 && d
}), O = (0, R.useMemo)(() => (D.data?.groups || []).flatMap((e) => e.items.map((t) => ({
value: t.value,
matched: t.matched || "",
n: t.n || 0,
group: e.label
- }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = LO({
- queryKey: _ue,
- queryFn: ({ signal: e }) => kue(e),
- start: (e) => jue([e]),
+ }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = _k({
+ queryKey: aue,
+ queryFn: ({ signal: e }) => _ue(e),
+ start: (e) => yue([e]),
onStarted: () => S(/* @__PURE__ */ new Set()),
onError: (e) => w(U(e)),
onFinish: (e) => {
@@ -39805,14 +39805,14 @@ function Ide({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
}, ne = j?.results || [], re = ne.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !y.has(e.provider_label || "")).map((e) => ({
candidate: e,
- key: tN(t, e)
+ key: FN(t, e)
})).filter((e) => !x.has(e.key))), ie = Qn({
mutationFn: async (e) => {
let t = [], n = [];
E(0);
for (let r of e) {
try {
- let e = await Mue(r.candidate);
+ let e = await bue(r.candidate);
n.push(e.source);
} catch (e) {
t.push(`${r.candidate.label}:${U(e)}`);
@@ -39820,7 +39820,7 @@ function Ide({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
E((e) => e + 1);
}
if (n.length) try {
- await iM(n);
+ await gM(n);
} catch (e) {
t.push(U(e));
}
@@ -39830,7 +39830,7 @@ function Ide({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
};
},
onSuccess: (e) => {
- if (mM(), e.failures.length) {
+ if (EM(), e.failures.length) {
w(e.failures.join(";"));
return;
}
@@ -39859,15 +39859,15 @@ function Ide({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
let t = e.relatedTarget;
!e.currentTarget.contains(t) && !v.current?.contains(t) && f(!1);
},
- children: [/* @__PURE__ */ (0, z.jsx)($O, {
+ children: [/* @__PURE__ */ (0, z.jsx)(Nk, {
"aria-label": "来源链接、名字或 id",
- placeholder: kde,
+ placeholder: Yue,
value: a,
leadingIcon: ht,
isDisabled: n,
onChange: o,
onKeyDown: te
- }), F ? /* @__PURE__ */ (0, z.jsx)(Nde, {
+ }), F ? /* @__PURE__ */ (0, z.jsx)($ue, {
field: _,
menu: v,
options: O,
@@ -39877,7 +39877,7 @@ function Ide({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
onClose: I
}) : null]
}),
- /* @__PURE__ */ (0, z.jsx)(Pde, {
+ /* @__PURE__ */ (0, z.jsx)(ede, {
credentials: t,
hidden: y,
onHidden: b,
@@ -39895,9 +39895,9 @@ function Ide({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
/* @__PURE__ */ (0, z.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
- children: [A || M.isPending ? /* @__PURE__ */ (0, z.jsx)(gO, {
+ children: [A || M.isPending ? /* @__PURE__ */ (0, z.jsx)(YO, {
embedded: !0,
- label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : oe ? Ade : jde),
+ label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : oe ? Xue : Zue),
value: k?.checked,
total: k?.total
}) : null, C ? /* @__PURE__ */ (0, z.jsx)(K, {
@@ -39909,8 +39909,8 @@ function Ide({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
ne.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(TO, { children: "查找结果" }),
- ne.map((e, t) => /* @__PURE__ */ (0, z.jsx)(Fde, {
+ /* @__PURE__ */ (0, z.jsx)(ak, { children: "查找结果" }),
+ ne.map((e, t) => /* @__PURE__ */ (0, z.jsx)(tde, {
row: e,
at: t,
hidden: y,
@@ -39965,16 +39965,16 @@ function Ide({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
//#endregion
//#region src/react/follow-manage/alias-manager.tsx
-var Lde = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, nN = (e) => e.alias;
-function Rde(e, t, n) {
+var rde = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, IN = (e) => e.alias;
+function ide(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 rN({ sources: e, name: t, canonicalKey: n }) {
+function LN({ sources: e, name: t, canonicalKey: n }) {
return /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(ZM, {
- group: Rde(e, t, n),
+ children: [/* @__PURE__ */ (0, z.jsx)(jN, {
+ group: ide(e, t, n),
name: t
}), /* @__PURE__ */ (0, z.jsx)("b", {
className: "text-body-medium",
@@ -39982,15 +39982,15 @@ function rN({ sources: e, name: t, canonicalKey: n }) {
})]
});
}
-function zde({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
+function ade({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
let [a, o] = (0, R.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), p = Qn({
mutationFn: async (e) => {
let t = 0;
for (let n of e) {
try {
- await sM(n.canonical, n.alias);
+ await yM(n.canonical, n.alias);
} catch (n) {
- throw t && mM(), Error(`${U(n)}(还有 ${e.length - t} 组没有合并)`);
+ throw t && EM(), Error(`${U(n)}(还有 ${e.length - t} 组没有合并)`);
}
t += 1;
}
@@ -40000,19 +40000,19 @@ function zde({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
};
},
onSuccess: (e) => {
- c(""), o(/* @__PURE__ */ new Set()), mM(), i(`已合并 ${e.done} 组创作者别名`);
+ c(""), o(/* @__PURE__ */ new Set()), EM(), i(`已合并 ${e.done} 组创作者别名`);
},
onError: (e) => c(U(e))
}), m = Qn({
- mutationFn: (e) => sM(e.canonical, e.alias),
+ mutationFn: (e) => yM(e.canonical, e.alias),
onSuccess: () => {
- c(""), u(""), f(""), mM(), i("已保存创作者别名");
+ c(""), u(""), f(""), EM(), i("已保存创作者别名");
},
onError: (e) => c(U(e))
}), h = Qn({
- mutationFn: (e) => Nue(e),
+ mutationFn: (e) => xue(e),
onSuccess: () => {
- c(""), mM(), i("已移除创作者别名");
+ c(""), EM(), i("已移除创作者别名");
},
onError: (e) => c(U(e))
}), g = (e, t) => {
@@ -40022,7 +40022,7 @@ function zde({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
confirmLabel: t ? "合并全部别名" : "合并所选别名",
onConfirm: () => p.mutateAsync(e)
});
- }, _ = t.filter((e) => a.has(nN(e))), v = t.length > 0 && _.length === t.length, y = q(p.isPending);
+ }, _ = t.filter((e) => a.has(IN(e))), v = t.length > 0 && _.length === t.length, y = q(p.isPending);
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: Yi({
padding: "none",
@@ -40035,10 +40035,10 @@ function zde({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}),
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(TO, { children: "手动添加别名" }), /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, z.jsx)(ak, { children: "手动添加别名" }), /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)($O, {
+ /* @__PURE__ */ (0, z.jsx)(Nk, {
"aria-label": "规范创作者名",
placeholder: "规范创作者名",
value: l,
@@ -40046,7 +40046,7 @@ function zde({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, z.jsx)($O, {
+ /* @__PURE__ */ (0, z.jsx)(Nk, {
"aria-label": "平台别名",
placeholder: "平台别名",
value: d,
@@ -40067,13 +40067,13 @@ function zde({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
]
})]
}),
- s ? /* @__PURE__ */ (0, z.jsx)(wO, { children: s }) : null,
+ s ? /* @__PURE__ */ (0, z.jsx)(ik, { children: s }) : null,
t.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(TO, { children: "待合并" }),
+ /* @__PURE__ */ (0, z.jsx)(ak, { children: "待合并" }),
/* @__PURE__ */ (0, z.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${t.length} 组`
@@ -40095,44 +40095,44 @@ function zde({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: `全部合并(${t.length})`
})
]
- }), /* @__PURE__ */ (0, z.jsx)(WO, { children: /* @__PURE__ */ (0, z.jsxs)(HO, {
+ }), /* @__PURE__ */ (0, z.jsx)(wk, { children: /* @__PURE__ */ (0, z.jsxs)(Sk, {
"aria-label": "待合并创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, z.jsxs)(bS, { children: [
- /* @__PURE__ */ (0, z.jsx)(xS, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(MS, { children: [
+ /* @__PURE__ */ (0, z.jsx)(NS, {
id: "select",
- children: /* @__PURE__ */ (0, z.jsx)(VO, {
+ children: /* @__PURE__ */ (0, z.jsx)(xk, {
slot: null,
isSelected: v,
isIndeterminate: _.length > 0 && !v,
"aria-label": "全选待合并别名",
- onChange: (e) => o(e ? new Set(t.map(nN)) : /* @__PURE__ */ new Set())
+ onChange: (e) => o(e ? new Set(t.map(IN)) : /* @__PURE__ */ new Set())
})
}),
- /* @__PURE__ */ (0, z.jsx)(xS, {
+ /* @__PURE__ */ (0, z.jsx)(NS, {
id: "canonical",
children: "规范创作者"
}),
- /* @__PURE__ */ (0, z.jsx)(xS, {
+ /* @__PURE__ */ (0, z.jsx)(NS, {
id: "alias",
isRowHeader: !0,
children: "平台别名"
}),
- /* @__PURE__ */ (0, z.jsx)(xS, {
+ /* @__PURE__ */ (0, z.jsx)(NS, {
id: "evidence",
children: "依据"
}),
- /* @__PURE__ */ (0, z.jsx)(xS, {
+ /* @__PURE__ */ (0, z.jsx)(NS, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, z.jsx)(CS, { children: t.map((e) => {
- let t = nN(e);
- return /* @__PURE__ */ (0, z.jsxs)(ES, {
+ ] }), /* @__PURE__ */ (0, z.jsx)(FS, { children: t.map((e) => {
+ let t = IN(e);
+ return /* @__PURE__ */ (0, z.jsxs)(RS, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, z.jsx)(OS, { children: /* @__PURE__ */ (0, z.jsx)(VO, {
+ /* @__PURE__ */ (0, z.jsx)(BS, { children: /* @__PURE__ */ (0, z.jsx)(xk, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -40141,16 +40141,16 @@ function zde({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, z.jsx)(OS, { children: /* @__PURE__ */ (0, z.jsx)(rN, {
+ /* @__PURE__ */ (0, z.jsx)(BS, { children: /* @__PURE__ */ (0, z.jsx)(LN, {
sources: n,
name: e.canonical
}) }),
- /* @__PURE__ */ (0, z.jsx)(OS, { children: e.alias }),
- /* @__PURE__ */ (0, z.jsx)(OS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, z.jsx)(BS, { children: e.alias }),
+ /* @__PURE__ */ (0, z.jsx)(BS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: e.evidence
}) }),
- /* @__PURE__ */ (0, z.jsx)(OS, { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, z.jsx)(BS, { children: /* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
size: "small",
disabled: r,
@@ -40167,27 +40167,27 @@ function zde({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(TO, { children: "已保存别名" }), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, z.jsx)(ak, { children: "已保存别名" }), /* @__PURE__ */ (0, z.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
- }), e.length ? /* @__PURE__ */ (0, z.jsx)(WO, { children: /* @__PURE__ */ (0, z.jsxs)(HO, {
+ }), e.length ? /* @__PURE__ */ (0, z.jsx)(wk, { children: /* @__PURE__ */ (0, z.jsxs)(Sk, {
"aria-label": "已保存创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, z.jsxs)(bS, { children: [/* @__PURE__ */ (0, z.jsx)(xS, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(MS, { children: [/* @__PURE__ */ (0, z.jsx)(NS, {
id: "canonical",
isRowHeader: !0,
children: "规范创作者"
- }), /* @__PURE__ */ (0, z.jsx)(xS, {
+ }), /* @__PURE__ */ (0, z.jsx)(NS, {
id: "aliases",
children: "平台别名"
- })] }), /* @__PURE__ */ (0, z.jsx)(CS, { children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)(ES, {
+ })] }), /* @__PURE__ */ (0, z.jsx)(FS, { children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)(RS, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, z.jsx)(OS, { children: /* @__PURE__ */ (0, z.jsx)(rN, {
+ children: [/* @__PURE__ */ (0, z.jsx)(BS, { children: /* @__PURE__ */ (0, z.jsx)(LN, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
- }) }), /* @__PURE__ */ (0, z.jsx)(OS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
+ }) }), /* @__PURE__ */ (0, z.jsx)(BS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
className: "flex flex-wrap items-center gap-1.5",
children: e.aliases.map((e) => /* @__PURE__ */ (0, z.jsxs)("span", {
className: "inline-flex items-center gap-1 rounded-md bg-background-secondary-default px-1.5 py-1 text-caption-1-medium text-text-secondary",
@@ -40201,7 +40201,7 @@ function zde({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
...q(h.isPending),
onClick: () => void b({
title: "移除创作者别名",
- body: Lde(e.name),
+ body: rde(e.name),
confirmLabel: "移除创作者别名",
onConfirm: () => h.mutateAsync(e.name)
})
@@ -40221,12 +40221,12 @@ function zde({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}
//#endregion
//#region src/react/follow-manage/credentials.tsx
-var Bde = "这些账号信息存在哪里", Vde = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", Hde = "将清除这个来源在本机和共享副本中的登录凭据。", Ude = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
-function Wde(e, t) {
+var ode = "这些账号信息存在哪里", sde = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", cde = "将清除这个来源在本机和共享副本中的登录凭据。", lde = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
+function ude(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
-function Gde({ row: e }) {
- if (_M(e)) return /* @__PURE__ */ (0, z.jsx)(Li, {
+function dde({ row: e }) {
+ if (PM(e)) return /* @__PURE__ */ (0, z.jsx)(Li, {
variant: "caption",
color: "lime",
children: "已配置"
@@ -40235,19 +40235,19 @@ function Gde({ row: e }) {
return /* @__PURE__ */ (0, z.jsx)(Li, {
variant: "caption",
color: t,
- children: Wue[e.requirement] || ""
+ children: NM[e.requirement] || ""
});
}
-function Kde({ row: e, readOnly: t, toast: n }) {
- let [r, i] = (0, R.useState)({}), [a, o] = (0, R.useState)(""), s = _M(e), c = Qn({
- mutationFn: (t) => Pue(e.provider, t),
+function fde({ row: e, readOnly: t, toast: n }) {
+ let [r, i] = (0, R.useState)({}), [a, o] = (0, R.useState)(""), s = PM(e), c = Qn({
+ mutationFn: (t) => Sue(e.provider, t),
onSuccess: (e, t) => {
if (e.note) {
o(e.note);
return;
}
o(""), i({}), J.invalidateQueries({
- queryKey: Rj,
+ queryKey: Xj,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");
},
@@ -40263,17 +40263,17 @@ function Kde({ row: e, readOnly: t, toast: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, z.jsxs)(CO, { children: [e.why, e.where ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [" ", /* @__PURE__ */ (0, z.jsx)(EO, {
+ /* @__PURE__ */ (0, z.jsxs)(rk, { children: [e.why, e.where ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [" ", /* @__PURE__ */ (0, z.jsx)(ok, {
href: e.where,
children: "去取"
})] }) : null] }),
- e.howto ? /* @__PURE__ */ (0, z.jsx)(CO, { children: e.howto }) : null,
+ e.howto ? /* @__PURE__ */ (0, z.jsx)(rk, { children: e.howto }) : null,
/* @__PURE__ */ (0, z.jsx)("div", {
className: "flex w-full flex-col gap-3",
- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, z.jsx)($O, {
+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, z.jsx)(Nk, {
type: "password",
label: n,
- placeholder: Wde(e, n),
+ placeholder: ude(e, n),
autoComplete: "off",
spellCheck: "false",
isDisabled: t,
@@ -40301,7 +40301,7 @@ function Kde({ row: e, readOnly: t, toast: n }) {
...q(c.isPending),
onClick: () => void b({
title: "清除来源凭据",
- body: Hde,
+ body: cde,
confirmLabel: "清除来源凭据",
danger: !0,
onConfirm: () => c.mutateAsync({})
@@ -40309,9 +40309,9 @@ function Kde({ row: e, readOnly: t, toast: n }) {
children: "清除"
}) : null]
}),
- a ? /* @__PURE__ */ (0, z.jsx)(wO, { children: a }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, z.jsx)(CO, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
- e.path ? /* @__PURE__ */ (0, z.jsx)(hO, {
+ a ? /* @__PURE__ */ (0, z.jsx)(ik, { children: a }) : null,
+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, z.jsx)(rk, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
+ e.path ? /* @__PURE__ */ (0, z.jsx)(JO, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
@@ -40319,24 +40319,24 @@ function Kde({ row: e, readOnly: t, toast: n }) {
e.world_readable ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "凭据文件权限过宽",
- children: Ude
+ children: lde
}) : null
]
});
}
-function qde({ row: e, readOnly: t, toast: n }) {
+function pde({ row: e, readOnly: t, toast: n }) {
let r = /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
children: [
/* @__PURE__ */ (0, z.jsx)("span", {
className: "inline-flex size-3.5 shrink-0 items-center justify-center",
- children: /* @__PURE__ */ (0, z.jsx)(XM, { provider: e.provider })
+ children: /* @__PURE__ */ (0, z.jsx)(AN, { provider: e.provider })
}),
/* @__PURE__ */ (0, z.jsx)("b", {
className: "text-body-medium text-text-primary",
children: e.provider_label
}),
- /* @__PURE__ */ (0, z.jsx)(Gde, { row: e }),
+ /* @__PURE__ */ (0, z.jsx)(dde, { row: e }),
e.missing.length ? /* @__PURE__ */ (0, z.jsx)(Li, {
variant: "caption",
color: "rose",
@@ -40346,13 +40346,13 @@ function qde({ row: e, readOnly: t, toast: n }) {
});
return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
- children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, z.jsx)(CO, { children: e.why }) : null]
+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, z.jsx)(rk, { children: e.why }) : null]
}) : /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
- children: [r, /* @__PURE__ */ (0, z.jsx)(kO, {
- summary: _M(e) ? "修改凭据" : "填写凭据",
- defaultOpen: e.requirement === "required" && !_M(e),
- children: /* @__PURE__ */ (0, z.jsx)(Kde, {
+ children: [r, /* @__PURE__ */ (0, z.jsx)(lk, {
+ summary: PM(e) ? "修改凭据" : "填写凭据",
+ defaultOpen: e.requirement === "required" && !PM(e),
+ children: /* @__PURE__ */ (0, z.jsx)(fde, {
row: e,
readOnly: t,
toast: n
@@ -40360,8 +40360,8 @@ function qde({ row: e, readOnly: t, toast: n }) {
})]
});
}
-function Jde({ data: e, readOnly: t, toast: n }) {
- let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !_M(e));
+function mde({ data: e, readOnly: t, toast: n }) {
+ let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !PM(e));
return r.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: Yi({
padding: "none",
@@ -40403,7 +40403,7 @@ function Jde({ data: e, readOnly: t, toast: n }) {
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: e.rows.map((e) => /* @__PURE__ */ (0, z.jsx)(qde, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, z.jsx)(pde, {
row: e,
readOnly: t,
toast: n
@@ -40415,13 +40415,13 @@ function Jde({ data: e, readOnly: t, toast: n }) {
children: [
/* @__PURE__ */ (0, z.jsx)("b", {
className: "text-body-medium text-text-primary",
- children: Bde
+ children: ode
}),
/* @__PURE__ */ (0, z.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: Vde
+ children: sde
}),
- /* @__PURE__ */ (0, z.jsx)(hO, {
+ /* @__PURE__ */ (0, z.jsx)(JO, {
path: e.root,
prefix: "凭据文件在 ",
className: "text-body-2-regular text-text-secondary",
@@ -40439,7 +40439,7 @@ function Jde({ data: e, readOnly: t, toast: n }) {
}
//#endregion
//#region node_modules/@tanstack/table-core/build/lib/index.mjs
-function iN() {
+function RN() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -40452,24 +40452,24 @@ function iN() {
group: (e) => e
};
}
-function aN(e, t) {
+function zN(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function oN(e, t) {
+function BN(e, t) {
return (n) => {
t.setState((t) => ({
...t,
- [e]: aN(n, t[e])
+ [e]: zN(n, t[e])
}));
};
}
-function sN(e) {
+function VN(e) {
return e instanceof Function;
}
-function Yde(e) {
+function hde(e) {
return Array.isArray(e) && e.every((e) => typeof e == "number");
}
-function Xde(e, t) {
+function gde(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -40479,7 +40479,7 @@ function Xde(e, t) {
};
return r(e), n;
}
-function cN(e, t, n) {
+function HN(e, t, n) {
let r = [], i;
return (a) => {
let o;
@@ -40501,21 +40501,21 @@ function cN(e, t, n) {
return i;
};
}
-function lN(e, t, n, r) {
+function UN(e, t, n, r) {
return {
debug: () => e?.debugAll ?? e[t],
key: !1,
onChange: r
};
}
-function Zde(e, t, n, r) {
+function _de(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: cN(() => [
+ getContext: HN(() => [
e,
n,
t,
@@ -40527,13 +40527,13 @@ function Zde(e, t, n, r) {
cell: r,
getValue: r.getValue,
renderValue: r.renderValue
- }), lN(e.options, "debugCells", "cell.getContext"))
+ }), UN(e.options, "debugCells", "cell.getContext"))
};
return e._features.forEach((r) => {
r.createCell == null || r.createCell(i, n, t, e);
}, {}), i;
}
-function Qde(e, t, n, r) {
+function vde(e, t, n, r) {
let i = {
...e._getDefaultColumnDef(),
...t
@@ -40550,17 +40550,17 @@ function Qde(e, t, n, r) {
depth: n,
columnDef: i,
columns: [],
- getFlatColumns: cN(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], lN(e.options, "debugColumns", "column.getFlatColumns")),
- getLeafColumns: cN(() => [e._getOrderColumnsFn()], (e) => {
+ getFlatColumns: HN(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], UN(e.options, "debugColumns", "column.getFlatColumns")),
+ getLeafColumns: HN(() => [e._getOrderColumnsFn()], (e) => {
var t;
return (t = c.columns) != null && t.length ? e(c.columns.flatMap((e) => e.getLeafColumns())) : [c];
- }, lN(e.options, "debugColumns", "column.getLeafColumns"))
+ }, UN(e.options, "debugColumns", "column.getLeafColumns"))
};
for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
return c;
}
-var uN = "debugHeaders";
-function dN(e, t, n) {
+var WN = "debugHeaders";
+function GN(e, t, n) {
let r = {
id: n.id ?? t.id,
column: t,
@@ -40588,42 +40588,42 @@ function dN(e, t, n) {
t.createHeader == null || t.createHeader(r, e);
}), r;
}
-var $de = { createTable: (e) => {
- e.getHeaderGroups = cN(() => [
+var yde = { createTable: (e) => {
+ e.getHeaderGroups = HN(() => [
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 fN(t, [
+ return KN(t, [
...a,
...s,
...o
], e);
- }, lN(e.options, uN, "getHeaderGroups")), e.getCenterHeaderGroups = cN(() => [
+ }, UN(e.options, WN, "getHeaderGroups")), e.getCenterHeaderGroups = HN(() => [
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))), fN(t, n, e, "center")), lN(e.options, uN, "getCenterHeaderGroups")), e.getLeftHeaderGroups = cN(() => [
+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), KN(t, n, e, "center")), UN(e.options, WN, "getCenterHeaderGroups")), e.getLeftHeaderGroups = HN(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left
- ], (t, n, r) => fN(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), lN(e.options, uN, "getLeftHeaderGroups")), e.getRightHeaderGroups = cN(() => [
+ ], (t, n, r) => KN(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), UN(e.options, WN, "getLeftHeaderGroups")), e.getRightHeaderGroups = HN(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.right
- ], (t, n, r) => fN(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), lN(e.options, uN, "getRightHeaderGroups")), e.getFooterGroups = cN(() => [e.getHeaderGroups()], (e) => [...e].reverse(), lN(e.options, uN, "getFooterGroups")), e.getLeftFooterGroups = cN(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), lN(e.options, uN, "getLeftFooterGroups")), e.getCenterFooterGroups = cN(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), lN(e.options, uN, "getCenterFooterGroups")), e.getRightFooterGroups = cN(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), lN(e.options, uN, "getRightFooterGroups")), e.getFlatHeaders = cN(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), lN(e.options, uN, "getFlatHeaders")), e.getLeftFlatHeaders = cN(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), lN(e.options, uN, "getLeftFlatHeaders")), e.getCenterFlatHeaders = cN(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), lN(e.options, uN, "getCenterFlatHeaders")), e.getRightFlatHeaders = cN(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), lN(e.options, uN, "getRightFlatHeaders")), e.getCenterLeafHeaders = cN(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
+ ], (t, n, r) => KN(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), UN(e.options, WN, "getRightHeaderGroups")), e.getFooterGroups = HN(() => [e.getHeaderGroups()], (e) => [...e].reverse(), UN(e.options, WN, "getFooterGroups")), e.getLeftFooterGroups = HN(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), UN(e.options, WN, "getLeftFooterGroups")), e.getCenterFooterGroups = HN(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), UN(e.options, WN, "getCenterFooterGroups")), e.getRightFooterGroups = HN(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), UN(e.options, WN, "getRightFooterGroups")), e.getFlatHeaders = HN(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), UN(e.options, WN, "getFlatHeaders")), e.getLeftFlatHeaders = HN(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), UN(e.options, WN, "getLeftFlatHeaders")), e.getCenterFlatHeaders = HN(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), UN(e.options, WN, "getCenterFlatHeaders")), e.getRightFlatHeaders = HN(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), UN(e.options, WN, "getRightFlatHeaders")), e.getCenterLeafHeaders = HN(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), lN(e.options, uN, "getCenterLeafHeaders")), e.getLeftLeafHeaders = cN(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
+ }), UN(e.options, WN, "getCenterLeafHeaders")), e.getLeftLeafHeaders = HN(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), lN(e.options, uN, "getLeftLeafHeaders")), e.getRightLeafHeaders = cN(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
+ }), UN(e.options, WN, "getLeftLeafHeaders")), e.getRightLeafHeaders = HN(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), lN(e.options, uN, "getRightLeafHeaders")), e.getLeafHeaders = cN(() => [
+ }), UN(e.options, WN, "getRightLeafHeaders")), e.getLeafHeaders = HN(() => [
e.getLeftHeaderGroups(),
e.getCenterHeaderGroups(),
e.getRightHeaderGroups()
@@ -40631,9 +40631,9 @@ var $de = { createTable: (e) => {
...e[0]?.headers ?? [],
...t[0]?.headers ?? [],
...n[0]?.headers ?? []
- ].map((e) => e.getLeafHeaders()).flat(), lN(e.options, uN, "getLeafHeaders"));
+ ].map((e) => e.getLeafHeaders()).flat(), UN(e.options, WN, "getLeafHeaders"));
} };
-function fN(e, t, n, r) {
+function KN(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;
@@ -40651,7 +40651,7 @@ function fN(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 = dN(n, c, {
+ let i = GN(n, c, {
id: [
r,
t,
@@ -40668,7 +40668,7 @@ function fN(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) => dN(n, e, {
+ s(t.map((e, t) => GN(n, e, {
depth: i,
index: t
})), i - 1), o.reverse();
@@ -40686,7 +40686,7 @@ function fN(e, t, n, r) {
});
return c(o[0]?.headers ?? []), o;
}
-var efe = (e, t, n, r, i, a, o) => {
+var bde = (e, t, n, r, i, a, o) => {
let s = {
id: t,
index: r,
@@ -40707,7 +40707,7 @@ var efe = (e, t, n, r, i, a, o) => {
},
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
subRows: a ?? [],
- getLeafRows: () => Xde(s.subRows, (e) => e.subRows),
+ getLeafRows: () => gde(s.subRows, (e) => e.subRows),
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
getParentRows: () => {
let e = [], t = s;
@@ -40718,95 +40718,95 @@ var efe = (e, t, n, r, i, a, o) => {
}
return e.reverse();
},
- getAllCells: cN(() => [e.getAllLeafColumns()], (t) => t.map((t) => Zde(e, s, t, t.id)), lN(e.options, "debugRows", "getAllCells")),
- _getAllCellsByColumnId: cN(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), lN(e.options, "debugRows", "getAllCellsByColumnId"))
+ getAllCells: HN(() => [e.getAllLeafColumns()], (t) => t.map((t) => _de(e, s, t, t.id)), UN(e.options, "debugRows", "getAllCells")),
+ _getAllCellsByColumnId: HN(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), UN(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;
-}, tfe = { createColumn: (e, t) => {
+}, xde = { 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();
};
-} }, pN = (e, t, n) => {
+} }, qN = (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));
};
-pN.autoRemove = (e) => CN(e);
-var mN = (e, t, n) => {
+qN.autoRemove = (e) => rP(e);
+var JN = (e, t, n) => {
var r;
return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));
};
-mN.autoRemove = (e) => CN(e);
-var hN = (e, t, n) => {
+JN.autoRemove = (e) => rP(e);
+var YN = (e, t, n) => {
var r;
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
};
-hN.autoRemove = (e) => CN(e);
-var gN = (e, t, n) => e.getValue(t)?.includes(n);
-gN.autoRemove = (e) => CN(e);
-var _N = (e, t, n) => !n.some((n) => {
+YN.autoRemove = (e) => rP(e);
+var XN = (e, t, n) => e.getValue(t)?.includes(n);
+XN.autoRemove = (e) => rP(e);
+var ZN = (e, t, n) => !n.some((n) => {
var r;
return !((r = e.getValue(t)) != null && r.includes(n));
});
-_N.autoRemove = (e) => CN(e) || !(e != null && e.length);
-var vN = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
-vN.autoRemove = (e) => CN(e) || !(e != null && e.length);
-var yN = (e, t, n) => e.getValue(t) === n;
-yN.autoRemove = (e) => CN(e);
-var bN = (e, t, n) => e.getValue(t) == n;
-bN.autoRemove = (e) => CN(e);
-var xN = (e, t, n) => {
+ZN.autoRemove = (e) => rP(e) || !(e != null && e.length);
+var QN = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
+QN.autoRemove = (e) => rP(e) || !(e != null && e.length);
+var $N = (e, t, n) => e.getValue(t) === n;
+$N.autoRemove = (e) => rP(e);
+var eP = (e, t, n) => e.getValue(t) == n;
+eP.autoRemove = (e) => rP(e);
+var tP = (e, t, n) => {
let [r, i] = n, a = e.getValue(t);
return a >= r && a <= i;
};
-xN.resolveFilterValue = (e) => {
+tP.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];
-}, xN.autoRemove = (e) => CN(e) || CN(e[0]) && CN(e[1]);
-var SN = {
- includesString: pN,
- includesStringSensitive: mN,
- equalsString: hN,
- arrIncludes: gN,
- arrIncludesAll: _N,
- arrIncludesSome: vN,
- equals: yN,
- weakEquals: bN,
- inNumberRange: xN
+}, tP.autoRemove = (e) => rP(e) || rP(e[0]) && rP(e[1]);
+var nP = {
+ includesString: qN,
+ includesStringSensitive: JN,
+ equalsString: YN,
+ arrIncludes: XN,
+ arrIncludesAll: ZN,
+ arrIncludesSome: QN,
+ equals: $N,
+ weakEquals: eP,
+ inNumberRange: tP
};
-function CN(e) {
+function rP(e) {
return e == null || e === "";
}
-var nfe = {
+var Sde = {
getDefaultColumnDef: () => ({ filterFn: "auto" }),
getInitialState: (e) => ({
columnFilters: [],
...e
}),
getDefaultOptions: (e) => ({
- onColumnFiltersChange: oN("columnFilters", e),
+ onColumnFiltersChange: BN("columnFilters", e),
filterFromLeafRows: !1,
maxLeafRowFilterDepth: 100
}),
createColumn: (e, t) => {
e.getAutoFilterFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- return typeof n == "string" ? SN.includesString : typeof n == "number" ? SN.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? SN.equals : Array.isArray(n) ? SN.arrIncludes : SN.weakEquals;
- }, e.getFilterFn = () => sN(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? SN[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" ? 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 = () => VN(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 = () => {
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 = aN(n, i ? i.value : void 0);
- if (wN(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = zN(n, i ? i.value : void 0);
+ if (iP(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
let o = {
id: e.id,
value: a
@@ -40821,19 +40821,19 @@ var nfe = {
createTable: (e) => {
e.setColumnFilters = (t) => {
let n = e.getAllLeafColumns();
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => aN(t, e)?.filter((e) => {
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => zN(t, e)?.filter((e) => {
let t = n.find((t) => t.id === e.id);
- return !(t && wN(t.getFilterFn(), e.value, t));
+ return !(t && iP(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 wN(e, t, n) {
+function iP(e, t, n) {
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
}
-var TN = {
+var aP = {
sum: (e, t, n) => n.reduce((t, n) => {
let r = n.getValue(e);
return t + (typeof r == "number" ? r : 0);
@@ -40869,7 +40869,7 @@ var TN = {
median: (e, t) => {
if (!t.length) return;
let n = t.map((t) => t.getValue(e));
- if (!Yde(n)) return;
+ if (!hde(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];
@@ -40877,7 +40877,7 @@ var TN = {
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
-}, rfe = {
+}, Cde = {
getDefaultColumnDef: () => ({
aggregatedCell: (e) => {
var t;
@@ -40890,7 +40890,7 @@ var TN = {
...e
}),
getDefaultOptions: (e) => ({
- onGroupingChange: oN("grouping", e),
+ onGroupingChange: BN("grouping", e),
groupedColumnMode: "reorder"
}),
createColumn: (e, t) => {
@@ -40903,11 +40903,11 @@ var TN = {
};
}, e.getAutoAggregationFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- if (typeof n == "number") return TN.sum;
- if (Object.prototype.toString.call(n) === "[object Date]") return TN.extent;
+ if (typeof n == "number") return aP.sum;
+ if (Object.prototype.toString.call(n) === "[object Date]") return aP.extent;
}, e.getAggregationFn = () => {
if (!e) throw Error();
- return sN(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? TN[e.columnDef.aggregationFn];
+ return VN(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? aP[e.columnDef.aggregationFn];
};
},
createTable: (e) => {
@@ -40929,27 +40929,27 @@ var TN = {
};
}
};
-function ife(e, t, n) {
+function wde(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 afe = {
+var Tde = {
getInitialState: (e) => ({
columnOrder: [],
...e
}),
- getDefaultOptions: (e) => ({ onColumnOrderChange: oN("columnOrder", e) }),
+ getDefaultOptions: (e) => ({ onColumnOrderChange: BN("columnOrder", e) }),
createColumn: (e, t) => {
- e.getIndex = cN((e) => [jN(t, e)], (t) => t.findIndex((t) => t.id === e.id), lN(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => jN(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
- let r = jN(t, n);
+ e.getIndex = HN((e) => [dP(t, e)], (t) => t.findIndex((t) => t.id === e.id), UN(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => dP(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
+ let r = dP(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 = cN(() => [
+ }, e._getOrderColumnsFn = HN(() => [
e.getState().columnOrder,
e.getState().grouping,
e.options.groupedColumnMode
@@ -40964,18 +40964,18 @@ var afe = {
}
i = [...i, ...n];
}
- return ife(i, t, n);
- }, lN(e.options, "debugTable", "_getOrderColumnsFn"));
+ return wde(i, t, n);
+ }, UN(e.options, "debugTable", "_getOrderColumnsFn"));
}
-}, EN = () => ({
+}, oP = () => ({
left: [],
right: []
-}), ofe = {
+}), Ede = {
getInitialState: (e) => ({
- columnPinning: EN(),
+ columnPinning: oP(),
...e
}),
- getDefaultOptions: (e) => ({ onColumnPinningChange: oN("columnPinning", e) }),
+ getDefaultOptions: (e) => ({ onColumnPinningChange: BN("columnPinning", e) }),
createColumn: (e, t) => {
e.pin = (n) => {
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
@@ -40999,75 +40999,75 @@ var afe = {
};
},
createRow: (e, t) => {
- e.getCenterVisibleCells = cN(() => [
+ e.getCenterVisibleCells = HN(() => [
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));
- }, lN(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = cN(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ }, UN(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = HN(() => [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"
- })), lN(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = cN(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ })), UN(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = HN(() => [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"
- })), lN(t.options, "debugRows", "getRightVisibleCells"));
+ })), UN(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 ? EN() : e.initialState?.columnPinning ?? EN()), e.getIsSomeColumnsPinned = (t) => {
+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? oP() : e.initialState?.columnPinning ?? oP()), e.getIsSomeColumnsPinned = (t) => {
let n = e.getState().columnPinning;
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
- }, e.getLeftLeafColumns = cN(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), lN(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = cN(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), lN(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = cN(() => [
+ }, e.getLeftLeafColumns = HN(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), UN(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = HN(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), UN(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = HN(() => [
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));
- }, lN(e.options, "debugColumns", "getCenterLeafColumns"));
+ }, UN(e.options, "debugColumns", "getCenterLeafColumns"));
}
};
-function sfe(e) {
+function Dde(e) {
return e || (typeof document < "u" ? document : null);
}
-var DN = {
+var sP = {
size: 150,
minSize: 20,
maxSize: 2 ** 53 - 1
-}, ON = () => ({
+}, cP = () => ({
startOffset: null,
startSize: null,
deltaOffset: null,
deltaPercentage: null,
isResizingColumn: !1,
columnSizingStart: []
-}), cfe = {
- getDefaultColumnDef: () => DN,
+}), Ode = {
+ getDefaultColumnDef: () => sP,
getInitialState: (e) => ({
columnSizing: {},
- columnSizingInfo: ON(),
+ columnSizingInfo: cP(),
...e
}),
getDefaultOptions: (e) => ({
columnResizeMode: "onEnd",
columnResizeDirection: "ltr",
- onColumnSizingChange: oN("columnSizing", e),
- onColumnSizingInfoChange: oN("columnSizingInfo", e)
+ onColumnSizingChange: BN("columnSizing", e),
+ onColumnSizingInfoChange: BN("columnSizingInfo", e)
}),
createColumn: (e, t) => {
e.getSize = () => {
let n = t.getState().columnSizing[e.id];
- return Math.min(Math.max(e.columnDef.minSize ?? DN.minSize, n ?? e.columnDef.size ?? DN.size), e.columnDef.maxSize ?? DN.maxSize);
- }, e.getStart = cN((e) => [
+ return Math.min(Math.max(e.columnDef.minSize ?? sP.minSize, n ?? e.columnDef.size ?? sP.size), e.columnDef.maxSize ?? sP.maxSize);
+ }, e.getStart = HN((e) => [
e,
- jN(t, e),
+ dP(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), lN(t.options, "debugColumns", "getStart")), e.getAfter = cN((e) => [
+ ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), UN(t.options, "debugColumns", "getStart")), e.getAfter = HN((e) => [
e,
- jN(t, e),
+ dP(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), lN(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
+ ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), UN(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
t.setColumnSizing((t) => {
let { [e.id]: n, ...r } = t;
return r;
@@ -41089,8 +41089,8 @@ var DN = {
}, e.getResizeHandler = (n) => {
let r = t.getColumn(e.column.id), i = r?.getCanResize();
return (a) => {
- if (!r || !i || (a.persist == null || a.persist(), AN(a) && a.touches && a.touches.length > 1)) return;
- let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = AN(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
+ if (!r || !i || (a.persist == null || a.persist(), uP(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 = uP(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) => {
@@ -41115,7 +41115,7 @@ var DN = {
deltaPercentage: null,
columnSizingStart: []
}));
- }, p = sfe(n), m = {
+ }, p = Dde(n), m = {
moveHandler: (e) => d(e.clientX),
upHandler: (e) => {
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -41125,8 +41125,8 @@ var DN = {
upHandler: (e) => {
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
}
- }, g = lfe() ? { passive: !1 } : !1;
- AN(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
+ }, g = kde() ? { passive: !1 } : !1;
+ uP(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,
@@ -41142,12 +41142,12 @@ var DN = {
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 ? ON() : e.initialState.columnSizingInfo ?? ON());
+ e.setColumnSizingInfo(t ? cP() : e.initialState.columnSizingInfo ?? cP());
}, 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;
}
-}, kN = null;
-function lfe() {
- if (typeof kN == "boolean") return kN;
+}, lP = null;
+function kde() {
+ if (typeof lP == "boolean") return lP;
let e = !1;
try {
let t = { get passive() {
@@ -41157,17 +41157,17 @@ function lfe() {
} catch {
e = !1;
}
- return kN = e, kN;
+ return lP = e, lP;
}
-function AN(e) {
+function uP(e) {
return e.type === "touchstart";
}
-var ufe = {
+var Ade = {
getInitialState: (e) => ({
columnVisibility: {},
...e
}),
- getDefaultOptions: (e) => ({ onColumnVisibilityChange: oN("columnVisibility", e) }),
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: BN("columnVisibility", e) }),
createColumn: (e, t) => {
e.toggleVisibility = (n) => {
e.getCanHide() && t.setColumnVisibility((t) => ({
@@ -41182,7 +41182,7 @@ var ufe = {
};
},
createRow: (e, t) => {
- e._getAllVisibleCells = cN(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), lN(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = cN(() => [
+ e._getAllVisibleCells = HN(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), UN(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = HN(() => [
e.getLeftVisibleCells(),
e.getCenterVisibleCells(),
e.getRightVisibleCells()
@@ -41190,10 +41190,10 @@ var ufe = {
...e,
...t,
...n
- ], lN(t.options, "debugRows", "getVisibleCells"));
+ ], UN(t.options, "debugRows", "getVisibleCells"));
},
createTable: (e) => {
- let t = (t, n) => cN(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), lN(e.options, "debugColumns", t));
+ let t = (t, n) => HN(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), UN(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) => {
@@ -41206,20 +41206,20 @@ var ufe = {
};
}
};
-function jN(e, t) {
+function dP(e, t) {
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
}
-var dfe = { createTable: (e) => {
+var jde = { 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();
};
-} }, ffe = {
+} }, Mde = {
getInitialState: (e) => ({
globalFilter: void 0,
...e
}),
getDefaultOptions: (e) => ({
- onGlobalFilterChange: oN("globalFilter", e),
+ onGlobalFilterChange: BN("globalFilter", e),
globalFilterFn: "auto",
getColumnCanGlobalFilter: (t) => {
var n;
@@ -41231,22 +41231,22 @@ var dfe = { 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 = () => SN.includesString, e.getGlobalFilterFn = () => {
+ e.getGlobalAutoFilterFn = () => nP.includesString, e.getGlobalFilterFn = () => {
let { globalFilterFn: t } = e.options;
- return sN(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? SN[t];
+ return VN(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? nP[t];
}, e.setGlobalFilter = (t) => {
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
}, e.resetGlobalFilter = (t) => {
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
};
}
-}, pfe = {
+}, Nde = {
getInitialState: (e) => ({
expanded: {},
...e
}),
getDefaultOptions: (e) => ({
- onExpandedChange: oN("expanded", e),
+ onExpandedChange: BN("expanded", e),
paginateExpandedRows: !0
}),
createTable: (e) => {
@@ -41317,18 +41317,18 @@ var dfe = { createTable: (e) => {
};
};
}
-}, MN = 0, NN = 10, PN = () => ({
- pageIndex: MN,
- pageSize: NN
-}), mfe = {
+}, fP = 0, pP = 10, mP = () => ({
+ pageIndex: fP,
+ pageSize: pP
+}), Pde = {
getInitialState: (e) => ({
...e,
pagination: {
- ...PN(),
+ ...mP(),
...e?.pagination
}
}),
- getDefaultOptions: (e) => ({ onPaginationChange: oN("pagination", e) }),
+ getDefaultOptions: (e) => ({ onPaginationChange: BN("pagination", e) }),
createTable: (e) => {
let t = !1, n = !1;
e._autoResetPageIndex = () => {
@@ -41344,11 +41344,11 @@ var dfe = { createTable: (e) => {
e.resetPageIndex(), n = !1;
});
}
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => aN(t, e)), e.resetPagination = (t) => {
- e.setPagination(t ? PN() : e.initialState.pagination ?? PN());
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => zN(t, e)), e.resetPagination = (t) => {
+ e.setPagination(t ? mP() : e.initialState.pagination ?? mP());
}, e.setPageIndex = (t) => {
e.setPagination((n) => {
- let r = aN(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+ let r = zN(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
@@ -41356,13 +41356,13 @@ var dfe = { createTable: (e) => {
});
}, e.resetPageIndex = (t) => {
var n;
- e.setPageIndex(t ? MN : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? MN);
+ e.setPageIndex(t ? fP : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? fP);
}, e.resetPageSize = (t) => {
var n;
- e.setPageSize(t ? NN : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? NN);
+ e.setPageSize(t ? pP : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? pP);
}, e.setPageSize = (t) => {
e.setPagination((e) => {
- let n = Math.max(1, aN(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
+ let n = Math.max(1, zN(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -41370,28 +41370,28 @@ var dfe = { createTable: (e) => {
};
});
}, e.setPageCount = (t) => e.setPagination((n) => {
- let r = aN(t, e.options.pageCount ?? -1);
+ let r = zN(t, e.options.pageCount ?? -1);
return typeof r == "number" && (r = Math.max(-1, r)), {
...n,
pageCount: r
};
- }), e.getPageOptions = cN(() => [e.getPageCount()], (e) => {
+ }), e.getPageOptions = HN(() => [e.getPageCount()], (e) => {
let t = [];
return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t;
- }, lN(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
+ }, UN(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;
}
-}, FN = () => ({
+}, hP = () => ({
top: [],
bottom: []
-}), hfe = {
+}), Fde = {
getInitialState: (e) => ({
- rowPinning: FN(),
+ rowPinning: hP(),
...e
}),
- getDefaultOptions: (e) => ({ onRowPinningChange: oN("rowPinning", e) }),
+ getDefaultOptions: (e) => ({ onRowPinningChange: BN("rowPinning", e) }),
createRow: (e, t) => {
e.pin = (n, r, i) => {
let a = r ? e.getLeafRows().map((e) => {
@@ -41430,7 +41430,7 @@ var dfe = { createTable: (e) => {
};
},
createTable: (e) => {
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? FN() : e.initialState?.rowPinning ?? FN()), e.getIsSomeRowsPinned = (t) => {
+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? hP() : e.initialState?.rowPinning ?? hP()), 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) => {
@@ -41439,22 +41439,22 @@ var dfe = { createTable: (e) => {
}) : (n ?? []).map((e) => t.find((t) => t.id === e))).filter(Boolean).map((e) => ({
...e,
position: r
- })), e.getTopRows = cN(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), lN(e.options, "debugRows", "getTopRows")), e.getBottomRows = cN(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), lN(e.options, "debugRows", "getBottomRows")), e.getCenterRows = cN(() => [
+ })), e.getTopRows = HN(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), UN(e.options, "debugRows", "getTopRows")), e.getBottomRows = HN(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), UN(e.options, "debugRows", "getBottomRows")), e.getCenterRows = HN(() => [
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));
- }, lN(e.options, "debugRows", "getCenterRows"));
+ }, UN(e.options, "debugRows", "getCenterRows"));
}
-}, gfe = {
+}, Ide = {
getInitialState: (e) => ({
rowSelection: {},
...e
}),
getDefaultOptions: (e) => ({
- onRowSelectionChange: oN("rowSelection", e),
+ onRowSelectionChange: BN("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableSubRowSelection: !0
@@ -41473,21 +41473,21 @@ var dfe = { createTable: (e) => {
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
return e.getRowModel().rows.forEach((t) => {
- IN(i, t.id, r, !0, e);
+ gP(i, t.id, r, !0, e);
}), i;
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = cN(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? LN(e, n) : {
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = HN(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? _P(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, lN(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = cN(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? LN(e, n) : {
+ }, UN(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = HN(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? _P(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, lN(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = cN(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? LN(e, n) : {
+ }, UN(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = HN(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? _P(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, lN(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
+ }, UN(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 = () => {
@@ -41511,17 +41511,17 @@ var dfe = { createTable: (e) => {
t.setRowSelection((a) => {
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
let o = { ...a };
- return IN(o, e.id, n, r?.selectChildren ?? !0, t), o;
+ return gP(o, e.id, n, r?.selectChildren ?? !0, t), o;
});
}, e.getIsSelected = () => {
let { rowSelection: n } = t.getState();
- return RN(e, n);
+ return vP(e, n);
}, e.getIsSomeSelected = () => {
let { rowSelection: n } = t.getState();
- return zN(e, n) === "some";
+ return yP(e, n) === "some";
}, e.getIsAllSubRowsSelected = () => {
let { rowSelection: n } = t.getState();
- return zN(e, n) === "all";
+ return yP(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) => {
@@ -41529,16 +41529,16 @@ var dfe = { createTable: (e) => {
};
};
}
-}, IN = (e, t, n, r, i) => {
+}, gP = (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) => IN(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) => gP(e, t.id, n, r, i));
};
-function LN(e, t) {
+function _P(e, t) {
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
return e.map((e) => {
var t;
- let o = RN(e, n);
+ let o = vP(e, n);
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
...e,
subRows: a(e.subRows)
@@ -41551,32 +41551,32 @@ function LN(e, t) {
rowsById: i
};
}
-function RN(e, t) {
+function vP(e, t) {
return t[e.id] ?? !1;
}
-function zN(e, t, n) {
+function yP(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() && (RN(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
- let n = zN(e, t);
+ if (!(a && !i) && (e.getCanSelect() && (vP(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
+ let n = yP(e, t);
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
}
}), i ? "all" : a ? "some" : !1;
}
-var BN = /([0-9]+)/gm, _fe = (e, t, n) => UN(HN(e.getValue(n)).toLowerCase(), HN(t.getValue(n)).toLowerCase()), vfe = (e, t, n) => UN(HN(e.getValue(n)), HN(t.getValue(n))), yfe = (e, t, n) => VN(HN(e.getValue(n)).toLowerCase(), HN(t.getValue(n)).toLowerCase()), bfe = (e, t, n) => VN(HN(e.getValue(n)), HN(t.getValue(n))), xfe = (e, t, n) => {
+var bP = /([0-9]+)/gm, Lde = (e, t, n) => CP(SP(e.getValue(n)).toLowerCase(), SP(t.getValue(n)).toLowerCase()), Rde = (e, t, n) => CP(SP(e.getValue(n)), SP(t.getValue(n))), zde = (e, t, n) => xP(SP(e.getValue(n)).toLowerCase(), SP(t.getValue(n)).toLowerCase()), Bde = (e, t, n) => xP(SP(e.getValue(n)), SP(t.getValue(n))), Vde = (e, t, n) => {
let r = e.getValue(n), i = t.getValue(n);
return r > i ? 1 : r < i ? -1 : 0;
-}, Sfe = (e, t, n) => VN(e.getValue(n), t.getValue(n));
-function VN(e, t) {
+}, Hde = (e, t, n) => xP(e.getValue(n), t.getValue(n));
+function xP(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
-function HN(e) {
+function SP(e) {
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
}
-function UN(e, t) {
- let n = e.split(BN).filter(Boolean), r = t.split(BN).filter(Boolean);
+function CP(e, t) {
+ let n = e.split(bP).filter(Boolean), r = t.split(bP).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])) {
@@ -41590,22 +41590,22 @@ function UN(e, t) {
}
return n.length - r.length;
}
-var WN = {
- alphanumeric: _fe,
- alphanumericCaseSensitive: vfe,
- text: yfe,
- textCaseSensitive: bfe,
- datetime: xfe,
- basic: Sfe
-}, Cfe = [
- $de,
- ufe,
- afe,
- ofe,
- tfe,
- nfe,
- dfe,
- ffe,
+var wP = {
+ alphanumeric: Lde,
+ alphanumericCaseSensitive: Rde,
+ text: zde,
+ textCaseSensitive: Bde,
+ datetime: Vde,
+ basic: Hde
+}, Ude = [
+ yde,
+ Ade,
+ Tde,
+ Ede,
+ xde,
+ Sde,
+ jde,
+ Mde,
{
getInitialState: (e) => ({
sorting: [],
@@ -41616,7 +41616,7 @@ var WN = {
sortUndefined: 1
}),
getDefaultOptions: (e) => ({
- onSortingChange: oN("sorting", e),
+ onSortingChange: BN("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
}),
createColumn: (e, t) => {
@@ -41624,13 +41624,13 @@ var WN = {
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 WN.datetime;
- if (typeof n == "string" && (r = !0, n.split(BN).length > 1)) return WN.alphanumeric;
+ if (Object.prototype.toString.call(n) === "[object Date]") return wP.datetime;
+ if (typeof n == "string" && (r = !0, n.split(bP).length > 1)) return wP.alphanumeric;
}
- return r ? WN.text : WN.basic;
+ return r ? wP.text : wP.basic;
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
if (!e) throw Error();
- return sN(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? WN[e.columnDef.sortingFn];
+ return VN(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? wP[e.columnDef.sortingFn];
}, e.toggleSorting = (n, r) => {
let i = e.getNextSortingOrder(), a = n != null;
t.setSorting((o) => {
@@ -41667,15 +41667,15 @@ var WN = {
}, 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());
}
},
- rfe,
- pfe,
- mfe,
- hfe,
- gfe,
- cfe
+ Cde,
+ Nde,
+ Pde,
+ Fde,
+ Ide,
+ Ode
];
-function wfe(e) {
- let t = [...Cfe, ...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 Wde(e) {
+ let t = [...Ude, ...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 ?? {} };
@@ -41701,7 +41701,7 @@ function wfe(e) {
n.setState(n.initialState);
},
setOptions: (e) => {
- let t = aN(e, n.options);
+ let t = zN(e, n.options);
n.options = i(t);
},
getState: () => n.options.state,
@@ -41716,7 +41716,7 @@ function wfe(e) {
if (!r && (r = n.getCoreRowModel().rowsById[e], !r)) throw Error();
return r;
},
- _getDefaultColumnDef: cN(() => [n.options.defaultColumn], (e) => (e ??= {}, {
+ _getDefaultColumnDef: HN(() => [n.options.defaultColumn], (e) => (e ??= {}, {
header: (e) => {
let t = e.header.column.columnDef;
return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null;
@@ -41727,20 +41727,20 @@ function wfe(e) {
},
...n._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),
...e
- }), lN(e, "debugColumns", "_getDefaultColumnDef")),
+ }), UN(e, "debugColumns", "_getDefaultColumnDef")),
_getColumnDefs: () => n.options.columns,
- getAllColumns: cN(() => [n._getColumnDefs()], (e) => {
+ getAllColumns: HN(() => [n._getColumnDefs()], (e) => {
let t = function(e, r, i) {
return i === void 0 && (i = 0), e.map((e) => {
- let a = Qde(n, e, i, r), o = e;
+ let a = vde(n, e, i, r), o = e;
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
});
};
return t(e);
- }, lN(e, "debugColumns", "getAllColumns")),
- getAllFlatColumns: cN(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), lN(e, "debugColumns", "getAllFlatColumns")),
- _getAllFlatColumnsById: cN(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), lN(e, "debugColumns", "getAllFlatColumnsById")),
- getAllLeafColumns: cN(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), lN(e, "debugColumns", "getAllLeafColumns")),
+ }, UN(e, "debugColumns", "getAllColumns")),
+ getAllFlatColumns: HN(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), UN(e, "debugColumns", "getAllFlatColumns")),
+ _getAllFlatColumnsById: HN(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), UN(e, "debugColumns", "getAllFlatColumnsById")),
+ getAllLeafColumns: HN(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), UN(e, "debugColumns", "getAllLeafColumns")),
getColumn: (e) => n._getAllFlatColumnsById()[e]
};
Object.assign(n, c);
@@ -41750,8 +41750,8 @@ function wfe(e) {
}
return n;
}
-function GN() {
- return (e) => cN(() => [e.options.data], (t) => {
+function TP() {
+ return (e) => HN(() => [e.options.data], (t) => {
let n = {
rows: [],
flatRows: [],
@@ -41760,7 +41760,7 @@ function GN() {
i === void 0 && (i = 0);
let o = [];
for (let c = 0; c < t.length; c++) {
- let l = efe(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
+ let l = bde(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));
@@ -41769,9 +41769,9 @@ function GN() {
return o;
};
return n.rows = r(t), n;
- }, lN(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
+ }, UN(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
}
-function Tfe(e) {
+function Gde(e) {
let t = [], n = (e) => {
var r;
t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);
@@ -41782,8 +41782,8 @@ function Tfe(e) {
rowsById: e.rowsById
};
}
-function KN(e) {
- return (e) => cN(() => [
+function EP(e) {
+ return (e) => HN(() => [
e.getState().pagination,
e.getPrePaginationRowModel(),
e.options.paginateExpandedRows ? void 0 : e.getState().expanded
@@ -41796,7 +41796,7 @@ function KN(e) {
rows: a,
flatRows: o,
rowsById: s
- } : Tfe({
+ } : Gde({
rows: a,
flatRows: o,
rowsById: s
@@ -41805,32 +41805,32 @@ function KN(e) {
u.flatRows.push(e), e.subRows.length && e.subRows.forEach(d);
};
return u.rows.forEach(d), u;
- }, lN(e.options, "debugTable", "getPaginationRowModel"));
+ }, UN(e.options, "debugTable", "getPaginationRowModel"));
}
//#endregion
//#region node_modules/@tanstack/react-table/build/lib/index.mjs
-function qN(e, t) {
- return e ? Efe(e) ? /*#__PURE__*/ R.createElement(e, t) : e : null;
+function DP(e, t) {
+ return e ? Kde(e) ? /*#__PURE__*/ R.createElement(e, t) : e : null;
}
-function Efe(e) {
- return Dfe(e) || typeof e == "function" || Ofe(e);
+function Kde(e) {
+ return qde(e) || typeof e == "function" || Jde(e);
}
-function Dfe(e) {
+function qde(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function Ofe(e) {
+function Jde(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function JN(e) {
+function OP(e) {
let t = {
state: {},
onStateChange: () => {},
renderFallbackValue: null,
...e
- }, [n] = R.useState(() => ({ current: wfe(t) })), [r, i] = R.useState(() => n.current.initialState);
+ }, [n] = R.useState(() => ({ current: Wde(t) })), [r, i] = R.useState(() => n.current.initialState);
return n.current.setOptions((t) => ({
...t,
...e,
@@ -41845,7 +41845,7 @@ function JN(e) {
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var kfe = Fi({
+var Yde = Fi({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -41907,8 +41907,8 @@ var kfe = Fi({
}
}
});
-function Afe({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = kfe[t];
+function Xde({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = Yde[t];
return /* @__PURE__ */ (0, z.jsx)("span", {
"aria-hidden": !0,
className: Pi("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? Pi("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"),
@@ -41918,12 +41918,12 @@ function Afe({ state: e, size: t = "md", shape: n = "pill" }) {
})
});
}
-function YN({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, z.jsx)(dne, {
+function kP({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, z.jsx)($te, {
ref: i,
...a,
className: (t) => Pi("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(Afe, {
+ children: (e) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(Xde, {
state: e,
size: n,
shape: r
@@ -41935,50 +41935,50 @@ function YN({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/components/legacy-avatar.ts
-var XN = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", ZN = (0, R.createContext)({});
+var AP = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", jP = (0, R.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-constant.mjs
-function QN(e) {
+function MP(e) {
let t = (0, R.useRef)(null);
return t.current === null && (t.current = e()), t.current;
}
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
-var $N = typeof window < "u" ? R.useLayoutEffect : R.useEffect, eP = /* @__PURE__ */ (0, R.createContext)(null), tP = (0, R.createContext)({
+var NP = typeof window < "u" ? R.useLayoutEffect : R.useEffect, PP = /* @__PURE__ */ (0, R.createContext)(null), FP = (0, R.createContext)({
transformPagePoint: (e) => e,
isStatic: !1,
reducedMotion: "never"
});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
-function nP(e, t) {
+function IP(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
-function jfe(...e) {
+function Zde(...e) {
return (t) => {
let n = !1, r = e.map((e) => {
- let r = nP(e, t);
+ let r = IP(e, t);
return !n && typeof r == "function" && (n = !0), r;
});
if (n) return () => {
for (let t = 0; t < r.length; t++) {
let n = r[t];
- typeof n == "function" ? n() : nP(e[t], null);
+ typeof n == "function" ? n() : IP(e[t], null);
}
};
};
}
-function rP(...e) {
- return R.useCallback(jfe(...e), e);
+function Qde(...e) {
+ return R.useCallback(Zde(...e), e);
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
-var iP = class extends R.Component {
+var $de = class extends R.Component {
getSnapshotBeforeUpdate(e) {
let t = this.props.childRef.current;
- if (GT(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
- let e = t.offsetParent, n = GT(e) && e.offsetWidth || 0, r = GT(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
+ if (iE(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
+ let e = t.offsetParent, n = iE(e) && e.offsetWidth || 0, r = iE(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction;
}
return null;
@@ -41988,7 +41988,7 @@ var iP = class extends R.Component {
return this.props.children;
}
};
-function aP({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
+function efe({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
let o = (0, R.useId)(), s = (0, R.useRef)(null), c = (0, R.useRef)({
width: 0,
height: 0,
@@ -41997,7 +41997,7 @@ function aP({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
right: 0,
bottom: 0,
direction: "ltr"
- }), { nonce: l } = (0, R.useContext)(tP), u = rP(s, a === !1 ? void 0 : e.props?.ref ?? e?.ref);
+ }), { nonce: l } = (0, R.useContext)(FP), u = Qde(s, a === !1 ? void 0 : e.props?.ref ?? e?.ref);
return (0, R.useInsertionEffect)(() => {
let { width: e, height: u, top: d, left: f, right: p, bottom: m, direction: h } = c.current;
if (t || a === !1 || !s.current || !e || !u) return;
@@ -42017,7 +42017,7 @@ function aP({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
`), () => {
s.current?.removeAttribute("data-motion-pop-id"), b.contains(y) && b.removeChild(y);
};
- }, [t]), (0, z.jsx)(iP, {
+ }, [t]), (0, z.jsx)($de, {
isPresent: t,
childRef: s,
sizeRef: c,
@@ -42027,9 +42027,9 @@ function aP({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
-var oP = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
- let u = QN(sP), d = (0, R.useId)(), f = (0, R.useRef)(n), p = (0, R.useRef)(r);
- $N(() => {
+var tfe = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
+ let u = MP(nfe), d = (0, R.useId)(), f = (0, R.useRef)(n), p = (0, R.useRef)(r);
+ NP(() => {
f.current = n, p.current = r;
});
let m = !0, h = (0, R.useMemo)(() => (m = !1, {
@@ -42054,25 +42054,25 @@ var oP = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i,
u.forEach((e, t) => u.set(t, !1));
}, [n]), R.useEffect(() => {
!n && !u.size && r && r();
- }, [n]), e = (0, z.jsx)(aP, {
+ }, [n]), e = (0, z.jsx)(efe, {
pop: o === "popLayout",
isPresent: n,
anchorX: s,
anchorY: c,
root: l,
children: e
- }), (0, z.jsx)(eP.Provider, {
+ }), (0, z.jsx)(PP.Provider, {
value: h,
children: e
});
};
-function sP() {
+function nfe() {
return /* @__PURE__ */ new Map();
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
-function cP(e = !0) {
- let t = (0, R.useContext)(eP);
+function LP(e = !0) {
+ let t = (0, R.useContext)(PP);
if (t === null) return [!0, null];
let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, R.useId)();
(0, R.useEffect)(() => {
@@ -42085,16 +42085,16 @@ function cP(e = !0) {
]);
return !n && r ? [!1, o] : [!0];
}
-function lP() {
- return uP((0, R.useContext)(eP));
+function rfe() {
+ return ife((0, R.useContext)(PP));
}
-function uP(e) {
+function ife(e) {
return e === null || e.isPresent;
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
-var dP = (e) => e.key || "";
-function fP(e) {
+var RP = (e) => e.key || "";
+function zP(e) {
let t = [];
return R.Children.forEach(e, (e) => {
(0, R.isValidElement)(e) && t.push(e);
@@ -42102,12 +42102,12 @@ function fP(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
-var pP = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
- let [u, d] = cP(o), f = (0, R.useMemo)(() => fP(e), [e]), p = o && !u ? [] : f.map(dP), m = (0, R.useRef)(!0), h = (0, R.useRef)(f), g = QN(() => /* @__PURE__ */ new Map()), _ = (0, R.useRef)(/* @__PURE__ */ new Set()), [v, y] = (0, R.useState)(f), [b, x] = (0, R.useState)(f);
- $N(() => {
+var afe = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
+ let [u, d] = LP(o), f = (0, R.useMemo)(() => zP(e), [e]), p = o && !u ? [] : f.map(RP), m = (0, R.useRef)(!0), h = (0, R.useRef)(f), g = MP(() => /* @__PURE__ */ new Map()), _ = (0, R.useRef)(/* @__PURE__ */ new Set()), [v, y] = (0, R.useState)(f), [b, x] = (0, R.useState)(f);
+ NP(() => {
m.current = !1, h.current = f;
for (let e = 0; e < b.length; e++) {
- let t = dP(b[e]);
+ let t = RP(b[e]);
p.includes(t) ? (g.delete(t), _.current.delete(t)) : g.get(t) !== !0 && g.set(t, !1);
}
}, [
@@ -42119,15 +42119,15 @@ var pP = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
if (f !== v) {
let e = [...f];
for (let t = 0; t < b.length; t++) {
- let n = b[t], r = dP(n);
+ let n = b[t], r = RP(n);
p.includes(r) || (e.splice(t, 0, n), S.push(n));
}
- return a === "wait" && S.length && (e = S), x(fP(e)), y(f), null;
+ return a === "wait" && S.length && (e = S), x(zP(e)), y(f), null;
}
- let { forceRender: C } = (0, R.useContext)(ZN);
+ let { forceRender: C } = (0, R.useContext)(jP);
return (0, z.jsx)(z.Fragment, { children: b.map((e) => {
- let v = dP(e), y = o && !u ? !1 : f === b || p.includes(v);
- return (0, z.jsx)(oP, {
+ let v = RP(e), y = o && !u ? !1 : f === b || p.includes(v);
+ return (0, z.jsx)(tfe, {
isPresent: y,
initial: !m.current || n ? void 0 : !1,
custom: t,
@@ -42148,7 +42148,7 @@ var pP = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
children: e
}, v);
}) });
-}, mP = (0, R.createContext)({ strict: !1 }), hP = {
+}, BP = (0, R.createContext)({ strict: !1 }), VP = {
animation: [
"animate",
"variants",
@@ -42185,98 +42185,98 @@ var pP = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
"onViewportLeave"
],
layout: ["layout", "layoutId"]
-}, gP = !1;
-function _P() {
- if (gP) return;
+}, HP = !1;
+function ofe() {
+ if (HP) return;
let e = {};
- for (let t in hP) e[t] = { isEnabled: (e) => hP[t].some((t) => !!e[t]) };
- kE(e), gP = !0;
+ for (let t in VP) e[t] = { isEnabled: (e) => VP[t].some((t) => !!e[t]) };
+ XE(e), HP = !0;
}
-function vP() {
- return _P(), Iae();
+function UP() {
+ return ofe(), hae();
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/load-features.mjs
-function yP(e) {
- let t = vP();
+function sfe(e) {
+ let t = UP();
for (let n in e) t[n] = {
...t[n],
...e[n]
};
- kE(t);
+ XE(t);
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
-var bP = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
-function xP(e) {
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || bP.has(e);
+var cfe = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
+function WP(e) {
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || cfe.has(e);
}
//#endregion
//#region __vite-optional-peer-dep:@emotion/is-prop-valid:framer-motion
-var SP = /* @__PURE__ */ Ee({ default: () => CP }), CP, wP = we((() => {
- throw CP = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
-})), TP = (e) => !xP(e);
-function EP(e) {
- typeof e == "function" && (TP = (t) => t.startsWith("on") ? !xP(t) : e(t));
+var lfe = /* @__PURE__ */ Ee({ default: () => GP }), GP, ufe = we((() => {
+ throw GP = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
+})), KP = (e) => !WP(e);
+function qP(e) {
+ typeof e == "function" && (KP = (t) => t.startsWith("on") ? !WP(t) : e(t));
}
try {
- EP((wP(), ke(SP)).default);
+ qP((ufe(), ke(lfe)).default);
} catch {}
-function DP(e, t, n) {
+function dfe(e, t, n) {
let r = {};
- for (let i in e) (i !== "values" || typeof e.values != "object") && (ET(e[i]) || (TP(i) || n === !0 && xP(i) || !t && !xP(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]));
+ for (let i in e) (i !== "values" || typeof e.values != "object") && (zT(e[i]) || (KP(i) || n === !0 && WP(i) || !t && !WP(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]));
return r;
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
-function OP({ children: e, isValidProp: t, ...n }) {
- t && EP(t);
- let r = (0, R.useContext)(tP);
+function ffe({ children: e, isValidProp: t, ...n }) {
+ t && qP(t);
+ let r = (0, R.useContext)(FP);
n = {
...r,
...n
- }, n.transition = _T(n.transition, r.transition), n.isStatic = QN(() => n.isStatic);
+ }, n.transition = AT(n.transition, r.transition), n.isStatic = MP(() => n.isStatic);
let i = (0, R.useMemo)(() => n, [
JSON.stringify(n.transition),
n.transformPagePoint,
n.reducedMotion,
n.skipAnimations
]);
- return (0, z.jsx)(tP.Provider, {
+ return (0, z.jsx)(FP.Provider, {
value: i,
children: e
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
-var kP = /* @__PURE__ */ (0, R.createContext)({});
+var JP = /* @__PURE__ */ (0, R.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
-function AP(e, t) {
- if (SE(e)) {
+function pfe(e, t) {
+ if (UE(e)) {
let { initial: t, animate: n } = e;
return {
- initial: t === !1 || yE(t) ? t : void 0,
- animate: yE(n) ? n : void 0
+ initial: t === !1 || BE(t) ? t : void 0,
+ animate: BE(n) ? n : void 0
};
}
return e.inherit === !1 ? {} : t;
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
-function jP(e) {
- let { initial: t, animate: n } = AP(e, (0, R.useContext)(kP));
+function mfe(e) {
+ let { initial: t, animate: n } = pfe(e, (0, R.useContext)(JP));
return (0, R.useMemo)(() => ({
initial: t,
animate: n
- }), [MP(t), MP(n)]);
+ }), [YP(t), YP(n)]);
}
-function MP(e) {
+function YP(e) {
return Array.isArray(e) ? e.join(" ") : e;
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
-var NP = () => ({
+var XP = () => ({
style: {},
transform: {},
transformOrigin: {},
@@ -42284,42 +42284,42 @@ var NP = () => ({
});
//#endregion
//#region node_modules/framer-motion/dist/es/render/html/use-props.mjs
-function PP(e, t, n) {
- for (let r in t) !ET(t[r]) && !eD(r, n) && (e[r] = t[r]);
+function ZP(e, t, n) {
+ for (let r in t) !zT(t[r]) && !xD(r, n) && (e[r] = t[r]);
}
-function FP({ transformTemplate: e }, t) {
+function hfe({ transformTemplate: e }, t) {
return (0, R.useMemo)(() => {
- let n = NP();
- return YE(n, t, e), Object.assign({}, n.vars, n.style);
+ let n = XP();
+ return gD(n, t, e), Object.assign({}, n.vars, n.style);
}, [t]);
}
-function IP(e, t) {
+function gfe(e, t) {
let n = e.style || {}, r = {};
- return PP(r, n, e), Object.assign(r, FP(e, t)), r;
+ return ZP(r, n, e), Object.assign(r, hfe(e, t)), r;
}
-function LP(e, t) {
- let n = {}, r = IP(e, t);
+function _fe(e, t) {
+ let n = {}, r = gfe(e, t);
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
-var RP = () => ({
- ...NP(),
+var QP = () => ({
+ ...XP(),
attrs: {}
});
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/use-props.mjs
-function zP(e, t, n, r) {
+function vfe(e, t, n, r) {
let i = (0, R.useMemo)(() => {
- let n = RP();
- return nD(n, t, iD(r), e.transformTemplate, e.style), {
+ let n = QP();
+ return CD(n, t, TD(r), e.transformTemplate, e.style), {
...n.attrs,
style: { ...n.style }
};
}, [t]);
if (e.style) {
let t = {};
- PP(t, e.style, e), i.style = {
+ ZP(t, e.style, e), i.style = {
...t,
...i.style
};
@@ -42328,7 +42328,7 @@ function zP(e, t, n, r) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
-var BP = [
+var yfe = [
"animate",
"circle",
"defs",
@@ -42357,17 +42357,17 @@ var BP = [
];
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
-function VP(e) {
- return typeof e != "string" || e.includes("-") ? !1 : !!(BP.indexOf(e) > -1 || /[A-Z]/u.test(e));
+function $P(e) {
+ return typeof e != "string" || e.includes("-") ? !1 : !!(yfe.indexOf(e) > -1 || /[A-Z]/u.test(e));
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/use-render.mjs
-function HP(e, t, n, { latestValues: r }, i, a = !1, o) {
- let s = (o ?? VP(e) ? zP : LP)(t, r, i, e), c = DP(t, typeof e == "string", a), l = e === R.Fragment ? {} : {
+function bfe(e, t, n, { latestValues: r }, i, a = !1, o) {
+ let s = (o ?? $P(e) ? vfe : _fe)(t, r, i, e), c = dfe(t, typeof e == "string", a), l = e === R.Fragment ? {} : {
...c,
...s,
ref: n
- }, { children: u } = t, d = (0, R.useMemo)(() => ET(u) ? u.get() : u, [u]);
+ }, { children: u } = t, d = (0, R.useMemo)(() => zT(u) ? u.get() : u, [u]);
return (0, R.createElement)(e, {
...l,
children: d
@@ -42375,24 +42375,24 @@ function HP(e, t, n, { latestValues: r }, i, a = !1, o) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
-function UP({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
+function xfe({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
return {
- latestValues: WP(n, r, i, e),
+ latestValues: Sfe(n, r, i, e),
renderState: t()
};
}
-function WP(e, t, n, r) {
+function Sfe(e, t, n, r) {
let i = {}, a = r(e, {});
- for (let e in a) i[e] = FD(a[e]);
- let { initial: o, animate: s } = e, c = SE(e), l = CE(e);
+ for (let e in a) i[e] = nO(a[e]);
+ let { initial: o, animate: s } = e, c = UE(e), l = WE(e);
t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
let u = n ? n.initial === !1 : !1;
u ||= o === !1;
let d = u ? s : o;
- if (d && typeof d != "boolean" && !vE(d)) {
+ if (d && typeof d != "boolean" && !zE(d)) {
let t = Array.isArray(d) ? d : [d];
for (let n = 0; n < t.length; n++) {
- let r = ST(e, t[n]);
+ let r = FT(e, t[n]);
if (r) {
let { transitionEnd: e, transition: t, ...n } = r;
for (let e in n) {
@@ -42409,19 +42409,19 @@ function WP(e, t, n, r) {
}
return i;
}
-var GP = (e) => (t, n) => {
- let r = (0, R.useContext)(kP), i = (0, R.useContext)(eP), a = () => UP(e, t, r, i);
- return n ? a() : QN(a);
-}, KP = /*@__PURE__*/ GP({
- scrapeMotionValuesFromProps: tD,
- createRenderState: NP
-}), qP = /*@__PURE__*/ GP({
- scrapeMotionValuesFromProps: aD,
- createRenderState: RP
-}), JP = Symbol.for("motionComponentSymbol");
+var eF = (e) => (t, n) => {
+ let r = (0, R.useContext)(JP), i = (0, R.useContext)(PP), a = () => xfe(e, t, r, i);
+ return n ? a() : MP(a);
+}, Cfe = /*@__PURE__*/ eF({
+ scrapeMotionValuesFromProps: SD,
+ createRenderState: XP
+}), wfe = /*@__PURE__*/ eF({
+ scrapeMotionValuesFromProps: ED,
+ createRenderState: QP
+}), Tfe = Symbol.for("motionComponentSymbol");
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
-function YP(e, t, n) {
+function Efe(e, t, n) {
let r = (0, R.useRef)(n);
(0, R.useInsertionEffect)(() => {
r.current = n;
@@ -42440,16 +42440,16 @@ function YP(e, t, n) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
-var XP = (0, R.createContext)({});
+var tF = (0, R.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
-function ZP(e) {
+function nF(e) {
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
-function QP(e, t, n, r, i, a) {
- let { visualElement: o } = (0, R.useContext)(kP), s = (0, R.useContext)(mP), c = (0, R.useContext)(eP), l = (0, R.useContext)(tP), u = l.reducedMotion, d = l.skipAnimations, f = (0, R.useRef)(null), p = (0, R.useRef)(!1);
+function Dfe(e, t, n, r, i, a) {
+ let { visualElement: o } = (0, R.useContext)(JP), s = (0, R.useContext)(BP), c = (0, R.useContext)(PP), l = (0, R.useContext)(FP), u = l.reducedMotion, d = l.skipAnimations, f = (0, R.useRef)(null), p = (0, R.useRef)(!1);
r ||= s.renderer, !f.current && r && (f.current = r(e, {
visualState: t,
parent: o,
@@ -42460,14 +42460,14 @@ function QP(e, t, n, r, i, a) {
skipAnimations: d,
isSVG: a
}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
- let m = f.current, h = (0, R.useContext)(XP);
- m && !m.projection && i && (m.type === "html" || m.type === "svg") && $P(f.current, n, i, h);
+ let m = f.current, h = (0, R.useContext)(tF);
+ m && !m.projection && i && (m.type === "html" || m.type === "svg") && Ofe(f.current, n, i, h);
let g = (0, R.useRef)(!1);
(0, R.useInsertionEffect)(() => {
m && g.current && m.update(n, c);
});
- let _ = n[kT], v = (0, R.useRef)(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
- return $N(() => {
+ let _ = n[HT], v = (0, R.useRef)(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
+ return NP(() => {
p.current = !0, m && (g.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), v.current && m.animationState && m.animationState.animateChanges());
}), (0, R.useEffect)(() => {
m && (!v.current && m.animationState && m.animationState.animateChanges(), v.current &&= (queueMicrotask(() => {
@@ -42475,12 +42475,12 @@ function QP(e, t, n, r, i, a) {
}), !1), m.enteringChildren = void 0);
}), m;
}
-function $P(e, t, n, r) {
+function Ofe(e, t, n, r) {
let { layoutId: i, layout: a, drag: o, dragConstraints: s, layoutScroll: c, layoutRoot: l, layoutAnchor: u, layoutCrossfade: d } = t;
- e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : eF(e.parent)), e.projection.setOptions({
+ e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : rF(e.parent)), e.projection.setOptions({
layoutId: i,
layout: a,
- alwaysMeasureLayout: !!o || s && ZP(s),
+ alwaysMeasureLayout: !!o || s && nF(s),
visualElement: e,
animationType: typeof a == "string" ? a : "both",
initialPromotionConfig: r,
@@ -42490,46 +42490,46 @@ function $P(e, t, n, r) {
layoutAnchor: u
});
}
-function eF(e) {
- if (e) return e.options.allowProjection === !1 ? eF(e.parent) : e.projection;
+function rF(e) {
+ if (e) return e.options.allowProjection === !1 ? rF(e.parent) : e.projection;
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/index.mjs
-function tF(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
- r && yP(r);
- let a = n ? n === "svg" : VP(e), o = a ? qP : KP;
+function iF(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
+ r && sfe(r);
+ let a = n ? n === "svg" : $P(e), o = a ? wfe : Cfe;
function s(n, s) {
let c, l = {
- ...(0, R.useContext)(tP),
+ ...(0, R.useContext)(FP),
...n,
- layoutId: nF(n)
- }, { isStatic: u } = l, d = jP(n), f = o(n, u);
+ layoutId: kfe(n)
+ }, { isStatic: u } = l, d = mfe(n), f = o(n, u);
if (!u && typeof window < "u") {
- rF(l, r);
- let t = Mfe(l);
- c = t.MeasureLayout, d.visualElement = QP(e, f, l, i, t.ProjectionNode, a);
+ Afe(l, r);
+ let t = jfe(l);
+ c = t.MeasureLayout, d.visualElement = Dfe(e, f, l, i, t.ProjectionNode, a);
}
- return (0, z.jsxs)(kP.Provider, {
+ return (0, z.jsxs)(JP.Provider, {
value: d,
children: [c && d.visualElement ? (0, z.jsx)(c, {
visualElement: d.visualElement,
...l
- }) : null, HP(e, n, YP(f, d.visualElement, s), f, u, t, a)]
+ }) : null, bfe(e, n, Efe(f, d.visualElement, s), f, u, t, a)]
});
}
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
let c = (0, R.forwardRef)(s);
- return c[JP] = e, c;
+ return c[Tfe] = e, c;
}
-function nF({ layoutId: e }) {
- let t = (0, R.useContext)(ZN).id;
+function kfe({ layoutId: e }) {
+ let t = (0, R.useContext)(jP).id;
return t && e !== void 0 ? t + "-" + e : e;
}
-function rF(e, t) {
- (0, R.useContext)(mP).strict;
+function Afe(e, t) {
+ (0, R.useContext)(BP).strict;
}
-function Mfe(e) {
- let { drag: t, layout: n } = vP();
+function jfe(e) {
+ let { drag: t, layout: n } = UP();
if (!t && !n) return {};
let r = {
...t,
@@ -42542,20 +42542,20 @@ function Mfe(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
-function Nfe(e, t) {
- if (typeof Proxy > "u") return tF;
- let n = /* @__PURE__ */ new Map(), r = (n, r) => tF(n, r, e, t);
- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, tF(a, void 0, e, t)), n.get(a)) });
+function Mfe(e, t) {
+ if (typeof Proxy > "u") return iF;
+ let n = /* @__PURE__ */ new Map(), r = (n, r) => iF(n, r, e, t);
+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, iF(a, void 0, e, t)), n.get(a)) });
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
-var Pfe = (e, t) => t.isSVG ?? VP(e) ? new $ae(t) : new qae(t, { allowProjection: e !== R.Fragment }), Ffe = class extends jE {
+var Nfe = (e, t) => t.isSVG ?? $P(e) ? new Mae(t) : new Eae(t, { allowProjection: e !== R.Fragment }), Pfe = class extends QE {
constructor(e) {
- super(e), e.animationState ||= ioe(e);
+ super(e), e.animationState ||= Lae(e);
}
updateAnimationControlsSubscription() {
let { animate: e } = this.node.getProps();
- vE(e) && (this.unmountControls = e.subscribe(this.node));
+ zE(e) && (this.unmountControls = e.subscribe(this.node));
}
mount() {
this.updateAnimationControlsSubscription();
@@ -42567,11 +42567,11 @@ var Pfe = (e, t) => t.isSVG ?? VP(e) ? new $ae(t) : new qae(t, { allowProjection
unmount() {
this.node.animationState.reset(), this.unmountControls?.();
}
-}, Ife = 0, Lfe = {
- animation: { Feature: Ffe },
- exit: { Feature: class extends jE {
+}, Ffe = 0, Ife = {
+ animation: { Feature: Pfe },
+ exit: { Feature: class extends QE {
constructor() {
- super(...arguments), this.id = Ife++, this.isExitComplete = !1;
+ super(...arguments), this.id = Ffe++, this.isExitComplete = !1;
}
update() {
if (!this.node.presenceContext) return;
@@ -42581,7 +42581,7 @@ var Pfe = (e, t) => t.isSVG ?? VP(e) ? new $ae(t) : new qae(t, { allowProjection
if (this.isExitComplete) {
let { initial: e, custom: t } = this.node.getProps();
if (typeof e == "string" || typeof e == "object" && e && !Array.isArray(e)) {
- let n = CT(this.node, e, t);
+ let n = IT(this.node, e, t);
if (n) {
let { transition: e, transitionEnd: t, ...r } = n;
for (let e in r) this.node.getValue(e)?.jump(r[e]);
@@ -42606,21 +42606,21 @@ var Pfe = (e, t) => t.isSVG ?? VP(e) ? new $ae(t) : new qae(t, { allowProjection
};
//#endregion
//#region node_modules/framer-motion/dist/es/events/event-info.mjs
-function iF(e) {
+function aF(e) {
return { point: {
x: e.pageX,
y: e.pageY
} };
}
-var Rfe = (e) => (t) => ZT(t) && e(t, iF(t));
+var Lfe = (e) => (t) => fE(t) && e(t, aF(t));
//#endregion
//#region node_modules/framer-motion/dist/es/events/add-pointer-event.mjs
-function aF(e, t, n, r) {
- return PD(e, t, Rfe(n), r);
+function oF(e, t, n, r) {
+ return tO(e, t, Lfe(n), r);
}
//#endregion
//#region node_modules/framer-motion/dist/es/utils/get-context-window.mjs
-var oF = ({ current: e }) => e ? e.ownerDocument.defaultView : null, sF = /*#__PURE__*/ new Set(["auto", "scroll"]), cF = class {
+var sF = ({ current: e }) => e ? e.ownerDocument.defaultView : null, cF = /*#__PURE__*/ new Set(["auto", "scroll"]), lF = class {
constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: a = 3, element: o } = {}) {
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (e) => {
this.handleScroll(e.target);
@@ -42628,13 +42628,13 @@ var oF = ({ current: e }) => e ? e.ownerDocument.defaultView : null, sF = /*#__P
this.handleScroll(window);
}, this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- this.lastRawMoveEventInfo && (this.lastMoveEventInfo = lF(this.lastRawMoveEventInfo, this.transformPagePoint));
- let e = dF(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = Joe(e.offset, {
+ this.lastRawMoveEventInfo && (this.lastMoveEventInfo = uF(this.lastRawMoveEventInfo, this.transformPagePoint));
+ let e = fF(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = Doe(e.offset, {
x: 0,
y: 0
}) >= this.distanceThreshold;
if (!t && !n) return;
- let { point: r } = e, { timestamp: i } = OC;
+ let { point: r } = e, { timestamp: i } = MC;
this.history.push({
...r,
timestamp: i
@@ -42642,33 +42642,33 @@ var oF = ({ current: e }) => e ? e.ownerDocument.defaultView : null, sF = /*#__P
let { onStart: a, onMove: o } = this.handlers;
t || (a && a(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), o && o(this.lastMoveEvent, e);
}, this.handlePointerMove = (e, t) => {
- this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = lF(t, this.transformPagePoint), EC.update(this.updatePoint, !0);
+ this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = uF(t, this.transformPagePoint), AC.update(this.updatePoint, !0);
}, this.handlePointerUp = (e, t) => {
this.end();
let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
if ((this.dragSnapToOrigin || !this.startEvent) && i && i(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- let a = dF(e.type === "pointercancel" ? this.lastMoveEventInfo : lF(t, this.transformPagePoint), this.history);
+ let a = fF(e.type === "pointercancel" ? this.lastMoveEventInfo : uF(t, this.transformPagePoint), this.history);
this.startEvent && n && n(e, a), r && r(e, a);
- }, !ZT(e)) return;
+ }, !fE(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = lF(iF(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = OC;
+ let s = uF(aF(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = MC;
this.history = [{
...c,
timestamp: l
}];
let { onSessionStart: u } = t;
- u && u(e, dF(s, this.history));
+ u && u(e, fF(s, this.history));
let d = {
passive: !0,
capture: !0
};
- this.removeListeners = XS(aF(this.contextWindow, "pointermove", this.handlePointerMove, d), aF(this.contextWindow, "pointerup", this.handlePointerUp, d), aF(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
+ this.removeListeners = aC(oF(this.contextWindow, "pointermove", this.handlePointerMove, d), oF(this.contextWindow, "pointerup", this.handlePointerUp, d), oF(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
}
startScrollTracking(e) {
let t = e.parentElement;
for (; t;) {
let e = getComputedStyle(t);
- (sF.has(e.overflowX) || sF.has(e.overflowY)) && this.scrollPositions.set(t, {
+ (cF.has(e.overflowX) || cF.has(e.overflowY)) && this.scrollPositions.set(t, {
x: t.scrollLeft,
y: t.scrollTop
}), t = t.parentElement;
@@ -42693,51 +42693,51 @@ var oF = ({ current: e }) => e ? e.ownerDocument.defaultView : null, sF = /*#__P
x: r.x - t.x,
y: r.y - t.y
};
- (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), EC.update(this.updatePoint, !0));
+ (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), AC.update(this.updatePoint, !0));
}
updateHandlers(e) {
this.handlers = e;
}
end() {
- this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), DC(this.updatePoint);
+ this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), jC(this.updatePoint);
}
};
-function lF(e, t) {
+function uF(e, t) {
return t ? { point: t(e.point) } : e;
}
-function uF(e, t) {
+function dF(e, t) {
return {
x: e.x - t.x,
y: e.y - t.y
};
}
-function dF({ point: e }, t) {
+function fF({ point: e }, t) {
return {
point: e,
- delta: uF(e, fF(t)),
- offset: uF(e, zfe(t)),
- velocity: Bfe(t, .1)
+ delta: dF(e, pF(t)),
+ offset: dF(e, Rfe(t)),
+ velocity: zfe(t, .1)
};
}
-function zfe(e) {
+function Rfe(e) {
return e[0];
}
-function fF(e) {
+function pF(e) {
return e[e.length - 1];
}
-function Bfe(e, t) {
+function zfe(e, t) {
if (e.length < 2) return {
x: 0,
y: 0
};
- let n = e.length - 1, r = null, i = fF(e);
- for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ $S(t)));) n--;
+ let n = e.length - 1, r = null, i = pF(e);
+ for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ cC(t)));) n--;
if (!r) return {
x: 0,
y: 0
};
- r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ $S(t) * 2 && (r = e[1]);
- let a = /* @__PURE__ */ eC(i.timestamp - r.timestamp);
+ r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ cC(t) * 2 && (r = e[1]);
+ let a = /* @__PURE__ */ lC(i.timestamp - r.timestamp);
if (a === 0) return {
x: 0,
y: 0
@@ -42750,86 +42750,86 @@ function Bfe(e, t) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs
-function Vfe(e, { min: t, max: n }, r) {
- return t !== void 0 && e < t ? e = r ? sw(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? sw(n, e, r.max) : Math.min(e, n)), e;
+function Bfe(e, { min: t, max: n }, r) {
+ return t !== void 0 && e < t ? e = r ? pw(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? pw(n, e, r.max) : Math.min(e, n)), e;
}
-function pF(e, t, n) {
+function mF(e, t, n) {
return {
min: t === void 0 ? void 0 : e.min + t,
max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
};
}
-function Hfe(e, { top: t, left: n, bottom: r, right: i }) {
+function Vfe(e, { top: t, left: n, bottom: r, right: i }) {
return {
- x: pF(e.x, n, i),
- y: pF(e.y, t, r)
+ x: mF(e.x, n, i),
+ y: mF(e.y, t, r)
};
}
-function mF(e, t) {
+function hF(e, t) {
let n = t.min - e.min, r = t.max - e.max;
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
min: n,
max: r
};
}
-function Ufe(e, t) {
+function Hfe(e, t) {
return {
- x: mF(e.x, t.x),
- y: mF(e.y, t.y)
+ x: hF(e.x, t.x),
+ y: hF(e.y, t.y)
};
}
-function Wfe(e, t) {
- let n = .5, r = pD(e), i = pD(t);
- return i > r ? n = /* @__PURE__ */ ZS(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ ZS(e.min, e.max - i, t.min)), US(0, 1, n);
+function Ufe(e, t) {
+ let n = .5, r = PD(e), i = PD(t);
+ return i > r ? n = /* @__PURE__ */ oC(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ oC(e.min, e.max - i, t.min)), QS(0, 1, n);
}
-function Gfe(e, t) {
+function Wfe(e, t) {
let n = {};
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
}
-var hF = .35;
-function Kfe(e = hF) {
- return e === !1 ? e = 0 : e === !0 && (e = hF), {
- x: gF(e, "left", "right"),
- y: gF(e, "top", "bottom")
+var gF = .35;
+function Gfe(e = gF) {
+ return e === !1 ? e = 0 : e === !0 && (e = gF), {
+ x: _F(e, "left", "right"),
+ y: _F(e, "top", "bottom")
};
}
-function gF(e, t, n) {
+function _F(e, t, n) {
return {
- min: _F(e, t),
- max: _F(e, n)
+ min: vF(e, t),
+ max: vF(e, n)
};
}
-function _F(e, t) {
+function vF(e, t) {
return typeof e == "number" ? e : e[t] || 0;
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
-var qfe = /* @__PURE__ */ new WeakMap(), Jfe = class {
+var Kfe = /* @__PURE__ */ new WeakMap(), qfe = class {
constructor(e) {
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
x: 0,
y: 0
- }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = _E(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = RE(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
}
start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {
let { presenceContext: r } = this.visualElement;
if (r && r.isPresent === !1) return;
let i = (e) => {
- t && this.snapToCursor(iF(e).point), this.stopAnimation();
+ t && this.snapToCursor(aF(e).point), this.stopAnimation();
}, a = (e, t) => {
let { drag: n, dragPropagation: r, onDragStart: i } = this.getProps();
- if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = dae(n), !this.openDragLock)) return;
- this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), kD((e) => {
+ if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = Qie(n), !this.openDragLock)) return;
+ this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), XD((e) => {
let t = this.getAxisMotionValue(e).get() || 0;
- if (JC.test(t)) {
+ if (QC.test(t)) {
let { projection: n } = this.visualElement;
if (n && n.layout) {
let r = n.layout.layoutBox[e];
- r && (t = pD(r) * (parseFloat(t) / 100));
+ r && (t = PD(r) * (parseFloat(t) / 100));
}
}
this.originPoint[e] = t;
- }), i && EC.update(() => i(e, t), !1, !0), DT(this.visualElement, "transform");
+ }), i && AC.update(() => i(e, t), !1, !0), BT(this.visualElement, "transform");
let { animationState: a } = this.visualElement;
a && a.setActive("whileDrag", !0);
}, o = (e, t) => {
@@ -42838,10 +42838,10 @@ var qfe = /* @__PURE__ */ new WeakMap(), Jfe = class {
if (!n && !this.openDragLock) return;
let { offset: o } = t;
if (r && this.currentDirection === null) {
- this.currentDirection = Xfe(o), this.currentDirection !== null && i && i(this.currentDirection);
+ this.currentDirection = Yfe(o), this.currentDirection !== null && i && i(this.currentDirection);
return;
}
- this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && EC.update(() => a(e, t), !1, !0);
+ this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && AC.update(() => a(e, t), !1, !0);
}, s = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
}, c = () => {
@@ -42851,7 +42851,7 @@ var qfe = /* @__PURE__ */ new WeakMap(), Jfe = class {
y: 0
});
}, { dragSnapToOrigin: l } = this.getProps();
- this.panSession = new cF(e, {
+ this.panSession = new lF(e, {
onSessionStart: i,
onStart: a,
onMove: o,
@@ -42861,7 +42861,7 @@ var qfe = /* @__PURE__ */ new WeakMap(), Jfe = class {
transformPagePoint: this.visualElement.getTransformPagePoint(),
dragSnapToOrigin: l,
distanceThreshold: n,
- contextWindow: oF(this.visualElement),
+ contextWindow: sF(this.visualElement),
element: this.visualElement.current
});
}
@@ -42871,7 +42871,7 @@ var qfe = /* @__PURE__ */ new WeakMap(), Jfe = class {
let { velocity: a } = r;
this.startAnimation(a);
let { onDragEnd: o } = this.getProps();
- o && EC.postRender(() => o(n, r));
+ o && AC.postRender(() => o(n, r));
}
cancel() {
this.isDragging = !1;
@@ -42885,32 +42885,32 @@ var qfe = /* @__PURE__ */ new WeakMap(), Jfe = class {
}
updateAxis(e, t, n) {
let { drag: r } = this.getProps();
- if (!n || !yF(e, r, this.currentDirection)) return;
+ if (!n || !bF(e, r, this.currentDirection)) return;
let i = this.getAxisMotionValue(e), a = this.originPoint[e] + n[e];
- this.constraints && this.constraints[e] && (a = Vfe(a, this.constraints[e], this.elastic[e])), i.set(a);
+ this.constraints && this.constraints[e] && (a = Bfe(a, this.constraints[e], this.elastic[e])), i.set(a);
}
resolveConstraints() {
let { dragConstraints: e, dragElastic: t } = this.getProps(), n = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, r = this.constraints;
- e && ZP(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? Hfe(n.layoutBox, e) : !1, this.elastic = Kfe(t), r !== this.constraints && !ZP(e) && n && this.constraints && !this.hasMutatedConstraints && kD((e) => {
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Gfe(n.layoutBox[e], this.constraints[e]));
+ e && nF(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? Vfe(n.layoutBox, e) : !1, this.elastic = Gfe(t), r !== this.constraints && !nF(e) && n && this.constraints && !this.hasMutatedConstraints && XD((e) => {
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Wfe(n.layoutBox[e], this.constraints[e]));
});
}
resolveRefConstraints() {
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
- if (!e || !ZP(e)) return !1;
+ if (!e || !nF(e)) return !1;
let n = e.current, { projection: r } = this.visualElement;
if (!r || !r.layout) return !1;
r.root && (r.root.scroll = void 0, r.root.updateScroll());
- let i = Vae(n, r.root, this.visualElement.getTransformPagePoint()), a = Ufe(r.layout.layoutBox, i);
+ let i = bae(n, r.root, this.visualElement.getTransformPagePoint()), a = Hfe(r.layout.layoutBox, i);
if (t) {
- let e = t(Rae(a));
- this.hasMutatedConstraints = !!e, e && (a = ME(e));
+ let e = t(_ae(a));
+ this.hasMutatedConstraints = !!e, e && (a = $E(e));
}
return a;
}
startAnimation(e) {
- let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = kD((o) => {
- if (!yF(o, t, this.currentDirection)) return;
+ let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = XD((o) => {
+ if (!bF(o, t, this.currentDirection)) return;
let c = s && s[o] || {};
(a === !0 || a === o) && (c = {
min: 0,
@@ -42933,65 +42933,65 @@ var qfe = /* @__PURE__ */ new WeakMap(), Jfe = class {
}
startAxisValueAnimation(e, t) {
let n = this.getAxisMotionValue(e);
- return DT(this.visualElement, e), n.start(yT(e, n, 0, t, this.visualElement, !1));
+ return BT(this.visualElement, e), n.start(MT(e, n, 0, t, this.visualElement, !1));
}
stopAnimation() {
- kD((e) => this.getAxisMotionValue(e).stop());
+ XD((e) => this.getAxisMotionValue(e).stop());
}
getAxisMotionValue(e) {
let t = `_drag${e.toUpperCase()}`;
return this.visualElement.getProps()[t] || this.visualElement.getValue(e, this.visualElement.latestValues[e] ?? 0);
}
snapToCursor(e) {
- kD((t) => {
+ XD((t) => {
let { drag: n } = this.getProps();
- if (!yF(t, n, this.currentDirection)) return;
+ if (!bF(t, n, this.currentDirection)) return;
let { projection: r } = this.visualElement, i = this.getAxisMotionValue(t);
if (r && r.layout) {
let { min: n, max: a } = r.layout.layoutBox[t], o = i.get() || 0;
- i.set(e[t] - sw(n, a, .5) + o);
+ i.set(e[t] - pw(n, a, .5) + o);
}
});
}
scalePositionWithinConstraints() {
if (!this.visualElement.current) return;
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
- if (!ZP(t) || !n || !this.constraints) return;
+ if (!nF(t) || !n || !this.constraints) return;
this.stopAnimation();
let r = {
x: 0,
y: 0
};
- kD((e) => {
+ XD((e) => {
let t = this.getAxisMotionValue(e);
if (t && this.constraints !== !1) {
let n = t.get();
- r[e] = Wfe({
+ r[e] = Ufe({
min: n,
max: n
}, this.constraints[e]);
}
});
let { transformTemplate: i } = this.visualElement.getProps();
- this.visualElement.current.style.transform = i ? i({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), kD((t) => {
- if (!yF(t, e, null)) return;
+ this.visualElement.current.style.transform = i ? i({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), XD((t) => {
+ if (!bF(t, e, null)) return;
let n = this.getAxisMotionValue(t), { min: i, max: a } = this.constraints[t];
- n.set(sw(i, a, r[t]));
+ n.set(pw(i, a, r[t]));
}), this.visualElement.render();
}
addListeners() {
if (!this.visualElement.current) return;
- qfe.set(this.visualElement, this);
- let e = this.visualElement.current, t = aF(e, "pointerdown", (t) => {
- let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && _ae(i);
+ Kfe.set(this.visualElement, this);
+ let e = this.visualElement.current, t = oF(e, "pointerdown", (t) => {
+ let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && gE(i);
n && r && !a && this.start(t);
}), n, r = () => {
let { dragConstraints: t } = this.getProps();
- ZP(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= Yfe(e, t.current, () => this.scalePositionWithinConstraints()));
+ nF(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= Jfe(e, t.current, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
- i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), EC.read(r);
- let o = PD(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
- this.isDragging && t && (kD((t) => {
+ i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), AC.read(r);
+ let o = tO(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
+ this.isDragging && t && (XD((t) => {
let n = this.getAxisMotionValue(t);
n && (this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate));
}), this.visualElement.render());
@@ -43001,7 +43001,7 @@ var qfe = /* @__PURE__ */ new WeakMap(), Jfe = class {
};
}
getProps() {
- let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = hF, dragMomentum: o = !0 } = e;
+ let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = gF, dragMomentum: o = !0 } = e;
return {
...e,
drag: t,
@@ -43013,7 +43013,7 @@ var qfe = /* @__PURE__ */ new WeakMap(), Jfe = class {
};
}
};
-function vF(e) {
+function yF(e) {
let t = !0;
return () => {
if (t) {
@@ -43023,28 +43023,28 @@ function vF(e) {
e();
};
}
-function Yfe(e, t, n) {
- let r = uE(e, vF(n)), i = uE(t, vF(n));
+function Jfe(e, t, n) {
+ let r = jE(e, yF(n)), i = jE(t, yF(n));
return () => {
r(), i();
};
}
-function yF(e, t, n) {
+function bF(e, t, n) {
return (t === !0 || t === e) && (n === null || n === e);
}
-function Xfe(e, t = 10) {
+function Yfe(e, t = 10) {
let n = null;
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/index.mjs
-var Zfe = class extends jE {
+var Xfe = class extends QE {
constructor(e) {
- super(e), this.removeGroupControls = YS, this.removeListeners = YS, this.controls = new Jfe(e);
+ super(e), this.removeGroupControls = iC, this.removeListeners = iC, this.controls = new qfe(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || YS;
+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || iC;
}
update() {
let { dragControls: e } = this.node.getProps(), { dragControls: t } = this.node.prevProps || {};
@@ -43053,31 +43053,31 @@ var Zfe = class extends jE {
unmount() {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
-}, bF = (e) => (t, n) => {
- e && EC.update(() => e(t, n), !1, !0);
-}, Qfe = class extends jE {
+}, xF = (e) => (t, n) => {
+ e && AC.update(() => e(t, n), !1, !0);
+}, Zfe = class extends QE {
constructor() {
- super(...arguments), this.removePointerDownListener = YS;
+ super(...arguments), this.removePointerDownListener = iC;
}
onPointerDown(e) {
- this.session = new cF(e, this.createPanHandlers(), {
+ this.session = new lF(e, this.createPanHandlers(), {
transformPagePoint: this.node.getTransformPagePoint(),
- contextWindow: oF(this.node)
+ contextWindow: sF(this.node)
});
}
createPanHandlers() {
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
return {
- onSessionStart: bF(e),
- onStart: bF(t),
- onMove: bF(n),
+ onSessionStart: xF(e),
+ onStart: xF(t),
+ onMove: xF(n),
onEnd: (e, t) => {
- delete this.session, r && EC.postRender(() => r(e, t));
+ delete this.session, r && AC.postRender(() => r(e, t));
}
};
}
mount() {
- this.removePointerDownListener = aF(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
+ this.removePointerDownListener = oF(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
}
update() {
this.session && this.session.updateHandlers(this.createPanHandlers());
@@ -43085,36 +43085,36 @@ var Zfe = class extends jE {
unmount() {
this.removePointerDownListener(), this.session && this.session.end();
}
-}, xF = !1, $fe = class extends R.Component {
+}, SF = !1, Qfe = class extends R.Component {
componentDidMount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
- i && (t.group && t.group.add(i), n && n.register && r && n.register(i), xF && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
+ i && (t.group && t.group.add(i), n && n.register && r && n.register(i), SF && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
this.safeToRemove();
}), i.setOptions({
...i.options,
layoutDependency: this.props.layoutDependency,
onExitComplete: () => this.safeToRemove()
- })), ID.hasEverUpdated = !0;
+ })), rO.hasEverUpdated = !0;
}
getSnapshotBeforeUpdate(e) {
let { layoutDependency: t, visualElement: n, drag: r, isPresent: i } = this.props, { projection: a } = n;
return a ? (a.isPresent = i, e.layoutDependency !== t && a.setOptions({
...a.options,
layoutDependency: t
- }), xF = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || EC.postRender(() => {
+ }), SF = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || AC.postRender(() => {
let e = a.getStack();
(!e || !e.members.length) && this.safeToRemove();
})), null) : null;
}
componentDidUpdate() {
let { visualElement: e, layoutAnchor: t } = this.props, { projection: n } = e;
- n && (n.options.layoutAnchor = t, n.root.didUpdate(), KT.postRender(() => {
+ n && (n.options.layoutAnchor = t, n.root.didUpdate(), aE.postRender(() => {
!n.currentAnimation && n.isLead() && this.safeToRemove();
}));
}
componentWillUnmount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
- xF = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
+ SF = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
}
safeToRemove() {
let { safeToRemove: e } = this.props;
@@ -43124,41 +43124,41 @@ var Zfe = class extends jE {
return null;
}
};
-function SF(e) {
- let [t, n] = cP(), r = (0, R.useContext)(ZN);
- return (0, z.jsx)($fe, {
+function CF(e) {
+ let [t, n] = LP(), r = (0, R.useContext)(jP);
+ return (0, z.jsx)(Qfe, {
...e,
layoutGroup: r,
- switchLayoutGroup: (0, R.useContext)(XP),
+ switchLayoutGroup: (0, R.useContext)(tF),
isPresent: t,
safeToRemove: n
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/drag.mjs
-var epe = {
- pan: { Feature: Qfe },
+var $fe = {
+ pan: { Feature: Zfe },
drag: {
- Feature: Zfe,
- ProjectionNode: QD,
- MeasureLayout: SF
+ Feature: Xfe,
+ ProjectionNode: yO,
+ MeasureLayout: CF
}
};
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/hover.mjs
-function CF(e, t, n) {
+function wF(e, t, n) {
let { props: r } = e;
e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
let i = r["onHover" + n];
- i && EC.postRender(() => i(t, iF(t)));
+ i && AC.postRender(() => i(t, aF(t)));
}
-var tpe = class extends jE {
+var epe = class extends QE {
mount() {
let { current: e } = this.node;
- e && (this.unmount = pae(e, (e, t) => (CF(this.node, t, "Start"), (e) => CF(this.node, e, "End"))));
+ e && (this.unmount = uE(e, (e, t) => (wF(this.node, t, "Start"), (e) => wF(this.node, e, "End"))));
}
unmount() {}
-}, npe = class extends jE {
+}, tpe = class extends QE {
constructor() {
super(...arguments), this.isActive = !1;
}
@@ -43175,57 +43175,57 @@ var tpe = class extends jE {
!this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = XS(PD(this.node.current, "focus", () => this.onFocus()), PD(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = aC(tO(this.node.current, "focus", () => this.onFocus()), tO(this.node.current, "blur", () => this.onBlur()));
}
unmount() {}
};
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/press.mjs
-function wF(e, t, n) {
+function TF(e, t, n) {
let { props: r } = e;
if (e.current instanceof HTMLButtonElement && e.current.disabled) return;
e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
let i = r["onTap" + (n === "End" ? "" : n)];
- i && EC.postRender(() => i(t, iF(t)));
+ i && AC.postRender(() => i(t, aF(t)));
}
-var rpe = class extends jE {
+var npe = class extends QE {
mount() {
let { current: e } = this.node;
if (!e) return;
let { globalTapTarget: t, propagate: n } = this.node.props;
- this.unmount = yae(e, (e, t) => (wF(this.node, t, "Start"), (e, { success: t }) => wF(this.node, e, t ? "End" : "Cancel")), {
+ this.unmount = CE(e, (e, t) => (TF(this.node, t, "Start"), (e, { success: t }) => TF(this.node, e, t ? "End" : "Cancel")), {
useGlobalTarget: t,
stopPropagation: n?.tap === !1
});
}
unmount() {}
-}, TF = /* @__PURE__ */ new WeakMap(), EF = /* @__PURE__ */ new WeakMap(), ipe = (e) => {
- let t = TF.get(e.target);
+}, EF = /* @__PURE__ */ new WeakMap(), DF = /* @__PURE__ */ new WeakMap(), rpe = (e) => {
+ let t = EF.get(e.target);
t && t(e);
-}, ape = (e) => {
- e.forEach(ipe);
+}, ipe = (e) => {
+ e.forEach(rpe);
};
-function ope({ root: e, ...t }) {
+function ape({ root: e, ...t }) {
let n = e || document;
- EF.has(n) || EF.set(n, {});
- let r = EF.get(n), i = JSON.stringify(t);
- return r[i] || (r[i] = new IntersectionObserver(ape, {
+ DF.has(n) || DF.set(n, {});
+ let r = DF.get(n), i = JSON.stringify(t);
+ return r[i] || (r[i] = new IntersectionObserver(ipe, {
root: e,
...t
})), r[i];
}
-function spe(e, t, n) {
- let r = ope(t);
- return TF.set(e, n), r.observe(e), () => {
- TF.delete(e), r.unobserve(e);
+function ope(e, t, n) {
+ let r = ape(t);
+ return EF.set(e, n), r.observe(e), () => {
+ EF.delete(e), r.unobserve(e);
};
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
-var cpe = {
+var spe = {
some: 0,
all: 1
-}, lpe = class extends jE {
+}, cpe = class extends QE {
constructor() {
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
}
@@ -43234,7 +43234,7 @@ var cpe = {
let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
root: t ? t.current : void 0,
rootMargin: n,
- threshold: typeof r == "number" ? r : cpe[r]
+ threshold: typeof r == "number" ? r : spe[r]
}, o = (e) => {
let { isIntersecting: t } = e;
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
@@ -43242,7 +43242,7 @@ var cpe = {
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
a && a(e);
};
- this.stopObserver = spe(this.node.current, a, o);
+ this.stopObserver = ope(this.node.current, a, o);
}
mount() {
this.startObserver();
@@ -43254,34 +43254,34 @@ var cpe = {
"amount",
"margin",
"root"
- ].some(upe(e, t)) && this.startObserver();
+ ].some(lpe(e, t)) && this.startObserver();
}
unmount() {
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
}
};
-function upe({ viewport: e = {} }, { viewport: t = {} } = {}) {
+function lpe({ viewport: e = {} }, { viewport: t = {} } = {}) {
return (n) => e[n] !== t[n];
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/gestures.mjs
-var dpe = {
- inView: { Feature: lpe },
- tap: { Feature: rpe },
- focus: { Feature: npe },
- hover: { Feature: tpe }
-}, fpe = { layout: {
- ProjectionNode: QD,
- MeasureLayout: SF
-} }, ppe = /*@__PURE__*/ Nfe({
- ...Lfe,
- ...dpe,
- ...epe,
- ...fpe
-}, Pfe);
+var upe = {
+ inView: { Feature: cpe },
+ tap: { Feature: npe },
+ focus: { Feature: tpe },
+ hover: { Feature: epe }
+}, dpe = { layout: {
+ ProjectionNode: yO,
+ MeasureLayout: CF
+} }, fpe = /*@__PURE__*/ Mfe({
+ ...Ife,
+ ...upe,
+ ...$fe,
+ ...dpe
+}, Nfe);
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-motion-value-event.mjs
-function DF(e, t, n) {
+function OF(e, t, n) {
(0, R.useInsertionEffect)(() => e.on(t, n), [
e,
t,
@@ -43290,8 +43290,8 @@ function DF(e, t, n) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-motion-value.mjs
-function OF(e) {
- let t = QN(() => gT(e)), { isStatic: n } = (0, R.useContext)(tP);
+function kF(e) {
+ let t = MP(() => kT(e)), { isStatic: n } = (0, R.useContext)(FP);
if (n) {
let [, n] = (0, R.useState)(e);
(0, R.useEffect)(() => t.on("change", n), []);
@@ -43300,28 +43300,28 @@ function OF(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-combine-values.mjs
-function kF(e, t) {
- let n = OF(t()), r = () => n.set(t());
- return r(), $N(() => {
- let t = () => EC.preRender(r, !1, !0), n = e.map((e) => e.on("change", t));
+function AF(e, t) {
+ let n = kF(t()), r = () => n.set(t());
+ return r(), NP(() => {
+ let t = () => AC.preRender(r, !1, !0), n = e.map((e) => e.on("change", t));
return () => {
- n.forEach((e) => e()), DC(r);
+ n.forEach((e) => e()), jC(r);
};
}), n;
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-computed.mjs
-function mpe(e) {
- hT.current = [], e();
- let t = kF(hT.current, e);
- return hT.current = void 0, t;
+function ppe(e) {
+ OT.current = [], e();
+ let t = AF(OT.current, e);
+ return OT.current = void 0, t;
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-transform.mjs
-function AF(e, t, n, r) {
- if (typeof e == "function") return mpe(e);
- if (n !== void 0 && !Array.isArray(n) && typeof t != "function") return hpe(e, t, n, r);
- let i = typeof t == "function" ? t : kae(t, n, r), a = Array.isArray(e) ? jF(e, i) : jF([e], ([e]) => i(e)), o = Array.isArray(e) ? void 0 : e.accelerate;
+function jF(e, t, n, r) {
+ if (typeof e == "function") return ppe(e);
+ if (n !== void 0 && !Array.isArray(n) && typeof t != "function") return mpe(e, t, n, r);
+ let i = typeof t == "function" ? t : cae(t, n, r), a = Array.isArray(e) ? MF(e, i) : MF([e], ([e]) => i(e)), o = Array.isArray(e) ? void 0 : e.accelerate;
return o && !o.isTransformed && typeof t != "function" && Array.isArray(n) && r?.clamp !== !1 && (a.accelerate = {
...o,
times: t,
@@ -43330,55 +43330,55 @@ function AF(e, t, n, r) {
...r?.ease ? { ease: r.ease } : {}
}), a;
}
-function jF(e, t) {
- let n = QN(() => []);
- return kF(e, () => {
+function MF(e, t) {
+ let n = MP(() => []);
+ return AF(e, () => {
n.length = 0;
let r = e.length;
for (let t = 0; t < r; t++) n[t] = e[t].get();
return t(n);
});
}
-function hpe(e, t, n, r) {
- let i = QN(() => Object.keys(n)), a = QN(() => ({}));
- for (let o of i) a[o] = AF(e, t, n[o], r);
+function mpe(e, t, n, r) {
+ let i = MP(() => Object.keys(n)), a = MP(() => ({}));
+ for (let o of i) a[o] = jF(e, t, n[o], r);
return a;
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-follow-value.mjs
-function gpe(e, t = {}) {
- let { isStatic: n } = (0, R.useContext)(tP), r = () => ET(e) ? e.get() : e;
- if (n) return AF(r);
- let i = OF(r());
- return (0, R.useInsertionEffect)(() => Aae(i, e, t), [i, JSON.stringify(t)]), i;
+function hpe(e, t = {}) {
+ let { isStatic: n } = (0, R.useContext)(FP), r = () => zT(e) ? e.get() : e;
+ if (n) return jF(r);
+ let i = kF(r());
+ return (0, R.useInsertionEffect)(() => lae(i, e, t), [i, JSON.stringify(t)]), i;
}
//#endregion
//#region node_modules/framer-motion/dist/es/value/use-spring.mjs
-function MF(e, t = {}) {
- return gpe(e, {
+function NF(e, t = {}) {
+ return hpe(e, {
type: "spring",
...t
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-function _pe() {
- !TE.current && EE();
- let [e] = (0, R.useState)(wE.current);
+function gpe() {
+ !KE.current && qE();
+ let [e] = (0, R.useState)(GE.current);
return e;
}
//#endregion
//#region node_modules/motion/dist/es/react.mjs
-var NF = ppe, PF = "(prefers-reduced-motion: reduce)", vpe = () => matchMedia(PF).matches, ype = (e) => {
- let t = matchMedia(PF);
+var PF = fpe, FF = "(prefers-reduced-motion: reduce)", _pe = () => matchMedia(FF).matches, vpe = (e) => {
+ let t = matchMedia(FF);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
};
-function bpe({ children: e, count: t, label: n }) {
- let r = lP(), i = (0, R.useSyncExternalStore)(ype, vpe, () => !1), { isFocusVisible: a } = Sf(), o = i || a, s = {
+function ype({ children: e, count: t, label: n }) {
+ let r = rfe(), i = (0, R.useSyncExternalStore)(vpe, _pe, () => !1), { isFocusVisible: a } = Sf(), o = i || a, s = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
- return /* @__PURE__ */ (0, z.jsxs)(NF.div, {
+ return /* @__PURE__ */ (0, z.jsxs)(PF.div, {
role: "group",
"aria-label": n,
"data-selection-dock": !0,
@@ -43410,13 +43410,13 @@ function bpe({ children: e, count: t, label: n }) {
}), e]
});
}
-function FF({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, z.jsx)(pP, { children: e ? /* @__PURE__ */ (0, z.jsx)(bpe, { ...t }, "selection") : null });
+function IF({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, z.jsx)(afe, { children: e ? /* @__PURE__ */ (0, z.jsx)(ype, { ...t }, "selection") : null });
}
//#endregion
//#region src/react/follow-manage/add-feed.tsx
-var xpe = "输入女优名,到 JavDB 找她的演员页";
-function Spe(e, t) {
+var bpe = "输入女优名,到 JavDB 找她的演员页";
+function xpe(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 {
@@ -43435,10 +43435,10 @@ function Spe(e, t) {
blocked: !1
};
}
-function Cpe({ card: e, picked: t, onPick: n }) {
+function Spe({ card: e, picked: t, onPick: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(VO, {
+ children: [/* @__PURE__ */ (0, z.jsx)(xk, {
isSelected: t,
onChange: n,
children: /* @__PURE__ */ (0, z.jsxs)("span", {
@@ -43459,16 +43459,16 @@ function Cpe({ card: e, picked: t, onPick: n }) {
}) : null
]
})
- }), /* @__PURE__ */ (0, z.jsx)(EO, {
+ }), /* @__PURE__ */ (0, z.jsx)(ok, {
href: e.url,
children: e.id
})]
});
}
-function wpe({ readOnly: e, toast: t, onAdded: n }) {
+function Cpe({ readOnly: e, toast: t, onAdded: n }) {
let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(/* @__PURE__ */ new Set()), l = ra(), u = () => {
let t = r.trim();
- !t || e || l.run("lookup", (e) => Lue(t, e), (e) => {
+ !t || e || l.run("lookup", (e) => Tue(t, e), (e) => {
o(e), c(new Set(e.suggested));
});
}, d = (e) => {
@@ -43476,10 +43476,10 @@ function wpe({ readOnly: e, toast: t, onAdded: n }) {
}, f = () => {
o(null), c(/* @__PURE__ */ new Set()), l.setError("");
}, p = () => {
- a && l.run("follow", (e) => Rue(a.q, [...s], e), (e) => {
+ a && l.run("follow", (e) => Eue(a.q, [...s], e), (e) => {
t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();
});
- }, m = a ? Spe(a, s) : null;
+ }, m = a ? xpe(a, s) : null;
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: Yi({
padding: "none",
@@ -43494,9 +43494,9 @@ function wpe({ readOnly: e, toast: t, onAdded: n }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, z.jsx)("div", {
className: "min-w-64 grow",
- children: /* @__PURE__ */ (0, z.jsx)($O, {
+ children: /* @__PURE__ */ (0, z.jsx)(Nk, {
"aria-label": "女优名",
- placeholder: xpe,
+ placeholder: bpe,
value: r,
leadingIcon: ht,
isDisabled: e,
@@ -43519,16 +43519,16 @@ function wpe({ readOnly: e, toast: t, onAdded: n }) {
a ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(TO, { children: "JavDB 上的演员卡" }),
- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, z.jsx)(Cpe, {
+ /* @__PURE__ */ (0, z.jsx)(ak, { children: "JavDB 上的演员卡" }),
+ a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, z.jsx)(Spe, {
card: e,
picked: s.has(e.id),
onPick: (t) => c((n) => {
let r = new Set(n);
return t ? r.add(e.id) : r.delete(e.id), r;
})
- }, e.id)) : /* @__PURE__ */ (0, z.jsx)(CO, { children: "JavDB 上没有搜到这个名字。" }),
- a.candidates.length ? /* @__PURE__ */ (0, z.jsx)(CO, {
+ }, e.id)) : /* @__PURE__ */ (0, z.jsx)(rk, { children: "JavDB 上没有搜到这个名字。" }),
+ a.candidates.length ? /* @__PURE__ */ (0, z.jsx)(rk, {
role: "status",
children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"
}) : null,
@@ -43555,19 +43555,19 @@ function wpe({ readOnly: e, toast: t, onAdded: n }) {
}
//#endregion
//#region src/react/follow-manage/source-list.tsx
-var Tpe = Object.fromEntries(Object.entries(Hj).map(([e, t]) => [t, e])), IF = 740;
-function Epe() {
+var wpe = Object.fromEntries(Object.entries(eM).map(([e, t]) => [t, e])), LF = 740;
+function Tpe() {
let [e, t] = (0, R.useState)(!1), n = (0, R.useRef)(null), r = (0, R.useCallback)((e) => {
if (n.current?.disconnect(), !e) {
n.current = null;
return;
}
- let r = new ResizeObserver(() => t(e.clientWidth < IF));
- r.observe(e), n.current = r, t(e.clientWidth < IF);
+ let r = new ResizeObserver(() => t(e.clientWidth < LF));
+ r.observe(e), n.current = r, t(e.clientWidth < LF);
}, []);
return (0, R.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
}
-var Dpe = {
+var Epe = {
select: "选择",
author: "创作者",
source: "来源",
@@ -43576,7 +43576,7 @@ var Dpe = {
checked: "上次检查",
actions: "操作"
};
-function LF({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
+function RF({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
return t <= 1 ? null : /* @__PURE__ */ (0, z.jsxs)("nav", {
"aria-label": r,
className: "flex flex-wrap items-center justify-center gap-2",
@@ -43613,22 +43613,22 @@ function LF({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
]
});
}
-function Ope({ source: e, selected: t, onToggle: n, handlers: r }) {
+function Dpe({ source: e, selected: t, onToggle: n, handlers: r }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-selected": t || void 0,
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",
onClick: (e) => {
- UO(e, e.currentTarget) && n(!t);
+ Ck(e, e.currentTarget) && n(!t);
},
children: [
- /* @__PURE__ */ (0, z.jsx)(VO, {
+ /* @__PURE__ */ (0, z.jsx)(xk, {
isSelected: t,
onChange: n,
"aria-label": `选择 ${e.label}`
}),
/* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, z.jsx)($M, { source: e }), e.last_error ? /* @__PURE__ */ (0, z.jsx)("small", {
+ children: [/* @__PURE__ */ (0, z.jsx)(NN, { source: e }), e.last_error ? /* @__PURE__ */ (0, z.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.last_error
}) : null]
@@ -43636,17 +43636,17 @@ function Ope({ source: e, selected: t, onToggle: n, handlers: r }) {
/* @__PURE__ */ (0, z.jsx)("span", {
className: "flex shrink-0 items-center gap-1.5 text-body-2-regular text-text-secondary",
title: e.provider_label,
- children: /* @__PURE__ */ (0, z.jsx)(XM, {
+ children: /* @__PURE__ */ (0, z.jsx)(AN, {
provider: e.provider,
label: e.provider_label
})
}),
- /* @__PURE__ */ (0, z.jsx)(QM, { source: e }),
+ /* @__PURE__ */ (0, z.jsx)(MN, { source: e }),
/* @__PURE__ */ (0, z.jsx)("span", {
className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",
- children: hM(e)
+ children: AM(e)
}),
- /* @__PURE__ */ (0, z.jsx)(YN, {
+ /* @__PURE__ */ (0, z.jsx)(kP, {
"aria-label": `启用 ${e.label}`,
isSelected: e.enabled,
isDisabled: r.readOnly,
@@ -43676,8 +43676,8 @@ function Ope({ source: e, selected: t, onToggle: n, handlers: r }) {
]
});
}
-function kpe({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
- let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(Wj).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = eM(r, c);
+function Ope({ 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(nM).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = fM(r, c);
return /* @__PURE__ */ (0, z.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
className: Yi({
@@ -43690,7 +43690,7 @@ function kpe({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
"data-open": n || void 0,
className: "flex flex-wrap items-center gap-3 px-2 py-2.5",
children: [
- /* @__PURE__ */ (0, z.jsx)(ZM, {
+ /* @__PURE__ */ (0, z.jsx)(jN, {
group: e,
name: t
}),
@@ -43711,7 +43711,7 @@ function kpe({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
/* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
title: d,
- children: [e.map((e) => /* @__PURE__ */ (0, z.jsx)(XM, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, z.jsx)(Mh, { children: `来源:${d}` })]
+ children: [e.map((e) => /* @__PURE__ */ (0, z.jsx)(AN, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, z.jsx)(Mh, { children: `来源:${d}` })]
}),
u ? /* @__PURE__ */ (0, z.jsx)("span", {
className: "shrink-0 text-body-2-regular text-text-error-primary",
@@ -43741,7 +43741,7 @@ function kpe({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
id: f,
hidden: !n,
"data-source-divider": !0,
- children: e.map((e) => /* @__PURE__ */ (0, z.jsx)(Ope, {
+ children: e.map((e) => /* @__PURE__ */ (0, z.jsx)(Dpe, {
source: e,
handlers: i,
selected: r.has(e.id),
@@ -43750,37 +43750,37 @@ function kpe({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
})]
});
}
-function Ape(e) {
- let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: f, onPageSize: p, onSelected: m, toast: h, openFollow: g } = e, _ = t.sources, v = (0, R.useMemo)(() => t.author_aliases || [], [t.author_aliases]), y = t.counts || {}, [x, S] = (0, R.useState)(/* @__PURE__ */ new Set()), [C, w] = Epe(), [T, E] = (0, R.useState)(""), D = (0, R.useMemo)(() => Tue(_, n, r, v), [
+function kpe(e) {
+ let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: f, onPageSize: p, onSelected: m, toast: h, openFollow: g } = e, _ = t.sources, v = (0, R.useMemo)(() => t.author_aliases || [], [t.author_aliases]), y = t.counts || {}, [x, S] = (0, R.useState)(/* @__PURE__ */ new Set()), [C, w] = Tpe(), [T, E] = (0, R.useState)(""), D = (0, R.useMemo)(() => pue(_, n, r, v), [
_,
n,
r,
v
- ]), O = (0, R.useMemo)(() => Eue(D, n, r, v), [
+ ]), O = (0, R.useMemo)(() => mue(D, n, r, v), [
D,
n,
r,
v
- ]), { job: k, running: A, outcome: j, start: M } = LO({
- queryKey: gue,
- queryFn: ({ signal: e }) => Oue(e),
- start: (e) => iM(e),
+ ]), { job: k, running: A, outcome: j, start: M } = _k({
+ queryKey: iue,
+ queryFn: ({ signal: e }) => gue(e),
+ start: (e) => gM(e),
onError: (e) => E(U(e)),
onFinish: (e) => {
- mM(), h(e.status === "failed" ? e.error || "检查失败" : Bue(e));
+ EM(), h(e.status === "failed" ? e.error || "检查失败" : DM(e));
}
}), N = (e) => {
A || M.isPending || (E(""), M.mutate(e));
- }, P = (e, t) => m(tM(s, [e], t)), ee = (e, t) => m(tM(s, e, t)), F = Qn({
- mutationFn: (e) => oM(e),
+ }, P = (e, t) => m(pM(s, [e], t)), ee = (e, t) => m(pM(s, e, t)), F = Qn({
+ mutationFn: (e) => vM(e),
onSuccess: (e, t) => {
- pM([t]), m(tM(s, [t], !1)), h("已取消关注来源");
+ TM([t]), m(pM(s, [t], !1)), h("已取消关注来源");
},
onError: (e) => E(U(e))
}), I = Qn({
- mutationFn: (e) => aM(e.id, e.enabled),
+ mutationFn: (e) => _M(e.id, e.enabled),
onSuccess: (e, t) => {
- fM(t.id, { enabled: t.enabled }), E("");
+ wM(t.id, { enabled: t.enabled }), E("");
},
onError: (e) => E(U(e))
}), te = (e) => void b({
@@ -43792,7 +43792,7 @@ function Ape(e) {
}), ne = Qn({
mutationFn: async (e) => {
let t = await d(e.ids, 4, async (t) => {
- e.action === "remove" ? await oM(t) : await aM(t, e.action === "enabled");
+ e.action === "remove" ? await vM(t) : await _M(t, e.action === "enabled");
});
return {
...e,
@@ -43801,9 +43801,9 @@ function Ape(e) {
};
},
onSuccess: (e) => {
- if (e.action === "remove") pM(e.done);
- else for (let t of e.done) fM(t, { enabled: e.action === "enabled" });
- m(tM(s, e.done, !1));
+ if (e.action === "remove") TM(e.done);
+ else for (let t of e.done) wM(t, { enabled: e.action === "enabled" });
+ m(pM(s, e.done, !1));
let t = e.results.filter((e) => !e.ok);
if (t.length) {
E(`${t.length}/${e.ids.length} 个来源未更新:${U(t[0]?.error)}`);
@@ -43816,18 +43816,18 @@ function Ape(e) {
onError: (e) => E(U(e))
}), re = Qn({
mutationFn: async (e) => {
- let t = ((await Iue()).groups || []).flatMap((e) => [
+ let t = ((await wue()).groups || []).flatMap((e) => [
e.primary,
...e.variants,
...e.duplicates
]).filter((e) => e.status === "new").map((e) => e.id);
return {
ids: t,
- failed: (await d(t, 6, (t) => Fue(t, e))).filter((e) => !e.ok)
+ failed: (await d(t, 6, (t) => Cue(t, e))).filter((e) => !e.ok)
};
},
onSuccess: (e) => {
- if (mM(), e.failed.length) {
+ if (EM(), e.failed.length) {
E(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);
return;
}
@@ -43852,12 +43852,12 @@ function Ape(e) {
readOnly: c
};
let oe = ae.current, se = (0, R.useMemo)(() => {
- let e = iN(), t = (e) => () => Dpe[e] || e;
+ let e = RN(), t = (e) => () => Epe[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, z.jsx)(VO, {
+ cell: (e) => /* @__PURE__ */ (0, z.jsx)(xk, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -43869,7 +43869,7 @@ function Ape(e) {
header: t("author"),
cell: (e) => /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(ZM, {
+ children: [/* @__PURE__ */ (0, z.jsx)(jN, {
group: e.row.original.group,
name: e.row.original.author
}), /* @__PURE__ */ (0, z.jsx)("span", {
@@ -43883,7 +43883,7 @@ function Ape(e) {
header: t("source"),
cell: (e) => /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, z.jsx)($M, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, z.jsx)("small", {
+ children: [/* @__PURE__ */ (0, z.jsx)(NN, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, z.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.row.original.source.last_error
}) : null]
@@ -43894,18 +43894,18 @@ function Ape(e) {
header: t("provider"),
cell: (e) => /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, z.jsx)(XM, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
+ children: [/* @__PURE__ */ (0, z.jsx)(AN, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, z.jsx)(QM, { source: e.row.original.source })
+ cell: (e) => /* @__PURE__ */ (0, z.jsx)(MN, { source: e.row.original.source })
}),
e.accessor((e) => e.source.last_checked_at || "", {
id: "checked",
header: t("checked"),
- cell: (e) => hM(e.row.original.source)
+ cell: (e) => AM(e.row.original.source)
}),
e.display({
id: "actions",
@@ -43913,7 +43913,7 @@ function Ape(e) {
cell: (e) => /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, z.jsx)(YN, {
+ /* @__PURE__ */ (0, z.jsx)(kP, {
"aria-label": `启用 ${e.row.original.source.label}`,
isSelected: e.row.original.source.enabled,
isDisabled: oe.readOnly,
@@ -43943,12 +43943,12 @@ function Ape(e) {
})
];
}, [oe]), ce = (0, R.useMemo)(() => {
- let e = Tpe[n];
+ let e = wpe[n];
return e ? [{
id: e,
desc: r === "desc"
}] : [];
- }, [n, r]), le = (0, R.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), ue = a === "table", L = $j(ue ? O.length : D.length, o, i), de = JN({
+ }, [n, r]), le = (0, R.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), ue = a === "table", L = dM(ue ? O.length : D.length, o, i), de = OP({
data: O,
columns: se,
getRowId: (e) => String(e.source.id),
@@ -43965,7 +43965,7 @@ function Ape(e) {
onSortingChange: (e) => {
let t = (typeof e == "function" ? e(ce) : e)[0];
if (!t) return;
- let n = Hj[t.id];
+ let n = eM[t.id];
n && l(n, t.desc ? "desc" : "asc");
},
onRowSelectionChange: (e) => {
@@ -43979,9 +43979,9 @@ function Ape(e) {
}, n = typeof e == "function" ? e(t) : e;
n.pageSize === o ? n.pageIndex !== t.pageIndex && u(n.pageIndex + 1) : p(n.pageSize);
},
- getCoreRowModel: GN(),
- getPaginationRowModel: KN()
- }), fe = de.getRowModel().rows, pe = ue ? fe.map((e) => e.original.source.id) : D.slice(L.start, L.end).flatMap((e) => e.map((e) => e.id)), me = eM(s, pe), he = [...s], ge = Vue(j), _e = Hue(j), ve = D.length > 0 && x.size >= D.length;
+ getCoreRowModel: TP(),
+ getPaginationRowModel: EP()
+ }), fe = de.getRowModel().rows, pe = ue ? fe.map((e) => e.original.source.id) : D.slice(L.start, L.end).flatMap((e) => e.map((e) => e.id)), me = fM(s, pe), he = [...s], ge = OM(j), _e = kM(j), ve = D.length > 0 && x.size >= D.length;
return _.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: Yi({
padding: "none",
@@ -44018,27 +44018,27 @@ function Ape(e) {
variant: "ghost",
iconOnly: !0,
leadingIcon: ut,
- "aria-label": Bj[0][1],
+ "aria-label": Qj[0][1],
"aria-pressed": !ue,
onClick: () => f("default")
}), /* @__PURE__ */ (0, z.jsx)(H, {
variant: "ghost",
iconOnly: !0,
leadingIcon: gt,
- "aria-label": Bj[1][1],
+ "aria-label": Qj[1][1],
"aria-pressed": ue,
onClick: () => f("table")
})]
}),
- /* @__PURE__ */ (0, z.jsx)(PO, {
+ /* @__PURE__ */ (0, z.jsx)(mk, {
"aria-label": "关注列表排序",
selectedKey: n,
onSelectionChange: (e) => {
if (e === null) return;
let t = String(e);
- l(t, Dj[t]);
+ l(t, zj[t]);
},
- children: Ej.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(FO, {
+ children: Rj.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(hk, {
id: e,
children: t
}, e))
@@ -44047,7 +44047,7 @@ function Ape(e) {
variant: "secondary",
iconOnly: !0,
leadingIcon: r === "asc" ? Ge : Ve,
- "aria-label": Cue(n, r),
+ "aria-label": due(n, r),
onClick: () => l(n, r === "asc" ? "desc" : "asc")
}),
ue ? null : /* @__PURE__ */ (0, z.jsx)(H, {
@@ -44064,7 +44064,7 @@ function Ape(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- A ? /* @__PURE__ */ (0, z.jsx)(gO, {
+ A ? /* @__PURE__ */ (0, z.jsx)(YO, {
embedded: !0,
label: k?.message || (k?.total ? `${k.older ? "抓取历史" : "检查更新"}:已完成 ${k.checked || 0}/${k.total} 个来源` : "正在准备检查任务"),
value: k?.checked,
@@ -44090,7 +44090,7 @@ function Ape(e) {
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsxs)(FF, {
+ /* @__PURE__ */ (0, z.jsxs)(IF, {
label: "关注来源批量操作",
visible: he.length > 0,
count: `已选 ${he.length} 个来源`,
@@ -44150,10 +44150,10 @@ function Ape(e) {
})
]
}),
- ue ? /* @__PURE__ */ (0, z.jsx)(WO, {
+ ue ? /* @__PURE__ */ (0, z.jsx)(wk, {
follow: !0,
onRowClick: (e) => P(Number(e), !s.has(Number(e))),
- children: /* @__PURE__ */ (0, z.jsxs)(HO, {
+ children: /* @__PURE__ */ (0, z.jsxs)(Sk, {
"aria-label": "关注来源",
size: "sm",
sortDescriptor: ce[0] ? {
@@ -44164,9 +44164,9 @@ function Ape(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, z.jsx)(bS, { children: de.getHeaderGroups()[0].headers.map((e) => {
- let t = e.column.id in Hj, n = qN(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, z.jsx)(xS, {
+ children: [/* @__PURE__ */ (0, z.jsx)(MS, { children: de.getHeaderGroups()[0].headers.map((e) => {
+ let t = e.column.id in eM, n = DP(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, z.jsx)(NS, {
id: e.id,
allowsSorting: t,
isRowHeader: e.column.id === "source",
@@ -44175,20 +44175,20 @@ function Ape(e) {
children: [n, /* @__PURE__ */ (0, z.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": e || void 0,
- children: /* @__PURE__ */ (0, z.jsx)(vse, {})
+ children: /* @__PURE__ */ (0, z.jsx)(Roe, {})
})]
}) : /* @__PURE__ */ (0, z.jsx)(Mh, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, z.jsx)(CS, {
+ }) }), /* @__PURE__ */ (0, z.jsx)(FS, {
renderEmptyState: () => "这一页没有来源",
- children: fe.map((e) => /* @__PURE__ */ (0, z.jsx)(ES, {
+ children: fe.map((e) => /* @__PURE__ */ (0, z.jsx)(RS, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, z.jsx)(OS, { children: qN(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, z.jsx)(BS, { children: DP(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
- }) : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(VO, {
+ }) : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(xk, {
isSelected: me.all,
isIndeterminate: me.some,
onChange: (e) => ee(pe, e),
@@ -44198,9 +44198,9 @@ function Ape(e) {
className: "flex flex-col gap-3",
children: D.slice(L.start, L.end).map((e) => {
let t = String(e[0].author_key || e[0].id);
- return /* @__PURE__ */ (0, z.jsx)(kpe, {
+ return /* @__PURE__ */ (0, z.jsx)(Ope, {
group: e,
- name: Yj(e, v),
+ name: sM(e, v),
handlers: oe,
selected: s,
open: !x.has(t),
@@ -44220,19 +44220,19 @@ function Ape(e) {
className: "text-body-2-regular text-text-secondary",
children: `${L.start + 1}–${L.end} / ${L.total} ${ue ? "个来源" : "位创作者"}`
}),
- /* @__PURE__ */ (0, z.jsx)(PO, {
+ /* @__PURE__ */ (0, z.jsx)(mk, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(o),
onSelectionChange: (e) => {
e !== null && de.setPageSize(Number(e));
},
- children: Vj.map((e) => /* @__PURE__ */ (0, z.jsx)(FO, {
+ children: $j.map((e) => /* @__PURE__ */ (0, z.jsx)(hk, {
id: String(e),
children: `每页 ${e} ${ue ? "条" : "位"}`
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)(LF, {
+ /* @__PURE__ */ (0, z.jsx)(RF, {
page: L.page,
pages: L.pages,
onPage: (e) => de.setPageIndex(e - 1)
@@ -44296,7 +44296,7 @@ function Ape(e) {
}
//#endregion
//#region src/react/follow-manage/feed-sources.tsx
-var jpe = {
+var Ape = {
select: "选择",
name: "名称",
kind: "类型",
@@ -44306,18 +44306,18 @@ var jpe = {
fetched: "上次拉取",
fresh: "上次新增",
actions: "操作"
-}, Mpe = /* @__PURE__ */ new Set(["select", "actions"]), RF = () => J.invalidateQueries({
- queryKey: zj,
+}, jpe = /* @__PURE__ */ new Set(["select", "actions"]), zF = () => J.invalidateQueries({
+ queryKey: Zj,
exact: !0
-}), zF = (e) => e.name || e.url, Npe = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
-function Ppe(e) {
+}), BF = (e) => e.name || e.url, Mpe = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
+function Npe(e) {
try {
return new URL(e).hostname.replace(/^www\./, "");
} catch {
return e;
}
}
-function Fpe({ source: e }) {
+function Ppe({ source: e }) {
return e.last_error ? /* @__PURE__ */ (0, z.jsx)(Li, {
variant: "caption",
color: "rose",
@@ -44332,7 +44332,7 @@ function Fpe({ source: e }) {
children: "已暂停"
});
}
-function Ipe({ source: e, avatarInner: t }) {
+function Fpe({ source: e, avatarInner: t }) {
let n = e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
@@ -44340,31 +44340,31 @@ function Ipe({ source: e, avatarInner: t }) {
} : null;
return /* @__PURE__ */ (0, z.jsx)("span", {
"aria-hidden": !0,
- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${XN}`,
- dangerouslySetInnerHTML: { __html: t(zF(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 ${AP}`,
+ dangerouslySetInnerHTML: { __html: t(BF(e), n, null, "performer") }
});
}
-var Lpe = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
-function Rpe(e) {
+var Ipe = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
+function Lpe(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 BF(e, t) {
+function VF(e, t) {
let n = e.length === 1 ? e[0] : null;
return b({
title: n ? "移除订阅源" : `移除 ${e.length} 条订阅源`,
- body: n ? `将移除订阅源「${zF(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
+ body: n ? `将移除订阅源「${BF(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
confirmLabel: n ? "移除订阅源" : "移除所选订阅源",
danger: !0,
onConfirm: t
});
}
-function zpe({ readOnly: e, toast: t, avatarInner: n }) {
+function Rpe({ readOnly: e, toast: t, avatarInner: n }) {
let r = Zn({
- queryKey: zj,
- queryFn: ({ signal: e }) => cM(e)
- }), i = ra(), a = r.data, o = (0, R.useMemo)(() => a?.sources ?? [], [a]), [s, c] = (0, R.useState)(/* @__PURE__ */ new Set()), [l, u] = (0, R.useState)(1), [f, p] = (0, R.useState)(20), m = $j(o.length, f, l);
+ queryKey: Zj,
+ queryFn: ({ signal: e }) => bM(e)
+ }), i = ra(), a = r.data, o = (0, R.useMemo)(() => a?.sources ?? [], [a]), [s, c] = (0, R.useState)(/* @__PURE__ */ new Set()), [l, u] = (0, R.useState)(1), [f, p] = (0, R.useState)(20), m = dM(o.length, f, l);
(0, R.useEffect)(() => {
u((e) => Math.min(e, m.pages));
}, [m.pages]), (0, R.useEffect)(() => {
@@ -44376,7 +44376,7 @@ function zpe({ readOnly: e, toast: t, avatarInner: n }) {
let h = Qn({
mutationFn: async (e) => {
let t = await d(e.ids, 4, async (t) => {
- e.action === "remove" ? await uM(t) : await lM(t, e.action === "enabled");
+ e.action === "remove" ? await SM(t) : await xM(t, e.action === "enabled");
});
return {
...e,
@@ -44385,13 +44385,13 @@ function zpe({ 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()), RF(), e.action === "remove" && r && t(`已移除 ${r} 条订阅源`), n.length) {
+ if (c(/* @__PURE__ */ new Set()), zF(), e.action === "remove" && r && t(`已移除 ${r} 条订阅源`), n.length) {
let e = n[0];
i.setError(`${n.length} 条没有写入:${e.ok ? "" : U(e.error)}`);
}
},
onError: (e) => i.setError(U(e))
- }), g = (0, R.useMemo)(() => Rpe(o), [o]), _ = (0, R.useRef)({
+ }), g = (0, R.useMemo)(() => Lpe(o), [o]), _ = (0, R.useRef)({
readOnly: e,
avatarInner: n,
shared: g,
@@ -44405,34 +44405,34 @@ function zpe({ readOnly: e, toast: t, avatarInner: n }) {
avatarInner: n,
shared: g,
busy: i.busy,
- toggle: (e, t) => void i.run(`enabled-${e.id}`, (n) => lM(e.id, t, n), () => void RF()),
- fetch: (e) => void i.run(`check-${e.id}`, (t) => dM(t, [e.id]), () => void RF()),
- remove: (e) => void BF([e], async () => {
- await uM(e.id), t(`已移除订阅源「${zF(e)}」`), RF();
+ toggle: (e, t) => void i.run(`enabled-${e.id}`, (n) => xM(e.id, t, n), () => void zF()),
+ fetch: (e) => void i.run(`check-${e.id}`, (t) => CM(t, [e.id]), () => void zF()),
+ remove: (e) => void VF([e], async () => {
+ await SM(e.id), t(`已移除订阅源「${BF(e)}」`), zF();
})
};
let v = (0, R.useMemo)(() => {
- let e = iN(), t = (e) => () => jpe[e] || e;
+ let e = RN(), t = (e) => () => Ape[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, z.jsx)(VO, {
+ cell: (e) => /* @__PURE__ */ (0, z.jsx)(xk, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
- "aria-label": `选择 ${zF(e.row.original)}`
+ "aria-label": `选择 ${BF(e.row.original)}`
})
}),
- e.accessor(zF, {
+ e.accessor(BF, {
id: "name",
header: t("name"),
cell: (e) => {
- let t = Lpe(e.row.original, _.current.shared);
+ let t = Ipe(e.row.original, _.current.shared);
return /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",
children: [
- /* @__PURE__ */ (0, z.jsx)(Ipe, {
+ /* @__PURE__ */ (0, z.jsx)(Fpe, {
source: e.row.original,
avatarInner: _.current.avatarInner
}),
@@ -44463,15 +44463,15 @@ function zpe({ readOnly: e, toast: t, avatarInner: n }) {
rel: "noreferrer noopener",
title: "打开来源页面",
className: "text-text-primary underline-offset-2 hover:underline",
- children: Ppe(e.getValue())
+ children: Npe(e.getValue())
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, z.jsx)(Fpe, { source: e.row.original })
+ cell: (e) => /* @__PURE__ */ (0, z.jsx)(Ppe, { source: e.row.original })
}),
- e.accessor((e) => Npe(e.interval_minutes), {
+ e.accessor((e) => Mpe(e.interval_minutes), {
id: "interval",
header: t("interval"),
cell: (e) => /* @__PURE__ */ (0, z.jsx)("span", {
@@ -44501,8 +44501,8 @@ function zpe({ readOnly: e, toast: t, avatarInner: n }) {
cell: (e) => /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, z.jsx)(YN, {
- "aria-label": `启用 ${zF(e.row.original)}`,
+ /* @__PURE__ */ (0, z.jsx)(kP, {
+ "aria-label": `启用 ${BF(e.row.original)}`,
isSelected: e.row.original.enabled,
isDisabled: _.current.readOnly,
onChange: (t) => _.current.toggle(e.row.original, t)
@@ -44512,7 +44512,7 @@ function zpe({ readOnly: e, toast: t, avatarInner: n }) {
size: "xs",
iconOnly: !0,
leadingIcon: pt,
- "aria-label": `拉取 ${zF(e.row.original)}`,
+ "aria-label": `拉取 ${BF(e.row.original)}`,
disabled: _.current.readOnly,
...q(_.current.busy === `check-${e.row.original.id}`),
onClick: () => _.current.fetch(e.row.original)
@@ -44522,7 +44522,7 @@ function zpe({ readOnly: e, toast: t, avatarInner: n }) {
size: "xs",
iconOnly: !0,
leadingIcon: Qe,
- "aria-label": `移除 ${zF(e.row.original)}`,
+ "aria-label": `移除 ${BF(e.row.original)}`,
disabled: _.current.readOnly,
onClick: () => _.current.remove(e.row.original)
})
@@ -44530,7 +44530,7 @@ function zpe({ readOnly: e, toast: t, avatarInner: n }) {
})
})
];
- }, []), y = (0, R.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), b = JN({
+ }, []), y = (0, R.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), b = OP({
data: o,
columns: v,
getRowId: (e) => String(e.id),
@@ -44546,24 +44546,24 @@ function zpe({ readOnly: e, toast: t, avatarInner: n }) {
let t = typeof e == "function" ? e(y) : e;
c(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));
},
- getCoreRowModel: GN(),
- getPaginationRowModel: KN()
+ getCoreRowModel: TP(),
+ getPaginationRowModel: EP()
});
if (!a) return r.error ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "打不开订阅源",
children: U(r.error)
- }) : /* @__PURE__ */ (0, z.jsx)(CO, { children: "正在读订阅源。" });
- let x = () => void i.run("check", (e) => dM(e), () => void RF()), S = (e) => c((t) => {
+ }) : /* @__PURE__ */ (0, z.jsx)(rk, { children: "正在读订阅源。" });
+ let x = () => void i.run("check", (e) => CM(e), () => void zF()), S = (e) => c((t) => {
let n = new Set(t);
return n.has(e) ? n.delete(e) : n.add(e), n;
}), C = o.filter((e) => s.has(e.id)), w = o.filter((e) => e.last_error);
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, z.jsx)(wpe, {
+ children: [/* @__PURE__ */ (0, z.jsx)(Cpe, {
readOnly: e,
toast: t,
- onAdded: () => void RF()
+ onAdded: () => void zF()
}), /* @__PURE__ */ (0, z.jsxs)("section", {
"aria-label": "JAV 订阅列表",
className: Yi({
@@ -44594,11 +44594,11 @@ function zpe({ readOnly: e, toast: t, avatarInner: n }) {
className: "flex flex-col gap-3",
children: [w.map((e) => /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
- title: `${zF(e)} 拉取失败`,
+ title: `${BF(e)} 拉取失败`,
children: e.last_error
- }, e.id)), i.error ? /* @__PURE__ */ (0, z.jsx)(wO, { children: i.error }) : null]
+ }, e.id)), i.error ? /* @__PURE__ */ (0, z.jsx)(ik, { children: i.error }) : null]
}) : null,
- /* @__PURE__ */ (0, z.jsxs)(FF, {
+ /* @__PURE__ */ (0, z.jsxs)(IF, {
visible: C.length > 0,
label: "订阅源批量操作",
count: `已选 ${C.length} 条订阅源`,
@@ -44630,7 +44630,7 @@ function zpe({ readOnly: e, toast: t, avatarInner: n }) {
size: "small",
disabled: e,
...q(h.isPending),
- onClick: () => void BF(C, () => h.mutateAsync({
+ onClick: () => void VF(C, () => h.mutateAsync({
ids: C.map((e) => e.id),
action: "remove"
})),
@@ -44644,22 +44644,22 @@ function zpe({ readOnly: e, toast: t, avatarInner: n }) {
})
]
}),
- o.length ? /* @__PURE__ */ (0, z.jsx)(WO, {
+ o.length ? /* @__PURE__ */ (0, z.jsx)(wk, {
onRowClick: (e) => S(Number(e)),
- children: /* @__PURE__ */ (0, z.jsxs)(HO, {
+ children: /* @__PURE__ */ (0, z.jsxs)(Sk, {
"aria-label": "JAV 订阅源",
size: "sm",
- children: [/* @__PURE__ */ (0, z.jsx)(bS, { children: b.getHeaderGroups()[0].headers.map((e) => {
- let t = qN(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, z.jsx)(xS, {
+ children: [/* @__PURE__ */ (0, z.jsx)(MS, { children: b.getHeaderGroups()[0].headers.map((e) => {
+ let t = DP(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, z.jsx)(NS, {
id: e.id,
isRowHeader: e.column.id === "name",
- children: Mpe.has(e.column.id) ? /* @__PURE__ */ (0, z.jsx)(Mh, { children: t }) : t
+ children: jpe.has(e.column.id) ? /* @__PURE__ */ (0, z.jsx)(Mh, { children: t }) : t
}, e.id);
- }) }), /* @__PURE__ */ (0, z.jsx)(CS, { children: b.getRowModel().rows.map((e) => /* @__PURE__ */ (0, z.jsx)(ES, {
+ }) }), /* @__PURE__ */ (0, z.jsx)(FS, { children: b.getRowModel().rows.map((e) => /* @__PURE__ */ (0, z.jsx)(RS, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, z.jsx)(OS, { children: qN(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, z.jsx)(BS, { children: DP(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id)) })]
})
}) : /* @__PURE__ */ (0, z.jsx)(Zi, {
@@ -44675,19 +44675,19 @@ function zpe({ readOnly: e, toast: t, avatarInner: n }) {
className: "text-body-2-regular text-text-secondary",
children: `${m.start + 1}–${m.end} / ${m.total} 个订阅源`
}),
- /* @__PURE__ */ (0, z.jsx)(PO, {
+ /* @__PURE__ */ (0, z.jsx)(mk, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(f),
onSelectionChange: (e) => {
e !== null && (p(Number(e)), u(1));
},
- children: Vj.map((e) => /* @__PURE__ */ (0, z.jsx)(FO, {
+ children: $j.map((e) => /* @__PURE__ */ (0, z.jsx)(hk, {
id: String(e),
children: `每页 ${e} 条`
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)(LF, {
+ /* @__PURE__ */ (0, z.jsx)(RF, {
label: "JAV 订阅分页",
page: m.page,
pages: m.pages,
@@ -44709,13 +44709,13 @@ function zpe({ readOnly: e, toast: t, avatarInner: n }) {
}
//#endregion
//#region src/react/follow-manage/follow-manage-page.tsx
-var VF = [
+var HF = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "JAV 订阅源"],
["source", "来源和凭证"]
-], HF = (e) => VF.some(([t]) => t === e);
-function UF({ term: e, figure: t, unit: n }) {
+], UF = (e) => HF.some(([t]) => t === e);
+function WF({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: Yi({
padding: "none",
@@ -44733,23 +44733,23 @@ function UF({ term: e, figure: t, unit: n }) {
})]
});
}
-function Bpe(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, R.useState)(HF(e.tab) ? e.tab : "list"), [u, d] = (0, R.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, R.useState)(() => Oj(e.sort, e.dir).sort), [m, h] = (0, R.useState)(() => Oj(e.sort, e.dir).dir), [g, _] = (0, R.useState)(bue(e.layout) ? e.layout : "default"), [v, y] = (0, R.useState)(xue(e.pageSize)), [b, x] = (0, R.useState)(/* @__PURE__ */ new Set()), S = Zn({
- queryKey: Lj,
- queryFn: ({ signal: e }) => nM(e)
+function zpe(e) {
+ let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, R.useState)(UF(e.tab) ? e.tab : "list"), [u, d] = (0, R.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, R.useState)(() => Bj(e.sort, e.dir).sort), [m, h] = (0, R.useState)(() => Bj(e.sort, e.dir).dir), [g, _] = (0, R.useState)(cue(e.layout) ? e.layout : "default"), [v, y] = (0, R.useState)(lue(e.pageSize)), [b, x] = (0, R.useState)(/* @__PURE__ */ new Set()), S = Zn({
+ queryKey: Yj,
+ queryFn: ({ signal: e }) => mM(e)
}), C = Zn({
- queryKey: Rj,
- queryFn: ({ signal: e }) => rM(e)
+ queryKey: Xj,
+ queryFn: ({ signal: e }) => hM(e)
}), w = Zn({
- queryKey: zj,
- queryFn: ({ signal: e }) => cM(e)
+ queryKey: Zj,
+ queryFn: ({ signal: e }) => bM(e)
}), T = S.data || { sources: [] }, E = C.data || {
root: "",
providers: []
}, D = T.sources;
(0, R.useEffect)(() => {
x((e) => {
- let t = Due(e, D);
+ let t = hue(e, D);
return t.size === e.size ? e : t;
});
}, [D]);
@@ -44759,9 +44759,9 @@ function Bpe(e) {
tab: e.tab ?? c,
page: e.page ?? u,
sort: n === "checked" ? "" : n,
- dir: r === Dj[n] ? "" : r
+ dir: r === zj[n] ? "" : r
});
- }, k = Qj(D), A = D.filter(Wj).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !_M(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
+ }, k = uM(D), A = D.filter(nM).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !PM(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
return /* @__PURE__ */ (0, z.jsxs)($i, { children: [
a ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "warning",
@@ -44780,61 +44780,61 @@ function Bpe(e) {
className: nu,
"aria-label": "关注概览",
children: [
- /* @__PURE__ */ (0, z.jsx)(UF, {
+ /* @__PURE__ */ (0, z.jsx)(WF, {
term: "关注创作者",
figure: k.length,
unit: "位"
}),
- /* @__PURE__ */ (0, z.jsx)(UF, {
+ /* @__PURE__ */ (0, z.jsx)(WF, {
term: "启用来源",
figure: j,
unit: `/ ${D.length}`
}),
- /* @__PURE__ */ (0, z.jsx)(UF, {
+ /* @__PURE__ */ (0, z.jsx)(WF, {
term: "检查失败",
figure: A,
unit: "个来源"
}),
- /* @__PURE__ */ (0, z.jsx)(UF, {
+ /* @__PURE__ */ (0, z.jsx)(WF, {
term: "未看更新",
figure: T.counts?.new || 0,
unit: "条"
}),
- /* @__PURE__ */ (0, z.jsx)(UF, {
+ /* @__PURE__ */ (0, z.jsx)(WF, {
term: "JAV 订阅",
figure: N,
unit: "位"
}),
- /* @__PURE__ */ (0, z.jsx)(UF, {
+ /* @__PURE__ */ (0, z.jsx)(WF, {
term: "未看新作",
figure: w.data?.unread || 0,
unit: "条"
})
]
}),
- /* @__PURE__ */ (0, z.jsxs)(PS, {
+ /* @__PURE__ */ (0, z.jsxs)(KS, {
selectedKey: c,
onSelectionChange: (e) => {
let t = String(e);
- HF(t) && (l(t), O({ tab: t }));
+ UF(t) && (l(t), O({ tab: t }));
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, z.jsx)(FS, {
+ /* @__PURE__ */ (0, z.jsx)(qS, {
"aria-label": "关注管理区域",
"data-section-nav": !0,
"data-section-items": !0,
className: "flex max-w-full flex-nowrap overflow-x-auto",
- children: VF.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(IS, {
+ children: HF.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(JS, {
id: e,
className: "cursor-pointer whitespace-nowrap",
children: e === "source" && M ? `${t}(${M})` : t
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)(LS, {
+ /* @__PURE__ */ (0, z.jsx)(YS, {
id: "list",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, z.jsx)(Ape, {
+ children: /* @__PURE__ */ (0, z.jsx)(kpe, {
data: T,
sort: f,
dir: m,
@@ -44864,10 +44864,10 @@ function Bpe(e) {
}
})
}),
- /* @__PURE__ */ (0, z.jsxs)(LS, {
+ /* @__PURE__ */ (0, z.jsxs)(YS, {
id: "add",
className: "flex flex-col gap-8",
- children: [/* @__PURE__ */ (0, z.jsx)(Ide, {
+ children: [/* @__PURE__ */ (0, z.jsx)(nde, {
data: T,
credentials: E,
readOnly: a,
@@ -44875,7 +44875,7 @@ function Bpe(e) {
openCredentials: () => {
l("source"), O({ tab: "source" });
}
- }), /* @__PURE__ */ (0, z.jsx)(zde, {
+ }), /* @__PURE__ */ (0, z.jsx)(ade, {
groups: T.author_aliases || [],
readOnly: a,
toast: r,
@@ -44883,19 +44883,19 @@ function Bpe(e) {
sources: T.sources
})]
}),
- /* @__PURE__ */ (0, z.jsx)(LS, {
+ /* @__PURE__ */ (0, z.jsx)(YS, {
id: "feeds",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, z.jsx)(zpe, {
+ children: /* @__PURE__ */ (0, z.jsx)(Rpe, {
readOnly: a,
toast: r,
avatarInner: e.avatarInner
})
}),
- /* @__PURE__ */ (0, z.jsx)(LS, {
+ /* @__PURE__ */ (0, z.jsx)(YS, {
id: "source",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, z.jsx)(Jde, {
+ children: /* @__PURE__ */ (0, z.jsx)(mde, {
data: E,
readOnly: a,
toast: r
@@ -44907,23 +44907,23 @@ function Bpe(e) {
}
//#endregion
//#region src/react/index/index-tags.tsx
-var WF = () => /* @__PURE__ */ (0, z.jsx)("span", {
+var GF = () => /* @__PURE__ */ (0, z.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
});
-function Vpe({ tag: e, actions: t }) {
+function Bpe({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": vA(t.online, e.cat),
+ "data-tag-cat": qA(t.online, e.cat),
"aria-pressed": n,
onClick: () => t.press(e.k),
className: "flex h-9 min-w-0 cursor-pointer items-center gap-2.25 rounded-lg px-2.5 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [
- /* @__PURE__ */ (0, z.jsx)(WF, {}),
+ /* @__PURE__ */ (0, z.jsx)(GF, {}),
/* @__PURE__ */ (0, z.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -44935,7 +44935,7 @@ function Vpe({ tag: e, actions: t }) {
]
});
}
-function Hpe({ groups: e, actions: t }) {
+function Vpe({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
@@ -44948,10 +44948,10 @@ function Hpe({ groups: e, actions: t }) {
}),
children: [/* @__PURE__ */ (0, z.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, z.jsx)(Lk, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, z.jsx)(pA, { value: n.length })]
}), /* @__PURE__ */ (0, z.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, z.jsx)(Vpe, {
+ children: n.map((e) => /* @__PURE__ */ (0, z.jsx)(Bpe, {
tag: e,
actions: t
}, e.k))
@@ -44959,8 +44959,8 @@ function Hpe({ groups: e, actions: t }) {
}, e))
});
}
-var Upe = "\xA0";
-function Wpe({ tags: e, actions: t }) {
+var Hpe = "\xA0";
+function Upe({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
@@ -44968,11 +44968,11 @@ function Wpe({ tags: e, actions: t }) {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": vA(t.online, e.cat),
+ "data-tag-cat": qA(t.online, e.cat),
"aria-pressed": t.picked.has(e.k),
onClick: () => t.press(e.k),
className: "inline-flex cursor-pointer items-center rounded-lg border px-3 py-1.25 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [e.label + Upe, /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [e.label + Hpe, /* @__PURE__ */ (0, z.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
children: e.n.toLocaleString()
@@ -44980,7 +44980,7 @@ function Wpe({ tags: e, actions: t }) {
}, e.k))
});
}
-var Gpe = [[
+var Wpe = [[
"cloud",
"标签云",
"tags"
@@ -44989,16 +44989,16 @@ var Gpe = [[
"字母表",
"text-aa"
]];
-function Kpe({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
- return /* @__PURE__ */ (0, z.jsx)(pk, {
+function Gpe({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
+ return /* @__PURE__ */ (0, z.jsx)(Gk, {
label: "标签筛选",
topLabel: "标签类型",
- top: e.map(([e, r]) => /* @__PURE__ */ (0, z.jsxs)(mk, {
+ top: e.map(([e, r]) => /* @__PURE__ */ (0, z.jsxs)(Kk, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : vA(n, e),
+ "data-tag-cat": e === "all" ? "all" : qA(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, z.jsx)(WF, {}), r]
+ children: [/* @__PURE__ */ (0, z.jsx)(GF, {}), r]
}, e)),
bottom: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsx)("span", {
@@ -45017,19 +45017,19 @@ function Kpe({ categories: e, category: t, online: n, readout: r, letters: i, vi
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, z.jsx)(ux, {
+ /* @__PURE__ */ (0, z.jsx)(Sx, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${Tk}`,
- children: Gpe.map(([e, t, n]) => {
+ className: `ml-auto ${rA}`,
+ children: Wpe.map(([e, t, n]) => {
let r = wo(n);
- return /* @__PURE__ */ (0, z.jsx)(dx, {
+ return /* @__PURE__ */ (0, z.jsx)(Cx, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: Ek,
+ className: iA,
children: /* @__PURE__ */ (0, z.jsx)("span", {
title: t,
className: "contents",
@@ -45041,13 +45041,13 @@ function Kpe({ categories: e, category: t, online: n, readout: r, letters: i, vi
] })
});
}
-function qpe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, z.jsxs)(FF, {
+function Kpe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, z.jsxs)(IF, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e} 个标签`,
children: [
- /* @__PURE__ */ (0, z.jsx)(VO, {
+ /* @__PURE__ */ (0, z.jsx)(xk, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, z.jsxs)("span", {
@@ -45079,7 +45079,7 @@ function qpe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
}
//#endregion
//#region src/react/index/index-page.tsx
-var Jpe = [{
+var qpe = [{
value: "studios",
label: "厂牌",
symbol: "clapperboard"
@@ -45087,7 +45087,7 @@ var Jpe = [{
value: "agencies",
label: "事务所",
symbol: "briefcase"
-}], GF = [{
+}], KF = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -45095,7 +45095,7 @@ var Jpe = [{
value: "online",
label: "在线",
symbol: "rss"
-}], Ype = {
+}], Jpe = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -45115,20 +45115,20 @@ var Jpe = [{
"layout-grid"
]]
};
-function Xpe({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, z.jsx)(Sk, {
- "aria-label": `${sA[e]}索引版式`,
+function Ype({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, z.jsx)(eA, {
+ "aria-label": `${IA[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none max-board-narrow:order-3 ${Ck}`,
- children: Ype[fA(e) ? "company" : "people"].map(([e, t, n]) => {
+ className: `flex-none max-board-narrow:order-3 ${tA}`,
+ children: Jpe[VA(e) ? "company" : "people"].map(([e, t, n]) => {
let r = wo(n);
- return /* @__PURE__ */ (0, z.jsx)(dx, {
+ return /* @__PURE__ */ (0, z.jsx)(Cx, {
value: e,
"aria-label": t,
- className: _ce,
+ className: zse,
children: /* @__PURE__ */ (0, z.jsx)("span", {
title: t,
className: "contents",
@@ -45138,8 +45138,8 @@ function Xpe({ kind: e, layout: t, onChange: n }) {
})
});
}
-var Zpe = wo("search");
-function Qpe({ label: e, value: t, onQuery: n }) {
+var Xpe = wo("search");
+function Zpe({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, R.useState)(t), a = (0, R.useRef)(!1), o = (0, R.useRef)(void 0);
(0, R.useEffect)(() => () => clearTimeout(o.current), []);
let s = (e) => {
@@ -45154,15 +45154,15 @@ function Qpe({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, z.jsx)(XO, {
+ children: /* @__PURE__ */ (0, z.jsx)(Ak, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, z.jsx)(QO, {
+ children: /* @__PURE__ */ (0, z.jsx)(Mk, {
type: "search",
- leadingIcon: Zpe,
+ leadingIcon: Xpe,
spellCheck: !1,
autoComplete: "off",
onKeyDown: (e) => {
@@ -45172,14 +45172,14 @@ function Qpe({ label: e, value: t, onQuery: n }) {
})
});
}
-function $pe(e) {
- let [t, n] = (0, R.useState)(() => pA({
+function Qpe(e) {
+ let [t, n] = (0, R.useState)(() => HA({
kind: e.kind,
q: e.q,
scope: e.scope,
view: e.view,
category: e.category
- })), [r, i] = (0, R.useState)(e.layout), [a, o] = (0, R.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, R.useState)("any"), l = (0, R.useRef)(null), { kind: u, q: d, scope: f, view: p, category: h } = t, g = sA[u], _ = u === "tags" && f === "online", v = u === "performers" && f === "online";
+ })), [r, i] = (0, R.useState)(e.layout), [a, o] = (0, R.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, R.useState)("any"), l = (0, R.useRef)(null), { kind: u, q: d, scope: f, view: p, category: h } = t, g = IA[u], _ = u === "tags" && f === "online", v = u === "performers" && f === "online";
(0, R.useEffect)(() => {
e.selectMode || o(/* @__PURE__ */ new Set());
}, [e.selectMode]);
@@ -45189,7 +45189,7 @@ function $pe(e) {
...r
};
b(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });
- }, S = _A(mA(t)), C = $n({
+ }, S = KA(UA(t)), C = $n({
queryKey: S.queryKey,
queryFn: ({ pageParam: e, signal: t }) => S.queryFn({
pageParam: e,
@@ -45198,21 +45198,21 @@ function $pe(e) {
initialPageParam: 0,
getNextPageParam: S.getNextPageParam,
placeholderData: y ? Yt : void 0
- }), w = ole(C.data), T = !!C.hasNextPage && !C.isPlaceholderData, E = sle(w.length, !!C.hasNextPage);
+ }), w = jce(C.data), T = !!C.hasNextPage && !C.isPlaceholderData, E = Mce(w.length, !!C.hasNextPage);
(0, R.useLayoutEffect)(() => {
l.current && e.refitImages(l.current);
}, [r]);
let D = (0, R.useMemo)(() => u === "tags" ? w.map((t) => ({
...t,
label: e.tagLabel(t.k)
- })) : [], [w, u]), k = (0, R.useMemo)(() => u === "tags" && p === "alphabet" ? ule(D, (t) => e.tagLabel(t)) : [], [
+ })) : [], [w, u]), k = (0, R.useMemo)(() => u === "tags" && p === "alphabet" ? Fce(D, (t) => e.tagLabel(t)) : [], [
D,
p,
u
]), A = (t) => {
i(t), e.savePreference({ layout: t });
- }, j = u === "tags" ? /* @__PURE__ */ (0, z.jsx)(Rk, {
- tabs: GF,
+ }, j = u === "tags" ? /* @__PURE__ */ (0, z.jsx)(mA, {
+ tabs: KF,
value: f,
label: "词表",
onChange: (e) => {
@@ -45222,15 +45222,15 @@ function $pe(e) {
view: e === "online" ? "alphabet" : p
});
}
- }) : u === "performers" ? /* @__PURE__ */ (0, z.jsx)(Rk, {
- tabs: GF,
+ }) : u === "performers" ? /* @__PURE__ */ (0, z.jsx)(mA, {
+ tabs: KF,
value: f,
label: "名册",
onChange: (t) => {
t === "online" && e.exitSelectMode(), x({ scope: t });
}
- }) : fA(u) ? /* @__PURE__ */ (0, z.jsx)(Rk, {
- tabs: Jpe,
+ }) : VA(u) ? /* @__PURE__ */ (0, z.jsx)(mA, {
+ tabs: qpe,
value: u,
label: "公司类型",
onChange: (e) => x({ kind: e })
@@ -45247,7 +45247,7 @@ function $pe(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
});
- }, N = (_ ? lA : cA).filter(([e]) => e === "all" || Number(C.data?.pages[0]?.categories?.[e] || 0) > 0);
+ }, N = (_ ? RA : LA).filter(([e]) => e === "all" || Number(C.data?.pages[0]?.categories?.[e] || 0) > 0);
return /* @__PURE__ */ (0, z.jsxs)("div", {
ref: l,
"data-index-page": u,
@@ -45262,12 +45262,12 @@ function $pe(e) {
className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: g
}),
- dA(u) ? /* @__PURE__ */ (0, z.jsx)("span", {
+ BA(u) ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
children: C.isPending ? "" : E
}) : null,
- dA(u) ? /* @__PURE__ */ (0, z.jsx)(Xpe, {
+ BA(u) ? /* @__PURE__ */ (0, z.jsx)(Ype, {
kind: u,
layout: r,
onChange: A
@@ -45276,7 +45276,7 @@ function $pe(e) {
"aria-hidden": !0,
className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"
}),
- /* @__PURE__ */ (0, z.jsx)(Qpe, {
+ /* @__PURE__ */ (0, z.jsx)(Zpe, {
label: `过滤${g}`,
value: d,
onQuery: (e) => {
@@ -45286,7 +45286,7 @@ function $pe(e) {
]
}),
j,
- u === "tags" ? /* @__PURE__ */ (0, z.jsx)(Kpe, {
+ u === "tags" ? /* @__PURE__ */ (0, z.jsx)(Gpe, {
categories: N,
category: h,
online: _,
@@ -45321,18 +45321,18 @@ function $pe(e) {
}),
children: m(C.error)
});
- if (!w.length) return /* @__PURE__ */ (0, z.jsx)(tme, {
+ if (!w.length) return /* @__PURE__ */ (0, z.jsx)(eme, {
kind: u,
filtered: !!d || u === "tags" && h !== "all",
online: _ || v,
configurable: e.configurable
});
- if (v) return /* @__PURE__ */ (0, z.jsx)(fle, {
+ if (v) return /* @__PURE__ */ (0, z.jsx)(Lce, {
items: w,
layout: r,
props: e
});
- if (dA(u)) return /* @__PURE__ */ (0, z.jsx)(xA, {
+ if (BA(u)) return /* @__PURE__ */ (0, z.jsx)(XA, {
kind: u,
items: w,
layout: r,
@@ -45343,10 +45343,10 @@ function $pe(e) {
picked: a,
press: M
};
- return p === "alphabet" ? /* @__PURE__ */ (0, z.jsx)(Hpe, {
+ return p === "alphabet" ? /* @__PURE__ */ (0, z.jsx)(Vpe, {
groups: k,
actions: t
- }) : /* @__PURE__ */ (0, z.jsx)(Wpe, {
+ }) : /* @__PURE__ */ (0, z.jsx)(Upe, {
tags: D,
actions: t
});
@@ -45367,7 +45367,7 @@ function $pe(e) {
}) : "载入更多"
})
}) : null,
- u === "tags" && !_ && e.selectMode ? /* @__PURE__ */ (0, z.jsx)(qpe, {
+ u === "tags" && !_ && e.selectMode ? /* @__PURE__ */ (0, z.jsx)(Kpe, {
count: a.size,
match: s,
onMatch: c,
@@ -45380,14 +45380,14 @@ function $pe(e) {
]
});
}
-var eme = {
+var $pe = {
tags: "标签",
performers: "艺人",
creators: "创作者",
studios: "厂牌",
agencies: "事务所"
};
-function tme({ kind: e, filtered: t, online: n, configurable: r }) {
+function eme({ kind: e, filtered: t, online: n, configurable: r }) {
if (t) return /* @__PURE__ */ (0, z.jsx)(Zi, {
icon: wo("search"),
title: "没有符合条件的内容",
@@ -45398,7 +45398,7 @@ function tme({ kind: e, filtered: t, online: n, configurable: r }) {
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : eme[e], a = /* @__PURE__ */ (0, z.jsx)(zi, {
+ let i = n && e === "performers" ? "创作者" : $pe[e], a = /* @__PURE__ */ (0, z.jsx)(zi, {
variant: !r || n ? "primary" : "secondary",
href: "/follow-manage?tab=add",
children: "添加关注"
@@ -45414,15 +45414,15 @@ function tme({ kind: e, filtered: t, online: n, configurable: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var KF = {
+var qF = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, nme = (e) => KF[e.junk_kind || "other"] || KF.other;
-function rme(e) {
+}, tme = (e) => qF[e.junk_kind || "other"] || qF.other;
+function nme(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -45433,21 +45433,21 @@ function rme(e) {
glyph: "check"
};
}
-var qF = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), ime = (e, t) => [
+var JF = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), rme = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function ame({ kind: e, view: t }) {
+function ime({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function ome(e, t) {
- let n = await W(`/api/ads?${ame(e)}`, t);
+async function ame(e, t) {
+ let n = await W(`/api/ads?${ime(e)}`, t);
return {
...n,
items: n.items || []
@@ -45455,19 +45455,19 @@ async function ome(e, t) {
}
//#endregion
//#region src/react/junk-queue/junk-card.tsx
-function JF({ name: e }) {
+function YF({ name: e }) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
});
}
-var YF = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function sme({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions: o }) {
- let c = (0, R.useRef)(null), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), p = e.junk_kind || "other", [m, h] = nme(e), g = String(e.name || ""), _ = rme(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]") || YF(r, t) && (t.preventDefault(), o.toggleSelection(e.id, t.shiftKey));
+var XF = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+function ome({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions: o }) {
+ let c = (0, R.useRef)(null), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), p = e.junk_kind || "other", [m, h] = tme(e), g = String(e.name || ""), _ = nme(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]") || XF(r, t) && (t.preventDefault(), o.toggleSelection(e.id, t.shiftKey));
}, x = (t) => {
- if (t.stopPropagation(), YF(r, t)) {
+ if (t.stopPropagation(), XF(r, t)) {
t.preventDefault(), o.toggleSelection(e.id, t.shiftKey);
return;
}
@@ -45509,7 +45509,7 @@ function sme({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
children: [
/* @__PURE__ */ (0, z.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, z.jsx)(JF, { name: h }), /* @__PURE__ */ (0, z.jsx)("b", { children: m })]
+ children: [/* @__PURE__ */ (0, z.jsx)(YF, { name: h }), /* @__PURE__ */ (0, z.jsx)("b", { children: m })]
}),
v ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-media-art": "thumb",
@@ -45521,7 +45521,7 @@ function sme({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
}),
/* @__PURE__ */ (0, z.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, z.jsx)(JF, { name: "check" })
+ children: /* @__PURE__ */ (0, z.jsx)(YF, { name: "check" })
})
]
}),
@@ -45558,7 +45558,7 @@ function sme({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
children: [l === "reveal" ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: ie("正在定位") }
- }) : /* @__PURE__ */ (0, z.jsx)(JF, { name: "folder-open" }), /* @__PURE__ */ (0, z.jsx)("span", {
+ }) : /* @__PURE__ */ (0, z.jsx)(YF, { name: "folder-open" }), /* @__PURE__ */ (0, z.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -45570,7 +45570,7 @@ function sme({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
"aria-label": _.label,
...w(_.operation),
onClick: C(_.operation),
- children: [/* @__PURE__ */ (0, z.jsx)(JF, { name: _.glyph }), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, z.jsx)(YF, { name: _.glyph }), /* @__PURE__ */ (0, z.jsx)("span", {
"data-junk-label": "",
children: _.label
})]
@@ -45582,7 +45582,7 @@ function sme({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
"aria-label": "移入回收站",
...w("dispose"),
onClick: C("dispose"),
- children: [/* @__PURE__ */ (0, z.jsx)(JF, { name: "trash" }), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [/* @__PURE__ */ (0, z.jsx)(YF, { name: "trash" }), /* @__PURE__ */ (0, z.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -45597,7 +45597,7 @@ function sme({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions
]
});
}
-var cme = (0, R.memo)(sme), XF = [
+var sme = (0, R.memo)(ome), ZF = [
[
"",
"全部",
@@ -45634,53 +45634,53 @@ var cme = (0, R.memo)(sme), XF = [
"hard-drive"
]
];
-function ZF(e = "", t = "pending") {
+function QF(e = "", t = "pending") {
let n = new URLSearchParams();
e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");
let r = n.toString();
return `/junk-files${r ? `?${r}` : ""}`;
}
-function lme(e) {
+function cme(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: ZF("", "pending")
+ href: QF("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: ZF("", "dismissed")
+ href: QF("", "dismissed")
};
}
-var ume = (e) => e === "dismissed" ? "已排除" : "待判断";
+var lme = (e) => e === "dismissed" ? "已排除" : "待判断";
//#endregion
//#region src/react/junk-queue/junk-count.tsx
-function QF({ name: e }) {
+function $F({ name: e }) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
});
}
-function $F({ scope: e, count: t }) {
+function eI({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [" ", /* @__PURE__ */ (0, z.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
-function dme({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = fO(), a = (0, R.useRef)(null), { kind: o, view: s } = e, c = bk(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? XF.map(([e]) => qF(t, e)).join(",") : ""}`), l = lme(s), u = (e) => {
+function ume({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = UO(), a = (0, R.useRef)(null), { kind: o, view: s } = e, c = Qk(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? ZF.map(([e]) => JF(t, e)).join(",") : ""}`), l = cme(s), u = (e) => {
let t = e.target.closest("a");
- !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || ZF()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || QF()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-junk-count": "",
children: [/* @__PURE__ */ (0, z.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, z.jsx)(dk, {
- label: ume(s),
+ children: /* @__PURE__ */ (0, z.jsx)(Uk, {
+ label: lme(s),
figure: d,
pending: !t && !n,
flush: !0
@@ -45700,17 +45700,17 @@ function dme({ route: e, page: t, failed: n, onNavigate: r }) {
onClick: u,
onPointerLeave: c.leave,
children: [
- XF.map(([e, n, r]) => /* @__PURE__ */ (0, z.jsxs)("a", {
- href: ZF(e, s),
+ ZF.map(([e, n, r]) => /* @__PURE__ */ (0, z.jsxs)("a", {
+ href: QF(e, s),
"data-junk-kind-link": e,
"aria-current": e === o ? "page" : void 0,
onPointerEnter: c.hover,
children: [
- /* @__PURE__ */ (0, z.jsx)(QF, { name: r }),
+ /* @__PURE__ */ (0, z.jsx)($F, { name: r }),
n,
- /* @__PURE__ */ (0, z.jsx)($F, {
+ /* @__PURE__ */ (0, z.jsx)(eI, {
scope: e,
- count: t ? qF(t, e) : 0
+ count: t ? JF(t, e) : 0
})
]
}, e || "all")),
@@ -45724,9 +45724,9 @@ function dme({ route: e, page: t, failed: n, onNavigate: r }) {
"aria-current": s === "dismissed" ? "page" : void 0,
onPointerEnter: s === "dismissed" ? void 0 : c.hover,
children: [
- /* @__PURE__ */ (0, z.jsx)(QF, { name: l.glyph }),
+ /* @__PURE__ */ (0, z.jsx)($F, { name: l.glyph }),
l.label,
- /* @__PURE__ */ (0, z.jsx)($F, {
+ /* @__PURE__ */ (0, z.jsx)(eI, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -45739,38 +45739,38 @@ function dme({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var fme = wo("check"), pme = (e, t) => e[1] === t.view && e[2] === t.kind;
-function mme(e) {
+var dme = wo("check"), fme = (e, t) => e[1] === t.view && e[2] === t.kind;
+function pme(e) {
let t = {
kind: e.kind,
view: e.view
}, n = (0, R.useRef)(e.cache);
n.current = e.cache;
let r = Zn({
- queryKey: ime(t, e.revision),
+ queryKey: rme(t, e.revision),
queryFn: async ({ signal: e }) => {
- let r = await ome(t, e);
+ let r = await ame(t, e);
return n.current(r.items), r;
},
- placeholderData: (e, n) => n && pme(n.queryKey, t) ? e : void 0
+ placeholderData: (e, n) => n && fme(n.queryKey, t) ? e : void 0
});
(0, R.useEffect)(() => {
r.isFetching || e.settled?.(e.revision);
}, [r.isFetching, e.revision]);
- let i = hme(e.countRow), a = r.isPending;
+ let i = mme(e.countRow), a = r.isPending;
(0, R.useLayoutEffect)(() => {
let t = e.countRow;
t && (a ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, a]), (0, R.useLayoutEffect)(() => {
i && r.data && M(i, "junk");
}, [i, r.data]);
- let { navigate: o } = e.actions, s = i ? (0, Re.createPortal)(/* @__PURE__ */ (0, z.jsx)(dme, {
+ let { navigate: o } = e.actions, s = i ? (0, Re.createPortal)(/* @__PURE__ */ (0, z.jsx)(ume, {
route: t,
page: r.data,
failed: r.isError && !r.data,
onNavigate: o
}), i) : null;
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [s, /* @__PURE__ */ (0, z.jsx)(gme, {
+ return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [s, /* @__PURE__ */ (0, z.jsx)(hme, {
props: e,
data: r.data,
pending: a,
@@ -45778,7 +45778,7 @@ function mme(e) {
retry: () => void r.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function hme(e) {
+function mme(e) {
let [t, n] = (0, R.useState)(null);
return (0, R.useLayoutEffect)(() => {
if (!e) return;
@@ -45788,7 +45788,7 @@ function hme(e) {
};
}, [e]), t;
}
-function gme({ props: e, data: t, pending: n, error: r, retry: i }) {
+function hme({ props: e, data: t, pending: n, error: r, retry: i }) {
let a = to(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, R.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, R.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
@@ -45804,7 +45804,7 @@ function gme({ props: e, data: t, pending: n, error: r, retry: i }) {
if (!l.length) {
let t = e.view === "dismissed";
return /* @__PURE__ */ (0, z.jsx)(Zi, {
- icon: fme,
+ icon: dme,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
});
@@ -45813,7 +45813,7 @@ function gme({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-media-grid": "",
"data-junk-grid": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: u.map((t) => /* @__PURE__ */ (0, z.jsx)(cme, {
+ children: u.map((t) => /* @__PURE__ */ (0, z.jsx)(sme, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -45821,11 +45821,11 @@ function gme({ props: e, data: t, pending: n, error: r, retry: i }) {
helpers: e.helpers,
actions: e.actions
}, t.id))
- }), u.length < l.length ? /* @__PURE__ */ (0, z.jsx)(_me, { onMore: f }, s) : null] });
+ }), u.length < l.length ? /* @__PURE__ */ (0, z.jsx)(gme, { onMore: f }, s) : null] });
})()]
});
}
-function _me({ onMore: e }) {
+function gme({ onMore: e }) {
let t = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
let n = t.current;
@@ -45843,12 +45843,12 @@ function _me({ onMore: e }) {
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var eI = "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", vme = {
- gray: `${eI} border-separator-border bg-background-secondary-default text-text-secondary`,
- warning: `${eI} border-current/35 bg-status-yellow-background text-status-yellow-text`,
- error: `${eI} border-current/35 bg-background-tertiary-error text-text-error-primary`
+var tI = "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", _me = {
+ gray: `${tI} border-separator-border bg-background-secondary-default text-text-secondary`,
+ warning: `${tI} border-current/35 bg-status-yellow-background text-status-yellow-text`,
+ error: `${tI} border-current/35 bg-background-tertiary-error text-text-error-primary`
};
-function yme({ value: e, max: t }) {
+function vme({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, z.jsxs)("svg", {
role: "progressbar",
@@ -45876,16 +45876,16 @@ function yme({ value: e, max: t }) {
})]
});
}
-function bme(e) {
- let { job: t } = jO(e), n = t.data, r = t.isError ? n ? ms : U(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+function yme(e) {
+ let { job: t } = dk(e), n = t.data, r = t.isError ? n ? ms : U(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
if (!r && !o && !a) return null;
let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : ys(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? ct : $e;
return /* @__PURE__ */ (0, z.jsxs)("aside", {
role: a ? "alert" : "status",
- className: vme[s],
+ className: _me[s],
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [o && l ? /* @__PURE__ */ (0, z.jsx)(yme, {
+ children: [o && l ? /* @__PURE__ */ (0, z.jsx)(vme, {
value: c,
max: l
}) : /* @__PURE__ */ (0, z.jsx)(d, {
@@ -45895,7 +45895,7 @@ function bme(e) {
className: "min-w-0 text-body-2-regular",
children: u
})]
- }), /* @__PURE__ */ (0, z.jsx)(rO, {
+ }), /* @__PURE__ */ (0, z.jsx)(wO, {
href: "/data-cleanup#libraryProcessing",
size: "small",
trailingIcon: Ue,
@@ -45905,32 +45905,32 @@ function bme(e) {
}
//#endregion
//#region src/react/playlists/playlists.ts
-var xme = "/api/playlists", tI = "/api/playlist", nI = ["playlists"], rI = (e) => W(xme, e);
-async function Sme(e) {
+var bme = "/api/playlists", nI = "/api/playlist", rI = ["playlists"], iI = (e) => W(bme, e);
+async function xme(e) {
await J.fetchQuery({
- queryKey: nI,
- queryFn: () => rI(e),
+ queryKey: rI,
+ queryFn: () => iI(e),
staleTime: 0
});
}
-var iI = () => J.invalidateQueries({
- queryKey: nI,
+var aI = () => J.invalidateQueries({
+ queryKey: rI,
exact: !0
-}), Cme = (e) => e.current_asset_id || e.preview_asset_id || null, aI = (e) => `/poster?id=${e}&c=4`, wme = (e) => G(tI, {
+}), Sme = (e) => e.current_asset_id || e.preview_asset_id || null, oI = (e) => `/poster?id=${e}&c=4`, Cme = (e) => G(nI, {
action: "create",
name: e,
asset_ids: []
-}), oI = (e, t) => G(tI, {
+}), sI = (e, t) => G(nI, {
action: "rename",
id: e,
name: t
-}), sI = (e) => G(tI, {
+}), cI = (e) => G(nI, {
action: "delete",
id: e
-}), Tme = (e) => W(`${tI}?id=${e}`).catch(() => null);
-function Eme(e) {
+}), wme = (e) => W(`${nI}?id=${e}`).catch(() => null);
+function Tme(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return G(tI, {
+ return G(nI, {
action: "create",
name: e.name,
asset_ids: t,
@@ -45940,18 +45940,18 @@ function Eme(e) {
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
-var Dme = wo("ellipsis"), Ome = wo("pencil"), kme = wo("trash"), Ame = wo("playlist"), cI = Pi(aO, oO, "text-body-2-medium"), lI = "播放列表名称不能为空", uI = (e) => async () => {
+var Eme = wo("ellipsis"), Dme = wo("pencil"), Ome = wo("trash"), kme = wo("playlist"), lI = Pi(OO, kO, "text-body-2-medium"), uI = "播放列表名称不能为空", dI = (e) => async () => {
try {
await e();
} finally {
- iI();
+ aI();
}
};
-function jme({ toast: e }) {
+function Ame({ toast: e }) {
let [t, n] = (0, R.useState)(""), [r, i] = (0, R.useState)(""), a = Qn({
- mutationFn: (e) => wme(e),
+ mutationFn: (e) => Cme(e),
onSuccess: (t) => {
- n(""), i(""), iI(), e("已新建播放列表", { undo: uI(() => sI(t.playlist.id)) });
+ n(""), i(""), aI(), e("已新建播放列表", { undo: dI(() => cI(t.playlist.id)) });
},
onError: (e) => i(U(e) || "新建失败")
});
@@ -45961,7 +45961,7 @@ function jme({ toast: e }) {
onSubmit: (e) => {
if (e.preventDefault(), !a.isPending) {
if (!t.trim()) {
- i(lI);
+ i(uI);
return;
}
a.mutate(t);
@@ -45970,7 +45970,7 @@ function jme({ toast: e }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, z.jsx)("div", {
className: "min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none",
- children: /* @__PURE__ */ (0, z.jsx)($O, {
+ children: /* @__PURE__ */ (0, z.jsx)(Nk, {
label: "新播放列表",
placeholder: "输入名称",
maxLength: 80,
@@ -45989,7 +45989,7 @@ function jme({ toast: e }) {
})]
});
}
-function Mme({ target: e, close: t, toast: n }) {
+function jme({ target: e, close: t, toast: n }) {
let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(""), s = (0, R.useRef)(null);
(0, R.useEffect)(() => {
if (!e) return;
@@ -46000,13 +46000,13 @@ function Mme({ target: e, close: t, toast: n }) {
return () => cancelAnimationFrame(t);
}, [e]);
let c = Qn({
- mutationFn: ({ row: e, value: t }) => oI(e.id, t),
+ mutationFn: ({ row: e, value: t }) => sI(e.id, t),
onSuccess: (e, { row: r }) => {
- t(), iI(), n("已重命名播放列表", { undo: uI(() => oI(r.id, r.name)) });
+ t(), aI(), n("已重命名播放列表", { undo: dI(() => sI(r.id, r.name)) });
},
onError: (e) => o(U(e))
});
- return /* @__PURE__ */ (0, z.jsx)(VA, {
+ return /* @__PURE__ */ (0, z.jsx)(gj, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
@@ -46018,7 +46018,7 @@ function Mme({ target: e, close: t, toast: n }) {
if (t.preventDefault(), !e || c.isPending) return;
let n = r.trim();
if (!n) {
- o(lI);
+ o(uI);
return;
}
c.mutate({
@@ -46033,7 +46033,7 @@ function Mme({ target: e, close: t, toast: n }) {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "编辑名称"
- }), /* @__PURE__ */ (0, z.jsx)($O, {
+ }), /* @__PURE__ */ (0, z.jsx)(Nk, {
ref: s,
label: "名称",
placeholder: "输入名称",
@@ -46061,7 +46061,7 @@ function Mme({ target: e, close: t, toast: n }) {
})
});
}
-function Nme({ name: e, onRename: t, onDelete: n }) {
+function Mme({ name: e, onRename: t, onDelete: n }) {
let r = (0, R.useRef)(null), [i, a] = (0, R.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -46075,33 +46075,33 @@ function Nme({ name: e, onRename: t, onDelete: n }) {
"data-playlist-menu": "",
onClick: () => a(!0),
className: "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-2lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary aria-expanded:bg-background-primary-hover aria-expanded:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, z.jsx)(Dme, {
+ children: /* @__PURE__ */ (0, z.jsx)(Eme, {
"aria-hidden": !0,
className: "size-4.5"
})
- }), /* @__PURE__ */ (0, z.jsx)(Ty, {
+ }), /* @__PURE__ */ (0, z.jsx)(Ly, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: iO,
- children: /* @__PURE__ */ (0, z.jsxs)(tO, {
+ className: TO,
+ children: /* @__PURE__ */ (0, z.jsxs)(SO, {
"aria-label": `播放列表操作:${e}`,
className: "flex w-37.5 flex-col gap-0.5 outline-none",
children: [/* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
- className: cI,
+ className: lI,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, z.jsx)(Ome, {
+ children: [/* @__PURE__ */ (0, z.jsx)(Dme, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "编辑名称"]
}), /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
- className: cI,
+ className: lI,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, z.jsx)(kme, {
+ children: [/* @__PURE__ */ (0, z.jsx)(Ome, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "删除播放列表"]
@@ -46109,13 +46109,13 @@ function Nme({ name: e, onRename: t, onDelete: n }) {
})
})] });
}
-function Pme({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast: i, revision: a }) {
+function Nme({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast: i, revision: a }) {
let o = Zn({
- queryKey: nI,
- queryFn: ({ signal: e }) => rI(e)
+ queryKey: rI,
+ queryFn: ({ signal: e }) => iI(e)
}), [s, c] = (0, R.useState)(null), l = (0, R.useRef)(a);
(0, R.useEffect)(() => {
- l.current !== a && (l.current = a, iI());
+ l.current !== a && (l.current = a, aI());
}, [a]);
let u = o.data;
if (!u) return /* @__PURE__ */ (0, z.jsx)("div", {
@@ -46133,8 +46133,8 @@ function Pme({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
confirmLabel: "删除播放列表",
danger: !0,
onConfirm: async () => {
- let t = await Tme(e.id);
- await sI(e.id), iI(), i("已删除播放列表", t ? { undo: uI(() => Eme(t)) } : void 0);
+ let t = await wme(e.id);
+ await cI(e.id), aI(), i("已删除播放列表", t ? { undo: dI(() => Tme(t)) } : void 0);
}
});
};
@@ -46149,27 +46149,27 @@ function Pme({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
}), /* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "保存 Mix,按自己的顺序继续播放。"
- })] }), /* @__PURE__ */ (0, z.jsx)(jme, { toast: i })]
+ })] }), /* @__PURE__ */ (0, z.jsx)(Ame, { toast: i })]
}),
d.length ? /* @__PURE__ */ (0, z.jsx)("div", {
"data-playlist-grid": "",
className: "card-grid-cover gap-4.5",
children: d.map((i) => {
- let a = Cme(i);
+ let a = Sme(i);
return /* @__PURE__ */ (0, z.jsx)(Po, {
"data-playlist-card": String(i.id),
name: i.name,
caption: i.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
count: i.item_count,
- poster: i.preview_asset_id ? aI(i.preview_asset_id) : null,
- flipImages: async () => (i.preview_ids || []).map(aI),
+ poster: i.preview_asset_id ? oI(i.preview_asset_id) : null,
+ flipImages: async () => (i.preview_ids || []).map(oI),
canFlip: r,
faces: i.faces || [],
faceAvatar: n,
onOpenEntity: t,
...a ? { onOpen: () => e(i.id, a) } : {},
openLabel: `打开播放列表 ${i.name}`,
- menu: /* @__PURE__ */ (0, z.jsx)(Nme, {
+ menu: /* @__PURE__ */ (0, z.jsx)(Mme, {
name: i.name,
onRename: () => c(i),
onDelete: () => f(i)
@@ -46177,11 +46177,11 @@ function Pme({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
}, i.id);
})
}) : /* @__PURE__ */ (0, z.jsx)(Zi, {
- icon: Ame,
+ icon: kme,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
}),
- /* @__PURE__ */ (0, z.jsx)(Mme, {
+ /* @__PURE__ */ (0, z.jsx)(jme, {
target: s,
close: () => c(null),
toast: i
@@ -46191,7 +46191,7 @@ function Pme({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
}
//#endregion
//#region src/react/quality-goals/quality-goals-page.tsx
-function Fme({ item: t, openItem: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
+function Pme({ item: t, openItem: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
let c = () => n(t.id);
return /* @__PURE__ */ (0, z.jsxs)("li", {
"data-goal-id": t.id,
@@ -46259,7 +46259,7 @@ function Fme({ item: t, openItem: n, javTitleHtml: r, javDisplayName: i, srcBadg
})]
});
}
-function Ime(e) {
+function Fme(e) {
let t = Zn({
queryKey: Fs,
queryFn: ({ signal: e }) => Is(e)
@@ -46270,13 +46270,13 @@ function Ime(e) {
children: t.error ? U(t.error) : "未取得高清版目标,请刷新页面重试。"
}) });
let r = n.items || [];
- return r.length ? /* @__PURE__ */ (0, z.jsxs)($i, { children: [/* @__PURE__ */ (0, z.jsx)(dk, {
+ return r.length ? /* @__PURE__ */ (0, z.jsxs)($i, { children: [/* @__PURE__ */ (0, z.jsx)(Uk, {
label: "待升级",
figure: `${n.total} 部作品`,
flush: !0
}), /* @__PURE__ */ (0, z.jsx)("ul", {
className: "card-grid-cover gap-5",
- children: r.map((t) => /* @__PURE__ */ (0, z.jsx)(Fme, {
+ children: r.map((t) => /* @__PURE__ */ (0, z.jsx)(Pme, {
item: t,
...e
}, t.id))
@@ -46289,17 +46289,17 @@ function Ime(e) {
}
//#endregion
//#region src/react/providers.tsx
-var dI = null;
-function Lme() {
- return dI?.isConnected || (dI = document.createElement("div"), dI.className = "peach-react", dI.dataset.reactOverlays = "", document.body.append(dI)), dI;
+var fI = null;
+function Ime() {
+ return fI?.isConnected || (fI = document.createElement("div"), fI.className = "peach-react", fI.dataset.reactOverlays = "", document.body.append(fI)), fI;
}
-function fI({ children: e }) {
+function pI({ children: e }) {
return /* @__PURE__ */ (0, z.jsx)(Et, {
client: J,
- children: /* @__PURE__ */ (0, z.jsx)(OP, {
+ children: /* @__PURE__ */ (0, z.jsx)(ffe, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, z.jsx)(my, {
- getContainer: Lme,
+ children: /* @__PURE__ */ (0, z.jsx)(Ey, {
+ getContainer: Ime,
children: e
})
})
@@ -46307,7 +46307,7 @@ function fI({ children: e }) {
}
//#endregion
//#region src/react/review/bulk-toolbar.tsx
-function Rme(e) {
+function Lme(e) {
let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = rc(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("div", {
role: "group",
@@ -46316,29 +46316,29 @@ function Rme(e) {
"data-glass-pane": "",
className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(PO, {
+ /* @__PURE__ */ (0, z.jsx)(mk, {
"aria-label": "筛选分组方式",
size: "sm",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: t.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(FO, {
+ children: t.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(hk, {
id: e,
children: t
}, e))
}),
- i.length > 1 ? /* @__PURE__ */ (0, z.jsxs)(PO, {
+ i.length > 1 ? /* @__PURE__ */ (0, z.jsxs)(mk, {
"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",
size: "sm",
selectedKey: a || "*",
onSelectionChange: (e) => {
e !== null && o(String(e) === "*" ? "" : String(e));
},
- children: [/* @__PURE__ */ (0, z.jsx)(FO, {
+ children: [/* @__PURE__ */ (0, z.jsx)(hk, {
id: "*",
children: "全部分类"
- }), i.map((e) => /* @__PURE__ */ (0, z.jsx)(FO, {
+ }), i.map((e) => /* @__PURE__ */ (0, z.jsx)(hk, {
id: e.key,
children: `${e.title} · ${e.rows.length}`
}, e.key))]
@@ -46357,12 +46357,12 @@ function Rme(e) {
children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"
})
]
- }), /* @__PURE__ */ (0, z.jsxs)(FF, {
+ }), /* @__PURE__ */ (0, z.jsxs)(IF, {
label: "复核所选项目",
visible: c.size > 0,
count: `已选 ${c.size} 项`,
children: [
- b ? /* @__PURE__ */ (0, z.jsxs)(PO, {
+ b ? /* @__PURE__ */ (0, z.jsxs)(mk, {
"aria-label": "统一选择来源",
size: "sm",
selectedKey: "",
@@ -46370,10 +46370,10 @@ function Rme(e) {
onSelectionChange: (e) => {
e !== null && e !== "" && h(String(e));
},
- children: [/* @__PURE__ */ (0, z.jsx)(FO, {
+ children: [/* @__PURE__ */ (0, z.jsx)(hk, {
id: "",
children: x
- }), y.map((e) => /* @__PURE__ */ (0, z.jsx)(FO, {
+ }), y.map((e) => /* @__PURE__ */ (0, z.jsx)(hk, {
id: e,
children: e
}, e))]
@@ -46409,7 +46409,7 @@ function Rme(e) {
}
//#endregion
//#region src/react/review/candidate-form.tsx
-var zme = {
+var Rme = {
title: "标题",
original_title: "原标题",
runtime: "来源时长",
@@ -46419,14 +46419,14 @@ var zme = {
cover_url: "封面",
screenshot_urls: "截图",
trailer_url: "预告片"
-}, pI = "reviewgenretags";
-function Bme({ tags: e }) {
+}, mI = "reviewgenretags";
+function zme({ tags: e }) {
return e.length ? /* @__PURE__ */ (0, z.jsx)("datalist", {
- id: pI,
+ id: mI,
children: e.map((e) => /* @__PURE__ */ (0, z.jsx)("option", { value: e }, e))
}) : null;
}
-function mI({ candidate: e, selectable: t = !1 }) {
+function hI({ candidate: e, selectable: t = !1 }) {
let n = Object.entries(e.catalog_evidence || {}).filter(([, e]) => e && e.display_value), r = e.content_id || e.provider_id;
return /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col",
@@ -46463,7 +46463,7 @@ function mI({ candidate: e, selectable: t = !1 }) {
children: [
/* @__PURE__ */ (0, z.jsx)("dt", {
className: "text-body-2-regular text-text-secondary",
- children: zme[e] || e
+ children: Rme[e] || e
}),
/* @__PURE__ */ (0, z.jsx)("dd", {
className: "min-w-0 text-body-2-regular break-words text-text-primary",
@@ -46478,28 +46478,28 @@ function mI({ candidate: e, selectable: t = !1 }) {
}) : null]
});
}
-function Vme({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
+function Bme({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
let a = e.candidates || [];
return a.length ? a.length === 1 ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
- children: /* @__PURE__ */ (0, z.jsx)(mI, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, z.jsx)(ux, {
+ children: /* @__PURE__ */ (0, z.jsx)(hI, { candidate: a[0] })
+ }) : /* @__PURE__ */ (0, z.jsx)(Sx, {
"aria-label": `${t || "候选"}的来源`,
value: n,
isDisabled: i,
onChange: r,
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, z.jsx)(dx, {
+ children: a.map((e) => /* @__PURE__ */ (0, z.jsx)(Cx, {
value: e.candidate_key,
className: "group flex cursor-pointer items-center gap-2 overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:border-border-button-active data-disabled:cursor-not-allowed",
- children: /* @__PURE__ */ (0, z.jsx)(mI, {
+ children: /* @__PURE__ */ (0, z.jsx)(hI, {
candidate: e,
selectable: !0
})
}, e.candidate_key))
}) : null;
}
-function Hme({ genre: e, tags: t, locked: n, toast: r }) {
+function Vme({ genre: e, tags: t, locked: n, toast: r }) {
let [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), c = Qn({
mutationFn: (t) => _c(e, t),
onSuccess: async (t, n) => {
@@ -46526,16 +46526,16 @@ function Hme({ genre: e, tags: t, locked: n, toast: r }) {
className: "text-body-medium text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, z.jsx)(XO, {
+ /* @__PURE__ */ (0, z.jsx)(Ak, {
"aria-label": `「${e}」收录成的中文标签`,
value: i,
onChange: a,
maxLength: 40,
isDisabled: n || c.isPending,
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, z.jsx)(QO, {
+ children: /* @__PURE__ */ (0, z.jsx)(Mk, {
size: "small",
- list: t.length ? pI : void 0,
+ list: t.length ? mI : void 0,
autoComplete: "off",
placeholder: "中文标签",
onKeyDown: (e) => {
@@ -46567,7 +46567,7 @@ function Hme({ genre: e, tags: t, locked: n, toast: r }) {
]
});
}
-function Ume({ row: e, tags: t, locked: n, toast: r }) {
+function Hme({ row: e, tags: t, locked: n, toast: r }) {
let i = dc(e);
return i.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
role: "group",
@@ -46576,7 +46576,7 @@ function Ume({ row: e, tags: t, locked: n, toast: r }) {
children: [/* @__PURE__ */ (0, z.jsx)("h5", {
className: "text-body-2-medium text-text-secondary",
children: `未收录 genre · ${i.length}`
- }), i.map((e) => /* @__PURE__ */ (0, z.jsx)(Hme, {
+ }), i.map((e) => /* @__PURE__ */ (0, z.jsx)(Vme, {
genre: e,
tags: t,
locked: n,
@@ -46586,9 +46586,9 @@ function Ume({ row: e, tags: t, locked: n, toast: r }) {
}
//#endregion
//#region src/react/review/review-evidence.tsx
-var hI = (e = "") => /^https?:\/\//i.test(e) ? e : "", Wme = (e = "") => hI(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
-function gI({ url: e }) {
- let t = Wme(e || ""), [n, r] = (0, R.useState)(!1);
+var gI = (e = "") => /^https?:\/\//i.test(e) ? e : "", Ume = (e = "") => gI(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+function _I({ url: e }) {
+ let t = Ume(e || ""), [n, r] = (0, R.useState)(!1);
return /* @__PURE__ */ (0, z.jsx)("div", {
className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",
children: t && !n ? /* @__PURE__ */ (0, z.jsx)("img", {
@@ -46603,7 +46603,7 @@ function gI({ url: e }) {
})
});
}
-function _I({ asset: e, openItem: t }) {
+function vI({ asset: e, openItem: t }) {
let n = e.name || "";
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",
@@ -46636,14 +46636,14 @@ function _I({ asset: e, openItem: t }) {
})]
});
}
-function Gme({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
+function Wme({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"aria-label": `打开创作者页:${t}`,
onClick: () => i(e, t),
- className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${XN}`,
+ 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 ${AP}`,
dangerouslySetInnerHTML: { __html: r }
}), /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-w-0 flex-col items-start",
@@ -46659,8 +46659,8 @@ function Gme({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
})]
});
}
-function Kme({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
- let o = hI(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
+function Gme({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
+ let o = gI(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
return /* @__PURE__ */ (0, z.jsxs)("section", {
className: "flex flex-col gap-3",
children: [
@@ -46685,7 +46685,7 @@ function Kme({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
children: `查看全部 ${c.toLocaleString()} 部作品`
})]
}),
- /* @__PURE__ */ (0, z.jsx)(gI, { url: e.preview_url }),
+ /* @__PURE__ */ (0, z.jsx)(_I, { url: e.preview_url }),
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "通过后记录身份判断。"
@@ -46728,7 +46728,7 @@ function Kme({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
]
});
}
-function qme({ assets: e, picked: t, onPicked: n, locked: r }) {
+function Kme({ assets: e, picked: t, onPicked: n, locked: r }) {
let [i, a] = (0, R.useState)(null), o = new Set(t), s = (t, s) => {
if (r) return;
let c = new Set(o);
@@ -46784,7 +46784,7 @@ function qme({ assets: e, picked: t, onPicked: n, locked: r }) {
}),
/* @__PURE__ */ (0, z.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, z.jsx)(BO, {
+ children: /* @__PURE__ */ (0, z.jsx)(bk, {
size: "sm",
state: {
isSelected: n,
@@ -46804,19 +46804,19 @@ function qme({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var Jme = Yi({
+var qme = Yi({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
-}), vI = "flex min-h-6 min-w-0 items-center", Yme = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
-function Xme(e) {
- let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, R.useRef)(!1), m = fO(), h = fO(), g = t === "metadata_fields", _ = Qs[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = cc(t, n), x = sc(t, n), S = oc(t, n), C = lc(n), w = uc(n), T = ac(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, z.jsx)("div", {
+}), yI = "flex min-h-6 min-w-0 items-center", Jme = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
+function Yme(e) {
+ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, R.useRef)(!1), m = UO(), h = UO(), g = t === "metadata_fields", _ = Qs[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = cc(t, n), x = sc(t, n), S = oc(t, n), C = lc(n), w = uc(n), T = ac(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "flex flex-col gap-3",
- children: E.map((e) => /* @__PURE__ */ (0, z.jsx)(_I, {
+ children: E.map((e) => /* @__PURE__ */ (0, z.jsx)(vI, {
asset: e,
openItem: f.openItem
}, e.id))
- }) : y ? /* @__PURE__ */ (0, z.jsx)(Gme, {
+ }) : y ? /* @__PURE__ */ (0, z.jsx)(Wme, {
kind: _,
name: v,
works: Number(n.video_count || n.videos || 0),
@@ -46826,14 +46826,14 @@ function Xme(e) {
has_image: !!n.has_image,
avatar_focus: n.avatar_focus
} : null, null, _)
- }) : n.asset_id ? /* @__PURE__ */ (0, z.jsx)(_I, {
+ }) : n.asset_id ? /* @__PURE__ */ (0, z.jsx)(vI, {
openItem: f.openItem,
asset: {
id: n.asset_id,
name: n.asset_name,
preview_url: n.asset_preview_url
}
- }) : null, A = g ? /* @__PURE__ */ (0, z.jsx)(Vme, {
+ }) : null, A = g ? /* @__PURE__ */ (0, z.jsx)(Bme, {
row: n,
fieldName: x,
value: r.candidateKey,
@@ -46842,7 +46842,7 @@ function Xme(e) {
candidateKey: e
}),
locked: s
- }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, z.jsx)(qme, {
+ }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, z.jsx)(Kme, {
assets: D,
picked: r.assets,
locked: s,
@@ -46855,15 +46855,15 @@ function Xme(e) {
icon: ot,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, z.jsx)(Kme, {
+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, z.jsx)(Gme, {
row: n,
openItem: f.openItem,
openEntity: f.openEntity,
onReveal: f.onReveal,
revealing: f.revealing,
note: f.revealNote
- }) : /* @__PURE__ */ (0, z.jsx)(gI, { url: n.preview_url }), j = y ? k : x ? /* @__PURE__ */ (0, z.jsxs)("h4", {
- className: `${vI} flex-wrap gap-2`,
+ }) : /* @__PURE__ */ (0, z.jsx)(_I, { url: n.preview_url }), j = y ? k : x ? /* @__PURE__ */ (0, z.jsxs)("h4", {
+ className: `${yI} flex-wrap gap-2`,
children: [/* @__PURE__ */ (0, z.jsx)(Li, {
variant: "caption",
color: "blue",
@@ -46874,7 +46874,7 @@ function Xme(e) {
children: S
})]
}) : /* @__PURE__ */ (0, z.jsx)("h4", {
- className: vI,
+ className: yI,
children: /* @__PURE__ */ (0, z.jsx)("span", {
title: b,
className: "min-w-0 truncate text-body-medium text-text-primary",
@@ -46884,20 +46884,20 @@ function Xme(e) {
return /* @__PURE__ */ (0, z.jsxs)("section", {
"aria-label": b,
"data-review-key": n.item_key,
- className: `${Jme} ${Yme(t)} overflow-hidden`,
+ className: `${qme} ${Jme(t)} overflow-hidden`,
children: [
/* @__PURE__ */ (0, z.jsxs)("header", {
className: "flex min-w-0 shrink-0 items-start gap-2",
children: [
s ? null : /* @__PURE__ */ (0, z.jsx)("span", {
- className: `${vI} shrink-0`,
+ className: `${yI} shrink-0`,
onPointerDownCapture: (e) => {
p.current = e.shiftKey;
},
onKeyDownCapture: (e) => {
p.current = e.shiftKey;
},
- children: /* @__PURE__ */ (0, z.jsx)(VO, {
+ children: /* @__PURE__ */ (0, z.jsx)(xk, {
isSelected: a,
"aria-label": `选择 ${b}`,
onChange: (e) => o(p.current, e)
@@ -46941,7 +46941,7 @@ function Xme(e) {
})
}) : null,
A,
- /* @__PURE__ */ (0, z.jsx)(Ume, {
+ /* @__PURE__ */ (0, z.jsx)(Hme, {
row: n,
tags: u,
locked: s,
@@ -47003,8 +47003,8 @@ function Xme(e) {
}
//#endregion
//#region src/react/review/review-page.tsx
-var Zme = "flex cursor-pointer items-center justify-between gap-2";
-function Qme({ page: e, pages: t, onPage: n }) {
+var Xme = "flex cursor-pointer items-center justify-between gap-2";
+function Zme({ page: e, pages: t, onPage: n }) {
return t <= 1 ? null : /* @__PURE__ */ (0, z.jsxs)("nav", {
"aria-label": "复核分页",
className: "flex w-full flex-wrap items-center justify-between gap-2",
@@ -47041,7 +47041,7 @@ function Qme({ page: e, pages: t, onPage: n }) {
]
});
}
-function $me(e) {
+function Qme(e) {
let [t, n] = (0, R.useState)(() => matchMedia("(max-width:900px)").matches);
(0, R.useEffect)(() => {
let e = matchMedia("(max-width:900px)"), t = () => n(e.matches);
@@ -47151,8 +47151,8 @@ function $me(e) {
}) : void 0,
children: ve
}) : null,
- /* @__PURE__ */ (0, z.jsx)(Bme, { tags: ye }),
- /* @__PURE__ */ (0, z.jsxs)(PS, {
+ /* @__PURE__ */ (0, z.jsx)(zme, { tags: ye }),
+ /* @__PURE__ */ (0, z.jsxs)(KS, {
orientation: t ? "horizontal" : "vertical",
selectedKey: f,
onSelectionChange: (e) => {
@@ -47166,15 +47166,15 @@ function $me(e) {
children: [/* @__PURE__ */ (0, z.jsx)("h2", {
id: "reviewcategories",
children: "复核分类"
- }), /* @__PURE__ */ (0, z.jsx)(FS, {
+ }), /* @__PURE__ */ (0, z.jsx)(qS, {
"aria-labelledby": "reviewcategories",
"data-section-items": !0,
className: "flex review-split:flex-col review-split:items-stretch",
children: Ys.map((e) => {
let t = Number(P.counts[e] || 0);
- return /* @__PURE__ */ (0, z.jsxs)(IS, {
+ return /* @__PURE__ */ (0, z.jsxs)(JS, {
id: e,
- className: Zme,
+ className: Xme,
children: [Js[e], t ? /* @__PURE__ */ (0, z.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
@@ -47182,11 +47182,11 @@ function $me(e) {
}, e);
})
})]
- }), /* @__PURE__ */ (0, z.jsxs)(LS, {
+ }), /* @__PURE__ */ (0, z.jsxs)(YS, {
id: f,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
- ee.length && !I ? /* @__PURE__ */ (0, z.jsx)(Rme, {
+ ee.length && !I ? /* @__PURE__ */ (0, z.jsx)(Lme, {
groupOptions: te,
groupBy: ne,
onGroupBy: (e) => {
@@ -47227,7 +47227,7 @@ function $me(e) {
})]
}) : null, /* @__PURE__ */ (0, z.jsx)("div", {
className: "review-grid gap-5",
- children: e.rows.map((e) => /* @__PURE__ */ (0, z.jsx)(Xme, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, z.jsx)(Yme, {
category: f,
row: e,
choice: le(e),
@@ -47255,7 +47255,7 @@ function $me(e) {
title: "此分类没有待复核项目",
children: "可切换分类查看其他候选。"
}),
- /* @__PURE__ */ (0, z.jsx)(Qme, {
+ /* @__PURE__ */ (0, z.jsx)(Zme, {
page: ae.page,
pages: ae.pages,
onPage: y
@@ -47268,13 +47268,9 @@ function $me(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var ehe = "/api/scraping", the = "/api/scraping/settings", nhe = "/api/scraping/check", yI = "/api/scraping/cover", rhe = "/api/scraping/amane-bridge", ihe = "/api/scraping/amane-bridge/check", ahe = "/api/scraping/amane-bridge/rebuild", bI = ["scraping"], xI = ["scraping", "cover"], SI = ["scraping", "amane-bridge"], CI = (e) => W(ehe, e), wI = (e) => W(yI, e), TI = (e) => W(rhe, e);
-async function ohe(e) {
+var $me = "/api/scraping", ehe = "/api/scraping/settings", the = "/api/scraping/check", bI = "/api/scraping/cover", nhe = "/api/scraping/amane-bridge", rhe = "/api/scraping/amane-bridge/check", ihe = "/api/scraping/amane-bridge/rebuild", xI = ["scraping"], SI = ["scraping", "cover"], CI = ["scraping", "amane-bridge"], wI = (e) => W($me, e), TI = (e) => W(bI, e), EI = (e) => W(nhe, e);
+async function ahe(e) {
await Promise.all([
- J.fetchQuery({
- queryKey: bI,
- queryFn: () => CI(e)
- }),
J.fetchQuery({
queryKey: xI,
queryFn: () => wI(e)
@@ -47282,16 +47278,20 @@ async function ohe(e) {
J.fetchQuery({
queryKey: SI,
queryFn: () => TI(e)
+ }),
+ J.fetchQuery({
+ queryKey: CI,
+ queryFn: () => EI(e)
})
]);
}
-function she(e, t) {
+function ohe(e, t) {
return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.message ? `。${e.message}` : "");
}
//#endregion
//#region src/react/scraping/scraping-page.tsx
-var che = [["peach", "Peach 代理"], ["direct", "直接连接"]], EI = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
-function DI({ source: e }) {
+var she = [["peach", "Peach 代理"], ["direct", "直接连接"]], DI = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+function OI({ source: e }) {
let t = [
"javten",
"fc2ppvdb",
@@ -47309,16 +47309,16 @@ function DI({ source: e }) {
className: "size-4 shrink-0 rounded-sm object-contain"
});
}
-function lhe() {
- return /* @__PURE__ */ (0, z.jsx)(DI, { source: "github" });
+function che() {
+ return /* @__PURE__ */ (0, z.jsx)(OI, { source: "github" });
}
-function uhe({ source: e, toast: t }) {
- let [n, r] = (0, R.useState)(e.network), [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(EI[0][0]), [u, d] = (0, R.useState)(""), [f, p] = (0, R.useState)(""), m = (0, R.useRef)(null);
+function lhe({ source: e, toast: t }) {
+ let [n, r] = (0, R.useState)(e.network), [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(DI[0][0]), [u, d] = (0, R.useState)(""), [f, p] = (0, R.useState)(""), m = (0, R.useRef)(null);
function h() {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
let g = Qn({
- mutationFn: (t) => G(the, {
+ mutationFn: (t) => G(ehe, {
source: e.source,
network: n,
cookie: i,
@@ -47326,12 +47326,12 @@ function uhe({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- J.setQueryData(bI, (t) => t && {
+ J.setQueryData(xI, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), _ = Qn({ mutationFn: () => G(nhe, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
+ }), _ = Qn({ mutationFn: () => G(the, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
e.preventDefault(), !v && (_.reset(), g.mutate(!1));
}, b = () => {
v || (_.reset(), g.mutate(!0));
@@ -47356,37 +47356,37 @@ function uhe({ source: e, toast: t }) {
}
}
let C = f || (g.error ? U(g.error) : "") || (_.error ? U(_.error) : ""), w = _.data?.results ?? [], T = n === "peach" || e.accepts_cookie || e.browser || !!C || w.length > 0;
- return /* @__PURE__ */ (0, z.jsxs)(yO, {
+ return /* @__PURE__ */ (0, z.jsxs)($O, {
title: e.label,
onSubmit: y,
aside: /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, z.jsx)(DI, { source: e.source }), /* @__PURE__ */ (0, z.jsx)(EO, {
+ children: [/* @__PURE__ */ (0, z.jsx)(OI, { source: e.source }), /* @__PURE__ */ (0, z.jsx)(ok, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, z.jsx)(bO, { children: /* @__PURE__ */ (0, z.jsx)(vO, {
+ /* @__PURE__ */ (0, z.jsx)(ek, { children: /* @__PURE__ */ (0, z.jsx)(QO, {
label: "连接方式",
- children: /* @__PURE__ */ (0, z.jsx)(PO, {
+ children: /* @__PURE__ */ (0, z.jsx)(mk, {
"aria-label": "连接方式",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: che.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(FO, {
+ children: she.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(hk, {
id: e,
children: t
}, e))
})
}) }),
- T ? /* @__PURE__ */ (0, z.jsxs)(xO, {
+ T ? /* @__PURE__ */ (0, z.jsxs)(tk, {
divided: !0,
children: [
n === "peach" ? /* @__PURE__ */ (0, z.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, z.jsx)(rO, {
+ children: /* @__PURE__ */ (0, z.jsx)(wO, {
href: "/configuration#peachProxy",
size: "small",
trailingIcon: Ue,
@@ -47402,20 +47402,20 @@ function uhe({ source: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, z.jsx)(Sk, {
+ /* @__PURE__ */ (0, z.jsx)(eA, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), h();
},
- className: Ck,
- children: EI.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(dx, {
+ className: tA,
+ children: DI.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(Cx, {
value: e,
- className: wk,
+ className: nA,
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, z.jsx)($O, {
+ c === "paste" ? /* @__PURE__ */ (0, z.jsx)(Nk, {
type: "password",
label: "Cookie",
autoComplete: "off",
@@ -47424,7 +47424,7 @@ function uhe({ source: e, toast: t }) {
}) : /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(TO, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, z.jsx)(ak, { children: "Netscape Cookie 文件(.txt)" }),
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [/* @__PURE__ */ (0, z.jsx)(H, {
@@ -47450,14 +47450,14 @@ function uhe({ source: e, toast: t }) {
]
})
] }) : null,
- C ? /* @__PURE__ */ (0, z.jsx)(wO, { children: C }) : null,
+ C ? /* @__PURE__ */ (0, z.jsx)(ik, { children: C }) : null,
w.map((t) => /* @__PURE__ */ (0, z.jsx)(K, {
tone: t.ok ? "success" : "error",
- children: she(t, e.label)
+ children: ohe(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, z.jsxs)(SO, { children: [
+ /* @__PURE__ */ (0, z.jsxs)(nk, { children: [
e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
onClick: b,
@@ -47479,26 +47479,26 @@ function uhe({ source: e, toast: t }) {
]
});
}
-function dhe({ toast: e }) {
- let [t, n] = (0, R.useState)(""), { running: r, outcome: i, start: a } = LO({
- queryKey: xI,
- queryFn: ({ signal: e }) => wI(e),
- start: () => G(yI, { code: t }),
+function uhe({ toast: e }) {
+ let [t, n] = (0, R.useState)(""), { running: r, outcome: i, start: a } = _k({
+ queryKey: SI,
+ queryFn: ({ signal: e }) => TI(e),
+ start: () => G(bI, { code: t }),
onFinish: (t) => {
t.status === "complete" && e(t.result || "封面采集完成");
}
}), o = (e) => {
e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();
}, s = a.error ? U(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, z.jsx)(yO, {
+ return /* @__PURE__ */ (0, z.jsx)($O, {
title: "高清封面",
onSubmit: o,
- children: /* @__PURE__ */ (0, z.jsxs)(xO, { children: [
+ children: /* @__PURE__ */ (0, z.jsxs)(tk, { children: [
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, z.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, z.jsx)($O, {
+ children: /* @__PURE__ */ (0, z.jsx)(Nk, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: r,
@@ -47525,11 +47525,11 @@ function dhe({ toast: e }) {
] })
});
}
-function fhe({ toast: e }) {
- let { query: t, running: n, outcome: r, start: i } = LO({
- queryKey: SI,
- queryFn: ({ signal: e }) => TI(e),
- start: () => G(ahe, {}),
+function dhe({ toast: e }) {
+ let { query: t, running: n, outcome: r, start: i } = _k({
+ queryKey: CI,
+ queryFn: ({ signal: e }) => EI(e),
+ start: () => G(ihe, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
...e,
@@ -47538,45 +47538,45 @@ function fhe({ toast: e }) {
onFinish: (t) => {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
- }), a = Qn({ mutationFn: () => G(ihe, {}) }), o = t.data;
- if (!o) return t.error ? /* @__PURE__ */ (0, z.jsx)(yO, {
+ }), a = Qn({ mutationFn: () => G(rhe, {}) }), o = t.data;
+ if (!o) return t.error ? /* @__PURE__ */ (0, z.jsx)($O, {
title: "amane",
- children: /* @__PURE__ */ (0, z.jsx)(xO, { children: /* @__PURE__ */ (0, z.jsx)(K, {
+ children: /* @__PURE__ */ (0, z.jsx)(tk, { children: /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
children: U(t.error)
}) })
}) : null;
let s = n || i.isPending || a.isPending, c = i.error ? U(i.error) : a.error ? U(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";
- return /* @__PURE__ */ (0, z.jsxs)(yO, {
+ return /* @__PURE__ */ (0, z.jsxs)($O, {
title: "amane",
- aside: /* @__PURE__ */ (0, z.jsx)(EO, {
+ aside: /* @__PURE__ */ (0, z.jsx)(ok, {
href: o.repository,
- leadingIcon: lhe,
+ leadingIcon: che,
children: o.repository
}),
children: [
- /* @__PURE__ */ (0, z.jsxs)(DO, { children: [
- /* @__PURE__ */ (0, z.jsx)(OO, {
+ /* @__PURE__ */ (0, z.jsxs)(sk, { children: [
+ /* @__PURE__ */ (0, z.jsx)(ck, {
term: "已安装版本",
children: o.installed_version || "未安装"
}),
- /* @__PURE__ */ (0, z.jsx)(OO, {
+ /* @__PURE__ */ (0, z.jsx)(ck, {
term: "上游最新版本",
children: a.data?.latest ?? "尚未检查"
}),
- /* @__PURE__ */ (0, z.jsx)(OO, {
+ /* @__PURE__ */ (0, z.jsx)(ck, {
term: "运行环境",
children: o.installed ? "已安装" : "未安装"
}),
- /* @__PURE__ */ (0, z.jsx)(OO, {
+ /* @__PURE__ */ (0, z.jsx)(ck, {
term: "内置站点",
children: o.sites.map((e) => e.label).join("、")
})
] }),
- /* @__PURE__ */ (0, z.jsxs)(xO, {
+ /* @__PURE__ */ (0, z.jsxs)(tk, {
divided: !0,
children: [
- /* @__PURE__ */ (0, z.jsxs)(CO, { children: [
+ /* @__PURE__ */ (0, z.jsxs)(rk, { children: [
"已安装版本:",
o.installed_version || "未安装",
"。amane(",
@@ -47596,7 +47596,7 @@ function fhe({ toast: e }) {
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsxs)(SO, { children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, z.jsxs)(nk, { children: [/* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
onClick: () => {
s || a.mutate();
@@ -47613,22 +47613,22 @@ function fhe({ toast: e }) {
]
});
}
-function phe({ toast: e }) {
+function fhe({ toast: e }) {
let t = Zn({
- queryKey: bI,
- queryFn: ({ signal: e }) => CI(e)
+ queryKey: xI,
+ queryFn: ({ signal: e }) => wI(e)
}), n = t.data;
return n ? /* @__PURE__ */ (0, z.jsxs)($i, { children: [
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
}),
- /* @__PURE__ */ (0, z.jsx)(dhe, { toast: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, z.jsx)(uhe, {
+ /* @__PURE__ */ (0, z.jsx)(uhe, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, z.jsx)(lhe, {
source: t,
toast: e
}, t.source)),
- /* @__PURE__ */ (0, z.jsx)(fhe, { toast: e })
+ /* @__PURE__ */ (0, z.jsx)(dhe, { toast: e })
] }) : /* @__PURE__ */ (0, z.jsx)($i, { children: /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "采集来源读取失败",
@@ -47637,24 +47637,24 @@ function phe({ toast: e }) {
}
//#endregion
//#region src/configuration-endpoints.ts
-var OI = "/api/configuration", mhe = "/api/pick-folder", kI = ["configuration"], AI = (e) => W(OI, e);
-async function jI(e) {
+var kI = "/api/configuration", phe = "/api/pick-folder", AI = ["configuration"], jI = (e) => W(kI, e);
+async function MI(e) {
await J.fetchQuery({
- queryKey: kI,
- queryFn: () => AI(e)
+ queryKey: AI,
+ queryFn: () => jI(e)
});
}
//#endregion
//#region src/configuration-copy.ts
-var hhe = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", ghe = "仅填域名;留空使用默认地址";
+var mhe = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", hhe = "仅填域名;留空使用默认地址";
//#endregion
//#region src/react/settings/entry-links-settings.tsx
-function _he({ initial: e, receipt: t }) {
+function ghe({ initial: e, receipt: t }) {
let [n, r] = (0, R.useState)(e.sites), i = ra(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
} : n));
- return /* @__PURE__ */ (0, z.jsxs)(yO, {
+ return /* @__PURE__ */ (0, z.jsxs)($O, {
title: "外部入口",
onSubmit: (e) => {
e.preventDefault();
@@ -47663,9 +47663,9 @@ function _he({ initial: e, receipt: t }) {
r(e.sites), t("已保存配置");
});
},
- children: [/* @__PURE__ */ (0, z.jsxs)(xO, { children: [
- /* @__PURE__ */ (0, z.jsx)(CO, { children: hhe }),
- n.map((e) => /* @__PURE__ */ (0, z.jsx)($O, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(tk, { children: [
+ /* @__PURE__ */ (0, z.jsx)(rk, { children: mhe }),
+ n.map((e) => /* @__PURE__ */ (0, z.jsx)(Nk, {
id: `entry-link-${e.key}`,
label: `${e.label} 地址`,
autoComplete: "off",
@@ -47674,10 +47674,10 @@ function _he({ initial: e, receipt: t }) {
placeholder: e.default_host,
onChange: (t) => a(e.key, t),
validationBehavior: "aria",
- hint: ghe
+ hint: hhe
}, e.key)),
- i.error ? /* @__PURE__ */ (0, z.jsx)(wO, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, z.jsx)(SO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ i.error ? /* @__PURE__ */ (0, z.jsx)(ik, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, z.jsx)(nk, { children: /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
...q(i.busy === "save"),
children: "保存配置"
@@ -47686,21 +47686,21 @@ function _he({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function vhe({ data: e, receipt: t }) {
+function _he({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.startup ? /* @__PURE__ */ (0, z.jsx)(yhe, {
+ children: [e.startup ? /* @__PURE__ */ (0, z.jsx)(vhe, {
startup: e.startup,
receipt: t
- }) : null, e.entry_links ? /* @__PURE__ */ (0, z.jsx)(_he, {
+ }) : null, e.entry_links ? /* @__PURE__ */ (0, z.jsx)(ghe, {
initial: e.entry_links,
receipt: t
}) : null]
});
}
-function yhe({ startup: e, receipt: t }) {
+function vhe({ startup: e, receipt: t }) {
let [n, r] = (0, R.useState)(e.enabled), [i, a] = (0, R.useState)(e.silent), [o, s] = (0, R.useState)(e.desktop), c = ra(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, z.jsxs)(yO, {
+ return /* @__PURE__ */ (0, z.jsxs)($O, {
title: "开机自启",
onSubmit: (r) => {
r.preventDefault(), e.available && c.run("save", (e) => G("/api/configuration/startup", {
@@ -47710,30 +47710,30 @@ function yhe({ startup: e, receipt: t }) {
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, z.jsxs)(bO, { children: [
- /* @__PURE__ */ (0, z.jsx)(vO, {
+ /* @__PURE__ */ (0, z.jsxs)(ek, { children: [
+ /* @__PURE__ */ (0, z.jsx)(QO, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, z.jsx)(YN, {
+ children: /* @__PURE__ */ (0, z.jsx)(kP, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, z.jsx)(vO, {
+ /* @__PURE__ */ (0, z.jsx)(QO, {
label: "静默启动",
description: "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。",
- children: /* @__PURE__ */ (0, z.jsx)(YN, {
+ children: /* @__PURE__ */ (0, z.jsx)(kP, {
"aria-label": "静默启动",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, z.jsx)(vO, {
+ /* @__PURE__ */ (0, z.jsx)(QO, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
- children: /* @__PURE__ */ (0, z.jsx)(YN, {
+ children: /* @__PURE__ */ (0, z.jsx)(kP, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -47741,11 +47741,11 @@ function yhe({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, z.jsxs)(xO, {
+ e.message || c.error ? /* @__PURE__ */ (0, z.jsxs)(tk, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, z.jsx)(CO, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, z.jsx)(wO, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, z.jsx)(rk, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, z.jsx)(ik, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, z.jsx)(SO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, z.jsx)(nk, { children: /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
disabled: !e.available,
...q(c.busy === "save"),
@@ -47756,23 +47756,23 @@ function yhe({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/release-updates.tsx
-var MI = /* @__PURE__ */ new Set([
+var NI = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), bhe = [
+]), yhe = [
65,
67,
90
-], NI = 120;
-function xhe({ initial: e, initialJob: t }) {
+], PI = 120;
+function bhe({ initial: e, initialJob: t }) {
let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(t || {
state: "idle",
progress: 0
- }), [o, s] = (0, R.useState)(""), c = ra(), l = (0, R.useRef)(!1), u = (0, R.useRef)(!0), d = MI.has(i.state);
+ }), [o, s] = (0, R.useState)(""), c = ra(), l = (0, R.useRef)(!1), u = (0, R.useRef)(!0), d = NI.has(i.state);
(0, R.useEffect)(() => (u.current = !0, () => {
u.current = !1;
}), []);
@@ -47789,7 +47789,7 @@ function xhe({ initial: e, initialJob: t }) {
(0, R.useEffect)(() => {
i.state !== "ready" || l.current || (l.current = !0, p());
}, [i.state]), (0, R.useEffect)(() => {
- let e = new AbortController(), t = MI.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
+ let e = new AbortController(), t = NI.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
try {
let t = await W("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
@@ -47802,9 +47802,9 @@ function xhe({ initial: e, initialJob: t }) {
let n = await W("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- o += 1, o >= NI && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
+ o += 1, o >= PI && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && o < NI && (n = setTimeout(c, t));
+ !e.signal.aborted && o < PI && (n = setTimeout(c, t));
};
return n = setTimeout(c, t), () => {
e.abort(), clearTimeout(n);
@@ -47818,40 +47818,40 @@ function xhe({ initial: e, initialJob: t }) {
state: "error"
}), c.setError(U(t));
}), g = c.error || o, _ = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;
- return /* @__PURE__ */ (0, z.jsxs)(yO, {
+ return /* @__PURE__ */ (0, z.jsxs)($O, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, z.jsxs)(DO, { children: [
- /* @__PURE__ */ (0, z.jsx)(OO, {
+ /* @__PURE__ */ (0, z.jsxs)(sk, { children: [
+ /* @__PURE__ */ (0, z.jsx)(ck, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, z.jsx)(OO, {
+ /* @__PURE__ */ (0, z.jsx)(ck, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, z.jsx)(OO, {
+ /* @__PURE__ */ (0, z.jsx)(ck, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, z.jsx)(OO, {
+ /* @__PURE__ */ (0, z.jsx)(ck, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, z.jsxs)(xO, {
+ /* @__PURE__ */ (0, z.jsxs)(tk, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, z.jsxs)(CO, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.checked_at ? /* @__PURE__ */ (0, z.jsxs)(rk, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
n.state === "available" && !g ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : g || n.state === "error" ? /* @__PURE__ */ (0, z.jsx)(wO, { children: g || n.message }) : /* @__PURE__ */ (0, z.jsx)(CO, {
+ }) : g || n.state === "error" ? /* @__PURE__ */ (0, z.jsx)(ik, { children: g || n.message }) : /* @__PURE__ */ (0, z.jsx)(rk, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, z.jsx)(wO, { children: i.message }) : null,
+ i.state === "error" ? /* @__PURE__ */ (0, z.jsx)(ik, { children: i.message }) : null,
i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, z.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
@@ -47859,16 +47859,16 @@ function xhe({ initial: e, initialJob: t }) {
/* @__PURE__ */ (0, z.jsx)(na, {
label: "更新准备进度",
value: i.progress,
- stops: bhe
+ stops: yhe
}),
- /* @__PURE__ */ (0, z.jsxs)(CO, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, z.jsx)(CO, { children: _ })
+ /* @__PURE__ */ (0, z.jsxs)(rk, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, z.jsx)(rk, { children: _ })
]
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsxs)(SO, {
- status: /* @__PURE__ */ (0, z.jsx)(EO, {
+ /* @__PURE__ */ (0, z.jsxs)(nk, {
+ status: /* @__PURE__ */ (0, z.jsx)(ok, {
href: n.release_url,
children: "查看发布页"
}),
@@ -47895,98 +47895,98 @@ function xhe({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var She = [
+var xhe = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function Che({ data: e, receipt: t, reopenTutorial: n }) {
+function She({ data: e, receipt: t, reopenTutorial: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.automatic_updates ? /* @__PURE__ */ (0, z.jsx)(The, {
+ e.automatic_updates ? /* @__PURE__ */ (0, z.jsx)(whe, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, z.jsx)(xhe, {
+ e.updates ? /* @__PURE__ */ (0, z.jsx)(bhe, {
initial: e.updates,
initialJob: e.update_job
}) : null,
- /* @__PURE__ */ (0, z.jsx)(Ehe, { facts: e.facts }),
- /* @__PURE__ */ (0, z.jsx)(whe, {
+ /* @__PURE__ */ (0, z.jsx)(The, { facts: e.facts }),
+ /* @__PURE__ */ (0, z.jsx)(Che, {
receipt: t,
reopenTutorial: n
}),
- e.uninstall ? /* @__PURE__ */ (0, z.jsx)(Dhe, {
+ e.uninstall ? /* @__PURE__ */ (0, z.jsx)(Ehe, {
uninstall: e.uninstall,
receipt: t
}) : null
]
});
}
-function whe({ receipt: e, reopenTutorial: t }) {
+function Che({ receipt: e, reopenTutorial: t }) {
let n = ra();
- return /* @__PURE__ */ (0, z.jsxs)(yO, {
+ return /* @__PURE__ */ (0, z.jsxs)($O, {
title: "安装教程",
- children: [/* @__PURE__ */ (0, z.jsxs)(xO, { children: [/* @__PURE__ */ (0, z.jsx)(CO, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, z.jsx)(wO, { children: n.error }) : null] }), /* @__PURE__ */ (0, z.jsx)(SO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(tk, { children: [/* @__PURE__ */ (0, z.jsx)(rk, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, z.jsx)(ik, { children: n.error }) : null] }), /* @__PURE__ */ (0, z.jsx)(nk, { children: /* @__PURE__ */ (0, z.jsx)(H, {
onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),
...q(n.busy === "reopen"),
children: "重新打开教程"
}) })]
});
}
-function The({ initial: e, receipt: t }) {
+function whe({ initial: e, receipt: t }) {
let [n, r] = (0, R.useState)(e.mode), [i, a] = (0, R.useState)(e.interval_hours), o = ra(e.error), s = (r) => {
r.preventDefault(), e.available && o.run("save", (e) => G("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行时在发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, z.jsxs)(yO, {
+ return /* @__PURE__ */ (0, z.jsxs)($O, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, z.jsxs)(bO, { children: [
- /* @__PURE__ */ (0, z.jsx)(vO, {
+ /* @__PURE__ */ (0, z.jsxs)(ek, { children: [
+ /* @__PURE__ */ (0, z.jsx)(QO, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, z.jsx)(YN, {
+ children: /* @__PURE__ */ (0, z.jsx)(kP, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, z.jsx)(vO, {
+ /* @__PURE__ */ (0, z.jsx)(QO, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, z.jsx)(YN, {
+ children: /* @__PURE__ */ (0, z.jsx)(kP, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, z.jsx)(vO, {
+ /* @__PURE__ */ (0, z.jsx)(QO, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, z.jsx)(PO, {
+ children: /* @__PURE__ */ (0, z.jsx)(mk, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: She.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(FO, {
+ children: xhe.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(hk, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, z.jsx)(xO, {
+ o.error ? /* @__PURE__ */ (0, z.jsx)(tk, {
divided: !0,
- children: /* @__PURE__ */ (0, z.jsx)(wO, { children: o.error })
+ children: /* @__PURE__ */ (0, z.jsx)(ik, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, z.jsx)(SO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, z.jsx)(nk, { children: /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
disabled: !e.available,
...q(o.busy === "save"),
@@ -47995,19 +47995,19 @@ function The({ initial: e, receipt: t }) {
]
});
}
-function Ehe({ facts: e }) {
- return /* @__PURE__ */ (0, z.jsx)(yO, {
+function The({ facts: e }) {
+ return /* @__PURE__ */ (0, z.jsx)($O, {
title: "运行信息",
- children: /* @__PURE__ */ (0, z.jsx)(DO, { children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)(OO, {
+ children: /* @__PURE__ */ (0, z.jsx)(sk, { children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)(ck, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, z.jsx)(EO, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, z.jsx)(ok, {
href: e.download_url,
children: e.download_label
}) : null]
}, e.term)) })
});
}
-function Dhe({ uninstall: e, receipt: t }) {
+function Ehe({ uninstall: e, receipt: t }) {
let [n, r] = (0, R.useState)(!1), [i, a] = (0, R.useState)(""), o = () => void b({
title: "卸载 Peach",
danger: !0,
@@ -48021,26 +48021,26 @@ function Dhe({ uninstall: e, receipt: t }) {
a(e.message);
}
}), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, z.jsxs)(yO, {
+ return /* @__PURE__ */ (0, z.jsxs)($O, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, z.jsxs)(xO, { children: [
- e.available ? /* @__PURE__ */ (0, z.jsx)(CO, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, z.jsx)(VO, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(tk, { children: [
+ e.available ? /* @__PURE__ */ (0, z.jsx)(rk, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, z.jsx)(xk, {
isSelected: n,
isDisabled: !e.full_available || !!i,
onChange: r,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, z.jsx)(kO, {
+ /* @__PURE__ */ (0, z.jsx)(lk, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, z.jsx)(hO, {
+ children: c.map((e) => /* @__PURE__ */ (0, z.jsx)(JO, {
path: e,
className: "text-body-2-regular text-text-secondary",
onRevealed: t
}, e))
})
- ] }), /* @__PURE__ */ (0, z.jsx)(SO, {
+ ] }), /* @__PURE__ */ (0, z.jsx)(nk, {
status: s ? /* @__PURE__ */ (0, z.jsx)("p", {
role: i ? "status" : void 0,
children: s
@@ -48056,7 +48056,7 @@ function Dhe({ uninstall: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/clouddrive-guide.tsx
-var Ohe = [
+var Dhe = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -48075,32 +48075,32 @@ var Ohe = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], khe = [
+], Ohe = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function Ahe() {
+function khe() {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, z.jsxs)(CO, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, z.jsx)(EO, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(rk, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, z.jsx)(ok, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, z.jsxs)(kO, {
+ })] }), /* @__PURE__ */ (0, z.jsxs)(lk, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, z.jsx)(CO, { children: "按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。" }),
+ /* @__PURE__ */ (0, z.jsx)(rk, { children: "按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。" }),
/* @__PURE__ */ (0, z.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: Ohe.map((e) => /* @__PURE__ */ (0, z.jsxs)("li", {
+ children: Dhe.map((e) => /* @__PURE__ */ (0, z.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
}), /* @__PURE__ */ (0, z.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: khe.map(([t, n]) => /* @__PURE__ */ (0, z.jsxs)("div", {
+ children: Ohe.map(([t, n]) => /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col",
children: [/* @__PURE__ */ (0, z.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
@@ -48121,9 +48121,9 @@ function Ahe() {
/* @__PURE__ */ (0, z.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, z.jsxs)(CO, { children: [
+ /* @__PURE__ */ (0, z.jsxs)(rk, { children: [
"三处缓存的分工、往上调的方法和这些起步值的来源在",
- /* @__PURE__ */ (0, z.jsx)(EO, {
+ /* @__PURE__ */ (0, z.jsx)(ok, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -48134,8 +48134,255 @@ function Ahe() {
});
}
//#endregion
+//#region src/react/settings/download-settings.tsx
+var Ahe = "/api/configuration/downloads", jhe = "/api/configuration/downloads/check", Mhe = "/api/configuration/downloads/pikpak/login", Nhe = "/api/configuration/downloads/pikpak/logout";
+function Phe({ initial: e, receipt: t }) {
+ let [n, r] = (0, R.useState)(e);
+ return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(Fhe, {
+ state: n,
+ settle: r,
+ receipt: t
+ }), /* @__PURE__ */ (0, z.jsx)(Lhe, {
+ state: n,
+ settle: r,
+ receipt: t
+ })] });
+}
+function Fhe({ state: e, settle: t, receipt: n }) {
+ let [r, i] = (0, R.useState)(e.config), [a, o] = (0, R.useState)(""), [s, c] = (0, R.useState)(String(e.config.wait_hours)), [l, u] = (0, R.useState)(null), [d, f] = (0, R.useState)(""), p = ra(), m = (e) => r.targets[e] ?? "", h = (e, t) => i({
+ ...r,
+ targets: {
+ ...r.targets,
+ [e]: t
+ }
+ });
+ return /* @__PURE__ */ (0, z.jsxs)($O, {
+ title: "云下载",
+ onSubmit: (e) => {
+ e.preventDefault();
+ let l = {
+ ...r,
+ wait_hours: s,
+ token: a
+ };
+ p.run("save", (e) => G(Ahe, l, "POST", e), (e) => {
+ t(e), i(e.config), c(String(e.config.wait_hours)), o(""), f(""), n("已保存配置");
+ }, (e) => f(U(e)));
+ },
+ children: [
+ /* @__PURE__ */ (0, z.jsxs)(tk, { children: [
+ /* @__PURE__ */ (0, z.jsx)(rk, { children: "把磁力交给 115 或 PikPak 离线下载,文件落在已挂载的网盘目录,再由推送发现登记入库,不经过这台电脑。 115 每个任务扣一条离线配额(年费会员每月 1500 条、月费 200 条),被判违规的资源不重试。" }),
+ /* @__PURE__ */ (0, z.jsx)(Nk, {
+ label: "CloudDrive2 地址",
+ placeholder: "http://127.0.0.1:19798",
+ autoComplete: "off",
+ maxLength: 200,
+ value: r.clouddrive_address,
+ isDisabled: !e.available,
+ onChange: (e) => i({
+ ...r,
+ clouddrive_address: e
+ })
+ }),
+ /* @__PURE__ */ (0, z.jsx)(Nk, {
+ label: "CloudDrive2 API 令牌",
+ type: "password",
+ autoComplete: "off",
+ maxLength: 400,
+ placeholder: e.token_set ? "已保存,留空不改" : "在 CloudDrive2「设置 → API 令牌」中生成",
+ hint: "令牌需要「提交离线任务」「查看离线任务与配额」两项权限;要在 Peach 里取消任务,再勾上「取消离线任务」。",
+ value: a,
+ isDisabled: !e.available,
+ onChange: o
+ }),
+ /* @__PURE__ */ (0, z.jsx)(Nk, {
+ label: "115 目标目录",
+ placeholder: "/115/云下载",
+ autoComplete: "off",
+ maxLength: 300,
+ hint: "CloudDrive2 挂载树里的路径。这个目录要落在「推送发现」的某个云端路径前缀下面,下载完才找得到。",
+ value: m("115"),
+ isDisabled: !e.available,
+ onChange: (e) => h("115", e)
+ }),
+ /* @__PURE__ */ (0, z.jsx)(Nk, {
+ label: "PikPak 目标目录",
+ placeholder: "/云下载",
+ autoComplete: "off",
+ maxLength: 300,
+ hint: "PikPak 网盘里的路径,目录要已经存在。",
+ value: m("pikpak"),
+ isDisabled: !e.available,
+ onChange: (e) => h("pikpak", e)
+ }),
+ /* @__PURE__ */ (0, z.jsxs)("div", {
+ className: "flex flex-col gap-1",
+ children: [/* @__PURE__ */ (0, z.jsx)(ak, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, z.jsx)(mk, {
+ "aria-label": "PikPak 根目录对应的媒体文件夹",
+ selectedKey: r.pikpak_root || null,
+ isDisabled: !e.available,
+ placeholder: "选择媒体文件夹",
+ onSelectionChange: (e) => i({
+ ...r,
+ pikpak_root: e === null ? "" : String(e)
+ }),
+ children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, z.jsx)(hk, {
+ id: e,
+ children: e
+ }, e))
+ }) : /* @__PURE__ */ (0, z.jsx)(rk, { children: "媒体文件夹里还没有「CloudDrive · PikPak」来源。在上方添加 PikPak 的挂载目录后,这里才能选。" })]
+ }),
+ /* @__PURE__ */ (0, z.jsx)(Nk, {
+ label: "等待上限(小时)",
+ type: "number",
+ inputMode: "numeric",
+ autoComplete: "off",
+ hint: `远端超过这么久还没下完就标为停滞,多半是没有人做种。1 到 ${e.max_wait_hours} 小时。`,
+ value: s,
+ isDisabled: !e.available,
+ onChange: c
+ })
+ ] }),
+ l ? /* @__PURE__ */ (0, z.jsx)(Ihe, { report: l }) : null,
+ d || p.error ? /* @__PURE__ */ (0, z.jsx)(tk, {
+ divided: !0,
+ children: /* @__PURE__ */ (0, z.jsx)(ik, { children: d || p.error })
+ }) : null,
+ /* @__PURE__ */ (0, z.jsxs)(nk, {
+ status: e.available ? void 0 : "云下载只在账本写入端可用。",
+ children: [/* @__PURE__ */ (0, z.jsx)(H, {
+ onClick: () => {
+ let e = {
+ clouddrive_address: r.clouddrive_address,
+ token: a,
+ target: m("115")
+ };
+ p.run("check", (t) => G(jhe, e, "POST", t), (e) => {
+ u(e), f("");
+ }, (e) => f(U(e)));
+ },
+ disabled: !e.available,
+ ...q(p.busy === "check"),
+ children: "检查"
+ }), /* @__PURE__ */ (0, z.jsx)(H, {
+ type: "submit",
+ disabled: !e.available,
+ ...q(p.busy === "save"),
+ children: "保存配置"
+ })]
+ })
+ ]
+ });
+}
+function Ihe({ report: e }) {
+ return /* @__PURE__ */ (0, z.jsxs)(tk, {
+ divided: !0,
+ children: [/* @__PURE__ */ (0, z.jsxs)(sk, { children: [
+ e.permissions.length ? /* @__PURE__ */ (0, z.jsx)(ck, {
+ term: "离线权限",
+ children: e.missing.length ? `缺少:${e.missing.join("、")}` : "齐全"
+ }) : null,
+ e.folder ? /* @__PURE__ */ (0, z.jsx)(ck, {
+ term: "目标目录",
+ children: e.folder.can_offline ? `${e.folder.path} 可以离线下载` : `${e.folder.path} 不支持离线下载`
+ }) : null,
+ e.quota ? /* @__PURE__ */ (0, z.jsx)(ck, {
+ term: "115 离线配额",
+ children: `本月还剩 ${e.quota.left} 条,共 ${e.quota.total} 条`
+ }) : null
+ ] }), e.problems.map((e) => /* @__PURE__ */ (0, z.jsx)(ik, { children: e }, e))]
+ });
+}
+function Lhe({ state: e, settle: t, receipt: n }) {
+ let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(""), [s, c] = (0, R.useState)(!1), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), p = ra(), m = e.pikpak;
+ return /* @__PURE__ */ (0, z.jsxs)($O, {
+ title: "PikPak 账号",
+ onSubmit: (e) => {
+ if (e.preventDefault(), m.logged_in) return;
+ let i = {
+ username: r,
+ password: a,
+ remember: s
+ };
+ p.run("login", (e) => G(Mhe, i, "POST", e), (e) => {
+ if (t(e.settings), f(""), !e.ok) {
+ u(e.captcha_url ?? "");
+ return;
+ }
+ u(""), o(""), n("已登录 PikPak");
+ }, (e) => f(U(e)));
+ },
+ children: [
+ m.logged_in ? /* @__PURE__ */ (0, z.jsxs)(sk, { children: [/* @__PURE__ */ (0, z.jsx)(ck, {
+ term: "账号",
+ children: m.username || "已登录"
+ }), /* @__PURE__ */ (0, z.jsx)(ck, {
+ term: "密码",
+ children: m.remember ? "已保存,登录过期时自动重新登录" : "未保存,登录过期后需要回到这里重新登录"
+ })] }) : /* @__PURE__ */ (0, z.jsxs)(tk, { children: [
+ /* @__PURE__ */ (0, z.jsx)(rk, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。 账号密码只用来换登录令牌,令牌存在这台电脑上。" }),
+ /* @__PURE__ */ (0, z.jsx)(Nk, {
+ label: "账号",
+ placeholder: "邮箱或手机号",
+ autoComplete: "username",
+ maxLength: 200,
+ value: r,
+ isDisabled: !e.available,
+ onChange: i
+ }),
+ /* @__PURE__ */ (0, z.jsx)(Nk, {
+ label: "密码",
+ type: "password",
+ autoComplete: "current-password",
+ maxLength: 200,
+ value: a,
+ isDisabled: !e.available,
+ onChange: o
+ }),
+ /* @__PURE__ */ (0, z.jsx)(xk, {
+ isSelected: s,
+ isDisabled: !e.available,
+ onChange: c,
+ children: "保存密码,登录过期时自动重新登录"
+ }),
+ l ? /* @__PURE__ */ (0, z.jsx)(K, {
+ tone: "warning",
+ title: "需要人机验证",
+ extra: /* @__PURE__ */ (0, z.jsx)("div", {
+ className: "pt-2",
+ children: /* @__PURE__ */ (0, z.jsx)(ok, {
+ href: l,
+ children: "打开 PikPak 验证页"
+ })
+ }),
+ children: "在浏览器里完成验证后,回到这里再点一次「登录」。"
+ }) : null
+ ] }),
+ d || p.error ? /* @__PURE__ */ (0, z.jsx)(tk, {
+ divided: !0,
+ children: /* @__PURE__ */ (0, z.jsx)(ik, { children: d || p.error })
+ }) : null,
+ /* @__PURE__ */ (0, z.jsx)(nk, { children: m.logged_in ? /* @__PURE__ */ (0, z.jsx)(H, {
+ onClick: () => {
+ p.run("logout", (e) => G(Nhe, {}, "POST", e), (e) => {
+ t(e), f(""), n("已登出 PikPak");
+ }, (e) => f(U(e)));
+ },
+ disabled: !e.available,
+ ...q(p.busy === "logout"),
+ children: "登出"
+ }) : /* @__PURE__ */ (0, z.jsx)(H, {
+ type: "submit",
+ disabled: !e.available,
+ ...q(p.busy === "login"),
+ children: "登录"
+ }) })
+ ]
+ });
+}
+//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var PI = [
+var FI = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -48179,13 +48426,13 @@ var PI = [
["star", "收藏"],
["tags", "主题"]
];
-function jhe(e) {
+function Rhe(e) {
let t = e === "local" ? "" : _[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var FI = "auto";
-function Mhe({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, R.useRef)(null), [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(e), [l, u] = jhe(n);
+var II = "auto";
+function zhe({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, R.useRef)(null), [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(e), [l, u] = Rhe(n);
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(H, {
ref: i,
variant: "secondary",
@@ -48199,16 +48446,16 @@ function Mhe({ value: e, label: t, kind: n = "local", onChange: r }) {
children: /* @__PURE__ */ (0, z.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(AO, { mark: e || l }), ((e) => e && PI.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, z.jsx)(uk, { mark: e || l }), ((e) => e && FI.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, z.jsx)(Ty, {
+ }), /* @__PURE__ */ (0, z.jsx)(Ly, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: iO,
- children: /* @__PURE__ */ (0, z.jsxs)(yb, {
+ className: TO,
+ children: /* @__PURE__ */ (0, z.jsxs)(jb, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
@@ -48217,17 +48464,17 @@ function Mhe({ value: e, label: t, kind: n = "local", onChange: r }) {
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, z.jsx)(ux, {
+ /* @__PURE__ */ (0, z.jsx)(Sx, {
"aria-label": "候选图标",
- value: s || FI,
- onChange: (e) => c(e === FI ? "" : e),
+ value: s || II,
+ onChange: (e) => c(e === II ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: PI.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(dx, {
- value: e || FI,
+ children: FI.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(Cx, {
+ value: e || II,
"aria-label": e ? t : u,
className: "flex h-10 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none hover:bg-dropdown-item-hover-background focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-dropdown-item-hover-background data-selected:text-text-primary",
- children: /* @__PURE__ */ (0, z.jsx)(AO, { mark: e || l })
- }, e || FI))
+ children: /* @__PURE__ */ (0, z.jsx)(uk, { mark: e || l })
+ }, e || II))
}),
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
@@ -48249,15 +48496,15 @@ function Mhe({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/push-discovery-settings.tsx
-var Nhe = "/api/configuration/push-discovery", Phe = "/api/configuration/push-discovery/secret";
-function Fhe({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.prefixes), [o, s] = (0, R.useState)(""), c = ra(), l = fO(), u = n.media_roots, [d, f] = (0, R.useState)(e), p = (e, n) => {
+var Bhe = "/api/configuration/push-discovery", Vhe = "/api/configuration/push-discovery/secret";
+function Hhe({ initial: e, receipt: t }) {
+ let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.prefixes), [o, s] = (0, R.useState)(""), c = ra(), l = UO(), u = n.media_roots, [d, f] = (0, R.useState)(e), p = (e, n) => {
r(e), f(e), a(e.prefixes), s(""), t(n);
}, m = (e, t) => a((n) => n.map((n, r) => r === e ? {
...n,
...t
} : n));
- return /* @__PURE__ */ (0, z.jsxs)(yO, {
+ return /* @__PURE__ */ (0, z.jsxs)($O, {
title: "推送发现",
onSubmit: (e) => {
e.preventDefault();
@@ -48267,14 +48514,14 @@ function Fhe({ initial: e, receipt: t }) {
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => G(Nhe, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(U(e)));
+ c.run("save", (e) => G(Bhe, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(U(e)));
},
children: [
- /* @__PURE__ */ (0, z.jsxs)(bO, { children: [
- /* @__PURE__ */ (0, z.jsx)(vO, {
+ /* @__PURE__ */ (0, z.jsxs)(ek, { children: [
+ /* @__PURE__ */ (0, z.jsx)(QO, {
label: "新文件落地就入库",
description: "打开之后不必等下一轮扫描。定期全量扫描照常进行,漏掉的由它补上。",
- children: /* @__PURE__ */ (0, z.jsx)(YN, {
+ children: /* @__PURE__ */ (0, z.jsx)(kP, {
"aria-label": "新文件落地就入库",
isSelected: n.enabled,
isDisabled: !n.available,
@@ -48284,10 +48531,10 @@ function Fhe({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, z.jsx)(vO, {
+ /* @__PURE__ */ (0, z.jsx)(QO, {
label: "监视本机文件夹",
description: "订阅本地来源的文件系统事件。网盘挂载不监视,因为遍历它就是走网络。",
- children: /* @__PURE__ */ (0, z.jsx)(YN, {
+ children: /* @__PURE__ */ (0, z.jsx)(kP, {
"aria-label": "监视本机文件夹",
isSelected: n.watch_local,
isDisabled: !n.available || !n.enabled,
@@ -48297,10 +48544,10 @@ function Fhe({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, z.jsx)(vO, {
+ /* @__PURE__ */ (0, z.jsx)(QO, {
label: "接收 CloudDrive2 通知",
description: "由 CloudDrive2 把网盘里的新文件推给 Peach。只接受本机与局域网发来的请求。",
- children: /* @__PURE__ */ (0, z.jsx)(YN, {
+ children: /* @__PURE__ */ (0, z.jsx)(kP, {
"aria-label": "接收 CloudDrive2 通知",
isSelected: n.cloud,
isDisabled: !n.available || !n.enabled,
@@ -48311,30 +48558,30 @@ function Fhe({ initial: e, receipt: t }) {
})
})
] }),
- d.enabled ? /* @__PURE__ */ (0, z.jsx)(xO, {
+ d.enabled ? /* @__PURE__ */ (0, z.jsx)(tk, {
divided: !0,
- children: /* @__PURE__ */ (0, z.jsxs)(DO, { children: [d.watch_local ? /* @__PURE__ */ (0, z.jsx)(OO, {
+ children: /* @__PURE__ */ (0, z.jsxs)(sk, { children: [d.watch_local ? /* @__PURE__ */ (0, z.jsx)(ck, {
term: "本机文件夹监视",
children: d.local_running ? d.local_roots.join("、") : d.local_message || "没有运行"
- }) : null, /* @__PURE__ */ (0, z.jsx)(OO, {
+ }) : null, /* @__PURE__ */ (0, z.jsx)(ck, {
term: "已入库",
children: `${d.queue.ingested} 个文件,队列里还有 ${d.queue.pending} 条`
})] })
}) : null,
- d.enabled && d.cloud ? /* @__PURE__ */ (0, z.jsx)(xO, {
+ d.enabled && d.cloud ? /* @__PURE__ */ (0, z.jsx)(tk, {
divided: !0,
children: /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(TO, { children: "CloudDrive2 配置内容" }),
- /* @__PURE__ */ (0, z.jsx)(CO, { children: "Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。 Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml 文件,放入 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
+ /* @__PURE__ */ (0, z.jsx)(ak, { children: "CloudDrive2 配置内容" }),
+ /* @__PURE__ */ (0, z.jsx)(rk, { children: "Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。 Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml 文件,放入 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
d.config_toml ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("div", { children: /* @__PURE__ */ (0, z.jsx)(H, {
size: "small",
onClick: () => {
navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看这段配置」选中自己复制。"));
},
children: "复制配置"
- }) }), /* @__PURE__ */ (0, z.jsx)(kO, {
+ }) }), /* @__PURE__ */ (0, z.jsx)(lk, {
summary: "查看这段配置",
children: /* @__PURE__ */ (0, z.jsx)("div", {
className: "relative",
@@ -48345,17 +48592,17 @@ function Fhe({ initial: e, receipt: t }) {
children: d.config_toml
})
})
- })] }) : /* @__PURE__ */ (0, z.jsx)(CO, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })
+ })] }) : /* @__PURE__ */ (0, z.jsx)(rk, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })
]
})
}) : null,
- n.enabled && n.cloud ? /* @__PURE__ */ (0, z.jsx)(xO, {
+ n.enabled && n.cloud ? /* @__PURE__ */ (0, z.jsx)(tk, {
divided: !0,
children: /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(TO, { children: "云端路径前缀" }),
- /* @__PURE__ */ (0, z.jsx)(CO, { children: "左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。 Peach 按此对应关系定位通知中的文件。" }),
+ /* @__PURE__ */ (0, z.jsx)(ak, { children: "云端路径前缀" }),
+ /* @__PURE__ */ (0, z.jsx)(rk, { children: "左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。 Peach 按此对应关系定位通知中的文件。" }),
/* @__PURE__ */ (0, z.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
@@ -48363,7 +48610,7 @@ function Fhe({ initial: e, receipt: t }) {
children: i.map((e, t) => /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)($O, {
+ /* @__PURE__ */ (0, z.jsx)(Nk, {
className: "min-w-0 flex-1",
"aria-label": `云端路径前缀 ${t + 1}`,
placeholder: "/115",
@@ -48372,18 +48619,18 @@ function Fhe({ initial: e, receipt: t }) {
value: e.prefix,
onChange: (e) => m(t, { prefix: e })
}),
- /* @__PURE__ */ (0, z.jsx)(PO, {
+ /* @__PURE__ */ (0, z.jsx)(mk, {
"aria-label": `前缀 ${t + 1} 对应的媒体根`,
selectedKey: e.root,
onSelectionChange: (e) => {
e !== null && m(t, { root: String(e) });
},
- children: u.map((e) => /* @__PURE__ */ (0, z.jsx)(FO, {
+ children: u.map((e) => /* @__PURE__ */ (0, z.jsx)(hk, {
id: e,
children: e
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)(mO, {
+ /* @__PURE__ */ (0, z.jsx)(GO, {
icon: Ye,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
@@ -48402,15 +48649,15 @@ function Fhe({ initial: e, receipt: t }) {
]
})
}) : null,
- o || c.error ? /* @__PURE__ */ (0, z.jsx)(xO, {
+ o || c.error ? /* @__PURE__ */ (0, z.jsx)(tk, {
divided: !0,
- children: /* @__PURE__ */ (0, z.jsx)(wO, { children: o || c.error })
+ children: /* @__PURE__ */ (0, z.jsx)(ik, { children: o || c.error })
}) : null,
- /* @__PURE__ */ (0, z.jsxs)(SO, {
+ /* @__PURE__ */ (0, z.jsxs)(nk, {
status: d.enabled && d.cloud ? "换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。" : void 0,
children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, z.jsx)(H, {
onClick: () => {
- c.run("secret", (e) => G(Phe, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(U(e)));
+ c.run("secret", (e) => G(Vhe, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(U(e)));
},
disabled: !n.available,
...q(c.busy === "secret"),
@@ -48427,8 +48674,8 @@ function Fhe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var Ihe = 8e3;
-function Lhe({ className: e }) {
+var Uhe = 8e3;
+function Whe({ className: e }) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -48441,33 +48688,33 @@ function Lhe({ className: e }) {
children: /* @__PURE__ */ (0, z.jsx)("use", { href: "#i-folder-search" })
});
}
-var II = [
+var LI = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], Rhe = (e) => II.find(([t]) => t === e)?.[1] ?? e, LI = (e) => _[e] || "database", RI = (e = "") => ({
+], Ghe = (e) => LI.find(([t]) => t === e)?.[1] ?? e, RI = (e) => _[e] || "database", zI = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function zhe(e) {
- let t = e.media_sources?.filter((e) => II.some(([t]) => t === e.location));
+function Khe(e) {
+ let t = e.media_sources?.filter((e) => LI.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) => RI(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => zI(e));
}
-var Bhe = (e) => !(e instanceof Bi) || e.status !== 400 ? null : e.body?.errors ?? null;
-function Vhe({ data: e, receipt: t }) {
+var qhe = (e) => !(e instanceof Bi) || e.status !== 400 ? null : e.body?.errors ?? null;
+function Jhe({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.editable ? /* @__PURE__ */ (0, z.jsx)(Hhe, {
+ e.editable ? /* @__PURE__ */ (0, z.jsx)(Yhe, {
data: e,
receipt: t
}) : /* @__PURE__ */ (0, z.jsx)(K, {
@@ -48475,21 +48722,25 @@ function Vhe({ data: e, receipt: t }) {
title: "只读",
children: e.notice
}),
- /* @__PURE__ */ (0, z.jsx)(Whe, { data: e }),
- e.push_discovery ? /* @__PURE__ */ (0, z.jsx)(Fhe, {
+ /* @__PURE__ */ (0, z.jsx)(Zhe, { data: e }),
+ e.push_discovery ? /* @__PURE__ */ (0, z.jsx)(Hhe, {
initial: e.push_discovery,
receipt: t
+ }) : null,
+ e.downloads ? /* @__PURE__ */ (0, z.jsx)(Phe, {
+ initial: e.downloads,
+ receipt: t
}) : null
]
});
}
-function Hhe({ data: e, receipt: t }) {
- let [n, r] = (0, R.useState)(() => zhe(e)), [i, a] = (0, R.useState)(String(e.port)), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)([]), [u, d] = (0, R.useState)(""), [f, p] = (0, R.useState)(""), [m, h] = (0, R.useState)(null), [g, _] = (0, R.useState)(null), [v, y] = (0, R.useState)(null), b = (0, R.useRef)(!1), x = (0, R.useRef)(e.revision), S = (0, R.useRef)([]), C = ra();
+function Yhe({ data: e, receipt: t }) {
+ let [n, r] = (0, R.useState)(() => Khe(e)), [i, a] = (0, R.useState)(String(e.port)), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)([]), [u, d] = (0, R.useState)(""), [f, p] = (0, R.useState)(""), [m, h] = (0, R.useState)(null), [g, _] = (0, R.useState)(null), [v, y] = (0, R.useState)(null), b = (0, R.useRef)(!1), x = (0, R.useRef)(e.revision), S = (0, R.useRef)([]), C = ra();
(0, R.useLayoutEffect)(() => {
g !== null && (S.current[g]?.focus(), _(null));
}, [g]), (0, R.useEffect)(() => {
if (!m) return;
- let e = setTimeout(() => location.assign(m.url), Ihe);
+ let e = setTimeout(() => location.assign(m.url), Uhe);
return () => clearTimeout(e);
}, [m]);
let w = (e, t) => r((n) => n.map((n, r) => r === e ? {
@@ -48500,14 +48751,14 @@ function Hhe({ data: e, receipt: t }) {
for (; r.length <= e;) r.push("");
return r[e] = t, r;
}), E = () => {
- _(n.length), r((e) => [...e, RI()]);
+ _(n.length), r((e) => [...e, zI()]);
}, D = (e) => {
r((t) => t.filter((t, n) => n !== e)), l((t) => t.filter((t, n) => n !== e));
}, O = async (e) => {
if (!b.current) {
b.current = !0, y(e);
try {
- let { path: t } = await G(mhe, { initial: n[e]?.path ?? "" });
+ let { path: t } = await G(phe, { initial: n[e]?.path ?? "" });
t && (w(e, { path: t }), T(e, ""));
} catch (t) {
T(e, U(t));
@@ -48516,7 +48767,7 @@ function Hhe({ data: e, receipt: t }) {
}
}
}, k = (r) => {
- r.preventDefault(), p(""), C.run("save", (t) => G(OI, {
+ r.preventDefault(), p(""), C.run("save", (t) => G(kI, {
revision: x.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -48525,18 +48776,18 @@ function Hhe({ data: e, receipt: t }) {
}, "POST", t), (e) => {
x.current = e.revision, l([]), d(""), t("已保存配置"), h(e);
}, (e) => {
- let t = Bhe(e);
+ let t = qhe(e);
l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(U(e));
});
};
- if (m) return /* @__PURE__ */ (0, z.jsx)(yO, {
+ if (m) return /* @__PURE__ */ (0, z.jsx)($O, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, z.jsx)(xO, { children: /* @__PURE__ */ (0, z.jsxs)(K, {
+ children: /* @__PURE__ */ (0, z.jsx)(tk, { children: /* @__PURE__ */ (0, z.jsxs)(K, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, z.jsx)(rO, {
+ /* @__PURE__ */ (0, z.jsx)(wO, {
href: m.url,
size: "small",
children: "进入馆藏"
@@ -48546,14 +48797,14 @@ function Hhe({ data: e, receipt: t }) {
}) })
});
let A = n.some((e) => e.location === "115" || e.location === "pikpak"), j = A ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, z.jsxs)(yO, {
+ return /* @__PURE__ */ (0, z.jsxs)($O, {
title: "这台电脑",
onSubmit: k,
- children: [/* @__PURE__ */ (0, z.jsxs)(xO, { children: [
+ children: [/* @__PURE__ */ (0, z.jsxs)(tk, { children: [
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(TO, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, z.jsx)(ak, { children: "媒体文件夹" }),
/* @__PURE__ */ (0, z.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
@@ -48564,7 +48815,7 @@ function Hhe({ data: e, receipt: t }) {
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)($O, {
+ /* @__PURE__ */ (0, z.jsx)(Nk, {
className: "min-w-0 flex-1",
"aria-label": `媒体文件夹 ${r + 1}`,
placeholder: "本机文件夹路径",
@@ -48577,13 +48828,13 @@ function Hhe({ data: e, receipt: t }) {
isInvalid: !!c[r],
hint: c[r] || void 0
}),
- /* @__PURE__ */ (0, z.jsx)(mO, {
- icon: Lhe,
+ /* @__PURE__ */ (0, z.jsx)(GO, {
+ icon: Whe,
"aria-label": "选择文件夹",
onClick: () => void O(r),
...q(v === r)
}),
- n.length > 1 ? /* @__PURE__ */ (0, z.jsx)(mO, {
+ n.length > 1 ? /* @__PURE__ */ (0, z.jsx)(GO, {
icon: Ye,
"aria-label": "移除这个文件夹",
onClick: () => D(r)
@@ -48592,7 +48843,7 @@ function Hhe({ data: e, receipt: t }) {
}), /* @__PURE__ */ (0, z.jsxs)("div", {
className: "inline-grid grid-cols-1 gap-3 @lg:grid-cols-2",
children: [
- /* @__PURE__ */ (0, z.jsx)($O, {
+ /* @__PURE__ */ (0, z.jsx)(Nk, {
label: "媒体库名称",
maxLength: 80,
placeholder: "同名文件夹归入同一个媒体库",
@@ -48601,7 +48852,7 @@ function Hhe({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, z.jsx)(TO, { children: "媒体库图标" }), /* @__PURE__ */ (0, z.jsx)(Mhe, {
+ children: [/* @__PURE__ */ (0, z.jsx)(ak, { children: "媒体库图标" }), /* @__PURE__ */ (0, z.jsx)(zhe, {
label: `媒体库图标 ${r + 1}`,
value: t.library_icon,
kind: t.location,
@@ -48610,20 +48861,20 @@ function Hhe({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, z.jsx)(TO, { children: "媒体来源" }), /* @__PURE__ */ (0, z.jsx)(PO, {
+ children: [/* @__PURE__ */ (0, z.jsx)(ak, { children: "媒体来源" }), /* @__PURE__ */ (0, z.jsx)(mk, {
"aria-label": `媒体来源 ${r + 1}`,
selectedKey: t.location,
onSelectionChange: (e) => {
e !== null && w(r, { location: String(e) });
},
- children: II.map(([e, t]) => /* @__PURE__ */ (0, z.jsxs)(FO, {
+ children: LI.map(([e, t]) => /* @__PURE__ */ (0, z.jsxs)(hk, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, z.jsx)(AO, { mark: LI(e) }), t]
+ children: [/* @__PURE__ */ (0, z.jsx)(uk, { mark: RI(e) }), t]
}, e))
})]
}),
- e.windows === !1 ? /* @__PURE__ */ (0, z.jsx)($O, {
+ e.windows === !1 ? /* @__PURE__ */ (0, z.jsx)(Nk, {
label: "Windows 中的对应路径",
placeholder: "例如 B:\\",
value: t.root,
@@ -48640,18 +48891,18 @@ function Hhe({ data: e, receipt: t }) {
})
]
}),
- A ? /* @__PURE__ */ (0, z.jsx)(Ahe, {}) : null,
- j.map((e) => /* @__PURE__ */ (0, z.jsxs)(CO, { children: [
+ A ? /* @__PURE__ */ (0, z.jsx)(khe, {}) : null,
+ j.map((e) => /* @__PURE__ */ (0, z.jsxs)(rk, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, z.jsxs)(EO, {
+ /* @__PURE__ */ (0, z.jsxs)(ok, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, z.jsx)(CO, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, z.jsx)($O, {
+ e.windows === !1 ? /* @__PURE__ */ (0, z.jsx)(rk, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, z.jsx)(Nk, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -48661,7 +48912,7 @@ function Hhe({ data: e, receipt: t }) {
isInvalid: !!u,
hint: u || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, z.jsx)(VO, {
+ /* @__PURE__ */ (0, z.jsx)(xk, {
isSelected: o,
onChange: s,
children: "保存后扫描并补全资料"
@@ -48671,7 +48922,7 @@ function Hhe({ data: e, receipt: t }) {
title: "没有保存",
children: f
}) : null
- ] }), /* @__PURE__ */ (0, z.jsx)(SO, {
+ ] }), /* @__PURE__ */ (0, z.jsx)(nk, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
children: /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
@@ -48681,7 +48932,7 @@ function Hhe({ data: e, receipt: t }) {
})]
});
}
-function Uhe({ online: e }) {
+function Xhe({ online: e }) {
return e === !0 ? /* @__PURE__ */ (0, z.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
@@ -48705,21 +48956,21 @@ function Uhe({ online: e }) {
}), "未检测"]
});
}
-function Whe({ data: e }) {
+function Zhe({ data: e }) {
let t = e.media_sources, n = ra();
- return t ? /* @__PURE__ */ (0, z.jsxs)(yO, {
+ return t ? /* @__PURE__ */ (0, z.jsxs)($O, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, z.jsx)(DO, { children: t.map((e, t) => /* @__PURE__ */ (0, z.jsxs)(OO, {
- term: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(AO, { mark: LI(e.location) }), Rhe(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, z.jsx)(Uhe, { online: e.online })]
+ /* @__PURE__ */ (0, z.jsx)(sk, { children: t.map((e, t) => /* @__PURE__ */ (0, z.jsxs)(ck, {
+ term: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(uk, { mark: RI(e.location) }), Ghe(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, z.jsx)(Xhe, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, z.jsx)(xO, {
+ n.error ? /* @__PURE__ */ (0, z.jsx)(tk, {
divided: !0,
- children: /* @__PURE__ */ (0, z.jsx)(wO, { children: n.error })
+ children: /* @__PURE__ */ (0, z.jsx)(ik, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, z.jsx)(SO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
- onClick: () => void n.run("refresh", (e) => AI(e), (e) => J.setQueryData(kI, e)),
+ /* @__PURE__ */ (0, z.jsx)(nk, { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ onClick: () => void n.run("refresh", (e) => jI(e), (e) => J.setQueryData(AI, e)),
...q(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
@@ -48728,12 +48979,12 @@ function Whe({ data: e }) {
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var Ghe = {
+var Qhe = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
-function Khe({ initial: e, receipt: t }) {
+function $he({ initial: e, receipt: t }) {
let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)({}), m = (0, R.useRef)(null), h = ra(), g = (e) => {
e.preventDefault();
let f = {};
@@ -48754,25 +49005,25 @@ function Khe({ initial: e, receipt: t }) {
let t = e instanceof Bi ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(U(e));
});
- }, _ = Ghe[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, z.jsxs)(yO, {
+ }, _ = Qhe[n.mode], v = n.mode !== "locked";
+ return /* @__PURE__ */ (0, z.jsxs)($O, {
title: "访问密码",
onSubmit: g,
children: [/* @__PURE__ */ (0, z.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, z.jsxs)(xO, { children: [
- _ ? /* @__PURE__ */ (0, z.jsx)(CO, { children: _ }) : null,
+ children: /* @__PURE__ */ (0, z.jsxs)(tk, { children: [
+ _ ? /* @__PURE__ */ (0, z.jsx)(rk, { children: _ }) : null,
n.mode === "open" ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, z.jsx)(VO, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, z.jsx)(xk, {
isSelected: u,
onChange: d,
children: "关闭访问密码"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, z.jsx)($O, {
+ n.mode === "password" ? /* @__PURE__ */ (0, z.jsx)(Nk, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -48785,7 +49036,7 @@ function Khe({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)($O, {
+ v ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(Nk, {
id: "access-password",
type: "password",
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
@@ -48798,7 +49049,7 @@ function Khe({ initial: e, receipt: t }) {
validationBehavior: "aria",
isInvalid: !u && !!f.password,
hint: u ? "关闭访问密码时无需填写。" : f.password || "至少 8 个字符。保存后其他设备需要重新登录。"
- }), /* @__PURE__ */ (0, z.jsx)($O, {
+ }), /* @__PURE__ */ (0, z.jsx)(Nk, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -48817,9 +49068,9 @@ function Khe({ initial: e, receipt: t }) {
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, z.jsx)(wO, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, z.jsx)(ik, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, z.jsx)(SO, {
+ }), v ? /* @__PURE__ */ (0, z.jsx)(nk, {
status: "保存后立即生效。",
children: /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
@@ -48831,19 +49082,19 @@ function Khe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/tunnel-settings.tsx
-var qhe = 2e3, Jhe = [["quick", "临时链接"], ["named", "命名隧道"]], Yhe = {
+var ege = 2e3, tge = [["quick", "临时链接"], ["named", "命名隧道"]], nge = {
quick: "只用于临时预览;地址随机、重启后会变化。启动前必须设置访问密码。",
named: "地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"
};
-function Xhe({ revision: e, initial: t, receipt: n }) {
+function rge({ revision: e, initial: t, receipt: n }) {
let [r, i] = (0, R.useState)(t), [a, o] = (0, R.useState)(e), [s, c] = (0, R.useState)(t.mode), [l, u] = (0, R.useState)(t.hostname), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)({}), h = ra(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
(0, R.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
- AI(e.signal).then((t) => {
- e.signal.aborted || !t.tunnel || (J.setQueryData(kI, t), i(t.tunnel), o(t.revision));
+ jI(e.signal).then((t) => {
+ e.signal.aborted || !t.tunnel || (J.setQueryData(AI, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
- }, qhe);
+ }, ege);
return () => {
e.abort(), window.clearInterval(t);
};
@@ -48862,26 +49113,26 @@ function Xhe({ revision: e, initial: t, receipt: n }) {
n ? m(n) : h.setError(U(e));
});
};
- return /* @__PURE__ */ (0, z.jsxs)(yO, {
+ return /* @__PURE__ */ (0, z.jsxs)($O, {
title: "Cloudflare 公网入口",
onSubmit: (e) => {
e.preventDefault(), v("save", g, () => n("已保存配置"));
},
- children: [/* @__PURE__ */ (0, z.jsxs)(xO, { children: [
- r.named_available ? /* @__PURE__ */ (0, z.jsx)(Sk, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(tk, { children: [
+ r.named_available ? /* @__PURE__ */ (0, z.jsx)(eA, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: g,
onChange: (e) => c(e),
- className: Ck,
- children: Jhe.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(dx, {
+ className: tA,
+ children: tge.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(Cx, {
value: e,
- className: wk,
+ className: nA,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, z.jsx)(CO, { children: Yhe[_ ? "named" : "quick"] }),
- _ ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)($O, {
+ /* @__PURE__ */ (0, z.jsx)(rk, { children: nge[_ ? "named" : "quick"] }),
+ _ ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(Nk, {
id: "tunnel-hostname",
label: "公开主机名",
autoComplete: "off",
@@ -48892,7 +49143,7 @@ function Xhe({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
isInvalid: !!p.hostname,
hint: p.hostname || "在 Cloudflare Zero Trust 里指向本机 origin 的那个主机名。"
- }), /* @__PURE__ */ (0, z.jsx)($O, {
+ }), /* @__PURE__ */ (0, z.jsx)(Nk, {
id: "tunnel-token",
type: "password",
label: "隧道令牌",
@@ -48912,7 +49163,7 @@ function Xhe({ revision: e, initial: t, receipt: n }) {
r.state === "running" && r.url ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "info",
title: "公网地址",
- children: /* @__PURE__ */ (0, z.jsx)(EO, {
+ children: /* @__PURE__ */ (0, z.jsx)(ok, {
href: r.url,
children: r.url
})
@@ -48922,9 +49173,9 @@ function Xhe({ revision: e, initial: t, receipt: n }) {
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
}) : null,
- r.error ? /* @__PURE__ */ (0, z.jsx)(wO, { children: r.error }) : null,
- h.error ? /* @__PURE__ */ (0, z.jsx)(wO, { children: h.error }) : null
- ] }), /* @__PURE__ */ (0, z.jsxs)(SO, {
+ r.error ? /* @__PURE__ */ (0, z.jsx)(ik, { children: r.error }) : null,
+ h.error ? /* @__PURE__ */ (0, z.jsx)(ik, { children: h.error }) : null
+ ] }), /* @__PURE__ */ (0, z.jsxs)(nk, {
status: r.enabled ? "服务重启时会按设置尝试恢复。" : "服务重启后保持关闭。",
children: [/* @__PURE__ */ (0, z.jsx)(H, {
onClick: () => v("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),
@@ -48940,24 +49191,24 @@ function Xhe({ revision: e, initial: t, receipt: n }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var Zhe = [
+var ige = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function Qhe({ data: e, receipt: t }) {
+function age({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.peach_proxy ? /* @__PURE__ */ (0, z.jsx)($he, {
+ e.peach_proxy ? /* @__PURE__ */ (0, z.jsx)(oge, {
initial: e.peach_proxy,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, z.jsx)(Khe, {
+ e.access ? /* @__PURE__ */ (0, z.jsx)($he, {
initial: e.access,
receipt: t
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, z.jsx)(Xhe, {
+ e.tunnel ? /* @__PURE__ */ (0, z.jsx)(rge, {
revision: e.revision,
initial: e.tunnel,
receipt: t
@@ -48965,9 +49216,9 @@ function Qhe({ data: e, receipt: t }) {
]
});
}
-function $he({ initial: e, receipt: t }) {
+function oge({ initial: e, receipt: t }) {
let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.mode), [o, s] = (0, R.useState)(""), c = ra();
- return /* @__PURE__ */ (0, z.jsxs)(yO, {
+ return /* @__PURE__ */ (0, z.jsxs)($O, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
@@ -48979,25 +49230,25 @@ function $he({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, z.jsx)(bO, { children: /* @__PURE__ */ (0, z.jsx)(vO, {
+ /* @__PURE__ */ (0, z.jsx)(ek, { children: /* @__PURE__ */ (0, z.jsx)(QO, {
label: "连接方式",
description: "采集来源选「Peach 代理」时共用这里的连接方式。",
- children: /* @__PURE__ */ (0, z.jsx)(PO, {
+ children: /* @__PURE__ */ (0, z.jsx)(mk, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: Zhe.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(FO, {
+ children: ige.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(hk, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, z.jsxs)(xO, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, z.jsxs)(tk, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, z.jsx)($O, {
+ i === "proxy" ? /* @__PURE__ */ (0, z.jsx)(Nk, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -49011,10 +49262,10 @@ function $he({ initial: e, receipt: t }) {
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, z.jsx)(wO, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, z.jsx)(ik, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, z.jsx)(SO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, z.jsx)(nk, { children: /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
...q(c.busy === "save"),
children: "保存配置"
@@ -49024,10 +49275,10 @@ function $he({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function ege({ receipt: e, reopenTutorial: t }) {
+function sge({ receipt: e, reopenTutorial: t }) {
let n = Zn({
- queryKey: kI,
- queryFn: ({ signal: e }) => AI(e)
+ queryKey: AI,
+ queryFn: ({ signal: e }) => jI(e)
}), r = n.data;
if (!r) return /* @__PURE__ */ (0, z.jsx)("div", {
className: "configpage",
@@ -49048,22 +49299,22 @@ function ege({ receipt: e, reopenTutorial: t }) {
className: "configgroup",
children: "通用"
}) : null,
- a ? /* @__PURE__ */ (0, z.jsx)(vhe, { ...i }) : null,
+ a ? /* @__PURE__ */ (0, z.jsx)(_he, { ...i }) : null,
/* @__PURE__ */ (0, z.jsx)("h2", {
className: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ (0, z.jsx)(Vhe, { ...i }),
+ /* @__PURE__ */ (0, z.jsx)(Jhe, { ...i }),
o ? /* @__PURE__ */ (0, z.jsx)("h2", {
className: "configgroup",
children: "网络与访问"
}) : null,
- o ? /* @__PURE__ */ (0, z.jsx)(Qhe, { ...i }) : null,
+ o ? /* @__PURE__ */ (0, z.jsx)(age, { ...i }) : null,
/* @__PURE__ */ (0, z.jsx)("h2", {
className: "configgroup",
children: "更新与维护"
}),
- /* @__PURE__ */ (0, z.jsx)(Che, {
+ /* @__PURE__ */ (0, z.jsx)(She, {
...i,
reopenTutorial: t
})
@@ -49072,14 +49323,14 @@ function ege({ receipt: e, reopenTutorial: t }) {
}
//#endregion
//#region src/react/stats/stats.ts
-var tge = "/api/stats", zI = ["stats"], BI = (e) => W(tge, e);
-async function nge(e) {
+var cge = "/api/stats", BI = ["stats"], VI = (e) => W(cge, e);
+async function lge(e) {
await J.fetchQuery({
- queryKey: zI,
- queryFn: () => BI(e)
+ queryKey: BI,
+ queryFn: () => VI(e)
});
}
-var VI = (e, t) => t ? Math.round(e / t * 100) : 0, rge = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, HI = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, UI = (e) => (e.max_reached || 0) * 100, ige = (e) => e.kind === "online" ? "在线直接观看" : HI(e) < UI(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", age = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, oge = (e) => Math.max(1, ...e) * 1.1, sge = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), cge = {
+var HI = (e, t) => t ? Math.round(e / t * 100) : 0, uge = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, UI = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, WI = (e) => (e.max_reached || 0) * 100, dge = (e) => e.kind === "online" ? "在线直接观看" : UI(e) < WI(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", fge = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, pge = (e) => Math.max(1, ...e) * 1.1, mge = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), hge = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -49087,18 +49338,18 @@ var VI = (e, t) => t ? Math.round(e / t * 100) : 0, rge = (e) => e >= 3600 ? `${
audio: "音频",
account: "账号",
other: "其它文件"
-}, lge = (e) => e.map((e) => ({
- name: cge[e.k] ?? e.k,
+}, gge = (e) => e.map((e) => ({
+ name: hge[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), uge = {
+})).sort((e, t) => t.value - e.value), _ge = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, WI = (e, t = {}) => e.map((e) => ({
+}, GI = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), dge = (e) => WI(e, uge), fge = [
+})), vge = (e) => GI(e, _ge), yge = [
[
1,
1,
@@ -49134,49 +49385,49 @@ var VI = (e, t) => t ? Math.round(e / t * 100) : 0, rge = (e) => e >= 3600 ? `${
Infinity,
"≥10 次"
]
-], pge = (e) => fge.map(([t, n, r]) => ({
+], bge = (e) => yge.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
-})), mge = /* @__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 GI(e) {
- return typeof e == "string" && mge.includes(e);
+})), xge = /* @__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 KI(e) {
+ return typeof e == "string" && xge.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js
-var hge = /* @__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 KI(e) {
- return typeof e == "string" && hge.has(e);
-}
+var Sge = /* @__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 qI(e) {
- return typeof e == "string" && e.startsWith("data-");
+ return typeof e == "string" && Sge.has(e);
}
function JI(e) {
+ return typeof e == "string" && e.startsWith("data-");
+}
+function YI(e) {
if (typeof e != "object" || !e) return {};
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (KI(n) || qI(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (qI(n) || JI(n)) && (t[n] = e[n]);
return t;
}
-function YI(e) {
+function XI(e) {
if (e == null) return null;
if (/*#__PURE__*/ (0, R.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {
var t = e.props;
- return JI(t);
+ return YI(t);
}
- return typeof e == "object" && !Array.isArray(e) ? JI(e) : null;
+ return typeof e == "object" && !Array.isArray(e) ? YI(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesAndEvents.js
-function XI(e) {
+function ZI(e) {
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (KI(n) || qI(n) || GI(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (qI(n) || JI(n) || KI(n)) && (t[n] = e[n]);
return t;
}
-function gge(e) {
- return e == null ? null : /*#__PURE__*/ (0, R.isValidElement)(e) ? XI(e.props) : typeof e == "object" && !Array.isArray(e) ? XI(e) : null;
+function Cge(e) {
+ return e == null ? null : /*#__PURE__*/ (0, R.isValidElement)(e) ? ZI(e.props) : typeof e == "object" && !Array.isArray(e) ? ZI(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
-var _ge = [
+var wge = [
"children",
"width",
"height",
@@ -49186,25 +49437,25 @@ var _ge = [
"title",
"desc"
];
-function ZI() {
- return ZI = Object.assign ? Object.assign.bind() : function(e) {
+function QI() {
+ return QI = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, ZI.apply(null, arguments);
+ }, QI.apply(null, arguments);
}
-function vge(e, t) {
+function Tge(e, t) {
if (e == null) return {};
- var n, r, i = yge(e, t);
+ var n, r, i = Ege(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 yge(e, t) {
+function Ege(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -49213,14 +49464,14 @@ function yge(e, t) {
}
return n;
}
-var QI = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = vge(e, _ge), d = a || {
+var $I = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = Tge(e, wge), d = a || {
width: r,
height: i,
x: 0,
y: 0
}, f = Mu("recharts-surface", o);
- return /*#__PURE__*/ R.createElement("svg", ZI({}, XI(u), {
+ return /*#__PURE__*/ R.createElement("svg", QI({}, ZI(u), {
className: f,
width: r,
height: i,
@@ -49228,26 +49479,26 @@ var QI = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
viewBox: `${d.x} ${d.y} ${d.width} ${d.height}`,
ref: t
}), /*#__PURE__*/ R.createElement("title", null, c), /*#__PURE__*/ R.createElement("desc", null, l), n);
-}), bge = ["children", "className"];
-function $I() {
- return $I = Object.assign ? Object.assign.bind() : function(e) {
+}), Dge = ["children", "className"];
+function eL() {
+ return eL = 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;
- }, $I.apply(null, arguments);
+ }, eL.apply(null, arguments);
}
-function xge(e, t) {
+function Oge(e, t) {
if (e == null) return {};
- var n, r, i = Sge(e, t);
+ var n, r, i = kge(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 Sge(e, t) {
+function kge(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -49256,39 +49507,39 @@ function Sge(e, t) {
}
return n;
}
-var eL = /*#__PURE__*/ R.forwardRef((e, t) => {
- var { children: n, className: r } = e, i = xge(e, bge), a = Mu("recharts-layer", r);
- return /*#__PURE__*/ R.createElement("g", $I({ className: a }, XI(i), { ref: t }), n);
-}), tL = /*#__PURE__*/ (0, R.createContext)(null), Cge = () => (0, R.useContext)(tL);
+var tL = /*#__PURE__*/ R.forwardRef((e, t) => {
+ var { children: n, className: r } = e, i = Oge(e, Dge), a = Mu("recharts-layer", r);
+ return /*#__PURE__*/ R.createElement("g", eL({ className: a }, ZI(i), { ref: t }), n);
+}), nL = /*#__PURE__*/ (0, R.createContext)(null), Age = () => (0, R.useContext)(nL);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
-function nL(e) {
+function rL(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js
-var rL = Math.cos, iL = Math.sin, aL = Math.sqrt, oL = Math.PI;
-oL / 2;
-var sL = 2 * oL, cL = Math.PI, lL = 2 * cL, uL = 1e-6, wge = lL - uL;
-function dL(e) {
+var iL = Math.cos, aL = Math.sin, oL = Math.sqrt, sL = Math.PI;
+sL / 2;
+var cL = 2 * sL, lL = Math.PI, uL = 2 * lL, dL = 1e-6, jge = uL - dL;
+function fL(e) {
this._ += e[0];
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
}
-function Tge(e) {
+function Mge(e) {
let t = Math.floor(e);
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
- if (t > 15) return dL;
+ if (t > 15) return fL;
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 fL = class {
+var pL = class {
constructor(e) {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? dL : Tge(e);
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? fL : Mge(e);
}
moveTo(e, t) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@ -49309,18 +49560,18 @@ var fL = 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 > uL) {
- if (!(Math.abs(u * s - c * l) > uL) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
+ else if (d > dL) {
+ if (!(Math.abs(u * s - c * l) > dL) || !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((cL - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > uL && 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((lL - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > dL && 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) > uL || Math.abs(this._y1 - l) > uL) && this._append`L${c},${l}`, n && (d < 0 && (d = d % lL + lL), d > wge ? 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 > uL && this._append`A${n},${n},0,${+(d >= cL)},${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) > dL || Math.abs(this._y1 - l) > dL) && this._append`L${c},${l}`, n && (d < 0 && (d = d % uL + uL), d > jge ? 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 > dL && this._append`A${n},${n},0,${+(d >= lL)},${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`;
@@ -49329,10 +49580,10 @@ var fL = class {
return this._;
}
};
-fL.prototype;
+pL.prototype;
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/path.js
-function pL(e) {
+function mL(e) {
let t = 3;
return e.digits = function(n) {
if (!arguments.length) return t;
@@ -49343,18 +49594,18 @@ function pL(e) {
t = e;
}
return e;
- }, () => new fL(t);
+ }, () => new pL(t);
}
Array.prototype.slice;
-function mL(e) {
+function hL(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 hL(e) {
+function gL(e) {
this._context = e;
}
-hL.prototype = {
+gL.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -49377,33 +49628,33 @@ hL.prototype = {
}
}
};
-function gL(e) {
- return new hL(e);
+function _L(e) {
+ return new gL(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/point.js
-function _L(e) {
+function vL(e) {
return e[0];
}
-function vL(e) {
+function yL(e) {
return e[1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/line.js
-function yL(e, t) {
- var n = nL(!0), r = null, i = gL, a = null, o = pL(s);
- e = typeof e == "function" ? e : e === void 0 ? _L : nL(e), t = typeof t == "function" ? t : t === void 0 ? vL : nL(t);
+function bL(e, t) {
+ var n = rL(!0), r = null, i = _L, a = null, o = mL(s);
+ e = typeof e == "function" ? e : e === void 0 ? vL : rL(e), t = typeof t == "function" ? t : t === void 0 ? yL : rL(t);
function s(s) {
- var c, l = (s = mL(s)).length, u, d = !1, f;
+ var c, l = (s = hL(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 : nL(+t), s) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : rL(+t), s) : e;
}, s.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : nL(+e), s) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : rL(+e), s) : t;
}, s.defined = function(e) {
- return arguments.length ? (n = typeof e == "function" ? e : nL(!!e), s) : n;
+ return arguments.length ? (n = typeof e == "function" ? e : rL(!!e), s) : n;
}, s.curve = function(e) {
return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;
}, s.context = function(e) {
@@ -49412,11 +49663,11 @@ function yL(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/area.js
-function bL(e, t, n) {
- var r = null, i = nL(!0), a = null, o = gL, s = null, c = pL(l);
- e = typeof e == "function" ? e : e === void 0 ? _L : nL(+e), t = typeof t == "function" ? t : nL(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? vL : nL(+n);
+function xL(e, t, n) {
+ var r = null, i = rL(!0), a = null, o = _L, s = null, c = mL(l);
+ e = typeof e == "function" ? e : e === void 0 ? vL : rL(+e), t = typeof t == "function" ? t : rL(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? yL : rL(+n);
function l(l) {
- var u, d, f, p = (l = mL(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
+ var u, d, f, p = (l = hL(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();
@@ -49430,20 +49681,20 @@ function bL(e, t, n) {
if (g) return s = null, g + "" || null;
}
function u() {
- return yL().defined(i).curve(o).context(a);
+ return bL().defined(i).curve(o).context(a);
}
return l.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : nL(+t), r = null, l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : rL(+t), r = null, l) : e;
}, l.x0 = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : nL(+t), l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : rL(+t), l) : e;
}, l.x1 = function(e) {
- return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : nL(+e), l) : r;
+ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : rL(+e), l) : r;
}, l.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : nL(+e), n = null, l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : rL(+e), n = null, l) : t;
}, l.y0 = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : nL(+e), l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : rL(+e), l) : t;
}, l.y1 = function(e) {
- return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : nL(+e), l) : n;
+ return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : rL(+e), l) : n;
}, l.lineX0 = l.lineY0 = function() {
return u().x(e).y(t);
}, l.lineY1 = function() {
@@ -49451,7 +49702,7 @@ function bL(e, t, n) {
}, l.lineX1 = function() {
return u().x(r).y(t);
}, l.defined = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : nL(!!e), l) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : rL(!!e), l) : i;
}, l.curve = function(e) {
return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;
}, l.context = function(e) {
@@ -49460,7 +49711,7 @@ function bL(e, t, n) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/bump.js
-var xL = class {
+var SL = class {
constructor(e, t) {
this._context = e, this._x = t;
}
@@ -49487,70 +49738,70 @@ var xL = class {
this._x0 = e, this._y0 = t;
}
};
-function Ege(e) {
- return new xL(e, !0);
+function Nge(e) {
+ return new SL(e, !0);
}
-function Dge(e) {
- return new xL(e, !1);
+function Pge(e) {
+ return new SL(e, !1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol/circle.js
-var SL = { draw(e, t) {
- let n = aL(t / oL);
- e.moveTo(n, 0), e.arc(0, 0, n, 0, sL);
-} }, Oge = { draw(e, t) {
- let n = aL(t / 5) / 2;
+var CL = { draw(e, t) {
+ let n = oL(t / sL);
+ e.moveTo(n, 0), e.arc(0, 0, n, 0, cL);
+} }, Fge = { draw(e, t) {
+ let n = oL(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();
-} }, CL = aL(1 / 3), kge = CL * 2, Age = { draw(e, t) {
- let n = aL(t / kge), r = n * CL;
+} }, wL = oL(1 / 3), Ige = wL * 2, Lge = { draw(e, t) {
+ let n = oL(t / Ige), r = n * wL;
e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
-} }, jge = { draw(e, t) {
- let n = aL(t), r = -n / 2;
+} }, Rge = { draw(e, t) {
+ let n = oL(t), r = -n / 2;
e.rect(r, r, n, n);
-} }, Mge = .8908130915292852, wL = iL(oL / 10) / iL(7 * oL / 10), Nge = iL(sL / 10) * wL, Pge = -rL(sL / 10) * wL, Fge = { draw(e, t) {
- let n = aL(t * Mge), r = Nge * n, i = Pge * n;
+} }, zge = .8908130915292852, TL = aL(sL / 10) / aL(7 * sL / 10), Bge = aL(cL / 10) * TL, Vge = -iL(cL / 10) * TL, Hge = { draw(e, t) {
+ let n = oL(t * zge), r = Bge * n, i = Vge * n;
e.moveTo(0, -n), e.lineTo(r, i);
for (let t = 1; t < 5; ++t) {
- let a = sL * t / 5, o = rL(a), s = iL(a);
+ let a = cL * t / 5, o = iL(a), s = aL(a);
e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
}
e.closePath();
-} }, TL = aL(3), Ige = { draw(e, t) {
- let n = -aL(t / (TL * 3));
- e.moveTo(0, n * 2), e.lineTo(-TL * n, -n), e.lineTo(TL * n, -n), e.closePath();
-} }, EL = -.5, DL = aL(3) / 2, OL = 1 / aL(12), Lge = (OL / 2 + 1) * 3, Rge = { draw(e, t) {
- let n = aL(t / Lge), r = n / 2, i = n * OL, a = r, o = n * OL + n, s = -a, c = o;
- e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(EL * r - DL * i, DL * r + EL * i), e.lineTo(EL * a - DL * o, DL * a + EL * o), e.lineTo(EL * s - DL * c, DL * s + EL * c), e.lineTo(EL * r + DL * i, EL * i - DL * r), e.lineTo(EL * a + DL * o, EL * o - DL * a), e.lineTo(EL * s + DL * c, EL * c - DL * s), e.closePath();
+} }, EL = oL(3), Uge = { draw(e, t) {
+ let n = -oL(t / (EL * 3));
+ e.moveTo(0, n * 2), e.lineTo(-EL * n, -n), e.lineTo(EL * n, -n), e.closePath();
+} }, DL = -.5, OL = oL(3) / 2, kL = 1 / oL(12), Wge = (kL / 2 + 1) * 3, Gge = { draw(e, t) {
+ let n = oL(t / Wge), r = n / 2, i = n * kL, a = r, o = n * kL + n, s = -a, c = o;
+ e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(DL * r - OL * i, OL * r + DL * i), e.lineTo(DL * a - OL * o, OL * a + DL * o), e.lineTo(DL * s - OL * c, OL * s + DL * c), e.lineTo(DL * r + OL * i, DL * i - OL * r), e.lineTo(DL * a + OL * o, DL * o - OL * a), e.lineTo(DL * s + OL * c, DL * c - OL * s), e.closePath();
} };
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js
-function zge(e, t) {
- let n = null, r = pL(i);
- e = typeof e == "function" ? e : nL(e || SL), t = typeof t == "function" ? t : nL(t === void 0 ? 64 : +t);
+function Kge(e, t) {
+ let n = null, r = mL(i);
+ e = typeof e == "function" ? e : rL(e || CL), t = typeof t == "function" ? t : rL(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 : nL(t), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : rL(t), i) : e;
}, i.size = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : nL(+e), i) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : rL(+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 kL() {}
+function AL() {}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basis.js
-function AL(e, t, n) {
+function jL(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 jL(e) {
+function ML(e) {
this._context = e;
}
-jL.prototype = {
+ML.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -49562,7 +49813,7 @@ jL.prototype = {
},
lineEnd: function() {
switch (this._point) {
- case 3: AL(this, this._x1, this._y1);
+ case 3: jL(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;
@@ -49576,22 +49827,22 @@ jL.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: AL(this, e, t);
+ default: jL(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Bge(e) {
- return new jL(e);
+function qge(e) {
+ return new ML(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisClosed.js
-function ML(e) {
+function NL(e) {
this._context = e;
}
-ML.prototype = {
- areaStart: kL,
- areaEnd: kL,
+NL.prototype = {
+ areaStart: AL,
+ areaEnd: AL,
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;
},
@@ -49617,20 +49868,20 @@ ML.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: AL(this, e, t);
+ default: jL(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Vge(e) {
- return new ML(e);
+function Jge(e) {
+ return new NL(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisOpen.js
-function NL(e) {
+function PL(e) {
this._context = e;
}
-NL.prototype = {
+PL.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -49657,22 +49908,22 @@ NL.prototype = {
this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
break;
case 3: this._point = 4;
- default: AL(this, e, t);
+ default: jL(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Hge(e) {
- return new NL(e);
+function Yge(e) {
+ return new PL(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linearClosed.js
-function PL(e) {
+function FL(e) {
this._context = e;
}
-PL.prototype = {
- areaStart: kL,
- areaEnd: kL,
+FL.prototype = {
+ areaStart: AL,
+ areaEnd: AL,
lineStart: function() {
this._point = 0;
},
@@ -49683,30 +49934,30 @@ PL.prototype = {
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
}
};
-function Uge(e) {
- return new PL(e);
+function Xge(e) {
+ return new FL(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/monotone.js
-function FL(e) {
+function IL(e) {
return e < 0 ? -1 : 1;
}
-function IL(e, t, n) {
+function LL(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 (FL(a) + FL(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
+ return (IL(a) + IL(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
}
-function LL(e, t) {
+function RL(e, t) {
var n = e._x1 - e._x0;
return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
}
-function RL(e, t, n) {
+function zL(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 zL(e) {
+function BL(e) {
this._context = e;
}
-zL.prototype = {
+BL.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -49721,7 +49972,7 @@ zL.prototype = {
case 2:
this._context.lineTo(this._x1, this._y1);
break;
- case 3: RL(this, this._t0, LL(this, this._t0));
+ case 3: zL(this, this._t0, RL(this, this._t0));
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
},
@@ -49736,24 +49987,24 @@ zL.prototype = {
this._point = 2;
break;
case 2:
- this._point = 3, RL(this, LL(this, n = IL(this, e, t)), n);
+ this._point = 3, zL(this, RL(this, n = LL(this, e, t)), n);
break;
- default: RL(this, this._t0, n = IL(this, e, t));
+ default: zL(this, this._t0, n = LL(this, e, t));
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
}
}
};
-function BL(e) {
- this._context = new VL(e);
+function VL(e) {
+ this._context = new HL(e);
}
-(BL.prototype = Object.create(zL.prototype)).point = function(e, t) {
- zL.prototype.point.call(this, t, e);
+(VL.prototype = Object.create(BL.prototype)).point = function(e, t) {
+ BL.prototype.point.call(this, t, e);
};
-function VL(e) {
+function HL(e) {
this._context = e;
}
-VL.prototype = {
+HL.prototype = {
moveTo: function(e, t) {
this._context.moveTo(t, e);
},
@@ -49767,18 +50018,18 @@ VL.prototype = {
this._context.bezierCurveTo(t, e, r, n, a, i);
}
};
-function Wge(e) {
- return new zL(e);
-}
-function Gge(e) {
+function Zge(e) {
return new BL(e);
}
+function Qge(e) {
+ return new VL(e);
+}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/natural.js
-function HL(e) {
+function UL(e) {
this._context = e;
}
-HL.prototype = {
+UL.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -49792,7 +50043,7 @@ HL.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 = UL(e), i = UL(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 = WL(e), i = WL(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;
},
@@ -49800,7 +50051,7 @@ HL.prototype = {
this._x.push(+e), this._y.push(+t);
}
};
-function UL(e) {
+function WL(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];
@@ -49808,15 +50059,15 @@ function UL(e) {
for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
return [i, a];
}
-function Kge(e) {
- return new HL(e);
+function $ge(e) {
+ return new UL(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/step.js
-function WL(e, t) {
+function GL(e, t) {
this._context = e, this._t = t;
}
-WL.prototype = {
+GL.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -49844,78 +50095,78 @@ WL.prototype = {
this._x = e, this._y = t;
}
};
-function qge(e) {
- return new WL(e, .5);
+function e_e(e) {
+ return new GL(e, .5);
}
-function Jge(e) {
- return new WL(e, 0);
+function t_e(e) {
+ return new GL(e, 0);
}
-function Yge(e) {
- return new WL(e, 1);
+function n_e(e) {
+ return new GL(e, 1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/none.js
-function GL(e, t) {
+function KL(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 KL(e) {
+function qL(e) {
for (var t = e.length, n = Array(t); --t >= 0;) n[t] = t;
return n;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/stack.js
-function Xge(e, t) {
+function r_e(e, t) {
return e[t];
}
-function Zge(e) {
+function i_e(e) {
let t = [];
return t.key = e, t;
}
-function Qge() {
- var e = nL([]), t = KL, n = GL, r = Xge;
+function a_e() {
+ var e = rL([]), t = qL, n = KL, r = r_e;
function i(i) {
- var a = Array.from(e.apply(this, arguments), Zge), o, s = a.length, c = -1, l;
+ var a = Array.from(e.apply(this, arguments), i_e), 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 = mL(t(a)); o < s; ++o) a[l[o]].index = o;
+ for (o = 0, l = hL(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 : nL(Array.from(t)), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : rL(Array.from(t)), i) : e;
}, i.value = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : nL(+e), i) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : rL(+e), i) : r;
}, i.order = function(e) {
- return arguments.length ? (t = e == null ? KL : typeof e == "function" ? e : nL(Array.from(e)), i) : t;
+ return arguments.length ? (t = e == null ? qL : typeof e == "function" ? e : rL(Array.from(e)), i) : t;
}, i.offset = function(e) {
- return arguments.length ? (n = e ?? GL, i) : n;
+ return arguments.length ? (n = e ?? KL, i) : n;
}, i;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js
-function $ge(e, t) {
+function o_e(e, t) {
if ((r = e.length) > 0) {
for (var n, r, i = 0, a = e[0].length, o; i < a; ++i) {
for (o = n = 0; n < r; ++n) o += e[n][i][1] || 0;
if (o) for (n = 0; n < r; ++n) e[n][i][1] /= o;
}
- GL(e, t);
+ KL(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js
-function e_e(e, t) {
+function s_e(e, t) {
if ((i = e.length) > 0) {
for (var n = 0, r = e[t[0]], i, a = r.length; n < a; ++n) {
for (var o = 0, s = 0; o < i; ++o) s += e[o][n][1] || 0;
r[n][1] += r[n][0] = -s / 2;
}
- GL(e, t);
+ KL(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js
-function t_e(e, t) {
+function c_e(e, t) {
if (!(!((o = e.length) > 0) || !((a = (i = e[t[0]]).length) > 0))) {
for (var n = 0, r = 1, i, a, o; r < a; ++r) {
for (var s = 0, c = 0, l = 0; s < o; ++s) {
@@ -49927,53 +50178,53 @@ function t_e(e, t) {
}
i[r - 1][1] += i[r - 1][0] = n, c && (n -= l / c);
}
- i[r - 1][1] += i[r - 1][0] = n, GL(e, t);
+ i[r - 1][1] += i[r - 1][0] = n, KL(e, t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
-function qL(e) {
+function JL(e) {
return e === "__proto__";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
-var n_e = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
-function JL(e) {
+var l_e = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
+function YL(e) {
switch (typeof e) {
case "number":
case "symbol": return !1;
- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : n_e.test(e);
+ case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : l_e.test(e);
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
-function YL(e) {
+function XL(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 XL(e) {
+function ZL(e) {
return typeof e == "symbol" || e instanceof Symbol;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
-function r_e(e) {
- return e == null ? "" : ZL(e);
+function u_e(e) {
+ return e == null ? "" : QL(e);
}
-function ZL(e) {
+function QL(e) {
if (typeof e == "string") return e;
- if (Array.isArray(e)) return e.map(ZL).join(",");
- if (XL(e)) return e.toString();
+ if (Array.isArray(e)) return e.map(QL).join(",");
+ if (ZL(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 QL(e) {
- if (Array.isArray(e)) return e.map(YL);
+function $L(e) {
+ if (Array.isArray(e)) return e.map(XL);
if (typeof e == "symbol") return [e];
- e = r_e(e);
+ e = u_e(e);
let t = [], n = e.length;
if (n === 0) return t;
let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;
@@ -50001,100 +50252,100 @@ function QL(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/get.mjs
-function $L(e, t, n) {
+function eR(e, t, n) {
if (e == null) return n;
switch (typeof t) {
case "string": {
- if (qL(t)) return n;
+ if (JL(t)) return n;
let r = e[t];
- return r === void 0 ? JL(t) && !Object.hasOwn(e, t) ? $L(e, QL(t), n) : n : r;
+ return r === void 0 ? YL(t) && !Object.hasOwn(e, t) ? eR(e, $L(t), n) : n : r;
}
case "number":
case "symbol": {
- typeof t == "number" && (t = YL(t));
+ typeof t == "number" && (t = XL(t));
let r = e[t];
return r === void 0 ? n : r;
}
default: {
- if (Array.isArray(t)) return i_e(e, t, n);
- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), qL(t)) return n;
+ if (Array.isArray(t)) return d_e(e, t, n);
+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), JL(t)) return n;
let r = e[t];
return r === void 0 ? n : r;
}
}
}
-function i_e(e, t, n) {
+function d_e(e, t, n) {
if (t.length === 0) return n;
let r = e;
for (let e = 0; e < t.length; e++) {
- if (r == null || qL(t[e])) return n;
+ if (r == null || JL(t[e])) return n;
r = r[t[e]];
}
return r === void 0 ? n : r;
}
//#endregion
//#region node_modules/recharts/es6/util/round.js
-var a_e = 4;
-function eR(e) {
- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : a_e), n = Math.round(e * t) / t;
+var f_e = 4;
+function tR(e) {
+ var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : f_e), n = Math.round(e * t) / t;
return Object.is(n, -0) ? 0 : n;
}
-function tR(e) {
+function nR(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 + eR(i) + n;
+ return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + tR(i) + n;
}, "");
}
//#endregion
//#region node_modules/recharts/es6/util/DataUtils.js
-var nR = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, rR = (e) => typeof e == "number" && e != +e, iR = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !rR(e), aR = (e) => Z(e) || typeof e == "string", o_e = 0, oR = (e) => {
- var t = ++o_e;
+var rR = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, iR = (e) => typeof e == "number" && e != +e, aR = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !iR(e), oR = (e) => Z(e) || typeof e == "string", p_e = 0, sR = (e) => {
+ var t = ++p_e;
return `${e || ""}${t}`;
-}, sR = function(e, t) {
+}, cR = 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 (iR(e)) {
+ if (aR(e)) {
if (t == null) return n;
var a = e.indexOf("%");
i = t * parseFloat(e.slice(0, a)) / 100;
} else i = +e;
- return rR(i) && (i = n), r && t != null && i > t && (i = t), i;
-}, cR = (e) => {
+ return iR(i) && (i = n), r && t != null && i > t && (i = t), i;
+}, lR = (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 lR(e, t, n) {
- return Z(e) && Z(t) ? eR(e + n * (t - e)) : t;
-}
function uR(e, t, n) {
- if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : $L(e, t)) === n);
+ return Z(e) && Z(t) ? tR(e + n * (t - e)) : t;
}
-var dR = (e) => e == null, fR = (e) => dR(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
-function pR(e) {
+function dR(e, t, n) {
+ if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : eR(e, t)) === n);
+}
+var fR = (e) => e == null, pR = (e) => fR(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
+function mR(e) {
return e != null;
}
-function mR() {}
+function hR() {}
//#endregion
//#region node_modules/recharts/es6/shape/Symbols.js
-var s_e = [
+var m_e = [
"type",
"size",
"sizeType"
];
-function hR() {
- return hR = Object.assign ? Object.assign.bind() : function(e) {
+function gR() {
+ return gR = 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;
- }, hR.apply(null, arguments);
+ }, gR.apply(null, arguments);
}
-function gR(e, t) {
+function _R(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50104,30 +50355,30 @@ function gR(e, t) {
}
return n;
}
-function _R(e) {
+function vR(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? gR(Object(n), !0).forEach(function(t) {
- c_e(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : gR(Object(n)).forEach(function(t) {
+ t % 2 ? _R(Object(n), !0).forEach(function(t) {
+ h_e(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _R(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function c_e(e, t, n) {
- return (t = l_e(t)) in e ? Object.defineProperty(e, t, {
+function h_e(e, t, n) {
+ return (t = g_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function l_e(e) {
- var t = u_e(e, "string");
+function g_e(e) {
+ var t = __e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function u_e(e, t) {
+function __e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50137,16 +50388,16 @@ function u_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function d_e(e, t) {
+function v_e(e, t) {
if (e == null) return {};
- var n, r, i = f_e(e, t);
+ var n, r, i = y_e(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function f_e(e, t) {
+function y_e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -50155,68 +50406,68 @@ function f_e(e, t) {
}
return n;
}
-var vR = {
- symbolCircle: SL,
- symbolCross: Oge,
- symbolDiamond: Age,
- symbolSquare: jge,
- symbolStar: Fge,
- symbolTriangle: Ige,
- symbolWye: Rge
-}, p_e = Math.PI / 180, m_e = (e) => vR[`symbol${fR(e)}`] || SL, h_e = (e, t, n) => {
+var yR = {
+ symbolCircle: CL,
+ symbolCross: Fge,
+ symbolDiamond: Lge,
+ symbolSquare: Rge,
+ symbolStar: Hge,
+ symbolTriangle: Uge,
+ symbolWye: Gge
+}, b_e = Math.PI / 180, x_e = (e) => yR[`symbol${pR(e)}`] || CL, S_e = (e, t, n) => {
if (t === "area") return e;
switch (n) {
case "cross": return 5 * e * e / 9;
case "diamond": return .5 * e * e / Math.sqrt(3);
case "square": return e * e;
case "star":
- var r = 18 * p_e;
+ var r = 18 * b_e;
return 1.25 * e * e * (Math.tan(r) - Math.tan(r * 2) * Math.tan(r) ** 2);
case "triangle": return Math.sqrt(3) * e * e / 4;
case "wye": return (21 - 10 * Math.sqrt(3)) * e * e / 8;
default: return Math.PI * e * e / 4;
}
-}, g_e = (e, t) => {
- vR[`symbol${fR(e)}`] = t;
-}, yR = (e) => {
- var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = _R(_R({}, d_e(e, s_e)), {}, {
+}, C_e = (e, t) => {
+ yR[`symbol${pR(e)}`] = t;
+}, bR = (e) => {
+ var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = vR(vR({}, v_e(e, m_e)), {}, {
type: t,
size: n,
sizeType: r
}), a = "circle";
typeof t == "string" && (a = t);
var o = () => {
- var e = m_e(a), t = zge().type(e).size(h_e(n, r, a))();
+ var e = x_e(a), t = Kge().type(e).size(S_e(n, r, a))();
if (t !== null) return t;
- }, { className: s, cx: c, cy: l } = i, u = XI(i);
- return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ R.createElement("path", hR({}, u, {
+ }, { className: s, cx: c, cy: l } = i, u = ZI(i);
+ return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ R.createElement("path", gR({}, u, {
className: Mu("recharts-symbols", s),
transform: `translate(${c}, ${l})`,
d: o()
})) : null;
};
-yR.registerSymbol = g_e;
+bR.registerSymbol = C_e;
//#endregion
//#region node_modules/recharts/es6/util/types.js
-var bR = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, xR = (e, t) => {
+var xR = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, SR = (e, t) => {
if (!e || typeof e == "function" || typeof e == "boolean") return null;
var n = e;
if (/*#__PURE__*/ (0, R.isValidElement)(e) && (n = e.props), typeof n != "object" && typeof n != "function") return null;
var r = {};
return Object.keys(n).forEach((e) => {
- GI(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
+ KI(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
}), r;
-}, __e = (e, t, n) => (r) => (e(t, n, r), null), SR = (e, t, n) => {
+}, w_e = (e, t, n) => (r) => (e(t, n, r), null), CR = (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];
- GI(i) && typeof a == "function" && (r ||= {}, r[i] = __e(a, t, n));
+ KI(i) && typeof a == "function" && (r ||= {}, r[i] = w_e(a, t, n));
}), r;
};
//#endregion
//#region node_modules/recharts/es6/util/resolveDefaultProps.js
-function CR(e, t) {
+function wR(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50226,30 +50477,30 @@ function CR(e, t) {
}
return n;
}
-function v_e(e) {
+function T_e(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? CR(Object(n), !0).forEach(function(t) {
- y_e(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : CR(Object(n)).forEach(function(t) {
+ t % 2 ? wR(Object(n), !0).forEach(function(t) {
+ E_e(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wR(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function y_e(e, t, n) {
- return (t = b_e(t)) in e ? Object.defineProperty(e, t, {
+function E_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 b_e(e) {
- var t = x_e(e, "string");
+function D_e(e) {
+ var t = O_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function x_e(e, t) {
+function O_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50259,22 +50510,22 @@ function x_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function wR(e, t) {
- var n = v_e({}, e), r = t;
+function TR(e, t) {
+ var n = T_e({}, 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 TR() {
- return TR = Object.assign ? Object.assign.bind() : function(e) {
+function ER() {
+ return ER = 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;
- }, TR.apply(null, arguments);
+ }, ER.apply(null, arguments);
}
-function ER(e, t) {
+function DR(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50284,30 +50535,30 @@ function ER(e, t) {
}
return n;
}
-function DR(e) {
+function OR(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? ER(Object(n), !0).forEach(function(t) {
- S_e(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ER(Object(n)).forEach(function(t) {
+ t % 2 ? DR(Object(n), !0).forEach(function(t) {
+ k_e(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : DR(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function S_e(e, t, n) {
- return (t = C_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 C_e(e) {
- var t = w_e(e, "string");
+function A_e(e) {
+ var t = j_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function w_e(e, t) {
+function j_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50317,7 +50568,7 @@ function w_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var OR = 32, T_e = {
+var kR = 32, M_e = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -50325,20 +50576,20 @@ var OR = 32, T_e = {
verticalAlign: "middle",
labelStyle: {}
};
-function E_e(e) {
+function N_e(e) {
if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);
}
-function D_e(e) {
- var { data: t, iconType: n, inactiveColor: r } = e, i = OR / 2, a = OR / 6, o = OR / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
+function P_e(e) {
+ var { data: t, iconType: n, inactiveColor: r } = e, i = kR / 2, a = kR / 6, o = kR / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
if (c === "none") return null;
if (c === "plainline") return /*#__PURE__*/ R.createElement("line", {
strokeWidth: 4,
fill: "none",
stroke: s,
- strokeDasharray: E_e(t.payload),
+ strokeDasharray: N_e(t.payload),
x1: 0,
y1: i,
- x2: OR,
+ x2: kR,
y2: i,
className: "recharts-legend-icon"
});
@@ -50348,35 +50599,35 @@ function D_e(e) {
stroke: s,
d: `M0,${i}h${o}
A${a},${a},0,1,1,${2 * o},${i}
- H${OR}M${2 * o},${i}
+ H${kR}M${2 * o},${i}
A${a},${a},0,1,1,${o},${i}`,
className: "recharts-legend-icon"
});
if (c === "rect") return /*#__PURE__*/ R.createElement("path", {
stroke: "none",
fill: s,
- d: `M0,${OR / 8}h${OR}v${OR * 3 / 4}h${-OR}z`,
+ d: `M0,${kR / 8}h${kR}v${kR * 3 / 4}h${-kR}z`,
className: "recharts-legend-icon"
});
if (/*#__PURE__*/ R.isValidElement(t.legendIcon)) {
- var l = DR({}, t);
+ var l = OR({}, t);
return delete l.legendIcon, /*#__PURE__*/ R.cloneElement(t.legendIcon, l);
}
- return /*#__PURE__*/ R.createElement(yR, {
+ return /*#__PURE__*/ R.createElement(bR, {
fill: s,
cx: i,
cy: i,
- size: OR,
+ size: kR,
sizeType: "diameter",
type: c
});
}
-function O_e(e) {
+function F_e(e) {
var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {
x: 0,
y: 0,
- width: OR,
- height: OR
+ width: kR,
+ height: kR
}, l = {
display: r === "horizontal" ? "inline-block" : "block",
marginRight: 10
@@ -50392,20 +50643,20 @@ function O_e(e) {
inactive: t.inactive
});
if (t.type === "none") return null;
- var p = typeof s == "object" ? DR({}, s) : {};
+ var p = typeof s == "object" ? OR({}, s) : {};
p.color = t.inactive ? a : p.color || t.color;
var m = d ? d(t.value, t, r) : t.value;
- return /*#__PURE__*/ R.createElement("li", TR({
+ return /*#__PURE__*/ R.createElement("li", ER({
className: f,
style: l,
key: `legend-item-${r}`
- }, SR(e, t, r)), /*#__PURE__*/ R.createElement(QI, {
+ }, CR(e, t, r)), /*#__PURE__*/ R.createElement($I, {
width: n,
height: n,
viewBox: c,
style: u,
"aria-label": `${m} legend icon`
- }, /*#__PURE__*/ R.createElement(D_e, {
+ }, /*#__PURE__*/ R.createElement(P_e, {
data: t,
iconType: o,
inactiveColor: a
@@ -50415,8 +50666,8 @@ function O_e(e) {
}, m));
});
}
-var k_e = (e) => {
- var t = wR(e, T_e), { payload: n, layout: r, align: i } = t;
+var I_e = (e) => {
+ var t = TR(e, M_e), { payload: n, layout: r, align: i } = t;
if (!n || !n.length) return null;
var a = {
padding: 0,
@@ -50426,11 +50677,11 @@ var k_e = (e) => {
return /*#__PURE__*/ R.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ R.createElement(O_e, TR({}, t, { payload: n })));
+ }, /*#__PURE__*/ R.createElement(F_e, ER({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
-function A_e(e, t) {
+function L_e(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r = 0; r < e.length; r++) {
let i = e[r], a = t(i, r, e);
@@ -50440,77 +50691,77 @@ function A_e(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/function/ary.mjs
-function j_e(e, t) {
+function R_e(e, t) {
return function(...n) {
return e.apply(this, n.slice(0, t));
};
}
//#endregion
//#region node_modules/es-toolkit/dist/function/identity.mjs
-function kR(e) {
+function AR(e) {
return e;
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isLength.mjs
-function M_e(e) {
+function z_e(e) {
return Number.isSafeInteger(e) && e >= 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
-function AR(e) {
- return e != null && typeof e != "function" && M_e(e.length);
+function jR(e) {
+ return e != null && typeof e != "function" && z_e(e.length);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/property.mjs
-function N_e(e) {
+function B_e(e) {
return function(t) {
- return $L(t, e);
+ return eR(t, e);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
-function jR(e) {
+function MR(e) {
return e == null || typeof e != "object" && typeof e != "function";
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
-function P_e(e) {
+function V_e(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
-function F_e(e) {
+function H_e(e) {
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
-function MR(e) {
+function NR(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 I_e = "[object RegExp]", NR = "[object String]", PR = "[object Number]", FR = "[object Boolean]", IR = "[object Arguments]", L_e = "[object Symbol]", R_e = "[object Date]", z_e = "[object Map]", B_e = "[object Set]", V_e = "[object Array]", H_e = "[object ArrayBuffer]", U_e = "[object Object]", W_e = "[object DataView]", G_e = "[object Uint8Array]", K_e = "[object Uint8ClampedArray]", q_e = "[object Uint16Array]", J_e = "[object Uint32Array]", Y_e = "[object Int8Array]", X_e = "[object Int16Array]", Z_e = "[object Int32Array]", Q_e = "[object Float32Array]", $_e = "[object Float64Array]", LR = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
+var U_e = "[object RegExp]", PR = "[object String]", FR = "[object Number]", IR = "[object Boolean]", LR = "[object Arguments]", W_e = "[object Symbol]", G_e = "[object Date]", K_e = "[object Map]", q_e = "[object Set]", J_e = "[object Array]", Y_e = "[object ArrayBuffer]", X_e = "[object Object]", Z_e = "[object DataView]", Q_e = "[object Uint8Array]", $_e = "[object Uint8ClampedArray]", eve = "[object Uint16Array]", tve = "[object Uint32Array]", nve = "[object Int8Array]", rve = "[object Int16Array]", ive = "[object Int32Array]", ave = "[object Float32Array]", ove = "[object Float64Array]", RR = 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 eve(e) {
- return LR.Buffer !== void 0 && LR.Buffer.isBuffer(e);
+function sve(e) {
+ return RR.Buffer !== void 0 && RR.Buffer.isBuffer(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
-function tve(e, t) {
- return RR(e, void 0, e, /* @__PURE__ */ new Map(), t);
+function cve(e, t) {
+ return zR(e, void 0, e, /* @__PURE__ */ new Map(), t);
}
-function RR(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
+function zR(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
let a = i?.(e, t, n, r);
if (a !== void 0) return a;
- if (jR(e)) return e;
+ if (MR(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] = RR(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = zR(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());
@@ -50521,132 +50772,132 @@ function RR(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, RR(o, a, n, r, i));
+ for (let [a, o] of e) t.set(a, zR(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(RR(a, void 0, n, r, i));
+ for (let a of e) t.add(zR(a, void 0, n, r, i));
return t;
}
- if (eve(e)) return e.subarray();
- if (P_e(e)) {
+ if (sve(e)) return e.subarray();
+ if (V_e(e)) {
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
r.set(e, t);
- for (let a = 0; a < e.length; a++) t[a] = RR(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = zR(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), zR(t, e, n, r, i), t;
+ return r.set(e, t), BR(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), zR(t, e, n, r, i), t;
+ return r.set(e, t), BR(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), zR(t, e, n, r, i), t;
+ return r.set(e, t), BR(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, zR(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, BR(t, e, n, r, i), t;
}
if (e instanceof Boolean) {
let t = new Boolean(e.valueOf());
- return r.set(e, t), zR(t, e, n, r, i), t;
+ return r.set(e, t), BR(t, e, n, r, i), t;
}
if (e instanceof Number) {
let t = new Number(e.valueOf());
- return r.set(e, t), zR(t, e, n, r, i), t;
+ return r.set(e, t), BR(t, e, n, r, i), t;
}
if (e instanceof String) {
let t = new String(e.valueOf());
- return r.set(e, t), zR(t, e, n, r, i), t;
+ return r.set(e, t), BR(t, e, n, r, i), t;
}
- if (typeof e == "object" && nve(e)) {
+ if (typeof e == "object" && lve(e)) {
let t = Object.create(Object.getPrototypeOf(e));
- return r.set(e, t), zR(t, e, n, r, i), t;
+ return r.set(e, t), BR(t, e, n, r, i), t;
}
return e;
}
-function zR(e, t, n = e, r, i) {
- let a = [...Object.keys(t), ...F_e(t)];
+function BR(e, t, n = e, r, i) {
+ let a = [...Object.keys(t), ...H_e(t)];
for (let o = 0; o < a.length; o++) {
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
- (c == null || c.writable) && (e[s] = RR(t[s], s, n, r, i));
+ (c == null || c.writable) && (e[s] = zR(t[s], s, n, r, i));
}
}
-function nve(e) {
- switch (MR(e)) {
- case IR:
- case V_e:
- case H_e:
- case W_e:
- case FR:
- case R_e:
- case Q_e:
- case $_e:
+function lve(e) {
+ switch (NR(e)) {
+ case LR:
+ case J_e:
case Y_e:
- case X_e:
case Z_e:
- case z_e:
- case PR:
- case U_e:
- case I_e:
- case B_e:
- case NR:
- case L_e:
+ case IR:
case G_e:
+ case ave:
+ case ove:
+ case nve:
+ case rve:
+ case ive:
case K_e:
+ case FR:
+ case X_e:
+ case U_e:
case q_e:
- case J_e: return !0;
+ case PR:
+ case W_e:
+ case Q_e:
+ case $_e:
+ case eve:
+ case tve: return !0;
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs
-function rve(e) {
- return RR(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
+function uve(e) {
+ return zR(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/eq.mjs
-function BR(e, t) {
+function VR(e, t) {
return e === t || Number.isNaN(e) && Number.isNaN(t);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isObject.mjs
-function VR(e) {
+function HR(e) {
return e !== null && (typeof e == "object" || typeof e == "function");
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatchWith.mjs
-function HR(e, t, n) {
- return typeof n == "function" ? UR(e, t, function e(t, r, i, a, o, s) {
+function UR(e, t, n) {
+ return typeof n == "function" ? WR(e, t, function e(t, r, i, a, o, s) {
let c = n(t, r, i, a, o, s);
- return c === void 0 ? UR(t, r, e, s, !1) : !!c;
- }, /* @__PURE__ */ new Map(), !0) : HR(e, t, () => void 0);
+ return c === void 0 ? WR(t, r, e, s, !1) : !!c;
+ }, /* @__PURE__ */ new Map(), !0) : UR(e, t, () => void 0);
}
-function UR(e, t, n, r, i = !1) {
+function WR(e, t, n, r, i = !1) {
if (t === e) return !0;
switch (typeof t) {
- case "object": return ive(e, t, n, r, i);
- case "function": return Object.keys(t).length > 0 ? UR(e, { ...t }, n, r, i) : BR(e, t);
- default: return VR(e) && i ? typeof t != "string" || t === "" : BR(e, t);
+ case "object": return dve(e, t, n, r, i);
+ case "function": return Object.keys(t).length > 0 ? WR(e, { ...t }, n, r, i) : VR(e, t);
+ default: return HR(e) && i ? typeof t != "string" || t === "" : VR(e, t);
}
}
-function ive(e, t, n, r, i = !1) {
+function dve(e, t, n, r, i = !1) {
if (t == null) return !0;
- if (Array.isArray(t)) return WR(e, t, n, r);
- if (t instanceof Map) return ave(e, t, n, r);
- if (t instanceof Set) return ove(e, t, n, r);
+ if (Array.isArray(t)) return GR(e, t, n, r);
+ if (t instanceof Map) return fve(e, t, n, r);
+ if (t instanceof Set) return pve(e, t, n, r);
let a = Object.keys(t);
if (e == null) return i && a.length === 0;
- if (i) jR(e) && (e = Object(e));
+ if (i) MR(e) && (e = Object(e));
else {
- let t = MR(e);
+ let t = NR(e);
if (t !== "[object Object]" && t !== "[object Arguments]") return !1;
}
if (a.length === 0) return !0;
@@ -50662,13 +50913,13 @@ function ive(e, t, n, r, i = !1) {
r?.delete(t);
}
}
-function ave(e, t, n, r) {
+function fve(e, t, n, r) {
if (t.size === 0) return !0;
if (!(e instanceof Map)) return !1;
for (let [i, a] of t.entries()) if (n(e.get(i), a, i, e, t, r) === !1) return !1;
return !0;
}
-function WR(e, t, n, r) {
+function GR(e, t, n, r) {
if (t.length === 0) return !0;
if (!Array.isArray(e)) return !1;
let i = /* @__PURE__ */ new Set();
@@ -50686,40 +50937,40 @@ function WR(e, t, n, r) {
}
return !0;
}
-function ove(e, t, n, r) {
- return t.size === 0 || e instanceof Set && WR([...e], [...t], n, r);
+function pve(e, t, n, r) {
+ return t.size === 0 || e instanceof Set && GR([...e], [...t], n, r);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatch.mjs
-function GR(e, t) {
- return HR(e, t, () => void 0);
+function KR(e, t) {
+ return UR(e, t, () => void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs
-function sve(e) {
- return e = rve(e), (t) => GR(t, e);
+function mve(e) {
+ return e = uve(e), (t) => KR(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
-function cve(e, t) {
- return tve(e, (n, r, i, a) => {
+function hve(e, t) {
+ return cve(e, (n, r, i, a) => {
let o = t?.(n, r, i, a);
if (o !== void 0) return o;
if (typeof e == "object") {
- if (MR(e) === "[object Object]" && typeof e.constructor != "function") {
+ if (NR(e) === "[object Object]" && typeof e.constructor != "function") {
let t = {};
- return a.set(e, t), zR(t, e, i, a), t;
+ return a.set(e, t), BR(t, e, i, a), t;
}
switch (Object.prototype.toString.call(e)) {
+ case FR:
case PR:
- case NR:
- case FR: {
+ case IR: {
let t = new e.constructor(e?.valueOf());
- return zR(t, e), t;
+ return BR(t, e), t;
}
- case IR: {
+ case LR: {
let t = {};
- return zR(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
+ return BR(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
}
default: return;
}
@@ -50728,79 +50979,79 @@ function cve(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
-function lve(e) {
- return cve(e);
+function gve(e) {
+ return hve(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
-var uve = /^(?:0|[1-9]\d*)$/;
-function KR(e, t = 2 ** 53 - 1) {
+var _ve = /^(?:0|[1-9]\d*)$/;
+function qR(e, t = 2 ** 53 - 1) {
switch (typeof e) {
case "number": return Number.isInteger(e) && e >= 0 && e < t;
case "symbol": return !1;
- case "string": return uve.test(e);
+ case "string": return _ve.test(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
-function dve(e) {
- return typeof e == "object" && !!e && MR(e) === "[object Arguments]";
+function vve(e) {
+ return typeof e == "object" && !!e && NR(e) === "[object Arguments]";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/has.mjs
-function fve(e, t) {
+function yve(e, t) {
let n;
- if (n = Array.isArray(t) ? t : typeof t == "string" && JL(t) && !(t in Object(e)) ? QL(t) : [t], n.length === 0) return !1;
+ if (n = Array.isArray(t) ? t : typeof t == "string" && YL(t) && !(t in Object(e)) ? $L(t) : [t], n.length === 0) return !1;
let r = e;
for (let e = 0; e < n.length; e++) {
- let t = YL(n[e]);
- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || dve(r)) && KR(t) && Number(t) < r.length)) return !1;
+ let t = XL(n[e]);
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || vve(r)) && qR(t) && Number(t) < r.length)) return !1;
r = r[t];
}
return !0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matchesProperty.mjs
-function pve(e, t) {
+function bve(e, t) {
switch (typeof e) {
case "object":
Object.is(e?.valueOf(), -0) && (e = "-0");
break;
- case "number": e = YL(e);
+ case "number": e = XL(e);
}
- return t = lve(t), function(n) {
- let r = $L(n, e);
- return r === void 0 ? fve(n, e) : t === void 0 ? r === void 0 : GR(r, t);
+ return t = gve(t), function(n) {
+ let r = eR(n, e);
+ return r === void 0 ? yve(n, e) : t === void 0 ? r === void 0 : KR(r, t);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/iteratee.mjs
-function qR(e) {
- if (e == null) return kR;
+function JR(e) {
+ if (e == null) return AR;
switch (typeof e) {
case "function": return e;
- case "object": return Array.isArray(e) && e.length === 2 ? pve(e[0], e[1]) : sve(e);
- default: return N_e(e);
+ case "object": return Array.isArray(e) && e.length === 2 ? bve(e[0], e[1]) : mve(e);
+ default: return B_e(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/normalizeZero.mjs
-function mve(e) {
+function xve(e) {
return e === 0 ? 0 : e;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs
-function JR(e, t = kR) {
- return AR(e) ? A_e(Array.from(e), j_e(qR(t), 1)).map(mve) : [];
+function YR(e, t = AR) {
+ return jR(e) ? L_e(Array.from(e), R_e(JR(t), 1)).map(xve) : [];
}
//#endregion
//#region node_modules/recharts/es6/util/payload/getUniqPayload.js
-function YR(e, t, n) {
- return t === !0 ? JR(e, n) : typeof t == "function" ? JR(e, t) : e;
+function XR(e, t, n) {
+ return t === !0 ? YR(e, n) : typeof t == "function" ? YR(e, t) : e;
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var hve = /* @__PURE__ */ Te(((e) => {
+var Sve = /* @__PURE__ */ Te(((e) => {
var t = Ne(), n = Jp();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -50845,60 +51096,60 @@ var hve = /* @__PURE__ */ Te(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), gve = /* @__PURE__ */ Te(((e, t) => {
- t.exports = hve();
-})), XR = /*#__PURE__*/ (0, R.createContext)(null), _ve = gve(), vve = (e) => e, ZR = () => {
- var e = (0, R.useContext)(XR);
- return e ? e.store.dispatch : vve;
-}, QR = () => {}, yve = () => QR, bve = (e, t) => e === t;
+})), Cve = /* @__PURE__ */ Te(((e, t) => {
+ t.exports = Sve();
+})), ZR = /*#__PURE__*/ (0, R.createContext)(null), wve = Cve(), Tve = (e) => e, QR = () => {
+ var e = (0, R.useContext)(ZR);
+ return e ? e.store.dispatch : Tve;
+}, $R = () => {}, Eve = () => $R, Dve = (e, t) => e === t;
function Q(e) {
- var t = (0, R.useContext)(XR), n = (0, R.useMemo)(() => t ? (t) => {
+ var t = (0, R.useContext)(ZR), n = (0, R.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
- } : QR, [t, e]);
- return (0, _ve.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : yve, t ? t.store.getState : QR, t ? t.store.getState : QR, n, bve);
+ } : $R, [t, e]);
+ return (0, wve.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : Eve, t ? t.store.getState : $R, t ? t.store.getState : $R, n, Dve);
}
//#endregion
//#region node_modules/reselect/dist/reselect.mjs
-function xve(e, t = `expected a function, instead received ${typeof e}`) {
+function Ove(e, t = `expected a function, instead received ${typeof e}`) {
if (typeof e != "function") throw TypeError(t);
}
-function Sve(e, t = `expected an object, instead received ${typeof e}`) {
+function kve(e, t = `expected an object, instead received ${typeof e}`) {
if (typeof e != "object") throw TypeError(t);
}
-function Cve(e, t = "expected all items to be functions, instead received the following types: ") {
+function Ave(e, t = "expected all items to be functions, instead received the following types: ") {
if (!e.every((e) => typeof e == "function")) {
let n = e.map((e) => typeof e == "function" ? `function ${e.name || "unnamed"}()` : typeof e).join(", ");
throw TypeError(`${t}[${n}]`);
}
}
-var $R = (e) => Array.isArray(e) ? e : [e];
-function wve(e) {
+var ez = (e) => Array.isArray(e) ? e : [e];
+function jve(e) {
let t = Array.isArray(e[0]) ? e[0] : e;
- return Cve(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
+ return Ave(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
}
-function Tve(e, t) {
+function Mve(e, t) {
let n = [], { length: r } = e;
for (let i = 0; i < r; i++) n.push(e[i].apply(null, t));
return n;
}
-var Eve = class {
+var Nve = class {
constructor(e) {
this.value = e;
}
deref() {
return this.value;
}
-}, Dve = typeof WeakRef < "u" ? WeakRef : Eve, Ove = 0, ez = 1;
-function tz() {
+}, Pve = typeof WeakRef < "u" ? WeakRef : Nve, Fve = 0, tz = 1;
+function nz() {
return {
- s: Ove,
+ s: Fve,
v: void 0,
o: null,
p: null
};
}
-function nz(e, t = {}) {
- let n = tz(), { resultEqualityCheck: r } = t, i, a = 0;
+function rz(e, t = {}) {
+ let n = nz(), { resultEqualityCheck: r } = t, i, a = 0;
function o() {
let t = n, { length: o } = arguments;
for (let e = 0, n = o; e < n; e++) {
@@ -50907,43 +51158,43 @@ function nz(e, t = {}) {
let e = t.o;
e === null && (t.o = e = /* @__PURE__ */ new WeakMap());
let r = e.get(n);
- r === void 0 ? (t = tz(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = nz(), 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 = tz(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = nz(), e.set(n, t)) : t = r;
}
}
let s = t, c;
- if (t.s === ez) c = t.v;
+ if (t.s === tz) 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 Dve(c) : c;
+ e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new Pve(c) : c;
}
- return s.s = ez, s.v = c, c;
+ return s.s = tz, s.v = c, c;
}
return o.clearCache = () => {
- n = tz(), o.resetResultsCount();
+ n = nz(), o.resetResultsCount();
}, o.resultsCount = () => a, o.resetResultsCount = () => {
a = 0;
}, o;
}
-function kve(e, ...t) {
+function Ive(e, ...t) {
let n = typeof e == "function" ? {
memoize: e,
memoizeOptions: t
} : e, r = (...e) => {
let t = 0, r = 0, i, a = {}, o = e.pop();
- typeof o == "object" && (a = o, o = e.pop()), xve(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
- let { memoize: s, memoizeOptions: c = [], argsMemoize: l = nz, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
+ typeof o == "object" && (a = o, o = e.pop()), Ove(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
+ let { memoize: s, memoizeOptions: c = [], argsMemoize: l = rz, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
...n,
...a
- }, f = $R(c), p = $R(u), m = wve(e), h = s(function() {
+ }, f = ez(c), p = ez(u), m = jve(e), h = s(function() {
return t++, o.apply(null, arguments);
}, ...f), g = l(function() {
r++;
- let e = Tve(m, arguments);
+ let e = Mve(m, arguments);
return i = h.apply(null, e), i;
}, ...p);
return Object.assign(g, {
@@ -50965,14 +51216,14 @@ function kve(e, ...t) {
};
return Object.assign(r, { withTypes: () => r }), r;
}
-var $ = /* @__PURE__ */ kve(nz), Ave = Object.assign((e, t = $) => {
- Sve(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
+var $ = /* @__PURE__ */ Ive(rz), Lve = Object.assign((e, t = $) => {
+ kve(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
let n = Object.keys(e);
return t(n.map((t) => e[t]), (...e) => e.reduce((e, t, r) => (e[n[r]] = t, e), {}));
-}, { withTypes: () => Ave });
+}, { withTypes: () => Lve });
//#endregion
//#region node_modules/es-toolkit/dist/array/flatten.mjs
-function jve(e, t = 1) {
+function Rve(e, t = 1) {
let n = [], r = Math.floor(t), i = (e, t) => {
for (let a = 0; a < e.length; a++) {
let o = e[a];
@@ -50983,17 +51234,17 @@ function jve(e, t = 1) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs
-function rz(e, t, n) {
- return VR(n) && (typeof t == "number" && AR(n) && KR(t) && t < n.length || typeof t == "string" && t in n) ? BR(n[t], e) : !1;
+function iz(e, t, n) {
+ return HR(n) && (typeof t == "number" && jR(n) && qR(t) && t < n.length || typeof t == "string" && t in n) ? VR(n[t], e) : !1;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs
-function iz(e) {
+function az(e) {
return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;
}
-var Mve = (e, t, n) => {
+var zve = (e, t, n) => {
if (e !== t) {
- let r = iz(e), i = iz(t);
+ let r = az(e), i = az(t);
if (r === i && r === 0) {
if (e < t) return n === "desc" ? 1 : -1;
if (e > t) return n === "desc" ? -1 : 1;
@@ -51001,15 +51252,15 @@ var Mve = (e, t, n) => {
return n === "desc" ? i - r : r - i;
}
return 0;
-}, Nve = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Pve = /^\w*$/;
-function Fve(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || XL(e) ? !0 : typeof e == "string" && (Pve.test(e) || !Nve.test(e)) || t != null && Object.hasOwn(t, e);
+}, Bve = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Vve = /^\w*$/;
+function Hve(e, t) {
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || ZL(e) ? !0 : typeof e == "string" && (Vve.test(e) || !Bve.test(e)) || t != null && Object.hasOwn(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs
-function Ive(e, t, n, r) {
+function Uve(e, t, n, r) {
if (e == null) return [];
- n = r ? void 0 : n, Array.isArray(e) || (e = AR(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 = jR(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]];
@@ -51017,16 +51268,16 @@ function Ive(e, t, n, r) {
}, a = (e, t) => {
if (e == null) return t;
if (t != null) return typeof e == "object" && "key" in e ? Object.hasOwn(t, e.key) ? t[e.key] : i(t, e.path) : typeof e == "function" ? e(t) : Array.isArray(e) ? i(t, e) : t[e];
- }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || Fve(e) ? e : {
+ }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || Hve(e) ? e : {
key: e,
- path: QL(e)
+ path: $L(e)
}));
return e.map((e) => ({
original: e,
criteria: o.map((t) => a(t, e))
})).slice().sort((e, t) => {
for (let r = 0; r < o.length; r++) {
- let i = Mve(e.criteria[r], t.criteria[r], n[r]);
+ let i = zve(e.criteria[r], t.criteria[r], n[r]);
if (i !== 0) return i;
}
return 0;
@@ -51034,25 +51285,25 @@ function Ive(e, t, n, r) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs
-function az(e, ...t) {
+function oz(e, ...t) {
let n = t.length;
- return n > 1 && rz(e, t[0], t[1]) ? t = [] : n > 2 && rz(t[0], t[1], t[2]) && (t = [t[0]]), Ive(e, jve(t), ["asc"]);
+ return n > 1 && iz(e, t[0], t[1]) ? t = [] : n > 2 && iz(t[0], t[1], t[2]) && (t = [t[0]]), Uve(e, Rve(t), ["asc"]);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/legendSelectors.js
-var oz = (e) => e.legend.settings, Lve = (e) => e.legend.size, Rve = $([(e) => e.legend.payload, oz], (e, t) => {
+var sz = (e) => e.legend.settings, Wve = (e) => e.legend.size, Gve = $([(e) => e.legend.payload, sz], (e, t) => {
var { itemSorter: n } = t, r = e.flat(1);
- return n ? az(r, n) : r;
+ return n ? oz(r, n) : r;
});
//#endregion
//#region node_modules/recharts/es6/context/legendPayloadContext.js
-function zve() {
- return Q(Rve);
+function Kve() {
+ return Q(Gve);
}
//#endregion
//#region node_modules/recharts/es6/util/useElementOffset.js
-var sz = 1;
-function cz() {
+var cz = 1;
+function lz() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], [t, n] = (0, R.useState)({
height: 0,
left: 0,
@@ -51067,7 +51318,7 @@ function cz() {
top: r.top,
width: r.width
};
- (Math.abs(i.height - t.height) > sz || Math.abs(i.left - t.left) > sz || Math.abs(i.top - t.top) > sz || Math.abs(i.width - t.width) > sz) && n({
+ (Math.abs(i.height - t.height) > cz || Math.abs(i.left - t.left) > cz || Math.abs(i.top - t.top) > cz || Math.abs(i.width - t.width) > cz) && n({
height: i.height,
left: i.left,
top: i.top,
@@ -51084,26 +51335,26 @@ function cz() {
}
//#endregion
//#region node_modules/redux/dist/redux.mjs
-function lz(e) {
+function uz(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 uz = typeof Symbol == "function" && Symbol.observable || "@@observable", dz = () => Math.random().toString(36).substring(7).split("").join("."), fz = {
- INIT: `@@redux/INIT${/* @__PURE__ */ dz()}`,
- REPLACE: `@@redux/REPLACE${/* @__PURE__ */ dz()}`,
- PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${dz()}`
+var dz = typeof Symbol == "function" && Symbol.observable || "@@observable", fz = () => Math.random().toString(36).substring(7).split("").join("."), pz = {
+ INIT: `@@redux/INIT${/* @__PURE__ */ fz()}`,
+ REPLACE: `@@redux/REPLACE${/* @__PURE__ */ fz()}`,
+ PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${fz()}`
};
-function pz(e) {
+function mz(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 mz(e, t, n) {
- if (typeof e != "function") throw Error(lz(2));
- if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(lz(0));
+function hz(e, t, n) {
+ if (typeof e != "function") throw Error(uz(2));
+ if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(uz(0));
if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {
- if (typeof n != "function") throw Error(lz(1));
- return n(mz)(e, t);
+ if (typeof n != "function") throw Error(uz(1));
+ return n(hz)(e, t);
}
let r = e, i = t, a = /* @__PURE__ */ new Map(), o = a, s = 0, c = !1;
function l() {
@@ -51112,27 +51363,27 @@ function mz(e, t, n) {
}));
}
function u() {
- if (c) throw Error(lz(3));
+ if (c) throw Error(uz(3));
return i;
}
function d(e) {
- if (typeof e != "function") throw Error(lz(4));
- if (c) throw Error(lz(5));
+ if (typeof e != "function") throw Error(uz(4));
+ if (c) throw Error(uz(5));
let t = !0;
l();
let n = s++;
return o.set(n, e), function() {
if (t) {
- if (c) throw Error(lz(6));
+ if (c) throw Error(uz(6));
t = !1, l(), o.delete(n), a = null;
}
};
}
function f(e) {
- if (!pz(e)) throw Error(lz(7));
- if (e.type === void 0) throw Error(lz(8));
- if (typeof e.type != "string") throw Error(lz(17));
- if (c) throw Error(lz(9));
+ if (!mz(e)) throw Error(uz(7));
+ if (e.type === void 0) throw Error(uz(8));
+ if (typeof e.type != "string") throw Error(uz(17));
+ if (c) throw Error(uz(9));
try {
c = !0, i = r(i, e);
} finally {
@@ -51143,41 +51394,41 @@ function mz(e, t, n) {
}), e;
}
function p(e) {
- if (typeof e != "function") throw Error(lz(10));
- r = e, f({ type: fz.REPLACE });
+ if (typeof e != "function") throw Error(uz(10));
+ r = e, f({ type: pz.REPLACE });
}
function m() {
let e = d;
return {
subscribe(t) {
- if (typeof t != "object" || !t) throw Error(lz(11));
+ if (typeof t != "object" || !t) throw Error(uz(11));
function n() {
let e = t;
e.next && e.next(u());
}
return n(), { unsubscribe: e(n) };
},
- [uz]() {
+ [dz]() {
return this;
}
};
}
- return f({ type: fz.INIT }), {
+ return f({ type: pz.INIT }), {
dispatch: f,
subscribe: d,
getState: u,
replaceReducer: p,
- [uz]: m
+ [dz]: m
};
}
-function Bve(e) {
+function qve(e) {
Object.keys(e).forEach((t) => {
let n = e[t];
- if (n(void 0, { type: fz.INIT }) === void 0) throw Error(lz(12));
- if (n(void 0, { type: fz.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(lz(13));
+ if (n(void 0, { type: pz.INIT }) === void 0) throw Error(uz(12));
+ if (n(void 0, { type: pz.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(uz(13));
});
}
-function hz(e) {
+function gz(e) {
let t = Object.keys(e), n = {};
for (let r = 0; r < t.length; r++) {
let i = t[r];
@@ -51185,7 +51436,7 @@ function hz(e) {
}
let r = Object.keys(n), i;
try {
- Bve(n);
+ qve(n);
} catch (e) {
i = e;
}
@@ -51194,124 +51445,124 @@ function hz(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(lz(14));
+ if (u === void 0) throw t && t.type, Error(uz(14));
o[s] = u, a ||= u !== l;
}
return a ||= r.length !== Object.keys(e).length, a ? o : e;
};
}
-function gz(...e) {
+function _z(...e) {
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
}
-function Vve(...e) {
+function Jve(...e) {
return (t) => (n, r) => {
let i = t(n, r), a = () => {
- throw Error(lz(15));
+ throw Error(uz(15));
}, o = {
getState: i.getState,
dispatch: (e, ...t) => a(e, ...t)
};
- return a = gz(...e.map((e) => e(o)))(i.dispatch), {
+ return a = _z(...e.map((e) => e(o)))(i.dispatch), {
...i,
dispatch: a
};
};
}
-function _z(e) {
- return pz(e) && "type" in e && typeof e.type == "string";
+function vz(e) {
+ return mz(e) && "type" in e && typeof e.type == "string";
}
//#endregion
//#region node_modules/@reduxjs/toolkit/node_modules/immer/dist/immer.mjs
-var vz = Symbol.for("immer-nothing"), yz = Symbol.for("immer-draftable"), bz = Symbol.for("immer-state");
-function xz(e, ...t) {
+var yz = Symbol.for("immer-nothing"), bz = Symbol.for("immer-draftable"), xz = Symbol.for("immer-state");
+function Sz(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var Sz = Object, Cz = Sz.getPrototypeOf, wz = "constructor", Tz = "prototype", Ez = "configurable", Dz = "enumerable", Oz = "writable", kz = "value", Az = (e) => !!e && !!e[bz];
-function jz(e) {
- return e ? Nz(e) || zz(e) || !!e[yz] || !!e[wz]?.[yz] || Bz(e) || Vz(e) : !1;
+var Cz = Object, wz = Cz.getPrototypeOf, Tz = "constructor", Ez = "prototype", Dz = "configurable", Oz = "enumerable", kz = "writable", Az = "value", jz = (e) => !!e && !!e[xz];
+function Mz(e) {
+ return e ? Pz(e) || Bz(e) || !!e[bz] || !!e[Tz]?.[bz] || Vz(e) || Hz(e) : !1;
}
-var Hve = Sz[Tz][wz].toString(), Mz = /* @__PURE__ */ new WeakMap();
-function Nz(e) {
- if (!e || !Hz(e)) return !1;
- let t = Cz(e);
- if (t === null || t === Sz[Tz]) return !0;
- let n = Sz.hasOwnProperty.call(t, wz) && t[wz];
+var Yve = Cz[Ez][Tz].toString(), Nz = /* @__PURE__ */ new WeakMap();
+function Pz(e) {
+ if (!e || !Uz(e)) return !1;
+ let t = wz(e);
+ if (t === null || t === Cz[Ez]) return !0;
+ let n = Cz.hasOwnProperty.call(t, Tz) && t[Tz];
if (n === Object) return !0;
- if (!Uz(n)) return !1;
- let r = Mz.get(n);
- return r === void 0 && (r = Function.toString.call(n), Mz.set(n, r)), r === Hve;
+ if (!Wz(n)) return !1;
+ let r = Nz.get(n);
+ return r === void 0 && (r = Function.toString.call(n), Nz.set(n, r)), r === Yve;
}
-function Pz(e, t, n = !0) {
- Fz(e) === 0 ? (n ? Reflect.ownKeys(e) : Sz.keys(e)).forEach((n) => {
+function Fz(e, t, n = !0) {
+ Iz(e) === 0 ? (n ? Reflect.ownKeys(e) : Cz.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function Fz(e) {
- let t = e[bz];
- return t ? t.type_ : zz(e) ? 1 : Bz(e) ? 2 : Vz(e) ? 3 : 0;
+function Iz(e) {
+ let t = e[xz];
+ return t ? t.type_ : Bz(e) ? 1 : Vz(e) ? 2 : Hz(e) ? 3 : 0;
}
-var Iz = (e, t, n = Fz(e)) => n === 2 ? e.has(t) : Sz[Tz].hasOwnProperty.call(e, t), Lz = (e, t, n = Fz(e)) => n === 2 ? e.get(t) : e[t], Rz = (e, t, n, r = Fz(e)) => {
+var Lz = (e, t, n = Iz(e)) => n === 2 ? e.has(t) : Cz[Ez].hasOwnProperty.call(e, t), Rz = (e, t, n = Iz(e)) => n === 2 ? e.get(t) : e[t], zz = (e, t, n, r = Iz(e)) => {
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
};
-function Uve(e, t) {
+function Xve(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-var zz = Array.isArray, Bz = (e) => e instanceof Map, Vz = (e) => e instanceof Set, Hz = (e) => typeof e == "object", Uz = (e) => typeof e == "function", Wz = (e) => typeof e == "boolean";
-function Wve(e) {
+var Bz = Array.isArray, Vz = (e) => e instanceof Map, Hz = (e) => e instanceof Set, Uz = (e) => typeof e == "object", Wz = (e) => typeof e == "function", Gz = (e) => typeof e == "boolean";
+function Zve(e) {
let t = +e;
return Number.isInteger(t) && String(t) === e;
}
-var Gz = (e) => e.copy_ || e.base_, Kz = (e) => e.modified_ ? e.copy_ : e.base_;
-function qz(e, t) {
- if (Bz(e)) return new Map(e);
- if (Vz(e)) return new Set(e);
- if (zz(e)) return Array[Tz].slice.call(e);
- let n = Nz(e);
+var Kz = (e) => e.copy_ || e.base_, qz = (e) => e.modified_ ? e.copy_ : e.base_;
+function Jz(e, t) {
+ if (Vz(e)) return new Map(e);
+ if (Hz(e)) return new Set(e);
+ if (Bz(e)) return Array[Ez].slice.call(e);
+ let n = Pz(e);
if (t === !0 || t === "class_only" && !n) {
- let t = Sz.getOwnPropertyDescriptors(e);
- delete t[bz];
+ let t = Cz.getOwnPropertyDescriptors(e);
+ delete t[xz];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
- a[Oz] === !1 && (a[Oz] = !0, a[Ez] = !0), (a.get || a.set) && (t[i] = {
- [Ez]: !0,
- [Oz]: !0,
- [Dz]: a[Dz],
- [kz]: e[i]
+ a[kz] === !1 && (a[kz] = !0, a[Dz] = !0), (a.get || a.set) && (t[i] = {
+ [Dz]: !0,
+ [kz]: !0,
+ [Oz]: a[Oz],
+ [Az]: e[i]
});
}
- return Sz.create(Cz(e), t);
+ return Cz.create(wz(e), t);
}
{
- let t = Cz(e);
+ let t = wz(e);
if (t !== null && n) return { ...e };
- let r = Sz.create(t);
- return Sz.assign(r, e);
- }
-}
-function Jz(e, t = !1) {
- return Xz(e) || Az(e) || !jz(e) ? e : (Fz(e) > 1 && Sz.defineProperties(e, {
- set: Yz,
- add: Yz,
- clear: Yz,
- delete: Yz
- }), Sz.freeze(e), t && Pz(e, (e, t) => {
- Jz(t, !0);
+ let r = Cz.create(t);
+ return Cz.assign(r, e);
+ }
+}
+function Yz(e, t = !1) {
+ return Zz(e) || jz(e) || !Mz(e) ? e : (Iz(e) > 1 && Cz.defineProperties(e, {
+ set: Xz,
+ add: Xz,
+ clear: Xz,
+ delete: Xz
+ }), Cz.freeze(e), t && Fz(e, (e, t) => {
+ Yz(t, !0);
}, !1), e);
}
-function Gve() {
- xz(2);
+function Qve() {
+ Sz(2);
}
-var Yz = { [kz]: Gve };
-function Xz(e) {
- return e === null || !Hz(e) || Sz.isFrozen(e);
+var Xz = { [Az]: Qve };
+function Zz(e) {
+ return e === null || !Uz(e) || Cz.isFrozen(e);
}
-var Zz = "MapSet", Qz = "Patches", $z = "ArrayMethods", eB = {};
-function tB(e) {
- let t = eB[e];
- return t || xz(0, e), t;
+var Qz = "MapSet", $z = "Patches", eB = "ArrayMethods", tB = {};
+function nB(e) {
+ let t = tB[e];
+ return t || Sz(0, e), t;
}
-var nB = (e) => !!eB[e], rB, iB = () => rB, Kve = (e, t) => ({
+var rB = (e) => !!tB[e], iB, aB = () => iB, $ve = (e, t) => ({
drafts_: [],
parent_: e,
immer_: t,
@@ -51319,114 +51570,114 @@ var nB = (e) => !!eB[e], rB, iB = () => rB, Kve = (e, t) => ({
unfinalizedDrafts_: 0,
handledSet_: /* @__PURE__ */ new Set(),
processedForPatches_: /* @__PURE__ */ new Set(),
- mapSetPlugin_: nB(Zz) ? tB(Zz) : void 0,
- arrayMethodsPlugin_: nB($z) ? tB($z) : void 0
+ mapSetPlugin_: rB(Qz) ? nB(Qz) : void 0,
+ arrayMethodsPlugin_: rB(eB) ? nB(eB) : void 0
});
-function aB(e, t) {
- t && (e.patchPlugin_ = tB(Qz), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
-}
-function oB(e) {
- sB(e), e.drafts_.forEach(qve), e.drafts_ = null;
+function oB(e, t) {
+ t && (e.patchPlugin_ = nB($z), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
function sB(e) {
- e === rB && (rB = e.parent_);
+ cB(e), e.drafts_.forEach(eye), e.drafts_ = null;
}
-var cB = (e) => rB = Kve(rB, e);
-function qve(e) {
- let t = e[bz];
+function cB(e) {
+ e === iB && (iB = e.parent_);
+}
+var lB = (e) => iB = $ve(iB, e);
+function eye(e) {
+ let t = e[xz];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function lB(e, t) {
+function uB(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
if (e !== void 0 && e !== n) {
- n[bz].modified_ && (oB(t), xz(4)), jz(e) && (e = uB(t, e));
+ n[xz].modified_ && (sB(t), Sz(4)), Mz(e) && (e = dB(t, e));
let { patchPlugin_: r } = t;
- r && r.generateReplacementPatches_(n[bz].base_, e, t);
- } else e = uB(t, n);
- return Jve(t, e, !0), oB(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === vz ? void 0 : e;
-}
-function uB(e, t) {
- if (Xz(t)) return t;
- let n = t[bz];
- if (!n) return hB(t, e.handledSet_, e);
- if (!fB(n, e)) return t;
+ r && r.generateReplacementPatches_(n[xz].base_, e, t);
+ } else e = dB(t, n);
+ return tye(t, e, !0), sB(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === yz ? void 0 : e;
+}
+function dB(e, t) {
+ if (Zz(t)) return t;
+ let n = t[xz];
+ if (!n) return gB(t, e.handledSet_, e);
+ if (!pB(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);
- mB(n, e);
+ hB(n, e);
}
return n.copy_;
}
-function Jve(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && Jz(t, n);
+function tye(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && Yz(t, n);
}
-function dB(e) {
+function fB(e) {
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
}
-var fB = (e, t) => e.scope_ === t, Yve = [];
-function pB(e, t, n, r) {
- let i = Gz(e), a = e.type_;
- if (r !== void 0 && Lz(i, r, a) === t) {
- Rz(i, r, n, a);
+var pB = (e, t) => e.scope_ === t, nye = [];
+function mB(e, t, n, r) {
+ let i = Kz(e), a = e.type_;
+ if (r !== void 0 && Rz(i, r, a) === t) {
+ zz(i, r, n, a);
return;
}
if (!e.draftLocations_) {
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
- Pz(i, (e, n) => {
- if (Az(n)) {
+ Fz(i, (e, n) => {
+ if (jz(n)) {
let r = t.get(n) || [];
r.push(e), t.set(n, r);
}
});
}
- let o = e.draftLocations_.get(t) ?? Yve;
- for (let e of o) Rz(i, e, n, a);
+ let o = e.draftLocations_.get(t) ?? nye;
+ for (let e of o) zz(i, e, n, a);
}
-function Xve(e, t, n) {
+function rye(e, t, n) {
e.callbacks_.push(function(r) {
let i = t;
- if (!i || !fB(i, r)) return;
+ if (!i || !pB(i, r)) return;
r.mapSetPlugin_?.fixSetContents(i);
- let a = Kz(i);
- pB(e, i.draft_ ?? i, a, n), mB(i, r);
+ let a = qz(i);
+ mB(e, i.draft_ ?? i, a, n), hB(i, r);
});
}
-function mB(e, t) {
+function hB(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);
}
- dB(e);
+ fB(e);
}
}
-function Zve(e, t, n) {
+function iye(e, t, n) {
let { scope_: r } = e;
- if (Az(n)) {
- let i = n[bz];
- fB(i, r) && i.callbacks_.push(function() {
- xB(e), pB(e, n, Kz(i), t);
+ if (jz(n)) {
+ let i = n[xz];
+ pB(i, r) && i.callbacks_.push(function() {
+ SB(e), mB(e, n, qz(i), t);
});
- } else jz(n) && e.callbacks_.push(function() {
- let i = Gz(e);
- e.type_ === 3 ? i.has(n) && hB(n, r.handledSet_, r) : Lz(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && hB(Lz(e.copy_, t, e.type_), r.handledSet_, r);
+ } else Mz(n) && e.callbacks_.push(function() {
+ let i = Kz(e);
+ e.type_ === 3 ? i.has(n) && gB(n, r.handledSet_, r) : Rz(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && gB(Rz(e.copy_, t, e.type_), r.handledSet_, r);
});
}
-function hB(e, t, n) {
- return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || Az(e) || t.has(e) || !jz(e) || Xz(e) ? e : (t.add(e), Pz(e, (r, i) => {
- if (Az(i)) {
- let t = i[bz];
- fB(t, n) && (Rz(e, r, Kz(t), e.type_), dB(t));
- } else jz(i) && hB(i, t, n);
+function gB(e, t, n) {
+ return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || jz(e) || t.has(e) || !Mz(e) || Zz(e) ? e : (t.add(e), Fz(e, (r, i) => {
+ if (jz(i)) {
+ let t = i[xz];
+ pB(t, n) && (zz(e, r, qz(t), e.type_), fB(t));
+ } else Mz(i) && gB(i, t, n);
}), e);
}
-function Qve(e, t) {
- let n = zz(e), r = {
+function aye(e, t) {
+ let n = Bz(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : iB(),
+ scope_: t ? t.scope_ : aB(),
modified_: !1,
finalized_: !1,
assigned_: void 0,
@@ -51437,108 +51688,108 @@ function Qve(e, t) {
revoke_: null,
isManual_: !1,
callbacks_: void 0
- }, i = r, a = gB;
- n && (i = [r], a = _B);
+ }, i = r, a = _B;
+ n && (i = [r], a = vB);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, [s, r];
}
-var gB = {
+var _B = {
get(e, t) {
- if (t === bz) return e;
+ if (t === xz) 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 = Gz(e);
- if (!Iz(i, t, e.type_)) return eye(e, i, t);
+ let i = Kz(e);
+ if (!Lz(i, t, e.type_)) return sye(e, i, t);
let a = i[t];
- if (e.finalized_ || !jz(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && Wve(t)) return a;
- if (a === vB(e.base_, t) || $ve(e, t, a)) {
- xB(e);
- let n = e.type_ === 1 ? +t : t, r = SB(e.scope_, a, e, n);
+ if (e.finalized_ || !Mz(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && Zve(t)) return a;
+ if (a === yB(e.base_, t) || oye(e, t, a)) {
+ SB(e);
+ let n = e.type_ === 1 ? +t : t, r = CB(e.scope_, a, e, n);
return e.copy_[n] = r;
}
return a;
},
has(e, t) {
- return t in Gz(e);
+ return t in Kz(e);
},
ownKeys(e) {
- return Reflect.ownKeys(Gz(e));
+ return Reflect.ownKeys(Kz(e));
},
set(e, t, n) {
- let r = yB(Gz(e), t);
+ let r = bB(Kz(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = vB(Gz(e), t), i = r?.[bz];
+ let r = yB(Kz(e), t), i = r?.[xz];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
- if (Uve(n, r) && (n !== void 0 || Iz(e.base_, t, e.type_))) return !0;
- xB(e), bB(e);
+ if (Xve(n, r) && (n !== void 0 || Lz(e.base_, t, e.type_))) return !0;
+ SB(e), xB(e);
}
- return e.copy_[t] === n && (n !== void 0 || Iz(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), Zve(e, t, n), !0);
+ return e.copy_[t] === n && (n !== void 0 || Lz(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), iye(e, t, n), !0);
},
deleteProperty(e, t) {
- return xB(e), vB(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), bB(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
+ return SB(e), yB(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), xB(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = Gz(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = Kz(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
- [Oz]: !0,
- [Ez]: e.type_ !== 1 || t !== "length",
- [Dz]: r[Dz],
- [kz]: n[t]
+ [kz]: !0,
+ [Dz]: e.type_ !== 1 || t !== "length",
+ [Oz]: r[Oz],
+ [Az]: n[t]
};
},
defineProperty() {
- xz(11);
+ Sz(11);
},
getPrototypeOf(e) {
- return Cz(e.base_);
+ return wz(e.base_);
},
setPrototypeOf() {
- xz(12);
+ Sz(12);
}
-}, _B = {};
-for (let e in gB) {
- let t = gB[e];
- _B[e] = function() {
+}, vB = {};
+for (let e in _B) {
+ let t = _B[e];
+ vB[e] = function() {
let e = arguments;
return e[0] = e[0][0], t.apply(this, e);
};
}
-_B.deleteProperty = function(e, t) {
- return _B.set.call(this, e, t, void 0);
-}, _B.set = function(e, t, n) {
- return gB.set.call(this, e[0], t, n, e[0]);
+vB.deleteProperty = function(e, t) {
+ return vB.set.call(this, e, t, void 0);
+}, vB.set = function(e, t, n) {
+ return _B.set.call(this, e[0], t, n, e[0]);
};
-function vB(e, t) {
- let n = e[bz];
- return (n ? Gz(n) : e)[t];
+function yB(e, t) {
+ let n = e[xz];
+ return (n ? Kz(n) : e)[t];
}
-function $ve(e, t, n) {
- return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !jz(n) || n[bz] ? !1 : e.baseRefs_.has(n);
+function oye(e, t, n) {
+ return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !Mz(n) || n[xz] ? !1 : e.baseRefs_.has(n);
}
-function eye(e, t, n) {
- let r = yB(t, n);
- return r ? kz in r ? r[kz] : r.get?.call(e.draft_) : void 0;
+function sye(e, t, n) {
+ let r = bB(t, n);
+ return r ? Az in r ? r[Az] : r.get?.call(e.draft_) : void 0;
}
-function yB(e, t) {
+function bB(e, t) {
if (!(t in e)) return;
- let n = Cz(e);
+ let n = wz(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = Cz(n);
+ n = wz(n);
}
}
-function bB(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && bB(e.parent_));
-}
function xB(e) {
- e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), qz(e.base_, e.scope_.immer_.useStrictShallowCopy_));
+ e.modified_ || (e.modified_ = !0, e.parent_ && xB(e.parent_));
}
-var tye = class {
+function SB(e) {
+ e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), Jz(e.base_, e.scope_.immer_.useStrictShallowCopy_));
+}
+var cye = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
- if (Uz(e) && !Uz(t)) {
+ if (Wz(e) && !Wz(t)) {
let n = t;
t = e;
let r = this;
@@ -51546,30 +51797,30 @@ var tye = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- Uz(t) || xz(6), n !== void 0 && !Uz(n) && xz(7);
+ Wz(t) || Sz(6), n !== void 0 && !Wz(n) && Sz(7);
let r;
- if (jz(e)) {
- let i = cB(this), a = SB(i, e, void 0), o = !0;
+ if (Mz(e)) {
+ let i = lB(this), a = CB(i, e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? oB(i) : sB(i);
+ o ? sB(i) : cB(i);
}
- return aB(i, n), lB(r, i);
+ return oB(i, n), uB(r, i);
}
- if (!e || !Hz(e)) {
- if (r = t(e), r === void 0 && (r = e), r === vz && (r = void 0), this.autoFreeze_ && Jz(r, !0), n) {
+ if (!e || !Uz(e)) {
+ if (r = t(e), r === void 0 && (r = e), r === yz && (r = void 0), this.autoFreeze_ && Yz(r, !0), n) {
let t = [], i = [];
- tB(Qz).generateReplacementPatches_(e, r, {
+ nB($z).generateReplacementPatches_(e, r, {
patches_: t,
inversePatches_: i
}), n(t, i);
}
return r;
}
- xz(1, e);
+ Sz(1, e);
}, this.produceWithPatches = (e, t) => {
- if (Uz(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
+ if (Wz(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
return [
this.produce(e, t, (e, t) => {
@@ -51578,18 +51829,18 @@ var tye = class {
n,
r
];
- }, Wz(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), Wz(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), Wz(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
+ }, Gz(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), Gz(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), Gz(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- jz(e) || xz(8), Az(e) && (e = CB(e));
- let t = cB(this), n = SB(t, e, void 0);
- return n[bz].isManual_ = !0, sB(t), n;
+ Mz(e) || Sz(8), jz(e) && (e = wB(e));
+ let t = lB(this), n = CB(t, e, void 0);
+ return n[xz].isManual_ = !0, cB(t), n;
}
finishDraft(e, t) {
- let n = e && e[bz];
- (!n || !n.isManual_) && xz(9);
+ let n = e && e[xz];
+ (!n || !n.isManual_) && Sz(9);
let { scope_: r } = n;
- return aB(r, t), lB(void 0, r);
+ return oB(r, t), uB(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -51613,48 +51864,48 @@ var tye = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = tB(Qz).applyPatches_;
- return Az(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = nB($z).applyPatches_;
+ return jz(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function SB(e, t, n, r) {
- let [i, a] = Bz(t) ? tB(Zz).proxyMap_(t, n) : Vz(t) ? tB(Zz).proxySet_(t, n) : Qve(t, n);
- return (n?.scope_ ?? iB()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? Xve(n, a, r) : a.callbacks_.push(function(e) {
+function CB(e, t, n, r) {
+ let [i, a] = Vz(t) ? nB(Qz).proxyMap_(t, n) : Hz(t) ? nB(Qz).proxySet_(t, n) : aye(t, n);
+ return (n?.scope_ ?? aB()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? rye(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 CB(e) {
- return Az(e) || xz(10, e), wB(e);
-}
function wB(e) {
- if (!jz(e) || Xz(e)) return e;
- let t = e[bz], n, r = !0;
+ return jz(e) || Sz(10, e), TB(e);
+}
+function TB(e) {
+ if (!Mz(e) || Zz(e)) return e;
+ let t = e[xz], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = qz(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = qz(e, !0);
- return Pz(n, (e, t) => {
- Rz(n, e, wB(t));
+ t.finalized_ = !0, n = Jz(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = Jz(e, !0);
+ return Fz(n, (e, t) => {
+ zz(n, e, TB(t));
}, r), t && (t.finalized_ = !1), n;
}
globalThis.Iterator?.from;
-var TB = new tye().produce;
+var EB = new cye().produce;
//#endregion
//#region node_modules/redux-thunk/dist/redux-thunk.mjs
-function EB(e) {
+function DB(e) {
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
}
-var nye = EB(), rye = EB, iye = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
- if (arguments.length !== 0) return typeof arguments[0] == "object" ? gz : gz.apply(null, arguments);
+var lye = DB(), uye = DB, dye = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
+ if (arguments.length !== 0) return typeof arguments[0] == "object" ? _z : _z.apply(null, arguments);
};
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
-function DB(e, t) {
+function OB(e, t) {
function n(...n) {
if (t) {
let r = t(...n);
- if (!r) throw Error(cV(0));
+ if (!r) throw Error(lV(0));
return {
type: e,
payload: r.payload,
@@ -51667,9 +51918,9 @@ function DB(e, t) {
payload: n[0]
};
}
- return n.toString = () => `${e}`, n.type = e, n.match = (t) => _z(t) && t.type === e, n;
+ return n.toString = () => `${e}`, n.type = e, n.match = (t) => vz(t) && t.type === e, n;
}
-var OB = class e extends Array {
+var kB = class e extends Array {
constructor(...t) {
super(...t), Object.setPrototypeOf(this, e.prototype);
}
@@ -51683,29 +51934,29 @@ var OB = class e extends Array {
return t.length === 1 && Array.isArray(t[0]) ? new e(...t[0].concat(this)) : new e(...t.concat(this));
}
};
-function kB(e) {
- return jz(e) ? TB(e, () => {}) : e;
+function AB(e) {
+ return Mz(e) ? EB(e, () => {}) : e;
}
-function AB(e, t, n) {
+function jB(e, t, n) {
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
}
-function aye(e) {
+function fye(e) {
return typeof e == "boolean";
}
-var oye = () => function(e) {
- let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new OB();
- return t && (aye(t) ? a.push(nye) : a.push(rye(t.extraArgument))), a;
-}, jB = "RTK_autoBatch", MB = () => (e) => ({
+var pye = () => function(e) {
+ let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new kB();
+ return t && (fye(t) ? a.push(lye) : a.push(uye(t.extraArgument))), a;
+}, MB = "RTK_autoBatch", NB = () => (e) => ({
payload: e,
- meta: { [jB]: !0 }
-}), NB = (e) => (t) => {
+ meta: { [MB]: !0 }
+}), PB = (e) => (t) => {
setTimeout(t, e);
-}, sye = (e, t) => (n) => {
+}, mye = (e, t) => (n) => {
let r = !1, i = () => {
r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());
}, a = e(i), o = setTimeout(i, t);
-}, PB = (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 ? sye(window.requestAnimationFrame, 100) : NB(10) : e.type === "callback" ? e.queueNotification : NB(e.timeout), l = () => {
+}, FB = (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 ? mye(window.requestAnimationFrame, 100) : PB(10) : e.type === "callback" ? e.queueNotification : PB(e.timeout), l = () => {
o = !1, a && (a = !1, s.forEach((e) => e()));
};
return Object.assign({}, r, {
@@ -51717,37 +51968,37 @@ var oye = () => function(e) {
},
dispatch(e) {
try {
- return i = !e?.meta?.[jB], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
+ return i = !e?.meta?.[MB], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
} finally {
i = !0;
}
}
});
-}, cye = (e) => function(t) {
- let { autoBatch: n = !0 } = t ?? {}, r = new OB(e);
- return n && r.push(PB(typeof n == "object" ? n : void 0)), r;
+}, hye = (e) => function(t) {
+ let { autoBatch: n = !0 } = t ?? {}, r = new kB(e);
+ return n && r.push(FB(typeof n == "object" ? n : void 0)), r;
};
-function lye(e) {
- let t = oye(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
+function gye(e) {
+ let t = pye(), { 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 (pz(n)) c = hz(n);
- else throw Error(cV(1));
+ else if (mz(n)) c = gz(n);
+ else throw Error(lV(1));
let l;
l = typeof r == "function" ? r(t) : t();
- let u = gz;
- i && (u = iye({
+ let u = _z;
+ i && (u = dye({
trace: !1,
...typeof i == "object" && i
}));
- let d = cye(Vve(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
- return mz(c, o, p);
+ let d = hye(Jve(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
+ return hz(c, o, p);
}
-function FB(e) {
+function IB(e) {
let t = {}, n = [], r, i = {
addCase(e, n) {
let r = typeof e == "string" ? e : e.type;
- if (!r) throw Error(cV(28));
- if (r in t) throw Error(cV(29));
+ if (!r) throw Error(lV(28));
+ if (r in t) throw Error(lV(29));
return t[r] = n, i;
},
addAsyncThunk(e, r) {
@@ -51772,25 +52023,25 @@ function FB(e) {
r
];
}
-function uye(e) {
+function _ye(e) {
return typeof e == "function";
}
-function dye(e, t) {
- let [n, r, i] = FB(t), a;
- if (uye(e)) a = () => kB(e());
+function vye(e, t) {
+ let [n, r, i] = IB(t), a;
+ if (_ye(e)) a = () => AB(e());
else {
- let t = kB(e);
+ let t = AB(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 (Az(e)) {
+ if (jz(e)) {
let r = n(e, t);
return r === void 0 ? e : r;
}
- if (jz(e)) return TB(e, (e) => n(e, t));
+ if (Mz(e)) return EB(e, (e) => n(e, t));
{
let r = n(e, t);
if (r === void 0) {
@@ -51805,20 +52056,20 @@ function dye(e, t) {
}
return o.getInitialState = a, o;
}
-var fye = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", pye = (e = 21) => {
+var yye = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", bye = (e = 21) => {
let t = "", n = e;
- for (; n--;) t += fye[Math.random() * 64 | 0];
+ for (; n--;) t += yye[Math.random() * 64 | 0];
return t;
-}, mye = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
-function hye(e, t) {
+}, xye = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
+function Sye(e, t) {
return `${e}/${t}`;
}
-function gye({ creators: e } = {}) {
- let t = e?.asyncThunk?.[mye];
+function Cye({ creators: e } = {}) {
+ let t = e?.asyncThunk?.[xye];
return function(e) {
let { name: n, reducerPath: r = n } = e;
- if (!n) throw Error(cV(11));
- let i = (typeof e.reducers == "function" ? e.reducers(vye()) : e.reducers) || {}, a = Object.keys(i), o = {
+ if (!n) throw Error(lV(11));
+ let i = (typeof e.reducers == "function" ? e.reducers(Tye()) : e.reducers) || {}, a = Object.keys(i), o = {
sliceCaseReducersByName: {},
sliceCaseReducersByType: {},
actionCreators: {},
@@ -51826,8 +52077,8 @@ function gye({ creators: e } = {}) {
}, s = {
addCase(e, t) {
let n = typeof e == "string" ? e : e.type;
- if (!n) throw Error(cV(12));
- if (n in o.sliceCaseReducersByType) throw Error(cV(13));
+ if (!n) throw Error(lV(12));
+ if (n in o.sliceCaseReducersByType) throw Error(lV(13));
return o.sliceCaseReducersByType[n] = t, s;
},
addMatcher(e, t) {
@@ -51846,17 +52097,17 @@ function gye({ creators: e } = {}) {
a.forEach((r) => {
let a = i[r], o = {
reducerName: r,
- type: hye(n, r),
+ type: Sye(n, r),
createNotation: typeof e.reducers == "function"
};
- bye(a) ? Sye(o, a, s, t) : yye(o, a, s);
+ Dye(a) ? kye(o, a, s, t) : Eye(o, a, s);
});
function c() {
- let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? FB(e.extraReducers) : [e.extraReducers], i = {
+ let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? IB(e.extraReducers) : [e.extraReducers], i = {
...t,
...o.sliceCaseReducersByType
};
- return dye(e.initialState, (e) => {
+ return vye(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);
@@ -51873,12 +52124,12 @@ function gye({ creators: e } = {}) {
function h(t, n = !1) {
function r(e) {
let i = e[t];
- return i === void 0 && n && (i = AB(d, r, m)), i;
+ return i === void 0 && n && (i = jB(d, r, m)), i;
}
function i(t = l) {
- return AB(AB(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
+ return jB(jB(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
let r = {};
- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = _ye(a, t, () => AB(d, t, m), n);
+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = wye(a, t, () => jB(d, t, m), n);
return r;
});
}
@@ -51912,15 +52163,15 @@ function gye({ creators: e } = {}) {
return g;
};
}
-function _ye(e, t, n, r) {
+function wye(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 IB = /* @__PURE__ */ gye();
-function vye() {
+var LB = /* @__PURE__ */ Cye();
+function Tye() {
function e(e, t) {
return {
_reducerDefinitionType: "asyncThunk",
@@ -51944,57 +52195,57 @@ function vye() {
asyncThunk: e
};
}
-function yye({ type: e, reducerName: t, createNotation: n }, r, i) {
+function Eye({ type: e, reducerName: t, createNotation: n }, r, i) {
let a, o;
if ("reducer" in r) {
- if (n && !xye(r)) throw Error(cV(17));
+ if (n && !Oye(r)) throw Error(lV(17));
a = r.reducer, o = r.prepare;
} else a = r;
- i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? DB(e, o) : DB(e));
+ i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? OB(e, o) : OB(e));
}
-function bye(e) {
+function Dye(e) {
return e._reducerDefinitionType === "asyncThunk";
}
-function xye(e) {
+function Oye(e) {
return e._reducerDefinitionType === "reducerWithPrepare";
}
-function Sye({ type: e, reducerName: t }, n, r, i) {
- if (!i) throw Error(cV(18));
+function kye({ type: e, reducerName: t }, n, r, i) {
+ if (!i) throw Error(lV(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 || LB,
- pending: s || LB,
- rejected: c || LB,
- settled: l || LB
+ fulfilled: o || RB,
+ pending: s || RB,
+ rejected: c || RB,
+ settled: l || RB
});
}
-function LB() {}
-var Cye = "task", RB = "listener", zB = "completed", BB = "cancelled", wye = `task-${BB}`, Tye = `task-${zB}`, VB = `${RB}-${BB}`, Eye = `${RB}-${zB}`, HB = class {
+function RB() {}
+var Aye = "task", zB = "listener", BB = "completed", VB = "cancelled", jye = `task-${VB}`, Mye = `task-${BB}`, HB = `${zB}-${VB}`, Nye = `${zB}-${BB}`, UB = class {
constructor(e) {
- this.code = e, this.message = `${Cye} ${BB} (reason: ${e})`;
+ this.code = e, this.message = `${Aye} ${VB} (reason: ${e})`;
}
code;
name = "TaskAbortError";
message;
-}, UB = (e, t) => {
- if (typeof e != "function") throw TypeError(cV(32));
-}, WB = () => {}, GB = (e, t = WB) => (e.catch(t), e), KB = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), qB = (e) => {
- if (e.aborted) throw new HB(e.reason);
+}, WB = (e, t) => {
+ if (typeof e != "function") throw TypeError(lV(32));
+}, GB = () => {}, KB = (e, t = GB) => (e.catch(t), e), qB = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), JB = (e) => {
+ if (e.aborted) throw new UB(e.reason);
};
-function JB(e, t) {
- let n = WB;
+function YB(e, t) {
+ let n = GB;
return new Promise((r, i) => {
- let a = () => i(new HB(e.reason));
+ let a = () => i(new UB(e.reason));
if (e.aborted) {
a();
return;
}
- n = KB(e, a), t.finally(() => n()).then(r, i);
+ n = qB(e, a), t.finally(() => n()).then(r, i);
}).finally(() => {
- n = WB;
+ n = GB;
});
}
-var Dye = async (e, t) => {
+var Pye = async (e, t) => {
try {
return await Promise.resolve(), {
status: "ok",
@@ -52002,40 +52253,40 @@ var Dye = async (e, t) => {
};
} catch (e) {
return {
- status: e instanceof HB ? "cancelled" : "rejected",
+ status: e instanceof UB ? "cancelled" : "rejected",
error: e
};
} finally {
t?.();
}
-}, YB = (e) => (t) => GB(JB(e, t).then((t) => (qB(e), t))), XB = (e) => {
- let t = YB(e);
+}, XB = (e) => (t) => KB(YB(e, t).then((t) => (JB(e), t))), ZB = (e) => {
+ let t = XB(e);
return (e) => t(new Promise((t) => setTimeout(t, e)));
-}, { assign: ZB } = Object, QB = {}, $B = "listenerMiddleware", Oye = (e, t) => {
- let n = (t) => KB(e, () => t.abort(e.reason));
+}, { assign: QB } = Object, $B = {}, eV = "listenerMiddleware", Fye = (e, t) => {
+ let n = (t) => qB(e, () => t.abort(e.reason));
return (r, i) => {
- UB(r, "taskExecutor");
+ WB(r, "taskExecutor");
let a = new AbortController();
n(a);
- let o = Dye(async () => {
- qB(e), qB(a.signal);
+ let o = Pye(async () => {
+ JB(e), JB(a.signal);
let t = await r({
- pause: YB(a.signal),
- delay: XB(a.signal),
+ pause: XB(a.signal),
+ delay: ZB(a.signal),
signal: a.signal
});
- return qB(a.signal), t;
- }, () => a.abort(Tye));
- return i?.autoJoin && t.push(o.catch(WB)), {
- result: YB(e)(o),
+ return JB(a.signal), t;
+ }, () => a.abort(Mye));
+ return i?.autoJoin && t.push(o.catch(GB)), {
+ result: XB(e)(o),
cancel() {
- a.abort(wye);
+ a.abort(jye);
}
};
};
-}, kye = (e, t) => {
+}, Iye = (e, t) => {
let n = async (n, r) => {
- qB(t);
+ JB(t);
let i = () => {}, a = [new Promise((t, r) => {
let a = e({
predicate: n,
@@ -52053,47 +52304,47 @@ var Dye = async (e, t) => {
})];
r != null && a.push(new Promise((e) => setTimeout(e, r, null)));
try {
- let e = await JB(t, Promise.race(a));
- return qB(t), e;
+ let e = await YB(t, Promise.race(a));
+ return JB(t), e;
} finally {
i();
}
};
- return ((e, t) => GB(n(e, t)));
-}, eV = (e) => {
+ return ((e, t) => KB(n(e, t)));
+}, tV = (e) => {
let { type: t, actionCreator: n, matcher: r, predicate: i, effect: a } = e;
- if (t) i = DB(t).match;
+ if (t) i = OB(t).match;
else if (n) t = n.type, i = n.match;
else if (r) i = r;
- else if (!i) throw Error(cV(21));
- return UB(a, "options.listener"), {
+ else if (!i) throw Error(lV(21));
+ return WB(a, "options.listener"), {
predicate: i,
type: t,
effect: a
};
-}, tV = /* @__PURE__ */ ZB((e) => {
- let { type: t, predicate: n, effect: r } = eV(e);
+}, nV = /* @__PURE__ */ QB((e) => {
+ let { type: t, predicate: n, effect: r } = tV(e);
return {
- id: pye(),
+ id: bye(),
effect: r,
type: t,
predicate: n,
pending: /* @__PURE__ */ new Set(),
unsubscribe: () => {
- throw Error(cV(22));
+ throw Error(lV(22));
}
};
-}, { withTypes: () => tV }), nV = (e, t) => {
- let { type: n, effect: r, predicate: i } = eV(t);
+}, { withTypes: () => nV }), rV = (e, t) => {
+ let { type: n, effect: r, predicate: i } = tV(t);
return Array.from(e.values()).find((e) => (typeof n == "string" ? e.type === n : e.predicate === i) && e.effect === r);
-}, rV = (e) => {
+}, iV = (e) => {
e.pending.forEach((e) => {
- e.abort(VB);
+ e.abort(HB);
});
-}, Aye = (e, t) => () => {
- for (let e of t.keys()) rV(e);
+}, Lye = (e, t) => () => {
+ for (let e of t.keys()) iV(e);
e.clear();
-}, iV = (e, t, n) => {
+}, aV = (e, t, n) => {
try {
e(t, n);
} catch (e) {
@@ -52101,74 +52352,74 @@ var Dye = async (e, t) => {
throw e;
}, 0);
}
-}, aV = /* @__PURE__ */ ZB(/* @__PURE__ */ DB(`${$B}/add`), { withTypes: () => aV }), jye = /* @__PURE__ */ DB(`${$B}/removeAll`), oV = /* @__PURE__ */ ZB(/* @__PURE__ */ DB(`${$B}/remove`), { withTypes: () => oV }), Mye = (...e) => {
- console.error(`${$B}/error`, ...e);
-}, sV = (e = {}) => {
+}, oV = /* @__PURE__ */ QB(/* @__PURE__ */ OB(`${eV}/add`), { withTypes: () => oV }), Rye = /* @__PURE__ */ OB(`${eV}/removeAll`), sV = /* @__PURE__ */ QB(/* @__PURE__ */ OB(`${eV}/remove`), { withTypes: () => sV }), zye = (...e) => {
+ console.error(`${eV}/error`, ...e);
+}, cV = (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 = Mye } = e;
- UB(o, "onError");
+ }, { extra: a, onError: o = zye } = e;
+ WB(o, "onError");
let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {
- e.unsubscribe(), t?.cancelActive && rV(e);
+ e.unsubscribe(), t?.cancelActive && iV(e);
}), c = ((e) => {
- let n = nV(t, e) ?? tV(e);
+ let n = rV(t, e) ?? nV(e);
return s(n);
});
- ZB(c, { withTypes: () => c });
+ QB(c, { withTypes: () => c });
let l = (e) => {
- let n = nV(t, e);
- return n && (n.unsubscribe(), e.cancelActive && rV(n)), !!n;
+ let n = rV(t, e);
+ return n && (n.unsubscribe(), e.cancelActive && iV(n)), !!n;
};
- ZB(l, { withTypes: () => l });
+ QB(l, { withTypes: () => l });
let u = async (e, n, s, l) => {
- let u = new AbortController(), d = kye(c, u.signal), f = [];
+ let u = new AbortController(), d = Iye(c, u.signal), f = [];
try {
- e.pending.add(u), r(e), await Promise.resolve(e.effect(n, ZB({}, s, {
+ e.pending.add(u), r(e), await Promise.resolve(e.effect(n, QB({}, s, {
getOriginalState: l,
condition: (e, t) => d(e, t).then(Boolean),
take: d,
- delay: XB(u.signal),
- pause: YB(u.signal),
+ delay: ZB(u.signal),
+ pause: XB(u.signal),
extra: a,
signal: u.signal,
- fork: Oye(u.signal, f),
+ fork: Fye(u.signal, f),
unsubscribe: e.unsubscribe,
subscribe: () => {
t.set(e.id, e);
},
cancelActiveListeners: () => {
e.pending.forEach((e, t, n) => {
- e !== u && (e.abort(VB), n.delete(e));
+ e !== u && (e.abort(HB), n.delete(e));
});
},
cancel: () => {
- u.abort(VB), e.pending.delete(u);
+ u.abort(HB), e.pending.delete(u);
},
throwIfCancelled: () => {
- qB(u.signal);
+ JB(u.signal);
}
})));
} catch (e) {
- e instanceof HB || iV(o, e, { raisedBy: "effect" });
+ e instanceof UB || aV(o, e, { raisedBy: "effect" });
} finally {
- await Promise.all(f), u.abort(Eye), i(e), e.pending.delete(u);
+ await Promise.all(f), u.abort(Nye), i(e), e.pending.delete(u);
}
- }, d = Aye(t, n);
+ }, d = Lye(t, n);
return {
middleware: (e) => (n) => (r) => {
- if (!_z(r)) return n(r);
- if (aV.match(r)) return c(r.payload);
- if (jye.match(r)) {
+ if (!vz(r)) return n(r);
+ if (oV.match(r)) return c(r.payload);
+ if (Rye.match(r)) {
d();
return;
}
- if (oV.match(r)) return l(r.payload);
+ if (sV.match(r)) return l(r.payload);
let i = e.getState(), a = () => {
- if (i === QB) throw Error(cV(23));
+ if (i === $B) throw Error(lV(23));
return i;
}, s;
try {
@@ -52179,13 +52430,13 @@ var Dye = async (e, t) => {
try {
s = t.predicate(r, n, i);
} catch (e) {
- s = !1, iV(o, e, { raisedBy: "predicate" });
+ s = !1, aV(o, e, { raisedBy: "predicate" });
}
s && u(t, r, e, a);
}
}
} finally {
- i = QB;
+ i = $B;
}
return s;
},
@@ -52194,12 +52445,12 @@ var Dye = async (e, t) => {
clearListeners: d
};
};
-function cV(e) {
+function lV(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 lV = IB({
+var uV = LB({
name: "chartLayout",
initialState: {
layoutType: "horizontal",
@@ -52227,23 +52478,23 @@ var lV = IB({
e.scale = t.payload;
}
}
-}), { setMargin: Nye, setLayout: Pye, setChartSize: Fye, setScale: Iye } = lV.actions, Lye = lV.reducer;
+}), { setMargin: Bye, setLayout: Vye, setChartSize: Hye, setScale: Uye } = uV.actions, Wye = uV.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getSliced.js
-function uV(e, t, n) {
+function dV(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 dV(e) {
+function fV(e) {
return Number.isFinite(e);
}
-function fV(e) {
+function pV(e) {
return typeof e == "number" && e > 0 && Number.isFinite(e);
}
//#endregion
//#region node_modules/recharts/es6/util/ChartUtils.js
-function pV(e, t) {
+function mV(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52253,30 +52504,30 @@ function pV(e, t) {
}
return n;
}
-function mV(e) {
+function hV(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? pV(Object(n), !0).forEach(function(t) {
- Rye(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pV(Object(n)).forEach(function(t) {
+ t % 2 ? mV(Object(n), !0).forEach(function(t) {
+ Gye(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : mV(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Rye(e, t, n) {
- return (t = zye(t)) in e ? Object.defineProperty(e, t, {
+function Gye(e, t, n) {
+ return (t = Kye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function zye(e) {
- var t = Bye(e, "string");
+function Kye(e) {
+ var t = qye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Bye(e, t) {
+function qye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52286,63 +52537,63 @@ function Bye(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function hV(e, t, n) {
- return dR(e) || dR(t) ? n : aR(t) ? $L(e, t, n) : typeof t == "function" ? t(e) : n;
+function gV(e, t, n) {
+ return fR(e) || fR(t) ? n : oR(t) ? eR(e, t, n) : typeof t == "function" ? t(e) : n;
}
-var Vye = (e, t, n) => {
+var Jye = (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 mV(mV({}, e), {}, { [a]: e[a] + (r || 0) });
- if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return mV(mV({}, e), {}, { [o]: e[o] + (i || 0) });
+ if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return hV(hV({}, e), {}, { [a]: e[a] + (r || 0) });
+ if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return hV(hV({}, e), {}, { [o]: e[o] + (i || 0) });
}
return e;
-}, gV = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", _V = (e, t, n, r) => {
+}, _V = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", vV = (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;
-}, vV = (e, t, n) => {
+}, yV = (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 ? nR(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
+ return h = p === "angleAxis" && a && a.length >= 2 ? rR(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 dV(i) ? {
+ return fV(i) ? {
coordinate: i + h,
value: e,
offset: h,
index: t
} : null;
- }).filter(pR) : c && l ? l.map((e, t) => {
+ }).filter(mR) : c && l ? l.map((e, t) => {
var n = o.map(e);
- return dV(n) ? {
+ return fV(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(pR) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
+ }).filter(mR) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
var n = o.map(e);
- return dV(n) ? {
+ return fV(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(pR) : o.domain().map((e, t) => {
+ }).filter(mR) : o.domain().map((e, t) => {
var n = o.map(e);
- return dV(n) ? {
+ return fV(n) ? {
coordinate: n + h,
value: r ? r[e] : e,
index: t,
offset: h
} : null;
- }).filter(pR);
-}, yV = (e, t) => {
+ }).filter(mR);
+}, bV = (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;
-}, Hye = {
+}, Yye = {
sign: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -52350,16 +52601,16 @@ var Vye = (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 = rR(c) ? l : c;
+ var c = s[1], l = s[0], u = iR(c) ? l : c;
u >= 0 ? (s[0] = i, i += u, s[1] = i) : (s[0] = a, a += u, s[1] = a);
}
}
}
},
- expand: $ge,
- none: GL,
- silhouette: e_e,
- wiggle: t_e,
+ expand: o_e,
+ none: KL,
+ silhouette: s_e,
+ wiggle: c_e,
positive: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -52367,70 +52618,70 @@ var Vye = (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 = rR(o[1]) ? o[0] : o[1];
+ var s = iR(o[1]) ? o[0] : o[1];
s >= 0 ? (o[0] = i, i += s, o[1] = i) : (o[0] = 0, o[1] = 0);
}
}
}
}
-}, Uye = (e, t, n) => {
- var r = Hye[n] ?? GL, i = Qge().keys(t).value((e, t) => Number(hV(e, t, 0))).order(KL).offset(r)(e);
+}, Xye = (e, t, n) => {
+ var r = Yye[n] ?? KL, i = a_e().keys(t).value((e, t) => Number(gV(e, t, 0))).order(qL).offset(r)(e);
return i.forEach((n, r) => {
n.forEach((n, i) => {
- var a = hV(e[i], t[r], 0);
+ var a = gV(e[i], t[r], 0);
Array.isArray(a) && a.length === 2 && Z(a[0]) && Z(a[1]) && (n[0] = a[0], n[1] = a[1]);
});
}), i;
};
-function bV(e) {
+function xV(e) {
return e == null ? void 0 : String(e);
}
-function xV(e) {
+function SV(e) {
var { axis: t, ticks: n, bandSize: r, entry: i, index: a, dataKey: o } = e;
if (t.type === "category") {
- if (!t.allowDuplicatedCategory && t.dataKey && !dR(i[t.dataKey])) {
- var s = uR(n, "value", i[t.dataKey]);
+ if (!t.allowDuplicatedCategory && t.dataKey && !fR(i[t.dataKey])) {
+ var s = dR(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 = hV(i, dR(o) ? t.dataKey : o), l = t.scale.map(c);
+ var c = gV(i, fR(o) ? t.dataKey : o), l = t.scale.map(c);
return Z(l) ? l : null;
}
-var SV = (e) => {
+var CV = (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 = hV(a, t.dataKey, t.scale.domain()[o]);
- if (dR(s)) return null;
+ var s = gV(a, t.dataKey, t.scale.domain()[o]);
+ if (fR(s)) return null;
var c = t.scale.map(s);
return Z(c) ? c - i / 2 + r : null;
-}, CV = (e) => {
+}, wV = (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];
-}, Wye = (e) => {
+}, Zye = (e) => {
var t = e.flat(2).filter(Z);
return [Math.min(...t), Math.max(...t)];
-}, Gye = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], Kye = (e, t, n) => {
- if (e != null) return Gye(Object.keys(e).reduce((r, i) => {
+}, Qye = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], $ye = (e, t, n) => {
+ if (e != null) return Qye(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 = Wye(uV(r, t, n));
- return !dV(i[0]) || !dV(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
+ var i = Zye(dV(r, t, n));
+ return !fV(i[0]) || !fV(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]));
-}, wV = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, TV = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, EV = (e, t, n) => {
+}, TV = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, EV = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, DV = (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 = az(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {
+ for (var i = oz(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);
}
@@ -52438,26 +52689,26 @@ var SV = (e) => {
}
return n ? void 0 : 0;
};
-function DV(e) {
+function OV(e) {
var { tooltipEntrySettings: t, dataKey: n, payload: r, value: i, name: a } = e;
- return mV(mV({}, t), {}, {
+ return hV(hV({}, t), {}, {
dataKey: n,
payload: r,
value: i,
name: a
});
}
-function OV(e, t) {
+function kV(e, t) {
if (e) return String(e);
if (typeof t == "string") return t;
}
-var qye = (e, t) => {
+var ebe = (e, t) => {
if (t === "horizontal") return e.relativeX;
if (t === "vertical") return e.relativeY;
-}, Jye = (e, t) => t === "centric" ? e.angle : e.radius, kV = (e) => e.layout.width, AV = (e) => e.layout.height, Yye = (e) => e.layout.scale, jV = (e) => e.layout.margin, MV = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), NV = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), Xye = "data-recharts-item-index";
+}, tbe = (e, t) => t === "centric" ? e.angle : e.radius, AV = (e) => e.layout.width, jV = (e) => e.layout.height, nbe = (e) => e.layout.scale, MV = (e) => e.layout.margin, NV = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), PV = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), rbe = "data-recharts-item-index";
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js
-function PV(e, t) {
+function FV(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52467,30 +52718,30 @@ function PV(e, t) {
}
return n;
}
-function FV(e) {
+function IV(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? PV(Object(n), !0).forEach(function(t) {
- Zye(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : PV(Object(n)).forEach(function(t) {
+ t % 2 ? FV(Object(n), !0).forEach(function(t) {
+ ibe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : FV(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Zye(e, t, n) {
- return (t = Qye(t)) in e ? Object.defineProperty(e, t, {
+function ibe(e, t, n) {
+ return (t = abe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Qye(e) {
- var t = $ye(e, "string");
+function abe(e) {
+ var t = obe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function $ye(e, t) {
+function obe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52500,58 +52751,58 @@ function $ye(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var ebe = (e) => e.brush.height;
-function tbe(e) {
- return NV(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+var sbe = (e) => e.brush.height;
+function cbe(e) {
+ return PV(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
-function nbe(e) {
- return NV(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+function lbe(e) {
+ return PV(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
-function rbe(e) {
- return MV(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
+function ube(e) {
+ return NV(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
-function ibe(e) {
- return MV(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
+function dbe(e) {
+ return NV(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
-var IV = $([
- kV,
+var LV = $([
AV,
jV,
- ebe,
- tbe,
- nbe,
- rbe,
- ibe,
- oz,
- Lve
+ MV,
+ sbe,
+ cbe,
+ lbe,
+ ube,
+ dbe,
+ sz,
+ Wve
], (e, t, n, r, i, a, o, s, c, l) => {
var u = {
left: (n.left || 0) + i,
right: (n.right || 0) + a
- }, d = FV(FV({}, {
+ }, d = IV(IV({}, {
top: (n.top || 0) + o,
bottom: (n.bottom || 0) + s
}), u), f = d.bottom;
- d.bottom += r, d = Vye(d, c, l);
+ d.bottom += r, d = Jye(d, c, l);
var p = e - d.left - d.right, m = t - d.top - d.bottom;
- return FV(FV({ brushBottom: f }, d), {}, {
+ return IV(IV({ brushBottom: f }, d), {}, {
width: Math.max(p, 0),
height: Math.max(m, 0)
});
-}), abe = $(IV, (e) => ({
+}), fbe = $(LV, (e) => ({
x: e.left,
y: e.top,
width: e.width,
height: e.height
-})), LV = $(kV, AV, (e, t) => ({
+})), RV = $(AV, jV, (e, t) => ({
x: 0,
y: 0,
width: e,
height: t
-})), obe = /*#__PURE__*/ (0, R.createContext)(null), RV = () => (0, R.useContext)(obe) != null, zV = (e) => e.brush, BV = $([
- zV,
- IV,
- jV
+})), pbe = /*#__PURE__*/ (0, R.createContext)(null), zV = () => (0, R.useContext)(pbe) != null, BV = (e) => e.brush, VV = $([
+ BV,
+ LV,
+ MV
], (e, t, n) => ({
height: e.height,
x: Z(e.x) ? e.x : t.left,
@@ -52560,7 +52811,7 @@ var IV = $([
}));
//#endregion
//#region node_modules/es-toolkit/dist/function/debounce.mjs
-function sbe(e, t, { signal: n, edges: r } = {}) {
+function mbe(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 = () => {
@@ -52585,11 +52836,11 @@ function sbe(e, t, { signal: n, edges: r } = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs
-function cbe(e, t = 0, n = {}) {
+function hbe(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 = sbe(function(...t) {
+ let s, c = null, l = mbe(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);
@@ -52598,9 +52849,9 @@ function cbe(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs
-function lbe(e, t = 0, n = {}) {
+function gbe(e, t = 0, n = {}) {
let { leading: r = !0, trailing: i = !0 } = n;
- return cbe(e, t, {
+ return hbe(e, t, {
leading: r,
maxWait: t,
trailing: i
@@ -52608,7 +52859,7 @@ function lbe(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/recharts/es6/util/LogUtils.js
-var VV = function(e, t) {
+var HV = 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.");
@@ -52617,7 +52868,7 @@ var VV = function(e, t) {
console.warn(t.replace(/%s/g, () => n[r++]));
}
}
-}, HV = {
+}, UV = {
width: "100%",
height: "100%",
debounce: 0,
@@ -52626,45 +52877,45 @@ var VV = function(e, t) {
width: -1,
height: -1
}
-}, UV = (e, t, n) => {
- var { width: r = HV.width, height: i = HV.height, aspect: a, maxHeight: o } = n, s = iR(r) ? e : Number(r), c = iR(i) ? t : Number(i);
+}, WV = (e, t, n) => {
+ var { width: r = UV.width, height: i = UV.height, aspect: a, maxHeight: o } = n, s = aR(r) ? e : Number(r), c = aR(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
};
-}, ube = {
+}, GV = {
width: 0,
height: 0,
overflow: "visible"
-}, dbe = {
+}, KV = {
width: 0,
overflowX: "visible"
-}, fbe = {
+}, qV = {
height: 0,
overflowY: "visible"
-}, pbe = {}, mbe = (e) => {
- var { width: t, height: n } = e, r = iR(t), i = iR(n);
- return r && i ? ube : r ? dbe : i ? fbe : pbe;
+}, JV = {}, YV = (e) => {
+ var { width: t, height: n } = e, r = aR(t), i = aR(n);
+ return r && i ? GV : r ? KV : i ? qV : JV;
};
-function hbe(e) {
+function XV(e) {
var { width: t, height: n, aspect: r } = e, i = t, a = n;
- return i === void 0 && a === void 0 ? (i = HV.width, a = HV.height) : i === void 0 ? i = r && r > 0 ? void 0 : HV.width : a === void 0 && (a = r && r > 0 ? void 0 : HV.height), {
+ return i === void 0 && a === void 0 ? (i = UV.width, a = UV.height) : i === void 0 ? i = r && r > 0 ? void 0 : UV.width : a === void 0 && (a = r && r > 0 ? void 0 : UV.height), {
width: i,
height: a
};
}
//#endregion
//#region node_modules/recharts/es6/component/ResponsiveContainer.js
-function WV() {
- return WV = Object.assign ? Object.assign.bind() : function(e) {
+function ZV() {
+ return ZV = 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;
- }, WV.apply(null, arguments);
+ }, ZV.apply(null, arguments);
}
-function GV(e, t) {
+function QV(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52674,30 +52925,30 @@ function GV(e, t) {
}
return n;
}
-function KV(e) {
+function $V(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? GV(Object(n), !0).forEach(function(t) {
- qV(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : GV(Object(n)).forEach(function(t) {
+ t % 2 ? QV(Object(n), !0).forEach(function(t) {
+ eH(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : QV(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function qV(e, t, n) {
- return (t = JV(t)) in e ? Object.defineProperty(e, t, {
+function eH(e, t, n) {
+ return (t = tH(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function JV(e) {
- var t = YV(e, "string");
+function tH(e) {
+ var t = nH(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function YV(e, t) {
+function nH(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52707,19 +52958,19 @@ function YV(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var XV = /*#__PURE__*/ (0, R.createContext)(HV.initialDimension);
-function ZV(e) {
- return fV(e.width) && fV(e.height);
+var rH = /*#__PURE__*/ (0, R.createContext)(UV.initialDimension);
+function iH(e) {
+ return pV(e.width) && pV(e.height);
}
-function QV(e) {
+function aH(e) {
var { children: t, width: n, height: r } = e, i = (0, R.useMemo)(() => ({
width: n,
height: r
}), [n, r]);
- return ZV(i) ? /*#__PURE__*/ R.createElement(XV.Provider, { value: i }, t) : null;
+ return iH(i) ? /*#__PURE__*/ R.createElement(rH.Provider, { value: i }, t) : null;
}
-var $V = () => (0, R.useContext)(XV), eH = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { aspect: n, initialDimension: r = HV.initialDimension, width: i, height: a, minWidth: o = HV.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = HV.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, R.useRef)(null), g = (0, R.useRef)();
+var oH = () => (0, R.useContext)(rH), sH = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { aspect: n, initialDimension: r = UV.initialDimension, width: i, height: a, minWidth: o = UV.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = UV.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, R.useRef)(null), g = (0, R.useRef)();
g.current = p, (0, R.useImperativeHandle)(t, () => h.current);
var [_, v] = (0, R.useState)({
containerWidth: r.width,
@@ -52734,7 +52985,7 @@ var $V = () => (0, R.useContext)(XV), eH = /*#__PURE__*/ (0, R.forwardRef)((e, t
});
}, []);
(0, R.useEffect)(() => {
- if (h.current == null || typeof ResizeObserver > "u") return mR;
+ if (h.current == null || typeof ResizeObserver > "u") return hR;
var e = (e) => {
var t, n = e[0];
if (n != null) {
@@ -52742,7 +52993,7 @@ var $V = () => (0, R.useContext)(XV), eH = /*#__PURE__*/ (0, R.forwardRef)((e, t
y(r, i), (t = g.current) == null || t.call(g, r, i);
}
};
- u > 0 && (e = lbe(e, u, {
+ u > 0 && (e = gbe(e, u, {
trailing: !0,
leading: !1
}));
@@ -52752,17 +53003,17 @@ var $V = () => (0, R.useContext)(XV), eH = /*#__PURE__*/ (0, R.forwardRef)((e, t
};
}, [y, u]);
var { containerWidth: b, containerHeight: x } = _;
- VV(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
- var { calculatedWidth: S, calculatedHeight: C } = UV(b, x, {
+ HV(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
+ var { calculatedWidth: S, calculatedHeight: C } = WV(b, x, {
width: i,
height: a,
aspect: n,
maxHeight: c
});
- return VV(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ R.createElement("div", {
+ return HV(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ R.createElement("div", {
id: d ? `${d}` : void 0,
className: Mu("recharts-responsive-container", f),
- style: KV(KV({}, m), {}, {
+ style: $V($V({}, m), {}, {
width: i,
height: a,
minWidth: o,
@@ -52770,30 +53021,30 @@ var $V = () => (0, R.useContext)(XV), eH = /*#__PURE__*/ (0, R.forwardRef)((e, t
maxHeight: c
}),
ref: h
- }, /*#__PURE__*/ R.createElement("div", { style: mbe({
+ }, /*#__PURE__*/ R.createElement("div", { style: YV({
width: i,
height: a
- }) }, /*#__PURE__*/ R.createElement(QV, {
+ }) }, /*#__PURE__*/ R.createElement(aH, {
width: S,
height: C
}, l)));
-}), tH = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = $V();
- if (fV(n.width) && fV(n.height)) return e.children;
- var { width: r, height: i } = hbe({
+}), cH = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = oH();
+ if (pV(n.width) && pV(n.height)) return e.children;
+ var { width: r, height: i } = XV({
width: e.width,
height: e.height,
aspect: e.aspect
- }), { calculatedWidth: a, calculatedHeight: o } = UV(void 0, void 0, {
+ }), { calculatedWidth: a, calculatedHeight: o } = WV(void 0, void 0, {
width: r,
height: i,
aspect: e.aspect,
maxHeight: e.maxHeight
});
- return Z(a) && Z(o) ? /*#__PURE__*/ R.createElement(QV, {
+ return Z(a) && Z(o) ? /*#__PURE__*/ R.createElement(aH, {
width: a,
height: o
- }, e.children) : /*#__PURE__*/ R.createElement(eH, WV({}, e, {
+ }, e.children) : /*#__PURE__*/ R.createElement(sH, ZV({}, e, {
width: r,
height: i,
ref: t
@@ -52801,7 +53052,7 @@ var $V = () => (0, R.useContext)(XV), eH = /*#__PURE__*/ (0, R.forwardRef)((e, t
});
//#endregion
//#region node_modules/recharts/es6/context/chartLayoutContext.js
-function nH(e) {
+function lH(e) {
if (e) return {
x: e.x,
y: e.y,
@@ -52811,15 +53062,15 @@ function nH(e) {
height: e.height
};
}
-var rH = () => {
- var e = RV(), t = Q(abe), n = Q(BV), r = Q(zV)?.padding;
+var uH = () => {
+ var e = zV(), t = Q(fbe), n = Q(VV), r = Q(BV)?.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
};
-}, iH = {
+}, dH = {
top: 0,
bottom: 0,
left: 0,
@@ -52827,16 +53078,16 @@ var rH = () => {
width: 0,
height: 0,
brushBottom: 0
-}, aH = () => Q(IV) ?? iH, oH = () => Q(kV), sH = () => Q(AV), cH = () => Q((e) => e.layout.margin), lH = (e) => e.layout.layoutType, uH = () => Q(lH), dH = () => {
- var e = uH();
+}, fH = () => Q(LV) ?? dH, pH = () => Q(AV), mH = () => Q(jV), hH = () => Q((e) => e.layout.margin), gH = (e) => e.layout.layoutType, _H = () => Q(gH), vH = () => {
+ var e = _H();
if (e === "horizontal" || e === "vertical") return e;
-}, fH = (e) => {
+}, yH = (e) => {
var t = e.layout.layoutType;
if (t === "centric" || t === "radial") return t;
-}, pH = () => Q(fH), mH = () => uH() !== void 0, hH = (e) => {
- var t = ZR(), n = RV(), { width: r, height: i } = e, a = $V(), o = r, s = i;
+}, bH = () => Q(yH), xH = () => _H() !== void 0, SH = (e) => {
+ var t = QR(), n = zV(), { width: r, height: i } = e, a = oH(), o = r, s = i;
return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, R.useEffect)(() => {
- !n && fV(o) && fV(s) && t(Fye({
+ !n && pV(o) && pV(s) && t(Hye({
width: o,
height: s
}));
@@ -52846,64 +53097,64 @@ var rH = () => {
o,
s
]), null;
-}, gH = Symbol.for("immer-nothing"), _H = Symbol.for("immer-draftable"), vH = Symbol.for("immer-state");
-function yH(e, ...t) {
+}, CH = Symbol.for("immer-nothing"), wH = Symbol.for("immer-draftable"), TH = Symbol.for("immer-state");
+function EH(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var bH = Object.getPrototypeOf;
-function xH(e) {
- return !!e && !!e[vH];
+var DH = Object.getPrototypeOf;
+function OH(e) {
+ return !!e && !!e[TH];
}
-function SH(e) {
- return e ? TH(e) || Array.isArray(e) || !!e[_H] || !!e.constructor?.[_H] || jH(e) || MH(e) : !1;
+function kH(e) {
+ return e ? MH(e) || Array.isArray(e) || !!e[wH] || !!e.constructor?.[wH] || RH(e) || zH(e) : !1;
}
-var CH = Object.prototype.constructor.toString(), wH = /* @__PURE__ */ new WeakMap();
-function TH(e) {
+var AH = Object.prototype.constructor.toString(), jH = /* @__PURE__ */ new WeakMap();
+function MH(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 = wH.get(n);
- return r === void 0 && (r = Function.toString.call(n), wH.set(n, r)), r === CH;
+ let r = jH.get(n);
+ return r === void 0 && (r = Function.toString.call(n), jH.set(n, r)), r === AH;
}
-function EH(e, t, n = !0) {
- DH(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
+function NH(e, t, n = !0) {
+ PH(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 DH(e) {
- let t = e[vH];
- return t ? t.type_ : Array.isArray(e) ? 1 : jH(e) ? 2 : MH(e) ? 3 : 0;
+function PH(e) {
+ let t = e[TH];
+ return t ? t.type_ : Array.isArray(e) ? 1 : RH(e) ? 2 : zH(e) ? 3 : 0;
}
-function OH(e, t) {
- return DH(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
+function FH(e, t) {
+ return PH(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
}
-function kH(e, t, n) {
- let r = DH(e);
+function IH(e, t, n) {
+ let r = PH(e);
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
}
-function AH(e, t) {
+function LH(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function jH(e) {
+function RH(e) {
return e instanceof Map;
}
-function MH(e) {
+function zH(e) {
return e instanceof Set;
}
-function NH(e) {
+function BH(e) {
return e.copy_ || e.base_;
}
-function PH(e, t) {
- if (jH(e)) return new Map(e);
- if (MH(e)) return new Set(e);
+function VH(e, t) {
+ if (RH(e)) return new Map(e);
+ if (zH(e)) return new Set(e);
if (Array.isArray(e)) return Array.prototype.slice.call(e);
- let n = TH(e);
+ let n = MH(e);
if (t === !0 || t === "class_only" && !n) {
let t = Object.getOwnPropertyDescriptors(e);
- delete t[vH];
+ delete t[TH];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
@@ -52914,40 +53165,40 @@ function PH(e, t) {
value: e[i]
});
}
- return Object.create(bH(e), t);
+ return Object.create(DH(e), t);
}
{
- let t = bH(e);
+ let t = DH(e);
if (t !== null && n) return { ...e };
let r = Object.create(t);
return Object.assign(r, e);
}
}
-function FH(e, t = !1) {
- return RH(e) || xH(e) || !SH(e) ? e : (DH(e) > 1 && Object.defineProperties(e, {
- set: LH,
- add: LH,
- clear: LH,
- delete: LH
- }), Object.freeze(e), t && Object.values(e).forEach((e) => FH(e, !0)), e);
+function HH(e, t = !1) {
+ return GH(e) || OH(e) || !kH(e) ? e : (PH(e) > 1 && Object.defineProperties(e, {
+ set: WH,
+ add: WH,
+ clear: WH,
+ delete: WH
+ }), Object.freeze(e), t && Object.values(e).forEach((e) => HH(e, !0)), e);
}
-function IH() {
- yH(2);
+function UH() {
+ EH(2);
}
-var LH = { value: IH };
-function RH(e) {
+var WH = { value: UH };
+function GH(e) {
return typeof e != "object" || !e || Object.isFrozen(e);
}
-var zH = {};
-function BH(e) {
- let t = zH[e];
- return t || yH(0, e), t;
+var KH = {};
+function qH(e) {
+ let t = KH[e];
+ return t || EH(0, e), t;
}
-var VH;
-function HH() {
- return VH;
+var JH;
+function YH() {
+ return JH;
}
-function UH(e, t) {
+function XH(e, t) {
return {
drafts_: [],
parent_: e,
@@ -52956,62 +53207,62 @@ function UH(e, t) {
unfinalizedDrafts_: 0
};
}
-function WH(e, t) {
- t && (BH("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+function ZH(e, t) {
+ t && (qH("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
-function GH(e) {
- KH(e), e.drafts_.forEach(JH), e.drafts_ = null;
+function QH(e) {
+ $H(e), e.drafts_.forEach(tU), e.drafts_ = null;
}
-function KH(e) {
- e === VH && (VH = e.parent_);
+function $H(e) {
+ e === JH && (JH = e.parent_);
}
-function qH(e) {
- return VH = UH(VH, e);
+function eU(e) {
+ return JH = XH(JH, e);
}
-function JH(e) {
- let t = e[vH];
+function tU(e) {
+ let t = e[TH];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function YH(e, t) {
+function nU(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
- return e !== void 0 && e !== n ? (n[vH].modified_ && (GH(t), yH(4)), SH(e) && (e = XH(t, e), t.parent_ || QH(t, e)), t.patches_ && BH("Patches").generateReplacementPatches_(n[vH].base_, e, t.patches_, t.inversePatches_)) : e = XH(t, n, []), GH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === gH ? void 0 : e;
+ return e !== void 0 && e !== n ? (n[TH].modified_ && (QH(t), EH(4)), kH(e) && (e = rU(t, e), t.parent_ || aU(t, e)), t.patches_ && qH("Patches").generateReplacementPatches_(n[TH].base_, e, t.patches_, t.inversePatches_)) : e = rU(t, n, []), QH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === CH ? void 0 : e;
}
-function XH(e, t, n) {
- if (RH(t)) return t;
- let r = e.immer_.shouldUseStrictIteration(), i = t[vH];
- if (!i) return EH(t, (r, a) => ZH(e, i, t, r, a, n), r), t;
+function rU(e, t, n) {
+ if (GH(t)) return t;
+ let r = e.immer_.shouldUseStrictIteration(), i = t[TH];
+ if (!i) return NH(t, (r, a) => iU(e, i, t, r, a, n), r), t;
if (i.scope_ !== e) return t;
- if (!i.modified_) return QH(e, i.base_, !0), i.base_;
+ if (!i.modified_) return aU(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), EH(a, (r, a) => ZH(e, i, t, r, a, n, o), r), QH(e, t, !1), n && e.patches_ && BH("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
+ i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), NH(a, (r, a) => iU(e, i, t, r, a, n, o), r), aU(e, t, !1), n && e.patches_ && qH("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
}
return i.copy_;
}
-function ZH(e, t, n, r, i, a, o) {
+function iU(e, t, n, r, i, a, o) {
if (i == null || typeof i != "object" && !o) return;
- let s = RH(i);
+ let s = GH(i);
if (!(s && !o)) {
- if (xH(i)) {
- let o = XH(e, i, a && t && t.type_ !== 3 && !OH(t.assigned_, r) ? a.concat(r) : void 0);
- if (kH(n, r, o), xH(o)) e.canAutoFreeze_ = !1;
+ if (OH(i)) {
+ let o = rU(e, i, a && t && t.type_ !== 3 && !FH(t.assigned_, r) ? a.concat(r) : void 0);
+ if (IH(n, r, o), OH(o)) e.canAutoFreeze_ = !1;
else return;
} else o && n.add(i);
- if (SH(i) && !s) {
+ if (kH(i) && !s) {
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || t && t.base_ && t.base_[r] === i && s) return;
- XH(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (jH(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && QH(e, i);
+ rU(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (RH(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && aU(e, i);
}
}
}
-function QH(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && FH(t, n);
+function aU(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && HH(t, n);
}
-function $H(e, t) {
+function oU(e, t) {
let n = Array.isArray(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : HH(),
+ scope_: t ? t.scope_ : YH(),
modified_: !1,
finalized_: !1,
assigned_: {},
@@ -53021,41 +53272,41 @@ function $H(e, t) {
copy_: null,
revoke_: null,
isManual_: !1
- }, i = r, a = eU;
- n && (i = [r], a = tU);
+ }, i = r, a = sU;
+ n && (i = [r], a = cU);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, s;
}
-var eU = {
+var sU = {
get(e, t) {
- if (t === vH) return e;
- let n = NH(e);
- if (!OH(n, t)) return rU(e, n, t);
+ if (t === TH) return e;
+ let n = BH(e);
+ if (!FH(n, t)) return uU(e, n, t);
let r = n[t];
- return e.finalized_ || !SH(r) ? r : r === nU(e.base_, t) ? (oU(e), e.copy_[t] = cU(r, e)) : r;
+ return e.finalized_ || !kH(r) ? r : r === lU(e.base_, t) ? (pU(e), e.copy_[t] = hU(r, e)) : r;
},
has(e, t) {
- return t in NH(e);
+ return t in BH(e);
},
ownKeys(e) {
- return Reflect.ownKeys(NH(e));
+ return Reflect.ownKeys(BH(e));
},
set(e, t, n) {
- let r = iU(NH(e), t);
+ let r = dU(BH(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = nU(NH(e), t), i = r?.[vH];
+ let r = lU(BH(e), t), i = r?.[TH];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;
- if (AH(n, r) && (n !== void 0 || OH(e.base_, t))) return !0;
- oU(e), aU(e);
+ if (LH(n, r) && (n !== void 0 || FH(e.base_, t))) return !0;
+ pU(e), fU(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 nU(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, oU(e), aU(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
+ return lU(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, pU(e), fU(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = NH(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = BH(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
writable: !0,
configurable: e.type_ !== 1 || t !== "length",
@@ -53064,48 +53315,48 @@ var eU = {
};
},
defineProperty() {
- yH(11);
+ EH(11);
},
getPrototypeOf(e) {
- return bH(e.base_);
+ return DH(e.base_);
},
setPrototypeOf() {
- yH(12);
+ EH(12);
}
-}, tU = {};
-EH(eU, (e, t) => {
- tU[e] = function() {
+}, cU = {};
+NH(sU, (e, t) => {
+ cU[e] = function() {
return arguments[0] = arguments[0][0], t.apply(this, arguments);
};
-}), tU.deleteProperty = function(e, t) {
- return tU.set.call(this, e, t, void 0);
-}, tU.set = function(e, t, n) {
- return eU.set.call(this, e[0], t, n, e[0]);
+}), cU.deleteProperty = function(e, t) {
+ return cU.set.call(this, e, t, void 0);
+}, cU.set = function(e, t, n) {
+ return sU.set.call(this, e[0], t, n, e[0]);
};
-function nU(e, t) {
- let n = e[vH];
- return (n ? NH(n) : e)[t];
+function lU(e, t) {
+ let n = e[TH];
+ return (n ? BH(n) : e)[t];
}
-function rU(e, t, n) {
- let r = iU(t, n);
+function uU(e, t, n) {
+ let r = dU(t, n);
return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;
}
-function iU(e, t) {
+function dU(e, t) {
if (!(t in e)) return;
- let n = bH(e);
+ let n = DH(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = bH(n);
+ n = DH(n);
}
}
-function aU(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && aU(e.parent_));
+function fU(e) {
+ e.modified_ || (e.modified_ = !0, e.parent_ && fU(e.parent_));
}
-function oU(e) {
- e.copy_ ||= PH(e.base_, e.scope_.immer_.useStrictShallowCopy_);
+function pU(e) {
+ e.copy_ ||= VH(e.base_, e.scope_.immer_.useStrictShallowCopy_);
}
-var sU = class {
+var mU = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (e, t, n) => {
if (typeof e == "function" && typeof t != "function") {
@@ -53116,25 +53367,25 @@ var sU = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- typeof t != "function" && yH(6), n !== void 0 && typeof n != "function" && yH(7);
+ typeof t != "function" && EH(6), n !== void 0 && typeof n != "function" && EH(7);
let r;
- if (SH(e)) {
- let i = qH(this), a = cU(e, void 0), o = !0;
+ if (kH(e)) {
+ let i = eU(this), a = hU(e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? GH(i) : KH(i);
+ o ? QH(i) : $H(i);
}
- return WH(i, n), YH(r, i);
+ return ZH(i, n), nU(r, i);
}
if (!e || typeof e != "object") {
- if (r = t(e), r === void 0 && (r = e), r === gH && (r = void 0), this.autoFreeze_ && FH(r, !0), n) {
+ if (r = t(e), r === void 0 && (r = e), r === CH && (r = void 0), this.autoFreeze_ && HH(r, !0), n) {
let t = [], i = [];
- BH("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
+ qH("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
}
return r;
}
- yH(1, e);
+ EH(1, e);
}, this.produceWithPatches = (e, t) => {
if (typeof e == "function") return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
@@ -53148,15 +53399,15 @@ var sU = 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) {
- SH(e) || yH(8), xH(e) && (e = lU(e));
- let t = qH(this), n = cU(e, void 0);
- return n[vH].isManual_ = !0, KH(t), n;
+ kH(e) || EH(8), OH(e) && (e = gU(e));
+ let t = eU(this), n = hU(e, void 0);
+ return n[TH].isManual_ = !0, $H(t), n;
}
finishDraft(e, t) {
- let n = e && e[vH];
- (!n || !n.isManual_) && yH(9);
+ let n = e && e[TH];
+ (!n || !n.isManual_) && EH(9);
let { scope_: r } = n;
- return WH(r, t), YH(void 0, r);
+ return ZH(r, t), nU(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -53180,35 +53431,35 @@ var sU = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = BH("Patches").applyPatches_;
- return xH(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = qH("Patches").applyPatches_;
+ return OH(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function cU(e, t) {
- let n = jH(e) ? BH("MapSet").proxyMap_(e, t) : MH(e) ? BH("MapSet").proxySet_(e, t) : $H(e, t);
- return (t ? t.scope_ : HH()).drafts_.push(n), n;
+function hU(e, t) {
+ let n = RH(e) ? qH("MapSet").proxyMap_(e, t) : zH(e) ? qH("MapSet").proxySet_(e, t) : oU(e, t);
+ return (t ? t.scope_ : YH()).drafts_.push(n), n;
}
-function lU(e) {
- return xH(e) || yH(10, e), uU(e);
+function gU(e) {
+ return OH(e) || EH(10, e), _U(e);
}
-function uU(e) {
- if (!SH(e) || RH(e)) return e;
- let t = e[vH], n, r = !0;
+function _U(e) {
+ if (!kH(e) || GH(e)) return e;
+ let t = e[TH], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = PH(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = PH(e, !0);
- return EH(n, (e, t) => {
- kH(n, e, uU(t));
+ t.finalized_ = !0, n = VH(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = VH(e, !0);
+ return NH(n, (e, t) => {
+ IH(n, e, _U(t));
}, r), t && (t.finalized_ = !1), n;
}
-new sU().produce;
-function dU(e) {
+new mU().produce;
+function vU(e) {
return e;
}
//#endregion
//#region node_modules/recharts/es6/state/legendSlice.js
-var fU = IB({
+var yU = LB({
name: "legend",
initialState: {
settings: {
@@ -53232,43 +53483,43 @@ var fU = IB({
},
addLegendPayload: {
reducer(e, t) {
- e.payload.push(dU(t.payload));
+ e.payload.push(vU(t.payload));
},
- prepare: MB()
+ prepare: NB()
},
replaceLegendPayload: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = CB(e).payload.indexOf(dU(n));
- i > -1 && (e.payload[i] = dU(r));
+ var { prev: n, next: r } = t.payload, i = wB(e).payload.indexOf(vU(n));
+ i > -1 && (e.payload[i] = vU(r));
},
- prepare: MB()
+ prepare: NB()
},
removeLegendPayload: {
reducer(e, t) {
- var n = CB(e).payload.indexOf(dU(t.payload));
+ var n = wB(e).payload.indexOf(vU(t.payload));
n > -1 && e.payload.splice(n, 1);
},
- prepare: MB()
+ prepare: NB()
}
}
-}), { setLegendSize: pU, setLegendSettings: mU, addLegendPayload: hU, replaceLegendPayload: gU, removeLegendPayload: _U } = fU.actions, vU = fU.reducer, yU = /* @__PURE__ */ Te(((e) => {
+}), { setLegendSize: bU, setLegendSettings: xU, addLegendPayload: SU, replaceLegendPayload: CU, removeLegendPayload: wU } = yU.actions, TU = yU.reducer, EU = /* @__PURE__ */ Te(((e) => {
var t = Ne();
t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;
}));
(/* @__PURE__ */ Te(((e, t) => {
- t.exports = yU();
+ t.exports = EU();
})))();
-function bU(e) {
+function DU(e) {
e();
}
-function xU() {
+function OU() {
let e = null, t = null;
return {
clear() {
e = null, t = null;
},
notify() {
- bU(() => {
+ DU(() => {
let t = e;
for (; t;) t.callback(), t = t.next;
});
@@ -53290,12 +53541,12 @@ function xU() {
}
};
}
-var SU = {
+var kU = {
notify() {},
get: () => []
};
-function CU(e, t) {
- let n, r = SU, i = 0, a = !1;
+function AU(e, t) {
+ let n, r = kU, i = 0, a = !1;
function o(e) {
u();
let t = r.subscribe(e), n = !1;
@@ -53313,10 +53564,10 @@ function CU(e, t) {
return a;
}
function u() {
- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = xU());
+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = OU());
}
function d() {
- i--, n && i === 0 && (n(), n = void 0, r.clear(), r = SU);
+ i--, n && i === 0 && (n(), n = void 0, r.clear(), r = kU);
}
function f() {
a || (a = !0, u());
@@ -53335,44 +53586,44 @@ function CU(e, t) {
};
return m;
}
-var wU = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, TU = typeof navigator < "u" && navigator.product === "ReactNative", EU = wU || TU ? R.useLayoutEffect : R.useEffect;
-function DU(e, t) {
+var jU = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, MU = typeof navigator < "u" && navigator.product === "ReactNative", NU = jU || MU ? R.useLayoutEffect : R.useEffect;
+function PU(e, t) {
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function OU(e, t) {
- if (DU(e, t)) return !0;
+function FU(e, t) {
+ if (PU(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]) || !DU(e[n[r]], t[n[r]])) return !1;
+ for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !PU(e[n[r]], t[n[r]])) return !1;
return !0;
}
-var kU = /* @__PURE__ */ Symbol.for("react-redux-context"), AU = typeof globalThis < "u" ? globalThis : {};
-function jU() {
+var IU = /* @__PURE__ */ Symbol.for("react-redux-context"), LU = typeof globalThis < "u" ? globalThis : {};
+function _be() {
if (!R.createContext) return {};
- let e = AU[kU] ??= /* @__PURE__ */ new Map(), t = e.get(R.createContext);
+ let e = LU[IU] ??= /* @__PURE__ */ new Map(), t = e.get(R.createContext);
return t || (t = R.createContext(null), e.set(R.createContext, t)), t;
}
-var MU = /* @__PURE__ */ jU();
-function NU(e) {
+var vbe = /* @__PURE__ */ _be();
+function ybe(e) {
let { children: t, context: n, serverState: r, store: i } = e, a = R.useMemo(() => {
- let e = CU(i);
+ let e = AU(i);
return {
store: i,
subscription: e,
getServerState: r ? () => r : void 0
};
}, [i, r]), o = R.useMemo(() => i.getState(), [i]);
- EU(() => {
+ NU(() => {
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 || MU;
+ let s = n || vbe;
return /* @__PURE__ */ R.createElement(s.Provider, { value: a }, t);
}
-var PU = NU, FU = /* @__PURE__ */ new Set([
+var bbe = ybe, xbe = /* @__PURE__ */ new Set([
"axisLine",
"tickLine",
"activeBar",
@@ -53395,19 +53646,19 @@ var PU = NU, FU = /* @__PURE__ */ new Set([
"radius",
"throttledEvents"
]);
-function IU(e, t) {
+function Sbe(e, t) {
return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;
}
-function LU(e, t) {
- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (FU.has(n)) {
+function RU(e, t) {
+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (xbe.has(n)) {
if (e[n] == null && t[n] == null) continue;
- if (!OU(e[n], t[n])) return !1;
- } else if (!IU(e[n], t[n])) return !1;
+ if (!FU(e[n], t[n])) return !1;
+ } else if (!Sbe(e[n], t[n])) return !1;
return !0;
}
//#endregion
//#region node_modules/recharts/es6/component/Legend.js
-var RU = ["contextPayload"];
+var Cbe = ["contextPayload"];
function zU() {
return zU = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -53431,26 +53682,26 @@ function VU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? BU(Object(n), !0).forEach(function(t) {
- gbe(e, t, n[t]);
+ wbe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : BU(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 wbe(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 _be(e) {
- var t = vbe(e, "string");
+function Tbe(e) {
+ var t = Ebe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function vbe(e, t) {
+function Ebe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53460,16 +53711,16 @@ function vbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function ybe(e, t) {
+function Dbe(e, t) {
if (e == null) return {};
- var n, r, i = bbe(e, t);
+ var n, r, i = Obe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function bbe(e, t) {
+function Obe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -53478,36 +53729,36 @@ function bbe(e, t) {
}
return n;
}
-function xbe(e) {
+function kbe(e) {
return e.value;
}
-function Sbe(e) {
- var { contextPayload: t } = e, n = ybe(e, RU), r = YR(t, e.payloadUniqBy, xbe), i = VU(VU({}, n), {}, { payload: r });
- return /*#__PURE__*/ R.isValidElement(e.content) ? /*#__PURE__*/ R.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ R.createElement(e.content, i) : /*#__PURE__*/ R.createElement(k_e, i);
+function Abe(e) {
+ var { contextPayload: t } = e, n = Dbe(e, Cbe), r = XR(t, e.payloadUniqBy, kbe), i = VU(VU({}, n), {}, { payload: r });
+ return /*#__PURE__*/ R.isValidElement(e.content) ? /*#__PURE__*/ R.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ R.createElement(e.content, i) : /*#__PURE__*/ R.createElement(I_e, i);
}
-function Cbe(e, t, n, r, i, a) {
+function jbe(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 }), VU(VU({}, l), u);
}
-function wbe(e) {
- var t = ZR();
+function Mbe(e) {
+ var t = QR();
return (0, R.useEffect)(() => {
- t(mU(e));
+ t(xU(e));
}, [t, e]), null;
}
-function Tbe(e) {
- var t = ZR();
- return (0, R.useEffect)(() => (t(pU(e)), () => {
- t(pU({
+function Nbe(e) {
+ var t = QR();
+ return (0, R.useEffect)(() => (t(bU(e)), () => {
+ t(bU({
width: 0,
height: 0
}));
}), [t, e]), null;
}
-function Ebe(e, t, n, r) {
+function Pbe(e, t, n, r) {
return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;
}
-var Dbe = {
+var Fbe = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -53515,28 +53766,28 @@ var Dbe = {
layout: "horizontal",
verticalAlign: "bottom"
};
-function Obe(e) {
- var t = wR(e, Dbe), n = zve(), r = Cge(), i = cH(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = cz([n]), d = oH(), f = sH();
+function Ibe(e) {
+ var t = TR(e, Fbe), n = Kve(), r = Age(), i = hH(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = lz([n]), d = pH(), f = mH();
if (d == null || f == null) return null;
- var p = d - (i?.left || 0) - (i?.right || 0), m = Ebe(t.layout, o, a, p), h = c ? s : VU(VU({
+ var p = d - (i?.left || 0) - (i?.right || 0), m = Pbe(t.layout, o, a, p), h = c ? s : VU(VU({
position: "absolute",
width: m?.width || a || "auto",
height: m?.height || o || "auto"
- }, Cbe(s, t, i, d, f, l)), s), g = c ?? r;
+ }, jbe(s, t, i, d, f, l)), s), g = c ?? r;
if (g == null || n == null) return null;
var _ = /*#__PURE__*/ R.createElement("div", {
className: "recharts-legend-wrapper",
style: h,
ref: u
- }, /*#__PURE__*/ R.createElement(wbe, {
+ }, /*#__PURE__*/ R.createElement(Mbe, {
layout: t.layout,
align: t.align,
verticalAlign: t.verticalAlign,
itemSorter: t.itemSorter
- }), !c && /*#__PURE__*/ R.createElement(Tbe, {
+ }), !c && /*#__PURE__*/ R.createElement(Nbe, {
width: l.width,
height: l.height
- }), /*#__PURE__*/ R.createElement(Sbe, zU({}, t, m, {
+ }), /*#__PURE__*/ R.createElement(Abe, zU({}, t, m, {
margin: i,
chartWidth: d,
chartHeight: f,
@@ -53544,7 +53795,7 @@ function Obe(e) {
})));
return /*#__PURE__*/ (0, Re.createPortal)(_, g);
}
-var HU = /*#__PURE__*/ R.memo(Obe, LU);
+var HU = /*#__PURE__*/ R.memo(Ibe, RU);
HU.displayName = "Legend";
//#endregion
//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
@@ -53571,26 +53822,26 @@ function GU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? WU(Object(n), !0).forEach(function(t) {
- kbe(e, t, n[t]);
+ Lbe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : WU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function kbe(e, t, n) {
- return (t = Abe(t)) in e ? Object.defineProperty(e, t, {
+function Lbe(e, t, n) {
+ return (t = Rbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Abe(e) {
- var t = jbe(e, "string");
+function Rbe(e) {
+ var t = zbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function jbe(e, t) {
+function zbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53600,8 +53851,8 @@ function jbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Mbe(e) {
- return Array.isArray(e) && aR(e[0]) && aR(e[1]) ? e.join(" ~ ") : e;
+function Bbe(e) {
+ return Array.isArray(e) && oR(e[0]) && oR(e[1]) ? e.join(" ~ ") : e;
}
var KU = {
separator: " : ",
@@ -53621,18 +53872,18 @@ var KU = {
labelStyle: {},
accessibilityLayer: !1
};
-function Nbe(e, t) {
- return t == null ? e : az(e, t);
+function Vbe(e, t) {
+ return t == null ? e : oz(e, t);
}
-var Pbe = (e) => {
+var Hbe = (e) => {
var { separator: t = KU.separator, contentStyle: n, itemStyle: r, labelStyle: i = KU.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = KU.accessibilityLayer } = e, p = () => {
if (a && a.length) {
var e = {
padding: 0,
margin: 0
- }, n = Nbe(a, s).map((e, n) => {
+ }, n = Vbe(a, s).map((e, n) => {
if (e.type === "none") return null;
- var i = e.formatter || o || Mbe, { value: s, name: c } = e, l = s, u = c;
+ var i = e.formatter || o || Bbe, { 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;
@@ -53644,7 +53895,7 @@ var Pbe = (e) => {
className: "recharts-tooltip-item",
key: `tooltip-item-${n}`,
style: f
- }, aR(u) ? /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, aR(u) ? /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
+ }, oR(u) ? /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, oR(u) ? /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ R.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
});
return /*#__PURE__*/ R.createElement("ul", {
className: "recharts-tooltip-item-list",
@@ -53652,7 +53903,7 @@ var Pbe = (e) => {
}, n);
}
return null;
- }, m = GU(GU({}, KU.contentStyle), n), h = GU({ margin: 0 }, i), g = !dR(u), _ = g ? u : "", v = Mu("recharts-default-tooltip", c), y = Mu("recharts-tooltip-label", l);
+ }, m = GU(GU({}, KU.contentStyle), n), h = GU({ margin: 0 }, i), g = !fR(u), _ = g ? u : "", v = Mu("recharts-default-tooltip", c), y = Mu("recharts-tooltip-label", l);
g && d && a != null && (_ = d(u, a));
var b = f ? {
role: "status",
@@ -53665,8 +53916,8 @@ var Pbe = (e) => {
className: y,
style: h
}, /*#__PURE__*/ R.isValidElement(_) ? _ : `${_}`), p());
-}, qU = "recharts-tooltip-wrapper", Fbe = { visibility: "hidden" };
-function Ibe(e) {
+}, qU = "recharts-tooltip-wrapper", Ube = { visibility: "hidden" };
+function Wbe(e) {
var { coordinate: t, translateX: n, translateY: r } = e;
return Mu(qU, {
[`${qU}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
@@ -53683,11 +53934,11 @@ function JU(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 Lbe(e) {
+function Gbe(e) {
var { translateX: t, translateY: n, useTranslate3d: r } = e;
return { transform: r ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };
}
-function Rbe(e) {
+function Kbe(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 = JU({
allowEscapeViewBox: t,
@@ -53709,13 +53960,13 @@ function Rbe(e) {
tooltipDimension: s.height,
viewBox: l,
viewBoxDimension: l.height
- }), u = Lbe({
+ }), u = Gbe({
translateX: d,
translateY: f,
useTranslate3d: c
- })) : u = Fbe, {
+ })) : u = Ube, {
cssProperties: u,
- cssClasses: Ibe({
+ cssClasses: Wbe({
translateX: d,
translateY: f,
coordinate: n
@@ -53757,26 +54008,26 @@ function QU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? ZU(Object(n), !0).forEach(function(t) {
- zbe(e, t, n[t]);
+ qbe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ZU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function zbe(e, t, n) {
- return (t = Bbe(t)) in e ? Object.defineProperty(e, t, {
+function qbe(e, t, n) {
+ return (t = Jbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Bbe(e) {
- var t = Vbe(e, "string");
+function Jbe(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) {
@@ -53786,10 +54037,10 @@ function Vbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Hbe(e) {
+function Xbe(e) {
if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;
}
-function Ube(e) {
+function Zbe(e) {
var t = XU(), [n, r] = R.useState(() => ({
dismissed: !1,
dismissedAtCoordinate: {
@@ -53811,7 +54062,7 @@ function Ube(e) {
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(QU(QU({}, n), {}, { dismissed: !1 }));
- var { cssClasses: i, cssProperties: a } = Rbe({
+ var { cssClasses: i, cssProperties: a } = Kbe({
allowEscapeViewBox: e.allowEscapeViewBox,
coordinate: e.coordinate,
offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,
@@ -53824,7 +54075,7 @@ function Ube(e) {
},
useTranslate3d: e.useTranslate3d,
viewBox: e.viewBox
- }), o = QU(QU({}, e.hasPortalFromProps ? {} : QU(QU({ transition: Hbe({
+ }), o = QU(QU({}, e.hasPortalFromProps ? {} : QU(QU({ transition: Xbe({
prefersReducedMotion: t,
isAnimationActive: e.isAnimationActive,
active: e.active,
@@ -53844,7 +54095,7 @@ function Ube(e) {
ref: e.innerRef
}, e.children);
}
-var Wbe = /*#__PURE__*/ R.memo(Ube), $U = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
+var Qbe = /*#__PURE__*/ R.memo(Zbe), $U = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
//#endregion
//#region node_modules/recharts/es6/shape/Curve.js
function eW() {
@@ -53870,26 +54121,26 @@ function nW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? tW(Object(n), !0).forEach(function(t) {
- Gbe(e, t, n[t]);
+ $be(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Gbe(e, t, n) {
- return (t = Kbe(t)) in e ? Object.defineProperty(e, t, {
+function $be(e, t, n) {
+ return (t = exe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Kbe(e) {
- var t = qbe(e, "string");
+function exe(e) {
+ var t = txe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function qbe(e, t) {
+function txe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53900,39 +54151,39 @@ function qbe(e, t) {
return (t === "string" ? String : Number)(e);
}
var rW = {
- curveBasisClosed: Vge,
- curveBasisOpen: Hge,
- curveBasis: Bge,
- curveBumpX: Ege,
- curveBumpY: Dge,
- curveLinearClosed: Uge,
- curveLinear: gL,
- curveMonotoneX: Wge,
- curveMonotoneY: Gge,
- curveNatural: Kge,
- curveStep: qge,
- curveStepAfter: Yge,
- curveStepBefore: Jge
-}, iW = (e) => dV(e.x) && dV(e.y), aW = (e) => e.base != null && iW(e.base) && iW(e), oW = (e) => e.x, sW = (e) => e.y, Jbe = (e, t) => {
+ curveBasisClosed: Jge,
+ curveBasisOpen: Yge,
+ curveBasis: qge,
+ curveBumpX: Nge,
+ curveBumpY: Pge,
+ curveLinearClosed: Xge,
+ curveLinear: _L,
+ curveMonotoneX: Zge,
+ curveMonotoneY: Qge,
+ curveNatural: $ge,
+ curveStep: e_e,
+ curveStepAfter: n_e,
+ curveStepBefore: t_e
+}, iW = (e) => fV(e.x) && fV(e.y), aW = (e) => e.base != null && iW(e.base) && iW(e), oW = (e) => e.x, sW = (e) => e.y, nxe = (e, t) => {
if (typeof e == "function") return e;
- var n = `curve${fR(e)}`;
+ var n = `curve${pR(e)}`;
if ((n === "curveMonotone" || n === "curveBump") && t) {
var r = rW[`${n}${t === "vertical" ? "Y" : "X"}`];
if (r) return r;
}
- return rW[n] || gL;
+ return rW[n] || _L;
}, cW = {
connectNulls: !1,
type: "linear"
-}, Ybe = (e) => {
- var { type: t = cW.type, points: n = [], baseLine: r, layout: i, connectNulls: a = cW.connectNulls } = e, o = Jbe(t, i), s = a ? n.filter(iW) : n;
+}, rxe = (e) => {
+ var { type: t = cW.type, points: n = [], baseLine: r, layout: i, connectNulls: a = cW.connectNulls } = e, o = nxe(t, i), s = a ? n.filter(iW) : n;
if (Array.isArray(r)) {
var c, l = n.map((e, t) => nW(nW({}, e), {}, { base: r[t] }));
- return c = i === "vertical" ? bL().y(sW).x1(oW).x0((e) => e.base.x) : bL().x(oW).y1(sW).y0((e) => e.base.y), c.defined(aW).curve(o)(a ? l.filter(aW) : l);
+ return c = i === "vertical" ? xL().y(sW).x1(oW).x0((e) => e.base.x) : xL().x(oW).y1(sW).y0((e) => e.base.y), c.defined(aW).curve(o)(a ? l.filter(aW) : l);
}
- return (i === "vertical" && Z(r) ? bL().y(sW).x1(oW).x0(r) : Z(r) ? bL().x(oW).y1(sW).y0(r) : yL().x(oW).y(sW)).defined(iW).curve(o)(s);
+ return (i === "vertical" && Z(r) ? xL().y(sW).x1(oW).x0(r) : Z(r) ? xL().x(oW).y1(sW).y0(r) : bL().x(oW).y(sW)).defined(iW).curve(o)(s);
}, lW = (e) => {
- var { className: t, points: n, path: r, pathRef: i } = e, a = uH();
+ var { className: t, points: n, path: r, pathRef: i } = e, a = _H();
if ((!n || !n.length) && !r) return null;
var o = {
type: e.type,
@@ -53940,13 +54191,13 @@ var rW = {
baseLine: e.baseLine,
layout: e.layout || a,
connectNulls: e.connectNulls
- }, s = n && n.length ? Ybe(o) : r;
- return /*#__PURE__*/ R.createElement("path", eW({}, JI(e), xR(e), {
+ }, s = n && n.length ? rxe(o) : r;
+ return /*#__PURE__*/ R.createElement("path", eW({}, YI(e), SR(e), {
className: Mu("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
-}, Xbe = [
+}, ixe = [
"x",
"y",
"top",
@@ -53974,30 +54225,30 @@ function dW(e, t) {
}
return n;
}
-function Zbe(e) {
+function axe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? dW(Object(n), !0).forEach(function(t) {
- Qbe(e, t, n[t]);
+ oxe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Qbe(e, t, n) {
- return (t = $be(t)) in e ? Object.defineProperty(e, t, {
+function oxe(e, t, n) {
+ return (t = sxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function $be(e) {
- var t = exe(e, "string");
+function sxe(e) {
+ var t = cxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function exe(e, t) {
+function cxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54007,16 +54258,16 @@ function exe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function txe(e, t) {
+function lxe(e, t) {
if (e == null) return {};
- var n, r, i = nxe(e, t);
+ var n, r, i = uxe(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 nxe(e, t) {
+function uxe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -54025,8 +54276,8 @@ function nxe(e, t) {
}
return n;
}
-var rxe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, ixe = (e) => {
- var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = txe(e, Xbe), l = Zbe({
+var dxe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, fxe = (e) => {
+ var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = lxe(e, ixe), l = axe({
x: t,
y: n,
top: r,
@@ -54034,14 +54285,14 @@ var rxe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, ixe = (e) => {
width: a,
height: o
}, c);
- return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ R.createElement("path", uW({}, XI(l), {
+ return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ R.createElement("path", uW({}, ZI(l), {
className: Mu("recharts-cross", s),
- d: rxe(t, n, a, o, r, i)
+ d: dxe(t, n, a, o, r, i)
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js
-function axe(e, t, n, r) {
+function pxe(e, t, n, r) {
var i = r / 2;
return {
stroke: "none",
@@ -54068,26 +54319,26 @@ function pW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? fW(Object(n), !0).forEach(function(t) {
- oxe(e, t, n[t]);
+ mxe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function oxe(e, t, n) {
- return (t = sxe(t)) in e ? Object.defineProperty(e, t, {
+function mxe(e, t, n) {
+ return (t = hxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function sxe(e) {
- var t = cxe(e, "string");
+function hxe(e) {
+ var t = gxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function cxe(e, t) {
+function gxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54097,7 +54348,7 @@ function cxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var lxe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), mW = (e, t, n) => e.map((e) => `${lxe(e)} ${t}ms ${n}`).join(","), uxe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), hW = (e, t) => Object.keys(t).reduce((n, r) => pW(pW({}, n), {}, { [r]: e(r, t[r]) }), {});
+var _xe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), mW = (e, t, n) => e.map((e) => `${_xe(e)} ${t}ms ${n}`).join(","), vxe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), hW = (e, t) => Object.keys(t).reduce((n, r) => pW(pW({}, n), {}, { [r]: e(r, t[r]) }), {});
//#endregion
//#region node_modules/recharts/es6/animation/configUpdate.js
function gW(e, t) {
@@ -54114,26 +54365,26 @@ function _W(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? gW(Object(n), !0).forEach(function(t) {
- dxe(e, t, n[t]);
+ yxe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : gW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function dxe(e, t, n) {
- return (t = fxe(t)) in e ? Object.defineProperty(e, t, {
+function yxe(e, t, n) {
+ return (t = bxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function fxe(e) {
- var t = pxe(e, "string");
+function bxe(e) {
+ var t = xxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function pxe(e, t) {
+function xxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54162,7 +54413,7 @@ var vW = (e, t, n) => e + (t - e) * n, yW = (e) => {
from: vW(t.from, r[e].from, n)
}) : t, t) : bW(e, r, n - 1);
};
-function mxe(e, t, n, r, i, a) {
+function Sxe(e, t, n, r, i, a) {
var o, s = r.reduce((n, r) => _W(_W({}, n), {}, { [r]: {
from: e[r],
velocity: 0,
@@ -54177,7 +54428,7 @@ function mxe(e, t, n, r, i, a) {
(e = u) == null || e();
});
}
-function hxe(e, t, n, r, i, a, o) {
+function Cxe(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 : _W(_W({}, n), {}, { [r]: [i, a] });
@@ -54195,15 +54446,15 @@ function hxe(e, t, n, r, i, a, o) {
(e = s) == null || e();
});
}
-var gxe = (e, t, n, r, i, a) => {
- var o = uxe(e, t);
- return n == null ? () => (i(_W(_W({}, e), t)), () => {}) : n.isStepper === !0 ? mxe(e, t, n, o, i, a) : hxe(e, t, n, r, o, i, a);
+var wxe = (e, t, n, r, i, a) => {
+ var o = vxe(e, t);
+ return n == null ? () => (i(_W(_W({}, e), t)), () => {}) : n.isStepper === !0 ? Sxe(e, t, n, o, i, a) : Cxe(e, t, n, r, o, i, a);
}, xW = (e, t) => [
0,
3 * e,
3 * t - 6 * e,
3 * e - 3 * t + 1
-], SW = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), CW = (e, t) => (n) => SW(xW(e, t), n), _xe = (e, t) => (n) => SW([...xW(e, t).map((e, t) => e * t).slice(1), 0], n), vxe = (e) => {
+], SW = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), CW = (e, t) => (n) => SW(xW(e, t), n), Txe = (e, t) => (n) => SW([...xW(e, t).map((e, t) => e * t).slice(1), 0], n), Exe = (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(",");
@@ -54215,7 +54466,7 @@ var gxe = (e, t, n, r, i, a) => {
i[2],
i[3]
];
-}, yxe = function() {
+}, Dxe = function() {
var e = [...arguments];
if (e.length === 1) switch (e[0]) {
case "linear": return [
@@ -54249,7 +54500,7 @@ var gxe = (e, t, n, r, i, a) => {
1
];
default:
- var t = vxe(e[0]);
+ var t = Exe(e[0]);
if (t) return t;
}
return e.length === 4 ? e : [
@@ -54258,8 +54509,8 @@ var gxe = (e, t, n, r, i, a) => {
1,
1
];
-}, bxe = (e, t, n, r) => {
- var i = CW(e, n), a = CW(t, r), o = _xe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
+}, Oxe = (e, t, n, r) => {
+ var i = CW(e, n), a = CW(t, r), o = Txe(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);
@@ -54269,28 +54520,28 @@ var gxe = (e, t, n, r, i, a) => {
};
return c.isStepper = !1, c;
}, wW = function() {
- return bxe(...yxe(...arguments));
-}, xxe = function() {
+ return Oxe(...Dxe(...arguments));
+}, kxe = 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;
-}, Sxe = (e) => {
+}, Axe = (e) => {
if (typeof e == "string") switch (e) {
case "ease":
case "ease-in-out":
case "ease-out":
case "ease-in":
case "linear": return wW(e);
- case "spring": return xxe();
+ case "spring": return kxe();
default: if (e.split("(")[0] === "cubic-bezier") return wW(e);
}
return typeof e == "function" ? e : null;
};
//#endregion
//#region node_modules/recharts/es6/animation/AnimationManager.js
-function Cxe(e) {
+function jxe(e) {
var t, n = () => null, r = !1, i = null, a = (o) => {
if (!r) {
if (Array.isArray(o)) {
@@ -54321,7 +54572,7 @@ function Cxe(e) {
}
//#endregion
//#region node_modules/recharts/es6/animation/timeoutController.js
-var wxe = class {
+var Mxe = 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));
@@ -54333,14 +54584,14 @@ var wxe = class {
};
//#endregion
//#region node_modules/recharts/es6/animation/createDefaultAnimationManager.js
-function Txe() {
- return Cxe(new wxe());
+function Nxe() {
+ return jxe(new Mxe());
}
//#endregion
//#region node_modules/recharts/es6/animation/useAnimationManager.js
-var Exe = /*#__PURE__*/ (0, R.createContext)(Txe);
-function Dxe(e, t) {
- var n = (0, R.useContext)(Exe);
+var Pxe = /*#__PURE__*/ (0, R.createContext)(Nxe);
+function Fxe(e, t) {
+ var n = (0, R.useContext)(Pxe);
return (0, R.useMemo)(() => t ?? n(e), [
e,
t,
@@ -54349,7 +54600,7 @@ function Dxe(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/animation/JavascriptAnimate.js
-var Oxe = {
+var Ixe = {
begin: 0,
duration: 1e3,
easing: "ease",
@@ -54359,12 +54610,12 @@ var Oxe = {
onAnimationStart: () => {}
}, TW = { t: 0 }, EW = { t: 1 };
function DW(e) {
- var t = wR(e, Oxe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = XU(), d = n === "auto" ? !YU.isSsr && !u : n, f = Dxe(t.animationId, t.animationManager), [p, m] = (0, R.useState)(d ? TW : EW), h = (0, R.useRef)(null);
+ var t = TR(e, Ixe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = XU(), d = n === "auto" ? !YU.isSsr && !u : n, f = Fxe(t.animationId, t.animationManager), [p, m] = (0, R.useState)(d ? TW : EW), h = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
d || m(EW);
}, [d]), (0, R.useEffect)(() => {
- if (!d || !r) return mR;
- var e = gxe(TW, EW, Sxe(a), i, m, f.getTimeoutController());
+ if (!d || !r) return hR;
+ var e = wxe(TW, EW, Axe(a), i, m, f.getTimeoutController());
return f.start([
c,
o,
@@ -54390,12 +54641,12 @@ function DW(e) {
//#endregion
//#region node_modules/recharts/es6/util/useAnimationId.js
function OW(e) {
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, R.useRef)(oR(t)), r = (0, R.useRef)(e);
- return r.current !== e && (n.current = oR(t), r.current = e), n.current;
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, R.useRef)(sR(t)), r = (0, R.useRef)(e);
+ return r.current !== e && (n.current = sR(t), r.current = e), n.current;
}
//#endregion
//#region node_modules/recharts/es6/shape/Rectangle.js
-var kxe = ["radius"], Axe = ["radius"], jxe, Mxe, Nxe, Pxe, Fxe, Ixe, Lxe, Rxe, zxe, Bxe;
+var Lxe = ["radius"], Rxe = ["radius"], zxe, Bxe, Vxe, Hxe, Uxe, Wxe, Gxe, Kxe, qxe, Jxe;
function kW(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -54410,26 +54661,26 @@ function AW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? kW(Object(n), !0).forEach(function(t) {
- Vxe(e, t, n[t]);
+ Yxe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : kW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Vxe(e, t, n) {
- return (t = Hxe(t)) in e ? Object.defineProperty(e, t, {
+function Yxe(e, t, n) {
+ return (t = Xxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Hxe(e) {
- var t = Uxe(e, "string");
+function Xxe(e) {
+ var t = Zxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Uxe(e, t) {
+function Zxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54450,14 +54701,14 @@ function jW() {
}
function MW(e, t) {
if (e == null) return {};
- var n, r, i = Wxe(e, t);
+ var n, r, i = Qxe(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 Wxe(e, t) {
+function Qxe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -54470,7 +54721,7 @@ function NW(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
var PW = (e, t, n, r, i) => {
- var a = eR(n), o = eR(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;
+ var a = tR(n), o = tR(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,
@@ -54481,44 +54732,44 @@ var PW = (e, t, n, r, i) => {
var h = i[p] ?? 0;
f[p] = h > s ? s : h;
}
- d = tR(jxe ||= NW([
+ d = nR(zxe ||= NW([
"M",
",",
""
- ]), e, t + c * f[0]), f[0] > 0 && (d += tR(Mxe ||= NW([
+ ]), e, t + c * f[0]), f[0] > 0 && (d += nR(Bxe ||= NW([
"A ",
",",
",0,0,",
",",
",",
""
- ]), f[0], f[0], u, e + l * f[0], t)), d += tR(Nxe ||= NW([
+ ]), f[0], f[0], u, e + l * f[0], t)), d += nR(Vxe ||= NW([
"L ",
",",
""
- ]), e + n - l * f[1], t), f[1] > 0 && (d += tR(Pxe ||= NW([
+ ]), e + n - l * f[1], t), f[1] > 0 && (d += nR(Hxe ||= NW([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += tR(Fxe ||= NW([
+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += nR(Uxe ||= NW([
"L ",
",",
""
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += tR(Ixe ||= NW([
+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += nR(Wxe ||= NW([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += tR(Lxe ||= NW([
+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += nR(Gxe ||= NW([
"L ",
",",
""
- ]), e + l * f[3], t + r), f[3] > 0 && (d += tR(Rxe ||= NW([
+ ]), e + l * f[3], t + r), f[3] > 0 && (d += nR(Kxe ||= NW([
"A ",
",",
",0,0,",
@@ -54528,8 +54779,8 @@ var PW = (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 = tR(zxe ||= NW(/* @__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 = tR(Bxe ||= NW([
+ d = nR(qxe ||= NW(/* @__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 = nR(Jxe ||= NW([
"M ",
",",
" h ",
@@ -54550,7 +54801,7 @@ var PW = (e, t, n, r, i) => {
animationDuration: 1500,
animationEasing: "ease"
}, IW = (e) => {
- var t = wR(e, FW), n = (0, R.useRef)(null), [r, i] = (0, R.useState)(-1);
+ var t = TR(e, FW), n = (0, R.useRef)(null), [r, i] = (0, R.useState)(-1);
(0, R.useEffect)(() => {
if (n.current && n.current.getTotalLength) try {
var e = n.current.getTotalLength();
@@ -54573,12 +54824,12 @@ var PW = (e, t, n, r, i) => {
if (a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0) return null;
var x = Mu("recharts-rectangle", u);
if (!h) {
- var S = XI(t), { radius: C } = S, w = MW(S, kxe);
+ var S = ZI(t), { radius: C } = S, w = MW(S, Lxe);
return /*#__PURE__*/ R.createElement("path", jW({}, w, {
- x: eR(a),
- y: eR(o),
- width: eR(s),
- height: eR(c),
+ x: tR(a),
+ y: tR(o),
+ width: tR(s),
+ height: tR(c),
radius: typeof l == "number" ? l : void 0,
className: x,
d: PW(a, o, s, c, l)
@@ -54594,12 +54845,12 @@ var PW = (e, t, n, r, i) => {
isActive: h,
begin: p
}, (e) => {
- var r = lR(T, s, e), i = lR(E, c, e), u = lR(D, a, e), d = lR(O, o, e);
+ var r = uR(T, s, e), i = uR(E, c, e), u = uR(D, a, e), d = uR(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 = XI(t), { radius: h } = p, b = MW(p, Axe);
+ } : { strokeDasharray: k } : { strokeDasharray: A }, p = ZI(t), { radius: h } = p, b = MW(p, Rxe);
return /*#__PURE__*/ R.createElement("path", jW({}, b, {
radius: typeof l == "number" ? l : void 0,
className: x,
@@ -54625,26 +54876,26 @@ function RW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? LW(Object(n), !0).forEach(function(t) {
- Gxe(e, t, n[t]);
+ $xe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : LW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Gxe(e, t, n) {
- return (t = Kxe(t)) in e ? Object.defineProperty(e, t, {
+function $xe(e, t, n) {
+ return (t = eSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Kxe(e) {
- var t = qxe(e, "string");
+function eSe(e) {
+ var t = tSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function qxe(e, t) {
+function tSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54654,10 +54905,10 @@ function qxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var zW = Math.PI / 180, BW = (e) => e * Math.PI / 180, Jxe = (e) => e * 180 / Math.PI, VW = (e, t, n, r) => ({
+var zW = Math.PI / 180, BW = (e) => e * Math.PI / 180, nSe = (e) => e * 180 / Math.PI, VW = (e, t, n, r) => ({
x: e + Math.cos(-zW * r) * n,
y: t + Math.sin(-zW * r) * n
-}), Yxe = function(e, t) {
+}), rSe = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
top: 0,
right: 0,
@@ -54668,11 +54919,11 @@ var zW = Math.PI / 180, BW = (e) => e * Math.PI / 180, Jxe = (e) => e * 180 / Ma
brushBottom: 0
};
return Math.min(Math.abs(e - (n.left || 0) - (n.right || 0)), Math.abs(t - (n.top || 0) - (n.bottom || 0))) / 2;
-}, Xxe = (e, t) => {
+}, iSe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return Math.sqrt((n - i) ** 2 + (r - a) ** 2);
-}, Zxe = (e, t) => {
- var { x: n, y: r } = e, { cx: i, cy: a } = t, o = Xxe({
+}, aSe = (e, t) => {
+ var { x: n, y: r } = e, { cx: i, cy: a } = t, o = iSe({
x: n,
y: r
}, {
@@ -54686,25 +54937,25 @@ var zW = Math.PI / 180, BW = (e) => e * Math.PI / 180, Jxe = (e) => e * 180 / Ma
var s = (n - i) / o, c = Math.acos(s);
return r > a && (c = 2 * Math.PI - c), {
radius: o,
- angle: Jxe(c),
+ angle: nSe(c),
angleInRadian: c
};
-}, Qxe = (e) => {
+}, oSe = (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
};
-}, $xe = (e, t) => {
+}, sSe = (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;
-}, eSe = (e, t) => {
- var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = Zxe({
+}, cSe = (e, t) => {
+ var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = aSe({
x: n,
y: r
}, t), { innerRadius: o, outerRadius: s } = t;
if (i < o || i > s || i === 0) return null;
- var { startAngle: c, endAngle: l } = Qxe(t), u = a, d;
+ var { startAngle: c, endAngle: l } = oSe(t), u = a, d;
if (c <= l) {
for (; u > l;) u -= 360;
for (; u < c;) u += 360;
@@ -54716,7 +54967,7 @@ var zW = Math.PI / 180, BW = (e) => e * Math.PI / 180, Jxe = (e) => e * 180 / Ma
}
return d ? RW(RW({}, t), {}, {
radius: i,
- angle: $xe(u, t)
+ angle: sSe(u, t)
}) : null;
};
//#endregion
@@ -54734,7 +54985,7 @@ function HW(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Sector.js
-var tSe, nSe, rSe, iSe, aSe, oSe, sSe;
+var lSe, uSe, dSe, fSe, pSe, mSe, hSe;
function UW() {
return UW = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -54747,7 +54998,7 @@ function UW() {
function WW(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var cSe = (e, t) => nR(t - e) * Math.min(Math.abs(t - e), 359.999), GW = (e) => {
+var gSe = (e, t) => rR(t - e) * Math.min(Math.abs(t - e), 359.999), GW = (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) / zW, d = c ? i : i + a * u, f = VW(t, n, l, d), p = VW(t, n, r, d), m = c ? i - a * u : i;
return {
center: f,
@@ -54756,7 +55007,7 @@ var cSe = (e, t) => nR(t - e) * Math.min(Math.abs(t - e), 359.999), GW = (e) =>
theta: u
};
}, KW = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = cSe(a, o), c = a + s, l = VW(t, n, i, a), u = VW(t, n, i, c), d = tR(tSe ||= WW([
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = gSe(a, o), c = a + s, l = VW(t, n, i, a), u = VW(t, n, i, c), d = nR(lSe ||= WW([
"M ",
",",
"\n A ",
@@ -54769,7 +55020,7 @@ var cSe = (e, t) => nR(t - e) * Math.min(Math.abs(t - e), 359.999), GW = (e) =>
]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);
if (r > 0) {
var f = VW(t, n, r, a), p = VW(t, n, r, c);
- d += tR(nSe ||= WW([
+ d += nR(uSe ||= WW([
"L ",
",",
"\n A ",
@@ -54780,14 +55031,14 @@ var cSe = (e, t) => nR(t - e) * Math.min(Math.abs(t - e), 359.999), GW = (e) =>
",",
" Z"
]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);
- } else d += tR(rSe ||= WW([
+ } else d += nR(dSe ||= WW([
"L ",
",",
" Z"
]), t, n);
return d;
-}, lSe = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = nR(l - c), { circleTangency: d, lineTangency: f, theta: p } = GW({
+}, _Se = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = rR(l - c), { circleTangency: d, lineTangency: f, theta: p } = GW({
cx: t,
cy: n,
radius: i,
@@ -54804,7 +55055,7 @@ var cSe = (e, t) => nR(t - e) * Math.min(Math.abs(t - e), 359.999), GW = (e) =>
cornerRadius: a,
cornerIsExternal: s
}), _ = s ? Math.abs(c - l) : Math.abs(c - l) - p - g;
- if (_ < 0) return o ? tR(iSe ||= WW([
+ if (_ < 0) return o ? nR(fSe ||= WW([
"M ",
",",
"\n a",
@@ -54822,7 +55073,7 @@ var cSe = (e, t) => nR(t - e) * Math.min(Math.abs(t - e), 359.999), GW = (e) =>
startAngle: c,
endAngle: l
});
- var v = tR(aSe ||= WW([
+ var v = nR(pSe ||= WW([
"M ",
",",
"\n A",
@@ -54864,7 +55115,7 @@ var cSe = (e, t) => nR(t - e) * Math.min(Math.abs(t - e), 359.999), GW = (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 += tR(oSe ||= WW([
+ v += nR(mSe ||= WW([
"L",
",",
"\n A",
@@ -54885,13 +55136,13 @@ var cSe = (e, t) => nR(t - e) * Math.min(Math.abs(t - e), 359.999), GW = (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 += tR(sSe ||= WW([
+ } else v += nR(hSe ||= WW([
"L",
",",
"Z"
]), t, n);
return v;
-}, uSe = {
+}, vSe = {
cx: 0,
cy: 0,
innerRadius: 0,
@@ -54902,9 +55153,9 @@ var cSe = (e, t) => nR(t - e) * Math.min(Math.abs(t - e), 359.999), GW = (e) =>
forceCornerRadius: !1,
cornerIsExternal: !1
}, qW = (e) => {
- var t = wR(e, uSe), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
+ var t = TR(e, vSe), { 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 = Mu("recharts-sector", d), p = a - i, m = sR(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? lSe({
+ var f = Mu("recharts-sector", d), p = a - i, m = cR(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? _Se({
cx: n,
cy: r,
innerRadius: i,
@@ -54922,14 +55173,14 @@ var cSe = (e, t) => nR(t - e) * Math.min(Math.abs(t - e), 359.999), GW = (e) =>
startAngle: l,
endAngle: u
});
- return /*#__PURE__*/ R.createElement("path", UW({}, XI(t), {
+ return /*#__PURE__*/ R.createElement("path", UW({}, ZI(t), {
className: f,
d: h
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js
-function dSe(e, t, n) {
+function ySe(e, t, n) {
if (e === "horizontal") return [{
x: t.x,
y: n.top
@@ -54944,7 +55195,7 @@ function dSe(e, t, n) {
x: n.left + n.width,
y: t.y
}];
- if (bR(t)) {
+ if (xR(t)) {
if (e === "centric") {
var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = VW(r, i, a, s), l = VW(r, i, o, s);
return [{
@@ -54960,18 +55211,18 @@ function dSe(e, t, n) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs
-function fSe(e) {
- return XL(e) ? NaN : Number(e);
+function bSe(e) {
+ return ZL(e) ? NaN : Number(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs
function JW(e) {
- return e ? (e = fSe(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
+ return e ? (e = bSe(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 YW(e, t, n) {
- n && typeof n != "number" && rz(e, t, n) && (t = n = void 0), e = JW(e), t === void 0 ? (t = e, e = 0) : t = JW(t), n = n === void 0 ? e < t ? 1 : -1 : JW(n);
+ n && typeof n != "number" && iz(e, t, n) && (t = n = void 0), e = JW(e), t === void 0 ? (t = e, e = 0) : t = JW(t), n = n === void 0 ? e < t ? 1 : -1 : JW(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;
@@ -54992,7 +55243,7 @@ var XW = (e) => e.chartData, ZW = $([XW], (e) => {
function eG(e) {
if (Array.isArray(e) && e.length === 2) {
var [t, n] = e;
- if (dV(t) && dV(n)) return !0;
+ if (fV(t) && fV(n)) return !0;
}
return !1;
}
@@ -55002,15 +55253,15 @@ function tG(e, t, n) {
function nG(e, t) {
if (t && typeof e != "function" && Array.isArray(e) && e.length === 2) {
var [n, r] = e, i, a;
- if (dV(n)) i = n;
+ if (fV(n)) i = n;
else if (typeof n == "function") return;
- if (dV(r)) a = r;
+ if (fV(r)) a = r;
else if (typeof r == "function") return;
var o = [i, a];
if (eG(o)) return o;
}
}
-function pSe(e, t, n) {
+function xSe(e, t, n) {
if (!(!n && t == null)) {
if (typeof e == "function" && t != null) try {
var r = e(t, n);
@@ -55023,8 +55274,8 @@ function pSe(e, t, n) {
else if (typeof i == "function") try {
t != null && (o = i(t?.[0]));
} catch {}
- else if (typeof i == "string" && wV.test(i)) {
- var c = wV.exec(i);
+ else if (typeof i == "string" && TV.test(i)) {
+ var c = TV.exec(i);
if (c == null || c[1] == null || t == null) o = void 0;
else {
var l = +c[1];
@@ -55036,8 +55287,8 @@ function pSe(e, t, n) {
else if (typeof a == "function") try {
t != null && (s = a(t?.[1]));
} catch {}
- else if (typeof a == "string" && TV.test(a)) {
- var u = TV.exec(a);
+ else if (typeof a == "string" && EV.test(a)) {
+ var u = EV.exec(a);
if (u == null || u[1] == null || t == null) s = void 0;
else {
var d = +u[1];
@@ -55457,7 +55708,7 @@ var oG = (e) => {
}
var u = r[c] ?? 1, d = new rG.default(u).mul(o);
return t ? d : new rG.default(Math.ceil(d.toNumber()));
-}, mSe = (e, t, n) => {
+}, SSe = (e, t, n) => {
var r = new rG.default(1), i = new rG.default(e);
if (!i.isint() && n) {
var a = Math.abs(e);
@@ -55486,7 +55737,7 @@ var oG = (e) => {
var l = c === Infinity ? [s, ...Array(r - 1).fill(Infinity)] : [...Array(r - 1).fill(-Infinity), c];
return t > n ? l.reverse() : l;
}
- if (s === c) return mSe(s, r, i);
+ if (s === c) return SSe(s, r, i);
var { step: u, tickMin: d, tickMax: f } = lG(s, c, o, i, 0, a === "snap125" ? cG : sG), p = aG(d, f.add(new rG.default(.1).mul(u)), u);
return t > n ? p.reverse() : p;
}, dG = function(e, t) {
@@ -55495,7 +55746,7 @@ var oG = (e) => {
if (o === s) return [o];
var c = a === "snap125" ? cG : sG, l = Math.max(t, 2), u = c(new rG.default(s).sub(o).div(l - 1), i, 0), d = [...aG(new rG.default(o), new rG.default(s), u), s];
return i === !1 && (d = d.map((e) => Math.round(e))), n > r ? d.reverse() : d;
-}, fG = (e) => e.rootProps.maxBarSize, pG = (e) => e.rootProps.barGap, mG = (e) => e.rootProps.barCategoryGap, hG = (e) => e.rootProps.barSize, gG = (e) => e.rootProps.stackOffset, _G = (e) => e.rootProps.reverseStackOrder, vG = (e) => e.options.chartName, yG = (e) => e.rootProps.syncId, bG = (e) => e.rootProps.syncMethod, xG = (e) => e.options.eventEmitter, hSe = (e) => e.rootProps.baseValue, SG = {
+}, fG = (e) => e.rootProps.maxBarSize, pG = (e) => e.rootProps.barGap, mG = (e) => e.rootProps.barCategoryGap, hG = (e) => e.rootProps.barSize, gG = (e) => e.rootProps.stackOffset, _G = (e) => e.rootProps.reverseStackOrder, vG = (e) => e.options.chartName, yG = (e) => e.rootProps.syncId, bG = (e) => e.rootProps.syncMethod, xG = (e) => e.options.eventEmitter, CSe = (e) => e.rootProps.baseValue, SG = {
grid: -100,
barBackground: -50,
area: 100,
@@ -55557,7 +55808,7 @@ var oG = (e) => {
//#region node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.js
function EG(e, t, n) {
if (n !== "auto") return n;
- if (e != null) return gV(e, t) ? "category" : "number";
+ if (e != null) return _V(e, t) ? "category" : "number";
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/polarAxisSelectors.js
@@ -55575,26 +55826,26 @@ function OG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? DG(Object(n), !0).forEach(function(t) {
- gSe(e, t, n[t]);
+ wSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : DG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function gSe(e, t, n) {
- return (t = _Se(t)) in e ? Object.defineProperty(e, t, {
+function wSe(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 _Se(e) {
- var t = vSe(e, "string");
+function TSe(e) {
+ var t = ESe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function vSe(e, t) {
+function ESe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55640,45 +55891,45 @@ var kG = {
niceTicks: "auto"
}, jG = $([(e, t) => {
if (t != null) return e.polarAxis.angleAxis[t];
-}, fH], (e, t) => {
+}, yH], (e, t) => {
if (e != null) return e;
var n = EG(t, "angleAxis", kG.type) ?? "category";
return OG(OG({}, kG), {}, { type: n });
-}), MG = $([(e, t) => e.polarAxis.radiusAxis[t], fH], (e, t) => {
+}), MG = $([(e, t) => e.polarAxis.radiusAxis[t], yH], (e, t) => {
if (e != null) return e;
var n = EG(t, "radiusAxis", AG.type) ?? "category";
return OG(OG({}, AG), {}, { type: n });
}), NG = (e) => e.polarOptions, PG = $([
- kV,
AV,
- IV
-], Yxe), FG = $([NG, PG], (e, t) => {
- if (e != null) return sR(e.innerRadius, t, 0);
+ jV,
+ LV
+], rSe), FG = $([NG, PG], (e, t) => {
+ if (e != null) return cR(e.innerRadius, t, 0);
}), IG = $([NG, PG], (e, t) => {
- if (e != null) return sR(e.outerRadius, t, t * .8);
+ if (e != null) return cR(e.outerRadius, t, t * .8);
}), LG = $([NG], (e) => {
if (e == null) return [0, 0];
var { startAngle: t, endAngle: n } = e;
return [t, n];
-}), ySe = $([jG, LG], TG), RG = $([
+}), DSe = $([jG, LG], TG), RG = $([
PG,
FG,
IG
], (e, t, n) => {
if (e != null && t != null && n != null) return [t, n];
-}), bSe = $([MG, RG], TG), zG = $([
- lH,
+}), OSe = $([MG, RG], TG), zG = $([
+ gH,
NG,
FG,
IG,
- kV,
- AV
+ AV,
+ jV
], (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: sR(o, i, i / 2),
- cy: sR(s, a, a / 2),
+ cx: cR(o, i, i / 2),
+ cy: cR(s, a, a / 2),
innerRadius: n,
outerRadius: r,
startAngle: c,
@@ -55701,7 +55952,7 @@ function UG(e, t, n) {
if (t != null && t.length !== 0) {
var n = HG(e);
t.forEach((t, r) => {
- var s = a == null || i ? r : String(hV(t, a, null)), c = hV(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
+ var s = a == null || i ? r : String(gV(t, a, null)), c = gV(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
Object.assign(l, { [n]: c }), o.set(s, l);
});
}
@@ -55720,7 +55971,7 @@ var GG = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] &&
function KG(e, t) {
return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;
}
-function xSe(e, t) {
+function kSe(e, t) {
if (e.length === t.length) {
for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
return !0;
@@ -55730,7 +55981,7 @@ function xSe(e, t) {
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js
var qG = (e) => {
- var t = lH(e);
+ var t = gH(e);
return t === "horizontal" ? "xAxis" : t === "vertical" ? "yAxis" : t === "centric" ? "angleAxis" : "radiusAxis";
}, JG = (e) => e.tooltip.settings.axisId;
//#endregion
@@ -55782,7 +56033,7 @@ var XG = (e, t) => {
if (!eG(t)) {
for (var n, r, i = 0; i < t.length; i++) {
var a = t[i];
- dV(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
+ fV(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;
}
@@ -55799,7 +56050,7 @@ function ZG(e, t) {
//#region node_modules/d3-array/src/bisector.js
function QG(e) {
let t = e, n = e;
- e.length === 1 && (t = (t, n) => e(t) - n, n = SSe(e));
+ e.length === 1 && (t = (t, n) => e(t) - n, n = ASe(e));
function r(e, t, r, i) {
for (r ??= 0, i ??= e.length; r < i;) {
let a = r + i >>> 1;
@@ -55825,7 +56076,7 @@ function QG(e) {
right: i
};
}
-function SSe(e) {
+function ASe(e) {
return (t, n) => ZG(e(t), n);
}
//#endregion
@@ -55833,7 +56084,7 @@ function SSe(e) {
function $G(e) {
return e === null ? NaN : +e;
}
-function* CSe(e, t) {
+function* jSe(e, t) {
if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);
else {
let n = -1;
@@ -55847,7 +56098,7 @@ eK.left, QG($G).center;
//#endregion
//#region node_modules/internmap/src/index.js
var nK = class extends Map {
- constructor(e, t = ESe) {
+ constructor(e, t = PSe) {
if (super(), Object.defineProperties(this, {
_intern: { value: /* @__PURE__ */ new Map() },
_key: { value: t }
@@ -55860,25 +56111,25 @@ var nK = class extends Map {
return super.has(rK(this, e));
}
set(e, t) {
- return super.set(wSe(this, e), t);
+ return super.set(MSe(this, e), t);
}
delete(e) {
- return super.delete(TSe(this, e));
+ return super.delete(NSe(this, e));
}
};
function rK({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : n;
}
-function wSe({ _intern: e, _key: t }, n) {
+function MSe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : (e.set(r, n), n);
}
-function TSe({ _intern: e, _key: t }, n) {
+function NSe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) && (n = e.get(n), e.delete(r)), n;
}
-function ESe(e) {
+function PSe(e) {
return typeof e == "object" && e ? e.valueOf() : e;
}
//#endregion
@@ -55951,15 +56202,15 @@ function pK(e, t, n) {
}
//#endregion
//#region node_modules/d3-array/src/quantile.js
-function DSe(e, t, n) {
- if (e = Float64Array.from(CSe(e, n)), r = e.length) {
+function FSe(e, t, n) {
+ if (e = Float64Array.from(jSe(e, n)), r = e.length) {
if ((t = +t) <= 0 || r < 2) return dK(e);
if (t >= 1) return uK(e);
var r, i = (r - 1) * t, a = Math.floor(i), o = uK(fK(e, a).subarray(0, a + 1));
return o + (dK(e.subarray(a + 1)) - o) * (i - a);
}
}
-function OSe(e, t, n = $G) {
+function ISe(e, t, n = $G) {
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);
@@ -55969,7 +56220,7 @@ function OSe(e, t, n = $G) {
}
//#endregion
//#region node_modules/d3-array/src/range.js
-function kSe(e, t, n) {
+function LSe(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;
@@ -56041,7 +56292,7 @@ function yK() {
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 = kSe(e).map(function(e) {
+ var m = LSe(e).map(function(e) {
return f + a * e;
});
return n(d ? m.reverse() : m);
@@ -56076,7 +56327,7 @@ function bK(e) {
return bK(t());
}, e;
}
-function ASe() {
+function RSe() {
return bK(yK.apply(null, arguments).paddingInner(1));
}
//#endregion
@@ -56092,7 +56343,7 @@ function SK(e, t) {
//#endregion
//#region node_modules/d3-color/src/color.js
function CK() {}
-var wK = .7, TK = 1 / wK, EK = "\\s*([+-]?\\d+)\\s*", DK = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", OK = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", jSe = /^#([0-9a-f]{3,8})$/, MSe = RegExp(`^rgb\\(${EK},${EK},${EK}\\)$`), NSe = RegExp(`^rgb\\(${OK},${OK},${OK}\\)$`), PSe = RegExp(`^rgba\\(${EK},${EK},${EK},${DK}\\)$`), FSe = RegExp(`^rgba\\(${OK},${OK},${OK},${DK}\\)$`), ISe = RegExp(`^hsl\\(${DK},${OK},${OK}\\)$`), LSe = RegExp(`^hsla\\(${DK},${OK},${OK},${DK}\\)$`), kK = {
+var wK = .7, TK = 1 / wK, EK = "\\s*([+-]?\\d+)\\s*", DK = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", OK = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", zSe = /^#([0-9a-f]{3,8})$/, BSe = RegExp(`^rgb\\(${EK},${EK},${EK}\\)$`), VSe = RegExp(`^rgb\\(${OK},${OK},${OK}\\)$`), HSe = RegExp(`^rgba\\(${EK},${EK},${EK},${DK}\\)$`), USe = RegExp(`^rgba\\(${OK},${OK},${OK},${DK}\\)$`), WSe = RegExp(`^hsl\\(${DK},${OK},${OK}\\)$`), GSe = RegExp(`^hsla\\(${DK},${OK},${OK},${DK}\\)$`), kK = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
@@ -56251,18 +56502,18 @@ xK(CK, MK, {
},
hex: AK,
formatHex: AK,
- formatHex8: RSe,
- formatHsl: zSe,
+ formatHex8: KSe,
+ formatHsl: qSe,
formatRgb: jK,
toString: jK
});
function AK() {
return this.rgb().formatHex();
}
-function RSe() {
+function KSe() {
return this.rgb().formatHex8();
}
-function zSe() {
+function qSe() {
return UK(this).formatHsl();
}
function jK() {
@@ -56270,7 +56521,7 @@ function jK() {
}
function MK(e) {
var t, n;
- return e = (e + "").trim().toLowerCase(), (t = jSe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? NK(t) : n === 3 ? new IK(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? PK(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? PK(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 = MSe.exec(e)) ? new IK(t[1], t[2], t[3], 1) : (t = NSe.exec(e)) ? new IK(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = PSe.exec(e)) ? PK(t[1], t[2], t[3], t[4]) : (t = FSe.exec(e)) ? PK(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = ISe.exec(e)) ? HK(t[1], t[2] / 100, t[3] / 100, 1) : (t = LSe.exec(e)) ? HK(t[1], t[2] / 100, t[3] / 100, t[4]) : kK.hasOwnProperty(e) ? NK(kK[e]) : e === "transparent" ? new IK(NaN, NaN, NaN, 0) : null;
+ return e = (e + "").trim().toLowerCase(), (t = zSe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? NK(t) : n === 3 ? new IK(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? PK(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? PK(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 = BSe.exec(e)) ? new IK(t[1], t[2], t[3], 1) : (t = VSe.exec(e)) ? new IK(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = HSe.exec(e)) ? PK(t[1], t[2], t[3], t[4]) : (t = USe.exec(e)) ? PK(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = WSe.exec(e)) ? HK(t[1], t[2] / 100, t[3] / 100, 1) : (t = GSe.exec(e)) ? HK(t[1], t[2] / 100, t[3] / 100, t[4]) : kK.hasOwnProperty(e) ? NK(kK[e]) : e === "transparent" ? new IK(NaN, NaN, NaN, 0) : null;
}
function NK(e) {
return new IK(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
@@ -56278,11 +56529,11 @@ function NK(e) {
function PK(e, t, n, r) {
return r <= 0 && (e = t = n = NaN), new IK(e, t, n, r);
}
-function BSe(e) {
+function JSe(e) {
return e instanceof CK || (e = MK(e)), e ? (e = e.rgb(), new IK(e.r, e.g, e.b, e.opacity)) : new IK();
}
function FK(e, t, n, r) {
- return arguments.length === 1 ? BSe(e) : new IK(e, t, n, r ?? 1);
+ return arguments.length === 1 ? JSe(e) : new IK(e, t, n, r ?? 1);
}
function IK(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
@@ -56305,14 +56556,14 @@ xK(IK, FK, SK(CK, {
},
hex: LK,
formatHex: LK,
- formatHex8: VSe,
+ formatHex8: YSe,
formatRgb: RK,
toString: RK
}));
function LK() {
return `#${VK(this.r)}${VK(this.g)}${VK(this.b)}`;
}
-function VSe() {
+function YSe() {
return `#${VK(this.r)}${VK(this.g)}${VK(this.b)}${VK((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
}
function RK() {
@@ -56339,13 +56590,13 @@ function UK(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 WK(o, s, c, e.opacity);
}
-function HSe(e, t, n, r) {
+function XSe(e, t, n, r) {
return arguments.length === 1 ? UK(e) : new WK(e, t, n, r ?? 1);
}
function WK(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
}
-xK(WK, HSe, SK(CK, {
+xK(WK, XSe, SK(CK, {
brighter(e) {
return e = e == null ? TK : TK ** +e, new WK(this.h, this.s, this.l * e, this.opacity);
},
@@ -56381,29 +56632,29 @@ function qK(e, t, n) {
var JK = (e) => () => e;
//#endregion
//#region node_modules/d3-interpolate/src/color.js
-function USe(e, t) {
+function ZSe(e, t) {
return function(n) {
return e + n * t;
};
}
-function WSe(e, t, n) {
+function QSe(e, t, n) {
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
return (e + r * t) ** +n;
};
}
-function GSe(e) {
+function $Se(e) {
return (e = +e) == 1 ? YK : function(t, n) {
- return n - t ? WSe(t, n, e) : JK(isNaN(t) ? n : t);
+ return n - t ? QSe(t, n, e) : JK(isNaN(t) ? n : t);
};
}
function YK(e, t) {
var n = t - e;
- return n ? USe(e, n) : JK(isNaN(e) ? t : e);
+ return n ? ZSe(e, n) : JK(isNaN(e) ? t : e);
}
//#endregion
//#region node_modules/d3-interpolate/src/rgb.js
var XK = (function e(t) {
- var n = GSe(t);
+ var n = $Se(t);
function r(e, t) {
var r = n((e = FK(e)).r, (t = FK(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = YK(e.opacity, t.opacity);
return function(t) {
@@ -56414,7 +56665,7 @@ var XK = (function e(t) {
})(1);
//#endregion
//#region node_modules/d3-interpolate/src/numberArray.js
-function KSe(e, t) {
+function eCe(e, t) {
t ||= [];
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
return function(a) {
@@ -56422,12 +56673,12 @@ function KSe(e, t) {
return r;
};
}
-function qSe(e) {
+function tCe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/d3-interpolate/src/array.js
-function JSe(e, t) {
+function nCe(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] = eq(e[o], t[o]);
for (; o < n; ++o) a[o] = t[o];
@@ -56438,7 +56689,7 @@ function JSe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/date.js
-function YSe(e, t) {
+function rCe(e, t) {
var n = /* @__PURE__ */ new Date();
return e = +e, t = +t, function(r) {
return n.setTime(e * (1 - r) + t * r), n;
@@ -56453,7 +56704,7 @@ function ZK(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/object.js
-function XSe(e, t) {
+function iCe(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] = eq(e[i], t[i]) : r[i] = t[i];
return function(e) {
@@ -56464,23 +56715,23 @@ function XSe(e, t) {
//#endregion
//#region node_modules/d3-interpolate/src/string.js
var QK = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, $K = new RegExp(QK.source, "g");
-function ZSe(e) {
+function aCe(e) {
return function() {
return e;
};
}
-function QSe(e) {
+function oCe(e) {
return function(t) {
return e(t) + "";
};
}
-function $Se(e, t) {
+function sCe(e, t) {
var n = QK.lastIndex = $K.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
for (e += "", t += ""; (r = QK.exec(e)) && (i = $K.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: ZK(r, i)
})), n = $K.lastIndex;
- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? QSe(c[0].x) : ZSe(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] ? oCe(c[0].x) : aCe(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("");
});
@@ -56489,7 +56740,7 @@ function $Se(e, t) {
//#region node_modules/d3-interpolate/src/value.js
function eq(e, t) {
var n = typeof t, r;
- return t == null || n === "boolean" ? JK(t) : (n === "number" ? ZK : n === "string" ? (r = MK(t)) ? (t = r, XK) : $Se : t instanceof MK ? XK : t instanceof Date ? YSe : qSe(t) ? KSe : Array.isArray(t) ? JSe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? XSe : ZK)(e, t);
+ return t == null || n === "boolean" ? JK(t) : (n === "number" ? ZK : n === "string" ? (r = MK(t)) ? (t = r, XK) : sCe : t instanceof MK ? XK : t instanceof Date ? rCe : tCe(t) ? eCe : Array.isArray(t) ? nCe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? iCe : ZK)(e, t);
}
//#endregion
//#region node_modules/d3-interpolate/src/round.js
@@ -56500,7 +56751,7 @@ function tq(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/piecewise.js
-function eCe(e, t) {
+function cCe(e, t) {
t === void 0 && (t = e, e = eq);
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) {
@@ -56510,7 +56761,7 @@ function eCe(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/constant.js
-function tCe(e) {
+function lCe(e) {
return function() {
return e;
};
@@ -56529,21 +56780,21 @@ function iq(e) {
function aq(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t;
- } : tCe(isNaN(t) ? NaN : .5);
+ } : lCe(isNaN(t) ? NaN : .5);
}
-function nCe(e, t) {
+function uCe(e, t) {
var n;
return e > t && (n = e, e = t, t = n), function(n) {
return Math.max(e, Math.min(t, n));
};
}
-function rCe(e, t, n) {
+function dCe(e, t, n) {
var r = e[0], i = e[1], a = t[0], o = t[1];
return i < r ? (r = aq(i, r), a = n(o, a)) : (r = aq(r, i), a = n(a, o)), function(e) {
return a(r(e));
};
}
-function iCe(e, t, n) {
+function fCe(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] = aq(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
return function(t) {
@@ -56558,7 +56809,7 @@ function sq() {
var e = rq, t = rq, n = eq, r, i, a, o = iq, s, c, l;
function u() {
var n = Math.min(e.length, t.length);
- return o !== iq && (o = nCe(e[0], e[n - 1])), s = n > 2 ? iCe : rCe, c = l = null, d;
+ return o !== iq && (o = uCe(e[0], e[n - 1])), s = n > 2 ? fCe : dCe, c = l = null, d;
}
function d(i) {
return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));
@@ -56586,7 +56837,7 @@ function cq() {
}
//#endregion
//#region node_modules/d3-format/src/formatDecimal.js
-function aCe(e) {
+function pCe(e) {
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
function lq(e, t) {
@@ -56601,7 +56852,7 @@ function uq(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatGroup.js
-function oCe(e, t) {
+function mCe(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);
@@ -56609,7 +56860,7 @@ function oCe(e, t) {
}
//#endregion
//#region node_modules/d3-format/src/formatNumerals.js
-function sCe(e) {
+function hCe(e) {
return function(t) {
return t.replace(/[0-9]/g, function(t) {
return e[+t];
@@ -56618,9 +56869,9 @@ function sCe(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatSpecifier.js
-var cCe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
+var gCe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
function dq(e) {
- if (!(t = cCe.exec(e))) throw Error("invalid format: " + e);
+ if (!(t = gCe.exec(e))) throw Error("invalid format: " + e);
var t;
return new fq({
fill: t[1],
@@ -56644,7 +56895,7 @@ fq.prototype.toString = function() {
};
//#endregion
//#region node_modules/d3-format/src/formatTrim.js
-function lCe(e) {
+function _Ce(e) {
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
case ".":
r = i = n;
@@ -56661,7 +56912,7 @@ function lCe(e) {
//#endregion
//#region node_modules/d3-format/src/formatPrefixAuto.js
var pq;
-function uCe(e, t) {
+function vCe(e, t) {
var n = lq(e, t);
if (!n) return pq = void 0, e.toPrecision(t);
var r = n[0], i = n[1], a = i - (pq = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
@@ -56681,14 +56932,14 @@ var hq = {
"%": (e, t) => (e * 100).toFixed(t),
b: (e) => Math.round(e).toString(2),
c: (e) => e + "",
- d: aCe,
+ d: pCe,
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) => mq(e * 100, t),
r: mq,
- s: uCe,
+ s: vCe,
X: (e) => Math.round(e).toString(16).toUpperCase(),
x: (e) => Math.round(e).toString(16)
};
@@ -56718,8 +56969,8 @@ var _q = Array.prototype.map, vq = [
"Z",
"Y"
];
-function dCe(e) {
- var t = e.grouping === void 0 || e.thousands === void 0 ? gq : oCe(_q.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 ? gq : sCe(_q.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 yCe(e) {
+ var t = e.grouping === void 0 || e.thousands === void 0 ? gq : mCe(_q.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 ? gq : hCe(_q.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 = dq(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;
@@ -56732,7 +56983,7 @@ function dCe(e) {
else {
e = +e;
var w = e < 0 || 1 / e < 0;
- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = lCe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && pq !== void 0 ? vq[8 + pq / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
+ if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = _Ce(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && pq !== void 0 ? vq[8 + pq / 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;
@@ -56773,27 +57024,27 @@ function dCe(e) {
//#endregion
//#region node_modules/d3-format/src/defaultLocale.js
var yq, bq, xq;
-fCe({
+bCe({
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
-function fCe(e) {
- return yq = dCe(e), bq = yq.format, xq = yq.formatPrefix, yq;
+function bCe(e) {
+ return yq = yCe(e), bq = yq.format, xq = yq.formatPrefix, yq;
}
//#endregion
//#region node_modules/d3-format/src/precisionFixed.js
-function pCe(e) {
+function xCe(e) {
return Math.max(0, -uq(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionPrefix.js
-function mCe(e, t) {
+function SCe(e, t) {
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(uq(t) / 3))) * 3 - uq(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionRound.js
-function hCe(e, t) {
+function CCe(e, t) {
return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, uq(t) - uq(e)) + 1;
}
//#endregion
@@ -56803,16 +57054,16 @@ function Sq(e, t, n, r) {
switch (r = dq(r ?? ",f"), r.type) {
case "s":
var o = Math.max(Math.abs(e), Math.abs(t));
- return r.precision == null && !isNaN(a = mCe(i, o)) && (r.precision = a), xq(r, o);
+ return r.precision == null && !isNaN(a = SCe(i, o)) && (r.precision = a), xq(r, o);
case "":
case "e":
case "g":
case "p":
case "r":
- r.precision == null && !isNaN(a = hCe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
+ r.precision == null && !isNaN(a = CCe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
break;
case "f":
- case "%": r.precision == null && !isNaN(a = pCe(i)) && (r.precision = a - (r.type === "%") * 2);
+ case "%": r.precision == null && !isNaN(a = xCe(i)) && (r.precision = a - (r.type === "%") * 2);
}
return bq(r);
}
@@ -56875,19 +57126,19 @@ function Dq(e) {
function Oq(e) {
return Math.exp(e);
}
-function gCe(e) {
+function wCe(e) {
return -Math.log(-e);
}
-function _Ce(e) {
+function TCe(e) {
return -Math.exp(-e);
}
-function vCe(e) {
+function ECe(e) {
return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
}
-function yCe(e) {
- return e === 10 ? vCe : e === Math.E ? Math.exp : (t) => e ** +t;
+function DCe(e) {
+ return e === 10 ? ECe : e === Math.E ? Math.exp : (t) => e ** +t;
}
-function bCe(e) {
+function OCe(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 kq(e) {
@@ -56896,7 +57147,7 @@ function kq(e) {
function Aq(e) {
let t = e(Dq, Oq), n = t.domain, r = 10, i, a;
function o() {
- return i = bCe(r), a = yCe(r), n()[0] < 0 ? (i = kq(i), a = kq(a), e(gCe, _Ce)) : e(Dq, Oq), t;
+ return i = OCe(r), a = DCe(r), n()[0] < 0 ? (i = kq(i), a = kq(a), e(wCe, TCe)) : e(Dq, Oq), t;
}
return t.base = function(e) {
return arguments.length ? (r = +e, o()) : r;
@@ -56966,16 +57217,16 @@ function Iq(e) {
return t < 0 ? -((-t) ** +e) : t ** +e;
};
}
-function xCe(e) {
+function kCe(e) {
return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);
}
-function SCe(e) {
+function ACe(e) {
return e < 0 ? -e * e : e * e;
}
function Lq(e) {
var t = e(iq, iq), n = 1;
function r() {
- return n === 1 ? e(iq, iq) : n === .5 ? e(xCe, SCe) : e(Iq(n), Iq(1 / n));
+ return n === 1 ? e(iq, iq) : n === .5 ? e(kCe, ACe) : e(Iq(n), Iq(1 / n));
}
return t.exponent = function(e) {
return arguments.length ? (n = +e, r()) : n;
@@ -56987,7 +57238,7 @@ function Rq() {
return oq(e, Rq()).exponent(e.exponent());
}, hK.apply(e, arguments), e;
}
-function CCe() {
+function jCe() {
return Rq.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -56995,13 +57246,13 @@ function CCe() {
function zq(e) {
return Math.sign(e) * e * e;
}
-function wCe(e) {
+function MCe(e) {
return Math.sign(e) * Math.sqrt(Math.abs(e));
}
function Bq() {
var e = cq(), t = [0, 1], n = !1, r;
function i(t) {
- var i = wCe(e(t));
+ var i = MCe(e(t));
return isNaN(i) ? r : n ? Math.round(i) : i;
}
return i.invert = function(t) {
@@ -57028,7 +57279,7 @@ function Vq() {
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] = OSe(e, r / i);
+ for (n = Array(i - 1); ++r < i;) n[r - 1] = ISe(e, r / i);
return a;
}
function a(e) {
@@ -57197,8 +57448,8 @@ function lJ(e) {
e.setDate(e.getDate() + t * 7);
}, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * Yq) / Qq);
}
-var uJ = lJ(0), dJ = lJ(1), TCe = lJ(2), ECe = lJ(3), fJ = lJ(4), DCe = lJ(5), OCe = lJ(6);
-uJ.range, dJ.range, TCe.range, ECe.range, fJ.range, DCe.range, OCe.range;
+var uJ = lJ(0), dJ = lJ(1), NCe = lJ(2), PCe = lJ(3), fJ = lJ(4), FCe = lJ(5), ICe = lJ(6);
+uJ.range, dJ.range, NCe.range, PCe.range, fJ.range, FCe.range, ICe.range;
function pJ(e) {
return Kq((t) => {
t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
@@ -57206,8 +57457,8 @@ function pJ(e) {
e.setUTCDate(e.getUTCDate() + t * 7);
}, (e, t) => (t - e) / Qq);
}
-var mJ = pJ(0), hJ = pJ(1), kCe = pJ(2), ACe = pJ(3), gJ = pJ(4), jCe = pJ(5), MCe = pJ(6);
-mJ.range, hJ.range, kCe.range, ACe.range, gJ.range, jCe.range, MCe.range;
+var mJ = pJ(0), hJ = pJ(1), LCe = pJ(2), RCe = pJ(3), gJ = pJ(4), zCe = pJ(5), BCe = pJ(6);
+mJ.range, hJ.range, LCe.range, RCe.range, gJ.range, zCe.range, BCe.range;
//#endregion
//#region node_modules/d3-time/src/month.js
var _J = Kq((e) => {
@@ -57354,7 +57605,7 @@ function xJ(e, t, n, r, i, a) {
}
return [s, c];
}
-var [NCe, PCe] = xJ(bJ, vJ, mJ, cJ, aJ, rJ), [FCe, ICe] = xJ(yJ, _J, uJ, oJ, iJ, nJ);
+var [VCe, HCe] = xJ(bJ, vJ, mJ, cJ, aJ, rJ), [UCe, WCe] = xJ(yJ, _J, uJ, oJ, iJ, nJ);
//#endregion
//#region node_modules/d3-time-format/src/locale.js
function SJ(e) {
@@ -57382,7 +57633,7 @@ function wJ(e, t, n) {
L: 0
};
}
-function LCe(e) {
+function GCe(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 = OJ(i), u = kJ(i), d = OJ(a), f = kJ(a), p = OJ(o), m = kJ(o), h = OJ(s), g = kJ(s), _ = OJ(c), v = kJ(c), y = {
a: N,
A: P,
@@ -57391,30 +57642,30 @@ function LCe(e) {
c: null,
d: PJ,
e: PJ,
- f: owe,
- g: gwe,
- G: vwe,
- H: rwe,
- I: iwe,
- j: awe,
+ f: mwe,
+ g: wwe,
+ G: Ewe,
+ H: dwe,
+ I: fwe,
+ j: pwe,
L: FJ,
- m: swe,
- M: cwe,
+ m: hwe,
+ M: gwe,
p: I,
q: te,
Q: VJ,
s: HJ,
- S: lwe,
- u: uwe,
- U: dwe,
- V: fwe,
- w: pwe,
- W: mwe,
+ S: _we,
+ u: vwe,
+ U: ywe,
+ V: bwe,
+ w: xwe,
+ W: Swe,
x: null,
X: null,
- y: hwe,
- Y: _we,
- Z: ywe,
+ y: Cwe,
+ Y: Twe,
+ Z: Dwe,
"%": BJ
}, b = {
a: ne,
@@ -57424,30 +57675,30 @@ function LCe(e) {
c: null,
d: LJ,
e: LJ,
- f: Cwe,
- g: Nwe,
- G: Fwe,
- H: bwe,
- I: xwe,
- j: Swe,
+ f: jwe,
+ g: Vwe,
+ G: Uwe,
+ H: Owe,
+ I: kwe,
+ j: Awe,
L: RJ,
- m: wwe,
- M: Twe,
+ m: Mwe,
+ M: Nwe,
p: oe,
q: se,
Q: VJ,
s: HJ,
- S: Ewe,
- u: Dwe,
- U: Owe,
- V: kwe,
- w: Awe,
- W: jwe,
+ S: Pwe,
+ u: Fwe,
+ U: Iwe,
+ V: Lwe,
+ w: Rwe,
+ W: zwe,
x: null,
X: null,
- y: Mwe,
- Y: Pwe,
- Z: Iwe,
+ y: Bwe,
+ Y: Hwe,
+ Z: Wwe,
"%": BJ
}, x = {
a: E,
@@ -57457,31 +57708,31 @@ function LCe(e) {
c: A,
d: MJ,
e: MJ,
- f: $Ce,
+ f: swe,
g: jJ,
G: AJ,
H: NJ,
I: NJ,
- j: YCe,
- L: QCe,
- m: JCe,
- M: XCe,
+ j: rwe,
+ L: owe,
+ m: nwe,
+ M: iwe,
p: T,
- q: qCe,
- Q: twe,
- s: nwe,
- S: ZCe,
- u: HCe,
- U: UCe,
- V: WCe,
- w: VCe,
- W: GCe,
+ q: twe,
+ Q: lwe,
+ s: uwe,
+ S: awe,
+ u: XCe,
+ U: ZCe,
+ V: QCe,
+ w: YCe,
+ W: $Ce,
x: j,
X: M,
y: jJ,
Y: AJ,
- Z: KCe,
- "%": ewe
+ Z: ewe,
+ "%": cwe
};
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) {
@@ -57609,37 +57860,37 @@ var TJ = {
"-": "",
_: " ",
0: "0"
-}, EJ = /^\s*\d+/, RCe = /^%/, zCe = /[\\^$*+?|[\]().{}]/g;
+}, EJ = /^\s*\d+/, KCe = /^%/, qCe = /[\\^$*+?|[\]().{}]/g;
function DJ(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 BCe(e) {
- return e.replace(zCe, "\\$&");
+function JCe(e) {
+ return e.replace(qCe, "\\$&");
}
function OJ(e) {
- return RegExp("^(?:" + e.map(BCe).join("|") + ")", "i");
+ return RegExp("^(?:" + e.map(JCe).join("|") + ")", "i");
}
function kJ(e) {
return new Map(e.map((e, t) => [e.toLowerCase(), t]));
}
-function VCe(e, t, n) {
+function YCe(e, t, n) {
var r = EJ.exec(t.slice(n, n + 1));
return r ? (e.w = +r[0], n + r[0].length) : -1;
}
-function HCe(e, t, n) {
+function XCe(e, t, n) {
var r = EJ.exec(t.slice(n, n + 1));
return r ? (e.u = +r[0], n + r[0].length) : -1;
}
-function UCe(e, t, n) {
+function ZCe(e, t, n) {
var r = EJ.exec(t.slice(n, n + 2));
return r ? (e.U = +r[0], n + r[0].length) : -1;
}
-function WCe(e, t, n) {
+function QCe(e, t, n) {
var r = EJ.exec(t.slice(n, n + 2));
return r ? (e.V = +r[0], n + r[0].length) : -1;
}
-function GCe(e, t, n) {
+function $Ce(e, t, n) {
var r = EJ.exec(t.slice(n, n + 2));
return r ? (e.W = +r[0], n + r[0].length) : -1;
}
@@ -57651,15 +57902,15 @@ function jJ(e, t, n) {
var r = EJ.exec(t.slice(n, n + 2));
return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
}
-function KCe(e, t, n) {
+function ewe(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 qCe(e, t, n) {
+function twe(e, t, n) {
var r = EJ.exec(t.slice(n, n + 1));
return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
}
-function JCe(e, t, n) {
+function nwe(e, t, n) {
var r = EJ.exec(t.slice(n, n + 2));
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
}
@@ -57667,7 +57918,7 @@ function MJ(e, t, n) {
var r = EJ.exec(t.slice(n, n + 2));
return r ? (e.d = +r[0], n + r[0].length) : -1;
}
-function YCe(e, t, n) {
+function rwe(e, t, n) {
var r = EJ.exec(t.slice(n, n + 3));
return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
}
@@ -57675,159 +57926,159 @@ function NJ(e, t, n) {
var r = EJ.exec(t.slice(n, n + 2));
return r ? (e.H = +r[0], n + r[0].length) : -1;
}
-function XCe(e, t, n) {
+function iwe(e, t, n) {
var r = EJ.exec(t.slice(n, n + 2));
return r ? (e.M = +r[0], n + r[0].length) : -1;
}
-function ZCe(e, t, n) {
+function awe(e, t, n) {
var r = EJ.exec(t.slice(n, n + 2));
return r ? (e.S = +r[0], n + r[0].length) : -1;
}
-function QCe(e, t, n) {
+function owe(e, t, n) {
var r = EJ.exec(t.slice(n, n + 3));
return r ? (e.L = +r[0], n + r[0].length) : -1;
}
-function $Ce(e, t, n) {
+function swe(e, t, n) {
var r = EJ.exec(t.slice(n, n + 6));
return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
}
-function ewe(e, t, n) {
- var r = RCe.exec(t.slice(n, n + 1));
+function cwe(e, t, n) {
+ var r = KCe.exec(t.slice(n, n + 1));
return r ? n + r[0].length : -1;
}
-function twe(e, t, n) {
+function lwe(e, t, n) {
var r = EJ.exec(t.slice(n));
return r ? (e.Q = +r[0], n + r[0].length) : -1;
}
-function nwe(e, t, n) {
+function uwe(e, t, n) {
var r = EJ.exec(t.slice(n));
return r ? (e.s = +r[0], n + r[0].length) : -1;
}
function PJ(e, t) {
return DJ(e.getDate(), t, 2);
}
-function rwe(e, t) {
+function dwe(e, t) {
return DJ(e.getHours(), t, 2);
}
-function iwe(e, t) {
+function fwe(e, t) {
return DJ(e.getHours() % 12 || 12, t, 2);
}
-function awe(e, t) {
+function pwe(e, t) {
return DJ(1 + oJ.count(yJ(e), e), t, 3);
}
function FJ(e, t) {
return DJ(e.getMilliseconds(), t, 3);
}
-function owe(e, t) {
+function mwe(e, t) {
return FJ(e, t) + "000";
}
-function swe(e, t) {
+function hwe(e, t) {
return DJ(e.getMonth() + 1, t, 2);
}
-function cwe(e, t) {
+function gwe(e, t) {
return DJ(e.getMinutes(), t, 2);
}
-function lwe(e, t) {
+function _we(e, t) {
return DJ(e.getSeconds(), t, 2);
}
-function uwe(e) {
+function vwe(e) {
var t = e.getDay();
return t === 0 ? 7 : t;
}
-function dwe(e, t) {
+function ywe(e, t) {
return DJ(uJ.count(yJ(e) - 1, e), t, 2);
}
function IJ(e) {
var t = e.getDay();
return t >= 4 || t === 0 ? fJ(e) : fJ.ceil(e);
}
-function fwe(e, t) {
+function bwe(e, t) {
return e = IJ(e), DJ(fJ.count(yJ(e), e) + (yJ(e).getDay() === 4), t, 2);
}
-function pwe(e) {
+function xwe(e) {
return e.getDay();
}
-function mwe(e, t) {
+function Swe(e, t) {
return DJ(dJ.count(yJ(e) - 1, e), t, 2);
}
-function hwe(e, t) {
+function Cwe(e, t) {
return DJ(e.getFullYear() % 100, t, 2);
}
-function gwe(e, t) {
+function wwe(e, t) {
return e = IJ(e), DJ(e.getFullYear() % 100, t, 2);
}
-function _we(e, t) {
+function Twe(e, t) {
return DJ(e.getFullYear() % 1e4, t, 4);
}
-function vwe(e, t) {
+function Ewe(e, t) {
var n = e.getDay();
return e = n >= 4 || n === 0 ? fJ(e) : fJ.ceil(e), DJ(e.getFullYear() % 1e4, t, 4);
}
-function ywe(e) {
+function Dwe(e) {
var t = e.getTimezoneOffset();
return (t > 0 ? "-" : (t *= -1, "+")) + DJ(t / 60 | 0, "0", 2) + DJ(t % 60, "0", 2);
}
function LJ(e, t) {
return DJ(e.getUTCDate(), t, 2);
}
-function bwe(e, t) {
+function Owe(e, t) {
return DJ(e.getUTCHours(), t, 2);
}
-function xwe(e, t) {
+function kwe(e, t) {
return DJ(e.getUTCHours() % 12 || 12, t, 2);
}
-function Swe(e, t) {
+function Awe(e, t) {
return DJ(1 + sJ.count(bJ(e), e), t, 3);
}
function RJ(e, t) {
return DJ(e.getUTCMilliseconds(), t, 3);
}
-function Cwe(e, t) {
+function jwe(e, t) {
return RJ(e, t) + "000";
}
-function wwe(e, t) {
+function Mwe(e, t) {
return DJ(e.getUTCMonth() + 1, t, 2);
}
-function Twe(e, t) {
+function Nwe(e, t) {
return DJ(e.getUTCMinutes(), t, 2);
}
-function Ewe(e, t) {
+function Pwe(e, t) {
return DJ(e.getUTCSeconds(), t, 2);
}
-function Dwe(e) {
+function Fwe(e) {
var t = e.getUTCDay();
return t === 0 ? 7 : t;
}
-function Owe(e, t) {
+function Iwe(e, t) {
return DJ(mJ.count(bJ(e) - 1, e), t, 2);
}
function zJ(e) {
var t = e.getUTCDay();
return t >= 4 || t === 0 ? gJ(e) : gJ.ceil(e);
}
-function kwe(e, t) {
+function Lwe(e, t) {
return e = zJ(e), DJ(gJ.count(bJ(e), e) + (bJ(e).getUTCDay() === 4), t, 2);
}
-function Awe(e) {
+function Rwe(e) {
return e.getUTCDay();
}
-function jwe(e, t) {
+function zwe(e, t) {
return DJ(hJ.count(bJ(e) - 1, e), t, 2);
}
-function Mwe(e, t) {
+function Bwe(e, t) {
return DJ(e.getUTCFullYear() % 100, t, 2);
}
-function Nwe(e, t) {
+function Vwe(e, t) {
return e = zJ(e), DJ(e.getUTCFullYear() % 100, t, 2);
}
-function Pwe(e, t) {
+function Hwe(e, t) {
return DJ(e.getUTCFullYear() % 1e4, t, 4);
}
-function Fwe(e, t) {
+function Uwe(e, t) {
var n = e.getUTCDay();
return e = n >= 4 || n === 0 ? gJ(e) : gJ.ceil(e), DJ(e.getUTCFullYear() % 1e4, t, 4);
}
-function Iwe() {
+function Wwe() {
return "+0000";
}
function BJ() {
@@ -57842,7 +58093,7 @@ function HJ(e) {
//#endregion
//#region node_modules/d3-time-format/src/defaultLocale.js
var UJ, WJ, GJ;
-Lwe({
+Gwe({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
time: "%-I:%M:%S %p",
@@ -57894,15 +58145,15 @@ Lwe({
"Dec"
]
});
-function Lwe(e) {
- return UJ = LCe(e), WJ = UJ.format, UJ.parse, GJ = UJ.utcFormat, UJ.utcParse, UJ;
+function Gwe(e) {
+ return UJ = GCe(e), WJ = UJ.format, UJ.parse, GJ = UJ.utcFormat, UJ.utcParse, UJ;
}
//#endregion
//#region node_modules/d3-scale/src/time.js
-function Rwe(e) {
+function Kwe(e) {
return new Date(e);
}
-function zwe(e) {
+function qwe(e) {
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
}
function KJ(e, t, n, r, i, a, o, s, c, l) {
@@ -57913,7 +58164,7 @@ function KJ(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, zwe)) : f().map(Rwe);
+ return arguments.length ? f(Array.from(e, qwe)) : f().map(Kwe);
}, u.ticks = function(t) {
var n = f();
return e(n[0], n[n.length - 1], t ?? 10);
@@ -57926,13 +58177,13 @@ function KJ(e, t, n, r, i, a, o, s, c, l) {
return oq(u, KJ(e, t, n, r, i, a, o, s, c, l));
}, u;
}
-function Bwe() {
- return hK.apply(KJ(FCe, ICe, yJ, _J, uJ, oJ, iJ, nJ, tJ, WJ).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
+function Jwe() {
+ return hK.apply(KJ(UCe, WCe, yJ, _J, uJ, oJ, iJ, nJ, tJ, WJ).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/utcTime.js
-function Vwe() {
- return hK.apply(KJ(NCe, PCe, bJ, vJ, mJ, sJ, aJ, rJ, tJ, GJ).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
+function Ywe() {
+ return hK.apply(KJ(VCe, HCe, bJ, vJ, mJ, sJ, aJ, rJ, tJ, GJ).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/sequential.js
@@ -57987,7 +58238,7 @@ function QJ() {
return JJ(e, QJ()).exponent(e.exponent());
}, gK.apply(e, arguments);
}
-function Hwe() {
+function Xwe() {
return QJ.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -58007,7 +58258,7 @@ function $J() {
}, 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) => DSe(e, r / t));
+ return Array.from({ length: t + 1 }, (n, r) => FSe(e, r / t));
}, n.copy = function() {
return $J(t).domain(e);
}, gK.apply(n, arguments);
@@ -58033,7 +58284,7 @@ function eY() {
function m(e) {
return function(t) {
var n, r, i;
- return arguments.length ? ([n, r, i] = t, l = eCe(e, [
+ return arguments.length ? ([n, r, i] = t, l = cCe(e, [
n,
r,
i
@@ -58078,7 +58329,7 @@ function iY() {
return JJ(e, iY()).exponent(e.exponent());
}, gK.apply(e, arguments);
}
-function Uwe() {
+function Zwe() {
return iY.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -58088,14 +58339,14 @@ var aY = /* @__PURE__ */ Ee({
scaleDiverging: () => tY,
scaleDivergingLog: () => nY,
scaleDivergingPow: () => iY,
- scaleDivergingSqrt: () => Uwe,
+ scaleDivergingSqrt: () => Zwe,
scaleDivergingSymlog: () => rY,
scaleIdentity: () => Tq,
scaleImplicit: () => _K,
scaleLinear: () => wq,
scaleLog: () => jq,
scaleOrdinal: () => vK,
- scalePoint: () => ASe,
+ scalePoint: () => RSe,
scalePow: () => Rq,
scaleQuantile: () => Vq,
scaleQuantize: () => Hq,
@@ -58104,26 +58355,26 @@ var aY = /* @__PURE__ */ Ee({
scaleSequentialLog: () => XJ,
scaleSequentialPow: () => QJ,
scaleSequentialQuantile: () => $J,
- scaleSequentialSqrt: () => Hwe,
+ scaleSequentialSqrt: () => Xwe,
scaleSequentialSymlog: () => ZJ,
- scaleSqrt: () => CCe,
+ scaleSqrt: () => jCe,
scaleSymlog: () => Fq,
scaleThreshold: () => Uq,
- scaleTime: () => Bwe,
- scaleUtc: () => Vwe,
+ scaleTime: () => Jwe,
+ scaleUtc: () => Ywe,
tickFormat: () => Sq
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
-function Wwe(e) {
+function Qwe(e) {
if (e in aY) return aY[e]();
- var t = `scale${fR(e)}`;
+ var t = `scale${pR(e)}`;
if (t in aY) return aY[t]();
}
function oY(e, t, n) {
if (typeof e == "function") return e.copy().domain(t).range(n);
if (e != null) {
- var r = Wwe(e);
+ var r = Qwe(e);
if (r != null) return r.domain(t).range(n), r;
}
}
@@ -58132,22 +58383,22 @@ function sY(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
-function Gwe(e) {
- return `scale${fR(e)}`;
+function $we(e) {
+ return `scale${pR(e)}`;
}
-function Kwe(e) {
- return Gwe(e) in aY;
+function eTe(e) {
+ return $we(e) in aY;
}
var cY = (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 Kwe(r) ? r : "point";
+ if (typeof r == "string") return eTe(r) ? r : "point";
}
};
//#endregion
//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js
-function qwe(e, t) {
+function tTe(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;
@@ -58158,7 +58409,7 @@ function lY(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 = qwe(r, e);
+ var t = tTe(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;
@@ -58168,7 +58419,7 @@ function lY(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
-function Jwe(e) {
+function nTe(e) {
if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : lY(e, void 0);
}
//#endregion
@@ -58187,26 +58438,26 @@ function dY(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? uY(Object(n), !0).forEach(function(t) {
- Ywe(e, t, n[t]);
+ rTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : uY(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Ywe(e, t, n) {
- return (t = Xwe(t)) in e ? Object.defineProperty(e, t, {
+function rTe(e, t, n) {
+ return (t = iTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Xwe(e) {
- var t = Zwe(e, "string");
+function iTe(e) {
+ var t = aTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Zwe(e, t) {
+function aTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58274,7 +58525,7 @@ var fY = [0, "auto"], pY = {
unit: void 0,
niceTicks: "auto",
width: 60
-}, _Y = (e, t) => e.cartesianAxis.yAxis[t], vY = (e, t) => _Y(e, t) ?? gY, Qwe = {
+}, _Y = (e, t) => e.cartesianAxis.yAxis[t], vY = (e, t) => _Y(e, t) ?? gY, oTe = {
domain: [0, "auto"],
includeHidden: !1,
reversed: !1,
@@ -58287,7 +58538,7 @@ var fY = [0, "auto"], pY = {
scale: "auto",
type: "number",
unit: ""
-}, yY = (e, t) => e.cartesianAxis.zAxis[t] ?? Qwe, bY = (e, t, n) => {
+}, yY = (e, t) => e.cartesianAxis.zAxis[t] ?? oTe, bY = (e, t, n) => {
switch (t) {
case "xAxis": return hY(e, n);
case "yAxis": return vY(e, n);
@@ -58296,7 +58547,7 @@ var fY = [0, "auto"], pY = {
case "radiusAxis": return MG(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, $we = (e, t, n) => {
+}, sTe = (e, t, n) => {
switch (t) {
case "xAxis": return hY(e, n);
case "yAxis": return vY(e, n);
@@ -58323,22 +58574,22 @@ function CY(e, t) {
}
};
}
-var wY = (e) => e.graphicalItems.cartesianItems, eTe = $([BG, VG], CY), TY = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), EY = $([
+var wY = (e) => e.graphicalItems.cartesianItems, cTe = $([BG, VG], CY), TY = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), EY = $([
wY,
bY,
- eTe
-], TY, { memoizeOptions: { resultEqualityCheck: KG } }), DY = $([EY], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(WG)), OY = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), tTe = $([EY], OY), kY = (e) => e.map((e) => e.data).filter(Boolean).flat(1), nTe = $([EY], kY, { memoizeOptions: { resultEqualityCheck: KG } }), AY = (e, t) => {
+ cTe
+], TY, { memoizeOptions: { resultEqualityCheck: KG } }), DY = $([EY], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(WG)), OY = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), lTe = $([EY], OY), kY = (e) => e.map((e) => e.data).filter(Boolean).flat(1), uTe = $([EY], kY, { memoizeOptions: { resultEqualityCheck: KG } }), AY = (e, t) => {
var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;
return e.length > 0 ? e : n.slice(r, i + 1);
-}, jY = $([nTe, QW], AY), MY = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: hV(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: hV(e, t.dataKey) })), NY = $([
+}, jY = $([uTe, QW], AY), MY = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: gV(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: gV(e, t.dataKey) })), NY = $([
jY,
bY,
EY
], MY);
function PY(e) {
- if (aR(e) || e instanceof Date) {
+ if (oR(e) || e instanceof Date) {
var t = Number(e);
- if (dV(t)) return t;
+ if (fV(t)) return t;
}
}
function FY(e) {
@@ -58350,13 +58601,13 @@ function FY(e) {
if (n != null) return [n, n];
}
function IY(e) {
- return e.map(PY).filter(pR);
+ return e.map(PY).filter(mR);
}
-function rTe(e, t) {
+function dTe(e, t) {
var n = PY(e), r = PY(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var iTe = $([NY], (e) => e?.map((e) => e.value).sort(rTe));
+var fTe = $([NY], (e) => e?.map((e) => e.value).sort(dTe));
function LY(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
@@ -58364,13 +58615,13 @@ function LY(e, t) {
default: return !1;
}
}
-function aTe(e, t, n) {
- return !n || typeof t != "number" || rR(t) || !n.length ? [] : IY(n.flatMap((n) => {
- var r = hV(e, n.dataKey), i, a;
- if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!dV(i) || !dV(a))) return [t - i, t + a];
+function pTe(e, t, n) {
+ return !n || typeof t != "number" || iR(t) || !n.length ? [] : IY(n.flatMap((n) => {
+ var r = gV(e, n.dataKey), i, a;
+ if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!fV(i) || !fV(a))) return [t - i, t + a];
}));
}
-var RY = (e) => xY(e, qG(e), JG(e)), zY = $([RY], (e) => e?.dataKey), oTe = $([
+var RY = (e) => xY(e, qG(e), JG(e)), zY = $([RY], (e) => e?.dataKey), mTe = $([
DY,
QW,
RY
@@ -58383,22 +58634,22 @@ var RY = (e) => xY(e, qG(e), JG(e)), zY = $([RY], (e) => e?.dataKey), oTe = $([
return Object.fromEntries(Object.entries(i).map((t) => {
var [i, a] = t, o = r ? [...a].reverse() : a;
return [i, {
- stackedData: Uye(e, o.map(HG), n),
+ stackedData: Xye(e, o.map(HG), n),
graphicalItems: o
}];
}));
}, VY = $([
- oTe,
+ mTe,
DY,
gG,
_G
], BY), HY = (e, t, n, r) => {
var { dataStartIndex: i, dataEndIndex: a } = t;
if (r == null && n !== "zAxis") {
- var o = Kye(e, i, a);
+ var o = $ye(e, i, a);
if (o == null || o[0] !== 0 || o[1] !== 0) return o;
}
-}, sTe = $([bY], (e) => e.allowDataOverflow), UY = (e) => {
+}, hTe = $([bY], (e) => e.allowDataOverflow), UY = (e) => {
if (e == null || !("domain" in e)) return fY;
if (e.domain != null) return e.domain;
if ("ticks" in e && e.ticks != null) {
@@ -58409,12 +58660,12 @@ var RY = (e) => xY(e, qG(e), JG(e)), zY = $([RY], (e) => e?.dataKey), oTe = $([
if (e.type === "category") return e.ticks.map(String);
}
return e?.domain ?? fY;
-}, WY = $([bY], UY), GY = $([WY, sTe], nG), cTe = $([
+}, WY = $([bY], UY), GY = $([WY, hTe], nG), gTe = $([
VY,
XW,
BG,
GY
-], HY, { memoizeOptions: { resultEqualityCheck: GG } }), KY = (e) => e.errorBars, lTe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => LY(n, e)), qY = function() {
+], HY, { memoizeOptions: { resultEqualityCheck: GG } }), KY = (e) => e.errorBars, _Te = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => LY(n, e)), qY = function() {
var e = [...arguments].filter(Boolean);
if (e.length !== 0) {
var t = e.flat();
@@ -58424,7 +58675,7 @@ var RY = (e) => xY(e, qG(e), JG(e)), zY = $([RY], (e) => e?.dataKey), oTe = $([
var a, o;
if (n.length > 0 && e.forEach((e) => {
n.forEach((n) => {
- var s = r[n.id]?.filter((e) => LY(i, e)), c = hV(e, t.dataKey ?? n.dataKey), l = aTe(e, c, s);
+ var s = r[n.id]?.filter((e) => LY(i, e)), c = gV(e, t.dataKey ?? n.dataKey), l = pTe(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);
@@ -58433,32 +58684,32 @@ var RY = (e) => xY(e, qG(e), JG(e)), zY = $([RY], (e) => e?.dataKey), oTe = $([
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 = FY(hV(e, t.dataKey));
+ var n = FY(gV(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]));
- }), dV(a) && dV(o)) return [a, o];
-}, uTe = $([
+ }), fV(a) && fV(o)) return [a, o];
+}, vTe = $([
jY,
bY,
- tTe,
+ lTe,
KY,
BG
], JY, { memoizeOptions: { resultEqualityCheck: GG } });
-function dTe(e) {
+function yTe(e) {
var { value: t } = e;
- if (aR(t) || t instanceof Date) return t;
+ if (oR(t) || t instanceof Date) return t;
}
-var fTe = (e, t, n) => {
- var r = e.map(dTe).filter((e) => e != null);
- return n && (t.dataKey == null || t.allowDuplicatedCategory && cR(r)) ? YW(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
-}, YY = (e) => e.referenceElements.dots, XY = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), pTe = $([
+var bTe = (e, t, n) => {
+ var r = e.map(yTe).filter((e) => e != null);
+ return n && (t.dataKey == null || t.allowDuplicatedCategory && lR(r)) ? YW(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
+}, YY = (e) => e.referenceElements.dots, XY = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), xTe = $([
YY,
BG,
VG
-], XY), ZY = (e) => e.referenceElements.areas, mTe = $([
+], XY), ZY = (e) => e.referenceElements.areas, STe = $([
ZY,
BG,
VG
-], XY), QY = (e) => e.referenceElements.lines, hTe = $([
+], XY), QY = (e) => e.referenceElements.lines, CTe = $([
QY,
BG,
VG
@@ -58467,49 +58718,49 @@ var fTe = (e, t, n) => {
var n = IY(e.map((e) => t === "xAxis" ? e.x : e.y));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, gTe = $(pTe, BG, $Y), eX = (e, t) => {
+}, wTe = $(xTe, BG, $Y), eX = (e, t) => {
if (e != null) {
var n = IY(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)];
}
-}, _Te = $([mTe, BG], eX);
-function vTe(e) {
+}, TTe = $([STe, BG], eX);
+function ETe(e) {
if (e.x != null) return IY([e.x]);
var t = e.segment?.map((e) => e.x);
return t == null || t.length === 0 ? [] : IY(t);
}
-function yTe(e) {
+function DTe(e) {
if (e.y != null) return IY([e.y]);
var t = e.segment?.map((e) => e.y);
return t == null || t.length === 0 ? [] : IY(t);
}
var tX = (e, t) => {
if (e != null) {
- var n = e.flatMap((e) => t === "xAxis" ? vTe(e) : yTe(e));
+ var n = e.flatMap((e) => t === "xAxis" ? ETe(e) : DTe(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, bTe = $(gTe, $([hTe, BG], tX), _Te, (e, t, n) => qY(e, n, t)), nX = (e, t, n, r, i, a, o, s) => n ?? pSe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? qY(r, a, i) : qY(a, i), e.allowDataOverflow), xTe = $([
+}, OTe = $(wTe, $([CTe, BG], tX), TTe, (e, t, n) => qY(e, n, t)), nX = (e, t, n, r, i, a, o, s) => n ?? xSe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? qY(r, a, i) : qY(a, i), e.allowDataOverflow), kTe = $([
bY,
WY,
GY,
- cTe,
- uTe,
- bTe,
- lH,
+ gTe,
+ vTe,
+ OTe,
+ gH,
BG
-], nX, { memoizeOptions: { resultEqualityCheck: GG } }), STe = [0, 1], rX = (e, t, n, r, i, a, o) => {
+], nX, { memoizeOptions: { resultEqualityCheck: GG } }), ATe = [0, 1], rX = (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 = gV(t, a);
- return l && s == null ? YW(0, n?.length ?? 0) : c === "category" ? fTe(r, e, l) : i === "expand" ? STe : o;
+ var { dataKey: s, type: c } = e, l = _V(t, a);
+ return l && s == null ? YW(0, n?.length ?? 0) : c === "category" ? bTe(r, e, l) : i === "expand" ? ATe : o;
}
}, iX = $([
bY,
- lH,
+ gH,
jY,
NY,
gG,
BG,
- xTe
+ kTe
], rX), aX = $([
bY,
SY,
@@ -58537,7 +58788,7 @@ var tX = (e, t) => {
return [Math.min(i, a), Math.max(o, s)];
}
return t;
-}, CTe = $([
+}, jTe = $([
bY,
iX,
sX,
@@ -58557,22 +58808,22 @@ var tX = (e, t) => {
}
return n / o;
}
-}), lH, mG, IV, (e, t, n, r, i) => i, (e, t, n, r, i) => {
- if (!dV(e)) return 0;
+}), gH, mG, LV, (e, t, n, r, i) => i, (e, t, n, r, i) => {
+ if (!fV(e)) return 0;
var a = t === "vertical" ? r.height : r.width;
if (i === "gap") return e * a / 2;
if (i === "no-gap") {
- var o = sR(n, e * a), s = e * a / 2;
+ var o = cR(n, e * a), s = e * a / 2;
return s - o - (s - o) / a * o;
}
return 0;
-}), wTe = (e, t, n) => {
+}), MTe = (e, t, n) => {
var r = hY(e, t);
return r == null || typeof r.padding != "string" ? 0 : lX(e, "xAxis", t, n, r.padding);
-}, TTe = (e, t, n) => {
+}, NTe = (e, t, n) => {
var r = vY(e, t);
return r == null || typeof r.padding != "string" ? 0 : lX(e, "yAxis", t, n, r.padding);
-}, ETe = $(hY, wTe, (e, t) => {
+}, PTe = $(hY, MTe, (e, t) => {
if (e == null) return {
left: 0,
right: 0
@@ -58585,7 +58836,7 @@ var tX = (e, t) => {
left: (n.left ?? 0) + t,
right: (n.right ?? 0) + t
};
-}), DTe = $(vY, TTe, (e, t) => {
+}), FTe = $(vY, NTe, (e, t) => {
if (e == null) return {
top: 0,
bottom: 0
@@ -58598,29 +58849,29 @@ var tX = (e, t) => {
top: (n.top ?? 0) + t,
bottom: (n.bottom ?? 0) + t
};
-}), OTe = $([
- IV,
- ETe,
+}), ITe = $([
+ LV,
+ PTe,
+ VV,
BV,
- zV,
(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];
-}), kTe = $([
- IV,
- lH,
- DTe,
+}), LTe = $([
+ LV,
+ gH,
+ FTe,
+ VV,
BV,
- zV,
(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];
}), uX = (e, t, n, r) => {
switch (t) {
- case "xAxis": return OTe(e, n, r);
- case "yAxis": return kTe(e, n, r);
+ case "xAxis": return ITe(e, n, r);
+ case "yAxis": return LTe(e, n, r);
case "zAxis": return yY(e, n)?.range;
case "angleAxis": return LG(e);
case "radiusAxis": return RG(e, n);
@@ -58629,67 +58880,67 @@ var tX = (e, t) => {
}, dX = $([bY, uX], TG), fX = $([
bY,
aX,
- $([aX, CTe], XG),
+ $([aX, jTe], XG),
dX
], sY), pX = (e, t, n, r) => {
if (n != null && n.dataKey != null) {
var { type: i, scale: a } = n;
- if (gV(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
+ if (_V(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
}
}, mX = $([
- lH,
+ gH,
NY,
xY,
BG
], pX), hX = $([fX], YG);
-$([fX], Jwe), $([fX, iTe], lY), $([
+$([fX], nTe), $([fX, fTe], lY), $([
EY,
KY,
BG
-], lTe);
+], _Te);
function gX(e, t) {
return e.id < t.id ? -1 : +(e.id > t.id);
}
-var _X = (e, t) => t, vX = (e, t, n) => n, ATe = $(MV, _X, vX, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(gX)), jTe = $(NV, _X, vX, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(gX)), yX = (e, t) => ({
+var _X = (e, t) => t, vX = (e, t, n) => n, RTe = $(NV, _X, vX, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(gX)), zTe = $(PV, _X, vX, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(gX)), yX = (e, t) => ({
width: e.width,
height: t.height
-}), MTe = (e, t) => ({
+}), BTe = (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-}), bX = $(IV, hY, yX), NTe = (e, t, n) => {
+}), bX = $(LV, hY, yX), VTe = (e, t, n) => {
switch (t) {
case "top": return e.top;
case "bottom": return n - e.bottom;
default: return 0;
}
-}, PTe = (e, t, n) => {
+}, HTe = (e, t, n) => {
switch (t) {
case "left": return e.left;
case "right": return n - e.right;
default: return 0;
}
-}, FTe = $(AV, IV, ATe, _X, vX, (e, t, n, r, i) => {
+}, UTe = $(jV, LV, RTe, _X, vX, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
var s = yX(t, n);
- o ??= NTe(t, r, e);
+ o ??= VTe(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;
-}), ITe = $(kV, IV, jTe, _X, vX, (e, t, n, r, i) => {
+}), WTe = $(AV, LV, zTe, _X, vX, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = MTe(t, n);
- o ??= PTe(t, r, e);
+ var s = BTe(t, n);
+ o ??= HTe(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;
-}), LTe = $([
- IV,
+}), GTe = $([
+ LV,
hY,
(e, t) => {
var n = hY(e, t);
- if (n != null) return FTe(e, n.orientation, n.mirror);
+ if (n != null) return UTe(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -58703,12 +58954,12 @@ var _X = (e, t) => t, vX = (e, t, n) => n, ATe = $(MV, _X, vX, (e, t, n) => e.fi
y: i
};
}
-}), RTe = $([
- IV,
+}), KTe = $([
+ LV,
vY,
(e, t) => {
var n = vY(e, t);
- if (n != null) return ITe(e, n.orientation, n.mirror);
+ if (n != null) return WTe(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -58722,7 +58973,7 @@ var _X = (e, t) => t, vX = (e, t, n) => n, ATe = $(MV, _X, vX, (e, t, n) => e.fi
y: e.top
};
}
-}), xX = $(IV, vY, (e, t) => ({
+}), xX = $(LV, vY, (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
})), SX = (e, t, n) => {
@@ -58733,17 +58984,17 @@ var _X = (e, t) => t, vX = (e, t, n) => n, ATe = $(MV, _X, vX, (e, t, n) => e.fi
}
}, CX = (e, t, n, r) => {
if (n != null) {
- var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = gV(e, r), c = t.map((e) => e.value);
- if (o && s && a === "category" && i && cR(c)) return c;
+ var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = _V(e, r), c = t.map((e) => e.value);
+ if (o && s && a === "category" && i && lR(c)) return c;
}
}, wX = $([
- lH,
+ gH,
NY,
bY,
BG
], CX), TX = $([
- lH,
- $we,
+ gH,
+ sTe,
aX,
hX,
wX,
@@ -58753,7 +59004,7 @@ var _X = (e, t) => t, vX = (e, t, n) => n, ATe = $(MV, _X, vX, (e, t, n) => e.fi
BG
], (e, t, n, r, i, a, o, s, c) => {
if (t != null) {
- var l = gV(e, c);
+ var l = _V(e, c);
return {
angle: t.angle,
interval: t.interval,
@@ -58777,45 +59028,45 @@ var _X = (e, t) => t, vX = (e, t, n) => n, ATe = $(MV, _X, vX, (e, t, n) => e.fi
}
}), EX = (e, t, n, r, i, a, o, s, c) => {
if (t != null && r != null) {
- var l = gV(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 ? nR(a[0] - a[1]) * 2 * m : m;
+ var l = _V(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 ? rR(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 dV(i) ? {
+ return fV(i) ? {
index: t,
coordinate: i + m,
value: e,
offset: m
} : null;
- }).filter(pR) : l && s ? s.map((e, t) => {
+ }).filter(mR) : l && s ? s.map((e, t) => {
var n = r.map(e);
- return dV(n) ? {
+ return fV(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(pR) : r.ticks ? r.ticks(f).map((e, t) => {
+ }).filter(mR) : r.ticks ? r.ticks(f).map((e, t) => {
var n = r.map(e);
- return dV(n) ? {
+ return fV(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(pR) : r.domain().map((e, t) => {
+ }).filter(mR) : r.domain().map((e, t) => {
var n = r.map(e);
- return dV(n) ? {
+ return fV(n) ? {
coordinate: n + m,
value: o ? o[e] : e,
index: t,
offset: m
} : null;
- }).filter(pR);
+ }).filter(mR);
}
}, DX = $([
- lH,
+ gH,
xY,
aX,
hX,
@@ -58826,35 +59077,35 @@ var _X = (e, t) => t, vX = (e, t, n) => n, ATe = $(MV, _X, vX, (e, t, n) => e.fi
BG
], EX), OX = (e, t, n, r, i, a, o) => {
if (t != null && n != null && r != null && r[0] !== r[1]) {
- var s = gV(e, o), { tickCount: c } = t, l = 0;
- return l = o === "angleAxis" && r?.length >= 2 ? nR(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
+ var s = _V(e, o), { tickCount: c } = t, l = 0;
+ return l = o === "angleAxis" && r?.length >= 2 ? rR(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
var r = n.map(e);
- return dV(r) ? {
+ return fV(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(pR) : n.ticks ? n.ticks(c).map((e, t) => {
+ }).filter(mR) : n.ticks ? n.ticks(c).map((e, t) => {
var r = n.map(e);
- return dV(r) ? {
+ return fV(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(pR) : n.domain().map((e, t) => {
+ }).filter(mR) : n.domain().map((e, t) => {
var r = n.map(e);
- return dV(r) ? {
+ return fV(r) ? {
coordinate: r + l,
value: i ? i[e] : e,
index: t,
offset: l
} : null;
- }).filter(pR);
+ }).filter(mR);
}
}, kX = $([
- lH,
+ gH,
xY,
hX,
uX,
@@ -58872,10 +59123,10 @@ $((e, t, n) => yY(e, n), $([$([
], sY)], YG), (e, t) => {
if (e != null && t != null) return dY(dY({}, e), {}, { scale: t });
});
-var zTe = $([
- lH,
- MV,
- NV
+var qTe = $([
+ gH,
+ NV,
+ PV
], (e, t, n) => {
switch (e) {
case "horizontal": return t.some((e) => e.reversed) ? "right-to-left" : "left-to-right";
@@ -58906,21 +59157,21 @@ function NX(e, t, n) {
function PX(e, t) {
return NX(t, jX(e), MX(e));
}
-function BTe(e) {
+function JTe(e) {
return Q((t) => PX(t, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js
var FX = (e, t) => {
var n, r = Number(t);
- if (!(rR(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
-}, VTe = (e) => e.tooltip.settings, IX = {
+ if (!(iR(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
+}, YTe = (e) => e.tooltip.settings, IX = {
active: !1,
index: null,
dataKey: void 0,
graphicalItemId: void 0,
coordinate: void 0
-}, LX = IB({
+}, LX = LB({
name: "tooltip",
initialState: {
itemInteraction: {
@@ -58953,23 +59204,23 @@ var FX = (e, t) => {
reducers: {
addTooltipEntrySettings: {
reducer(e, t) {
- e.tooltipItemPayloads.push(dU(t.payload));
+ e.tooltipItemPayloads.push(vU(t.payload));
},
- prepare: MB()
+ prepare: NB()
},
replaceTooltipEntrySettings: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = CB(e).tooltipItemPayloads.indexOf(dU(n));
- i > -1 && (e.tooltipItemPayloads[i] = dU(r));
+ var { prev: n, next: r } = t.payload, i = wB(e).tooltipItemPayloads.indexOf(vU(n));
+ i > -1 && (e.tooltipItemPayloads[i] = vU(r));
},
- prepare: MB()
+ prepare: NB()
},
removeTooltipEntrySettings: {
reducer(e, t) {
- var n = CB(e).tooltipItemPayloads.indexOf(dU(t.payload));
+ var n = wB(e).tooltipItemPayloads.indexOf(vU(t.payload));
n > -1 && e.tooltipItemPayloads.splice(n, 1);
},
- prepare: MB()
+ prepare: NB()
},
setTooltipSettingsState(e, t) {
e.settings = t.payload;
@@ -58999,7 +59250,7 @@ var FX = (e, t) => {
e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;
}
}
-}), { addTooltipEntrySettings: HTe, replaceTooltipEntrySettings: UTe, removeTooltipEntrySettings: WTe, setTooltipSettingsState: GTe, setActiveMouseOverItemIndex: RX, mouseLeaveItem: KTe, mouseLeaveChart: zX, setActiveClickItemIndex: qTe, setMouseOverAxisIndex: BX, setMouseClickAxisIndex: JTe, setSyncInteraction: VX, setKeyboardInteraction: HX } = LX.actions, YTe = LX.reducer;
+}), { addTooltipEntrySettings: XTe, replaceTooltipEntrySettings: ZTe, removeTooltipEntrySettings: QTe, setTooltipSettingsState: $Te, setActiveMouseOverItemIndex: RX, mouseLeaveItem: eEe, mouseLeaveChart: zX, setActiveClickItemIndex: tEe, setMouseOverAxisIndex: BX, setMouseClickAxisIndex: nEe, setSyncInteraction: VX, setKeyboardInteraction: HX } = LX.actions, rEe = LX.reducer;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js
function UX(e, t) {
@@ -59016,26 +59267,26 @@ function WX(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? UX(Object(n), !0).forEach(function(t) {
- XTe(e, t, n[t]);
+ iEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : UX(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function XTe(e, t, n) {
- return (t = ZTe(t)) in e ? Object.defineProperty(e, t, {
+function iEe(e, t, n) {
+ return (t = aEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ZTe(e) {
- var t = QTe(e, "string");
+function aEe(e) {
+ var t = oEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function QTe(e, t) {
+function oEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59045,21 +59296,21 @@ function QTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function $Te(e, t, n) {
+function sEe(e, t, n) {
return t === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;
}
-function eEe(e) {
+function cEe(e) {
return e.index != null;
}
var GX = (e, t, n, r) => {
if (t == null) return IX;
- var i = $Te(e, t, n);
+ var i = sEe(e, t, n);
if (i == null) return IX;
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 (eEe(i)) {
+ if (cEe(i)) {
if (a) return WX(WX({}, i), {}, { active: !0 });
} else if (r != null) return {
active: !0,
@@ -59072,7 +59323,7 @@ var GX = (e, t, n, r) => {
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js
-function tEe(e) {
+function lEe(e) {
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
if (e instanceof Date) {
var t = e.valueOf();
@@ -59081,24 +59332,24 @@ function tEe(e) {
var n = Number(e);
return Number.isFinite(n) ? n : void 0;
}
-function nEe(e, t) {
- var n = tEe(e), r = t[0], i = t[1];
+function uEe(e, t) {
+ var n = lEe(e), r = t[0], i = t[1];
return n !== void 0 && n >= Math.min(r, i) && n <= Math.max(r, i);
}
-function rEe(e, t, n) {
+function dEe(e, t, n) {
if (n == null || t == null) return !0;
- var r = hV(e, t);
- return r == null || !eG(n) || nEe(r, n);
+ var r = gV(e, t);
+ return r == null || !eG(n) || uEe(r, n);
}
var KX = (e, t, n, r) => {
var i = e?.index;
if (i == null) return null;
var a = Number(i);
- if (!dV(a)) return i;
+ if (!fV(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 || rEe(l, n, r) ? String(c) : null;
+ return l == null || dEe(l, n, r) ? String(c) : null;
}, qX = (e, t, n, r, i, a, o) => {
if (a != null) {
var s = o[0]?.getPosition(a);
@@ -59142,26 +59393,26 @@ function QX(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? ZX(Object(n), !0).forEach(function(t) {
- iEe(e, t, n[t]);
+ fEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ZX(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function iEe(e, t, n) {
- return (t = aEe(t)) in e ? Object.defineProperty(e, t, {
+function fEe(e, t, n) {
+ return (t = pEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function aEe(e) {
- var t = oEe(e, "string");
+function pEe(e) {
+ var t = mEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function oEe(e, t) {
+function mEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59171,57 +59422,57 @@ function oEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function sEe(e) {
+function hEe(e) {
if (typeof e == "string" || typeof e == "number") return e;
}
-function cEe(e) {
+function gEe(e) {
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;
}
-function lEe(e) {
+function _Ee(e) {
if (typeof e == "string" || typeof e == "number") return e;
if (typeof e == "function") return (t) => e(t);
}
function $X(e) {
if (typeof e == "string") return e;
}
-function uEe(e) {
+function vEe(e) {
if (!(typeof e != "object" || !e)) return {
- name: "name" in e ? sEe(e.name) : void 0,
- unit: "unit" in e ? cEe(e.unit) : void 0,
- dataKey: "dataKey" in e ? lEe(e.dataKey) : void 0,
+ name: "name" in e ? hEe(e.name) : void 0,
+ unit: "unit" in e ? gEe(e.unit) : void 0,
+ dataKey: "dataKey" in e ? _Ee(e.dataKey) : void 0,
payload: "payload" in e ? e.payload : void 0,
color: "color" in e ? $X(e.color) : void 0,
fill: "fill" in e ? $X(e.fill) : void 0
};
}
-function dEe(e, t) {
+function yEe(e, t) {
return e ?? t;
}
var eZ = (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 = dEe(d, s), m = Array.isArray(p) ? uV(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? uR(m, r, i) : a(m, t, c, g);
+ var { dataDefinedOnItem: d, settings: f } = n, p = yEe(d, s), m = Array.isArray(p) ? dV(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? dR(m, r, i) : a(m, t, c, g);
return Array.isArray(_) ? _.forEach((t) => {
- var n = uEe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = QX(QX({}, f), {}, {
+ var n = vEe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = QX(QX({}, f), {}, {
name: r,
unit: n?.unit,
color: n?.color ?? f?.color,
fill: n?.fill ?? f?.fill
});
- e.push(DV({
+ e.push(OV({
tooltipEntrySettings: o,
dataKey: i,
payload: a,
- value: hV(a, i),
+ value: gV(a, i),
name: r == null ? void 0 : String(r)
}));
- }) : e.push(DV({
+ }) : e.push(OV({
tooltipEntrySettings: f,
dataKey: h,
payload: _,
- value: hV(_, h),
- name: hV(_, g) ?? f?.name
+ value: gV(_, h),
+ name: gV(_, g) ?? f?.name
})), e;
}, []);
}
@@ -59233,17 +59484,17 @@ var eZ = (e, t, n, r, i, a, o) => {
$([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),
RY,
$([qG, JG], CY)
-], TY, { memoizeOptions: { resultEqualityCheck: KG } }), fEe = $([nZ], (e) => e.filter(WG)), rZ = $([$([nZ], kY, { memoizeOptions: { resultEqualityCheck: KG } }), XW], AY), pEe = $([
- fEe,
+], TY, { memoizeOptions: { resultEqualityCheck: KG } }), bEe = $([nZ], (e) => e.filter(WG)), rZ = $([$([nZ], kY, { memoizeOptions: { resultEqualityCheck: KG } }), XW], AY), xEe = $([
+ bEe,
XW,
RY
], UG), iZ = $([
rZ,
RY,
nZ
-], MY), aZ = $([RY], UY), oZ = $([aZ, $([RY], (e) => e.allowDataOverflow)], nG), mEe = $([
+], MY), aZ = $([RY], UY), oZ = $([aZ, $([RY], (e) => e.allowDataOverflow)], nG), SEe = $([
$([
- pEe,
+ xEe,
$([nZ], (e) => e.filter(WG)),
gG,
_G
@@ -59251,23 +59502,23 @@ var eZ = (e, t, n, r, i, a, o) => {
XW,
qG,
oZ
-], HY), sZ = $([
+], HY), CEe = $([
rZ,
RY,
$([nZ], OY),
KY,
qG
-], JY, { memoizeOptions: { resultEqualityCheck: GG } }), hEe = $([$([
+], JY, { memoizeOptions: { resultEqualityCheck: GG } }), wEe = $([$([
YY,
qG,
JG
-], XY), qG], $Y), gEe = $([$([
+], XY), qG], $Y), TEe = $([$([
ZY,
qG,
JG
-], XY), qG], eX), cZ = $([
+], XY), qG], eX), sZ = $([
RY,
- lH,
+ gH,
rZ,
iZ,
gG,
@@ -59276,48 +59527,48 @@ var eZ = (e, t, n, r, i, a, o) => {
RY,
aZ,
oZ,
- mEe,
- sZ,
+ SEe,
+ CEe,
$([
- hEe,
+ wEe,
$([$([
QY,
qG,
JG
], XY), qG], tX),
- gEe
+ TEe
], qY),
- lH,
+ gH,
qG
], nX)
-], rX), _Ee = $([
+], rX), EEe = $([
RY,
- cZ,
+ sZ,
$([
- cZ,
+ sZ,
RY,
tZ
], oX),
qG
-], cX), lZ = (e) => uX(e, qG(e), JG(e), !1), uZ = $([RY, lZ], TG), dZ = $([$([
+], cX), cZ = (e) => uX(e, qG(e), JG(e), !1), lZ = $([RY, cZ], TG), uZ = $([$([
RY,
tZ,
- _Ee,
- uZ
-], sY)], YG), fZ = $([
- lH,
+ EEe,
+ lZ
+], sY)], YG), dZ = $([
+ gH,
RY,
tZ,
- dZ,
- lZ,
+ uZ,
+ cZ,
$([
- lH,
+ gH,
iZ,
RY,
qG
], CX),
$([
- lH,
+ gH,
iZ,
RY,
qG
@@ -59325,67 +59576,67 @@ var eZ = (e, t, n, r, i, a, o) => {
qG
], (e, t, n, r, i, a, o, s) => {
if (t) {
- var { type: c } = t, l = gV(e, s);
+ var { type: c } = t, l = _V(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 ? nR(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
+ return d = s === "angleAxis" && i != null && i?.length >= 2 ? rR(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
var n = r.map(e);
- return dV(n) ? {
+ return fV(n) ? {
coordinate: n + d,
value: e,
index: t,
offset: d
} : null;
- }).filter(pR) : r.domain().map((e, t) => {
+ }).filter(mR) : r.domain().map((e, t) => {
var n = r.map(e);
- return dV(n) ? {
+ return fV(n) ? {
coordinate: n + d,
value: a ? a[e] : e,
index: t,
offset: d
} : null;
- }).filter(pR);
+ }).filter(mR);
}
}
-}), pZ = $([
+}), fZ = $([
jX,
MX,
- VTe
-], (e, t, n) => NX(n.shared, e, t)), mZ = (e) => e.tooltip.settings.trigger, hZ = (e) => e.tooltip.settings.defaultIndex, gZ = $([
+ YTe
+], (e, t, n) => NX(n.shared, e, t)), pZ = (e) => e.tooltip.settings.trigger, mZ = (e) => e.tooltip.settings.defaultIndex, hZ = $([
XX,
+ fZ,
pZ,
- mZ,
- hZ
-], GX), _Z = $([
- gZ,
+ mZ
+], GX), gZ = $([
+ hZ,
rZ,
zY,
- cZ
-], KX), vZ = $([fZ, _Z], FX), yZ = $([gZ], (e) => {
+ sZ
+], KX), _Z = $([dZ, gZ], FX), vZ = $([hZ], (e) => {
if (e) return e.dataKey;
-}), vEe = $([gZ], (e) => {
+}), DEe = $([hZ], (e) => {
if (e) return e.graphicalItemId;
-}), bZ = $([
+}), yZ = $([
XX,
+ fZ,
pZ,
- mZ,
- hZ
-], JX), yEe = $([gZ, $([
- kV,
+ mZ
+], JX), OEe = $([hZ, $([
AV,
- lH,
- IV,
- fZ,
- hZ,
- bZ
-], qX)], (e, t) => e != null && e.coordinate ? e.coordinate : t), bEe = $([gZ], (e) => e?.active ?? !1), xEe = $([$([
- bZ,
- _Z,
+ jV,
+ gH,
+ LV,
+ dZ,
+ mZ,
+ yZ
+], qX)], (e, t) => e != null && e.coordinate ? e.coordinate : t), kEe = $([hZ], (e) => e?.active ?? !1), AEe = $([$([
+ yZ,
+ gZ,
XW,
zY,
- vZ,
+ _Z,
YX,
- pZ
+ fZ
], eZ)], (e) => {
if (e != null) {
var t = e.map((e) => e.payload).filter((e) => e != null);
@@ -59394,7 +59645,7 @@ var eZ = (e, t, n, r, i, a, o) => {
});
//#endregion
//#region node_modules/recharts/es6/context/useTooltipAxis.js
-function xZ(e, t) {
+function bZ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -59404,30 +59655,30 @@ function xZ(e, t) {
}
return n;
}
-function SZ(e) {
+function xZ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? xZ(Object(n), !0).forEach(function(t) {
- SEe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xZ(Object(n)).forEach(function(t) {
+ t % 2 ? bZ(Object(n), !0).forEach(function(t) {
+ jEe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : bZ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function SEe(e, t, n) {
- return (t = CEe(t)) in e ? Object.defineProperty(e, t, {
+function jEe(e, t, n) {
+ return (t = MEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function CEe(e) {
- var t = wEe(e, "string");
+function MEe(e) {
+ var t = NEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function wEe(e, t) {
+function NEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59437,13 +59688,13 @@ function wEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var TEe = () => Q(RY), EEe = () => {
- var e = TEe(), t = Q(fZ), n = Q(dZ);
- return EV(!e || !n ? void 0 : SZ(SZ({}, e), {}, { scale: n }), t);
+var PEe = () => Q(RY), FEe = () => {
+ var e = PEe(), t = Q(dZ), n = Q(uZ);
+ return DV(!e || !n ? void 0 : xZ(xZ({}, e), {}, { scale: n }), t);
};
//#endregion
//#region node_modules/recharts/es6/util/getActiveCoordinate.js
-function CZ(e, t) {
+function SZ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -59453,30 +59704,30 @@ function CZ(e, t) {
}
return n;
}
-function wZ(e) {
+function CZ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? CZ(Object(n), !0).forEach(function(t) {
- DEe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : CZ(Object(n)).forEach(function(t) {
+ t % 2 ? SZ(Object(n), !0).forEach(function(t) {
+ IEe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : SZ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function DEe(e, t, n) {
- return (t = OEe(t)) in e ? Object.defineProperty(e, t, {
+function IEe(e, t, n) {
+ return (t = LEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function OEe(e) {
- var t = kEe(e, "string");
+function LEe(e) {
+ var t = REe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function kEe(e, t) {
+function REe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59486,7 +59737,7 @@ function kEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var AEe = (e, t, n, r) => {
+var zEe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "horizontal") return {
@@ -59502,18 +59753,18 @@ var AEe = (e, t, n, r) => {
x: 0,
y: 0
};
-}, jEe = (e, t, n, r) => {
+}, BEe = (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 wZ(wZ(wZ({}, r), VW(r.cx, r.cy, o, a)), {}, {
+ return CZ(CZ(CZ({}, r), VW(r.cx, r.cy, o, a)), {}, {
angle: a,
radius: o
});
}
var s = i.coordinate, { angle: c } = r;
- return wZ(wZ(wZ({}, r), VW(r.cx, r.cy, s, c)), {}, {
+ return CZ(CZ(CZ({}, r), VW(r.cx, r.cy, s, c)), {}, {
angle: c,
radius: s
});
@@ -59532,19 +59783,19 @@ var AEe = (e, t, n, r) => {
y: 0
};
};
-function MEe(e, t) {
+function VEe(e, t) {
var { relativeX: n, relativeY: r } = e;
return n >= t.left && n <= t.left + t.width && r >= t.top && r <= t.top + t.height;
}
-var TZ = (e, t, n, r, i) => {
+var wZ = (e, t, n, r, i) => {
var a = t?.length ?? 0;
if (a <= 1 || e == null) return 0;
if (r === "angleAxis" && i != null && Math.abs(Math.abs(i[1] - i[0]) - 360) <= 1e-6) for (var o = 0; o < a; o++) {
var s = o > 0 ? n[o - 1]?.coordinate : n[a - 1]?.coordinate, c = n[o]?.coordinate, l = o >= a - 1 ? n[0]?.coordinate : n[o + 1]?.coordinate, u = void 0;
if (s != null && c != null && l != null) {
- if (nR(c - s) !== nR(l - c)) {
+ if (rR(c - s) !== rR(l - c)) {
var d = [];
- if (nR(l - c) === nR(i[1] - i[0])) {
+ if (rR(l - c) === rR(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);
@@ -59569,78 +59820,78 @@ var TZ = (e, t, n, r, i) => {
}
}
return -1;
-}, EZ = () => Q(vG), DZ = (e, t) => t, OZ = (e, t, n) => n, kZ = (e, t, n, r) => r, NEe = $(fZ, (e) => az(e, (e) => e.coordinate)), AZ = $([
+}, TZ = () => Q(vG), EZ = (e, t) => t, DZ = (e, t, n) => n, OZ = (e, t, n, r) => r, HEe = $(dZ, (e) => oz(e, (e) => e.coordinate)), kZ = $([
XX,
+ EZ,
DZ,
- OZ,
- kZ
-], GX), jZ = $([
- AZ,
+ OZ
+], GX), AZ = $([
+ kZ,
rZ,
zY,
- cZ
-], KX), PEe = (e, t, n) => {
+ sZ
+], KX), UEe = (e, t, n) => {
if (t != null) {
var r = XX(e);
return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;
}
-}, MZ = $([
+}, jZ = $([
XX,
+ EZ,
DZ,
- OZ,
- kZ
-], JX), NZ = $([
- kV,
+ OZ
+], JX), MZ = $([
AV,
- lH,
- IV,
- fZ,
- kZ,
- MZ
-], qX), FEe = $([AZ, NZ], (e, t) => e.coordinate ?? t), PZ = $([fZ, jZ], FX), IEe = $([
- MZ,
+ jV,
+ gH,
+ LV,
+ dZ,
+ OZ,
+ jZ
+], qX), WEe = $([kZ, MZ], (e, t) => e.coordinate ?? t), NZ = $([dZ, AZ], FX), GEe = $([
jZ,
+ AZ,
XW,
zY,
- PZ,
+ NZ,
YX,
- DZ
-], eZ), LEe = $([AZ, jZ], (e, t) => ({
+ EZ
+], eZ), KEe = $([kZ, AZ], (e, t) => ({
isActive: e.active && t != null,
activeIndex: t
-})), REe = (e, t, n, r, i, a, o) => {
- if (!(!e || !n || !r || !i) && MEe(e, o)) {
- var s = TZ(qye(e, t), a, i, n, r), c = AEe(t, i, s, e);
+})), qEe = (e, t, n, r, i, a, o) => {
+ if (!(!e || !n || !r || !i) && VEe(e, o)) {
+ var s = wZ(ebe(e, t), a, i, n, r), c = zEe(t, i, s, e);
return {
activeIndex: String(s),
activeCoordinate: c
};
}
-}, zEe = (e, t, n, r, i, a, o) => {
+}, JEe = (e, t, n, r, i, a, o) => {
if (!(!e || !r || !i || !a || !n)) {
- var s = eSe(e, n);
+ var s = cSe(e, n);
if (s) {
- var c = TZ(Jye(s, t), o, a, r, i), l = jEe(t, a, c, s);
+ var c = wZ(tbe(s, t), o, a, r, i), l = BEe(t, a, c, s);
return {
activeIndex: String(c),
activeCoordinate: l
};
}
}
-}, BEe = (e, t, n, r, i, a, o, s) => {
- if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? REe(e, t, r, i, a, o, s) : zEe(e, t, n, r, i, a, o);
-}, VEe = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
+}, YEe = (e, t, n, r, i, a, o, s) => {
+ if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? qEe(e, t, r, i, a, o, s) : JEe(e, t, n, r, i, a, o);
+}, XEe = $((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;
}
-}), HEe = $((e) => e.zIndex.zIndexMap, (e) => {
+}), ZEe = $((e) => e.zIndex.zIndexMap, (e) => {
var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(SG));
return Array.from(new Set(t)).sort((e, t) => e - t);
-}, { memoizeOptions: { resultEqualityCheck: xSe } });
+}, { memoizeOptions: { resultEqualityCheck: kSe } });
//#endregion
//#region node_modules/recharts/es6/state/zIndexSlice.js
-function FZ(e, t) {
+function PZ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -59650,30 +59901,30 @@ function FZ(e, t) {
}
return n;
}
-function IZ(e) {
+function FZ(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) {
- UEe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : FZ(Object(n)).forEach(function(t) {
+ t % 2 ? PZ(Object(n), !0).forEach(function(t) {
+ QEe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : PZ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function UEe(e, t, n) {
- return (t = WEe(t)) in e ? Object.defineProperty(e, t, {
+function QEe(e, t, n) {
+ return (t = $Ee(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function WEe(e) {
- var t = GEe(e, "string");
+function $Ee(e) {
+ var t = eDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function GEe(e, t) {
+function eDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59683,17 +59934,17 @@ function GEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var KEe = { zIndexMap: Object.values(SG).reduce((e, t) => IZ(IZ({}, e), {}, { [t]: {
+var tDe = { zIndexMap: Object.values(SG).reduce((e, t) => FZ(FZ({}, e), {}, { [t]: {
element: void 0,
panoramaElement: void 0,
consumers: 0
-} }), {}) }, qEe = new Set(Object.values(SG));
-function JEe(e) {
- return qEe.has(e);
+} }), {}) }, nDe = new Set(Object.values(SG));
+function rDe(e) {
+ return nDe.has(e);
}
-var LZ = IB({
+var IZ = LB({
name: "zIndex",
- initialState: KEe,
+ initialState: tDe,
reducers: {
registerZIndexPortal: {
reducer: (e, t) => {
@@ -59704,61 +59955,61 @@ var LZ = IB({
panoramaElement: void 0
};
},
- prepare: MB()
+ prepare: NB()
},
unregisterZIndexPortal: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
- e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !JEe(n) && delete e.zIndexMap[n]);
+ e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !rDe(n) && delete e.zIndexMap[n]);
},
- prepare: MB()
+ prepare: NB()
},
registerZIndexPortalElement: {
reducer: (e, t) => {
var { zIndex: n, element: r, isPanorama: i } = t.payload;
- e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = dU(r) : e.zIndexMap[n].element = dU(r) : e.zIndexMap[n] = {
+ e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = vU(r) : e.zIndexMap[n].element = vU(r) : e.zIndexMap[n] = {
consumers: 0,
- element: i ? void 0 : dU(r),
- panoramaElement: i ? dU(r) : void 0
+ element: i ? void 0 : vU(r),
+ panoramaElement: i ? vU(r) : void 0
};
},
- prepare: MB()
+ prepare: NB()
},
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: MB()
+ prepare: NB()
}
}
-}), { registerZIndexPortal: YEe, unregisterZIndexPortal: XEe, registerZIndexPortalElement: ZEe, unregisterZIndexPortalElement: QEe } = LZ.actions, $Ee = LZ.reducer;
+}), { registerZIndexPortal: iDe, unregisterZIndexPortal: aDe, registerZIndexPortalElement: oDe, unregisterZIndexPortalElement: sDe } = IZ.actions, cDe = IZ.reducer;
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
-function RZ(e) {
- var { zIndex: t, children: n } = e, r = mH() && t !== void 0 && t !== 0, i = RV(), a = ZR();
- (0, R.useLayoutEffect)(() => r ? (a(YEe({ zIndex: t })), () => {
- a(XEe({ zIndex: t }));
- }) : mR, [
+function LZ(e) {
+ var { zIndex: t, children: n } = e, r = xH() && t !== void 0 && t !== 0, i = zV(), a = QR();
+ (0, R.useLayoutEffect)(() => r ? (a(iDe({ zIndex: t })), () => {
+ a(aDe({ zIndex: t }));
+ }) : hR, [
a,
t,
r
]);
- var o = Q((e) => VEe(e, t, i));
+ var o = Q((e) => XEe(e, t, i));
return r ? o ? /*#__PURE__*/ (0, Re.createPortal)(n, o) : null : n;
}
//#endregion
//#region node_modules/recharts/es6/component/Cursor.js
-function zZ() {
- return zZ = Object.assign ? Object.assign.bind() : function(e) {
+function RZ() {
+ return RZ = 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;
- }, zZ.apply(null, arguments);
+ }, RZ.apply(null, arguments);
}
-function BZ(e, t) {
+function zZ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -59768,30 +60019,30 @@ function BZ(e, t) {
}
return n;
}
-function VZ(e) {
+function BZ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? BZ(Object(n), !0).forEach(function(t) {
- eDe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : BZ(Object(n)).forEach(function(t) {
+ t % 2 ? zZ(Object(n), !0).forEach(function(t) {
+ lDe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : zZ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function eDe(e, t, n) {
- return (t = tDe(t)) in e ? Object.defineProperty(e, t, {
+function lDe(e, t, n) {
+ return (t = uDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function tDe(e) {
- var t = nDe(e, "string");
+function uDe(e) {
+ var t = dDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function nDe(e, t) {
+function dDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59801,17 +60052,17 @@ function nDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function rDe(e) {
+function fDe(e) {
var { cursor: t, cursorComp: n, cursorProps: r } = e;
return /*#__PURE__*/ (0, R.isValidElement)(t) ? /*#__PURE__*/ (0, R.cloneElement)(t, r) : /*#__PURE__*/ (0, R.createElement)(n, r);
}
-function iDe(e) {
+function pDe(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 = ixe, h = SG.cursorLine;
- else if (l === "BarChart") p = axe(o, u, i, a), m = IW, h = SG.cursorRectangle;
- else if (o === "radial" && bR(u)) {
+ if (l === "ScatterChart") p = u, m = fxe, h = SG.cursorLine;
+ else if (l === "BarChart") p = pxe(o, u, i, a), m = IW, h = SG.cursorRectangle;
+ else if (o === "radial" && xR(u)) {
var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = HW(u);
p = {
cx: g,
@@ -59821,24 +60072,24 @@ function iDe(e) {
innerRadius: v,
outerRadius: v
}, m = qW, h = SG.cursorLine;
- } else p = { points: dSe(o, u, i) }, m = lW, h = SG.cursorLine;
- var x = typeof s == "object" && "className" in s ? s.className : void 0, S = VZ(VZ(VZ(VZ({
+ } else p = { points: ySe(o, u, i) }, m = lW, h = SG.cursorLine;
+ var x = typeof s == "object" && "className" in s ? s.className : void 0, S = BZ(BZ(BZ(BZ({
stroke: "#ccc",
pointerEvents: "none"
- }, i), p), YI(s)), {}, {
+ }, i), p), XI(s)), {}, {
payload: d,
payloadIndex: f,
className: Mu("recharts-tooltip-cursor", x)
});
- return /*#__PURE__*/ R.createElement(RZ, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ R.createElement(rDe, {
+ return /*#__PURE__*/ R.createElement(LZ, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ R.createElement(fDe, {
cursor: s,
cursorComp: m,
cursorProps: S
}));
}
-function aDe(e) {
- var t = EEe(), n = aH(), r = uH(), i = EZ();
- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ R.createElement(iDe, zZ({}, e, {
+function mDe(e) {
+ var t = FEe(), n = fH(), r = _H(), i = TZ();
+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ R.createElement(pDe, RZ({}, e, {
offset: n,
layout: r,
tooltipAxisBandSize: t,
@@ -59847,7 +60098,7 @@ function aDe(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipPortalContext.js
-var HZ = /*#__PURE__*/ (0, R.createContext)(null), oDe = () => (0, R.useContext)(HZ), sDe = (/* @__PURE__ */ Oe((/* @__PURE__ */ Te(((e, t) => {
+var VZ = /*#__PURE__*/ (0, R.createContext)(null), hDe = () => (0, R.useContext)(VZ), gDe = (/* @__PURE__ */ Oe((/* @__PURE__ */ Te(((e, t) => {
var n = Object.prototype.hasOwnProperty, r = "~";
function i() {}
Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
@@ -59934,12 +60185,12 @@ var HZ = /*#__PURE__*/ (0, R.createContext)(null), oDe = () => (0, R.useContext)
var t;
return e ? (t = r ? r + e : e, this._events[t] && s(this, t)) : (this._events = new i(), this._eventsCount = 0), this;
}, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = r, c.EventEmitter = c, t !== void 0 && (t.exports = c);
-})))(), 1)).default, UZ = new sDe(), WZ = "recharts.syncEvent.tooltip", GZ = "recharts.syncEvent.brush", KZ = (e, t) => {
+})))(), 1)).default, HZ = new gDe(), UZ = "recharts.syncEvent.tooltip", WZ = "recharts.syncEvent.brush", GZ = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
- if (!rR(n)) return e[n];
+ if (!iR(n)) return e[n];
}
-}, qZ = IB({
+}, KZ = LB({
name: "options",
initialState: {
chartName: "",
@@ -59950,13 +60201,13 @@ var HZ = /*#__PURE__*/ (0, R.createContext)(null), oDe = () => (0, R.useContext)
reducers: { createEventEmitter: (e) => {
e.eventEmitter ??= Symbol("rechartsEventEmitter");
} }
-}), cDe = qZ.reducer, { createEventEmitter: lDe } = qZ.actions;
+}), _De = KZ.reducer, { createEventEmitter: vDe } = KZ.actions;
//#endregion
//#region node_modules/recharts/es6/synchronisation/syncSelectors.js
-function uDe(e) {
+function yDe(e) {
return e.tooltip.syncInteraction;
}
-var JZ = IB({
+var qZ = LB({
name: "chartData",
initialState: {
chartData: void 0,
@@ -59966,7 +60217,7 @@ var JZ = IB({
},
reducers: {
setChartData(e, t) {
- if (e.chartData = dU(t.payload), t.payload == null) {
+ if (e.chartData = vU(t.payload), t.payload == null) {
e.dataStartIndex = 0, e.dataEndIndex = 0;
return;
}
@@ -59980,8 +60231,8 @@ var JZ = IB({
n != null && (e.dataStartIndex = n), r != null && (e.dataEndIndex = r);
}
}
-}), { setChartData: YZ, setDataStartEndIndexes: dDe, setComputedData: fDe } = JZ.actions, pDe = JZ.reducer, mDe = ["x", "y"];
-function XZ(e, t) {
+}), { setChartData: JZ, setDataStartEndIndexes: bDe, setComputedData: xDe } = qZ.actions, SDe = qZ.reducer, CDe = ["x", "y"];
+function YZ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -59991,30 +60242,30 @@ function XZ(e, t) {
}
return n;
}
-function ZZ(e) {
+function XZ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? XZ(Object(n), !0).forEach(function(t) {
- hDe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : XZ(Object(n)).forEach(function(t) {
+ t % 2 ? YZ(Object(n), !0).forEach(function(t) {
+ wDe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : YZ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function hDe(e, t, n) {
- return (t = gDe(t)) in e ? Object.defineProperty(e, t, {
+function wDe(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 gDe(e) {
- var t = _De(e, "string");
+function TDe(e) {
+ var t = EDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function _De(e, t) {
+function EDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60024,16 +60275,16 @@ function _De(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function vDe(e, t) {
+function DDe(e, t) {
if (e == null) return {};
- var n, r, i = yDe(e, t);
+ var n, r, i = ODe(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 yDe(e, t) {
+function ODe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60042,20 +60293,20 @@ function yDe(e, t) {
}
return n;
}
-function bDe() {
- var e = Q(yG), t = Q(xG), n = ZR(), r = Q(bG), i = Q(fZ), a = uH(), o = rH(), s = Q((e) => e.rootProps.className);
+function kDe() {
+ var e = Q(yG), t = Q(xG), n = QR(), r = Q(bG), i = Q(dZ), a = _H(), o = uH(), s = Q((e) => e.rootProps.className);
(0, R.useEffect)(() => {
- if (e == null) return mR;
+ if (e == null) return hR;
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 = vDe(d, mDe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = ZZ(ZZ({}, m), {}, {
+ var d = c.payload.coordinate, { x: f, y: p } = d, m = DDe(d, CDe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = XZ(XZ({}, m), {}, {
x: o.x + (_ ? (f - h) / _ : 0) * o.width,
y: o.y + (v ? (p - g) / v : 0) * o.height
});
- n(ZZ(ZZ({}, c), {}, { payload: ZZ(ZZ({}, c.payload), {}, { coordinate: y }) }));
+ n(XZ(XZ({}, c), {}, { payload: XZ(XZ({}, c.payload), {}, { coordinate: y }) }));
} else n(c);
return;
}
@@ -60098,8 +60349,8 @@ function bDe() {
}
}
};
- return UZ.on(WZ, s), () => {
- UZ.off(WZ, s);
+ return HZ.on(UZ, s), () => {
+ HZ.off(UZ, s);
};
}, [
s,
@@ -60112,15 +60363,15 @@ function bDe() {
o
]);
}
-function xDe() {
- var e = Q(yG), t = Q(xG), n = ZR();
+function ADe() {
+ var e = Q(yG), t = Q(xG), n = QR();
(0, R.useEffect)(() => {
- if (e == null) return mR;
+ if (e == null) return hR;
var r = (r, i, a) => {
- t !== a && e === r && n(dDe(i));
+ t !== a && e === r && n(bDe(i));
};
- return UZ.on(GZ, r), () => {
- UZ.off(GZ, r);
+ return HZ.on(WZ, r), () => {
+ HZ.off(WZ, r);
};
}, [
n,
@@ -60128,14 +60379,14 @@ function xDe() {
e
]);
}
-function SDe() {
- var e = ZR();
+function jDe() {
+ var e = QR();
(0, R.useEffect)(() => {
- e(lDe());
- }, [e]), bDe(), xDe();
+ e(vDe());
+ }, [e]), kDe(), ADe();
}
-function CDe(e, t, n, r, i, a) {
- var o = Q((n) => PEe(n, e, t)), s = Q(vEe), c = Q(xG), l = Q(yG), u = Q(bG), d = Q(uDe)?.active, f = rH();
+function MDe(e, t, n, r, i, a) {
+ var o = Q((n) => UEe(n, e, t)), s = Q(DEe), c = Q(xG), l = Q(yG), u = Q(bG), d = Q(yDe)?.active, f = uH();
(0, R.useEffect)(() => {
if (!d && l != null && c != null) {
var e = VX({
@@ -60147,7 +60398,7 @@ function CDe(e, t, n, r, i, a) {
sourceViewBox: f,
graphicalItemId: s
});
- UZ.emit(WZ, l, e, c);
+ HZ.emit(UZ, l, e, c);
}
}, [
d,
@@ -60165,7 +60416,7 @@ function CDe(e, t, n, r, i, a) {
}
//#endregion
//#region node_modules/recharts/es6/component/Tooltip.js
-function QZ(e, t) {
+function ZZ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -60175,30 +60426,30 @@ function QZ(e, t) {
}
return n;
}
-function $Z(e) {
+function QZ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? QZ(Object(n), !0).forEach(function(t) {
- wDe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : QZ(Object(n)).forEach(function(t) {
+ t % 2 ? ZZ(Object(n), !0).forEach(function(t) {
+ NDe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ZZ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function wDe(e, t, n) {
- return (t = TDe(t)) in e ? Object.defineProperty(e, t, {
+function NDe(e, t, n) {
+ return (t = PDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function TDe(e) {
- var t = EDe(e, "string");
+function PDe(e) {
+ var t = FDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function EDe(e, t) {
+function FDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60208,13 +60459,13 @@ function EDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function DDe(e) {
+function IDe(e) {
return e.dataKey;
}
-function ODe(e, t) {
- return /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ R.createElement(e, t) : /*#__PURE__*/ R.createElement(Pbe, t);
+function LDe(e, t) {
+ return /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ R.createElement(e, t) : /*#__PURE__*/ R.createElement(Hbe, t);
}
-var eQ = [], kDe = {
+var $Z = [], RDe = {
allowEscapeViewBox: {
x: !1,
y: !1
@@ -60240,10 +60491,10 @@ var eQ = [], kDe = {
useTranslate3d: !1,
wrapperStyle: {}
};
-function ADe(e) {
- var t = wR(e, kDe), { 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 = ZR(), S = typeof v == "number" ? String(v) : v;
+function zDe(e) {
+ var t = TR(e, RDe), { 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 = QR(), S = typeof v == "number" ? String(v) : v;
(0, R.useEffect)(() => {
- x(GTe({
+ x($Te({
shared: g,
trigger: _,
axisId: b,
@@ -60258,20 +60509,20 @@ function ADe(e) {
n,
S
]);
- var C = rH(), w = $U(), T = BTe(g), { activeIndex: E, isActive: D } = Q((e) => LEe(e, T, _, S)) ?? {}, O = Q((e) => IEe(e, T, _, S)), k = Q((e) => PZ(e, T, _, S)), A = Q((e) => FEe(e, T, _, S)), j = O, M = oDe(), N = n ?? D ?? !1, [P, ee] = cz([j, N]), F = T === "axis" ? k : void 0;
- CDe(T, _, A, F, E, N);
+ var C = uH(), w = $U(), T = JTe(g), { activeIndex: E, isActive: D } = Q((e) => KEe(e, T, _, S)) ?? {}, O = Q((e) => GEe(e, T, _, S)), k = Q((e) => NZ(e, T, _, S)), A = Q((e) => WEe(e, T, _, S)), j = O, M = hDe(), N = n ?? D ?? !1, [P, ee] = lz([j, N]), F = T === "axis" ? k : void 0;
+ MDe(T, _, A, F, E, N);
var I = y ?? M;
if (I == null || C == null || T == null) return null;
- var te = j ?? eQ;
- N || (te = eQ), s && te.length && (te = YR(te.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, DDe));
- var ne = te.length > 0, re = $Z($Z({}, t), {}, {
+ var te = j ?? $Z;
+ N || (te = $Z), s && te.length && (te = XR(te.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, IDe));
+ var ne = te.length > 0, re = QZ(QZ({}, t), {}, {
payload: te,
label: F,
active: N,
activeIndex: E,
coordinate: A,
accessibilityLayer: w
- }), ie = /*#__PURE__*/ R.createElement(Wbe, {
+ }), ie = /*#__PURE__*/ R.createElement(Qbe, {
allowEscapeViewBox: r,
animationDuration: i,
animationEasing: a,
@@ -60288,8 +60539,8 @@ function ADe(e) {
lastBoundingBox: P,
innerRef: ee,
hasPortalFromProps: !!y
- }, ODe(o, re));
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ (0, Re.createPortal)(ie, I), N && /*#__PURE__*/ R.createElement(aDe, {
+ }, LDe(o, re));
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ (0, Re.createPortal)(ie, I), N && /*#__PURE__*/ R.createElement(mDe, {
cursor: h,
tooltipEventType: T,
coordinate: A,
@@ -60299,23 +60550,23 @@ function ADe(e) {
}
//#endregion
//#region node_modules/recharts/es6/component/Cell.js
-var tQ = (e) => null;
-tQ.displayName = "Cell";
+var eQ = (e) => null;
+eQ.displayName = "Cell";
//#endregion
//#region node_modules/recharts/es6/util/LRUCache.js
-function jDe(e, t, n) {
- return (t = MDe(t)) in e ? Object.defineProperty(e, t, {
+function BDe(e, t, n) {
+ return (t = VDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function MDe(e) {
- var t = NDe(e, "string");
+function VDe(e) {
+ var t = HDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function NDe(e, t) {
+function HDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60325,9 +60576,9 @@ function NDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var PDe = class {
+var UDe = class {
constructor(e) {
- jDe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
+ BDe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
}
get(e) {
var t = this.cache.get(e);
@@ -60350,7 +60601,7 @@ var PDe = class {
};
//#endregion
//#region node_modules/recharts/es6/util/DOMUtils.js
-function nQ(e, t) {
+function tQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -60360,30 +60611,30 @@ function nQ(e, t) {
}
return n;
}
-function FDe(e) {
+function WDe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? nQ(Object(n), !0).forEach(function(t) {
- IDe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : nQ(Object(n)).forEach(function(t) {
+ t % 2 ? tQ(Object(n), !0).forEach(function(t) {
+ GDe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tQ(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 GDe(e, t, n) {
+ return (t = KDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function LDe(e) {
- var t = RDe(e, "string");
+function KDe(e) {
+ var t = qDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function RDe(e, t) {
+function qDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60393,10 +60644,10 @@ function RDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var rQ = FDe({}, {
+var nQ = WDe({}, {
cacheSize: 2e3,
enableCache: !0
-}), iQ = new PDe(rQ.cacheSize), zDe = {
+}), rQ = new UDe(nQ.cacheSize), JDe = {
position: "absolute",
top: "-20000px",
left: 0,
@@ -60404,14 +60655,14 @@ var rQ = FDe({}, {
margin: 0,
border: "none",
whiteSpace: "pre"
-}, aQ = "recharts_measurement_span";
-function BDe(e, t) {
+}, iQ = "recharts_measurement_span";
+function YDe(e, t) {
return `${e}|${t.fontSize || ""}|${t.fontFamily || ""}|${t.fontWeight || ""}|${t.fontStyle || ""}|${t.letterSpacing || ""}|${t.textTransform || ""}`;
}
-var oQ = (e, t) => {
+var aQ = (e, t) => {
try {
- var n = document.getElementById(aQ);
- n || (n = document.createElement("span"), n.setAttribute("id", aQ), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, zDe, t), n.textContent = `${e}`;
+ var n = document.getElementById(iQ);
+ n || (n = document.createElement("span"), n.setAttribute("id", iQ), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, JDe, t), n.textContent = `${e}`;
var r = n.getBoundingClientRect();
return {
width: r.width,
@@ -60423,31 +60674,31 @@ var oQ = (e, t) => {
height: 0
};
}
-}, sQ = function(e) {
+}, oQ = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
if (e == null || YU.isSsr) return {
width: 0,
height: 0
};
- if (!rQ.enableCache) return oQ(e, t);
- var n = BDe(e, t), r = iQ.get(n);
+ if (!nQ.enableCache) return aQ(e, t);
+ var n = YDe(e, t), r = rQ.get(n);
if (r) return r;
- var i = oQ(e, t);
- return iQ.set(n, i), i;
-}, cQ;
-function VDe(e, t, n) {
- return (t = HDe(t)) in e ? Object.defineProperty(e, t, {
+ var i = aQ(e, t);
+ return rQ.set(n, i), i;
+}, sQ;
+function XDe(e, t, n) {
+ return (t = ZDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function HDe(e) {
- var t = UDe(e, "string");
+function ZDe(e) {
+ var t = QDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function UDe(e, t) {
+function QDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60457,7 +60708,7 @@ function UDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var lQ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, uQ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, WDe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, GDe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, KDe = {
+var cQ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, lQ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, $De = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, eOe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, tOe = {
cm: 96 / 2.54,
mm: 96 / 25.4,
pt: 96 / 72,
@@ -60465,7 +60716,7 @@ var lQ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, uQ = /(
in: 96,
Q: 96 / 101.6,
px: 1
-}, qDe = [
+}, nOe = [
"cm",
"mm",
"pt",
@@ -60474,20 +60725,20 @@ var lQ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, uQ = /(
"Q",
"px"
];
-function JDe(e) {
- return qDe.includes(e);
+function rOe(e) {
+ return nOe.includes(e);
}
-var dQ = "NaN";
-function YDe(e, t) {
- return e * KDe[t];
+var uQ = "NaN";
+function iOe(e, t) {
+ return e * tOe[t];
}
-var fQ = class e {
+var dQ = class e {
static parse(t) {
- var [, n, r] = GDe.exec(t) ?? [];
+ var [, n, r] = eOe.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, rR(e) && (this.unit = ""), t !== "" && !WDe.test(t) && (this.num = NaN, this.unit = ""), JDe(t) && (this.num = YDe(e, t), this.unit = "px");
+ this.num = e, this.unit = t, this.num = e, this.unit = t, iR(e) && (this.unit = ""), t !== "" && !$De.test(t) && (this.num = NaN, this.unit = ""), rOe(t) && (this.num = iOe(e, t), this.unit = "px");
}
add(t) {
return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");
@@ -60505,50 +60756,50 @@ var fQ = class e {
return `${this.num}${this.unit}`;
}
isNaN() {
- return rR(this.num);
+ return iR(this.num);
}
};
-cQ = fQ, VDe(fQ, "NaN", new cQ(NaN, ""));
-function pQ(e) {
- if (e == null || e.includes(dQ)) return dQ;
+sQ = dQ, XDe(dQ, "NaN", new sQ(NaN, ""));
+function fQ(e) {
+ if (e == null || e.includes(uQ)) return uQ;
for (var t = e; t.includes("*") || t.includes("/");) {
- var [, n, r, i] = lQ.exec(t) ?? [], a = fQ.parse(n ?? ""), o = fQ.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);
- if (s.isNaN()) return dQ;
- t = t.replace(lQ, s.toString());
+ var [, n, r, i] = cQ.exec(t) ?? [], a = dQ.parse(n ?? ""), o = dQ.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);
+ if (s.isNaN()) return uQ;
+ t = t.replace(cQ, s.toString());
}
for (; t.includes("+") || /.-\d+(?:\.\d+)?/.test(t);) {
- var [, c, l, u] = uQ.exec(t) ?? [], d = fQ.parse(c ?? ""), f = fQ.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);
- if (p.isNaN()) return dQ;
- t = t.replace(uQ, p.toString());
+ var [, c, l, u] = lQ.exec(t) ?? [], d = dQ.parse(c ?? ""), f = dQ.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);
+ if (p.isNaN()) return uQ;
+ t = t.replace(lQ, p.toString());
}
return t;
}
-var mQ = /\(([^()]*)\)/;
-function XDe(e) {
- for (var t = e, n; (n = mQ.exec(t)) != null;) {
+var pQ = /\(([^()]*)\)/;
+function aOe(e) {
+ for (var t = e, n; (n = pQ.exec(t)) != null;) {
var [, r] = n;
- t = t.replace(mQ, pQ(r));
+ t = t.replace(pQ, fQ(r));
}
return t;
}
-function ZDe(e) {
+function oOe(e) {
var t = e.replace(/\s+/g, "");
- return t = XDe(t), t = pQ(t), t;
+ return t = aOe(t), t = fQ(t), t;
}
-function QDe(e) {
+function sOe(e) {
try {
- return ZDe(e);
+ return oOe(e);
} catch {
- return dQ;
+ return uQ;
}
}
-function hQ(e) {
- var t = QDe(e.slice(5, -1));
- return t === dQ ? "" : t;
+function mQ(e) {
+ var t = sOe(e.slice(5, -1));
+ return t === uQ ? "" : t;
}
//#endregion
//#region node_modules/recharts/es6/component/Text.js
-var $De = [
+var cOe = [
"x",
"y",
"lineHeight",
@@ -60557,32 +60808,32 @@ var $De = [
"scaleToFit",
"textAnchor",
"verticalAnchor"
-], eOe = [
+], lOe = [
"dx",
"dy",
"angle",
"className",
"breakAll"
];
-function gQ() {
- return gQ = Object.assign ? Object.assign.bind() : function(e) {
+function hQ() {
+ return hQ = 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;
- }, gQ.apply(null, arguments);
+ }, hQ.apply(null, arguments);
}
-function _Q(e, t) {
+function gQ(e, t) {
if (e == null) return {};
- var n, r, i = tOe(e, t);
+ var n, r, i = uOe(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 tOe(e, t) {
+function uOe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60591,28 +60842,28 @@ function tOe(e, t) {
}
return n;
}
-var vQ = /[ \f\n\r\t\v\u2028\u2029]+/, yQ = (e) => {
+var _Q = /[ \f\n\r\t\v\u2028\u2029]+/, vQ = (e) => {
var { children: t, breakAll: n, style: r } = e;
try {
var i = [];
- return dR(t) || (i = n ? t.toString().split("") : t.toString().split(vQ)), {
+ return fR(t) || (i = n ? t.toString().split("") : t.toString().split(_Q)), {
wordsWithComputedWidth: i.map((e) => ({
word: e,
- width: sQ(e, r).width
+ width: oQ(e, r).width
})),
- spaceWidth: n ? 0 : sQ("\xA0", r).width
+ spaceWidth: n ? 0 : oQ("\xA0", r).width
};
} catch {
return null;
}
};
-function bQ(e) {
+function yQ(e) {
return e === "start" || e === "middle" || e === "end" || e === "inherit";
}
-function nOe(e) {
- return dR(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
+function dOe(e) {
+ return fR(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
}
-var xQ = (e, t, n, r) => e.reduce((e, i) => {
+var bQ = (e, t, n, r) => e.reduce((e, i) => {
var { word: a, width: o } = i, s = e[e.length - 1];
if (s && o != null && (t == null || r || s.width + o + n < Number(t))) s.words.push(a), s.width += o + n;
else {
@@ -60623,20 +60874,20 @@ var xQ = (e, t, n, r) => e.reduce((e, i) => {
e.push(c);
}
return e;
-}, []), SQ = (e) => e.reduce((e, t) => e.width > t.width ? e : t), rOe = "…", CQ = (e, t, n, r, i, a, o, s) => {
- var c = yQ({
+}, []), xQ = (e) => e.reduce((e, t) => e.width > t.width ? e : t), fOe = "…", SQ = (e, t, n, r, i, a, o, s) => {
+ var c = vQ({
breakAll: n,
style: r,
- children: e.slice(0, t) + rOe
+ children: e.slice(0, t) + fOe
});
if (!c) return [!1, []];
- var l = xQ(c.wordsWithComputedWidth, a, o, s);
- return [l.length > i || SQ(l).width > Number(a), l];
-}, iOe = (e, t, n, r, i) => {
- var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = xQ(t, r, n, i);
- if (!l || i || !(d.length > a || SQ(d).width > Number(r))) return d;
+ var l = bQ(c.wordsWithComputedWidth, a, o, s);
+ return [l.length > i || xQ(l).width > Number(a), l];
+}, pOe = (e, t, n, r, i) => {
+ var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = bQ(t, r, n, i);
+ if (!l || i || !(d.length > a || xQ(d).width > Number(r))) return d;
for (var f = 0, p = u.length - 1, m = 0, h; f <= p && m <= u.length - 1;) {
- var g = Math.floor((f + p) / 2), [_, v] = CQ(u, g - 1, c, s, a, r, n, i), [y] = CQ(u, g, c, s, a, r, n, i);
+ var g = Math.floor((f + p) / 2), [_, v] = SQ(u, g - 1, c, s, a, r, n, i), [y] = SQ(u, g, c, s, a, r, n, i);
if (!_ && !y && (f = g + 1), _ && y && (p = g - 1), !_ && y) {
h = v;
break;
@@ -60644,13 +60895,13 @@ var xQ = (e, t, n, r) => e.reduce((e, i) => {
m++;
}
return h || d;
-}, wQ = (e) => [{
- words: dR(e) ? [] : e.toString().split(vQ),
+}, CQ = (e) => [{
+ words: fR(e) ? [] : e.toString().split(_Q),
width: void 0
-}], aOe = (e) => {
+}], mOe = (e) => {
var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;
if ((t || n) && !YU.isSsr) {
- var s, c, l = yQ({
+ var s, c, l = vQ({
breakAll: a,
children: r,
style: i
@@ -60658,28 +60909,28 @@ var xQ = (e, t, n, r) => e.reduce((e, i) => {
if (l) {
var { wordsWithComputedWidth: u, spaceWidth: d } = l;
s = u, c = d;
- } else return wQ(r);
- return iOe({
+ } else return CQ(r);
+ return pOe({
breakAll: a,
children: r,
maxLines: o,
style: i
}, s, c, t, !!n);
}
- return wQ(r);
-}, TQ = "#808080", oOe = {
+ return CQ(r);
+}, wQ = "#808080", hOe = {
angle: 0,
breakAll: !1,
capHeight: "0.71em",
- fill: TQ,
+ fill: wQ,
lineHeight: "1em",
scaleToFit: !1,
textAnchor: "start",
verticalAnchor: "end",
x: 0,
y: 0
-}, EQ = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = wR(e, oOe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = _Q(n, $De), f = (0, R.useMemo)(() => aOe({
+}, TQ = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = TR(e, hOe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = gQ(n, cOe), f = (0, R.useMemo)(() => mOe({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -60693,32 +60944,32 @@ var xQ = (e, t, n, r) => e.reduce((e, i) => {
c,
d.style,
d.width
- ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = _Q(d, eOe);
- if (!aR(r) || !aR(i) || f.length === 0) return null;
+ ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = gQ(d, lOe);
+ if (!oR(r) || !oR(i) || f.length === 0) return null;
var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);
- if (!dV(y) || !dV(b)) return null;
+ if (!fV(y) || !fV(b)) return null;
var x;
switch (u) {
case "start":
- x = hQ(`calc(${o})`);
+ x = mQ(`calc(${o})`);
break;
case "middle":
- x = hQ(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);
+ x = mQ(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);
break;
- default: x = hQ(`calc(${f.length - 1} * -${a})`);
+ default: x = mQ(`calc(${f.length - 1} * -${a})`);
}
var S = [], C = f[0];
if (c && C != null) {
var w = C.width, { width: T } = d;
S.push(`scale(${Z(T) && Z(w) ? T / w : 1})`);
}
- return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ R.createElement("text", gQ({}, XI(v), {
+ return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ R.createElement("text", hQ({}, ZI(v), {
ref: t,
x: y,
y: b,
className: Mu("recharts-text", g),
textAnchor: l,
- fill: s.includes("url") ? TQ : s
+ fill: s.includes("url") ? wQ : s
}), f.map((e, t) => {
var n = e.words.join(_ ? "" : " ");
return /*#__PURE__*/ R.createElement("tspan", {
@@ -60728,10 +60979,10 @@ var xQ = (e, t, n, r) => e.reduce((e, i) => {
}, n);
}));
});
-EQ.displayName = "Text";
+TQ.displayName = "Text";
//#endregion
//#region node_modules/recharts/es6/cartesian/getCartesianPosition.js
-function DQ(e, t) {
+function EQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -60741,30 +60992,30 @@ function DQ(e, t) {
}
return n;
}
-function OQ(e) {
+function DQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? DQ(Object(n), !0).forEach(function(t) {
- sOe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : DQ(Object(n)).forEach(function(t) {
+ t % 2 ? EQ(Object(n), !0).forEach(function(t) {
+ gOe(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 sOe(e, t, n) {
- return (t = cOe(t)) in e ? Object.defineProperty(e, t, {
+function gOe(e, t, n) {
+ return (t = _Oe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function cOe(e) {
- var t = lOe(e, "string");
+function _Oe(e) {
+ var t = vOe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function lOe(e, t) {
+function vOe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60774,8 +61025,8 @@ function lOe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var uOe = (e) => {
- var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = nH(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 yOe = (e) => {
+ var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = lH(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,
@@ -60816,68 +61067,68 @@ var uOe = (e) => {
width: m,
height: c
} : {};
- return n === "insideLeft" ? OQ({
+ return n === "insideLeft" ? DQ({
x: p + x,
y: s + c / 2,
horizontalAnchor: C,
verticalAnchor: "middle"
- }, k) : n === "insideRight" ? OQ({
+ }, k) : n === "insideRight" ? DQ({
x: p + m - x,
y: s + c / 2,
horizontalAnchor: S,
verticalAnchor: "middle"
- }, k) : n === "insideTop" ? OQ({
+ }, k) : n === "insideTop" ? DQ({
x: d + l / 2,
y: s + _,
horizontalAnchor: "middle",
verticalAnchor: y
- }, k) : n === "insideBottom" ? OQ({
+ }, k) : n === "insideBottom" ? DQ({
x: f + u / 2,
y: s + c - _,
horizontalAnchor: "middle",
verticalAnchor: v
- }, k) : n === "insideTopLeft" ? OQ({
+ }, k) : n === "insideTopLeft" ? DQ({
x: d + x,
y: s + _,
horizontalAnchor: C,
verticalAnchor: y
- }, k) : n === "insideTopRight" ? OQ({
+ }, k) : n === "insideTopRight" ? DQ({
x: d + l - x,
y: s + _,
horizontalAnchor: S,
verticalAnchor: y
- }, k) : n === "insideBottomLeft" ? OQ({
+ }, k) : n === "insideBottomLeft" ? DQ({
x: f + x,
y: s + c - _,
horizontalAnchor: C,
verticalAnchor: v
- }, k) : n === "insideBottomRight" ? OQ({
+ }, k) : n === "insideBottomRight" ? DQ({
x: f + u - x,
y: s + c - _,
horizontalAnchor: S,
verticalAnchor: v
- }, k) : n && typeof n == "object" && (Z(n.x) || iR(n.x)) && (Z(n.y) || iR(n.y)) ? OQ({
- x: o + sR(n.x, m),
- y: s + sR(n.y, c),
+ }, k) : n && typeof n == "object" && (Z(n.x) || aR(n.x)) && (Z(n.y) || aR(n.y)) ? DQ({
+ x: o + cR(n.x, m),
+ y: s + cR(n.y, c),
horizontalAnchor: "end",
verticalAnchor: "end"
- }, k) : OQ({
+ }, k) : DQ({
x: h,
y: s + c / 2,
horizontalAnchor: "middle",
verticalAnchor: "middle"
}, k);
-}, dOe = ["labelRef"], fOe = ["content"];
-function kQ(e, t) {
+}, bOe = ["labelRef"], xOe = ["content"];
+function OQ(e, t) {
if (e == null) return {};
- var n, r, i = pOe(e, t);
+ var n, r, i = SOe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function pOe(e, t) {
+function SOe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60886,7 +61137,7 @@ function pOe(e, t) {
}
return n;
}
-function AQ(e, t) {
+function kQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -60896,30 +61147,30 @@ function AQ(e, t) {
}
return n;
}
-function jQ(e) {
+function AQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? AQ(Object(n), !0).forEach(function(t) {
- mOe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : AQ(Object(n)).forEach(function(t) {
+ t % 2 ? kQ(Object(n), !0).forEach(function(t) {
+ COe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : kQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function mOe(e, t, n) {
- return (t = hOe(t)) in e ? Object.defineProperty(e, t, {
+function COe(e, t, n) {
+ return (t = wOe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function hOe(e) {
- var t = gOe(e, "string");
+function wOe(e) {
+ var t = TOe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function gOe(e, t) {
+function TOe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60929,16 +61180,16 @@ function gOe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function MQ() {
- return MQ = Object.assign ? Object.assign.bind() : function(e) {
+function jQ() {
+ return jQ = 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;
- }, MQ.apply(null, arguments);
+ }, jQ.apply(null, arguments);
}
-var NQ = /*#__PURE__*/ (0, R.createContext)(null), PQ = (e) => {
+var MQ = /*#__PURE__*/ (0, R.createContext)(null), NQ = (e) => {
var { x: t, y: n, upperWidth: r, lowerWidth: i, width: a, height: o, children: s } = e, c = (0, R.useMemo)(() => ({
x: t,
y: n,
@@ -60954,11 +61205,11 @@ var NQ = /*#__PURE__*/ (0, R.createContext)(null), PQ = (e) => {
a,
o
]);
- return /*#__PURE__*/ R.createElement(NQ.Provider, { value: c }, s);
-}, FQ = () => {
- var e = (0, R.useContext)(NQ), t = rH();
- return e || (t ? nH(t) : void 0);
-}, IQ = /*#__PURE__*/ (0, R.createContext)(null), _Oe = (e) => {
+ return /*#__PURE__*/ R.createElement(MQ.Provider, { value: c }, s);
+}, PQ = () => {
+ var e = (0, R.useContext)(MQ), t = uH();
+ return e || (t ? lH(t) : void 0);
+}, FQ = /*#__PURE__*/ (0, R.createContext)(null), EOe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, clockWise: s, children: c } = e, l = (0, R.useMemo)(() => ({
cx: t,
cy: n,
@@ -60976,15 +61227,15 @@ var NQ = /*#__PURE__*/ (0, R.createContext)(null), PQ = (e) => {
o,
s
]);
- return /*#__PURE__*/ R.createElement(IQ.Provider, { value: l }, c);
-}, LQ = () => {
- var e = (0, R.useContext)(IQ), t = Q(zG);
+ return /*#__PURE__*/ R.createElement(FQ.Provider, { value: l }, c);
+}, IQ = () => {
+ var e = (0, R.useContext)(FQ), t = Q(zG);
return e || t;
-}, vOe = (e) => {
- var { value: t, formatter: n } = e, r = dR(e.children) ? t : e.children;
+}, DOe = (e) => {
+ var { value: t, formatter: n } = e, r = fR(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
-}, RQ = (e) => e != null && typeof e == "function", yOe = (e, t) => nR(t - e) * Math.min(Math.abs(t - e), 360), bOe = (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 = yOe(d, f), g = h >= 0 ? 1 : -1, _, v;
+}, LQ = (e) => e != null && typeof e == "function", OOe = (e, t) => rR(t - e) * Math.min(Math.abs(t - e), 360), kOe = (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 = OOe(d, f), g = h >= 0 ? 1 : -1, _, v;
switch (t) {
case "insideStart":
_ = d + g * a, v = p;
@@ -61000,15 +61251,15 @@ var NQ = /*#__PURE__*/ (0, R.createContext)(null), PQ = (e) => {
v = h <= 0 ? v : !v;
var y = VW(s, c, m, _), b = VW(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
A${m},${m},0,1,${+!v},
- ${b.x},${b.y}`, S = dR(e.id) ? oR("recharts-radial-line-") : e.id;
- return /*#__PURE__*/ R.createElement("text", MQ({}, r, {
+ ${b.x},${b.y}`, S = fR(e.id) ? sR("recharts-radial-line-") : e.id;
+ return /*#__PURE__*/ R.createElement("text", jQ({}, r, {
dominantBaseline: "central",
className: Mu("recharts-radial-bar-label", o)
}), /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("path", {
id: S,
d: x
})), /*#__PURE__*/ R.createElement("textPath", { xlinkHref: `#${S}` }, n));
-}, xOe = (e, t, n) => {
+}, AOe = (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 } = VW(r, i, o + t, l);
@@ -61044,15 +61295,15 @@ var NQ = /*#__PURE__*/ (0, R.createContext)(null), PQ = (e) => {
textAnchor: "middle",
verticalAnchor: "middle"
};
-}, zQ = (e) => e != null && "cx" in e && Z(e.cx), SOe = {
+}, RQ = (e) => e != null && "cx" in e && Z(e.cx), jOe = {
angle: 0,
offset: 5,
zIndex: SG.label,
position: "middle",
textBreakAll: !1
};
-function COe(e) {
- if (!zQ(e)) return e;
+function MOe(e) {
+ if (!RQ(e)) return e;
var { cx: t, cy: n, outerRadius: r } = e, i = r * 2;
return {
x: t - r,
@@ -61063,100 +61314,100 @@ function COe(e) {
height: i
};
}
-function BQ(e) {
- var t = wR(e, SOe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = LQ(), f = FQ(), p = n == null ? i === "center" ? f : d ?? f : zQ(n) ? n : nH(n), m, h, g = COe(p);
- if (!p || dR(a) && dR(o) && !/*#__PURE__*/ (0, R.isValidElement)(s) && typeof s != "function") return null;
- var _ = jQ(jQ({}, t), {}, { viewBox: p });
+function zQ(e) {
+ var t = TR(e, jOe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = IQ(), f = PQ(), p = n == null ? i === "center" ? f : d ?? f : RQ(n) ? n : lH(n), m, h, g = MOe(p);
+ if (!p || fR(a) && fR(o) && !/*#__PURE__*/ (0, R.isValidElement)(s) && typeof s != "function") return null;
+ var _ = AQ(AQ({}, t), {}, { viewBox: p });
if (/*#__PURE__*/ (0, R.isValidElement)(s)) {
- var { labelRef: v } = _, y = kQ(_, dOe);
+ var { labelRef: v } = _, y = OQ(_, bOe);
return /*#__PURE__*/ (0, R.cloneElement)(s, y);
}
if (typeof s == "function") {
- var { content: b } = _, x = kQ(_, fOe);
+ var { content: b } = _, x = OQ(_, xOe);
if (m = /*#__PURE__*/ (0, R.createElement)(s, x), /*#__PURE__*/ (0, R.isValidElement)(m)) return m;
- } else m = vOe(t);
- var S = XI(t);
- if (zQ(p)) {
- if (i === "insideStart" || i === "insideEnd" || i === "end") return bOe(t, i, m, S, p);
- h = xOe(p, t.offset, t.position);
+ } else m = DOe(t);
+ var S = ZI(t);
+ if (RQ(p)) {
+ if (i === "insideStart" || i === "insideEnd" || i === "end") return kOe(t, i, m, S, p);
+ h = AOe(p, t.offset, t.position);
} else {
if (!g) return null;
- var C = uOe({
+ var C = yOe({
viewBox: g,
position: i,
offset: t.offset,
- parentViewBox: zQ(r) ? void 0 : r,
+ parentViewBox: RQ(r) ? void 0 : r,
clamp: !0
});
- h = jQ(jQ({
+ h = AQ(AQ({
x: C.x,
y: C.y,
textAnchor: C.horizontalAnchor,
verticalAnchor: C.verticalAnchor
}, C.width === void 0 ? {} : { width: C.width }), C.height === void 0 ? {} : { height: C.height });
}
- return /*#__PURE__*/ R.createElement(RZ, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(EQ, MQ({
+ return /*#__PURE__*/ R.createElement(LZ, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(TQ, jQ({
ref: u,
className: Mu("recharts-label", c)
}, S, h, {
- textAnchor: bQ(S.textAnchor) ? S.textAnchor : h.textAnchor,
+ textAnchor: yQ(S.textAnchor) ? S.textAnchor : h.textAnchor,
breakAll: l
}), m));
}
-BQ.displayName = "Label";
-var VQ = (e, t, n) => {
+zQ.displayName = "Label";
+var BQ = (e, t, n) => {
if (!e) return null;
var r = {
viewBox: t,
labelRef: n
};
- return e === !0 ? /*#__PURE__*/ R.createElement(BQ, MQ({ key: "label-implicit" }, r)) : aR(e) ? /*#__PURE__*/ R.createElement(BQ, MQ({
+ return e === !0 ? /*#__PURE__*/ R.createElement(zQ, jQ({ key: "label-implicit" }, r)) : oR(e) ? /*#__PURE__*/ R.createElement(zQ, jQ({
key: "label-implicit",
value: e
- }, r)) : /*#__PURE__*/ (0, R.isValidElement)(e) ? e.type === BQ ? /*#__PURE__*/ (0, R.cloneElement)(e, jQ({ key: "label-implicit" }, r)) : /*#__PURE__*/ R.createElement(BQ, MQ({
+ }, r)) : /*#__PURE__*/ (0, R.isValidElement)(e) ? e.type === zQ ? /*#__PURE__*/ (0, R.cloneElement)(e, AQ({ key: "label-implicit" }, r)) : /*#__PURE__*/ R.createElement(zQ, jQ({
key: "label-implicit",
content: e
- }, r)) : RQ(e) ? /*#__PURE__*/ R.createElement(BQ, MQ({
+ }, r)) : LQ(e) ? /*#__PURE__*/ R.createElement(zQ, jQ({
key: "label-implicit",
content: e
- }, r)) : e && typeof e == "object" ? /*#__PURE__*/ R.createElement(BQ, MQ({}, e, { key: "label-implicit" }, r)) : null;
+ }, r)) : e && typeof e == "object" ? /*#__PURE__*/ R.createElement(zQ, jQ({}, e, { key: "label-implicit" }, r)) : null;
};
-function HQ(e) {
+function VQ(e) {
var { label: t, labelRef: n } = e;
- return VQ(t, FQ(), n) || null;
+ return BQ(t, PQ(), n) || null;
}
-function wOe(e) {
+function NOe(e) {
var { label: t } = e;
- return VQ(t, LQ()) || null;
+ return BQ(t, IQ()) || null;
}
//#endregion
//#region node_modules/recharts/es6/component/LabelList.js
-var TOe = ["valueAccessor"], EOe = [
+var POe = ["valueAccessor"], FOe = [
"dataKey",
"clockWise",
"id",
"textBreakAll",
"zIndex"
];
-function UQ() {
- return UQ = Object.assign ? Object.assign.bind() : function(e) {
+function HQ() {
+ return HQ = 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;
- }, UQ.apply(null, arguments);
+ }, HQ.apply(null, arguments);
}
-function WQ(e, t) {
+function UQ(e, t) {
if (e == null) return {};
- var n, r, i = DOe(e, t);
+ var n, r, i = IOe(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 DOe(e, t) {
+function IOe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61165,21 +61416,21 @@ function DOe(e, t) {
}
return n;
}
-var OOe = (e) => {
+var LOe = (e) => {
var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;
- if (nOe(t)) return t;
-}, GQ = /*#__PURE__*/ (0, R.createContext)(void 0), KQ = GQ.Provider, qQ = /*#__PURE__*/ (0, R.createContext)(void 0), kOe = qQ.Provider;
-function AOe() {
- return (0, R.useContext)(GQ);
-}
-function jOe() {
- return (0, R.useContext)(qQ);
-}
-function JQ(e) {
- var { valueAccessor: t = OOe } = e, n = WQ(e, TOe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = WQ(n, EOe), l = AOe(), u = jOe(), d = l || u;
- return !d || !d.length ? null : /*#__PURE__*/ R.createElement(RZ, { zIndex: s ?? SG.label }, /*#__PURE__*/ R.createElement(eL, { className: "recharts-label-list" }, d.map((e, i) => {
- var s = dR(r) ? t(e, i) : hV(e.payload, r), l = dR(a) ? {} : { id: `${a}-${i}` };
- return /*#__PURE__*/ R.createElement(BQ, UQ({ key: `label-${i}` }, XI(e), c, l, {
+ if (dOe(t)) return t;
+}, WQ = /*#__PURE__*/ (0, R.createContext)(void 0), GQ = WQ.Provider, KQ = /*#__PURE__*/ (0, R.createContext)(void 0), ROe = KQ.Provider;
+function zOe() {
+ return (0, R.useContext)(WQ);
+}
+function BOe() {
+ return (0, R.useContext)(KQ);
+}
+function qQ(e) {
+ var { valueAccessor: t = LOe } = e, n = UQ(e, POe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = UQ(n, FOe), l = zOe(), u = BOe(), d = l || u;
+ return !d || !d.length ? null : /*#__PURE__*/ R.createElement(LZ, { zIndex: s ?? SG.label }, /*#__PURE__*/ R.createElement(tL, { className: "recharts-label-list" }, d.map((e, i) => {
+ var s = fR(r) ? t(e, i) : gV(e.payload, r), l = fR(a) ? {} : { id: `${a}-${i}` };
+ return /*#__PURE__*/ R.createElement(zQ, HQ({ key: `label-${i}` }, ZI(e), c, l, {
fill: n.fill ?? e.fill,
parentViewBox: e.parentViewBox,
value: s,
@@ -61190,41 +61441,41 @@ function JQ(e) {
}));
})));
}
-JQ.displayName = "LabelList";
-function YQ(e) {
+qQ.displayName = "LabelList";
+function JQ(e) {
var { label: t } = e;
- return t ? t === !0 ? /*#__PURE__*/ R.createElement(JQ, { key: "labelList-implicit" }) : /*#__PURE__*/ R.isValidElement(t) || RQ(t) ? /*#__PURE__*/ R.createElement(JQ, {
+ return t ? t === !0 ? /*#__PURE__*/ R.createElement(qQ, { key: "labelList-implicit" }) : /*#__PURE__*/ R.isValidElement(t) || LQ(t) ? /*#__PURE__*/ R.createElement(qQ, {
key: "labelList-implicit",
content: t
- }) : typeof t == "object" ? /*#__PURE__*/ R.createElement(JQ, UQ({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
+ }) : typeof t == "object" ? /*#__PURE__*/ R.createElement(qQ, HQ({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
}
//#endregion
//#region node_modules/recharts/es6/shape/Polygon.js
-var MOe = [
+var VOe = [
"points",
"className",
"baseLinePoints",
"connectNulls"
-], NOe;
-function XQ() {
- return XQ = Object.assign ? Object.assign.bind() : function(e) {
+], HOe;
+function YQ() {
+ return YQ = 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;
- }, XQ.apply(null, arguments);
+ }, YQ.apply(null, arguments);
}
-function POe(e, t) {
+function UOe(e, t) {
if (e == null) return {};
- var n, r, i = FOe(e, t);
+ var n, r, i = WOe(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 FOe(e, t) {
+function WOe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61233,23 +61484,23 @@ function FOe(e, t) {
}
return n;
}
-function IOe(e, t) {
+function GOe(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var ZQ = (e) => e != null && e.x === +e.x && e.y === +e.y, LOe = function() {
+var XQ = (e) => e != null && e.x === +e.x && e.y === +e.y, KOe = function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
e.forEach((e) => {
var n = t[t.length - 1];
- ZQ(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
+ XQ(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
});
var n = e[0], r = t[t.length - 1];
- ZQ(n) && r && r.push(n);
+ XQ(n) && r && r.push(n);
var i = t[t.length - 1];
return i && i.length <= 0 && (t = t.slice(0, -1)), t;
-}, QQ = (e, t) => {
- var n = LOe(e);
+}, ZQ = (e, t) => {
+ var n = KOe(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
- var r = n.map((e) => e.reduce((e, t, n) => tR(NOe ||= IOe([
+ var r = n.map((e) => e.reduce((e, t, n) => nR(HOe ||= GOe([
"",
"",
"",
@@ -61257,29 +61508,29 @@ var ZQ = (e) => e != null && e.x === +e.x && e.y === +e.y, LOe = function() {
""
]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");
return n.length === 1 ? `${r}Z` : r;
-}, ROe = (e, t, n) => {
- var r = QQ(e, n);
- return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${QQ(Array.from(t).reverse(), n).slice(1)}`;
-}, $Q = (e) => {
- var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = POe(e, MOe);
+}, qOe = (e, t, n) => {
+ var r = ZQ(e, n);
+ return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${ZQ(Array.from(t).reverse(), n).slice(1)}`;
+}, QQ = (e) => {
+ var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = UOe(e, VOe);
if (!t || !t.length) return null;
var o = Mu("recharts-polygon", n);
if (r && r.length) {
- var s = a.stroke && a.stroke !== "none", c = ROe(t, r, i);
- return /*#__PURE__*/ R.createElement("g", { className: o }, /*#__PURE__*/ R.createElement("path", XQ({}, XI(a), {
+ var s = a.stroke && a.stroke !== "none", c = qOe(t, r, i);
+ return /*#__PURE__*/ R.createElement("g", { className: o }, /*#__PURE__*/ R.createElement("path", YQ({}, ZI(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
d: c
- })), s ? /*#__PURE__*/ R.createElement("path", XQ({}, XI(a), {
+ })), s ? /*#__PURE__*/ R.createElement("path", YQ({}, ZI(a), {
fill: "none",
- d: QQ(t, i)
- })) : null, s ? /*#__PURE__*/ R.createElement("path", XQ({}, XI(a), {
+ d: ZQ(t, i)
+ })) : null, s ? /*#__PURE__*/ R.createElement("path", YQ({}, ZI(a), {
fill: "none",
- d: QQ(r, i)
+ d: ZQ(r, i)
})) : null);
}
- var l = QQ(t, i);
- return /*#__PURE__*/ R.createElement("path", XQ({}, XI(a), {
+ var l = ZQ(t, i);
+ return /*#__PURE__*/ R.createElement("path", YQ({}, ZI(a), {
fill: l.slice(-1) === "Z" ? a.fill : "none",
className: o,
d: l
@@ -61287,111 +61538,111 @@ var ZQ = (e) => e != null && e.x === +e.x && e.y === +e.y, LOe = function() {
};
//#endregion
//#region node_modules/recharts/es6/shape/Dot.js
-function e$() {
- return e$ = Object.assign ? Object.assign.bind() : function(e) {
+function $Q() {
+ return $Q = 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;
- }, e$.apply(null, arguments);
+ }, $Q.apply(null, arguments);
}
-var t$ = (e) => {
+var e$ = (e) => {
var { cx: t, cy: n, r, className: i } = e, a = Mu("recharts-dot", i);
- return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ R.createElement("circle", e$({}, JI(e), xR(e), {
+ return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ R.createElement("circle", $Q({}, YI(e), SR(e), {
className: a,
cx: t,
cy: n,
r
})) : null;
-}, n$ = (e) => e.graphicalItems.polarItems, r$ = $([
- n$,
+}, t$ = (e) => e.graphicalItems.polarItems, n$ = $([
+ t$,
bY,
$([BG, VG], CY)
-], TY), i$ = $([$([r$], kY), ZW], AY), a$ = $([
- i$,
+], TY), r$ = $([$([n$], kY), ZW], AY), i$ = $([
+ r$,
bY,
- r$
+ n$
], MY);
$([
- i$,
+ r$,
bY,
- r$
+ n$
], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({
- value: hV(e, t.dataKey ?? n.dataKey),
+ value: gV(e, t.dataKey ?? n.dataKey),
errorDomain: []
}))).filter(Boolean) : t?.dataKey == null ? e.map((e) => ({
value: e,
errorDomain: []
})) : e.map((e) => ({
- value: hV(e, t.dataKey),
+ value: gV(e, t.dataKey),
errorDomain: []
})));
-var o$ = () => void 0, s$ = $([
+var a$ = () => void 0, o$ = $([
bY,
- lH,
+ gH,
+ r$,
i$,
- a$,
gG,
BG,
$([
bY,
WY,
GY,
- o$,
+ a$,
$([
- i$,
- bY,
r$,
+ bY,
+ n$,
KY,
BG
], JY),
- o$,
- lH,
+ a$,
+ gH,
BG
], nX)
-], rX), c$ = $([
- s$,
+], rX), s$ = $([
+ o$,
xY,
aX
-], oX), zOe = $([aX, $([
+], oX), JOe = $([aX, $([
bY,
+ o$,
s$,
- c$,
BG
-], cX)], XG), l$ = (e, t, n) => {
+], cX)], XG), c$ = (e, t, n) => {
switch (t) {
case "angleAxis": return jG(e, n);
case "radiusAxis": return MG(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, u$ = (e, t, n) => {
+}, l$ = (e, t, n) => {
switch (t) {
- case "angleAxis": return ySe(e, n);
- case "radiusAxis": return bSe(e, n);
+ case "angleAxis": return DSe(e, n);
+ case "radiusAxis": return OSe(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, d$ = $([$([
- l$,
+}, u$ = $([$([
+ c$,
aX,
- zOe,
- u$
-], sY)], YG), f$ = $([
- lH,
- a$,
+ JOe,
+ l$
+], sY)], YG), d$ = $([
+ gH,
+ i$,
xY,
BG
-], pX), p$ = $([
- lH,
- l$,
- aX,
- d$,
+], pX), f$ = $([
+ gH,
c$,
+ aX,
u$,
+ s$,
+ l$,
wX,
- f$,
+ d$,
BG
-], EX), BOe = $([p$], (e) => {
+], EX), YOe = $([f$], (e) => {
if (e) {
var t = /* @__PURE__ */ new Map();
return e.forEach((e) => {
@@ -61399,19 +61650,19 @@ var o$ = () => void 0, s$ = $([
t.has(n) || t.set(n, e);
}), Array.from(t.values());
}
-}), VOe = $([
- lH,
- l$,
- d$,
+}), XOe = $([
+ gH,
+ c$,
u$,
+ l$,
wX,
- f$,
+ d$,
BG
-], OX), HOe = $([(e, t) => p$(e, "angleAxis", t, !1)], (e) => {
+], OX), ZOe = $([(e, t) => f$(e, "angleAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), UOe = $([(e, t) => p$(e, "radiusAxis", t, !1)], (e) => {
+}), QOe = $([(e, t) => f$(e, "radiusAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), WOe = [
+}), $Oe = [
"gridType",
"radialLines",
"angleAxisId",
@@ -61424,16 +61675,16 @@ var o$ = () => void 0, s$ = $([
"polarRadius",
"zIndex"
];
-function GOe(e, t) {
+function eke(e, t) {
if (e == null) return {};
- var n, r, i = KOe(e, t);
+ var n, r, i = tke(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function KOe(e, t) {
+function tke(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61442,16 +61693,16 @@ function KOe(e, t) {
}
return n;
}
-function m$() {
- return m$ = Object.assign ? Object.assign.bind() : function(e) {
+function p$() {
+ return p$ = 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;
- }, m$.apply(null, arguments);
+ }, p$.apply(null, arguments);
}
-function h$(e, t) {
+function m$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61461,30 +61712,30 @@ function h$(e, t) {
}
return n;
}
-function g$(e) {
+function h$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? h$(Object(n), !0).forEach(function(t) {
- qOe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h$(Object(n)).forEach(function(t) {
+ t % 2 ? m$(Object(n), !0).forEach(function(t) {
+ nke(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : m$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function qOe(e, t, n) {
- return (t = JOe(t)) in e ? Object.defineProperty(e, t, {
+function nke(e, t, n) {
+ return (t = rke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function JOe(e) {
- var t = YOe(e, "string");
+function rke(e) {
+ var t = ike(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function YOe(e, t) {
+function ike(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61494,69 +61745,69 @@ function YOe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var XOe = (e, t, n, r) => {
+var ake = (e, t, n, r) => {
var i = "";
return r.forEach((r, a) => {
var o = VW(t, n, e, r);
i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;
}), i += "Z", i;
-}, ZOe = (e) => {
+}, oke = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;
if (!a || !a.length || !o) return null;
- var s = g$({ stroke: "#ccc" }, JI(e));
+ var s = h$({ stroke: "#ccc" }, YI(e));
return /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {
var a = VW(t, n, r, e), o = VW(t, n, i, e);
- return /*#__PURE__*/ R.createElement("line", m$({ key: `line-${e}` }, s, {
+ return /*#__PURE__*/ R.createElement("line", p$({ key: `line-${e}` }, s, {
x1: a.x,
y1: a.y,
x2: o.x,
y2: o.y
}));
}));
-}, _$ = (e) => {
- var { cx: t, cy: n, radius: r } = e, i = g$({
+}, g$ = (e) => {
+ var { cx: t, cy: n, radius: r } = e, i = h$({
stroke: "#ccc",
fill: "none"
- }, JI(e));
- return /*#__PURE__*/ R.createElement("circle", m$({}, i, {
+ }, YI(e));
+ return /*#__PURE__*/ R.createElement("circle", p$({}, i, {
className: Mu("recharts-polar-grid-concentric-circle", e.className),
cx: t,
cy: n,
r
}));
-}, v$ = (e) => {
- var { radius: t } = e, n = g$({
+}, _$ = (e) => {
+ var { radius: t } = e, n = h$({
stroke: "#ccc",
fill: "none"
- }, JI(e));
- return /*#__PURE__*/ R.createElement("path", m$({}, n, {
+ }, YI(e));
+ return /*#__PURE__*/ R.createElement("path", p$({}, n, {
className: Mu("recharts-polar-grid-concentric-polygon", e.className),
- d: XOe(t, e.cx, e.cy, e.polarAngles)
+ d: ake(t, e.cx, e.cy, e.polarAngles)
}));
-}, QOe = (e) => {
+}, ske = (e) => {
var { polarRadius: t, gridType: n } = e;
if (!t || !t.length) return null;
var r = Math.max(...t), i = e.fill && e.fill !== "none";
- return /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ R.createElement(_$, m$({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ R.createElement(v$, m$({}, e, { radius: r })), t.map((t, r) => {
+ return /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ R.createElement(g$, p$({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ R.createElement(_$, p$({}, e, { radius: r })), t.map((t, r) => {
var i = r;
- return n === "circle" ? /*#__PURE__*/ R.createElement(_$, m$({ key: i }, e, {
+ return n === "circle" ? /*#__PURE__*/ R.createElement(g$, p$({ key: i }, e, {
fill: "none",
radius: t
- })) : /*#__PURE__*/ R.createElement(v$, m$({ key: i }, e, {
+ })) : /*#__PURE__*/ R.createElement(_$, p$({ key: i }, e, {
fill: "none",
radius: t
}));
}));
-}, $Oe = {
+}, cke = {
angleAxisId: 0,
radiusAxisId: 0,
gridType: "polygon",
radialLines: !0,
zIndex: SG.grid
-}, y$ = (e) => {
- var t = wR(e, $Oe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = GOe(t, WOe), m = Q(zG), h = Q((e) => HOe(e, i)), g = Q((e) => UOe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
+}, v$ = (e) => {
+ var t = TR(e, cke), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = eke(t, $Oe), m = Q(zG), h = Q((e) => ZOe(e, i)), g = Q((e) => QOe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
if (_ == null || v == null) return null;
- var y = g$({
+ var y = h$({
cx: m?.cx ?? o ?? 0,
cy: m?.cy ?? s ?? 0,
innerRadius: m?.innerRadius ?? c ?? 0,
@@ -61565,13 +61816,13 @@ var XOe = (e, t, n, r) => {
polarRadius: v,
zIndex: f
}, p), { outerRadius: b } = y;
- return b <= 0 ? null : /*#__PURE__*/ R.createElement(RZ, { zIndex: y.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ R.createElement(QOe, m$({
+ return b <= 0 ? null : /*#__PURE__*/ R.createElement(LZ, { zIndex: y.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ R.createElement(ske, p$({
gridType: n,
radialLines: r
}, y, {
polarAngles: _,
polarRadius: v
- })), /*#__PURE__*/ R.createElement(ZOe, m$({
+ })), /*#__PURE__*/ R.createElement(oke, p$({
gridType: n,
radialLines: r
}, y, {
@@ -61579,19 +61830,19 @@ var XOe = (e, t, n, r) => {
polarRadius: v
}))));
};
-y$.displayName = "PolarGrid";
+v$.displayName = "PolarGrid";
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toArray.mjs
-function b$(e) {
+function y$(e) {
return Array.isArray(e) ? e : Array.from(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
-function eke(e, t = kR) {
+function lke(e, t = AR) {
if (e == null) return;
- let n = b$(e);
+ let n = y$(e);
if (n.length === 0) return;
- let r = qR(t), i, a;
+ let r = JR(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);
@@ -61600,11 +61851,11 @@ function eke(e, t = kR) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
-function tke(e, t = kR) {
+function uke(e, t = AR) {
if (e == null) return;
- let n = b$(e);
+ let n = y$(e);
if (n.length === 0) return;
- let r = qR(t), i, a;
+ let r = JR(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);
@@ -61613,7 +61864,7 @@ function tke(e, t = kR) {
}
//#endregion
//#region node_modules/recharts/es6/state/polarAxisSlice.js
-var x$ = IB({
+var b$ = LB({
name: "polarAxis",
initialState: {
radiusAxis: {},
@@ -61621,47 +61872,47 @@ var x$ = IB({
},
reducers: {
addRadiusAxis(e, t) {
- e.radiusAxis[t.payload.id] = dU(t.payload);
+ e.radiusAxis[t.payload.id] = vU(t.payload);
},
removeRadiusAxis(e, t) {
delete e.radiusAxis[t.payload.id];
},
addAngleAxis(e, t) {
- e.angleAxis[t.payload.id] = dU(t.payload);
+ e.angleAxis[t.payload.id] = vU(t.payload);
},
removeAngleAxis(e, t) {
delete e.angleAxis[t.payload.id];
}
}
-}), { addRadiusAxis: nke, removeRadiusAxis: rke, addAngleAxis: ike, removeAngleAxis: ake } = x$.actions, oke = x$.reducer;
+}), { addRadiusAxis: dke, removeRadiusAxis: fke, addAngleAxis: pke, removeAngleAxis: mke } = b$.actions, hke = b$.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getClassNameFromUnknown.js
-function S$(e) {
+function x$(e) {
return e && typeof e == "object" && "className" in e && typeof e.className == "string" ? e.className : "";
}
//#endregion
//#region node_modules/recharts/es6/polar/PolarRadiusAxis.js
-var ske = ["type"], cke = [
+var gke = ["type"], _ke = [
"cx",
"cy",
"angle",
"axisLine"
-], lke = [
+], vke = [
"angle",
"tickFormatter",
"stroke",
"tick"
];
-function C$() {
- return C$ = Object.assign ? Object.assign.bind() : function(e) {
+function S$() {
+ return S$ = 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;
- }, C$.apply(null, arguments);
+ }, S$.apply(null, arguments);
}
-function w$(e, t) {
+function C$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61671,30 +61922,30 @@ function w$(e, t) {
}
return n;
}
-function T$(e) {
+function w$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? w$(Object(n), !0).forEach(function(t) {
- uke(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : w$(Object(n)).forEach(function(t) {
+ t % 2 ? C$(Object(n), !0).forEach(function(t) {
+ yke(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function uke(e, t, n) {
- return (t = dke(t)) in e ? Object.defineProperty(e, t, {
+function yke(e, t, n) {
+ return (t = bke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function dke(e) {
- var t = fke(e, "string");
+function bke(e) {
+ var t = xke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function fke(e, t) {
+function xke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61704,16 +61955,16 @@ function fke(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function E$(e, t) {
+function T$(e, t) {
if (e == null) return {};
- var n, r, i = pke(e, t);
+ var n, r, i = Ske(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 pke(e, t) {
+function Ske(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61722,20 +61973,20 @@ function pke(e, t) {
}
return n;
}
-var mke = "radiusAxis";
-function hke(e) {
- var t = ZR(), n = pH(), r = (0, R.useMemo)(() => {
- var { type: t } = e, r = E$(e, ske), i = EG(n, "radiusAxis", t);
- if (i != null) return T$(T$({}, r), {}, { type: i });
+var Cke = "radiusAxis";
+function wke(e) {
+ var t = QR(), n = bH(), r = (0, R.useMemo)(() => {
+ var { type: t } = e, r = T$(e, gke), i = EG(n, "radiusAxis", t);
+ if (i != null) return w$(w$({}, r), {}, { type: i });
}, [e, n]);
- return (0, R.useEffect)(() => r == null ? mR : (t(nke(r)), () => {
- t(rke(r));
+ return (0, R.useEffect)(() => r == null ? hR : (t(dke(r)), () => {
+ t(fke(r));
}), [t, r]), null;
}
-var gke = (e, t, n, r) => {
+var Tke = (e, t, n, r) => {
var { coordinate: i } = e;
return VW(n, r, i, t);
-}, _ke = (e) => {
+}, Eke = (e) => {
var t;
switch (e) {
case "left":
@@ -61747,49 +61998,49 @@ var gke = (e, t, n, r) => {
default: t = "middle";
}
return t;
-}, vke = (e, t, n, r) => {
- var i = eke(r, (e) => e.coordinate || 0);
+}, Dke = (e, t, n, r) => {
+ var i = lke(r, (e) => e.coordinate || 0);
return {
cx: t,
cy: n,
startAngle: e,
endAngle: e,
- innerRadius: tke(r, (e) => e.coordinate || 0)?.coordinate || 0,
+ innerRadius: uke(r, (e) => e.coordinate || 0)?.coordinate || 0,
outerRadius: i?.coordinate || 0,
clockWise: !1
};
-}, yke = (e, t) => {
- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = E$(e, cke), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = VW(n, r, s[0], i), l = VW(n, r, s[1], i), u = T$(T$(T$({}, JI(o)), {}, { fill: "none" }, JI(a)), {}, {
+}, Oke = (e, t) => {
+ var { cx: n, cy: r, angle: i, axisLine: a } = e, o = T$(e, _ke), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = VW(n, r, s[0], i), l = VW(n, r, s[1], i), u = w$(w$(w$({}, YI(o)), {}, { fill: "none" }, YI(a)), {}, {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
});
- return /*#__PURE__*/ R.createElement("line", C$({ className: "recharts-polar-radius-axis-line" }, u));
-}, bke = (e, t, n) => /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ R.createElement(EQ, C$({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), xke = (e, t) => {
- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = E$(e, lke), s = _ke(e.orientation), c = JI(o), l = YI(a), u = t.map((t, o) => {
- var u = gke(t, e.angle, e.cx, e.cy), d = T$(T$(T$(T$({
+ return /*#__PURE__*/ R.createElement("line", S$({ className: "recharts-polar-radius-axis-line" }, u));
+}, kke = (e, t, n) => /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ R.createElement(TQ, S$({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), Ake = (e, t) => {
+ var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = T$(e, vke), s = Eke(e.orientation), c = YI(o), l = XI(a), u = t.map((t, o) => {
+ var u = Tke(t, e.angle, e.cx, e.cy), d = w$(w$(w$(w$({
textAnchor: s,
transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
}, c), {}, {
stroke: "none",
fill: i
}, l), {}, { index: o }, u), {}, { payload: t });
- return /*#__PURE__*/ R.createElement(eL, C$({
- className: Mu("recharts-polar-radius-axis-tick", S$(a)),
+ return /*#__PURE__*/ R.createElement(tL, S$({
+ className: Mu("recharts-polar-radius-axis-tick", x$(a)),
key: `tick-${t.coordinate}`
- }, SR(e, t, o)), bke(a, d, r ? r(t.value, o) : t.value));
+ }, CR(e, t, o)), kke(a, d, r ? r(t.value, o) : t.value));
});
- return /*#__PURE__*/ R.createElement(eL, { className: "recharts-polar-radius-axis-ticks" }, u);
-}, Ske = (e) => {
- var { radiusAxisId: t } = e, n = Q(zG), r = Q((e) => d$(e, "radiusAxis", t)), i = Q((e) => p$(e, "radiusAxis", t, !1));
+ return /*#__PURE__*/ R.createElement(tL, { className: "recharts-polar-radius-axis-ticks" }, u);
+}, jke = (e) => {
+ var { radiusAxisId: t } = e, n = Q(zG), r = Q((e) => u$(e, "radiusAxis", t)), i = Q((e) => f$(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
- var a = T$(T$({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
- return /*#__PURE__*/ R.createElement(RZ, { zIndex: a.zIndex }, /*#__PURE__*/ R.createElement(eL, { className: Mu("recharts-polar-radius-axis", mke, a.className) }, s && yke(a, i), o && xke(a, i), /*#__PURE__*/ R.createElement(_Oe, vke(a.angle, a.cx, a.cy, i), /*#__PURE__*/ R.createElement(wOe, { label: a.label }), a.children)));
+ var a = w$(w$({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
+ return /*#__PURE__*/ R.createElement(LZ, { zIndex: a.zIndex }, /*#__PURE__*/ R.createElement(tL, { className: Mu("recharts-polar-radius-axis", Cke, a.className) }, s && Oke(a, i), o && Ake(a, i), /*#__PURE__*/ R.createElement(EOe, Dke(a.angle, a.cx, a.cy, i), /*#__PURE__*/ R.createElement(NOe, { label: a.label }), a.children)));
};
-function D$(e) {
- var t = wR(e, wG);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(hke, {
+function E$(e) {
+ var t = TR(e, wG);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(wke, {
domain: t.domain,
id: t.radiusAxisId,
scale: t.scale,
@@ -61806,22 +62057,22 @@ function D$(e) {
ticks: t.ticks,
tickCount: t.tickCount,
tick: t.tick
- }), /*#__PURE__*/ R.createElement(Ske, t));
+ }), /*#__PURE__*/ R.createElement(jke, t));
}
-D$.displayName = "PolarRadiusAxis";
+E$.displayName = "PolarRadiusAxis";
//#endregion
//#region node_modules/recharts/es6/polar/PolarAngleAxis.js
-var Cke = ["children", "type"], wke = ["ref"];
-function O$() {
- return O$ = Object.assign ? Object.assign.bind() : function(e) {
+var Mke = ["children", "type"], Nke = ["ref"];
+function D$() {
+ return D$ = 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;
- }, O$.apply(null, arguments);
+ }, D$.apply(null, arguments);
}
-function k$(e, t) {
+function O$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61831,30 +62082,30 @@ function k$(e, t) {
}
return n;
}
-function A$(e) {
+function k$(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) {
- Tke(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k$(Object(n)).forEach(function(t) {
+ t % 2 ? O$(Object(n), !0).forEach(function(t) {
+ Pke(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 Tke(e, t, n) {
- return (t = Eke(t)) in e ? Object.defineProperty(e, t, {
+function Pke(e, t, n) {
+ return (t = Fke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Eke(e) {
- var t = Dke(e, "string");
+function Fke(e) {
+ var t = Ike(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Dke(e, t) {
+function Ike(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61864,16 +62115,16 @@ function Dke(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function j$(e, t) {
+function A$(e, t) {
if (e == null) return {};
- var n, r, i = Oke(e, t);
+ var n, r, i = Lke(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Oke(e, t) {
+function Lke(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61882,17 +62133,17 @@ function Oke(e, t) {
}
return n;
}
-var M$ = 1e-5, kke = Math.cos(BW(45)), Ake = "angleAxis";
-function jke(e) {
- var t = ZR(), n = pH(), r = (0, R.useMemo)(() => {
- var { children: t, type: r } = e, i = j$(e, Cke), a = EG(n, "angleAxis", r);
- if (a != null) return A$(A$({}, i), {}, { type: a });
+var j$ = 1e-5, Rke = Math.cos(BW(45)), zke = "angleAxis";
+function Bke(e) {
+ var t = QR(), n = bH(), r = (0, R.useMemo)(() => {
+ var { children: t, type: r } = e, i = A$(e, Mke), a = EG(n, "angleAxis", r);
+ if (a != null) return k$(k$({}, i), {}, { type: a });
}, [e, n]), i = r === Q((e) => jG(e, r?.id));
- return (0, R.useEffect)(() => r == null ? mR : (t(ike(r)), () => {
- t(ake(r));
+ return (0, R.useEffect)(() => r == null ? hR : (t(pke(r)), () => {
+ t(mke(r));
}), [t, r]), i ? e.children : null;
}
-var Mke = (e, t) => {
+var Vke = (e, t) => {
var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = VW(n, r, i, e.coordinate), l = VW(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
return {
x1: c.x,
@@ -61900,29 +62151,29 @@ var Mke = (e, t) => {
x2: l.x,
y2: l.y
};
-}, Nke = (e, t) => {
+}, Hke = (e, t) => {
var n = Math.cos(BW(-e.coordinate));
- return n > M$ ? t === "outer" ? "start" : "end" : n < -M$ ? t === "outer" ? "end" : "start" : "middle";
-}, Pke = (e) => {
+ return n > j$ ? t === "outer" ? "start" : "end" : n < -j$ ? t === "outer" ? "end" : "start" : "middle";
+}, Uke = (e) => {
var t = Math.cos(BW(-e.coordinate)), n = Math.sin(BW(-e.coordinate));
- return Math.abs(t) <= kke ? n > 0 ? "start" : "end" : "middle";
-}, Fke = (e) => {
+ return Math.abs(t) <= Rke ? n > 0 ? "start" : "end" : "middle";
+}, Wke = (e) => {
var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;
if (!a) return null;
- var s = A$(A$({}, JI(e)), {}, { fill: "none" }, JI(a));
- if (i === "circle") return /*#__PURE__*/ R.createElement(t$, O$({ className: "recharts-polar-angle-axis-line" }, s, {
+ var s = k$(k$({}, YI(e)), {}, { fill: "none" }, YI(a));
+ if (i === "circle") return /*#__PURE__*/ R.createElement(e$, D$({ className: "recharts-polar-angle-axis-line" }, s, {
cx: t,
cy: n,
r
}));
var c = o.map((e) => VW(t, n, r, e.coordinate));
- return /*#__PURE__*/ R.createElement($Q, O$({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
-}, Ike = (e) => {
+ return /*#__PURE__*/ R.createElement(QQ, D$({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
+}, Gke = (e) => {
var { tick: t, tickProps: n, value: r } = e;
- return t ? /*#__PURE__*/ R.isValidElement(t) ? /*#__PURE__*/ R.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ R.createElement(EQ, O$({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
-}, Lke = (e) => {
- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = JI(e), { ref: s } = o, c = j$(o, wke), l = YI(t), u = A$(A$({}, c), {}, { fill: "none" }, JI(n)), d = a.map((a, o) => {
- var s = Mke(a, e), d = Nke(a, e.orientation), f = Pke(a), p = A$(A$(A$({}, c), {}, {
+ return t ? /*#__PURE__*/ R.isValidElement(t) ? /*#__PURE__*/ R.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ R.createElement(TQ, D$({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
+}, Kke = (e) => {
+ var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = YI(e), { ref: s } = o, c = A$(o, Nke), l = XI(t), u = k$(k$({}, c), {}, { fill: "none" }, YI(n)), d = a.map((a, o) => {
+ var s = Vke(a, e), d = Hke(a, e.orientation), f = Uke(a), p = k$(k$(k$({}, c), {}, {
textAnchor: d,
verticalAnchor: f,
stroke: "none",
@@ -61933,28 +62184,28 @@ var Mke = (e, t) => {
x: s.x2,
y: s.y2
});
- return /*#__PURE__*/ R.createElement(eL, O$({
- className: Mu("recharts-polar-angle-axis-tick", S$(t)),
+ return /*#__PURE__*/ R.createElement(tL, D$({
+ className: Mu("recharts-polar-angle-axis-tick", x$(t)),
key: `tick-${a.coordinate}`
- }, SR(e, a, o)), n && /*#__PURE__*/ R.createElement("line", O$({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ R.createElement(Ike, {
+ }, CR(e, a, o)), n && /*#__PURE__*/ R.createElement("line", D$({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ R.createElement(Gke, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
- return /*#__PURE__*/ R.createElement(eL, { className: "recharts-polar-angle-axis-ticks" }, d);
-}, Rke = (e) => {
- var { angleAxisId: t } = e, n = Q(zG), r = Q((e) => d$(e, "angleAxis", t)), i = RV(), a = Q((e) => BOe(e, "angleAxis", t, i));
+ return /*#__PURE__*/ R.createElement(tL, { className: "recharts-polar-angle-axis-ticks" }, d);
+}, qke = (e) => {
+ var { angleAxisId: t } = e, n = Q(zG), r = Q((e) => u$(e, "angleAxis", t)), i = zV(), a = Q((e) => YOe(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
- var o = A$(A$(A$({}, e), {}, { scale: r }, n), {}, {
+ var o = k$(k$(k$({}, e), {}, { scale: r }, n), {}, {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ R.createElement(RZ, { zIndex: o.zIndex }, /*#__PURE__*/ R.createElement(eL, { className: Mu("recharts-polar-angle-axis", Ake, o.className) }, /*#__PURE__*/ R.createElement(Fke, o), /*#__PURE__*/ R.createElement(Lke, o)));
+ return /*#__PURE__*/ R.createElement(LZ, { zIndex: o.zIndex }, /*#__PURE__*/ R.createElement(tL, { className: Mu("recharts-polar-angle-axis", zke, o.className) }, /*#__PURE__*/ R.createElement(Wke, o), /*#__PURE__*/ R.createElement(Kke, o)));
};
-function N$(e) {
- var t = wR(e, CG);
- return /*#__PURE__*/ R.createElement(jke, {
+function M$(e) {
+ var t = TR(e, CG);
+ return /*#__PURE__*/ R.createElement(Bke, {
id: t.angleAxisId,
scale: t.scale,
type: t.type,
@@ -61971,12 +62222,12 @@ function N$(e) {
ticks: t.ticks,
tick: t.tick,
domain: t.domain
- }, /*#__PURE__*/ R.createElement(Rke, t));
+ }, /*#__PURE__*/ R.createElement(qke, t));
}
-N$.displayName = "PolarAngleAxis";
+M$.displayName = "PolarAngleAxis";
//#endregion
//#region node_modules/react-is/cjs/react-is.production.js
-var zke = /* @__PURE__ */ Te(((e) => {
+var Jke = /* @__PURE__ */ Te(((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) {
@@ -62005,26 +62256,26 @@ var zke = /* @__PURE__ */ Te(((e) => {
e.isFragment = function(e) {
return m(e) === r;
};
-})), Bke = (/* @__PURE__ */ Te(((e, t) => {
- t.exports = zke();
-})))(), P$ = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", F$ = null, I$ = null, L$ = (e) => {
- if (e === F$ && Array.isArray(I$)) return I$;
+})), Yke = (/* @__PURE__ */ Te(((e, t) => {
+ t.exports = Jke();
+})))(), N$ = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", P$ = null, F$ = null, I$ = (e) => {
+ if (e === P$ && Array.isArray(F$)) return F$;
var t = [];
return R.Children.forEach(e, (e) => {
- dR(e) || ((0, Bke.isFragment)(e) ? t = t.concat(L$(e.props.children)) : t.push(e));
- }), I$ = t, F$ = e, t;
+ fR(e) || ((0, Yke.isFragment)(e) ? t = t.concat(I$(e.props.children)) : t.push(e));
+ }), F$ = t, P$ = e, t;
};
-function R$(e, t) {
+function L$(e, t) {
var n = [], r = [];
- return r = Array.isArray(t) ? t.map((e) => P$(e)) : [P$(t)], L$(e).forEach((e) => {
- var t = $L(e, "type.displayName") || $L(e, "type.name");
+ return r = Array.isArray(t) ? t.map((e) => N$(e)) : [N$(t)], I$(e).forEach((e) => {
+ var t = eR(e, "type.displayName") || eR(e, "type.name");
t && r.indexOf(t) !== -1 && n.push(e);
}), n;
}
-var z$ = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
+var R$ = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
-function Vke(e) {
+function Xke(e) {
if (typeof e != "object" || !e) return !1;
if (Object.getPrototypeOf(e) === null) return !0;
if (Object.prototype.toString.call(e) !== "[object Object]") {
@@ -62037,8 +62288,8 @@ function Vke(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Trapezoid.js
-var Hke, Uke, Wke, Gke, Kke;
-function B$(e, t) {
+var Zke, Qke, $ke, eAe, tAe;
+function z$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62048,30 +62299,30 @@ function B$(e, t) {
}
return n;
}
-function V$(e) {
+function B$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? B$(Object(n), !0).forEach(function(t) {
- qke(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B$(Object(n)).forEach(function(t) {
+ t % 2 ? z$(Object(n), !0).forEach(function(t) {
+ nAe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function qke(e, t, n) {
- return (t = Jke(t)) in e ? Object.defineProperty(e, t, {
+function nAe(e, t, n) {
+ return (t = rAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Jke(e) {
- var t = Yke(e, "string");
+function rAe(e) {
+ var t = iAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Yke(e, t) {
+function iAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62081,42 +62332,42 @@ function Yke(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function H$() {
- return H$ = Object.assign ? Object.assign.bind() : function(e) {
+function V$() {
+ return V$ = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, H$.apply(null, arguments);
+ }, V$.apply(null, arguments);
}
-function U$(e, t) {
+function H$(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var W$ = (e, t, n, r, i) => {
- var a = n - r, o = tR(Hke ||= U$([
+var U$ = (e, t, n, r, i) => {
+ var a = n - r, o = nR(Zke ||= H$([
"M ",
",",
""
]), e, t);
- return o += tR(Uke ||= U$([
+ return o += nR(Qke ||= H$([
"L ",
",",
""
- ]), e + n, t), o += tR(Wke ||= U$([
+ ]), e + n, t), o += nR($ke ||= H$([
"L ",
",",
""
- ]), e + n - a / 2, t + i), o += tR(Gke ||= U$([
+ ]), e + n - a / 2, t + i), o += nR(eAe ||= H$([
"L ",
",",
""
- ]), e + n - a / 2 - r, t + i), o += tR(Kke ||= U$([
+ ]), e + n - a / 2 - r, t + i), o += nR(tAe ||= H$([
"L ",
",",
" Z"
]), e, t), o;
-}, Xke = {
+}, aAe = {
x: 0,
y: 0,
upperWidth: 0,
@@ -62126,8 +62377,8 @@ var W$ = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, Zke = (e) => {
- var t = wR(e, Xke), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, R.useRef)(null), [p, m] = (0, R.useState)(-1), h = (0, R.useRef)(i), g = (0, R.useRef)(a), _ = (0, R.useRef)(o), v = (0, R.useRef)(n), y = (0, R.useRef)(r), b = OW(e, "trapezoid-");
+}, oAe = (e) => {
+ var t = TR(e, aAe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, R.useRef)(null), [p, m] = (0, R.useState)(-1), h = (0, R.useRef)(i), g = (0, R.useRef)(a), _ = (0, R.useRef)(o), v = (0, R.useRef)(n), y = (0, R.useRef)(r), b = OW(e, "trapezoid-");
if ((0, R.useEffect)(() => {
if (f.current && f.current.getTotalLength) try {
var e = f.current.getTotalLength();
@@ -62135,9 +62386,9 @@ var W$ = (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 = Mu("recharts-trapezoid", s);
- if (!d) return /*#__PURE__*/ R.createElement("g", null, /*#__PURE__*/ R.createElement("path", H$({}, XI(t), {
+ if (!d) return /*#__PURE__*/ R.createElement("g", null, /*#__PURE__*/ R.createElement("path", V$({}, ZI(t), {
className: x,
- d: W$(n, r, i, a, o)
+ d: U$(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 = mW(["strokeDasharray"], l, c);
return /*#__PURE__*/ R.createElement(DW, {
@@ -62149,35 +62400,35 @@ var W$ = (e, t, n, r, i) => {
isActive: d,
begin: u
}, (e) => {
- var s = lR(S, i, e), c = lR(C, a, e), l = lR(w, o, e), u = lR(T, n, e), d = lR(E, r, e);
+ var s = uR(S, i, e), c = uR(C, a, e), l = uR(w, o, e), u = uR(T, n, e), d = uR(E, r, e);
f.current && (h.current = s, g.current = c, _.current = l, v.current = u, y.current = d);
var p = e > 0 ? {
transition: k,
strokeDasharray: O
} : { strokeDasharray: D };
- return /*#__PURE__*/ R.createElement("path", H$({}, XI(t), {
+ return /*#__PURE__*/ R.createElement("path", V$({}, ZI(t), {
className: x,
- d: W$(u, d, s, c, l),
+ d: U$(u, d, s, c, l),
ref: f,
- style: V$(V$({}, p), t.style)
+ style: B$(B$({}, p), t.style)
}));
});
-}, Qke = [
+}, sAe = [
"option",
"shapeType",
"activeClassName",
"inActiveClassName"
];
-function $ke(e, t) {
+function cAe(e, t) {
if (e == null) return {};
- var n, r, i = eAe(e, t);
+ var n, r, i = lAe(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 eAe(e, t) {
+function lAe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62186,7 +62437,7 @@ function eAe(e, t) {
}
return n;
}
-function G$(e, t) {
+function W$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62196,30 +62447,30 @@ function G$(e, t) {
}
return n;
}
-function K$(e) {
+function G$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? G$(Object(n), !0).forEach(function(t) {
- tAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G$(Object(n)).forEach(function(t) {
+ t % 2 ? W$(Object(n), !0).forEach(function(t) {
+ uAe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : W$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function tAe(e, t, n) {
- return (t = nAe(t)) in e ? Object.defineProperty(e, t, {
+function uAe(e, t, n) {
+ return (t = dAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function nAe(e) {
- var t = rAe(e, "string");
+function dAe(e) {
+ var t = fAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function rAe(e, t) {
+function fAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62229,51 +62480,51 @@ function rAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function iAe(e, t) {
- return K$(K$({}, t), e);
+function pAe(e, t) {
+ return G$(G$({}, t), e);
}
-function aAe(e, t) {
+function mAe(e, t) {
return e === "symbols";
}
-function q$(e) {
+function K$(e) {
var { shapeType: t, elementProps: n } = e;
switch (t) {
case "rectangle": return /*#__PURE__*/ R.createElement(IW, n);
- case "trapezoid": return /*#__PURE__*/ R.createElement(Zke, n);
+ case "trapezoid": return /*#__PURE__*/ R.createElement(oAe, n);
case "sector": return /*#__PURE__*/ R.createElement(qW, n);
case "symbols":
- if (aAe(t, n)) return /*#__PURE__*/ R.createElement(yR, n);
+ if (mAe(t, n)) return /*#__PURE__*/ R.createElement(bR, n);
break;
case "curve": return /*#__PURE__*/ R.createElement(lW, n);
default: return null;
}
}
-function oAe(e) {
+function hAe(e) {
return /*#__PURE__*/ (0, R.isValidElement)(e) ? e.props : e;
}
-function J$(e) {
- var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = $ke(e, Qke), o;
- if (/*#__PURE__*/ (0, R.isValidElement)(t)) o = /*#__PURE__*/ (0, R.cloneElement)(t, K$(K$({}, a), oAe(t)));
+function q$(e) {
+ var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = cAe(e, sAe), o;
+ if (/*#__PURE__*/ (0, R.isValidElement)(t)) o = /*#__PURE__*/ (0, R.cloneElement)(t, G$(G$({}, a), hAe(t)));
else if (typeof t == "function") o = t(a, a.index);
- else if (Vke(t) && typeof t != "boolean") {
- var s = iAe(t, a);
- o = /*#__PURE__*/ R.createElement(q$, {
+ else if (Xke(t) && typeof t != "boolean") {
+ var s = pAe(t, a);
+ o = /*#__PURE__*/ R.createElement(K$, {
shapeType: n,
elementProps: s
});
} else {
var c = a;
- o = /*#__PURE__*/ R.createElement(q$, {
+ o = /*#__PURE__*/ R.createElement(K$, {
shapeType: n,
elementProps: c
});
}
- return a.isActive ? /*#__PURE__*/ R.createElement(eL, { className: r }, o) : /*#__PURE__*/ R.createElement(eL, { className: i }, o);
+ return a.isActive ? /*#__PURE__*/ R.createElement(tL, { className: r }, o) : /*#__PURE__*/ R.createElement(tL, { className: i }, o);
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipContext.js
-var Y$ = (e, t, n) => {
- var r = ZR();
+var J$ = (e, t, n) => {
+ var r = QR();
return (i, a) => (o) => {
e?.(i, a, o), r(RX({
activeIndex: String(a),
@@ -62282,15 +62533,15 @@ var Y$ = (e, t, n) => {
activeGraphicalItemId: n
}));
};
-}, X$ = (e) => {
- var t = ZR();
+}, Y$ = (e) => {
+ var t = QR();
return (n, r) => (i) => {
- e?.(n, r, i), t(KTe());
+ e?.(n, r, i), t(eEe());
};
-}, Z$ = (e, t, n) => {
- var r = ZR();
+}, X$ = (e, t, n) => {
+ var r = QR();
return (i, a) => (o) => {
- e?.(i, a, o), r(qTe({
+ e?.(i, a, o), r(tEe({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
@@ -62300,10 +62551,10 @@ var Y$ = (e, t, n) => {
};
//#endregion
//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js
-function Q$(e) {
- var { tooltipEntrySettings: t } = e, n = ZR(), r = RV(), i = (0, R.useRef)(null);
+function Z$(e) {
+ var { tooltipEntrySettings: t } = e, n = QR(), r = zV(), i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- r || (i.current === null ? n(HTe(t)) : i.current !== t && n(UTe({
+ r || (i.current === null ? n(XTe(t)) : i.current !== t && n(ZTe({
prev: i.current,
next: t
})), i.current = t);
@@ -62312,15 +62563,15 @@ function Q$(e) {
n,
r
]), (0, R.useLayoutEffect)(() => () => {
- i.current &&= (n(WTe(i.current)), null);
+ i.current &&= (n(QTe(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/state/SetLegendPayload.js
-function $$(e) {
- var { legendPayload: t } = e, n = ZR(), r = RV(), i = (0, R.useRef)(null);
+function Q$(e) {
+ var { legendPayload: t } = e, n = QR(), r = zV(), i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- r || (i.current === null ? n(hU(t)) : i.current !== t && n(gU({
+ r || (i.current === null ? n(SU(t)) : i.current !== t && n(CU({
prev: i.current,
next: t
})), i.current = t);
@@ -62329,13 +62580,13 @@ function $$(e) {
r,
t
]), (0, R.useLayoutEffect)(() => () => {
- i.current &&= (n(_U(i.current)), null);
+ i.current &&= (n(wU(i.current)), null);
}, [n]), null;
}
-function e1(e) {
- var { legendPayload: t } = e, n = ZR(), r = Q(lH), i = (0, R.useRef)(null);
+function $$(e) {
+ var { legendPayload: t } = e, n = QR(), r = Q(gH), i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- (r === "centric" || r === "radial") && (i.current === null ? n(hU(t)) : i.current !== t && n(gU({
+ (r === "centric" || r === "radial") && (i.current === null ? n(SU(t)) : i.current !== t && n(CU({
prev: i.current,
next: t
})), i.current = t);
@@ -62344,27 +62595,27 @@ function e1(e) {
r,
t
]), (0, R.useLayoutEffect)(() => () => {
- i.current &&= (n(_U(i.current)), null);
+ i.current &&= (n(wU(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/util/useId.js
-var sAe = R.useId ?? (() => {
- var [e] = R.useState(() => oR("uid-"));
+var gAe = R.useId ?? (() => {
+ var [e] = R.useState(() => sR("uid-"));
return e;
});
//#endregion
//#region node_modules/recharts/es6/util/useUniqueId.js
-function cAe(e, t) {
- var n = sAe();
+function _Ae(e, t) {
+ var n = gAe();
return t || (e ? `${e}-${n}` : n);
}
//#endregion
//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js
-var lAe = /*#__PURE__*/ (0, R.createContext)(void 0), t1 = (e) => {
- var { id: t, type: n, children: r } = e, i = cAe(`recharts-${n}`, t);
- return /*#__PURE__*/ R.createElement(lAe.Provider, { value: i }, r(i));
-}, n1 = IB({
+var vAe = /*#__PURE__*/ (0, R.createContext)(void 0), e1 = (e) => {
+ var { id: t, type: n, children: r } = e, i = _Ae(`recharts-${n}`, t);
+ return /*#__PURE__*/ R.createElement(vAe.Provider, { value: i }, r(i));
+}, t1 = LB({
name: "graphicalItems",
initialState: {
cartesianItems: [],
@@ -62373,80 +62624,80 @@ var lAe = /*#__PURE__*/ (0, R.createContext)(void 0), t1 = (e) => {
reducers: {
addCartesianGraphicalItem: {
reducer(e, t) {
- e.cartesianItems.push(dU(t.payload));
+ e.cartesianItems.push(vU(t.payload));
},
- prepare: MB()
+ prepare: NB()
},
replaceCartesianGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = CB(e).cartesianItems.indexOf(dU(n));
- i > -1 && (e.cartesianItems[i] = dU(r));
+ var { prev: n, next: r } = t.payload, i = wB(e).cartesianItems.indexOf(vU(n));
+ i > -1 && (e.cartesianItems[i] = vU(r));
},
- prepare: MB()
+ prepare: NB()
},
removeCartesianGraphicalItem: {
reducer(e, t) {
- var n = CB(e).cartesianItems.indexOf(dU(t.payload));
+ var n = wB(e).cartesianItems.indexOf(vU(t.payload));
n > -1 && e.cartesianItems.splice(n, 1);
},
- prepare: MB()
+ prepare: NB()
},
addPolarGraphicalItem: {
reducer(e, t) {
- e.polarItems.push(dU(t.payload));
+ e.polarItems.push(vU(t.payload));
},
- prepare: MB()
+ prepare: NB()
},
removePolarGraphicalItem: {
reducer(e, t) {
- var n = CB(e).polarItems.indexOf(dU(t.payload));
+ var n = wB(e).polarItems.indexOf(vU(t.payload));
n > -1 && e.polarItems.splice(n, 1);
},
- prepare: MB()
+ prepare: NB()
},
replacePolarGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = CB(e).polarItems.indexOf(dU(n));
- i > -1 && (e.polarItems[i] = dU(r));
+ var { prev: n, next: r } = t.payload, i = wB(e).polarItems.indexOf(vU(n));
+ i > -1 && (e.polarItems[i] = vU(r));
},
- prepare: MB()
+ prepare: NB()
}
}
-}), { addCartesianGraphicalItem: uAe, replaceCartesianGraphicalItem: dAe, removeCartesianGraphicalItem: fAe, addPolarGraphicalItem: pAe, removePolarGraphicalItem: mAe, replacePolarGraphicalItem: hAe } = n1.actions, gAe = n1.reducer, r1 = /*#__PURE__*/ (0, R.memo)((e) => {
- var t = ZR(), n = (0, R.useRef)(null);
+}), { addCartesianGraphicalItem: yAe, replaceCartesianGraphicalItem: bAe, removeCartesianGraphicalItem: xAe, addPolarGraphicalItem: SAe, removePolarGraphicalItem: CAe, replacePolarGraphicalItem: wAe } = t1.actions, TAe = t1.reducer, n1 = /*#__PURE__*/ (0, R.memo)((e) => {
+ var t = QR(), n = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- n.current === null ? t(uAe(e)) : n.current !== e && t(dAe({
+ n.current === null ? t(yAe(e)) : n.current !== e && t(bAe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, R.useLayoutEffect)(() => () => {
- n.current &&= (t(fAe(n.current)), null);
+ n.current &&= (t(xAe(n.current)), null);
}, [t]), null;
-}), i1 = /*#__PURE__*/ (0, R.memo)((e) => {
- var t = ZR(), n = (0, R.useRef)(null);
+}), r1 = /*#__PURE__*/ (0, R.memo)((e) => {
+ var t = QR(), n = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- n.current === null ? t(pAe(e)) : n.current !== e && t(hAe({
+ n.current === null ? t(SAe(e)) : n.current !== e && t(wAe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, R.useLayoutEffect)(() => () => {
- n.current &&= (t(mAe(n.current)), null);
+ n.current &&= (t(CAe(n.current)), null);
}, [t]), null;
});
//#endregion
//#region node_modules/es-toolkit/dist/array/last.mjs
-function _Ae(e) {
+function EAe(e) {
return e[e.length - 1];
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
-function vAe(e) {
- if (!(!AR(e) || e.length === 0)) return _Ae(b$(e));
+function DAe(e) {
+ if (!(!jR(e) || e.length === 0)) return EAe(y$(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
-var yAe = ["points"];
-function a1(e, t) {
+var OAe = ["points"];
+function i1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62456,30 +62707,30 @@ function a1(e, t) {
}
return n;
}
-function o1(e) {
+function a1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? a1(Object(n), !0).forEach(function(t) {
- bAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : a1(Object(n)).forEach(function(t) {
+ t % 2 ? i1(Object(n), !0).forEach(function(t) {
+ kAe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bAe(e, t, n) {
- return (t = xAe(t)) in e ? Object.defineProperty(e, t, {
+function kAe(e, t, n) {
+ return (t = AAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xAe(e) {
- var t = SAe(e, "string");
+function AAe(e) {
+ var t = jAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function SAe(e, t) {
+function jAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62489,25 +62740,25 @@ function SAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function s1() {
- return s1 = Object.assign ? Object.assign.bind() : function(e) {
+function o1() {
+ return o1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, s1.apply(null, arguments);
+ }, o1.apply(null, arguments);
}
-function CAe(e, t) {
+function MAe(e, t) {
if (e == null) return {};
- var n, r, i = wAe(e, t);
+ var n, r, i = NAe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function wAe(e, t) {
+function NAe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62516,21 +62767,21 @@ function wAe(e, t) {
}
return n;
}
-function TAe(e) {
+function PAe(e) {
var { option: t, dotProps: n, className: r } = e;
if (/*#__PURE__*/ (0, R.isValidElement)(t)) return /*#__PURE__*/ (0, R.cloneElement)(t, n);
if (typeof t == "function") return t(n);
- var i = Mu(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = CAe(a, yAe);
- return /*#__PURE__*/ R.createElement(t$, s1({}, s, { className: i }));
+ var i = Mu(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = MAe(a, OAe);
+ return /*#__PURE__*/ R.createElement(e$, o1({}, s, { className: i }));
}
-function EAe(e, t) {
+function FAe(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
}
-function c1(e) {
+function s1(e) {
var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = SG.scatter } = e;
- if (!EAe(t, n)) return null;
- var u = z$(n), d = gge(n), f = t.map((e, r) => {
- var s = o1(o1(o1({ r: 3 }, o), d), {}, {
+ if (!FAe(t, n)) return null;
+ var u = R$(n), d = Cge(n), f = t.map((e, r) => {
+ var s = a1(a1(a1({ r: 3 }, o), d), {}, {
index: r,
cx: e.x ?? void 0,
cy: e.y ?? void 0,
@@ -62539,18 +62790,18 @@ function c1(e) {
payload: e.payload,
points: t
});
- return /*#__PURE__*/ R.createElement(TAe, {
+ return /*#__PURE__*/ R.createElement(PAe, {
key: `dot-${r}`,
option: n,
dotProps: s,
className: i
});
}), p = {};
- return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ R.createElement(RZ, { zIndex: l }, /*#__PURE__*/ R.createElement(eL, s1({ className: r }, p), f));
+ return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ R.createElement(LZ, { zIndex: l }, /*#__PURE__*/ R.createElement(tL, o1({ className: r }, p), f));
}
//#endregion
//#region node_modules/recharts/es6/state/cartesianAxisSlice.js
-function l1(e, t) {
+function c1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62560,30 +62811,30 @@ function l1(e, t) {
}
return n;
}
-function u1(e) {
+function l1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? l1(Object(n), !0).forEach(function(t) {
- DAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : l1(Object(n)).forEach(function(t) {
+ t % 2 ? c1(Object(n), !0).forEach(function(t) {
+ IAe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function DAe(e, t, n) {
- return (t = OAe(t)) in e ? Object.defineProperty(e, t, {
+function IAe(e, t, n) {
+ return (t = LAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function OAe(e) {
- var t = kAe(e, "string");
+function LAe(e) {
+ var t = RAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function kAe(e, t) {
+function RAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62593,7 +62844,7 @@ function kAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var d1 = IB({
+var u1 = LB({
name: "cartesianAxis",
initialState: {
xAxis: {},
@@ -62603,60 +62854,60 @@ var d1 = IB({
reducers: {
addXAxis: {
reducer(e, t) {
- e.xAxis[t.payload.id] = dU(t.payload);
+ e.xAxis[t.payload.id] = vU(t.payload);
},
- prepare: MB()
+ prepare: NB()
},
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] = dU(r));
+ e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = vU(r));
},
- prepare: MB()
+ prepare: NB()
},
removeXAxis: {
reducer(e, t) {
delete e.xAxis[t.payload.id];
},
- prepare: MB()
+ prepare: NB()
},
addYAxis: {
reducer(e, t) {
- e.yAxis[t.payload.id] = dU(t.payload);
+ e.yAxis[t.payload.id] = vU(t.payload);
},
- prepare: MB()
+ prepare: NB()
},
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] = dU(r));
+ e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = vU(r));
},
- prepare: MB()
+ prepare: NB()
},
removeYAxis: {
reducer(e, t) {
delete e.yAxis[t.payload.id];
},
- prepare: MB()
+ prepare: NB()
},
addZAxis: {
reducer(e, t) {
- e.zAxis[t.payload.id] = dU(t.payload);
+ e.zAxis[t.payload.id] = vU(t.payload);
},
- prepare: MB()
+ prepare: NB()
},
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] = dU(r));
+ e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = vU(r));
},
- prepare: MB()
+ prepare: NB()
},
removeZAxis: {
reducer(e, t) {
delete e.zAxis[t.payload.id];
},
- prepare: MB()
+ prepare: NB()
},
updateYAxisWidth(e, t) {
var { id: n, width: r } = t.payload, i = e.yAxis[n];
@@ -62664,22 +62915,22 @@ var d1 = IB({
var a = i.widthHistory || [];
if (a.length === 3 && a[0] === a[2] && r === a[1] && r !== i.width && Math.abs(r - (a[0] ?? 0)) <= 1) return;
var o = [...a, r].slice(-3);
- e.yAxis[n] = u1(u1({}, i), {}, {
+ e.yAxis[n] = l1(l1({}, i), {}, {
width: r,
widthHistory: o
});
}
}
}
-}), { addXAxis: AAe, replaceXAxis: jAe, removeXAxis: MAe, addYAxis: NAe, replaceYAxis: PAe, removeYAxis: FAe, addZAxis: IAe, replaceZAxis: LAe, removeZAxis: RAe, updateYAxisWidth: zAe } = d1.actions, BAe = d1.reducer, VAe = $([
- $([IV], (e) => ({
+}), { addXAxis: zAe, replaceXAxis: BAe, removeXAxis: VAe, addYAxis: HAe, replaceYAxis: UAe, removeYAxis: WAe, addZAxis: GAe, replaceZAxis: KAe, removeZAxis: qAe, updateYAxisWidth: JAe } = u1.actions, YAe = u1.reducer, XAe = $([
+ $([LV], (e) => ({
top: e.top,
bottom: e.bottom,
left: e.left,
right: e.right
})),
- kV,
- AV
+ AV,
+ jV
], (e, t, n) => {
if (!(!e || t == null || n == null)) return {
x: e.left,
@@ -62687,10 +62938,10 @@ var d1 = IB({
width: Math.max(0, t - e.left - e.right),
height: Math.max(0, n - e.top - e.bottom)
};
-}), f1 = () => Q(VAe), HAe = () => Q(xEe);
+}), d1 = () => Q(XAe), ZAe = () => Q(AEe);
//#endregion
//#region node_modules/recharts/es6/component/ActivePoints.js
-function p1(e, t) {
+function f1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62700,30 +62951,30 @@ function p1(e, t) {
}
return n;
}
-function m1(e) {
+function p1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? p1(Object(n), !0).forEach(function(t) {
- UAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : p1(Object(n)).forEach(function(t) {
+ t % 2 ? f1(Object(n), !0).forEach(function(t) {
+ QAe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : f1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function UAe(e, t, n) {
- return (t = WAe(t)) in e ? Object.defineProperty(e, t, {
+function QAe(e, t, n) {
+ return (t = $Ae(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function WAe(e) {
- var t = GAe(e, "string");
+function $Ae(e) {
+ var t = eje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function GAe(e, t) {
+function eje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62733,10 +62984,10 @@ function GAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var KAe = (e) => {
+var tje = (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 = m1(m1(m1({}, {
+ var s = p1(p1(p1({}, {
index: n,
dataKey: a,
cx: t.x,
@@ -62747,17 +62998,17 @@ var KAe = (e) => {
stroke: "#fff",
payload: t.payload,
value: t.value
- }), YI(i)), xR(i)), c = /*#__PURE__*/ (0, R.isValidElement)(i) ? /*#__PURE__*/ (0, R.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ R.createElement(t$, s);
- return /*#__PURE__*/ R.createElement(eL, {
+ }), XI(i)), SR(i)), c = /*#__PURE__*/ (0, R.isValidElement)(i) ? /*#__PURE__*/ (0, R.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ R.createElement(e$, s);
+ return /*#__PURE__*/ R.createElement(tL, {
className: "recharts-active-dot",
clipPath: o
}, c);
};
-function h1(e) {
- var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = SG.activeDot } = e, s = Q(_Z), c = HAe();
+function m1(e) {
+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = SG.activeDot } = e, s = Q(gZ), c = ZAe();
if (t == null || c == null) return null;
var l = t.find((e) => c.includes(e.payload));
- return dR(l) ? null : /*#__PURE__*/ R.createElement(RZ, { zIndex: o }, /*#__PURE__*/ R.createElement(KAe, {
+ return fR(l) ? null : /*#__PURE__*/ R.createElement(LZ, { zIndex: o }, /*#__PURE__*/ R.createElement(tje, {
point: l,
childIndex: Number(s),
mainColor: n,
@@ -62768,7 +63019,7 @@ function h1(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/radarSelectors.js
-function g1(e, t) {
+function h1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62778,30 +63029,30 @@ function g1(e, t) {
}
return n;
}
-function _1(e) {
+function g1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? g1(Object(n), !0).forEach(function(t) {
- qAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g1(Object(n)).forEach(function(t) {
+ t % 2 ? h1(Object(n), !0).forEach(function(t) {
+ nje(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function qAe(e, t, n) {
- return (t = JAe(t)) in e ? Object.defineProperty(e, t, {
+function nje(e, t, n) {
+ return (t = rje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function JAe(e) {
- var t = YAe(e, "string");
+function rje(e) {
+ var t = ije(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function YAe(e, t) {
+function ije(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62811,15 +63062,15 @@ function YAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var v1 = (e, t) => d$(e, "radiusAxis", t), XAe = $([v1], (e) => {
+var _1 = (e, t) => u$(e, "radiusAxis", t), aje = $([_1], (e) => {
if (e != null) return { scale: e };
-}), ZAe = $([MG, v1], (e, t) => {
- if (e != null && t != null) return _1(_1({}, e), {}, { scale: t });
-}), QAe = (e, t, n, r) => p$(e, "radiusAxis", t, r), y1 = (e, t, n) => jG(e, n), b1 = (e, t, n) => d$(e, "angleAxis", n), $Ae = $([y1, b1], (e, t) => {
- if (e != null && t != null) return _1(_1({}, e), {}, { scale: t });
-}), eje = (e, t, n, r) => p$(e, "angleAxis", n, r), tje = $([
+}), oje = $([MG, _1], (e, t) => {
+ if (e != null && t != null) return g1(g1({}, e), {}, { scale: t });
+}), sje = (e, t, n, r) => f$(e, "radiusAxis", t, r), v1 = (e, t, n) => jG(e, n), y1 = (e, t, n) => u$(e, "angleAxis", n), cje = $([v1, y1], (e, t) => {
+ if (e != null && t != null) return g1(g1({}, e), {}, { scale: t });
+}), lje = (e, t, n, r) => f$(e, "angleAxis", n, r), uje = $([
+ v1,
y1,
- b1,
zG
], (e, t, n) => {
if (n != null && t != null) return {
@@ -62829,40 +63080,40 @@ var v1 = (e, t) => d$(e, "radiusAxis", t), XAe = $([v1], (e) => {
cx: n.cx,
cy: n.cy
};
-}), nje = (e, t, n, r, i) => i, rje = $([
- lH,
- ZAe,
- QAe,
- $Ae,
- eje
-], (e, t, n, r, i) => gV(e, "radiusAxis") ? EV(t, n, !1) : EV(r, i, !1)), ije = $([
- XAe,
- tje,
+}), dje = (e, t, n, r, i) => i, fje = $([
+ gH,
+ oje,
+ sje,
+ cje,
+ lje
+], (e, t, n, r, i) => _V(e, "radiusAxis") ? DV(t, n, !1) : DV(r, i, !1)), pje = $([
+ aje,
+ uje,
ZW,
- $([n$, nje], (e, t) => {
+ $([t$, dje], (e, t) => {
if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;
}),
- rje
+ fje
], (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 mje({
+ if (e != null && t != null && a != null && i != null && r != null) return Cje({
radiusAxis: e,
angleAxis: t,
displayedData: a.slice(o, s + 1),
dataKey: r,
bandSize: i
});
-}), aje = ["id"];
-function x1() {
- return x1 = Object.assign ? Object.assign.bind() : function(e) {
+}), mje = ["id"];
+function b1() {
+ return b1 = 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;
- }, x1.apply(null, arguments);
+ }, b1.apply(null, arguments);
}
-function S1(e, t) {
+function x1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62872,30 +63123,30 @@ function S1(e, t) {
}
return n;
}
-function C1(e) {
+function S1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? S1(Object(n), !0).forEach(function(t) {
- oje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S1(Object(n)).forEach(function(t) {
+ t % 2 ? x1(Object(n), !0).forEach(function(t) {
+ hje(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : x1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function oje(e, t, n) {
- return (t = sje(t)) in e ? Object.defineProperty(e, t, {
+function hje(e, t, n) {
+ return (t = gje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function sje(e) {
- var t = cje(e, "string");
+function gje(e) {
+ var t = _je(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function cje(e, t) {
+function _je(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62905,16 +63156,16 @@ function cje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function lje(e, t) {
+function vje(e, t) {
if (e == null) return {};
- var n, r, i = uje(e, t);
+ var n, r, i = yje(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 uje(e, t) {
+function yje(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62923,42 +63174,42 @@ function uje(e, t) {
}
return n;
}
-function w1(e, t) {
+function C1(e, t) {
return e && e !== "none" ? e : t;
}
-var dje = (e) => {
+var bje = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
- color: w1(r, i),
- value: OV(n, t),
+ color: C1(r, i),
+ value: kV(n, t),
payload: e
}];
-}, fje = /*#__PURE__*/ R.memo((e) => {
+}, xje = /*#__PURE__*/ R.memo((e) => {
var { dataKey: t, stroke: n, strokeWidth: r, fill: i, name: a, hide: o, tooltipType: s, id: c } = e, l = {
dataDefinedOnItem: void 0,
- getPosition: mR,
+ getPosition: hR,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
nameKey: void 0,
dataKey: t,
- name: OV(a, t),
+ name: kV(a, t),
hide: o,
type: s,
- color: w1(n, i),
+ color: C1(n, i),
unit: "",
graphicalItemId: c
}
};
- return /*#__PURE__*/ R.createElement(Q$, { tooltipEntrySettings: l });
+ return /*#__PURE__*/ R.createElement(Z$, { tooltipEntrySettings: l });
});
-function pje(e) {
- var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = JI(lje(n, aje));
- return /*#__PURE__*/ R.createElement(c1, {
+function Sje(e) {
+ var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = YI(vje(n, mje));
+ return /*#__PURE__*/ R.createElement(s1, {
points: t,
dot: r,
className: "recharts-radar-dots",
@@ -62967,11 +63218,11 @@ function pje(e) {
baseProps: o
});
}
-function mje(e) {
+function Cje(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 = hV(e, n.dataKey, r), d = hV(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? vAe(d) : d, m = dR(p) ? 0 : t.scale.map(p) ?? 0;
- Array.isArray(d) && d.length >= 2 && (c = !0), l.push(C1(C1({}, VW(o, s, m, f)), {}, {
+ var a = gV(e, n.dataKey, r), d = gV(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? DAe(d) : d, m = fR(p) ? 0 : t.scale.map(p) ?? 0;
+ Array.isArray(d) && d.length >= 2 && (c = !0), l.push(S1(S1({}, VW(o, s, m, f)), {}, {
name: a,
value: d,
cx: o,
@@ -62984,8 +63235,8 @@ function mje(e) {
var d = [];
return c && l.forEach((e) => {
if (Array.isArray(e.value)) {
- var n = e.value[0], r = dR(n) ? 0 : t.scale.map(n) ?? 0;
- d.push(C1(C1({}, e), {}, { radius: r }, VW(o, s, r, e.angle)));
+ var n = e.value[0], r = fR(n) ? 0 : t.scale.map(n) ?? 0;
+ d.push(S1(S1({}, e), {}, { radius: r }, VW(o, s, r, e.angle)));
} else d.push(e);
}), {
points: l,
@@ -62993,7 +63244,7 @@ function mje(e) {
baseLinePoints: d
};
}
-function hje(e) {
+function wje(e) {
var { showLabels: t, points: n, children: r } = e, i = n.map((e) => {
var t = {
x: e.x,
@@ -63003,7 +63254,7 @@ function hje(e) {
upperWidth: 0,
height: 0
};
- return C1(C1({}, t), {}, {
+ return S1(S1({}, t), {}, {
value: e.value ?? "",
payload: e.payload,
parentViewBox: void 0,
@@ -63011,12 +63262,12 @@ function hje(e) {
fill: void 0
});
});
- return /*#__PURE__*/ R.createElement(KQ, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ R.createElement(GQ, { value: t ? i : void 0 }, r);
}
-function gje(e) {
+function Tje(e) {
var { points: t, baseLinePoints: n, props: r } = e;
if (t == null) return null;
- var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ R.isValidElement(i) ? /*#__PURE__*/ R.cloneElement(i, C1(C1({}, r), {}, { points: t })) : typeof i == "function" ? i(C1(C1({}, r), {}, { points: t })) : /*#__PURE__*/ R.createElement($Q, x1({}, XI(r), {
+ var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ R.isValidElement(i) ? /*#__PURE__*/ R.cloneElement(i, S1(S1({}, r), {}, { points: t })) : typeof i == "function" ? i(S1(S1({}, r), {}, { points: t })) : /*#__PURE__*/ R.createElement(QQ, b1({}, ZI(r), {
onMouseEnter: (e) => {
var { onMouseEnter: t } = r;
t && t(r, e);
@@ -63029,28 +63280,28 @@ function gje(e) {
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ R.createElement(eL, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ R.createElement(pje, {
+ return /*#__PURE__*/ R.createElement(tL, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ R.createElement(Sje, {
props: r,
points: t
}));
}
-var T1 = (e, t, n) => (r, i) => {
+var w1 = (e, t, n) => (r, i) => {
var a = e && e[Math.floor(i * t)];
- return a ? C1(C1({}, r), {}, {
- x: lR(a.x, r.x, n),
- y: lR(a.y, r.y, n)
- }) : C1(C1({}, r), {}, {
- x: lR(r.cx, r.x, n),
- y: lR(r.cy, r.y, n)
+ return a ? S1(S1({}, r), {}, {
+ x: uR(a.x, r.x, n),
+ y: uR(a.y, r.y, n)
+ }) : S1(S1({}, r), {}, {
+ x: uR(r.cx, r.x, n),
+ y: uR(r.cy, r.y, n)
});
};
-function _je(e) {
+function Eje(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 = OW(t, "recharts-radar-"), [_, v] = (0, R.useState)(!1), y = !_, b = (0, R.useCallback)(() => {
typeof u == "function" && u(), v(!1);
}, [u]), x = (0, R.useCallback)(() => {
typeof d == "function" && d(), v(!0);
}, [d]);
- return /*#__PURE__*/ R.createElement(hje, {
+ return /*#__PURE__*/ R.createElement(wje, {
showLabels: y,
points: i
}, /*#__PURE__*/ R.createElement(DW, {
@@ -63063,23 +63314,23 @@ function _je(e) {
onAnimationEnd: b,
onAnimationStart: x
}, (e) => {
- var o = e === 1 ? i : i.map(T1(f, m, e)), s = e === 1 ? a : a?.map(T1(p, h, e));
- return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ R.createElement(gje, {
+ var o = e === 1 ? i : i.map(w1(f, m, e)), s = e === 1 ? a : a?.map(w1(p, h, e));
+ return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ R.createElement(Tje, {
points: o,
baseLinePoints: s,
props: t
});
- }), /*#__PURE__*/ R.createElement(YQ, { label: t.label }), t.children);
+ }), /*#__PURE__*/ R.createElement(JQ, { label: t.label }), t.children);
}
-function vje(e) {
+function Dje(e) {
var t = (0, R.useRef)(void 0), n = (0, R.useRef)(void 0);
- return /*#__PURE__*/ R.createElement(_je, {
+ return /*#__PURE__*/ R.createElement(Eje, {
props: e,
previousPointsRef: t,
previousBaseLinePointsRef: n
});
}
-var yje = {
+var Oje = {
activeDot: !0,
angleAxisId: 0,
animationBegin: 0,
@@ -63093,31 +63344,31 @@ var yje = {
radiusAxisId: 0,
zIndex: SG.area
};
-function bje(e) {
+function kje(e) {
var { hide: t, className: n, points: r } = e;
if (t) return null;
var i = Mu("recharts-radar", n);
- return /*#__PURE__*/ R.createElement(RZ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(eL, { className: i }, /*#__PURE__*/ R.createElement(vje, e)), /*#__PURE__*/ R.createElement(h1, {
+ return /*#__PURE__*/ R.createElement(LZ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(tL, { className: i }, /*#__PURE__*/ R.createElement(Dje, e)), /*#__PURE__*/ R.createElement(m1, {
points: r,
- mainColor: w1(e.stroke, e.fill),
+ mainColor: C1(e.stroke, e.fill),
itemDataKey: e.dataKey,
activeDot: e.activeDot
}));
}
-function xje(e) {
- var t = RV(), n = Q((n) => ije(n, e.radiusAxisId, e.angleAxisId, t, e.id));
- return n?.points == null ? null : /*#__PURE__*/ R.createElement(bje, x1({}, e, {
+function Aje(e) {
+ var t = zV(), n = Q((n) => pje(n, e.radiusAxisId, e.angleAxisId, t, e.id));
+ return n?.points == null ? null : /*#__PURE__*/ R.createElement(kje, b1({}, e, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
isRange: n?.isRange
}));
}
-function E1(e) {
- var t = wR(e, yje);
- return /*#__PURE__*/ R.createElement(t1, {
+function T1(e) {
+ var t = TR(e, Oje);
+ return /*#__PURE__*/ R.createElement(e1, {
id: t.id,
type: "radar"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(i1, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(r1, {
type: "radar",
id: e,
data: void 0,
@@ -63125,7 +63376,7 @@ function E1(e) {
hide: t.hide,
angleAxisId: t.angleAxisId,
radiusAxisId: t.radiusAxisId
- }), /*#__PURE__*/ R.createElement(e1, { legendPayload: dje(t) }), /*#__PURE__*/ R.createElement(fje, {
+ }), /*#__PURE__*/ R.createElement($$, { legendPayload: bje(t) }), /*#__PURE__*/ R.createElement(xje, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -63134,32 +63385,32 @@ function E1(e) {
hide: t.hide,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(xje, x1({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(Aje, b1({}, t, { id: e }))));
}
-E1.displayName = "Radar";
+T1.displayName = "Radar";
//#endregion
//#region node_modules/recharts/es6/util/RadialBarUtils.js
-function D1() {
- return D1 = Object.assign ? Object.assign.bind() : function(e) {
+function E1() {
+ return E1 = 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;
- }, D1.apply(null, arguments);
+ }, E1.apply(null, arguments);
}
-function O1(e) {
+function D1(e) {
return typeof e == "string" ? parseInt(e, 10) : e;
}
-function k1(e) {
- return /*#__PURE__*/ R.createElement(J$, D1({ shapeType: "sector" }, e));
+function O1(e) {
+ return /*#__PURE__*/ R.createElement(q$, E1({ shapeType: "sector" }, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineBarSizeList.js
-var A1 = (e, t, n) => {
+var k1 = (e, t, n) => {
var r = n ?? e;
- if (!dR(r)) return sR(r, t, 0);
-}, j1 = (e, t, n) => {
+ if (!fR(r)) return cR(r, t, 0);
+}, A1 = (e, t, n) => {
var r = {}, i = e.filter(WG), 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;
@@ -63168,18 +63419,18 @@ var A1 = (e, t, n) => {
return {
stackId: r,
dataKeys: i.map((e) => e.dataKey),
- barSize: A1(t, n, i[0]?.barSize)
+ barSize: k1(t, n, i[0]?.barSize)
};
}), c = a.map((e) => ({
stackId: void 0,
dataKeys: [e.dataKey].filter((e) => e != null),
- barSize: A1(t, n, e.barSize)
+ barSize: k1(t, n, e.barSize)
}));
return [...s, ...c];
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineAllBarPositions.js
-function M1(e, t) {
+function j1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63189,30 +63440,30 @@ function M1(e, t) {
}
return n;
}
-function N1(e) {
+function M1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? M1(Object(n), !0).forEach(function(t) {
- Sje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M1(Object(n)).forEach(function(t) {
+ t % 2 ? j1(Object(n), !0).forEach(function(t) {
+ jje(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : j1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Sje(e, t, n) {
- return (t = Cje(t)) in e ? Object.defineProperty(e, t, {
+function jje(e, t, n) {
+ return (t = Mje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Cje(e) {
- var t = wje(e, "string");
+function Mje(e) {
+ var t = Nje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function wje(e, t) {
+function Nje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63222,11 +63473,11 @@ function wje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Tje(e, t, n, r, i) {
+function Pje(e, t, n, r, i) {
var a = r.length;
if (!(a < 1)) {
- var o = sR(e, n, 0, !0), s, c = [];
- if (dV(r[0]?.barSize)) {
+ var o = cR(e, n, 0, !0), s, c = [];
+ if (fV(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 = {
@@ -63245,11 +63496,11 @@ function Tje(e, t, n, r, i) {
return f = n.position, r;
}, c);
} else {
- var p = sR(t, n, 0, !0);
+ var p = cR(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 = dV(i) ? Math.min(m, i) : m;
+ var h = fV(i) ? Math.min(m, i) : m;
s = r.reduce((e, t, n) => [...e, {
stackId: t.stackId,
dataKeys: t.dataKeys,
@@ -63262,10 +63513,10 @@ function Tje(e, t, n, r, i) {
return s;
}
}
-var P1 = (e, t, n, r, i, a, o) => {
- var s = dR(o) ? t : o, c = Tje(n, r, i === a ? a : i, e, s);
- return i !== a && c != null && (c = c.map((e) => N1(N1({}, e), {}, { position: N1(N1({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
-}, F1 = (e, t) => {
+var N1 = (e, t, n, r, i, a, o) => {
+ var s = fR(o) ? t : o, c = Pje(n, r, i === a ? a : i, e, s);
+ return i !== a && c != null && (c = c.map((e) => M1(M1({}, e), {}, { position: M1(M1({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
+}, P1 = (e, t) => {
var n = HG(t);
if (!(!e || n == null || t == null)) {
var { stackId: r } = t;
@@ -63277,7 +63528,7 @@ var P1 = (e, t, n, r, i, a, o) => {
}
}
}
-}, I1 = (e, t) => {
+}, F1 = (e, t) => {
if (e != null && t != null) {
var n = e.find((e) => e.stackId === t.stackId && t.dataKey != null && e.dataKeys.includes(t.dataKey));
if (n != null) return n.position;
@@ -63285,7 +63536,7 @@ var P1 = (e, t, n, r, i, a, o) => {
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/radialBarSelectors.js
-function L1(e, t) {
+function I1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63295,30 +63546,30 @@ function L1(e, t) {
}
return n;
}
-function R1(e) {
+function L1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? L1(Object(n), !0).forEach(function(t) {
- Eje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L1(Object(n)).forEach(function(t) {
+ t % 2 ? I1(Object(n), !0).forEach(function(t) {
+ Fje(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Eje(e, t, n) {
- return (t = Dje(t)) in e ? Object.defineProperty(e, t, {
+function Fje(e, t, n) {
+ return (t = Ije(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Dje(e) {
- var t = Oje(e, "string");
+function Ije(e) {
+ var t = Lje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Oje(e, t) {
+function Lje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63328,81 +63579,81 @@ function Oje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var z1 = $([(e, t) => MG(e, t), (e, t) => d$(e, "radiusAxis", t)], (e, t) => {
- if (e != null && t != null) return R1(R1({}, e), {}, { scale: t });
-}), B1 = (e, t) => VOe(e, "radiusAxis", t, !1), V1 = $([(e, t, n) => jG(e, n), (e, t, n) => d$(e, "angleAxis", n)], (e, t) => {
- if (e != null && t != null) return R1(R1({}, e), {}, { scale: t });
-}), H1 = (e, t, n) => p$(e, "angleAxis", n, !1), U1 = $([n$, (e, t, n, r) => r], (e, t) => {
+var R1 = $([(e, t) => MG(e, t), (e, t) => u$(e, "radiusAxis", t)], (e, t) => {
+ if (e != null && t != null) return L1(L1({}, e), {}, { scale: t });
+}), z1 = (e, t) => XOe(e, "radiusAxis", t, !1), B1 = $([(e, t, n) => jG(e, n), (e, t, n) => u$(e, "angleAxis", n)], (e, t) => {
+ if (e != null && t != null) return L1(L1({}, e), {}, { scale: t });
+}), V1 = (e, t, n) => f$(e, "angleAxis", n, !1), H1 = $([t$, (e, t, n, r) => r], (e, t) => {
if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;
-}), W1 = $([
- lH,
+}), U1 = $([
+ gH,
+ R1,
z1,
B1,
- V1,
- H1
-], (e, t, n, r, i) => gV(e, "radiusAxis") ? EV(t, n, !1) : EV(r, i, !1)), kje = $([
- V1,
- z1,
- lH
+ V1
+], (e, t, n, r, i) => _V(e, "radiusAxis") ? DV(t, n, !1) : DV(r, i, !1)), Rje = $([
+ B1,
+ R1,
+ gH
], (e, t, n) => {
var r = n === "radial" ? e : t;
- if (r != null && r.scale != null) return CV({ numericAxis: r });
-}), Aje = (e, t, n, r, i) => i, jje = (e, t, n, r, i) => n, Mje = (e, t, n, r, i) => t, G1 = (e, t, n, r, i) => r.maxBarSize, K1 = (e) => e.type === "radialBar", Nje = $([$([
+ if (r != null && r.scale != null) return wV({ numericAxis: r });
+}), zje = (e, t, n, r, i) => i, Bje = (e, t, n, r, i) => n, Vje = (e, t, n, r, i) => t, W1 = (e, t, n, r, i) => r.maxBarSize, G1 = (e) => e.type === "radialBar", Hje = $([$([
$([
$([
- lH,
- n$,
- jje,
- Mje
- ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(K1)),
+ gH,
+ t$,
+ Bje,
+ Vje
+ ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(G1)),
hG,
() => void 0
- ], j1),
+ ], A1),
fG,
pG,
mG,
$([
- lH,
+ gH,
fG,
+ B1,
V1,
- H1,
+ R1,
z1,
- B1,
- G1
+ W1
], (e, t, n, r, i, a, o) => {
- var s = dR(o) ? t : o;
- return e === "centric" ? EV(n, r, !0) ?? s ?? 0 : EV(i, a, !0) ?? s ?? 0;
+ var s = fR(o) ? t : o;
+ return e === "centric" ? DV(n, r, !0) ?? s ?? 0 : DV(i, a, !0) ?? s ?? 0;
}),
- W1,
- G1
-], P1), U1], I1), q1 = $([r$], (e) => e.filter(K1).filter(WG)), J1 = $([
+ U1,
+ W1
+], N1), H1], F1), K1 = $([n$], (e) => e.filter(G1).filter(WG)), q1 = $([
$([
- q1,
+ K1,
ZW,
RY
], UG),
- q1,
+ K1,
gG,
_G
-], BY), Pje = $([
+], BY), Uje = $([
+ B1,
V1,
- H1,
+ R1,
z1,
- B1,
XW,
+ H1,
U1,
- W1,
- lH,
- kje,
+ gH,
+ Rje,
zG,
- Aje,
- Nje,
- $([(e, t, n) => lH(e) === "centric" ? J1(e, "radiusAxis", t) : J1(e, "angleAxis", n), U1], F1)
+ zje,
+ Hje,
+ $([(e, t, n) => gH(e) === "centric" ? q1(e, "radiusAxis", t) : q1(e, "angleAxis", n), H1], P1)
], (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 Zje({
+ return oMe({
angleAxis: e,
angleAxisTicks: t,
bandSize: o,
@@ -63423,7 +63674,7 @@ var z1 = $([(e, t) => MG(e, t), (e, t) => d$(e, "radiusAxis", t)], (e, t) => {
stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,
startAngle: b
});
-}), Fje = $([ZW, (e, t) => t], (e, t) => {
+}), Wje = $([ZW, (e, t) => t], (e, t) => {
var { chartData: n, dataStartIndex: r, dataEndIndex: i } = e;
if (n == null) return [];
var a = n.slice(r, i + 1);
@@ -63436,31 +63687,31 @@ var z1 = $([(e, t) => MG(e, t), (e, t) => d$(e, "radiusAxis", t)], (e, t) => {
});
//#endregion
//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.js
-function Y1(e, t) {
- return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && dV(e.zIndex) ? e.zIndex : t;
+function J1(e, t) {
+ return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && fV(e.zIndex) ? e.zIndex : t;
}
//#endregion
//#region node_modules/recharts/es6/polar/RadialBar.js
-var Ije = [
+var Gje = [
"shape",
"activeShape",
"cornerRadius",
"id"
-], Lje = [
+], Kje = [
"onMouseEnter",
"onClick",
"onMouseLeave"
-], Rje = ["value", "background"];
-function X1() {
- return X1 = Object.assign ? Object.assign.bind() : function(e) {
+], qje = ["value", "background"];
+function Y1() {
+ return Y1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, X1.apply(null, arguments);
+ }, Y1.apply(null, arguments);
}
-function Z1(e, t) {
+function X1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63470,30 +63721,30 @@ function Z1(e, t) {
}
return n;
}
-function Q1(e) {
+function Z1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Z1(Object(n), !0).forEach(function(t) {
- zje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Z1(Object(n)).forEach(function(t) {
+ t % 2 ? X1(Object(n), !0).forEach(function(t) {
+ Jje(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function zje(e, t, n) {
- return (t = Bje(t)) in e ? Object.defineProperty(e, t, {
+function Jje(e, t, n) {
+ return (t = Yje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Bje(e) {
- var t = Vje(e, "string");
+function Yje(e) {
+ var t = Xje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Vje(e, t) {
+function Xje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63503,16 +63754,16 @@ function Vje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function $1(e, t) {
+function Q1(e, t) {
if (e == null) return {};
- var n, r, i = Hje(e, t);
+ var n, r, i = Zje(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Hje(e, t) {
+function Zje(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63521,8 +63772,8 @@ function Hje(e, t) {
}
return n;
}
-var e0 = [];
-function Uje(e) {
+var $1 = [];
+function Qje(e) {
var { showLabels: t, sectors: n, children: r } = e, i = n.map((e) => ({
value: e.value,
payload: e.payload,
@@ -63539,15 +63790,15 @@ function Uje(e) {
},
fill: e.fill
}));
- return /*#__PURE__*/ R.createElement(kOe, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ R.createElement(ROe, { value: t ? i : void 0 }, r);
}
-function Wje(e) {
- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = $1(n, Ije), l = JI(c), u = Q(_Z), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = $1(n, Lje), h = Y$(d, n.dataKey, s), g = X$(p), _ = Z$(f, n.dataKey, s);
- return t == null ? null : /*#__PURE__*/ R.createElement(Uje, {
+function $je(e) {
+ var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = Q1(n, Gje), l = YI(c), u = Q(gZ), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = Q1(n, Kje), h = J$(d, n.dataKey, s), g = Y$(p), _ = X$(f, n.dataKey, s);
+ return t == null ? null : /*#__PURE__*/ R.createElement(Qje, {
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 = Q1(Q1(Q1(Q1({}, l), {}, { cornerRadius: O1(o) }, e), SR(m, e, t)), {}, {
+ var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = Z1(Z1(Z1(Z1({}, l), {}, { cornerRadius: D1(o) }, e), CR(m, e, t)), {}, {
onMouseEnter: r,
onMouseLeave: s,
onClick: d,
@@ -63558,13 +63809,13 @@ function Wje(e) {
option: n ? a : i,
index: t
});
- return n ? /*#__PURE__*/ R.createElement(RZ, {
+ return n ? /*#__PURE__*/ R.createElement(LZ, {
zIndex: SG.activeBar,
key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`
- }, /*#__PURE__*/ R.createElement(k1, f)) : /*#__PURE__*/ R.createElement(k1, X1({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
- }), /*#__PURE__*/ R.createElement(YQ, { label: n.label }), n.children);
+ }, /*#__PURE__*/ R.createElement(O1, f)) : /*#__PURE__*/ R.createElement(O1, Y1({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
+ }), /*#__PURE__*/ R.createElement(JQ, { label: n.label }), n.children);
}
-function Gje(e) {
+function eMe(e) {
var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = OW(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, R.useState)(!1), m = (0, R.useCallback)(() => {
typeof c == "function" && c(), p(!1);
}, [c]), h = (0, R.useCallback)(() => {
@@ -63580,37 +63831,37 @@ function Gje(e) {
onAnimationEnd: m,
key: u
}, (e) => {
- var i = e === 1 ? r : (r ?? e0).map((t, n) => {
+ var i = e === 1 ? r : (r ?? $1).map((t, n) => {
var r = d && d[n];
- if (r) return Q1(Q1({}, t), {}, {
- startAngle: lR(r.startAngle, t.startAngle, e),
- endAngle: lR(r.endAngle, t.endAngle, e)
+ if (r) return Z1(Z1({}, t), {}, {
+ startAngle: uR(r.startAngle, t.startAngle, e),
+ endAngle: uR(r.endAngle, t.endAngle, e)
});
var { endAngle: i, startAngle: a } = t;
- return Q1(Q1({}, t), {}, { endAngle: lR(a, i, e) });
+ return Z1(Z1({}, t), {}, { endAngle: uR(a, i, e) });
});
- return e > 0 && (n.current = i ?? null), /*#__PURE__*/ R.createElement(Wje, {
- sectors: i ?? e0,
+ return e > 0 && (n.current = i ?? null), /*#__PURE__*/ R.createElement($je, {
+ sectors: i ?? $1,
allOtherRadialBarProps: t,
showLabels: !f
});
});
}
-function Kje(e) {
+function tMe(e) {
var t = (0, R.useRef)(null);
- return /*#__PURE__*/ R.createElement(Gje, {
+ return /*#__PURE__*/ R.createElement(eMe, {
props: e,
previousSectorsRef: t
});
}
-function qje(e) {
- var t = Q((t) => Fje(t, e.legendType));
- return /*#__PURE__*/ R.createElement(e1, { legendPayload: t ?? [] });
+function nMe(e) {
+ var t = Q((t) => Wje(t, e.legendType));
+ return /*#__PURE__*/ R.createElement($$, { legendPayload: t ?? [] });
}
-var Jje = /*#__PURE__*/ R.memo((e) => {
+var rMe = /*#__PURE__*/ R.memo((e) => {
var { dataKey: t, sectors: n, stroke: r, strokeWidth: i, name: a, hide: o, fill: s, tooltipType: c, id: l } = e, u = {
dataDefinedOnItem: n,
- getPosition: mR,
+ getPosition: hR,
settings: {
graphicalItemId: l,
stroke: r,
@@ -63618,45 +63869,45 @@ var Jje = /*#__PURE__*/ R.memo((e) => {
fill: s,
nameKey: void 0,
dataKey: t,
- name: OV(a, t),
+ name: kV(a, t),
hide: o,
type: c,
color: s,
unit: ""
}
};
- return /*#__PURE__*/ R.createElement(Q$, { tooltipEntrySettings: u });
-}), Yje = class extends R.PureComponent {
+ return /*#__PURE__*/ R.createElement(Z$, { tooltipEntrySettings: u });
+}), iMe = class extends R.PureComponent {
renderBackground(e) {
if (e == null) return null;
- var { cornerRadius: t } = this.props, n = YI(this.props.background);
- return /*#__PURE__*/ R.createElement(RZ, { zIndex: Y1(this.props.background, SG.barBackground) }, e.map((e, r) => {
- var { value: i, background: a } = e, o = $1(e, Rje);
+ var { cornerRadius: t } = this.props, n = XI(this.props.background);
+ return /*#__PURE__*/ R.createElement(LZ, { zIndex: J1(this.props.background, SG.barBackground) }, e.map((e, r) => {
+ var { value: i, background: a } = e, o = Q1(e, qje);
if (!a) return null;
- var s = Q1(Q1(Q1(Q1(Q1({ cornerRadius: O1(t) }, o), {}, { fill: "#eee" }, a), n), SR(this.props, e, r)), {}, {
+ var s = Z1(Z1(Z1(Z1(Z1({ cornerRadius: D1(t) }, o), {}, { fill: "#eee" }, a), n), CR(this.props, e, r)), {}, {
index: r,
className: Mu("recharts-radial-bar-background-sector", String(n?.className)),
option: a,
isActive: !1
});
- return /*#__PURE__*/ R.createElement(k1, X1({ key: `background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}` }, s));
+ return /*#__PURE__*/ R.createElement(O1, Y1({ key: `background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}` }, s));
}));
}
render() {
var { hide: e, sectors: t, className: n, background: r } = this.props;
if (e) return null;
var i = Mu("recharts-area", n);
- return /*#__PURE__*/ R.createElement(RZ, { zIndex: this.props.zIndex }, /*#__PURE__*/ R.createElement(eL, { className: i }, r && /*#__PURE__*/ R.createElement(eL, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ R.createElement(eL, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ R.createElement(Kje, this.props))));
+ return /*#__PURE__*/ R.createElement(LZ, { zIndex: this.props.zIndex }, /*#__PURE__*/ R.createElement(tL, { className: i }, r && /*#__PURE__*/ R.createElement(tL, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ R.createElement(tL, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ R.createElement(tMe, this.props))));
}
};
-function Xje(e) {
- var t = R.useMemo(() => R$(e.children, tQ), [e.children]), n = R.useMemo(() => ({
+function aMe(e) {
+ var t = R.useMemo(() => L$(e.children, eQ), [e.children]), n = R.useMemo(() => ({
data: void 0,
hide: !1,
id: e.id,
dataKey: e.dataKey,
minPointSize: e.minPointSize,
- stackId: bV(e.stackId),
+ stackId: xV(e.stackId),
maxBarSize: e.maxBarSize,
barSize: e.barSize,
type: "radialBar",
@@ -63671,8 +63922,8 @@ function Xje(e) {
e.barSize,
e.angleAxisId,
e.radiusAxisId
- ]), r = Q((r) => Pje(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? e0;
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Jje, {
+ ]), r = Q((r) => Uje(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? $1;
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(rMe, {
dataKey: e.dataKey,
sectors: r,
stroke: e.stroke,
@@ -63682,9 +63933,9 @@ function Xje(e) {
fill: e.fill,
tooltipType: e.tooltipType,
id: e.id
- }), /*#__PURE__*/ R.createElement(Yje, X1({}, e, { sectors: r })));
+ }), /*#__PURE__*/ R.createElement(iMe, Y1({}, e, { sectors: r })));
}
-var t0 = {
+var e0 = {
angleAxisId: 0,
animationBegin: 0,
animationDuration: 1500,
@@ -63701,12 +63952,12 @@ var t0 = {
radiusAxisId: 0,
zIndex: SG.bar
};
-function Zje(e) {
+function oMe(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 ? e0 : (t ?? []).map((e, t) => {
+ return g == null || l == null ? $1 : (t ?? []).map((e, t) => {
var b, x, S, C, w, T;
- if (n ? b = yV(n[r + t], i) : (b = hV(e, a), Array.isArray(b) || (b = [o, b])), s === "radial") {
- if (C = f.scale.map(b[0]) ?? v, w = f.scale.map(b[1]) ?? y, x = SV({
+ if (n ? b = bV(n[r + t], i) : (b = gV(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 = CV({
axis: c,
ticks: l,
bandSize: u,
@@ -63717,7 +63968,7 @@ function Zje(e) {
S = x + d.size;
var E = w - C;
if (Math.abs(p) > 0 && Math.abs(E) < Math.abs(p)) {
- var D = nR(E || p) * (Math.abs(p) - Math.abs(E));
+ var D = rR(E || p) * (Math.abs(p) - Math.abs(E));
w += D;
}
T = { background: {
@@ -63729,7 +63980,7 @@ function Zje(e) {
endAngle: y
} };
}
- } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = SV({
+ } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = CV({
axis: f,
ticks: g,
bandSize: u,
@@ -63740,11 +63991,11 @@ function Zje(e) {
w = C + d.size;
var O = S - x;
if (Math.abs(p) > 0 && Math.abs(O) < Math.abs(p)) {
- var k = nR(O || p) * (Math.abs(p) - Math.abs(O));
+ var k = rR(O || p) * (Math.abs(p) - Math.abs(O));
S += k;
}
}
- return Q1(Q1(Q1({}, e), T), {}, {
+ return Z1(Z1(Z1({}, e), T), {}, {
payload: e,
value: n ? b : b[1],
cx: m,
@@ -63756,38 +64007,38 @@ function Zje(e) {
}, _ && _[t] && _[t].props);
});
}
-function n0(e) {
- var t = wR(e, t0);
- return /*#__PURE__*/ R.createElement(t1, {
+function t0(e) {
+ var t = TR(e, e0);
+ return /*#__PURE__*/ R.createElement(e1, {
id: t.id,
type: "radialBar"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(i1, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(r1, {
type: "radialBar",
id: e,
data: void 0,
dataKey: t.dataKey,
- hide: t.hide ?? t0.hide,
- angleAxisId: t.angleAxisId ?? t0.angleAxisId,
- radiusAxisId: t.radiusAxisId ?? t0.radiusAxisId,
- stackId: bV(t.stackId),
+ hide: t.hide ?? e0.hide,
+ angleAxisId: t.angleAxisId ?? e0.angleAxisId,
+ radiusAxisId: t.radiusAxisId ?? e0.radiusAxisId,
+ stackId: xV(t.stackId),
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
- }), /*#__PURE__*/ R.createElement(qje, t), /*#__PURE__*/ R.createElement(Xje, X1({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(nMe, t), /*#__PURE__*/ R.createElement(aMe, Y1({}, t, { id: e }))));
}
-n0.displayName = "RadialBar";
+t0.displayName = "RadialBar";
//#endregion
//#region node_modules/recharts/es6/context/chartDataContext.js
-var r0 = (e) => {
- var { chartData: t } = e, n = ZR(), r = RV();
- return (0, R.useEffect)(() => r ? () => {} : (n(YZ(t)), () => {
- n(YZ(void 0));
+var n0 = (e) => {
+ var { chartData: t } = e, n = QR(), r = zV();
+ return (0, R.useEffect)(() => r ? () => {} : (n(JZ(t)), () => {
+ n(JZ(void 0));
}), [
t,
n,
r
]), null;
-}, i0 = {
+}, r0 = {
x: 0,
y: 0,
width: 0,
@@ -63798,13 +64049,13 @@ var r0 = (e) => {
bottom: 0,
left: 0
}
-}, a0 = IB({
+}, i0 = LB({
name: "brush",
- initialState: i0,
+ initialState: r0,
reducers: { setBrushSettings(e, t) {
- return t.payload == null ? i0 : t.payload;
+ return t.payload == null ? r0 : t.payload;
} }
-}), { setBrushSettings: Qje } = a0.actions, $je = a0.reducer, eMe = (e, t) => {
+}), { setBrushSettings: sMe } = i0.actions, cMe = i0.reducer, lMe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return {
x: Math.min(n, i),
@@ -63812,9 +64063,9 @@ var r0 = (e) => {
width: Math.abs(i - n),
height: Math.abs(a - r)
};
-}, tMe = (e) => {
+}, uMe = (e) => {
var { x1: t, y1: n, x2: r, y2: i } = e;
- return eMe({
+ return lMe({
x: t,
y: n
}, {
@@ -63822,13 +64073,13 @@ var r0 = (e) => {
y: i
});
};
-function nMe(e) {
+function dMe(e) {
return (e % 180 + 180) % 180;
}
-var rMe = function(e) {
- var { width: t, height: n } = e, r = nMe(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 fMe = function(e) {
+ var { width: t, height: n } = e, r = dMe(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);
-}, o0 = IB({
+}, a0 = LB({
name: "referenceElements",
initialState: {
dots: [],
@@ -63840,35 +64091,35 @@ var rMe = function(e) {
e.dots.push(t.payload);
},
removeDot: (e, t) => {
- var n = CB(e).dots.findIndex((e) => e === t.payload);
+ var n = wB(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 = CB(e).areas.findIndex((e) => e === t.payload);
+ var n = wB(e).areas.findIndex((e) => e === t.payload);
n !== -1 && e.areas.splice(n, 1);
},
addLine: (e, t) => {
- e.lines.push(dU(t.payload));
+ e.lines.push(vU(t.payload));
},
removeLine: (e, t) => {
- var n = CB(e).lines.findIndex((e) => e === t.payload);
+ var n = wB(e).lines.findIndex((e) => e === t.payload);
n !== -1 && e.lines.splice(n, 1);
}
}
-}), { addDot: iMe, removeDot: aMe, addArea: oMe, removeArea: sMe, addLine: cMe, removeLine: lMe } = o0.actions, uMe = o0.reducer, s0 = /*#__PURE__*/ (0, R.createContext)(void 0), dMe = (e) => {
- var { children: t } = e, [n] = (0, R.useState)(`${oR("recharts")}-clip`), r = f1();
+}), { addDot: pMe, removeDot: mMe, addArea: hMe, removeArea: gMe, addLine: _Me, removeLine: vMe } = a0.actions, yMe = a0.reducer, o0 = /*#__PURE__*/ (0, R.createContext)(void 0), bMe = (e) => {
+ var { children: t } = e, [n] = (0, R.useState)(`${sR("recharts")}-clip`), r = d1();
if (r == null) return null;
var { x: i, y: a, width: o, height: s } = r;
- return /*#__PURE__*/ R.createElement(s0.Provider, { value: n }, /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: n }, /*#__PURE__*/ R.createElement("rect", {
+ return /*#__PURE__*/ R.createElement(o0.Provider, { value: n }, /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: n }, /*#__PURE__*/ R.createElement("rect", {
x: i,
y: a,
height: s,
width: o
}))), t);
-}, fMe = () => (0, R.useContext)(s0), pMe = class {
+}, xMe = () => (0, R.useContext)(o0), SMe = class {
constructor(e) {
var { x: t, y: n } = e;
this.xAxisScale = t, this.yAxisScale = n;
@@ -63894,7 +64145,7 @@ var rMe = function(e) {
};
//#endregion
//#region node_modules/recharts/es6/cartesian/ReferenceLine.js
-function c0(e, t) {
+function s0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63904,30 +64155,30 @@ function c0(e, t) {
}
return n;
}
-function l0(e) {
+function c0(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) {
- mMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c0(Object(n)).forEach(function(t) {
+ t % 2 ? s0(Object(n), !0).forEach(function(t) {
+ CMe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function mMe(e, t, n) {
- return (t = hMe(t)) in e ? Object.defineProperty(e, t, {
+function CMe(e, t, n) {
+ return (t = wMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function hMe(e) {
- var t = gMe(e, "string");
+function wMe(e) {
+ var t = TMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function gMe(e, t) {
+function TMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63937,27 +64188,27 @@ function gMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function u0() {
- return u0 = Object.assign ? Object.assign.bind() : function(e) {
+function l0() {
+ return l0 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, u0.apply(null, arguments);
+ }, l0.apply(null, arguments);
}
-var _Me = (e, t) => {
+var EMe = (e, t) => {
var n;
if (/*#__PURE__*/ R.isValidElement(e)) n = /*#__PURE__*/ R.cloneElement(e, t);
else if (typeof e == "function") n = e(t);
else {
- if (!dV(t.x1) || !dV(t.y1) || !dV(t.x2) || !dV(t.y2)) return null;
- n = /*#__PURE__*/ R.createElement("line", u0({}, t, { className: "recharts-reference-line-line" }));
+ if (!fV(t.x1) || !fV(t.y1) || !fV(t.x2) || !fV(t.y2)) return null;
+ n = /*#__PURE__*/ R.createElement("line", l0({}, t, { className: "recharts-reference-line-line" }));
}
return n;
-}, vMe = (e, t, n, r, i, a) => {
+}, DMe = (e, t, n, r, i, a) => {
var { x: o, width: s } = a, c = i.map(e, { position: n });
- if (!dV(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!fV(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: o + s,
y: c
@@ -63966,9 +64217,9 @@ var _Me = (e, t) => {
y: c
}];
return r === "left" ? l.reverse() : l;
-}, yMe = (e, t, n, r, i, a) => {
+}, OMe = (e, t, n, r, i, a) => {
var { y: o, height: s } = a, c = i.map(e, { position: n });
- if (!dV(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!fV(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: c,
y: o + s
@@ -63977,7 +64228,7 @@ var _Me = (e, t) => {
y: o
}];
return r === "top" ? l.reverse() : l;
-}, bMe = (e, t, n, r) => {
+}, kMe = (e, t, n, r) => {
var i = [r.mapWithFallback(e[0], {
position: n,
fallback: "rangeMin"
@@ -63986,43 +64237,43 @@ var _Me = (e, t) => {
fallback: "rangeMax"
})];
return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;
-}, xMe = (e, t, n, r, i, a, o) => {
- var { x: s, y: c, segment: l, ifOverflow: u } = o, d = aR(s);
- return aR(c) ? vMe(c, u, r, a, t, n) : d ? yMe(s, u, r, i, e, n) : l != null && l.length === 2 ? bMe(l, u, r, new pMe({
+}, AMe = (e, t, n, r, i, a, o) => {
+ var { x: s, y: c, segment: l, ifOverflow: u } = o, d = oR(s);
+ return oR(c) ? DMe(c, u, r, a, t, n) : d ? OMe(s, u, r, i, e, n) : l != null && l.length === 2 ? kMe(l, u, r, new SMe({
x: e,
y: t
})) : null;
};
-function SMe(e) {
- var t = ZR();
- return (0, R.useEffect)(() => (t(cMe(e)), () => {
- t(lMe(e));
+function jMe(e) {
+ var t = QR();
+ return (0, R.useEffect)(() => (t(_Me(e)), () => {
+ t(vMe(e));
})), null;
}
-function CMe(e) {
- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = RV(), s = fMe(), c = Q((e) => hY(e, t)), l = Q((e) => vY(e, n)), u = Q((e) => hX(e, "xAxis", t, o)), d = Q((e) => hX(e, "yAxis", n, o)), f = rH();
+function MMe(e) {
+ var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = zV(), s = xMe(), c = Q((e) => hY(e, t)), l = Q((e) => vY(e, n)), u = Q((e) => hX(e, "xAxis", t, o)), d = Q((e) => hX(e, "yAxis", n, o)), f = uH();
if (!s || !f || c == null || l == null || u == null || d == null) return null;
- var p = xMe(u, d, f, e.position, c.orientation, l.orientation, e);
+ var p = AMe(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 = l0(l0({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, XI(e)), {}, {
+ var { x: g, y: _ } = m, { x: v, y } = h, b = c0(c0({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, ZI(e)), {}, {
x1: g,
y1: _,
x2: v,
y2: y
- }), x = tMe({
+ }), x = uMe({
x1: g,
y1: _,
x2: v,
y2: y
});
- return /*#__PURE__*/ R.createElement(RZ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(eL, { className: Mu("recharts-reference-line", i) }, _Me(r, b), /*#__PURE__*/ R.createElement(PQ, u0({}, x, {
+ return /*#__PURE__*/ R.createElement(LZ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(tL, { className: Mu("recharts-reference-line", i) }, EMe(r, b), /*#__PURE__*/ R.createElement(NQ, l0({}, x, {
lowerWidth: x.width,
upperWidth: x.width
- }), /*#__PURE__*/ R.createElement(HQ, { label: e.label }), e.children)));
+ }), /*#__PURE__*/ R.createElement(VQ, { label: e.label }), e.children)));
}
-var wMe = {
+var NMe = {
ifOverflow: "discard",
xAxisId: 0,
yAxisId: 0,
@@ -64034,21 +64285,21 @@ var wMe = {
position: "middle",
zIndex: SG.line
};
-function d0(e) {
- var t = wR(e, wMe);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(SMe, {
+function u0(e) {
+ var t = TR(e, NMe);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(jMe, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
ifOverflow: t.ifOverflow,
x: t.x,
y: t.y,
segment: t.segment
- }), /*#__PURE__*/ R.createElement(CMe, t));
+ }), /*#__PURE__*/ R.createElement(MMe, t));
}
-d0.displayName = "ReferenceLine";
+u0.displayName = "ReferenceLine";
//#endregion
//#region node_modules/recharts/es6/util/getEveryNth.js
-function f0(e, t) {
+function d0(e, t) {
if (t < 1) return [];
if (t === 1) return e;
for (var n = [], r = 0; r < e.length; r += t) {
@@ -64059,13 +64310,13 @@ function f0(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/util/TickUtils.js
-function TMe(e, t, n) {
- return rMe({
+function PMe(e, t, n) {
+ return fMe({
width: e.width + t.width,
height: e.height + t.height
}, n);
}
-function EMe(e, t, n) {
+function FMe(e, t, n) {
var r = n === "width", { x: i, y: a, width: o, height: s } = e;
return t === 1 ? {
start: r ? i : a,
@@ -64075,33 +64326,33 @@ function EMe(e, t, n) {
end: r ? i : a
};
}
-function p0(e, t, n, r, i) {
+function f0(e, t, n, r, i) {
if (e * t < e * r || e * t > e * i) return !1;
var a = n();
return e * (t - e * a / 2 - r) >= 0 && e * (t + e * a / 2 - i) <= 0;
}
-function DMe(e, t) {
- return f0(e, t + 1);
+function IMe(e, t) {
+ return d0(e, t + 1);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.js
-function OMe(e, t, n, r, i) {
+function LMe(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: f0(r, l) };
- var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || p0(e, p, f, u, s);
+ if (t === void 0) return { v: d0(r, l) };
+ var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || f0(e, p, f, u, s);
m || (c = 0, u = o, l += 1), m && (u = p + e * (f() / 2 + i), c += l);
}, f; l <= a.length;) if (f = d(), f) return f.v;
return [];
}
-function kMe(e, t, n, r, i) {
+function RMe(e, t, n, r, i) {
var a = (r || []).slice().length;
if (a === 0) return [];
for (var { start: o, end: s } = t, c = 1; c <= a; c++) {
for (var l = (a - 1) % c, u = o, d = !0, f = function() {
var t = r[m];
if (t == null) return 0;
- var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || p0(e, f, c, u, s);
+ var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || f0(e, f, c, u, s);
if (!p) return d = !1, 1;
p && (u = f + e * (c() / 2 + i));
}, p, m = l; m < a && (p = f(), p === 0 || p !== 1); m += c);
@@ -64117,7 +64368,7 @@ function kMe(e, t, n, r, i) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getTicks.js
-function m0(e, t) {
+function p0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64127,30 +64378,30 @@ function m0(e, t) {
}
return n;
}
-function h0(e) {
+function m0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? m0(Object(n), !0).forEach(function(t) {
- AMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : m0(Object(n)).forEach(function(t) {
+ t % 2 ? p0(Object(n), !0).forEach(function(t) {
+ zMe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : p0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function AMe(e, t, n) {
- return (t = jMe(t)) in e ? Object.defineProperty(e, t, {
+function zMe(e, t, n) {
+ return (t = BMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function jMe(e) {
- var t = MMe(e, "string");
+function BMe(e) {
+ var t = VMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function MMe(e, t) {
+function VMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64160,26 +64411,26 @@ function MMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function NMe(e, t, n, r, i) {
+function HMe(e, t, n, r, i) {
for (var a = (r || []).slice(), o = a.length, { start: s } = t, { end: c } = t, l = function(t) {
var r = a[t];
if (r == null) return 1;
var l = r, u, d = () => (u === void 0 && (u = n(r, t)), u);
if (t === o - 1) {
var f = e * (l.coordinate + e * d() / 2 - c);
- a[t] = l = h0(h0({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });
- } else a[t] = l = h0(h0({}, l), {}, { tickCoord: l.coordinate });
- l.tickCoord != null && p0(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = h0(h0({}, l), {}, { isShow: !0 }));
+ a[t] = l = m0(m0({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });
+ } else a[t] = l = m0(m0({}, l), {}, { tickCoord: l.coordinate });
+ l.tickCoord != null && f0(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = m0(m0({}, l), {}, { isShow: !0 }));
}, u = o - 1; u >= 0; u--) if (l(u)) continue;
return a;
}
-function PMe(e, t, n, r, i, a) {
+function UMe(e, t, n, r, i, a) {
var o = (r || []).slice(), s = o.length, { start: c, end: l } = t;
if (a) {
var u = r[s - 1];
if (u != null) {
var d = n(u, s - 1), f = e * (u.coordinate + e * d / 2 - l);
- o[s - 1] = u = h0(h0({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && p0(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = h0(h0({}, u), {}, { isShow: !0 }));
+ o[s - 1] = u = m0(m0({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && f0(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = m0(m0({}, u), {}, { isShow: !0 }));
}
}
for (var p = a ? s - 1 : s, m = function(t) {
@@ -64188,17 +64439,17 @@ function PMe(e, t, n, r, i, a) {
var a = r, s, u = () => (s === void 0 && (s = n(r, t)), s);
if (t === 0) {
var d = e * (a.coordinate - e * u() / 2 - c);
- o[t] = a = h0(h0({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });
- } else o[t] = a = h0(h0({}, a), {}, { tickCoord: a.coordinate });
- a.tickCoord != null && p0(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = h0(h0({}, a), {}, { isShow: !0 }));
+ o[t] = a = m0(m0({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });
+ } else o[t] = a = m0(m0({}, a), {}, { tickCoord: a.coordinate });
+ a.tickCoord != null && f0(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = m0(m0({}, a), {}, { isShow: !0 }));
}, h = 0; h < p; h++) if (m(h)) continue;
return o;
}
-function g0(e, t, n) {
+function h0(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) || YU.isSsr) return DMe(i, Z(c) ? c : 0) ?? [];
- var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? sQ(u, {
+ if (Z(c) || YU.isSsr) return IMe(i, Z(c) ? c : 0) ?? [];
+ var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? oQ(u, {
fontSize: t,
letterSpacing: n
}) : {
@@ -64206,19 +64457,19 @@ function g0(e, t, n) {
height: 0
}, h = (e, r) => {
var i = typeof l == "function" ? l(e.value, r) : e.value;
- return p === "width" ? TMe(sQ(i, {
+ return p === "width" ? PMe(oQ(i, {
fontSize: t,
letterSpacing: n
- }), m, d) : sQ(i, {
+ }), m, d) : oQ(i, {
fontSize: t,
letterSpacing: n
})[p];
- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? nR(_.coordinate - g.coordinate) : 1, y = EMe(a, v, p);
- return c === "equidistantPreserveStart" ? OMe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? kMe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? PMe(v, y, h, i, o, c === "preserveStartEnd") : NMe(v, y, h, i, o), f.filter((e) => e.isShow));
+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? rR(_.coordinate - g.coordinate) : 1, y = FMe(a, v, p);
+ return c === "equidistantPreserveStart" ? LMe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? RMe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? UMe(v, y, h, i, o, c === "preserveStartEnd") : HMe(v, y, h, i, o), f.filter((e) => e.isShow));
}
//#endregion
//#region node_modules/recharts/es6/util/YAxisUtils.js
-var FMe = (e) => {
+var WMe = (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) => {
@@ -64231,7 +64482,7 @@ var FMe = (e) => {
return Math.round(l);
}
return 0;
-}, _0 = IB({
+}, g0 = LB({
name: "renderedTicks",
initialState: {
xAxis: {},
@@ -64240,14 +64491,14 @@ var FMe = (e) => {
reducers: {
setRenderedTicks: (e, t) => {
var { axisType: n, axisId: r, ticks: i } = t.payload;
- e[n][r] = dU(i);
+ e[n][r] = vU(i);
},
removeRenderedTicks: (e, t) => {
var { axisType: n, axisId: r } = t.payload;
delete e[n][r];
}
}
-}), { setRenderedTicks: IMe, removeRenderedTicks: LMe } = _0.actions, RMe = _0.reducer, zMe = [
+}), { setRenderedTicks: GMe, removeRenderedTicks: KMe } = g0.actions, qMe = g0.reducer, JMe = [
"axisLine",
"width",
"height",
@@ -64257,16 +64508,16 @@ var FMe = (e) => {
"axisType",
"axisId"
];
-function BMe(e, t) {
+function YMe(e, t) {
if (e == null) return {};
- var n, r, i = VMe(e, t);
+ var n, r, i = XMe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function VMe(e, t) {
+function XMe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64275,16 +64526,16 @@ function VMe(e, t) {
}
return n;
}
-function v0() {
- return v0 = Object.assign ? Object.assign.bind() : function(e) {
+function _0() {
+ return _0 = 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;
- }, v0.apply(null, arguments);
+ }, _0.apply(null, arguments);
}
-function y0(e, t) {
+function v0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64294,30 +64545,30 @@ function y0(e, t) {
}
return n;
}
-function b0(e) {
+function y0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? y0(Object(n), !0).forEach(function(t) {
- HMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : y0(Object(n)).forEach(function(t) {
+ t % 2 ? v0(Object(n), !0).forEach(function(t) {
+ ZMe(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 HMe(e, t, n) {
- return (t = UMe(t)) in e ? Object.defineProperty(e, t, {
+function ZMe(e, t, n) {
+ return (t = QMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function UMe(e) {
- var t = WMe(e, "string");
+function QMe(e) {
+ var t = $Me(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function WMe(e, t) {
+function $Me(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64327,7 +64578,7 @@ function WMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var x0 = {
+var b0 = {
x: 0,
y: 0,
width: 0,
@@ -64351,13 +64602,13 @@ var x0 = {
interval: "preserveEnd",
zIndex: SG.axis
};
-function GMe(e) {
+function eNe(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 = b0(b0(b0({}, c), JI(s)), {}, { fill: "none" });
+ var l = y0(y0(y0({}, c), YI(s)), {}, { fill: "none" });
if (a === "top" || a === "bottom") {
var u = +(a === "top" && !o || a === "bottom" && o);
- l = b0(b0({}, l), {}, {
+ l = y0(y0({}, l), {}, {
x1: t,
y1: n + u * i,
x2: t + r,
@@ -64365,16 +64616,16 @@ function GMe(e) {
});
} else {
var d = +(a === "left" && !o || a === "right" && o);
- l = b0(b0({}, l), {}, {
+ l = y0(y0({}, l), {}, {
x1: t + d * r,
y1: n,
x2: t + d * r,
y2: n + i
});
}
- return /*#__PURE__*/ R.createElement("line", v0({}, l, { className: Mu("recharts-cartesian-axis-line", $L(s, "className")) }));
+ return /*#__PURE__*/ R.createElement("line", _0({}, l, { className: Mu("recharts-cartesian-axis-line", eR(s, "className")) }));
}
-function KMe(e, t, n, r, i, a, o, s, c) {
+function tNe(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":
@@ -64401,14 +64652,14 @@ function KMe(e, t, n, r, i, a, o, s, c) {
}
};
}
-function qMe(e, t) {
+function nNe(e, t) {
switch (e) {
case "left": return t ? "start" : "end";
case "right": return t ? "end" : "start";
default: return "middle";
}
}
-function JMe(e, t) {
+function rNe(e, t) {
switch (e) {
case "left":
case "right": return "middle";
@@ -64416,19 +64667,19 @@ function JMe(e, t) {
default: return t ? "end" : "start";
}
}
-function YMe(e) {
+function iNe(e) {
var { option: t, tickProps: n, value: r } = e, i, a = Mu(n.className, "recharts-cartesian-axis-tick-value");
- if (/*#__PURE__*/ R.isValidElement(t)) i = /*#__PURE__*/ R.cloneElement(t, b0(b0({}, n), {}, { className: a }));
- else if (typeof t == "function") i = t(b0(b0({}, n), {}, { className: a }));
+ if (/*#__PURE__*/ R.isValidElement(t)) i = /*#__PURE__*/ R.cloneElement(t, y0(y0({}, n), {}, { className: a }));
+ else if (typeof t == "function") i = t(y0(y0({}, n), {}, { className: a }));
else {
var o = "recharts-cartesian-axis-tick-value";
- typeof t != "boolean" && (o = Mu(o, S$(t))), i = /*#__PURE__*/ R.createElement(EQ, v0({}, n, { className: o }), r);
+ typeof t != "boolean" && (o = Mu(o, x$(t))), i = /*#__PURE__*/ R.createElement(TQ, _0({}, n, { className: o }), r);
}
return i;
}
-function XMe(e) {
- var { ticks: t, axisType: n, axisId: r } = e, i = ZR();
- return (0, R.useEffect)(() => r == null || n == null ? mR : (i(IMe({
+function aNe(e) {
+ var { ticks: t, axisType: n, axisId: r } = e, i = QR();
+ return (0, R.useEffect)(() => r == null || n == null ? hR : (i(GMe({
ticks: t.map((e) => ({
value: e.value,
coordinate: e.coordinate,
@@ -64438,7 +64689,7 @@ function XMe(e) {
axisId: r,
axisType: n
})), () => {
- i(LMe({
+ i(KMe({
axisId: r,
axisType: n
}));
@@ -64449,17 +64700,17 @@ function XMe(e) {
n
]), null;
}
-var ZMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { ticks: n = [], tick: r, tickLine: i, stroke: a, tickFormatter: o, unit: s, padding: c, tickTextProps: l, orientation: u, mirror: d, x: f, y: p, width: m, height: h, tickSize: g, tickMargin: _, fontSize: v, letterSpacing: y, getTicksConfig: b, events: x, axisType: S, axisId: C } = e, w = g0(b0(b0({}, b), {}, { ticks: n }), v, y), T = JI(b), E = YI(r), D = bQ(T.textAnchor) ? T.textAnchor : qMe(u, d), O = JMe(u, d), k = {};
+var oNe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { ticks: n = [], tick: r, tickLine: i, stroke: a, tickFormatter: o, unit: s, padding: c, tickTextProps: l, orientation: u, mirror: d, x: f, y: p, width: m, height: h, tickSize: g, tickMargin: _, fontSize: v, letterSpacing: y, getTicksConfig: b, events: x, axisType: S, axisId: C } = e, w = h0(y0(y0({}, b), {}, { ticks: n }), v, y), T = YI(b), E = XI(r), D = yQ(T.textAnchor) ? T.textAnchor : nNe(u, d), O = rNe(u, d), k = {};
typeof i == "object" && (k = i);
- var A = b0(b0({}, T), {}, { fill: "none" }, k), j = w.map((e) => b0({ entry: e }, KMe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
+ var A = y0(y0({}, T), {}, { fill: "none" }, k), j = w.map((e) => y0({ entry: e }, tNe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
var { entry: t, line: n } = e;
- return /*#__PURE__*/ R.createElement(eL, {
+ return /*#__PURE__*/ R.createElement(tL, {
className: "recharts-cartesian-axis-tick",
key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`
- }, i && /*#__PURE__*/ R.createElement("line", v0({}, A, n, { className: Mu("recharts-cartesian-axis-tick-line", $L(i, "className")) })));
+ }, i && /*#__PURE__*/ R.createElement("line", _0({}, A, n, { className: Mu("recharts-cartesian-axis-tick-line", eR(i, "className")) })));
}), N = j.map((e, t) => {
- var { entry: n, tick: i } = e, u = b0(b0({}, b0(b0(b0(b0({ verticalAnchor: O }, T), {}, {
+ var { entry: n, tick: i } = e, u = y0(y0({}, y0(y0(y0(y0({ verticalAnchor: O }, T), {}, {
textAnchor: D,
stroke: "none",
fill: a
@@ -64470,26 +64721,26 @@ var ZMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
tickFormatter: o,
padding: c
}, l), {}, { angle: l?.angle ?? T.angle ?? 0 })), E);
- return /*#__PURE__*/ R.createElement(eL, v0({
+ return /*#__PURE__*/ R.createElement(tL, _0({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, SR(x, n, t)), r && /*#__PURE__*/ R.createElement(YMe, {
+ }, CR(x, n, t)), r && /*#__PURE__*/ R.createElement(iNe, {
option: r,
tickProps: u,
value: `${typeof o == "function" ? o(n.value, t) : n.value}${s || ""}`
}));
});
- return /*#__PURE__*/ R.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ R.createElement(XMe, {
+ return /*#__PURE__*/ R.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ R.createElement(aNe, {
ticks: w,
axisId: C,
axisType: S
- }), N.length > 0 && /*#__PURE__*/ R.createElement(RZ, { zIndex: SG.label }, /*#__PURE__*/ R.createElement("g", {
+ }), N.length > 0 && /*#__PURE__*/ R.createElement(LZ, { zIndex: SG.label }, /*#__PURE__*/ R.createElement("g", {
className: `recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,
ref: t
}, N)), M.length > 0 && /*#__PURE__*/ R.createElement("g", { className: `recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines` }, M));
-}), QMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = BMe(e, zMe), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(""), h = (0, R.useRef)(null);
- (0, R.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => FMe({
+}), sNe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = YMe(e, JMe), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(""), h = (0, R.useRef)(null);
+ (0, R.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => WMe({
ticks: h.current,
label: e.labelRef?.current,
labelGapWithTick: 5,
@@ -64507,7 +64758,7 @@ var ZMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
}
}
}, [d, p]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ R.createElement(RZ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(eL, { className: Mu("recharts-cartesian-axis", a) }, /*#__PURE__*/ R.createElement(GMe, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ R.createElement(LZ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(tL, { className: Mu("recharts-cartesian-axis", a) }, /*#__PURE__*/ R.createElement(eNe, {
x: e.x,
y: e.y,
width: r,
@@ -64515,8 +64766,8 @@ var ZMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
orientation: e.orientation,
mirror: e.mirror,
axisLine: n,
- otherSvgProps: JI(e)
- }), /*#__PURE__*/ R.createElement(ZMe, {
+ otherSvgProps: YI(e)
+ }), /*#__PURE__*/ R.createElement(oNe, {
ref: g,
axisType: c,
events: u,
@@ -64540,32 +64791,32 @@ var ZMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
x: e.x,
y: e.y,
axisId: l
- }), /*#__PURE__*/ R.createElement(PQ, {
+ }), /*#__PURE__*/ R.createElement(NQ, {
x: e.x,
y: e.y,
width: e.width,
height: e.height,
lowerWidth: e.width,
upperWidth: e.width
- }, /*#__PURE__*/ R.createElement(HQ, {
+ }, /*#__PURE__*/ R.createElement(VQ, {
label: e.label,
labelRef: e.labelRef
}), e.children)));
-}), S0 = /*#__PURE__*/ R.forwardRef((e, t) => {
- var n = wR(e, x0);
- return /*#__PURE__*/ R.createElement(QMe, v0({}, n, { ref: t }));
+}), x0 = /*#__PURE__*/ R.forwardRef((e, t) => {
+ var n = TR(e, b0);
+ return /*#__PURE__*/ R.createElement(sNe, _0({}, n, { ref: t }));
});
-S0.displayName = "CartesianAxis";
+x0.displayName = "CartesianAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/CartesianGrid.js
-var $Me = [
+var cNe = [
"x1",
"y1",
"x2",
"y2",
"key"
-], eNe = ["offset"], tNe = ["xAxisId", "yAxisId"], nNe = ["xAxisId", "yAxisId"];
-function C0(e, t) {
+], lNe = ["offset"], uNe = ["xAxisId", "yAxisId"], dNe = ["xAxisId", "yAxisId"];
+function S0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64575,30 +64826,30 @@ function C0(e, t) {
}
return n;
}
-function w0(e) {
+function C0(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) {
- rNe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C0(Object(n)).forEach(function(t) {
+ t % 2 ? S0(Object(n), !0).forEach(function(t) {
+ fNe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function rNe(e, t, n) {
- return (t = iNe(t)) in e ? Object.defineProperty(e, t, {
+function fNe(e, t, n) {
+ return (t = pNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function iNe(e) {
- var t = aNe(e, "string");
+function pNe(e) {
+ var t = mNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function aNe(e, t) {
+function mNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64608,25 +64859,25 @@ function aNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function T0() {
- return T0 = Object.assign ? Object.assign.bind() : function(e) {
+function w0() {
+ return w0 = 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;
- }, T0.apply(null, arguments);
+ }, w0.apply(null, arguments);
}
-function E0(e, t) {
+function T0(e, t) {
if (e == null) return {};
- var n, r, i = oNe(e, t);
+ var n, r, i = hNe(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 oNe(e, t) {
+function hNe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64635,7 +64886,7 @@ function oNe(e, t) {
}
return n;
}
-var sNe = (e) => {
+var gNe = (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;
@@ -64651,13 +64902,13 @@ var sNe = (e) => {
className: "recharts-cartesian-grid-bg"
});
};
-function D0(e) {
+function E0(e) {
var { option: t, lineItemProps: n } = e, r;
if (/*#__PURE__*/ R.isValidElement(t)) r = /*#__PURE__*/ R.cloneElement(t, n);
else if (typeof t == "function") r = t(n);
else {
- var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = JI(E0(n, $Me)) ?? {}, { offset: u } = l, d = E0(l, eNe);
- r = /*#__PURE__*/ R.createElement("line", T0({}, d, {
+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = YI(T0(n, cNe)) ?? {}, { offset: u } = l, d = T0(l, lNe);
+ r = /*#__PURE__*/ R.createElement("line", w0({}, d, {
x1: i,
y1: a,
x2: o,
@@ -64668,11 +64919,11 @@ function D0(e) {
}
return r;
}
-function cNe(e) {
+function _Ne(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 = E0(e, tNe), c = i.map((e, i) => {
- var a = w0(w0({}, s), {}, {
+ var { xAxisId: a, yAxisId: o } = e, s = T0(e, uNe), c = i.map((e, i) => {
+ var a = C0(C0({}, s), {}, {
x1: t,
y1: e,
x2: t + n,
@@ -64680,7 +64931,7 @@ function cNe(e) {
key: `line-${i}`,
index: i
});
- return /*#__PURE__*/ R.createElement(D0, {
+ return /*#__PURE__*/ R.createElement(E0, {
key: `line-${i}`,
option: r,
lineItemProps: a
@@ -64688,11 +64939,11 @@ function cNe(e) {
});
return /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, c);
}
-function lNe(e) {
+function vNe(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 = E0(e, nNe), c = i.map((e, i) => {
- var a = w0(w0({}, s), {}, {
+ var { xAxisId: a, yAxisId: o } = e, s = T0(e, dNe), c = i.map((e, i) => {
+ var a = C0(C0({}, s), {}, {
x1: e,
y1: t,
x2: e,
@@ -64700,7 +64951,7 @@ function lNe(e) {
key: `line-${i}`,
index: i
});
- return /*#__PURE__*/ R.createElement(D0, {
+ return /*#__PURE__*/ R.createElement(E0, {
option: r,
lineItemProps: a,
key: `line-${i}`
@@ -64708,7 +64959,7 @@ function lNe(e) {
});
return /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid-vertical" }, c);
}
-function uNe(e) {
+function yNe(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);
@@ -64731,7 +64982,7 @@ function uNe(e) {
});
return /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);
}
-function dNe(e) {
+function bNe(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);
@@ -64754,10 +65005,10 @@ function dNe(e) {
});
return /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, u);
}
-var fNe = (e, t) => {
+var xNe = (e, t) => {
var { xAxis: n, width: r, height: i, offset: a } = e;
- return _V(g0(w0(w0(w0({}, x0), n), {}, {
- ticks: vV(n, !0),
+ return vV(h0(C0(C0(C0({}, b0), n), {}, {
+ ticks: yV(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -64765,10 +65016,10 @@ var fNe = (e, t) => {
height: i
}
})), a.left, a.left + a.width, t);
-}, pNe = (e, t) => {
+}, SNe = (e, t) => {
var { yAxis: n, width: r, height: i, offset: a } = e;
- return _V(g0(w0(w0(w0({}, x0), n), {}, {
- ticks: vV(n, !0),
+ return vV(h0(C0(C0(C0({}, b0), n), {}, {
+ ticks: yV(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -64776,7 +65027,7 @@ var fNe = (e, t) => {
height: i
}
})), a.top, a.top + a.height, t);
-}, mNe = {
+}, CNe = {
horizontal: !0,
vertical: !0,
horizontalPoints: [],
@@ -64790,34 +65041,34 @@ var fNe = (e, t) => {
syncWithTicks: !1,
zIndex: SG.grid
};
-function O0(e) {
- var t = oH(), n = sH(), r = aH(), i = w0(w0({}, wR(e, mNe)), {}, {
+function D0(e) {
+ var t = pH(), n = mH(), r = fH(), i = C0(C0({}, TR(e, CNe)), {}, {
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 = RV(), h = Q((e) => TX(e, "xAxis", a, m)), g = Q((e) => TX(e, "yAxis", o, m));
- if (!fV(l) || !fV(u) || !Z(s) || !Z(c)) return null;
- var _ = i.verticalCoordinatesGenerator || fNe, v = i.horizontalCoordinatesGenerator || pNe, { 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 = zV(), h = Q((e) => TX(e, "xAxis", a, m)), g = Q((e) => TX(e, "yAxis", o, m));
+ if (!pV(l) || !pV(u) || !Z(s) || !Z(c)) return null;
+ var _ = i.verticalCoordinatesGenerator || xNe, v = i.horizontalCoordinatesGenerator || SNe, { horizontalPoints: y, verticalPoints: b } = i;
if ((!y || !y.length) && typeof v == "function") {
var x = f && f.length, S = v({
- yAxis: g ? w0(w0({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
+ yAxis: g ? C0(C0({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
width: t ?? l,
height: n ?? u,
offset: r
}, x ? !0 : d);
- VV(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
+ HV(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
}
if ((!b || !b.length) && typeof _ == "function") {
var C = p && p.length, w = _({
- xAxis: h ? w0(w0({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,
+ xAxis: h ? C0(C0({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,
width: t ?? l,
height: n ?? u,
offset: r
}, C ? !0 : d);
- VV(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
+ HV(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
}
- return /*#__PURE__*/ R.createElement(RZ, { zIndex: i.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ R.createElement(sNe, {
+ return /*#__PURE__*/ R.createElement(LZ, { zIndex: i.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ R.createElement(gNe, {
fill: i.fill,
fillOpacity: i.fillOpacity,
x: i.x,
@@ -64825,22 +65076,22 @@ function O0(e) {
width: i.width,
height: i.height,
ry: i.ry
- }), /*#__PURE__*/ R.createElement(uNe, T0({}, i, { horizontalPoints: y })), /*#__PURE__*/ R.createElement(dNe, T0({}, i, { verticalPoints: b })), /*#__PURE__*/ R.createElement(cNe, T0({}, i, {
+ }), /*#__PURE__*/ R.createElement(yNe, w0({}, i, { horizontalPoints: y })), /*#__PURE__*/ R.createElement(bNe, w0({}, i, { verticalPoints: b })), /*#__PURE__*/ R.createElement(_Ne, w0({}, i, {
offset: r,
horizontalPoints: y,
xAxis: h,
yAxis: g
- })), /*#__PURE__*/ R.createElement(lNe, T0({}, i, {
+ })), /*#__PURE__*/ R.createElement(vNe, w0({}, i, {
offset: r,
verticalPoints: b,
xAxis: h,
yAxis: g
}))));
}
-O0.displayName = "CartesianGrid";
+D0.displayName = "CartesianGrid";
//#endregion
//#region node_modules/recharts/es6/state/errorBarSlice.js
-var k0 = IB({
+var O0 = LB({
name: "errorBars",
initialState: {},
reducers: {
@@ -64857,17 +65108,17 @@ var k0 = IB({
e[n] && (e[n] = e[n].filter((e) => e.dataKey !== r.dataKey || e.direction !== r.direction));
}
}
-}), { addErrorBar: hNe, replaceErrorBar: gNe, removeErrorBar: _Ne } = k0.actions, vNe = k0.reducer, yNe = ["children"];
-function bNe(e, t) {
+}), { addErrorBar: wNe, replaceErrorBar: TNe, removeErrorBar: ENe } = O0.actions, DNe = O0.reducer, ONe = ["children"];
+function kNe(e, t) {
if (e == null) return {};
- var n, r, i = xNe(e, t);
+ var n, r, i = ANe(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 xNe(e, t) {
+function ANe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64876,7 +65127,7 @@ function xNe(e, t) {
}
return n;
}
-var SNe = /*#__PURE__*/ (0, R.createContext)({
+var jNe = /*#__PURE__*/ (0, R.createContext)({
data: [],
xAxisId: "xAxis-0",
yAxisId: "yAxis-0",
@@ -64887,13 +65138,13 @@ var SNe = /*#__PURE__*/ (0, R.createContext)({
}),
errorBarOffset: 0
});
-function A0(e) {
- var { children: t } = e, n = bNe(e, yNe);
- return /*#__PURE__*/ R.createElement(SNe.Provider, { value: n }, t);
+function k0(e) {
+ var { children: t } = e, n = kNe(e, ONe);
+ return /*#__PURE__*/ R.createElement(jNe.Provider, { value: n }, t);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
-function j0(e, t) {
+function A0(e, t) {
var n = Q((t) => hY(t, e)), r = Q((e) => vY(e, t)), i = n?.allowDataOverflow ?? pY.allowDataOverflow, a = r?.allowDataOverflow ?? gY.allowDataOverflow;
return {
needClip: i || a,
@@ -64901,8 +65152,8 @@ function j0(e, t) {
needClipY: a
};
}
-function M0(e) {
- var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = f1(), { needClipX: a, needClipY: o, needClip: s } = j0(t, n);
+function j0(e) {
+ var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = d1(), { needClipX: a, needClipY: o, needClip: s } = A0(t, n);
if (!s || !i) return null;
var { x: c, y: l, width: u, height: d } = i;
return /*#__PURE__*/ R.createElement("clipPath", { id: `clipPath-${r}` }, /*#__PURE__*/ R.createElement("rect", {
@@ -64914,30 +65165,30 @@ function M0(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/lineSelectors.js
-var N0 = (e, t, n, r) => AX(e, "xAxis", t, r), P0 = (e, t, n, r) => kX(e, "xAxis", t, r), F0 = (e, t, n, r) => AX(e, "yAxis", n, r), I0 = (e, t, n, r) => kX(e, "yAxis", n, r), CNe = $([
- lH,
- N0,
- F0,
+var M0 = (e, t, n, r) => AX(e, "xAxis", t, r), N0 = (e, t, n, r) => kX(e, "xAxis", t, r), P0 = (e, t, n, r) => AX(e, "yAxis", n, r), F0 = (e, t, n, r) => kX(e, "yAxis", n, r), MNe = $([
+ gH,
+ M0,
P0,
- I0
-], (e, t, n, r, i) => gV(e, "xAxis") ? EV(t, r, !1) : EV(n, i, !1)), wNe = (e, t, n, r, i) => i;
-function TNe(e) {
+ N0,
+ F0
+], (e, t, n, r, i) => _V(e, "xAxis") ? DV(t, r, !1) : DV(n, i, !1)), NNe = (e, t, n, r, i) => i;
+function PNe(e) {
return e.type === "line";
}
-var ENe = $([
- lH,
+var FNe = $([
+ gH,
+ M0,
+ P0,
N0,
F0,
- P0,
- I0,
- $([wY, wNe], (e, t) => e.filter(TNe).find((e) => e.id === t)),
- CNe,
+ $([wY, NNe], (e, t) => e.filter(PNe).find((e) => e.id === t)),
+ MNe,
QW
], (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 KNe({
+ if (p != null) return tPe({
layout: e,
xAxis: t,
yAxis: n,
@@ -64951,8 +65202,8 @@ var ENe = $([
});
//#endregion
//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js
-function L0(e) {
- var t = YI(e), n = 3, r = 2;
+function I0(e) {
+ var t = XI(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), {
@@ -64967,13 +65218,13 @@ function L0(e) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/Line.js
-var DNe = ["id"], ONe = [
+var INe = ["id"], LNe = [
"type",
"layout",
"connectNulls",
"needClip",
"shape"
-], kNe = [
+], RNe = [
"activeDot",
"animateNewValues",
"animationBegin",
@@ -64989,16 +65240,16 @@ var DNe = ["id"], ONe = [
"yAxisId",
"id"
];
-function R0() {
- return R0 = Object.assign ? Object.assign.bind() : function(e) {
+function L0() {
+ return L0 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, R0.apply(null, arguments);
+ }, L0.apply(null, arguments);
}
-function z0(e, t) {
+function R0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65008,30 +65259,30 @@ function z0(e, t) {
}
return n;
}
-function B0(e) {
+function z0(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) {
- ANe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z0(Object(n)).forEach(function(t) {
+ t % 2 ? R0(Object(n), !0).forEach(function(t) {
+ zNe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ANe(e, t, n) {
- return (t = jNe(t)) in e ? Object.defineProperty(e, t, {
+function zNe(e, t, n) {
+ return (t = BNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function jNe(e) {
- var t = MNe(e, "string");
+function BNe(e) {
+ var t = VNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function MNe(e, t) {
+function VNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65041,16 +65292,16 @@ function MNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function V0(e, t) {
+function B0(e, t) {
if (e == null) return {};
- var n, r, i = NNe(e, t);
+ var n, r, i = HNe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function NNe(e, t) {
+function HNe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65059,27 +65310,27 @@ function NNe(e, t) {
}
return n;
}
-var PNe = (e) => {
+var UNe = (e) => {
var { dataKey: t, name: n, stroke: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: OV(n, t),
+ value: kV(n, t),
payload: e
}];
-}, FNe = /*#__PURE__*/ R.memo((e) => {
+}, WNe = /*#__PURE__*/ R.memo((e) => {
var { dataKey: t, data: n, stroke: r, strokeWidth: i, fill: a, name: o, hide: s, unit: c, tooltipType: l, id: u } = e, d = {
dataDefinedOnItem: n,
- getPosition: mR,
+ getPosition: hR,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: OV(o, t),
+ name: kV(o, t),
hide: s,
type: l,
color: r,
@@ -65087,15 +65338,15 @@ var PNe = (e) => {
graphicalItemId: u
}
};
- return /*#__PURE__*/ R.createElement(Q$, { tooltipEntrySettings: d });
-}), H0 = (e, t) => `${t}px ${e}px`;
-function INe(e, t) {
+ return /*#__PURE__*/ R.createElement(Z$, { tooltipEntrySettings: d });
+}), V0 = (e, t) => `${t}px ${e}px`;
+function GNe(e, t) {
for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);
return r;
}
-var LNe = (e, t, n) => {
+var KNe = (e, t, n) => {
var r = n.reduce((e, t) => e + t, 0);
- if (!r) return H0(t, e);
+ if (!r) return V0(t, e);
for (var i = Math.floor(e / r), a = e % r, o = [], s = 0, c = 0; s < n.length; c += (l = n[s]) ?? 0, ++s) {
var l, u = n[s];
if (u != null && c + u > a) {
@@ -65105,14 +65356,14 @@ var LNe = (e, t, n) => {
}
var d = o.length % 2 == 0 ? [0, t] : [t];
return [
- ...INe(n, i),
+ ...GNe(n, i),
...o,
...d
].map((e) => `${e}px`).join(", ");
};
-function RNe(e) {
- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = JI(V0(r, DNe));
- return /*#__PURE__*/ R.createElement(c1, {
+function qNe(e) {
+ var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = YI(B0(r, INe));
+ return /*#__PURE__*/ R.createElement(s1, {
points: n,
dot: i,
className: "recharts-line-dots",
@@ -65123,7 +65374,7 @@ function RNe(e) {
clipPathId: t
});
}
-function zNe(e) {
+function JNe(e) {
var { showLabels: t, children: n, points: r } = e, i = (0, R.useMemo)(() => r?.map((e) => {
var t = {
x: e.x ?? 0,
@@ -65133,7 +65384,7 @@ function zNe(e) {
upperWidth: 0,
height: 0
};
- return B0(B0({}, t), {}, {
+ return z0(z0({}, t), {}, {
value: e.value,
payload: e.payload,
viewBox: t,
@@ -65141,10 +65392,10 @@ function zNe(e) {
fill: void 0
});
}), [r]);
- return /*#__PURE__*/ R.createElement(KQ, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ R.createElement(GQ, { value: t ? i : void 0 }, n);
}
-function U0(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 = B0(B0({}, XI(V0(a, ONe))), {}, {
+function H0(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 = z0(z0({}, ZI(B0(a, LNe))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: l ? `url(#clipPath-${t})` : void 0,
@@ -65154,31 +65405,31 @@ function U0(e) {
connectNulls: c,
strokeDasharray: i ?? a.strokeDasharray
});
- return /*#__PURE__*/ R.createElement(R.Fragment, null, r?.length > 1 && /*#__PURE__*/ R.createElement(J$, R0({
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, r?.length > 1 && /*#__PURE__*/ R.createElement(q$, L0({
shapeType: "curve",
option: u
- }, d, { pathRef: n })), /*#__PURE__*/ R.createElement(RNe, {
+ }, d, { pathRef: n })), /*#__PURE__*/ R.createElement(qNe, {
points: r,
clipPathId: t,
props: a
}));
}
-function BNe(e) {
+function YNe(e) {
try {
return e && e.getTotalLength && e.getTotalLength() || 0;
} catch {
return 0;
}
}
-function VNe(e) {
+function XNe(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 = OW(o, "recharts-line-"), y = (0, R.useRef)(v), [b, x] = (0, R.useState)(!1), S = !b, C = (0, R.useCallback)(() => {
typeof h == "function" && h(), x(!1);
}, [h]), w = (0, R.useCallback)(() => {
typeof g == "function" && g(), x(!0);
- }, [g]), T = BNe(r.current), E = (0, R.useRef)(0);
+ }, [g]), T = YNe(r.current), E = (0, R.useRef)(0);
y.current !== v && (E.current = a.current, y.current = v);
var D = E.current;
- return /*#__PURE__*/ R.createElement(zNe, {
+ return /*#__PURE__*/ R.createElement(JNe, {
points: o,
showLabels: S
}, n.children, /*#__PURE__*/ R.createElement(DW, {
@@ -65191,26 +65442,26 @@ function VNe(e) {
onAnimationStart: w,
key: v
}, (e) => {
- var l = lR(D, T + D, e), u = Math.min(l, T), d = c ? s ? LNe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : H0(T, u) : s == null ? void 0 : String(s);
+ var l = uR(D, T + D, e), u = Math.min(l, T), d = c ? s ? KNe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : V0(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 B0(B0({}, t), {}, {
- x: lR(i.x, t.x, e),
- y: lR(i.y, t.y, e)
+ return z0(z0({}, t), {}, {
+ x: uR(i.x, t.x, e),
+ y: uR(i.y, t.y, e)
});
}
- return f ? B0(B0({}, t), {}, {
- x: lR(p * 2, t.x, e),
- y: lR(m / 2, t.y, e)
- }) : B0(B0({}, t), {}, {
+ return f ? z0(z0({}, t), {}, {
+ x: uR(p * 2, t.x, e),
+ y: uR(m / 2, t.y, e)
+ }) : z0(z0({}, t), {}, {
x: t.x,
y: t.y
});
});
- return i.current = g, /*#__PURE__*/ R.createElement(U0, {
+ return i.current = g, /*#__PURE__*/ R.createElement(H0, {
props: n,
points: g,
clipPathId: t,
@@ -65218,18 +65469,18 @@ function VNe(e) {
strokeDasharray: d
});
}
- return /*#__PURE__*/ R.createElement(U0, {
+ return /*#__PURE__*/ R.createElement(H0, {
props: n,
points: o,
clipPathId: t,
pathRef: r,
strokeDasharray: d
});
- }), /*#__PURE__*/ R.createElement(YQ, { label: n.label }));
+ }), /*#__PURE__*/ R.createElement(JQ, { label: n.label }));
}
-function HNe(e) {
+function ZNe(e) {
var { clipPathId: t, props: n } = e, r = (0, R.useRef)(null), i = (0, R.useRef)(0), a = (0, R.useRef)(null);
- return /*#__PURE__*/ R.createElement(VNe, {
+ return /*#__PURE__*/ R.createElement(XNe, {
props: n,
clipPathId: t,
previousPointsRef: r,
@@ -65237,17 +65488,17 @@ function HNe(e) {
pathRef: a
});
}
-var UNe = (e, t) => ({
+var QNe = (e, t) => ({
x: e.x ?? void 0,
y: e.y ?? void 0,
value: e.value,
- errorVal: hV(e.payload, t)
-}), WNe = class extends R.Component {
+ errorVal: gV(e.payload, t)
+}), $Ne = class extends R.Component {
render() {
var { hide: e, dot: t, points: n, className: r, xAxisId: i, yAxisId: a, top: o, left: s, width: c, height: l, id: u, needClip: d, zIndex: f } = this.props;
if (e) return null;
- var p = Mu("recharts-line", r), m = u, { r: h, strokeWidth: g } = L0(t), _ = z$(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
- return /*#__PURE__*/ R.createElement(RZ, { zIndex: f }, /*#__PURE__*/ R.createElement(eL, { className: p }, d && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(M0, {
+ var p = Mu("recharts-line", r), m = u, { r: h, strokeWidth: g } = I0(t), _ = R$(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
+ return /*#__PURE__*/ R.createElement(LZ, { zIndex: f }, /*#__PURE__*/ R.createElement(tL, { className: p }, d && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(j0, {
clipPathId: m,
xAxisId: i,
yAxisId: a
@@ -65256,16 +65507,16 @@ var UNe = (e, t) => ({
y: o - v / 2,
width: c + v,
height: l + v
- }))), /*#__PURE__*/ R.createElement(A0, {
+ }))), /*#__PURE__*/ R.createElement(k0, {
xAxisId: i,
yAxisId: a,
data: n,
- dataPointFormatter: UNe,
+ dataPointFormatter: QNe,
errorBarOffset: 0
- }, /*#__PURE__*/ R.createElement(HNe, {
+ }, /*#__PURE__*/ R.createElement(ZNe, {
props: this.props,
clipPathId: m
- }))), /*#__PURE__*/ R.createElement(h1, {
+ }))), /*#__PURE__*/ R.createElement(m1, {
activeDot: this.props.activeDot,
points: n,
mainColor: this.props.stroke,
@@ -65273,7 +65524,7 @@ var UNe = (e, t) => ({
clipPath: y
}));
}
-}, W0 = {
+}, U0 = {
activeDot: !0,
animateNewValues: !0,
animationBegin: 0,
@@ -65293,11 +65544,11 @@ var UNe = (e, t) => ({
zIndex: SG.line,
type: "linear"
};
-function GNe(e) {
- var t = wR(e, W0), { 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 = V0(t, kNe), { needClip: _ } = j0(p, m), v = f1(), y = uH(), b = RV(), x = Q((e) => ENe(e, p, m, b, h));
+function ePe(e) {
+ var t = TR(e, U0), { 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 = B0(t, RNe), { needClip: _ } = A0(p, m), v = d1(), y = _H(), b = zV(), x = Q((e) => FNe(e, p, m, b, h));
if (y !== "horizontal" && y !== "vertical" || x == null || v == null) return null;
var { height: S, width: C, x: w, y: T } = v;
- return /*#__PURE__*/ R.createElement(WNe, R0({}, g, {
+ return /*#__PURE__*/ R.createElement($Ne, L0({}, g, {
id: h,
connectNulls: s,
dot: c,
@@ -65321,23 +65572,23 @@ function GNe(e) {
needClip: _
}));
}
-function KNe(e) {
+function tPe(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 = hV(e, o);
+ var l = gV(e, o);
if (t === "horizontal") return {
- x: xV({
+ x: SV({
axis: n,
ticks: i,
bandSize: s,
entry: e,
index: c
}),
- y: (dR(l) ? null : r.scale.map(l)) ?? null,
+ y: (fR(l) ? null : r.scale.map(l)) ?? null,
value: l,
payload: e
};
- var u = dR(l) ? null : n.scale.map(l), d = xV({
+ var u = fR(l) ? null : n.scale.map(l), d = SV({
axis: r,
ticks: a,
bandSize: s,
@@ -65352,12 +65603,12 @@ function KNe(e) {
};
}).filter(Boolean);
}
-function qNe(e) {
- var t = wR(e, W0), n = RV();
- return /*#__PURE__*/ R.createElement(t1, {
+function nPe(e) {
+ var t = TR(e, U0), n = zV();
+ return /*#__PURE__*/ R.createElement(e1, {
id: t.id,
type: "line"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement($$, { legendPayload: PNe(t) }), /*#__PURE__*/ R.createElement(FNe, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Q$, { legendPayload: UNe(t) }), /*#__PURE__*/ R.createElement(WNe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -65368,7 +65619,7 @@ function qNe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(r1, {
+ }), /*#__PURE__*/ R.createElement(n1, {
type: "line",
id: e,
data: t.data,
@@ -65378,33 +65629,33 @@ function qNe(e) {
dataKey: t.dataKey,
hide: t.hide,
isPanorama: n
- }), /*#__PURE__*/ R.createElement(GNe, R0({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(ePe, L0({}, t, { id: e }))));
}
-var G0 = /*#__PURE__*/ R.memo(qNe, LU);
-G0.displayName = "Line";
+var W0 = /*#__PURE__*/ R.memo(nPe, RU);
+W0.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
-function K0(e, t) {
+function G0(e, t) {
return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.xAxisId ?? 0;
}
-function q0(e, t) {
+function K0(e, t) {
return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.yAxisId ?? 0;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/areaSelectors.js
-var J0 = (e, t, n) => AX(e, "xAxis", K0(e, t), n), Y0 = (e, t, n) => kX(e, "xAxis", K0(e, t), n), X0 = (e, t, n) => AX(e, "yAxis", q0(e, t), n), Z0 = (e, t, n) => kX(e, "yAxis", q0(e, t), n), JNe = $([
- lH,
+var q0 = (e, t, n) => AX(e, "xAxis", G0(e, t), n), J0 = (e, t, n) => kX(e, "xAxis", G0(e, t), n), Y0 = (e, t, n) => AX(e, "yAxis", K0(e, t), n), X0 = (e, t, n) => kX(e, "yAxis", K0(e, t), n), rPe = $([
+ gH,
+ q0,
+ Y0,
J0,
- X0,
+ X0
+], (e, t, n, r, i) => _V(e, "xAxis") ? DV(t, r, !1) : DV(n, i, !1)), Z0 = $([wY, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), Q0 = (e) => _V(gH(e), "xAxis") ? "yAxis" : "xAxis", iPe = (e, t) => Q0(e) === "yAxis" ? K0(e, t) : G0(e, t), aPe = $([
+ gH,
+ q0,
Y0,
- Z0
-], (e, t, n, r, i) => gV(e, "xAxis") ? EV(t, r, !1) : EV(n, i, !1)), Q0 = $([wY, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), $0 = (e) => gV(lH(e), "xAxis") ? "yAxis" : "xAxis", YNe = (e, t) => $0(e) === "yAxis" ? q0(e, t) : K0(e, t), XNe = $([
- lH,
J0,
X0,
- Y0,
- Z0,
- $([Q0, (e, t, n) => VY(e, $0(e), YNe(e, t), n)], (e, t) => {
+ $([Z0, (e, t, n) => VY(e, Q0(e), iPe(e, t), n)], (e, t) => {
if (e != null && t != null) {
var { stackId: n } = e, r = HG(e);
if (n != null && r != null) {
@@ -65414,14 +65665,14 @@ var J0 = (e, t, n) => AX(e, "xAxis", K0(e, t), n), Y0 = (e, t, n) => kX(e, "xAxi
}
}),
$W,
- JNe,
- Q0,
- hSe
+ rPe,
+ Z0,
+ CSe
], (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 gPe({
+ if (m != null) return TPe({
layout: e,
xAxis: t,
yAxis: n,
@@ -65435,7 +65686,7 @@ var J0 = (e, t, n) => AX(e, "xAxis", K0(e, t), n), Y0 = (e, t, n) => kX(e, "xAxi
bandSize: s
});
}
-}), ZNe = ["id"], QNe = [
+}), oPe = ["id"], sPe = [
"activeDot",
"animationBegin",
"animationDuration",
@@ -65451,25 +65702,25 @@ var J0 = (e, t, n) => AX(e, "xAxis", K0(e, t), n), Y0 = (e, t, n) => kX(e, "xAxi
"xAxisId",
"yAxisId"
];
-function e2() {
- return e2 = Object.assign ? Object.assign.bind() : function(e) {
+function $0() {
+ return $0 = 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;
- }, e2.apply(null, arguments);
+ }, $0.apply(null, arguments);
}
-function t2(e, t) {
+function e2(e, t) {
if (e == null) return {};
- var n, r, i = $Ne(e, t);
+ var n, r, i = cPe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function $Ne(e, t) {
+function cPe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65478,7 +65729,7 @@ function $Ne(e, t) {
}
return n;
}
-function n2(e, t) {
+function t2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65488,30 +65739,30 @@ function n2(e, t) {
}
return n;
}
-function r2(e) {
+function n2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? n2(Object(n), !0).forEach(function(t) {
- ePe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : n2(Object(n)).forEach(function(t) {
+ t % 2 ? t2(Object(n), !0).forEach(function(t) {
+ lPe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : t2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ePe(e, t, n) {
- return (t = tPe(t)) in e ? Object.defineProperty(e, t, {
+function lPe(e, t, n) {
+ return (t = uPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function tPe(e) {
- var t = nPe(e, "string");
+function uPe(e) {
+ var t = dPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function nPe(e, t) {
+function dPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65521,42 +65772,42 @@ function nPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function i2(e, t) {
+function r2(e, t) {
return e && e !== "none" ? e : t;
}
-var rPe = (e) => {
+var fPe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
- color: i2(r, i),
- value: OV(n, t),
+ color: r2(r, i),
+ value: kV(n, t),
payload: e
}];
-}, iPe = /*#__PURE__*/ R.memo((e) => {
+}, pPe = /*#__PURE__*/ R.memo((e) => {
var { dataKey: t, data: n, stroke: r, strokeWidth: i, fill: a, name: o, hide: s, unit: c, tooltipType: l, id: u } = e, d = {
dataDefinedOnItem: n,
- getPosition: mR,
+ getPosition: hR,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: OV(o, t),
+ name: kV(o, t),
hide: s,
type: l,
- color: i2(r, a),
+ color: r2(r, a),
unit: c,
graphicalItemId: u
}
};
- return /*#__PURE__*/ R.createElement(Q$, { tooltipEntrySettings: d });
+ return /*#__PURE__*/ R.createElement(Z$, { tooltipEntrySettings: d });
});
-function aPe(e) {
- var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = JI(r);
- return /*#__PURE__*/ R.createElement(c1, {
+function mPe(e) {
+ var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = YI(r);
+ return /*#__PURE__*/ R.createElement(s1, {
points: n,
dot: a,
className: "recharts-area-dots",
@@ -65567,7 +65818,7 @@ function aPe(e) {
clipPathId: t
});
}
-function oPe(e) {
+function hPe(e) {
var { showLabels: t, children: n, points: r } = e, i = r.map((e) => {
var t = {
x: e.x ?? 0,
@@ -65577,7 +65828,7 @@ function oPe(e) {
upperWidth: 0,
height: 0
};
- return r2(r2({}, t), {}, {
+ return n2(n2({}, t), {}, {
value: e.value,
payload: e.payload,
parentViewBox: void 0,
@@ -65585,11 +65836,11 @@ function oPe(e) {
fill: void 0
});
});
- return /*#__PURE__*/ R.createElement(KQ, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ R.createElement(GQ, { value: t ? i : void 0 }, n);
}
-function a2(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 = t2(a, ZNe), p = JI(f), m = XI(f);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, t?.length > 1 && /*#__PURE__*/ R.createElement(eL, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ R.createElement(lW, e2({}, m, {
+function i2(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 = e2(a, oPe), p = YI(f), m = ZI(f);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, t?.length > 1 && /*#__PURE__*/ R.createElement(tL, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ R.createElement(lW, $0({}, m, {
id: d,
points: t,
connectNulls: l,
@@ -65598,29 +65849,29 @@ function a2(e) {
layout: o,
stroke: "none",
className: "recharts-area-area"
- })), c !== "none" && /*#__PURE__*/ R.createElement(lW, e2({}, p, {
+ })), c !== "none" && /*#__PURE__*/ R.createElement(lW, $0({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: t
- })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ R.createElement(lW, e2({}, p, {
+ })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ R.createElement(lW, $0({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: n
- }))), /*#__PURE__*/ R.createElement(aPe, {
+ }))), /*#__PURE__*/ R.createElement(mPe, {
points: t,
props: f,
clipPathId: i
}));
}
-function sPe(e) {
+function gPe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;
- if (!dV(a) || !dV(o)) return null;
+ if (!fV(a) || !fV(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.x || 0));
return Z(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.x || 0), c)), Z(c) ? /*#__PURE__*/ R.createElement("rect", {
x: 0,
@@ -65629,9 +65880,9 @@ function sPe(e) {
height: Math.floor(s)
}) : null;
}
-function cPe(e) {
+function _Pe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;
- if (!dV(a) || !dV(o)) return null;
+ if (!fV(a) || !fV(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.y || 0));
return Z(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.y || 0), c)), Z(c) ? /*#__PURE__*/ R.createElement("rect", {
x: a < o ? a : a - s,
@@ -65640,32 +65891,32 @@ function cPe(e) {
height: Math.floor(c + (i ? parseInt(`${i}`, 10) : 1))
}) : null;
}
-function lPe(e) {
+function vPe(e) {
var { alpha: t, layout: n, points: r, baseLine: i, strokeWidth: a } = e;
- return n === "vertical" ? /*#__PURE__*/ R.createElement(sPe, {
+ return n === "vertical" ? /*#__PURE__*/ R.createElement(gPe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
- }) : /*#__PURE__*/ R.createElement(cPe, {
+ }) : /*#__PURE__*/ R.createElement(_Pe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
});
}
-function uPe(e) {
+function yPe(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 = OW((0, R.useMemo)(() => ({
points: o,
baseLine: s
- }), [o, s]), "recharts-area-"), h = dH(), [g, _] = (0, R.useState)(!1), v = !g, y = (0, R.useCallback)(() => {
+ }), [o, s]), "recharts-area-"), h = vH(), [g, _] = (0, R.useState)(!1), v = !g, y = (0, R.useCallback)(() => {
typeof p == "function" && p(), _(!1);
}, [p]), b = (0, R.useCallback)(() => {
typeof f == "function" && f(), _(!0);
}, [f]);
if (h == null) return null;
var x = i.current, S = a.current;
- return /*#__PURE__*/ R.createElement(oPe, {
+ return /*#__PURE__*/ R.createElement(hPe, {
showLabels: v,
points: o
}, r.children, /*#__PURE__*/ R.createElement(DW, {
@@ -65683,24 +65934,24 @@ function uPe(e) {
var r = Math.floor(n * l);
if (x[r]) {
var i = x[r];
- return r2(r2({}, t), {}, {
- x: lR(i.x, t.x, e),
- y: lR(i.y, t.y, e)
+ return n2(n2({}, t), {}, {
+ x: uR(i.x, t.x, e),
+ y: uR(i.y, t.y, e)
});
}
return t;
- }), d = Z(s) ? lR(S, s, e) : dR(s) || rR(s) ? lR(S, 0, e) : s.map((t, n) => {
+ }), d = Z(s) ? uR(S, s, e) : fR(s) || iR(s) ? uR(S, 0, e) : s.map((t, n) => {
var r = Math.floor(n * l);
if (Array.isArray(S) && S[r]) {
var i = S[r];
- return r2(r2({}, t), {}, {
- x: lR(i.x, t.x, e),
- y: lR(i.y, t.y, e)
+ return n2(n2({}, t), {}, {
+ x: uR(i.x, t.x, e),
+ y: uR(i.y, t.y, e)
});
}
return t;
});
- return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ R.createElement(a2, {
+ return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ R.createElement(i2, {
points: u,
baseLine: d,
needClip: t,
@@ -65708,24 +65959,24 @@ function uPe(e) {
props: r
});
}
- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ R.createElement(eL, null, c && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ R.createElement(lPe, {
+ return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ R.createElement(tL, null, c && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ R.createElement(vPe, {
alpha: e,
points: o,
baseLine: s,
layout: h,
strokeWidth: r.strokeWidth
- }))), /*#__PURE__*/ R.createElement(eL, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ R.createElement(a2, {
+ }))), /*#__PURE__*/ R.createElement(tL, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ R.createElement(i2, {
points: o,
baseLine: s,
needClip: t,
clipPathId: n,
props: r
})));
- }), /*#__PURE__*/ R.createElement(YQ, { label: r.label }));
+ }), /*#__PURE__*/ R.createElement(JQ, { label: r.label }));
}
-function dPe(e) {
+function bPe(e) {
var { needClip: t, clipPathId: n, props: r } = e, i = (0, R.useRef)(null), a = (0, R.useRef)();
- return /*#__PURE__*/ R.createElement(uPe, {
+ return /*#__PURE__*/ R.createElement(yPe, {
needClip: t,
clipPathId: n,
props: r,
@@ -65733,12 +65984,12 @@ function dPe(e) {
previousBaselineRef: a
});
}
-var fPe = class extends R.PureComponent {
+var xPe = class extends R.PureComponent {
render() {
var { hide: e, dot: t, points: n, className: r, top: i, left: a, needClip: o, xAxisId: s, yAxisId: c, width: l, height: u, id: d, baseLine: f, zIndex: p } = this.props;
if (e) return null;
- var m = Mu("recharts-area", r), h = d, { r: g, strokeWidth: _ } = L0(t), v = z$(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
- return /*#__PURE__*/ R.createElement(RZ, { zIndex: p }, /*#__PURE__*/ R.createElement(eL, { className: m }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(M0, {
+ var m = Mu("recharts-area", r), h = d, { r: g, strokeWidth: _ } = I0(t), v = R$(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
+ return /*#__PURE__*/ R.createElement(LZ, { zIndex: p }, /*#__PURE__*/ R.createElement(tL, { className: m }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(j0, {
clipPathId: h,
xAxisId: s,
yAxisId: c
@@ -65747,25 +65998,25 @@ var fPe = class extends R.PureComponent {
y: i - y / 2,
width: l + y,
height: u + y
- }))), /*#__PURE__*/ R.createElement(dPe, {
+ }))), /*#__PURE__*/ R.createElement(bPe, {
needClip: o,
clipPathId: h,
props: this.props
- })), /*#__PURE__*/ R.createElement(h1, {
+ })), /*#__PURE__*/ R.createElement(m1, {
points: n,
- mainColor: i2(this.props.stroke, this.props.fill),
+ mainColor: r2(this.props.stroke, this.props.fill),
itemDataKey: this.props.dataKey,
activeDot: this.props.activeDot,
clipPath: b
- }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ R.createElement(h1, {
+ }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ R.createElement(m1, {
points: f,
- mainColor: i2(this.props.stroke, this.props.fill),
+ mainColor: r2(this.props.stroke, this.props.fill),
itemDataKey: this.props.dataKey,
activeDot: this.props.activeDot,
clipPath: b
}));
}
-}, pPe = {
+}, SPe = {
activeDot: !0,
animationBegin: 0,
animationDuration: 1500,
@@ -65785,11 +66036,11 @@ var fPe = class extends R.PureComponent {
yAxisId: 0,
zIndex: SG.area
};
-function mPe(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 = t2(e, QNe), g = uH(), _ = EZ(), { needClip: v } = j0(p, m), y = RV(), { points: b, isRange: x, baseLine: S } = Q((t) => XNe(t, e.id, y)) ?? {}, C = f1();
+function CPe(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 = e2(e, sPe), g = _H(), _ = TZ(), { needClip: v } = A0(p, m), y = zV(), { points: b, isRange: x, baseLine: S } = Q((t) => aPe(t, e.id, y)) ?? {}, C = d1();
if (g !== "horizontal" && g !== "vertical" || C == null || _ !== "AreaChart" && _ !== "ComposedChart") return null;
var { height: w, width: T, x: E, y: D } = C;
- return !b || !b.length ? null : /*#__PURE__*/ R.createElement(fPe, e2({}, h, {
+ return !b || !b.length ? null : /*#__PURE__*/ R.createElement(xPe, $0({}, h, {
activeDot: t,
animationBegin: n,
animationDuration: r,
@@ -65815,7 +66066,7 @@ function mPe(e) {
yAxisId: m
}));
}
-var hPe = (e, t, n, r, i) => {
+var wPe = (e, t, n, r, i) => {
var a = n ?? t;
if (Z(a)) return a;
var o = e === "horizontal" ? i : r, s = o.scale.domain();
@@ -65825,17 +66076,17 @@ var hPe = (e, t, n, r, i) => {
}
return a === "dataMin" ? s[0] : a === "dataMax" ? s[1] : s[0];
};
-function gPe(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 = hPe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
+function TPe(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 = wPe(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 = hV(e, r);
+ var o = gV(e, r);
Array.isArray(o) ? (a = o, _ = !0) : a = [h, o];
}
- var l = a?.[1] ?? null, v = l == null || m && !t && hV(e, r) == null;
+ var l = a?.[1] ?? null, v = l == null || m && !t && gV(e, r) == null;
return g ? {
- x: xV({
+ x: SV({
axis: s,
ticks: d,
bandSize: p,
@@ -65847,7 +66098,7 @@ function gPe(e) {
payload: e
} : {
x: v ? null : s.scale.map(l) ?? null,
- y: xV({
+ y: SV({
axis: c,
ticks: f,
bandSize: p,
@@ -65875,12 +66126,12 @@ function gPe(e) {
isRange: _
};
}
-function _Pe(e) {
- var t = wR(e, pPe), n = RV();
- return /*#__PURE__*/ R.createElement(t1, {
+function EPe(e) {
+ var t = TR(e, SPe), n = zV();
+ return /*#__PURE__*/ R.createElement(e1, {
id: t.id,
type: "area"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement($$, { legendPayload: rPe(t) }), /*#__PURE__*/ R.createElement(iPe, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Q$, { legendPayload: fPe(t) }), /*#__PURE__*/ R.createElement(pPe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -65891,7 +66142,7 @@ function _Pe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(r1, {
+ }), /*#__PURE__*/ R.createElement(n1, {
type: "area",
id: e,
data: t.data,
@@ -65899,115 +66150,115 @@ function _Pe(e) {
xAxisId: t.xAxisId,
yAxisId: t.yAxisId,
zAxisId: 0,
- stackId: bV(t.stackId),
+ stackId: xV(t.stackId),
hide: t.hide,
barSize: void 0,
baseValue: t.baseValue,
isPanorama: n,
connectNulls: t.connectNulls
- }), /*#__PURE__*/ R.createElement(mPe, e2({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(CPe, $0({}, t, { id: e }))));
}
-var o2 = /*#__PURE__*/ R.memo(_Pe, LU);
-o2.displayName = "Area";
+var a2 = /*#__PURE__*/ R.memo(EPe, RU);
+a2.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
-var vPe = "Invariant failed";
-function yPe(e, t) {
- if (!e) throw Error(vPe);
+var DPe = "Invariant failed";
+function OPe(e, t) {
+ if (!e) throw Error(DPe);
}
//#endregion
//#region node_modules/recharts/es6/util/BarUtils.js
-function s2() {
- return s2 = Object.assign ? Object.assign.bind() : function(e) {
+function o2() {
+ return o2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, s2.apply(null, arguments);
+ }, o2.apply(null, arguments);
}
-function c2(e) {
- return /*#__PURE__*/ R.createElement(J$, s2({
+function s2(e) {
+ return /*#__PURE__*/ R.createElement(q$, o2({
shapeType: "rectangle",
activeClassName: "recharts-active-bar",
inActiveClassName: "recharts-inactive-bar"
}, e));
}
-var bPe = function(e) {
+var kPe = 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) || dR(n);
- return i ? e(n, r) : (!i && yPe(!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) || fR(n);
+ return i ? e(n, r) : (!i && OPe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
};
-}, xPe = (e, t, n) => n, l2 = $([wY, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), SPe = $([l2], (e) => e?.maxBarSize), CPe = (e, t, n, r) => r, wPe = $([
- lH,
+}, APe = (e, t, n) => n, c2 = $([wY, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), jPe = $([c2], (e) => e?.maxBarSize), MPe = (e, t, n, r) => r, NPe = $([
+ gH,
wY,
+ G0,
K0,
- q0,
- xPe
-], (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")), TPe = (e, t, n) => {
- var r = lH(e), i = K0(e, t), a = q0(e, t);
+ APe
+], (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")), PPe = (e, t, n) => {
+ var r = gH(e), i = G0(e, t), a = K0(e, t);
if (i != null && a != null) return r === "horizontal" ? VY(e, "yAxis", a, n) : VY(e, "xAxis", i, n);
-}, EPe = $([
- wPe,
+}, FPe = $([
+ NPe,
hG,
(e, t) => {
- var n = lH(e), r = K0(e, t), i = q0(e, t);
+ var n = gH(e), r = G0(e, t), i = K0(e, t);
if (r != null && i != null) return n === "horizontal" ? SX(e, "xAxis", r) : SX(e, "yAxis", i);
}
-], j1), DPe = (e, t, n) => {
- var r = l2(e, t);
+], A1), IPe = (e, t, n) => {
+ var r = c2(e, t);
if (r == null) return 0;
- var i = K0(e, t), a = q0(e, t);
+ var i = G0(e, t), a = K0(e, t);
if (i == null || a == null) return 0;
- var o = lH(e), s = fG(e), { maxBarSize: c } = r, l = dR(c) ? s : c, u, d;
- return o === "horizontal" ? (u = AX(e, "xAxis", i, n), d = kX(e, "xAxis", i, n)) : (u = AX(e, "yAxis", a, n), d = kX(e, "yAxis", a, n)), EV(u, d, !0) ?? l ?? 0;
-}, u2 = (e, t, n) => {
- var r = lH(e), i = K0(e, t), a = q0(e, t);
+ var o = gH(e), s = fG(e), { maxBarSize: c } = r, l = fR(c) ? s : c, u, d;
+ return o === "horizontal" ? (u = AX(e, "xAxis", i, n), d = kX(e, "xAxis", i, n)) : (u = AX(e, "yAxis", a, n), d = kX(e, "yAxis", a, n)), DV(u, d, !0) ?? l ?? 0;
+}, l2 = (e, t, n) => {
+ var r = gH(e), i = G0(e, t), a = K0(e, t);
if (i != null && a != null) {
var o, s;
- return r === "horizontal" ? (o = AX(e, "xAxis", i, n), s = kX(e, "xAxis", i, n)) : (o = AX(e, "yAxis", a, n), s = kX(e, "yAxis", a, n)), EV(o, s);
+ return r === "horizontal" ? (o = AX(e, "xAxis", i, n), s = kX(e, "xAxis", i, n)) : (o = AX(e, "yAxis", a, n), s = kX(e, "yAxis", a, n)), DV(o, s);
}
-}, OPe = $([
- IV,
+}, LPe = $([
LV,
+ RV,
(e, t, n) => {
- var r = K0(e, t);
+ var r = G0(e, t);
if (r != null) return AX(e, "xAxis", r, n);
},
(e, t, n) => {
- var r = q0(e, t);
+ var r = K0(e, t);
if (r != null) return AX(e, "yAxis", r, n);
},
(e, t, n) => {
- var r = K0(e, t);
+ var r = G0(e, t);
if (r != null) return kX(e, "xAxis", r, n);
},
(e, t, n) => {
- var r = q0(e, t);
+ var r = K0(e, t);
if (r != null) return kX(e, "yAxis", r, n);
},
$([$([
- EPe,
+ FPe,
fG,
pG,
mG,
- DPe,
- u2,
- SPe
- ], P1), l2], I1),
- lH,
+ IPe,
+ l2,
+ jPe
+ ], N1), c2], F1),
+ gH,
$W,
- u2,
- $([TPe, l2], F1),
l2,
- CPe
+ $([PPe, c2], P1),
+ c2,
+ MPe
], (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 nFe({
+ if (_ != null) return dFe({
layout: s,
barSettings: d,
pos: o,
@@ -66024,26 +66275,26 @@ var bPe = function(e) {
dataStartIndex: m
});
}
-}), kPe = ["index"];
-function d2() {
- return d2 = Object.assign ? Object.assign.bind() : function(e) {
+}), RPe = ["index"];
+function u2() {
+ return u2 = 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;
- }, d2.apply(null, arguments);
+ }, u2.apply(null, arguments);
}
-function APe(e, t) {
+function zPe(e, t) {
if (e == null) return {};
- var n, r, i = jPe(e, t);
+ var n, r, i = BPe(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 jPe(e, t) {
+function BPe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66052,45 +66303,45 @@ function jPe(e, t) {
}
return n;
}
-var f2 = /*#__PURE__*/ (0, R.createContext)(void 0), MPe = (e) => {
- var t = (0, R.useContext)(f2);
+var d2 = /*#__PURE__*/ (0, R.createContext)(void 0), VPe = (e) => {
+ var t = (0, R.useContext)(d2);
if (t != null) return t.stackId;
- if (e != null) return bV(e);
-}, NPe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, PPe = (e) => {
- var t = (0, R.useContext)(f2);
+ if (e != null) return xV(e);
+}, HPe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, UPe = (e) => {
+ var t = (0, R.useContext)(d2);
if (t != null) {
var { stackId: n } = t;
- return `url(#${NPe(n, e)})`;
+ return `url(#${HPe(n, e)})`;
}
-}, p2 = (e) => {
- var { index: t } = e, n = APe(e, kPe), r = PPe(t);
- return /*#__PURE__*/ R.createElement(eL, d2({
+}, f2 = (e) => {
+ var { index: t } = e, n = zPe(e, RPe), r = UPe(t);
+ return /*#__PURE__*/ R.createElement(tL, u2({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
-}, FPe = [
+}, WPe = [
"onMouseEnter",
"onMouseLeave",
"onClick"
-], IPe = [
+], GPe = [
"value",
"background",
"tooltipPosition"
-], LPe = ["id"], RPe = [
+], KPe = ["id"], qPe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
];
-function m2() {
- return m2 = Object.assign ? Object.assign.bind() : function(e) {
+function p2() {
+ return p2 = 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;
- }, m2.apply(null, arguments);
+ }, p2.apply(null, arguments);
}
-function h2(e, t) {
+function m2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66100,30 +66351,30 @@ function h2(e, t) {
}
return n;
}
-function g2(e) {
+function h2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? h2(Object(n), !0).forEach(function(t) {
- zPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h2(Object(n)).forEach(function(t) {
+ t % 2 ? m2(Object(n), !0).forEach(function(t) {
+ JPe(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 zPe(e, t, n) {
- return (t = BPe(t)) in e ? Object.defineProperty(e, t, {
+function JPe(e, t, n) {
+ return (t = YPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function BPe(e) {
- var t = VPe(e, "string");
+function YPe(e) {
+ var t = XPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function VPe(e, t) {
+function XPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66133,16 +66384,16 @@ function VPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function _2(e, t) {
+function g2(e, t) {
if (e == null) return {};
- var n, r, i = HPe(e, t);
+ var n, r, i = ZPe(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 HPe(e, t) {
+function ZPe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66151,27 +66402,27 @@ function HPe(e, t) {
}
return n;
}
-var UPe = (e) => {
+var QPe = (e) => {
var { dataKey: t, name: n, fill: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: OV(n, t),
+ value: kV(n, t),
payload: e
}];
-}, WPe = /*#__PURE__*/ R.memo((e) => {
+}, $Pe = /*#__PURE__*/ R.memo((e) => {
var { dataKey: t, stroke: n, strokeWidth: r, fill: i, name: a, hide: o, unit: s, tooltipType: c, id: l } = e, u = {
dataDefinedOnItem: void 0,
- getPosition: mR,
+ getPosition: hR,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
dataKey: t,
nameKey: void 0,
- name: OV(a, t),
+ name: kV(a, t),
hide: o,
type: c,
color: i,
@@ -66179,19 +66430,19 @@ var UPe = (e) => {
graphicalItemId: l
}
};
- return /*#__PURE__*/ R.createElement(Q$, { tooltipEntrySettings: u });
+ return /*#__PURE__*/ R.createElement(Z$, { tooltipEntrySettings: u });
});
-function GPe(e) {
- var t = Q(_Z), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = _2(a, FPe), u = Y$(o, r, a.id), d = X$(s), f = Z$(c, r, a.id);
+function eFe(e) {
+ var t = Q(gZ), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = g2(a, WPe), u = J$(o, r, a.id), d = Y$(s), f = X$(c, r, a.id);
if (!i || n == null) return null;
- var p = YI(i);
- return /*#__PURE__*/ R.createElement(RZ, { zIndex: Y1(i, SG.barBackground) }, n.map((e, n) => {
- var { value: a, background: o, tooltipPosition: s } = e, c = _2(e, IPe);
+ var p = XI(i);
+ return /*#__PURE__*/ R.createElement(LZ, { zIndex: J1(i, SG.barBackground) }, n.map((e, n) => {
+ var { value: a, background: o, tooltipPosition: s } = e, c = g2(e, GPe);
if (!o) return null;
- var m = u(e, n), h = d(e, n), g = f(e, n), _ = g2(g2(g2(g2(g2({
+ var m = u(e, n), h = d(e, n), g = f(e, n), _ = h2(h2(h2(h2(h2({
option: i,
isActive: String(n) === t
- }, c), {}, { fill: "#eee" }, o), p), SR(l, e, n)), {}, {
+ }, c), {}, { fill: "#eee" }, o), p), CR(l, e, n)), {}, {
onMouseEnter: m,
onMouseLeave: h,
onClick: g,
@@ -66199,10 +66450,10 @@ function GPe(e) {
index: n,
className: "recharts-bar-background-rectangle"
});
- return /*#__PURE__*/ R.createElement(c2, m2({ key: `background-bar-${n}` }, _));
+ return /*#__PURE__*/ R.createElement(s2, p2({ key: `background-bar-${n}` }, _));
}));
}
-function KPe(e) {
+function tFe(e) {
var { showLabels: t, children: n, rects: r } = e, i = r?.map((e) => {
var t = {
x: e.x,
@@ -66212,7 +66463,7 @@ function KPe(e) {
upperWidth: e.width,
height: e.height
};
- return g2(g2({}, t), {}, {
+ return h2(h2({}, t), {}, {
value: e.value,
payload: e.payload,
parentViewBox: e.parentViewBox,
@@ -66220,10 +66471,10 @@ function KPe(e) {
fill: e.fill
});
});
- return /*#__PURE__*/ R.createElement(KQ, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ R.createElement(GQ, { value: t ? i : void 0 }, n);
}
-function qPe(e) {
- var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(_Z), c = Q(yZ), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)(!1);
+function nFe(e) {
+ var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(gZ), c = Q(vZ), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)(!1);
(0, R.useEffect)(() => {
var e;
return l ? (d(!0), e = requestAnimationFrame(() => {
@@ -66234,42 +66485,42 @@ function qPe(e) {
}, [l]);
var m = (0, R.useCallback)(() => {
l || d(!1);
- }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ R.createElement(c2, m2({}, r, { name: String(r.name) }, i, {
+ }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ R.createElement(s2, p2({}, r, { name: String(r.name) }, i, {
isActive: h,
option: _,
index: a,
dataKey: o,
onTransitionEnd: m
}));
- return g ? /*#__PURE__*/ R.createElement(RZ, { zIndex: SG.activeBar }, /*#__PURE__*/ R.createElement(p2, { index: i.originalDataIndex }, v)) : v;
+ return g ? /*#__PURE__*/ R.createElement(LZ, { zIndex: SG.activeBar }, /*#__PURE__*/ R.createElement(f2, { index: i.originalDataIndex }, v)) : v;
}
-function JPe(e) {
+function rFe(e) {
var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;
- return /*#__PURE__*/ R.createElement(c2, m2({}, n, { name: String(n.name) }, r, {
+ return /*#__PURE__*/ R.createElement(s2, p2({}, n, { name: String(n.name) }, r, {
isActive: !1,
option: t,
index: i,
dataKey: a
}));
}
-function YPe(e) {
- var { data: t, props: n } = e, r = JI(n) ?? {}, { id: i } = r, a = _2(r, LPe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = _2(n, RPe), p = Y$(l, s, i), m = X$(d), h = Z$(u, s, i);
- return t ? /*#__PURE__*/ R.createElement(R.Fragment, null, t.map((e, t) => /*#__PURE__*/ R.createElement(p2, m2({
+function iFe(e) {
+ var { data: t, props: n } = e, r = YI(n) ?? {}, { id: i } = r, a = g2(r, KPe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = g2(n, qPe), p = J$(l, s, i), m = Y$(d), h = X$(u, s, i);
+ return t ? /*#__PURE__*/ R.createElement(R.Fragment, null, t.map((e, t) => /*#__PURE__*/ R.createElement(f2, p2({
index: e.originalDataIndex,
key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
className: "recharts-bar-rectangle"
- }, SR(f, e, t), {
+ }, CR(f, e, t), {
onMouseEnter: p(e, t),
onMouseLeave: m(e, t),
onClick: h(e, t)
- }), c ? /*#__PURE__*/ R.createElement(qPe, {
+ }), c ? /*#__PURE__*/ R.createElement(nFe, {
shape: o,
activeBar: c,
baseProps: a,
entry: e,
index: t,
dataKey: s
- }) : /*#__PURE__*/ R.createElement(JPe, {
+ }) : /*#__PURE__*/ R.createElement(rFe, {
shape: o,
baseProps: a,
entry: e,
@@ -66277,13 +66528,13 @@ function YPe(e) {
dataKey: s
})))) : null;
}
-function XPe(e) {
+function aFe(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 = OW(t, "recharts-bar-"), [p, m] = (0, R.useState)(!1), h = !p, g = (0, R.useCallback)(() => {
typeof l == "function" && l(), m(!1);
}, [l]), _ = (0, R.useCallback)(() => {
typeof u == "function" && u(), m(!0);
}, [u]);
- return /*#__PURE__*/ R.createElement(KPe, {
+ return /*#__PURE__*/ R.createElement(tFe, {
showLabels: h,
rects: r
}, /*#__PURE__*/ R.createElement(DW, {
@@ -66298,69 +66549,69 @@ function XPe(e) {
}, (e) => {
var a = e === 1 ? r : r?.map((t, n) => {
var r = d && d[n];
- if (r) return g2(g2({}, t), {}, {
- x: lR(r.x, t.x, e),
- y: lR(r.y, t.y, e),
- width: lR(r.width, t.width, e),
- height: lR(r.height, t.height, e)
+ if (r) return h2(h2({}, t), {}, {
+ x: uR(r.x, t.x, e),
+ y: uR(r.y, t.y, e),
+ width: uR(r.width, t.width, e),
+ height: uR(r.height, t.height, e)
});
if (i === "horizontal") {
- var a = lR(0, t.height, e), o = lR(t.stackedBarStart, t.y, e);
- return g2(g2({}, t), {}, {
+ var a = uR(0, t.height, e), o = uR(t.stackedBarStart, t.y, e);
+ return h2(h2({}, t), {}, {
y: o,
height: a
});
}
- var s = lR(0, t.width, e), c = lR(t.stackedBarStart, t.x, e);
- return g2(g2({}, t), {}, {
+ var s = uR(0, t.width, e), c = uR(t.stackedBarStart, t.x, e);
+ return h2(h2({}, t), {}, {
width: s,
x: c
});
});
- return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ R.createElement(eL, null, /*#__PURE__*/ R.createElement(YPe, {
+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ R.createElement(tL, null, /*#__PURE__*/ R.createElement(iFe, {
props: t,
data: a
}));
- }), /*#__PURE__*/ R.createElement(YQ, { label: t.label }), t.children);
+ }), /*#__PURE__*/ R.createElement(JQ, { label: t.label }), t.children);
}
-function ZPe(e) {
+function oFe(e) {
var t = (0, R.useRef)(null);
- return /*#__PURE__*/ R.createElement(XPe, {
+ return /*#__PURE__*/ R.createElement(aFe, {
previousRectanglesRef: t,
props: e
});
}
-var v2 = 0, QPe = (e, t) => {
+var _2 = 0, sFe = (e, t) => {
var n = Array.isArray(e.value) ? e.value[1] : e.value;
return {
x: e.x,
y: e.y,
value: n,
- errorVal: hV(e, t)
+ errorVal: gV(e, t)
};
-}, $Pe = class extends R.PureComponent {
+}, cFe = class extends R.PureComponent {
render() {
var { hide: e, data: t, dataKey: n, className: r, xAxisId: i, yAxisId: a, needClip: o, background: s, id: c } = this.props;
if (e || t == null) return null;
var l = Mu("recharts-bar", r), u = c;
- return /*#__PURE__*/ R.createElement(eL, {
+ return /*#__PURE__*/ R.createElement(tL, {
className: l,
id: c
- }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(M0, {
+ }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(j0, {
clipPathId: u,
xAxisId: i,
yAxisId: a
- })), /*#__PURE__*/ R.createElement(eL, {
+ })), /*#__PURE__*/ R.createElement(tL, {
className: "recharts-bar-rectangles",
clipPath: o ? `url(#clipPath-${u})` : void 0
- }, /*#__PURE__*/ R.createElement(GPe, {
+ }, /*#__PURE__*/ R.createElement(eFe, {
data: t,
dataKey: n,
background: s,
allOtherBarProps: this.props
- }), /*#__PURE__*/ R.createElement(ZPe, this.props)));
+ }), /*#__PURE__*/ R.createElement(oFe, this.props)));
}
-}, eFe = {
+}, lFe = {
activeBar: !1,
animationBegin: 0,
animationDuration: 400,
@@ -66370,22 +66621,22 @@ var v2 = 0, QPe = (e, t) => {
isAnimationActive: "auto",
label: !1,
legendType: "rect",
- minPointSize: v2,
+ minPointSize: _2,
xAxisId: 0,
yAxisId: 0,
zIndex: SG.bar
};
-function tFe(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 } = j0(t, n), f = uH(), p = RV(), m = R$(e.children, tQ), h = Q((t) => OPe(t, e.id, p, m));
+function uFe(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 } = A0(t, n), f = _H(), p = zV(), m = L$(e.children, eQ), h = Q((t) => LPe(t, e.id, p, m));
if (f !== "vertical" && f !== "horizontal") return null;
var g, _ = h?.[0];
- return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ R.createElement(A0, {
+ return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ R.createElement(k0, {
xAxisId: t,
yAxisId: n,
data: h,
- dataPointFormatter: QPe,
+ dataPointFormatter: sFe,
errorBarOffset: g
- }, /*#__PURE__*/ R.createElement($Pe, m2({}, e, {
+ }, /*#__PURE__*/ R.createElement(cFe, p2({}, e, {
layout: f,
needClip: d,
data: h,
@@ -66401,20 +66652,20 @@ function tFe(e) {
isAnimationActive: u
})));
}
-function nFe(e) {
- var { layout: t, barSettings: { dataKey: n, minPointSize: r, hasCustomShape: i }, pos: a, bandSize: o, xAxis: s, yAxis: c, xAxisTicks: l, yAxisTicks: u, stackedData: d, displayedData: f, offset: p, cells: m, parentViewBox: h, dataStartIndex: g } = e, _ = t === "horizontal" ? c : s, v = d ? _.scale.domain() : null, y = CV({ numericAxis: _ }), b = _.scale.map(y);
+function dFe(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 = wV({ 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;
- _ = yV(E, v);
- } else _ = hV(e, n), Array.isArray(_) || (_ = [y, _]);
- var D = bPe(r, v2)(_[1], f);
+ _ = bV(E, v);
+ } else _ = gV(e, n), Array.isArray(_) || (_ = [y, _]);
+ var D = kPe(r, _2)(_[1], f);
if (t === "horizontal") {
var O = c.scale.map(_[0]), k = c.scale.map(_[1]);
if (O == null || k == null) return null;
- x = SV({
+ x = CV({
axis: s,
ticks: l,
bandSize: o,
@@ -66423,19 +66674,19 @@ function nFe(e) {
index: f
}), S = k ?? O ?? void 0, C = a.size;
var A = O - k;
- if (w = rR(A) ? 0 : A, T = {
+ if (w = iR(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 = nR(w || D) * (Math.abs(D) - Math.abs(w));
+ var j = rR(w || D) * (Math.abs(D) - Math.abs(w));
S -= j, w += j;
}
} else {
var M = s.scale.map(_[0]), N = s.scale.map(_[1]);
if (M == null || N == null) return null;
- if (x = M, S = SV({
+ if (x = M, S = CV({
axis: c,
ticks: u,
bandSize: o,
@@ -66448,11 +66699,11 @@ function nFe(e) {
width: p.width,
height: w
}, Math.abs(D) > 0 && Math.abs(C) < Math.abs(D)) {
- var P = nR(C || D) * (Math.abs(D) - Math.abs(C));
+ var P = rR(C || D) * (Math.abs(D) - Math.abs(C));
C += P;
}
}
- return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : g2(g2({}, e), {}, {
+ return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : h2(h2({}, e), {}, {
stackedBarStart: b,
x,
y: S,
@@ -66470,12 +66721,12 @@ function nFe(e) {
}, m && m[f] && m[f].props);
}).filter(Boolean);
}
-function rFe(e) {
- var t = wR(e, eFe), n = MPe(t.stackId), r = RV();
- return /*#__PURE__*/ R.createElement(t1, {
+function fFe(e) {
+ var t = TR(e, lFe), n = VPe(t.stackId), r = zV();
+ return /*#__PURE__*/ R.createElement(e1, {
id: t.id,
type: "bar"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement($$, { legendPayload: UPe(t) }), /*#__PURE__*/ R.createElement(WPe, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Q$, { legendPayload: QPe(t) }), /*#__PURE__*/ R.createElement($Pe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -66485,7 +66736,7 @@ function rFe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(r1, {
+ }), /*#__PURE__*/ R.createElement(n1, {
type: "bar",
id: e,
data: void 0,
@@ -66500,23 +66751,23 @@ function rFe(e) {
maxBarSize: t.maxBarSize,
isPanorama: r,
hasCustomShape: t.shape != null
- }), /*#__PURE__*/ R.createElement(RZ, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(tFe, m2({}, t, { id: e })))));
+ }), /*#__PURE__*/ R.createElement(LZ, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(uFe, p2({}, t, { id: e })))));
}
-var y2 = /*#__PURE__*/ R.memo(rFe, LU);
-y2.displayName = "Bar";
+var v2 = /*#__PURE__*/ R.memo(fFe, RU);
+v2.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
-var iFe = ["domain", "range"], aFe = ["domain", "range"];
-function b2(e, t) {
+var pFe = ["domain", "range"], mFe = ["domain", "range"];
+function y2(e, t) {
if (e == null) return {};
- var n, r, i = oFe(e, t);
+ var n, r, i = hFe(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 oFe(e, t) {
+function hFe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66525,31 +66776,31 @@ function oFe(e, t) {
}
return n;
}
-function x2(e, t) {
+function b2(e, t) {
return e === t ? !0 : Array.isArray(e) && e.length === 2 && Array.isArray(t) && t.length === 2 ? e[0] === t[0] && e[1] === t[1] : !1;
}
-function S2(e, t) {
+function x2(e, t) {
if (e === t) return !0;
- var { domain: n, range: r } = e, i = b2(e, iFe), { domain: a, range: o } = t, s = b2(t, aFe);
- return !x2(n, a) || !x2(r, o) ? !1 : LU(i, s);
+ var { domain: n, range: r } = e, i = y2(e, pFe), { domain: a, range: o } = t, s = y2(t, mFe);
+ return !b2(n, a) || !b2(r, o) ? !1 : RU(i, s);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/XAxis.js
-var sFe = ["type"], cFe = [
+var gFe = ["type"], _Fe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], lFe = ["id", "scale"];
-function C2() {
- return C2 = Object.assign ? Object.assign.bind() : function(e) {
+], vFe = ["id", "scale"];
+function S2() {
+ return S2 = 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;
- }, C2.apply(null, arguments);
+ }, S2.apply(null, arguments);
}
-function w2(e, t) {
+function C2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66559,30 +66810,30 @@ function w2(e, t) {
}
return n;
}
-function T2(e) {
+function w2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? w2(Object(n), !0).forEach(function(t) {
- uFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : w2(Object(n)).forEach(function(t) {
+ t % 2 ? C2(Object(n), !0).forEach(function(t) {
+ yFe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function uFe(e, t, n) {
- return (t = dFe(t)) in e ? Object.defineProperty(e, t, {
+function yFe(e, t, n) {
+ return (t = bFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function dFe(e) {
- var t = fFe(e, "string");
+function bFe(e) {
+ var t = xFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function fFe(e, t) {
+function xFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66592,16 +66843,16 @@ function fFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function E2(e, t) {
+function T2(e, t) {
if (e == null) return {};
- var n, r, i = pFe(e, t);
+ var n, r, i = SFe(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 pFe(e, t) {
+function SFe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66610,24 +66861,24 @@ function pFe(e, t) {
}
return n;
}
-function mFe(e) {
- var t = ZR(), n = (0, R.useRef)(null), r = dH(), { type: i } = e, a = E2(e, sFe), o = EG(r, "xAxis", i), s = (0, R.useMemo)(() => {
- if (o != null) return T2(T2({}, a), {}, { type: o });
+function CFe(e) {
+ var t = QR(), n = (0, R.useRef)(null), r = vH(), { type: i } = e, a = T2(e, gFe), o = EG(r, "xAxis", i), s = (0, R.useMemo)(() => {
+ if (o != null) return w2(w2({}, a), {}, { type: o });
}, [a, o]);
return (0, R.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(AAe(s)) : n.current !== s && t(jAe({
+ s != null && (n.current === null ? t(zAe(s)) : n.current !== s && t(BAe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, R.useLayoutEffect)(() => () => {
- n.current &&= (t(MAe(n.current)), null);
+ n.current &&= (t(VAe(n.current)), null);
}, [t]), null;
}
-var hFe = (e) => {
- var { xAxisId: t, className: n } = e, r = Q(LV), i = RV(), a = "xAxis", o = Q((e) => DX(e, a, t, i)), s = Q((e) => bX(e, t)), c = Q((e) => LTe(e, t)), l = Q((e) => mY(e, t));
+var wFe = (e) => {
+ var { xAxisId: t, className: n } = e, r = Q(RV), i = zV(), a = "xAxis", o = Q((e) => DX(e, a, t, i)), s = Q((e) => bX(e, t)), c = Q((e) => GTe(e, t)), l = Q((e) => mY(e, t));
if (s == null || c == null || l == null) return null;
- var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = E2(e, cFe), { id: m, scale: h } = l, g = E2(l, lFe);
- return /*#__PURE__*/ R.createElement(S0, C2({}, p, g, {
+ var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = T2(e, _Fe), { id: m, scale: h } = l, g = T2(l, vFe);
+ return /*#__PURE__*/ R.createElement(x0, S2({}, p, g, {
x: c.x,
y: c.y,
width: s.width,
@@ -66638,12 +66889,12 @@ var hFe = (e) => {
axisType: a,
axisId: t
}));
-}, gFe = {
+}, TFe = {
allowDataOverflow: pY.allowDataOverflow,
allowDecimals: pY.allowDecimals,
allowDuplicatedCategory: pY.allowDuplicatedCategory,
angle: pY.angle,
- axisLine: x0.axisLine,
+ axisLine: b0.axisLine,
height: pY.height,
hide: !1,
includeHidden: pY.includeHidden,
@@ -66657,14 +66908,14 @@ var hFe = (e) => {
scale: pY.scale,
tick: pY.tick,
tickCount: pY.tickCount,
- tickLine: x0.tickLine,
- tickSize: x0.tickSize,
+ tickLine: b0.tickLine,
+ tickSize: b0.tickSize,
type: pY.type,
niceTicks: pY.niceTicks,
xAxisId: 0
-}, D2 = /*#__PURE__*/ R.memo((e) => {
- var t = wR(e, gFe);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(mFe, {
+}, E2 = /*#__PURE__*/ R.memo((e) => {
+ var t = TR(e, TFe);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(CFe, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
allowDuplicatedCategory: t.allowDuplicatedCategory,
@@ -66690,26 +66941,26 @@ var hFe = (e) => {
type: t.type,
unit: t.unit,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ R.createElement(hFe, t));
-}, S2);
-D2.displayName = "XAxis";
+ }), /*#__PURE__*/ R.createElement(wFe, t));
+}, x2);
+E2.displayName = "XAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/YAxis.js
-var _Fe = ["type"], vFe = [
+var EFe = ["type"], DFe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], yFe = ["id", "scale"];
-function O2() {
- return O2 = Object.assign ? Object.assign.bind() : function(e) {
+], OFe = ["id", "scale"];
+function D2() {
+ return D2 = 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;
- }, O2.apply(null, arguments);
+ }, D2.apply(null, arguments);
}
-function k2(e, t) {
+function O2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66719,30 +66970,30 @@ function k2(e, t) {
}
return n;
}
-function A2(e) {
+function k2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? k2(Object(n), !0).forEach(function(t) {
- bFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k2(Object(n)).forEach(function(t) {
+ t % 2 ? O2(Object(n), !0).forEach(function(t) {
+ kFe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bFe(e, t, n) {
- return (t = xFe(t)) in e ? Object.defineProperty(e, t, {
+function kFe(e, t, n) {
+ return (t = AFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xFe(e) {
- var t = SFe(e, "string");
+function AFe(e) {
+ var t = jFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function SFe(e, t) {
+function jFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66752,16 +67003,16 @@ function SFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function j2(e, t) {
+function A2(e, t) {
if (e == null) return {};
- var n, r, i = CFe(e, t);
+ var n, r, i = MFe(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 CFe(e, t) {
+function MFe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66770,27 +67021,27 @@ function CFe(e, t) {
}
return n;
}
-function wFe(e) {
- var t = ZR(), n = (0, R.useRef)(null), r = dH(), { type: i } = e, a = j2(e, _Fe), o = EG(r, "yAxis", i), s = (0, R.useMemo)(() => {
- if (o != null) return A2(A2({}, a), {}, { type: o });
+function NFe(e) {
+ var t = QR(), n = (0, R.useRef)(null), r = vH(), { type: i } = e, a = A2(e, EFe), o = EG(r, "yAxis", i), s = (0, R.useMemo)(() => {
+ if (o != null) return k2(k2({}, a), {}, { type: o });
}, [o, a]);
return (0, R.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(NAe(s)) : n.current !== s && t(PAe({
+ s != null && (n.current === null ? t(HAe(s)) : n.current !== s && t(UAe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, R.useLayoutEffect)(() => () => {
- n.current &&= (t(FAe(n.current)), null);
+ n.current &&= (t(WAe(n.current)), null);
}, [t]), null;
}
-function TFe(e) {
- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = Q(LV), c = RV(), l = ZR(), u = "yAxis", d = Q((e) => xX(e, t)), f = Q((e) => RTe(e, t)), p = Q((e) => DX(e, u, t, c)), m = Q((e) => _Y(e, t));
+function PFe(e) {
+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = Q(RV), c = zV(), l = QR(), u = "yAxis", d = Q((e) => xX(e, t)), f = Q((e) => KTe(e, t)), p = Q((e) => DX(e, u, t, c)), m = Q((e) => _Y(e, t));
if ((0, R.useLayoutEffect)(() => {
- if (!(r !== "auto" || !d || RQ(i) || /*#__PURE__*/ (0, R.isValidElement)(i) || m == null)) {
+ if (!(r !== "auto" || !d || LQ(i) || /*#__PURE__*/ (0, R.isValidElement)(i) || m == null)) {
var e = a.current;
if (e) {
var n = e.getCalculatedWidth();
- Math.round(d.width) !== Math.round(n) && l(zAe({
+ Math.round(d.width) !== Math.round(n) && l(JAe({
id: t,
width: n
}));
@@ -66805,8 +67056,8 @@ function TFe(e) {
r,
m
]), d == null || f == null || m == null) return null;
- var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = j2(e, vFe), { id: y, scale: b } = m, x = j2(m, yFe);
- return /*#__PURE__*/ R.createElement(S0, O2({}, v, x, {
+ var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = A2(e, DFe), { id: y, scale: b } = m, x = A2(m, OFe);
+ return /*#__PURE__*/ R.createElement(x0, D2({}, v, x, {
ref: a,
labelRef: o,
x: f.x,
@@ -66821,12 +67072,12 @@ function TFe(e) {
axisId: t
}));
}
-var EFe = {
+var FFe = {
allowDataOverflow: gY.allowDataOverflow,
allowDecimals: gY.allowDecimals,
allowDuplicatedCategory: gY.allowDuplicatedCategory,
angle: gY.angle,
- axisLine: x0.axisLine,
+ axisLine: b0.axisLine,
hide: !1,
includeHidden: gY.includeHidden,
interval: gY.interval,
@@ -66839,15 +67090,15 @@ var EFe = {
scale: gY.scale,
tick: gY.tick,
tickCount: gY.tickCount,
- tickLine: x0.tickLine,
- tickSize: x0.tickSize,
+ tickLine: b0.tickLine,
+ tickSize: b0.tickSize,
type: gY.type,
niceTicks: gY.niceTicks,
width: gY.width,
yAxisId: 0
-}, M2 = /*#__PURE__*/ R.memo((e) => {
- var t = wR(e, EFe);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(wFe, {
+}, j2 = /*#__PURE__*/ R.memo((e) => {
+ var t = TR(e, FFe);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(NFe, {
interval: t.interval,
id: t.yAxisId,
scale: t.scale,
@@ -66873,27 +67124,27 @@ var EFe = {
tick: t.tick,
tickFormatter: t.tickFormatter,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ R.createElement(TFe, t));
-}, S2);
-M2.displayName = "YAxis";
-var N2 = $([
+ }), /*#__PURE__*/ R.createElement(PFe, t));
+}, x2);
+j2.displayName = "YAxis";
+var M2 = $([
(e, t) => t,
- lH,
+ gH,
zG,
qG,
- uZ,
- fZ,
- NEe,
- IV
-], BEe);
+ lZ,
+ dZ,
+ HEe,
+ LV
+], YEe);
//#endregion
//#region node_modules/recharts/es6/util/getRelativeCoordinate.js
-function DFe(e) {
+function IFe(e) {
return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";
}
-function P2(e) {
+function N2(e) {
var t = e.currentTarget.getBoundingClientRect(), n, r;
- if (DFe(e)) {
+ if (IFe(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 {
@@ -66908,55 +67159,55 @@ function P2(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js
-var F2 = DB("mouseClick"), I2 = sV();
-I2.startListening({
- actionCreator: F2,
+var P2 = OB("mouseClick"), F2 = cV();
+F2.startListening({
+ actionCreator: P2,
effect: (e, t) => {
- var n = e.payload, r = N2(t.getState(), P2(n));
- r?.activeIndex != null && t.dispatch(JTe({
+ var n = e.payload, r = M2(t.getState(), N2(n));
+ r?.activeIndex != null && t.dispatch(nEe({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
});
-var L2 = DB("mouseMove"), R2 = sV(), z2 = null, B2 = null, V2 = null;
-R2.startListening({
- actionCreator: L2,
+var I2 = OB("mouseMove"), L2 = cV(), R2 = null, z2 = null, B2 = null;
+L2.startListening({
+ actionCreator: I2,
effect: (e, t) => {
var n = e.payload, { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i?.includes("mousemove");
- z2 !== null && (cancelAnimationFrame(z2), z2 = null), B2 !== null && (typeof r != "number" || !a) && (clearTimeout(B2), B2 = null), V2 = P2(n);
+ R2 !== null && (cancelAnimationFrame(R2), R2 = null), z2 !== null && (typeof r != "number" || !a) && (clearTimeout(z2), z2 = null), B2 = N2(n);
var o = () => {
var e = t.getState(), n = PX(e, e.tooltip.settings.shared);
- if (!V2) {
- z2 = null, B2 = null;
+ if (!B2) {
+ R2 = null, z2 = null;
return;
}
if (n === "axis") {
- var r = N2(e, V2);
+ var r = M2(e, B2);
r?.activeIndex == null ? t.dispatch(zX()) : t.dispatch(BX({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
- z2 = null, B2 = null;
+ R2 = null, z2 = null;
};
if (!a) {
o();
return;
}
- r === "raf" ? z2 = requestAnimationFrame(o) : typeof r == "number" && B2 === null && (B2 = setTimeout(o, r));
+ r === "raf" ? R2 = requestAnimationFrame(o) : typeof r == "number" && z2 === null && (z2 = setTimeout(o, r));
}
});
//#endregion
//#region node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js
-function OFe(e, t) {
+function LFe(e, t) {
return t instanceof HTMLElement ? `HTMLElement <${t.tagName} class="${t.className}">` : t === window ? "global.window" : e === "children" && typeof t == "object" && t ? "<<CHILDREN>>" : t;
}
//#endregion
//#region node_modules/recharts/es6/state/rootPropsSlice.js
-var H2 = {
+var V2 = {
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -66968,34 +67219,34 @@ var H2 = {
syncMethod: "index",
baseValue: void 0,
reverseStackOrder: !1
-}, U2 = IB({
+}, H2 = LB({
name: "rootProps",
- initialState: H2,
+ initialState: V2,
reducers: { updateOptions: (e, t) => {
- e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? H2.barGap, e.barSize = t.payload.barSize, e.maxBarSize = t.payload.maxBarSize, e.stackOffset = t.payload.stackOffset, e.syncId = t.payload.syncId, e.syncMethod = t.payload.syncMethod, e.className = t.payload.className, e.baseValue = t.payload.baseValue, e.reverseStackOrder = t.payload.reverseStackOrder;
+ e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? V2.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;
} }
-}), kFe = U2.reducer, { updateOptions: AFe } = U2.actions, W2 = IB({
+}), RFe = H2.reducer, { updateOptions: zFe } = H2.actions, U2 = LB({
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: jFe } = W2.actions, MFe = W2.reducer, G2 = DB("keyDown"), K2 = DB("focus"), q2 = DB("blur"), J2 = sV(), Y2 = null, X2 = null, Z2 = null;
-J2.startListening({
- actionCreator: G2,
+}), { updatePolarOptions: BFe } = U2.actions, VFe = U2.reducer, W2 = OB("keyDown"), G2 = OB("focus"), K2 = OB("blur"), q2 = cV(), J2 = null, Y2 = null, X2 = null;
+q2.startListening({
+ actionCreator: W2,
effect: (e, t) => {
- Z2 = e.payload, Y2 !== null && (cancelAnimationFrame(Y2), Y2 = null);
+ X2 = e.payload, J2 !== null && (cancelAnimationFrame(J2), J2 = null);
var { throttleDelay: n, throttledEvents: r } = t.getState().eventSettings, i = r === "all" || r.includes("keydown");
- X2 !== null && (typeof n != "number" || !i) && (clearTimeout(X2), X2 = null);
+ Y2 !== null && (typeof n != "number" || !i) && (clearTimeout(Y2), Y2 = null);
var a = () => {
try {
var e = t.getState();
if (e.rootProps.accessibilityLayer === !1) return;
- var { keyboardInteraction: n } = e.tooltip, r = Z2;
+ var { keyboardInteraction: n } = e.tooltip, r = X2;
if (r !== "ArrowRight" && r !== "ArrowLeft" && r !== "Enter") return;
- var i = KX(n, rZ(e), zY(e), cZ(e)), a = i == null ? -1 : Number(i);
+ var i = KX(n, rZ(e), zY(e), sZ(e)), a = i == null ? -1 : Number(i);
if (!Number.isFinite(a) || a < 0) return;
- var o = fZ(e);
+ var o = dZ(e);
if (r === "Enter") {
- var s = NZ(e, "axis", "hover", String(n.index));
+ var s = MZ(e, "axis", "hover", String(n.index));
t.dispatch(HX({
active: !n.active,
activeIndex: n.index,
@@ -67003,34 +67254,34 @@ J2.startListening({
}));
return;
}
- var c = zTe(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
+ var c = qTe(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
if (o == null || l >= o.length || l < 0) return;
- var u = NZ(e, "axis", "hover", String(l));
+ var u = MZ(e, "axis", "hover", String(l));
t.dispatch(HX({
active: !0,
activeIndex: l.toString(),
activeCoordinate: u
}));
} finally {
- Y2 = null, X2 = null;
+ J2 = null, Y2 = null;
}
};
if (!i) {
a();
return;
}
- n === "raf" ? Y2 = requestAnimationFrame(a) : typeof n == "number" && X2 === null && (a(), Z2 = null, X2 = setTimeout(() => {
- Z2 ? a() : (X2 = null, Y2 = null);
+ n === "raf" ? J2 = requestAnimationFrame(a) : typeof n == "number" && Y2 === null && (a(), X2 = null, Y2 = setTimeout(() => {
+ X2 ? a() : (Y2 = null, J2 = null);
}, n));
}
-}), J2.startListening({
- actionCreator: K2,
+}), q2.startListening({
+ actionCreator: G2,
effect: (e, t) => {
var n = t.getState();
if (n.rootProps.accessibilityLayer !== !1) {
var { keyboardInteraction: r } = n.tooltip;
if (!r.active && r.index == null) {
- var i = "0", a = NZ(n, "axis", "hover", String(i));
+ var i = "0", a = MZ(n, "axis", "hover", String(i));
t.dispatch(HX({
active: !0,
activeIndex: i,
@@ -67039,8 +67290,8 @@ J2.startListening({
}
}
}
-}), J2.startListening({
- actionCreator: q2,
+}), q2.startListening({
+ actionCreator: K2,
effect: (e, t) => {
var n = t.getState();
if (n.rootProps.accessibilityLayer !== !1) {
@@ -67055,7 +67306,7 @@ J2.startListening({
});
//#endregion
//#region node_modules/recharts/es6/util/createEventProxy.js
-function Q2(e) {
+function Z2(e) {
e.persist();
var { currentTarget: t } = e;
return new Proxy(e, { get: (e, n) => {
@@ -67066,36 +67317,36 @@ function Q2(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/externalEventsMiddleware.js
-var $2 = DB("externalEvent"), e4 = sV(), t4 = /* @__PURE__ */ new Map(), n4 = /* @__PURE__ */ new Map(), r4 = /* @__PURE__ */ new Map();
-e4.startListening({
- actionCreator: $2,
+var Q2 = OB("externalEvent"), $2 = cV(), e4 = /* @__PURE__ */ new Map(), t4 = /* @__PURE__ */ new Map(), n4 = /* @__PURE__ */ new Map();
+$2.startListening({
+ actionCreator: Q2,
effect: (e, t) => {
var { handler: n, reactEvent: r } = e.payload;
if (n != null) {
- var i = r.type, a = Q2(r);
- r4.set(i, {
+ var i = r.type, a = Z2(r);
+ n4.set(i, {
handler: n,
reactEvent: a
});
- var o = t4.get(i);
- o !== void 0 && (cancelAnimationFrame(o), t4.delete(i));
- var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = n4.get(i);
- d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), n4.delete(i));
+ var o = e4.get(i);
+ o !== void 0 && (cancelAnimationFrame(o), e4.delete(i));
+ var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = t4.get(i);
+ d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), t4.delete(i));
var f = () => {
- var e = r4.get(i);
+ var e = n4.get(i);
try {
if (!e) return;
var { handler: n, reactEvent: r } = e, a = t.getState(), o = {
- activeCoordinate: yEe(a),
- activeDataKey: yZ(a),
- activeIndex: _Z(a),
- activeLabel: vZ(a),
- activeTooltipIndex: _Z(a),
- isTooltipActive: bEe(a)
+ activeCoordinate: OEe(a),
+ activeDataKey: vZ(a),
+ activeIndex: gZ(a),
+ activeLabel: _Z(a),
+ activeTooltipIndex: gZ(a),
+ isTooltipActive: kEe(a)
};
n && n(o, r);
} finally {
- t4.delete(i), n4.delete(i), r4.delete(i);
+ e4.delete(i), t4.delete(i), n4.delete(i);
}
};
if (!u) {
@@ -67104,18 +67355,18 @@ e4.startListening({
}
if (s === "raf") {
var p = requestAnimationFrame(f);
- t4.set(i, p);
+ e4.set(i, p);
} else if (typeof s == "number") {
- if (!n4.has(i)) {
+ if (!t4.has(i)) {
f();
var m = setTimeout(f, s);
- n4.set(i, m);
+ t4.set(i, m);
}
} else f();
}
}
});
-var NFe = $([
+var HFe = $([
$([XX], (e) => e.tooltipItemPayloads),
(e, t) => t,
(e, t, n) => n
@@ -67127,42 +67378,42 @@ var NFe = $([
if (i != null) return i(t);
}
}
-}), i4 = DB("touchMove"), a4 = sV(), o4 = null, s4 = null, c4 = null, l4 = null;
-a4.startListening({
- actionCreator: i4,
+}), r4 = OB("touchMove"), i4 = cV(), a4 = null, o4 = null, s4 = null, c4 = null;
+i4.startListening({
+ actionCreator: r4,
effect: (e, t) => {
var n = e.payload;
if (n.touches != null && n.touches.length !== 0) {
- l4 = Q2(n);
+ c4 = Z2(n);
var { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i.includes("touchmove");
- o4 !== null && (cancelAnimationFrame(o4), o4 = null), s4 !== null && (typeof r != "number" || !a) && (clearTimeout(s4), s4 = null), c4 = Array.from(n.touches).map((e) => P2({
+ a4 !== null && (cancelAnimationFrame(a4), a4 = null), o4 !== null && (typeof r != "number" || !a) && (clearTimeout(o4), o4 = null), s4 = Array.from(n.touches).map((e) => N2({
clientX: e.clientX,
clientY: e.clientY,
currentTarget: n.currentTarget
}));
var o = () => {
- if (l4 != null) {
+ if (c4 != null) {
var e = t.getState(), n = PX(e, e.tooltip.settings.shared);
if (n === "axis") {
- var r = c4?.[0];
+ var r = s4?.[0];
if (r == null) {
- o4 = null, s4 = null;
+ a4 = null, o4 = null;
return;
}
- var i = N2(e, r);
+ var i = M2(e, r);
i?.activeIndex != null && t.dispatch(BX({
activeIndex: i.activeIndex,
activeDataKey: void 0,
activeCoordinate: i.activeCoordinate
}));
} else if (n === "item") {
- var a = l4.touches[0];
+ var a = c4.touches[0];
if (document.elementFromPoint == null || a == null) return;
var o = document.elementFromPoint(a.clientX, a.clientY);
if (!o || !o.getAttribute) return;
- var s = o.getAttribute(Xye), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = nZ(e).find((e) => e.id === c);
+ var s = o.getAttribute(rbe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = nZ(e).find((e) => e.id === c);
if (s == null || l == null || c == null) return;
- var { dataKey: u } = l, d = NFe(e, s, c);
+ var { dataKey: u } = l, d = HFe(e, s, c);
t.dispatch(RX({
activeDataKey: u,
activeIndex: s,
@@ -67170,22 +67421,22 @@ a4.startListening({
activeGraphicalItemId: c
}));
}
- o4 = null, s4 = null;
+ a4 = null, o4 = null;
}
};
if (!a) {
o();
return;
}
- r === "raf" ? o4 = requestAnimationFrame(o) : typeof r == "number" && s4 === null && (o(), l4 = null, s4 = setTimeout(() => {
- l4 ? o() : (s4 = null, o4 = null);
+ r === "raf" ? a4 = requestAnimationFrame(o) : typeof r == "number" && o4 === null && (o(), c4 = null, o4 = setTimeout(() => {
+ c4 ? o() : (o4 = null, a4 = null);
}, r));
}
}
});
//#endregion
//#region node_modules/recharts/es6/state/eventSettingsSlice.js
-var u4 = {
+var l4 = {
throttleDelay: "raf",
throttledEvents: [
"mousemove",
@@ -67194,33 +67445,33 @@ var u4 = {
"scroll",
"wheel"
]
-}, d4 = IB({
+}, u4 = LB({
name: "eventSettings",
- initialState: u4,
+ initialState: l4,
reducers: { setEventSettings: (e, t) => {
- t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = dU(t.payload.throttledEvents));
+ t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = vU(t.payload.throttledEvents));
} }
-}), { setEventSettings: PFe } = d4.actions, FFe = d4.reducer, IFe = hz({
- brush: $je,
- cartesianAxis: BAe,
- chartData: pDe,
- errorBars: vNe,
- eventSettings: FFe,
- graphicalItems: gAe,
- layout: Lye,
- legend: vU,
- options: cDe,
- polarAxis: oke,
- polarOptions: MFe,
- referenceElements: uMe,
- renderedTicks: RMe,
- rootProps: kFe,
- tooltip: YTe,
- zIndex: $Ee
-}), LFe = function(e) {
+}), { setEventSettings: UFe } = u4.actions, WFe = u4.reducer, GFe = gz({
+ brush: cMe,
+ cartesianAxis: YAe,
+ chartData: SDe,
+ errorBars: DNe,
+ eventSettings: WFe,
+ graphicalItems: TAe,
+ layout: Wye,
+ legend: TU,
+ options: _De,
+ polarAxis: hke,
+ polarOptions: VFe,
+ referenceElements: yMe,
+ renderedTicks: qMe,
+ rootProps: RFe,
+ tooltip: rEe,
+ zIndex: cDe
+}), KFe = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";
- return lye({
- reducer: IFe,
+ return gye({
+ reducer: GFe,
preloadedState: e,
middleware: (e) => e({
serializableCheck: !1,
@@ -67230,40 +67481,40 @@ var u4 = {
"production"
].includes("es6")
}).concat([
- I2.middleware,
- R2.middleware,
- J2.middleware,
- e4.middleware,
- a4.middleware
+ F2.middleware,
+ L2.middleware,
+ q2.middleware,
+ $2.middleware,
+ i4.middleware
]),
enhancers: (e) => {
var t = e;
- return typeof e == "function" && (t = e()), t.concat(PB({ type: "raf" }));
+ return typeof e == "function" && (t = e()), t.concat(FB({ type: "raf" }));
},
devTools: YU.devToolsEnabled && {
- serialize: { replacer: OFe },
+ serialize: { replacer: LFe },
name: `recharts-${t}`
}
});
};
//#endregion
//#region node_modules/recharts/es6/state/RechartsStoreProvider.js
-function f4(e) {
- var { preloadedState: t, children: n, reduxStoreName: r } = e, i = RV(), a = (0, R.useRef)(null);
+function d4(e) {
+ var { preloadedState: t, children: n, reduxStoreName: r } = e, i = zV(), a = (0, R.useRef)(null);
if (i) return n;
- a.current ??= LFe(t, r);
- var o = XR;
- return /*#__PURE__*/ R.createElement(PU, {
+ a.current ??= KFe(t, r);
+ var o = ZR;
+ return /*#__PURE__*/ R.createElement(bbe, {
context: o,
store: a.current
}, n);
}
//#endregion
//#region node_modules/recharts/es6/state/ReportMainChartProps.js
-function RFe(e) {
- var { layout: t, margin: n } = e, r = ZR(), i = RV();
+function qFe(e) {
+ var { layout: t, margin: n } = e, r = QR(), i = zV();
return (0, R.useEffect)(() => {
- i || (r(Pye(t)), r(Nye(n)));
+ i || (r(Vye(t)), r(Bye(n)));
}, [
r,
i,
@@ -67271,31 +67522,31 @@ function RFe(e) {
n
]), null;
}
-var p4 = /*#__PURE__*/ (0, R.memo)(RFe, LU);
+var f4 = /*#__PURE__*/ (0, R.memo)(qFe, RU);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
-function m4(e) {
- var t = ZR();
+function p4(e) {
+ var t = QR();
return (0, R.useEffect)(() => {
- t(AFe(e));
+ t(zFe(e));
}, [t, e]), null;
}
-var h4 = /*#__PURE__*/ (0, R.memo)((e) => {
- var t = ZR();
+var m4 = /*#__PURE__*/ (0, R.memo)((e) => {
+ var t = QR();
return (0, R.useEffect)(() => {
- t(PFe(e));
+ t(UFe(e));
}, [t, e]), null;
-}, LU);
+}, RU);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
-function g4(e) {
- var { zIndex: t, isPanorama: n } = e, r = (0, R.useRef)(null), i = ZR();
- return (0, R.useLayoutEffect)(() => (r.current && i(ZEe({
+function h4(e) {
+ var { zIndex: t, isPanorama: n } = e, r = (0, R.useRef)(null), i = QR();
+ return (0, R.useLayoutEffect)(() => (r.current && i(oDe({
zIndex: t,
element: r.current,
isPanorama: n
})), () => {
- i(QEe({
+ i(sDe({
zIndex: t,
isPanorama: n
}));
@@ -67309,15 +67560,15 @@ function g4(e) {
className: `recharts-zIndex-layer_${t}`
});
}
-function _4(e) {
- var { children: t, isPanorama: n } = e, r = Q(HEe);
+function g4(e) {
+ var { children: t, isPanorama: n } = e, r = Q(ZEe);
if (!r || r.length === 0) return t;
var i = r.filter((e) => e < 0), a = r.filter((e) => e > 0);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, i.map((e) => /*#__PURE__*/ R.createElement(g4, {
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, i.map((e) => /*#__PURE__*/ R.createElement(h4, {
key: e,
zIndex: e,
isPanorama: n
- })), t, a.map((e) => /*#__PURE__*/ R.createElement(g4, {
+ })), t, a.map((e) => /*#__PURE__*/ R.createElement(h4, {
key: e,
zIndex: e,
isPanorama: n
@@ -67325,17 +67576,17 @@ function _4(e) {
}
//#endregion
//#region node_modules/recharts/es6/container/RootSurface.js
-var zFe = ["children"];
-function BFe(e, t) {
+var JFe = ["children"];
+function YFe(e, t) {
if (e == null) return {};
- var n, r, i = VFe(e, t);
+ var n, r, i = XFe(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 VFe(e, t) {
+function XFe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67344,55 +67595,55 @@ function VFe(e, t) {
}
return n;
}
-function v4() {
- return v4 = Object.assign ? Object.assign.bind() : function(e) {
+function _4() {
+ return _4 = 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;
- }, v4.apply(null, arguments);
+ }, _4.apply(null, arguments);
}
-var HFe = {
+var ZFe = {
width: "100%",
height: "100%",
display: "block"
-}, UFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = oH(), r = sH(), i = $U();
- if (!fV(n) || !fV(r)) return null;
+}, QFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = pH(), r = mH(), i = $U();
+ if (!pV(n) || !pV(r)) return null;
var { children: a, otherAttributes: o, title: s, desc: c } = e, l, u;
- return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ R.createElement(QI, v4({}, o, {
+ return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ R.createElement($I, _4({}, o, {
title: s,
desc: c,
role: u,
tabIndex: l,
width: n,
height: r,
- style: HFe,
+ style: ZFe,
ref: t
}), a);
-}), WFe = (e) => {
- var { children: t } = e, n = Q(BV);
+}), $Fe = (e) => {
+ var { children: t } = e, n = Q(VV);
if (!n) return null;
var { width: r, height: i, y: a, x: o } = n;
- return /*#__PURE__*/ R.createElement(QI, {
+ return /*#__PURE__*/ R.createElement($I, {
width: r,
height: i,
x: o,
y: a
}, t);
-}, y4 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { children: n } = e, r = BFe(e, zFe);
- return RV() ? /*#__PURE__*/ R.createElement(WFe, null, /*#__PURE__*/ R.createElement(_4, { isPanorama: !0 }, n)) : /*#__PURE__*/ R.createElement(UFe, v4({ ref: t }, r), /*#__PURE__*/ R.createElement(_4, { isPanorama: !1 }, n));
+}, v4 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { children: n } = e, r = YFe(e, JFe);
+ return zV() ? /*#__PURE__*/ R.createElement($Fe, null, /*#__PURE__*/ R.createElement(g4, { isPanorama: !0 }, n)) : /*#__PURE__*/ R.createElement(QFe, _4({ ref: t }, r), /*#__PURE__*/ R.createElement(g4, { isPanorama: !1 }, n));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
-function GFe() {
- var e = ZR(), [t, n] = (0, R.useState)(null), r = Q(Yye);
+function eIe() {
+ var e = QR(), [t, n] = (0, R.useState)(null), r = Q(nbe);
return (0, R.useEffect)(() => {
if (t != null) {
var n = t.getBoundingClientRect().width / t.offsetWidth;
- dV(n) && n !== r && e(Iye(n));
+ fV(n) && n !== r && e(Uye(n));
}
}, [
t,
@@ -67402,7 +67653,7 @@ function GFe() {
}
//#endregion
//#region node_modules/recharts/es6/chart/RechartsWrapper.js
-function b4(e, t) {
+function y4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67412,30 +67663,30 @@ function b4(e, t) {
}
return n;
}
-function KFe(e) {
+function tIe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? b4(Object(n), !0).forEach(function(t) {
- qFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : b4(Object(n)).forEach(function(t) {
+ t % 2 ? y4(Object(n), !0).forEach(function(t) {
+ nIe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : y4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function qFe(e, t, n) {
- return (t = JFe(t)) in e ? Object.defineProperty(e, t, {
+function nIe(e, t, n) {
+ return (t = rIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function JFe(e) {
- var t = YFe(e, "string");
+function rIe(e) {
+ var t = iIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function YFe(e, t) {
+function iIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67445,17 +67696,17 @@ function YFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function x4() {
- return x4 = Object.assign ? Object.assign.bind() : function(e) {
+function b4() {
+ return b4 = 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;
- }, x4.apply(null, arguments);
+ }, b4.apply(null, arguments);
}
-var XFe = () => (SDe(), null);
-function S4(e) {
+var aIe = () => (jDe(), null);
+function x4(e) {
if (typeof e == "number") return e;
if (typeof e == "string") {
var t = parseFloat(e);
@@ -67463,10 +67714,10 @@ function S4(e) {
}
return 0;
}
-var ZFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+var oIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var n = (0, R.useRef)(null), [r, i] = (0, R.useState)({
- containerWidth: S4(e.style?.width),
- containerHeight: S4(e.style?.height)
+ containerWidth: x4(e.style?.width),
+ containerHeight: x4(e.style?.height)
}), a = (0, R.useCallback)((e, t) => {
i((n) => {
var r = Math.round(e), i = Math.round(t);
@@ -67491,14 +67742,14 @@ var ZFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
}, [t, a]);
return (0, R.useEffect)(() => () => {
n.current?.disconnect();
- }, [a]), /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(hH, {
+ }, [a]), /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(SH, {
width: r.containerWidth,
height: r.containerHeight
- }), /*#__PURE__*/ R.createElement("div", x4({ ref: o }, e)));
-}), QFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ R.createElement("div", b4({ ref: o }, e)));
+}), sIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { width: n, height: r } = e, [i, a] = (0, R.useState)({
- containerWidth: S4(n),
- containerHeight: S4(r)
+ containerWidth: x4(n),
+ containerHeight: x4(r)
}), o = (0, R.useCallback)((e, t) => {
a((n) => {
var r = Math.round(e), i = Math.round(t);
@@ -67513,32 +67764,32 @@ var ZFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
o(n, r);
}
}, [t, o]);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(hH, {
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(SH, {
width: i.containerWidth,
height: i.containerHeight
- }), /*#__PURE__*/ R.createElement("div", x4({ ref: s }, e)));
-}), $Fe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ R.createElement("div", b4({ ref: s }, e)));
+}), cIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(hH, {
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(SH, {
width: n,
height: r
- }), /*#__PURE__*/ R.createElement("div", x4({ ref: t }, e)));
-}), eIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ R.createElement("div", b4({ ref: t }, e)));
+}), lIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ R.createElement(QFe, x4({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ R.createElement($Fe, x4({}, e, {
+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ R.createElement(sIe, b4({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ R.createElement(cIe, b4({}, e, {
width: n,
height: r,
ref: t
- })) : /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(hH, {
+ })) : /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(SH, {
width: n,
height: r
- }), /*#__PURE__*/ R.createElement("div", x4({ ref: t }, e)));
+ }), /*#__PURE__*/ R.createElement("div", b4({ ref: t }, e)));
});
-function tIe(e) {
- return e ? ZFe : eIe;
+function uIe(e) {
+ return e ? oIe : lIe;
}
-var nIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, R.useRef)(null), x = ZR(), [S, C] = (0, R.useState)(null), [w, T] = (0, R.useState)(null), E = GFe(), D = $V(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, R.useCallback)((e) => {
+var dIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, R.useRef)(null), x = QR(), [S, C] = (0, R.useState)(null), [w, T] = (0, R.useState)(null), E = eIe(), D = oH(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, R.useCallback)((e) => {
E(e), typeof t == "function" && t(e), C(e), T(e), e != null && (b.current = e);
}, [
E,
@@ -67546,58 +67797,58 @@ var nIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
C,
T
]), j = (0, R.useCallback)((e) => {
- x(F2(e)), x($2({
+ x(P2(e)), x(Q2({
handler: a,
reactEvent: e
}));
}, [x, a]), M = (0, R.useCallback)((e) => {
- x(L2(e)), x($2({
+ x(I2(e)), x(Q2({
handler: l,
reactEvent: e
}));
}, [x, l]), N = (0, R.useCallback)((e) => {
- x(zX()), x($2({
+ x(zX()), x(Q2({
handler: u,
reactEvent: e
}));
}, [x, u]), P = (0, R.useCallback)((e) => {
- x(L2(e)), x($2({
+ x(I2(e)), x(Q2({
handler: d,
reactEvent: e
}));
}, [x, d]), ee = (0, R.useCallback)(() => {
- x(K2());
+ x(G2());
}, [x]), F = (0, R.useCallback)(() => {
- x(q2());
+ x(K2());
}, [x]), I = (0, R.useCallback)((e) => {
- x(G2(e.key));
+ x(W2(e.key));
}, [x]), te = (0, R.useCallback)((e) => {
- x($2({
+ x(Q2({
handler: o,
reactEvent: e
}));
}, [x, o]), ne = (0, R.useCallback)((e) => {
- x($2({
+ x(Q2({
handler: s,
reactEvent: e
}));
}, [x, s]), re = (0, R.useCallback)((e) => {
- x($2({
+ x(Q2({
handler: c,
reactEvent: e
}));
}, [x, c]), ie = (0, R.useCallback)((e) => {
- x($2({
+ x(Q2({
handler: f,
reactEvent: e
}));
}, [x, f]), ae = (0, R.useCallback)((e) => {
- x($2({
+ x(Q2({
handler: h,
reactEvent: e
}));
}, [x, h]), oe = (0, R.useCallback)((e) => {
- y && x(i4(e)), x($2({
+ y && x(r4(e)), x(Q2({
handler: m,
reactEvent: e
}));
@@ -67606,16 +67857,16 @@ var nIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
y,
m
]), se = (0, R.useCallback)((e) => {
- x($2({
+ x(Q2({
handler: p,
reactEvent: e
}));
- }, [x, p]), ce = tIe(v);
- return /*#__PURE__*/ R.createElement(HZ.Provider, { value: S }, /*#__PURE__*/ R.createElement(tL.Provider, { value: w }, /*#__PURE__*/ R.createElement(ce, {
+ }, [x, p]), ce = uIe(v);
+ return /*#__PURE__*/ R.createElement(VZ.Provider, { value: S }, /*#__PURE__*/ R.createElement(nL.Provider, { value: w }, /*#__PURE__*/ R.createElement(ce, {
width: O ?? g?.width,
height: k ?? g?.height,
className: Mu("recharts-wrapper", r),
- style: KFe({
+ style: tIe({
position: "relative",
cursor: "default",
width: O,
@@ -67636,8 +67887,8 @@ var nIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
onTouchMove: oe,
onTouchStart: ae,
ref: A
- }, /*#__PURE__*/ R.createElement(XFe, null), n)));
-}), rIe = [
+ }, /*#__PURE__*/ R.createElement(aIe, null), n)));
+}), fIe = [
"width",
"height",
"responsive",
@@ -67648,16 +67899,16 @@ var nIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
"title",
"desc"
];
-function iIe(e, t) {
+function pIe(e, t) {
if (e == null) return {};
- var n, r, i = aIe(e, t);
+ var n, r, i = mIe(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 aIe(e, t) {
+function mIe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67666,16 +67917,16 @@ function aIe(e, t) {
}
return n;
}
-var C4 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = JI(iIe(e, rIe));
- return c ? /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(hH, {
+var S4 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = YI(pIe(e, fIe));
+ return c ? /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(SH, {
width: n,
height: r
- }), /*#__PURE__*/ R.createElement(y4, {
+ }), /*#__PURE__*/ R.createElement(v4, {
otherAttributes: d,
title: l,
desc: u
- }, a)) : /*#__PURE__*/ R.createElement(nIe, {
+ }, a)) : /*#__PURE__*/ R.createElement(dIe, {
className: o,
style: s,
width: n,
@@ -67692,25 +67943,25 @@ var C4 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
onTouchStart: e.onTouchStart,
onTouchMove: e.onTouchMove,
onTouchEnd: e.onTouchEnd
- }, /*#__PURE__*/ R.createElement(y4, {
+ }, /*#__PURE__*/ R.createElement(v4, {
otherAttributes: d,
title: l,
desc: u,
ref: t
- }, /*#__PURE__*/ R.createElement(dMe, null, a)));
+ }, /*#__PURE__*/ R.createElement(bMe, null, a)));
});
//#endregion
//#region node_modules/recharts/es6/chart/CartesianChart.js
-function w4() {
- return w4 = Object.assign ? Object.assign.bind() : function(e) {
+function C4() {
+ return C4 = 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;
- }, w4.apply(null, arguments);
+ }, C4.apply(null, arguments);
}
-function T4(e, t) {
+function w4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67720,30 +67971,30 @@ function T4(e, t) {
}
return n;
}
-function oIe(e) {
+function hIe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? T4(Object(n), !0).forEach(function(t) {
- sIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : T4(Object(n)).forEach(function(t) {
+ t % 2 ? w4(Object(n), !0).forEach(function(t) {
+ gIe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : w4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function sIe(e, t, n) {
- return (t = cIe(t)) in e ? Object.defineProperty(e, t, {
+function gIe(e, t, n) {
+ return (t = _Ie(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function cIe(e) {
- var t = lIe(e, "string");
+function _Ie(e) {
+ var t = vIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function lIe(e, t) {
+function vIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67753,7 +68004,7 @@ function lIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var uIe = oIe({
+var yIe = hIe({
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -67768,24 +68019,24 @@ var uIe = oIe({
reverseStackOrder: !1,
stackOffset: "none",
syncMethod: "index"
-}, u4), E4 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- var n = wR(e.categoricalChartProps, uIe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
+}, l4), T4 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ var n = TR(e.categoricalChartProps, yIe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
chartName: r,
defaultTooltipEventType: i,
validateTooltipEventTypes: a,
tooltipPayloadSearcher: o,
eventEmitter: void 0
};
- return /*#__PURE__*/ R.createElement(f4, {
+ return /*#__PURE__*/ R.createElement(d4, {
preloadedState: { options: c },
reduxStoreName: s.id ?? r
- }, /*#__PURE__*/ R.createElement(r0, { chartData: s.data }), /*#__PURE__*/ R.createElement(p4, {
+ }, /*#__PURE__*/ R.createElement(n0, { chartData: s.data }), /*#__PURE__*/ R.createElement(f4, {
layout: n.layout,
margin: n.margin
- }), /*#__PURE__*/ R.createElement(h4, {
+ }), /*#__PURE__*/ R.createElement(m4, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ R.createElement(m4, {
+ }), /*#__PURE__*/ R.createElement(p4, {
baseValue: n.baseValue,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -67797,52 +68048,52 @@ var uIe = oIe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ R.createElement(C4, w4({}, n, { ref: t })));
-}), dIe = ["axis"], fIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(E4, {
+ }), /*#__PURE__*/ R.createElement(S4, C4({}, n, { ref: t })));
+}), bIe = ["axis"], xIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(T4, {
chartName: "LineChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: dIe,
- tooltipPayloadSearcher: KZ,
+ validateTooltipEventTypes: bIe,
+ tooltipPayloadSearcher: GZ,
categoricalChartProps: e,
ref: t
-})), pIe = ["axis", "item"], D4 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(E4, {
+})), SIe = ["axis", "item"], E4 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(T4, {
chartName: "BarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: pIe,
- tooltipPayloadSearcher: KZ,
+ validateTooltipEventTypes: SIe,
+ tooltipPayloadSearcher: GZ,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/state/ReportPolarOptions.js
-function mIe(e) {
- var t = ZR();
+function CIe(e) {
+ var t = QR();
return (0, R.useEffect)(() => {
- t(jFe(e));
+ t(BFe(e));
}, [t, e]), null;
}
//#endregion
//#region node_modules/recharts/es6/chart/PolarChart.js
-var hIe = ["layout"];
-function O4() {
- return O4 = Object.assign ? Object.assign.bind() : function(e) {
+var wIe = ["layout"];
+function D4() {
+ return D4 = 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;
- }, O4.apply(null, arguments);
+ }, D4.apply(null, arguments);
}
-function gIe(e, t) {
+function TIe(e, t) {
if (e == null) return {};
- var n, r, i = _Ie(e, t);
+ var n, r, i = EIe(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 _Ie(e, t) {
+function EIe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67851,7 +68102,7 @@ function _Ie(e, t) {
}
return n;
}
-function k4(e, t) {
+function O4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67861,30 +68112,30 @@ function k4(e, t) {
}
return n;
}
-function vIe(e) {
+function DIe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? k4(Object(n), !0).forEach(function(t) {
- yIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k4(Object(n)).forEach(function(t) {
+ t % 2 ? O4(Object(n), !0).forEach(function(t) {
+ OIe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function yIe(e, t, n) {
- return (t = bIe(t)) in e ? Object.defineProperty(e, t, {
+function OIe(e, t, n) {
+ return (t = kIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bIe(e) {
- var t = xIe(e, "string");
+function kIe(e) {
+ var t = AIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xIe(e, t) {
+function AIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67894,7 +68145,7 @@ function xIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var A4 = vIe({
+var k4 = DIe({
accessibilityLayer: !0,
stackOffset: "none",
barCategoryGap: "10%",
@@ -67913,24 +68164,24 @@ var A4 = vIe({
cy: "50%",
innerRadius: 0,
outerRadius: "80%"
-}, u4), j4 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- var n = wR(e.categoricalChartProps, A4), { layout: r } = n, i = gIe(n, hIe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
+}, l4), A4 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ var n = TR(e.categoricalChartProps, k4), { layout: r } = n, i = TIe(n, wIe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
chartName: a,
defaultTooltipEventType: o,
validateTooltipEventTypes: s,
tooltipPayloadSearcher: c,
eventEmitter: void 0
};
- return /*#__PURE__*/ R.createElement(f4, {
+ return /*#__PURE__*/ R.createElement(d4, {
preloadedState: { options: l },
reduxStoreName: n.id ?? a
- }, /*#__PURE__*/ R.createElement(r0, { chartData: n.data }), /*#__PURE__*/ R.createElement(p4, {
+ }, /*#__PURE__*/ R.createElement(n0, { chartData: n.data }), /*#__PURE__*/ R.createElement(f4, {
layout: r,
margin: n.margin
- }), /*#__PURE__*/ R.createElement(h4, {
+ }), /*#__PURE__*/ R.createElement(m4, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ R.createElement(m4, {
+ }), /*#__PURE__*/ R.createElement(p4, {
baseValue: void 0,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -67942,18 +68193,18 @@ var A4 = vIe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ R.createElement(mIe, {
+ }), /*#__PURE__*/ R.createElement(CIe, {
cx: n.cx,
cy: n.cy,
startAngle: n.startAngle,
endAngle: n.endAngle,
innerRadius: n.innerRadius,
outerRadius: n.outerRadius
- }), /*#__PURE__*/ R.createElement(C4, O4({}, i, { ref: t })));
+ }), /*#__PURE__*/ R.createElement(S4, D4({}, i, { ref: t })));
});
//#endregion
//#region node_modules/recharts/es6/chart/RadarChart.js
-function M4(e, t) {
+function j4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67963,30 +68214,30 @@ function M4(e, t) {
}
return n;
}
-function N4(e) {
+function M4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? M4(Object(n), !0).forEach(function(t) {
- SIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M4(Object(n)).forEach(function(t) {
+ t % 2 ? j4(Object(n), !0).forEach(function(t) {
+ jIe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : j4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function SIe(e, t, n) {
- return (t = CIe(t)) in e ? Object.defineProperty(e, t, {
+function jIe(e, t, n) {
+ return (t = MIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function CIe(e) {
- var t = wIe(e, "string");
+function MIe(e) {
+ var t = NIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function wIe(e, t) {
+function NIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67996,31 +68247,31 @@ function wIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var TIe = ["axis"], EIe = N4(N4({}, A4), {}, {
+var PIe = ["axis"], FIe = M4(M4({}, k4), {}, {
layout: "centric",
startAngle: 90,
endAngle: -270
-}), DIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = wR(e, EIe);
- return /*#__PURE__*/ R.createElement(j4, {
+}), IIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = TR(e, FIe);
+ return /*#__PURE__*/ R.createElement(A4, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: TIe,
- tooltipPayloadSearcher: KZ,
+ validateTooltipEventTypes: PIe,
+ tooltipPayloadSearcher: GZ,
categoricalChartProps: n,
ref: t
});
-}), OIe = ["axis"], kIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(E4, {
+}), LIe = ["axis"], RIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(T4, {
chartName: "AreaChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: OIe,
- tooltipPayloadSearcher: KZ,
+ validateTooltipEventTypes: LIe,
+ tooltipPayloadSearcher: GZ,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/chart/RadialBarChart.js
-function P4(e, t) {
+function N4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -68030,30 +68281,30 @@ function P4(e, t) {
}
return n;
}
-function F4(e) {
+function P4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? P4(Object(n), !0).forEach(function(t) {
- AIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P4(Object(n)).forEach(function(t) {
+ t % 2 ? N4(Object(n), !0).forEach(function(t) {
+ zIe(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 AIe(e, t, n) {
- return (t = jIe(t)) in e ? Object.defineProperty(e, t, {
+function zIe(e, t, n) {
+ return (t = BIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function jIe(e) {
- var t = MIe(e, "string");
+function BIe(e) {
+ var t = VIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function MIe(e, t) {
+function VIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68063,59 +68314,59 @@ function MIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var NIe = ["axis", "item"], PIe = F4(F4({}, A4), {}, {
+var HIe = ["axis", "item"], UIe = P4(P4({}, k4), {}, {
layout: "radial",
startAngle: 0,
endAngle: 360
-}), FIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = wR(e, PIe);
- return /*#__PURE__*/ R.createElement(j4, {
+}), WIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = TR(e, UIe);
+ return /*#__PURE__*/ R.createElement(A4, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: NIe,
- tooltipPayloadSearcher: KZ,
+ validateTooltipEventTypes: HIe,
+ tooltipPayloadSearcher: GZ,
categoricalChartProps: n,
ref: t
});
});
//#endregion
//#region src/react/charts/cn.ts
-function I4(...e) {
+function F4(...e) {
return Pi(Mu(e));
}
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-chart.tsx
-var L4 = {
+var I4 = {
light: "",
dark: ".dark"
-}, R4 = Object.keys(L4);
-function IIe(e) {
- for (let [t, n] of Object.entries(e)) if (n.colors && !R4.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${R4.join(", ")}). Received empty object or invalid keys.`);
+}, L4 = Object.keys(I4);
+function GIe(e) {
+ for (let [t, n] of Object.entries(e)) if (n.colors && !L4.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${L4.join(", ")}). Received empty object or invalid keys.`);
}
-var z4 = R.createContext(null);
-function B4() {
- let e = R.useContext(z4);
+var R4 = R.createContext(null);
+function z4() {
+ let e = R.useContext(R4);
if (!e) throw Error("useChart must be used within a <ChartContainer />");
return e;
}
-function V4({ id: e, config: t, initialDimension: n = {
+function B4({ id: e, config: t, initialDimension: n = {
width: 320,
height: 200
}, className: r, children: i, footer: a, ...o }) {
let s = R.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
- return IIe(t), /* @__PURE__ */ (0, z.jsx)(z4.Provider, {
+ return GIe(t), /* @__PURE__ */ (0, z.jsx)(R4.Provider, {
value: { config: t },
children: /* @__PURE__ */ (0, z.jsxs)("div", {
"data-slot": "chart",
"data-chart": c,
- className: I4("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),
+ className: F4("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),
...o,
children: [
- /* @__PURE__ */ (0, z.jsx)(U4, {
+ /* @__PURE__ */ (0, z.jsx)(H4, {
id: c,
config: t
}),
- /* @__PURE__ */ (0, z.jsx)(tH, {
+ /* @__PURE__ */ (0, z.jsx)(cH, {
className: "min-h-0 w-full flex-1",
initialDimension: n,
children: i
@@ -68125,7 +68376,7 @@ function V4({ id: e, config: t, initialDimension: n = {
})
});
}
-function H4({ isLoading: e }) {
+function V4({ isLoading: e }) {
return e ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "pointer-events-none absolute inset-0 z-20 flex items-center justify-center",
children: /* @__PURE__ */ (0, z.jsxs)("div", {
@@ -68134,7 +68385,7 @@ function H4({ isLoading: e }) {
})
}) : null;
}
-function LIe(e, t) {
+function KIe(e, t) {
let n = e.length;
if (n >= t) return e.slice(0, t);
let r = [], i = Math.floor(t / n), a = t % n;
@@ -68144,46 +68395,46 @@ function LIe(e, t) {
}
return r;
}
-var U4 = ({ id: e, config: t }) => {
+var H4 = ({ id: e, config: t }) => {
let n = Object.entries(t).filter(([, e]) => e.colors);
if (!n.length) return null;
let r = (e) => n.flatMap(([t, n]) => {
let r = n.colors?.[e];
- return !r || !Array.isArray(r) || r.length === 0 ? [] : LIe(r, G4(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
- }).filter(Boolean).join("\n"), i = Object.entries(L4).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
+ return !r || !Array.isArray(r) || r.length === 0 ? [] : KIe(r, W4(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
+ }).filter(Boolean).join("\n"), i = Object.entries(I4).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
return /* @__PURE__ */ (0, z.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });
};
-function W4(e, t, n) {
+function U4(e, t, n) {
if (typeof t != "object" || !t) return;
let r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0, i = n;
return n in t && typeof t[n] == "string" ? i = t[n] : r && n in r && typeof r[n] == "string" && (i = r[n]), i in e ? e[i] : e[n];
}
-function G4(e) {
+function W4(e) {
if (!e.colors) return 1;
- let t = R4.map((t) => e.colors?.[t]?.length ?? 0);
+ let t = L4.map((t) => e.colors?.[t]?.length ?? 0);
return Math.max(...t, 1);
}
-var RIe = (e = 10, t = 0, n = 70) => {
+var qIe = (e = 10, t = 0, n = 70) => {
let r = n - t;
return Array.from({ length: e }, () => ({ loading: Math.floor(Math.random() * r) + t }));
-}, zIe = {
+}, JIe = {
sm: "rounded-sm",
md: "rounded-md",
lg: "rounded-lg",
xl: "rounded-xl"
-}, BIe = {
+}, YIe = {
default: "bg-background",
"frosted-glass": "bg-background/70 backdrop-blur-sm"
};
-function K4({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {
- let { config: h } = B4(), g = R.useMemo(() => {
+function G4({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {
+ let { config: h } = z4(), g = R.useMemo(() => {
if (i || !t?.length) return null;
- let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = W4(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;
+ let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = U4(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;
return s ? /* @__PURE__ */ (0, z.jsx)("div", {
- className: I4("font-medium", c),
+ className: F4("font-medium", c),
children: s(a, t)
}) : a ? /* @__PURE__ */ (0, z.jsx)("div", {
- className: I4("font-medium", c),
+ className: F4("font-medium", c),
children: a
}) : null;
}, [
@@ -68198,23 +68449,23 @@ function K4({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
if (!e || !t?.length) return /* @__PURE__ */ (0, z.jsx)("span", { className: "p-4" });
let _ = t.length === 1 && r !== "dot";
return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: I4("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", zIe[p], BIe[m], n),
+ className: F4("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", JIe[p], YIe[m], n),
children: [_ ? null : g, /* @__PURE__ */ (0, z.jsx)("div", {
className: "grid gap-1.5",
children: t.filter((e) => e.type !== "none").map((e, t) => {
- let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = W4(h, e, n), o = i ? G4(i) : 1;
+ let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = U4(h, e, n), o = i ? W4(i) : 1;
return /* @__PURE__ */ (0, z.jsx)("div", {
- className: I4("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),
+ className: F4("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),
children: l && e?.value !== void 0 && e.name ? l(e.value, e.name, e, t, e.payload) : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [i?.icon ? /* @__PURE__ */ (0, z.jsx)(i.icon, {}) : !a && /* @__PURE__ */ (0, z.jsx)("div", {
- className: I4("shrink-0 rounded-[2px]", {
+ className: F4("shrink-0 rounded-[2px]", {
"h-2.5 w-2.5": r === "dot",
"w-1": r === "line",
"w-0 border-[1.5px] border-dashed bg-transparent!": r === "dashed",
"my-0.5": _ && r === "dashed"
}),
- style: VIe(n, o)
+ style: XIe(n, o)
}), /* @__PURE__ */ (0, z.jsxs)("div", {
- className: I4("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
+ className: F4("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "grid gap-1.5",
children: [_ ? g : null, /* @__PURE__ */ (0, z.jsx)("span", {
@@ -68231,27 +68482,27 @@ function K4({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
})]
});
}
-function VIe(e, t) {
+function XIe(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 q4 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, z.jsx)(ADe, {
+var K4 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, z.jsx)(zDe, {
animationDuration: e,
...t
});
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-legend.tsx
-function J4({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {
- let { config: u } = B4();
+function q4({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {
+ let { config: u } = z4();
return r?.length ? /* @__PURE__ */ (0, z.jsx)("div", {
- className: I4("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),
+ className: F4("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),
children: r.filter((e) => e.type !== "none").map((e) => {
- let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = W4(u, e, r), a = o === null || o === r, d = i ? G4(i) : 1;
+ let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = U4(u, e, r), a = o === null || o === r, d = i ? W4(i) : 1;
return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: I4("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),
+ className: F4("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),
onClick: () => {
c && s?.(o === r ? null : r);
},
- children: [i?.icon && !t ? /* @__PURE__ */ (0, z.jsx)(i.icon, {}) : /* @__PURE__ */ (0, z.jsx)(HIe, {
+ children: [i?.icon && !t ? /* @__PURE__ */ (0, z.jsx)(i.icon, {}) : /* @__PURE__ */ (0, z.jsx)(ZIe, {
variant: l,
dataKey: r,
colorsCount: d
@@ -68260,8 +68511,8 @@ function J4({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
})
}) : null;
}
-function HIe({ variant: e, dataKey: t, colorsCount: n }) {
- let r = UIe(t, n), i = WIe(t, n);
+function ZIe({ variant: e, dataKey: t, colorsCount: n }) {
+ let r = QIe(t, n), i = $Ie(t, n);
switch (e) {
case "square": return /* @__PURE__ */ (0, z.jsx)("div", {
className: "h-2 w-2 shrink-0",
@@ -68293,10 +68544,10 @@ function HIe({ variant: e, dataKey: t, colorsCount: n }) {
});
}
}
-function UIe(e, t) {
+function QIe(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 WIe(e, t) {
+function $Ie(e, t) {
let n = {
WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
WebkitMaskComposite: "xor",
@@ -68311,12 +68562,12 @@ function WIe(e, t) {
...n
};
}
-var Y4 = HU, X4 = () => null, Z4 = {
+var J4 = HU, Y4 = () => null, X4 = {
stiffness: 300,
damping: 35,
mass: .8
};
-function GIe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
+function eLe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
let i = R.useRef(null), [a, o] = R.useState(!1), s = (0, R.useCallback)((e) => !n.current || t <= 1 ? 0 : Math.round(e / n.current.getBoundingClientRect().width * (t - 1)), [t, n]), c = (0, R.useCallback)((t, n) => {
t.preventDefault(), t.target.setPointerCapture(t.pointerId), i.current = {
type: n,
@@ -68362,7 +68613,7 @@ function GIe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
])
};
}
-function KIe({ 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 tLe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {
let x = R.useRef(null), S = R.useMemo(() => n ?? Object.keys(t), [n, t]), C = e.length, w = R.useId().replace(/:/g, ""), T = d !== void 0 && f !== void 0, [E, D] = R.useState(() => ({
startIndex: Math.max(0, Math.min(p, C - 1)),
endIndex: Math.max(0, Math.min(m ?? C - 1, C - 1))
@@ -68396,7 +68647,7 @@ function KIe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
startIndex: n,
endIndex: r
};
- }, [C, v]), { isDragging: A, bind: j } = GIe({
+ }, [C, v]), { isDragging: A, bind: j } = eLe({
range: E,
totalPoints: C,
containerRef: x,
@@ -68421,16 +68672,16 @@ function KIe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
f,
A
]);
- let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, P = C > 1 ? M.endIndex / (C - 1) * 100 : 100, ee = OF(N), F = OF(P);
+ let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, P = C > 1 ? M.endIndex / (C - 1) * 100 : 100, ee = kF(N), F = kF(P);
ee.get() !== N && ee.set(N), F.get() !== P && F.set(P);
- let I = MF(ee, Z4), te = MF(F, Z4), ne = AF(I, (e) => `${e}%`), re = AF(te, (e) => `${e}%`), ie = AF(I, (e) => `${e}%`), ae = AF(te, (e) => `${Math.max(0, 100 - e)}%`), oe = OF(`${Math.max(0, P - N)}%`), se = (0, R.useCallback)(() => {
+ let I = NF(ee, X4), te = NF(F, X4), ne = jF(I, (e) => `${e}%`), re = jF(te, (e) => `${e}%`), ie = jF(I, (e) => `${e}%`), ae = jF(te, (e) => `${Math.max(0, 100 - e)}%`), oe = kF(`${Math.max(0, P - N)}%`), se = (0, R.useCallback)(() => {
oe.set(`${Math.max(0, te.get() - I.get())}%`);
}, [
I,
te,
oe
]);
- DF(I, "change", se), DF(te, "change", se);
+ OF(I, "change", se), OF(te, "change", se);
let ce = (0, R.useCallback)((t) => {
if (!r) return String(t);
let n = e[t]?.[r];
@@ -68443,16 +68694,16 @@ function KIe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
return C === 0 ? null : /* @__PURE__ */ (0, z.jsxs)("div", {
ref: x,
"data-chart": b ? void 0 : w,
- className: I4("group relative select-none", o),
+ className: F4("group relative select-none", o),
style: { height: a },
children: [
- !b && /* @__PURE__ */ (0, z.jsx)(U4, {
+ !b && /* @__PURE__ */ (0, z.jsx)(H4, {
id: w,
config: t
}),
/* @__PURE__ */ (0, z.jsx)("div", {
className: "absolute inset-0 overflow-hidden rounded-md",
- children: /* @__PURE__ */ (0, z.jsx)(qIe, {
+ children: /* @__PURE__ */ (0, z.jsx)(nLe, {
data: e,
keys: S,
chartConfig: t,
@@ -68465,15 +68716,15 @@ function KIe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
barRadius: u
})
}),
- /* @__PURE__ */ (0, z.jsx)(NF.div, {
+ /* @__PURE__ */ (0, z.jsx)(PF.div, {
className: "bg-background/70 pointer-events-none absolute inset-y-0 left-0 rounded-l-md backdrop-blur-[2px]",
style: { width: ie }
}),
- /* @__PURE__ */ (0, z.jsx)(NF.div, {
+ /* @__PURE__ */ (0, z.jsx)(PF.div, {
className: "bg-background/70 pointer-events-none absolute inset-y-0 right-0 rounded-r-md backdrop-blur-[2px]",
style: { width: ae }
}),
- /* @__PURE__ */ (0, z.jsx)(NF.div, {
+ /* @__PURE__ */ (0, z.jsx)(PF.div, {
className: "absolute inset-y-0 cursor-grab touch-none rounded-sm border active:cursor-grabbing",
style: {
left: ne,
@@ -68481,13 +68732,13 @@ function KIe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
},
...j("middle")
}),
- /* @__PURE__ */ (0, z.jsx)(Q4, {
+ /* @__PURE__ */ (0, z.jsx)(Z4, {
side: "left",
position: ne,
label: y ? ce(M.startIndex) : void 0,
bind: j("left")
}),
- /* @__PURE__ */ (0, z.jsx)(Q4, {
+ /* @__PURE__ */ (0, z.jsx)(Z4, {
side: "right",
position: re,
label: y ? ce(M.endIndex) : void 0,
@@ -68496,16 +68747,16 @@ function KIe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
]
});
}
-function Q4({ side: e, position: t, label: n, bind: r }) {
+function Z4({ side: e, position: t, label: n, bind: r }) {
let i = e === "left";
- return /* @__PURE__ */ (0, z.jsxs)(NF.div, {
+ return /* @__PURE__ */ (0, z.jsxs)(PF.div, {
className: "absolute inset-y-0 z-10",
style: { left: t },
children: [/* @__PURE__ */ (0, z.jsx)("div", {
- className: I4("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),
+ className: F4("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),
...r,
children: /* @__PURE__ */ (0, z.jsx)("div", {
- className: I4("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),
+ className: F4("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),
children: /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-[2px]",
children: [
@@ -68516,15 +68767,15 @@ function Q4({ side: e, position: t, label: n, bind: r }) {
})
})
}), n && /* @__PURE__ */ (0, z.jsx)("div", {
- className: I4("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),
+ className: F4("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),
children: n
})]
});
}
-function qIe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
+function nLe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
let u = R.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({
dataKey: e,
- colorsCount: G4(t)
+ colorsCount: W4(t)
})), [n, t]), d = s === "dashed" || s === "animated-dashed" ? "4 4" : void 0, f = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [r === "area" && /* @__PURE__ */ (0, z.jsxs)("linearGradient", {
id: `${a}-zm-vertical-fade`,
x1: "0",
@@ -68578,10 +68829,10 @@ function qIe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
})] })] }, e);
})] });
- if (r === "line") return /* @__PURE__ */ (0, z.jsx)(tH, {
+ if (r === "line") return /* @__PURE__ */ (0, z.jsx)(cH, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, z.jsxs)(fIe, {
+ children: /* @__PURE__ */ (0, z.jsxs)(xIe, {
data: e,
margin: {
top: 4,
@@ -68589,7 +68840,7 @@ function qIe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, z.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(G0, {
+ children: [/* @__PURE__ */ (0, z.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(W0, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -68605,10 +68856,10 @@ function qIe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
});
if (r === "bar") {
let n = l ?? 3;
- return /* @__PURE__ */ (0, z.jsx)(tH, {
+ return /* @__PURE__ */ (0, z.jsx)(cH, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, z.jsxs)(D4, {
+ children: /* @__PURE__ */ (0, z.jsxs)(E4, {
data: e,
margin: {
top: 2,
@@ -68618,7 +68869,7 @@ function qIe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
},
barGap: 2,
barSize: 14,
- children: [/* @__PURE__ */ (0, z.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(y2, {
+ children: [/* @__PURE__ */ (0, z.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(v2, {
dataKey: e,
fill: `url(#${a}-zm-${e})`,
fillOpacity: .35,
@@ -68634,10 +68885,10 @@ function qIe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
- return /* @__PURE__ */ (0, z.jsx)(tH, {
+ return /* @__PURE__ */ (0, z.jsx)(cH, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, z.jsxs)(kIe, {
+ children: /* @__PURE__ */ (0, z.jsxs)(RIe, {
data: e,
margin: {
top: 4,
@@ -68645,7 +68896,7 @@ function qIe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, z.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(o2, {
+ children: [/* @__PURE__ */ (0, z.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(a2, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -68663,7 +68914,7 @@ function qIe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
-function JIe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
+function rLe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
let [r, i] = R.useState({
startIndex: t,
endIndex: n ?? Math.max(0, e.length - 1)
@@ -68687,7 +68938,7 @@ function JIe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
}
};
}
-var YIe = {
+var iLe = {
dots: ({ id: e }) => /* @__PURE__ */ (0, z.jsx)("pattern", {
id: e,
x: "0",
@@ -68859,9 +69110,9 @@ var YIe = {
})
})
};
-function $4({ variant: e }) {
- let t = (0, R.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = YIe[e];
- return /* @__PURE__ */ (0, z.jsxs)(RZ, {
+function Q4({ variant: e }) {
+ let t = (0, R.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = iLe[e];
+ return /* @__PURE__ */ (0, z.jsxs)(LZ, {
zIndex: -1,
children: [/* @__PURE__ */ (0, z.jsxs)("defs", { children: [
/* @__PURE__ */ (0, z.jsx)(a, { id: n }),
@@ -68891,20 +69142,20 @@ function $4({ variant: e }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx
-var e3 = 2, XIe = "loading", ZIe = 2e3, QIe = "evil-stacked", $Ie = .5, eLe = .05, tLe = [
+var $4 = 2, aLe = "loading", oLe = 2e3, sLe = "evil-stacked", cLe = .5, lLe = .05, uLe = [
0,
.7,
.5,
1
-], t3 = (0, R.createContext)(null);
-function n3() {
- let e = (0, R.use)(t3);
+], e3 = (0, R.createContext)(null);
+function t3() {
+ let e = (0, R.use)(e3);
if (!e) throw Error("Bar chart parts (<Bar />, <XAxis />, …) must be used within <EvilBarChart />");
return e;
}
-function r3({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = e3, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {
- let _ = (0, R.useId)().replace(/:/g, ""), [v] = (0, R.useState)(() => Date.now()), [y, b] = (0, R.useState)(f), [x, S] = (0, R.useState)(!1), { loadingData: C, onShimmerExit: w } = bLe(m, h), { visibleData: T, brushProps: E } = JIe({ data: t }), D = (0, R.useMemo)(() => {
- let e = R.Children.toArray(n), t = e.find((e) => (0, R.isValidElement)(e) && e.type === X4), r = (0, R.isValidElement)(t) ? t.props : {};
+function n3({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = $4, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {
+ let _ = (0, R.useId)().replace(/:/g, ""), [v] = (0, R.useState)(() => Date.now()), [y, b] = (0, R.useState)(f), [x, S] = (0, R.useState)(!1), { loadingData: C, onShimmerExit: w } = kLe(m, h), { visibleData: T, brushProps: E } = rLe({ data: t }), D = (0, R.useMemo)(() => {
+ let e = R.Children.toArray(n), t = e.find((e) => (0, R.isValidElement)(e) && e.type === Y4), r = (0, R.isValidElement)(t) ? t.props : {};
return {
slot: {
present: (0, R.isValidElement)(t),
@@ -68912,7 +69163,7 @@ function r3({ config: e, data: t, children: n, className: r, chartProps: i, stac
formatLabel: r.formatLabel,
onChange: r.onChange
},
- chartChildren: e.filter((e) => !((0, R.isValidElement)(e) && e.type === X4))
+ chartChildren: e.filter((e) => !((0, R.isValidElement)(e) && e.type === Y4))
};
}, [n]), O = D.slot.present, k = a === "stacked" || a === "percent", A = o === "horizontal", j = O && !m ? T : t, M = (0, R.useCallback)((e) => {
b(e), p?.(e);
@@ -68941,12 +69192,12 @@ function r3({ config: e, data: t, children: n, className: r, chartProps: i, stac
M,
x
]);
- return /* @__PURE__ */ (0, z.jsx)(t3, {
+ return /* @__PURE__ */ (0, z.jsx)(e3, {
value: N,
- children: /* @__PURE__ */ (0, z.jsxs)(V4, {
+ children: /* @__PURE__ */ (0, z.jsxs)(B4, {
className: r,
config: e,
- footer: O && !m && /* @__PURE__ */ (0, z.jsx)(KIe, {
+ footer: O && !m && /* @__PURE__ */ (0, z.jsx)(tLe, {
data: t,
chartConfig: e,
xDataKey: g,
@@ -68962,7 +69213,7 @@ function r3({ config: e, data: t, children: n, className: r, chartProps: i, stac
E.onChange(e), D.slot.onChange?.(e);
}
}),
- children: [/* @__PURE__ */ (0, z.jsx)(H4, { isLoading: m }), /* @__PURE__ */ (0, z.jsxs)(D4, {
+ children: [/* @__PURE__ */ (0, z.jsx)(V4, { isLoading: m }), /* @__PURE__ */ (0, z.jsxs)(E4, {
id: _,
accessibilityLayer: !0,
layout: A ? "vertical" : "horizontal",
@@ -68974,10 +69225,10 @@ function r3({ config: e, data: t, children: n, className: r, chartProps: i, stac
onMouseLeave: () => S(!1),
...i,
children: [
- d && /* @__PURE__ */ (0, z.jsx)($4, { variant: d }),
- /* @__PURE__ */ (0, z.jsx)(d0, { color: "white" }),
+ d && /* @__PURE__ */ (0, z.jsx)(Q4, { variant: d }),
+ /* @__PURE__ */ (0, z.jsx)(u0, { color: "white" }),
D.chartChildren,
- m && /* @__PURE__ */ (0, z.jsx)(xLe, {
+ m && /* @__PURE__ */ (0, z.jsx)(ALe, {
chartId: _,
onShimmerExit: w
})
@@ -68986,8 +69237,8 @@ function r3({ config: e, data: t, children: n, className: r, chartProps: i, stac
})
});
}
-function nLe({ 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 } = n3(), b = (0, R.useId)().replace(/:/g, ""), x = _pe();
+function dLe({ 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 } = t3(), b = (0, R.useId)().replace(/:/g, ""), x = gpe();
if (f) return null;
let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {
id: b,
@@ -69007,65 +69258,65 @@ function nLe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
i && v(C ? null : e);
}
};
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(y2, {
+ return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(v2, {
dataKey: e,
- stackId: u ? QIe : void 0,
+ stackId: u ? sLe : void 0,
fill: `url(#${b}-colors-${e})`,
radius: S,
isAnimationActive: !1,
style: i || a ? { cursor: "pointer" } : void 0,
- shape: (e) => /* @__PURE__ */ (0, z.jsx)(i3, {
+ shape: (e) => /* @__PURE__ */ (0, z.jsx)(r3, {
...e,
...T,
animationType: w
}),
- activeBar: (e) => /* @__PURE__ */ (0, z.jsx)(i3, {
+ activeBar: (e) => /* @__PURE__ */ (0, z.jsx)(r3, {
...e,
...T,
animationType: "none"
}),
...c
}), /* @__PURE__ */ (0, z.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, z.jsx)(dLe, {
+ /* @__PURE__ */ (0, z.jsx)(bLe, {
id: b,
dataKey: e,
config: l
}),
- t === "hatched" && /* @__PURE__ */ (0, z.jsx)(fLe, {
+ t === "hatched" && /* @__PURE__ */ (0, z.jsx)(xLe, {
id: b,
dataKey: e
}),
- t === "duotone" && /* @__PURE__ */ (0, z.jsx)(mLe, {
+ t === "duotone" && /* @__PURE__ */ (0, z.jsx)(CLe, {
id: b,
dataKey: e,
config: l
}),
- t === "duotone-reverse" && /* @__PURE__ */ (0, z.jsx)(hLe, {
+ t === "duotone-reverse" && /* @__PURE__ */ (0, z.jsx)(wLe, {
id: b,
dataKey: e,
config: l
}),
- t === "gradient" && /* @__PURE__ */ (0, z.jsx)(gLe, {
+ t === "gradient" && /* @__PURE__ */ (0, z.jsx)(TLe, {
id: b,
dataKey: e
}),
- t === "stripped" && /* @__PURE__ */ (0, z.jsx)(_Le, {
+ t === "stripped" && /* @__PURE__ */ (0, z.jsx)(ELe, {
id: b,
dataKey: e
}),
- s && /* @__PURE__ */ (0, z.jsx)(pLe, {
+ s && /* @__PURE__ */ (0, z.jsx)(SLe, {
id: b,
dataKey: e
}),
- o && /* @__PURE__ */ (0, z.jsx)(vLe, {
+ o && /* @__PURE__ */ (0, z.jsx)(DLe, {
id: b,
dataKey: e
})
] })] });
}
-function rLe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
- let { isLoading: o, isHorizontal: s } = n3();
- return o ? null : /* @__PURE__ */ (0, z.jsx)(D2, {
+function fLe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
+ let { isLoading: o, isHorizontal: s } = t3();
+ return o ? null : /* @__PURE__ */ (0, z.jsx)(E2, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -69074,9 +69325,9 @@ function rLe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...a
});
}
-function iLe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
- let { isLoading: s, isHorizontal: c } = n3();
- return s ? null : /* @__PURE__ */ (0, z.jsx)(M2, {
+function pLe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
+ let { isLoading: s, isHorizontal: c } = t3();
+ return s ? null : /* @__PURE__ */ (0, z.jsx)(j2, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -69086,33 +69337,33 @@ function iLe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...o
});
}
-function aLe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
- let { isHorizontal: i } = n3();
- return /* @__PURE__ */ (0, z.jsx)(O0, {
+function mLe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
+ let { isHorizontal: i } = t3();
+ return /* @__PURE__ */ (0, z.jsx)(D0, {
strokeDasharray: e,
vertical: t ?? i,
horizontal: n ?? !i,
...r
});
}
-function oLe({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, selectedDataKey: i } = n3();
- return r ? null : /* @__PURE__ */ (0, z.jsx)(q4, {
+function hLe({ variant: e, roundness: t, defaultIndex: n }) {
+ let { isLoading: r, selectedDataKey: i } = t3();
+ return r ? null : /* @__PURE__ */ (0, z.jsx)(K4, {
cursor: !1,
defaultIndex: n,
- content: /* @__PURE__ */ (0, z.jsx)(K4, {
+ content: /* @__PURE__ */ (0, z.jsx)(G4, {
selected: i,
roundness: t,
variant: e
})
});
}
-function sLe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
- let { selectedDataKey: i, selectDataKey: a } = n3();
- return /* @__PURE__ */ (0, z.jsx)(Y4, {
+function gLe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
+ let { selectedDataKey: i, selectDataKey: a } = t3();
+ return /* @__PURE__ */ (0, z.jsx)(J4, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, z.jsx)(J4, {
+ content: /* @__PURE__ */ (0, z.jsx)(q4, {
selected: i,
onSelectChange: a,
isClickable: r,
@@ -69120,8 +69371,8 @@ function sLe({ variant: e, align: t = "right", verticalAlign: n = "top", isClick
})
});
}
-var i3 = (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 = cLe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : lLe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = uLe({
+var r3 = (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 = _Le(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : vLe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = yLe({
isClickable: d,
selectedDataKey: _,
dataKey: o,
@@ -69158,7 +69409,7 @@ var i3 = (e) => {
children: [/* @__PURE__ */ (0, z.jsx)(IW, {
...e,
fill: "transparent"
- }), w ? /* @__PURE__ */ (0, z.jsx)(NF.g, {
+ }), w ? /* @__PURE__ */ (0, z.jsx)(PF.g, {
initial: w.initial,
animate: w.animate,
transition: w.transition,
@@ -69166,7 +69417,7 @@ var i3 = (e) => {
children: A
}) : A]
});
-}, cLe = (e, t, n, r, i) => {
+}, _Le = (e, t, n, r, i) => {
if (e === "none" || t < 0 || n <= 0) return null;
let a = n - 1, o = a / 2, s;
switch (e) {
@@ -69181,11 +69432,11 @@ var i3 = (e) => {
break;
default: s = t;
}
- let c = s * eLe * 1e3, l = $Ie * 1e3, u = c + l, d = Date.now() - i;
+ let c = s * lLe * 1e3, l = cLe * 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: tLe,
+ ease: uLe,
delay: Math.max(0, c - d) / 1e3
};
return r ? {
@@ -69199,7 +69450,7 @@ var i3 = (e) => {
transition: p,
style: { originY: 1 }
};
-}, lLe = (e, t, n) => {
+}, vLe = (e, t, n) => {
switch (e) {
case "hatched": return `url(#${t}-hatched-${n})`;
case "duotone": return `url(#${t}-duotone-${n})`;
@@ -69208,11 +69459,11 @@ var i3 = (e) => {
case "stripped": return `url(#${t}-stripped-${n})`;
default: return `url(#${t}-colors-${n})`;
}
-}, uLe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
+}, yLe = ({ 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;
-}, dLe = ({ id: e, dataKey: t, config: n }) => {
- let r = G4(n[t] ?? {});
+}, bLe = ({ id: e, dataKey: t, config: n }) => {
+ let r = W4(n[t] ?? {});
return /* @__PURE__ */ (0, z.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
@@ -69233,7 +69484,7 @@ var i3 = (e) => {
}, i);
})
});
-}, fLe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
+}, xLe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("pattern", {
id: `${e}-hatched-mask-pattern`,
x: "0",
@@ -69274,7 +69525,7 @@ var i3 = (e) => {
mask: `url(#${e}-hatched-mask-${t})`
})
})
-] }), pLe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
+] }), SLe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("pattern", {
id: `${e}-buffer-hatched-mask-pattern`,
x: "0",
@@ -69315,8 +69566,8 @@ var i3 = (e) => {
mask: `url(#${e}-buffer-hatched-mask-${t})`
})
})
-] }), mLe = ({ id: e, dataKey: t, config: n }) => {
- let r = G4(n[t] ?? {});
+] }), CLe = ({ id: e, dataKey: t, config: n }) => {
+ let r = W4(n[t] ?? {});
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("linearGradient", {
id: `${e}-duotone-mask-gradient-${t}`,
@@ -69383,8 +69634,8 @@ var i3 = (e) => {
})
})
] });
-}, hLe = ({ id: e, dataKey: t, config: n }) => {
- let r = G4(n[t] ?? {});
+}, wLe = ({ id: e, dataKey: t, config: n }) => {
+ let r = W4(n[t] ?? {});
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("linearGradient", {
id: `${e}-duotone-reverse-mask-gradient-${t}`,
@@ -69451,7 +69702,7 @@ var i3 = (e) => {
})
})
] });
-}, gLe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
+}, TLe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("linearGradient", {
id: `${e}-gradient-mask-gradient`,
x1: "0",
@@ -69488,7 +69739,7 @@ var i3 = (e) => {
mask: `url(#${e}-gradient-mask-${t})`
})
})
-] }), _Le = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
+] }), ELe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("linearGradient", {
id: `${e}-stripped-mask-gradient`,
x1: "0",
@@ -69525,7 +69776,7 @@ var i3 = (e) => {
mask: `url(#${e}-stripped-mask-${t})`
})
})
-] }), vLe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)("filter", {
+] }), DLe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)("filter", {
id: `${e}-bar-glow-${t}`,
x: "-100%",
y: "-100%",
@@ -69545,35 +69796,35 @@ var i3 = (e) => {
}),
/* @__PURE__ */ (0, z.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, z.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, z.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), yLe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
+}), OLe = (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 bLe(e, t = 12) {
+function kLe(e, t = 12) {
let [n, r] = (0, R.useState)(!1), i = (0, R.useCallback)(() => {
e && r((e) => !e);
}, [e]);
return {
- loadingData: (0, R.useMemo)(() => RIe(t, 20, 80), [t, n]),
+ loadingData: (0, R.useMemo)(() => qIe(t, 20, 80), [t, n]),
onShimmerExit: i
};
}
-var xLe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(y2, {
- dataKey: XIe,
+var ALe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(v2, {
+ dataKey: aLe,
fill: "currentColor",
fillOpacity: .15,
- radius: e3,
+ radius: $4,
isAnimationActive: !1,
legendType: "none",
style: { mask: `url(#${e}-loading-mask)` }
-}), /* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)(SLe, {
+}), /* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)(jLe, {
chartId: e,
onShimmerExit: t
-}) })] }), SLe = ({ chartId: e, onShimmerExit: t }) => {
- let n = yLe(), r = (0, R.useRef)(-1);
+}) })] }), jLe = ({ chartId: e, onShimmerExit: t }) => {
+ let n = OLe(), r = (0, R.useRef)(-1);
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsx)("linearGradient", {
id: `${e}-loading-mask-gradient`,
@@ -69596,7 +69847,7 @@ var xLe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fr
height: "1",
x: "0",
y: "0",
- children: /* @__PURE__ */ (0, z.jsx)(NF.rect, {
+ children: /* @__PURE__ */ (0, z.jsx)(PF.rect, {
y: "0",
width: "1",
height: "1",
@@ -69604,7 +69855,7 @@ var xLe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fr
initial: { x: -1 },
animate: { x: 2 },
transition: {
- duration: ZIe / 1e3,
+ duration: oLe / 1e3,
ease: "linear",
repeat: Infinity,
repeatType: "loop"
@@ -69626,11 +69877,11 @@ var xLe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fr
})
] });
};
-r3.Bar = nLe, r3.XAxis = rLe, r3.YAxis = iLe, r3.Grid = aLe, r3.Tooltip = oLe, r3.Legend = sLe, r3.Brush = X4;
+n3.Bar = dLe, n3.XAxis = fLe, n3.YAxis = pLe, n3.Grid = mLe, n3.Tooltip = hLe, n3.Legend = gLe, n3.Brush = Y4;
//#endregion
//#region src/react/charts/chart-card.tsx
-var a3 = `${Yi({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
-function o3({ title: e, figure: t, note: n }) {
+var i3 = `${Yi({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+function a3({ title: e, figure: t, note: n }) {
return /* @__PURE__ */ (0, z.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
children: [/* @__PURE__ */ (0, z.jsxs)("span", {
@@ -69648,24 +69899,24 @@ function o3({ title: e, figure: t, note: n }) {
})]
});
}
-var s3 = [
+var o3 = [
"var(--color-chart-1)",
"var(--color-chart-2)",
"var(--color-chart-3)",
"var(--color-chart-4)",
"var(--color-chart-5)",
"var(--color-chart-6)"
-], c3 = (e) => ({ light: [e] }), l3 = (e) => `s${e}`;
-function CLe(e) {
- return Object.fromEntries(e.map((e, t) => [l3(t), {
+], s3 = (e) => ({ light: [e] }), c3 = (e) => `s${e}`;
+function MLe(e) {
+ return Object.fromEntries(e.map((e, t) => [c3(t), {
label: e,
- colors: c3(s3[t % s3.length])
+ colors: s3(o3[t % o3.length])
}]));
}
//#endregion
//#region src/react/charts/chart-tip.tsx
-var u3 = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";
-function d3({ swatch: e, name: t, value: n }) {
+var l3 = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";
+function u3({ swatch: e, name: t, value: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex w-full items-center gap-2",
children: [e, /* @__PURE__ */ (0, z.jsxs)("div", {
@@ -69680,33 +69931,33 @@ function d3({ swatch: e, name: t, value: n }) {
})]
});
}
-var f3 = "size-2.5 shrink-0 rounded-xs";
-function wLe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
- let { config: o } = B4(), s = (t ?? []).filter((e) => e.type !== "none");
+var d3 = "size-2.5 shrink-0 rounded-xs";
+function NLe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
+ let { config: o } = z4(), s = (t ?? []).filter((e) => e.type !== "none");
if (!e || !s.length) return /* @__PURE__ */ (0, z.jsx)("span", { className: "p-4" });
let c = a || typeof n != "string" ? null : o[n]?.label ?? n;
return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: u3,
+ className: l3,
children: [c ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "font-medium text-foreground",
children: c
}) : null, s.map((e, t) => {
- let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = W4(o, e, a), c = i ? n[i] : e.value;
- return /* @__PURE__ */ (0, z.jsx)(d3, {
+ let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = U4(o, e, a), c = i ? n[i] : e.value;
+ return /* @__PURE__ */ (0, z.jsx)(u3, {
name: s?.label ?? e.name,
value: Number(c ?? 0),
swatch: /* @__PURE__ */ (0, z.jsx)("i", {
- className: f3,
+ className: d3,
style: { background: `var(--color-${a}-0)` }
})
}, a + t);
})]
});
}
-function p3({ nameKey: e, valueKey: t, hideLabel: n }) {
- return /* @__PURE__ */ (0, z.jsx)(q4, {
+function f3({ nameKey: e, valueKey: t, hideLabel: n }) {
+ return /* @__PURE__ */ (0, z.jsx)(K4, {
cursor: !1,
- content: /* @__PURE__ */ (0, z.jsx)(wLe, {
+ content: /* @__PURE__ */ (0, z.jsx)(NLe, {
nameKey: e,
valueKey: t,
hideLabel: n
@@ -69715,12 +69966,12 @@ function p3({ nameKey: e, valueKey: t, hideLabel: n }) {
}
//#endregion
//#region src/react/charts/bar-card.tsx
-var m3 = [0, (e) => e * 1.2], h3 = (e) => ({
+var p3 = [0, (e) => e * 1.2], m3 = (e) => ({
position: e,
className: "fill-text-secondary",
formatter: (e) => Number(e).toLocaleString()
});
-function g3({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {
+function h3({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {
let o = r.filter((e) => Number.isFinite(e.value) && e.value >= 0).map((e) => ({
name: e.name,
value: e.value
@@ -69728,53 +69979,53 @@ function g3({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vert
if (!s) return null;
let c = a === "horizontal";
return /* @__PURE__ */ (0, z.jsxs)("section", {
- className: a3,
+ className: i3,
"aria-label": e,
- children: [/* @__PURE__ */ (0, z.jsx)(o3, {
+ children: [/* @__PURE__ */ (0, z.jsx)(a3, {
title: e,
figure: s.toLocaleString(),
note: t
- }), /* @__PURE__ */ (0, z.jsxs)(r3, {
+ }), /* @__PURE__ */ (0, z.jsxs)(n3, {
data: o,
config: { value: {
label: n,
- colors: c3(i)
+ colors: s3(i)
} },
layout: a,
barRadius: 4,
className: c ? "aspect-auto h-64 flex-none text-text-secondary" : "aspect-auto h-56 flex-none text-text-secondary",
children: [
- /* @__PURE__ */ (0, z.jsx)(r3.Grid, {}),
- c ? /* @__PURE__ */ (0, z.jsx)(r3.YAxis, {
+ /* @__PURE__ */ (0, z.jsx)(n3.Grid, {}),
+ c ? /* @__PURE__ */ (0, z.jsx)(n3.YAxis, {
dataKey: "name",
interval: 0
- }) : /* @__PURE__ */ (0, z.jsx)(r3.XAxis, {
+ }) : /* @__PURE__ */ (0, z.jsx)(n3.XAxis, {
dataKey: "name",
interval: 0
}),
- c ? /* @__PURE__ */ (0, z.jsx)(r3.XAxis, {
+ c ? /* @__PURE__ */ (0, z.jsx)(n3.XAxis, {
hide: !0,
- domain: m3
- }) : /* @__PURE__ */ (0, z.jsx)(r3.YAxis, {
+ domain: p3
+ }) : /* @__PURE__ */ (0, z.jsx)(n3.YAxis, {
hide: !0,
- domain: m3
+ domain: p3
}),
- /* @__PURE__ */ (0, z.jsx)(r3.Bar, {
+ /* @__PURE__ */ (0, z.jsx)(n3.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
dataKey: "value",
- label: h3(c ? "right" : "top")
+ label: m3(c ? "right" : "top")
}
}),
- /* @__PURE__ */ (0, z.jsx)(p3, {})
+ /* @__PURE__ */ (0, z.jsx)(f3, {})
]
})]
});
}
//#endregion
//#region src/react/charts/heat.ts
-var _3 = [
+var g3 = [
"周一",
"周二",
"周三",
@@ -69782,8 +70033,8 @@ var _3 = [
"周五",
"周六",
"周日"
-], v3 = (e, t) => e ? Math.max(.12, e / t) : 0;
-function TLe(e) {
+], _3 = (e, t) => e ? Math.max(.12, e / t) : 0;
+function PLe(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;
@@ -69793,14 +70044,14 @@ function TLe(e) {
return {
cells: t.flatMap((e, t) => e.map((e, n) => ({
key: `${t}-${n}`,
- label: `${_3[t]} ${n}:00`,
+ label: `${g3[t]} ${n}:00`,
count: e,
- share: v3(e, r)
+ share: _3(e, r)
}))),
total: n.reduce((e, t) => e + t, 0)
};
}
-function ELe(e) {
+function FLe(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,
@@ -69818,7 +70069,7 @@ function ELe(e) {
key: r,
label: r,
count: s,
- share: v3(s, o)
+ share: _3(s, o)
};
});
return {
@@ -69830,7 +70081,7 @@ function ELe(e) {
}
//#endregion
//#region src/react/charts/heat-card.tsx
-var y3 = 14, b3 = 17, x3 = {
+var v3 = 14, y3 = 17, b3 = {
4: {
fill: "fill-chart-4",
dot: "bg-chart-4"
@@ -69839,42 +70090,42 @@ var y3 = 14, b3 = 17, x3 = {
fill: "fill-chart-5",
dot: "bg-chart-5"
}
-}, DLe = {
+}, ILe = {
start: "translate-x-0",
center: "-translate-x-1/2",
end: "-translate-x-full"
};
-function OLe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
+function LLe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
"aria-hidden": !0,
style: {
left: `${r}%`,
top: `${i}%`
},
- className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${u3} ${DLe[a]}`,
+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${l3} ${ILe[a]}`,
children: [/* @__PURE__ */ (0, z.jsx)("div", {
className: "font-medium text-foreground",
children: e.label
- }), /* @__PURE__ */ (0, z.jsx)(d3, {
+ }), /* @__PURE__ */ (0, z.jsx)(u3, {
name: t,
value: e.count,
- swatch: /* @__PURE__ */ (0, z.jsx)("i", { className: `${f3} ${x3[n].dot}` })
+ swatch: /* @__PURE__ */ (0, z.jsx)("i", { className: `${d3} ${b3[n].dot}` })
})]
});
}
-function S3({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {
- let [l, u] = (0, R.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * b3, m = f + a * b3, h = (e) => ({
- x: d + e % i * b3,
- y: f + Math.floor(e / i) * b3
- }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + y3 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {
+function x3({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {
+ let [l, u] = (0, R.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * y3, m = f + a * y3, h = (e) => ({
+ x: d + e % i * y3,
+ y: f + Math.floor(e / i) * y3
+ }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + v3 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {
start: _.x,
- center: _.x + y3 / 2,
- end: _.x + y3
+ center: _.x + v3 / 2,
+ end: _.x + v3
}[y] : 0;
return /* @__PURE__ */ (0, z.jsxs)("section", {
- className: a3,
+ className: i3,
children: [
- /* @__PURE__ */ (0, z.jsx)(o3, {
+ /* @__PURE__ */ (0, z.jsx)(a3, {
title: e,
figure: (g ? g.count : r).toLocaleString(),
note: g ? g.label : t.unit
@@ -69897,19 +70148,19 @@ function S3({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
"aria-label": `${e.label},${e.count} ${t.cellUnit}`,
x: r,
y: i,
- width: y3,
- height: y3,
+ width: v3,
+ height: v3,
rx: 3,
fillOpacity: e.share || 1,
opacity: l >= 0 && l !== n ? .4 : 1,
- className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${x3[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",
+ className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${b3[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",
onPointerEnter: () => u(n),
onFocus: () => u(n),
onBlur: () => u(-1)
}, e.key);
})]
})
- }), g && _ ? /* @__PURE__ */ (0, z.jsx)(OLe, {
+ }), g && _ ? /* @__PURE__ */ (0, z.jsx)(LLe, {
cell: g,
series: t.series,
tone: c,
@@ -69925,24 +70176,24 @@ function S3({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
]
});
}
-var kLe = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [_3.map((e, t) => /* @__PURE__ */ (0, z.jsx)("text", {
+var RLe = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [g3.map((e, t) => /* @__PURE__ */ (0, z.jsx)("text", {
x: 0,
- y: 18 + t * b3 + 7,
+ y: 18 + t * y3 + 7,
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
children: e
}, e)), Array.from({ length: 24 }, (e, t) => t % 2 ? null : /* @__PURE__ */ (0, z.jsx)("text", {
- x: 30 + t * b3,
+ x: 30 + t * y3,
y: 8,
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
children: t
}, t))] });
-function C3({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
- let o = TLe(e), s = ELe(e);
+function S3({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
+ let o = PLe(e), s = FLe(e);
return s.cells.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",
- children: [/* @__PURE__ */ (0, z.jsx)(S3, {
+ children: [/* @__PURE__ */ (0, z.jsx)(x3, {
title: t,
words: r,
tone: i,
@@ -69950,9 +70201,9 @@ function C3({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
total: o.total,
columns: 24,
rows: 7,
- axis: kLe,
+ axis: RLe,
footer: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
- }), /* @__PURE__ */ (0, z.jsx)(S3, {
+ }), /* @__PURE__ */ (0, z.jsx)(x3, {
title: n,
words: r,
tone: i,
@@ -69963,7 +70214,7 @@ function C3({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
footer: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { children: s.start }), /* @__PURE__ */ (0, z.jsx)("span", { children: s.end })] })
})]
}) : a ? /* @__PURE__ */ (0, z.jsxs)("section", {
- className: a3,
+ className: i3,
children: [/* @__PURE__ */ (0, z.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: t
@@ -69975,7 +70226,7 @@ function C3({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
}
//#endregion
//#region src/react/components/expandable-ranking.tsx
-function w3({ children: e, className: t = "", previewCount: n = 10 }) {
+function C3({ children: e, className: t = "", previewCount: n = 10 }) {
let r = (0, R.useId)(), i = (0, R.useRef)(null), [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(!1), l = R.Children.toArray(e), u = l.length > n;
(0, R.useLayoutEffect)(() => {
let e = i.current;
@@ -70022,14 +70273,14 @@ function w3({ children: e, className: t = "", previewCount: n = 10 }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
-var ALe = "30%", jLe = "100%", T3 = 5, E3 = 14, MLe = 5, D3 = 1500, O3 = (0, R.createContext)(null);
-function k3() {
- let e = (0, R.use)(O3);
+var zLe = "30%", BLe = "100%", w3 = 5, T3 = 14, VLe = 5, E3 = 1500, D3 = (0, R.createContext)(null);
+function O3() {
+ let e = (0, R.use)(D3);
if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");
return e;
}
-function A3({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = ALe, outerRadius: l = jLe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
- let m = (0, R.useId)().replace(/:/g, ""), [h, g] = (0, R.useState)(u), _ = zLe(f), v = ILe(o), y = (0, R.useCallback)((e, t) => {
+function k3({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = zLe, outerRadius: l = BLe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
+ let m = (0, R.useId)().replace(/:/g, ""), [h, g] = (0, R.useState)(u), _ = JLe(f), v = GLe(o), y = (0, R.useCallback)((e, t) => {
g(e), d?.(e === null ? null : {
dataKey: e,
value: t ?? 0
@@ -70056,12 +70307,12 @@ function A3({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
h,
y
]);
- return /* @__PURE__ */ (0, z.jsx)(O3, {
+ return /* @__PURE__ */ (0, z.jsx)(D3, {
value: x,
- children: /* @__PURE__ */ (0, z.jsxs)(V4, {
+ children: /* @__PURE__ */ (0, z.jsxs)(B4, {
className: i,
config: e,
- children: [/* @__PURE__ */ (0, z.jsx)(H4, { isLoading: f }), /* @__PURE__ */ (0, z.jsxs)(FIe, {
+ children: [/* @__PURE__ */ (0, z.jsx)(V4, { isLoading: f }), /* @__PURE__ */ (0, z.jsxs)(WIe, {
id: m,
data: f ? _ : b,
innerRadius: c,
@@ -70072,16 +70323,16 @@ function A3({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
cy: v.cy,
...a,
children: [
- s != null && s > 0 && /* @__PURE__ */ (0, z.jsx)(N$, {
+ s != null && s > 0 && /* @__PURE__ */ (0, z.jsx)(M$, {
type: "number",
domain: [0, s],
tick: !1,
axisLine: !1
}),
- p && /* @__PURE__ */ (0, z.jsx)($4, { variant: p }),
+ p && /* @__PURE__ */ (0, z.jsx)(Q4, { variant: p }),
r,
- f && /* @__PURE__ */ (0, z.jsx)(BLe, {}),
- /* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)(LLe, {
+ f && /* @__PURE__ */ (0, z.jsx)(YLe, {}),
+ /* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)(KLe, {
config: e,
chartId: m
}) })
@@ -70090,9 +70341,9 @@ function A3({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
})
});
}
-function NLe({ dataKey: e, cornerRadius: t = T3, barSize: n = E3, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
- let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = k3();
- return s ? null : /* @__PURE__ */ (0, z.jsx)(n0, {
+function HLe({ dataKey: e, cornerRadius: t = w3, barSize: n = T3, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
+ let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = O3();
+ return s ? null : /* @__PURE__ */ (0, z.jsx)(t0, {
dataKey: e,
cornerRadius: t,
barSize: n,
@@ -70115,12 +70366,12 @@ function NLe({ dataKey: e, cornerRadius: t = T3, barSize: n = E3, showBackground
...a
});
}
-function PLe({ variant: e, roundness: t, defaultIndex: n }) {
- let { nameKey: r, isLoading: i } = k3();
- return i ? null : /* @__PURE__ */ (0, z.jsx)(q4, {
+function ULe({ variant: e, roundness: t, defaultIndex: n }) {
+ let { nameKey: r, isLoading: i } = O3();
+ return i ? null : /* @__PURE__ */ (0, z.jsx)(K4, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, z.jsx)(K4, {
+ content: /* @__PURE__ */ (0, z.jsx)(G4, {
nameKey: r,
hideLabel: !0,
roundness: t,
@@ -70128,12 +70379,12 @@ function PLe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function FLe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = k3();
- return a ? null : /* @__PURE__ */ (0, z.jsx)(Y4, {
+function WLe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+ let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = O3();
+ return a ? null : /* @__PURE__ */ (0, z.jsx)(J4, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, z.jsx)(J4, {
+ content: /* @__PURE__ */ (0, z.jsx)(q4, {
selected: o,
onSelectChange: s,
isClickable: r,
@@ -70142,7 +70393,7 @@ function FLe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-function ILe(e) {
+function GLe(e) {
switch (e) {
case "semi": return {
startAngle: 180,
@@ -70158,8 +70409,8 @@ function ILe(e) {
};
}
}
-var LLe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, z.jsx)(z.Fragment, { children: Object.entries(e).map(([e, n]) => {
- let r = G4(n);
+var KLe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, z.jsx)(z.Fragment, { children: Object.entries(e).map(([e, n]) => {
+ let r = W4(n);
return /* @__PURE__ */ (0, z.jsx)("linearGradient", {
id: `${t}-radial-colors-${e}`,
x1: "0",
@@ -70181,29 +70432,29 @@ var LLe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, z.jsx)(z.Fragment,
})
}, `${t}-radial-colors-${e}`);
}) });
-function RLe() {
- return Array.from({ length: MLe }, (e, t) => ({
+function qLe() {
+ return Array.from({ length: VLe }, (e, t) => ({
name: `loading${t}`,
value: 40 + Math.random() * 60
}));
}
-function zLe(e) {
+function JLe(e) {
let [t, n] = (0, R.useState)(0);
return (0, R.useEffect)(() => {
if (!e) return;
let t = setInterval(() => {
n((e) => e + 1);
- }, D3);
+ }, E3);
return () => clearInterval(t);
- }, [e]), (0, R.useMemo)(() => RLe(), [t]);
+ }, [e]), (0, R.useMemo)(() => qLe(), [t]);
}
-var BLe = () => /* @__PURE__ */ (0, z.jsx)(n0, {
+var YLe = () => /* @__PURE__ */ (0, z.jsx)(t0, {
dataKey: "value",
- cornerRadius: T3,
- barSize: E3,
+ cornerRadius: w3,
+ barSize: T3,
background: !0,
isAnimationActive: !0,
- animationDuration: D3,
+ animationDuration: E3,
animationEasing: "ease-in-out",
shape: (e) => /* @__PURE__ */ (0, z.jsx)(qW, {
...e,
@@ -70211,17 +70462,17 @@ var BLe = () => /* @__PURE__ */ (0, z.jsx)(n0, {
fillOpacity: .25
})
});
-A3.RadialBar = NLe, A3.Tooltip = PLe, A3.Legend = FLe;
+k3.RadialBar = HLe, k3.Tooltip = ULe, k3.Legend = WLe;
//#endregion
//#region src/react/stats/radial-card.tsx
-var VLe = [
+var XLe = [
"bg-chart-1",
"bg-chart-2",
"bg-chart-3",
"bg-chart-4",
"bg-chart-5",
"bg-chart-6"
-], HLe = [
+], ZLe = [
"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",
@@ -70229,15 +70480,15 @@ var VLe = [
"aria-pressed:bg-chart-5/10 aria-pressed:ring-chart-5",
"aria-pressed:bg-chart-6/10 aria-pressed:ring-chart-6"
];
-function j3({ title: e, rows: t, unit: n = "个视频" }) {
+function A3({ title: e, rows: t, unit: n = "个视频" }) {
let [r, i] = (0, R.useState)(-1), [a, o] = (0, R.useState)(-1), s = t.filter((e) => Number.isFinite(e.value) && e.value >= 0);
if (!s.length) return null;
let c = a >= 0 ? a : r, l = s.reduce((e, t) => e + t.value, 0), u = s[c], d = (e) => i((t) => t === e ? -1 : e), f = s.map((e, t) => ({
- slice: l3(t),
+ slice: c3(t),
value: e.value
}));
return /* @__PURE__ */ (0, z.jsxs)("section", {
- className: a3,
+ className: i3,
children: [
/* @__PURE__ */ (0, z.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
@@ -70259,16 +70510,16 @@ function j3({ title: e, rows: t, unit: n = "个视频" }) {
role: "img",
"aria-label": e,
onPointerLeave: () => o(-1),
- children: /* @__PURE__ */ (0, z.jsxs)(A3, {
+ children: /* @__PURE__ */ (0, z.jsxs)(k3, {
data: f,
nameKey: "slice",
- config: CLe(s.map((e) => e.name)),
- max: oge(s.map((e) => e.value)),
+ config: MLe(s.map((e) => e.name)),
+ max: pge(s.map((e) => e.value)),
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
- children: [/* @__PURE__ */ (0, z.jsx)(A3.RadialBar, {
+ children: [/* @__PURE__ */ (0, z.jsx)(k3.RadialBar, {
dataKey: "value",
- barSize: sge(s.length),
+ barSize: mge(s.length),
radialBarProps: {
shape: (e) => /* @__PURE__ */ (0, z.jsx)(qW, {
...e,
@@ -70278,7 +70529,7 @@ function j3({ title: e, rows: t, unit: n = "个视频" }) {
onClick: (e, t) => d(t),
onMouseEnter: (e, t) => o(t)
}
- }), /* @__PURE__ */ (0, z.jsx)(p3, {
+ }), /* @__PURE__ */ (0, z.jsx)(f3, {
nameKey: "slice",
hideLabel: !0
})]
@@ -70294,13 +70545,13 @@ function j3({ 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 ${HLe[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 ${ZLe[t % 6]}`,
children: [
/* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, z.jsx)("i", {
"aria-hidden": !0,
- className: `size-3 shrink-0 rounded-sm ${VLe[t % 6]}`
+ className: `size-3 shrink-0 rounded-sm ${XLe[t % 6]}`
}), e.name]
}),
/* @__PURE__ */ (0, z.jsx)("b", {
@@ -70319,8 +70570,8 @@ function j3({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var ULe = 10, M3 = s3[5], WLe = s3[4], GLe = `${Yi()} flex flex-col gap-4`, KLe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", qLe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", JLe = "开始播放后,这里会显示最近的真实观看证据。", YLe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", XLe = "添加媒体文件夹后,这里会显示存储空间。";
-function N3({ term: e, value: t }) {
+var QLe = 10, j3 = o3[5], $Le = o3[4], eRe = `${Yi()} flex flex-col gap-4`, tRe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", nRe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", rRe = "开始播放后,这里会显示最近的真实观看证据。", iRe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", aRe = "添加媒体文件夹后,这里会显示存储空间。";
+function M3({ term: e, value: t }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, z.jsx)("span", {
@@ -70332,7 +70583,7 @@ function N3({ term: e, value: t }) {
})]
});
}
-function P3({ term: e, value: t, total: n }) {
+function N3({ term: e, value: t, total: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
children: [/* @__PURE__ */ (0, z.jsxs)("p", {
@@ -70341,7 +70592,7 @@ function P3({ term: e, value: t, total: n }) {
className: "tabular-nums",
children: [t.toLocaleString(), /* @__PURE__ */ (0, z.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [VI(t, n), "%"]
+ children: [HI(t, n), "%"]
})]
})]
}), /* @__PURE__ */ (0, z.jsx)(na, {
@@ -70351,7 +70602,7 @@ function P3({ term: e, value: t, total: n }) {
})]
});
}
-function F3({ term: e, figure: t, unit: n }) {
+function P3({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-64 md:pr-6 md:pb-0",
children: [
@@ -70370,28 +70621,28 @@ function F3({ term: e, figure: t, unit: n }) {
]
});
}
-function I3({ headline: e, children: t }) {
+function F3({ headline: e, children: t }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: `${GLe} md:flex-row md:gap-6`,
+ className: `${eRe} md:flex-row md:gap-6`,
children: [e, /* @__PURE__ */ (0, z.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
-function ZLe({ data: t, configurable: n, openMediaSettings: r }) {
+function oRe({ data: t, configurable: n, openMediaSettings: r }) {
return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2",
- children: [/* @__PURE__ */ (0, z.jsx)(j3, {
+ children: [/* @__PURE__ */ (0, z.jsx)(A3, {
title: "网盘与本地",
rows: t.by_loc.map((t) => ({
name: e[t.k] ?? t.k,
value: t.videos,
detail: s(t.bytes)
}))
- }), /* @__PURE__ */ (0, z.jsx)(j3, {
+ }), /* @__PURE__ */ (0, z.jsx)(A3, {
title: "媒体库",
rows: t.by_library.map((e) => ({
name: e.name,
@@ -70402,27 +70653,27 @@ function ZLe({ data: t, configurable: n, openMediaSettings: r }) {
}), /* @__PURE__ */ (0, z.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(g3, {
+ /* @__PURE__ */ (0, z.jsx)(h3, {
title: "时长",
unit: "个视频",
series: "视频",
- color: M3,
- rows: dge(t.by_length)
+ color: j3,
+ rows: vge(t.by_length)
}),
- /* @__PURE__ */ (0, z.jsx)(g3, {
+ /* @__PURE__ */ (0, z.jsx)(h3, {
title: "画质",
unit: "个视频",
series: "视频",
- color: M3,
- rows: WI(t.by_quality)
+ color: j3,
+ rows: GI(t.by_quality)
}),
- /* @__PURE__ */ (0, z.jsx)(g3, {
+ /* @__PURE__ */ (0, z.jsx)(h3, {
title: "文件类型",
unit: "个条目",
series: "条目",
- color: M3,
+ color: j3,
layout: "horizontal",
- rows: lge(t.by_medium)
+ rows: gge(t.by_medium)
})
]
})]
@@ -70440,11 +70691,11 @@ function ZLe({ data: t, configurable: n, openMediaSettings: r }) {
size: "small",
children: "添加关注"
})] }),
- children: KLe
+ children: tRe
});
}
-function QLe({ data: e }) {
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(C3, {
+function sRe({ data: e }) {
+ return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(S3, {
activity: e.play_activity,
title: "播放时间",
dailyTitle: "每日播放",
@@ -70454,40 +70705,40 @@ function QLe({ data: e }) {
cellUnit: "个作品"
},
tone: 5
- }), /* @__PURE__ */ (0, z.jsx)(g3, {
+ }), /* @__PURE__ */ (0, z.jsx)(h3, {
title: "播放次数",
unit: "个作品",
series: "作品",
- color: WLe,
- rows: pge(e.replays)
+ color: $Le,
+ rows: bge(e.replays)
})] });
}
-function $Le({ attribution: e }) {
+function cRe({ attribution: e }) {
let t = e.videos;
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col",
children: [
- /* @__PURE__ */ (0, z.jsx)(P3, {
+ /* @__PURE__ */ (0, z.jsx)(N3, {
term: "有创作者",
value: e.creator,
total: t
}),
- /* @__PURE__ */ (0, z.jsx)(P3, {
+ /* @__PURE__ */ (0, z.jsx)(N3, {
term: "有番号",
value: e.code,
total: t
}),
- /* @__PURE__ */ (0, z.jsx)(P3, {
+ /* @__PURE__ */ (0, z.jsx)(N3, {
term: "有厂牌",
value: e.studio,
total: t
}),
- /* @__PURE__ */ (0, z.jsx)(P3, {
+ /* @__PURE__ */ (0, z.jsx)(N3, {
term: "已抽帧",
value: e.thumb,
total: t
}),
- /* @__PURE__ */ (0, z.jsx)(P3, {
+ /* @__PURE__ */ (0, z.jsx)(N3, {
term: "已探测时长",
value: e.duration,
total: t
@@ -70495,7 +70746,7 @@ function $Le({ attribution: e }) {
]
});
}
-function eRe({ volume: e }) {
+function lRe({ volume: e }) {
let t = e.total, n = e.used ?? 0;
return /* @__PURE__ */ (0, z.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -70512,7 +70763,7 @@ function eRe({ volume: e }) {
className: "whitespace-nowrap tabular-nums",
children: [s(n), /* @__PURE__ */ (0, z.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [VI(n, t), "%"]
+ children: [HI(n, t), "%"]
})]
})]
}),
@@ -70534,10 +70785,10 @@ function eRe({ volume: e }) {
]
});
}
-function tRe({ volumes: e, configurable: t, openMediaSettings: n }) {
+function uRe({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "flex flex-col",
- children: e.map((e) => /* @__PURE__ */ (0, z.jsx)(eRe, { volume: e }, `${e.kind}:${e.label}`))
+ children: e.map((e) => /* @__PURE__ */ (0, z.jsx)(lRe, { volume: e }, `${e.kind}:${e.label}`))
}) : /* @__PURE__ */ (0, z.jsx)(Zi, {
shell: "plain",
icon: it,
@@ -70547,12 +70798,12 @@ function tRe({ volumes: e, configurable: t, openMediaSettings: n }) {
onClick: n,
children: "添加媒体文件夹"
}) : void 0,
- children: XLe
+ children: aRe
});
}
-function nRe({ tags: e, tagLabel: t, onTag: n }) {
- return e.length ? /* @__PURE__ */ (0, z.jsx)(w3, {
- previewCount: ULe,
+function dRe({ tags: e, tagLabel: t, onTag: n }) {
+ return e.length ? /* @__PURE__ */ (0, z.jsx)(C3, {
+ previewCount: QLe,
className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",
children: e.map((e, r) => /* @__PURE__ */ (0, z.jsx)("li", {
className: "min-w-0",
@@ -70586,14 +70837,14 @@ function nRe({ tags: e, tagLabel: t, onTag: n }) {
size: "small",
children: "补全资料"
}),
- children: qLe
+ children: nRe
});
}
-function rRe({ rows: e }) {
+function fRe({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
- let t = HI(e);
+ let t = UI(e);
return /* @__PURE__ */ (0, z.jsxs)("article", {
className: "flex flex-wrap items-center gap-x-6 gap-y-2",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
@@ -70601,14 +70852,14 @@ function rRe({ rows: e }) {
children: [/* @__PURE__ */ (0, z.jsx)("h3", {
className: "min-w-0 text-body-2-medium text-text-primary",
children: /* @__PURE__ */ (0, z.jsx)("a", {
- href: age(e),
+ href: fge(e),
"data-middle-truncate": !0,
className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
children: e.name
})
}), /* @__PURE__ */ (0, z.jsxs)("p", {
className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, z.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, z.jsx)("span", { children: ige(e) })]
+ children: [/* @__PURE__ */ (0, z.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, z.jsx)("span", { children: dge(e) })]
})]
}), /* @__PURE__ */ (0, z.jsxs)("div", {
className: "min-w-0 basis-40",
@@ -70617,7 +70868,7 @@ function rRe({ rows: e }) {
value: t
}), /* @__PURE__ */ (0, z.jsx)("small", {
className: "mt-1.5 block text-caption-1-regular text-text-secondary",
- children: `真实 ${t.toFixed(0)}% · 到达 ${UI(e).toFixed(0)}%`
+ children: `真实 ${t.toFixed(0)}% · 到达 ${WI(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
@@ -70632,10 +70883,10 @@ function rRe({ rows: e }) {
size: "small",
children: "浏览馆藏"
}),
- children: JLe
+ children: rRe
});
}
-function iRe({ sources: e, videos: t }) {
+function pRe({ sources: e, videos: t }) {
return e.length ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)("article", {
@@ -70675,11 +70926,11 @@ function iRe({ sources: e, videos: t }) {
size: "small",
children: "补全资料"
}),
- children: YLe
+ children: iRe
});
}
-function L3({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, z.jsx)(IS, {
+function I3({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
+ return /* @__PURE__ */ (0, z.jsx)(JS, {
id: e,
className: eu({
interactive: !0,
@@ -70694,31 +70945,31 @@ function L3({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
})
});
}
-function aRe(e) {
+function mRe(e) {
let t = Zn({
- queryKey: zI,
- queryFn: ({ signal: e }) => BI(e)
+ queryKey: BI,
+ queryFn: ({ signal: e }) => VI(e)
}), n = t.data;
if (!n) return /* @__PURE__ */ (0, z.jsx)($i, { children: /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "馆藏统计读取失败",
children: t.error ? U(t.error) : "未取得统计数据,请刷新页面重试。"
}) });
- let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), c = VI(n.tag_cov, n.attribution.videos);
+ let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), c = HI(n.tag_cov, n.attribution.videos);
return /* @__PURE__ */ (0, z.jsxs)($i, { children: [
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${a.toLocaleString()} 个视频 · ${s(o)}`
}),
- /* @__PURE__ */ (0, z.jsxs)(PS, {
+ /* @__PURE__ */ (0, z.jsxs)(KS, {
defaultSelectedKey: "inventory",
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, z.jsxs)(FS, {
+ /* @__PURE__ */ (0, z.jsxs)(qS, {
"aria-label": "统计视图",
className: tu,
children: [
- /* @__PURE__ */ (0, z.jsx)(L3, {
+ /* @__PURE__ */ (0, z.jsx)(I3, {
id: "inventory",
label: "馆藏视频",
icon: Ze,
@@ -70726,15 +70977,15 @@ function aRe(e) {
figure: a.toLocaleString(),
detail: s(o)
}),
- /* @__PURE__ */ (0, z.jsx)(L3, {
+ /* @__PURE__ */ (0, z.jsx)(I3, {
id: "viewing",
label: "看过",
icon: tt,
accent: 1,
figure: r.played.toLocaleString(),
- detail: rge(r.play_seconds)
+ detail: uge(r.play_seconds)
}),
- /* @__PURE__ */ (0, z.jsx)(L3, {
+ /* @__PURE__ */ (0, z.jsx)(I3, {
id: "coverage",
label: "内容标签",
icon: ft,
@@ -70742,7 +70993,7 @@ function aRe(e) {
figure: `${c}%`,
detail: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- /* @__PURE__ */ (0, z.jsx)(L3, {
+ /* @__PURE__ */ (0, z.jsx)(I3, {
id: "storage",
label: "使用空间",
icon: it,
@@ -70752,18 +71003,18 @@ function aRe(e) {
})
]
}),
- /* @__PURE__ */ (0, z.jsx)(LS, {
+ /* @__PURE__ */ (0, z.jsx)(YS, {
id: "inventory",
- children: /* @__PURE__ */ (0, z.jsx)(ZLe, {
+ children: /* @__PURE__ */ (0, z.jsx)(oRe, {
data: n,
...e
})
}),
- /* @__PURE__ */ (0, z.jsxs)(LS, {
+ /* @__PURE__ */ (0, z.jsxs)(YS, {
id: "viewing",
className: "flex flex-col gap-5",
- children: [/* @__PURE__ */ (0, z.jsx)(I3, {
- headline: /* @__PURE__ */ (0, z.jsx)(F3, {
+ children: [/* @__PURE__ */ (0, z.jsx)(F3, {
+ headline: /* @__PURE__ */ (0, z.jsx)(P3, {
term: "观看",
figure: r.played.toLocaleString(),
unit: "个作品有播放记录"
@@ -70771,62 +71022,62 @@ function aRe(e) {
children: /* @__PURE__ */ (0, z.jsxs)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(N3, {
+ /* @__PURE__ */ (0, z.jsx)(M3, {
term: "馆藏观看",
value: r.library_played
}),
- /* @__PURE__ */ (0, z.jsx)(N3, {
+ /* @__PURE__ */ (0, z.jsx)(M3, {
term: "在线直接观看",
value: r.online_played
}),
- /* @__PURE__ */ (0, z.jsx)(N3, {
+ /* @__PURE__ */ (0, z.jsx)(M3, {
term: "高潮计数",
value: r.o_total
}),
- /* @__PURE__ */ (0, z.jsx)(N3, {
+ /* @__PURE__ */ (0, z.jsx)(M3, {
term: "快进扫过",
value: r.skimmed
}),
- /* @__PURE__ */ (0, z.jsx)(N3, {
+ /* @__PURE__ */ (0, z.jsx)(M3, {
term: "喜欢",
value: r.liked
}),
- /* @__PURE__ */ (0, z.jsx)(N3, {
+ /* @__PURE__ */ (0, z.jsx)(M3, {
term: "明确不喜欢",
value: r.dislike
}),
- /* @__PURE__ */ (0, z.jsx)(N3, {
+ /* @__PURE__ */ (0, z.jsx)(M3, {
term: "看过了",
value: r.seen
}),
- /* @__PURE__ */ (0, z.jsx)(N3, {
+ /* @__PURE__ */ (0, z.jsx)(M3, {
term: "回收站",
value: r.trash
})
]
})
- }), /* @__PURE__ */ (0, z.jsx)(QLe, { data: n })]
+ }), /* @__PURE__ */ (0, z.jsx)(sRe, { data: n })]
}),
- /* @__PURE__ */ (0, z.jsx)(LS, {
+ /* @__PURE__ */ (0, z.jsx)(YS, {
id: "coverage",
- children: /* @__PURE__ */ (0, z.jsx)(I3, {
- headline: /* @__PURE__ */ (0, z.jsx)(F3, {
+ children: /* @__PURE__ */ (0, z.jsx)(F3, {
+ headline: /* @__PURE__ */ (0, z.jsx)(P3, {
term: "内容标签覆盖",
figure: `${c}%`,
unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- children: /* @__PURE__ */ (0, z.jsx)($Le, { attribution: n.attribution })
+ children: /* @__PURE__ */ (0, z.jsx)(cRe, { attribution: n.attribution })
})
}),
- /* @__PURE__ */ (0, z.jsx)(LS, {
+ /* @__PURE__ */ (0, z.jsx)(YS, {
id: "storage",
- children: /* @__PURE__ */ (0, z.jsx)(I3, {
- headline: /* @__PURE__ */ (0, z.jsx)(F3, {
+ children: /* @__PURE__ */ (0, z.jsx)(F3, {
+ headline: /* @__PURE__ */ (0, z.jsx)(P3, {
term: "使用空间",
figure: String(i.measured),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, z.jsx)(tRe, {
+ children: /* @__PURE__ */ (0, z.jsx)(uRe, {
volumes: n.storage_volumes,
...e
})
@@ -70834,51 +71085,51 @@ function aRe(e) {
})
]
}),
- /* @__PURE__ */ (0, z.jsxs)(PS, {
+ /* @__PURE__ */ (0, z.jsxs)(KS, {
defaultSelectedKey: "tags",
className: `${Yi({ padding: "none" })} flex flex-col`,
children: [
/* @__PURE__ */ (0, z.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, z.jsxs)(xk, {
+ children: /* @__PURE__ */ (0, z.jsxs)($k, {
"aria-label": "统计维度",
- className: Ck,
+ className: tA,
children: [
- /* @__PURE__ */ (0, z.jsx)(IS, {
+ /* @__PURE__ */ (0, z.jsx)(JS, {
id: "tags",
- className: wk,
+ className: nA,
children: "内容标签"
}),
- /* @__PURE__ */ (0, z.jsx)(IS, {
+ /* @__PURE__ */ (0, z.jsx)(JS, {
id: "recent",
- className: wk,
+ className: nA,
children: "最近看过"
}),
- /* @__PURE__ */ (0, z.jsx)(IS, {
+ /* @__PURE__ */ (0, z.jsx)(JS, {
id: "sources",
- className: wk,
+ className: nA,
children: "标签来源"
})
]
})
}),
- /* @__PURE__ */ (0, z.jsx)(LS, {
+ /* @__PURE__ */ (0, z.jsx)(YS, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, z.jsx)(nRe, {
+ children: /* @__PURE__ */ (0, z.jsx)(dRe, {
tags: n.top_tags,
...e
})
}),
- /* @__PURE__ */ (0, z.jsx)(LS, {
+ /* @__PURE__ */ (0, z.jsx)(YS, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, z.jsx)(rRe, { rows: n.recent })
+ children: /* @__PURE__ */ (0, z.jsx)(fRe, { rows: n.recent })
}),
- /* @__PURE__ */ (0, z.jsx)(LS, {
+ /* @__PURE__ */ (0, z.jsx)(YS, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, z.jsx)(iRe, {
+ children: /* @__PURE__ */ (0, z.jsx)(pRe, {
sources: n.tag_source,
videos: n.attribution.videos
})
@@ -70889,66 +71140,66 @@ function aRe(e) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function oRe(e, t) {
+function hRe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
//#region node_modules/d3-sankey/src/constant.js
-function R3(e) {
+function L3(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-sankey/src/sankey.js
+function R3(e, t) {
+ return B3(e.source, t.source) || e.index - t.index;
+}
function z3(e, t) {
- return V3(e.source, t.source) || e.index - t.index;
+ return B3(e.target, t.target) || e.index - t.index;
}
function B3(e, t) {
- return V3(e.target, t.target) || e.index - t.index;
-}
-function V3(e, t) {
return e.y0 - t.y0;
}
-function H3(e) {
+function V3(e) {
return e.value;
}
-function sRe(e) {
+function gRe(e) {
return e.index;
}
-function cRe(e) {
+function _Re(e) {
return e.nodes;
}
-function lRe(e) {
+function vRe(e) {
return e.links;
}
-function U3(e, t) {
+function H3(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function W3({ nodes: e }) {
+function U3({ nodes: e }) {
for (let t of e) {
let e = t.y0, n = e;
for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function uRe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = sRe, c = oRe, l, u, d = cRe, f = lRe, p = 6;
+function yRe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = gRe, c = hRe, l, u, d = _Re, f = vRe, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
links: f.apply(null, arguments)
};
- return h(e), g(e), _(e), v(e), x(e), W3(e), e;
+ return h(e), g(e), _(e), v(e), x(e), U3(e), e;
}
m.update = function(e) {
- return W3(e), e;
+ return U3(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : R3(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : L3(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : R3(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : L3(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -70956,9 +71207,9 @@ function uRe() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : R3(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : L3(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : R3(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : L3(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -70974,12 +71225,12 @@ function uRe() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = U3(n, t)), typeof i != "object" && (i = r.target = U3(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = H3(n, t)), typeof i != "object" && (i = r.target = H3(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
}
if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);
}
function g({ nodes: e }) {
- for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(mK(t.sourceLinks, H3), mK(t.targetLinks, H3)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(mK(t.sourceLinks, V3), mK(t.targetLinks, V3)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -71013,7 +71264,7 @@ function uRe() {
return o;
}
function b(e) {
- let n = dK(e, (e) => (r - t - (e.length - 1) * o) / mK(e, H3));
+ let n = dK(e, (e) => (r - t - (e.length - 1) * o) / mK(e, V3));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -71049,7 +71300,7 @@ function uRe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(V3), w(i, n);
+ l === void 0 && i.sort(B3), w(i, n);
}
}
function C(e, t, n) {
@@ -71065,7 +71316,7 @@ function uRe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(V3), w(i, n);
+ l === void 0 && i.sort(B3), w(i, n);
}
}
function w(e, n) {
@@ -71086,12 +71337,12 @@ function uRe() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(B3);
- for (let { target: { targetLinks: t } } of e) t.sort(z3);
+ for (let { source: { sourceLinks: e } } of t) e.sort(z3);
+ for (let { target: { targetLinks: t } } of e) t.sort(R3);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(B3), n.sort(z3);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(z3), n.sort(R3);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -71121,15 +71372,15 @@ function uRe() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var G3 = Math.PI, K3 = 2 * G3, q3 = 1e-6, dRe = K3 - q3;
-function J3() {
+var W3 = Math.PI, G3 = 2 * W3, K3 = 1e-6, bRe = G3 - K3;
+function q3() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function Y3() {
- return new J3();
+function J3() {
+ return new q3();
}
-J3.prototype = Y3.prototype = {
- constructor: J3,
+q3.prototype = J3.prototype = {
+ constructor: q3,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -71150,11 +71401,11 @@ J3.prototype = Y3.prototype = {
var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (i < 0) throw Error("negative radius: " + i);
if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
- else if (d > q3) {
- if (!(Math.abs(u * s - c * l) > q3) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > K3) {
+ if (!(Math.abs(u * s - c * l) > K3) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
else {
- var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((G3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > q3 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
+ var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((W3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > K3 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
}
}
},
@@ -71162,7 +71413,7 @@ J3.prototype = Y3.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) > q3 || Math.abs(this._y1 - l) > q3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % K3 + K3), d > dRe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > q3 && (this._ += "A" + n + "," + n + ",0," + +(d >= G3) + "," + 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) > K3 || Math.abs(this._y1 - l) > K3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % G3 + G3), d > bRe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > K3 && (this._ += "A" + n + "," + n + ",0," + +(d >= W3) + "," + 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";
@@ -71173,90 +71424,90 @@ J3.prototype = Y3.prototype = {
};
//#endregion
//#region node_modules/d3-shape/src/constant.js
-function X3(e) {
+function Y3(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function fRe(e) {
+function xRe(e) {
return e[0];
}
-function pRe(e) {
+function SRe(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var mRe = Array.prototype.slice;
+var CRe = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function hRe(e) {
+function wRe(e) {
return e.source;
}
-function gRe(e) {
+function TRe(e) {
return e.target;
}
-function _Re(e) {
- var t = hRe, n = gRe, r = fRe, i = pRe, a = null;
+function ERe(e) {
+ var t = wRe, n = TRe, r = xRe, i = SRe, a = null;
function o() {
- var o, s = mRe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = Y3(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
+ var o, s = CRe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = J3(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
}
return o.source = function(e) {
return arguments.length ? (t = e, o) : t;
}, o.target = function(e) {
return arguments.length ? (n = e, o) : n;
}, o.x = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : X3(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : Y3(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : X3(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : Y3(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function vRe(e, t, n, r, i) {
+function DRe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function yRe() {
- return _Re(vRe);
+function ORe() {
+ return ERe(DRe);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function bRe(e) {
+function kRe(e) {
return [e.source.x1, e.y0];
}
-function xRe(e) {
+function ARe(e) {
return [e.target.x0, e.y1];
}
-function SRe() {
- return yRe().source(bRe).target(xRe);
+function jRe() {
+ return ORe().source(kRe).target(ARe);
}
//#endregion
//#region src/react/taste/taste.ts
-var CRe = "/api/taste", Z3 = "/api/taste/refresh", wRe = "/api/taste/import", TRe = "/api/taste/source", Q3 = (e) => ["taste", e], ERe = ["taste", "refresh"], DRe = [
+var MRe = "/api/taste", X3 = "/api/taste/refresh", NRe = "/api/taste/import", PRe = "/api/taste/source", Z3 = (e) => ["taste", e], FRe = ["taste", "refresh"], IRe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], $3 = (e, t) => W(`${CRe}?window=${e}`, t), ORe = (e) => W(Z3, e);
-async function kRe(e, t) {
+], Q3 = (e, t) => W(`${MRe}?window=${e}`, t), LRe = (e) => W(X3, e);
+async function RRe(e, t) {
await J.fetchQuery({
- queryKey: Q3(e),
- queryFn: () => $3(e, t)
+ queryKey: Z3(e),
+ queryFn: () => Q3(e, t)
});
}
-var ARe = (e) => G(Z3, {
+var zRe = (e) => G(X3, {
window: e,
background: !0
-}), jRe = (e, t) => G(TRe, {
+}), BRe = (e, t) => G(PRe, {
operation: "remove",
source_key: e,
window: t
});
-async function MRe(e) {
- let t = await fetch(wRe, {
+async function VRe(e) {
+ let t = await fetch(NRe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -71274,35 +71525,35 @@ async function MRe(e) {
}
return n;
}
-var NRe = 1e4, e6 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", PRe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, FRe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function IRe(e) {
+var HRe = 1e4, $3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", URe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, WRe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function GRe(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 LRe(e) {
- let t = e.map(FRe), n = Math.max(1, ...t);
+function KRe(e) {
+ let t = e.map(WRe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var t6 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
+var e6 = (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 RRe(e) {
- let t = t6(e, 6);
+function qRe(e) {
+ let t = e6(e, 6);
return t.length < 3 ? [] : t;
}
-var n6 = {
+var t6 = {
width: 720,
height: 435
-}, r6 = {
+}, n6 = {
source: 145,
target: 545
};
-function zRe(e = []) {
+function JRe(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 = uRe().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 = yRe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
nodes: [...n.map((e) => ({
id: `source:${e}`,
name: e,
@@ -71317,7 +71568,7 @@ function zRe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), a = t.reduce((e, t) => e + t.value, 0), o = SRe();
+ }), a = t.reduce((e, t) => e + t.value, 0), o = jRe();
return {
nodes: i.nodes.map((e) => ({
id: e.id,
@@ -71347,11 +71598,11 @@ function zRe(e = []) {
total: a
};
}
-var BRe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, i6 = R.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
+var YRe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, r6 = R.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
let c = R.useId().replace(/:/g, ""), l = `url(#${r}-colors-${String(n)})`;
if (e === void 0 || t === void 0) return null;
switch (o) {
- case "border": return /* @__PURE__ */ (0, z.jsx)(o6, {
+ case "border": return /* @__PURE__ */ (0, z.jsx)(a6, {
cx: e,
cy: t,
dotId: c,
@@ -71360,7 +71611,7 @@ var BRe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, i6 = R.memo(functio
className: i,
maskId: s
});
- case "colored-border": return /* @__PURE__ */ (0, z.jsx)(s6, {
+ case "colored-border": return /* @__PURE__ */ (0, z.jsx)(o6, {
cx: e,
cy: t,
dotId: c,
@@ -71369,7 +71620,7 @@ var BRe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, i6 = R.memo(functio
className: i,
maskId: s
});
- default: return /* @__PURE__ */ (0, z.jsx)(a6, {
+ default: return /* @__PURE__ */ (0, z.jsx)(i6, {
cx: e,
cy: t,
dotId: c,
@@ -71379,7 +71630,7 @@ var BRe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, i6 = R.memo(functio
maskId: s
});
}
-}), a6 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, z.jsxs)("g", {
+}), i6 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, z.jsxs)("g", {
className: a,
mask: o ? `url(#${o})` : void 0,
children: [/* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)("clipPath", {
@@ -71399,9 +71650,9 @@ var BRe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, i6 = R.memo(functio
clipPath: `url(#dot-clip-${n})`
})]
}));
-a6.displayName = "DefaultDot";
-var o6 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, z.jsxs)("g", {
- className: I4(a, "text-background"),
+i6.displayName = "DefaultDot";
+var a6 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, z.jsxs)("g", {
+ className: F4(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
/* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)("clipPath", {
@@ -71437,9 +71688,9 @@ var o6 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
}) })
]
}));
-o6.displayName = "PrimaryBorderDot";
-var s6 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, z.jsxs)("g", {
- className: I4(a, "text-background"),
+a6.displayName = "PrimaryBorderDot";
+var o6 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, z.jsxs)("g", {
+ className: F4(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
/* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)("clipPath", {
@@ -71467,17 +71718,17 @@ var s6 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
})
]
}));
-s6.displayName = "ColoredBorderDot";
+o6.displayName = "ColoredBorderDot";
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
-var VRe = 1, HRe = .3, URe = 6, c6 = 1500, l6 = "value", u6 = (0, R.createContext)(null);
-function d6() {
- let e = (0, R.use)(u6);
+var XRe = 1, ZRe = .3, QRe = 6, s6 = 1500, c6 = "value", l6 = (0, R.createContext)(null);
+function u6() {
+ let e = (0, R.use)(l6);
if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");
return e;
}
-function f6({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {
- let u = (0, R.useId)().replace(/:/g, ""), [d, f] = (0, R.useState)(o), p = nze(c, l), m = (0, R.useCallback)((e) => {
+function d6({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {
+ let u = (0, R.useId)().replace(/:/g, ""), [d, f] = (0, R.useState)(o), p = dze(c, l), m = (0, R.useCallback)((e) => {
f(e), s?.(e);
}, [s]), h = (0, R.useMemo)(() => ({
config: e,
@@ -71490,37 +71741,37 @@ function f6({ config: e, data: t, children: n, className: r, chartProps: i, back
d,
m
]);
- return /* @__PURE__ */ (0, z.jsx)(u6, {
+ return /* @__PURE__ */ (0, z.jsx)(l6, {
value: h,
- children: /* @__PURE__ */ (0, z.jsxs)(V4, {
+ children: /* @__PURE__ */ (0, z.jsxs)(B4, {
className: r,
config: e,
- children: [/* @__PURE__ */ (0, z.jsx)(H4, { isLoading: c }), /* @__PURE__ */ (0, z.jsxs)(DIe, {
+ children: [/* @__PURE__ */ (0, z.jsx)(V4, { isLoading: c }), /* @__PURE__ */ (0, z.jsxs)(IIe, {
id: u,
data: c ? p : t,
...i,
children: [
- a && /* @__PURE__ */ (0, z.jsx)($4, { variant: a }),
+ a && /* @__PURE__ */ (0, z.jsx)(Q4, { variant: a }),
n,
- c && /* @__PURE__ */ (0, z.jsx)(rze, {})
+ c && /* @__PURE__ */ (0, z.jsx)(fze, {})
]
})]
})
});
}
-function WRe({ dataKey: e, variant: t = "filled", fillOpacity: n = HRe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
- let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = d6(), d = (0, R.useId)().replace(/:/g, "");
+function $Re({ dataKey: e, variant: t = "filled", fillOpacity: n = ZRe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
+ let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = u6(), d = (0, R.useId)().replace(/:/g, "");
if (c) return null;
let f = i && l !== null && l !== e, p = {
stroke: f ? .2 : 1,
fill: f ? .1 : 1,
dot: f ? .2 : 1
- }, m = t === "filled", { dot: h, activeDot: g } = XRe(a, d, e, p.dot);
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(E1, {
+ }, m = t === "filled", { dot: h, activeDot: g } = aze(a, d, e, p.dot);
+ return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(T1, {
dataKey: e,
stroke: `url(#${d}-radar-stroke-${e})`,
strokeOpacity: p.stroke,
- strokeWidth: VRe,
+ strokeWidth: XRe,
fill: m ? `url(#${d}-radar-fill-${e})` : "none",
fillOpacity: m ? n * p.fill : 0,
dot: h,
@@ -71533,30 +71784,30 @@ function WRe({ dataKey: e, variant: t = "filled", fillOpacity: n = HRe, isGlowin
},
...o
}), /* @__PURE__ */ (0, z.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, z.jsx)(ZRe, {
+ /* @__PURE__ */ (0, z.jsx)(oze, {
id: d,
dataKey: e,
config: s
}),
- /* @__PURE__ */ (0, z.jsx)(QRe, {
+ /* @__PURE__ */ (0, z.jsx)(sze, {
id: d,
dataKey: e,
config: s
}),
- m && /* @__PURE__ */ (0, z.jsx)($Re, {
+ m && /* @__PURE__ */ (0, z.jsx)(cze, {
id: d,
dataKey: e,
config: s
}),
- r && /* @__PURE__ */ (0, z.jsx)(eze, {
+ r && /* @__PURE__ */ (0, z.jsx)(lze, {
id: d,
dataKey: e
})
] })] });
}
-var p6 = () => null, m6 = () => null;
-function GRe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
- return /* @__PURE__ */ (0, z.jsx)(y$, {
+var f6 = () => null, p6 = () => null;
+function eze({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
+ return /* @__PURE__ */ (0, z.jsx)(v$, {
gridType: e,
stroke: t,
strokeOpacity: n,
@@ -71564,47 +71815,47 @@ function GRe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacit
...i
});
}
-function KRe({ tick: e = {
+function tze({ tick: e = {
fill: "currentColor",
fontSize: 12
}, tickLine: t = !1, ...n }) {
- let { isLoading: r } = d6();
- return r ? null : /* @__PURE__ */ (0, z.jsx)(N$, {
+ let { isLoading: r } = u6();
+ return r ? null : /* @__PURE__ */ (0, z.jsx)(M$, {
tick: e,
tickLine: t,
...n
});
}
-function qRe({ tick: e = {
+function nze({ tick: e = {
fill: "currentColor",
fontSize: 10
}, tickLine: t = !1, axisLine: n = !1, ...r }) {
- let { isLoading: i } = d6();
- return i ? null : /* @__PURE__ */ (0, z.jsx)(D$, {
+ let { isLoading: i } = u6();
+ return i ? null : /* @__PURE__ */ (0, z.jsx)(E$, {
tick: e,
tickLine: t,
axisLine: n,
...r
});
}
-function JRe({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, selectedDataKey: i } = d6();
- return r ? null : /* @__PURE__ */ (0, z.jsx)(q4, {
+function rze({ variant: e, roundness: t, defaultIndex: n }) {
+ let { isLoading: r, selectedDataKey: i } = u6();
+ return r ? null : /* @__PURE__ */ (0, z.jsx)(K4, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, z.jsx)(K4, {
+ content: /* @__PURE__ */ (0, z.jsx)(G4, {
selected: i,
roundness: t,
variant: e
})
});
}
-function YRe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { isLoading: i, selectedDataKey: a, selectDataKey: o } = d6();
- return i ? null : /* @__PURE__ */ (0, z.jsx)(Y4, {
+function ize({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+ let { isLoading: i, selectedDataKey: a, selectDataKey: o } = u6();
+ return i ? null : /* @__PURE__ */ (0, z.jsx)(J4, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, z.jsx)(J4, {
+ content: /* @__PURE__ */ (0, z.jsx)(q4, {
selected: a,
onSelectChange: o,
isClickable: r,
@@ -71612,22 +71863,22 @@ function YRe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-var XRe = (e, t, n, r) => {
+var aze = (e, t, n, r) => {
let i = !1, a = !1;
return R.Children.forEach(e, (e) => {
if ((0, R.isValidElement)(e)) {
- if (e.type === p6) {
+ if (e.type === f6) {
let { variant: a } = e.props;
- i = /* @__PURE__ */ (0, z.jsx)(i6, {
+ i = /* @__PURE__ */ (0, z.jsx)(r6, {
type: a,
dataKey: n,
chartId: t,
fillOpacity: r
});
}
- if (e.type === m6) {
+ if (e.type === p6) {
let { variant: i } = e.props;
- a = /* @__PURE__ */ (0, z.jsx)(i6, {
+ a = /* @__PURE__ */ (0, z.jsx)(r6, {
type: i,
dataKey: n,
chartId: t,
@@ -71639,7 +71890,7 @@ var XRe = (e, t, n, r) => {
dot: i,
activeDot: a
};
-}, h6 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("stop", {
+}, m6 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("stop", {
offset: "0%",
stopColor: `var(--color-${e}-0)`,
stopOpacity: n?.[0]
@@ -71654,46 +71905,46 @@ var XRe = (e, t, n, r) => {
stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,
stopOpacity: n?.[i]
}, a);
-}) }), ZRe = ({ id: e, dataKey: t, config: n }) => {
- let r = G4(n[t] ?? {});
+}) }), oze = ({ id: e, dataKey: t, config: n }) => {
+ let r = W4(n[t] ?? {});
return /* @__PURE__ */ (0, z.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "0",
- children: /* @__PURE__ */ (0, z.jsx)(h6, {
+ children: /* @__PURE__ */ (0, z.jsx)(m6, {
dataKey: t,
colorsCount: r
})
});
-}, QRe = ({ id: e, dataKey: t, config: n }) => {
- let r = G4(n[t] ?? {});
+}, sze = ({ id: e, dataKey: t, config: n }) => {
+ let r = W4(n[t] ?? {});
return /* @__PURE__ */ (0, z.jsx)("linearGradient", {
id: `${e}-radar-stroke-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "1",
- children: /* @__PURE__ */ (0, z.jsx)(h6, {
+ children: /* @__PURE__ */ (0, z.jsx)(m6, {
dataKey: t,
colorsCount: r
})
});
-}, $Re = ({ id: e, dataKey: t, config: n }) => {
- let r = G4(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
+}, cze = ({ id: e, dataKey: t, config: n }) => {
+ let r = W4(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
return /* @__PURE__ */ (0, z.jsx)("radialGradient", {
id: `${e}-radar-fill-${t}`,
cx: "50%",
cy: "50%",
r: "50%",
- children: /* @__PURE__ */ (0, z.jsx)(h6, {
+ children: /* @__PURE__ */ (0, z.jsx)(m6, {
dataKey: t,
colorsCount: r,
opacities: i
})
});
-}, eze = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)("filter", {
+}, lze = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)("filter", {
id: `${e}-radar-glow-${t}`,
x: "-50%",
y: "-50%",
@@ -71713,7 +71964,7 @@ var XRe = (e, t, n, r) => {
}),
/* @__PURE__ */ (0, z.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, z.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, z.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), tze = (e) => [
+}), uze = (e) => [
"A",
"B",
"C",
@@ -71722,20 +71973,20 @@ var XRe = (e, t, n, r) => {
"F"
].slice(0, e).map((e) => ({
skill: e,
- [l6]: 30 + Math.random() * 70
+ [c6]: 30 + Math.random() * 70
}));
-function nze(e, t = URe) {
+function dze(e, t = QRe) {
let [n, r] = (0, R.useState)(0);
return (0, R.useEffect)(() => {
if (!e) return;
let t = setInterval(() => {
r((e) => e + 1);
- }, c6);
+ }, s6);
return () => clearInterval(t);
- }, [e]), (0, R.useMemo)(() => tze(t), [t, n]);
+ }, [e]), (0, R.useMemo)(() => uze(t), [t, n]);
}
-var rze = () => /* @__PURE__ */ (0, z.jsx)(E1, {
- dataKey: l6,
+var fze = () => /* @__PURE__ */ (0, z.jsx)(T1, {
+ dataKey: c6,
stroke: "currentColor",
strokeOpacity: .3,
strokeWidth: 2,
@@ -71743,30 +71994,30 @@ var rze = () => /* @__PURE__ */ (0, z.jsx)(E1, {
fillOpacity: .1,
dot: !1,
isAnimationActive: !0,
- animationDuration: c6,
+ animationDuration: s6,
animationEasing: "ease-in-out"
});
-f6.Radar = WRe, f6.Dot = p6, f6.ActiveDot = m6, f6.PolarGrid = GRe, f6.PolarAngleAxis = KRe, f6.PolarRadiusAxis = qRe, f6.Tooltip = JRe, f6.Legend = YRe;
+d6.Radar = $Re, d6.Dot = f6, d6.ActiveDot = p6, d6.PolarGrid = eze, d6.PolarAngleAxis = tze, d6.PolarRadiusAxis = nze, d6.Tooltip = rze, d6.Legend = ize;
//#endregion
//#region src/react/taste/charts.tsx
-var ize = [
+var pze = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], aze = [
+], mze = [
"fill-chart-1",
"fill-chart-2",
"fill-chart-3",
"fill-chart-4",
"fill-chart-5",
"fill-chart-6"
-], g6 = { value: {
+], h6 = { value: {
label: "标签命中",
- colors: c3(s3[3])
-} }, oze = [
+ colors: s3(o3[3])
+} }, hze = [
"min-h-24",
"min-h-24",
"min-h-24",
@@ -71776,78 +72027,78 @@ var ize = [
"min-h-52",
"min-h-60",
"min-h-64"
-], sze = 26, cze = { radius: g6.value }, lze = (e, t) => Math.sqrt(e / t);
-function uze({ rows: e, label: t }) {
- let n = RRe(e);
+], gze = 26, _ze = { radius: h6.value }, vze = (e, t) => Math.sqrt(e / t);
+function yze({ rows: e, label: t }) {
+ let n = qRe(e);
if (!n.length) return null;
let r = n[0].value, i = n.map((e) => ({
...e,
- radius: lze(e.value, r)
+ radius: vze(e.value, r)
}));
return /* @__PURE__ */ (0, z.jsx)("div", {
role: "img",
"aria-label": `${t}:${i.map((e) => e.name).join(",")}`,
- children: /* @__PURE__ */ (0, z.jsxs)(f6, {
+ children: /* @__PURE__ */ (0, z.jsxs)(d6, {
data: i,
- config: cze,
+ config: _ze,
chartProps: { outerRadius: "58%" },
className: "aspect-auto h-70 text-text-secondary",
children: [
- /* @__PURE__ */ (0, z.jsx)(f6.PolarGrid, {}),
- /* @__PURE__ */ (0, z.jsx)(f6.PolarAngleAxis, { dataKey: "name" }),
- /* @__PURE__ */ (0, z.jsx)(f6.PolarRadiusAxis, {
+ /* @__PURE__ */ (0, z.jsx)(d6.PolarGrid, {}),
+ /* @__PURE__ */ (0, z.jsx)(d6.PolarAngleAxis, { dataKey: "name" }),
+ /* @__PURE__ */ (0, z.jsx)(d6.PolarRadiusAxis, {
domain: [0, 1],
allowDecimals: !0,
tick: !1
}),
- /* @__PURE__ */ (0, z.jsx)(f6.Radar, { dataKey: "radius" }),
- /* @__PURE__ */ (0, z.jsx)(p3, { valueKey: "value" })
+ /* @__PURE__ */ (0, z.jsx)(d6.Radar, { dataKey: "radius" }),
+ /* @__PURE__ */ (0, z.jsx)(f3, { valueKey: "value" })
]
})
});
}
-function dze({ rows: e, label: t }) {
- let n = t6(e, 8);
+function bze({ rows: e, label: t }) {
+ let n = e6(e, 8);
return n.length ? /* @__PURE__ */ (0, z.jsx)("section", {
"aria-label": t,
- className: `flex grow flex-col ${oze[n.length]}`,
- children: /* @__PURE__ */ (0, z.jsxs)(r3, {
+ className: `flex grow flex-col ${hze[n.length]}`,
+ children: /* @__PURE__ */ (0, z.jsxs)(n3, {
data: n,
- config: g6,
+ config: h6,
layout: "horizontal",
barRadius: 4,
- chartProps: { maxBarSize: sze },
+ chartProps: { maxBarSize: gze },
className: "aspect-auto text-text-secondary",
children: [
- /* @__PURE__ */ (0, z.jsx)(r3.YAxis, {
+ /* @__PURE__ */ (0, z.jsx)(n3.YAxis, {
dataKey: "name",
interval: 0
}),
- /* @__PURE__ */ (0, z.jsx)(r3.XAxis, {
+ /* @__PURE__ */ (0, z.jsx)(n3.XAxis, {
hide: !0,
- domain: m3
+ domain: p3
}),
- /* @__PURE__ */ (0, z.jsx)(r3.Bar, {
+ /* @__PURE__ */ (0, z.jsx)(n3.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
dataKey: "value",
- label: h3("right")
+ label: m3("right")
}
}),
- /* @__PURE__ */ (0, z.jsx)(p3, {})
+ /* @__PURE__ */ (0, z.jsx)(f3, {})
]
})
}) : null;
}
-function fze({ flows: e }) {
- let [t, n] = (0, R.useState)(null), r = zRe(e);
+function xze({ flows: e }) {
+ let [t, n] = (0, R.useState)(null), r = JRe(e);
if (!r) return null;
let i = t?.node ?? null, a = (e, n) => t ? i === null ? t.label === n : e.source === i || e.target === i : !0;
return /* @__PURE__ */ (0, z.jsxs)("section", {
- className: a3,
+ className: i3,
children: [
- /* @__PURE__ */ (0, z.jsx)(o3, {
+ /* @__PURE__ */ (0, z.jsx)(a3, {
title: "创作者线索来源",
figure: (t ? t.value : r.total).toLocaleString(),
note: t ? t.label : "条线索"
@@ -71855,7 +72106,7 @@ function fze({ flows: e }) {
/* @__PURE__ */ (0, z.jsx)("div", {
className: "min-w-0 overflow-x-auto",
children: /* @__PURE__ */ (0, z.jsxs)("svg", {
- viewBox: `0 0 ${n6.width} ${n6.height}`,
+ viewBox: `0 0 ${t6.width} ${t6.height}`,
fill: "none",
role: "img",
"aria-label": "来源网站与创作者线索",
@@ -71869,7 +72120,7 @@ function fze({ flows: e }) {
"aria-label": `${e.label}:${e.value} 条线索`,
fillOpacity: 0,
strokeOpacity: a(e, e.label) ? .55 : .08,
- className: `outline-none transition-opacity ${ize[e.color]}`,
+ className: `outline-none transition-opacity ${pze[e.color]}`,
onPointerEnter: () => n({
value: e.value,
label: e.label,
@@ -71903,15 +72154,15 @@ function fze({ flows: e }) {
width: 10,
height: e.height,
rx: 5,
- className: e.side === "source" ? aze[e.color] : "fill-text-secondary"
+ className: e.side === "source" ? mze[e.color] : "fill-text-secondary"
}), /* @__PURE__ */ (0, z.jsxs)("text", {
- x: r6[e.side],
+ x: n6[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: [BRe(e.name), /* @__PURE__ */ (0, z.jsx)("tspan", {
- x: r6[e.side],
+ children: [YRe(e.name), /* @__PURE__ */ (0, z.jsx)("tspan", {
+ x: n6[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
})]
@@ -71928,8 +72179,8 @@ function fze({ flows: e }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var pze = 10, _6 = Pi(aO, oO, "text-body-2-medium"), v6 = `${Yi()} flex flex-col gap-4`, y6 = "rounded-xl bg-background-primary-default p-3", mze = "读取运行 Peach 的这台电脑上的浏览记录", hze = "导入或读取浏览记录后,这里会列出已采集设备。", gze = "馆藏里暂时没有对得上浏览信号的标签。", _ze = "采集浏览记录后,这里会显示聚合后的口味证据。", vze = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", yze = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", bze = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", xze = "需要刷新时再次读取或导入;数据源可在页面底部移除。", Sze = "这个数据源将不再用于口味分析。原始导出文件保留。", b6 = "peach-taste-guide-dismissed";
-function x6({ icon: e, term: t, figure: n, detail: r, accent: i }) {
+var Sze = 10, g6 = Pi(OO, kO, "text-body-2-medium"), _6 = `${Yi()} flex flex-col gap-4`, v6 = "rounded-xl bg-background-primary-default p-3", Cze = "读取运行 Peach 的这台电脑上的浏览记录", wze = "导入或读取浏览记录后,这里会列出已采集设备。", Tze = "馆藏里暂时没有对得上浏览信号的标签。", Eze = "采集浏览记录后,这里会显示聚合后的口味证据。", Dze = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", Oze = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", kze = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", Aze = "需要刷新时再次读取或导入;数据源可在页面底部移除。", jze = "这个数据源将不再用于口味分析。原始导出文件保留。", y6 = "peach-taste-guide-dismissed";
+function b6({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
className: eu(),
children: /* @__PURE__ */ (0, z.jsx)(ou, {
@@ -71941,7 +72192,7 @@ function x6({ icon: e, term: t, figure: n, detail: r, accent: i }) {
})
});
}
-function S6({ name: e, domain: t }) {
+function x6({ name: e, domain: t }) {
return /* @__PURE__ */ (0, z.jsxs)("span", {
className: "relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-lg bg-background-tertiary-default text-caption-1-medium text-text-secondary",
children: [e.slice(0, 1).toUpperCase(), /* @__PURE__ */ (0, z.jsx)("img", {
@@ -71955,22 +72206,22 @@ function S6({ name: e, domain: t }) {
})]
});
}
-function Cze({ html: e }) {
+function Mze({ html: e }) {
return /* @__PURE__ */ (0, z.jsx)("span", {
- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${XN}`,
+ 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 ${AP}`,
dangerouslySetInnerHTML: { __html: e }
});
}
-function wze({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
+function Nze({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
if (!e.length) return /* @__PURE__ */ (0, z.jsx)(Zi, {
shell: "plain",
icon: ht,
title: "暂无足够证据",
children: r
});
- let o = LRe(e);
- return /* @__PURE__ */ (0, z.jsx)(w3, {
- previewCount: pze,
+ let o = KRe(e);
+ return /* @__PURE__ */ (0, z.jsx)(C3, {
+ previewCount: Sze,
className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",
children: e.map((e, r) => {
let s = !!t && !!e.peach_items, c = String(e.source_domain || ""), l = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
@@ -71989,15 +72240,15 @@ function wze({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: r + 1
}),
- n === "domain" ? /* @__PURE__ */ (0, z.jsx)(S6, {
+ n === "domain" ? /* @__PURE__ */ (0, z.jsx)(x6, {
name: e.name,
domain: e.name
}) : null,
- n === "creator" && !e.entity_id && !e.has_avatar && c ? /* @__PURE__ */ (0, z.jsx)(S6, {
+ n === "creator" && !e.entity_id && !e.has_avatar && c ? /* @__PURE__ */ (0, z.jsx)(x6, {
name: e.name,
domain: c
}) : null,
- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, z.jsx)(Cze, { html: a(e.name, e.entity_id ? {
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, z.jsx)(Mze, { html: a(e.name, e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
avatar_focus: e.avatar_focus
@@ -72009,7 +72260,7 @@ function wze({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
children: e.name
}), /* @__PURE__ */ (0, z.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: IRe(e)
+ children: GRe(e)
})]
}),
s ? /* @__PURE__ */ (0, z.jsx)(We, {
@@ -72032,24 +72283,24 @@ function wze({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
})
});
}
-function C6({ label: e, panels: t, onSignal: n, avatarInner: r }) {
- return /* @__PURE__ */ (0, z.jsxs)(PS, {
+function S6({ label: e, panels: t, onSignal: n, avatarInner: r }) {
+ return /* @__PURE__ */ (0, z.jsxs)(KS, {
className: `${Yi({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, z.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, z.jsx)(xk, {
+ children: /* @__PURE__ */ (0, z.jsx)($k, {
"aria-label": e,
- className: Ck,
- children: t.map((e) => /* @__PURE__ */ (0, z.jsx)(IS, {
+ className: tA,
+ children: t.map((e) => /* @__PURE__ */ (0, z.jsx)(JS, {
id: e.id,
- className: wk,
+ className: nA,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(LS, {
+ }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(YS, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, z.jsx)(wze, {
+ children: /* @__PURE__ */ (0, z.jsx)(Nze, {
...e.props,
onSignal: n,
avatarInner: r
@@ -72057,7 +72308,7 @@ function C6({ label: e, panels: t, onSignal: n, avatarInner: r }) {
}, e.id))]
});
}
-function Tze({ data: e, onSignal: t, navigate: n }) {
+function Pze({ data: e, onSignal: t, navigate: n }) {
let r = e.analysis;
if (!r?.headline) return null;
let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({
@@ -72072,7 +72323,7 @@ function Tze({ data: e, onSignal: t, navigate: n }) {
act: () => n(e.route)
}))];
return /* @__PURE__ */ (0, z.jsxs)("section", {
- className: v6,
+ className: _6,
"aria-label": "口味总结",
children: [
/* @__PURE__ */ (0, z.jsxs)("header", {
@@ -72098,7 +72349,7 @@ function Tze({ data: e, onSignal: t, navigate: n }) {
r.points?.length ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: r.points.map((e) => /* @__PURE__ */ (0, z.jsxs)("div", {
- className: `flex min-w-0 flex-col gap-1 ${y6}`,
+ className: `flex min-w-0 flex-col gap-1 ${v6}`,
children: [/* @__PURE__ */ (0, z.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: e.label
@@ -72113,7 +72364,7 @@ function Tze({ data: e, onSignal: t, navigate: n }) {
children: a.map((e) => /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
onClick: e.act,
- className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${y6} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
+ className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${v6} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: [/* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-1",
children: [/* @__PURE__ */ (0, z.jsx)("b", {
@@ -72132,15 +72383,15 @@ function Tze({ data: e, onSignal: t, navigate: n }) {
shell: "plain",
icon: ht,
title: "还没有可探索的入口",
- children: gze
+ children: Tze
})
]
});
}
-function Eze({ onboarding: e, done: t }) {
+function Fze({ onboarding: e, done: t }) {
let [n, r] = (0, R.useState)(() => {
try {
- return localStorage.getItem(b6) === "1";
+ return localStorage.getItem(y6) === "1";
} catch {
return !1;
}
@@ -72150,17 +72401,17 @@ function Eze({ onboarding: e, done: t }) {
padding: "none",
className: "p-4"
}),
- children: /* @__PURE__ */ (0, z.jsxs)(kO, {
+ children: /* @__PURE__ */ (0, z.jsxs)(lk, {
summary: "浏览器历史记录导入指南",
defaultOpen: e,
children: [
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: yze
+ children: Oze
}),
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: bze
+ children: kze
}),
/* @__PURE__ */ (0, z.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
@@ -72190,7 +72441,7 @@ function Eze({ onboarding: e, done: t }) {
}),
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: xze
+ children: Aze
}),
/* @__PURE__ */ (0, z.jsx)("span", {
className: "self-start",
@@ -72199,7 +72450,7 @@ function Eze({ onboarding: e, done: t }) {
size: "small",
onClick: () => {
try {
- localStorage.setItem(b6, "1");
+ localStorage.setItem(y6, "1");
} catch {}
r(!0);
},
@@ -72210,7 +72461,7 @@ function Eze({ onboarding: e, done: t }) {
})
});
}
-function Dze({ busy: e, onRefresh: t, onImport: n }) {
+function Ize({ busy: e, onRefresh: t, onImport: n }) {
let r = (0, R.useRef)(null), [i, a] = (0, R.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -72220,7 +72471,7 @@ function Dze({ busy: e, onRefresh: t, onImport: n }) {
"data-variant": "primary",
children: [/* @__PURE__ */ (0, z.jsx)(H, {
leadingIcon: Xe,
- title: mze,
+ title: Cze,
onClick: t,
...q(e),
children: "读取浏览器历史"
@@ -72236,19 +72487,19 @@ function Dze({ busy: e, onRefresh: t, onImport: n }) {
e || a(!0);
}
})]
- }), /* @__PURE__ */ (0, z.jsx)(Ty, {
+ }), /* @__PURE__ */ (0, z.jsx)(Ly, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: iO,
- children: /* @__PURE__ */ (0, z.jsxs)(tO, {
+ className: TO,
+ children: /* @__PURE__ */ (0, z.jsxs)(SO, {
"aria-label": "更多取得浏览记录的方式",
className: "flex w-52 flex-col gap-1 outline-none",
children: [/* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
- className: _6,
+ className: g6,
onClick: () => o(t),
children: [/* @__PURE__ */ (0, z.jsx)(Xe, {
"aria-hidden": !0,
@@ -72256,7 +72507,7 @@ function Dze({ busy: e, onRefresh: t, onImport: n }) {
}), "读取浏览器历史"]
}), /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
- className: _6,
+ className: g6,
onClick: () => o(n),
children: [/* @__PURE__ */ (0, z.jsx)(yt, {
"aria-hidden": !0,
@@ -72266,15 +72517,15 @@ function Dze({ busy: e, onRefresh: t, onImport: n }) {
})
})] });
}
-function Oze({ sources: e, window: t, toast: n }) {
+function Lze({ sources: e, window: t, toast: n }) {
let r = Qn({
- mutationFn: (e) => jRe(e, t),
+ mutationFn: (e) => BRe(e, t),
onSuccess: (e) => {
- J.setQueryData(Q3(t), e.dashboard), n("已移除口味数据源");
+ J.setQueryData(Z3(t), e.dashboard), n("已移除口味数据源");
}
});
return /* @__PURE__ */ (0, z.jsxs)("section", {
- className: v6,
+ className: _6,
"aria-label": "数据源",
children: [
/* @__PURE__ */ (0, z.jsx)("h3", {
@@ -72288,7 +72539,7 @@ function Oze({ sources: e, window: t, toast: n }) {
e.length ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "inline-grid w-full gap-2 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)("div", {
- className: `flex min-w-0 items-center gap-3 ${y6}`,
+ className: `flex min-w-0 items-center gap-3 ${v6}`,
children: [
/* @__PURE__ */ (0, z.jsx)("span", {
className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",
@@ -72320,7 +72571,7 @@ function Oze({ sources: e, window: t, toast: n }) {
onClick: () => {
r.isPending || b({
title: "移除口味数据源",
- body: Sze,
+ body: jze,
confirmLabel: "移除口味数据源",
onConfirm: () => r.mutateAsync(e.source_key)
});
@@ -72332,28 +72583,28 @@ function Oze({ sources: e, window: t, toast: n }) {
shell: "plain",
icon: Ze,
title: "还没有数据源",
- children: hze
+ children: wze
})
]
});
}
-function kze(e) {
+function Rze(e) {
let { onSignal: t, navigate: n, toast: r, avatarInner: i, onboarding: a } = e, [o, c] = (0, R.useState)("all"), [l, u] = (0, R.useState)("browser"), d = (0, R.useRef)(null), f = Zn({
- queryKey: Q3(o),
- queryFn: ({ signal: e }) => $3(o, e),
+ queryKey: Z3(o),
+ queryFn: ({ signal: e }) => Q3(o, e),
placeholderData: Yt
- }), { job: p, running: m, outcome: h, start: g } = LO({
- queryKey: ERe,
- queryFn: ({ signal: e }) => ORe(e),
- start: () => ARe(o),
- idlePollMs: NRe,
+ }), { job: p, running: m, outcome: h, start: g } = _k({
+ queryKey: FRe,
+ queryFn: ({ signal: e }) => LRe(e),
+ start: () => zRe(o),
+ idlePollMs: HRe,
onFinish: (e) => {
e.status !== "failed" && (J.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));
}
}), _ = Qn({
- mutationFn: (e) => MRe(e),
+ mutationFn: (e) => VRe(e),
onSuccess: (e) => {
- J.setQueryData(Q3("all"), e.dashboard), c("all"), r("已导入口味数据");
+ J.setQueryData(Z3("all"), e.dashboard), c("all"), r("已导入口味数据");
}
}), v = (e) => {
let t = e.currentTarget.files?.[0];
@@ -72368,40 +72619,40 @@ function kze(e) {
}) });
let x = b.summary || {}, S = b.coverage || {}, C = b.rankings || {}, w = b.storage || {}, T = C.browser_categories || [], E = b.gaps || [], D = S.tagged || 0, O = S.identified || 0, k = g.error ? U(g.error) : _.error ? U(_.error) : h?.status === "failed" ? h.error || "读取未取得" : "";
return /* @__PURE__ */ (0, z.jsxs)($i, { children: [
- /* @__PURE__ */ (0, z.jsxs)(PS, {
+ /* @__PURE__ */ (0, z.jsxs)(KS, {
selectedKey: l,
onSelectionChange: (e) => u(String(e)),
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, z.jsxs)(xk, {
+ children: [/* @__PURE__ */ (0, z.jsxs)($k, {
"aria-label": "口味证据来源",
- className: Ck,
- children: [/* @__PURE__ */ (0, z.jsx)(IS, {
+ className: tA,
+ children: [/* @__PURE__ */ (0, z.jsx)(JS, {
id: "browser",
- className: wk,
+ className: nA,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, z.jsx)(IS, {
+ }), /* @__PURE__ */ (0, z.jsx)(JS, {
id: "peach",
- className: wk,
+ className: nA,
children: "Peach 内部"
})]
}), /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(PO, {
+ /* @__PURE__ */ (0, z.jsx)(mk, {
"aria-label": "分析范围",
selectedKey: o,
onSelectionChange: (e) => {
e !== null && c(String(e));
},
- children: DRe.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(FO, {
+ children: IRe.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(hk, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)(Dze, {
+ /* @__PURE__ */ (0, z.jsx)(Ize, {
busy: m || g.isPending || _.isPending,
onRefresh: y,
onImport: () => d.current?.click()
@@ -72417,7 +72668,7 @@ function kze(e) {
]
})]
}),
- /* @__PURE__ */ (0, z.jsx)(Eze, {
+ /* @__PURE__ */ (0, z.jsx)(Fze, {
onboarding: a,
done: !!(x.history_sources || b.updated_at)
}),
@@ -72425,46 +72676,46 @@ function kze(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- m ? /* @__PURE__ */ (0, z.jsx)(gO, {
+ m ? /* @__PURE__ */ (0, z.jsx)(YO, {
label: p?.message || "正在读取浏览记录并更新口味分析",
value: p?.checked,
total: p?.total
}) : null,
- _.isPending ? /* @__PURE__ */ (0, z.jsx)(gO, { label: "正在导入历史文件" }) : null,
+ _.isPending ? /* @__PURE__ */ (0, z.jsx)(YO, { label: "正在导入历史文件" }) : null,
k ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
children: k
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsxs)(LS, {
+ /* @__PURE__ */ (0, z.jsxs)(YS, {
id: "browser",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, z.jsxs)("div", {
className: tu,
children: [
- /* @__PURE__ */ (0, z.jsx)(x6, {
+ /* @__PURE__ */ (0, z.jsx)(b6, {
accent: 0,
icon: at,
term: "浏览记录",
figure: Number(x.history_visits || 0).toLocaleString(),
- detail: `${x.history_sources || 0} 个数据源 · ${e6(x.range_start)}—${e6(x.range_end)}`
+ detail: `${x.history_sources || 0} 个数据源 · ${$3(x.range_start)}—${$3(x.range_end)}`
}),
- /* @__PURE__ */ (0, z.jsx)(x6, {
+ /* @__PURE__ */ (0, z.jsx)(b6, {
accent: 1,
icon: ft,
term: "口味维度",
figure: T.length.toLocaleString(),
detail: T[0]?.name || "尚无主维度"
}),
- /* @__PURE__ */ (0, z.jsx)(x6, {
+ /* @__PURE__ */ (0, z.jsx)(b6, {
accent: 2,
icon: ht,
term: "浏览候选",
figure: E.length.toLocaleString()
}),
- /* @__PURE__ */ (0, z.jsx)(x6, {
+ /* @__PURE__ */ (0, z.jsx)(b6, {
accent: 3,
icon: Ze,
term: "私有导出",
@@ -72474,7 +72725,7 @@ function kze(e) {
]
}),
/* @__PURE__ */ (0, z.jsxs)("section", {
- className: `${v6} md:flex-row md:gap-6`,
+ className: `${_6} md:flex-row md:gap-6`,
"aria-label": "浏览器画像",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex shrink-0 flex-col gap-2 pb-5 md:w-80 md:pr-6 md:pb-0",
@@ -72483,29 +72734,29 @@ function kze(e) {
className: "text-caption-1-regular text-text-secondary",
children: "浏览器画像"
}),
- /* @__PURE__ */ (0, z.jsx)(uze, {
+ /* @__PURE__ */ (0, z.jsx)(yze, {
rows: T,
label: "主要口味维度"
}),
/* @__PURE__ */ (0, z.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: b.updated_at ? `更新于 ${e6(b.updated_at)}` : "尚未采集浏览记录"
+ children: b.updated_at ? `更新于 ${$3(b.updated_at)}` : "尚未采集浏览记录"
})
]
}), /* @__PURE__ */ (0, z.jsx)("div", {
className: "flex min-w-0 grow flex-col",
- children: T.length ? /* @__PURE__ */ (0, z.jsx)(dze, {
+ children: T.length ? /* @__PURE__ */ (0, z.jsx)(bze, {
rows: T,
label: "口味维度排名"
}) : /* @__PURE__ */ (0, z.jsx)(Zi, {
shell: "plain",
icon: ht,
title: "暂无口味维度",
- children: _ze
+ children: Eze
})
})]
}),
- /* @__PURE__ */ (0, z.jsx)(C3, {
+ /* @__PURE__ */ (0, z.jsx)(S3, {
activity: b.activity,
title: "浏览活跃时间",
dailyTitle: "每日活跃",
@@ -72517,8 +72768,8 @@ function kze(e) {
tone: 4,
empty: "还没有可用于分析的口味网站访问记录。"
}),
- /* @__PURE__ */ (0, z.jsx)(fze, { flows: b.creator_flows }),
- /* @__PURE__ */ (0, z.jsx)(C6, {
+ /* @__PURE__ */ (0, z.jsx)(xze, { flows: b.creator_flows }),
+ /* @__PURE__ */ (0, z.jsx)(S6, {
label: "浏览器口味维度",
onSignal: t,
avatarInner: i,
@@ -72560,40 +72811,40 @@ function kze(e) {
rows: E,
kind: "",
visual: "none",
- empty: vze
+ empty: Dze
}
}
]
})
]
}),
- /* @__PURE__ */ (0, z.jsxs)(LS, {
+ /* @__PURE__ */ (0, z.jsxs)(YS, {
id: "peach",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, z.jsxs)("div", {
className: tu,
children: [
- /* @__PURE__ */ (0, z.jsx)(x6, {
+ /* @__PURE__ */ (0, z.jsx)(b6, {
accent: 0,
icon: tt,
term: "Peach 看过",
figure: Number(x.peach_items || 0).toLocaleString(),
- detail: PRe(x.peach_seconds || 0)
+ detail: URe(x.peach_seconds || 0)
}),
- /* @__PURE__ */ (0, z.jsx)(x6, {
+ /* @__PURE__ */ (0, z.jsx)(b6, {
accent: 1,
icon: vt,
term: "喜欢",
figure: Number(x.liked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, z.jsx)(x6, {
+ /* @__PURE__ */ (0, z.jsx)(b6, {
accent: 2,
icon: _t,
term: "不合口味",
figure: Number(x.disliked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, z.jsx)(x6, {
+ /* @__PURE__ */ (0, z.jsx)(b6, {
accent: 3,
icon: ft,
term: "有标签",
@@ -72602,7 +72853,7 @@ function kze(e) {
]
}),
/* @__PURE__ */ (0, z.jsxs)("section", {
- className: `${v6} md:flex-row md:gap-6`,
+ className: `${_6} md:flex-row md:gap-6`,
"aria-label": "Peach 观看",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-72 md:pr-6 md:pb-0",
@@ -72622,18 +72873,18 @@ function kze(e) {
]
}), /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-w-0 grow flex-col",
- children: [/* @__PURE__ */ (0, z.jsx)(w6, {
+ children: [/* @__PURE__ */ (0, z.jsx)(C6, {
term: "有标签",
value: D,
rest: S.untagged || 0
- }), /* @__PURE__ */ (0, z.jsx)(w6, {
+ }), /* @__PURE__ */ (0, z.jsx)(C6, {
term: "有身份",
value: O,
rest: S.unidentified || 0
})]
})]
}),
- /* @__PURE__ */ (0, z.jsx)(C6, {
+ /* @__PURE__ */ (0, z.jsx)(S6, {
label: "Peach 口味维度",
onSignal: t,
avatarInner: i,
@@ -72674,19 +72925,19 @@ function kze(e) {
})
]
}),
- /* @__PURE__ */ (0, z.jsx)(Tze, {
+ /* @__PURE__ */ (0, z.jsx)(Pze, {
data: b,
onSignal: t,
navigate: n
}),
- /* @__PURE__ */ (0, z.jsx)(Oze, {
+ /* @__PURE__ */ (0, z.jsx)(Lze, {
sources: b.sources || [],
window: o,
toast: r
})
] });
}
-function w6({ term: e, value: t, rest: n }) {
+function C6({ term: e, value: t, rest: n }) {
let r = Math.max(t + n, 1);
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -72708,32 +72959,32 @@ function w6({ term: e, value: t, rest: n }) {
}
//#endregion
//#region src/player/host.ts
-var T6 = null;
-function Aze(e) {
- T6 = e;
+var w6 = null;
+function zze(e) {
+ w6 = e;
}
-function E6() {
- if (!T6) throw Error("播放器还没有接上宿主(configurePlayer)");
- return T6;
+function T6() {
+ if (!w6) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return w6;
}
//#endregion
//#region src/player/menu.ts
-var D6 = null;
-function jze(e) {
- D6 = e;
+var E6 = null;
+function Bze(e) {
+ E6 = e;
}
-function Mze() {
+function Vze() {
let e = document.getElementById("playerMenu");
return e || (e = document.createElement("div"), e.className = "popmenu", e.setAttribute("data-player-context-menu", ""), e.id = "playerMenu", e.setAttribute("role", "menu"), e.setAttribute("aria-label", "播放器菜单"), e.hidden = !0, document.body.append(e)), e;
}
-var O6 = null, k6 = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function A6() {
+var D6 = null, O6 = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function k6() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && S(e, () => {
e.innerHTML = "";
- }), O6 &&= (O6(), null);
+ }), D6 &&= (D6(), null);
}
-async function Nze(e) {
+async function Hze(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -72746,12 +72997,12 @@ async function Nze(e) {
return t.remove(), n;
}
}
-function Pze(e) {
- let t = !!D6?.inMiniplayer(e), n = e.peachItem, r = D6?.kind(e) ?? "item", i = (t) => {
+function Uze(e) {
+ let t = !!E6?.inMiniplayer(e), n = e.peachItem, r = E6?.kind(e) ?? "item", i = (t) => {
let i = new URL(r === "follow" ? `/follow/item/${n?.id}` : `/item/${n?.id}`, location.origin);
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- Nze(i(e)).then((e) => E6().toast(e ? t : "复制失败,请手动复制地址栏", {
+ Hze(i(e)).then((e) => T6().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -72763,11 +73014,11 @@ function Pze(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => D6?.expand()
+ run: () => E6?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => D6?.toMiniplayer()
+ run: () => E6?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -72790,29 +73041,29 @@ function Pze(e) {
run: () => s.click()
}), o;
}
-function Fze(e, t, n) {
- let r = Mze();
- A6();
- let a = E6().stage();
+function Wze(e, t, n) {
+ let r = Vze();
+ k6();
+ let a = T6().stage();
a instanceof HTMLDialogElement && a.open && a.append(r), r.setAttribute("popover", "manual");
- let o = Pze(e);
+ let o = Uze(e);
r.innerHTML = o.map((e, t) => {
let n = e.checked !== void 0;
- return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${k6(l(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${i(e.label)}</span>${n ? k6(l("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${O6(l(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${i(e.label)}</span>${n ? O6(l("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), P(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;
let s = [...r.querySelectorAll("[data-player-menu]")];
s.forEach((e) => {
e.onclick = (t) => {
t.stopPropagation();
let n = o[Number(e.dataset.playerMenu)];
- A6(), n?.run();
+ k6(), n?.run();
};
});
let c = (e) => {
- r.contains(e.target) || A6();
+ r.contains(e.target) || k6();
}, u = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), A6();
+ e.preventDefault(), e.stopPropagation(), k6();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -72820,51 +73071,51 @@ function Fze(e, t, n) {
let t = s.indexOf(document.activeElement);
s[(t + (e.key === "ArrowDown" ? 1 : -1) + s.length) % s.length]?.focus();
}, d = (t) => {
- F(t, e.el()) && A6();
+ F(t, e.el()) && k6();
};
setTimeout(() => {
document.addEventListener("pointerdown", c, !0), document.addEventListener("keydown", u, !0), window.addEventListener("scroll", d, {
capture: !0,
passive: !0
});
- }, 0), O6 = () => {
+ }, 0), D6 = () => {
document.removeEventListener("pointerdown", c, !0), document.removeEventListener("keydown", u, !0), window.removeEventListener("scroll", d, !0);
}, s[0]?.focus();
}
-function Ize(e) {
+function Gze(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Fze(e, t.clientX, t.clientY));
- }), e.on("dispose", A6);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Wze(e, t.clientX, t.clientY));
+ }), e.on("dispose", k6);
}
//#endregion
//#region src/player/registry.ts
-var j6 = null, M6 = () => j6;
-function N6(e) {
- j6 = e;
+var A6 = null, j6 = () => A6;
+function M6(e) {
+ A6 = e;
}
-function P6(e) {
+function N6(e) {
!e || e.isDisposed() || requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
//#endregion
//#region src/player/stats.ts
-function F6(e) {
+function P6(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t && e.buffered.end(n) >= t) return Math.max(0, e.buffered.end(n) - t);
return 0;
}
-function Lze(e) {
+function Kze(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t + .25 && e.buffered.end(n) >= t) return e.buffered.end(n);
return e.buffered.length ? e.buffered.end(e.buffered.length - 1) : 0;
}
-var I6 = 3e3;
-function L6(e, t) {
+var F6 = 3e3;
+function I6(e, t) {
let n = Number(e) || 0, r = p(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function Rze(e) {
+function qze(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -72879,10 +73130,10 @@ function Rze(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = Lze(e), s = e.currentTime || 0;
+ let a = performance.now(), o = Kze(e), s = e.currentTime || 0;
if (n) {
let e = (a - n.at) / 1e3, i = Math.abs(s - n.ct) > e * 4 + 1, c = o - n.frontier;
- !i && c > 0 && (r += c), e * 1e3 > I6 * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > F6 * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -72891,56 +73142,56 @@ function Rze(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > I6;) t.shift();
+ }); t.length > 2 && a - t[0].at > F6;) t.shift();
let c = t[0], l = (a - c.at) / 1e3, u = r - c.advanced;
return l >= .5 && u > 0 && this.bitrate > 0 && (i = u * this.bitrate / l), i;
}
};
}
-var R6 = 24;
-function z6(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > R6 && e.splice(0, e.length - R6);
+var L6 = 24;
+function R6(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > L6 && e.splice(0, e.length - L6);
}
-var B6 = "peach-player-panel";
-function V6(e, t, n, r) {
- let a = [...Array(Math.max(0, R6 - e.length)).fill(null), ...e], o = Math.max(1, n || 0), s = a.map((e) => {
+var z6 = "peach-player-panel";
+function B6(e, t, n, r) {
+ let a = [...Array(Math.max(0, L6 - e.length)).fill(null), ...e], o = Math.max(1, n || 0), s = a.map((e) => {
if (e === null) return "<i aria-hidden=\"true\"></i>";
let n = e <= 0 ? 0 : Math.max(.08, Math.min(1, e / o));
return `<i data-bar="${t === "buffer" ? e < 5 ? "low" : e < 15 ? "mid" : "good" : "on"}" style="height:${(n * 100).toFixed(1)}%" aria-hidden="true"></i>`;
}).join("");
return `<span data-player-stats-plot="${t}" role="img" aria-label="${i(r)}">${s}</span>`;
}
-function zze() {
+function Jze() {
return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${l("chart")}</button>
<div data-player-net="" id="playerNet" role="status" aria-live="polite" hidden></div>
<div data-player-stats="" id="playerStats" role="status" hidden></div>`;
}
-function H6(e, t = "") {
+function V6(e, t = "") {
let n = t ? encodeURIComponent(t) : "";
return performance.getEntriesByType("resource").filter((t) => t.name.includes("/stream") && (t.name.includes(`/stream?id=${e}`) || t.name.includes(`/stream/hls/${e}/`)) && (!n || t.name.includes(`session=${n}`)));
}
-function U6(e, t = "") {
- let n = H6(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+function H6(e, t = "") {
+ let n = V6(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
return r > 0 && i > 0 ? r * 8 / i : 0;
}
-function W6(e, t, n = "", r = null) {
+function U6(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.tech({ IWillNotUseThisInPlugins: !0 })?.vhs?.stats?.bandwidth) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : U6(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : H6(t, n);
}
-function G6(e) {
+function W6(e) {
if (!Number.isFinite(e) || e <= 0) return "加载中…";
let t = e / 8;
return t >= 1048576 ? `${(t / 1048576).toFixed(1)} MB/s` : `${Math.max(1, Math.round(t / 1024))} KB/s`;
}
-function Bze(e, t) {
- return e > 0 ? G6(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : G6(0);
+function Yze(e, t) {
+ return e > 0 ? W6(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : W6(0);
}
//#endregion
//#region src/player/controls.ts
-function K6(e, t, n = "") {
+function G6(e, t, n = "") {
if (!e) return () => {};
let r = e.querySelector(":scope>.vjs-peach-tooltip");
r || (r = document.createElement("span"), r.className = "vjs-peach-tooltip", r.setAttribute("role", "tooltip"), r.innerHTML = "<span class=\"vjs-peach-tooltip-text\"></span><kbd hidden></kbd>", e.append(r));
@@ -72951,24 +73202,24 @@ function K6(e, t, n = "") {
};
return o(), o;
}
-function Vze(e, t = !0) {
- let n = E6(), r = n.settings();
+function Xze(e, t = !0) {
+ let n = T6(), r = n.settings();
r.ambientMode = !!e, t && n.saveSettings(), n.stage()?.toggleAttribute("data-ambient", r.ambientMode), document.dispatchEvent(new CustomEvent("peachambientchange", { detail: { enabled: r.ambientMode } }));
}
-var q6 = /* @__PURE__ */ new WeakMap();
-function J6(e) {
+var K6 = /* @__PURE__ */ new WeakMap();
+function q6(e) {
if (!e) return;
- let t = E6().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), q6.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = T6().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), K6.get(e)?.(t ? "默认视图" : "影院模式");
}
-function Y6(e, t = !0) {
- let n = E6(), r = n.settings();
+function J6(e, t = !0) {
+ let n = T6(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), J6(i?.querySelector("[data-player-theater]")), P6(M6());
+ i?.toggleAttribute("data-theater", r.theaterMode), q6(i?.querySelector("[data-player-theater]")), N6(j6());
}
-function Hze(e) {
- let t = E6().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function Zze(e) {
+ let t = T6().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -72985,14 +73236,14 @@ function Hze(e) {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => u(t, e)) : requestAnimationFrame((e) => u(t, e));
}, u = (t, n) => {
if (!(i || t !== o)) {
- if (!E6().settings().ambientMode) {
+ if (!T6().settings().ambientMode) {
s();
return;
}
e.paused || (!document.hidden && n - a > 480 && (a = n, c()), l(t));
}
}, d = () => {
- i || !E6().settings().ambientMode || (c(), e.paused || l(++o));
+ i || !T6().settings().ambientMode || (c(), e.paused || l(++o));
}, f = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? d() : (o++, s());
@@ -73001,7 +73252,7 @@ function Hze(e) {
i = !0, o++, document.removeEventListener("peachambientchange", f), e.removeEventListener("play", d), e.removeEventListener("loadeddata", d), s();
};
}
-function Uze(e, t, n = 0, r = null) {
+function Qze(e, t, n = 0, r = null) {
let a = e.getChild("controlBar")?.el();
if (!a || a.querySelector("[data-player-quality]")) return;
let o = document.createElement("div");
@@ -73011,7 +73262,7 @@ function Uze(e, t, n = 0, r = null) {
let s = a.querySelector(".vjs-fullscreen-control");
a.insertBefore(o, s || null);
let c = o.querySelector("button"), u = o.querySelector("[data-player-quality-badge]");
- K6(c, "设置");
+ G6(c, "设置");
let d = o.querySelector(".vjs-peach-settings-menu"), f = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, p = r, m = "auto", h = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
@@ -73053,11 +73304,11 @@ function Uze(e, t, n = 0, r = null) {
active: t
};
}, v = () => d.getAttribute("aria-hidden") !== "true", y = (e) => {
- d.setAttribute("aria-hidden", String(!e)), c.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(B6, { detail: "settings" }));
+ d.setAttribute("aria-hidden", String(!e)), c.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(z6, { detail: "settings" }));
}, b = () => y(!1), x = (e) => {
e.detail !== "settings" && b();
};
- document.addEventListener(B6, x);
+ document.addEventListener(z6, x);
let S = null, C = (e, t) => {
let n = d.querySelector(".vjs-peach-panel"), r = document.createElement("div");
if (r.className = "vjs-peach-panel", r.innerHTML = e, !n || !t || !v()) return d.replaceChildren(r), d.style.height = "", r;
@@ -73071,12 +73322,12 @@ function Uze(e, t, n = 0, r = null) {
}, 250);
}), r;
}, w = (e, t) => e.querySelector(t), T = (t = 0) => {
- let { active: n } = _(), r = Number(e.playbackRate()) || 1, a = C(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${E6().settings().ambientMode}">
+ let { active: n } = _(), r = Number(e.playbackRate()) || 1, a = C(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${T6().settings().ambientMode}">
${l("player-ambient")}<span>氛围模式</span><i class="vjs-peach-switch" aria-hidden="true"></i></button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${l("player-speed")}<span>播放速度</span><b>${r === 1 ? "正常" : `${r}×`}</b>${l("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${l("player-quality")}<span>清晰度</span><b>${i(n.label)}</b>${l("player-menu-next")}</button></div>`, t);
w(a, "[data-player-ambient]").onclick = () => {
- Vze(!E6().settings().ambientMode), T();
+ Xze(!T6().settings().ambientMode), T();
}, w(a, "[data-player-speed]").onclick = () => k(), w(a, "[data-player-quality-view]").onclick = () => A();
}, E = .05, D = [
1,
@@ -73133,22 +73384,22 @@ function Uze(e, t, n = 0, r = null) {
}), f?.on?.(["addqualitylevel", "removequalitylevel"], () => {
v() ? T() : _();
}), e.on("dispose", () => {
- document.removeEventListener("pointerdown", j), document.removeEventListener(B6, x), S && clearTimeout(S);
- }), _(), Wze(e, o), Gze(e), (e) => {
+ document.removeEventListener("pointerdown", j), document.removeEventListener(z6, x), S && clearTimeout(S);
+ }), _(), $ze(e, o), eBe(e), (e) => {
p = e?.length ? e : null, v() ? T() : _();
};
}
-function Wze(e, t) {
+function $ze(e, t) {
let n = e.getChild("controlBar")?.el();
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = E6().settings().theaterMode, i = document.createElement("div");
+ let r = T6().settings().theaterMode, i = document.createElement("div");
i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${l(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);
let a = i.querySelector("button");
- q6.set(a, K6(a, "影院模式", "T")), J6(a), a.onclick = (e) => {
- e.stopPropagation(), Y6(!E6().settings().theaterMode);
+ K6.set(a, G6(a, "影院模式", "T")), q6(a), a.onclick = (e) => {
+ e.stopPropagation(), J6(!T6().settings().theaterMode);
};
}
-function Gze(e) {
+function eBe(e) {
let t = e.getChild("controlBar")?.el();
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -73160,7 +73411,7 @@ function Gze(e) {
e.dataset.peachExplicitIcon = "";
let r = document.createElementNS("http://www.w3.org/2000/svg", "svg");
return r.setAttribute("viewBox", n.getAttribute("viewBox") || ""), r.setAttribute("aria-hidden", "true"), r.setAttribute("class", "vjs-peach-control-icon vjs-peach-morph-icon"), r.innerHTML = n.innerHTML, e.append(r), r;
- }, o = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], s = i(n, "player-play")?.querySelector("path"), c = o("player-play")[0]?.getAttribute("d") || "", u = o("player-pause")[0]?.getAttribute("d") || "", d = K6(n, "播放", "K"), f = CSS.supports("d", "path(\"M0 0\")"), p = () => {
+ }, o = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], s = i(n, "player-play")?.querySelector("path"), c = o("player-play")[0]?.getAttribute("d") || "", u = o("player-pause")[0]?.getAttribute("d") || "", d = G6(n, "播放", "K"), f = CSS.supports("d", "path(\"M0 0\")"), p = () => {
let t = e.paused() || e.ended(), n = t ? c : u;
s && (f ? s.style.setProperty("d", `path("${n}")`) : s.setAttribute("d", n)), d(t ? "播放" : "暂停");
};
@@ -73171,7 +73422,7 @@ function Gze(e) {
], p), p();
let m = t.querySelector(":scope>.vjs-volume-panel"), h = m?.querySelector(":scope>.vjs-mute-control"), g = i(h, "player-volume");
g && o("player-volume-muted").forEach((e) => g.append(e.cloneNode(!0)));
- let _ = K6(h, "静音", "M"), v = () => {
+ let _ = G6(h, "静音", "M"), v = () => {
let t = e.muted() || e.volume() === 0;
g && (g.dataset.silent = String(t), g.dataset.loud = String(!t && e.volume() > .5)), _(t ? "取消静音" : "静音");
};
@@ -73197,7 +73448,7 @@ function Gze(e) {
});
let C = document.createElement("button"), w = !1;
C.type = "button", C.className = "vjs-peach-time vjs-control", C.dataset.playerTime = "", C.innerHTML = "<span class=\"vjs-peach-time-text\"></span>";
- let T = C.querySelector(".vjs-peach-time-text"), E = K6(C, "显示剩余时间"), D = () => {
+ let T = C.querySelector(".vjs-peach-time-text"), E = G6(C, "显示剩余时间"), D = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = a(Math.max(0, n - t));
T.textContent = `${w ? `-${r}` : a(t)} / ${a(n)}`, C.dataset.remaining = String(w), E(w ? "显示已播放时间" : "显示剩余时间", w ? `剩余 ${r},总时长 ${a(n)};点击显示已播放时间` : `已播放 ${a(t)},总时长 ${a(n)};点击显示剩余时间`);
};
@@ -73210,11 +73461,11 @@ function Gze(e) {
], D), D(), m ? m.insertAdjacentElement("afterend", C) : t.append(C);
let O = t.querySelector(":scope>.vjs-picture-in-picture-control");
r(O, "player-pip");
- let k = K6(O, "画中画");
+ let k = G6(O, "画中画");
e.on(["enterpictureinpicture", "leavepictureinpicture"], () => k(document.pictureInPictureElement ? "退出画中画" : "画中画"));
- let A = t.querySelector(":scope>.vjs-fullscreen-control"), j = r(A, "player-fullscreen-enter"), M = K6(A, "全屏", "F"), N = () => {
+ let A = t.querySelector(":scope>.vjs-fullscreen-control"), j = r(A, "player-fullscreen-enter"), M = G6(A, "全屏", "F"), N = () => {
let t = !!e.isFullscreen();
- e.el().toggleAttribute("data-peach-fullscreen", t), j?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), M(t ? "退出全屏" : "全屏"), P6(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), j?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), M(t ? "退出全屏" : "全屏"), N6(e);
};
e.on([
"fullscreenchange",
@@ -73234,7 +73485,7 @@ function Gze(e) {
});
let F = document.createElement("div");
F.className = "vjs-peach-expand vjs-control", F.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${l("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, ee.prepend(F);
- let I = F.querySelector("button"), te = K6(I, "展开控件"), ne = (t) => {
+ let I = F.querySelector("button"), te = G6(I, "展开控件"), ne = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), I.setAttribute("aria-expanded", String(t)), te(t ? "收起控件" : "展开控件");
};
I.onclick = (t) => {
@@ -73246,7 +73497,7 @@ function Gze(e) {
}, ie = new ResizeObserver(re);
ie.observe(e.el()), e.on("dispose", () => ie.disconnect()), ne(!1), re();
}
-function Kze(e, n, r = {}) {
+function tBe(e, n, r = {}) {
let i = e.getChild("controlBar")?.el()?.querySelector(".vjs-progress-control");
if (!i || i.querySelector("[data-player-seek-preview]")) return;
let o = r.thumbnail !== !1, s = document.createElement("div");
@@ -73279,13 +73530,13 @@ function Kze(e, n, r = {}) {
i.removeEventListener("pointermove", g), i.removeEventListener("pointerleave", _);
});
}
-function qze(e, t) {
+function nBe(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => p(e.duration()) || p(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(E6().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(T6().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -73326,11 +73577,11 @@ function qze(e, t) {
} catch {}
});
}
-function Jze(e) {
+function rBe(e) {
let t = e.el().querySelector(".vjs-loading-spinner");
!t || t.querySelector(".vjs-peach-spinner-container") || (t.innerHTML = "<span class=\"vjs-peach-spinner-container\"><span class=\"vjs-peach-spinner-rotator\"><span class=\"vjs-peach-spinner-left\"><span class=\"vjs-peach-spinner-circle\"></span></span><span class=\"vjs-peach-spinner-right\"><span class=\"vjs-peach-spinner-circle\"></span></span></span></span>");
}
-function Yze(e, n) {
+function iBe(e, n) {
t(`/api/assets/${n}/subtitles`).then((t) => {
!e || e.isDisposed() || (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -73345,7 +73596,7 @@ function Yze(e, n) {
}
//#endregion
//#region src/player/dispose.ts
-function X6(e) {
+function Y6(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
@@ -73363,23 +73614,23 @@ function X6(e) {
}
//#endregion
//#region src/player/stream.ts
-function Z6() {
+function X6() {
return globalThis.crypto?.randomUUID?.() || `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
}
-function Q6(e, t) {
+function Z6(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function Xze(e) {
+function aBe(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function $6(e, n) {
- let r = Xze(e);
+async function Q6(e, n) {
+ let r = aBe(e);
if (r) return r;
try {
let r = await t(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(n)}`);
@@ -73388,9 +73639,9 @@ async function $6(e, n) {
type: r.mime_type || "application/vnd.apple.mpegurl"
};
} catch {}
- return Q6(e, n);
+ return Z6(e, n);
}
-function e8(e) {
+function $6(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -73399,21 +73650,21 @@ function e8(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var t8 = "";
+var e8 = "";
+function t8() {
+ return e8;
+}
function n8() {
- return t8;
+ return e8 ||= X6(), e8;
}
+var oBe = (e) => Z6(e, n8()), sBe = (e) => Q6(e, n8());
function r8() {
- return t8 ||= Z6(), t8;
-}
-var Zze = (e) => Q6(e, r8()), Qze = (e) => $6(e, r8());
-function i8() {
- let e = t8;
- e && (t8 = "", e8(e));
+ let e = e8;
+ e && (e8 = "", $6(e));
}
//#endregion
//#region src/player/telemetry.ts
-function a8(e, n, r = {}) {
+function i8(e, n, r = {}) {
if (!n) return;
let i = 0, a = 0, o = 0, s = null;
n.addEventListener("seeking", () => {
@@ -73461,7 +73712,7 @@ function a8(e, n, r = {}) {
d(), u(!1);
}, { once: !0 }), l();
}
-function $ze(e, n) {
+function cBe(e, n) {
let r = 0, i = 0, a = !1, o = null, s = (r) => {
let a = p(e.duration) || p(n.duration);
!i && !r || (t("/api/follow/activity", {
@@ -73497,7 +73748,7 @@ function $ze(e, n) {
}
//#endregion
//#region src/player/videojs.ts
-var o8 = "/vendor/videojs/8.24.1/", s8 = (e) => new Promise((t, n) => {
+var a8 = "/vendor/videojs/8.24.1/", o8 = (e) => new Promise((t, n) => {
let r = document.head.querySelector(`script[src="${e}"]`);
if (r?.dataset.loaded) {
t();
@@ -73509,20 +73760,20 @@ var o8 = "/vendor/videojs/8.24.1/", s8 = (e) => new Promise((t, n) => {
}, { once: !0 }), i.addEventListener("error", () => {
i.remove(), n(/* @__PURE__ */ Error(`script unavailable: ${e}`));
}, { once: !0 }), r || (i.src = e, document.head.appendChild(i));
-}), c8 = () => globalThis.videojs, l8 = null;
-function u8() {
- let e = c8();
- return e ? Promise.resolve(e) : (l8 ??= s8(`${o8}video.min.js`).then(() => s8(`${o8}lang/zh-CN.js`)).then(() => {
- let e = c8();
+}), s8 = () => globalThis.videojs, c8 = null;
+function l8() {
+ let e = s8();
+ return e ? Promise.resolve(e) : (c8 ??= o8(`${a8}video.min.js`).then(() => o8(`${a8}lang/zh-CN.js`)).then(() => {
+ let e = s8();
if (!e) throw Error("videojs unavailable");
return e;
}).catch((e) => {
- throw l8 = null, e;
- }), l8);
+ throw c8 = null, e;
+ }), c8);
}
//#endregion
//#region src/player/immerse-player.ts
-var eBe = {
+var lBe = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -73534,37 +73785,37 @@ var eBe = {
errorDisplay: !1,
textTrackSettings: !1
};
-function tBe(e, t) {
+function uBe(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([$6(n, r), u8().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([Q6(n, r), l8().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = Q6(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = Z6(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, eBe);
+ let t = s(e, lBe);
i = t, l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- a8(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ i8(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, e8(r), i ? X6(i) : (e.pause(), e.removeAttribute("src"), e.load()));
+ a || (a = !0, $6(r), i ? Y6(i) : (e.pause(), e.removeAttribute("src"), e.load()));
};
}
//#endregion
//#region src/player/detail-player.ts
-var d8 = /* @__PURE__ */ new WeakMap(), f8 = null, p8 = null, m8 = null;
-function h8() {
- f8 &&= (clearInterval(f8), null), p8 &&= (clearInterval(p8), null), m8 &&= (clearTimeout(m8), null);
+var u8 = /* @__PURE__ */ new WeakMap(), d8 = null, f8 = null, p8 = null;
+function m8() {
+ d8 &&= (clearInterval(d8), null), f8 &&= (clearInterval(f8), null), p8 &&= (clearTimeout(p8), null);
}
-async function nBe(e, t, n, r = {}) {
- let o = M6();
+async function dBe(e, t, n, r = {}) {
+ let o = j6();
if (o && !o.isDisposed()) return o;
- let c = E6(), u = r.resume ?? null;
+ let c = T6(), u = r.resume ?? null;
u?.autoplay && (n = !0);
- let d = () => r.source ? Promise.resolve(r.source) : Qze(e), f;
+ let d = () => r.source ? Promise.resolve(r.source) : sBe(e), f;
try {
- f = await u8();
+ f = await l8();
} catch {
return t.controls = !0, d().then((e) => {
t.src = e.src, n && t.play().catch(() => {});
@@ -73584,7 +73835,7 @@ async function nBe(e, t, n, r = {}) {
remainingTimeDisplay: !1
}
});
- N6(m), m.peachItem = e, Ize(m), m.on("loadedmetadata", () => {
+ M6(m), m.peachItem = e, Gze(m), m.on("loadedmetadata", () => {
let e = m.el()?.querySelector("video");
e?.videoWidth && e.videoHeight && m.el().style.setProperty("--peach-video-ratio", `${e.videoWidth}/${e.videoHeight}`);
});
@@ -73592,7 +73843,7 @@ async function nBe(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, _ = Number(r.size ?? e.size) || 0, v = Rze(L6(_, e.duration)), y = 0, b = !1, x = () => M6() === m && !m.isDisposed(), S = () => {
+ }, _ = Number(r.size ?? e.size) || 0, v = qze(I6(_, e.duration)), y = 0, b = !1, x = () => j6() === m && !m.isDisposed(), S = () => {
if (!h || b || !x()) return;
let e = Number(m.duration());
(!Number.isFinite(e) || Math.abs(e - h) > Math.max(2, h * .001)) && (b = !0, m.duration(h), queueMicrotask(() => {
@@ -73603,15 +73854,15 @@ async function nBe(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- d8.set(m, w), w.updateStats = () => {
+ u8.set(m, w), w.updateStats = () => {
let n = w.chrome?.statsPanel;
if (!n || n.hidden || !x()) return;
- let o = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, c = t.getBoundingClientRect(), l = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, u = C(), d = n8(), f = u ? H6(e.id, d) : [], p = f.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = f.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+ let o = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, c = t.getBoundingClientRect(), l = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, u = C(), d = t8(), f = u ? V6(e.id, d) : [], p = f.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = f.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
v.sample(t);
- let S = W6(m, e.id, d, u ? null : v) || (b > 0 ? p * 8 / b : 0), T = u ? p : v.bitrate > 0 ? v.bytes() : v.seconds, E = Math.max(0, T - y);
+ let S = U6(m, e.id, d, u ? null : v) || (b > 0 ? p * 8 / b : 0), T = u ? p : v.bitrate > 0 ? v.bytes() : v.seconds, E = Math.max(0, T - y);
y = T;
- let D = F6(t);
- z6(g.speed, S), z6(g.activity, E), z6(g.buffer, D);
+ let D = P6(t);
+ R6(g.speed, S), R6(g.activity, E), R6(g.buffer, D);
let O = String(e.name || ""), k = (O.includes(".") ? O.split(".").pop() || "" : u ? "" : String(m.currentSource()?.type || "").split("/").pop() || "").toUpperCase() || "—", A = S ? `${(S / 1e6).toFixed(1)} Mbps` : "—", j = u || v.bitrate > 0, M = u ? [
"网络活动",
`${p ? s(p) : "—"} · ${f.length} 请求`,
@@ -73629,17 +73880,17 @@ async function nBe(e, t, n, r = {}) {
[
"连接速度",
A,
- V6(g.speed, "speed", Math.max(1e7, ...g.speed), `连接速度 ${A === "—" ? "暂无数据" : A}`)
+ B6(g.speed, "speed", Math.max(1e7, ...g.speed), `连接速度 ${A === "—" ? "暂无数据" : A}`)
],
[
M[0],
M[1],
- V6(g.activity, "activity", Math.max(1, ...g.activity), M[2])
+ B6(g.activity, "activity", Math.max(1, ...g.activity), M[2])
],
[
"缓冲健康",
`${D.toFixed(1)} 秒`,
- V6(g.buffer, "buffer", 30, `当前可连续播放 ${D.toFixed(1)} 秒`)
+ B6(g.buffer, "buffer", 30, `当前可连续播放 ${D.toFixed(1)} 秒`)
],
["播放时间", `${a(t.currentTime)} / ${a(h || m.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -73655,15 +73906,15 @@ async function nBe(e, t, n, r = {}) {
if (!n || m.isDisposed()) return;
let r = C();
r || v.sample(t);
- let a = W6(m, e.id, n8(), r ? null : v), o = r ? G6(a) : Bze(a, F6(t));
+ let a = U6(m, e.id, t8(), r ? null : v), o = r ? W6(a) : Yze(a, P6(t));
n.innerHTML = `${l("gauge")}<span class="sr-only">加载速度</span><span>${i(o)}</span>`;
}, O = () => {
let e = w.chrome?.netBadge;
- !e || !e.isConnected || (e.hidden = !1, D(), p8 && clearInterval(p8), p8 = setInterval(D, 500));
+ !e || !e.isConnected || (e.hidden = !1, D(), f8 && clearInterval(f8), f8 = setInterval(D, 500));
}, k = () => {
let e = w.chrome?.netBadge;
- e && (m8 && clearTimeout(m8), m8 = setTimeout(() => {
- e.hidden = !0, p8 &&= (clearInterval(p8), null);
+ e && (p8 && clearTimeout(p8), p8 = setTimeout(() => {
+ e.hidden = !0, f8 &&= (clearInterval(f8), null);
}, 1400));
};
return m.on([
@@ -73675,7 +73926,7 @@ async function nBe(e, t, n, r = {}) {
D(), k();
}), m.on("error", () => {
if (T && !E && !m.isDisposed()) {
- E = !0, T = !1, m.src(Zze(e)), n && m.play()?.catch(() => {});
+ E = !0, T = !1, m.src(oBe(e)), n && m.play()?.catch(() => {});
return;
}
r.checkSourceStatus !== !1 && c.loadSourceStatus().then((t) => {
@@ -73686,27 +73937,27 @@ async function nBe(e, t, n, r = {}) {
});
}), m.ready(() => {
S();
- let n = Uze(m, t, e.height, r.qualities ?? null);
+ let n = Qze(m, t, e.height, r.qualities ?? null);
r.mediaPromise?.then((t) => {
if (!x()) return;
n?.(t?.qualities?.length ? t.qualities : null);
let r = Number(t?.size) || 0;
- r > 0 && !_ && (_ = r, v.bitrate = L6(r, e.duration));
- }).catch(() => {}), Kze(m, e, { thumbnail: !r.source }), qze(m, e), Jze(m), r.source || Yze(m, e.id), w.ready = !0, w.chrome?.statsButton && (w.chrome.statsButton.hidden = !1);
+ r > 0 && !_ && (_ = r, v.bitrate = I6(r, e.duration));
+ }).catch(() => {}), tBe(m, e, { thumbnail: !r.source }), nBe(m, e), rBe(m), r.source || iBe(m, e.id), w.ready = !0, w.chrome?.statsButton && (w.chrome.statsButton.hidden = !1);
}), d().then((e) => {
x() && (T = String(e.type || "").includes("mpegurl"), m.src(e), S(), setTimeout(S, 0), setTimeout(S, 250), u && u.time > 0 && m.one("loadedmetadata", () => {
m.isDisposed() || m.currentTime(u.time);
}), n && m.play()?.catch(() => {}));
}).catch(() => {}), m;
}
-var rBe = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function g8(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", rBe), e.querySelector(":scope > #playerStatsBtn")) return;
+var fBe = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function h8(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", fBe), e.querySelector(":scope > #playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = zze(), e.insertBefore(n.content, t);
+ n.innerHTML = Jze(), e.insertBefore(n.content, t);
}
-function _8(e, t) {
- let n = d8.get(e);
+function g8(e, t) {
+ let n = u8.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`:scope > #${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -73718,29 +73969,29 @@ function _8(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), f8 &&= (clearInterval(f8), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), d8 &&= (clearInterval(d8), null));
};
a.onclick = () => {
if (!o.hidden) {
e();
return;
}
- document.dispatchEvent(new CustomEvent(B6, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), f8 && clearInterval(f8), f8 = setInterval(n.updateStats, 1e3);
+ document.dispatchEvent(new CustomEvent(z6, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), d8 && clearInterval(d8), d8 = setInterval(n.updateStats, 1e3);
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(B6, t), s = () => document.removeEventListener(B6, t);
+ document.addEventListener(z6, t), s = () => document.removeEventListener(z6, t);
}
- let c = e.el().querySelector("video"), l = c ? Hze(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, h8()));
+ let c = e.el().querySelector("video"), l = c ? Zze(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, m8()));
};
return e.one("dispose", d), d;
}
-function v8(e, n) {
- if (n.kind === "immerse") return tBe(e, n);
- let { kind: r, item: i, media: a = null, handedOff: o, onPlayer: s } = n, c = E6(), l = n.chrome === !1 ? null : e.parentElement;
- l && g8(l, e);
+function _8(e, n) {
+ if (n.kind === "immerse") return uBe(e, n);
+ let { kind: r, item: i, media: a = null, handedOff: o, onPlayer: s } = n, c = T6(), l = n.chrome === !1 ? null : e.parentElement;
+ l && h8(l, e);
let u = { resume: n.resume ?? null };
if (r === "follow") u = {
...u,
@@ -73760,16 +74011,16 @@ function v8(e, n) {
method: "POST",
body: JSON.stringify({ id: i.id })
}).catch(() => {});
- }, { once: !0 }), a8(i, e, {
+ }, { once: !0 }), i8(i, e, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
});
}
let d = null, f = !1, p = () => {}, m = () => {
- p(), !(!d || o?.(d)) && (M6() === d && (N6(null), h8()), X6(d));
+ p(), !(!d || o?.(d)) && (j6() === d && (M6(null), m8()), Y6(d));
};
- return nBe(i, e, n.autoplay ?? c.settings().detailAutoplay, u).then((t) => {
+ return dBe(i, e, n.autoplay ?? c.settings().detailAutoplay, u).then((t) => {
if (d = t, f) {
m();
return;
@@ -73778,47 +74029,47 @@ function v8(e, n) {
s?.(null);
return;
}
- l && (p = _8(t, l)), r === "follow" && $ze(i, e), s?.(t);
+ l && (p = g8(t, l)), r === "follow" && cBe(i, e), s?.(t);
}), () => {
f = !0, m();
};
}
//#endregion
//#region src/player/playback.ts
-function y8(e) {
+function v8(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function iBe(e, t) {
+function pBe(e, t) {
let n = e.duration, r = (e.currentTime || 0) + t;
e.currentTime = Number.isFinite(n) ? Math.max(0, Math.min(n, r)) : Math.max(0, r);
}
//#endregion
//#region src/react/item-detail/item-detail.ts
-var b8 = (e) => ["item", e], x8 = (e) => [
+var y8 = (e) => ["item", e], b8 = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], aBe = (e, t) => [
+], mBe = (e, t) => [
"item-related",
e,
t
-], oBe = (e) => `/api/item?id=${e}`, sBe = (e, t) => `/api/related?id=${e}&limit=${t}`, S8 = "/api/playlist", C8 = "/api/feedback", w8 = "/api/item-tag", T8 = "/api/watch-later", E8 = "/api/quality-goal", D8 = "/api/preference", O8 = class extends Error {};
-async function k8(e, t) {
- let n = await W(oBe(e), t);
- if (n.error) throw new O8(n.error);
+], hBe = (e) => `/api/item?id=${e}`, gBe = (e, t) => `/api/related?id=${e}&limit=${t}`, x8 = "/api/playlist", S8 = "/api/feedback", C8 = "/api/item-tag", w8 = "/api/watch-later", T8 = "/api/quality-goal", E8 = "/api/preference", D8 = class extends Error {};
+async function O8(e, t) {
+ let n = await W(hBe(e), t);
+ if (n.error) throw new D8(n.error);
return n;
}
-async function A8(e, t, n) {
+async function k8(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([k8(r, n), t.mixRelated(r)]);
- return J.setQueryData(b8(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([O8(r, n), t.mixRelated(r)]);
+ return J.setQueryData(y8(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${t.mixLabel(i)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return j8(await W(`${S8}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return A8(await W(`${x8}?id=${e.playlistId}`, n));
let r = await W(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
@@ -73828,19 +74079,19 @@ async function A8(e, t, n) {
items: r.items
};
}
-var j8 = (e) => ({
+var A8 = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), M8 = (e) => e.disposal === "vanished";
-function N8(e, t) {
+}), j8 = (e) => e.disposal === "vanished";
+function M8(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !M8(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !j8(e)) : e.items;
return n.length ? t != null && n.some((e) => e.id === t) ? t : e.kind === "playlist" && n.some((t) => t.id === e.currentAssetId) ? e.currentAssetId : n[0].id : null;
}
-function cBe(e, t) {
+function _Be(e, t) {
if (t?.kind !== "parts") return e;
let n = t.items.find((t) => t.id === e.id)?.part_label || "";
return e.part_label === n ? e : {
@@ -73848,14 +74099,14 @@ function cBe(e, t) {
part_label: n
};
}
-async function lBe(e, t) {
+async function vBe(e, t) {
let { queue: n, actions: r } = e, i = null;
if (n) {
- let a = x8(n);
+ let a = b8(n);
try {
i = (n.fresh ? void 0 : J.getQueryData(a)) || await J.fetchQuery({
queryKey: a,
- queryFn: () => A8(n, e.helpers, t),
+ queryFn: () => k8(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -73868,19 +74119,19 @@ async function lBe(e, t) {
}
e.grid.cache(i.items);
}
- let a = i ? N8(i, e.id) : e.id;
+ let a = i ? M8(i, e.id) : e.id;
if (a == null) {
r.redirect(i?.kind === "playlist" ? { kind: "playlists" } : { kind: "gone" });
return;
}
let o;
try {
- o = J.getQueryData(b8(a)) || await J.fetchQuery({
- queryKey: b8(a),
- queryFn: () => k8(a, t)
+ o = J.getQueryData(y8(a)) || await J.fetchQuery({
+ queryKey: y8(a),
+ queryFn: () => O8(a, t)
});
} catch (e) {
- if (e instanceof O8) {
+ if (e instanceof D8) {
r.redirect({ kind: "gone" });
return;
}
@@ -73891,7 +74142,7 @@ async function lBe(e, t) {
id: Number(o.follow_item_id)
});
}
-function uBe(e) {
+function yBe(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
let t = c(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
@@ -73912,42 +74163,42 @@ function uBe(e) {
unowned: !i.length && !l.length && !String(e.creator || "").trim()
};
}
-var P8 = (e) => Math.min(Math.max(e || 0, 0), 100), F8 = (e) => Math.round(P8(e) / 20), dBe = (e) => {
- let t = F8(e);
+var N8 = (e) => Math.min(Math.max(e || 0, 0), 100), P8 = (e) => Math.round(N8(e) / 20), bBe = (e) => {
+ let t = P8(e);
return t ? `${t} 星` : "未评分";
-}, fBe = (e, t) => {
+}, xBe = (e, t) => {
let n = t * 20;
return n === (e || 0) ? 0 : n;
};
-function pBe(e, t) {
+function SBe(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
let r = c(t.tagLabel(e.k)), i = n.get(r);
(!i || c(e.k) === r && c(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
-var I8 = (e, t) => (e.tags || []).some((e) => c(e.k) === c(t)), L8 = (e, t) => ({
+var F8 = (e, t) => (e.tags || []).some((e) => c(e.k) === c(t)), I8 = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => c(e.k) !== c(t))
-}), R8 = (e, t) => I8(e, t.k) ? e : {
+}), L8 = (e, t) => F8(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, z8 = "peach.recentTags";
-function B8() {
+}, R8 = "peach.recentTags";
+function z8() {
try {
- let e = JSON.parse(localStorage.getItem(z8) || "[]");
+ let e = JSON.parse(localStorage.getItem(R8) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function mBe(e) {
+function CBe(e) {
try {
- let t = B8().filter((t) => c(t) !== c(e));
- localStorage.setItem(z8, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = z8().filter((t) => c(t) !== c(e));
+ localStorage.setItem(R8, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function hBe(e, t, n) {
+function wBe(e, t, n) {
let r = c(e), i = new Map(t.map((e) => [c(e.k), e])), a = t.filter((e) => !r || c(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(c(e)) || {
k: e,
n: 0
@@ -73958,73 +74209,73 @@ function hBe(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var gBe = {
+var TBe = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, _Be = {
+}, EBe = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function vBe(e) {
+function DBe(e) {
let t = e.items.length, n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;
return {
- title: _Be[e.kind],
+ title: EBe[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var V8 = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, yBe = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${i(V8(e.part_label))}</small>` : "";
-function bBe(e, t, n, r) {
+var B8 = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, OBe = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${i(B8(e.part_label))}</small>` : "";
+function kBe(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var xBe = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function SBe(e, t) {
+var ABe = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function jBe(e, t) {
return t ? "offline" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";
}
-function CBe(e) {
+function MBe(e) {
let t = Number(e.duration) > 0 ? Number(e.duration) : 0;
return !e.play_seconds || !t ? null : Math.min(Number(e.play_seconds) / t, 1) * 100;
}
-function H8(e, t) {
+function V8(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
//#endregion
//#region src/react/immerse/immerse.ts
-var wBe = (e, t, n) => [
+var NBe = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function TBe(e) {
+function PBe(e) {
let t = new URLSearchParams();
for (let [n, r] of Object.entries(e)) r && t.set(n, String(r));
return t.delete("orient"), t.set("sort", "rand"), t.set("limit", "60"), t.set("offset", "0"), t.set("thumb", ""), t.toString();
}
-var EBe = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));
-function DBe(e, t = Math.random) {
+var FBe = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));
+function IBe(e, t = Math.random) {
for (let n = e.length - 1; n > 0; n--) {
let r = Math.floor(t() * (n + 1));
[e[n], e[r]] = [e[r], e[n]];
}
return e;
}
-async function OBe(e, t) {
- return DBe(((await W(`/api/items?${e}`)).items || []).filter((e) => EBe(e, t)));
+async function LBe(e, t) {
+ return IBe(((await W(`/api/items?${e}`)).items || []).filter((e) => FBe(e, t)));
}
-var U8 = (e) => J.ensureQueryData({
- queryKey: b8(e),
- queryFn: ({ signal: t }) => k8(e, t)
+var H8 = (e) => J.ensureQueryData({
+ queryKey: y8(e),
+ queryFn: ({ signal: t }) => O8(e, t)
});
-function kBe(e, t) {
+function RBe(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function ABe(e) {
+function zBe(e) {
let t = e.performers || [], n = t.length ? t.slice(0, 3).join("、") + (t.length > 3 ? ` 等 ${t.length} 人` : "") : e.creator || "未归属", r = t.length ? "performer" : e.creator ? "creator" : "";
return {
who: n,
@@ -74033,313 +74284,313 @@ function ABe(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function jBe(e, t, n) {
+function BBe(e, t, n) {
if (!e || !t || !n || !Number.isFinite(n)) return null;
let r = e / t;
return (r > n ? r / n : n / r) > 1.05 ? "contain" : "cover";
}
-function MBe(e, t) {
+function VBe(e, t) {
return e.videoWidth && e.videoHeight ? e.videoWidth >= e.videoHeight : !!(t.width && t.height && t.width > 0 && t.height > 0 && t.width >= t.height);
}
-var NBe = 15e3, W8 = {
+var HBe = 15e3, U8 = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, G8 = null, K8 = null, q8 = null, J8 = null, Y8 = W8, X8 = 0, Z8 = 0, Q8 = 0, $8 = "", e5 = [], t5 = 0, n5 = !1, r5 = !1, i5 = null, a5 = /* @__PURE__ */ new Set(), o5 = "", s5 = null, c5 = 0, l5 = null, u5 = !1;
-function d5() {
- if (!G8) throw Error("沉浸岛还没有接上宿主(configureImmerse)");
- return G8;
+}, W8 = null, G8 = null, K8 = null, q8 = null, J8 = U8, Y8 = 0, X8 = 0, Z8 = 0, Q8 = "", $8 = [], e5 = 0, t5 = !1, n5 = !1, r5 = null, i5 = /* @__PURE__ */ new Set(), a5 = "", o5 = null, s5 = 0, c5 = null, l5 = !1;
+function u5() {
+ if (!W8) throw Error("沉浸岛还没有接上宿主(configureImmerse)");
+ return W8;
}
-function PBe() {
- return (!K8 || !q8?.isConnected) && (K8?.unmount(), q8 = document.createElement("div"), q8.dataset.immerseHost = "", document.body.append(q8), K8 = (0, ze.createRoot)(q8)), K8;
+function UBe() {
+ return (!G8 || !K8?.isConnected) && (G8?.unmount(), K8 = document.createElement("div"), K8.dataset.immerseHost = "", document.body.append(K8), G8 = (0, ze.createRoot)(K8)), G8;
}
-function f5() {
- let e = PBe();
- (0, Re.flushSync)(() => e.render(/* @__PURE__ */ (0, z.jsx)(fI, { children: /* @__PURE__ */ (0, z.jsx)(QBe, { view: Y8 }) })));
+function d5() {
+ let e = UBe();
+ (0, Re.flushSync)(() => e.render(/* @__PURE__ */ (0, z.jsx)(pI, { children: /* @__PURE__ */ (0, z.jsx)(sVe, { view: J8 }) })));
}
-function p5() {
- let e = s5 ? U6(s5.id) : 0;
- return e ? `${o5} · ${G6(e)}` : o5;
+function f5() {
+ let e = o5 ? H6(o5.id) : 0;
+ return e ? `${a5} · ${W6(e)}` : a5;
}
-function m5(e, t = null) {
- if (clearInterval(c5), c5 = 0, e === null) {
- Y8 = {
- ...Y8,
+function p5(e, t = null) {
+ if (clearInterval(s5), s5 = 0, e === null) {
+ J8 = {
+ ...J8,
loading: null
- }, f5();
+ }, d5();
return;
}
- o5 = e, s5 = t, Y8 = {
- ...Y8,
- loading: p5()
- }, f5(), c5 = window.setInterval(() => {
- s5 = e5[t5] ?? null, Y8 = {
- ...Y8,
- loading: p5()
- }, f5();
+ a5 = e, o5 = t, J8 = {
+ ...J8,
+ loading: f5()
+ }, d5(), s5 = window.setInterval(() => {
+ o5 = $8[e5] ?? null, J8 = {
+ ...J8,
+ loading: f5()
+ }, d5();
}, 500);
}
-function FBe(e) {
+function WBe(e) {
let t = document.createElement("div");
t.dataset.immerseSlide = "", e && (t.style.transform = `translateY(${e}%)`);
let n = document.createElement("video");
- n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), J8.track.append(t);
- let r = Z6(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), q8.track.append(t);
+ let r = X6(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => e8(r),
+ release: () => $6(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return a5.add(a), a;
+ return i5.add(a), a;
}
-function IBe(e, t) {
+function GBe(e, t) {
return new Promise((n) => {
- e.release = v8(e.video, {
+ e.release = _8(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- Y8.open && x5(1);
+ J8.open && b5(1);
}
}), e.gone.then(n);
});
}
-function h5(e) {
- !e || e.disposed || (e.disposed = !0, a5.delete(e), e.leave(), e.release(), e.el.remove(), i5 === e && (i5 = null));
+function m5(e) {
+ !e || e.disposed || (e.disposed = !0, i5.delete(e), e.leave(), e.release(), e.el.remove(), r5 === e && (r5 = null));
}
-var g5 = [
+var h5 = [
"loadeddata",
"canplay",
"error"
];
-function LBe(e) {
+function KBe(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), g5.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), h5.forEach((e) => t.removeEventListener(e, i)), n());
};
- g5.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, NBe);
+ h5.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, HBe);
e.gone.then(i);
});
}
-function _5(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = jBe(e.videoWidth, e.videoHeight, n);
+function g5(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = BBe(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var v5 = () => J8?.track.querySelectorAll("video").forEach(_5);
-function RBe(e) {
- delete e.dataset.fit, e.readyState >= 1 ? _5(e) : e.addEventListener("loadedmetadata", () => _5(e), { once: !0 });
+var _5 = () => q8?.track.querySelectorAll("video").forEach(g5);
+function qBe(e) {
+ delete e.dataset.fit, e.readyState >= 1 ? g5(e) : e.addEventListener("loadedmetadata", () => g5(e), { once: !0 });
}
-function zBe(e) {
- Y8 = {
- ...Y8,
+function JBe(e) {
+ J8 = {
+ ...J8,
wide: e
- }, f5(), v5();
+ }, d5(), _5();
}
-var y5 = () => {
- let e = $8;
+var v5 = () => {
+ let e = Q8;
return J.fetchQuery({
- queryKey: wBe(e, Z8, Q8),
- queryFn: () => OBe(e, d5().sourceOffline),
+ queryKey: NBe(e, X8, Z8),
+ queryFn: () => LBe(e, u5().sourceOffline),
staleTime: Infinity
});
};
-function BBe(e, t) {
+function YBe(e, t) {
let n = () => p(e.duration) || p(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && J8 && (J8.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), l5 = {
+ t && q8 && (q8.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), c5 = {
video: e,
duration: n
};
}
-async function b5(e = 0) {
- let t = e5[t5];
- if (!t || n5) return;
- let n = X8;
- d5().route(t.id), n5 = !0, m5(e ? "切换中…" : "加载中…", t);
+async function y5(e = 0) {
+ let t = $8[e5];
+ if (!t || t5) return;
+ let n = Y8;
+ u5().route(t.id), t5 = !0, p5(e ? "切换中…" : "加载中…", t);
let r = null;
try {
- if (await U8(t.id).catch((e) => {
- if (!(e instanceof O8)) throw e;
- }), n !== X8) return;
- let i = i5, a = !!(e && i);
- a || h5(i);
- let o = FBe(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, RBe(o.video), await IBe(o, t), await LBe(o), o.disposed || (zBe(MBe(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await H8(t.id).catch((e) => {
+ if (!(e instanceof D8)) throw e;
+ }), n !== Y8) return;
+ let i = r5, a = !!(e && i);
+ a || m5(i);
+ let o = WBe(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, qBe(o.video), await GBe(o, t), await KBe(o), o.disposed || (JBe(VBe(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
i.el.style.transform = `translateY(${e > 0 ? -100 : 100}%)`, o.el.style.transform = "";
- })), await new Promise((e) => setTimeout(e, 210)), h5(i), o.el.style.transform = ""), o.disposed)) return;
- i5 = o, r = null, o.video.play()?.catch(() => {}), Y8 = {
- ...Y8,
+ })), await new Promise((e) => setTimeout(e, 210)), m5(i), o.el.style.transform = ""), o.disposed)) return;
+ r5 = o, r = null, o.video.play()?.catch(() => {}), J8 = {
+ ...J8,
idle: !1,
shown: {
item: t,
- index: t5,
- length: e5.length
+ index: e5,
+ length: $8.length
}
- }, BBe(o.video, t), G("/api/play", { id: t.id }).catch(() => {}), m5(null);
+ }, YBe(o.video, t), G("/api/play", { id: t.id }).catch(() => {}), p5(null);
} catch {
- h5(r), n === X8 && m5(null);
+ m5(r), n === Y8 && p5(null);
} finally {
- n === X8 && (n5 = !1);
+ n === Y8 && (t5 = !1);
}
}
-async function x5(e) {
- if (n5 || !Y8.open) return;
- let t = X8;
- if (t5 += e, m5("切换中…", e5[t5] ?? null), t5 >= e5.length - 3 && !r5) {
- r5 = !0;
+async function b5(e) {
+ if (t5 || !J8.open) return;
+ let t = Y8;
+ if (e5 += e, p5("切换中…", $8[e5] ?? null), e5 >= $8.length - 3 && !n5) {
+ n5 = !0;
try {
- Q8 += 1;
- let e = await y5();
- t === X8 && (e5 = kBe(e5, e));
+ Z8 += 1;
+ let e = await v5();
+ t === Y8 && ($8 = RBe($8, e));
} catch {} finally {
- r5 = !1;
+ n5 = !1;
}
}
- t === X8 && (t5 >= e5.length && (t5 = 0), t5 < 0 && (t5 = e5.length - 1), await b5(e));
+ t === Y8 && (e5 >= $8.length && (e5 = 0), e5 < 0 && (e5 = $8.length - 1), await y5(e));
}
-async function VBe(e) {
- let t = ++X8;
- S5(), Z8 += 1, Q8 = 0, $8 = TBe(d5().filters()), J.removeQueries({ queryKey: ["immerse-list"] }), Y8 = {
- ...Y8,
+async function XBe(e) {
+ let t = ++Y8;
+ x5(), X8 += 1, Z8 = 0, Q8 = PBe(u5().filters()), J.removeQueries({ queryKey: ["immerse-list"] }), J8 = {
+ ...J8,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), m5("加载内容…");
+ }, document.body.setAttribute("data-immerse-open", ""), p5("加载内容…");
try {
- let n = await y5();
+ let n = await v5();
if (e && !n.some((t) => t.id === e)) {
- let t = await U8(e).catch((e) => {
- if (e instanceof O8) return null;
+ let t = await H8(e).catch((e) => {
+ if (e instanceof D8) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== X8) return;
- if (e5 = n, !e5.length) {
- C5(), d5().warn("当前筛选下没有可直接播放的内容");
+ if (t !== Y8) return;
+ if ($8 = n, !$8.length) {
+ S5(), u5().warn("当前筛选下没有可直接播放的内容");
return;
}
- t5 = Math.max(0, e5.findIndex((t) => t.id === e)), await b5();
+ e5 = Math.max(0, $8.findIndex((t) => t.id === e)), await y5();
} catch {
- if (t !== X8) return;
- m5(null), C5();
+ if (t !== Y8) return;
+ p5(null), S5();
}
}
-function S5() {
- clearInterval(c5), c5 = 0, k5(), D5 = null, l5 = null, u5 = !1, [...a5].forEach(h5), n5 = !1;
+function x5() {
+ clearInterval(s5), s5 = 0, O5(), E5 = null, c5 = null, l5 = !1, [...i5].forEach(m5), t5 = !1;
}
-function C5() {
- Y8.open && (X8++, S5(), Y8 = W8, document.body.removeAttribute("data-immerse-open"), f5(), d5().closed());
+function S5() {
+ J8.open && (Y8++, x5(), J8 = U8, document.body.removeAttribute("data-immerse-open"), d5(), u5().closed());
}
-var w5 = 0, T5 = null, E5 = 0, D5 = null, O5 = 0;
-function k5() {
- clearTimeout(w5), w5 = 0, T5 = null;
+var C5 = 0, w5 = null, T5 = 0, E5 = null, D5 = 0;
+function O5() {
+ clearTimeout(C5), C5 = 0, w5 = null;
}
-function HBe(e) {
- let t = i5?.video;
+function ZBe(e) {
+ let t = r5?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- if (T5 && T5.side === n && r - T5.at <= 280) {
- k5(), iBe(t, d5().seekSeconds() * n);
+ if (w5 && w5.side === n && r - w5.at <= 280) {
+ O5(), pBe(t, u5().seekSeconds() * n);
return;
}
- w5 && (clearTimeout(w5), w5 = 0, y8(t)), T5 = {
+ C5 && (clearTimeout(C5), C5 = 0, v8(t)), w5 = {
side: n,
at: r
- }, w5 = window.setTimeout(() => {
- w5 = 0, T5 = null, Y8.open && y8(i5?.video);
+ }, C5 = window.setTimeout(() => {
+ C5 = 0, w5 = null, J8.open && v8(r5?.video);
}, 280);
}
-function UBe() {
- Date.now() < E5 || y8(i5?.video);
+function QBe() {
+ Date.now() < T5 || v8(r5?.video);
}
-var A5 = (e) => J8?.bar.toggleAttribute("data-scrubbing", e);
-function j5(e) {
- J8 && (J8.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var k5 = (e) => q8?.bar.toggleAttribute("data-scrubbing", e);
+function A5(e) {
+ q8 && (q8.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function M5(e) {
+function j5(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- D5 = null;
+ E5 = null;
return;
}
- let n = i5?.video;
- D5 = {
+ let n = r5?.video;
+ E5 = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function N5(e) {
- if (!D5 || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - D5.x, n = e.touches[0].clientY - D5.y;
- if (!D5.axis) {
+function M5(e) {
+ if (!E5 || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - E5.x, n = e.touches[0].clientY - E5.y;
+ if (!E5.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- D5.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", D5.axis === "x" && A5(!0);
+ E5.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", E5.axis === "x" && k5(!0);
}
- if (D5.axis !== "x") return;
- let r = i5?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), D5.to = Math.min(i, Math.max(0, D5.from + t / window.innerWidth * i)), j5(D5.to / i));
+ if (E5.axis !== "x") return;
+ let r = r5?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), E5.to = Math.min(i, Math.max(0, E5.from + t / window.innerWidth * i)), A5(E5.to / i));
}
-function P5(e) {
- if (!D5) return;
- let t = D5;
- if (D5 = null, E5 = Date.now() + 700, A5(!1), t.axis === "x") {
- let e = i5?.video;
+function N5(e) {
+ if (!E5) return;
+ let t = E5;
+ if (E5 = null, T5 = Date.now() + 700, k5(!1), t.axis === "x") {
+ let e = r5?.video;
e && t.to != null && (e.currentTime = t.to);
return;
}
let n = e.changedTouches[0], r = n.clientX - t.x, i = t.y - n.clientY;
if (Math.abs(i) > 60) {
- k5(), x5(i > 0 ? 1 : -1);
+ O5(), b5(i > 0 ? 1 : -1);
return;
}
- Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), HBe(n.clientX));
+ Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), ZBe(n.clientX));
}
-function F5() {
- D5 = null, A5(!1);
+function P5() {
+ E5 = null, k5(!1);
}
-function I5(e) {
+function F5(e) {
let t = Date.now();
- t - O5 < 260 || (O5 = t, x5(e.deltaY > 0 ? 1 : -1));
+ t - D5 < 260 || (D5 = t, b5(e.deltaY > 0 ? 1 : -1));
}
-function L5(e) {
- let t = J8.bar.getBoundingClientRect();
+function I5(e) {
+ let t = q8.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
-function WBe(e) {
- l5?.duration() && (u5 = !0, A5(!0), e.currentTarget.setPointerCapture(e.pointerId), j5(L5(e)), e.preventDefault());
+function $Be(e) {
+ c5?.duration() && (l5 = !0, k5(!0), e.currentTarget.setPointerCapture(e.pointerId), A5(I5(e)), e.preventDefault());
}
-function GBe(e) {
- u5 && j5(L5(e));
+function eVe(e) {
+ l5 && A5(I5(e));
}
-function KBe(e) {
- if (!u5) return;
- u5 = !1, A5(!1);
- let t = l5?.duration();
- l5 && t && (l5.video.currentTime = t * L5(e));
+function tVe(e) {
+ if (!l5) return;
+ l5 = !1, k5(!1);
+ let t = c5?.duration();
+ c5 && t && (c5.video.currentTime = t * I5(e));
}
-function qBe() {
- u5 = !1, A5(!1);
+function nVe() {
+ l5 = !1, k5(!1);
}
-async function R5(e, t) {
- let n = await G(C8, {
+async function L5(e, t) {
+ let n = await G(S8, {
id: e,
kind: t
- }), r = J.getQueryData(b8(e));
+ }), r = J.getQueryData(y8(e));
if (!r) return eo(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
@@ -74349,15 +74600,15 @@ async function R5(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return J.setQueryData(b8(e), i), eo(e, {
+ return J.setQueryData(y8(e), i), eo(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
rating: i.rating,
o_count: i.o_count
- }), d5().cache(i), n;
+ }), u5().cache(i), n;
}
-var JBe = [
+var rVe = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -74374,31 +74625,31 @@ var JBe = [
label: "记一次高潮"
}
];
-function z5(e) {
+function R5(e) {
return Zn({
- queryKey: b8(e ?? 0),
- queryFn: ({ signal: t }) => k8(e, t),
+ queryKey: y8(e ?? 0),
+ queryFn: ({ signal: t }) => O8(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function YBe({ kind: e, glyph: t, label: n, id: r }) {
- let i = z5(r), a = Qn({
+function iVe({ kind: e, glyph: t, label: n, id: r }) {
+ let i = R5(r), a = Qn({
mutationFn: async (t) => {
- let n = J.getQueryData(b8(t))?.feedback || null;
+ let n = J.getQueryData(y8(t))?.feedback || null;
return {
- result: await R5(t, e),
+ result: await L5(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- d5().toast(H8(e, t), { undo: async () => {
- e === "o" ? await R5(r, "o-undo") : (t.feedback && await R5(r, t.feedback), n && await R5(r, n));
+ u5().toast(V8(e, t), { undo: async () => {
+ e === "o" ? await L5(r, "o-undo") : (t.feedback && await L5(r, t.feedback), n && await L5(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- x5(1);
+ b5(1);
}, 260);
},
- onError: (e) => d5().failure("更新反馈", e)
+ onError: (e) => u5().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-immerse-action": "",
@@ -74429,11 +74680,11 @@ function YBe({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function XBe({ shown: e }) {
- let t = e?.item ?? null, n = z5(t?.id ?? null), r = n ? ABe(n) : null, i = d5(), a = (e) => {
- e.preventDefault(), n && (C5(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function aVe({ shown: e }) {
+ let t = e?.item ?? null, n = R5(t?.id ?? null), r = n ? zBe(n) : null, i = u5(), a = (e) => {
+ e.preventDefault(), n && (S5(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, s = () => {
- t && (C5(), i.openItem(t.id));
+ t && (S5(), i.openItem(t.id));
}, c = r ? i.avatarHtml(r.name, r.ref, r.kind || "performer") : "";
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-immerse-ui": "",
@@ -74462,18 +74713,18 @@ function XBe({ shown: e }) {
})]
});
}
-var ZBe = { __html: ie("媒体加载中") };
-function QBe({ view: e }) {
+var oVe = { __html: ie("媒体加载中") };
+function sVe({ view: e }) {
let t = (0, R.useRef)(null), n = (0, R.useRef)(null), r = (0, R.useRef)(null), i = (0, R.useRef)(null);
(0, R.useLayoutEffect)(() => {
let e = t.current;
- return J8 = {
+ return q8 = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", M5, { passive: !0 }), e.addEventListener("touchmove", N5, { passive: !1 }), e.addEventListener("touchend", P5, { passive: !1 }), e.addEventListener("touchcancel", F5, { passive: !0 }), e.addEventListener("wheel", I5, { passive: !0 }), () => {
- e.removeEventListener("touchstart", M5), e.removeEventListener("touchmove", N5), e.removeEventListener("touchend", P5), e.removeEventListener("touchcancel", F5), e.removeEventListener("wheel", I5), J8 = null;
+ }, e.addEventListener("touchstart", j5, { passive: !0 }), e.addEventListener("touchmove", M5, { passive: !1 }), e.addEventListener("touchend", N5, { passive: !1 }), e.addEventListener("touchcancel", P5, { passive: !0 }), e.addEventListener("wheel", F5, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", j5), e.removeEventListener("touchmove", M5), e.removeEventListener("touchend", N5), e.removeEventListener("touchcancel", P5), e.removeEventListener("wheel", F5), q8 = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -74490,10 +74741,10 @@ function QBe({ view: e }) {
children: [/* @__PURE__ */ (0, z.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: UBe
+ onClick: QBe
}), /* @__PURE__ */ (0, z.jsx)("div", {
"data-immerse-actions": "",
- children: JBe.map((e) => /* @__PURE__ */ (0, z.jsx)(YBe, {
+ children: rVe.map((e) => /* @__PURE__ */ (0, z.jsx)(iVe, {
...e,
id: a
}, e.kind))
@@ -74506,7 +74757,7 @@ function QBe({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, z.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: ZBe
+ dangerouslySetInnerHTML: oVe
}), /* @__PURE__ */ (0, z.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, z.jsx)("button", {
@@ -74514,7 +74765,7 @@ function QBe({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: C5,
+ onClick: S5,
children: /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, z.jsx)("use", { href: "#i-x" })
@@ -74523,71 +74774,71 @@ function QBe({ view: e }) {
/* @__PURE__ */ (0, z.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: WBe,
- onPointerMove: GBe,
- onPointerUp: KBe,
- onPointerCancel: qBe,
+ onPointerDown: $Be,
+ onPointerMove: eVe,
+ onPointerUp: tVe,
+ onPointerCancel: nVe,
children: /* @__PURE__ */ (0, z.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, z.jsx)(XBe, { shown: e.shown })
+ /* @__PURE__ */ (0, z.jsx)(aVe, { shown: e.shown })
]
});
}
-var $Be = {
- open: VBe,
- close: C5,
- isOpen: () => Y8.open,
- activeVideo: () => Y8.open ? i5?.video ?? null : null
+var cVe = {
+ open: XBe,
+ close: S5,
+ isOpen: () => J8.open,
+ activeVideo: () => J8.open ? r5?.video ?? null : null
};
-function eVe(e) {
- if (!Y8.open) return;
+function lVe(e) {
+ if (!J8.open) return;
let t = e.target;
- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && x5(1), e.key === "ArrowUp" && x5(-1));
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && b5(1), e.key === "ArrowUp" && b5(-1));
}
-function tVe(e) {
- let t = !G8;
- return G8 = e, f5(), t && (document.addEventListener("keydown", eVe), addEventListener("resize", () => {
- Y8.open && v5();
+function uVe(e) {
+ let t = !W8;
+ return W8 = e, d5(), t && (document.addEventListener("keydown", lVe), addEventListener("resize", () => {
+ J8.open && _5();
}), addEventListener("pagehide", () => {
- a5.forEach((e) => e8(e.session));
- })), $Be;
+ i5.forEach((e) => $6(e.session));
+ })), cVe;
}
//#endregion
//#region src/number-setting.ts
-function B5(e, t, n, r) {
+function z5(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
//#endregion
//#region src/react/settings/configuration-summary.tsx
-var nVe = (e) => {
+var dVe = (e) => {
let t = e.updates;
return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";
};
-function rVe({ openConfiguration: e }) {
+function fVe({ openConfiguration: e }) {
let t = Zn({
- queryKey: kI,
- queryFn: ({ signal: e }) => AI(e)
+ queryKey: AI,
+ queryFn: ({ signal: e }) => jI(e)
}), n = t.data;
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col",
- children: [n ? /* @__PURE__ */ (0, z.jsxs)(DO, { children: [
- /* @__PURE__ */ (0, z.jsx)(OO, {
+ children: [n ? /* @__PURE__ */ (0, z.jsxs)(sk, { children: [
+ /* @__PURE__ */ (0, z.jsx)(ck, {
term: "媒体库",
children: `${n.library_count} 个`
}),
- /* @__PURE__ */ (0, z.jsx)(OO, {
+ /* @__PURE__ */ (0, z.jsx)(ck, {
term: "端口",
children: String(n.port)
}),
- /* @__PURE__ */ (0, z.jsx)(OO, {
+ /* @__PURE__ */ (0, z.jsx)(ck, {
term: "更新",
- children: nVe(n)
+ children: dVe(n)
})
- ] }) : /* @__PURE__ */ (0, z.jsx)(xO, { children: /* @__PURE__ */ (0, z.jsx)(K, {
+ ] }) : /* @__PURE__ */ (0, z.jsx)(tk, { children: /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "配置读取失败",
children: t.error ? U(t.error) : "未取得配置,请刷新页面重试。"
- }) }), /* @__PURE__ */ (0, z.jsx)(SO, {
+ }) }), /* @__PURE__ */ (0, z.jsx)(nk, {
status: "媒体文件夹、端口、代理与更新在配置页上改。",
children: /* @__PURE__ */ (0, z.jsx)(H, {
onClick: e,
@@ -74598,14 +74849,14 @@ function rVe({ openConfiguration: e }) {
}
//#endregion
//#region src/react/settings-panel/icon.tsx
-function V5({ name: e }) {
+function B5({ name: e }) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
});
}
-function iVe({ name: e }) {
+function pVe({ name: e }) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -74614,16 +74865,16 @@ function iVe({ name: e }) {
}
//#endregion
//#region src/react/settings-panel/legacy-controls.tsx
-var H5 = (e) => e.map(([e, t, n]) => n ? [
+var V5 = (e) => e.map(([e, t, n]) => n ? [
e,
t,
n
] : [e, t]);
-function U5({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
+function H5({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
let u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(l);
return f.current = l, (0, R.useLayoutEffect)(() => {
let e = u.current;
- e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = D(t, n, H5(r), i, {
+ e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = D(t, n, V5(r), i, {
attr: a,
className: o,
text: s
@@ -74641,13 +74892,13 @@ function U5({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant:
ref: u
});
}
-function W5({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
+function U5({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
let d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(-1), m = (0, R.useRef)(l);
return m.current = l, (0, R.useLayoutEffect)(() => {
let e = d.current;
if (!e) return;
if (p.current !== c || !f.current) {
- e.innerHTML = I(H5(n), r, { label: t });
+ e.innerHTML = I(V5(n), r, { label: t });
let i = ue(e.firstElementChild);
i.addEventListener("change", () => m.current(i.value)), f.current = i, p.current = c;
}
@@ -74660,7 +74911,7 @@ function W5({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function aVe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function mVe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
let s = (0, R.useRef)(null), c = (0, R.useRef)(null), l = (0, R.useRef)({
onStep: a,
onSettle: o
@@ -74695,7 +74946,7 @@ function aVe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
}
//#endregion
//#region src/react/settings-panel/glow-settings.tsx
-var oVe = [
+var hVe = [
[
"strength",
"强度",
@@ -74722,7 +74973,7 @@ var oVe = [
100
]
];
-function sVe({ host: e, version: t }) {
+function gVe({ host: e, version: t }) {
let n = (0, R.useRef)(null), r = (0, R.useRef)(!1);
return (0, R.useLayoutEffect)(() => {
let t = n.current;
@@ -74735,7 +74986,7 @@ function sVe({ host: e, version: t }) {
ref: n
});
}
-function cVe({ host: e, spot: t, index: n, glow: r }) {
+function _Ve({ host: e, spot: t, index: n, glow: r }) {
let i = L[n], a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), [c, l] = (0, R.useState)("all");
(0, R.useLayoutEffect)(() => {
let [e, t, n] = [
@@ -74774,7 +75025,7 @@ function cVe({ host: e, spot: t, index: n, glow: r }) {
children: u
})]
}),
- /* @__PURE__ */ (0, z.jsx)(V5, { name: "chevron-down" })
+ /* @__PURE__ */ (0, z.jsx)(B5, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, z.jsxs)("div", {
className: "popmenu",
@@ -74813,7 +75064,7 @@ function cVe({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function lVe({ host: e, version: t }) {
+function vVe({ host: e, version: t }) {
let n = e.store.value.homeGlow, r = ge(n.preset);
return /* @__PURE__ */ (0, z.jsxs)("section", {
"data-glow-setting": "",
@@ -74832,7 +75083,7 @@ function lVe({ host: e, version: t }) {
children: he(n.preset)
})]
}),
- /* @__PURE__ */ (0, z.jsx)(sVe, {
+ /* @__PURE__ */ (0, z.jsx)(gVe, {
host: e,
version: t
}),
@@ -74843,7 +75094,7 @@ function lVe({ host: e, version: t }) {
}),
/* @__PURE__ */ (0, z.jsx)("div", {
"data-glow-fields": "",
- children: oVe.map(([t, i, a]) => /* @__PURE__ */ (0, z.jsx)(aVe, {
+ children: hVe.map(([t, i, a]) => /* @__PURE__ */ (0, z.jsx)(mVe, {
field: t,
label: i,
max: a,
@@ -74865,7 +75116,7 @@ function lVe({ host: e, version: t }) {
hidden: r,
children: [/* @__PURE__ */ (0, z.jsx)("h4", { children: "颜色" }), /* @__PURE__ */ (0, z.jsx)("div", {
"data-glow-stops": "",
- children: pe.map((t, r) => /* @__PURE__ */ (0, z.jsx)(cVe, {
+ children: pe.map((t, r) => /* @__PURE__ */ (0, z.jsx)(_Ve, {
host: e,
spot: t,
index: r,
@@ -74890,7 +75141,7 @@ function lVe({ host: e, version: t }) {
}
//#endregion
//#region src/react/settings-panel/number-setting.tsx
-var uVe = {
+var yVe = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -74931,10 +75182,10 @@ var uVe = {
optional: !0,
fallback: 60
}
-}, G5 = (e) => `peach.number.${e}`;
-function K5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = uVe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, R.useRef)(0);
- d.current ||= B5(Number(localStorage.getItem(G5(e))), o, s, n && n > 0 ? n : l);
+}, W5 = (e) => `peach.number.${e}`;
+function G5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
+ let a = yVe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, R.useRef)(0);
+ d.current ||= z5(Number(localStorage.getItem(W5(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, R.useState)(n ?? 0), [m, h] = (0, R.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, R.useState)(""), v = (0, R.useRef)(null), y = (0, R.useRef)(i);
y.current = i, (0, R.useLayoutEffect)(() => {
n !== null && (p(n), n > 0 && h(String(n)));
@@ -74946,7 +75197,7 @@ function K5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`);
return;
}
- t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(G5(e), String(d.current)), y.current(d.current);
+ t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(W5(e), String(d.current)), y.current(d.current);
}
}, x = (0, R.useRef)(b);
x.current = b, (0, R.useEffect)(() => {
@@ -74961,7 +75212,7 @@ function K5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
p(d.current), h(String(d.current)), y.current(d.current);
return;
}
- t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(G5(e), String(d.current)), p(0), y.current(0);
+ t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(W5(e), String(d.current)), p(0), y.current(0);
}, w = r || n === null;
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-number-setting": "",
@@ -75011,13 +75262,13 @@ function K5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
//#endregion
//#region src/react/sidebar/sidebar-order.ts
-function q5(e) {
+function K5(e) {
let { mutate: t } = Jc();
return (0, R.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
}
-function J5(e, t, n, r) {
+function q5(e, t, n, r) {
if (t === n) return null;
let i = [...e], a = i.indexOf(t);
if (a < 0) return null;
@@ -75027,17 +75278,17 @@ function J5(e, t, n, r) {
}
//#endregion
//#region src/react/settings-panel/sidebar-order.tsx
-var dVe = "__home__", Y5 = (e) => e === "" ? dVe : e;
-function fVe({ host: e }) {
- let t = q5(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, R.useState)(null), [c, l] = (0, R.useState)(!1), [u, d] = (0, R.useState)(null), [f, p] = (0, R.useState)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (e, r, i) => {
- let a = J5(n, e, r, i);
+var bVe = "__home__", J5 = (e) => e === "" ? bVe : e;
+function xVe({ host: e }) {
+ let t = K5(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, R.useState)(null), [c, l] = (0, R.useState)(!1), [u, d] = (0, R.useState)(null), [f, p] = (0, R.useState)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (e, r, i) => {
+ let a = q5(n, e, r, i);
a && t(a);
}, _ = (e, r) => {
let i = n.indexOf(e), a = i + r;
if (i < 0 || a < 0 || a >= n.length) return;
let o = [...n];
[o[i], o[a]] = [o[a], o[i]], t(o);
- }, v = a.find(([e]) => Y5(e) === o) ?? a[0], y = () => {
+ }, v = a.find(([e]) => J5(e) === o) ?? a[0], y = () => {
h.current && S(h.current), l(!1);
}, b = () => {
let e = h.current;
@@ -75058,7 +75309,7 @@ function fVe({ host: e }) {
}, w = (e) => ({
draggable: !0,
onDragStart: (t) => {
- d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", Y5(e));
+ d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", J5(e));
},
onDragOver: (t) => {
if (u === null || u === e) return;
@@ -75090,9 +75341,9 @@ function fVe({ host: e }) {
/* @__PURE__ */ (0, z.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, z.jsx)(V5, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, z.jsx)(B5, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, z.jsx)(V5, { name: a ?? "" }),
+ /* @__PURE__ */ (0, z.jsx)(B5, { name: a ?? "" }),
/* @__PURE__ */ (0, z.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, z.jsxs)("span", {
@@ -75106,7 +75357,7 @@ function fVe({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, z.jsx)(V5, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, z.jsx)(B5, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -75116,7 +75367,7 @@ function fVe({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, z.jsx)(V5, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, z.jsx)(B5, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -75128,11 +75379,11 @@ function fVe({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, z.jsx)(V5, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, z.jsx)(B5, { name: "eye-off" })
})
]
})]
- }, Y5(e))), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }, J5(e))), /* @__PURE__ */ (0, z.jsxs)("div", {
"data-sidebar-add-row": "",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
"data-sidebar-add-picker": "",
@@ -75148,13 +75399,13 @@ function fVe({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)(V5, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, z.jsx)(B5, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, z.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, z.jsx)(V5, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(V5, { name: "check" }), /* @__PURE__ */ (0, z.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, z.jsx)(B5, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(B5, { name: "check" }), /* @__PURE__ */ (0, z.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -75165,15 +75416,15 @@ function fVe({ host: e }) {
children: a.map(([e, t, n]) => /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
role: "option",
- "data-sidebar-add-option": Y5(e),
+ "data-sidebar-add-option": J5(e),
"aria-selected": v?.[0] === e,
tabIndex: v?.[0] === e ? 0 : -1,
onKeyDown: x,
onClick: () => {
- s(Y5(e)), y(), m.current?.focus();
+ s(J5(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, z.jsx)(V5, { name: n ?? "" }), /* @__PURE__ */ (0, z.jsx)("span", { children: t })]
- }, Y5(e)))
+ children: [/* @__PURE__ */ (0, z.jsx)(B5, { name: n ?? "" }), /* @__PURE__ */ (0, z.jsx)("span", { children: t })]
+ }, J5(e)))
}) : null]
}), /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -75190,7 +75441,7 @@ function fVe({ host: e }) {
}
//#endregion
//#region src/react/settings-panel/settings-panel.tsx
-var X5 = [
+var Y5 = [
["界面", "ri-palette-line"],
["浏览", "ri-layout-grid-line"],
["播放", "ri-play-circle-line"],
@@ -75198,7 +75449,7 @@ var X5 = [
["关注", "ri-rss-line"],
["安全", "ri-shield-check-line"],
["这台电脑", "ri-macbook-line"]
-], pVe = [
+], SVe = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -75207,21 +75458,21 @@ var X5 = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], mVe = [["desc", "降序"], ["asc", "升序"]], hVe = [
+], CVe = [["desc", "降序"], ["asc", "升序"]], wVe = [
["off", "关闭"],
["precise", "精准"],
["coarse", "粗略"]
-], gVe = [
+], TVe = [
["7", "每周"],
["30", "每月"],
["90", "每季"],
["0", "从不"]
-], _Ve = [
+], EVe = [
0,
7,
30,
90
-], vVe = [[
+], DVe = [[
"cover",
"官方封面",
""
@@ -75229,7 +75480,7 @@ var X5 = [
"thumbnail",
"预览图",
""
-]], yVe = [
+]], OVe = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -75254,91 +75505,91 @@ var X5 = [
"feedHideExcerptDescription",
"把出过的正片剪成十几分钟单卖的,比如ハイライト厂牌。"
]
-], bVe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", Z5 = null, Q5 = null, $5 = null, e7 = {
+], kVe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", X5 = null, Z5 = null, Q5 = null, $5 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
machine: "none"
-}, t7 = 0, n7 = null;
-function xVe() {
- return (!Q5 || !$5?.isConnected) && (Q5?.unmount(), $5 = document.createElement("div"), $5.dataset.settingsHost = "", document.body.append($5), Q5 = (0, ze.createRoot)($5)), Q5;
+}, e7 = 0, t7 = null;
+function n7() {
+ return (!Z5 || !Q5?.isConnected) && (Z5?.unmount(), Q5 = document.createElement("div"), Q5.dataset.settingsHost = "", document.body.append(Q5), Z5 = (0, ze.createRoot)(Q5)), Z5;
}
function r7() {
- let e = Z5;
- e && (0, Re.flushSync)(() => xVe().render(/* @__PURE__ */ (0, z.jsx)(fI, { children: /* @__PURE__ */ (0, z.jsx)(OVe, {
+ let e = X5;
+ e && (0, Re.flushSync)(() => n7().render(/* @__PURE__ */ (0, z.jsx)(pI, { children: /* @__PURE__ */ (0, z.jsx)(IVe, {
host: e,
- view: e7
+ view: $5
}) })));
}
function i7(e) {
- e7 = {
- ...e7,
+ $5 = {
+ ...$5,
...e
}, r7();
}
-async function SVe(e) {
- if (e7.machine === "summary") return;
+async function AVe(e) {
+ if ($5.machine === "summary") return;
let t = await e.configurable();
- if (e7.open) {
+ if ($5.open) {
if (!t) {
i7({ machine: "note" });
return;
}
try {
- await jI(new AbortController().signal);
+ await MI(new AbortController().signal);
} catch {}
- e7.open && i7({ machine: "summary" });
+ $5.open && i7({ machine: "summary" });
}
}
-function CVe(e = "") {
- let t = Z5;
+function jVe(e = "") {
+ let t = X5;
if (!t) return;
- y(), t7 += 1, n7 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let n = X5.findIndex(([t]) => t === e), r = qc();
+ y(), e7 += 1, t7 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
+ let n = Y5.findIndex(([t]) => t === e), r = qc();
i7({
open: !0,
closing: !1,
- epoch: e7.epoch + 1,
- tab: n >= 0 ? n : e7.tab
+ epoch: $5.epoch + 1,
+ tab: n >= 0 ? n : $5.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), SVe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), AVe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
function a7() {
- if (!e7.open || e7.closing) return;
- let e = ++t7;
+ if (!$5.open || $5.closing) return;
+ let e = ++e7;
i7({ closing: !0 });
let t = () => {
- e !== t7 || !e7.closing || (i7({
+ e !== e7 || !$5.closing || (i7({
open: !1,
closing: !1
- }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), n7 instanceof HTMLElement && document.contains(n7) && n7.focus(), n7 = null);
+ }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), t7 instanceof HTMLElement && document.contains(t7) && t7.focus(), t7 = null);
};
if (matchMedia("(prefers-reduced-motion: reduce)").matches) {
queueMicrotask(t);
return;
}
- $5?.querySelector("[data-settings-card]")?.addEventListener("animationend", t, { once: !0 }), setTimeout(t, 380);
+ Q5?.querySelector("[data-settings-card]")?.addEventListener("animationend", t, { once: !0 }), setTimeout(t, 380);
}
-var wVe = {
- open: CVe,
+var MVe = {
+ open: jVe,
close: a7,
- isOpen: () => e7.open,
+ isOpen: () => $5.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function TVe(e) {
- return Z5 = e, r7(), wVe;
+function NVe(e) {
+ return X5 = e, r7(), MVe;
}
-function EVe(e) {
+function PVe(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(bVe)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(kVe)].filter((e) => e.getClientRects().length > 0);
if (!t.length) return;
let n = t[0], r = t[t.length - 1];
e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
}
-var o7 = (e) => `settings-tab-${e}`, s7 = (e) => e === X5.length - 1 ? "machineGroup" : `settings-group-${e}`;
-function DVe({ tab: e, epoch: t, onSelect: n }) {
+var o7 = (e) => `settings-tab-${e}`, s7 = (e) => e === Y5.length - 1 ? "machineGroup" : `settings-group-${e}`;
+function FVe({ tab: e, epoch: t, onSelect: n }) {
let r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(e), s = (0, R.useRef)([]), c = (e, t) => {
let n = i.current;
if (!n) return;
@@ -75366,7 +75617,7 @@ function DVe({ tab: e, epoch: t, onSelect: n }) {
o.current = e, l.current(s.current[e], t);
}, [e, t]);
let u = (e, t) => {
- let r = X5.length, i = t;
+ let r = Y5.length, i = t;
if (e.key === "ArrowRight" || e.key === "ArrowDown") i = (t + 1) % r;
else if (e.key === "ArrowLeft" || e.key === "ArrowUp") i = (t + r - 1) % r;
else if (e.key === "Home") i = 0;
@@ -75395,7 +75646,7 @@ function DVe({ tab: e, epoch: t, onSelect: n }) {
role: "presentation",
children: "设置"
}),
- X5.map(([t, r], i) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ Y5.map(([t, r], i) => /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
role: "tab",
id: o7(i),
@@ -75410,7 +75661,7 @@ function DVe({ tab: e, epoch: t, onSelect: n }) {
onPointerEnter: (e) => {
e.pointerType !== "touch" && c(e.currentTarget, !0);
},
- children: [/* @__PURE__ */ (0, z.jsx)(iVe, { name: r }), t]
+ children: [/* @__PURE__ */ (0, z.jsx)(pVe, { name: r }), t]
}, t))
]
});
@@ -75422,7 +75673,7 @@ function c7({ index: e, tab: t, children: n }) {
role: "tabpanel",
"aria-labelledby": o7(e),
hidden: e !== t,
- children: [/* @__PURE__ */ (0, z.jsx)("h3", { children: X5[e][0] }), n]
+ children: [/* @__PURE__ */ (0, z.jsx)("h3", { children: Y5[e][0] }), n]
});
}
function l7({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
@@ -75454,7 +75705,7 @@ var d7 = ({ html: e, ...t }) => /* @__PURE__ */ (0, z.jsx)("small", {
...t,
dangerouslySetInnerHTML: { __html: e }
}), f7 = () => `${ie("保存中")}<span>正在保存…</span>`, p7 = (e, t) => e instanceof Error && e.message || t;
-function OVe({ host: e, view: t }) {
+function IVe({ host: e, view: t }) {
let n = (0, R.useSyncExternalStore)(e.store.subscribe, e.store.version), r = e.store.value, i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = (0, R.useRef)(null), l = (0, R.useRef)(t.tab), u = () => {
let [e, t] = [a.current, s.current];
if (!e || !t) return;
@@ -75474,7 +75725,7 @@ function OVe({ host: e, view: t }) {
c.current?.();
});
let f = t.epoch, p = (e) => {
- e !== e7.tab && i7({ tab: e });
+ e !== $5.tab && i7({ tab: e });
}, m = () => e.store.save();
return /* @__PURE__ */ (0, z.jsx)("section", {
"data-settings-panel": "",
@@ -75485,7 +75736,7 @@ function OVe({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: i,
- onKeyDown: EVe,
+ onKeyDown: PVe,
onClick: (e) => {
e.target === e.currentTarget && a7();
},
@@ -75498,7 +75749,7 @@ function OVe({ host: e, view: t }) {
ref: o,
children: [/* @__PURE__ */ (0, z.jsx)("h2", {
id: "settingsTitle",
- children: X5[t.tab][0]
+ children: Y5[t.tab][0]
}), /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
id: "settingsClose",
@@ -75510,7 +75761,7 @@ function OVe({ host: e, view: t }) {
})
})]
}),
- /* @__PURE__ */ (0, z.jsx)(DVe, {
+ /* @__PURE__ */ (0, z.jsx)(FVe, {
tab: t.tab,
epoch: f,
onSelect: p
@@ -75526,7 +75777,7 @@ function OVe({ host: e, view: t }) {
/* @__PURE__ */ (0, z.jsx)(u7, {
title: "主题",
description: "跟随系统,或固定用浅色、深色。",
- children: /* @__PURE__ */ (0, z.jsx)(U5, {
+ children: /* @__PURE__ */ (0, z.jsx)(H5, {
id: "themeSetting",
name: "theme",
legend: "主题",
@@ -75572,7 +75823,7 @@ function OVe({ host: e, view: t }) {
r.homeGlow.on = t, m(), e.changed("glow");
}
}),
- /* @__PURE__ */ (0, z.jsx)(lVe, {
+ /* @__PURE__ */ (0, z.jsx)(vVe, {
host: e,
version: n
}),
@@ -75582,16 +75833,16 @@ function OVe({ host: e, view: t }) {
children: [/* @__PURE__ */ (0, z.jsxs)("span", { children: [/* @__PURE__ */ (0, z.jsx)("b", {
id: "sidebarOrderTitle",
children: "左侧导航"
- }), /* @__PURE__ */ (0, z.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, z.jsx)(fVe, { host: e })]
+ }), /* @__PURE__ */ (0, z.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, z.jsx)(xVe, { host: e })]
})
]
}),
- /* @__PURE__ */ (0, z.jsx)(AVe, {
+ /* @__PURE__ */ (0, z.jsx)(RVe, {
host: e,
tab: t.tab,
epoch: f
}),
- /* @__PURE__ */ (0, z.jsx)(MVe, {
+ /* @__PURE__ */ (0, z.jsx)(BVe, {
host: e,
tab: t.tab,
epoch: f
@@ -75599,12 +75850,12 @@ function OVe({ host: e, view: t }) {
/* @__PURE__ */ (0, z.jsx)(c7, {
index: 3,
tab: t.tab,
- children: /* @__PURE__ */ (0, z.jsx)(PVe, {
+ children: /* @__PURE__ */ (0, z.jsx)(HVe, {
host: e,
epoch: f
})
}),
- /* @__PURE__ */ (0, z.jsx)(FVe, {
+ /* @__PURE__ */ (0, z.jsx)(UVe, {
host: e,
tab: t.tab,
epoch: f
@@ -75624,7 +75875,7 @@ function OVe({ host: e, view: t }) {
/* @__PURE__ */ (0, z.jsx)(c7, {
index: 6,
tab: t.tab,
- children: /* @__PURE__ */ (0, z.jsx)(LVe, {
+ children: /* @__PURE__ */ (0, z.jsx)(GVe, {
host: e,
machine: t.machine
})
@@ -75635,7 +75886,7 @@ function OVe({ host: e, view: t }) {
})
});
}
-function kVe(e, t) {
+function LVe(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = E("arrow-up", "arrow-down", "a", {
@@ -75645,7 +75896,7 @@ function kVe(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function AVe({ host: e, tab: t, epoch: n }) {
+function RVe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save(), a = r.defaultSort === "seed", o = r.defaultSortDirection === "asc";
return /* @__PURE__ */ (0, z.jsxs)(c7, {
index: 1,
@@ -75656,7 +75907,7 @@ function AVe({ host: e, tab: t, epoch: n }) {
description: "首页每次加载的作品数量。",
children: /* @__PURE__ */ (0, z.jsx)("div", {
id: "batchSizeSetting",
- children: /* @__PURE__ */ (0, z.jsx)(K5, {
+ children: /* @__PURE__ */ (0, z.jsx)(G5, {
id: "batchSizeSetting",
label: "每批作品",
value: r.batchSize,
@@ -75675,19 +75926,19 @@ function AVe({ host: e, tab: t, epoch: n }) {
}),
children: /* @__PURE__ */ (0, z.jsxs)("div", {
"data-setting-sort-controls": "",
- children: [/* @__PURE__ */ (0, z.jsx)(W5, {
+ children: [/* @__PURE__ */ (0, z.jsx)(U5, {
id: "defaultSortSetting",
label: "默认排序",
- options: pVe,
+ options: SVe,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
r.defaultSort = t, i(), e.changed("defaultSort");
}
- }), /* @__PURE__ */ (0, z.jsx)(W5, {
+ }), /* @__PURE__ */ (0, z.jsx)(U5, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: mVe,
+ options: CVe,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -75696,7 +75947,7 @@ function AVe({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => kVe(e, o)
+ decorate: (e) => LVe(e, o)
})]
})
}),
@@ -75716,11 +75967,11 @@ function AVe({ host: e, tab: t, epoch: n }) {
/* @__PURE__ */ (0, z.jsx)(u7, {
title: "JAV 默认封面",
description: "首页、接着看和 Mix 等位置共用;缺图时使用另一种封面。",
- children: /* @__PURE__ */ (0, z.jsx)(U5, {
+ children: /* @__PURE__ */ (0, z.jsx)(H5, {
id: "javImageSetting",
name: "jav-image",
legend: "JAV 默认封面",
- options: vVe,
+ options: DVe,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
@@ -75735,7 +75986,7 @@ function AVe({ host: e, tab: t, epoch: n }) {
title: "视频封面默认大小",
kind: "related",
description: "首页和 JAV 等视频列表共用;小图展示完整封套,大图展示完整正封。",
- children: /* @__PURE__ */ (0, z.jsx)(U5, {
+ children: /* @__PURE__ */ (0, z.jsx)(H5, {
id: "javSizeSetting",
name: "video-size",
legend: "视频封面默认大小",
@@ -75757,7 +76008,7 @@ function AVe({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- yVe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, z.jsx)(jVe, {
+ OVe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, z.jsx)(zVe, {
host: e,
id: t,
settingKey: n,
@@ -75769,7 +76020,7 @@ function AVe({ host: e, tab: t, epoch: n }) {
]
});
}
-function jVe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {
+function zVe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {
let s = Jc(), [c, l] = (0, R.useState)(null), u = (0, R.useRef)(null), d = e.store.value, f = (t) => {
l(t), te(u.current), s.mutate({ [n]: t }, {
onSuccess: (i) => {
@@ -75798,7 +76049,7 @@ function jVe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a
})]
});
}
-function MVe({ host: e, tab: t, epoch: n }) {
+function BVe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
return /* @__PURE__ */ (0, z.jsxs)(c7, {
index: 2,
@@ -75809,12 +76060,12 @@ function MVe({ host: e, tab: t, epoch: n }) {
description: "转圈完成后进入放大预览。",
children: /* @__PURE__ */ (0, z.jsx)("div", {
id: "hoverDelaySetting",
- children: /* @__PURE__ */ (0, z.jsx)(K5, {
+ children: /* @__PURE__ */ (0, z.jsx)(G5, {
id: "hoverDelaySetting",
label: "悬停放大",
value: r.hoverDelaySeconds,
onApply: (t) => {
- r.hoverDelaySeconds = B5(t, 0, 60, 5), i(), e.changed("hoverDelay");
+ r.hoverDelaySeconds = z5(t, 0, 60, 5), i(), e.changed("hoverDelay");
}
}, n)
})
@@ -75842,7 +76093,7 @@ function MVe({ host: e, tab: t, epoch: n }) {
description: "卡片预览和详情播放器共用。",
children: /* @__PURE__ */ (0, z.jsx)("div", {
id: "seekSecondsSetting",
- children: /* @__PURE__ */ (0, z.jsx)(K5, {
+ children: /* @__PURE__ */ (0, z.jsx)(G5, {
id: "seekSecondsSetting",
label: "快进 / 快退",
value: r.seekSeconds,
@@ -75852,13 +76103,13 @@ function MVe({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, z.jsx)(NVe, { epoch: n }),
+ /* @__PURE__ */ (0, z.jsx)(VVe, { epoch: n }),
/* @__PURE__ */ (0, z.jsx)(u7, {
title: "相关推荐",
description: "详情下方一次显示的相似作品数量。",
children: /* @__PURE__ */ (0, z.jsx)("div", {
id: "relatedLimitSetting",
- children: /* @__PURE__ */ (0, z.jsx)(K5, {
+ children: /* @__PURE__ */ (0, z.jsx)(G5, {
id: "relatedLimitSetting",
label: "相关推荐",
value: r.relatedLimit,
@@ -75871,7 +76122,7 @@ function MVe({ host: e, tab: t, epoch: n }) {
]
});
}
-function NVe({ epoch: e }) {
+function VVe({ epoch: e }) {
let t = Zn({
queryKey: Uc,
queryFn: ({ signal: e }) => Kc(e)
@@ -75887,10 +76138,10 @@ function NVe({ epoch: e }) {
"aria-live": "polite",
html: a
})] }),
- children: /* @__PURE__ */ (0, z.jsx)(W5, {
+ children: /* @__PURE__ */ (0, z.jsx)(U5, {
id: "videoThumbnailSetting",
label: "视频缩略图采集",
- options: hVe,
+ options: wVe,
value: n.isPending || n.isError ? n.variables ?? i : i,
disabled: n.isPending || t.isFetching,
epoch: e,
@@ -75898,25 +76149,25 @@ function NVe({ epoch: e }) {
})
});
}
-function PVe({ host: e, epoch: t }) {
+function HVe({ host: e, epoch: t }) {
let n = e.store.value, r = Jc();
return /* @__PURE__ */ (0, z.jsx)(u7, {
title: "搜索记录",
description: "保存在 Peach 账本,所有访问端同步。",
children: /* @__PURE__ */ (0, z.jsx)("div", {
id: "searchHistoryLimitSetting",
- children: /* @__PURE__ */ (0, z.jsx)(K5, {
+ children: /* @__PURE__ */ (0, z.jsx)(G5, {
id: "searchHistoryLimitSetting",
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = B5(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = z5(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
}
}, t)
})
});
}
-function FVe({ host: e, tab: t, epoch: n }) {
+function UVe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = Jc(), a = Jc(), [o, s] = (0, R.useState)("");
(0, R.useEffect)(() => {
s("");
@@ -75942,7 +76193,7 @@ function FVe({ host: e, tab: t, epoch: n }) {
"aria-live": "polite",
children: o
})] }),
- children: /* @__PURE__ */ (0, z.jsx)(W5, {
+ children: /* @__PURE__ */ (0, z.jsx)(U5, {
id: "followInitialDaysSetting",
label: "首次采集历史范围",
options: e.followInitialRanges,
@@ -75952,26 +76203,26 @@ function FVe({ host: e, tab: t, epoch: n }) {
onPick: (e) => c(Number(e))
})
}),
- /* @__PURE__ */ (0, z.jsx)(IVe, { epoch: n }),
+ /* @__PURE__ */ (0, z.jsx)(WVe, { epoch: n }),
/* @__PURE__ */ (0, z.jsx)(u7, {
title: "头像与站点图标刷新",
description: "创作者头像、来源图标和外链圆标保存在本机,到期后下次显示时重新取一次;视频与图片不保存。",
- children: /* @__PURE__ */ (0, z.jsx)(W5, {
+ children: /* @__PURE__ */ (0, z.jsx)(U5, {
id: "metadataRefreshSetting",
label: "头像与站点图标刷新",
- options: gVe,
+ options: TVe,
value: String(r.metadataRefreshDays),
epoch: n,
onPick: (t) => {
let n = Number(t);
- r.metadataRefreshDays = _Ve.includes(n) ? n : 30, e.store.save(), i.mutate({ metadataRefreshDays: r.metadataRefreshDays }, { onError: () => {} });
+ r.metadataRefreshDays = EVe.includes(n) ? n : 30, e.store.save(), i.mutate({ metadataRefreshDays: r.metadataRefreshDays }, { onError: () => {} });
}
})
})
]
});
}
-function IVe({ epoch: e }) {
+function WVe({ epoch: e }) {
let t = Zn({
queryKey: Hc,
queryFn: ({ signal: e }) => Gc(e)
@@ -75989,7 +76240,7 @@ function IVe({ epoch: e }) {
}),
children: /* @__PURE__ */ (0, z.jsx)("div", {
id: "followScheduleSetting",
- children: /* @__PURE__ */ (0, z.jsx)(K5, {
+ children: /* @__PURE__ */ (0, z.jsx)(G5, {
id: "followScheduleSetting",
label: "关注自动更新",
value: i && !a ? i.enabled ? i.interval_minutes : 0 : null,
@@ -75999,12 +76250,12 @@ function IVe({ epoch: e }) {
})
});
}
-function LVe({ host: e, machine: t }) {
+function GVe({ host: e, machine: t }) {
return t === "summary" ? /* @__PURE__ */ (0, z.jsx)("div", {
id: "machineSettings",
children: /* @__PURE__ */ (0, z.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, z.jsx)(rVe, { openConfiguration: () => {
+ children: /* @__PURE__ */ (0, z.jsx)(fVe, { openConfiguration: () => {
a7(), e.openConfiguration();
} })
})
@@ -76018,7 +76269,7 @@ function m7(e) {
}
//#endregion
//#region src/react/sidebar/sidebar-island.tsx
-var h7 = "__home__", RVe = {
+var h7 = "__home__", KVe = {
creator: 26,
tag: 30,
tech: 16
@@ -76031,13 +76282,13 @@ function x7() {
let e = _7;
if (!e || !v7) return;
let t = y7, n = b7;
- (0, Re.flushSync)(() => v7.render(/* @__PURE__ */ (0, z.jsx)(fI, { children: /* @__PURE__ */ (0, z.jsx)(VVe, {
+ (0, Re.flushSync)(() => v7.render(/* @__PURE__ */ (0, z.jsx)(pI, { children: /* @__PURE__ */ (0, z.jsx)(YVe, {
host: e,
props: t,
epoch: n
}) })));
}
-var zVe = {
+var qVe = {
render(e) {
y7 = e, x7();
},
@@ -76045,23 +76296,23 @@ var zVe = {
b7 += 1, x7();
}
};
-function BVe(e) {
+function JVe(e) {
return _7 = e, y7 = {
content: null,
filters: {},
latest: null
- }, e.scroll.replaceChildren(), v7 = (0, ze.createRoot)(e.scroll), x7(), e.attached(), zVe;
+ }, e.scroll.replaceChildren(), v7 = (0, ze.createRoot)(e.scroll), x7(), e.attached(), qVe;
}
-function VVe({ host: e, props: t, epoch: n }) {
+function YVe({ host: e, props: t, epoch: n }) {
let r = (0, R.useSyncExternalStore)(e.store.subscribe, e.store.version);
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsx)("div", { "data-sidebar-head": "" }),
- /* @__PURE__ */ (0, z.jsx)(HVe, {
+ /* @__PURE__ */ (0, z.jsx)(XVe, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, z.jsx)(WVe, {
+ t.content ? /* @__PURE__ */ (0, z.jsx)(QVe, {
host: e,
content: t.content,
filters: t.filters,
@@ -76069,8 +76320,8 @@ function VVe({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function HVe({ host: e, epoch: t, version: n }) {
- let r = q5(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, R.useRef)(null), l = (0, R.useRef)(null), u = bk(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || h7 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function XVe({ host: e, epoch: t, version: n }) {
+ let r = K5(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, R.useRef)(null), l = (0, R.useRef)(null), u = Qk(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || h7 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, R.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
return [
@@ -76103,7 +76354,7 @@ function HVe({ host: e, epoch: t, version: n }) {
t.preventDefault();
let n = f, a = m?.key === e && m.after;
g();
- let o = n === null ? null : J5(i, n, e, a);
+ let o = n === null ? null : q5(i, n, e, a);
o && r(o);
},
onDragEnd: g
@@ -76126,7 +76377,7 @@ function HVe({ host: e, epoch: t, version: n }) {
"data-sidebar-home-logo": "",
src: "/peach-logo.png",
alt: ""
- }) : /* @__PURE__ */ (0, z.jsx)(V5, { name: r }), /* @__PURE__ */ (0, z.jsx)("span", { children: n })]
+ }) : /* @__PURE__ */ (0, z.jsx)(B5, { name: r }), /* @__PURE__ */ (0, z.jsx)("span", { children: n })]
}, t || h7))
}), v ? (0, Re.createPortal)(/* @__PURE__ */ (0, z.jsx)("span", {
"data-sidebar-glide": "",
@@ -76135,7 +76386,7 @@ function HVe({ host: e, epoch: t, version: n }) {
}), v) : null] });
}
var S7 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function UVe(e) {
+function ZVe(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -76148,7 +76399,7 @@ function UVe(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function WVe({ host: e, content: t, filters: n, latest: r }) {
+function QVe({ host: e, content: t, filters: n, latest: r }) {
let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}`;
(0, R.useLayoutEffect)(() => {
t.kind === "catalog" && M(e.scroll, "drawer");
@@ -76157,8 +76408,8 @@ function WVe({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? GVe(e, t.facets, n, r, i) : [KVe(e, t.tags, new Set(t.selected))], o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, z.jsx)(qVe, {
+ let a = t.kind === "catalog" ? $Ve(e, t.facets, n, r, i) : [eHe(e, t.tags, new Set(t.selected))], o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, z.jsx)(tHe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -76167,8 +76418,8 @@ function WVe({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function GVe(e, t, n, r, i) {
- let a = UVe(r), o = (t, r, i) => {
+function $Ve(e, t, n, r, i) {
+ let a = ZVe(r), o = (t, r, i) => {
if (!t.length) return null;
let o = S7(n, r);
return /* @__PURE__ */ (0, z.jsx)(T7, {
@@ -76193,12 +76444,12 @@ function GVe(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, z.jsx)(YVe, {
+ body: /* @__PURE__ */ (0, z.jsx)(rHe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: RVe[d],
+ limit: KVe[d],
filterKey: l,
selected: f,
counts: a,
@@ -76213,7 +76464,7 @@ function GVe(e, t, n, r, i) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, z.jsx)(XVe, {
+ body: /* @__PURE__ */ (0, z.jsx)(iHe, {
host: e,
filters: n
})
@@ -76236,7 +76487,7 @@ function GVe(e, t, n, r, i) {
} : null
];
}
-function KVe(e, t, n) {
+function eHe(e, t, n) {
return t.length ? {
title: "内容标签",
kind: "online",
@@ -76256,7 +76507,7 @@ function C7(e, t) {
} catch {}
return n === null ? t : n === "open";
}
-function qVe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+function tHe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
let o = (0, R.useRef)(null), s = (0, R.useRef)(null), [c, l] = (0, R.useState)(() => C7(e, n)), u = (0, R.useRef)(!1);
(0, R.useLayoutEffect)(() => {
let t = o.current, r = s.current;
@@ -76282,7 +76533,7 @@ function qVe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
"aria-expanded": c,
"aria-controls": f,
onClick: d,
- children: [/* @__PURE__ */ (0, z.jsx)(V5, { name: "chevron-right" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, z.jsx)(B5, { name: "chevron-right" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, z.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -76303,8 +76554,8 @@ function qVe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
});
}
var w7 = (0, R.createContext)(() => {});
-function JVe({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, z.jsx)(V5, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, z.jsx)("img", {
+function nHe({ dot: e }) {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, z.jsx)(B5, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, z.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
@@ -76327,7 +76578,7 @@ function T7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }
title: e.offline,
onClick: () => a.toggleChip(t, e.value, n),
children: [
- /* @__PURE__ */ (0, z.jsx)(JVe, { dot: e.dot }),
+ /* @__PURE__ */ (0, z.jsx)(nHe, { dot: e.dot }),
/* @__PURE__ */ (0, z.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -76342,7 +76593,7 @@ function T7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }
})
});
}
-function YVe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+function rHe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
let u = (0, R.useContext)(w7), [d, f] = (0, R.useState)(null), [p, m] = (0, R.useState)(e);
p !== e && (m(e), f(null));
let h = (0, R.useRef)(null), g = (0, R.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
@@ -76383,7 +76634,7 @@ function YVe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, z.jsx)(V5, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, z.jsx)(B5, { name: "chevron-down" })
}) : null] });
}
function E7({ rows: e, host: t, selected: n, badges: r }) {
@@ -76408,7 +76659,7 @@ function E7({ rows: e, host: t, selected: n, badges: r }) {
});
}
var D7 = (e, t) => e ? Math.min(g7, Number(e) / 60) : t;
-function XVe({ host: e, filters: t }) {
+function iHe({ host: e, filters: t }) {
let n = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [r, i] = (0, R.useState)(n), [a, o] = (0, R.useState)(() => [D7(t.dur_min, 0), D7(t.dur_max, g7)]), [s, c] = (0, R.useState)("max");
r !== n && (i(n), o([D7(t.dur_min, 0), D7(t.dur_max, g7)]));
let [l, u] = a, d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(a);
@@ -76478,17 +76729,17 @@ function XVe({ host: e, filters: t }) {
}
//#endregion
//#region src/board-skeleton.ts
-var O7 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, ZVe = () => `${O7("80%")}${O7("48%")}`, QVe = (e, t) => e.repeat(t);
-function $Ve() {
- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${O7("85%")}${O7("65%")}${QVe(ZVe(), 4)}</div></aside></div>`;
+var O7 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, aHe = () => `${O7("80%")}${O7("48%")}`, oHe = (e, t) => e.repeat(t);
+function sHe() {
+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${O7("85%")}${O7("65%")}${oHe(aHe(), 4)}</div></aside></div>`;
}
//#endregion
//#region src/react/follow-detail/follow-detail.ts
-var k7 = (e) => ["follow-item", e], eHe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, tHe = "/api/follow/save", nHe = "/api/follow/media/hide";
+var k7 = (e) => ["follow-item", e], cHe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, lHe = "/api/follow/save", uHe = "/api/follow/media/hide";
async function A7(e, t) {
- let n = await W(eHe(e), t);
+ let n = await W(cHe(e), t);
for (let t of n.groups || []) {
- let r = TM(t).find((t) => t.id === e);
+ let r = GM(t).find((t) => t.id === e);
if (r) return {
item: r,
group: t,
@@ -76498,10 +76749,10 @@ async function A7(e, t) {
}
throw Error("这条关注内容已不存在");
}
-async function rHe(e, t) {
- let n = k7(e.id), r = Jue(e.id), i = J.getQueryData(xM) ? null : J.fetchQuery({
- queryKey: xM,
- queryFn: () => SM(t)
+async function dHe(e, t) {
+ let n = k7(e.id), r = KM(e.id), i = J.getQueryData(BM) ? null : J.fetchQuery({
+ queryKey: BM,
+ queryFn: () => VM(t)
});
r ? J.setQueryData(n, {
...r,
@@ -76511,8 +76762,8 @@ async function rHe(e, t) {
queryFn: () => A7(e.id, t)
}), await i;
}
-function iHe(e, t, n, r) {
- let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && AM(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);
+function fHe(e, t, n, r) {
+ let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && $M(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);
return {
embedded: i,
selected: s,
@@ -76526,32 +76777,32 @@ function iHe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var aHe = (e) => TM(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), oHe = {
+var pHe = (e) => GM(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), mHe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, sHe = {
+}, hHe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function cHe(e) {
+function gHe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return oHe[t] || t;
+ return mHe[t] || t;
} catch {
return "外部文件页";
}
}
function j7(e, t) {
- return sHe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+ return hHe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function lHe(e, t, n = "") {
+function _He(e, t, n = "") {
let r = n;
!r && e.is_release && (r = t.variant_label || t.variant_kind || ""), r ||= t.variant_kind === "wip" ? "WIP" : t.variant_label || t.variant_kind || "视频";
let i = e.is_release ? t.summary || (t.has_media ? "(仅附件)" : "(无正文)") : t.title;
@@ -76560,16 +76811,16 @@ function lHe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var uHe = (e) => String(e.name || "").trim(), M7 = (e, t) => e.tag_types?.[t] || "unknown", dHe = /* @__PURE__ */ new Set([
+var vHe = (e) => String(e.name || "").trim(), M7 = (e, t) => e.tag_types?.[t] || "unknown", yHe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function fHe(e, t) {
+function bHe(e, t) {
let n = M7(e, t);
- return `r34-${dHe.has(n) ? n : "general"}`;
+ return `r34-${yHe.has(n) ? n : "general"}`;
}
var N7 = [
"copyright",
@@ -76578,23 +76829,23 @@ var N7 = [
"general",
"metadata"
];
-function pHe(e, t) {
+function xHe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
let n = N7.indexOf(M7(e, t));
return n < 0 ? N7.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function mHe(e, t) {
+function SHe(e, t) {
let n = t.find((t) => t.id === e.source_id), r = t.filter((e) => n?.author_key && e.author_key === n.author_key);
return !r.length && n && r.push(n), r;
}
-var hHe = (e, t) => ({
+var CHe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
}), P7 = (e) => e?.size ? { size: e.size } : {};
-function gHe(e, t) {
+function wHe(e, t) {
let { images: n, kind: r, src: i, selected: a } = t;
return n.length ? n.map((t, r) => ({
src: `/follow-stream?id=${e.id}&media=${t.index}`,
@@ -76621,7 +76872,7 @@ function gHe(e, t) {
total: 1
}] : [];
}
-var _He = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
+var THe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
//#endregion
//#region src/react/components/mix-queue.tsx
function F7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
@@ -76675,29 +76926,29 @@ function I7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var vHe = ({ label: e, count: t }) => /* @__PURE__ */ (0, z.jsxs)("h3", {
+var EHe = ({ label: e, count: t }) => /* @__PURE__ */ (0, z.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
" ",
/* @__PURE__ */ (0, z.jsx)("span", { children: t })
]
-}), L7 = (e) => Number(e) > 0, yHe = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
+}), L7 = (e) => Number(e) > 0, DHe = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: l(e) }
}), R7 = l("external-link", "externalmark");
-function bHe(e) {
+function OHe(e) {
let { id: t, actions: n } = e, r = Zn({
queryKey: k7(t),
queryFn: ({ signal: e }) => A7(t, e)
}), i = Zn({
- queryKey: xM,
- queryFn: ({ signal: e }) => SM(e)
+ queryKey: BM,
+ queryFn: ({ signal: e }) => VM(e)
}), a = (0, R.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, R.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, z.jsx)(xHe, {
+ return r.data ? /* @__PURE__ */ (0, z.jsx)(kHe, {
...e,
data: r.data,
- context: hHe(r.data, a),
+ context: CHe(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, z.jsx)("div", {
@@ -76725,8 +76976,8 @@ var z7 = ({ onClose: e }) => /* @__PURE__ */ (0, z.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: l("x") }
});
-function xHe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {
- let { item: s, group: c } = e, l = iHe(s, c, n, i), u = THe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, R.useState)({
+function kHe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {
+ let { item: s, group: c } = e, l = fHe(s, c, n, i), u = NHe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, R.useState)({
key: "",
kind: ""
}), m = {
@@ -76746,7 +76997,7 @@ function xHe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
s,
l.kind
]);
- let h = !l.embedded.length && l.collection ? aHe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, z.jsx)(U7, {
+ let h = !l.embedded.length && l.collection ? pHe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, z.jsx)(U7, {
item: s,
current: l.selected.index,
helpers: a,
@@ -76759,7 +77010,7 @@ function xHe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
actions: o,
onMedia: r,
currentId: s.id
- }) : /* @__PURE__ */ (0, z.jsx)(CHe, {
+ }) : /* @__PURE__ */ (0, z.jsx)(jHe, {
group: l.collection,
itemId: s.id,
helpers: a,
@@ -76770,7 +77021,7 @@ function xHe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
"data-with-queue": g ? "" : void 0,
"data-follow-detail": "",
children: [
- /* @__PURE__ */ (0, z.jsx)(SHe, {
+ /* @__PURE__ */ (0, z.jsx)(AHe, {
item: s,
media: l,
helpers: a,
@@ -76779,7 +77030,7 @@ function xHe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
issues: m
}, d),
g,
- /* @__PURE__ */ (0, z.jsx)(wHe, {
+ /* @__PURE__ */ (0, z.jsx)(MHe, {
item: s,
data: e,
context: t,
@@ -76792,8 +77043,8 @@ function xHe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
]
});
}
-function SHe({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a }) {
- let { kind: o, selected: s, src: c, images: u, position: d, carousel: f, frameRatio: p } = t, m = (0, R.useRef)(null), [h, g] = (0, R.useState)(null), _ = gHe(e, t), v = s?.thumb_url || e.thumb_url || "", y = e.playable && o === "video", b = e.playable && o === "image" ? c : e.thumb_url || "", x = e.playable && o === "image" && v && v !== c ? v : "", [S, C] = (0, R.useState)(b), w = (0, R.useRef)({
+function AHe({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a }) {
+ let { kind: o, selected: s, src: c, images: u, position: d, carousel: f, frameRatio: p } = t, m = (0, R.useRef)(null), [h, g] = (0, R.useState)(null), _ = wHe(e, t), v = s?.thumb_url || e.thumb_url || "", y = e.playable && o === "video", b = e.playable && o === "image" ? c : e.thumb_url || "", x = e.playable && o === "image" && v && v !== c ? v : "", [S, C] = (0, R.useState)(b), w = (0, R.useRef)({
item: e,
selected: s
}), T = (0, R.useRef)(a.failed);
@@ -76830,7 +77081,7 @@ function SHe({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a
src: S,
alt: e.title,
referrerPolicy: "no-referrer",
- onClick: _.length ? () => void DA(Math.max(0, d), _) : void 0,
+ onClick: _.length ? () => void nj(Math.max(0, d), _) : void 0,
onError: () => {
if (x && S !== x) {
C(x), a.thumbFallback();
@@ -76842,7 +77093,7 @@ function SHe({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, z.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: IM(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: mN(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, z.jsx)("span", { children: "没有可用预览" })]
}),
f ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
@@ -76900,8 +77151,8 @@ function H7(e) {
t && e.wireDrag(t);
}, [e]);
}
-function CHe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = AM(e), a = H7(n);
+function jHe({ group: e, itemId: t, helpers: n, actions: r }) {
+ let i = $M(e), a = H7(n);
return /* @__PURE__ */ (0, z.jsx)(F7, {
kind: "collection",
"data-follow-queue": "",
@@ -76910,7 +77161,7 @@ function CHe({ group: e, itemId: t, helpers: n, actions: r }) {
listRef: a,
summary: `${e.primary.title || "未命名合集"} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = lHe(e, n, i ? n.provider_label : ""), s = i ? IM(n.provider, n.provider_label) : "";
+ let i = e.duplicates.includes(n), a = _He(e, n, i ? n.provider_label : ""), s = i ? mN(n.provider, n.provider_label) : "";
return /* @__PURE__ */ (0, z.jsxs)(I7, {
current: n.id === t,
"data-follow-queue-item": n.id,
@@ -76933,7 +77184,7 @@ function CHe({ group: e, itemId: t, helpers: n, actions: r }) {
children: a.label
}), /* @__PURE__ */ (0, z.jsx)("time", {
dateTime: n.published_at || "",
- children: UM(n)
+ children: xN(n)
})]
})]
}, n.id);
@@ -76958,7 +77209,7 @@ function U7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
onClose: i.close,
listRef: s,
summary: `${e.title || "未命名内容"} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, z.jsx)(vHe, {
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, z.jsx)(EHe, {
label: n.label,
count: n.items.length
}, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, z.jsxs)(I7, {
@@ -76970,7 +77221,7 @@ function U7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
pic: n.thumb_url ? /* @__PURE__ */ (0, z.jsx)(V7, { src: n.thumb_url }) : /* @__PURE__ */ (0, z.jsx)(B7, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, z.jsx)("b", {
"data-middle-truncate": "",
- children: uHe(n)
+ children: vHe(n)
}), /* @__PURE__ */ (0, z.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -76978,13 +77229,13 @@ function U7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function wHe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpers: u, actions: d }) {
+function MHe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpers: u, actions: d }) {
let { kind: f, selected: p, src: m } = r, h = {
primary: e,
variants: [],
duplicates: [],
has_wip: e.variant_kind === "wip"
- }, g = VM(h, e), _ = zM(e, mHe(e, t.sources), n), v = _.credited ? "" : e.author && c(e.author) !== c(_.author) ? e.author : "", y = HM(e, n), b = pHe(e, u.tagLabel), x = e.status === "saved", { busy: S } = a, C = (e) => S.has(e) ? {
+ }, g = yN(h, e), _ = _N(e, SHe(e, t.sources), n), v = _.credited ? "" : e.author && c(e.author) !== c(_.author) ? e.author : "", y = bN(e, n), b = xHe(e, u.tagLabel), x = e.status === "saved", { busy: S } = a, C = (e) => S.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -77000,7 +77251,7 @@ function wHe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
"data-stage-title": "",
"data-follow-detail-name": "",
"data-reveal-line": "",
- dangerouslySetInnerHTML: { __html: BM(h, e) + i(e.title) }
+ dangerouslySetInnerHTML: { __html: vN(h, e) + i(e.title) }
}), e.url ? /* @__PURE__ */ (0, z.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@ -77027,7 +77278,7 @@ function wHe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, z.jsx)("span", { children: UM(e) }),
+ /* @__PURE__ */ (0, z.jsx)("span", { children: xN(e) }),
L7(e.duration) ? /* @__PURE__ */ (0, z.jsx)("span", { children: o(e.duration) }) : null,
g ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-follow-badges": "",
@@ -77061,7 +77312,7 @@ function wHe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [cHe(e), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [gHe(e), /* @__PURE__ */ (0, z.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R7 }
})]
@@ -77151,7 +77402,7 @@ function wHe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...C(`restore:${e.index}`),
onClick: () => a.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, z.jsx)(V7, { src: e.thumb_url }) : /* @__PURE__ */ (0, z.jsx)(yHe, { name: "image-off" }), /* @__PURE__ */ (0, z.jsx)("i", { dangerouslySetInnerHTML: { __html: l("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, z.jsx)(V7, { src: e.thumb_url }) : /* @__PURE__ */ (0, z.jsx)(DHe, { name: "image-off" }), /* @__PURE__ */ (0, z.jsx)("i", { dangerouslySetInnerHTML: { __html: l("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -77165,7 +77416,7 @@ function wHe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
"data-follow-detail-tags": "",
children: b.map((t) => /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
- "data-tag-cat": fHe(e, t),
+ "data-tag-cat": bHe(e, t),
"data-follow-tag": t,
onClick: () => d.openTag(t),
children: u.tagLabel(t)
@@ -77175,7 +77426,7 @@ function wHe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
})
});
}
-function THe(e, t, n) {
+function NHe(e, t, n) {
let r = e.id, i = k7(r), [a, o] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
@@ -77186,17 +77437,17 @@ function THe(e, t, n) {
...t.item,
status: e
}
- }), Xue(r, e);
+ }), JM(r, e);
}, d = (e) => {
c(m(e) || "操作失败"), t.failure("更新关注状态", e);
}, f = Qn({
- mutationFn: ({ to: e }) => G(Fj, {
+ mutationFn: ({ to: e }) => G(qj, {
item: r,
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), t.toast(_He(n), { undo: i === "saved" ? void 0 : async () => {
- await G(Fj, {
+ u(n), c(""), t.toast(THe(n), { undo: i === "saved" ? void 0 : async () => {
+ await G(qj, {
item: r,
to: i
}), u(i);
@@ -77205,7 +77456,7 @@ function THe(e, t, n) {
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
}), p = Qn({
- mutationFn: () => G(tHe, { item: r }),
+ mutationFn: () => G(lHe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到账本");
},
@@ -77213,7 +77464,7 @@ function THe(e, t, n) {
onSettled: () => l("save", !1)
}), h = Qn({
mutationFn: async ({ index: e, hidden: t }) => {
- await G(nHe, {
+ await G(uHe, {
item: r,
media: e,
hidden: t
@@ -77224,7 +77475,7 @@ function THe(e, t, n) {
},
onSuccess: (e, { hidden: r, next: a }) => {
let o = J.getQueryData(i);
- o && Yue(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
+ o && qM(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
},
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
@@ -77260,19 +77511,19 @@ function THe(e, t, n) {
}
//#endregion
//#region src/react/components/overlay-host.ts
-function EHe(e) {
+function PHe(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 DHe(e) {
+function FHe(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return EHe(n ?? t.body);
+ return PHe(n ?? t.body);
}
//#endregion
//#region src/react/cover-crop/cover-crop.ts
-var OHe = "/api/cover-crop", kHe = (e, t) => G(OHe, {
+var IHe = "/api/cover-crop", LHe = (e, t) => G(IHe, {
code: e,
box: t
}), W7 = .704;
@@ -77289,7 +77540,7 @@ function G7({ className: e }) {
children: /* @__PURE__ */ (0, z.jsx)("use", { href: "#i-crop" })
});
}
-function AHe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function RHe({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, R.useState)(!1), o = (0, R.useRef)(null);
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("button", {
ref: o,
@@ -77301,14 +77552,14 @@ function AHe({ code: e, coverUrl: t, box: n, onSaved: r }) {
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: /* @__PURE__ */ (0, z.jsx)(G7, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, z.jsx)(my, {
- getContainer: () => DHe(o.current),
- children: /* @__PURE__ */ (0, z.jsx)(VA, {
+ }), /* @__PURE__ */ (0, z.jsx)(Ey, {
+ getContainer: () => FHe(o.current),
+ children: /* @__PURE__ */ (0, z.jsx)(gj, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, z.jsx)(jHe, {
+ children: /* @__PURE__ */ (0, z.jsx)(zHe, {
code: e,
coverUrl: t,
box: n,
@@ -77318,9 +77569,9 @@ function AHe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function jHe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(null), [l, u] = (0, R.useState)(!0), d = fO(), f = Qn({
- mutationFn: (t) => kHe(e, t),
+function zHe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(null), [l, u] = (0, R.useState)(!0), d = UO(), f = Qn({
+ mutationFn: (t) => LHe(e, t),
onSuccess: () => {
i(), r();
}
@@ -77332,15 +77583,15 @@ function jHe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : Ole(e, W7);
- c(LA(t, e, null));
+ } : $ce(e, W7);
+ c(fj(t, e, null));
}
let m = f.isPending;
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, z.jsx)(HA, { children: /* @__PURE__ */ (0, z.jsx)(G7, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, z.jsx)(_j, { children: /* @__PURE__ */ (0, z.jsx)(G7, { className: "size-6" }) }),
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
@@ -77359,7 +77610,7 @@ function jHe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsx)(mO, {
+ /* @__PURE__ */ (0, z.jsx)(GO, {
icon: Ye,
size: "small",
"aria-label": "关闭",
@@ -77370,24 +77621,24 @@ function jHe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, z.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, z.jsx)(WA, {
+ children: /* @__PURE__ */ (0, z.jsx)(yj, {
src: t,
aspect: l ? W7 : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- FA(e) && p(e);
+ uj(e) && p(e);
},
onBox: c
})
}),
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, z.jsx)(YN, {
+ children: [/* @__PURE__ */ (0, z.jsx)(kP, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(LA(s, a, W7));
+ u(e), e && s && a && c(fj(s, a, W7));
},
children: /* @__PURE__ */ (0, z.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -77423,14 +77674,14 @@ var K7 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
});
-function MHe(e) {
+function BHe(e) {
let { queue: t, actions: n } = e, r = Zn({
- queryKey: t ? x8(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => A8(t, e.helpers, n),
+ queryKey: t ? b8(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => k8(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? N8(i, e.id) : t ? null : e.id, o = Zn({
- queryKey: b8(a ?? 0),
- queryFn: ({ signal: e }) => k8(a, e),
+ }), i = t && r.data || null, a = i ? M8(i, e.id) : t ? null : e.id, o = Zn({
+ queryKey: y8(a ?? 0),
+ queryFn: ({ signal: e }) => O8(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -77453,9 +77704,9 @@ function MHe(e) {
})
});
}
- return /* @__PURE__ */ (0, z.jsx)(NHe, {
+ return /* @__PURE__ */ (0, z.jsx)(VHe, {
...e,
- item: cBe(o.data, i),
+ item: _Be(o.data, i),
queue: i
}, o.data.id);
}
@@ -77468,36 +77719,36 @@ var J7 = ({ onClose: e }) => /* @__PURE__ */ (0, z.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: l("x") }
});
-function NHe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = YHe(t, r, e.grid.cache, i.tagLabel), o = (0, R.useRef)(t);
+function VHe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = rUe(t, r, e.grid.cache, i.tagLabel), o = (0, R.useRef)(t);
(0, R.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, R.useEffect)(() => {
- n?.kind === "playlist" && G(S8, {
+ n?.kind === "playlist" && G(x8, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = SBe(t, i.sourceOffline(t.location || ""));
+ let s = jBe(t, i.sourceOffline(t.location || ""));
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
children: [
- /* @__PURE__ */ (0, z.jsx)(PHe, {
+ /* @__PURE__ */ (0, z.jsx)(HHe, {
item: t,
gate: s,
helpers: i,
actions: r
}),
- n ? /* @__PURE__ */ (0, z.jsx)(IHe, {
+ n ? /* @__PURE__ */ (0, z.jsx)(WHe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- /* @__PURE__ */ (0, z.jsx)(zHe, {
+ /* @__PURE__ */ (0, z.jsx)(qHe, {
item: t,
queue: n,
write: a,
@@ -77505,9 +77756,9 @@ function NHe(e) {
actions: r
})
]
- }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, z.jsx)(JHe, { ...e }) : null] });
+ }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, z.jsx)(nUe, { ...e }) : null] });
}
-function PHe({ item: e, gate: t, helpers: n, actions: r }) {
+function HHe({ item: e, gate: t, helpers: n, actions: r }) {
let [i, a] = (0, R.useState)(t ? "" : "auto"), o = (0, R.useRef)(null), c = (0, R.useRef)(e);
(0, R.useLayoutEffect)(() => {
let e = o.current;
@@ -77518,7 +77769,7 @@ function PHe({ item: e, gate: t, helpers: n, actions: r }) {
ref: o,
"data-stage-media": "",
"data-item-media": t || "video",
- children: [/* @__PURE__ */ (0, z.jsx)(J7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, z.jsx)(FHe, {
+ children: [/* @__PURE__ */ (0, z.jsx)(J7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, z.jsx)(UHe, {
item: e,
badge: l,
helpers: n,
@@ -77547,7 +77798,7 @@ function PHe({ item: e, gate: t, helpers: n, actions: r }) {
}) : null]
});
}
-function FHe({ item: e, badge: t, helpers: n, actions: r }) {
+function UHe({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, R.useState)(!1), [o, s] = (0, R.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@ -77572,8 +77823,8 @@ function FHe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function IHe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = vBe(e), a = (0, R.useRef)(null), s = RHe(e, t, r), c = (0, R.useRef)(s);
+function WHe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = DBe(e), a = (0, R.useRef)(null), s = KHe(e, t, r), c = (0, R.useRef)(s);
c.current = s;
let u = (0, R.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -77581,7 +77832,7 @@ function IHe({ queue: e, itemId: t, helpers: n, actions: r }) {
attribute: "data-queue-row",
onMove: (e, t, n) => c.current.move(+e, +t, n)
}));
- }, [n, e.kind]), d = LHe(e, r), f = e.kind === "mix" ? /* @__PURE__ */ (0, z.jsx)("button", {
+ }, [n, e.kind]), d = GHe(e, r), f = e.kind === "mix" ? /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -77609,10 +77860,10 @@ function IHe({ queue: e, itemId: t, helpers: n, actions: r }) {
listRef: u,
children: e.items.map((i) => {
let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, z.jsx)("i", {
- className: `javedition ${gBe[i.edition_label] || "censored"}`,
+ className: `javedition ${TBe[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, c = e.kind === "playlist" && M8(i);
+ }) : null, c = e.kind === "playlist" && j8(i);
return /* @__PURE__ */ (0, z.jsxs)(I7, {
current: i.id === t,
"data-queue-item": i.id,
@@ -77652,14 +77903,14 @@ function IHe({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, z.jsx)("span", {
"data-truncate-end": "",
- children: c ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? V8(i.part_label) : n.mixLabel(i)
+ children: c ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? B8(i.part_label) : n.mixLabel(i)
})]
}, i.id);
})
});
}
-function LHe(e, t) {
- let n = Qn({ mutationFn: (t) => G(S8, {
+function GHe(e, t) {
+ let n = Qn({ mutationFn: (t) => G(x8, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -77672,11 +77923,11 @@ function LHe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function RHe(e, t, n) {
- let r = x8({
+function KHe(e, t, n) {
+ let r = b8({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (J.setQueryData(r, j8(e)), e), a = (t) => G(S8, {
+ }), i = (e) => (J.setQueryData(r, A8(e)), e), a = (t) => G(x8, {
id: e.playlistId,
...t
}).then((e) => e.playlist), o = Qn({
@@ -77692,8 +77943,8 @@ function RHe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = bBe(s, t, r, c);
- if (xBe(l, s)) return;
+ let l = kBe(s, t, r, c);
+ if (ABe(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -77739,7 +77990,7 @@ function RHe(e, t, n) {
}
};
}
-function zHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function qHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [c, l] = (0, R.useState)(!1);
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-stage-side": "",
@@ -77747,7 +77998,7 @@ function zHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: /* @__PURE__ */ (0, z.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, z.jsx)(BHe, {
+ /* @__PURE__ */ (0, z.jsx)(JHe, {
item: e,
queue: t,
helpers: r,
@@ -77759,7 +78010,7 @@ function zHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, z.jsx)(HHe, {
+ /* @__PURE__ */ (0, z.jsx)(XHe, {
item: e,
write: n
}),
@@ -77794,18 +78045,18 @@ function zHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsx)(UHe, {
+ /* @__PURE__ */ (0, z.jsx)(ZHe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, z.jsx)(WHe, {
+ /* @__PURE__ */ (0, z.jsx)(QHe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, z.jsx)(KHe, { item: e }),
+ /* @__PURE__ */ (0, z.jsx)(eUe, { item: e }),
/* @__PURE__ */ (0, z.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -77899,7 +78150,7 @@ function zHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
]
}),
- /* @__PURE__ */ (0, z.jsx)(qHe, {
+ /* @__PURE__ */ (0, z.jsx)(tUe, {
item: e,
open: c,
write: n
@@ -77923,7 +78174,7 @@ function zHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function BHe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+function JHe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
let a = (0, R.useRef)(null), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)(!1);
(0, R.useLayoutEffect)(() => {
let e = a.current;
@@ -77933,7 +78184,7 @@ function BHe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
}, n = new ResizeObserver(t);
return n.observe(e), t(), () => n.disconnect();
}, []);
- let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + yBe(e, t);
+ let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + OBe(e, t);
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, z.jsxs)("div", {
@@ -77964,17 +78215,17 @@ function BHe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
}),
e.has_cover && e.code ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, z.jsx)(AHe, {
+ children: /* @__PURE__ */ (0, z.jsx)(RHe, {
code: e.code,
coverUrl: `/cover?code=${encodeURIComponent(e.code)}`,
box: e.poster_box || null,
onSaved: () => void J.invalidateQueries({
- queryKey: b8(e.id),
+ queryKey: y8(e.id),
exact: !0
})
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, z.jsx)(VHe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, z.jsx)(YHe, {
id: e.id,
actions: r,
onStatus: i
@@ -77984,7 +78235,7 @@ function BHe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function VHe({ id: e, actions: t, onStatus: n }) {
+function YHe({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, R.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@ -78017,14 +78268,14 @@ function VHe({ id: e, actions: t, onStatus: n }) {
children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "folder-sync" })
})] });
}
-function HHe({ item: e, write: t }) {
- let n = F8(e.rating);
+function XHe({ item: e, write: t }) {
+ let n = P8(e.rating);
return /* @__PURE__ */ (0, z.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": P8(e.rating),
+ "data-value": N8(e.rating),
children: [/* @__PURE__ */ (0, z.jsx)("div", {
"data-rating-stars": "",
children: [
@@ -78046,12 +78297,12 @@ function HHe({ item: e, write: t }) {
}), /* @__PURE__ */ (0, z.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: dBe(e.rating)
+ children: bBe(e.rating)
})]
});
}
-function UHe({ item: e, helpers: t, actions: n }) {
- let r = (0, R.useMemo)(() => uBe(e), [e]), [i, a] = (0, R.useState)(!1), o = Math.max(0, r.cast.length - 8), s = (e, r, a) => {
+function ZHe({ item: e, helpers: t, actions: n }) {
+ let r = (0, R.useMemo)(() => yBe(e), [e]), [i, a] = (0, R.useState)(!1), o = Math.max(0, r.cast.length - 8), s = (e, r, a) => {
let o = e === "performer" && a >= 8 && !i, s = e === "performer" ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { children: r.name.slice(0, 1) }), /* @__PURE__ */ (0, z.jsx)(q7, { html: t.faceHtml(r) })] }) : e === "studio" ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { children: r.name.slice(0, 2) }), r.has_logo ? /* @__PURE__ */ (0, z.jsx)("img", {
src: `/logo?studio=${encodeURIComponent(r.name)}&variant=icon`,
alt: "",
@@ -78160,8 +78411,8 @@ function UHe({ item: e, helpers: t, actions: n }) {
]
});
}
-function WHe({ item: e, write: t, helpers: n, actions: r }) {
- let i = pBe(e, n);
+function QHe({ item: e, write: t, helpers: n, actions: r }) {
+ let i = SBe(e, n);
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-stage-tags": "",
id: "detailTags",
@@ -78182,14 +78433,14 @@ function WHe({ item: e, write: t, helpers: n, actions: r }) {
onClick: () => t.removeTag(e),
children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "x" })
})]
- }, e.k)), /* @__PURE__ */ (0, z.jsx)(GHe, {
+ }, e.k)), /* @__PURE__ */ (0, z.jsx)($He, {
item: e,
write: t,
helpers: n
})]
});
}
-function GHe({ item: e, write: t, helpers: n }) {
+function $He({ item: e, write: t, helpers: n }) {
let r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(!1), [s, c] = (0, R.useState)(!1), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(-1), h = (0, R.useCallback)(() => {
i.current && S(i.current), c(!1);
}, []);
@@ -78203,7 +78454,7 @@ function GHe({ item: e, write: t, helpers: n }) {
clearTimeout(t), document.removeEventListener("pointerdown", e, !0);
};
}, [s, h]);
- let g = s ? hBe(d, n.tagCandidates(), B8()) : {
+ let g = s ? wBe(d, n.tagCandidates(), z8()) : {
recent: [],
results: [],
create: ""
@@ -78231,12 +78482,12 @@ function GHe({ item: e, write: t, helpers: n }) {
if (n.key === "Enter") {
n.preventDefault();
let r = p >= 0 ? _[p] : null;
- r ? v(r, r.n !== -1 && I8(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
+ r ? v(r, r.n !== -1 && F8(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
}
}
}, b = -1, x = (t) => {
b += 1;
- let r = b, i = I8(e, t.k);
+ let r = b, i = F8(e, t.k);
return /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
"data-pick": t.k,
@@ -78333,8 +78584,8 @@ function GHe({ item: e, write: t, helpers: n }) {
})]
})] });
}
-function KHe({ item: e }) {
- let t = CBe(e);
+function eUe({ item: e }) {
+ let t = MBe(e);
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
@@ -78368,7 +78619,7 @@ function KHe({ item: e }) {
})]
});
}
-function qHe({ item: e, open: t, write: n }) {
+function tUe({ item: e, open: t, write: n }) {
let [r, i] = (0, R.useState)(e.like_reason || ""), a = (0, R.useRef)(null);
(0, R.useEffect)(() => {
t && a.current?.focus();
@@ -78407,11 +78658,11 @@ function qHe({ item: e, open: t, write: n }) {
})]
});
}
-function JHe(e) {
+function nUe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Zn({
- queryKey: aBe(t.id, n),
+ queryKey: mBe(t.id, n),
queryFn: async ({ signal: e }) => {
- let r = await W(sBe(t.id, n), e);
+ let r = await W(gBe(t.id, n), e);
return i.cache(r.items || []), r.items || [];
}
}), [o] = (0, R.useState)(() => r.relatedSkeletonHtml()), s = (0, R.useCallback)((e) => {
@@ -78444,8 +78695,8 @@ function JHe(e) {
})]
});
}
-function YHe(e, t, n, r) {
- let i = e.id, a = b8(i), [o, s] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(""), f = (e, t) => s((n) => {
+function rUe(e, t, n, r) {
+ let i = e.id, a = y8(i), [o, s] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(""), f = (e, t) => s((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), p = () => J.getQueryData(a) || e, m = (e) => {
@@ -78476,7 +78727,7 @@ function YHe(e, t, n, r) {
run: n
}));
}, v = async (e, t) => {
- let n = await h(C8, t === void 0 ? { kind: e } : {
+ let n = await h(S8, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -78496,21 +78747,21 @@ function YHe(e, t, n, r) {
"aria-disabled": !0
} : {},
rate: (e) => _(`rate:${e}`, "评分", async () => {
- let n = p().rating || 0, r = fBe(n, e);
- await v("rate", r), t.toast(r ? `已评 ${F8(r)} 星` : "已取消评分", { undo: async () => {
+ let n = p().rating || 0, r = xBe(n, e);
+ await v("rate", r), t.toast(r ? `已评 ${P8(r)} 星` : "已取消评分", { undo: async () => {
await v("rate", n);
} });
}),
feedback: (e) => _(e, "操作", async () => {
let n = { feedback: p().feedback || null }, r = await v(e);
- t.toast(H8(e, r), { undo: async () => {
+ t.toast(V8(e, r), { undo: async () => {
e === "o" ? await v("o-undo") : e === "dispose" ? await v("dispose") : (r.feedback && await v(r.feedback), n.feedback && await v(n.feedback)), await t.trashChanged(p().disposal || null, !0);
} }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);
}),
later: () => _("later", "更新稍后看", async () => {
- let e = await h(T8, {});
+ let e = await h(w8, {});
m({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- m({ watch_later: (await h(T8, {})).watch_later });
+ m({ watch_later: (await h(w8, {})).watch_later });
} });
}),
quality: () => _("quality", "更新版本需求", async () => {
@@ -78520,9 +78771,9 @@ function YHe(e, t, n, r) {
}, n = (e) => m({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await h(E8, { wanted: !e.wanted });
+ }), r = await h(T8, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await h(E8, e));
+ n(await h(T8, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -78536,7 +78787,7 @@ function YHe(e, t, n, r) {
});
d("保存中…");
try {
- o(await h(D8, {
+ o(await h(E8, {
liked: a,
reason: i
}));
@@ -78546,7 +78797,7 @@ function YHe(e, t, n, r) {
d("已保存"), setTimeout(() => d((e) => e === "已保存" ? "" : e), 1400);
let s = p();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await h(D8, r));
+ o(await h(E8, r));
} });
});
},
@@ -78555,11 +78806,11 @@ function YHe(e, t, n, r) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- m((t) => L8(t, e.k)), t.toast(`已删除标签「${r(e.k)}」`, { undo: async () => {
- await h(w8, {
+ m((t) => I8(t, e.k)), t.toast(`已删除标签「${r(e.k)}」`, { undo: async () => {
+ await h(C8, {
operation: "add",
tag: e.k
- }), m((t) => R8(t, e));
+ }), m((t) => L8(t, e));
} });
}),
addTag: (e) => {
@@ -78568,14 +78819,14 @@ function YHe(e, t, n, r) {
(await h("/api/item-tag", {
operation: "add",
tag: n
- })).ok && (m((e) => R8(e, {
+ })).ok && (m((e) => L8(e, {
k: n,
cat: "general"
- })), mBe(n), t.toast(`已添加标签「${r(n)}」`, { undo: async () => {
- await h(w8, {
+ })), CBe(n), t.toast(`已添加标签「${r(n)}」`, { undo: async () => {
+ await h(C8, {
operation: "remove",
tag: n
- }), m((e) => L8(e, n));
+ }), m((e) => I8(e, n));
} }));
});
}
@@ -78584,16 +78835,16 @@ function YHe(e, t, n, r) {
//#endregion
//#region src/react/stage/stage-player.ts
var Y7 = null, X7 = null, Z7 = null, Q7 = null, $7 = null, e9 = !1, t9 = 0, n9 = null, r9 = () => !1, i9 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function XHe(e, t) {
- Y7 = e, r9 = () => t.isOpen(), n9 = () => t.requestClose(), Aze({
+function iUe(e, t) {
+ Y7 = e, r9 = () => t.isOpen(), n9 = () => t.requestClose(), zze({
...e.player,
stage: () => document.getElementById("stage")
- }), jze({
+ }), Bze({
inMiniplayer: (e) => X7?.player === e,
kind: (e) => X7?.player === e ? X7.kind : Z7?.kind ?? Q7?.kind ?? "item",
expand: () => S9(),
toMiniplayer: () => C9()
- }), a9 || (a9 = !0, addEventListener("pagehide", () => i8()));
+ }), a9 || (a9 = !0, addEventListener("pagehide", () => r8()));
}
var a9 = !1;
function o9() {
@@ -78603,10 +78854,10 @@ function o9() {
function s9(e) {
Q7 = e;
}
-var ZHe = () => Q7;
+var aUe = () => Q7;
function c9(e, t) {
let { kind: n, item: r, media: i = null } = t, a = i9(n, r.id, i?.index ?? null);
- if (X7 && X7.key === a) return QHe(e, X7);
+ if (X7 && X7.key === a) return oUe(e, X7);
X7 && x9();
let o = {
player: null,
@@ -78618,7 +78869,7 @@ function c9(e, t) {
Z7 = o;
let s = document.createElement("video");
t.id && (s.id = t.id), s.className = "video-js vjs-big-play-centered", s.controls = !0, s.setAttribute("playsinline", ""), s.preload = "metadata", t.poster && (s.poster = t.poster), t.onError && s.addEventListener("error", t.onError), e.append(s);
- let c = v8(s, {
+ let c = _8(s, {
kind: n,
item: r,
media: i,
@@ -78631,12 +78882,12 @@ function c9(e, t) {
});
return () => {
let e = !!o.player && X7?.player === o.player;
- Z7 === o && (Z7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), i8());
+ Z7 === o && (Z7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), r8());
};
}
-function QHe(e, t) {
+function oUe(e, t) {
let { player: n } = t;
- y9(t), X7 = null, b9(), n.el().classList.remove("vjs-peach-mini"), g8(e), e.append(n.el()), N6(n);
+ y9(t), X7 = null, b9(), n.el().classList.remove("vjs-peach-mini"), h8(e), e.append(n.el()), M6(n);
let r = {
player: n,
kind: t.kind,
@@ -78645,22 +78896,22 @@ function QHe(e, t) {
key: t.key
};
Z7 = r;
- let i = _8(n, e);
- return P6(n), () => {
- Z7 === r && (Z7 = null), i(), X7?.player !== n && (M6() === n && N6(null), X6(n), i8());
+ let i = g8(n, e);
+ return N6(n), () => {
+ Z7 === r && (Z7 = null), i(), X7?.player !== n && (j6() === n && M6(null), Y6(n), r8());
};
}
var l9 = () => {
let e = Z7?.player;
return e && !e.isDisposed() ? e : null;
};
-function $He(e) {
+function sUe(e) {
let t = e9;
e9 = !1, X7?.pending && x9();
let n = Z7, r = n?.player, i = Q7;
if (!n || !r || r.isDisposed() || !i || !$7) return;
let a = o9().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && iUe({
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && fUe({
player: r,
kind: n.kind,
item: n.item,
@@ -78668,7 +78919,7 @@ function $He(e) {
key: n.key
}, i);
}
-function eUe(e, t) {
+function cUe(e, t) {
if (e9 = !1, X7) {
if (X7.kind === e && X7.item.id === t) {
X7.pending = !0, b9();
@@ -78681,11 +78932,11 @@ function u9(e) {
$7 = e, $7 && _9();
}
var d9 = () => !!X7 && !X7.pending && !X7.player.isDisposed();
-function tUe() {
+function lUe() {
return d9() ? $7?.frame.querySelector("video") ?? null : null;
}
-function nUe() {
- return r9() ? document.getElementById("stage")?.querySelector("video") ?? null : tUe();
+function uUe() {
+ return r9() ? document.getElementById("stage")?.querySelector("video") ?? null : lUe();
}
function f9(e) {
$7 && ($7.title.textContent = e.title || "", $7.sub.textContent = e.sub || "", $7.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
@@ -78734,7 +78985,7 @@ function v9(e) {
function y9(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function rUe() {
+function dUe() {
let e = $7?.root;
if (!e) return;
let t = e.hidden;
@@ -78755,7 +79006,7 @@ function b9() {
e.style.transform = "";
}
}
-function iUe(e, t) {
+function fUe(e, t) {
if (!$7) return;
let n = {
...e,
@@ -78763,13 +79014,13 @@ function iUe(e, t) {
off: [],
pending: !1
};
- X7 = n, t9++, e.player.el().classList.add("vjs-peach-mini"), $7.frame.prepend(e.player.el()), f9(t), v9(n), rUe(), P6(e.player);
+ X7 = n, t9++, e.player.el().classList.add("vjs-peach-mini"), $7.frame.prepend(e.player.el()), f9(t), v9(n), dUe(), N6(e.player);
}
function x9() {
let e = X7;
e && y9(e), X7 = null, t9++;
let t = e?.player ?? null;
- t && M6() === t && N6(null), X6(t), t && i8(), $7?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), A6(), b9();
+ t && j6() === t && M6(null), Y6(t), t && r8(), $7?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), k6(), b9();
}
function S9() {
if (!d9() || !X7) return;
@@ -78783,7 +79034,7 @@ function C9() {
}
r9() && l9() && n9 && (e9 = !0, n9());
}
-function aUe() {
+function pUe() {
let e = X7?.player;
!e || e.isDisposed() || (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
@@ -78796,7 +79047,7 @@ function w9(e) {
function T9(e) {
return !(!d9() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || o9().sourceOffline(String(e.location ?? "")));
}
-async function oUe(e) {
+async function mUe(e) {
if (!d9() || !X7 || !$7) return;
let n = ++t9, r = await t(`/api/item?id=${e}`).catch(() => null);
if (n !== t9 || !d9() || !X7 || !$7 || !r || r.error) return;
@@ -78806,7 +79057,7 @@ async function oUe(e) {
}
o9().cache(r);
let i = X7;
- y9(i), M6() === i.player && N6(null), X6(i.player), i8(), $7.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ y9(i), j6() === i.player && M6(null), Y6(i.player), r8(), $7.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let a = document.createElement("video");
a.className = "video-js", a.setAttribute("playsinline", ""), a.preload = "metadata", $7.frame.prepend(a);
let o = {
@@ -78815,14 +79066,14 @@ async function oUe(e) {
title: String(r.title || r.name || ""),
sub: String(r.performers?.[0] || r.creator || "未归属")
};
- f9(o), v8(a, {
+ f9(o), _8(a, {
kind: "item",
item: r,
autoplay: !0,
chrome: !1,
onPlayer: (t) => {
if (n !== t9) {
- t && M6() === t && N6(null), X6(t);
+ t && j6() === t && M6(null), Y6(t);
return;
}
if (!t) {
@@ -78850,9 +79101,9 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
-}), sUe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, D9 = (e) => (t) => {
+}), hUe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, D9 = (e) => (t) => {
t.stopPropagation(), e();
-}, cUe = (0, R.memo)(function() {
+}, gUe = (0, R.memo)(function() {
let e = (0, R.useRef)(null), t = (0, R.useRef)(null), n = (0, R.useRef)(null), r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = (0, R.useRef)(null), l = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => (u9({
root: e.current,
@@ -78864,7 +79115,7 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => u9(null)), []), (0, R.useEffect)(() => uUe(e.current, t.current), []), /* @__PURE__ */ (0, z.jsx)("aside", {
+ }), () => u9(null)), []), (0, R.useEffect)(() => vUe(e.current, t.current), []), /* @__PURE__ */ (0, z.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -78914,8 +79165,8 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: D9(aUe),
- dangerouslySetInnerHTML: sUe
+ onClick: D9(pUe),
+ dangerouslySetInnerHTML: hUe
}),
/* @__PURE__ */ (0, z.jsx)("button", {
ref: o,
@@ -78954,7 +79205,7 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
})
});
});
-function lUe(e, t, n) {
+function _Ue(e, t, n) {
let r = e.getBoundingClientRect(), i = (r.top + r.height / 2 < innerHeight / 2 ? "t" : "b") + (r.left + r.width / 2 < innerWidth / 2 ? "l" : "r"), a = parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 56, o = {
left: r.left - t,
top: r.top - n
@@ -78976,7 +79227,7 @@ function lUe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function uUe(e, t) {
+function vUe(e, t) {
let n = null, r = (e) => {
if (!(e.button !== 0 || e.target.closest("[data-miniplayer-button],[data-miniplayer-play],[data-miniplayer-seek],.vjs-control-bar"))) {
n = {
@@ -79002,7 +79253,7 @@ function uUe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), lUe(e, i.dx, i.dy));
+ }, 0), _Ue(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -79022,21 +79273,21 @@ function L9() {
if (!O9) throw Error("舞台还没有接上宿主(configureStage)");
return O9;
}
-function dUe() {
+function yUe() {
return (!k9 || !A9?.isConnected) && (k9?.unmount(), A9 = document.createElement("div"), A9.dataset.stageHost = "", document.body.append(A9), k9 = (0, ze.createRoot)(A9)), k9;
}
function R9() {
- let e = dUe();
- (0, Re.flushSync)(() => e.render(/* @__PURE__ */ (0, z.jsx)(fI, { children: /* @__PURE__ */ (0, z.jsx)(fUe, { view: j9 }) })));
+ let e = yUe();
+ (0, Re.flushSync)(() => e.render(/* @__PURE__ */ (0, z.jsx)(pI, { children: /* @__PURE__ */ (0, z.jsx)(bUe, { view: j9 }) })));
}
-function fUe({ view: e }) {
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [e ? /* @__PURE__ */ (0, z.jsx)(pUe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, z.jsx)(cUe, {})] });
+function bUe({ view: e }) {
+ return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [e ? /* @__PURE__ */ (0, z.jsx)(xUe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, z.jsx)(gUe, {})] });
}
var z9 = () => /* @__PURE__ */ (0, z.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: $Ve() }
+ dangerouslySetInnerHTML: { __html: sHe() }
});
function B9(e) {
let t = e.currentTarget;
@@ -79044,7 +79295,7 @@ function B9(e) {
let n = t.getBoundingClientRect();
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
-function pUe({ view: e }) {
+function xUe({ view: e }) {
let t = (0, R.useRef)(null);
(0, R.useLayoutEffect)(() => {
let e = t.current, n = (e) => {
@@ -79052,7 +79303,7 @@ function pUe({ view: e }) {
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, z.jsx)(MHe, { ...r.props }) : /* @__PURE__ */ (0, z.jsx)(bHe, { ...r.props });
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, z.jsx)(BHe, { ...r.props }) : /* @__PURE__ */ (0, z.jsx)(OHe, { ...r.props });
return /* @__PURE__ */ (0, z.jsxs)("dialog", {
ref: t,
id: "stage",
@@ -79091,7 +79342,7 @@ function H9(e, t) {
let n = I9();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function mUe(e) {
+function SUe(e) {
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
@@ -79153,7 +79404,7 @@ function mUe(e) {
}
};
}
-function hUe(e, t) {
+function CUe(e, t) {
let n = e.querySelector(":scope > [data-stage-fade]");
e.setAttribute("data-stage-reveal", ""), e.getBoundingClientRect(), e.setAttribute("data-stage-revealing", "");
let r = 0, i = () => {
@@ -79166,13 +79417,13 @@ function hUe(e, t) {
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-async function gUe(e) {
+async function wUe(e) {
j9 && U9({ miniplayer: !1 });
let t = ++M9, n = new AbortController();
- N9 = n, P9 = !1, F9 = !1, eUe(e.kind, e.id ?? NaN), j9 = {
+ N9 = n, P9 = !1, F9 = !1, cUe(e.kind, e.id ?? NaN), j9 = {
generation: t,
request: e,
- content: mUe(e),
+ content: SUe(e),
phase: "skeleton"
}, R9();
let r = I9();
@@ -79180,7 +79431,7 @@ async function gUe(e) {
w(r), document.body.setAttribute("data-detail-open", ""), r.open || r.showModal();
let i = j9.content;
try {
- i.kind === "item" ? await lBe(i.props, n.signal) : await rHe(i.props, n.signal);
+ i.kind === "item" ? await vBe(i.props, n.signal) : await dHe(i.props, n.signal);
} catch {
if (n.signal.aborted) return;
}
@@ -79189,11 +79440,11 @@ async function gUe(e) {
j9 = {
...j9,
phase: a ? "content" : "reveal"
- }, R9(), a || hUe(r, t), ee(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, R9(), a || CUe(r, t), ee(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let o = document.activeElement;
(o === r || !r.contains(o)) && r.querySelector("#closeStage")?.focus();
}
-function _Ue() {
+function TUe() {
let e = I9();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
let n = 0, r = () => {
@@ -79205,11 +79456,11 @@ function _Ue() {
}));
}
function U9({ miniplayer: e = !0 } = {}) {
- if (M9++, N9?.abort(), N9 = null, $He(e), !j9) return;
+ if (M9++, N9?.abort(), N9 = null, sUe(e), !j9) return;
let t = I9();
- t && L9().release(t), A6(), t?.open && t.close(), j9 = null, P9 = !1, F9 = !1, R9(), s9(null), document.body.removeAttribute("data-detail-open");
+ t && L9().release(t), k6(), t?.open && t.close(), j9 = null, P9 = !1, F9 = !1, R9(), s9(null), document.body.removeAttribute("data-detail-open");
}
-function vUe(e) {
+function EUe(e) {
!j9 || j9.content.kind !== "item" || (j9 = {
...j9,
content: {
@@ -79221,60 +79472,60 @@ function vUe(e) {
}
}, R9());
}
-function yUe() {
- let e = ZHe(), t = e?.kind === "item" ? e.item : null, n = t ? L9().player.posterUrl(t) : "";
+function DUe() {
+ let e = aUe(), t = e?.kind === "item" ? e.item : null, n = t ? L9().player.posterUrl(t) : "";
if (!n) return;
let r = l9();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var bUe = {
- open: gUe,
- update: vUe,
- exit: _Ue,
+var OUe = {
+ open: wUe,
+ update: EUe,
+ exit: TUe,
dispose: U9,
requestClose: V9,
- repaintPoster: yUe,
+ repaintPoster: DUe,
isOpen: () => !!j9,
- activeVideo: () => nUe(),
+ activeVideo: () => uUe(),
toggleTheater: () => {
- j9 && Y6(!L9().player.settings().theaterMode);
+ j9 && J6(!L9().player.settings().theaterMode);
},
toggleMiniplayer: () => C9(),
closeMiniplayer: () => x9(),
miniplayerActive: () => d9(),
miniplayerTakesCard: (e) => T9(e),
miniplayerPlay: (e) => {
- oUe(e);
+ mUe(e);
}
};
-function xUe(e) {
- return O9 = e, XHe(e, {
+function kUe(e) {
+ return O9 = e, iUe(e, {
isOpen: () => !!j9,
requestClose: V9
- }), R9(), bUe;
+ }), R9(), OUe;
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
-function SUe(e) {
+function AUe(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 CUe = (e) => {
+var jUe = (e) => {
switch (e) {
- case "success": return EUe;
- case "info": return OUe;
- case "warning": return DUe;
- case "error": return kUe;
+ case "success": return PUe;
+ case "info": return IUe;
+ case "warning": return FUe;
+ case "error": return LUe;
default: return null;
}
-}, wUe = Array(12).fill(0), TUe = ({ visible: e, className: t }) => /*#__PURE__*/ R.createElement("div", {
+}, MUe = Array(12).fill(0), NUe = ({ visible: e, className: t }) => /*#__PURE__*/ R.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ R.createElement("div", { className: "sonner-spinner" }, wUe.map((e, t) => /*#__PURE__*/ R.createElement("div", {
+}, /*#__PURE__*/ R.createElement("div", { className: "sonner-spinner" }, MUe.map((e, t) => /*#__PURE__*/ R.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), EUe = /*#__PURE__*/ R.createElement("svg", {
+})))), PUe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -79285,7 +79536,7 @@ var CUe = (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"
-})), DUe = /*#__PURE__*/ R.createElement("svg", {
+})), FUe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -79296,7 +79547,7 @@ var CUe = (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"
-})), OUe = /*#__PURE__*/ R.createElement("svg", {
+})), IUe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -79307,7 +79558,7 @@ var CUe = (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"
-})), kUe = /*#__PURE__*/ R.createElement("svg", {
+})), LUe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -79318,7 +79569,7 @@ var CUe = (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"
-})), AUe = /*#__PURE__*/ R.createElement("svg", {
+})), RUe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -79339,7 +79590,7 @@ var CUe = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), jUe = () => {
+})), zUe = () => {
let [e, t] = R.useState(document.hidden);
return R.useEffect(() => {
let e = () => {
@@ -79347,7 +79598,7 @@ var CUe = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, MUe = 1, NUe = 100, W9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : MUe++, G9 = new class {
+}, BUe = 1, VUe = 100, W9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : BUe++, G9 = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -79357,7 +79608,7 @@ var CUe = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - NUe;
+ let e = this.toasts.length - VUe;
e <= 0 || (this.toasts = this.toasts.filter((t) => e > 0 && this.dismissedToasts.has(t.id) ? (this.dismissedToasts.delete(t.id), e--, !1) : !0));
}, this.create = (e) => {
let { message: t, ...n } = e, r = W9(e), i = this.pendingDismissals.get(r);
@@ -79435,7 +79686,7 @@ var CUe = (e) => {
type: "default",
message: e
});
- else if (FUe(e) && !e.ok) {
+ else if (UUe(e) && !e.ok) {
i = !1;
let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !R.isValidElement(r) ? r : { message: r };
this.create({
@@ -79488,7 +79739,7 @@ var CUe = (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();
}
-}(), PUe = (e, t) => G9.message(e, t), FUe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", K9 = Object.assign(PUe, {
+}(), HUe = (e, t) => G9.message(e, t), UUe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", K9 = Object.assign(HUe, {
success: G9.success,
info: G9.info,
warning: G9.warning,
@@ -79502,20 +79753,20 @@ var CUe = (e) => {
getHistory: () => G9.toasts,
getToasts: () => G9.getActiveToasts()
});
-SUe("[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%)}");
+AUe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
function q9(e) {
return e.label !== void 0;
}
-var IUe = 3, LUe = "24px", RUe = "16px", J9 = 4e3, zUe = 356, BUe = 14, VUe = 45, HUe = 200;
+var WUe = 3, GUe = "24px", KUe = "16px", J9 = 4e3, qUe = 356, JUe = 14, YUe = 45, XUe = 200;
function Y9(...e) {
return e.filter(Boolean).join(" ");
}
-function UUe(e) {
+function ZUe(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var WUe = (e) => {
- let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = R.useState(null), [O, k] = R.useState(null), [A, j] = R.useState(!1), [M, N] = R.useState(!1), [P, ee] = R.useState(!1), [F, I] = R.useState(!1), [te, ne] = R.useState(!1), [re, ie] = R.useState(0), [ae, oe] = R.useState(0), se = R.useRef(n.duration || y || J9), ce = R.useRef(null), le = R.useRef(null), ue = c === 0, L = c + 1 <= o, de = n.type, fe = de ?? "default", pe = n.dismissible !== !1, me = n.className || "", he = n.descriptionClassName || "", ge = R.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), _e = R.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ve = R.useMemo(() => n.duration || y || J9, [n.duration, y]), ye = R.useRef(0), be = R.useRef(0), xe = R.useRef(0), Se = R.useRef(null), [Ce, we] = b.split("-"), Te = R.useMemo(() => s.reduce((e, t, n) => n >= ge ? e : e + t.height, 0), [s, ge]), Ee = jUe(), De = R.useMemo(() => e.swipeDirections ?? UUe(b), [e.swipeDirections, b]), Oe = n.invert || t, ke = de === "loading";
+var QUe = (e) => {
+ let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = R.useState(null), [O, k] = R.useState(null), [A, j] = R.useState(!1), [M, N] = R.useState(!1), [P, ee] = R.useState(!1), [F, I] = R.useState(!1), [te, ne] = R.useState(!1), [re, ie] = R.useState(0), [ae, oe] = R.useState(0), se = R.useRef(n.duration || y || J9), ce = R.useRef(null), le = R.useRef(null), ue = c === 0, L = c + 1 <= o, de = n.type, fe = de ?? "default", pe = n.dismissible !== !1, me = n.className || "", he = n.descriptionClassName || "", ge = R.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), _e = R.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ve = R.useMemo(() => n.duration || y || J9, [n.duration, y]), ye = R.useRef(0), be = R.useRef(0), xe = R.useRef(0), Se = R.useRef(null), [Ce, we] = b.split("-"), Te = R.useMemo(() => s.reduce((e, t, n) => n >= ge ? e : e + t.height, 0), [s, ge]), Ee = zUe(), De = R.useMemo(() => e.swipeDirections ?? ZUe(b), [e.swipeDirections, b]), Oe = n.invert || t, ke = de === "loading";
be.current = R.useMemo(() => ge * x + Te, [ge, Te]), R.useEffect(() => {
se.current = ve;
}, [ve]), R.useEffect(() => {
@@ -79556,7 +79807,7 @@ var WUe = (e) => {
let Ae = R.useCallback(() => {
N(!0), ie(be.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, HUe);
+ }, XUe);
}, [
n,
d,
@@ -79589,12 +79840,12 @@ var WUe = (e) => {
return w?.loading ? /*#__PURE__*/ R.createElement("div", {
className: Y9(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": de === "loading"
- }, w.loading) : /*#__PURE__*/ R.createElement(TUe, {
+ }, w.loading) : /*#__PURE__*/ R.createElement(NUe, {
className: Y9(C?.loader, n?.classNames?.loader),
visible: de === "loading"
});
}
- let Me = n.icon || w?.[de] || CUe(de);
+ let Me = n.icon || w?.[de] || jUe(de);
return /*#__PURE__*/ R.createElement("li", {
tabIndex: 0,
ref: le,
@@ -79641,7 +79892,7 @@ var WUe = (e) => {
if (F || !pe) return;
Se.current = null;
let e = Number(le.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(le.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - ce.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;
- if ((E === "x" ? De.includes(e > 0 ? "right" : "left") : De.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= VUe || a > .11)) {
+ if ((E === "x" ? De.includes(e > 0 ? "right" : "left") : De.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= YUe || a > .11)) {
ie(be.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Ae(), I(!0);
return;
}
@@ -79682,7 +79933,7 @@ var WUe = (e) => {
Ae(), n.onDismiss == null || n.onDismiss.call(n, n);
},
className: Y9(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? AUe) : null, (de || n.icon || n.promise) && n.icon !== null && (w?.[de] !== null || n.icon) ? /*#__PURE__*/ R.createElement("div", {
+ }, w?.close ?? RUe) : null, (de || n.icon || n.promise) && n.icon !== null && (w?.[de] !== null || n.icon) ? /*#__PURE__*/ R.createElement("div", {
"data-icon": "",
className: Y9(C?.icon, n?.classNames?.icon)
}, de === "loading" ? n.icon || je() : n.promise ? je() : null, de === "loading" ? null : Me) : null, /*#__PURE__*/ R.createElement("div", {
@@ -79717,10 +79968,10 @@ function X9() {
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function GUe(e, t) {
+function $Ue(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? RUe : LUe;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? KUe : GUe;
function o(e) {
[
"top",
@@ -79741,8 +79992,8 @@ function GUe(e, t) {
}) : o(a);
}), n;
}
-var KUe = /*#__PURE__*/ R.forwardRef(function(e, t) {
- let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = IUe, toastOptions: g, dir: _ = X9(), gap: v = BUe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = R.useState([]), w = R.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = R.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = R.useState([]), [O, k] = R.useState(!1), [A, j] = R.useState(!1), [M, N] = R.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), P = R.useRef(null), ee = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), F = R.useRef(null), I = R.useRef(!1), te = R.useCallback((e) => {
+var eWe = /*#__PURE__*/ R.forwardRef(function(e, t) {
+ let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = WUe, toastOptions: g, dir: _ = X9(), gap: v = JUe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = R.useState([]), w = R.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = R.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = R.useState([]), [O, k] = R.useState(!1), [A, j] = R.useState(!1), [M, N] = R.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), P = R.useRef(null), ee = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), F = R.useRef(null), I = R.useRef(!1), te = R.useCallback((e) => {
C((t) => (t.find((t) => t.id === e.id)?.delete || G9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
return R.useEffect(() => G9.subscribe((e) => {
@@ -79828,10 +80079,10 @@ var KUe = /*#__PURE__*/ R.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${zUe}px`,
+ "--width": `${qUe}px`,
"--gap": `${v}px`,
...m,
- ...GUe(l, u)
+ ...$Ue(l, u)
},
onBlur: (e) => {
I.current && !e.currentTarget.contains(e.relatedTarget) && (I.current = !1, F.current &&= (F.current.focus({ preventScroll: !0 }), null));
@@ -79849,7 +80100,7 @@ var KUe = /*#__PURE__*/ R.forwardRef(function(e, t) {
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || j(!0);
},
onPointerUp: () => j(!1)
- }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ R.createElement(WUe, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ R.createElement(QUe, {
key: n.id,
icons: y,
index: i,
@@ -79883,8 +80134,8 @@ var KUe = /*#__PURE__*/ R.forwardRef(function(e, t) {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), Q9 = !1, qUe = (e, t) => {
- Q9 || (Q9 = !0, (0, ze.createRoot)(e).render(/* @__PURE__ */ (0, z.jsx)(KUe, {
+}), Q9 = !1, tWe = (e, t) => {
+ Q9 || (Q9 = !0, (0, ze.createRoot)(e).render(/* @__PURE__ */ (0, z.jsx)(eWe, {
position: "bottom-right",
closeButton: !0,
gap: 8,
@@ -79905,7 +80156,7 @@ var KUe = /*#__PURE__*/ R.forwardRef(function(e, t) {
error: Z9(t.error, !1)
}
})));
-}, JUe = (e, t) => {
+}, nWe = (e, t) => {
let n = t.alert ? K9.error : K9.success, r = t.action;
n(/* @__PURE__ */ (0, z.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
@@ -79922,14 +80173,14 @@ var KUe = /*#__PURE__*/ R.forwardRef(function(e, t) {
//#region src/react/entry.tsx
function $9(e) {
return (t, n) => {
- let r = (0, ze.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, z.jsx)(fI, { children: /* @__PURE__ */ (0, z.jsx)(e, { ...t }) }));
+ let r = (0, ze.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, z.jsx)(pI, { children: /* @__PURE__ */ (0, z.jsx)(e, { ...t }) }));
return (0, Re.flushSync)(() => i(n)), {
update: i,
unmount: () => r.unmount()
};
};
}
-var YUe = {
+var rWe = {
activity: {
prefetch: (e, t) => fa(t),
mount: $9(Pa)
@@ -79939,77 +80190,77 @@ var YUe = {
mount: $9(Fo)
},
configuration: {
- prefetch: (e, t) => jI(t),
- mount: $9(ege)
+ prefetch: (e, t) => MI(t),
+ mount: $9(sge)
},
"data-cleanup": {
prefetch: (e, t) => Zl(t),
- mount: $9(oce)
+ mount: $9(Ose)
},
duplicates: {
prefetch: (e, t) => es(t),
- mount: $9(hce)
+ mount: $9(Lse)
},
"catalog-filter": {
prefetch: async () => {},
- mount: $9(Cce)
+ mount: $9(qse)
},
"entity-page": {
- prefetch: (e) => Jce(e),
- mount: $9(bj)
+ prefetch: (e) => yce(e),
+ mount: $9(Kle)
},
"feed-new": {
- prefetch: Wce,
- mount: $9(Tj)
+ prefetch: mce,
+ mount: $9(Xle)
},
"follow-feed": {
- prefetch: que,
- mount: $9(_de)
+ prefetch: HM,
+ mount: $9(Lue)
},
"follow-manage": {
- prefetch: (e, t) => zue(t, e.tab),
- mount: $9(Bpe)
+ prefetch: (e, t) => Due(t, e.tab),
+ mount: $9(zpe)
},
index: {
- prefetch: (e, t) => ale(e, t),
- mount: $9($pe)
+ prefetch: (e, t) => Ace(e, t),
+ mount: $9(Qpe)
},
"junk-queue": {
prefetch: async () => {},
- mount: $9(mme)
+ mount: $9(pme)
},
"library-processing": {
prefetch: (e, t) => ds(t),
- mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, z.jsx)(bme, { ...e }) : /* @__PURE__ */ (0, z.jsx)(MO, { ...e }))
+ mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, z.jsx)(yme, { ...e }) : /* @__PURE__ */ (0, z.jsx)(fk, { ...e }))
},
playlists: {
- prefetch: (e, t) => Sme(t),
- mount: $9(Pme)
+ prefetch: (e, t) => xme(t),
+ mount: $9(Nme)
},
"quality-goals": {
prefetch: (e, t) => Ls(t),
- mount: $9(Ime)
+ mount: $9(Fme)
},
review: {
prefetch: (e, t) => vc(t),
- mount: $9($me)
+ mount: $9(Qme)
},
search: {
prefetch: async () => {},
- mount: $9(Ice)
+ mount: $9(oce)
},
scraping: {
- prefetch: (e, t) => ohe(t),
- mount: $9(phe)
+ prefetch: (e, t) => ahe(t),
+ mount: $9(fhe)
},
stats: {
- prefetch: (e, t) => nge(t),
- mount: $9(aRe)
+ prefetch: (e, t) => lge(t),
+ mount: $9(mRe)
},
taste: {
- prefetch: (e, t) => kRe("all", t),
- mount: $9(kze)
+ prefetch: (e, t) => RRe("all", t),
+ mount: $9(Rze)
}
};
//#endregion
-export { tVe as configureImmerse, TVe as configureSettingsPanel, BVe as configureSidebar, xUe as configureStage, qUe as mountToaster, YUe as pages, JUe as showToast };
+export { uVe as configureImmerse, NVe as configureSettingsPanel, JVe as configureSidebar, kUe as configureStage, tWe as mountToaster, rWe as pages, nWe as showToast };