Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(web): 扫描与采集的卡片和横幅改为 React 档

longmeidao2d18ff891183
diff --git a/frontend/e2e/design.test.ts b/frontend/e2e/design.test.ts
index 814591cd5..06ff4d98a 100644
--- a/frontend/e2e/design.test.ts
+++ b/frontend/e2e/design.test.ts
@@ -115,6 +115,22 @@ async function openScraping(browser: Browser): Promise<Visit> {
return opened;
}
+/** 按给定的一份 `/api/library-processing` 打开某一页:演示库里那趟任务早就跑完了,
+ * 而运行态和失败态正是这两条要看的东西。字段以 `src/peach/web_library_processing.py` 为准。 */
+async function openProcessing(
+ browser: Browser, path: string, job: Record<string, unknown>,
+): Promise<Visit> {
+ const opened = await visit(browser, path, DESKTOP);
+ await opened.page.route('**/api/library-processing', (route) => route.fulfill({
+ status: 200, contentType: 'application/json', body: JSON.stringify(job),
+ }));
+ await opened.page.reload({ waitUntil: 'load' });
+ return opened;
+}
+
+/** 一趟跑到一半的扫描与采集。 */
+const RUNNING_JOB = { status: 'running', stage: '采集缺失资料', checked: 38, total: 100 };
+
describe('设计决定', () => {
let browser: Browser;
@@ -262,6 +278,58 @@ describe('设计决定', () => {
}
});
+ it('目录页那条处理横幅在跑的时候不占语气色,失败了才换成状态红并报警', { timeout: 60_000 }, async () => {
+ const running = await openProcessing(browser, '/', RUNNING_JOB);
+ try {
+ const banner = running.page.locator('#libraryProcessingNotice [role="status"]');
+ await banner.waitFor({ state: 'visible', timeout: 15_000 });
+ assert.match(await banner.innerText(), /采集缺失资料 · 38 \/ 100/);
+ // 一圈长度钉成 100,画出来的那一段就是百分比本身。
+ assert.equal(await banner.locator('[role="progressbar"]').getAttribute('aria-valuenow'), '38');
+ assert.equal(
+ await banner.evaluate((element) => getComputedStyle(element).backgroundColor),
+ 'rgba(0, 0, 0, 0)',
+ '任务在跑是正在发生的事,配上状态底色就和「出事了」一个分量');
+ } finally {
+ await running.close();
+ }
+
+ const failed = await openProcessing(browser, '/', { status: 'failed', error: '来源离线' });
+ try {
+ const banner = failed.page.locator('#libraryProcessingNotice [role="alert"]');
+ await banner.waitFor({ state: 'visible', timeout: 15_000 });
+ assert.equal(
+ await banner.evaluate((element) => getComputedStyle(element).backgroundColor),
+ await tokenColor(failed.page, '.peach-react', '--color-background-tertiary-error'));
+ } finally {
+ await failed.close();
+ }
+ });
+
+ it('扫描卡的进度条走焦点环色,底槽是三级底,按下的那颗键转成忙态', { timeout: 60_000 }, async () => {
+ const opened = await openProcessing(browser, '/data-cleanup', RUNNING_JOB);
+ try {
+ const card = opened.page.locator('section[aria-label="扫描与采集"]');
+ await card.waitFor({ state: 'visible', timeout: 15_000 });
+ const bar = card.locator('[role="progressbar"]');
+ assert.equal(await bar.getAttribute('aria-valuenow'), '38');
+ assert.equal(await bar.getAttribute('aria-valuemax'), '100');
+ const fill = (at: number) =>
+ bar.locator('rect').nth(at).evaluate((element) => getComputedStyle(element).fill);
+ assert.equal(await fill(0),
+ await tokenColor(opened.page, '.peach-react', '--color-background-tertiary-default'));
+ assert.equal(await fill(1),
+ await tokenColor(opened.page, '.peach-react', '--color-border-focus-ring'));
+ // 忙态不改 `disabled`:控件仍可聚焦,重复触发由页面自己挡。
+ const scan = card.getByRole('button', { name: '扫描并补全资料', exact: true });
+ assert.equal(await scan.getAttribute('aria-busy'), 'true');
+ assert.equal(await scan.evaluate((element) => (element as HTMLButtonElement).disabled), false,
+ '用原生 disabled 挡的话按钮连焦点都拿不到');
+ } finally {
+ await opened.close();
+ }
+ });
+
it('新窗口打开的来源地址两项 rel 都写:不带走会话,也不带走来处', { timeout: 60_000 }, async () => {
const opened = await openScraping(browser);
try {
diff --git a/frontend/src/board-state-preview.tsx b/frontend/src/board-state-preview.tsx
deleted file mode 100644
index 5f61a678e..000000000
--- a/frontend/src/board-state-preview.tsx
+++ /dev/null
@@ -1,59 +0,0 @@
-import { h, render } from 'preact';
-import { useState } from 'preact/hooks';
-import { LibraryProcessing } from './islands/library-processing';
-import type { LibraryProcessingData } from './islands/library-processing';
-import { jobProgressHtml } from './board-metrics';
-import { cleanupSkeletonHtml } from './management';
-import { noteHtml, loadingDotsHtml, projectBannerHtml } from '@peach/legacy/ui';
-
-const states = [
- ['idle','待开始'],['loading','页面加载'],['preparing','准备任务'],['running','任务进行中'],
- ['retrying','等待重试'],['disconnected','失去连接'],['reconnected','恢复连接'],
- ['failed','任务失败'],['complete','任务完成'],['expired','状态已失效'],['paused','来源已暂停'],
-] as const;
-type State = typeof states[number][0];
-const Html=({html}:{html:string})=><div dangerouslySetInnerHTML={{__html:html}}/>;
-
-function StatePreview() {
- const [state,setState]=useState<State>('running');
- const [revision,setRevision]=useState(0);
- const [dark,setDark]=useState(document.documentElement.dataset.theme==='dark');
- const [value,setValue]=useState(38);
- const data:LibraryProcessingData={status:state==='failed'?'failed':['running','preparing','disconnected','retrying','reconnected'].includes(state)?'running':'idle',
- stage:state==='preparing'?'正在准备扫描':state==='retrying'?'等待来源响应 · 8 秒后重试':'正在整理资料',
- checked:value,...(state==='preparing'?{}:{total:100}),error:state==='failed'?'来源暂时不可用,请重试未完成项':'',
- issue_count:state==='failed'?1:0,
- issue_preview:state==='failed'?[{asset_id:null,title:'本地磁盘',path:'R:\\Media',message:'来源连接超时'}]:[],
- issues_log:state==='failed'?'peach-data\\state\\library-processing-preview.issues.jsonl':'',
- retryable_asset_ids:state==='failed'?[7]:[]};
- const problem=state==='disconnected'?'连接中断,正在重新读取处理进度':'';
- return <main class="board-state-preview">
- <header><div><h1>运行状态预览</h1><p>演示数据 · 不连接任务接口,不执行扫描或写入。</p></div>
- <button class="geist-button" onClick={()=>{document.documentElement.dataset.theme=dark?'light':'dark';setDark(!dark)}}>{dark?'浅色':'深色'}</button></header>
- <nav aria-label="演示状态">{states.map(([key,label])=><button class="geist-button" aria-pressed={state===key} onClick={()=>{setState(key);setRevision(revision+1)}}>{label}</button>)}</nav>
- <div class="board-preview-tools"><label>任务进度 <input type="range" min="0" max="100" value={value} onInput={event=>setValue(Number(event.currentTarget.value))}/><output>{value}%</output></label><button class="geist-button" onClick={()=>setRevision(revision+1)}>重播状态</button></div>
- <section aria-label="页面横幅"><h2>全局任务横幅</h2>
- <LibraryProcessing key={`banner-${state}-${revision}-${value}`} data={data} error={problem} mode="notice" preview toast={()=>{}}/>
- {!['running','preparing','disconnected','retrying','reconnected','failed'].includes(state)&&<p>此状态不常驻全局横幅。</p>}
- </section>
- <section><h2>数据管理 · 扫描与采集</h2>
- {state==='loading'?<Html html={cleanupSkeletonHtml()}/>:<div class="cleanupgrid"><div id="libraryProcessing" class="cleanupscraping"><LibraryProcessing key={`${state}-${revision}-${value}`} data={data} error={problem} preview toast={()=>{}}/></div></div>}
- {state==='complete'&&<Html html={noteHtml('已完成扫描与资料采集',{variant:'success',label:'任务完成'})}/>}
- {state==='expired'&&<Html html={noteHtml('任务状态已失效,请重新发起任务',{variant:'warning'})}/>}
- {state==='paused'&&<span class="sbadge paused">已暂停</span>}
- </section>
- <section><h2>关注检查与资源同步</h2><div class="board-preview-grid">
- <article><h3>检查更新</h3><Html html={state==='disconnected'?noteHtml('暂时无法读取进度,正在重新连接…',{label:'任务状态'}):state==='failed'?noteHtml('检查失败:来源连接超时',{variant:'error',actionLabel:'重试'}):state==='running'||state==='retrying'||state==='reconnected'?jobProgressHtml(`${state==='retrying'?'第 2/3 次尝试,8 秒后重试 · ':''}已完成 ${value}/100 个来源`,value,100):state==='preparing'?loadingDotsHtml('正在准备检查任务…'):noteHtml(state==='complete'?'已完成检查':state==='paused'?'已暂停自动检查':state==='expired'?'任务状态已失效,请重新发起任务':'等待开始',{variant:state==='complete'?'success':'secondary'})}/></article>
- <article><h3>连接与恢复</h3><Html html={projectBannerHtml(state==='disconnected'?'暂时无法连接服务器,正在重连':state==='reconnected'?'连接已恢复,继续读取任务进度':'连接正常',{variant:state==='disconnected'?'warning':'gray',href:'#',label:'查看状态'})}/><p>失去连接只影响进度读取;恢复连接后继续展示任务状态。</p></article>
- </div></section>
- <section><h2>错误与加载状态一览</h2><div class="board-preview-grid">
- <article><h3>读取失败</h3><Html html={noteHtml('无法读取状态,请重试',{variant:'error',actionLabel:'重试'})}/></article>
- <article><h3>来源离线</h3><Html html={noteHtml('媒体来源离线,请检查挂载状态',{variant:'warning'})}/></article>
- <article><h3>没有待处理内容</h3><Html html={noteHtml('没有待处理内容',{variant:'secondary'})}/></article>
- <article><h3>等待响应</h3><Html html={loadingDotsHtml('正在读取来源状态')}/></article>
- </div></section>
- </main>;
-}
-
-/** 只由开发预览入口调用;演示组件禁止发起任务请求。 */
-export function mountBoardStatePreview(root:HTMLElement){render(h(StatePreview,{}),root)}
diff --git a/frontend/src/islands.ts b/frontend/src/islands.ts
index cbc7dff4e..7c24b1d1f 100644
--- a/frontend/src/islands.ts
+++ b/frontend/src/islands.ts
@@ -4,7 +4,7 @@
* 之后,它的入口只做两件事:铺好加载占位,然后把一个容器交给这里。
*
* const ui = await import('/dist/peach-ui.js');
- * await ui.mountIsland('scraping', $('#stats'), props);
+ * await ui.mountIsland('configuration', $('#stats'), props);
*
* `mountIsland` 是 async 且**取完数才画**:遗留层已经铺了骨架,island 若先画一个空
* 容器再自己转圈,同一次进入就会出现两段等待态(`peach-web-ui` 明确禁止)。所以这里
@@ -16,7 +16,6 @@ import { h, render } from 'preact';
export { preferredDirection } from './sort-preferences';
export { boundedPreference, mountNumberSetting, syncNumberSetting } from './number-setting';
export { statCardBody, rankedChart, radarChart, distributionChart, jobProgressHtml } from './board-metrics';
-export { mountBoardStatePreview } from './board-state-preview';
export { initBoardControls, syncBoardRange, wireExpandableRanks, wireGrowingCharts } from './board-controls';
export { creatorSankeyHtml, wireCreatorSankey } from './board-sankey';
export { radialCardHtml, wireRadialCards, activityChartsHtml, wireActivityCharts } from './board-analytics';
@@ -26,8 +25,6 @@ import type { Attributes, ComponentType } from 'preact';
import { errorMessage } from './api';
import { Configuration, loadConfiguration } from './islands/configuration';
import type { ConfigurationData, ConfigurationProps } from './islands/configuration';
-import { LibraryProcessing, loadLibraryProcessing } from './islands/library-processing';
-import type { LibraryProcessingData, LibraryProcessingProps } from './islands/library-processing';
import type * as ReactBundle from '@peach/react';
export { watchJob, followJobProgress, jobActivityHtml } from './jobs';
@@ -53,7 +50,7 @@ export interface IslandState<D> {
/** 每个 island 的 props 与首屏数据类型。新增 island 时在这里登记,注册表随之要求实现。
* React 档的页面自己管数据(首屏落在共用的 Query 缓存里),`data` 写成 `null`。 */
export interface IslandContracts {
- 'library-processing': { props: LibraryProcessingProps; data: LibraryProcessingData };
+ 'library-processing': { props: ReactBundle.LibraryProcessingProps; data: null };
'scraping': { props: ReactBundle.ScrapingProps; data: null };
'quality-goals': { props: ReactBundle.QualityGoalsProps; data: null };
configuration: { props: ConfigurationProps; data: ConfigurationData };
@@ -81,7 +78,7 @@ interface ReactIsland {
type IslandDefinition<N extends IslandName> = PreactIsland<N> | ReactIsland;
const REGISTRY: { [N in IslandName]: IslandDefinition<N> } = {
- 'library-processing': { load: loadLibraryProcessing, component: LibraryProcessing },
+ 'library-processing': { react: 'library-processing' },
'scraping': { react: 'scraping' },
'quality-goals': { react: 'quality-goals' },
configuration: { load: loadConfiguration, component: Configuration },
@@ -179,8 +176,18 @@ async function mountReactPage<N extends IslandName>(
* 内容清掉:内容根本没变时,那一下只是一次白白的布局塌陷。 */
export const islandMounted = (el: Element | null): boolean => !!el && mounted.has(el);
-/** 卸载容器上的 island:中止在途取数并清空自己画过的内容。没挂过的容器是空操作。 */
+/** 卸载容器上的 island:中止在途取数并清空自己画过的内容。没挂过的容器是空操作。
+ *
+ * 连子孙容器一起卸。遗留壳在 `claimSurface` 只对管理区正文那一个容器(`#stats`)调它,
+ * 而卡片挂在里面更深的一格上(`#libraryProcessing` 在 `#stats` 里):只卸最外层的话,
+ * 离开这一页之后那棵根还活着,照着原节律继续敲库。 */
export function unmountIsland(el: Element): void {
+ for (const container of [...mounted.keys()]) {
+ if (container === el || el.contains(container)) disposeIsland(container);
+ }
+}
+
+function disposeIsland(el: Element): void {
const mount = mounted.get(el);
if (!mount) return;
mount.controller.abort();
diff --git a/frontend/src/islands/library-processing.tsx b/frontend/src/islands/library-processing.tsx
deleted file mode 100644
index c36cf2348..000000000
--- a/frontend/src/islands/library-processing.tsx
+++ /dev/null
@@ -1,165 +0,0 @@
-import { useEffect, useRef, useState } from 'preact/hooks';
-import { apiGet, apiSend, errorMessage } from '../api';
-import { fieldsetTitle, noteHtml, projectBannerHtml, wireCollapse } from '@peach/legacy/ui';
-import { jobActivityHtml, watchJob } from '../jobs';
-import type { JobState } from '../jobs';
-import { LinkButton } from '../link-button';
-import { SplitAction } from '../split-action';
-import type { IslandState } from '../islands';
-
-export interface LibraryProcessingIssue { asset_id: number | null; title?: string; path?: string; message: string; severity?: 'info' | 'error' }
-export interface LibraryProcessingData extends JobState {
- stage?: string; scanned?: number; identified?: number; candidates?: number; covers?: number;
- issue_count?: number; issue_preview?: LibraryProcessingIssue[]; issues_log?: string;
- notes?: Record<string, number>;
- issues_truncated?: boolean; retryable_asset_ids?: number[];
- current_asset_id?: number | null; current_asset_name?: string; current_action?: string;
- current_started_at?: number; last_progress_at?: number; stalled?: boolean; waited_seconds?: number;
- completed_at?: number;
-}
-export interface LibraryProcessingProps { toast(message: string): void; onComplete?(): void; mode?: 'notice'; monitor?: boolean; preview?: boolean }
-export const loadLibraryProcessing = (_props: LibraryProcessingProps, signal: AbortSignal) =>
- apiGet<LibraryProcessingData>('/api/library-processing', signal);
-
-const ACTION_LABELS: Record<string, string> = {
- reading_local: '读取本地资料', querying_metadata: '查询外部资料',
- fetching_cover: '采集缺失封面', writing_candidates: '保存资料候选',
-};
-/* 来源说「没有」按类型报一个数,不进问题清单:馆藏里大量独立资源和创作者作品
- 任何目录站都收不到,它们不是待办。键与 `library_processing.MISS_MESSAGES` 同源。 */
-const NOTE_LABELS: Record<string, string> = { querying_metadata: '没有资料', fetching_cover: '没有封面' };
-
-function notesLine(notes: Record<string, number>): string {
- const parts = Object.entries(notes)
- .filter(([key, count]) => NOTE_LABELS[key] && count > 0)
- .map(([key, count]) => `${NOTE_LABELS[key]} ${count} 部`);
- return parts.length ? `外部来源${parts.join('、')},7 天内不再问。` : '';
-}
-
-function currentLine(state: LibraryProcessingData): string {
- const action = ACTION_LABELS[state.current_action || ''] || state.stage || '正在处理';
- const waited = state.waited_seconds ? ` · 已等待 ${state.waited_seconds} 秒` : '';
- return state.current_asset_name ? `当前:${state.current_asset_name} · ${action}${waited}` : action + waited;
-}
-
-/* 完成用通知报一次。目录页的横幅和数据整理页的卡片看的是同一个任务,谁先看到结束谁报,
- 另一处按任务号认出来就不再报。首次引导添加文件夹后那一趟常在跳到目录页之前就跑完
- (一个文件一秒),横幅从没见过「运行中」,所以刚结束的任务第一次读到时也报。 */
-const ANNOUNCED_KEY = 'peach.library-processing.announced';
-const FRESH_COMPLETION_SECONDS = 120;
-function announceCompletion(state: LibraryProcessingData, toast: (message: string) => void, witnessed: boolean): void {
- if (state.status !== 'complete') return;
- const fresh = !!state.job_id && !!state.completed_at && Date.now() / 1000 - state.completed_at < FRESH_COMPLETION_SECONDS;
- if (!witnessed && !fresh) return;
- try {
- if (state.job_id && localStorage.getItem(ANNOUNCED_KEY) === state.job_id) return;
- if (state.job_id) localStorage.setItem(ANNOUNCED_KEY, state.job_id);
- } catch { /* 存储不可用时照常提示,最多重复一次 */ }
- toast(`扫描与资料采集已完成:识别 ${state.identified || 0} 个番号,整理 ${state.candidates || 0} 组资料候选`);
-}
-
-export function LibraryProcessing({ data, error, toast, onComplete, mode, monitor, preview }: LibraryProcessingProps & IslandState<LibraryProcessingData>) {
- const [state, setState] = useState<LibraryProcessingData>(data || { status: 'idle' });
- const [problem, setProblem] = useState(error);
- const [submitting, setSubmitting] = useState(false);
- const [receipt, setReceipt] = useState(false);
- const lifetime = useRef(new AbortController());
- const generation = useRef(0);
- const previousStatus = useRef(state.status);
- const outcome = useRef<HTMLDivElement>(null);
- useEffect(() => { if(outcome.current)wireCollapse(outcome.current,'.geist-note-details','library-issues'); }, [state,problem]);
- const busy = submitting || state.status === 'running';
- async function follow() {
- const epoch = ++generation.current;
- await watchJob<LibraryProcessingData>({
- read: signal => apiGet('/api/library-processing', signal),
- active: () => !lifetime.current.signal.aborted && generation.current === epoch,
- keepWatching: mode === 'notice' || !!monitor,
- render: next => {
- setState(next); setProblem('');
- const witnessed = next.status === 'complete' && previousStatus.current === 'running';
- if (witnessed && mode !== 'notice') setReceipt(true);
- if (witnessed || mode === 'notice') announceCompletion(next, toast, witnessed);
- if (previousStatus.current === 'running' && (next.status === 'complete' || next.status === 'failed')) onComplete?.();
- previousStatus.current = next.status;
- },
- disconnected: () => setProblem('连接中断,正在重新读取处理进度'),
- });
- }
- useEffect(() => {
- if (!preview && (state.status === 'running' || mode === 'notice' || monitor)) void follow();
- return () => lifetime.current.abort();
- }, []);
- async function submit(body: LibraryProcessingData | object) {
- if (busy || preview) return;
- setSubmitting(true); setProblem(''); setReceipt(false);
- try {
- const next = await apiSend<LibraryProcessingData>('/api/library-processing', body, 'POST', lifetime.current.signal);
- if (lifetime.current.signal.aborted) return;
- previousStatus.current = next.status;
- setState(next); setSubmitting(false); await follow();
- } catch (cause) {
- if (!lifetime.current.signal.aborted) { setProblem(errorMessage(cause)); setSubmitting(false); }
- }
- }
- const start = () => void submit({});
- const retry = () => {
- if (!state.job_id || !state.retryable_asset_ids?.length) return;
- void submit({ job_id: state.job_id, retry: state.retryable_asset_ids });
- };
- if (mode === 'notice') {
- if (!problem && state.status !== 'running' && state.status !== 'failed') return null;
- const message=problem || (state.status === 'failed' ? '扫描与资料采集未完成' : currentLine(state) + (state.total ? ` · ${state.checked || 0} / ${state.total}` : ''));
- return <div dangerouslySetInnerHTML={{__html:projectBannerHtml(message,{
- variant:state.status === 'failed' ? 'error' : problem ? 'warning' : state.stalled ? 'warning' : 'gray',
- href:'/data-cleanup#libraryProcessing',label:problem || state.status === 'failed' ? '查看并处理' : '查看进度',
- value:state.checked || 0,...(state.status === 'running' && state.total !== undefined ? {max:state.total} : {}),
- })}} />;
- }
- /* 进度条讲的是卡片上那个按钮此刻在做什么,留在卡片里;结果和故障讲的是这一趟任务
- 的下场,挂在卡片外面,和链接管理、资源同步那两块同一个写法。 */
- const issues = state.issue_preview || [];
- const notes = notesLine(state.notes || {});
- const retryable = state.status === 'failed' && !!state.retryable_asset_ids?.length;
- /* 问题清单收进那条错误 Note 的折叠里:卡片下面先看到的应该是「这一趟怎么了」,
- 逐条明细是要展开才读的东西。完整清单在状态给出的日志文件里,界面只留前 20 条。 */
- const issueDetails = issues.length ? {
- label: state.issues_truncated
- ? `问题清单:共 ${state.issue_count || 0} 项,展开查看前 ${issues.length} 项`
- : `问题清单:共 ${state.issue_count || 0} 项`,
- items: issues.map(issue => ({
- label: issue.title || (issue.asset_id ? `视频 ${issue.asset_id}` : '媒体来源'),
- href: issue.asset_id ? `/item/${issue.asset_id}` : '',
- note: issue.message, hint: issue.path || '',
- })),
- footnote: state.issues_log ? `完整记录:${state.issues_log}` : '',
- } : null;
- return <>
- <section class="cleanupfieldset" data-geist-fieldset aria-labelledby="cleanupScrapingTitle">
- <div class="geist-fieldset-content library-processing">
- <div dangerouslySetInnerHTML={{ __html: fieldsetTitle('cleanupScrapingTitle', '扫描与采集') }} />
- <p>扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。</p>
- {state.status === 'running' && <div aria-live="polite" dangerouslySetInnerHTML={{ __html:
- jobActivityHtml(state.total ? `${currentLine(state)} · ${state.checked || 0} / ${state.total} 个视频` : currentLine(state), state.checked, state.total) }} />}
- </div>
- <footer class="geist-fieldset-footer" data-geist-fieldset-footer>
- <LinkButton href="/scraping">来源和凭证</LinkButton>
- {!!state.candidates && <LinkButton href="/review">复核资料</LinkButton>}
- {(state.status !== 'failed' || !retryable) && <SplitAction id="libraryProcessingMenu" label="更多扫描与采集方式" busy={busy} actions={[
- {label:'扫描并补全资料',icon:'database',run:start},
- {label:'只扫描',icon:'hard-drive',run:()=>void submit({stage:'scan'})},
- {label:'只采集',icon:'globe',run:()=>void submit({stage:'collect'})},
- ]} />}
- </footer>
- </section>
- <div class="library-processing-outcome" aria-live="polite" ref={outcome}>
- {state.status === 'running' && state.stalled && <div class="library-processing-stalled" dangerouslySetInnerHTML={{ __html: noteHtml(
- '这个项目处理时间较长,暂时没有新进展。可以继续等待,或在任务结束后重试未完成项。',
- { variant: 'warning', label: '处理较慢', filled: true }) }} />}
- {(problem || state.status === 'failed') && <div role="alert" onClick={event=>{if((event.target as HTMLElement).closest('[data-note-action]'))retry();}} dangerouslySetInnerHTML={{ __html: noteHtml(problem || state.error || '处理未完成,请重试', { variant: 'error',filled:true,actionLabel:retryable?'重试未完成项':'',details:issueDetails }) }} />}
- {receipt && <div class="library-processing-result" dangerouslySetInnerHTML={{ __html: noteHtml(`已扫描 ${state.scanned || 0} 个文件,识别 ${state.identified || 0} 个番号,整理 ${state.candidates || 0} 组资料候选。`, { variant: 'success', label: '处理完成' }) }} />}
- {state.status !== 'running' && !!notes && <div dangerouslySetInnerHTML={{__html:noteHtml(
- notes + (state.issues_log ? ` 完整记录:${state.issues_log}` : ''), { variant: 'secondary' })}} />}
- </div>
- </>;
-}
diff --git a/frontend/src/legacy/ui.d.ts b/frontend/src/legacy/ui.d.ts
index 36164f1ff..8938b1f2e 100644
--- a/frontend/src/legacy/ui.d.ts
+++ b/frontend/src/legacy/ui.d.ts
@@ -12,8 +12,6 @@ export declare function emptyStateHtml(
options?: { className?: string; actions?: string },
): string;
-/** Geist Fieldset 的标题:放在框体里的 h3,不用原生 legend。 */
-export declare function fieldsetTitle(id: string, title: string): string;
export declare function collectionSummaryHtml(label: string, value: string, detail?: string): string;
export declare function badgeHtml(text: string): string;
export declare function checkboxHtml(inputAttrs?: string): string;
@@ -51,7 +49,6 @@ export declare function attachOverlayScrollbar(
/** 用户触发的动作等待结果时的忙态:`aria-busy` 与 `aria-disabled` 一起写,控件仍可聚焦,
* 重复触发由遗留层的 `wireBusyActions` 拦住。请求等待期不许改用原生 `disabled`。 */
export declare function setActionBusy(control: Element | null, busy?: boolean): void;
-export declare function wireAnchoredMenu(mount: Element, toggle: Element, menu: Element): {setOpen(open: boolean): void; isOpen(): boolean};
/** Geist Note:字段、卡片、分区旁的持久反馈。 */
export declare function noteHtml(
@@ -72,4 +69,3 @@ export declare function noteHtml(
} | null;
},
): string;
-export declare function projectBannerHtml(message:string,options:{variant?:'gray'|'success'|'warning'|'error';href:string;label:string;value?:number;max?:number}):string;
diff --git a/frontend/src/link-button.tsx b/frontend/src/link-button.tsx
deleted file mode 100644
index 0d3c13eb3..000000000
--- a/frontend/src/link-button.tsx
+++ /dev/null
@@ -1,8 +0,0 @@
-import type { ComponentChildren } from 'preact';
-
-/** 正文和操作区的内部导航,右箭头表示在 Peach 内继续。 */
-export function LinkButton({ href, children }: { href: string; children: ComponentChildren }) {
- return <a class="board-link-button" href={href}><span>{children}</span>
- <svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-arrow-up" /></svg>
- </a>;
-}
diff --git a/frontend/src/react/boardui/ORIGIN.md b/frontend/src/react/boardui/ORIGIN.md
index 4171163b8..d8fb7cc80 100644
--- a/frontend/src/react/boardui/ORIGIN.md
+++ b/frontend/src/react/boardui/ORIGIN.md
@@ -51,3 +51,6 @@
| 选文件 | 同上:原生 `input[type=file]` 只留着接文件,点它的是一颗 `secondary` 按钮,选中的文件名跟在旁边 | 注册表里没有文件选择组件;原生控件的按钮长相由浏览器决定,改不动 |
| 分区标题旁的次要内容 | `../settings/section.tsx` 的 `Section` 收一个 `aside`,标题占剩下的宽度、它靠右(来源站点的站标与登录地址) | `SettingsSectionLabel` 只画标题;把外链塞进标题里会进无障碍名称 |
| 站点标识 | `../scraping/scraping-page.tsx` 的 `SiteMark` 直接画 `<img>` 取服务端的 `/site-mark`,取不到就把节点摘掉 | `../settings/section.tsx` 的 `SourceMark` 只认雪碧图字形与内嵌 PNG,采集来源的图标是一条服务端地址 |
+| 主键带下拉 | `../library-processing/library-processing-card.tsx` 的 `ScanActions`:触发键是一颗 `iconOnly` 的 `Button`,面板用 React Aria 的 `Popover` + `Dialog`,行的外观取 `components/base/dropdown/menu-styles.ts` | `dropdown` 条目的 `DropdownTrigger` 自己就是那颗按钮、外观全由 `className` 给,`@shadcn/lint` 的 `no-restyle` 只放行布局类,套不进 `Button` 的档位 |
+| 行内横幅 | `../library-processing/library-processing-notice.tsx` 按语气取 `status-yellow`、`background-tertiary-error` 与 `separator-border` 组合,一行里放进度环、一句话和一个去处 | 注册表里没有行内横幅;`notification` 条目是带关闭键和计时的浮动通知 |
+| 进度环 | 同上的 `Gauge`:SVG 两圈,`pathLength={100}` 把一圈长度钉成 100,画出来的那一段就是百分比 | 注册表里没有环形进度;`../components/progress.tsx` 那一份是横条,横幅那一行放不下 |
diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.ts
index 627fd76b8..e679d0754 100644
--- a/frontend/src/react/bundle.d.ts
+++ b/frontend/src/react/bundle.d.ts
@@ -118,8 +118,22 @@ export interface ScrapingProps {
toast(message: string): void;
}
+/** 扫描与采集。同一份数据两个读者,所以同一个名字挂两种形态:数据管理页那张卡片,
+ * 和目录页顶上那条横幅(`mode: 'notice'`)。 */
+export interface LibraryProcessingProps {
+ /** 任务跑完时的一次通知。同一趟按 `job_id` 只报一次,谁先看到结束谁报。 */
+ toast(message: string): void;
+ /** 这一趟从运行走到终态:让遗留层重画数据管理页那几个计数。 */
+ onComplete?(): void;
+ /** 画成目录页顶上那条横幅,而不是数据管理页那张卡片。 */
+ mode?: 'notice';
+ /** 卡片闲着时也接着问:任务由后台自己起,页面要认出「现在跑起来了」。 */
+ monitor?: boolean;
+}
+
export interface ReactPages {
activity: ReactPage<ActivityProps>;
+ 'library-processing': ReactPage<LibraryProcessingProps>;
'quality-goals': ReactPage<QualityGoalsProps>;
scraping: ReactPage<ScrapingProps>;
}
diff --git a/frontend/src/react/components/note.tsx b/frontend/src/react/components/note.tsx
index 360ca37b1..24f0ff7cd 100644
--- a/frontend/src/react/components/note.tsx
+++ b/frontend/src/react/components/note.tsx
@@ -6,12 +6,19 @@ import type { ReactNode } from 'react';
type Tone = 'neutral' | 'info' | 'success' | 'warning' | 'error';
-/** 没有密码、保存失败、账本缺表这类是当前状态,不和字段说明共用灰色小字。 */
-export function Note({ tone, title, children }: { tone: Tone; title?: string; children: ReactNode }) {
+/** 没有密码、保存失败、账本缺表这类是当前状态,不和字段说明共用灰色小字。
+ *
+ * `extra` 收结论以外的东西(重试键、折叠起来的问题清单):它们讲的是同一件事,摆到
+ * Note 外面就成了一句话加一个不知道属于谁的按钮。正文是段落,塞不进这些块级内容。 */
+export function Note(
+ { tone, title, extra, children }:
+ { tone: Tone; title?: string; extra?: ReactNode; children: ReactNode },
+) {
const content = (
<>
{title ? <p className="text-body-medium">{title}</p> : null}
<p className="text-body-2-regular">{children}</p>
+ {extra}
</>
);
switch (tone) {
diff --git a/frontend/src/react/entry.tsx b/frontend/src/react/entry.tsx
index da1112c12..a8e73c9be 100644
--- a/frontend/src/react/entry.tsx
+++ b/frontend/src/react/entry.tsx
@@ -9,6 +9,9 @@ import { createRoot } from 'react-dom/client';
import { ActivityPage } from './activity/activity-page';
import { prefetchTasks } from './activity/tasks';
import type * as Bundle from './bundle';
+import { prefetchLibraryProcessing } from './library-processing/library-processing';
+import { LibraryProcessingCard } from './library-processing/library-processing-card';
+import { LibraryProcessingNotice } from './library-processing/library-processing-notice';
import { QualityGoalsPage } from './quality-goals/quality-goals-page';
import { prefetchQualityGoals } from './quality-goals/quality-goals';
import { queryClient } from './query';
@@ -48,9 +51,19 @@ function mounter<P extends object>(Component: ComponentType<P>) {
};
}
+/* 扫描与采集一个名字两种形态:数据管理页那张卡片,和目录页顶上那条横幅。两边读同一个
+ * `queryKey`,所以同时挂着时它们看的是同一份快照,Query 也只发一份轮询。 */
+const LibraryProcessing = (props: Bundle.LibraryProcessingProps) => (
+ props.mode === 'notice' ? <LibraryProcessingNotice {...props} /> : <LibraryProcessingCard {...props} />
+);
+
/** 整页归 React 的那些页面,按名字给遗留层的 React 档用。 */
export const pages: Bundle.ReactPages = {
activity: { prefetch: (_props, signal) => prefetchTasks(signal), mount: mounter(ActivityPage) },
+ 'library-processing': {
+ prefetch: (_props, signal) => prefetchLibraryProcessing(signal),
+ mount: mounter(LibraryProcessing),
+ },
'quality-goals': {
prefetch: (_props, signal) => prefetchQualityGoals(signal), mount: mounter(QualityGoalsPage),
},
diff --git a/frontend/src/react/library-processing/library-processing-card.tsx b/frontend/src/react/library-processing/library-processing-card.tsx
new file mode 100644
index 000000000..2e8da3d42
--- /dev/null
+++ b/frontend/src/react/library-processing/library-processing-card.tsx
@@ -0,0 +1,213 @@
+/* 数据管理页上的「扫描与采集」卡片。
+ *
+ * 卡片里讲的是那颗按钮此刻在做什么(进度或等待点);结果和故障讲的是这一趟任务的下场,
+ * 挂在卡片外面,和链接管理、资源同步那两块同一个写法。
+ *
+ * 写操作是 `useMutation`:服务端回的就是这一趟的新快照,用 `setQueryData` 换进缓存,
+ * 再让这个键立刻重读一次接上轮询的节律。首屏读到的旧终态不冒充新结果——任务关掉页面
+ * 照样在跑,状态里常年躺着上一趟的回执,判据在 `use-library-processing.ts`。 */
+import { useEffect, useRef, useState } from 'react';
+import {
+ RiArrowDownSLine, RiArrowRightLine, RiDatabase2Line, RiGlobalLine, RiHardDrive2Line,
+} from '@remixicon/react';
+import { useMutation } from '@tanstack/react-query';
+import { Dialog, Popover } from 'react-aria-components';
+
+import { Button } from '@/components/base/buttons/button';
+import { LinkButton } from '@/components/base/buttons/link-button';
+import {
+ MENU_ITEM, MENU_ITEM_INTERACTIVE, MENU_POPOVER_SURFACE,
+} from '@/components/base/dropdown/menu-styles';
+import { cx } from '@/utils/cx';
+
+import { apiSend, errorMessage } from '../../api';
+import type { LibraryProcessingProps } from '../bundle';
+import { LoadingDots } from '../components/loading-dots';
+import { Note } from '../components/note';
+import { Progress } from '../components/progress';
+import { Disclosure, Footer, Section, Stack } from '../settings/section';
+import { busyProps } from '../settings/use-action';
+import { queryClient } from '../query';
+import {
+ currentLine, DISCONNECTED_TEXT, issueDetails, LIBRARY_PROCESSING_KEY, LIBRARY_PROCESSING_URL,
+ notesLine, type LibraryProcessingCommand, type LibraryProcessingData,
+} from './library-processing';
+import { useLibraryProcessingJob } from './use-library-processing';
+
+/** 菜单里那两种只跑一半的方式。主键「扫描并补全资料」两段都跑,交的是空请求体。 */
+const PARTIAL_RUNS = [
+ { label: '只扫描', icon: RiHardDrive2Line, command: { stage: 'scan' } },
+ { label: '只采集', icon: RiGlobalLine, command: { stage: 'collect' } },
+] as const;
+
+const MENU_ROW = cx(MENU_ITEM, MENU_ITEM_INTERACTIVE, 'text-body-2-medium');
+
+/* 中文正文写成常量:JSX 里换行的文字会在接缝处多出一个空格,中文句子里看得见。 */
+const CARD_TEXT = '扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,'
+ + '几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。';
+const STALLED_TEXT = '这个项目处理时间较长,暂时没有新进展。可以继续等待,或在任务结束后重试未完成项。';
+const receiptText = (state: LibraryProcessingData) =>
+ `已扫描 ${state.scanned || 0} 个文件,识别 ${state.identified || 0} 个番号,`
+ + `整理 ${state.candidates || 0} 组资料候选。`;
+
+/** 主键加一个下拉:三种方式改的是同一件事,摊成三颗按钮读不出哪个是常用的那一个。
+ *
+ * 注册表 `dropdown` 条目的 `DropdownTrigger` 自己就是那颗按钮、外观全由 className 给,
+ * 套不进 BoardUI `Button` 的档位,所以触发键用 `Button`、面板用 React Aria 的
+ * `Popover` + `Dialog` 组合,行的外观仍取 `menu-styles.ts`(登记在 `boardui/ORIGIN.md`)。 */
+function ScanActions({ busy, onRun }: { busy: boolean; onRun(command: LibraryProcessingCommand): void }) {
+ const trigger = useRef<HTMLButtonElement>(null);
+ const [open, setOpen] = useState(false);
+ const run = (command: LibraryProcessingCommand) => {
+ if (busy) return;
+ setOpen(false);
+ onRun(command);
+ };
+ return (
+ <>
+ <span className="flex items-center gap-1">
+ <Button leadingIcon={RiDatabase2Line} onClick={() => run({})} {...busyProps(busy)}>
+ 扫描并补全资料
+ </Button>
+ <Button ref={trigger} iconOnly leadingIcon={RiArrowDownSLine}
+ aria-label="更多扫描与采集方式" aria-haspopup="dialog" aria-expanded={open}
+ {...busyProps(busy)} onClick={() => { if (!busy) setOpen(true) }} />
+ </span>
+ <Popover triggerRef={trigger} isOpen={open} onOpenChange={setOpen}
+ placement="bottom end" offset={4} className={MENU_POPOVER_SURFACE}>
+ <Dialog aria-label="更多扫描与采集方式" className="flex w-52 flex-col gap-1 outline-none">
+ {PARTIAL_RUNS.map(({ label, icon: Glyph, command }) => (
+ <button key={label} type="button" className={MENU_ROW} onClick={() => run(command)}>
+ <Glyph aria-hidden className="size-4 shrink-0" />
+ {label}
+ </button>
+ ))}
+ </Dialog>
+ </Popover>
+ </>
+ );
+}
+
+/** 卡片外面那一块:这一趟怎么了。逐条明细要展开才读,完整清单在状态给出的日志文件里。 */
+function Outcome(
+ { state, problem, settled, onRetry }:
+ {
+ state: LibraryProcessingData; problem: string;
+ settled: LibraryProcessingData | null; onRetry(): void;
+ },
+) {
+ const details = issueDetails(state);
+ const retryable = state.status === 'failed' && !!state.retryable_asset_ids?.length;
+ const notes = notesLine(state.notes || {});
+ return (
+ /* 空着时整块收起:`aria-live` 的容器留着一条空轨道,卡片底下就凭空多出一个间距。 */
+ <div aria-live="polite" className="flex flex-col gap-4 empty:hidden">
+ {state.status === 'running' && state.stalled
+ ? <Note tone="warning" title="处理较慢">{STALLED_TEXT}</Note>
+ : null}
+ {problem || state.status === 'failed'
+ ? <Note tone="error" extra={
+ <div className="flex flex-col items-start gap-3 pt-1">
+ {retryable
+ ? <Button variant="secondary" size="small" onClick={onRetry}>重试未完成项</Button>
+ : null}
+ {details
+ ? <Disclosure summary={details.label}>
+ <ul className="flex max-h-96 flex-col gap-2 overflow-y-auto">
+ {details.items.map((item) => (
+ <li key={item.key} className="flex flex-col gap-0.5">
+ {item.href
+ ? <a href={item.href} className="text-body-2-medium underline-offset-4 hover:underline">{item.label}</a>
+ : <span className="text-body-2-medium">{item.label}</span>}
+ <span className="text-caption-1-regular">{item.note}</span>
+ {item.hint ? <code className="text-caption-1-regular break-all">{item.hint}</code> : null}
+ </li>
+ ))}
+ </ul>
+ {details.footnote
+ ? <p className="text-caption-1-regular break-all">{details.footnote}</p>
+ : null}
+ </Disclosure>
+ : null}
+ </div>
+ }>
+ {problem || state.error || '处理未完成,请重试'}
+ </Note>
+ : null}
+ {settled?.status === 'complete'
+ ? <Note tone="success" title="处理完成">{receiptText(settled)}</Note>
+ : null}
+ {state.status !== 'running' && notes
+ ? <Note tone="neutral">
+ {notes}{state.issues_log ? ` 完整记录:${state.issues_log}` : ''}
+ </Note>
+ : null}
+ </div>
+ );
+}
+
+export function LibraryProcessingCard(props: LibraryProcessingProps) {
+ const { toast, onComplete } = props;
+ const { job, settled, forget } = useLibraryProcessingJob(props);
+ const start = useMutation({
+ mutationFn: (command: LibraryProcessingCommand) =>
+ apiSend<LibraryProcessingData>(LIBRARY_PROCESSING_URL, command),
+ onSuccess: (next) => {
+ forget();
+ // 回的就是这一趟的新快照,换进缓存即可;节律由这个键说了算,让它立刻重读一次接上。
+ queryClient.setQueryData(LIBRARY_PROCESSING_KEY, next);
+ void queryClient.invalidateQueries({ queryKey: LIBRARY_PROCESSING_KEY });
+ },
+ });
+ // 这一趟跑完了就让遗留层重画数据管理页那几个计数:复核与候选的读数跟着它变。
+ useEffect(() => { if (settled) onComplete?.() }, [settled, onComplete]);
+
+ const state = job.data ?? { status: 'idle' };
+ const problem = start.error ? errorMessage(start.error)
+ : job.isError ? (job.data ? DISCONNECTED_TEXT : errorMessage(job.error))
+ : '';
+ const busy = start.isPending || state.status === 'running';
+ const retryable = state.status === 'failed' && !!state.retryable_asset_ids?.length;
+ const line = currentLine(state);
+
+ const run = (command: LibraryProcessingCommand) => {
+ if (busy) return;
+ start.reset();
+ start.mutate(command);
+ };
+ const retry = () => {
+ if (!state.job_id || !state.retryable_asset_ids?.length) return;
+ run({ job_id: state.job_id, retry: state.retryable_asset_ids });
+ };
+
+ return (
+ <div className="flex flex-col gap-4">
+ <Section title="扫描与采集">
+ <Stack>
+ <p className="text-body-2-regular text-text-secondary">{CARD_TEXT}</p>
+ {state.status === 'running'
+ ? <div className="flex flex-col gap-1.5">
+ {state.total
+ ? <>
+ <Progress label={line} value={state.checked || 0} max={state.total} />
+ <p className="text-caption-1-regular text-text-secondary">
+ {line} · {state.checked || 0} / {state.total} 个视频
+ </p>
+ </>
+ : <LoadingDots label={line} />}
+ </div>
+ : null}
+ </Stack>
+ <Footer>
+ <LinkButton href="/scraping" size="small" trailingIcon={RiArrowRightLine}>来源和凭证</LinkButton>
+ {state.candidates
+ ? <LinkButton href="/review" size="small" trailingIcon={RiArrowRightLine}>复核资料</LinkButton>
+ : null}
+ {/* 失败且有可重试项时,这一趟该做的事是「重试未完成项」,它在下面那条错误提示里。 */}
+ {retryable ? null : <ScanActions busy={busy} onRun={run} />}
+ </Footer>
+ </Section>
+ <Outcome state={state} problem={problem} settled={settled} onRetry={retry} />
+ </div>
+ );
+}
diff --git a/frontend/src/react/library-processing/library-processing-notice.tsx b/frontend/src/react/library-processing/library-processing-notice.tsx
new file mode 100644
index 000000000..1cb8f363c
--- /dev/null
+++ b/frontend/src/react/library-processing/library-processing-notice.tsx
@@ -0,0 +1,70 @@
+/* 目录页顶上那条处理横幅。
+ *
+ * 它和数据管理页那张卡片读同一个 `queryKey`(同一趟任务、同一份快照),只是说得更短:
+ * 一圈进度或一枚图标、一句话、一个去处。任务不在跑也没出事时整条不画——容器靠
+ * `web/board.css` 的 `:has(>.peach-react:empty)` 把高度收回 0,出现与消失都是走的。
+ *
+ * 注册表里没有行内横幅(`notification` 条目是带关闭键和计时的浮动通知),按语气取
+ * `status-*` 与 `separator-border` 组合,登记在 `../boardui/ORIGIN.md`。 */
+import { RiArrowRightLine, RiErrorWarningLine, RiInformationLine } from '@remixicon/react';
+
+import { LinkButton } from '@/components/base/buttons/link-button';
+
+import { errorMessage } from '../../api';
+import type { LibraryProcessingProps } from '../bundle';
+import { currentLine, DISCONNECTED_TEXT } from './library-processing';
+import { useLibraryProcessingJob } from './use-library-processing';
+
+type Tone = 'gray' | 'warning' | 'error';
+
+const SURFACE: Record<Tone, string> = {
+ gray: 'flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-separator-border px-4 py-3 text-text-secondary',
+ warning: 'flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-separator-border bg-status-yellow-background px-4 py-3 text-status-yellow-text',
+ error: 'flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-separator-border bg-background-tertiary-error px-4 py-3 text-text-error-primary',
+};
+
+/** 进度环。几何走 SVG 属性:一圈长度钉成 100,画出来的那一段就是百分比本身。 */
+function Gauge({ value, max }: { value: number; max: number }) {
+ const percent = Math.max(0, Math.min(100, (value / max) * 100));
+ return (
+ <svg role="progressbar" aria-label="任务完成率" aria-valuemin={0} aria-valuemax={100}
+ aria-valuenow={percent} viewBox="0 0 32 32" fill="none"
+ className="size-6 shrink-0 -rotate-90 stroke-current">
+ <circle cx="16" cy="16" r="13" strokeWidth="4" className="opacity-25" />
+ <circle cx="16" cy="16" r="13" strokeWidth="4" pathLength={100}
+ strokeDasharray={`${percent} 100`} strokeLinecap="round" />
+ </svg>
+ );
+}
+
+export function LibraryProcessingNotice(props: LibraryProcessingProps) {
+ const { job } = useLibraryProcessingJob(props);
+ const state = job.data;
+ const problem = job.isError ? (state ? DISCONNECTED_TEXT : errorMessage(job.error)) : '';
+ const status = state?.status ?? 'idle';
+ const failed = status === 'failed';
+ const running = status === 'running';
+ /* 任务不在跑、也没出事时这条不该占地方:目录页顶上常年挂一句「没有任务」比没有还吵。 */
+ if (!problem && !running && !failed) return null;
+
+ const tone: Tone = failed ? 'error' : problem || state?.stalled ? 'warning' : 'gray';
+ const checked = state?.checked || 0;
+ const total = state?.total || 0;
+ const message = problem
+ || (failed ? '扫描与资料采集未完成'
+ : currentLine(state!) + (total ? ` · ${checked} / ${total}` : ''));
+ const Glyph = tone === 'gray' ? RiInformationLine : RiErrorWarningLine;
+ return (
+ <aside role={failed ? 'alert' : 'status'} className={SURFACE[tone]}>
+ <div className="flex min-w-0 items-center gap-3">
+ {running && total
+ ? <Gauge value={checked} max={total} />
+ : <Glyph aria-hidden className="size-5 shrink-0" />}
+ <p className="min-w-0 text-body-2-regular">{message}</p>
+ </div>
+ <LinkButton href="/data-cleanup#libraryProcessing" size="small" trailingIcon={RiArrowRightLine}>
+ {problem || failed ? '查看并处理' : '查看进度'}
+ </LinkButton>
+ </aside>
+ );
+}
diff --git a/frontend/src/react/library-processing/library-processing.ts b/frontend/src/react/library-processing/library-processing.ts
new file mode 100644
index 000000000..4baf6e5e9
--- /dev/null
+++ b/frontend/src/react/library-processing/library-processing.ts
@@ -0,0 +1,159 @@
+/* 扫描与采集的数据契约、轮询节律与纯折算。
+ *
+ * 这一趟后台任务有两个读者:数据管理页那张卡片(`#libraryProcessing`)和目录页顶上那条
+ * 横幅(`#libraryProcessingNotice`)。两边读同一个 `queryKey`,所以它们看到的是同一份快照,
+ * 轮询也由 Query 合成一份——各存一份状态的话,卡片说「已完成」、横幅还挂着进度。
+ * 端点在 `frontend/src` 里只在这里声明一次(`tests/test_frontend_build.py` 盯着)。 */
+import { apiGet } from '../../api';
+import { queryClient } from '../query';
+
+export const LIBRARY_PROCESSING_URL = '/api/library-processing';
+
+/** 卡片与横幅共用这一个键。 */
+export const LIBRARY_PROCESSING_KEY = ['library-processing'] as const;
+
+/** 处理过程中记下的一条问题。`asset_id` 为空时说的是媒体来源本身。 */
+export interface LibraryProcessingIssue {
+ asset_id: number | null;
+ title?: string;
+ path?: string;
+ message: string;
+ severity?: 'info' | 'error';
+}
+
+/** 一趟扫描与采集的快照。字段以 `q_library_processing`(`src/peach/web_library_processing.py`)为准。 */
+export interface LibraryProcessingData {
+ /** `idle` | `running` | `complete` | `failed`。 */
+ status: string;
+ job_id?: string;
+ stage?: string;
+ checked?: number;
+ total?: number;
+ scanned?: number;
+ identified?: number;
+ candidates?: number;
+ covers?: number;
+ error?: string;
+ issue_count?: number;
+ issue_preview?: LibraryProcessingIssue[];
+ issues_log?: string;
+ issues_truncated?: boolean;
+ retryable_asset_ids?: number[];
+ notes?: Record<string, number>;
+ current_asset_id?: number | null;
+ current_asset_name?: string;
+ current_action?: string;
+ current_started_at?: number;
+ last_progress_at?: number;
+ stalled?: boolean;
+ waited_seconds?: number;
+ completed_at?: number;
+}
+
+/** 一次写操作的请求体:全跑、只扫描、只采集,或者按任务号重试失败项。 */
+export type LibraryProcessingCommand =
+ | Record<string, never>
+ | { stage: 'scan' | 'collect' }
+ | { job_id: string; retry: number[] };
+
+export const fetchLibraryProcessing = (signal?: AbortSignal) =>
+ apiGet<LibraryProcessingData>(LIBRARY_PROCESSING_URL, signal);
+
+/** 首屏。中止时 `fetchQuery` 把 `AbortError` 抛回挂载方,它据此放弃这一次。 */
+export async function prefetchLibraryProcessing(signal: AbortSignal): Promise<void> {
+ await queryClient.fetchQuery({
+ queryKey: LIBRARY_PROCESSING_KEY,
+ queryFn: () => fetchLibraryProcessing(signal),
+ });
+}
+
+/** 在跑的时候两秒问一次,和别的后台任务同一个节律。 */
+export const RUNNING_POLL_MS = 2000;
+/** 闲着时也接着问:任务由后台自己起,两个读者都要认出「现在跑起来了」。 */
+export const IDLE_POLL_MS = 10_000;
+
+/** 读失败时页面上留的那句话。上一份数据不撤,下一轮轮询自己会接上。 */
+export const DISCONNECTED_TEXT = '连接中断,正在重新读取处理进度';
+
+export function pollInterval(
+ data: LibraryProcessingData | undefined, watching: boolean,
+): number | false {
+ if (data?.status === 'running') return RUNNING_POLL_MS;
+ return watching ? IDLE_POLL_MS : false;
+}
+
+const ACTION_LABELS: Record<string, string> = {
+ reading_local: '读取本地资料',
+ querying_metadata: '查询外部资料',
+ fetching_cover: '采集缺失封面',
+ writing_candidates: '保存资料候选',
+};
+
+/* 来源说「没有」按类型报一个数,不进问题清单:馆藏里大量独立资源和创作者作品
+ 任何目录站都收不到,它们不是待办。键与 `library_processing.MISS_MESSAGES` 同源。 */
+const NOTE_LABELS: Record<string, string> = {
+ querying_metadata: '没有资料',
+ fetching_cover: '没有封面',
+};
+
+export function notesLine(notes: Record<string, number>): string {
+ const parts = Object.entries(notes)
+ .filter(([key, count]) => NOTE_LABELS[key] && count > 0)
+ .map(([key, count]) => `${NOTE_LABELS[key]} ${count} 部`);
+ return parts.length ? `外部来源${parts.join('、')},7 天内不再问。` : '';
+}
+
+/** 此刻在做什么:哪个文件、哪一步、等了多久。 */
+export function currentLine(state: LibraryProcessingData): string {
+ const action = ACTION_LABELS[state.current_action || ''] || state.stage || '正在处理';
+ const waited = state.waited_seconds ? ` · 已等待 ${state.waited_seconds} 秒` : '';
+ return state.current_asset_name
+ ? `当前:${state.current_asset_name} · ${action}${waited}`
+ : action + waited;
+}
+
+/** 折叠起来的问题清单:一句结论 + 逐条明细 + 完整日志的地址。没有问题时是 `null`。 */
+export interface IssueDetails {
+ label: string;
+ items: { key: string; label: string; href: string; note: string; hint: string }[];
+ footnote: string;
+}
+
+export function issueDetails(state: LibraryProcessingData): IssueDetails | null {
+ const issues = state.issue_preview || [];
+ if (!issues.length) return null;
+ return {
+ label: state.issues_truncated
+ ? `问题清单:共 ${state.issue_count || 0} 项,展开查看前 ${issues.length} 项`
+ : `问题清单:共 ${state.issue_count || 0} 项`,
+ items: issues.map((issue, at) => ({
+ key: `${issue.asset_id ?? 'source'}-${at}`,
+ label: issue.title || (issue.asset_id ? `视频 ${issue.asset_id}` : '媒体来源'),
+ href: issue.asset_id ? `/item/${issue.asset_id}` : '',
+ note: issue.message,
+ hint: issue.path || '',
+ })),
+ footnote: state.issues_log ? `完整记录:${state.issues_log}` : '',
+ };
+}
+
+/* 完成用通知报一次。目录页的横幅和数据管理页的卡片看的是同一个任务,谁先看到结束谁报,
+ 另一处按任务号认出来就不再报。首次引导添加文件夹后那一趟常在跳到目录页之前就跑完
+ (一个文件一秒),横幅从没见过「运行中」,所以刚结束的任务第一次读到时也报。 */
+const ANNOUNCED_KEY = 'peach.library-processing.announced';
+const FRESH_COMPLETION_SECONDS = 120;
+
+export function announceCompletion(
+ state: LibraryProcessingData, toast: (message: string) => void, witnessed: boolean,
+): void {
+ if (state.status !== 'complete') return;
+ const fresh = !!state.job_id && !!state.completed_at
+ && Date.now() / 1000 - state.completed_at < FRESH_COMPLETION_SECONDS;
+ if (!witnessed && !fresh) return;
+ try {
+ if (state.job_id && localStorage.getItem(ANNOUNCED_KEY) === state.job_id) return;
+ if (state.job_id) localStorage.setItem(ANNOUNCED_KEY, state.job_id);
+ } catch { /* 存储不可用时照常提示,最多重复一次 */ }
+ toast(`扫描与资料采集已完成:识别 ${state.identified || 0} 个番号,`
+ + `整理 ${state.candidates || 0} 组资料候选`);
+}
diff --git a/frontend/src/react/library-processing/use-library-processing.ts b/frontend/src/react/library-processing/use-library-processing.ts
new file mode 100644
index 000000000..1aa9b5b02
--- /dev/null
+++ b/frontend/src/react/library-processing/use-library-processing.ts
@@ -0,0 +1,47 @@
+/* 卡片与横幅共用的那一份读取与状态迁移判断。
+ *
+ * 两处读同一个 `queryKey`,轮询由 Query 合成一份;这里额外盯住「这一趟是不是在本次
+ * 眼前跑完的」。任务关掉页面照样在跑,状态里常年躺着上一趟的回执:首屏读到的终态没有
+ * 上一个状态,所以它不会被当成刚刚跑完,也不发回执。 */
+import { useEffect, useRef, useState } from 'react';
+import { useQuery, type UseQueryResult } from '@tanstack/react-query';
+
+import type { LibraryProcessingProps } from '../bundle';
+import {
+ announceCompletion, fetchLibraryProcessing, LIBRARY_PROCESSING_KEY, pollInterval,
+ type LibraryProcessingData,
+} from './library-processing';
+
+export interface LibraryProcessingJob {
+ job: UseQueryResult<LibraryProcessingData>;
+ /** 本次亲眼看着跑完的那一趟。首屏读到的旧终态不会走到这里。 */
+ settled: LibraryProcessingData | null;
+ /** 又发起了一趟:上一趟的结论不再留在屏幕上。 */
+ forget(): void;
+}
+
+export function useLibraryProcessingJob(
+ { toast, mode, monitor }: LibraryProcessingProps,
+): LibraryProcessingJob {
+ const watching = mode === 'notice' || !!monitor;
+ const job = useQuery({
+ queryKey: LIBRARY_PROCESSING_KEY,
+ queryFn: ({ signal }) => fetchLibraryProcessing(signal),
+ refetchInterval: (query) => pollInterval(query.state.data, watching),
+ });
+ const [settled, setSettled] = useState<LibraryProcessingData | null>(null);
+ const previous = useRef<string | undefined>(undefined);
+ const state = job.data;
+ useEffect(() => {
+ if (!state) return;
+ const was = previous.current;
+ previous.current = state.status;
+ const witnessed = was === 'running' && state.status !== 'running';
+ if (witnessed) setSettled(state);
+ /* 横幅那一侧还要认「刚结束」:首次引导那一趟常在跳到目录页之前就跑完,它从没见过
+ 「运行中」。卡片只认自己看着跑完的那一趟。 */
+ if (witnessed || mode === 'notice') announceCompletion(state, toast, witnessed);
+ }, [state, mode, toast]);
+
+ return { job, settled, forget: () => setSettled(null) };
+}
diff --git a/frontend/src/split-action.tsx b/frontend/src/split-action.tsx
deleted file mode 100644
index ec38c7a63..000000000
--- a/frontend/src/split-action.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-import { useLayoutEffect, useRef } from 'preact/hooks';
-import { setActionBusy, wireAnchoredMenu } from '@peach/legacy/ui';
-
-interface Action { label: string; icon: string; run(): void }
-export function SplitAction({ id, label, actions, busy }: { id: string; label: string; actions: [Action, ...Action[]]; busy: boolean }) {
- const root = useRef<HTMLDivElement>(null);
- const floating = useRef<ReturnType<typeof wireAnchoredMenu>>();
- useLayoutEffect(() => {
- const mount = root.current!;
- floating.current = wireAnchoredMenu(mount, mount.querySelector('.splittoggle')!, mount.querySelector('[role=menu]')!);
- return () => floating.current?.setOpen(false);
- }, []);
- useLayoutEffect(() => {
- root.current?.querySelectorAll('button').forEach(button => setActionBusy(button, busy));
- if (busy) floating.current?.setOpen(false);
- }, [busy]);
- const glyph = (name: string) => <svg viewBox="0 0 24 24" aria-hidden="true"><use href={`#i-${name}`} /></svg>;
- const run = (action: Action) => { if (busy) return; floating.current?.setOpen(false); action.run(); };
- return <div ref={root} class="splitbutton board-button-group primary" onClickCapture={event => {if(busy){event.preventDefault();event.stopPropagation();}}} onKeyDown={event => {
- const items = Array.from(root.current!.querySelectorAll<HTMLButtonElement>('[role=menuitem]'));
- if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
- event.preventDefault(); if (busy) return;
- floating.current?.setOpen(true);
- const index = items.indexOf(document.activeElement as HTMLButtonElement);
- const next = index < 0 ? (event.key === 'ArrowDown' ? 0 : items.length - 1)
- : (index + (event.key === 'ArrowDown' ? 1 : items.length - 1)) % items.length;
- items[next]?.focus();
- }
- if (event.key === 'Tab') floating.current?.setOpen(false);
- }}>
- <button type="button" class="splitmain geist-button primary" onClick={() => run(actions[0])}>{glyph(actions[0].icon)}{actions[0].label}</button>
- <button type="button" class="splittoggle geist-button primary" aria-label={label} aria-haspopup="menu" aria-expanded="false" aria-controls={id}>{glyph('chevron-down')}</button>
- <div class="popmenu cardmenupanel" id={id} role="menu" hidden>
- {actions.map(action => <button key={action.label} type="button" role="menuitem" onClick={() => run(action)}>{glyph(action.icon)}<span>{action.label}</span></button>)}
- </div>
- </div>;
-}
diff --git a/frontend/test/helpers.ts b/frontend/test/helpers.ts
index 2969cae9c..2eb4e6995 100644
--- a/frontend/test/helpers.ts
+++ b/frontend/test/helpers.ts
@@ -1,14 +1,17 @@
import { vi } from 'vitest';
-import type { LibraryProcessingData, LibraryProcessingProps } from '../src/islands/library-processing';
+import type { ConfigurationData, ConfigurationProps } from '../src/islands/configuration';
-/** 扫描与采集任务的一份状态。默认是闲置,用例按需要改成失败并带上可辨认的原因。 */
-export const processing = (
- overrides: Partial<LibraryProcessingData> = {},
-): LibraryProcessingData => ({ status: 'idle', ...overrides });
+/** 配置页的一份首屏。`islands.test.ts` 拿它当 Preact 档的样本——配置页是仅剩的一个。 */
+export const configuration = (
+ overrides: Partial<ConfigurationData> = {},
+): ConfigurationData => ({
+ editable: true, notice: '', revision: 'rev-1', media_dirs: ['D:\\Media'], port: 9123, facts: [],
+ ...overrides,
+});
/** 遗留层传给 Preact 档的助手。换成可辨认的最小实现,断言只看 island 是否用了它们。 */
-export const legacyProps = (): LibraryProcessingProps => ({ toast: vi.fn<(message: string) => void>() });
+export const legacyProps = (): ConfigurationProps => ({ receipt: vi.fn<(message: string) => void>() });
/** 一个可手动兑现的 fetch:island 的等待窗口本身就是被测行为,不能靠 setTimeout 猜。 */
export function deferredFetch(body: unknown) {
diff --git a/frontend/test/islands.test.ts b/frontend/test/islands.test.ts
index 3eeec1a92..ae342c078 100644
--- a/frontend/test/islands.test.ts
+++ b/frontend/test/islands.test.ts
@@ -4,7 +4,10 @@ import { afterEach, beforeAll, describe, expect, it, vi } from 'vitest';
import { islandMounted, islandNames, mountIsland, unmountIsland } from '../src/islands';
import { queryClient } from '../src/react/query';
-import { deferredFetch, legacyProps, processing } from './helpers';
+import { configuration, deferredFetch, legacyProps } from './helpers';
+
+// Preact 档只剩配置页,它的四个分区本身是 React 子树;这里量的是挂载契约,不挂那四棵根。
+vi.mock('../src/react-slot', () => ({ ReactSlot: () => null }));
// React 档挂的是一棵真的 React 根,更新要在 `act` 里落地,否则断言读到的是上一帧。
(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
@@ -46,18 +49,24 @@ describe('island 注册表', () => {
});
});
+/** 只有「通用」这一组要 `startup` 才画得出来,用它区分两趟取数回来的是哪一份。 */
+const startup = {
+ available: true, enabled: false, silent: true, message: '', desktop: false, desktop_message: '',
+};
+const groups = (el: Element) => [...el.querySelectorAll('.configgroup')].map((title) => title.textContent);
+
describe('mountIsland', () => {
it('取数期间保留遗留骨架,数据到位才一次性换掉', async () => {
- const fetch = deferredFetch(processing());
+ const fetch = deferredFetch(configuration());
fetch.install();
const el = container();
- const mounting = mountIsland('library-processing', el, legacyProps());
+ const mounting = mountIsland('configuration', el, legacyProps());
await Promise.resolve();
expect(el.querySelector('[data-skeleton]'), '骨架被提前撤掉会出现第二段等待态').not.toBeNull();
fetch.resolve();
await mounting;
expect(el.querySelector('[data-skeleton]')).toBeNull();
- expect(el.querySelectorAll('.library-processing')).toHaveLength(1);
+ expect(el.querySelectorAll('.configpage')).toHaveLength(1);
});
it('首屏取数失败时画出原因,不留在骨架上', async () => {
@@ -67,44 +76,44 @@ describe('mountIsland', () => {
json: async () => ({ message: '账本当前只能浏览' }),
})));
const el = container();
- await mountIsland('library-processing', el, legacyProps());
+ await mountIsland('configuration', el, legacyProps());
expect(el.querySelector('.geist-note-error')?.textContent).toContain('账本当前只能浏览');
});
it('取数期间用户走开就不画:遗留层换页的判据是代,不是信号', async () => {
- const fetch = deferredFetch(processing());
+ const fetch = deferredFetch(configuration());
fetch.install();
const el = container();
let current = true;
- const mounting = mountIsland('library-processing', el, legacyProps(), {
+ const mounting = mountIsland('configuration', el, legacyProps(), {
isCurrent: () => current,
});
await Promise.resolve();
current = false;
fetch.resolve();
await mounting;
- expect(el.querySelector('.library-processing'), '页面已经换掉,数据不能盖上去').toBeNull();
+ expect(el.querySelector('.configpage'), '页面已经换掉,数据不能盖上去').toBeNull();
expect(el.querySelector('[data-skeleton]')).not.toBeNull();
});
it('重新挂载时上一次的迟到响应不再写进容器', async () => {
- const stale = deferredFetch(processing({ status: 'failed', error: '上一趟的原因' }));
+ const stale = deferredFetch(configuration({ startup }));
stale.install();
const el = container();
- const first = mountIsland('library-processing', el, legacyProps());
+ const first = mountIsland('configuration', el, legacyProps());
await Promise.resolve();
- const fresh = deferredFetch(processing({ status: 'failed', error: '这一趟的原因' }));
+ const fresh = deferredFetch(configuration());
fresh.install();
- const second = mountIsland('library-processing', el, legacyProps());
+ const second = mountIsland('configuration', el, legacyProps());
fresh.resolve();
await second;
stale.resolve();
await first;
- expect(el.querySelectorAll('.library-processing')).toHaveLength(1);
- expect(el.textContent).toContain('这一趟的原因');
- expect(el.textContent).not.toContain('上一趟的原因');
+ expect(el.querySelectorAll('.configpage')).toHaveLength(1);
+ expect(groups(el), '迟到的那一份带着「通用」,它不能盖到这一次的结果上')
+ .toEqual(['媒体', '更新与维护']);
});
});
@@ -178,15 +187,15 @@ describe('mountIsland 的 React 档', () => {
describe('unmountIsland', () => {
it('中止在途取数并清空容器', async () => {
- const fetch = deferredFetch(processing());
+ const fetch = deferredFetch(configuration());
fetch.install();
const el = container();
- const mounting = mountIsland('library-processing', el, legacyProps());
+ const mounting = mountIsland('configuration', el, legacyProps());
await Promise.resolve();
unmountIsland(el);
await mounting;
expect(fetch.signal()?.aborted, '离开页面必须真的中止请求').toBe(true);
- expect(el.querySelector('.library-processing')).toBeNull();
+ expect(el.querySelector('.configpage')).toBeNull();
expect(el.querySelector('[data-skeleton]'),
'还没画过就卸载时容器里是遗留骨架,island 不该清掉不属于它的东西').not.toBeNull();
});
@@ -199,12 +208,12 @@ describe('unmountIsland', () => {
it('容器上挂没挂着,遗留层问得出来', async () => {
vi.stubGlobal('fetch', vi.fn(async () => ({
- ok: true, status: 200, json: async () => processing(),
+ ok: true, status: 200, json: async () => configuration(),
})));
const el = container();
expect(islandMounted(el)).toBe(false);
// 取数还没回来也算挂着:这段时间里再挂一次会把在途那次作废,白等一趟。
- const mounting = mountIsland('library-processing', el, legacyProps());
+ const mounting = mountIsland('configuration', el, legacyProps());
expect(islandMounted(el)).toBe(true);
await mounting;
expect(islandMounted(el)).toBe(true);
@@ -213,4 +222,26 @@ describe('unmountIsland', () => {
// 遗留层拿到的可能是个空引用——那时页面上根本没有这个容器。
expect(islandMounted(null)).toBe(false);
});
+
+ it('连子孙容器一起卸:壳只对外层调一次,里面那格也得停', async () => {
+ const surface = container();
+ // `/data-cleanup` 的形状:卡片挂在管理区正文里更深的一格上。
+ const card = surface.ownerDocument.createElement('div');
+ card.id = 'libraryProcessing';
+ surface.append(card);
+
+ vi.stubGlobal('fetch', vi.fn(async () => ({
+ ok: true, status: 200, json: async () => ({ status: 'idle' }),
+ })));
+ await act(async () => {
+ await mountIsland('library-processing', card, { toast: vi.fn(), monitor: true });
+ });
+ expect(islandMounted(card)).toBe(true);
+
+ // 遗留壳换页时只认识管理区正文这一个容器(`claimSurface` 对 `#stats` 调卸载)。
+ await act(async () => { unmountIsland(surface) });
+ expect(islandMounted(card), '外层卸了里面那棵根还活着的话,离开这页也会照原节律继续敲库')
+ .toBe(false);
+ expect(card.querySelector('.peach-react')).toBeNull();
+ });
});
diff --git a/frontend/test/library-processing.test.tsx b/frontend/test/library-processing.test.tsx
deleted file mode 100644
index f08a02ebe..000000000
--- a/frontend/test/library-processing.test.tsx
+++ /dev/null
@@ -1,156 +0,0 @@
-import { afterEach, expect, it, vi } from 'vitest';
-import { h, render } from 'preact';
-import { act } from 'preact/test-utils';
-import { LibraryProcessing } from '../src/islands/library-processing';
-
-let host: HTMLDivElement;
-it('来源说没有只报一个数,不算问题也不提供失败重试',async()=>{
- host=document.createElement('div');document.body.append(host);
- await act(async()=>render(h(LibraryProcessing,{data:{status:'complete',issue_count:0,issue_preview:[],
- notes:{querying_metadata:30,fetching_cover:162},
- issues_log:'C:\peach-data\state\library-processing-one.issues.jsonl'},
- error:'',toast:vi.fn(),preview:true}),host));
- expect(host.textContent).toContain('外部来源没有资料 30 部、没有封面 162 部,7 天内不再问。');
- expect(host.textContent).toContain('C:\peach-data\state\library-processing-one.issues.jsonl');
- expect(host.querySelector('.geist-note-error')).toBeNull();
- expect(host.textContent).not.toContain('重试未完成项');
- expect(host.querySelector('.geist-note-details')).toBeNull();
-});
-it('三种扫描采集方式使用分体菜单并提交对应阶段', async () => {
- const bodies: object[] = [];
- vi.stubGlobal('fetch', vi.fn(async (_url: string, init?: RequestInit) => {
- if (init?.method === 'POST') bodies.push(JSON.parse(String(init.body)));
- return {ok:true,json:async()=>({status:'complete'})};
- }));
- host=document.createElement('div');document.body.append(host);
- await act(async()=>render(h(LibraryProcessing,{data:{status:'idle'},error:'',toast:vi.fn()}),host));
- expect(host.querySelector('.splitmain')?.textContent).toBe(host.querySelector('[role=menuitem]')?.textContent);
- const items=host.querySelectorAll<HTMLButtonElement>('[role=menuitem]');
- for (const item of items) await act(async()=>{item.click();await new Promise(resolve=>setTimeout(resolve,0));});
- expect(bodies).toEqual([{}, {stage:'scan'}, {stage:'collect'}]);
- expect(host.querySelector('a[href="/scraping"]')?.textContent).toContain('来源和凭证');
-});
-it('演示运行态与失败重试都不请求真实任务', async()=>{
- const fetch=vi.fn();vi.stubGlobal('fetch',fetch);
- host=document.createElement('div');document.body.append(host);
- await act(async()=>render(h(LibraryProcessing,{data:{status:'running',checked:2,total:10},error:'',toast:vi.fn(),preview:true,monitor:true}),host));
- expect(host.querySelector('[role=progressbar]')?.getAttribute('aria-valuenow')).toBe('2');
- expect(host.querySelectorAll('[role=progressbar]')).toHaveLength(1);
- expect(host.querySelector('.geist-loading-dots')).toBeNull();
- await act(async()=>{render(h(LibraryProcessing,{key:'failed',data:{status:'failed'},error:'',toast:vi.fn(),preview:true}),host)});
- await act(async()=>{host.querySelector<HTMLButtonElement>('[data-note-action]')?.click()});
- expect(fetch).not.toHaveBeenCalled();
-});
-afterEach(() => { if(host)render(null, host); document.body.innerHTML=''; vi.useRealTimers(); vi.unstubAllGlobals(); });
-it('启动只提交一次,进度用 GET 读取并提供复核入口', async () => {
- const requests: string[]=[];
- vi.stubGlobal('fetch',vi.fn(async (_url: string, init?: RequestInit) => {
- const method=init?.method || 'GET'; requests.push(method);
- return {ok:true,json:async()=>method==='POST'?{status:'running',job_id:'one'}:{status:'complete',job_id:'one',candidates:2}};
- }));
- host=document.createElement('div');document.body.append(host);
- const toast=vi.fn();
- await act(async()=>render(h(LibraryProcessing,{data:{status:'idle'},error:'',toast}),host));
- await act(async()=>{host.querySelector('button')!.click();await new Promise(resolve=>setTimeout(resolve,0));});
- expect(requests).toEqual(['POST','GET']);
- expect(host.querySelector('a[href="/review"]')).not.toBeNull();
- expect(toast).toHaveBeenCalledTimes(1);
- expect(host.querySelector('.library-processing-result .geist-note-success')?.textContent).toContain('处理完成');
-});
-it('刷新接续已有任务时只查询,旧完成结果不冒充当前回执', async () => {
- const fetch=vi.fn(async()=>({ok:true,json:async()=>({status:'failed',error:'来源离线'})}));
- vi.stubGlobal('fetch',fetch);
- host=document.createElement('div');document.body.append(host);
- const toast=vi.fn();
- await act(async()=>{render(h(LibraryProcessing,{data:{status:'running'},error:'',toast}),host);await new Promise(resolve=>setTimeout(resolve,0));});
- await act(async()=>{await new Promise(resolve=>setTimeout(resolve,0));});
- expect(fetch).toHaveBeenCalledTimes(1);
- expect(host.textContent).toContain('来源离线');
- expect(toast).not.toHaveBeenCalled();
-});
-it('运行态显示当前项目、动作与等待时长,stalled 只提示不另起任务', async () => {
- host=document.createElement('div');document.body.append(host);
- await act(async()=>render(h(LibraryProcessing,{data:{status:'running',job_id:'one',checked:2,total:10,stalled:true,current_asset_name:'ABW-001.mp4',current_action:'querying_metadata',waited_seconds:300},error:'',toast:vi.fn(),preview:true}),host));
- expect(host.textContent).toContain('当前:ABW-001.mp4 · 查询外部资料 · 已等待 300 秒');
- expect(host.textContent).toContain('处理时间较长');
- expect(host.querySelector('[data-note-action]')).toBeNull();
-});
-it('失败时把问题清单折叠进错误提示并只提交失败项重试', async () => {
- const calls:{url:string,init:RequestInit|undefined}[]=[];
- vi.stubGlobal('fetch',vi.fn(async (url:string, init?:RequestInit)=>{
- calls.push({url,init});
- return {ok:true,json:async()=>init?.method==='POST'?{status:'running',job_id:'two'}:{status:'running',job_id:'two'}};
- }));
- host=document.createElement('div');document.body.append(host);
- const data={status:'failed',job_id:'one',error:'2 项需要处理',issue_count:23,
- issues_log:'C:\\peach-data\\state\\library-processing-one.issues.jsonl',
- issue_preview:[{asset_id:7,title:'样品.mp4',path:'R:\\Media\\样品.mp4',message:'未识别到番号'}],
- issues_truncated:true,retryable_asset_ids:[7,8]};
- await act(async()=>{render(h(LibraryProcessing,{data,error:'',toast:vi.fn()}),host)});
- const details=host.querySelector<HTMLDetailsElement>('.geist-note .geist-note-details')!;
- expect(details.open).toBe(false);
- expect(details.querySelector('summary')?.textContent).toBe('问题清单:共 23 项,展开查看前 1 项');
- expect(details.querySelector('li a')?.getAttribute('href')).toBe('/item/7');
- expect(details.querySelector('li')?.textContent).toContain('样品.mp4');
- expect(details.querySelector('li code')?.textContent).toBe('R:\\Media\\样品.mp4');
- expect(details.querySelector('p')?.textContent).toContain('C:\\peach-data\\state\\library-processing-one.issues.jsonl');
- expect(host.textContent).toContain('重试未完成项');
- expect(host.querySelector('.geist-fieldset-footer .geist-button.primary')).toBeNull();
- await act(async()=>{host.querySelector<HTMLButtonElement>('[data-note-action]')!.click();await new Promise(resolve=>setTimeout(resolve,0));});
- const post=calls.find(call=>call.init?.method==='POST');
- expect(post).toBeTruthy();
- expect(JSON.parse(String(post!.init!.body))).toEqual({job_id:'one',retry:[7,8]});
-});
-it('失败项都不可重试时仍能重新发起整批任务', async () => {
- host=document.createElement('div');document.body.append(host);
- const data={status:'failed',job_id:'one',error:'1 项需要处理',issue_count:1,
- issue_preview:[{asset_id:1,message:'未识别到番号'}],retryable_asset_ids:[]};
- await act(async()=>{render(h(LibraryProcessing,{data,error:'',toast:vi.fn()}),host)});
- expect(host.querySelector('[data-note-action]')).toBeNull();
- expect(host.querySelector('.geist-fieldset-footer .splitmain')?.textContent).toBe('扫描并补全资料');
-});
-it('首页从空闲发现后台任务,完成后收起横幅、用通知报完成,卸载后停止查询', async () => {
- vi.useFakeTimers();
- let status='running';
- const fetch=vi.fn(async (_url: string, _init?: RequestInit)=>({ok:true,json:async()=>({status,stage:'采集缺失资料',checked:2,total:5})}));
- vi.stubGlobal('fetch',fetch);
- host=document.createElement('div');document.body.append(host);
- const toast=vi.fn();
- await act(async()=>render(h(LibraryProcessing,{data:{status:'idle'},error:'',toast,mode:'notice'}),host));
- await act(async()=>{await vi.advanceTimersByTimeAsync(1);});
- expect(host.textContent).toContain('采集缺失资料');
- expect(host.querySelector('a')?.getAttribute('href')).toBe('/data-cleanup#libraryProcessing');
- status='complete';
- await act(async()=>{await vi.advanceTimersByTimeAsync(2000);});
- expect(host.textContent).toBe('');
- expect(toast).toHaveBeenCalledTimes(1);
- render(null,host);
- const calls=fetch.mock.calls.length;
- await vi.advanceTimersByTimeAsync(4000);
- expect(fetch).toHaveBeenCalledTimes(calls);
- expect(fetch.mock.calls.every(call=>!call[1] || call[1].method!=='POST')).toBe(true);
-});
-it('设置持续查询已有任务,只在任务结束时提示一次', async () => {
- vi.useFakeTimers();
- vi.stubGlobal('fetch',vi.fn(async()=>({ok:true,json:async()=>({status:'complete'})})));
- host=document.createElement('div');document.body.append(host);
- const toast=vi.fn();
- await act(async()=>render(h(LibraryProcessing,{data:{status:'running'},error:'',toast,monitor:true}),host));
- await act(async()=>{await vi.advanceTimersByTimeAsync(4000);});
- expect(toast).toHaveBeenCalledTimes(1);
-});
-it('刚结束的任务在目录页横幅第一次读到时也提示,同一任务只提示一次', async () => {
- vi.useFakeTimers();
- const job={status:'complete' as const,job_id:'job-fresh',identified:3,candidates:2,completed_at:Date.now()/1000};
- vi.stubGlobal('fetch',vi.fn(async()=>({ok:true,json:async()=>job})));
- localStorage.removeItem('peach.library-processing.announced');
- const toast=vi.fn();
- for (let round=0; round<2; round++) {
- host=document.createElement('div');document.body.append(host);
- await act(async()=>render(h(LibraryProcessing,{data:job,error:'',toast,mode:'notice'}),host));
- await act(async()=>{await vi.advanceTimersByTimeAsync(4000);});
- render(null,host);
- }
- expect(toast).toHaveBeenCalledTimes(1);
- expect(toast).toHaveBeenNthCalledWith(1,'扫描与资料采集已完成:识别 3 个番号,整理 2 组资料候选');
-});
diff --git a/frontend/test/react/library-processing.test.tsx b/frontend/test/react/library-processing.test.tsx
new file mode 100644
index 000000000..5b21973d8
--- /dev/null
+++ b/frontend/test/react/library-processing.test.tsx
@@ -0,0 +1,279 @@
+/* 扫描与采集:交什么、说什么、跟到什么时候,以及两个读者怎么共用同一趟任务。
+ *
+ * 一份快照有两个读者——数据管理页那张卡片和目录页顶上那条横幅。它们读同一个 `queryKey`,
+ * 所以这里既量单独一处的行为,也量两处同时在场时的请求数。
+ * 外观(横幅的语气底色、页脚按钮的主次)由 `frontend/e2e/design.test.ts` 读
+ * `getComputedStyle` 断言;这里只看结构、文字与请求。 */
+import { act } from 'react';
+import { notifyManager, QueryClientProvider } from '@tanstack/react-query';
+import { afterEach, expect, it, vi } from 'vitest';
+
+import { queryClient } from '../../src/react/query';
+import {
+ prefetchLibraryProcessing, type LibraryProcessingData,
+} from '../../src/react/library-processing/library-processing';
+import { LibraryProcessingCard } from '../../src/react/library-processing/library-processing-card';
+import { LibraryProcessingNotice } from '../../src/react/library-processing/library-processing-notice';
+import type { LibraryProcessingProps } from '../../src/react/bundle';
+
+import { buttonNamed, click, mount, mountRoot } from './render';
+
+// 客户端是模块级的单例(所有 React 根共用一个),用例之间不清就互相喂数据。
+// 报过的任务号记在 `localStorage` 里,也要清,否则下一条用例的通知被当成重复的。
+afterEach(() => {
+ queryClient.clear();
+ localStorage.clear();
+});
+
+/* Query 派发更新用的是它自己抓住的那个真 `setTimeout(0)`,假时钟推不动它:推完时钟
+ 断言到的还是上一帧的 DOM。用例里改成当场派发。 */
+notifyManager.setScheduler((notify) => notify());
+
+const LOG = 'C:\\peach-data\\state\\library-processing-one.issues.jsonl';
+
+type Reply = (method: string, body: unknown) => LibraryProcessingData;
+
+/** 按方法应答同一个端点。用例拿 `calls` 数请求、看请求体。 */
+function serve(reply: Reply) {
+ const calls: { method: string; body: unknown }[] = [];
+ const fetcher = vi.fn(async (path: string, init?: RequestInit) => {
+ if (path !== '/api/library-processing') throw new Error(`用例没有给 ${path} 造数据`);
+ const method = init?.method ?? 'GET';
+ const body = init?.body ? JSON.parse(String(init.body)) : undefined;
+ calls.push({ method, body });
+ const answer = reply(method, body);
+ return { ok: true, status: 200, json: async () => answer };
+ });
+ vi.stubGlobal('fetch', fetcher);
+ return { calls, fetcher, posts: () => calls.filter((call) => call.method === 'POST').map((call) => call.body) };
+}
+
+/** 走完真实的首屏路径:先 prefetch 把 `first` 落进缓存,再换上用例自己的应答。
+ * 首屏那一趟不进 `calls`,断言数的就是页面挂上去之后的来往。 */
+async function open(first: LibraryProcessingData, reply: Reply = () => first) {
+ vi.stubGlobal('fetch', vi.fn(async () => ({ ok: true, status: 200, json: async () => first })));
+ await prefetchLibraryProcessing(new AbortController().signal);
+ return serve(reply);
+}
+
+const card = (props: LibraryProcessingProps) => (
+ <QueryClientProvider client={queryClient}><LibraryProcessingCard {...props} /></QueryClientProvider>
+);
+const notice = (props: LibraryProcessingProps) => (
+ <QueryClientProvider client={queryClient}><LibraryProcessingNotice {...props} /></QueryClientProvider>
+);
+
+/** 轮询是 Query 的定时器,推进时钟会引起重画,得在 act 里推。 */
+const tick = (ms: number) => act(async () => { await vi.advanceTimersByTimeAsync(ms) });
+
+const menuItem = (label: string) =>
+ [...document.querySelectorAll('[role="dialog"] button')].find((item) => item.textContent?.trim() === label);
+
+it('来源说没有只报一个数,不算问题也不提供失败重试', async () => {
+ await open({
+ status: 'complete',
+ issue_count: 0,
+ issue_preview: [],
+ notes: { querying_metadata: 30, fetching_cover: 162 },
+ issues_log: LOG,
+ });
+ const host = await mount(card({ toast: vi.fn() }));
+ expect(host.textContent).toContain('外部来源没有资料 30 部、没有封面 162 部,7 天内不再问。');
+ expect(host.textContent).toContain(LOG);
+ expect(host.querySelector('[role="alert"]')).toBeNull();
+ expect(buttonNamed('重试未完成项')).toBeNull();
+ expect(host.querySelector('details')).toBeNull();
+});
+
+it('三种扫描采集方式共用一颗主键加一个下拉,各自交自己的阶段', async () => {
+ const served = await open({ status: 'idle' }, () => ({ status: 'complete' }));
+ const host = await mount(card({ toast: vi.fn() }));
+
+ await click(buttonNamed('扫描并补全资料', host));
+ await click(host.querySelector('[aria-haspopup="dialog"]'));
+ await click(menuItem('只扫描'));
+ await click(host.querySelector('[aria-haspopup="dialog"]'));
+ await click(menuItem('只采集'));
+
+ expect(served.posts()).toEqual([{}, { stage: 'scan' }, { stage: 'collect' }]);
+ expect(host.querySelector('a[href="/scraping"]')?.textContent).toContain('来源和凭证');
+});
+
+it('启动只提交一次,进度用 GET 读回来,完成后给出回执与复核入口', async () => {
+ const toast = vi.fn();
+ const served = await open(
+ { status: 'idle' },
+ (method) => method === 'POST'
+ ? { status: 'running', job_id: 'one' }
+ : { status: 'complete', job_id: 'one', scanned: 9, identified: 4, candidates: 2 },
+ );
+ const host = await mount(card({ toast }));
+ await click(buttonNamed('扫描并补全资料', host));
+
+ expect(served.calls.map((call) => call.method)).toEqual(['POST', 'GET']);
+ expect(host.querySelector('a[href="/review"]')).not.toBeNull();
+ expect(toast).toHaveBeenCalledTimes(1);
+ const receipt = host.querySelector('[role="status"]');
+ expect(receipt?.textContent).toContain('处理完成');
+ expect(receipt?.textContent).toContain('已扫描 9 个文件,识别 4 个番号,整理 2 组资料候选。');
+});
+
+it('首屏读到的上一趟终态不冒充这一次的回执', async () => {
+ const toast = vi.fn();
+ // 任务关掉页面照样在跑,状态里常年躺着上一趟的回执;进页面时它已经结束很久了。
+ const served = await open({ status: 'complete', job_id: 'old', identified: 7, candidates: 3 });
+ const host = await mount(card({ toast }));
+
+ expect(served.calls.every((call) => call.method === 'GET')).toBe(true);
+ expect(toast).not.toHaveBeenCalled();
+ expect(host.textContent).not.toContain('处理完成');
+});
+
+it('运行态说清当前项目、动作与等待时长,处理慢只提示不另起任务', async () => {
+ const served = await open({
+ status: 'running', job_id: 'one', checked: 2, total: 10, stalled: true,
+ current_asset_name: 'ABW-001.mp4', current_action: 'querying_metadata', waited_seconds: 300,
+ });
+ const host = await mount(card({ toast: vi.fn() }));
+
+ expect(host.textContent).toContain('当前:ABW-001.mp4 · 查询外部资料 · 已等待 300 秒');
+ expect(host.textContent).toContain('处理较慢');
+ // 有分母就画进度条,不再另画一组等待点:同一件事两种说法。
+ expect(host.querySelectorAll('[role="progressbar"]')).toHaveLength(1);
+ expect(host.querySelector('[role="progressbar"]')?.getAttribute('aria-valuenow')).toBe('2');
+
+ await click(buttonNamed('扫描并补全资料', host));
+ expect(served.posts()).toEqual([]);
+});
+
+it('失败时把问题清单折叠进错误提示,重试只交失败的那些项', async () => {
+ const served = await open({
+ status: 'failed', job_id: 'one', error: '2 项需要处理', issue_count: 23,
+ issues_log: LOG, issues_truncated: true, retryable_asset_ids: [7, 8],
+ issue_preview: [{ asset_id: 7, title: '样品.mp4', path: 'R:\\Media\\样品.mp4', message: '未识别到番号' }],
+ }, () => ({ status: 'running', job_id: 'two' }));
+ const host = await mount(card({ toast: vi.fn() }));
+
+ const alert = host.querySelector('[role="alert"]');
+ expect(alert?.textContent).toContain('2 项需要处理');
+ const details = alert!.querySelector('details')!;
+ expect(details.open).toBe(false);
+ expect(details.querySelector('summary')?.textContent).toBe('问题清单:共 23 项,展开查看前 1 项');
+ expect(details.querySelector('li a')?.getAttribute('href')).toBe('/item/7');
+ expect(details.querySelector('li')?.textContent).toContain('样品.mp4');
+ expect(details.querySelector('li code')?.textContent).toBe('R:\\Media\\样品.mp4');
+ expect(details.querySelector('p')?.textContent).toContain(LOG);
+ // 这一趟该做的事是把没做完的补上,页脚不再摆「重新跑一整批」。
+ expect(buttonNamed('扫描并补全资料', host)).toBeNull();
+
+ await click(buttonNamed('重试未完成项'));
+ expect(served.posts()).toEqual([{ job_id: 'one', retry: [7, 8] }]);
+});
+
+it('失败项都不可重试时仍能重新发起整批任务', async () => {
+ await open({
+ status: 'failed', job_id: 'one', error: '1 项需要处理', issue_count: 1,
+ retryable_asset_ids: [], issue_preview: [{ asset_id: 1, message: '未识别到番号' }],
+ });
+ const host = await mount(card({ toast: vi.fn() }));
+ expect(buttonNamed('重试未完成项')).toBeNull();
+ expect(buttonNamed('扫描并补全资料', host)?.textContent).toBe('扫描并补全资料');
+});
+
+it('读不回来时留住已有进度,只在旁边说一句连接中断', async () => {
+ await open({ status: 'running', checked: 3, total: 9, stage: '采集缺失资料' });
+ vi.stubGlobal('fetch', vi.fn(async () => ({ ok: false, status: 503, json: async () => ({}) })));
+ vi.useFakeTimers();
+ const host = await mount(card({ toast: vi.fn() }));
+ await tick(2000);
+
+ expect(host.querySelector('[role="alert"]')?.textContent).toContain('连接中断,正在重新读取处理进度');
+ expect(host.querySelector('[role="progressbar"]')?.getAttribute('aria-valuenow')).toBe('3');
+});
+
+it('横幅从空闲发现后台任务,任务结束就收起、报一次完成,卸载之后不再敲库', async () => {
+ vi.useFakeTimers();
+ const toast = vi.fn();
+ const job = { at: { status: 'running', stage: '采集缺失资料', checked: 2, total: 5 } as LibraryProcessingData };
+ const served = await open({ status: 'idle' }, () => job.at);
+ const mounted = await mountRoot(notice({ toast, mode: 'notice' }));
+
+ expect(mounted.host.textContent).toBe('');
+ await tick(10_000);
+ expect(mounted.host.textContent).toContain('采集缺失资料');
+ expect(mounted.host.querySelector('a')?.getAttribute('href')).toBe('/data-cleanup#libraryProcessing');
+ expect(mounted.host.querySelector('[role="progressbar"]')?.getAttribute('aria-valuenow')).toBe('40');
+
+ job.at = { status: 'complete', job_id: 'one', identified: 3, candidates: 2 };
+ await tick(2000);
+ expect(mounted.host.textContent).toBe('');
+ expect(toast).toHaveBeenCalledTimes(1);
+
+ await mounted.unmount();
+ const asked = served.calls.length;
+ await tick(20_000);
+ expect(served.calls).toHaveLength(asked);
+ expect(served.posts()).toEqual([]);
+});
+
+it('卡片被叫着盯任务时一直问,只在任务结束时报一次', async () => {
+ vi.useFakeTimers();
+ const toast = vi.fn();
+ await open({ status: 'running', job_id: 'one' }, () => ({ status: 'complete', job_id: 'one' }));
+ const onComplete = vi.fn();
+ await mount(card({ toast, monitor: true, onComplete }));
+
+ await tick(2000);
+ expect(toast).toHaveBeenCalledTimes(1);
+ // 复核与候选的读数归遗留层画,这一趟跑完要叫它重读一次。
+ expect(onComplete).toHaveBeenCalledTimes(1);
+ await tick(30_000);
+ expect(toast).toHaveBeenCalledTimes(1);
+});
+
+it('刚结束的任务横幅第一次读到也报,同一个任务号只报一次', async () => {
+ vi.useFakeTimers();
+ const toast = vi.fn();
+ const job: LibraryProcessingData = {
+ status: 'complete', job_id: 'job-fresh', identified: 3, candidates: 2,
+ completed_at: Date.now() / 1000,
+ };
+ await open(job);
+ for (let round = 0; round < 2; round += 1) {
+ const mounted = await mountRoot(notice({ toast, mode: 'notice' }));
+ await tick(10_000);
+ await mounted.unmount();
+ }
+ expect(toast).toHaveBeenCalledTimes(1);
+ expect(toast).toHaveBeenNthCalledWith(1, '扫描与资料采集已完成:识别 3 个番号,整理 2 组资料候选');
+});
+
+it('两个容器读同一趟任务:一个周期只问一次,撤掉一个另一个照常', async () => {
+ vi.useFakeTimers();
+ const served = await open({ status: 'running', checked: 2, total: 10, stage: '采集缺失资料' });
+ const banner = await mountRoot(notice({ toast: vi.fn(), mode: 'notice' }));
+ const panel = await mountRoot(card({ toast: vi.fn(), monitor: true }));
+
+ await tick(2000);
+ expect(served.calls, '两处各存一份状态的话,卡片说完成、横幅还挂着进度').toHaveLength(1);
+ await tick(2000);
+ expect(served.calls).toHaveLength(2);
+ expect(banner.host.textContent).toContain('采集缺失资料');
+ expect(panel.host.textContent).toContain('采集缺失资料');
+
+ await panel.unmount();
+ await tick(2000);
+ expect(served.calls, '横幅还在页面上,节律不该跟着卡片一起停').toHaveLength(3);
+});
+
+it('卡片卸载之后轮询就停了', async () => {
+ vi.useFakeTimers();
+ const served = await open({ status: 'running', checked: 2, total: 10 });
+ const panel = await mountRoot(card({ toast: vi.fn(), monitor: true }));
+ await tick(2000);
+ expect(served.calls).toHaveLength(1);
+
+ await panel.unmount();
+ await tick(20_000);
+ expect(served.calls, '离开这一页之后那棵根还活着的话,它会照原节律接着敲库').toHaveLength(1);
+});
diff --git a/frontend/test/stubs/legacy-ui.ts b/frontend/test/stubs/legacy-ui.ts
index bac1e0def..7e0e6234c 100644
--- a/frontend/test/stubs/legacy-ui.ts
+++ b/frontend/test/stubs/legacy-ui.ts
@@ -12,10 +12,8 @@ export const emptyStateHtml = (
+ `<div class="es-icon" data-icon="${iconName}"></div>`
+ `<div class="es-copy"><h3>${title}</h3><p>${description}</p></div>${options.actions || ''}</div>`;
-// @ts-expect-error 横幅复用正式模板,折叠开合用正式实现。
-export {projectBannerHtml, collectionSummaryHtml, wireAnchoredMenu, setCollapseOpen} from '../../../web/js/ui-components.js';
-export const fieldsetTitle = (id: string, title: string): string =>
- `<h3 class="geist-fieldset-title" id="${id}">${title}</h3>`;
+// @ts-expect-error 汇总行复用正式模板,折叠开合用正式实现。
+export {collectionSummaryHtml, setCollapseOpen} from '../../../web/js/ui-components.js';
export const loadingDotsHtml = (label: string): string => `<span>${label}</span>`;
export const checkboxHtml = (attrs = ''): string => `<span class="pcheck"><input type="checkbox" ${attrs}></span>`;
export const progressHtml = (label: string, value: number, max = 100): string =>
diff --git a/tests/test_frontend_build.py b/tests/test_frontend_build.py
index 523772cba..7434e03a7 100644
--- a/tests/test_frontend_build.py
+++ b/tests/test_frontend_build.py
@@ -353,6 +353,31 @@ class ScrapingEndpointTests(unittest.TestCase):
self.assertEqual(len(routed), 1, f"/api/scraping 的路由声明在 {routed}")
+class LibraryProcessingEndpointTests(unittest.TestCase):
+ """扫描与采集这一条端点只在数据模块里声明一次。
+
+ 它有两个读者——数据管理页那张卡片和目录页顶上那条横幅——两边读同一个 `queryKey`。
+ 端点在第二处再写一遍就是分头取数的第一步:各存一份快照之后,卡片说「已完成」、
+ 横幅还挂着进度。读同一个键这件事由 `SharedStateContractTests` 从另一头守。
+ """
+
+ LIBRARY_PROCESSING = (FRONTEND / "src" / "react" / "library-processing"
+ / "library-processing.ts")
+
+ def test_the_endpoint_is_declared_once(self):
+ sources = sorted(path for path in (FRONTEND / "src").rglob("*.ts*"))
+ declared = [path for path in sources
+ if "'/api/library-processing'" in path.read_text(encoding="utf-8")]
+ self.assertEqual(declared, [self.LIBRARY_PROCESSING],
+ f"端点声明在 {[path.name for path in declared]}")
+ keyed = [path.name for path in sources
+ if "LIBRARY_PROCESSING_KEY = [" in path.read_text(encoding="utf-8")]
+ self.assertEqual(keyed, ["library-processing.ts"], f"queryKey 声明在 {keyed}")
+ routed = [path.name for path in sorted((ROOT / "src" / "peach").glob("web_*.py"))
+ if "/api/library-processing" in path.read_text(encoding="utf-8")]
+ self.assertEqual(len(routed), 1, f"/api/library-processing 的路由声明在 {routed}")
+
+
class ConfigurationEndpointTests(unittest.TestCase):
"""配置页的 Preact 外壳和 React 分区读同一条 `/api/configuration`,两份产物各打包一份。"""
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index af0c96912..0b3c32281 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -199,6 +199,11 @@ class WebUiSourceTests(unittest.TestCase):
self.fail(f"index.html 缺少这段代码(已忽略排版):{needle!r}"
+ (f"({message})" if message else ""))
+ def read_react(self, relative: str) -> str:
+ """React 子树里的一份源码(ADR-0031)。迁过去的页面正文不在 `web/` 里。"""
+ return (Path(__file__).resolve().parents[1] / "frontend" / "src" / "react"
+ / relative).read_text(encoding="utf-8")
+
def test_the_format_insensitive_matcher_still_tells_code_from_content(self):
"""`code_shape` 本身也有逻辑,也得有人守。
@@ -5051,7 +5056,10 @@ class WebUiSourceTests(unittest.TestCase):
"""
self.assertPageContains("'/scraping':'来源和凭证'")
self.assertPageContains('id="libraryProcessing"')
- processing = (Path(__file__).resolve().parents[1] / 'frontend/src/islands/library-processing.tsx').read_text(encoding='utf-8')
+ processing = (
+ Path(__file__).resolve().parents[1]
+ / 'frontend/src/react/library-processing/library-processing-card.tsx'
+ ).read_text(encoding='utf-8')
self.assertIn('href="/scraping"', processing)
self.assertPageContains(
"await ui.mountIsland('scraping',$('#stats'),{toast},"
@@ -6939,7 +6947,8 @@ class WebUiSourceTests(unittest.TestCase):
收起,那些页面本来就不该有它。
真该出现的那一次仍是从无到有:要不要画得等 `/api/library-processing` 回话。
- 所以照交集条那样长出来,高度从 0 走到 auto。
+ 所以照交集条那样长出来,高度从 0 走到 auto。容器里常驻一个 `.peach-react`
+ 宿主(React 根挂在它里面),「有没有东西」就看那一层空不空。
"""
self.assertPageContains(" if(!isCatalogPath(path))unmountIsland($('#libraryProcessingNotice'));")
self.assertCode(
@@ -6949,7 +6958,12 @@ class WebUiSourceTests(unittest.TestCase):
board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
self.assertIn("#libraryProcessingNotice{overflow:hidden;interpolate-size:allow-keywords;height:auto;",
board)
- self.assertIn("#libraryProcessingNotice:empty{height:0}", board)
+ self.assertIn(
+ "#libraryProcessingNotice:empty,#libraryProcessingNotice:has(>.peach-react:empty)"
+ "{height:0}", board)
+ self.assertIn(
+ "#libraryProcessingNotice:not(:empty):not(:has(>.peach-react:empty))"
+ "{margin:0 0 22px}", board)
self.assertIn("@media(prefers-reduced-motion:reduce){#libraryProcessingNotice{transition:none}}",
board)
@@ -9564,21 +9578,24 @@ class WebUiSourceTests(unittest.TestCase):
不同的东西。`#libraryProcessing` 因此是这一格本身,卡片是它的第一个孩子,
提示是第二个,间距由这一格的 `gap` 给。进度条留在卡片里:它说的是卡片上那个
按钮此刻在做什么。
+
+ 这一页是 React 档(ADR-0031),正文在 `frontend/src/react/library-processing/`;
+ 结果、故障与重试怎么说由 `frontend/test/react/library-processing.test.tsx` 守。
"""
self.assertPageContains('<div class="cleanupscraping" id="libraryProcessing">')
self.assertPageContains('<section class="cleanupfieldset" data-geist-fieldset aria-labelledby="cleanupScrapingTitle">')
- island = (Path(__file__).resolve().parents[1]
- / "frontend" / "src" / "islands" / "library-processing.tsx").read_text(encoding="utf-8")
- self.assertIn('<div class="library-processing-outcome" aria-live="polite" ref={outcome}>', island)
- head, outcome = island.split('<div class="library-processing-outcome"', 1)
- self.assertIn("jobActivityHtml(", head.split("return <>", 1)[1])
- for banner in ("noteHtml(problem", "library-processing-result"):
- self.assertIn(banner, outcome)
+ card = self.read_react("library-processing/library-processing-card.tsx")
+ # 提示排在 `Section` 之后,两块由外面这一层的 `gap` 分开。
+ self.assertIn(
+ " </Section>\n"
+ " <Outcome state={state} problem={problem} settled={settled} onRetry={retry} />",
+ card)
+ # 空着时整块收起:`aria-live` 的容器留一条空轨道,卡片底下会凭空多出一个间距。
+ self.assertIn('<div aria-live="polite" className="flex flex-col gap-4 empty:hidden">', card)
+ # 进度条留在卡片里,和那颗按钮同一格。
+ self.assertIn("<Progress label={line} value={state.checked || 0} max={state.total} />", card)
board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
self.assertIn(".cleanupgrid>#libraryProcessing{grid-column:1/-1;display:grid;gap:16px}", board)
- self.assertIn("#libraryProcessing>.cleanupfieldset{display:grid;grid-template-columns:1fr auto;align-items:center}", board)
- # 一格里空着的第二行照样占一条轨道,卡片底下会凭空多出一个间距。
- self.assertIn(".library-processing-outcome:empty{display:none}", board)
def test_a_failed_scan_folds_its_issue_list_into_the_error_note(self):
"""处理失败先给一句结论,逐条明细收在这条 Note 自己的 details 里,默认折叠。
@@ -9586,28 +9603,32 @@ class WebUiSourceTests(unittest.TestCase):
一次扫描能攒下几千条问题,摊开写就把结论、重试键和下面两块面板全推走了。每条
给标题、说明和路径三段:只给一个链接的话,是哪个文件得逐个点开才知道,而路径
才是去磁盘上确认或改名时要用的。前 20 条之外的去完整日志里看,地址写在折叠底部。
- """
- island = (Path(__file__).resolve().parents[1]
- / "frontend" / "src" / "islands" / "library-processing.tsx").read_text(encoding="utf-8")
- self.assertIn("actionLabel:retryable?'重试未完成项':'',details:issueDetails", island)
- self.assertIn("label: issue.title || (issue.asset_id ? `视频 ${issue.asset_id}` : '媒体来源'),", island)
- self.assertIn("note: issue.message, hint: issue.path || '',", island)
- self.assertIn("footnote: state.issues_log ? `完整记录:${state.issues_log}` : '',", island)
- self.assertPageContains('<details class="geist-note-details"><summary>${esc(label)}</summary>')
- self.assertPageContains(".geist-note-details{grid-column:2/-1;")
- self.assertPageContains(".geist-note-details ul{box-sizing:border-box;display:grid;gap:8px;max-height:min(40vh,520px);")
- self.assertIn("wireCollapse(outcome.current,'.geist-note-details','library-issues')", island)
+
+ 默认折叠、重试只交失败那些项由 `frontend/test/react/library-processing.test.tsx` 守。
+ """
+ data = self.read_react("library-processing/library-processing.ts")
+ self.assertIn("label: issue.title || (issue.asset_id ? `视频 ${issue.asset_id}` : '媒体来源'),", data)
+ self.assertIn("note: issue.message,", data)
+ self.assertIn("hint: issue.path || '',", data)
+ self.assertIn("footnote: state.issues_log ? `完整记录:${state.issues_log}` : '',", data)
+ card = self.read_react("library-processing/library-processing-card.tsx")
+ # 结论、重试键和这份清单都在同一条 Note 里:摆到外面就成了一句话加两块没有出处的东西。
+ note, extra = card.split('<Note tone="error" extra={', 1)
+ self.assertIn("重试未完成项", extra)
+ self.assertIn("<Disclosure summary={details.label}>", extra)
+ self.assertIn("{details.footnote", extra)
+ self.assertNotIn("<Disclosure", note)
def test_a_finished_scan_is_announced_once_even_if_it_ended_before_the_page_opened(self):
"""完成用通知报。首次引导那一趟常在跳到目录页之前就跑完,横幅从没见过「运行中」,
所以刚结束的任务第一次读到也要报;目录页横幅和数据整理页卡片按任务号只报一次。"""
- island = (Path(__file__).resolve().parents[1]
- / "frontend" / "src" / "islands" / "library-processing.tsx").read_text(encoding="utf-8")
- self.assertIn("if (witnessed || mode === 'notice') announceCompletion(next, toast, witnessed);", island)
- self.assertIn("Date.now() / 1000 - state.completed_at < FRESH_COMPLETION_SECONDS", island)
- self.assertIn("localStorage.getItem(ANNOUNCED_KEY) === state.job_id", island)
- self.assertIn("toast(`扫描与资料采集已完成:识别 ${state.identified || 0} 个番号", island)
- self.assertNotIn("toast('已完成扫描与资料采集')", island)
+ data = self.read_react("library-processing/library-processing.ts")
+ self.assertIn("Date.now() / 1000 - state.completed_at < FRESH_COMPLETION_SECONDS", data)
+ self.assertIn("localStorage.getItem(ANNOUNCED_KEY) === state.job_id", data)
+ self.assertIn("toast(`扫描与资料采集已完成:识别 ${state.identified || 0} 个番号", data)
+ self.assertNotIn("toast('已完成扫描与资料采集')", data)
+ shared = self.read_react("library-processing/use-library-processing.ts")
+ self.assertIn("if (witnessed || mode === 'notice') announceCompletion(state, toast, witnessed);", shared)
def test_the_pinned_review_bars_share_one_pane_of_glass(self):
"""粘住的工具条和分组条是一块玻璃,中间没有接缝。
@@ -10376,7 +10397,9 @@ class WebUiSourceTests(unittest.TestCase):
gutter = re.search(r"\bmain\{[^}]*?padding:(\d+)px \d+px", base)
self.assertTrue(rail and gutter, "读不到 .tiers 的收尾与 main 的上沿")
gap = int(rail.group(1)) + int(gutter.group(1))
- self.assertIn(f"#libraryProcessingNotice:not(:empty){{margin:0 0 {gap}px}}", board)
+ self.assertIn(
+ "#libraryProcessingNotice:not(:empty):not(:has(>.peach-react:empty))"
+ f"{{margin:0 0 {gap}px}}", board)
def test_a_progress_ring_lines_up_with_the_lists_under_it(self):
"""资源面板里的进度环和它下面那几组链接表对同一条左边。
diff --git a/web/board.css b/web/board.css
index 065b1fc1b..ab9af679f 100644
--- a/web/board.css
+++ b/web/board.css
@@ -447,9 +447,6 @@ body :is(#manageTitle,#manageCrumb,#manageLede){max-width:var(--board-content);w
.cleanupfieldset>.geist-fieldset-footer{background:transparent;border-top:1px solid var(--line-soft);padding:12px 20px;min-height:56px}
.cleanupfieldset>.geist-fieldset-footer button{font-size:13px}
.cleanupgrid>#libraryProcessing{grid-column:1/-1;display:grid;gap:16px}
-#libraryProcessing>.cleanupfieldset{display:grid;grid-template-columns:1fr auto;align-items:center}
-#libraryProcessing>.cleanupfieldset>.geist-fieldset-content{min-height:0;padding:24px}
-#libraryProcessing>.cleanupfieldset>.geist-fieldset-footer{border:0;padding:24px;background:none;display:flex;gap:8px;flex-wrap:wrap}
/* ── 数据管理页照 Board 的 dashboard 模板排:顶上一排 plain stat card(stat-cards.tsx:132px 高、圆角 16、secondary 底、
内边距 16,32px 的图标格里 20px 字形,标签 Body Medium 次文字色,读数 title-1-medium 24/34)。Peach 把整张卡做成
按钮——它就是那一页的入口,读数下面那行 Caption 是同一份 payload 里的分项。五张在 1120 内一行摆下,窄了折两列、
@@ -497,17 +494,18 @@ body :is(#manageTitle,#manageCrumb,#manageLede){max-width:var(--board-content);w
/* 结果槽里三层各管各的间距:读数卡、说明 Note、操作行都不再共享一只面板框。 */
#resourceSyncResult>.geist-note{margin:16px 0 0}
#resourceSyncResult>.resourceapplyrow{margin:16px 0 0;min-height:0;border:0;background:none;padding:0}
-.library-processing-outcome:empty{display:none}
/* 首页那条整理提示是正文列里的一条 Note,上下两条线是它自己的收口。少了这个空当,
两条线一边挨着身份行、一边挨着筛选浮层,看着像三块东西粘在一起。下面照浮层那个数
留一样宽(上面由 `.tiers` 收尾与 `main` 上沿凑够)。 */
/* 要不要画这一条,得等 `/api/library-processing` 回话才知道,而它一出现就把底下整块
推下六十来像素。跟交集条同一个处理:高度从 0 走到 auto,二百来毫秒,推的过程看得见
- 就不叫跳。那趟任务跑完它自己会消失,缩回去同样是走的。 */
+ 就不叫跳。那趟任务跑完它自己会消失,缩回去同样是走的。
+ 容器里常驻一个 `.peach-react`(React 根的宿主,`frontend/src/islands.ts`),所以「有没有
+ 东西」看的是那一层空不空。 */
#libraryProcessingNotice{overflow:hidden;interpolate-size:allow-keywords;height:auto;
transition:height .22s cubic-bezier(0,0,.2,1),margin-bottom .22s cubic-bezier(0,0,.2,1)}
-#libraryProcessingNotice:empty{height:0}
-#libraryProcessingNotice:not(:empty){margin:0 0 22px}
+#libraryProcessingNotice:empty,#libraryProcessingNotice:has(>.peach-react:empty){height:0}
+#libraryProcessingNotice:not(:empty):not(:has(>.peach-react:empty)){margin:0 0 22px}
@media(prefers-reduced-motion:reduce){#libraryProcessingNotice{transition:none}}
.board-card-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid var(--line-soft);background:var(--surface);border-radius:10px;margin-right:10px;vertical-align:middle;color:var(--ink-2)}
.board-card-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@@ -703,7 +701,7 @@ body>.board-filter-frame{margin-inline:16px}
#applyUISetting{padding:8px 12px;border:1px solid var(--line);border-radius:8px;cursor:pointer}
#applyUISetting[hidden]{display:none}
-@media(max-width:1000px){#libraryProcessing>.cleanupfieldset{grid-template-columns:minmax(0,1fr);align-items:stretch;text-align:left}#libraryProcessing>.cleanupfieldset>.geist-fieldset-content{width:100%;box-sizing:border-box}#libraryProcessing>.cleanupfieldset>.geist-fieldset-footer{padding:0 24px 24px;border:0;justify-content:flex-start;min-width:0}.settingscard{width:calc(100vw - 32px)}}
+@media(max-width:1000px){.settingscard{width:calc(100vw - 32px)}}
@media(max-width:760px){
:root,body.drawer-open{--railW:0px}
.drawer{top:64px;bottom:12px;width:min(320px,calc(100vw - 24px));border-radius:20px;z-index:97}
@@ -1293,7 +1291,6 @@ body .gselectmenu [role=option][aria-selected=true],body .popmenu [aria-checked=
@media(max-width:1000px){.board-inventory-charts,.board-activity-charts{grid-template-columns:1fr}.board-rings{height:260px}}
@media(max-width:600px){.board-radial-card,.board-heat-card{padding:16px}.board-radial-tiles>button{flex-basis:calc(50% - 8px)}}
@media(prefers-reduced-motion:reduce){.board-ring-value,.board-heat-card [data-heat-value]{animation:none;transition:none}.board-radial-tiles>button{transition:none}}
-.board-state-preview{max-width:1180px;margin:0 auto;padding:28px 20px;color:var(--ink)}
/* 切换器展开时自己带一圈 2px 描边,导航列表首项又会抬起 hover 底:两者之间留 4px
的话这两块底色是挨着的,读起来像切换器压在第一项上。 */
.drawer .board-sidebar-head{margin-bottom:0!important}.drawer .dnav{margin-top:12px;gap:4px}.drawer #brandHome{height:36px;min-height:36px;box-sizing:border-box}.drawer .dnav button{height:36px;min-height:36px}
@@ -1334,10 +1331,6 @@ body .selectiondock{border:0;border-radius:22px;background:var(--glass-drift-a),
html.board-high-contrast :is(.selectiondock,.reviewcontrols.is-stuck,.reviewgroupbar.is-stuck,.batchbar,.tagselection,.card .badge){background:var(--ground);backdrop-filter:none;-webkit-backdrop-filter:none;animation:none}
@media(prefers-reduced-transparency:reduce){body :is(.selectiondock,.reviewcontrols.is-stuck,.reviewgroupbar.is-stuck,.batchbar,.tagselection,.card .badge){background:var(--ground);backdrop-filter:none;animation:none}}
@media(prefers-reduced-motion:reduce){body :is(.selectiondock,.reviewcontrols.is-stuck,.reviewgroupbar.is-stuck,.batchbar,.tagselection){animation:none}}
-.board-state-preview>header{display:flex;align-items:center;justify-content:space-between;gap:16px}.board-state-preview h1{font-size:28px}.board-state-preview h2{font-size:18px;margin:20px 0 12px}.board-state-preview h3{font-size:15px}.board-state-preview p{color:var(--muted);line-height:1.6}
-.board-state-preview>nav{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.board-state-preview>nav [aria-pressed=true]{outline:2px solid var(--tungsten);outline-offset:1px}
-.board-preview-tools{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.board-preview-tools label{display:flex;align-items:center;gap:12px}.board-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.board-preview-grid article{padding:20px;border-radius:16px;background:var(--ground);min-width:0}.board-state-preview .cleanupgrid{padding-bottom:0}
-@media(max-width:600px){.board-preview-grid{grid-template-columns:1fr}.board-state-preview>header{align-items:flex-start}.board-state-preview{padding:16px}}
/* 收起时最后一行是被 mask 淡掉的,不是被一块渐变色盖住(boardui 实测:列表自己带
`linear-gradient(#000 calc(100% - 44px),transparent)`,展开就取消)。盖的那种要先猜卡片
是什么底色,猜错就在图上留一道横带;淡的这种在任何底色上都成立。 */
diff --git a/web/css/04-manage.css b/web/css/04-manage.css
index 40cb3c6b2..d6c0e77b6 100644
--- a/web/css/04-manage.css
+++ b/web/css/04-manage.css
@@ -40,7 +40,6 @@
.reviewpickitem[hidden],.reviewbulkbar [hidden]{display:none}
.reviewgroup>.reviewactions .reviewstate:not(:empty){flex-basis:100%;text-align:right}
.reviewstate:empty{display:none}
-.library-processing-result{margin-top:16px}
.reviewitem .reviewactions{flex:0 0 auto;box-sizing:border-box;min-height:56px;margin:0;padding:12px 12px 12px 20px;background:var(--overlay-5);border-top:1px solid var(--line-soft);border-radius:0 0 var(--floating-radius) var(--floating-radius);display:flex;gap:8px;justify-content:flex-end}
/* 卡片中段是一个框:预览铺满它,判断依据贴在框底。没抽帧、没取到图的那两种卡
在框里放空状态,同样铺满——一行小字挂在半屏留白上方,读起来像界面坏了,而这
@@ -166,7 +165,6 @@
.fsrcoption{display:flex;align-items:center;gap:8px;justify-content:space-between}
.fsrcoption label{flex:1;min-width:0}
.fsrcoption .geist-button{font-size:var(--fs-sm);white-space:nowrap}
-.library-processing-outcome{min-width:0;max-width:100%}
.statsdashboard .emptystate{border:0;background:var(--ground)}
.taste-history-guide-content a{color:var(--tungsten);text-decoration:none}
.taste-history-guide-content a:hover{text-decoration:underline;text-underline-offset:3px}
diff --git a/web/dist/peach-react.css b/web/dist/peach-react.css
index 47d22440b..f578feab7 100644
--- a/web/dist/peach-react.css
+++ b/web/dist/peach-react.css
@@ -1,3 +1,3 @@
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
-@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:var(--font-inter), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:var(--font-mono-source), ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-950:oklch(28.6% .066 53.813);--color-lime-100:oklch(96.7% .067 122.328);--color-lime-200:oklch(93.8% .127 124.321);--color-lime-300:oklch(89.7% .196 126.665);--color-lime-400:oklch(84.1% .238 128.85);--color-lime-500:oklch(76.8% .233 130.85);--color-lime-600:oklch(64.8% .2 131.684);--color-lime-700:oklch(53.2% .157 131.589);--color-lime-800:oklch(45.3% .124 130.933);--color-lime-950:oklch(27.4% .072 132.109);--color-green-100:oklch(96.2% .044 156.743);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-cyan-200:oklch(91.7% .08 205.041);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-800:oklch(45% .085 224.283);--color-cyan-950:oklch(30.2% .056 229.695);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:#3392ff;--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-800:oklch(39.8% .195 277.366);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-purple-950:oklch(29.1% .149 302.717);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-300:oklch(82.3% .12 346.018);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-500:oklch(65.6% .241 354.308);--color-pink-700:oklch(52.5% .223 3.958);--color-pink-950:oklch(28.4% .109 3.907);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-950:oklch(27.1% .105 12.094);--color-zinc-800:oklch(27.4% .006 286.033);--color-neutral-50:oklch(98.5% 0 none);--color-neutral-100:#f7f7f7;--color-neutral-200:#ebebeb;--color-neutral-300:oklch(87% 0 none);--color-neutral-400:oklch(70.8% 0 none);--color-neutral-500:oklch(55.6% 0 none);--color-neutral-600:oklch(43.9% 0 none);--color-neutral-700:oklch(37.1% 0 none);--color-neutral-800:oklch(26.9% 0 none);--color-neutral-900:oklch(20.5% 0 none);--color-neutral-950:oklch(14.5% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-2xl:1rem;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-neutral-925:#121212;--color-accent-50:var(--color-blue-50);--color-accent-100:var(--color-blue-100);--color-accent-200:var(--color-blue-200);--color-accent-300:var(--color-blue-300);--color-accent-400:var(--color-blue-400);--color-accent-500:var(--color-blue-500);--color-accent-600:var(--color-blue-600);--color-accent-700:var(--color-blue-700);--color-accent-800:var(--color-blue-800);--color-accent-900:var(--color-blue-900);--color-accent-950:var(--color-blue-950);--radius-2lg:10px;--shadow-checkbox-selected:inset 0 2px 0 0 #ffffff40, inset 0 0 0 1px var(--color-accent-500);--color-foreground-full:var(--color-foreground-full);--color-foreground-icon-primary:var(--color-foreground-icon-primary);--color-foreground-icon-hover:var(--color-foreground-icon-hover);--color-foreground-icon-secondary:var(--color-foreground-icon-secondary);--color-foreground-icon-tertiary:var(--color-foreground-icon-tertiary);--color-foreground-icon-quaternary:var(--color-foreground-icon-quaternary);--color-foreground-icon-error:var(--color-foreground-icon-error);--color-foreground-icon-disabled:var(--color-foreground-icon-disabled);--color-foreground-disabled:var(--color-foreground-disabled);--color-foreground-disabled-danger:var(--color-foreground-disabled-danger);--color-input-disabled-foreground:var(--color-input-disabled-foreground);--color-icon-button-disabled-foreground:var(--color-icon-button-disabled-foreground);--color-button-primary-disabled-foreground:var(--color-button-primary-disabled-foreground);--color-text-primary:var(--color-text-primary);--color-text-secondary:var(--color-text-secondary);--color-text-tertiary:var(--color-text-tertiary);--color-text-disabled:var(--color-text-disabled);--color-text-disabled-danger:var(--color-text-disabled-danger);--color-text-placeholder:var(--color-text-placeholder);--color-text-error-primary:var(--color-text-error-primary);--color-input-disabled-text:var(--color-input-disabled-text);--color-text-white:var(--color-text-white);--color-background-full:var(--color-background-full);--color-background-primary-default:var(--color-background-primary-default);--color-background-inner-default:var(--color-background-inner-default);--color-background-primary-hover:var(--color-background-primary-hover);--color-background-primary-active:var(--color-background-primary-active);--color-background-primary-disabled:var(--color-background-primary-disabled);--color-input-disabled-background:var(--color-input-disabled-background);--color-background-secondary-default:var(--color-background-secondary-default);--color-background-secondary-hover:var(--color-background-secondary-hover);--color-background-tertiary-default:var(--color-background-tertiary-default);--color-background-tertiary-hover:var(--color-background-tertiary-hover);--color-background-tertiary-error:var(--color-background-tertiary-error);--color-background-recent-hire-role:var(--color-background-recent-hire-role);--color-avatar-neutral-background:var(--color-avatar-neutral-background);--color-background-quaternary-default:var(--color-background-quaternary-default);--color-background-quaternary-hover:var(--color-background-quaternary-hover);--color-background-quaternary-error:var(--color-background-quaternary-error);--color-file-upload-icon-background:var(--color-file-upload-icon-background);--color-file-upload-icon-foreground:var(--color-file-upload-icon-foreground);--color-file-upload-icon-foreground-hover:var(--color-file-upload-icon-foreground-hover);--color-border-button-default:var(--color-border-button-default);--color-border-button-hover:var(--color-border-button-hover);--color-border-button-active:var(--color-border-button-active);--color-border-button-white:var(--color-border-button-white);--color-border-error-default:var(--color-border-error-default);--color-border-checkbox-default:var(--color-border-checkbox-default);--color-border-checkbox-hover:var(--color-border-checkbox-hover);--color-border-checkbox-active:var(--color-border-checkbox-active);--color-border-checkbox-white:var(--color-border-checkbox-white);--color-border-component-detail-container:var(--color-border-component-detail-container);--color-border-ai-profile-card:var(--color-border-ai-profile-card);--color-border-table:var(--color-border-table);--color-border-button-group:var(--color-border-button-group);--color-border-sidebar-profile-hover:var(--color-border-sidebar-profile-hover);--color-separator-border:var(--color-separator-border);--color-separator-border-strong:var(--color-separator-border-strong);--color-border-focus-ring:var(--color-border-focus-ring);--color-state-success-text:var(--color-state-success-text);--color-state-success-base:var(--color-state-success-base);--color-control-indicator-background:var(--color-control-indicator-background);--color-control-indicator-background-subtle:var(--color-control-indicator-background-subtle);--color-switch-off-chip-start:var(--color-switch-off-chip-start);--color-switch-off-chip-end:var(--color-switch-off-chip-end);--color-switch-on-chip-start:var(--color-switch-on-chip-start);--color-switch-on-chip-end:var(--color-switch-on-chip-end);--color-stat-card-icon-background:var(--color-stat-card-icon-background);--color-segmented-control-background:var(--color-segmented-control-background);--color-segmented-control-selected-background:var(--color-segmented-control-selected-background);--color-theme-toggle-sidebar-background:var(--color-theme-toggle-sidebar-background);--color-theme-toggle-sidebar-selected-background:var(--color-theme-toggle-sidebar-selected-background);--color-ai-chat-composer-add-background:var(--color-ai-chat-composer-add-background);--color-ai-chat-composer-add-hover-background:var(--color-ai-chat-composer-add-hover-background);--color-composer-panel-tab-background:var(--color-composer-panel-tab-background);--color-composer-panel-add-background:var(--color-composer-panel-add-background);--color-composer-panel-add-hover-background:var(--color-composer-panel-add-hover-background);--color-composer-panel-tile-border:var(--color-composer-panel-tile-border);--color-composer-panel-rail-background:var(--color-composer-panel-rail-background);--color-questionnaire-key-background:var(--color-questionnaire-key-background);--color-questionnaire-key-hover-background:var(--color-questionnaire-key-hover-background);--color-agent-progress-ring:var(--color-agent-progress-ring);--color-button-ghost-background:var(--color-button-ghost-background);--color-button-ghost-hover:var(--color-button-ghost-hover);--color-button-ghost-active:var(--color-button-ghost-active);--color-button-ghost-disabled:var(--color-button-ghost-disabled);--color-button-ghost-foreground:var(--color-button-ghost-foreground);--color-button-ghost-disabled-foreground:var(--color-button-ghost-disabled-foreground);--color-dropdown-item-hover-background:var(--color-dropdown-item-hover-background);--color-kbd-background:var(--color-kbd-background);--color-kbd-foreground:var(--color-kbd-foreground);--color-docs-file-chip-background:var(--color-docs-file-chip-background);--color-docs-file-chip-border:var(--color-docs-file-chip-border);--color-docs-file-chip-foreground:var(--color-docs-file-chip-foreground);--color-docs-command-accent:var(--color-docs-command-accent);--color-docs-code-background:var(--color-docs-code-background);--color-docs-install-rail:var(--color-docs-install-rail);--color-badge-neutral-background:var(--color-badge-neutral-background);--color-team-menu-count-background:var(--color-team-menu-count-background);--color-team-menu-count-foreground:var(--color-team-menu-count-foreground);--color-badge-new-background:var(--color-badge-new-background);--color-badge-new-text:var(--color-badge-new-text);--color-tab-count-selected-background:var(--color-tab-count-selected-background);--color-pill-tab-blue-selected-background:var(--color-pill-tab-blue-selected-background);--color-pill-tab-blue-hover-background:var(--color-pill-tab-blue-hover-background);--color-notification-information-background:var(--color-notification-information-background);--color-notification-information-foreground:var(--color-notification-information-foreground);--color-notification-success-background:var(--color-notification-success-background);--color-notification-success-foreground:var(--color-notification-success-foreground);--color-notification-error-background:var(--color-notification-error-background);--color-notification-error-foreground:var(--color-notification-error-foreground);--color-notification-center-background:var(--color-notification-center-background);--color-status-lime-background:var(--color-status-lime-background);--color-status-lime-text:var(--color-status-lime-text);--color-status-yellow-background:var(--color-status-yellow-background);--color-status-yellow-text:var(--color-status-yellow-text);--color-status-rose-background:var(--color-status-rose-background);--color-status-rose-text:var(--color-status-rose-text);--color-status-cyan-background:var(--color-status-cyan-background);--color-status-cyan-text:var(--color-status-cyan-text);--color-status-blue-background:var(--color-status-blue-background);--color-status-blue-text:var(--color-status-blue-text);--color-status-purple-background:var(--color-status-purple-background);--color-status-purple-text:var(--color-status-purple-text);--color-status-dot-green-halo:var(--color-status-dot-green-halo);--color-status-dot-yellow-halo:var(--color-status-dot-yellow-halo);--color-status-dot-indigo-halo:var(--color-status-dot-indigo-halo);--color-date-range-background:var(--color-date-range-background);--color-date-range-edge-background:var(--color-date-range-edge-background);--color-calendar-event-blue-background:var(--color-calendar-event-blue-background);--color-calendar-event-blue-title:var(--color-calendar-event-blue-title);--color-calendar-event-blue-time:var(--color-calendar-event-blue-time);--color-calendar-event-pink-background:var(--color-calendar-event-pink-background);--color-calendar-event-pink-title:var(--color-calendar-event-pink-title);--color-calendar-event-pink-time:var(--color-calendar-event-pink-time);--color-calendar-event-purple-background:var(--color-calendar-event-purple-background);--color-calendar-event-purple-title:var(--color-calendar-event-purple-title);--color-calendar-event-purple-time:var(--color-calendar-event-purple-time);--color-calendar-event-lime-background:var(--color-calendar-event-lime-background);--color-calendar-event-lime-title:var(--color-calendar-event-lime-title);--color-calendar-event-lime-time:var(--color-calendar-event-lime-time);--color-calendar-event-emerald-background:var(--color-calendar-event-emerald-background);--color-calendar-event-emerald-title:var(--color-calendar-event-emerald-title);--color-calendar-event-emerald-time:var(--color-calendar-event-emerald-time);--color-text-error-placeholder:var(--color-text-error-placeholder);--color-chart-track:var(--color-chart-track);--color-chart-cursor:var(--color-chart-cursor);--color-chart-neutral:var(--color-chart-neutral);--color-chart-1:var(--color-chart-1);--color-chart-1-active:var(--color-chart-1-active);--color-chart-2:var(--color-chart-2);--color-chart-2-active:var(--color-chart-2-active);--color-chart-3:var(--color-chart-3);--color-chart-3-active:var(--color-chart-3-active);--color-chart-4:var(--color-chart-4);--color-chart-4-active:var(--color-chart-4-active);--color-chart-5:var(--color-chart-5);--color-chart-5-active:var(--color-chart-5-active);--color-chart-6:var(--color-chart-6);--color-chart-6-active:var(--color-chart-6-active);--color-chart-7:var(--color-chart-7);--color-chart-7-active:var(--color-chart-7-active);--color-chart-8:var(--color-chart-8);--color-chart-8-active:var(--color-chart-8-active);--color-chart-9:var(--color-chart-9);--color-chart-9-active:var(--color-chart-9-active);--color-chart-agents-bar:var(--color-chart-agents-bar);--color-chart-agents-bar-active:var(--color-chart-agents-bar-active);--button-transition-ms:.15s;--input-transition-ms:.15s;--text-title-1-medium:1.5rem;--text-title-1-medium--line-height:2.125rem;--text-title-1-medium--letter-spacing:0;--text-title-1-medium--font-weight:500;--text-title-1-semibold:1.5rem;--text-title-1-semibold--line-height:2.125rem;--text-title-1-semibold--letter-spacing:0;--text-title-1-semibold--font-weight:600;--text-title-2-semibold:1.25rem;--text-title-2-semibold--line-height:1.625rem;--text-title-2-semibold--letter-spacing:0;--text-title-2-semibold--font-weight:600;--text-headline-medium:1rem;--text-headline-medium--line-height:1.375rem;--text-headline-medium--letter-spacing:0;--text-headline-medium--font-weight:500;--text-body-regular:.875rem;--text-body-regular--line-height:1.25rem;--text-body-regular--letter-spacing:0;--text-body-regular--font-weight:400;--text-body-medium:.875rem;--text-body-medium--line-height:1.25rem;--text-body-medium--letter-spacing:0;--text-body-medium--font-weight:500;--text-body-2-regular:.8125rem;--text-body-2-regular--line-height:1.125rem;--text-body-2-regular--letter-spacing:0;--text-body-2-regular--font-weight:400;--text-body-2-medium:.8125rem;--text-body-2-medium--line-height:1.125rem;--text-body-2-medium--letter-spacing:0;--text-body-2-medium--font-weight:500;--text-caption-1-regular:.75rem;--text-caption-1-regular--line-height:1rem;--text-caption-1-regular--letter-spacing:.15px;--text-caption-1-regular--font-weight:400;--text-caption-1-medium:.75rem;--text-caption-1-medium--line-height:1rem;--text-caption-1-medium--letter-spacing:.15px;--text-caption-1-medium--font-weight:500;--text-caption-1-semibold:.75rem;--text-caption-1-semibold--line-height:1rem;--text-caption-1-semibold--letter-spacing:.15px;--text-caption-1-semibold--font-weight:600;--container-board:var(--board-content,1120px);--container-card-cover:150px;--aspect-card-cover:16 / 10}}.\@container{container-type:inline-size}.bg-button-danger{isolation:isolate;background-image:var(--gradient-button-danger-default);position:relative}.bg-button-danger:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-danger-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-danger:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-danger-active)}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-danger:disabled,.bg-button-danger[aria-disabled=true]{background-image:var(--gradient-button-danger-disabled)}.bg-button-danger:disabled:before,.bg-button-danger[aria-disabled=true]:before{display:none}.bg-button-primary{isolation:isolate;background-image:var(--gradient-button-primary-default);position:relative}.bg-button-primary:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-primary-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-primary:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-primary-active)}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-primary:disabled,.bg-button-primary[aria-disabled=true]{background-image:var(--gradient-button-primary-disabled)}.bg-button-primary:disabled:before,.bg-button-primary[aria-disabled=true]:before{display:none}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.top-0\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-\[3px\]{top:3px}.left-0\.5{left:calc(var(--spacing) * .5)}.left-1{left:var(--spacing)}.left-\[3px\]{left:3px}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:0}.mx-auto{margin-inline:auto}.mr-auto{margin-right:auto}.card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));display:grid}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-card-cover{aspect-ratio:var(--aspect-card-cover)}.size-1{width:var(--spacing);height:var(--spacing)}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-\[5px\]{width:5px;height:5px}.size-\[7\.5px\]{width:7.5px;height:7.5px}.size-\[10px\]{width:10px;height:10px}.size-\[18px\]{width:18px;height:18px}.size-full{width:100%;height:100%}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-full{height:100%}.h-max{height:max-content}.max-h-\[240px\]{max-height:240px}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-\[52px\]{min-height:52px}.w-7{width:calc(var(--spacing) * 7)}.w-14{width:calc(var(--spacing) * 14)}.w-72{width:calc(var(--spacing) * 72)}.w-\[42px\]{width:42px}.w-\[202px\]{width:202px}.w-\[266px\]{width:266px}.w-card-cover{width:var(--container-card-cover)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.max-w-board{max-width:var(--container-board)}.max-w-prose{max-width:65ch}.min-w-0{min-width:0}.flex-1{flex:1}.shrink-0{flex-shrink:0}.translate-x-3{--tw-translate-x:calc(var(--spacing) * 3);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-6{--tw-translate-x:calc(var(--spacing) * 6);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[18px\]{--tw-translate-x:18px;translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.button-press-motion{transition:background-color var(--button-transition-ms) ease, border-color var(--button-transition-ms) ease, box-shadow var(--button-transition-ms) ease, color var(--button-transition-ms) ease, transform .42s cubic-bezier(.4, 0, .2, 1)}.button-press-motion:active:not(:disabled):not([aria-disabled=true]){transition-duration:.15s,.15s,.15s,.15s,.22s;transform:scale(.98)}.button-press-motion:disabled,.button-press-motion[aria-disabled=true]{transform:none}@media (prefers-reduced-motion:reduce){.button-press-motion{transition:none;transform:none}}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.dot-wave-0{animation:1.2s ease-in-out infinite peach-dot-wave}.dot-wave-1{animation:1.2s ease-in-out .15s infinite peach-dot-wave}.dot-wave-2{animation:1.2s ease-in-out .3s infinite peach-dot-wave}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-\[5px\]{gap:5px}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2lg{border-radius:var(--radius-2lg)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[0\.5px\]{border-radius:.5px}.rounded-\[0\.75px\]{border-radius:.75px}.rounded-\[1\.5px\]{border-radius:1.5px}.rounded-\[1px\]{border-radius:1px}.rounded-\[3px\]{border-radius:3px}.rounded-\[4\.5px\]{border-radius:4.5px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xs{border-radius:var(--radius-xs)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\[0\.5px\]{border-style:var(--tw-border-style);border-width:.5px}.border-\[0\.25px\]{border-style:var(--tw-border-style);border-width:.25px}.border-\[0\.375px\]{border-style:var(--tw-border-style);border-width:.375px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-solid{--tw-border-style:solid;border-style:solid}.border-accent-600{border-color:var(--color-accent-600)}.border-border-button-default,.border-border-button-default\/50{border-color:var(--color-border-button-default)}@supports (color:color-mix(in lab, red, red)){.border-border-button-default\/50{border-color:color-mix(in oklab, var(--color-border-button-default) 50%, transparent)}}.border-border-checkbox-default{border-color:var(--color-border-checkbox-default)}.border-border-checkbox-hover{border-color:var(--color-border-checkbox-hover)}.border-border-error-default{border-color:var(--color-border-error-default)}.border-separator-border{border-color:var(--color-separator-border)}.bg-background-primary-default{background-color:var(--color-background-primary-default)}.bg-background-secondary-default{background-color:var(--color-background-secondary-default)}.bg-background-tertiary-default{background-color:var(--color-background-tertiary-default)}.bg-background-tertiary-error{background-color:var(--color-background-tertiary-error)}.bg-black{background-color:var(--color-black)}.bg-button-ghost-background{background-color:var(--color-button-ghost-background)}.bg-current{background-color:currentColor}.bg-dropdown-item-hover-background{background-color:var(--color-dropdown-item-hover-background)}.bg-input-disabled-background{background-color:var(--color-input-disabled-background)}.bg-notification-information-background{background-color:var(--color-notification-information-background)}.bg-notification-success-background{background-color:var(--color-notification-success-background)}.bg-status-blue-background{background-color:var(--color-status-blue-background)}.bg-status-cyan-background{background-color:var(--color-status-cyan-background)}.bg-status-lime-background{background-color:var(--color-status-lime-background)}.bg-status-purple-background{background-color:var(--color-status-purple-background)}.bg-status-rose-background{background-color:var(--color-status-rose-background)}.bg-status-yellow-background{background-color:var(--color-status-yellow-background)}.bg-transparent{background-color:#0000}.bg-linear-to-b{--tw-gradient-position:to bottom}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-b{--tw-gradient-position:to bottom in oklab}}.bg-linear-to-b{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-t{--tw-gradient-position:to top}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-t{--tw-gradient-position:to top in oklab}}.bg-linear-to-t{background-image:linear-gradient(var(--tw-gradient-stops))}.from-accent-400{--tw-gradient-from:var(--color-accent-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-accent-500{--tw-gradient-from:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-control-indicator-background{--tw-gradient-from:var(--color-control-indicator-background);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-off-chip-start{--tw-gradient-from:var(--color-switch-off-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-on-chip-start{--tw-gradient-from:var(--color-switch-on-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-\[43\.837\%\]{--tw-gradient-from-position:43.837%}.to-accent-500{--tw-gradient-to:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-accent-600{--tw-gradient-to:var(--color-accent-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-control-indicator-background-subtle{--tw-gradient-to:var(--color-control-indicator-background-subtle);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-off-chip-end{--tw-gradient-to:var(--color-switch-off-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-on-chip-end{--tw-gradient-to:var(--color-switch-on-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.fill-background-secondary-default{fill:var(--color-background-secondary-default)}.fill-background-tertiary-default{fill:var(--color-background-tertiary-default)}.fill-border-focus-ring{fill:var(--color-border-focus-ring)}.stroke-current{stroke:currentColor}.stroke-2{stroke-width:2px}.object-contain{object-fit:contain}.p-0{padding:0}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\[7px\]{padding-inline:7px}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-12{padding-block:calc(var(--spacing) * 12)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-px{padding-top:1px}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pl-1{padding-left:var(--spacing)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-sans{font-family:var(--font-sans)}.text-body-2-medium{font-size:var(--text-body-2-medium);line-height:var(--tw-leading,var(--text-body-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-medium--font-weight))}.text-body-2-regular{font-size:var(--text-body-2-regular);line-height:var(--tw-leading,var(--text-body-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-regular--font-weight))}.text-body-medium{font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight))}.text-body-regular{font-size:var(--text-body-regular);line-height:var(--tw-leading,var(--text-body-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-regular--font-weight))}.text-caption-1-medium{font-size:var(--text-caption-1-medium);line-height:var(--tw-leading,var(--text-caption-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-medium--font-weight))}.text-caption-1-regular{font-size:var(--text-caption-1-regular);line-height:var(--tw-leading,var(--text-caption-1-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-regular--font-weight))}.text-caption-1-semibold{font-size:var(--text-caption-1-semibold);line-height:var(--tw-leading,var(--text-caption-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-semibold--font-weight))}.text-headline-medium{font-size:var(--text-headline-medium);line-height:var(--tw-leading,var(--text-headline-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-headline-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-headline-medium--font-weight))}.text-title-1-medium{font-size:var(--text-title-1-medium);line-height:var(--tw-leading,var(--text-title-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-medium--font-weight))}.text-title-1-semibold{font-size:var(--text-title-1-semibold);line-height:var(--tw-leading,var(--text-title-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-semibold--font-weight))}.text-title-2-semibold{font-size:var(--text-title-2-semibold);line-height:var(--tw-leading,var(--text-title-2-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-semibold--font-weight))}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.text-accent-600{color:var(--color-accent-600)}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.text-foreground-full{color:var(--color-foreground-full)}.text-foreground-icon-error{color:var(--color-foreground-icon-error)}.text-foreground-icon-primary{color:var(--color-foreground-icon-primary)}.text-foreground-icon-quaternary{color:var(--color-foreground-icon-quaternary)}.text-foreground-icon-secondary{color:var(--color-foreground-icon-secondary)}.text-foreground-icon-tertiary{color:var(--color-foreground-icon-tertiary)}.text-input-disabled-foreground{color:var(--color-input-disabled-foreground)}.text-notification-information-foreground{color:var(--color-notification-information-foreground)}.text-notification-success-foreground{color:var(--color-notification-success-foreground)}.text-status-blue-text{color:var(--color-status-blue-text)}.text-status-cyan-text{color:var(--color-status-cyan-text)}.text-status-lime-text{color:var(--color-status-lime-text)}.text-status-purple-text{color:var(--color-status-purple-text)}.text-status-rose-text{color:var(--color-status-rose-text)}.text-status-yellow-text{color:var(--color-status-yellow-text)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-error-primary{color:var(--color-text-error-primary)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.text-text-tertiary{color:var(--color-text-tertiary)}.text-text-white{color:var(--color-text-white)}.underline{text-decoration-line:underline}.underline-offset-3{text-underline-offset:3px}.opacity-50{opacity:.5}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_2px_2px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 2px 2px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\,0_0\.75px_0_0_rgb\(0_0_0\/0\.05\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008), 0 .75px 0 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_4px_4px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 4px 4px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1\.5px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.75px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1.5px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .75px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.5px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .5px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-checkbox-selected{--tw-shadow:inset 0 2px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 1px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-dropdown{--tw-shadow:0 1px 1px 0 var(--tw-shadow-color,#0000000a), 0 4px 4px 0 var(--tw-shadow-color,#00000005);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow\/xs{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-border-button-active{--tw-ring-color:var(--color-border-button-active)}.ring-border-button-hover{--tw-ring-color:var(--color-border-button-hover)}.ring-border-focus-ring{--tw-ring-color:var(--color-border-focus-ring)}.ring-transparent{--tw-ring-color:transparent}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,color\]{transition-property:background-color,border-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,padding\,font-size\]{transition-property:background-color,border-color,box-shadow,padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\]{transition-property:background-color,border-color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,box-shadow\,color\]{transition-property:background-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[padding\,font-size\]{transition-property:padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-\[var\(--input-transition-ms\)\]{--tw-duration:var(--input-transition-ms);transition-duration:var(--input-transition-ms)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.ring-inset{--tw-ring-inset:inset}.placeholder\:text-text-tertiary::placeholder{color:var(--color-text-tertiary)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\:border-border-button-hover:hover{border-color:var(--color-border-button-hover)}.hover\:bg-background-primary-hover:hover{background-color:var(--color-background-primary-hover)}.hover\:bg-button-ghost-hover:hover{background-color:var(--color-button-ghost-hover)}.hover\:bg-dropdown-item-hover-background:hover{background-color:var(--color-dropdown-item-hover-background)}.hover\:text-text-primary:hover{color:var(--color-text-primary)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:placeholder\:text-text-primary:focus::placeholder{color:var(--color-text-primary)}.focus-visible\:bg-dropdown-item-hover-background:focus-visible{background-color:var(--color-dropdown-item-hover-background)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-border-focus-ring:focus-visible{--tw-ring-color:var(--color-border-focus-ring)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.active\:border-border-button-active:active{border-color:var(--color-border-button-active)}.active\:bg-background-primary-active:active{background-color:var(--color-background-primary-active)}.active\:bg-button-ghost-active:active{background-color:var(--color-button-ghost-active)}.active\:text-accent-800:active{color:var(--color-accent-800)}.active\:text-text-primary:active{color:var(--color-text-primary)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:border-border-button-default:disabled{border-color:var(--color-border-button-default)}.disabled\:bg-background-primary-disabled:disabled{background-color:var(--color-background-primary-disabled)}.disabled\:bg-button-ghost-disabled:disabled{background-color:var(--color-button-ghost-disabled)}.disabled\:text-button-ghost-disabled-foreground:disabled{color:var(--color-button-ghost-disabled-foreground)}.disabled\:text-button-primary-disabled-foreground:disabled{color:var(--color-button-primary-disabled-foreground)}.disabled\:text-foreground-disabled-danger:disabled{color:var(--color-foreground-disabled-danger)}.disabled\:text-icon-button-disabled-foreground:disabled{color:var(--color-icon-button-disabled-foreground)}.disabled\:text-input-disabled-text:disabled{color:var(--color-input-disabled-text)}.disabled\:text-text-tertiary:disabled{color:var(--color-text-tertiary)}.disabled\:no-underline:disabled{text-decoration-line:none}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:shadow-none:disabled{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.disabled\:placeholder\:text-input-disabled-text:disabled::placeholder{color:var(--color-input-disabled-text)}.aria-disabled\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}.aria-disabled\:border-border-button-default[aria-disabled=true]{border-color:var(--color-border-button-default)}.aria-disabled\:bg-background-primary-disabled[aria-disabled=true]{background-color:var(--color-background-primary-disabled)}.aria-disabled\:bg-button-ghost-disabled[aria-disabled=true]{background-color:var(--color-button-ghost-disabled)}.aria-disabled\:text-button-ghost-disabled-foreground[aria-disabled=true]{color:var(--color-button-ghost-disabled-foreground)}.aria-disabled\:text-button-primary-disabled-foreground[aria-disabled=true]{color:var(--color-button-primary-disabled-foreground)}.aria-disabled\:text-foreground-disabled-danger[aria-disabled=true]{color:var(--color-foreground-disabled-danger)}.aria-disabled\:text-text-tertiary[aria-disabled=true]{color:var(--color-text-tertiary)}.aria-disabled\:no-underline[aria-disabled=true]{text-decoration-line:none}.aria-disabled\:shadow-none[aria-disabled=true]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-invalid\:placeholder\:text-text-error-placeholder[aria-invalid=true]::placeholder{color:var(--color-text-error-placeholder)}.data-selected\:bg-background-tertiary-default[data-selected]{background-color:var(--color-background-tertiary-default)}.data-selected\:bg-dropdown-item-hover-background[data-selected]{background-color:var(--color-dropdown-item-hover-background)}.data-selected\:text-text-primary[data-selected]{color:var(--color-text-primary)}.data-\[entering\]\:scale-95[data-entering]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[entering\]\:opacity-0[data-entering]{opacity:0}.data-\[entering\]\:blur-\[2px\][data-entering]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[exiting\]\:scale-95[data-exiting]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[exiting\]\:opacity-0[data-exiting]{opacity:0}.data-\[exiting\]\:blur-\[2px\][data-exiting]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[placement\=bottom\]\:origin-top-left[data-placement=bottom]{transform-origin:0 0}.data-\[placement\=left\]\:origin-right[data-placement=left]{transform-origin:100%}.data-\[placement\=right\]\:origin-left[data-placement=right]{transform-origin:0}.data-\[placement\=top\]\:origin-bottom-left[data-placement=top]{transform-origin:0 100%}@container (width>=28rem){.\@md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width>=32rem){.\@lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@scope(.peach-react){*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}:root{--color-foreground-full:var(--color-white);--color-foreground-icon-primary:var(--color-neutral-950);--color-foreground-icon-hover:var(--color-black);--color-foreground-icon-secondary:var(--color-neutral-500);--color-foreground-icon-tertiary:var(--color-neutral-400);--color-foreground-icon-quaternary:var(--color-neutral-300);--color-foreground-icon-error:var(--color-red-600);--color-foreground-icon-disabled:var(--color-neutral-300);--color-foreground-disabled:var(--color-neutral-400);--color-foreground-disabled-danger:var(--color-red-300);--color-input-disabled-foreground:var(--color-neutral-300);--color-icon-button-disabled-foreground:var(--color-neutral-300);--color-button-primary-disabled-foreground:var(--color-neutral-400);--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-disabled-danger:var(--color-red-300);--color-text-placeholder:var(--color-neutral-400);--color-text-error-primary:var(--color-red-500);--color-input-disabled-text:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-inner-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-primary-active:var(--color-neutral-200);--color-background-primary-disabled:var(--color-neutral-100);--color-input-disabled-background:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-secondary-hover:var(--color-neutral-200);--color-background-tertiary-default:var(--color-neutral-200);--color-background-tertiary-hover:var(--color-neutral-300);--color-background-tertiary-error:var(--color-red-100);--color-background-recent-hire-role:var(--color-neutral-100);--color-avatar-neutral-background:var(--color-neutral-300);--color-background-quaternary-default:var(--color-neutral-300);--color-background-quaternary-hover:var(--color-neutral-400);--color-background-quaternary-error:var(--color-red-200);--color-file-upload-icon-background:var(--color-neutral-300);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-500);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-button-white:var(--color-white);--color-border-error-default:var(--color-red-500);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-checkbox-active:var(--color-neutral-400);--color-border-checkbox-white:var(--color-white);--color-border-component-detail-container:var(--color-neutral-200);--color-border-ai-profile-card:var(--color-neutral-200);--color-border-table:var(--color-neutral-200);--color-border-button-group:var(--color-neutral-200);--color-border-sidebar-profile-hover:var(--color-neutral-300);--color-separator-border:var(--color-neutral-200);--color-separator-border-strong:var(--color-neutral-200);--color-border-focus-ring:var(--color-accent-500);--color-state-success-text:var(--color-lime-800);--color-state-success-base:var(--color-lime-200);--color-control-indicator-background:var(--color-white);--color-control-indicator-background-subtle:var(--color-neutral-100);--color-switch-off-chip-start:var(--color-white);--color-switch-off-chip-end:var(--color-neutral-100);--color-switch-on-chip-start:#2673fe}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-start:color-mix(in oklab, var(--color-accent-500) 63%, var(--color-accent-600))}}:root{--color-switch-on-chip-end:#144be9}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-end:color-mix(in oklab, var(--color-accent-600) 16%, var(--color-accent-700))}}:root{--color-stat-card-icon-background:var(--color-white);--color-segmented-control-background:var(--color-neutral-100);--color-segmented-control-selected-background:var(--color-white);--color-theme-toggle-sidebar-background:var(--color-neutral-200);--color-theme-toggle-sidebar-selected-background:var(--color-white);--color-ai-chat-composer-add-background:var(--color-neutral-100);--color-ai-chat-composer-add-hover-background:var(--color-neutral-200);--color-composer-panel-tab-background:var(--color-neutral-200);--color-composer-panel-add-background:var(--color-neutral-200);--color-composer-panel-add-hover-background:var(--color-neutral-300);--color-composer-panel-tile-border:var(--color-neutral-200);--color-composer-panel-rail-background:var(--color-neutral-100);--color-questionnaire-key-background:var(--color-neutral-100);--color-questionnaire-key-hover-background:var(--color-neutral-200);--color-agent-progress-ring:var(--color-neutral-700);--color-button-ghost-background:var(--color-accent-100);--color-button-ghost-hover:var(--color-accent-200);--color-button-ghost-active:var(--color-accent-300);--color-button-ghost-disabled:var(--color-accent-50);--color-button-ghost-foreground:var(--color-accent-700);--color-button-ghost-disabled-foreground:var(--color-accent-300);--color-dropdown-item-hover-background:var(--color-neutral-100);--color-kbd-background:var(--color-neutral-300);--color-kbd-foreground:var(--color-neutral-500);--color-docs-file-chip-background:var(--color-purple-50);--color-docs-file-chip-border:var(--color-purple-100);--color-docs-file-chip-foreground:var(--color-purple-500);--color-docs-command-accent:var(--color-purple-400);--color-docs-code-background:var(--color-background-primary-default);--color-docs-install-rail:var(--color-border-button-default);--color-badge-neutral-background:var(--color-neutral-200);--color-team-menu-count-background:var(--color-neutral-200);--color-team-menu-count-foreground:var(--color-neutral-500);--color-badge-new-background:var(--color-accent-100);--color-badge-new-text:var(--color-accent-600);--color-tab-count-selected-background:var(--color-accent-100);--color-pill-tab-blue-selected-background:var(--color-accent-50);--color-pill-tab-blue-hover-background:var(--color-neutral-100);--color-notification-information-background:var(--color-blue-100);--color-notification-information-foreground:var(--color-blue-600);--color-notification-success-background:var(--color-lime-100);--color-notification-success-foreground:var(--color-lime-600);--color-notification-error-background:var(--color-rose-100);--color-notification-error-foreground:var(--color-rose-600);--color-notification-center-background:var(--color-white);--color-status-lime-background:var(--color-lime-200);--color-status-lime-text:var(--color-lime-800);--color-status-yellow-background:var(--color-yellow-200);--color-status-yellow-text:var(--color-yellow-800);--color-status-rose-background:var(--color-rose-200);--color-status-rose-text:var(--color-rose-800);--color-status-cyan-background:var(--color-cyan-200);--color-status-cyan-text:var(--color-cyan-800);--color-status-blue-background:var(--color-blue-200);--color-status-blue-text:var(--color-blue-800);--color-status-purple-background:var(--color-purple-100);--color-status-purple-text:var(--color-purple-600);--color-status-dot-green-halo:var(--color-green-100);--color-status-dot-yellow-halo:var(--color-yellow-200);--color-status-dot-indigo-halo:var(--color-indigo-100);--color-date-range-background:var(--color-accent-100);--color-date-range-edge-background:var(--color-accent-300);--color-calendar-event-blue-background:var(--color-blue-100);--color-calendar-event-blue-title:var(--color-blue-700);--color-calendar-event-blue-time:var(--color-blue-700);--color-calendar-event-pink-background:var(--color-pink-100);--color-calendar-event-pink-title:var(--color-pink-700);--color-calendar-event-pink-time:var(--color-pink-700);--color-calendar-event-purple-background:var(--color-purple-100);--color-calendar-event-purple-title:var(--color-purple-700);--color-calendar-event-purple-time:var(--color-purple-700);--color-calendar-event-lime-background:var(--color-lime-100);--color-calendar-event-lime-title:var(--color-lime-800);--color-calendar-event-lime-time:var(--color-lime-700);--color-calendar-event-emerald-background:var(--color-emerald-100);--color-calendar-event-emerald-title:var(--color-emerald-800);--color-calendar-event-emerald-time:var(--color-emerald-700);--color-text-error-placeholder:var(--color-red-400);--color-chart-track:var(--color-neutral-200);--color-chart-cursor:var(--color-neutral-300);--color-chart-neutral:var(--color-neutral-300);--color-chart-1:var(--color-teal-400);--color-chart-1-active:var(--color-teal-500);--color-chart-2:var(--color-lime-400);--color-chart-2-active:var(--color-lime-500);--color-chart-3:var(--color-pink-400);--color-chart-3-active:var(--color-pink-500);--color-chart-4:var(--color-sky-400);--color-chart-4-active:var(--color-sky-500);--color-chart-5:var(--color-purple-400);--color-chart-5-active:var(--color-purple-500);--color-chart-6:var(--color-blue-400);--color-chart-6-active:var(--color-blue-500);--color-chart-7:var(--color-emerald-400);--color-chart-7-active:var(--color-emerald-500);--color-chart-8:var(--color-yellow-400);--color-chart-8-active:var(--color-yellow-500);--color-chart-9:var(--color-indigo-400);--color-chart-9-active:var(--color-indigo-500);--color-chart-agents-bar:var(--color-purple-300);--color-chart-agents-bar-active:var(--color-purple-400);--gradient-button-primary-default:linear-gradient(180deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%);--gradient-button-primary-hover:linear-gradient(180deg, var(--color-accent-400) 0%, var(--color-accent-500) 100%);--gradient-button-primary-active:linear-gradient(180deg, var(--color-accent-600) 0%, var(--color-accent-700) 100%);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-200) 0%, var(--color-neutral-300) 100%);--gradient-button-danger-default:linear-gradient(180deg, var(--color-red-500) 0%, var(--color-red-600) 100%);--gradient-button-danger-hover:linear-gradient(180deg, var(--color-red-400) 0%, var(--color-red-500) 100%);--gradient-button-danger-active:linear-gradient(180deg, var(--color-red-600) 0%, var(--color-red-700) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-100) 0%, var(--color-red-200) 100%)}.dark{--color-foreground-full:var(--color-neutral-700);--color-foreground-icon-primary:var(--color-neutral-50);--color-foreground-icon-hover:var(--color-white);--color-foreground-icon-error:var(--color-red-400);--color-foreground-icon-tertiary:var(--color-neutral-600);--color-foreground-icon-quaternary:var(--color-neutral-700);--color-foreground-icon-disabled:var(--color-neutral-800);--color-foreground-disabled:var(--color-neutral-700);--color-foreground-disabled-danger:var(--color-red-400);--color-input-disabled-foreground:var(--color-neutral-600);--color-icon-button-disabled-foreground:var(--color-neutral-500);--color-button-primary-disabled-foreground:var(--color-neutral-500);--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-text-error-primary:var(--color-red-400);--color-input-disabled-text:#73737366}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-text:color-mix(in srgb, var(--color-neutral-500) 40%, transparent)}}.dark{--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-inner-default:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-inner-default:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-background-primary-active:var(--color-neutral-800);--color-background-primary-disabled:var(--color-neutral-800);--color-input-disabled-background:#2626264d}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-background:color-mix(in srgb, var(--color-neutral-800) 30%, transparent)}}.dark{--color-switch-off-chip-start:var(--color-background-tertiary-default);--color-switch-off-chip-end:var(--color-background-tertiary-default);--color-background-secondary-default:var(--color-neutral-900);--color-background-secondary-hover:var(--color-neutral-800);--color-background-tertiary-default:var(--color-neutral-800);--color-background-tertiary-hover:var(--color-neutral-700);--color-background-tertiary-error:#46080999}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-tertiary-error:color-mix(in srgb, var(--color-red-950) 60%, transparent)}}.dark{--color-background-quaternary-default:var(--color-neutral-700);--color-background-quaternary-hover:var(--color-neutral-600);--color-background-recent-hire-role:#17171799}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-recent-hire-role:color-mix(in srgb, var(--color-neutral-900) 60%, transparent)}}.dark{--color-avatar-neutral-background:var(--color-background-primary-default);--color-file-upload-icon-background:var(--color-neutral-600);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-300);--color-stat-card-icon-background:var(--color-neutral-800);--color-segmented-control-background:var(--color-neutral-925);--color-segmented-control-selected-background:var(--color-neutral-800);--color-theme-toggle-sidebar-background:var(--color-neutral-800);--color-theme-toggle-sidebar-selected-background:var(--color-neutral-700);--color-ai-chat-composer-add-background:var(--color-neutral-700);--color-ai-chat-composer-add-hover-background:var(--color-neutral-600);--color-composer-panel-tab-background:#40404080}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tab-background:color-mix(in srgb, var(--color-neutral-700) 50%, transparent)}}.dark{--color-composer-panel-add-background:var(--color-neutral-700);--color-composer-panel-add-hover-background:var(--color-neutral-600);--color-composer-panel-tile-border:#ffffff24}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tile-border:color-mix(in srgb, var(--color-white) 14%, transparent)}}.dark{--color-composer-panel-rail-background:#17171780}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-rail-background:color-mix(in srgb, var(--color-neutral-900) 50%, transparent)}}.dark{--color-questionnaire-key-background:var(--color-neutral-700);--color-questionnaire-key-hover-background:var(--color-neutral-600);--color-agent-progress-ring:#ffffff80}@supports (color:color-mix(in lab, red, red)){.dark{--color-agent-progress-ring:color-mix(in srgb, var(--color-white) 50%, transparent)}}.dark{--color-button-ghost-background:var(--color-accent-900);--color-button-ghost-hover:var(--color-accent-800);--color-button-ghost-active:var(--color-accent-700);--color-button-ghost-disabled:var(--color-neutral-800);--color-button-ghost-foreground:var(--color-accent-300);--color-button-ghost-disabled-foreground:var(--color-neutral-600);--color-dropdown-item-hover-background:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-dropdown-item-hover-background:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-kbd-background:var(--color-neutral-700);--color-kbd-foreground:var(--color-neutral-400);--color-docs-file-chip-background:#3c036680}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-file-chip-background:color-mix(in srgb, var(--color-purple-950) 50%, transparent)}}.dark{--color-docs-file-chip-border:var(--color-purple-800);--color-docs-file-chip-foreground:var(--color-purple-400);--color-docs-code-background:var(--color-background-full);--color-docs-install-rail:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-install-rail:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--shadow-2xs:0 1px #00000029;--shadow-xs:0 1px 2px 0 #0000002e;--shadow-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--shadow-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--shadow-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--shadow-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--shadow-card:0 1px 1px 0 #00000024;--shadow-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--shadow-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--shadow-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014;--color-badge-neutral-background:var(--color-neutral-800);--color-team-menu-count-background:var(--color-neutral-700);--color-team-menu-count-foreground:var(--color-neutral-400);--color-badge-new-background:var(--color-accent-950);--color-badge-new-text:var(--color-accent-400);--color-tab-count-selected-background:#193cb899}@supports (color:color-mix(in lab, red, red)){.dark{--color-tab-count-selected-background:color-mix(in srgb, var(--color-accent-800) 60%, transparent)}}.dark{--color-notification-information-background:#193cb880}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-information-background:color-mix(in srgb, var(--color-blue-800) 50%, transparent)}}.dark{--color-notification-information-foreground:var(--color-blue-300);--color-notification-success-background:#3d630080}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-success-background:color-mix(in srgb, var(--color-lime-800) 50%, transparent)}}.dark{--color-notification-success-foreground:var(--color-lime-300);--color-notification-error-background:#a3003780}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-error-background:color-mix(in srgb, var(--color-rose-800) 50%, transparent)}}.dark{--color-notification-error-foreground:var(--color-rose-300);--color-notification-center-background:var(--color-neutral-900);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-button-white:var(--color-zinc-800);--color-border-error-default:var(--color-red-400);--color-border-checkbox-default:var(--color-neutral-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-border-checkbox-active:var(--color-neutral-500);--color-border-component-detail-container:var(--color-neutral-800);--color-border-ai-profile-card:var(--color-neutral-800);--color-border-table:var(--color-neutral-800);--color-border-button-group:#52525299}@supports (color:color-mix(in lab, red, red)){.dark{--color-border-button-group:color-mix(in srgb, var(--color-neutral-600) 60%, transparent)}}.dark{--color-border-sidebar-profile-hover:var(--color-neutral-600);--color-separator-border:var(--color-neutral-800);--color-separator-border-strong:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-separator-border-strong:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-status-lime-background:#192e0399}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-lime-background:color-mix(in srgb, var(--color-lime-950) 60%, transparent)}}.dark{--color-status-lime-text:var(--color-lime-500);--color-status-yellow-background:#43200499}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-yellow-background:color-mix(in srgb, var(--color-yellow-950) 60%, transparent)}}.dark{--color-status-yellow-text:var(--color-yellow-500);--color-status-rose-background:#4d021899}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-rose-background:color-mix(in srgb, var(--color-rose-950) 60%, transparent)}}.dark{--color-status-rose-text:var(--color-rose-500);--color-status-cyan-background:#05334599}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-cyan-background:color-mix(in srgb, var(--color-cyan-950) 60%, transparent)}}.dark{--color-status-cyan-text:var(--color-cyan-400);--color-status-blue-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-blue-background:color-mix(in srgb, var(--color-blue-950) 60%, transparent)}}.dark{--color-status-blue-text:var(--color-blue-300);--color-status-purple-background:#59168b80}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-purple-background:color-mix(in srgb, var(--color-purple-900) 50%, transparent)}}.dark{--color-status-purple-text:var(--color-purple-300);--color-status-dot-green-halo:#01663066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-green-halo:color-mix(in srgb, var(--color-green-800) 40%, transparent)}}.dark{--color-status-dot-yellow-halo:#874b0066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-yellow-halo:color-mix(in srgb, var(--color-yellow-800) 40%, transparent)}}.dark{--color-status-dot-indigo-halo:#372aac66}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-indigo-halo:color-mix(in srgb, var(--color-indigo-800) 40%, transparent)}}.dark{--color-date-range-background:var(--color-accent-950);--color-date-range-edge-background:var(--color-accent-800);--color-pill-tab-blue-selected-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-pill-tab-blue-selected-background:color-mix(in srgb, var(--color-accent-950) 60%, transparent)}}.dark{--color-pill-tab-blue-hover-background:var(--color-neutral-800);--color-calendar-event-blue-background:var(--color-blue-950);--color-calendar-event-blue-title:var(--color-blue-300);--color-calendar-event-blue-time:var(--color-blue-300);--color-calendar-event-pink-background:var(--color-pink-950);--color-calendar-event-pink-title:var(--color-pink-300);--color-calendar-event-pink-time:var(--color-pink-300);--color-calendar-event-purple-background:var(--color-purple-950);--color-calendar-event-purple-title:var(--color-purple-300);--color-calendar-event-purple-time:var(--color-purple-300);--color-calendar-event-lime-background:var(--color-lime-950);--color-calendar-event-lime-title:var(--color-lime-300);--color-calendar-event-lime-time:var(--color-lime-300);--color-calendar-event-emerald-background:var(--color-emerald-950);--color-calendar-event-emerald-title:var(--color-emerald-300);--color-calendar-event-emerald-time:var(--color-emerald-300);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-700) 0%, var(--color-neutral-800) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-900) 0%, var(--color-red-950) 100%);--color-chart-track:var(--color-neutral-800);--color-chart-cursor:var(--color-neutral-700);--color-chart-neutral:var(--color-neutral-800);--color-chart-agents-bar:var(--color-purple-500);--color-chart-agents-bar-active:var(--color-purple-600)}.dark[data-accent]{--color-badge-new-background:#16245680}@supports (color:color-mix(in lab, red, red)){.dark[data-accent]{--color-badge-new-background:color-mix(in srgb, var(--color-accent-950) 50%, transparent)}}@keyframes peach-dot-wave{0%,80%,to{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}:root{--font-inter:"Inter Variable", "Inter"}.peach-react{font-family:var(--font-sans);color:var(--color-text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-variant-ligatures:contextual;font-kerning:normal;--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-tertiary-default:var(--color-neutral-200);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-focus-ring:var(--color-accent-500);--color-separator-border:var(--color-neutral-200);line-height:1.5}.dark .peach-react{--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark .peach-react{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark .peach-react{--color-background-secondary-default:var(--color-neutral-900);--color-background-tertiary-default:var(--color-neutral-800);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-checkbox-default:var(--color-neutral-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-800)}@keyframes check-draw{0%{stroke-dashoffset:1px}to{stroke-dashoffset:0}}.animate-check-draw{stroke-dasharray:1;stroke-dashoffset:1px;animation:.2s cubic-bezier(.65,0,.35,1) forwards check-draw}@media (prefers-reduced-motion:reduce){.animate-check-draw{stroke-dashoffset:0;animation:none}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}
+@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:var(--font-inter), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:var(--font-mono-source), ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-950:oklch(28.6% .066 53.813);--color-lime-100:oklch(96.7% .067 122.328);--color-lime-200:oklch(93.8% .127 124.321);--color-lime-300:oklch(89.7% .196 126.665);--color-lime-400:oklch(84.1% .238 128.85);--color-lime-500:oklch(76.8% .233 130.85);--color-lime-600:oklch(64.8% .2 131.684);--color-lime-700:oklch(53.2% .157 131.589);--color-lime-800:oklch(45.3% .124 130.933);--color-lime-950:oklch(27.4% .072 132.109);--color-green-100:oklch(96.2% .044 156.743);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-cyan-200:oklch(91.7% .08 205.041);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-800:oklch(45% .085 224.283);--color-cyan-950:oklch(30.2% .056 229.695);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:#3392ff;--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-800:oklch(39.8% .195 277.366);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-purple-950:oklch(29.1% .149 302.717);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-300:oklch(82.3% .12 346.018);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-500:oklch(65.6% .241 354.308);--color-pink-700:oklch(52.5% .223 3.958);--color-pink-950:oklch(28.4% .109 3.907);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-950:oklch(27.1% .105 12.094);--color-zinc-800:oklch(27.4% .006 286.033);--color-neutral-50:oklch(98.5% 0 none);--color-neutral-100:#f7f7f7;--color-neutral-200:#ebebeb;--color-neutral-300:oklch(87% 0 none);--color-neutral-400:oklch(70.8% 0 none);--color-neutral-500:oklch(55.6% 0 none);--color-neutral-600:oklch(43.9% 0 none);--color-neutral-700:oklch(37.1% 0 none);--color-neutral-800:oklch(26.9% 0 none);--color-neutral-900:oklch(20.5% 0 none);--color-neutral-950:oklch(14.5% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-2xl:1rem;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-neutral-925:#121212;--color-accent-50:var(--color-blue-50);--color-accent-100:var(--color-blue-100);--color-accent-200:var(--color-blue-200);--color-accent-300:var(--color-blue-300);--color-accent-400:var(--color-blue-400);--color-accent-500:var(--color-blue-500);--color-accent-600:var(--color-blue-600);--color-accent-700:var(--color-blue-700);--color-accent-800:var(--color-blue-800);--color-accent-900:var(--color-blue-900);--color-accent-950:var(--color-blue-950);--radius-2lg:10px;--shadow-checkbox-selected:inset 0 2px 0 0 #ffffff40, inset 0 0 0 1px var(--color-accent-500);--color-foreground-full:var(--color-foreground-full);--color-foreground-icon-primary:var(--color-foreground-icon-primary);--color-foreground-icon-hover:var(--color-foreground-icon-hover);--color-foreground-icon-secondary:var(--color-foreground-icon-secondary);--color-foreground-icon-tertiary:var(--color-foreground-icon-tertiary);--color-foreground-icon-quaternary:var(--color-foreground-icon-quaternary);--color-foreground-icon-error:var(--color-foreground-icon-error);--color-foreground-icon-disabled:var(--color-foreground-icon-disabled);--color-foreground-disabled:var(--color-foreground-disabled);--color-foreground-disabled-danger:var(--color-foreground-disabled-danger);--color-input-disabled-foreground:var(--color-input-disabled-foreground);--color-icon-button-disabled-foreground:var(--color-icon-button-disabled-foreground);--color-button-primary-disabled-foreground:var(--color-button-primary-disabled-foreground);--color-text-primary:var(--color-text-primary);--color-text-secondary:var(--color-text-secondary);--color-text-tertiary:var(--color-text-tertiary);--color-text-disabled:var(--color-text-disabled);--color-text-disabled-danger:var(--color-text-disabled-danger);--color-text-placeholder:var(--color-text-placeholder);--color-text-error-primary:var(--color-text-error-primary);--color-input-disabled-text:var(--color-input-disabled-text);--color-text-white:var(--color-text-white);--color-background-full:var(--color-background-full);--color-background-primary-default:var(--color-background-primary-default);--color-background-inner-default:var(--color-background-inner-default);--color-background-primary-hover:var(--color-background-primary-hover);--color-background-primary-active:var(--color-background-primary-active);--color-background-primary-disabled:var(--color-background-primary-disabled);--color-input-disabled-background:var(--color-input-disabled-background);--color-background-secondary-default:var(--color-background-secondary-default);--color-background-secondary-hover:var(--color-background-secondary-hover);--color-background-tertiary-default:var(--color-background-tertiary-default);--color-background-tertiary-hover:var(--color-background-tertiary-hover);--color-background-tertiary-error:var(--color-background-tertiary-error);--color-background-recent-hire-role:var(--color-background-recent-hire-role);--color-avatar-neutral-background:var(--color-avatar-neutral-background);--color-background-quaternary-default:var(--color-background-quaternary-default);--color-background-quaternary-hover:var(--color-background-quaternary-hover);--color-background-quaternary-error:var(--color-background-quaternary-error);--color-file-upload-icon-background:var(--color-file-upload-icon-background);--color-file-upload-icon-foreground:var(--color-file-upload-icon-foreground);--color-file-upload-icon-foreground-hover:var(--color-file-upload-icon-foreground-hover);--color-border-button-default:var(--color-border-button-default);--color-border-button-hover:var(--color-border-button-hover);--color-border-button-active:var(--color-border-button-active);--color-border-button-white:var(--color-border-button-white);--color-border-error-default:var(--color-border-error-default);--color-border-checkbox-default:var(--color-border-checkbox-default);--color-border-checkbox-hover:var(--color-border-checkbox-hover);--color-border-checkbox-active:var(--color-border-checkbox-active);--color-border-checkbox-white:var(--color-border-checkbox-white);--color-border-component-detail-container:var(--color-border-component-detail-container);--color-border-ai-profile-card:var(--color-border-ai-profile-card);--color-border-table:var(--color-border-table);--color-border-button-group:var(--color-border-button-group);--color-border-sidebar-profile-hover:var(--color-border-sidebar-profile-hover);--color-separator-border:var(--color-separator-border);--color-separator-border-strong:var(--color-separator-border-strong);--color-border-focus-ring:var(--color-border-focus-ring);--color-state-success-text:var(--color-state-success-text);--color-state-success-base:var(--color-state-success-base);--color-control-indicator-background:var(--color-control-indicator-background);--color-control-indicator-background-subtle:var(--color-control-indicator-background-subtle);--color-switch-off-chip-start:var(--color-switch-off-chip-start);--color-switch-off-chip-end:var(--color-switch-off-chip-end);--color-switch-on-chip-start:var(--color-switch-on-chip-start);--color-switch-on-chip-end:var(--color-switch-on-chip-end);--color-stat-card-icon-background:var(--color-stat-card-icon-background);--color-segmented-control-background:var(--color-segmented-control-background);--color-segmented-control-selected-background:var(--color-segmented-control-selected-background);--color-theme-toggle-sidebar-background:var(--color-theme-toggle-sidebar-background);--color-theme-toggle-sidebar-selected-background:var(--color-theme-toggle-sidebar-selected-background);--color-ai-chat-composer-add-background:var(--color-ai-chat-composer-add-background);--color-ai-chat-composer-add-hover-background:var(--color-ai-chat-composer-add-hover-background);--color-composer-panel-tab-background:var(--color-composer-panel-tab-background);--color-composer-panel-add-background:var(--color-composer-panel-add-background);--color-composer-panel-add-hover-background:var(--color-composer-panel-add-hover-background);--color-composer-panel-tile-border:var(--color-composer-panel-tile-border);--color-composer-panel-rail-background:var(--color-composer-panel-rail-background);--color-questionnaire-key-background:var(--color-questionnaire-key-background);--color-questionnaire-key-hover-background:var(--color-questionnaire-key-hover-background);--color-agent-progress-ring:var(--color-agent-progress-ring);--color-button-ghost-background:var(--color-button-ghost-background);--color-button-ghost-hover:var(--color-button-ghost-hover);--color-button-ghost-active:var(--color-button-ghost-active);--color-button-ghost-disabled:var(--color-button-ghost-disabled);--color-button-ghost-foreground:var(--color-button-ghost-foreground);--color-button-ghost-disabled-foreground:var(--color-button-ghost-disabled-foreground);--color-dropdown-item-hover-background:var(--color-dropdown-item-hover-background);--color-kbd-background:var(--color-kbd-background);--color-kbd-foreground:var(--color-kbd-foreground);--color-docs-file-chip-background:var(--color-docs-file-chip-background);--color-docs-file-chip-border:var(--color-docs-file-chip-border);--color-docs-file-chip-foreground:var(--color-docs-file-chip-foreground);--color-docs-command-accent:var(--color-docs-command-accent);--color-docs-code-background:var(--color-docs-code-background);--color-docs-install-rail:var(--color-docs-install-rail);--color-badge-neutral-background:var(--color-badge-neutral-background);--color-team-menu-count-background:var(--color-team-menu-count-background);--color-team-menu-count-foreground:var(--color-team-menu-count-foreground);--color-badge-new-background:var(--color-badge-new-background);--color-badge-new-text:var(--color-badge-new-text);--color-tab-count-selected-background:var(--color-tab-count-selected-background);--color-pill-tab-blue-selected-background:var(--color-pill-tab-blue-selected-background);--color-pill-tab-blue-hover-background:var(--color-pill-tab-blue-hover-background);--color-notification-information-background:var(--color-notification-information-background);--color-notification-information-foreground:var(--color-notification-information-foreground);--color-notification-success-background:var(--color-notification-success-background);--color-notification-success-foreground:var(--color-notification-success-foreground);--color-notification-error-background:var(--color-notification-error-background);--color-notification-error-foreground:var(--color-notification-error-foreground);--color-notification-center-background:var(--color-notification-center-background);--color-status-lime-background:var(--color-status-lime-background);--color-status-lime-text:var(--color-status-lime-text);--color-status-yellow-background:var(--color-status-yellow-background);--color-status-yellow-text:var(--color-status-yellow-text);--color-status-rose-background:var(--color-status-rose-background);--color-status-rose-text:var(--color-status-rose-text);--color-status-cyan-background:var(--color-status-cyan-background);--color-status-cyan-text:var(--color-status-cyan-text);--color-status-blue-background:var(--color-status-blue-background);--color-status-blue-text:var(--color-status-blue-text);--color-status-purple-background:var(--color-status-purple-background);--color-status-purple-text:var(--color-status-purple-text);--color-status-dot-green-halo:var(--color-status-dot-green-halo);--color-status-dot-yellow-halo:var(--color-status-dot-yellow-halo);--color-status-dot-indigo-halo:var(--color-status-dot-indigo-halo);--color-date-range-background:var(--color-date-range-background);--color-date-range-edge-background:var(--color-date-range-edge-background);--color-calendar-event-blue-background:var(--color-calendar-event-blue-background);--color-calendar-event-blue-title:var(--color-calendar-event-blue-title);--color-calendar-event-blue-time:var(--color-calendar-event-blue-time);--color-calendar-event-pink-background:var(--color-calendar-event-pink-background);--color-calendar-event-pink-title:var(--color-calendar-event-pink-title);--color-calendar-event-pink-time:var(--color-calendar-event-pink-time);--color-calendar-event-purple-background:var(--color-calendar-event-purple-background);--color-calendar-event-purple-title:var(--color-calendar-event-purple-title);--color-calendar-event-purple-time:var(--color-calendar-event-purple-time);--color-calendar-event-lime-background:var(--color-calendar-event-lime-background);--color-calendar-event-lime-title:var(--color-calendar-event-lime-title);--color-calendar-event-lime-time:var(--color-calendar-event-lime-time);--color-calendar-event-emerald-background:var(--color-calendar-event-emerald-background);--color-calendar-event-emerald-title:var(--color-calendar-event-emerald-title);--color-calendar-event-emerald-time:var(--color-calendar-event-emerald-time);--color-text-error-placeholder:var(--color-text-error-placeholder);--color-chart-track:var(--color-chart-track);--color-chart-cursor:var(--color-chart-cursor);--color-chart-neutral:var(--color-chart-neutral);--color-chart-1:var(--color-chart-1);--color-chart-1-active:var(--color-chart-1-active);--color-chart-2:var(--color-chart-2);--color-chart-2-active:var(--color-chart-2-active);--color-chart-3:var(--color-chart-3);--color-chart-3-active:var(--color-chart-3-active);--color-chart-4:var(--color-chart-4);--color-chart-4-active:var(--color-chart-4-active);--color-chart-5:var(--color-chart-5);--color-chart-5-active:var(--color-chart-5-active);--color-chart-6:var(--color-chart-6);--color-chart-6-active:var(--color-chart-6-active);--color-chart-7:var(--color-chart-7);--color-chart-7-active:var(--color-chart-7-active);--color-chart-8:var(--color-chart-8);--color-chart-8-active:var(--color-chart-8-active);--color-chart-9:var(--color-chart-9);--color-chart-9-active:var(--color-chart-9-active);--color-chart-agents-bar:var(--color-chart-agents-bar);--color-chart-agents-bar-active:var(--color-chart-agents-bar-active);--button-transition-ms:.15s;--input-transition-ms:.15s;--text-title-1-medium:1.5rem;--text-title-1-medium--line-height:2.125rem;--text-title-1-medium--letter-spacing:0;--text-title-1-medium--font-weight:500;--text-title-1-semibold:1.5rem;--text-title-1-semibold--line-height:2.125rem;--text-title-1-semibold--letter-spacing:0;--text-title-1-semibold--font-weight:600;--text-title-2-semibold:1.25rem;--text-title-2-semibold--line-height:1.625rem;--text-title-2-semibold--letter-spacing:0;--text-title-2-semibold--font-weight:600;--text-headline-medium:1rem;--text-headline-medium--line-height:1.375rem;--text-headline-medium--letter-spacing:0;--text-headline-medium--font-weight:500;--text-body-regular:.875rem;--text-body-regular--line-height:1.25rem;--text-body-regular--letter-spacing:0;--text-body-regular--font-weight:400;--text-body-medium:.875rem;--text-body-medium--line-height:1.25rem;--text-body-medium--letter-spacing:0;--text-body-medium--font-weight:500;--text-body-2-regular:.8125rem;--text-body-2-regular--line-height:1.125rem;--text-body-2-regular--letter-spacing:0;--text-body-2-regular--font-weight:400;--text-body-2-medium:.8125rem;--text-body-2-medium--line-height:1.125rem;--text-body-2-medium--letter-spacing:0;--text-body-2-medium--font-weight:500;--text-caption-1-regular:.75rem;--text-caption-1-regular--line-height:1rem;--text-caption-1-regular--letter-spacing:.15px;--text-caption-1-regular--font-weight:400;--text-caption-1-medium:.75rem;--text-caption-1-medium--line-height:1rem;--text-caption-1-medium--letter-spacing:.15px;--text-caption-1-medium--font-weight:500;--text-caption-1-semibold:.75rem;--text-caption-1-semibold--line-height:1rem;--text-caption-1-semibold--letter-spacing:.15px;--text-caption-1-semibold--font-weight:600;--container-board:var(--board-content,1120px);--container-card-cover:150px;--aspect-card-cover:16 / 10}}.\@container{container-type:inline-size}.bg-button-danger{isolation:isolate;background-image:var(--gradient-button-danger-default);position:relative}.bg-button-danger:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-danger-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-danger:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-danger-active)}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-danger:disabled,.bg-button-danger[aria-disabled=true]{background-image:var(--gradient-button-danger-disabled)}.bg-button-danger:disabled:before,.bg-button-danger[aria-disabled=true]:before{display:none}.bg-button-primary{isolation:isolate;background-image:var(--gradient-button-primary-default);position:relative}.bg-button-primary:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-primary-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-primary:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-primary-active)}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-primary:disabled,.bg-button-primary[aria-disabled=true]{background-image:var(--gradient-button-primary-disabled)}.bg-button-primary:disabled:before,.bg-button-primary[aria-disabled=true]:before{display:none}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.top-0\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-\[3px\]{top:3px}.left-0\.5{left:calc(var(--spacing) * .5)}.left-1{left:var(--spacing)}.left-\[3px\]{left:3px}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:0}.mx-auto{margin-inline:auto}.mr-auto{margin-right:auto}.card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));display:grid}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-card-cover{aspect-ratio:var(--aspect-card-cover)}.size-1{width:var(--spacing);height:var(--spacing)}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-\[5px\]{width:5px;height:5px}.size-\[7\.5px\]{width:7.5px;height:7.5px}.size-\[10px\]{width:10px;height:10px}.size-\[18px\]{width:18px;height:18px}.size-full{width:100%;height:100%}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-full{height:100%}.h-max{height:max-content}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-\[240px\]{max-height:240px}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-\[52px\]{min-height:52px}.w-7{width:calc(var(--spacing) * 7)}.w-14{width:calc(var(--spacing) * 14)}.w-52{width:calc(var(--spacing) * 52)}.w-72{width:calc(var(--spacing) * 72)}.w-\[42px\]{width:42px}.w-\[202px\]{width:202px}.w-\[266px\]{width:266px}.w-card-cover{width:var(--container-card-cover)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.max-w-board{max-width:var(--container-board)}.max-w-prose{max-width:65ch}.min-w-0{min-width:0}.flex-1{flex:1}.shrink-0{flex-shrink:0}.translate-x-3{--tw-translate-x:calc(var(--spacing) * 3);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-6{--tw-translate-x:calc(var(--spacing) * 6);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[18px\]{--tw-translate-x:18px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-90{rotate:-90deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.button-press-motion{transition:background-color var(--button-transition-ms) ease, border-color var(--button-transition-ms) ease, box-shadow var(--button-transition-ms) ease, color var(--button-transition-ms) ease, transform .42s cubic-bezier(.4, 0, .2, 1)}.button-press-motion:active:not(:disabled):not([aria-disabled=true]){transition-duration:.15s,.15s,.15s,.15s,.22s;transform:scale(.98)}.button-press-motion:disabled,.button-press-motion[aria-disabled=true]{transform:none}@media (prefers-reduced-motion:reduce){.button-press-motion{transition:none;transform:none}}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.dot-wave-0{animation:1.2s ease-in-out infinite peach-dot-wave}.dot-wave-1{animation:1.2s ease-in-out .15s infinite peach-dot-wave}.dot-wave-2{animation:1.2s ease-in-out .3s infinite peach-dot-wave}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-\[5px\]{gap:5px}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2lg{border-radius:var(--radius-2lg)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[0\.5px\]{border-radius:.5px}.rounded-\[0\.75px\]{border-radius:.75px}.rounded-\[1\.5px\]{border-radius:1.5px}.rounded-\[1px\]{border-radius:1px}.rounded-\[3px\]{border-radius:3px}.rounded-\[4\.5px\]{border-radius:4.5px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xs{border-radius:var(--radius-xs)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\[0\.5px\]{border-style:var(--tw-border-style);border-width:.5px}.border-\[0\.25px\]{border-style:var(--tw-border-style);border-width:.25px}.border-\[0\.375px\]{border-style:var(--tw-border-style);border-width:.375px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-solid{--tw-border-style:solid;border-style:solid}.border-accent-600{border-color:var(--color-accent-600)}.border-border-button-default,.border-border-button-default\/50{border-color:var(--color-border-button-default)}@supports (color:color-mix(in lab, red, red)){.border-border-button-default\/50{border-color:color-mix(in oklab, var(--color-border-button-default) 50%, transparent)}}.border-border-checkbox-default{border-color:var(--color-border-checkbox-default)}.border-border-checkbox-hover{border-color:var(--color-border-checkbox-hover)}.border-border-error-default{border-color:var(--color-border-error-default)}.border-separator-border{border-color:var(--color-separator-border)}.bg-background-primary-default{background-color:var(--color-background-primary-default)}.bg-background-secondary-default{background-color:var(--color-background-secondary-default)}.bg-background-tertiary-default{background-color:var(--color-background-tertiary-default)}.bg-background-tertiary-error{background-color:var(--color-background-tertiary-error)}.bg-black{background-color:var(--color-black)}.bg-button-ghost-background{background-color:var(--color-button-ghost-background)}.bg-current{background-color:currentColor}.bg-dropdown-item-hover-background{background-color:var(--color-dropdown-item-hover-background)}.bg-input-disabled-background{background-color:var(--color-input-disabled-background)}.bg-notification-information-background{background-color:var(--color-notification-information-background)}.bg-notification-success-background{background-color:var(--color-notification-success-background)}.bg-status-blue-background{background-color:var(--color-status-blue-background)}.bg-status-cyan-background{background-color:var(--color-status-cyan-background)}.bg-status-lime-background{background-color:var(--color-status-lime-background)}.bg-status-purple-background{background-color:var(--color-status-purple-background)}.bg-status-rose-background{background-color:var(--color-status-rose-background)}.bg-status-yellow-background{background-color:var(--color-status-yellow-background)}.bg-transparent{background-color:#0000}.bg-linear-to-b{--tw-gradient-position:to bottom}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-b{--tw-gradient-position:to bottom in oklab}}.bg-linear-to-b{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-t{--tw-gradient-position:to top}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-t{--tw-gradient-position:to top in oklab}}.bg-linear-to-t{background-image:linear-gradient(var(--tw-gradient-stops))}.from-accent-400{--tw-gradient-from:var(--color-accent-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-accent-500{--tw-gradient-from:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-control-indicator-background{--tw-gradient-from:var(--color-control-indicator-background);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-off-chip-start{--tw-gradient-from:var(--color-switch-off-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-on-chip-start{--tw-gradient-from:var(--color-switch-on-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-\[43\.837\%\]{--tw-gradient-from-position:43.837%}.to-accent-500{--tw-gradient-to:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-accent-600{--tw-gradient-to:var(--color-accent-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-control-indicator-background-subtle{--tw-gradient-to:var(--color-control-indicator-background-subtle);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-off-chip-end{--tw-gradient-to:var(--color-switch-off-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-on-chip-end{--tw-gradient-to:var(--color-switch-on-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.fill-background-secondary-default{fill:var(--color-background-secondary-default)}.fill-background-tertiary-default{fill:var(--color-background-tertiary-default)}.fill-border-focus-ring{fill:var(--color-border-focus-ring)}.stroke-current{stroke:currentColor}.stroke-2{stroke-width:2px}.object-contain{object-fit:contain}.p-0{padding:0}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\[7px\]{padding-inline:7px}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-12{padding-block:calc(var(--spacing) * 12)}.pt-1{padding-top:var(--spacing)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-px{padding-top:1px}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pl-1{padding-left:var(--spacing)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-sans{font-family:var(--font-sans)}.text-body-2-medium{font-size:var(--text-body-2-medium);line-height:var(--tw-leading,var(--text-body-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-medium--font-weight))}.text-body-2-regular{font-size:var(--text-body-2-regular);line-height:var(--tw-leading,var(--text-body-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-regular--font-weight))}.text-body-medium{font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight))}.text-body-regular{font-size:var(--text-body-regular);line-height:var(--tw-leading,var(--text-body-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-regular--font-weight))}.text-caption-1-medium{font-size:var(--text-caption-1-medium);line-height:var(--tw-leading,var(--text-caption-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-medium--font-weight))}.text-caption-1-regular{font-size:var(--text-caption-1-regular);line-height:var(--tw-leading,var(--text-caption-1-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-regular--font-weight))}.text-caption-1-semibold{font-size:var(--text-caption-1-semibold);line-height:var(--tw-leading,var(--text-caption-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-semibold--font-weight))}.text-headline-medium{font-size:var(--text-headline-medium);line-height:var(--tw-leading,var(--text-headline-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-headline-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-headline-medium--font-weight))}.text-title-1-medium{font-size:var(--text-title-1-medium);line-height:var(--tw-leading,var(--text-title-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-medium--font-weight))}.text-title-1-semibold{font-size:var(--text-title-1-semibold);line-height:var(--tw-leading,var(--text-title-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-semibold--font-weight))}.text-title-2-semibold{font-size:var(--text-title-2-semibold);line-height:var(--tw-leading,var(--text-title-2-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-semibold--font-weight))}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.text-accent-600{color:var(--color-accent-600)}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.text-foreground-full{color:var(--color-foreground-full)}.text-foreground-icon-error{color:var(--color-foreground-icon-error)}.text-foreground-icon-primary{color:var(--color-foreground-icon-primary)}.text-foreground-icon-quaternary{color:var(--color-foreground-icon-quaternary)}.text-foreground-icon-secondary{color:var(--color-foreground-icon-secondary)}.text-foreground-icon-tertiary{color:var(--color-foreground-icon-tertiary)}.text-input-disabled-foreground{color:var(--color-input-disabled-foreground)}.text-notification-information-foreground{color:var(--color-notification-information-foreground)}.text-notification-success-foreground{color:var(--color-notification-success-foreground)}.text-status-blue-text{color:var(--color-status-blue-text)}.text-status-cyan-text{color:var(--color-status-cyan-text)}.text-status-lime-text{color:var(--color-status-lime-text)}.text-status-purple-text{color:var(--color-status-purple-text)}.text-status-rose-text{color:var(--color-status-rose-text)}.text-status-yellow-text{color:var(--color-status-yellow-text)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-error-primary{color:var(--color-text-error-primary)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.text-text-tertiary{color:var(--color-text-tertiary)}.text-text-white{color:var(--color-text-white)}.underline{text-decoration-line:underline}.underline-offset-3{text-underline-offset:3px}.underline-offset-4{text-underline-offset:4px}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_2px_2px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 2px 2px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\,0_0\.75px_0_0_rgb\(0_0_0\/0\.05\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008), 0 .75px 0 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_4px_4px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 4px 4px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1\.5px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.75px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1.5px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .75px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.5px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .5px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-checkbox-selected{--tw-shadow:inset 0 2px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 1px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-dropdown{--tw-shadow:0 1px 1px 0 var(--tw-shadow-color,#0000000a), 0 4px 4px 0 var(--tw-shadow-color,#00000005);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow\/xs{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-border-button-active{--tw-ring-color:var(--color-border-button-active)}.ring-border-button-hover{--tw-ring-color:var(--color-border-button-hover)}.ring-border-focus-ring{--tw-ring-color:var(--color-border-focus-ring)}.ring-transparent{--tw-ring-color:transparent}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,color\]{transition-property:background-color,border-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,padding\,font-size\]{transition-property:background-color,border-color,box-shadow,padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\]{transition-property:background-color,border-color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,box-shadow\,color\]{transition-property:background-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[padding\,font-size\]{transition-property:padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-\[var\(--input-transition-ms\)\]{--tw-duration:var(--input-transition-ms);transition-duration:var(--input-transition-ms)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.ring-inset{--tw-ring-inset:inset}.placeholder\:text-text-tertiary::placeholder{color:var(--color-text-tertiary)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.empty\:hidden:empty{display:none}@media (hover:hover){.hover\:border-border-button-hover:hover{border-color:var(--color-border-button-hover)}.hover\:bg-background-primary-hover:hover{background-color:var(--color-background-primary-hover)}.hover\:bg-button-ghost-hover:hover{background-color:var(--color-button-ghost-hover)}.hover\:bg-dropdown-item-hover-background:hover{background-color:var(--color-dropdown-item-hover-background)}.hover\:text-text-primary:hover{color:var(--color-text-primary)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:placeholder\:text-text-primary:focus::placeholder{color:var(--color-text-primary)}.focus-visible\:bg-dropdown-item-hover-background:focus-visible{background-color:var(--color-dropdown-item-hover-background)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-border-focus-ring:focus-visible{--tw-ring-color:var(--color-border-focus-ring)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.active\:border-border-button-active:active{border-color:var(--color-border-button-active)}.active\:bg-background-primary-active:active{background-color:var(--color-background-primary-active)}.active\:bg-button-ghost-active:active{background-color:var(--color-button-ghost-active)}.active\:text-accent-800:active{color:var(--color-accent-800)}.active\:text-text-primary:active{color:var(--color-text-primary)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:border-border-button-default:disabled{border-color:var(--color-border-button-default)}.disabled\:bg-background-primary-disabled:disabled{background-color:var(--color-background-primary-disabled)}.disabled\:bg-button-ghost-disabled:disabled{background-color:var(--color-button-ghost-disabled)}.disabled\:text-button-ghost-disabled-foreground:disabled{color:var(--color-button-ghost-disabled-foreground)}.disabled\:text-button-primary-disabled-foreground:disabled{color:var(--color-button-primary-disabled-foreground)}.disabled\:text-foreground-disabled-danger:disabled{color:var(--color-foreground-disabled-danger)}.disabled\:text-icon-button-disabled-foreground:disabled{color:var(--color-icon-button-disabled-foreground)}.disabled\:text-input-disabled-text:disabled{color:var(--color-input-disabled-text)}.disabled\:text-text-tertiary:disabled{color:var(--color-text-tertiary)}.disabled\:no-underline:disabled{text-decoration-line:none}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:shadow-none:disabled{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.disabled\:placeholder\:text-input-disabled-text:disabled::placeholder{color:var(--color-input-disabled-text)}.aria-disabled\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}.aria-disabled\:border-border-button-default[aria-disabled=true]{border-color:var(--color-border-button-default)}.aria-disabled\:bg-background-primary-disabled[aria-disabled=true]{background-color:var(--color-background-primary-disabled)}.aria-disabled\:bg-button-ghost-disabled[aria-disabled=true]{background-color:var(--color-button-ghost-disabled)}.aria-disabled\:text-button-ghost-disabled-foreground[aria-disabled=true]{color:var(--color-button-ghost-disabled-foreground)}.aria-disabled\:text-button-primary-disabled-foreground[aria-disabled=true]{color:var(--color-button-primary-disabled-foreground)}.aria-disabled\:text-foreground-disabled-danger[aria-disabled=true]{color:var(--color-foreground-disabled-danger)}.aria-disabled\:text-text-tertiary[aria-disabled=true]{color:var(--color-text-tertiary)}.aria-disabled\:no-underline[aria-disabled=true]{text-decoration-line:none}.aria-disabled\:shadow-none[aria-disabled=true]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-invalid\:placeholder\:text-text-error-placeholder[aria-invalid=true]::placeholder{color:var(--color-text-error-placeholder)}.data-selected\:bg-background-tertiary-default[data-selected]{background-color:var(--color-background-tertiary-default)}.data-selected\:bg-dropdown-item-hover-background[data-selected]{background-color:var(--color-dropdown-item-hover-background)}.data-selected\:text-text-primary[data-selected]{color:var(--color-text-primary)}.data-\[entering\]\:scale-95[data-entering]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[entering\]\:opacity-0[data-entering]{opacity:0}.data-\[entering\]\:blur-\[2px\][data-entering]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[exiting\]\:scale-95[data-exiting]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[exiting\]\:opacity-0[data-exiting]{opacity:0}.data-\[exiting\]\:blur-\[2px\][data-exiting]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[placement\=bottom\]\:origin-top-left[data-placement=bottom]{transform-origin:0 0}.data-\[placement\=left\]\:origin-right[data-placement=left]{transform-origin:100%}.data-\[placement\=right\]\:origin-left[data-placement=right]{transform-origin:0}.data-\[placement\=top\]\:origin-bottom-left[data-placement=top]{transform-origin:0 100%}@container (width>=28rem){.\@md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width>=32rem){.\@lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@scope(.peach-react){*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}:root{--color-foreground-full:var(--color-white);--color-foreground-icon-primary:var(--color-neutral-950);--color-foreground-icon-hover:var(--color-black);--color-foreground-icon-secondary:var(--color-neutral-500);--color-foreground-icon-tertiary:var(--color-neutral-400);--color-foreground-icon-quaternary:var(--color-neutral-300);--color-foreground-icon-error:var(--color-red-600);--color-foreground-icon-disabled:var(--color-neutral-300);--color-foreground-disabled:var(--color-neutral-400);--color-foreground-disabled-danger:var(--color-red-300);--color-input-disabled-foreground:var(--color-neutral-300);--color-icon-button-disabled-foreground:var(--color-neutral-300);--color-button-primary-disabled-foreground:var(--color-neutral-400);--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-disabled-danger:var(--color-red-300);--color-text-placeholder:var(--color-neutral-400);--color-text-error-primary:var(--color-red-500);--color-input-disabled-text:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-inner-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-primary-active:var(--color-neutral-200);--color-background-primary-disabled:var(--color-neutral-100);--color-input-disabled-background:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-secondary-hover:var(--color-neutral-200);--color-background-tertiary-default:var(--color-neutral-200);--color-background-tertiary-hover:var(--color-neutral-300);--color-background-tertiary-error:var(--color-red-100);--color-background-recent-hire-role:var(--color-neutral-100);--color-avatar-neutral-background:var(--color-neutral-300);--color-background-quaternary-default:var(--color-neutral-300);--color-background-quaternary-hover:var(--color-neutral-400);--color-background-quaternary-error:var(--color-red-200);--color-file-upload-icon-background:var(--color-neutral-300);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-500);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-button-white:var(--color-white);--color-border-error-default:var(--color-red-500);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-checkbox-active:var(--color-neutral-400);--color-border-checkbox-white:var(--color-white);--color-border-component-detail-container:var(--color-neutral-200);--color-border-ai-profile-card:var(--color-neutral-200);--color-border-table:var(--color-neutral-200);--color-border-button-group:var(--color-neutral-200);--color-border-sidebar-profile-hover:var(--color-neutral-300);--color-separator-border:var(--color-neutral-200);--color-separator-border-strong:var(--color-neutral-200);--color-border-focus-ring:var(--color-accent-500);--color-state-success-text:var(--color-lime-800);--color-state-success-base:var(--color-lime-200);--color-control-indicator-background:var(--color-white);--color-control-indicator-background-subtle:var(--color-neutral-100);--color-switch-off-chip-start:var(--color-white);--color-switch-off-chip-end:var(--color-neutral-100);--color-switch-on-chip-start:#2673fe}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-start:color-mix(in oklab, var(--color-accent-500) 63%, var(--color-accent-600))}}:root{--color-switch-on-chip-end:#144be9}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-end:color-mix(in oklab, var(--color-accent-600) 16%, var(--color-accent-700))}}:root{--color-stat-card-icon-background:var(--color-white);--color-segmented-control-background:var(--color-neutral-100);--color-segmented-control-selected-background:var(--color-white);--color-theme-toggle-sidebar-background:var(--color-neutral-200);--color-theme-toggle-sidebar-selected-background:var(--color-white);--color-ai-chat-composer-add-background:var(--color-neutral-100);--color-ai-chat-composer-add-hover-background:var(--color-neutral-200);--color-composer-panel-tab-background:var(--color-neutral-200);--color-composer-panel-add-background:var(--color-neutral-200);--color-composer-panel-add-hover-background:var(--color-neutral-300);--color-composer-panel-tile-border:var(--color-neutral-200);--color-composer-panel-rail-background:var(--color-neutral-100);--color-questionnaire-key-background:var(--color-neutral-100);--color-questionnaire-key-hover-background:var(--color-neutral-200);--color-agent-progress-ring:var(--color-neutral-700);--color-button-ghost-background:var(--color-accent-100);--color-button-ghost-hover:var(--color-accent-200);--color-button-ghost-active:var(--color-accent-300);--color-button-ghost-disabled:var(--color-accent-50);--color-button-ghost-foreground:var(--color-accent-700);--color-button-ghost-disabled-foreground:var(--color-accent-300);--color-dropdown-item-hover-background:var(--color-neutral-100);--color-kbd-background:var(--color-neutral-300);--color-kbd-foreground:var(--color-neutral-500);--color-docs-file-chip-background:var(--color-purple-50);--color-docs-file-chip-border:var(--color-purple-100);--color-docs-file-chip-foreground:var(--color-purple-500);--color-docs-command-accent:var(--color-purple-400);--color-docs-code-background:var(--color-background-primary-default);--color-docs-install-rail:var(--color-border-button-default);--color-badge-neutral-background:var(--color-neutral-200);--color-team-menu-count-background:var(--color-neutral-200);--color-team-menu-count-foreground:var(--color-neutral-500);--color-badge-new-background:var(--color-accent-100);--color-badge-new-text:var(--color-accent-600);--color-tab-count-selected-background:var(--color-accent-100);--color-pill-tab-blue-selected-background:var(--color-accent-50);--color-pill-tab-blue-hover-background:var(--color-neutral-100);--color-notification-information-background:var(--color-blue-100);--color-notification-information-foreground:var(--color-blue-600);--color-notification-success-background:var(--color-lime-100);--color-notification-success-foreground:var(--color-lime-600);--color-notification-error-background:var(--color-rose-100);--color-notification-error-foreground:var(--color-rose-600);--color-notification-center-background:var(--color-white);--color-status-lime-background:var(--color-lime-200);--color-status-lime-text:var(--color-lime-800);--color-status-yellow-background:var(--color-yellow-200);--color-status-yellow-text:var(--color-yellow-800);--color-status-rose-background:var(--color-rose-200);--color-status-rose-text:var(--color-rose-800);--color-status-cyan-background:var(--color-cyan-200);--color-status-cyan-text:var(--color-cyan-800);--color-status-blue-background:var(--color-blue-200);--color-status-blue-text:var(--color-blue-800);--color-status-purple-background:var(--color-purple-100);--color-status-purple-text:var(--color-purple-600);--color-status-dot-green-halo:var(--color-green-100);--color-status-dot-yellow-halo:var(--color-yellow-200);--color-status-dot-indigo-halo:var(--color-indigo-100);--color-date-range-background:var(--color-accent-100);--color-date-range-edge-background:var(--color-accent-300);--color-calendar-event-blue-background:var(--color-blue-100);--color-calendar-event-blue-title:var(--color-blue-700);--color-calendar-event-blue-time:var(--color-blue-700);--color-calendar-event-pink-background:var(--color-pink-100);--color-calendar-event-pink-title:var(--color-pink-700);--color-calendar-event-pink-time:var(--color-pink-700);--color-calendar-event-purple-background:var(--color-purple-100);--color-calendar-event-purple-title:var(--color-purple-700);--color-calendar-event-purple-time:var(--color-purple-700);--color-calendar-event-lime-background:var(--color-lime-100);--color-calendar-event-lime-title:var(--color-lime-800);--color-calendar-event-lime-time:var(--color-lime-700);--color-calendar-event-emerald-background:var(--color-emerald-100);--color-calendar-event-emerald-title:var(--color-emerald-800);--color-calendar-event-emerald-time:var(--color-emerald-700);--color-text-error-placeholder:var(--color-red-400);--color-chart-track:var(--color-neutral-200);--color-chart-cursor:var(--color-neutral-300);--color-chart-neutral:var(--color-neutral-300);--color-chart-1:var(--color-teal-400);--color-chart-1-active:var(--color-teal-500);--color-chart-2:var(--color-lime-400);--color-chart-2-active:var(--color-lime-500);--color-chart-3:var(--color-pink-400);--color-chart-3-active:var(--color-pink-500);--color-chart-4:var(--color-sky-400);--color-chart-4-active:var(--color-sky-500);--color-chart-5:var(--color-purple-400);--color-chart-5-active:var(--color-purple-500);--color-chart-6:var(--color-blue-400);--color-chart-6-active:var(--color-blue-500);--color-chart-7:var(--color-emerald-400);--color-chart-7-active:var(--color-emerald-500);--color-chart-8:var(--color-yellow-400);--color-chart-8-active:var(--color-yellow-500);--color-chart-9:var(--color-indigo-400);--color-chart-9-active:var(--color-indigo-500);--color-chart-agents-bar:var(--color-purple-300);--color-chart-agents-bar-active:var(--color-purple-400);--gradient-button-primary-default:linear-gradient(180deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%);--gradient-button-primary-hover:linear-gradient(180deg, var(--color-accent-400) 0%, var(--color-accent-500) 100%);--gradient-button-primary-active:linear-gradient(180deg, var(--color-accent-600) 0%, var(--color-accent-700) 100%);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-200) 0%, var(--color-neutral-300) 100%);--gradient-button-danger-default:linear-gradient(180deg, var(--color-red-500) 0%, var(--color-red-600) 100%);--gradient-button-danger-hover:linear-gradient(180deg, var(--color-red-400) 0%, var(--color-red-500) 100%);--gradient-button-danger-active:linear-gradient(180deg, var(--color-red-600) 0%, var(--color-red-700) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-100) 0%, var(--color-red-200) 100%)}.dark{--color-foreground-full:var(--color-neutral-700);--color-foreground-icon-primary:var(--color-neutral-50);--color-foreground-icon-hover:var(--color-white);--color-foreground-icon-error:var(--color-red-400);--color-foreground-icon-tertiary:var(--color-neutral-600);--color-foreground-icon-quaternary:var(--color-neutral-700);--color-foreground-icon-disabled:var(--color-neutral-800);--color-foreground-disabled:var(--color-neutral-700);--color-foreground-disabled-danger:var(--color-red-400);--color-input-disabled-foreground:var(--color-neutral-600);--color-icon-button-disabled-foreground:var(--color-neutral-500);--color-button-primary-disabled-foreground:var(--color-neutral-500);--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-text-error-primary:var(--color-red-400);--color-input-disabled-text:#73737366}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-text:color-mix(in srgb, var(--color-neutral-500) 40%, transparent)}}.dark{--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-inner-default:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-inner-default:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-background-primary-active:var(--color-neutral-800);--color-background-primary-disabled:var(--color-neutral-800);--color-input-disabled-background:#2626264d}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-background:color-mix(in srgb, var(--color-neutral-800) 30%, transparent)}}.dark{--color-switch-off-chip-start:var(--color-background-tertiary-default);--color-switch-off-chip-end:var(--color-background-tertiary-default);--color-background-secondary-default:var(--color-neutral-900);--color-background-secondary-hover:var(--color-neutral-800);--color-background-tertiary-default:var(--color-neutral-800);--color-background-tertiary-hover:var(--color-neutral-700);--color-background-tertiary-error:#46080999}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-tertiary-error:color-mix(in srgb, var(--color-red-950) 60%, transparent)}}.dark{--color-background-quaternary-default:var(--color-neutral-700);--color-background-quaternary-hover:var(--color-neutral-600);--color-background-recent-hire-role:#17171799}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-recent-hire-role:color-mix(in srgb, var(--color-neutral-900) 60%, transparent)}}.dark{--color-avatar-neutral-background:var(--color-background-primary-default);--color-file-upload-icon-background:var(--color-neutral-600);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-300);--color-stat-card-icon-background:var(--color-neutral-800);--color-segmented-control-background:var(--color-neutral-925);--color-segmented-control-selected-background:var(--color-neutral-800);--color-theme-toggle-sidebar-background:var(--color-neutral-800);--color-theme-toggle-sidebar-selected-background:var(--color-neutral-700);--color-ai-chat-composer-add-background:var(--color-neutral-700);--color-ai-chat-composer-add-hover-background:var(--color-neutral-600);--color-composer-panel-tab-background:#40404080}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tab-background:color-mix(in srgb, var(--color-neutral-700) 50%, transparent)}}.dark{--color-composer-panel-add-background:var(--color-neutral-700);--color-composer-panel-add-hover-background:var(--color-neutral-600);--color-composer-panel-tile-border:#ffffff24}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tile-border:color-mix(in srgb, var(--color-white) 14%, transparent)}}.dark{--color-composer-panel-rail-background:#17171780}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-rail-background:color-mix(in srgb, var(--color-neutral-900) 50%, transparent)}}.dark{--color-questionnaire-key-background:var(--color-neutral-700);--color-questionnaire-key-hover-background:var(--color-neutral-600);--color-agent-progress-ring:#ffffff80}@supports (color:color-mix(in lab, red, red)){.dark{--color-agent-progress-ring:color-mix(in srgb, var(--color-white) 50%, transparent)}}.dark{--color-button-ghost-background:var(--color-accent-900);--color-button-ghost-hover:var(--color-accent-800);--color-button-ghost-active:var(--color-accent-700);--color-button-ghost-disabled:var(--color-neutral-800);--color-button-ghost-foreground:var(--color-accent-300);--color-button-ghost-disabled-foreground:var(--color-neutral-600);--color-dropdown-item-hover-background:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-dropdown-item-hover-background:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-kbd-background:var(--color-neutral-700);--color-kbd-foreground:var(--color-neutral-400);--color-docs-file-chip-background:#3c036680}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-file-chip-background:color-mix(in srgb, var(--color-purple-950) 50%, transparent)}}.dark{--color-docs-file-chip-border:var(--color-purple-800);--color-docs-file-chip-foreground:var(--color-purple-400);--color-docs-code-background:var(--color-background-full);--color-docs-install-rail:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-install-rail:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--shadow-2xs:0 1px #00000029;--shadow-xs:0 1px 2px 0 #0000002e;--shadow-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--shadow-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--shadow-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--shadow-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--shadow-card:0 1px 1px 0 #00000024;--shadow-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--shadow-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--shadow-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014;--color-badge-neutral-background:var(--color-neutral-800);--color-team-menu-count-background:var(--color-neutral-700);--color-team-menu-count-foreground:var(--color-neutral-400);--color-badge-new-background:var(--color-accent-950);--color-badge-new-text:var(--color-accent-400);--color-tab-count-selected-background:#193cb899}@supports (color:color-mix(in lab, red, red)){.dark{--color-tab-count-selected-background:color-mix(in srgb, var(--color-accent-800) 60%, transparent)}}.dark{--color-notification-information-background:#193cb880}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-information-background:color-mix(in srgb, var(--color-blue-800) 50%, transparent)}}.dark{--color-notification-information-foreground:var(--color-blue-300);--color-notification-success-background:#3d630080}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-success-background:color-mix(in srgb, var(--color-lime-800) 50%, transparent)}}.dark{--color-notification-success-foreground:var(--color-lime-300);--color-notification-error-background:#a3003780}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-error-background:color-mix(in srgb, var(--color-rose-800) 50%, transparent)}}.dark{--color-notification-error-foreground:var(--color-rose-300);--color-notification-center-background:var(--color-neutral-900);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-button-white:var(--color-zinc-800);--color-border-error-default:var(--color-red-400);--color-border-checkbox-default:var(--color-neutral-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-border-checkbox-active:var(--color-neutral-500);--color-border-component-detail-container:var(--color-neutral-800);--color-border-ai-profile-card:var(--color-neutral-800);--color-border-table:var(--color-neutral-800);--color-border-button-group:#52525299}@supports (color:color-mix(in lab, red, red)){.dark{--color-border-button-group:color-mix(in srgb, var(--color-neutral-600) 60%, transparent)}}.dark{--color-border-sidebar-profile-hover:var(--color-neutral-600);--color-separator-border:var(--color-neutral-800);--color-separator-border-strong:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-separator-border-strong:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-status-lime-background:#192e0399}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-lime-background:color-mix(in srgb, var(--color-lime-950) 60%, transparent)}}.dark{--color-status-lime-text:var(--color-lime-500);--color-status-yellow-background:#43200499}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-yellow-background:color-mix(in srgb, var(--color-yellow-950) 60%, transparent)}}.dark{--color-status-yellow-text:var(--color-yellow-500);--color-status-rose-background:#4d021899}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-rose-background:color-mix(in srgb, var(--color-rose-950) 60%, transparent)}}.dark{--color-status-rose-text:var(--color-rose-500);--color-status-cyan-background:#05334599}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-cyan-background:color-mix(in srgb, var(--color-cyan-950) 60%, transparent)}}.dark{--color-status-cyan-text:var(--color-cyan-400);--color-status-blue-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-blue-background:color-mix(in srgb, var(--color-blue-950) 60%, transparent)}}.dark{--color-status-blue-text:var(--color-blue-300);--color-status-purple-background:#59168b80}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-purple-background:color-mix(in srgb, var(--color-purple-900) 50%, transparent)}}.dark{--color-status-purple-text:var(--color-purple-300);--color-status-dot-green-halo:#01663066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-green-halo:color-mix(in srgb, var(--color-green-800) 40%, transparent)}}.dark{--color-status-dot-yellow-halo:#874b0066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-yellow-halo:color-mix(in srgb, var(--color-yellow-800) 40%, transparent)}}.dark{--color-status-dot-indigo-halo:#372aac66}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-indigo-halo:color-mix(in srgb, var(--color-indigo-800) 40%, transparent)}}.dark{--color-date-range-background:var(--color-accent-950);--color-date-range-edge-background:var(--color-accent-800);--color-pill-tab-blue-selected-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-pill-tab-blue-selected-background:color-mix(in srgb, var(--color-accent-950) 60%, transparent)}}.dark{--color-pill-tab-blue-hover-background:var(--color-neutral-800);--color-calendar-event-blue-background:var(--color-blue-950);--color-calendar-event-blue-title:var(--color-blue-300);--color-calendar-event-blue-time:var(--color-blue-300);--color-calendar-event-pink-background:var(--color-pink-950);--color-calendar-event-pink-title:var(--color-pink-300);--color-calendar-event-pink-time:var(--color-pink-300);--color-calendar-event-purple-background:var(--color-purple-950);--color-calendar-event-purple-title:var(--color-purple-300);--color-calendar-event-purple-time:var(--color-purple-300);--color-calendar-event-lime-background:var(--color-lime-950);--color-calendar-event-lime-title:var(--color-lime-300);--color-calendar-event-lime-time:var(--color-lime-300);--color-calendar-event-emerald-background:var(--color-emerald-950);--color-calendar-event-emerald-title:var(--color-emerald-300);--color-calendar-event-emerald-time:var(--color-emerald-300);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-700) 0%, var(--color-neutral-800) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-900) 0%, var(--color-red-950) 100%);--color-chart-track:var(--color-neutral-800);--color-chart-cursor:var(--color-neutral-700);--color-chart-neutral:var(--color-neutral-800);--color-chart-agents-bar:var(--color-purple-500);--color-chart-agents-bar-active:var(--color-purple-600)}.dark[data-accent]{--color-badge-new-background:#16245680}@supports (color:color-mix(in lab, red, red)){.dark[data-accent]{--color-badge-new-background:color-mix(in srgb, var(--color-accent-950) 50%, transparent)}}@keyframes peach-dot-wave{0%,80%,to{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}:root{--font-inter:"Inter Variable", "Inter"}.peach-react{font-family:var(--font-sans);color:var(--color-text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-variant-ligatures:contextual;font-kerning:normal;--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-tertiary-default:var(--color-neutral-200);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-focus-ring:var(--color-accent-500);--color-separator-border:var(--color-neutral-200);line-height:1.5}.dark .peach-react{--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark .peach-react{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark .peach-react{--color-background-secondary-default:var(--color-neutral-900);--color-background-tertiary-default:var(--color-neutral-800);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-checkbox-default:var(--color-neutral-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-800)}@keyframes check-draw{0%{stroke-dashoffset:1px}to{stroke-dashoffset:0}}.animate-check-draw{stroke-dasharray:1;stroke-dashoffset:1px;animation:.2s cubic-bezier(.65,0,.35,1) forwards check-draw}@media (prefers-reduced-motion:reduce){.animate-check-draw{stroke-dashoffset:0;animation:none}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}
/*$vite$:1*/
\ No newline at end of file
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index 6f7a26226..15a16811c 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -157,7 +157,7 @@ var c = Object.create, l = Object.defineProperty, u = Object.getOwnPropertyDescr
}
console.error(e);
};
- function P(e) {
+ function ie(e) {
var t = T.T, n = {};
n.types = t === null ? null : t.types, T.T = n;
try {
@@ -169,14 +169,14 @@ var c = Object.create, l = Object.defineProperty, u = Object.getOwnPropertyDescr
t !== null && n.types !== null && (t.types = n.types), T.T = t;
}
}
- function ie(e) {
+ function ae(e) {
var t = T.T;
if (t !== null) {
var n = t.types;
n === null ? t.types = [e] : n.indexOf(e) === -1 && n.push(e);
- } else P(ie.bind(null, e));
+ } else ie(ae.bind(null, e));
}
- var ae = {
+ var oe = {
map: ne,
forEach: function(e, t, n) {
ne(e, function() {
@@ -199,12 +199,12 @@ var c = Object.create, l = Object.defineProperty, u = Object.getOwnPropertyDescr
return e;
}
};
- e.Activity = f, e.Children = ae, e.Component = y, e.Fragment = r, e.Profiler = a, e.PureComponent = x, e.StrictMode = i, e.Suspense = l, e.ViewTransition = p, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, e.__COMPILER_RUNTIME = {
+ e.Activity = f, e.Children = oe, e.Component = y, e.Fragment = r, e.Profiler = a, e.PureComponent = x, e.StrictMode = i, e.Suspense = l, e.ViewTransition = p, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, e.__COMPILER_RUNTIME = {
__proto__: null,
c: function(e) {
return T.H.useMemoCache(e);
}
- }, e.addTransitionType = ie, e.cache = function(e) {
+ }, e.addTransitionType = ae, e.cache = function(e) {
return function() {
return e.apply(null, arguments);
};
@@ -266,7 +266,7 @@ var c = Object.create, l = Object.defineProperty, u = Object.getOwnPropertyDescr
type: e,
compare: t === void 0 ? null : t
};
- }, e.startTransition = P, e.unstable_useCacheRefresh = function() {
+ }, e.startTransition = ie, e.unstable_useCacheRefresh = function() {
return T.H.useCacheRefresh();
}, e.use = function(e) {
return T.H.use(e);
@@ -381,7 +381,7 @@ function ne(e, t) {
if (o) {
if (r) {
if (t.queryHash !== re(o, t.options)) return !1;
- } else if (!ie(t.queryKey, o)) return !1;
+ } else if (!ae(t.queryKey, o)) return !1;
}
if (n !== "all") {
let e = t.isActive();
@@ -394,95 +394,95 @@ function N(e, t) {
if (a) {
if (!t.options.mutationKey) return !1;
if (n) {
- if (P(t.options.mutationKey) !== P(a)) return !1;
- } else if (!ie(t.options.mutationKey, a)) return !1;
+ if (ie(t.options.mutationKey) !== ie(a)) return !1;
+ } else if (!ae(t.options.mutationKey, a)) return !1;
}
return !(r && t.state.status !== r || i && !i(t));
}
function re(e, t) {
- return (t?.queryKeyHashFn || P)(e);
+ return (t?.queryKeyHashFn || ie)(e);
}
-function P(e) {
- return JSON.stringify(e, (e, t) => le(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
+function ie(e) {
+ return JSON.stringify(e, (e, t) => ue(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
}
-function ie(e, t) {
+function ae(e, t) {
if (e === t) return !0;
if (typeof e != typeof t) return !1;
if (e && t && typeof e == "object" && typeof t == "object") {
if (Array.isArray(e) && Array.isArray(t)) {
- for (let n = 0; n < t.length; n++) if (!ie(e[n], t[n])) return !1;
+ for (let n = 0; n < t.length; n++) if (!ae(e[n], t[n])) return !1;
return !0;
}
let n = Object.keys(t);
- for (let r of n) if (!ie(e[r], t[r])) return !1;
+ for (let r of n) if (!ae(e[r], t[r])) return !1;
return !0;
}
return !1;
}
-var ae = Object.prototype.hasOwnProperty;
-function oe(e, t, n = 0) {
+var oe = Object.prototype.hasOwnProperty;
+function se(e, t, n = 0) {
if (e === t) return e;
if (n > 500) return t;
- let r = ce(e) && ce(t);
- if (!r && !(le(e) && le(t))) return t;
+ let r = le(e) && le(t);
+ if (!r && !(ue(e) && ue(t))) return t;
let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
for (let l = 0; l < o; l++) {
let o = r ? l : a[l], u = e[o], d = t[o];
if (u === d) {
- s[o] = u, (r ? l < i : ae.call(e, o)) && c++;
+ s[o] = u, (r ? l < i : oe.call(e, o)) && c++;
continue;
}
if (u === null || d === null || typeof u != "object" || typeof d != "object") {
s[o] = d;
continue;
}
- let f = oe(u, d, n + 1);
+ let f = se(u, d, n + 1);
s[o] = f, f === u && c++;
}
return i === o && c === i ? e : s;
}
-function se(e, t) {
+function ce(e, t) {
if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;
for (let n in e) if (e[n] !== t[n]) return !1;
return !0;
}
-function ce(e) {
+function le(e) {
return Array.isArray(e) && e.length === Object.keys(e).length;
}
-function le(e) {
- if (!ue(e)) return !1;
+function ue(e) {
+ if (!de(e)) return !1;
let t = e.constructor;
if (t === void 0) return !0;
let n = t.prototype;
- return !(!ue(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
+ return !(!de(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
}
-function ue(e) {
+function de(e) {
return Object.prototype.toString.call(e) === "[object Object]";
}
-function de(e) {
+function fe(e) {
return new Promise((t) => {
D.setTimeout(t, e);
});
}
-function fe(e, t, n) {
- return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : oe(e, t);
+function pe(e, t, n) {
+ return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : se(e, t);
}
-function pe(e, t, n = 0) {
+function me(e, t, n = 0) {
let r = [...e, t];
return n && r.length > n ? r.slice(1) : r;
}
-function F(e, t, n = 0) {
+function P(e, t, n = 0) {
let r = [t, ...e];
return n && r.length > n ? r.slice(0, -1) : r;
}
-var I = Symbol();
-function me(e, t) {
- return !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === I ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
-}
+var F = Symbol();
function he(e, t) {
+ return !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === F ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
+}
+function ge(e, t) {
return typeof e == "function" ? e(...t) : !!e;
}
-function ge(e, t, n) {
+function _e(e, t, n) {
let r = !1, i;
return Object.defineProperty(e, "signal", {
enumerable: !0,
@@ -491,7 +491,7 @@ function ge(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
-var _e = () => k, ve = () => _e(), ye = class {
+var ve = () => k, ye = () => ve(), be = class {
constructor() {
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
}
@@ -505,7 +505,7 @@ var _e = () => k, ve = () => _e(), ye = class {
}
onSubscribe() {}
onUnsubscribe() {}
-}, be = new class extends ye {
+}, xe = new class extends be {
#e;
#t;
#n;
@@ -542,13 +542,13 @@ var _e = () => k, ve = () => _e(), ye = class {
isFocused() {
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
}
-}(), xe = O;
-function Se() {
+}(), Se = O;
+function Ce() {
let e = [], t = 0, n = (e) => {
e();
}, r = (e) => {
e();
- }, i = xe, a = (r) => {
+ }, i = Se, a = (r) => {
t ? e.push(r) : i(() => {
n(r);
});
@@ -590,7 +590,7 @@ function Se() {
}
};
}
-var Ce = Se(), we = new class extends ye {
+var we = Ce(), Te = new class extends be {
#e = !0;
#t;
#n;
@@ -624,32 +624,32 @@ var Ce = Se(), we = new class extends ye {
}();
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
-function Te(e) {
+function Ee(e) {
return Math.min(1e3 * 2 ** e, 3e4);
}
-function Ee(e) {
- return (e ?? "online") !== "online" || we.isOnline();
+function De(e) {
+ return (e ?? "online") !== "online" || Te.isOnline();
}
-var De = class extends Error {
+var Oe = class extends Error {
constructor(e) {
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
}
};
-function Oe(e) {
+function ke(e) {
let t = !1, n = 0, r, i = "pending", a, o, s = new Promise((e, t) => {
a = e, o = t;
});
s.catch(A);
let c = () => i !== "pending", l = (t) => {
if (!c()) {
- let n = new De(t);
+ let n = new Oe(t);
h(n), e.onCancel?.(n);
}
}, u = () => {
t = !0;
}, d = () => {
t = !1;
- }, f = () => be.isFocused() && (e.networkMode === "always" || we.isOnline()) && e.canRun(), p = () => Ee(e.networkMode) && e.canRun(), m = (e) => {
+ }, f = () => xe.isFocused() && (e.networkMode === "always" || Te.isOnline()) && e.canRun(), p = () => De(e.networkMode) && e.canRun(), m = (e) => {
c() || (r?.(), i = "resolved", a(e));
}, h = (e) => {
c() || (r?.(), i = "rejected", o(e));
@@ -669,12 +669,12 @@ function Oe(e) {
}
Promise.resolve(r).then(m).catch((r) => {
if (c()) return;
- let i = e.retry ?? (ve() ? 0 : 3), a = e.retryDelay ?? Te, o = typeof a == "function" ? a(n, r) : a, s = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
+ let i = e.retry ?? (ye() ? 0 : 3), a = e.retryDelay ?? Ee, o = typeof a == "function" ? a(n, r) : a, s = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
if (t || !s) {
h(r);
return;
}
- n++, e.onFail?.(n, r), de(o).then(() => f() ? void 0 : g()).then(() => {
+ n++, e.onFail?.(n, r), fe(o).then(() => f() ? void 0 : g()).then(() => {
t ? h(r) : _();
});
});
@@ -692,7 +692,7 @@ function Oe(e) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/removable.js
-var ke = class {
+var Ae = class {
#e;
destroy() {
this.clearGcTimeout();
@@ -703,7 +703,7 @@ var ke = class {
}, this.gcTime));
}
updateGcTime(e) {
- this.gcTime = Math.max(this.gcTime || 0, e ?? (ve() ? Infinity : 3e5));
+ this.gcTime = Math.max(this.gcTime || 0, e ?? (ye() ? Infinity : 3e5));
}
clearGcTimeout() {
this.#e !== void 0 && (D.clearTimeout(this.#e), this.#e = void 0);
@@ -711,15 +711,15 @@ var ke = class {
};
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
-function Ae(e) {
+function je(e) {
return { onFetch: (t, n) => {
let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
pages: [],
pageParams: []
}, c = 0, l = async () => {
let n = !1, l = (e) => {
- ge(e, () => t.signal, () => n = !0);
- }, u = me(t.options, t.fetchOptions), d = async (e, r, i) => {
+ _e(e, () => t.signal, () => n = !0);
+ }, u = he(t.options, t.fetchOptions), d = async (e, r, i) => {
if (n) return Promise.reject(t.signal.reason);
if (r == null && e.pages.length) return Promise.resolve(e);
let a = (() => {
@@ -731,14 +731,14 @@ function Ae(e) {
meta: t.options.meta
};
return l(e), e;
- })(), o = await u(a), { maxPages: s } = t.options, c = i ? F : pe;
+ })(), o = await u(a), { maxPages: s } = t.options, c = i ? P : me;
return {
pages: c(e.pages, o, s),
pageParams: c(e.pageParams, r, s)
};
};
if (i && a.length) {
- let e = i === "backward", t = e ? Me : je, n = {
+ let e = i === "backward", t = e ? Ne : Me, n = {
pages: a,
pageParams: o
};
@@ -746,7 +746,7 @@ function Ae(e) {
} else {
let t = e ?? a.length;
do {
- let e = c === 0 ? o[0] ?? r.initialPageParam : je(r, s);
+ let e = c === 0 ? o[0] ?? r.initialPageParam : Me(r, s);
if (c > 0 && e == null) break;
s = await d(s, e), c++;
} while (c < t);
@@ -761,16 +761,16 @@ function Ae(e) {
}, n) : l;
} };
}
-function je(e, { pages: t, pageParams: n }) {
+function Me(e, { pages: t, pageParams: n }) {
let r = t.length - 1;
return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
}
-function Me(e, { pages: t, pageParams: n }) {
+function Ne(e, { pages: t, pageParams: n }) {
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/query.js
-var Ne = class extends ke {
+var Pe = class extends Ae {
#e;
#t;
#n;
@@ -780,7 +780,7 @@ var Ne = class extends ke {
#o;
#s;
constructor(e) {
- super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = Ie(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
+ super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = Le(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
}
get meta() {
return this.options.meta;
@@ -796,15 +796,15 @@ var Ne = class extends ke {
...this.#o,
...e
}, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
- let e = Ie(this.options);
- e.data !== void 0 && (this.setState(Fe(e.data, e.dataUpdatedAt)), this.#t = e);
+ let e = Le(this.options);
+ e.data !== void 0 && (this.setState(Ie(e.data, e.dataUpdatedAt)), this.#t = e);
}
}
optionalRemove() {
!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
}
setData(e, t) {
- let n = fe(this.state.data, e, this.options);
+ let n = pe(this.state.data, e, this.options);
return this.#c({
data: n,
type: "success",
@@ -835,7 +835,7 @@ var Ne = class extends ke {
return this.observers.some((e) => M(e.options.enabled, this) !== !1);
}
isDisabled() {
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === I || !this.isFetched();
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === F || !this.isFetched();
}
isFetched() {
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
@@ -891,7 +891,7 @@ var Ne = class extends ke {
get: () => (this.#s = !0, n.signal)
});
}, i = () => {
- let e = me(this.options, t), n = (() => {
+ let e = he(this.options, t), n = (() => {
let e = {
client: this.#i,
queryKey: this.queryKey,
@@ -911,15 +911,15 @@ var Ne = class extends ke {
};
return r(e), e;
})();
- (this.#e === "infinite" ? Ae(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#c({
+ (this.#e === "infinite" ? je(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#c({
type: "fetch",
meta: a.fetchOptions?.meta
});
- let o = this.#a = Oe({
+ let o = this.#a = ke({
initialPromise: t?.initialPromise,
fn: a.fetchFn,
onCancel: (e) => {
- e instanceof De && e.revert && this.setState({
+ e instanceof Oe && e.revert && this.setState({
...this.#n,
fetchStatus: "idle"
}), n.abort();
@@ -947,7 +947,7 @@ var Ne = class extends ke {
if (e === void 0) throw Error(`${this.queryHash} data is undefined`);
return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;
} catch (e) {
- if (e instanceof De) {
+ if (e instanceof Oe) {
if (e.silent) return this.#a.promise;
if (e.revert) {
if (this.state.data === void 0) throw e;
@@ -980,13 +980,13 @@ var Ne = class extends ke {
};
case "fetch": return {
...t,
- ...Pe(t.data, this.options),
+ ...Fe(t.data, this.options),
fetchMeta: e.meta ?? null
};
case "success":
let n = {
...t,
- ...Fe(e.data, e.dataUpdatedAt),
+ ...Ie(e.data, e.dataUpdatedAt),
dataUpdateCount: t.dataUpdateCount + 1,
...!e.manual && {
fetchStatus: "idle",
@@ -1018,7 +1018,7 @@ var Ne = class extends ke {
};
}
};
- this.state = t(this.state), Ce.batch(() => {
+ this.state = t(this.state), we.batch(() => {
this.observers.slice().forEach((e) => {
e.onQueryUpdate();
}), this.#r.notify({
@@ -1029,18 +1029,18 @@ var Ne = class extends ke {
});
}
};
-function Pe(e, t) {
+function Fe(e, t) {
return {
fetchFailureCount: 0,
fetchFailureReason: null,
- fetchStatus: Ee(t.networkMode) ? "fetching" : "paused",
+ fetchStatus: De(t.networkMode) ? "fetching" : "paused",
...e === void 0 && {
error: null,
status: "pending"
}
};
}
-function Fe(e, t) {
+function Ie(e, t) {
return {
data: e,
dataUpdatedAt: t ?? Date.now(),
@@ -1049,7 +1049,7 @@ function Fe(e, t) {
status: "success"
};
}
-function Ie(e) {
+function Le(e) {
let t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
return {
data: t,
@@ -1068,7 +1068,7 @@ function Ie(e) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/queryObserver.js
-var Le = class extends ye {
+var Re = class extends be {
#e;
#t = void 0;
#n = void 0;
@@ -1090,16 +1090,16 @@ var Le = class extends ye {
this.refetch = this.refetch.bind(this);
}
onSubscribe() {
- this.listeners.size === 1 && (this.#t.addObserver(this), ze(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());
+ this.listeners.size === 1 && (this.#t.addObserver(this), Be(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());
}
onUnsubscribe() {
this.hasListeners() || this.destroy();
}
shouldFetchOnReconnect() {
- return Be(this.#t, this.options, this.options.refetchOnReconnect);
+ return Ve(this.#t, this.options, this.options.refetchOnReconnect);
}
shouldFetchOnWindowFocus() {
- return Be(this.#t, this.options, this.options.refetchOnWindowFocus);
+ return Ve(this.#t, this.options, this.options.refetchOnWindowFocus);
}
destroy() {
this.listeners = /* @__PURE__ */ new Set(), this.#b(), this.#x(), this.#t.removeObserver(this);
@@ -1107,19 +1107,19 @@ var Le = class extends ye {
setOptions(e) {
let t = this.options, n = this.#t;
if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof M(this.options.enabled, this.#t) != "boolean") throw Error("Expected enabled to be a boolean or a callback that returns a boolean");
- this.#S(), this.#t.setOptions(this.options), t._defaulted && !se(this.options, t) && this.#e.getQueryCache().notify({
+ this.#S(), this.#t.setOptions(this.options), t._defaulted && !ce(this.options, t) && this.#e.getQueryCache().notify({
type: "observerOptionsUpdated",
query: this.#t,
observer: this
});
let r = this.hasListeners();
- r && Ve(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || M(this.options.enabled, this.#t) !== M(t.enabled, this.#t) || M(this.options.staleTime, this.#t) !== M(t.staleTime, this.#t)) && this.#g();
+ r && He(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || M(this.options.enabled, this.#t) !== M(t.enabled, this.#t) || M(this.options.staleTime, this.#t) !== M(t.staleTime, this.#t)) && this.#g();
let i = this.#_();
r && (this.#t !== n || M(this.options.enabled, this.#t) !== M(t.enabled, this.#t) || i !== this.#f) && this.#v(i);
}
getOptimisticResult(e) {
let t = this.#e.getQueryCache().build(this.#e, e), n = this.createResult(t, e);
- return se(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
+ return ce(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
}
getCurrentResult() {
return this.#r;
@@ -1161,7 +1161,7 @@ var Le = class extends ye {
return e?.throwOnError || (t = t.catch(A)), t;
}
#h(e) {
- return !ve() && M(this.options.enabled, this.#t) !== !1 && j(e);
+ return !ye() && M(this.options.enabled, this.#t) !== !1 && j(e);
}
#g() {
this.#b();
@@ -1177,7 +1177,7 @@ var Le = class extends ye {
}
#v(e) {
this.#x(), this.#f = e, !(this.#f === 0 || !this.#h(this.#f)) && (this.#d = D.setInterval(() => {
- (this.options.refetchIntervalInBackground || be.isFocused()) && this.#m();
+ (this.options.refetchIntervalInBackground || xe.isFocused()) && this.#m();
}, this.#f));
}
#y() {
@@ -1192,10 +1192,10 @@ var Le = class extends ye {
createResult(e, t) {
let n = this.#t, r = this.options, i = this.#r, a = this.#i, o = this.#a, s = e === n ? this.#n : e.state, { state: c } = e, l = { ...c }, u = !1, d;
if (t._optimisticResults) {
- let i = this.hasListeners(), a = !i && ze(e, t), o = i && Ve(e, n, t, r);
+ let i = this.hasListeners(), a = !i && Be(e, t), o = i && He(e, n, t, r);
(a || o) && (l = {
...l,
- ...Pe(c.data, e.options)
+ ...Fe(c.data, e.options)
}), t._optimisticResults === "isRestoring" && (l.fetchStatus = "idle");
}
let { error: f, errorUpdatedAt: p, status: m } = l;
@@ -1203,12 +1203,12 @@ var Le = class extends ye {
let h = !1;
if (t.placeholderData !== void 0 && d === void 0 && m === "pending") {
let e;
- i?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (e = i.data, h = !0) : e = typeof t.placeholderData == "function" ? t.placeholderData(this.#l?.state.data, this.#l) : t.placeholderData, e !== void 0 && (m = "success", d = fe(i?.data, e, t), u = !0);
+ i?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (e = i.data, h = !0) : e = typeof t.placeholderData == "function" ? t.placeholderData(this.#l?.state.data, this.#l) : t.placeholderData, e !== void 0 && (m = "success", d = pe(i?.data, e, t), u = !0);
}
if (t.select && d !== void 0 && !h) {
if (i && d === a?.data && t.select === this.#s) d = this.#c;
else try {
- this.#s = t.select, d = t.select(d), d = fe(i?.data, d, t), this.#c = d, this.#o = null;
+ this.#s = t.select, d = t.select(d), d = pe(i?.data, d, t), this.#c = d, this.#o = null;
} catch (e) {
this.#o = e;
}
@@ -1238,14 +1238,14 @@ var Le = class extends ye {
isPaused: l.fetchStatus === "paused",
isPlaceholderData: u,
isRefetchError: v && b,
- isStale: He(e, t),
+ isStale: Ue(e, t),
refetch: this.refetch,
isEnabled: M(t.enabled, e) !== !1
};
}
updateResult() {
let e = this.#r, t = this.createResult(this.#t, this.options);
- if (this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#l = this.#t), se(t, e)) return;
+ if (this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#l = this.#t), ce(t, e)) return;
this.#r = t;
let n = (() => {
if (!e) return !0;
@@ -1257,7 +1257,7 @@ var Le = class extends ye {
return this.#r[n] !== e[n] && r.has(n);
});
})();
- Ce.batch(() => {
+ we.batch(() => {
n && this.listeners.forEach((e) => {
e(this.#r);
}), this.#e.getQueryCache().notify({
@@ -1276,34 +1276,34 @@ var Le = class extends ye {
this.updateResult(), this.hasListeners() && this.#y();
}
};
-function Re(e, t) {
+function ze(e, t) {
return M(t.enabled, e) !== !1 && e.state.data === void 0 && (e.state.status !== "error" || M(t.retryOnMount, e) !== !1);
}
-function ze(e, t) {
- return Re(e, t) || e.state.data !== void 0 && Be(e, t, t.refetchOnMount);
+function Be(e, t) {
+ return ze(e, t) || e.state.data !== void 0 && Ve(e, t, t.refetchOnMount);
}
-function Be(e, t, n) {
+function Ve(e, t, n) {
if (M(t.enabled, e) !== !1 && M(t.staleTime, e) !== "static") {
let r = typeof n == "function" ? n(e) : n;
- return r === "always" || r !== !1 && He(e, t);
+ return r === "always" || r !== !1 && Ue(e, t);
}
return !1;
}
-function Ve(e, t, n, r) {
- return (e !== t || M(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && He(e, n);
+function He(e, t, n, r) {
+ return (e !== t || M(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && Ue(e, n);
}
-function He(e, t) {
+function Ue(e, t) {
return M(t.enabled, e) !== !1 && e.isStaleByTime(M(t.staleTime, e));
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/mutation.js
-var Ue = class extends ke {
+var We = class extends Ae {
#e;
#t;
#n;
#r;
constructor(e) {
- super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || We(), this.setOptions(e.options), this.scheduleGc();
+ super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || Ge(), this.setOptions(e.options), this.scheduleGc();
}
setOptions(e) {
this.options = e, this.updateGcTime(this.options.gcTime);
@@ -1338,7 +1338,7 @@ var Ue = class extends ke {
client: this.#e,
meta: this.options.meta,
mutationKey: this.options.mutationKey
- }, r = this.#r = Oe({
+ }, r = this.#r = ke({
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
onFail: (e, t) => {
this.#i({
@@ -1454,7 +1454,7 @@ var Ue = class extends ke {
};
}
};
- this.state = t(this.state), Ce.batch(() => {
+ this.state = t(this.state), we.batch(() => {
this.#t.forEach((t) => {
t.onMutationUpdate(e);
}), this.#n.notify({
@@ -1465,7 +1465,7 @@ var Ue = class extends ke {
});
}
};
-function We() {
+function Ge() {
return {
context: void 0,
data: void 0,
@@ -1480,7 +1480,7 @@ function We() {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
-var Ge = class extends ye {
+var Ke = class extends be {
#e;
#t;
#n;
@@ -1488,7 +1488,7 @@ var Ge = class extends ye {
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
}
build(e, t, n) {
- let r = new Ue({
+ let r = new We({
client: e,
mutationCache: this,
mutationId: ++this.#n,
@@ -1499,7 +1499,7 @@ var Ge = class extends ye {
}
add(e) {
this.#e.add(e);
- let t = Ke(e);
+ let t = qe(e);
if (typeof t == "string") {
let n = this.#t.get(t);
n ? n.push(e) : this.#t.set(t, [e]);
@@ -1511,7 +1511,7 @@ var Ge = class extends ye {
}
remove(e) {
if (this.#e.delete(e)) {
- let t = Ke(e);
+ let t = qe(e);
if (typeof t == "string") {
let n = this.#t.get(t);
if (n) {
@@ -1528,7 +1528,7 @@ var Ge = class extends ye {
});
}
canRun(e) {
- let t = Ke(e);
+ let t = qe(e);
if (typeof t == "string") {
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
return !n || n === e;
@@ -1536,11 +1536,11 @@ var Ge = class extends ye {
return !0;
}
runNext(e) {
- let t = Ke(e);
+ let t = qe(e);
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
}
clear() {
- Ce.batch(() => {
+ we.batch(() => {
this.#e.forEach((e) => {
this.notify({
type: "removed",
@@ -1563,7 +1563,7 @@ var Ge = class extends ye {
return this.getAll().filter((t) => N(e, t));
}
notify(e) {
- Ce.batch(() => {
+ we.batch(() => {
this.listeners.forEach((t) => {
t(e);
});
@@ -1571,15 +1571,15 @@ var Ge = class extends ye {
}
resumePausedMutations() {
let e = this.getAll().filter((e) => e.state.isPaused);
- return Ce.batch(() => Promise.all(e.map((e) => e.continue().catch(A))));
+ return we.batch(() => Promise.all(e.map((e) => e.continue().catch(A))));
}
};
-function Ke(e) {
+function qe(e) {
return e.options.scope?.id;
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/mutationObserver.js
-var qe = class extends ye {
+var Je = class extends be {
#e;
#t = void 0;
#n;
@@ -1592,11 +1592,11 @@ var qe = class extends ye {
}
setOptions(e) {
let t = this.options;
- this.options = this.#e.defaultMutationOptions(e), se(this.options, t) || this.#e.getMutationCache().notify({
+ this.options = this.#e.defaultMutationOptions(e), ce(this.options, t) || this.#e.getMutationCache().notify({
type: "observerOptionsUpdated",
mutation: this.#n,
observer: this
- }), t?.mutationKey && this.options.mutationKey && P(t.mutationKey) !== P(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);
+ }), t?.mutationKey && this.options.mutationKey && ie(t.mutationKey) !== ie(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);
}
onSubscribe() {
this.listeners.size === 1 && this.#n && (this.#n.addObserver(this), this.#i());
@@ -1617,7 +1617,7 @@ var qe = class extends ye {
return this.#r = t, this.#n?.removeObserver(this), this.#n = this.#e.getMutationCache().build(this.#e, this.options), this.#n.addObserver(this), this.#n.execute(e);
}
#i() {
- let e = this.#n?.state ?? We();
+ let e = this.#n?.state ?? Ge();
this.#t = {
...e,
isPending: e.status === "pending",
@@ -1629,7 +1629,7 @@ var qe = class extends ye {
};
}
#a(e) {
- Ce.batch(() => {
+ we.batch(() => {
if (this.#r && this.hasListeners()) {
let t = this.#t.variables, n = this.#t.context, r = {
client: this.#e,
@@ -1665,14 +1665,14 @@ var qe = class extends ye {
});
});
}
-}, Je = class extends ye {
+}, Ye = class extends be {
#e;
constructor(e = {}) {
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
}
build(e, t, n) {
let r = t.queryKey, i = t.queryHash ?? re(r, t), a = this.get(i);
- return a || (a = new Ne({
+ return a || (a = new Pe({
client: e,
queryKey: r,
queryHash: i,
@@ -1695,7 +1695,7 @@ var qe = class extends ye {
}));
}
clear() {
- Ce.batch(() => {
+ we.batch(() => {
this.getAll().forEach((e) => {
this.remove(e);
});
@@ -1719,27 +1719,27 @@ var qe = class extends ye {
return Object.keys(e).length > 0 ? t.filter((t) => ne(e, t)) : t;
}
notify(e) {
- Ce.batch(() => {
+ we.batch(() => {
this.listeners.forEach((t) => {
t(e);
});
});
}
onFocus() {
- Ce.batch(() => {
+ we.batch(() => {
this.getAll().forEach((e) => {
e.onFocus();
});
});
}
onOnline() {
- Ce.batch(() => {
+ we.batch(() => {
this.getAll().forEach((e) => {
e.onOnline();
});
});
}
-}, Ye = class {
+}, Xe = class {
#e;
#t;
#n;
@@ -1749,12 +1749,12 @@ var qe = class extends ye {
#o;
#s;
constructor(e = {}) {
- this.#e = e.queryCache || new Je(), this.#t = e.mutationCache || new Ge(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
+ this.#e = e.queryCache || new Ye(), this.#t = e.mutationCache || new Ke(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
}
mount() {
- this.#a++, this.#a === 1 && (this.#o = be.subscribe(async (e) => {
+ this.#a++, this.#a === 1 && (this.#o = xe.subscribe(async (e) => {
e && (await this.resumePausedMutations(), this.#e.onFocus());
- }), this.#s = we.subscribe(async (e) => {
+ }), this.#s = Te.subscribe(async (e) => {
e && (await this.resumePausedMutations(), this.#e.onOnline());
}));
}
@@ -1792,7 +1792,7 @@ var qe = class extends ye {
});
}
setQueriesData(e, t, n) {
- return Ce.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
+ return we.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
}
getQueryState(e) {
let t = this.defaultQueryOptions({ queryKey: e });
@@ -1800,7 +1800,7 @@ var qe = class extends ye {
}
removeQueries(e) {
let t = this.#e;
- Ce.batch(() => {
+ we.batch(() => {
t.findAll(e).forEach((e) => {
t.remove(e);
});
@@ -1808,7 +1808,7 @@ var qe = class extends ye {
}
resetQueries(e, t) {
let n = this.#e;
- return Ce.batch(() => {
+ return we.batch(() => {
let r = n.findAll(e), i = new Set(r);
return r.forEach((e) => {
e.reset();
@@ -1822,11 +1822,11 @@ var qe = class extends ye {
let n = {
revert: !0,
...t
- }, r = Ce.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
+ }, r = we.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
return Promise.all(r).then(A).catch(A);
}
invalidateQueries(e, t = {}) {
- return Ce.batch(() => (this.#e.findAll(e).forEach((e) => {
+ return we.batch(() => (this.#e.findAll(e).forEach((e) => {
e.invalidate();
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
...e,
@@ -1837,7 +1837,7 @@ var qe = class extends ye {
let n = {
...t,
cancelRefetch: t.cancelRefetch ?? !0
- }, r = Ce.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
+ }, r = we.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
let t = e.fetch(void 0, n);
return n.throwOnError || (t = t.catch(A)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
}));
@@ -1871,7 +1871,7 @@ var qe = class extends ye {
return e._type = "infinite", this.ensureQueryData(e);
}
resumePausedMutations() {
- return we.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
+ return Te.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
}
getQueryCache() {
return this.#e;
@@ -1886,7 +1886,7 @@ var qe = class extends ye {
this.#n = e;
}
setQueryDefaults(e, t) {
- this.#r.set(P(e), {
+ this.#r.set(ie(e), {
queryKey: e,
defaultOptions: t
});
@@ -1894,11 +1894,11 @@ var qe = class extends ye {
getQueryDefaults(e) {
let t = [...this.#r.values()], n = {};
return t.forEach((t) => {
- ie(e, t.queryKey) && Object.assign(n, t.defaultOptions);
+ ae(e, t.queryKey) && Object.assign(n, t.defaultOptions);
}), n;
}
setMutationDefaults(e, t) {
- this.#i.set(P(e), {
+ this.#i.set(ie(e), {
mutationKey: e,
defaultOptions: t
});
@@ -1906,7 +1906,7 @@ var qe = class extends ye {
getMutationDefaults(e) {
let t = [...this.#i.values()], n = {};
return t.forEach((t) => {
- ie(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
+ ae(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
}), n;
}
defaultQueryOptions(e) {
@@ -1917,7 +1917,7 @@ var qe = class extends ye {
...e,
_defaulted: !0
};
- return t.queryHash ||= re(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === I && (t.enabled = !1), t;
+ return t.queryHash ||= re(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === F && (t.enabled = !1), t;
}
defaultMutationOptions(e) {
return e?._defaulted ? e : {
@@ -1930,11 +1930,11 @@ var qe = class extends ye {
clear() {
this.#e.clear(), this.#t.clear();
}
-}, Xe = x.createContext(!1), Ze = () => x.useContext(Xe);
-Xe.Provider;
+}, Ze = x.createContext(!1), Qe = () => x.useContext(Ze);
+Ze.Provider;
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
-function Qe() {
+function $e() {
let e = !1;
return {
clearReset: () => {
@@ -1946,34 +1946,34 @@ function Qe() {
isReset: () => e
};
}
-var $e = x.createContext(Qe()), et = () => x.useContext($e), tt = (e, t, n) => {
- let r = n?.state.error && typeof e.throwOnError == "function" ? he(e.throwOnError, [n.state.error, n]) : e.throwOnError;
+var et = x.createContext($e()), tt = () => x.useContext(et), nt = (e, t, n) => {
+ let r = n?.state.error && typeof e.throwOnError == "function" ? ge(e.throwOnError, [n.state.error, n]) : e.throwOnError;
(e.suspense || r) && (t.isReset() || (e.retryOnMount = !1));
-}, nt = (e) => {
+}, rt = (e) => {
x.useEffect(() => {
e.clearReset();
}, [e]);
-}, rt = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || he(n, [e.error, r])), it = (e) => {
+}, it = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || ge(n, [e.error, r])), at = (e) => {
if (e.suspense) {
let t = 1e3, n = (e) => e === "static" ? e : Math.max(e ?? t, t), r = e.staleTime;
e.staleTime = typeof r == "function" ? (...e) => n(r(...e)) : n(r), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, t));
}
-}, at = (e, t) => e?.suspense && t.isPending, ot = (e, t, n) => t.fetchOptimistic(e).catch(() => {
+}, ot = (e, t) => e?.suspense && t.isPending, st = (e, t, n) => t.fetchOptimistic(e).catch(() => {
n.clearReset();
});
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
-function st(e, t, n) {
- let r = Ze(), i = et(), a = w(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
- o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, it(o), tt(o, i, s), nt(i);
+function ct(e, t, n) {
+ let r = Qe(), i = tt(), a = w(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
+ o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, at(o), nt(o, i, s), rt(i);
let [l] = x.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;
if (x.useSyncExternalStore(x.useCallback((e) => {
- let t = d ? l.subscribe(Ce.batchCalls(e)) : A;
+ let t = d ? l.subscribe(we.batchCalls(e)) : A;
return l.updateResult(), t;
}, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), x.useEffect(() => {
l.setOptions(o);
- }, [o, l]), at(o, u)) throw ot(o, l, i);
- if (rt({
+ }, [o, l]), ot(o, u)) throw st(o, l, i);
+ if (it({
result: u,
errorResetBoundary: i,
throwOnError: o.throwOnError,
@@ -1984,20 +1984,20 @@ function st(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useQuery.js
-function ct(e, t) {
- return st(e, Le, t);
+function lt(e, t) {
+ return ct(e, Re, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useMutation.js
-function lt(e, t) {
- let n = w(t), [r] = x.useState(() => new qe(n, e));
+function ut(e, t) {
+ let n = w(t), [r] = x.useState(() => new Je(n, e));
x.useEffect(() => {
r.setOptions(e);
}, [r, e]);
- let i = x.useSyncExternalStore(x.useCallback((e) => r.subscribe(Ce.batchCalls(e)), [r]), () => r.getCurrentResult(), () => r.getCurrentResult()), a = x.useCallback((...e) => {
+ let i = x.useSyncExternalStore(x.useCallback((e) => r.subscribe(we.batchCalls(e)), [r]), () => r.getCurrentResult(), () => r.getCurrentResult()), a = x.useCallback((...e) => {
r.mutate(e[0], e[1]).catch(A);
}, [r]);
- if (i.error && he(r.options.throwOnError, [i.error])) throw i.error;
+ if (i.error && ge(r.options.throwOnError, [i.error])) throw i.error;
return {
...i,
mutate: a,
@@ -2006,7 +2006,7 @@ function lt(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/BaseCollection.mjs
-var ut = class {
+var dt = class {
constructor(e) {
this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = this.constructor.type, this.key = e;
}
@@ -2021,22 +2021,22 @@ var ut = class {
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, dt = class extends ut {
+}, ft = class extends dt {
filter(e, t, n) {
- let [r, i] = ht(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = gt(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends ut {
+(class extends dt {
static {
this.type = "header";
}
});
-var ft = class extends ut {
+var pt = class extends dt {
static {
this.type = "loader";
}
-}, pt = class extends dt {
+}, mt = class extends ft {
static {
this.type = "item";
}
@@ -2048,7 +2048,7 @@ var ft = class extends ut {
return null;
}
};
-(class extends dt {
+(class extends ft {
static {
this.type = "section";
}
@@ -2061,7 +2061,7 @@ var ft = class extends ut {
return null;
}
});
-var mt = class {
+var ht = class {
get size() {
return this.itemCount;
}
@@ -2136,14 +2136,14 @@ var mt = class {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = ht(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = gt(this, t, this.firstKey, e);
return t?.commit(n, r), t;
}
constructor() {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;
}
};
-function ht(e, t, n, r) {
+function gt(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -2158,7 +2158,7 @@ function ht(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/Document.mjs
-var gt = class {
+var _t = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -2239,7 +2239,7 @@ var gt = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, _t = class e extends gt {
+}, vt = class e extends _t {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -2290,7 +2290,7 @@ var gt = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, vt = class extends gt {
+}, yt = class extends _t {
constructor(e) {
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
}
@@ -2298,7 +2298,7 @@ var gt = class {
return !0;
}
createElement(e) {
- return new _t(e, this);
+ return new vt(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -2320,8 +2320,8 @@ var gt = class {
return this.inSubscription ? this.collection : (this.queuedRender = !1, this.updateCollection(), this.collection);
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof _t && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof _t ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
+ for (let e of this.dirtyNodes) e instanceof vt && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof vt ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
this.nextCollection && (this.nextCollection.commit(this.firstVisibleChild?.node?.key ?? null, this.lastVisibleChild?.node?.key ?? null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null));
}
queueUpdate() {
@@ -2340,13 +2340,13 @@ var gt = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function yt(e) {
+function bt(e) {
let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, x.useMemo)(() => void 0, [t]), s = (0, x.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
return (0, x.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = bt(a) ? a : null, o = n ? s.get(n) : null;
+ let n = xt(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
@@ -2371,7 +2371,7 @@ function yt(e) {
i
]);
}
-function bt(e) {
+function xt(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -2381,26 +2381,26 @@ function bt(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function xt(e) {
- if (Ct()) e.focus({ preventScroll: !0 });
+function St(e) {
+ if (wt()) e.focus({ preventScroll: !0 });
else {
- let t = wt(e);
- e.focus(), Tt(t);
+ let t = Tt(e);
+ e.focus(), Et(t);
}
}
-var St = null;
-function Ct() {
- if (St == null) {
- St = !1;
+var Ct = null;
+function wt() {
+ if (Ct == null) {
+ Ct = !1;
try {
document.createElement("div").focus({ get preventScroll() {
- return St = !0, !0;
+ return Ct = !0, !0;
} });
} catch {}
}
- return St;
+ return Ct;
}
-function wt(e) {
+function Tt(e) {
let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;
for (; t instanceof HTMLElement && t !== r;) (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && n.push({
element: t,
@@ -2413,25 +2413,25 @@ function wt(e) {
scrollLeft: r.scrollLeft
}), n;
}
-function Tt(e) {
+function Et(e) {
for (let { element: t, scrollTop: n, scrollLeft: r } of e) t.scrollTop = n, t.scrollLeft = r;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/domHelpers.mjs
-var L = (e) => Ot(e) ? e.document : kt(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), Et = (e) => L(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function Dt(e) {
- return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
-}
+var I = (e) => kt(e) ? e.document : At(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), Dt = (e) => I(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
function Ot(e) {
- return typeof e == "object" && !!e && "window" in e && e.window === e;
+ return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
function kt(e) {
- return Dt(e) && e.nodeType === 9;
+ return typeof e == "object" && !!e && "window" in e && e.window === e;
}
function At(e) {
- return Dt(e) && e.nodeType === 11 && "host" in e;
+ return Ot(e) && e.nodeType === 9;
+}
+function jt(e) {
+ return Ot(e) && e.nodeType === 11 && "host" in e;
}
-function jt(e, t, n, r) {
+function Mt(e, t, n, r) {
if (n == null || e == null) return () => {};
let i = Array.isArray(e) ? e : [e];
for (let e of i) e.addEventListener(t, n, r);
@@ -2439,7 +2439,7 @@ function jt(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function Mt(e, t, n, r) {
+function Nt(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -2454,73 +2454,73 @@ function Mt(e, t, n, r) {
}
//#endregion
//#region node_modules/react-stately/dist/private/flags/flags.mjs
-var Nt = !1;
-function Pt() {
- return Nt;
+var Pt = !1;
+function Ft() {
+ return Pt;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function R(e, t) {
- if (!Pt()) return t && e ? e.contains(t) : !1;
+function L(e, t) {
+ if (!Ft()) return t && e ? e.contains(t) : !1;
if (!e || !t) return !1;
let n = t;
for (; n !== null;) {
if (n === e) return !0;
- n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : At(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : jt(n) ? n.host : n.parentNode;
}
return !1;
}
-var Ft = (e = document) => {
- if (!Pt()) return e.activeElement;
+var It = (e = document) => {
+ if (!Ft()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
-function z(e) {
- if (Pt() && e.target instanceof Element && e.target.shadowRoot) {
+function R(e) {
+ if (Ft() && e.target instanceof Element && e.target.shadowRoot) {
if ("composedPath" in e) return e.composedPath()[0] ?? null;
if ("composedPath" in e.nativeEvent) return e.nativeEvent.composedPath()[0] ?? null;
}
return e.target;
}
-function It(e, t) {
+function Lt(e, t) {
if (t === null) return [];
- t ??= Et(e);
+ t ??= Dt(e);
let n = [t];
- if (!Pt() || !e || e === t) return n;
+ if (!Ft() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; At(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; jt(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function Lt(e) {
+function Rt(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = Et(e);
+ let t = e.getRootNode(), n = Dt(e);
if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;
let r = t.activeElement;
return r != null && e.contains(r);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isElementVisible.mjs
-var Rt = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function zt(e) {
- let t = Et(e);
+var zt = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function Bt(e) {
+ let t = Dt(e);
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";
if (i) {
- let { getComputedStyle: t } = Et(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = Dt(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function Bt(e, t) {
+function Vt(e, t) {
return !e.hasAttribute("hidden") && !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
}
-function Vt(e, t) {
- return Rt ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && zt(e) && Bt(e, t) && (!e.parentElement || Vt(e.parentElement, e));
+function Ht(e, t) {
+ return zt ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && Bt(e) && Vt(e, t) && (!e.parentElement || Ht(e.parentElement, e));
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var Ht = [
+var Ut = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -2535,60 +2535,60 @@ var Ht = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], B = Ht.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-Ht.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var Ut = Ht.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function Wt(e, t) {
- return e.matches(B) && !Kt(e) && (t?.skipVisibilityCheck || Vt(e));
-}
-function Gt(e) {
- return e.matches(Ut) && Vt(e) && !Kt(e);
+], z = Ut.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+Ut.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var Wt = Ut.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function Gt(e, t) {
+ return e.matches(z) && !qt(e) && (t?.skipVisibilityCheck || Ht(e));
}
function Kt(e) {
+ return e.matches(Wt) && Ht(e) && !qt(e);
+}
+function qt(e) {
let t = e;
for (; t != null;) {
- if (t instanceof Et(t).HTMLElement && t.inert) return !0;
+ if (t instanceof Dt(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var V = typeof document < "u" ? x.useLayoutEffect : () => {};
+var B = typeof document < "u" ? x.useLayoutEffect : () => {};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/utils.mjs
-function qt(e) {
+function Jt(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function Jt(e, t) {
+function Yt(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function Yt(e) {
+function Xt(e) {
let t = (0, x.useRef)({
isFocused: !1,
observer: null
});
- return V(() => {
+ return B(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
};
}, []), (0, x.useCallback)((n) => {
- let r = z(n);
+ let r = R(n);
if (r instanceof HTMLButtonElement || r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement || r instanceof HTMLSelectElement) {
t.current.isFocused = !0;
let n = r;
n.addEventListener("focusout", (r) => {
if (t.current.isFocused = !1, n.disabled) {
- let t = qt(r);
+ let t = Jt(r);
e?.(t);
}
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
}, { once: !0 }), t.current.observer = new MutationObserver(() => {
if (t.current.isFocused && n.disabled) {
t.current.observer?.disconnect();
- let e = n === Ft() ? null : Ft();
+ let e = n === It() ? null : It();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -2601,83 +2601,83 @@ function Yt(e) {
}
}, [e]);
}
-var Xt = !1;
-function Zt(e) {
- for (; e && !Wt(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = Ft(Et(e).document);
+var Zt = !1;
+function Qt(e) {
+ for (; e && !Gt(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = It(Dt(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && At(n) ? n : Et(e), i = (t) => t === e || t != null && R(e, t), a = (e) => e === t || t != null && e != null && R(t, e);
- Xt = !0;
+ let n = e?.getRootNode(), r = n != null && jt(n) ? n : Dt(e), i = (t) => t === e || t != null && L(e, t), a = (e) => e === t || t != null && e != null && L(t, e);
+ Zt = !0;
let o = !1, s = (e) => {
- (a(z(e)) || o) && e.stopImmediatePropagation();
+ (a(R(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(z(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, xt(t), d()));
+ (a(R(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, St(t), d()));
}, l = (e) => {
- (i(z(e)) || o) && e.stopImmediatePropagation();
+ (i(R(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(z(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, xt(t), d()));
+ (i(R(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, St(t), d()));
};
r.addEventListener("blur", s, !0), r.addEventListener("focusout", c, !0), r.addEventListener("focusin", u, !0), r.addEventListener("focus", l, !0);
let d = () => {
- cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), Xt = !1, o = !1;
+ cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), Zt = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/platform.mjs
-function Qt(e) {
+function $t(e) {
if (typeof window > "u" || window.navigator == null) return !1;
let t = window.navigator.userAgentData?.brands;
return Array.isArray(t) && t.some((t) => e.test(t.brand)) || e.test(window.navigator.userAgent);
}
-function $t(e) {
+function en(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function en(e) {
+function tn(e) {
let t = null;
return () => (t ??= e(), t);
}
-var tn = en(function() {
- return $t(/^Mac/i);
-}), nn = en(function() {
- return $t(/^iPhone/i);
-}), rn = en(function() {
- return $t(/^iPad/i) || tn() && navigator.maxTouchPoints > 1;
-}), an = en(function() {
- return nn() || rn();
-}), on = en(function() {
- return tn() || an();
-}), sn = en(function() {
- return Qt(/AppleWebKit/i) && (an() || !cn());
-}), cn = en(function() {
- return Qt(/Chrome|CriOS|CrMo/i);
-}), ln = en(function() {
- return Qt(/Android/i);
-}), un = en(function() {
- return Qt(/(Firefox|FxiOS)/i);
+var nn = tn(function() {
+ return en(/^Mac/i);
+}), rn = tn(function() {
+ return en(/^iPhone/i);
+}), an = tn(function() {
+ return en(/^iPad/i) || nn() && navigator.maxTouchPoints > 1;
+}), on = tn(function() {
+ return rn() || an();
+}), sn = tn(function() {
+ return nn() || on();
+}), cn = tn(function() {
+ return $t(/AppleWebKit/i) && (on() || !ln());
+}), ln = tn(function() {
+ return $t(/Chrome|CriOS|CrMo/i);
+}), un = tn(function() {
+ return $t(/Android/i);
+}), dn = tn(function() {
+ return $t(/(Firefox|FxiOS)/i);
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function dn(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : ln() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
-}
function fn(e) {
- return !ln() && e.width === 0 && e.height === 0 || ln() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+ return e.pointerType === "" && e.isTrusted ? !0 : un() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+}
+function pn(e) {
+ return !un() && e.width === 0 && e.height === 0 || un() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/openLink.mjs
-var pn = /*#__PURE__*/ (0, x.createContext)({
+var mn = /*#__PURE__*/ (0, x.createContext)({
isNative: !0,
- open: _n,
+ open: vn,
useHref: (e) => e
});
-function mn() {
- return (0, x.useContext)(pn);
+function hn() {
+ return (0, x.useContext)(mn);
}
-function hn(e, t, n = !0) {
+function gn(e, t, n = !0) {
let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t;
- !sn() && un() && window.event?.type?.startsWith("key") && e.target === "_blank" && (tn() ? r = !0 : i = !0);
- let s = sn() && tn() && !rn() ? new KeyboardEvent("keydown", {
+ !cn() && dn() && window.event?.type?.startsWith("key") && e.target === "_blank" && (nn() ? r = !0 : i = !0);
+ let s = cn() && nn() && !an() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -2692,21 +2692,21 @@ function hn(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- hn.isOpening = n, xt(e), e.dispatchEvent(s), hn.isOpening = !1;
+ gn.isOpening = n, St(e), e.dispatchEvent(s), gn.isOpening = !1;
}
-hn.isOpening = !1;
-function gn(e, t) {
+gn.isOpening = !1;
+function _n(e, t) {
if (e instanceof HTMLAnchorElement) t(e);
else if (e.hasAttribute("data-href")) {
let n = document.createElement("a");
n.href = e.getAttribute("data-href"), e.hasAttribute("data-target") && (n.target = e.getAttribute("data-target")), e.hasAttribute("data-rel") && (n.rel = e.getAttribute("data-rel")), e.hasAttribute("data-download") && (n.download = e.getAttribute("data-download")), e.hasAttribute("data-ping") && (n.ping = e.getAttribute("data-ping")), e.hasAttribute("data-referrer-policy") && (n.referrerPolicy = e.getAttribute("data-referrer-policy")), e.appendChild(n), t(n), e.removeChild(n);
}
}
-function _n(e, t) {
- gn(e, (e) => hn(e, t));
+function vn(e, t) {
+ _n(e, (e) => gn(e, t));
}
-function vn(e) {
- let t = mn().useHref(e?.href ?? ""), n = {};
+function yn(e) {
+ let t = hn().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -2719,121 +2719,121 @@ function vn(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var yn = {
+var bn = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, bn = /*#__PURE__*/ x.createContext(yn), xn = /*#__PURE__*/ x.createContext(!1);
+}, xn = /*#__PURE__*/ x.createContext(bn), Sn = /*#__PURE__*/ x.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var Sn = /* @__PURE__ */ new WeakMap();
-function Cn(e = !1) {
- let t = (0, x.useContext)(bn), n = (0, x.useRef)(null);
+var Cn = /* @__PURE__ */ new WeakMap();
+function wn(e = !1) {
+ let t = (0, x.useContext)(xn), n = (0, x.useRef)(null);
if (n.current === null && !e) {
let e = x.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = Sn.get(e);
- n == null ? Sn.set(e, {
+ let n = Cn.get(e);
+ n == null ? Cn.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, Sn.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, Cn.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function wn(e) {
- let t = (0, x.useContext)(bn), n = Cn(!!e), r = `react-aria${t.prefix}`;
+function Tn(e) {
+ let t = (0, x.useContext)(xn), n = wn(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function Tn(e) {
- let t = x.useId(), [n] = (0, x.useState)(An()), r = n ? "react-aria" : `react-aria${yn.prefix}`;
+function En(e) {
+ let t = x.useId(), [n] = (0, x.useState)(jn()), r = n ? "react-aria" : `react-aria${bn.prefix}`;
return e || `${r}-${t}`;
}
-var En = typeof x.useId == "function" ? Tn : wn;
-function Dn() {
+var Dn = typeof x.useId == "function" ? En : Tn;
+function On() {
return !1;
}
-function On() {
+function kn() {
return !0;
}
-function kn(e) {
+function An(e) {
return () => {};
}
-function An() {
- return typeof x.useSyncExternalStore == "function" ? x.useSyncExternalStore(kn, Dn, On) : (0, x.useContext)(xn);
+function jn() {
+ return typeof x.useSyncExternalStore == "function" ? x.useSyncExternalStore(An, On, kn) : (0, x.useContext)(Sn);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var jn = null, Mn = /* @__PURE__ */ new Set(), Nn = /* @__PURE__ */ new Map(), Pn = !1, Fn = !1, In = {
+var Mn = null, Nn = /* @__PURE__ */ new Set(), Pn = /* @__PURE__ */ new Map(), Fn = !1, In = !1, Ln = {
Tab: !0,
Escape: !0
};
-function Ln(e, t) {
- for (let n of Mn) n(e, t);
-}
-function Rn(e) {
- return !(e.metaKey || !tn() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+function Rn(e, t) {
+ for (let n of Nn) n(e, t);
}
function zn(e) {
- Pn = !0, !hn.isOpening && Rn(e) && (jn = "keyboard", Ln("keyboard", e));
+ return !(e.metaKey || !nn() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
function Bn(e) {
- jn = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (Pn = !0, Ln("pointer", e));
+ Fn = !0, !gn.isOpening && zn(e) && (Mn = "keyboard", Rn("keyboard", e));
}
function Vn(e) {
- !hn.isOpening && dn(e) && (Pn = !0, jn = "virtual");
+ Mn = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (Fn = !0, Rn("pointer", e));
}
function Hn(e) {
- if (Xt) return;
- let t = z(e), n = Et(t), r = L(t);
+ !gn.isOpening && fn(e) && (Fn = !0, Mn = "virtual");
+}
+function Un(e) {
+ if (Zt) return;
+ let t = R(e), n = Dt(t), r = I(t);
if (t === n) {
- Fn = !0;
+ In = !0;
return;
}
- t === r || !e.isTrusted || (!Pn && !Fn && (jn = "virtual", Ln("virtual", e)), Pn = !1, Fn = !1);
+ t === r || !e.isTrusted || (!Fn && !In && (Mn = "virtual", Rn("virtual", e)), Fn = !1, In = !1);
}
-function Un() {
- Xt || (Pn = !1, Fn = !0);
+function Wn() {
+ Zt || (Fn = !1, In = !0);
}
-function Wn(e) {
+function Gn(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = Et(e), n = L(e);
- if (Nn.get(t)) return;
+ let t = Dt(e), n = I(e);
+ if (Pn.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- Pn = !0, r.apply(this, arguments);
+ Fn = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", zn, !0), n.addEventListener("keyup", zn, !0), n.addEventListener("click", Vn, !0), t.addEventListener("focus", Hn, !0), t.addEventListener("blur", Un, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Bn, !0), n.addEventListener("pointermove", Bn, !0), n.addEventListener("pointerup", Bn, !0)), t.addEventListener("beforeunload", () => {
- Gn(e);
- }, { once: !0 }), Nn.set(t, { focus: r });
+ }), n.addEventListener("keydown", Bn, !0), n.addEventListener("keyup", Bn, !0), n.addEventListener("click", Hn, !0), t.addEventListener("focus", Un, !0), t.addEventListener("blur", Wn, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Vn, !0), n.addEventListener("pointermove", Vn, !0), n.addEventListener("pointerup", Vn, !0)), t.addEventListener("beforeunload", () => {
+ Kn(e);
+ }, { once: !0 }), Pn.set(t, { focus: r });
}
-var Gn = (e, t) => {
- let n = Et(e), r = L(e);
- t && r.removeEventListener("DOMContentLoaded", t), Nn.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var Kn = (e, t) => {
+ let n = Dt(e), r = I(e);
+ t && r.removeEventListener("DOMContentLoaded", t), Pn.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: Nn.get(n).focus
- }), r.removeEventListener("keydown", zn, !0), r.removeEventListener("keyup", zn, !0), r.removeEventListener("click", Vn, !0), n.removeEventListener("focus", Hn, !0), n.removeEventListener("blur", Un, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Bn, !0), r.removeEventListener("pointermove", Bn, !0), r.removeEventListener("pointerup", Bn, !0)), Nn.delete(n));
+ value: Pn.get(n).focus
+ }), r.removeEventListener("keydown", Bn, !0), r.removeEventListener("keyup", Bn, !0), r.removeEventListener("click", Hn, !0), n.removeEventListener("focus", Un, !0), n.removeEventListener("blur", Wn, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Vn, !0), r.removeEventListener("pointermove", Vn, !0), r.removeEventListener("pointerup", Vn, !0)), Pn.delete(n));
};
-function Kn(e) {
- let t = L(e), n;
+function qn(e) {
+ let t = I(e), n;
return t.readyState === "loading" ? (n = () => {
- Wn(e);
- }, t.addEventListener("DOMContentLoaded", n)) : Wn(e), () => Gn(e, n);
-}
-typeof document < "u" && Kn();
-function qn() {
- return jn !== "pointer";
+ Gn(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : Gn(e), () => Kn(e, n);
}
+typeof document < "u" && qn();
function Jn() {
- return jn;
+ return Mn !== "pointer";
+}
+function Yn() {
+ return Mn;
}
-function Yn(e) {
- jn = e, Ln(e, null);
+function Xn(e) {
+ Mn = e, Rn(e, null);
}
-var Xn = /* @__PURE__ */ new Set([
+var Zn = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -2844,77 +2844,77 @@ var Xn = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Zn(e, t, n) {
- let r = n ? z(n) : void 0, i = L(r), a = Et(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = Ft(i);
- return e = e || u instanceof o && !Xn.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !In[n.key]);
-}
function Qn(e, t, n) {
- Wn(), (0, x.useEffect)(() => {
+ let r = n ? R(n) : void 0, i = I(r), a = Dt(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = It(i);
+ return e = e || u instanceof o && !Zn.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Ln[n.key]);
+}
+function $n(e, t, n) {
+ Gn(), (0, x.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- Zn(!!n?.isTextInput, t, r) && e(qn());
+ Qn(!!n?.isTextInput, t, r) && e(Jn());
};
- return Mn.add(t), () => {
- Mn.delete(t);
+ return Nn.add(t), () => {
+ Nn.delete(t);
};
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var $n = /* @__PURE__ */ new Map(), er = /* @__PURE__ */ new Set();
-function tr() {
+var er = /* @__PURE__ */ new Map(), tr = /* @__PURE__ */ new Set();
+function nr() {
if (typeof window > "u") return;
function e(e) {
return "propertyName" in e;
}
let t = (t) => {
- let r = z(t);
+ let r = R(t);
if (!e(t) || !r) return;
- let i = $n.get(r);
- i || (i = /* @__PURE__ */ new Set(), $n.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
+ let i = er.get(r);
+ i || (i = /* @__PURE__ */ new Set(), er.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
}, n = (t) => {
- let r = z(t);
+ let r = R(t);
if (!e(t) || !r) return;
- let i = $n.get(r);
- if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), $n.delete(r)), $n.size === 0)) {
- for (let e of er) e();
- er.clear();
+ let i = er.get(r);
+ if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), er.delete(r)), er.size === 0)) {
+ for (let e of tr) e();
+ tr.clear();
}
};
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
}
-typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", tr) : tr());
-function nr() {
- for (let [e] of $n) "isConnected" in e && !e.isConnected && $n.delete(e);
+typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", nr) : nr());
+function rr() {
+ for (let [e] of er) "isConnected" in e && !e.isConnected && er.delete(e);
}
-function rr(e) {
+function ir(e) {
requestAnimationFrame(() => {
- nr(), $n.size === 0 ? e() : er.add(e);
+ rr(), er.size === 0 ? e() : tr.add(e);
});
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function ir(e) {
+function ar(e) {
if (!e.isConnected) return;
- let t = L(e);
- if (Jn() === "virtual") {
- let n = Ft(t);
- rr(() => {
- let r = Ft(t);
- (r === n || r === t.body) && e.isConnected && xt(e);
+ let t = I(e);
+ if (Yn() === "virtual") {
+ let n = It(t);
+ ir(() => {
+ let r = It(t);
+ (r === n || r === t.body) && e.isConnected && St(e);
});
- } else xt(e);
+ } else St(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/chain.mjs
-function ar(...e) {
+function or(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function or(e) {
+function sr(e) {
let [t, n] = (0, x.useState)(e), r = (0, x.useRef)(t), i = (0, x.useRef)(null), a = (0, x.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
@@ -2924,7 +2924,7 @@ function or(e) {
}
r.current === e.value ? a.current() : n(e.value);
});
- return V(() => {
+ return B(() => {
r.current = t, i.current && a.current();
}), [t, (0, x.useCallback)((e) => {
i.current = e(r.current), a.current();
@@ -2932,21 +2932,21 @@ function or(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useId.mjs
-var sr = !!(typeof window < "u" && window.document && window.document.createElement), cr = /* @__PURE__ */ new Map(), lr;
-typeof FinalizationRegistry < "u" && (lr = new FinalizationRegistry((e) => {
- cr.delete(e);
+var cr = !!(typeof window < "u" && window.document && window.document.createElement), lr = /* @__PURE__ */ new Map(), ur;
+typeof FinalizationRegistry < "u" && (ur = new FinalizationRegistry((e) => {
+ lr.delete(e);
}));
-var ur = /* @__PURE__ */ new WeakMap();
-function dr(e) {
- let [t, n] = (0, x.useState)(e), r = (0, x.useRef)(null), i = En(t), a = (0, x.useRef)(null), o = ur.get(a);
- if (lr && o !== i && (o != null && lr.unregister(a), lr.register(a, i, a), ur.set(a, i)), sr) {
- let e = cr.get(i);
- e && !e.includes(r) ? e.push(r) : cr.set(i, [r]);
- }
- return V(() => {
+var dr = /* @__PURE__ */ new WeakMap();
+function fr(e) {
+ let [t, n] = (0, x.useState)(e), r = (0, x.useRef)(null), i = Dn(t), a = (0, x.useRef)(null), o = dr.get(a);
+ if (ur && o !== i && (o != null && ur.unregister(a), ur.register(a, i, a), dr.set(a, i)), cr) {
+ let e = lr.get(i);
+ e && !e.includes(r) ? e.push(r) : lr.set(i, [r]);
+ }
+ return B(() => {
let e = i;
return () => {
- lr && (lr.unregister(a), ur.delete(a)), cr.delete(e);
+ ur && (ur.unregister(a), dr.delete(a)), lr.delete(e);
};
}, [i]), (0, x.useEffect)(() => {
let e = r.current;
@@ -2955,20 +2955,20 @@ function dr(e) {
};
}), i;
}
-function fr(e, t) {
+function pr(e, t) {
if (e === t) return e;
- let n = cr.get(e);
+ let n = lr.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = cr.get(t);
+ let r = lr.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function pr(e = []) {
- let t = dr(), [n, r] = or(t), i = (0, x.useCallback)(() => {
+function mr(e = []) {
+ let t = fr(), [n, r] = sr(t), i = (0, x.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return V(i, [
+ return B(i, [
t,
i,
...e
@@ -2976,60 +2976,60 @@ function pr(e = []) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function mr(...e) {
+function hr(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = hr(e, t);
+ let r = gr(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : hr(e[n], null);
+ typeof t == "function" ? t() : gr(e[n], null);
});
};
};
}
-function hr(e, t) {
+function gr(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
//#endregion
//#region node_modules/clsx/dist/clsx.mjs
-function gr(e) {
+function _r(e) {
var t, n, r = "";
if (typeof e == "string" || typeof e == "number") r += e;
else if (typeof e == "object") {
if (Array.isArray(e)) {
var i = e.length;
- for (t = 0; t < i; t++) e[t] && (n = gr(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = _r(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function _r() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = gr(e)) && (r && (r += " "), r += t);
+function vr() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = _r(e)) && (r && (r += " "), r += t);
return r;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeProps.mjs
-function H(...e) {
+function V(...e) {
let t = { ...e[0] };
for (let n = 1; n < e.length; n++) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = ar(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = _r(n, i) : e === "id" && n && i ? t.id = fr(n, i) : e === "ref" && n && i ? t.ref = mr(n, i) : t[e] = i === void 0 ? n : i;
+ typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = or(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = vr(n, i) : e === "id" && n && i ? t.id = pr(n, i) : e === "ref" && n && i ? t.ref = hr(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function vr(e) {
+function yr(e) {
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, x.useCallback)((e) => {
- if (z(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = Yt(a), s = (0, x.useCallback)((e) => {
- let t = z(e), r = L(t), a = r ? Ft(r) : Ft();
+ if (R(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
+ }, [r, i]), o = Xt(a), s = (0, x.useCallback)((e) => {
+ let t = R(e), r = I(t), a = r ? It(r) : It();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -3043,7 +3043,7 @@ function vr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function yr(e) {
+function br(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -3068,33 +3068,33 @@ function yr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var br = /* @__PURE__ */ new Set([
+var xr = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), xr = [
+]), Sr = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function Sr(e) {
- let t = /* @__PURE__ */ new Set();
- return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(tn() ? "Meta" : "Control"), t;
-}
function Cr(e) {
let t = /* @__PURE__ */ new Set();
- return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
+ return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(nn() ? "Meta" : "Control"), t;
}
function wr(e) {
- return xr.filter((t) => e.has(t));
+ let t = /* @__PURE__ */ new Set();
+ return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
}
function Tr(e) {
+ return Sr.filter((t) => e.has(t));
+}
+function Er(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return br.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
+ return xr.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
}, {
shift: !1,
alt: !1,
@@ -3106,10 +3106,10 @@ function Tr(e) {
if (t.key === "") throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);
return t;
}
-function Er(e) {
+function Dr(e) {
return e.toLowerCase();
}
-var Dr = {
+var Or = {
space: " ",
esc: "escape",
del: "delete",
@@ -3121,26 +3121,26 @@ var Dr = {
pageup: "pageup",
pagedown: "pagedown"
};
-function Or(e) {
- let t = Er(e);
- return Dr[t] ?? t;
-}
function kr(e) {
- let t = wr(Sr(e)), n = Or(e.key);
- return t.length > 0 ? `${t.join("+")}+${n}` : n;
+ let t = Dr(e);
+ return Or[t] ?? t;
}
function Ar(e) {
- let t = wr(Cr(e)), n = Er(e.key);
- return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+ let t = Tr(Cr(e)), n = kr(e.key);
+ return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
function jr(e) {
+ let t = Tr(wr(e)), n = Dr(e.key);
+ return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+}
+function Mr(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = Tr(n);
- t.set(kr(e), r);
+ let e = Er(n);
+ t.set(Ar(e), r);
}
return (e) => {
- let n = Ar(e), r = t.get(n), i = r?.(e);
+ let n = jr(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -3152,11 +3152,11 @@ function jr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function Mr(e) {
+function Nr(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = jr(t), s = yr((e) => {
- if (!R(e.currentTarget, z(e))) {
+ let o = Mr(t), s = br((e) => {
+ if (!L(e.currentTarget, R(e))) {
e.continuePropagation();
return;
}
@@ -3165,8 +3165,8 @@ function Mr(e) {
return;
}
o(e);
- }), c = yr((e) => {
- if (!R(e.currentTarget, z(e))) {
+ }), c = br((e) => {
+ if (!L(e.currentTarget, R(e))) {
e.continuePropagation();
return;
}
@@ -3176,8 +3176,8 @@ function Mr(e) {
}
e.continuePropagation();
});
- i = e.onKeyDown ? ar(e.onKeyDown, s) : s, a = e.onKeyUp ? ar(e.onKeyUp, c) : c;
- } else i = yr(e.onKeyDown), a = yr(e.onKeyUp);
+ i = e.onKeyDown ? or(e.onKeyDown, s) : s, a = e.onKeyUp ? or(e.onKeyUp, c) : c;
+ } else i = br(e.onKeyDown), a = br(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
@@ -3185,7 +3185,7 @@ function Mr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function Nr(e) {
+function Pr(e) {
let t = (0, x.useRef)(null), n = (0, x.useRef)(void 0), r = (0, x.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
@@ -3208,8 +3208,8 @@ function Nr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function Pr(e, t) {
- V(() => {
+function Fr(e, t) {
+ B(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
@@ -3217,20 +3217,20 @@ function Pr(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var Fr = /*#__PURE__*/ x.createContext(null);
-function Ir(e) {
- let t = (0, x.useContext)(Fr) || {};
- Pr(t, e);
+var Ir = /*#__PURE__*/ x.createContext(null);
+function Lr(e) {
+ let t = (0, x.useContext)(Ir) || {};
+ Fr(t, e);
let { ref: n, ...r } = t;
return r;
}
-function Lr(e, t) {
- let { focusProps: n } = vr(e), { keyboardProps: r } = Mr(e), i = H(n, r), a = Ir(t), o = e.isDisabled ? {} : a, s = (0, x.useRef)(e.autoFocus);
+function Rr(e, t) {
+ let { focusProps: n } = yr(e), { keyboardProps: r } = Nr(e), i = V(n, r), a = Lr(t), o = e.isDisabled ? {} : a, s = (0, x.useRef)(e.autoFocus);
(0, x.useEffect)(() => {
- s.current && t.current && ir(t.current), s.current = !1;
+ s.current && t.current && ar(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
- return e.isDisabled && (c = void 0), { focusableProps: H({
+ return e.isDisabled && (c = void 0), { focusableProps: V({
...i,
tabIndex: c
}, o) };
@@ -3262,22 +3262,22 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var Rr = /*#__PURE__*/ (0, x.createContext)(!1);
-function zr(e) {
- if ((0, x.useContext)(Rr)) return /*#__PURE__*/ x.createElement(x.Fragment, null, e.children);
- let t = /*#__PURE__*/ x.createElement(Rr.Provider, { value: !0 }, e.children);
+var zr = /*#__PURE__*/ (0, x.createContext)(!1);
+function Br(e) {
+ if ((0, x.useContext)(zr)) return /*#__PURE__*/ x.createElement(x.Fragment, null, e.children);
+ let t = /*#__PURE__*/ x.createElement(zr.Provider, { value: !0 }, e.children);
return /*#__PURE__*/ x.createElement("template", null, t);
}
-function Br(e) {
- let t = (t, n) => (0, x.useContext)(Rr) ? null : e(t, n);
+function Vr(e) {
+ let t = (t, n) => (0, x.useContext)(zr) ? null : e(t, n);
return t.displayName = e.displayName || e.name, (0, x.forwardRef)(t);
}
-function Vr() {
- return (0, x.useContext)(Rr);
+function Hr() {
+ return (0, x.useContext)(zr);
}
//#endregion
//#region node_modules/react-dom/cjs/react-dom.production.js
-var Hr = /* @__PURE__ */ m(((e) => {
+var Ur = /* @__PURE__ */ m(((e) => {
var t = v();
function n(e) {
var t = "https://react.dev/errors/" + e;
@@ -3405,7 +3405,7 @@ var Hr = /* @__PURE__ */ m(((e) => {
}, e.useFormStatus = function() {
return l.H.useHostTransitionStatus();
}, e.version = "19.3.0";
-})), Ur = /* @__PURE__ */ m(((e, t) => {
+})), Wr = /* @__PURE__ */ m(((e, t) => {
function n() {
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);
@@ -3413,8 +3413,8 @@ var Hr = /* @__PURE__ */ m(((e) => {
console.error(e);
}
}
- n(), t.exports = Hr();
-})), Wr = /* @__PURE__ */ m(((e) => {
+ n(), t.exports = Ur();
+})), Gr = /* @__PURE__ */ m(((e) => {
var t = v();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -3452,47 +3452,47 @@ var Hr = /* @__PURE__ */ m(((e) => {
}
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
-})), Gr = /* @__PURE__ */ m(((e, t) => {
- t.exports = Wr();
-})), Kr = /* @__PURE__ */ g(Ur(), 1), qr = Gr(), Jr = /*#__PURE__*/ (0, x.createContext)(!1), Yr = /*#__PURE__*/ (0, x.createContext)(null);
-function Xr(e) {
- if ((0, x.useContext)(Yr)) return e.content;
- let { collection: t, document: n } = ei(e.createCollection);
- return /*#__PURE__*/ x.createElement(x.Fragment, null, /*#__PURE__*/ x.createElement(zr, null, /*#__PURE__*/ x.createElement(Yr.Provider, { value: n }, e.content)), /*#__PURE__*/ x.createElement(Zr, {
+})), Kr = /* @__PURE__ */ m(((e, t) => {
+ t.exports = Gr();
+})), qr = /* @__PURE__ */ g(Wr(), 1), Jr = Kr(), Yr = /*#__PURE__*/ (0, x.createContext)(!1), Xr = /*#__PURE__*/ (0, x.createContext)(null);
+function Zr(e) {
+ if ((0, x.useContext)(Xr)) return e.content;
+ let { collection: t, document: n } = ti(e.createCollection);
+ return /*#__PURE__*/ x.createElement(x.Fragment, null, /*#__PURE__*/ x.createElement(Br, null, /*#__PURE__*/ x.createElement(Xr.Provider, { value: n }, e.content)), /*#__PURE__*/ x.createElement(Qr, {
render: e.children,
collection: t
}));
}
-function Zr({ collection: e, render: t }) {
+function Qr({ collection: e, render: t }) {
return t(e);
}
-function Qr(e, t, n) {
- let r = An(), i = (0, x.useRef)(r);
+function $r(e, t, n) {
+ let r = jn(), i = (0, x.useRef)(r);
i.current = r;
let a = (0, x.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, qr.useSyncExternalStore)(e, a);
+ return (0, Jr.useSyncExternalStore)(e, a);
}
-var $r = typeof x.useSyncExternalStore == "function" ? x.useSyncExternalStore : Qr;
-function ei(e) {
- let [t] = (0, x.useState)(() => new vt(e?.() || new mt()));
+var ei = typeof x.useSyncExternalStore == "function" ? x.useSyncExternalStore : $r;
+function ti(e) {
+ let [t] = (0, x.useState)(() => new yt(e?.() || new ht()));
return {
- collection: $r((0, x.useCallback)((e) => t.subscribe(e), [t]), (0, x.useCallback)(() => {
+ collection: ei((0, x.useCallback)((e) => t.subscribe(e), [t]), (0, x.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
}, [t]), (0, x.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var ti = /*#__PURE__*/ (0, x.createContext)(null);
-function ni(e) {
- return class extends ut {
+var ni = /*#__PURE__*/ (0, x.createContext)(null);
+function ri(e) {
+ return class extends dt {
static {
this.type = e;
}
};
}
-function ri(e, t, n, r, i, a) {
- typeof e == "string" && (e = ni(e));
+function ii(e, t, n, r, i, a) {
+ typeof e == "string" && (e = ri(e));
let o = (0, x.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
@@ -3501,77 +3501,77 @@ function ri(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, x.useContext)(ti);
+ ]), s = (0, x.useContext)(ni);
if (s) {
let o = s.ownerDocument.nodesByProps.get(t);
- return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ x.createElement(ti.Provider, { value: o }, i) : null;
+ return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ x.createElement(ni.Provider, { value: o }, i) : null;
}
return /*#__PURE__*/ x.createElement(e.type, { ref: o }, i);
}
-function ii(e, t) {
+function ai(e, t) {
let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, x.forwardRef)((r, i) => {
- let a = (0, x.useContext)(Fr);
- if (!(0, x.useContext)(Jr)) {
+ let a = (0, x.useContext)(Ir);
+ if (!(0, x.useContext)(Yr)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return ri(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ x.createElement(Fr.Provider, { value: a }, /*#__PURE__*/ x.createElement(n, { node: e })));
+ return ii(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ x.createElement(Ir.Provider, { value: a }, /*#__PURE__*/ x.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function ai(e) {
- return yt({
+function oi(e) {
+ return bt({
...e,
addIdAndValue: !0
});
}
-var oi = /*#__PURE__*/ (0, x.createContext)(null);
-function si(e) {
- let t = (0, x.useContext)(oi), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = ai({
+var si = /*#__PURE__*/ (0, x.createContext)(null);
+function ci(e) {
+ let t = (0, x.useContext)(si), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = oi({
...e,
idScope: r,
dependencies: n
});
- return (0, x.useContext)(Yr) && (i = /*#__PURE__*/ x.createElement(ci, null, i)), t = (0, x.useMemo)(() => ({
+ return (0, x.useContext)(Xr) && (i = /*#__PURE__*/ x.createElement(li, null, i)), t = (0, x.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ x.createElement(oi.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ x.createElement(si.Provider, { value: t }, i);
}
-function ci({ children: e }) {
- let t = (0, x.useContext)(Yr), n = (0, x.useMemo)(() => /*#__PURE__*/ x.createElement(Yr.Provider, { value: null }, /*#__PURE__*/ x.createElement(Jr.Provider, { value: !0 }, e)), [e]);
- return An() ? /*#__PURE__*/ x.createElement(ti.Provider, { value: t }, n) : /*#__PURE__*/ (0, Kr.createPortal)(n, t);
+function li({ children: e }) {
+ let t = (0, x.useContext)(Xr), n = (0, x.useMemo)(() => /*#__PURE__*/ x.createElement(Xr.Provider, { value: null }, /*#__PURE__*/ x.createElement(Yr.Provider, { value: !0 }, e)), [e]);
+ return jn() ? /*#__PURE__*/ x.createElement(ni.Provider, { value: t }, n) : /*#__PURE__*/ (0, qr.createPortal)(n, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/constants.mjs
-var li = "react-aria-clear-focus", ui = "react-aria-focus";
+var ui = "react-aria-clear-focus", di = "react-aria-focus";
//#endregion
//#region node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function di(e) {
- let t = mi(L(e));
- t !== e && (t && fi(t, e), e && pi(e, t));
+function fi(e) {
+ let t = hi(I(e));
+ t !== e && (t && pi(t, e), e && mi(e, t));
}
-function fi(e, t) {
+function pi(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function pi(e, t) {
+function mi(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function mi(e) {
- let t = Ft(e), n = t?.getAttribute("aria-activedescendant");
+function hi(e) {
+ let t = It(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/keyboard.mjs
-function hi(e) {
- return tn() ? e.metaKey : e.ctrlKey;
+function gi(e) {
+ return nn() ? e.metaKey : e.ctrlKey;
}
-var gi = /* @__PURE__ */ new Set([
+var _i = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -3582,15 +3582,15 @@ var gi = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function _i(e) {
- return e instanceof HTMLInputElement && !gi.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
+function vi(e) {
+ return e instanceof HTMLInputElement && !_i.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var vi = x.useInsertionEffect ?? V;
-function yi(e) {
+var yi = x.useInsertionEffect ?? B;
+function bi(e) {
let t = (0, x.useRef)(null);
- return vi(() => {
+ return yi(() => {
t.current = e;
}, [e]), (0, x.useCallback)((...e) => {
let n = t.current;
@@ -3599,10 +3599,10 @@ function yi(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEvent.mjs
-function bi(e, t, n, r) {
- let i = yi(n), a = n == null;
+function xi(e, t, n, r) {
+ let i = bi(n), a = n == null;
(0, x.useEffect)(() => {
- if (!(a || e.current == null)) return jt(e.current, t, i, r);
+ if (!(a || e.current == null)) return Mt(e.current, t, i, r);
}, [
e,
t,
@@ -3612,9 +3612,9 @@ function bi(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLabels.mjs
-function xi(e, t) {
+function Si(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = dr(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
+ return n = fr(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
id: n,
"aria-label": r,
"aria-labelledby": i
@@ -3622,7 +3622,7 @@ function xi(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/utils.mjs
-var Si = /* @__PURE__ */ new Set([
+var Ci = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -3633,7 +3633,7 @@ var Si = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), Ci = /* @__PURE__ */ new Set([
+]), wi = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -3654,20 +3654,20 @@ var Si = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function wi(e) {
+function Ti(e) {
if (Intl.Locale) {
let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
if (n) return n.direction === "rtl";
- if (t.script) return Si.has(t.script);
+ if (t.script) return Ci.has(t.script);
}
let t = e.split("-")[0];
- return Ci.has(t);
+ return wi.has(t);
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var Ti = Symbol.for("react-aria.i18n.locale");
-function Ei() {
- let e = typeof window < "u" && window[Ti] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var Ei = Symbol.for("react-aria.i18n.locale");
+function Di() {
+ let e = typeof window < "u" && window[Ei] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -3675,33 +3675,33 @@ function Ei() {
}
return {
locale: e,
- direction: wi(e) ? "rtl" : "ltr"
+ direction: Ti(e) ? "rtl" : "ltr"
};
}
-var Di = Ei(), Oi = /* @__PURE__ */ new Set();
-function ki() {
- Di = Ei();
- for (let e of Oi) e(Di);
-}
+var Oi = Di(), ki = /* @__PURE__ */ new Set();
function Ai() {
- let e = An(), [t, n] = (0, x.useState)(Di);
- return (0, x.useEffect)(() => (Oi.size === 0 && window.addEventListener("languagechange", ki), Oi.add(n), () => {
- Oi.delete(n), Oi.size === 0 && window.removeEventListener("languagechange", ki);
+ Oi = Di();
+ for (let e of ki) e(Oi);
+}
+function ji() {
+ let e = jn(), [t, n] = (0, x.useState)(Oi);
+ return (0, x.useEffect)(() => (ki.size === 0 && window.addEventListener("languagechange", Ai), ki.add(n), () => {
+ ki.delete(n), ki.size === 0 && window.removeEventListener("languagechange", Ai);
}), []), e ? {
- locale: typeof window < "u" && window[Ti] || "en-US",
+ locale: typeof window < "u" && window[Ei] || "en-US",
direction: "ltr"
} : t;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var ji = /*#__PURE__*/ x.createContext(null);
-function Mi() {
- let e = Ai();
- return (0, x.useContext)(ji) || e;
+var Mi = /*#__PURE__*/ x.createContext(null);
+function Ni() {
+ let e = ji();
+ return (0, x.useContext)(Mi) || e;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var Ni = Symbol.for("react-aria.i18n.locale"), Pi = Symbol.for("react-aria.i18n.strings"), Fi = void 0, Ii = class e {
+var Pi = Symbol.for("react-aria.i18n.locale"), Fi = Symbol.for("react-aria.i18n.strings"), Ii = void 0, Li = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -3712,39 +3712,39 @@ var Ni = Symbol.for("react-aria.i18n.locale"), Pi = Symbol.for("react-aria.i18n.
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = Li(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = Ri(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[Ni];
- if (Fi === void 0) {
- let t = window[Pi];
+ let n = window[Pi];
+ if (Ii === void 0) {
+ let t = window[Fi];
if (!t) return null;
- Fi = {};
- for (let r in t) Fi[r] = new e({ [n]: t[r] }, n);
+ Ii = {};
+ for (let r in t) Ii[r] = new e({ [n]: t[r] }, n);
}
- let r = Fi?.[t];
+ let r = Ii?.[t];
if (!r) throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
return r;
}
};
-function Li(e, t, n = "en-US") {
+function Ri(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = Ri(e), i = zi(e);
+ let r = zi(e), i = Bi(e);
if (i && t[`${r}-${i}`]) return t[`${r}-${i}`];
if (t[r]) return t[r];
for (let e in t) if (e.startsWith(r + "-")) return t[e];
return t[n];
}
-function Ri(e) {
+function zi(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function zi(e) {
+function Bi(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var Bi = /* @__PURE__ */ new Map(), Vi = /* @__PURE__ */ new Map(), Hi = class {
+var Vi = /* @__PURE__ */ new Map(), Hi = /* @__PURE__ */ new Map(), Ui = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -3755,37 +3755,37 @@ var Bi = /* @__PURE__ */ new Map(), Vi = /* @__PURE__ */ new Map(), Hi = class {
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = Bi.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), Bi.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = Vi.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), Vi.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = Vi.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), Vi.set(this.locale, t)), t.format(e);
+ let t = Hi.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), Hi.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, Ui = /* @__PURE__ */ new WeakMap();
-function Wi(e) {
- let t = Ui.get(e);
- return t || (t = new Ii(e), Ui.set(e, t)), t;
-}
-function Gi(e, t) {
- return t && Ii.getGlobalDictionaryForPackage(t) || Wi(e);
+}, Wi = /* @__PURE__ */ new WeakMap();
+function Gi(e) {
+ let t = Wi.get(e);
+ return t || (t = new Li(e), Wi.set(e, t)), t;
}
function Ki(e, t) {
- let { locale: n } = Mi(), r = Gi(e, t);
- return (0, x.useMemo)(() => new Hi(n, r), [n, r]);
+ return t && Li.getGlobalDictionaryForPackage(t) || Gi(e);
+}
+function qi(e, t) {
+ let { locale: n } = Ni(), r = Ki(e, t);
+ return (0, x.useMemo)(() => new Ui(n, r), [n, r]);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var qi = /* @__PURE__ */ new Set(["id"]), Ji = /* @__PURE__ */ new Set([
+var Ji = /* @__PURE__ */ new Set(["id"]), Yi = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), Yi = /* @__PURE__ */ new Set([
+]), Xi = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -3793,71 +3793,71 @@ var qi = /* @__PURE__ */ new Set(["id"]), Ji = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), Xi = /* @__PURE__ */ new Set([
+]), Zi = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate"
-]), Zi = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Qi = /^(data-.*)$/;
-function U(e, t = {}) {
+]), Qi = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), $i = /^(data-.*)$/;
+function H(e, t = {}) {
let { labelable: n, isLink: r, global: i, events: a = i, propNames: o } = t, s = {};
- for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (qi.has(t) || n && Ji.has(t) || r && Yi.has(t) || i && Xi.has(t) || a && (Zi.has(t) || t.endsWith("Capture") && Zi.has(t.slice(0, -7))) || o?.has(t) || Qi.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (Ji.has(t) || n && Yi.has(t) || r && Xi.has(t) || i && Zi.has(t) || a && (Qi.has(t) || t.endsWith("Capture") && Qi.has(t.slice(0, -7))) || o?.has(t) || $i.test(t)) && (s[t] = e[t]);
return s;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var $i = "default", W = "", ea = /* @__PURE__ */ new WeakMap();
-function ta(e) {
- if (an() && sn()) {
- if ($i === "default") {
- let t = L(e);
- W = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- $i = "disabled";
+var ea = "default", U = "", ta = /* @__PURE__ */ new WeakMap();
+function na(e) {
+ if (on() && cn()) {
+ if (ea === "default") {
+ let t = I(e);
+ U = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ ea = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- ea.set(e, e.style[t]), e.style[t] = "none";
+ ta.set(e, e.style[t]), e.style[t] = "none";
}
}
-function na(e) {
- if (an() && sn()) {
- if ($i !== "disabled") return;
- $i = "restoring", setTimeout(() => {
- rr(() => {
- if ($i === "restoring") {
- let t = L(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = W || ""), W = "", $i = "default";
+function ra(e) {
+ if (on() && cn()) {
+ if (ea !== "disabled") return;
+ ea = "restoring", setTimeout(() => {
+ ir(() => {
+ if (ea === "restoring") {
+ let t = I(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = U || ""), U = "", ea = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && ea.has(e)) {
- let t = ea.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), ea.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && ta.has(e)) {
+ let t = ta.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), ta.delete(e);
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function ra(e, t) {
- let n = Et(t), r = L(t);
+function ia(e, t) {
+ let n = Dt(t), r = I(t);
if (r == null || n == null) return;
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
return o && o instanceof n.HTMLMetaElement && (e === "csp-nonce" && o.nonce && (i ??= o.nonce || void 0), o.content && (i ??= o.content || void 0)), e === "csp-nonce" && (i ??= n.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0), i;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getNonce.mjs
-var ia = /* @__PURE__ */ new WeakMap();
-function aa(e) {
- let t = L(e), n = ia.get(t);
- return n ??= ra("csp-nonce", t), n !== void 0 && ia.set(t, n), n;
+var aa = /* @__PURE__ */ new WeakMap();
+function oa(e) {
+ let t = I(e), n = aa.get(t);
+ return n ??= ia("csp-nonce", t), n !== void 0 && aa.set(t, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/context.mjs
-var oa = x.createContext({ register: () => {} });
-oa.displayName = "PressResponderContext";
+var sa = x.createContext({ register: () => {} });
+sa.displayName = "PressResponderContext";
//#endregion
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function sa() {
+function ca() {
let e = (0, x.useRef)(/* @__PURE__ */ new Map()), t = (0, x.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
@@ -3884,15 +3884,15 @@ function sa() {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
-function ca(e) {
- let t = (0, x.useContext)(oa);
+function la(e) {
+ let t = (0, x.useContext)(sa);
if (t) {
let { register: n, ref: r, ...i } = t;
- e = H(i, e), n();
+ e = V(i, e), n();
}
- return Pr(t, e.ref), e;
+ return Fr(t, e.ref), e;
}
-var la = class {
+var ua = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -3905,9 +3905,9 @@ var la = class {
get shouldStopPropagation() {
return this.#e;
}
-}, ua = Symbol("linkClicked"), da = "react-aria-pressable-style", fa = "data-react-aria-pressable";
-function pa(e) {
- let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = ca(e), [m, h] = (0, x.useState)(!1), g = (0, x.useRef)({
+}, da = Symbol("linkClicked"), fa = "react-aria-pressable-style", pa = "data-react-aria-pressable";
+function ma(e) {
+ let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = la(e), [m, h] = (0, x.useState)(!1), g = (0, x.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -3917,12 +3917,12 @@ function pa(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = sa(), y = (0, x.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = ca(), y = (0, x.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new la("pressstart", t, e);
+ let n = new ua("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -3936,11 +3936,11 @@ function pa(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new la("pressend", r, e);
+ let t = new ua("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new la("press", r, e);
+ let n = new ua("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -3949,19 +3949,19 @@ function pa(e) {
i,
n,
t
- ]), S = yi(b), C = yi((0, x.useCallback)((e, t) => {
+ ]), S = bi(b), C = bi((0, x.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new la("pressup", t, e);
+ let r = new ua("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), w = (0, x.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(ga(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || na(t.target);
+ t.didFirePressStart && t.pointerType != null && b(_a(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || ra(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -3969,7 +3969,7 @@ function pa(e) {
d,
v,
b
- ]), T = yi(w);
+ ]), T = bi(w);
(0, x.useEffect)(() => {
s && g.current.isPressed && T({
currentTarget: g.current.target,
@@ -3986,39 +3986,39 @@ function pa(e) {
}, [s, o]), O = (0, x.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- Jt(n, t), o(qt(n));
+ Yt(n, t), o(Jt(n));
}
}, [s, o]), k = (0, x.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (ha(t.nativeEvent, t.currentTarget) && R(t.currentTarget, z(t))) {
- va(z(t), t.key) && t.preventDefault();
+ if (ga(t.nativeEvent, t.currentTarget) && L(t.currentTarget, R(t))) {
+ ya(R(t), t.key) && t.preventDefault();
let r = !0;
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));
let i = t.currentTarget;
- _(L(t.currentTarget), "keyup", ar((t) => {
- ha(t, i) && !t.repeat && R(i, z(t)) && e.target && C(ga(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && tn() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(I(t.currentTarget), "keyup", or((t) => {
+ ga(t, i) && !t.repeat && L(i, R(t)) && e.target && C(_a(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && nn() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if (!(t && !R(t.currentTarget, z(t))) && t && t.button === 0 && !e.isTriggeringEvent && !hn.isOpening) {
+ if (!(t && !L(t.currentTarget, R(t))) && t && t.button === 0 && !e.isTriggeringEvent && !gn.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || dn(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || fn(t.nativeEvent))) {
let e = y(t, "virtual"), r = C(t, "virtual"), i = S(t, "virtual");
D(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = C(ga(t.currentTarget, t), r), a = S(ga(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = C(_a(t.currentTarget, t), r), a = S(_a(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, D(t), T(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && ha(t, e.target)) {
- va(z(t), t.key) && t.preventDefault();
- let n = z(t), r = R(e.target, n);
- S(ga(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && ma(e.target) && R(e.target, n) && !t[ua] && (t[ua] = !0, hn(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && ga(t, e.target)) {
+ ya(R(t), t.key) && t.preventDefault();
+ let n = R(t), r = L(e.target, n);
+ S(_a(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && ha(e.target) && L(e.target, n) && !t[da] && (t[da] = !0, gn(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
} else if (t.key === "Meta" && e.metaKeyEvents?.size) {
let t = e.metaKeyEvents;
e.metaKeyEvents = void 0;
@@ -4027,39 +4027,39 @@ function pa(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !R(t.currentTarget, z(t))) return;
- if (fn(t.nativeEvent)) {
+ if (t.button !== 0 || !L(t.currentTarget, R(t))) return;
+ if (pn(t.nativeEvent)) {
e.pointerType = "virtual";
return;
}
e.pointerType = t.pointerType;
let i = !0;
if (!e.isPressed) {
- e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || ta(e.target), i = y(t, e.pointerType);
- let a = z(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(L(t.currentTarget), "pointerup", n, !1), _(L(t.currentTarget), "pointercancel", r, !1);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || na(e.target), i = y(t, e.pointerType);
+ let a = R(t);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(I(t.currentTarget), "pointerup", n, !1), _(I(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (R(t.currentTarget, z(t)) && t.button === 0) {
+ if (L(t.currentTarget, R(t)) && t.button === 0) {
if (l) {
- let n = Zt(t.target);
+ let n = Qt(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- !R(t.currentTarget, z(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && C(t, e.pointerType || t.pointerType);
+ !L(t.currentTarget, R(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && C(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(ga(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(_a(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, S(ga(e.target, t), e.pointerType, !1), E(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, S(_a(e.target, t), e.pointerType, !1), E(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (R(e.target, z(t)) && e.pointerType != null) {
+ if (L(e.target, R(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? T(t) : (xt(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? T(t) : (St(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else T(t);
@@ -4069,7 +4069,7 @@ function pa(e) {
T(e);
};
t.onDragStart = (e) => {
- R(e.currentTarget, z(e)) && T(e);
+ L(e.currentTarget, R(e)) && T(e);
};
}
return t;
@@ -4086,14 +4086,14 @@ function pa(e) {
]);
return (0, x.useEffect)(() => {
if (!f) return;
- let e = L(f.current);
- if (!e || !e.head || e.getElementById(da)) return;
+ let e = I(f.current);
+ if (!e || !e.head || e.getElementById(fa)) return;
let t = e.createElement("style");
- t.id = da;
- let n = aa(e);
+ t.id = fa;
+ let n = oa(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${fa}] {
+ [${pa}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -4101,23 +4101,23 @@ function pa(e) {
}, [f]), (0, x.useEffect)(() => {
let e = g.current;
return () => {
- d || na(e.target ?? void 0);
+ d || ra(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: H(p, k, { [fa]: !0 })
+ pressProps: V(p, k, { [pa]: !0 })
};
}
-function ma(e) {
+function ha(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function ha(e, t) {
+function ga(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof Et(i).HTMLInputElement && !ba(i, n) || i instanceof Et(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && ma(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof Dt(i).HTMLInputElement && !xa(i, n) || i instanceof Dt(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && ha(i)) && n !== "Enter");
}
-function ga(e, t) {
+function _a(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -4130,13 +4130,13 @@ function ga(e, t) {
key: t.key
};
}
-function _a(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !ma(e);
+function va(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !ha(e);
}
-function va(e, t) {
- return tn() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !ba(e, t) : _a(e);
+function ya(e, t) {
+ return nn() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !xa(e, t) : va(e);
}
-var ya = /* @__PURE__ */ new Set([
+var ba = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -4147,12 +4147,12 @@ var ya = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function ba(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : ya.has(e.type);
+function xa(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : ba.has(e.type);
}
//#endregion
//#region node_modules/react-aria/dist/private/button/useButton.mjs
-function xa(e, t) {
+function Sa(e, t) {
let { elementType: n = "button", isDisabled: r, onPress: i, onPressStart: a, onPressEnd: o, onPressUp: s, onPressChange: c, preventFocusOnPress: l, allowFocusWhenDisabled: u, onClick: d, href: f, target: p, rel: m, type: h = "button" } = e, g;
g = n === "button" ? {
type: h,
@@ -4174,7 +4174,7 @@ function xa(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = pa({
+ let { pressProps: _, isPressed: v } = ma({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -4184,12 +4184,12 @@ function xa(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = Lr(e, t);
+ }), { focusableProps: y } = Rr(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = H(y, _, U(e, { labelable: !0 }));
+ let b = V(y, _, H(e, { labelable: !0 }));
return {
isPressed: v,
- buttonProps: H(g, b, {
+ buttonProps: V(g, b, {
"aria-haspopup": e["aria-haspopup"],
"aria-expanded": e["aria-expanded"],
"aria-controls": e["aria-controls"],
@@ -4201,7 +4201,7 @@ function xa(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var Sa = class {
+var Ca = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -4226,7 +4226,7 @@ var Sa = class {
return this._currentNode;
}
set currentNode(e) {
- if (!R(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!L(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
let t = [], n = e, r = e;
for (this._currentNode = e; n && n !== this.root;) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
let e = n, i = this._doc.createTreeWalker(e, this.whatToShow, { acceptNode: this._acceptNode });
@@ -4240,7 +4240,7 @@ var Sa = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return R(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return L(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -4304,45 +4304,45 @@ var Sa = class {
return null;
}
};
-function Ca(e, t, n, r) {
- return Pt() ? new Sa(e, t, n, r) : e.createTreeWalker(t, n, r);
+function wa(e, t, n, r) {
+ return Ft() ? new Ca(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var wa = /*#__PURE__*/ x.createContext(null), Ta = "react-aria-focus-scope-restore", G = null;
-function Ea(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, x.useRef)(null), o = (0, x.useRef)(null), s = (0, x.useRef)([]), { parentNode: c } = (0, x.useContext)(wa) || {}, l = (0, x.useMemo)(() => new Ja({ scopeRef: s }), [s]);
- V(() => {
- let e = c || Ya.root;
- if (Ya.getTreeNode(e.scopeRef) && G && !La(G, e.scopeRef)) {
- let t = Ya.getTreeNode(G);
+var Ta = /*#__PURE__*/ x.createContext(null), Ea = "react-aria-focus-scope-restore", W = null;
+function Da(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, x.useRef)(null), o = (0, x.useRef)(null), s = (0, x.useRef)([]), { parentNode: c } = (0, x.useContext)(Ta) || {}, l = (0, x.useMemo)(() => new Ya({ scopeRef: s }), [s]);
+ B(() => {
+ let e = c || Xa.root;
+ if (Xa.getTreeNode(e.scopeRef) && W && !Ra(W, e.scopeRef)) {
+ let t = Xa.getTreeNode(W);
t && (e = t);
}
- e.addChild(l), Ya.addNode(l);
- }, [l, c]), V(() => {
- let e = Ya.getTreeNode(s);
+ e.addChild(l), Xa.addNode(l);
+ }, [l, c]), B(() => {
+ let e = Xa.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), V(() => {
+ }, [n]), B(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(Ta, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(Ea, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(Ta, n);
+ for (let e of t) e.removeEventListener(Ea, n);
};
- }, [t]), Ha(s, r, n), Ma(s, n), Wa(s, r, n), Va(s, i), (0, x.useEffect)(() => {
- let e = Ft(L(s.current ? s.current[0] : void 0)), t = null;
- if (Pa(e, s.current)) {
- for (let n of Ya.traverse()) n.scopeRef && Pa(e, n.scopeRef.current) && (t = n);
- t === Ya.getTreeNode(s) && (G = t.scopeRef);
- }
- }, [s]), V(() => () => {
- let e = Ya.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === G || La(s, G)) && (!e || Ya.getTreeNode(e)) && (G = e), Ya.removeTreeNode(s);
+ }, [t]), Ua(s, r, n), Na(s, n), Ga(s, r, n), Ha(s, i), (0, x.useEffect)(() => {
+ let e = It(I(s.current ? s.current[0] : void 0)), t = null;
+ if (Fa(e, s.current)) {
+ for (let n of Xa.traverse()) n.scopeRef && Fa(e, n.scopeRef.current) && (t = n);
+ t === Xa.getTreeNode(s) && (W = t.scopeRef);
+ }
+ }, [s]), B(() => () => {
+ let e = Xa.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === W || Ra(s, W)) && (!e || Xa.getTreeNode(e)) && (W = e), Xa.removeTreeNode(s);
}, [s]);
- let u = (0, x.useMemo)(() => Da(s), []), d = (0, x.useMemo)(() => ({
+ let u = (0, x.useMemo)(() => Oa(s), []), d = (0, x.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ x.createElement(wa.Provider, { value: d }, /*#__PURE__*/ x.createElement("span", {
+ return /*#__PURE__*/ x.createElement(Ta.Provider, { value: d }, /*#__PURE__*/ x.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -4352,154 +4352,154 @@ function Ea(e) {
ref: o
}));
}
-function Da(e) {
+function Oa(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Ft(L(n[0] ?? void 0)), c = n[0].previousElementSibling, l = Ka(Oa(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || It(I(n[0] ?? void 0)), c = n[0].previousElementSibling, l = qa(ka(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Pa(s, n) ? s : c;
+ l.currentNode = Fa(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && Ra(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && za(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Ft(L(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = Ka(Oa(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || It(I(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = qa(ka(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Pa(s, n) ? s : c;
+ l.currentNode = Fa(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && Ra(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && za(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = Ka(Oa(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = qa(ka(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && Ra(o, !0), o;
+ return o && za(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = Ka(Oa(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = qa(ka(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && Ra(o, !0), o;
+ return o && za(o, !0), o;
}
};
}
-function Oa(e) {
+function ka(e) {
return e[0].parentElement;
}
-function ka(e) {
- let t = Ya.getTreeNode(G);
+function Aa(e) {
+ let t = Xa.getTreeNode(W);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function Aa(e) {
- if (!e.form) return Array.from(L(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = Et(e);
+function ja(e) {
+ if (!e.form) return Array.from(I(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = Dt(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function ja(e) {
+function Ma(e) {
if (e.checked) return !0;
- let t = Aa(e);
+ let t = ja(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function Ma(e, t) {
+function Na(e, t) {
let n = (0, x.useRef)(void 0), r = (0, x.useRef)(void 0);
- V(() => {
+ B(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = L(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !ka(e) || t.isComposing) return;
- let n = Ft(a), r = e.current;
- if (!r || !Pa(n, r)) return;
- let i = Ka(Oa(r), { tabbable: !0 }, r);
+ let a = I(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Aa(e) || t.isComposing) return;
+ let n = It(a), r = e.current;
+ if (!r || !Fa(n, r)) return;
+ let i = qa(ka(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 && (Ra(o, !0), o instanceof Et(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 && (za(o, !0), o instanceof Dt(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!G || La(G, e)) && Pa(z(t), e.current) ? (G = e, n.current = z(t)) : ka(e) && !Fa(z(t), e) ? n.current ? Ra(n.current) : G && G.current && Ba(G.current) : ka(e) && (n.current = z(t));
+ (!W || Ra(W, e)) && Fa(R(t), e.current) ? (W = e, n.current = R(t)) : Aa(e) && !Ia(R(t), e) ? n.current ? za(n.current) : W && W.current && Va(W.current) : Aa(e) && (n.current = R(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = Jn(), i = (r === "virtual" || r === null) && ln() && cn(), o = Ft(a);
- if (!i && o && ka(e) && !Fa(o, e)) {
- G = e;
- let r = z(t);
- r && r.isConnected ? (n.current = r, Ra(n.current)) : G.current && Ba(G.current);
+ let r = Yn(), i = (r === "virtual" || r === null) && un() && ln(), o = It(a);
+ if (!i && o && Aa(e) && !Ia(o, e)) {
+ W = e;
+ let r = R(t);
+ r && r.isConnected ? (n.current = r, za(n.current)) : W.current && Va(W.current);
}
});
};
return a.addEventListener("keydown", o, !1), a.addEventListener("focusin", s, !1), i?.forEach((e) => e.addEventListener("focusin", s, !1)), i?.forEach((e) => e.addEventListener("focusout", c, !1)), () => {
a.removeEventListener("keydown", o, !1), a.removeEventListener("focusin", s, !1), i?.forEach((e) => e.removeEventListener("focusin", s, !1)), i?.forEach((e) => e.removeEventListener("focusout", c, !1));
};
- }, [e, t]), V(() => () => {
+ }, [e, t]), B(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function Na(e) {
- return Fa(e);
+function Pa(e) {
+ return Ia(e);
}
-function Pa(e, t) {
- return !e || !t ? !1 : t.some((t) => R(t, e));
+function Fa(e, t) {
+ return !e || !t ? !1 : t.some((t) => L(t, e));
}
-function Fa(e, t = null) {
+function Ia(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of Ya.traverse(Ya.getTreeNode(t))) if (n && Pa(e, n.current)) return !0;
+ for (let { scopeRef: n } of Xa.traverse(Xa.getTreeNode(t))) if (n && Fa(e, n.current)) return !0;
return !1;
}
-function Ia(e) {
- return Fa(e, G);
+function La(e) {
+ return Ia(e, W);
}
-function La(e, t) {
- let n = Ya.getTreeNode(t)?.parent;
+function Ra(e, t) {
+ let n = Xa.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function Ra(e, t = !1) {
+function za(e, t = !1) {
if (e != null && !t) try {
- ir(e);
+ ar(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function za(e, t = !0) {
- let n = e[0].previousElementSibling, r = Oa(e), i = Ka(r, { tabbable: t }, e);
+function Ba(e, t = !0) {
+ let n = e[0].previousElementSibling, r = ka(e), i = qa(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = Oa(e), i = Ka(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = ka(e), i = qa(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function Ba(e, t = !0) {
- Ra(za(e, t));
+function Va(e, t = !0) {
+ za(Ba(e, t));
}
-function Va(e, t) {
+function Ha(e, t) {
let n = x.useRef(t);
(0, x.useEffect)(() => {
- n.current && (G = e, !Pa(Ft(L(e.current ? e.current[0] : void 0)), G.current) && e.current && Ba(e.current)), n.current = !1;
+ n.current && (W = e, !Fa(It(I(e.current ? e.current[0] : void 0)), W.current) && e.current && Va(e.current)), n.current = !1;
}, [e]);
}
-function Ha(e, t, n) {
- V(() => {
+function Ua(e, t, n) {
+ B(() => {
if (t || n) return;
- let r = e.current, i = L(r ? r[0] : void 0), a = (t) => {
- let n = z(t);
- Pa(n, e.current) ? G = e : Na(n) || (G = null);
+ let r = e.current, i = I(r ? r[0] : void 0), a = (t) => {
+ let n = R(t);
+ Fa(n, e.current) ? W = e : Pa(n) || (W = 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));
@@ -4510,43 +4510,43 @@ function Ha(e, t, n) {
n
]);
}
-function Ua(e) {
- let t = Ya.getTreeNode(G);
+function Wa(e) {
+ let t = Xa.getTreeNode(W);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function Wa(e, t, n) {
- let r = (0, x.useRef)(typeof document < "u" ? Ft(L(e.current ? e.current[0] : void 0)) : null);
- V(() => {
- let r = e.current, i = L(r ? r[0] : void 0);
+function Ga(e, t, n) {
+ let r = (0, x.useRef)(typeof document < "u" ? It(I(e.current ? e.current[0] : void 0)) : null);
+ B(() => {
+ let r = e.current, i = I(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!G || La(G, e)) && Pa(Ft(i), e.current) && (G = e);
+ (!W || Ra(W, e)) && Fa(It(i), e.current) && (W = e);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
};
- }, [e, n]), V(() => {
- let r = L(e.current ? e.current[0] : void 0);
+ }, [e, n]), B(() => {
+ let r = I(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !ka(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Aa(e) || t.isComposing) return;
let n = r.activeElement;
- if (!Fa(n, e) || !Ua(e)) return;
- let i = Ya.getTreeNode(e);
+ if (!Ia(n, e) || !Wa(e)) return;
+ let i = Xa.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = Ka(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = qa(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 || !Fa(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !Ia(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (Fa(s, e));
- t.preventDefault(), t.stopPropagation(), s ? Ra(s, !0) : Na(a) ? Ra(a, !0) : n.blur();
+ while (Ia(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? za(s, !0) : Pa(a) ? za(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -4556,31 +4556,31 @@ function Wa(e, t, n) {
e,
t,
n
- ]), V(() => {
- let n = L(e.current ? e.current[0] : void 0);
+ ]), B(() => {
+ let n = I(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = Ya.getTreeNode(e);
+ let i = Xa.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = Ya.getTreeNode(e);
+ let r = Xa.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = Ft(n);
- if (t && i && (a && Fa(a, e) || a === n.body && Ua(e))) {
- let t = Ya.clone();
+ let i = r.nodeToRestore, a = It(n);
+ if (t && i && (a && Ia(a, e) || a === n.body && Wa(e))) {
+ let t = Xa.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- Ga(n.nodeToRestore);
+ Ka(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && Ya.getTreeNode(n.scopeRef)) {
- let e = za(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && Xa.getTreeNode(n.scopeRef)) {
+ let e = Ba(n.scopeRef.current, !0);
if (e) {
- Ga(e);
+ Ka(e);
return;
}
}
@@ -4592,21 +4592,21 @@ function Wa(e, t, n) {
};
}, [e, t]);
}
-function Ga(e) {
- e.dispatchEvent(new CustomEvent(Ta, {
+function Ka(e) {
+ e.dispatchEvent(new CustomEvent(Ea, {
bubbles: !0,
cancelable: !0
- })) && Ra(e);
+ })) && za(e);
}
-function Ka(e, t, n) {
- let r = t?.tabbable ? Gt : Wt, i = L(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = Ca(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return R(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!ja(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || Pa(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function qa(e, t, n) {
+ let r = t?.tabbable ? Kt : Gt, i = I(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = wa(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return L(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Ma(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || Fa(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var qa = class e {
+var Ja = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new Ja({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new Ya({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -4617,7 +4617,7 @@ var qa = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new Ja({ scopeRef: e });
+ let i = new Ya({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -4628,7 +4628,7 @@ var qa = 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 && Pa(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 && Fa(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);
}
@@ -4640,7 +4640,7 @@ var qa = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, Ja = class {
+}, Ya = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -4650,13 +4650,13 @@ var qa = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, Ya = new qa(), Xa = 7e3, Za = null;
-function Qa(e, t = "assertive", n = Xa) {
- Za ? Za.announce(e, t, n) : (Za = new $a(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? Za.announce(e, t, n) : setTimeout(() => {
- Za?.isAttached() && Za?.announce(e, t, n);
+}, Xa = new Ja(), Za = 7e3, Qa = null;
+function $a(e, t = "assertive", n = Za) {
+ Qa ? Qa.announce(e, t, n) : (Qa = new eo(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? Qa.announce(e, t, n) : setTimeout(() => {
+ Qa?.isAttached() && Qa?.announce(e, t, n);
}, 100));
}
-var $a = class {
+var eo = class {
constructor() {
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
border: 0,
@@ -4681,7 +4681,7 @@ var $a = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = Xa) {
+ announce(e, t = "assertive", n = Za) {
if (!this.node) return;
let r = document.createElement("div");
typeof e == "object" ? (r.setAttribute("role", "img"), r.setAttribute("aria-labelledby", e["aria-labelledby"])) : r.textContent = e, t === "assertive" ? this.assertiveLog?.appendChild(r) : this.politeLog?.appendChild(r), e !== "" && setTimeout(() => {
@@ -4694,46 +4694,46 @@ var $a = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function eo(e, t) {
+function to(e, t) {
if (!e) return !1;
let n = window.getComputedStyle(e), r = document.scrollingElement || document.documentElement, i = /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
return e === r && n.overflow !== "hidden" && (i = !0), i && t && (i = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), i;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParent.mjs
-function to(e, t) {
+function no(e, t) {
let n = e;
- for (eo(n, t) && (n = n.parentElement); n && !eo(n, t);) n = n.parentElement;
+ for (to(n, t) && (n = n.parentElement); n && !to(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function no(e, t) {
+function ro(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (eo(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (to(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function ro(e, t, n = {}) {
- e !== t && io(e, t, t.getBoundingClientRect(), n);
-}
-function io(e, t, n, r = {}) {
- let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, ee = n.left - y, j = n.right + b, te = e === d ? 0 : D + O, M = e === d ? 0 : T + E, ne = e === d ? 0 : e.offsetWidth - e.clientWidth - te, N = e === d ? 0 : e.offsetHeight - e.clientHeight - M, re = p + (f ? 0 : T) + x, P = m - (f ? 0 : E) - S - N, ie = h + (f ? 0 : D) + C, ae = g - (f ? 0 : O) - w;
- an() && sn() || u.direction === "ltr" ? ae -= ne : u.direction === "rtl" && (ie += ne);
- let oe = k < re || A > P, se = ee < ie || j > ae;
- if (oe && i === "start") o += k - re;
- else if (oe && i === "center") o += (k + A) / 2 - (re + P) / 2;
- else if (oe && i === "end") o += A - P;
- else if (oe && i === "nearest") {
- let e = k - re, t = A - P;
+function io(e, t, n = {}) {
+ e !== t && ao(e, t, t.getBoundingClientRect(), n);
+}
+function ao(e, t, n, r = {}) {
+ let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, ee = n.left - y, j = n.right + b, te = e === d ? 0 : D + O, M = e === d ? 0 : T + E, ne = e === d ? 0 : e.offsetWidth - e.clientWidth - te, N = e === d ? 0 : e.offsetHeight - e.clientHeight - M, re = p + (f ? 0 : T) + x, ie = m - (f ? 0 : E) - S - N, ae = h + (f ? 0 : D) + C, oe = g - (f ? 0 : O) - w;
+ on() && cn() || u.direction === "ltr" ? oe -= ne : u.direction === "rtl" && (ae += ne);
+ let se = k < re || A > ie, ce = ee < ae || j > oe;
+ if (se && i === "start") o += k - re;
+ else if (se && i === "center") o += (k + A) / 2 - (re + ie) / 2;
+ else if (se && i === "end") o += A - ie;
+ else if (se && i === "nearest") {
+ let e = k - re, t = A - ie;
o += Math.abs(e) <= Math.abs(t) ? e : t;
}
- if (se && a === "start") s += ee - ie;
- else if (se && a === "center") s += (ee + j) / 2 - (ie + ae) / 2;
- else if (se && a === "end") s += j - ae;
- else if (se && a === "nearest") {
- let e = ee - ie, t = j - ae;
+ if (ce && a === "start") s += ee - ae;
+ else if (ce && a === "center") s += (ee + j) / 2 - (ae + oe) / 2;
+ else if (ce && a === "end") s += j - oe;
+ else if (ce && a === "nearest") {
+ let e = ee - ae, t = j - oe;
s += Math.abs(e) <= Math.abs(t) ? e : t;
}
e.scrollTo({
@@ -4741,7 +4741,7 @@ function io(e, t, n, r = {}) {
top: o
});
}
-function ao(e, t = {}) {
+function oo(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -4754,47 +4754,47 @@ function ao(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = no(e, !0);
- for (let t of i) ro(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = ro(e, !0);
+ for (let t of i) io(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? no(n, !0) : [];
- for (let e of i) ro(e, n, {
+ i = n ? ro(n, !0) : [];
+ for (let e of i) io(e, n, {
block: "center",
inline: "center"
});
- for (let t of no(e, !0)) ro(t, e);
+ for (let t of ro(e, !0)) io(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var oo = 0, so = /* @__PURE__ */ new Map();
-function co(e) {
+var so = 0, co = /* @__PURE__ */ new Map();
+function lo(e) {
let [t, n] = (0, x.useState)();
- return V(() => {
+ return B(() => {
if (!e) return;
- let t = so.get(e);
+ let t = co.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${oo++}`;
+ let r = `react-aria-description-${so++}`;
n(r);
let i = document.createElement("div");
i.id = r, i.style.display = "none", i.textContent = e, document.body.appendChild(i), t = {
refCount: 0,
element: i
- }, so.set(e, t);
+ }, co.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), so.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), co.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function lo(e, t, n) {
- let r = yi((e) => {
+function uo(e, t, n) {
+ let r = bi((e) => {
n && !e.defaultPrevented && n(t);
});
(0, x.useEffect)(() => {
@@ -4806,21 +4806,21 @@ function lo(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function uo(e, t, n) {
+function fo(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- V(() => {
+ B(() => {
if (r === "native" && n?.current && "setCustomValidity" in n.current && !n.current.disabled) {
let e = t.realtimeValidation.isInvalid ? t.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
- n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(po(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(mo(n.current));
}
});
- let a = (0, x.useRef)(!1), o = yi(() => {
+ let a = (0, x.useRef)(!1), o = bi(() => {
a.current || t.resetValidation();
- }), s = yi((e) => {
+ }), s = bi((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && mo(r) === n.current && (i ? i() : n.current?.focus(), Yn("keyboard")), e.preventDefault();
- }), c = yi(() => {
+ !e.defaultPrevented && n && r && ho(r) === n.current && (i ? i() : n.current?.focus(), Xn("keyboard")), e.preventDefault();
+ }), c = bi(() => {
t.commitValidation();
});
(0, x.useEffect)(() => {
@@ -4828,13 +4828,13 @@ function uo(e, t, n) {
if (!e) return;
let t = e.form, r = t?.reset;
return t && (t.reset = () => {
- a.current = !window.event || window.event.type === "message" && z(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
+ a.current = !window.event || window.event.type === "message" && R(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
}), e.addEventListener("invalid", s), e.addEventListener("change", c), t?.addEventListener("reset", o), () => {
e.removeEventListener("invalid", s), e.removeEventListener("change", c), t?.removeEventListener("reset", o), t && (t.reset = r);
};
}, [n, r]);
}
-function fo(e) {
+function po(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -4850,14 +4850,14 @@ function fo(e) {
valid: t.valid
};
}
-function po(e) {
+function mo(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: fo(e),
+ validationDetails: po(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function mo(e) {
+function ho(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -4866,16 +4866,16 @@ function mo(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSlot.mjs
-function ho(e = !0) {
+function go(e = !0) {
let [t, n] = (0, x.useState)(e), r = (0, x.useRef)(!1), i = (0, x.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return V(() => {
+ return B(() => {
r.current || n(!1);
}, []), [i, t];
}
-function go(e = !0) {
- let t = dr(), [n, r] = ho(e);
+function _o(e = !0) {
+ let t = fr(), [n, r] = go(e);
return {
id: r ? t : void 0,
ref: n
@@ -4883,7 +4883,7 @@ function go(e = !0) {
}
//#endregion
//#region node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var _o = {
+var vo = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -4895,18 +4895,18 @@ var _o = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, vo = {
- ..._o,
+}, yo = {
+ ...vo,
customError: !0,
valid: !1
-}, yo = {
+}, bo = {
isInvalid: !1,
- validationDetails: _o,
+ validationDetails: vo,
validationErrors: []
-}, bo = (0, x.createContext)({}), xo = "__reactAriaFormValidationState";
-function So(e) {
+}, xo = (0, x.createContext)({}), So = "__reactAriaFormValidationState";
+function Co(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[xo];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[So];
return {
realtimeValidation: t,
displayValidation: n,
@@ -4915,71 +4915,71 @@ function So(e) {
commitValidation: a
};
}
- return Co(e);
+ return wo(e);
}
-function Co(e) {
+function wo(e) {
let { isInvalid: t, validationState: n, name: r, value: i, builtinValidation: a, validate: o, validationBehavior: s = "aria" } = e;
n && (t ||= n === "invalid");
let c = t === void 0 ? null : {
isInvalid: t,
validationErrors: [],
- validationDetails: vo
- }, l = (0, x.useMemo)(() => !o || i == null ? null : Eo(To(o, i)), [o, i]);
+ validationDetails: yo
+ }, l = (0, x.useMemo)(() => !o || i == null ? null : Do(Eo(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, x.useContext)(bo), d = (0, x.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => wo(u[e])) : wo(u[r]) : [], [u, r]), [f, p] = (0, x.useState)(u), [m, h] = (0, x.useState)(!1);
+ let u = (0, x.useContext)(xo), d = (0, x.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => To(u[e])) : To(u[r]) : [], [u, r]), [f, p] = (0, x.useState)(u), [m, h] = (0, x.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, x.useMemo)(() => Eo(m ? [] : d), [m, d]), _ = (0, x.useRef)(yo), [v, y] = (0, x.useState)(yo), b = (0, x.useRef)(yo), S = () => {
+ let g = (0, x.useMemo)(() => Do(m ? [] : d), [m, d]), _ = (0, x.useRef)(bo), [v, y] = (0, x.useState)(bo), b = (0, x.useRef)(bo), S = () => {
if (!C) return;
w(!1);
let e = l || a || _.current;
- Do(e, b.current) || (b.current = e, y(e));
+ Oo(e, b.current) || (b.current = e, y(e));
}, [C, w] = (0, x.useState)(!1);
return (0, x.useEffect)(S), {
- realtimeValidation: c || g || l || a || yo,
+ realtimeValidation: c || g || l || a || bo,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !Do(v, e) ? y(e) : _.current = e;
+ s === "aria" && !Oo(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = yo;
- Do(e, b.current) || (b.current = e, y(e)), s === "native" && w(!1), h(!0);
+ let e = bo;
+ Oo(e, b.current) || (b.current = e, y(e)), s === "native" && w(!1), h(!0);
},
commitValidation() {
s === "native" && w(!0), h(!0);
}
};
}
-function wo(e) {
+function To(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function To(e, t) {
+function Eo(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return wo(n);
+ if (n && typeof n != "boolean") return To(n);
}
return [];
}
-function Eo(e) {
+function Do(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: vo
+ validationDetails: yo
} : null;
}
-function Do(e, t) {
+function Oo(e, t) {
return e === t || !!e && !!t && e.isInvalid === t.isInvalid && e.validationErrors.length === t.validationErrors.length && e.validationErrors.every((e, n) => e === t.validationErrors[n]) && Object.entries(e.validationDetails).every(([e, n]) => t.validationDetails[e] === n);
}
//#endregion
//#region node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function Oo(e, t, n) {
- let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = So({
+function ko(e, t, n) {
+ let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = Co({
...e,
value: t.isSelected
}), { isInvalid: S, validationErrors: C, validationDetails: w } = b.displayValidation;
- uo(e, b, n);
+ fo(e, b, n);
let T = (e) => {
- e.stopPropagation(), t.setSelected(z(e).checked);
- }, { pressProps: E, isPressed: D } = pa({
+ e.stopPropagation(), t.setSelected(R(e).checked);
+ }, { pressProps: E, isPressed: D } = ma({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -4987,7 +4987,7 @@ function Oo(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [O, k] = (0, x.useState)(!1), { pressProps: A } = pa({
+ }), [O, k] = (0, x.useState)(!1), { pressProps: A } = ma({
onPressStart(e) {
if (e.pointerType === "keyboard" || e.pointerType === "virtual") {
e.continuePropagation();
@@ -5016,16 +5016,16 @@ function Oo(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [xo]: i } = e, { commitValidation: a } = i || b;
+ let { [So]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: ee } = Lr(e, n), j = H(E, ee), te = U(e, { labelable: !0 });
- lo(n, t.defaultSelected, t.setSelected);
- let M = go(), ne = go();
+ }), { focusableProps: ee } = Rr(e, n), j = V(E, ee), te = H(e, { labelable: !0 });
+ uo(n, t.defaultSelected, t.setSelected);
+ let M = _o(), ne = _o();
return {
- labelProps: H(A, { onClick: (e) => e.preventDefault() }),
- inputProps: H(te, {
+ labelProps: V(A, { onClick: (e) => e.preventDefault() }),
+ inputProps: V(te, {
checked: t.isSelected,
"aria-required": l && u === "aria" || void 0,
required: l && u === "native",
@@ -5059,12 +5059,12 @@ function Oo(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function ko(e, t, n) {
- let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = Oo(e, t, n), { isIndeterminate: m } = e;
+function Ao(e, t, n) {
+ let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = ko(e, t, n), { isIndeterminate: m } = e;
return (0, x.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
- labelProps: H(r, (0, x.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
+ labelProps: V(r, (0, x.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
inputProps: i,
descriptionProps: a,
errorMessageProps: o,
@@ -5079,18 +5079,18 @@ function ko(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/utils.mjs
-var Ao = /* @__PURE__ */ new WeakMap();
+var jo = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function jo(e) {
+function Mo(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = dr(t);
- let o = dr(), s = {};
+ t = fr(t);
+ let o = fr(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = xi({
+ let c = Si({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -5102,19 +5102,19 @@ function jo(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function Mo(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = jo(e), s = pr([
+function No(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = Mo(e), s = mr([
!!t,
!!n,
r,
i
- ]), c = pr([
+ ]), c = mr([
!!t,
!!n,
r,
i
]);
- return o = H(o, { "aria-describedby": [
+ return o = V(o, { "aria-describedby": [
s,
c,
e["aria-describedby"]
@@ -5127,26 +5127,26 @@ function Mo(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function No(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, x.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = sa(), c = (0, x.useCallback)((e) => {
- R(e.currentTarget, z(e)) && a.current.isFocusWithin && !R(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function Po(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, x.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = ca(), c = (0, x.useCallback)((e) => {
+ L(e.currentTarget, R(e)) && a.current.isFocusWithin && !L(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = Yt(c), u = (0, x.useCallback)((e) => {
- if (!R(e.currentTarget, z(e))) return;
- let t = z(e), n = L(t), s = Ft(n);
+ ]), l = Xt(c), u = (0, x.useCallback)((e) => {
+ if (!L(e.currentTarget, R(e))) return;
+ let t = R(e), n = I(t), s = It(n);
if (!a.current.isFocusWithin && s === t) {
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
let t = e.currentTarget;
o(n, "focus", (e) => {
- let r = z(e);
- if (a.current.isFocusWithin && !R(t, r)) {
+ let r = R(e);
+ if (a.current.isFocusWithin && !L(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- Jt(e, t);
- let i = qt(e);
+ Yt(e, t);
+ let i = Jt(e);
c(i);
}
}, { capture: !0 });
@@ -5168,14 +5168,14 @@ function No(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var Po = typeof document < "u" ? x.useInsertionEffect ?? x.useLayoutEffect : () => {};
-function Fo(e, t, n) {
+var Fo = typeof document < "u" ? x.useInsertionEffect ?? x.useLayoutEffect : () => {};
+function Io(e, t, n) {
let [r, i] = (0, x.useState)(e || t), a = (0, x.useRef)(r), o = (0, x.useRef)(e !== void 0), s = e !== void 0;
(0, x.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- Po(() => {
+ Fo(() => {
a.current = c;
});
let [, l] = (0, x.useReducer)(() => ({}), {});
@@ -5186,8 +5186,8 @@ function Fo(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function Io(e = {}) {
- let { isReadOnly: t } = e, [n, r] = Fo(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, x.useState)(n);
+function Lo(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = Io(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, x.useState)(n);
function a(e) {
t || r(e);
}
@@ -5203,26 +5203,26 @@ function Io(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function K(e, t, n) {
- let r = Io({
+function G(e, t, n) {
+ let r = Lo({
isReadOnly: e.isReadOnly || t.isReadOnly,
isSelected: t.isSelected(e.value),
defaultSelected: t.defaultValue.includes(e.value),
onChange(n) {
n ? t.addValue(e.value) : t.removeValue(e.value), e.onChange && e.onChange(n);
}
- }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = Ao.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = jo.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = So({
+ let { realtimeValidation: l } = Co({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, x.useRef)(yo), d = () => {
+ }), u = (0, x.useRef)(bo), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, x.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = ko({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = Ao({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -5230,7 +5230,7 @@ function K(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [xo]: {
+ [So]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -5254,12 +5254,12 @@ function K(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function Lo(e, t = -Infinity, n = Infinity) {
+function Ro(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
//#endregion
//#region node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var Ro = {
+var zo = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -5271,40 +5271,40 @@ var Ro = {
width: "1px",
whiteSpace: "nowrap"
};
-function zo(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, x.useState)(!1), { focusWithinProps: a } = No({
+function Bo(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, x.useState)(!1), { focusWithinProps: a } = Po({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, x.useMemo)(() => r ? t : t ? {
- ...Ro,
+ ...zo,
...t
- } : Ro, [r]);
+ } : zo, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function Bo(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = zo(e);
- return /*#__PURE__*/ x.createElement(n, H(a, o), t);
+function Vo(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = Bo(e);
+ return /*#__PURE__*/ x.createElement(n, V(a, o), t);
}
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function Vo(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = Fo(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Lr(e, t), d = So({
+function Ho(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = Io(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Rr(e, t), d = Co({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = Mo({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = No({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = U(e, { labelable: !0 }), b = {
+ }), y = H(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [S] = (0, x.useState)(c);
- return lo(t, e.defaultValue ?? S, l), uo(e, d, t), {
+ return uo(t, e.defaultValue ?? S, l), fo(e, d, t), {
labelProps: h,
- inputProps: H(y, n === "input" ? b : void 0, {
+ inputProps: V(y, n === "input" ? b : void 0, {
disabled: r,
readOnly: a,
required: i && s === "native",
@@ -5316,7 +5316,7 @@ function Vo(e, t) {
"aria-haspopup": e["aria-haspopup"],
"aria-controls": e["aria-controls"],
value: c,
- onChange: (e) => l(z(e).value),
+ onChange: (e) => l(R(e).value),
autoComplete: e.autoComplete,
autoCapitalize: e.autoCapitalize,
maxLength: e.maxLength,
@@ -5349,42 +5349,42 @@ function Vo(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var Ho = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function Uo(e) {
+var Uo = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function Wo(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var Wo = /* @__PURE__ */ new WeakMap(), Go = [];
-function Ko(e, t) {
- let n = Et(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Ho, 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 Go = /* @__PURE__ */ new WeakMap(), Ko = [];
+function qo(e, t) {
+ let n = Dt(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Uo, 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 (Pt()) {
+ if (Ft()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; At(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; jt(e) && e !== t;) u.add(e), e = e.host.getRootNode();
}
}
let d = (e) => {
for (let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) o.add(t);
let t = (e) => {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
- for (let t of o) if (R(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (L(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = Ca(L(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = wa(I(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 = Wo.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), Wo.set(e, t + 1));
+ let t = Go.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), Go.set(e, t + 1));
};
- Go.length && Go[Go.length - 1].disconnect(), d(i);
+ Ko.length && Ko[Ko.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) => R(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Uo(e) ? o.add(e) : e instanceof Element && d(e);
- if (Pt()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => L(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Wo(e) ? o.add(e) : e instanceof Element && d(e);
+ if (Ft()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -5397,11 +5397,11 @@ function Ko(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (Pt()) for (let e of u) {
+ if (Ft()) 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) => R(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Uo(e) ? o.add(e) : e instanceof Element && d(e);
- if (Pt()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => L(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Wo(e) ? o.add(e) : e instanceof Element && d(e);
+ if (Ft()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -5427,59 +5427,59 @@ function Ko(e, t) {
p.disconnect();
}
};
- return Go.push(h), () => {
- if (p.disconnect(), Pt()) for (let e of m) e.disconnect();
+ return Ko.push(h), () => {
+ if (p.disconnect(), Ft()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = Wo.get(e);
- t != null && (t === 1 ? (l(e, !1), Wo.delete(e)) : Wo.set(e, t - 1));
+ let t = Go.get(e);
+ t != null && (t === 1 ? (l(e, !1), Go.delete(e)) : Go.set(e, t - 1));
}
- h === Go[Go.length - 1] ? (Go.pop(), Go.length && Go[Go.length - 1].observe()) : Go.splice(Go.indexOf(h), 1);
+ h === Ko[Ko.length - 1] ? (Ko.pop(), Ko.length && Ko[Ko.length - 1].observe()) : Ko.splice(Ko.indexOf(h), 1);
};
}
-function qo(e) {
- let t = Go[Go.length - 1];
+function Jo(e) {
+ let t = Ko[Ko.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/utils.mjs
-var Jo = /* @__PURE__ */ new WeakMap();
-function Yo(e) {
+var Yo = /* @__PURE__ */ new WeakMap();
+function Xo(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Xo(e, t) {
- let n = Jo.get(e);
+function Zo(e, t) {
+ let n = Yo.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${Yo(t)}`;
+ return `${n.id}-option-${Xo(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function Zo(e) {
- return on() ? e.altKey : e.ctrlKey;
+function Qo(e) {
+ return sn() ? e.altKey : e.ctrlKey;
}
-function Qo(e, t) {
+function $o(e, t) {
let n = `[data-key="${CSS.escape(String(t))}"]`, r = e.current?.dataset.collection;
return r && (n = `[data-collection="${CSS.escape(r)}"]${n}`), e.current?.querySelector(n);
}
-var $o = /* @__PURE__ */ new WeakMap();
-function es(e) {
- let t = dr();
- return $o.set(e, t), t;
-}
+var es = /* @__PURE__ */ new WeakMap();
function ts(e) {
- return $o.get(e);
+ let t = fr();
+ return es.set(e, t), t;
+}
+function ns(e) {
+ return es.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var ns = class {
+var rs = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : Qo(this.ref, e);
+ let n = e == null ? null : $o(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -5505,12 +5505,12 @@ var ns = class {
height: e?.clientHeight ?? 0
};
}
-}, rs = class {
+}, is = 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 ns(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 ns(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 rs(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 rs(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -5550,14 +5550,14 @@ var ns = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = Qo(this.ref, e);
+ let t = this.getNextKey(e), n = $o(this.ref, e);
if (t != null) {
- let e = Qo(this.ref, t);
+ let e = $o(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = Qo(this.ref, r);
+ let e = $o(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -5591,7 +5591,7 @@ var ns = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !eo(t)) return this.getFirstKey();
+ if (t && !to(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -5606,7 +5606,7 @@ var ns = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !eo(t)) return this.getLastKey();
+ if (t && !to(t)) return this.getLastKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.min(this.layoutDelegate.getContentSize().width, n.x - n.width + this.layoutDelegate.getVisibleRect().width);
@@ -5629,184 +5629,184 @@ var ns = class {
}
return null;
}
-}, is = {};
-is = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, as = {};
+as = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var as = {};
-as = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var os = {};
+os = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var os = {};
-os = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var ss = {};
+ss = { 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 ss = {};
-ss = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var cs = {};
+cs = { 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 cs = {};
-cs = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var ls = {};
+ls = { 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 ls = {};
-ls = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var us = {};
+us = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var us = {};
-us = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var ds = {};
+ds = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var ds = {};
-ds = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var fs = {};
+fs = { 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 fs = {};
-fs = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var ps = {};
+ps = { 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 ps = {};
-ps = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var ms = {};
+ms = { 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 ms = {};
-ms = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var hs = {};
+hs = { 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 hs = {};
-hs = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var gs = {};
+gs = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var gs = {};
-gs = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var _s = {};
+_s = { 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 _s = {};
-_s = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var vs = {};
+vs = { 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 vs = {};
-vs = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var ys = {};
+ys = { 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 ys = {};
-ys = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var bs = {};
+bs = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var bs = {};
-bs = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var xs = {};
+xs = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var xs = {};
-xs = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var Ss = {};
+Ss = { 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 Ss = {};
-Ss = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var Cs = {};
+Cs = { 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 Cs = {};
-Cs = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var ws = {};
+ws = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var ws = {};
-ws = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var Ts = {};
+Ts = { 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 Ts = {};
-Ts = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var Es = {};
+Es = { 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 Es = {};
-Es = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var Ds = {};
+Ds = { 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 Ds = {};
-Ds = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var Os = {};
+Os = { 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 Os = {};
-Os = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var ks = {};
+ks = { 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 ks = {};
-ks = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var As = {};
+As = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var As = {};
-As = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var js = {};
+js = { 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 js = {};
-js = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var Ms = {};
+Ms = { 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 Ms = {};
-Ms = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var Ns = {};
+Ns = { 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 Ns = {};
-Ns = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var Ps = {};
+Ps = { 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 Ps = {};
-Ps = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var Fs = {};
+Fs = { 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 Fs = {};
-Fs = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var Is = {};
+Is = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var Is = {};
-Is = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var Ls = {};
+Ls = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var Ls = {};
-Ls = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var Rs = {};
+Rs = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var Rs = {};
-Rs = {
- "ar-AE": is,
- "bg-BG": as,
- "cs-CZ": os,
- "da-DK": ss,
- "de-DE": cs,
- "el-GR": ls,
- "en-US": us,
- "es-ES": ds,
- "et-EE": fs,
- "fi-FI": ps,
- "fr-FR": ms,
- "he-IL": hs,
- "hr-HR": gs,
- "hu-HU": _s,
- "it-IT": vs,
- "ja-JP": ys,
- "ko-KR": bs,
- "lt-LT": xs,
- "lv-LV": Ss,
- "nb-NO": Cs,
- "nl-NL": ws,
- "pl-PL": Ts,
- "pt-BR": Es,
- "pt-PT": Ds,
- "ro-RO": Os,
- "ru-RU": ks,
- "sk-SK": As,
- "sl-SI": js,
- "sr-SP": Ms,
- "sv-SE": Ns,
- "tr-TR": Ps,
- "uk-UA": Fs,
- "zh-CN": Is,
- "zh-TW": Ls
+var zs = {};
+zs = {
+ "ar-AE": as,
+ "bg-BG": os,
+ "cs-CZ": ss,
+ "da-DK": cs,
+ "de-DE": ls,
+ "el-GR": us,
+ "en-US": ds,
+ "es-ES": fs,
+ "et-EE": ps,
+ "fi-FI": ms,
+ "fr-FR": hs,
+ "he-IL": gs,
+ "hr-HR": _s,
+ "hu-HU": vs,
+ "it-IT": ys,
+ "ja-JP": bs,
+ "ko-KR": xs,
+ "lt-LT": Ss,
+ "lv-LV": Cs,
+ "nb-NO": ws,
+ "nl-NL": Ts,
+ "pl-PL": Es,
+ "pt-BR": Ds,
+ "pt-PT": Os,
+ "ro-RO": ks,
+ "ru-RU": As,
+ "sk-SK": js,
+ "sl-SI": Ms,
+ "sr-SP": Ns,
+ "sv-SE": Ps,
+ "tr-TR": Fs,
+ "uk-UA": Is,
+ "zh-CN": Ls,
+ "zh-TW": Rs
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var zs = 500;
-function Bs(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = zs, accessibilityDescription: s } = e, c = (0, x.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = sa(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = pa({
+var Bs = 500;
+function Vs(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Bs, accessibilityDescription: s } = e, c = (0, x.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = ca(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = ma({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -5814,12 +5814,12 @@ function Bs(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), L(e.target).activeElement !== e.target && xt(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), I(e.target).activeElement !== e.target && St(e.target), a && a({
...e,
type: "longpress"
}), c.current = void 0;
}, o), e.pointerType === "touch" && l(e.target, "contextmenu", (e) => e.preventDefault(), { once: !0 });
- let t = Et(e.target);
+ let t = Dt(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -5834,12 +5834,12 @@ function Bs(e) {
});
}
});
- return { longPressProps: H(f, co(a && !t ? s : void 0)) };
+ return { longPressProps: V(f, lo(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function Vs(e) {
- let { onContextMenu: t } = e, n = (0, x.useRef)(!1), { longPressProps: r } = Bs({
+function Hs(e) {
+ let { onContextMenu: t } = e, n = (0, x.useRef)(!1), { longPressProps: r } = Vs({
onLongPressStart() {
n.current = !1;
},
@@ -5851,7 +5851,7 @@ function Vs(e) {
});
}
});
- return t ? { contextMenuProps: H(an() ? r : {}, {
+ return t ? { contextMenuProps: V(on() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -5862,7 +5862,7 @@ function Vs(e) {
});
},
onKeyDown(e) {
- if (tn() && e.ctrlKey && e.key === "Enter") {
+ if (nn() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -5882,13 +5882,13 @@ function Vs(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var Hs = /* @__PURE__ */ new WeakMap();
-function Us(e) {
+var Us = /* @__PURE__ */ new WeakMap();
+function Ws(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, x.useEffect)(() => !n || r === null ? void 0 : jt(It(t.current), "scroll", (e) => {
- let n = z(e);
- if (!t.current || n instanceof Node && !R(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || Hs.get(t.current);
+ (0, x.useEffect)(() => !n || r === null ? void 0 : Mt(Lt(t.current), "scroll", (e) => {
+ let n = R(e);
+ if (!t.current || n instanceof Node && !L(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || Us.get(t.current);
i && i();
}, !0), [
n,
@@ -5898,14 +5898,14 @@ function Us(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function Ws(e, t, n) {
+function Gs(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, x.useEffect)(() => {
- n && n.current && Hs.set(n.current, t.close);
+ n && n.current && Us.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = dr();
+ let o = fr();
return {
triggerProps: {
"aria-haspopup": a,
@@ -5918,14 +5918,14 @@ function Ws(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function Gs(e) {
+function Ks(e) {
return e && e.__esModule ? e.default : e;
}
-function Ks(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = dr(), { triggerProps: s, overlayProps: c } = Ws({ type: r }, t, n), l = (e, n, r = "first") => {
+function qs(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = fr(), { triggerProps: s, overlayProps: c } = Gs({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = Mr({
+ }, { keyboardProps: u } = Nr({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -5937,7 +5937,7 @@ function Ks(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = Ki(Gs(Rs), "@react-aria/menu"), { longPressProps: f } = Bs({
+ }), d = qi(Ks(zs), "@react-aria/menu"), { longPressProps: f } = Vs({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -5949,14 +5949,14 @@ function Ks(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (xt(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (St(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (xt(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (St(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = Vs({ onContextMenu(e) {
+ let { contextMenuProps: m } = Hs({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -5966,7 +5966,7 @@ function Ks(e, t, n) {
(0, x.useEffect)(() => {
if (t.isOpen && a === "contextMenu") {
let e = (e) => {
- (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && z(e) === document.body && t.close();
+ (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && R(e) === document.body && t.close();
};
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
}
@@ -6001,8 +6001,8 @@ function Ks(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var qs = 1e3;
-function Js(e) {
+var Js = 1e3;
+function Ys(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, x.useRef)({
search: "",
timeout: void 0
@@ -6021,12 +6021,12 @@ function Js(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, qs);
+ }, Js);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = Ys(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !R(e.currentTarget, z(e)) || i.current.search.length === 0 && a === " ")) {
+ let a = Xs(e.key);
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !L(e.currentTarget, R(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
if (a ??= t.getKeyForSearch(i.current.search), a != null) n.setFocusedKey(a), r && r(a), e.preventDefault(), "continuePropagation" in e || e.stopPropagation();
@@ -6037,34 +6037,34 @@ function Js(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, qs);
+ }, Js);
}
} : void 0
} };
}
-function Ys(e) {
+function Xs(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function Xs(e, t) {
+function Zs(e, t) {
let n = (0, x.useRef)(!0), r = (0, x.useRef)(null);
- V(() => (n.current = !0, () => {
+ B(() => (n.current = !0, () => {
n.current = !1;
- }), []), V(() => {
+ }), []), B(() => {
n.current ? n.current = !1 : (!r.current || t.some((e, t) => !Object.is(e, r[t]))) && e(), r.current = t;
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function Zs(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 } = Mi(), _ = mn(), v = (e, n, i) => {
+function Qs(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 } = Ni(), _ = hn(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !Zo(e)) {
- (0, Kr.flushSync)(() => {
+ if (t.isLink(n) && m === "selection" && l && !Qo(e)) {
+ (0, qr.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = Qo(r, n), o = t.getItemProps(n);
+ let a = $o(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -6076,7 +6076,7 @@ function Zs(e) {
t.extendSelection(n);
return;
}
- if (l && !Zo(e)) {
+ if (l && !Qo(e)) {
t.replaceSelection(n);
return;
}
@@ -6103,9 +6103,9 @@ function Zs(e) {
}, S = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, hi(e));
+ let r = n.getFirstKey(t.focusedKey, gi(e));
if (t.setFocusedKey(r), r != null) {
- if (hi(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (gi(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -6137,9 +6137,9 @@ function Zs(e) {
}, T = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, hi(e));
+ let r = n.getLastKey(t.focusedKey, gi(e));
if (t.setFocusedKey(r), r != null) {
- if (hi(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (gi(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -6176,12 +6176,12 @@ function Zs(e) {
return !1;
}, A = () => {
if (!f && r.current) {
- let e = Ka(r.current, { tabbable: !0 }), t, n;
+ let e = qa(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = Ft();
- t && (!Lt(t) || i && !Gt(i)) && xt(t);
+ let i = It();
+ t && (!Rt(t) || i && !Kt(i)) && St(t);
}
return {
shouldContinuePropagation: !0,
@@ -6191,11 +6191,11 @@ function Zs(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), j = (e, t) => ({
- [tn() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [nn() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [tn() ? e + "+Alt" : e + "+Control"]: t,
+ [nn() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: te } = Mr({
+ }), { keyboardProps: te } = Nr({
shortcuts: {
...j("ArrowDown", y),
...j("ArrowUp", b),
@@ -6205,7 +6205,7 @@ function Zs(e) {
...j("PageUp", D)
},
allowRepeats: !0
- }), { keyboardProps: M } = Mr({ shortcuts: {
+ }), { keyboardProps: M } = Nr({ shortcuts: {
...j("Home", S),
...j("End", T),
"Mod+A": O,
@@ -6216,7 +6216,7 @@ function Zs(e) {
top: 0,
left: 0
});
- bi(p, "scroll", () => {
+ xi(p, "scroll", () => {
ne.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -6224,11 +6224,11 @@ function Zs(e) {
});
let N = (e) => {
if (t.isFocused) {
- R(e.currentTarget, z(e)) || t.setFocused(!1);
+ L(e.currentTarget, R(e)) || t.setFocused(!1);
return;
}
- if (!R(e.currentTarget, z(e))) return;
- let i = Jn();
+ if (!L(e.currentTarget, R(e))) return;
+ let i = Yn();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -6239,32 +6239,32 @@ function Zs(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 = ne.current.top, p.current.scrollLeft = ne.current.left);
if (t.focusedKey != null && p.current) {
- let e = Qo(r, t.focusedKey);
- e instanceof HTMLElement && (!Lt(e) && !d && xt(e), (i === "keyboard" || h && i === "virtual") && ao(e, { containingElement: r.current }));
+ let e = $o(r, t.focusedKey);
+ e instanceof HTMLElement && (!Rt(e) && !d && St(e), (i === "keyboard" || h && i === "virtual") && oo(e, { containingElement: r.current }));
}
}, re = (e) => {
- R(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
- }, P = (0, x.useRef)(!1);
- bi(r, ui, d ? (e) => {
+ L(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ }, ie = (0, x.useRef)(!1);
+ xi(r, di, d ? (e) => {
let { detail: n } = e;
- e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (P.current = !0);
+ e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (ie.current = !0);
} : void 0);
- let ie = n.getFirstKey?.() ?? null;
- Xs(() => {
- if (P.current) {
- if (ie == null) {
- let e = Ft();
- di(r.current), pi(e, null), t.collection.size > 0 && (P.current = !1);
- } else t.setFocusedKey(ie), P.current = !1;
- }
- }, [ie, t.collection.size]), Xs(() => {
- t.collection.size > 0 && (P.current = !1);
- }, [t.focusedKey]), bi(r, li, d ? (e) => {
+ let ae = n.getFirstKey?.() ?? null;
+ Zs(() => {
+ if (ie.current) {
+ if (ae == null) {
+ let e = It();
+ fi(r.current), mi(e, null), t.collection.size > 0 && (ie.current = !1);
+ } else t.setFocusedKey(ae), ie.current = !1;
+ }
+ }, [ae, t.collection.size]), Zs(() => {
+ t.collection.size > 0 && (ie.current = !1);
+ }, [t.focusedKey]), xi(r, ui, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
- let ae = (0, x.useRef)(i), oe = (0, x.useRef)(!1);
+ let oe = (0, x.useRef)(i), se = (0, x.useRef)(!1);
(0, x.useEffect)(() => {
- if (ae.current) {
+ if (oe.current) {
let e = null;
i === "first" && (e = n.getFirstKey?.() ?? null), i === "last" && (e = n.getLastKey?.() ?? null);
let a = t.selectedKeys;
@@ -6274,53 +6274,53 @@ function Zs(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && ir(r.current), t.collection.size > 0 && (ae.current = !1, oe.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && ar(r.current), t.collection.size > 0 && (oe.current = !1, se.current = !0);
}
});
- let se = (0, x.useRef)(t.focusedKey), ce = (0, x.useRef)(null);
+ let ce = (0, x.useRef)(t.focusedKey), le = (0, x.useRef)(null);
(0, x.useEffect)(() => {
- if (t.isFocused && t.focusedKey != null && (t.focusedKey !== se.current || oe.current) && p.current && r.current) {
- let e = Jn(), n = Qo(r, t.focusedKey);
+ if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ce.current || se.current) && p.current && r.current) {
+ let e = Yn(), n = $o(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
- (e === "keyboard" || oe.current) && (ce.current && cancelAnimationFrame(ce.current), ce.current = requestAnimationFrame(() => {
- p.current && (ro(p.current, n), e !== "virtual" && ao(n, { containingElement: r.current }));
+ (e === "keyboard" || se.current) && (le.current && cancelAnimationFrame(le.current), le.current = requestAnimationFrame(() => {
+ p.current && (io(p.current, n), e !== "virtual" && oo(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && se.current != null && r.current && ir(r.current), se.current = t.focusedKey, oe.current = !1;
+ !d && t.isFocused && t.focusedKey == null && ce.current != null && r.current && ar(r.current), ce.current = t.focusedKey, se.current = !1;
}), (0, x.useEffect)(() => () => {
- ce.current && cancelAnimationFrame(ce.current);
- }, []), bi(r, "react-aria-focus-scope-restore", (e) => {
+ le.current && cancelAnimationFrame(le.current);
+ }, []), xi(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
- let le = {
- ...H(M, te),
+ let ue = {
+ ...V(M, te),
onFocus: N,
onBlur: re,
onMouseDown(e) {
- p.current === z(e) && e.preventDefault();
+ p.current === R(e) && e.preventDefault();
}
- }, { typeSelectProps: ue } = Js({
+ }, { typeSelectProps: de } = Ys({
keyboardDelegate: n,
selectionManager: t
});
- u || (le = H(ue, le));
- let de;
- d || (de = t.focusedKey == null ? 0 : -1);
- let fe = es(t.collection);
- return { collectionProps: H(le, {
- tabIndex: de,
- "data-collection": fe
+ u || (ue = V(de, ue));
+ let fe;
+ d || (fe = t.focusedKey == null ? 0 : -1);
+ let pe = ts(t.collection);
+ return { collectionProps: V(ue, {
+ tabIndex: fe,
+ "data-collection": pe
}) };
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function Qs(e, t) {
+function $s(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function $s(e) {
- return ec(e, 0);
+function ec(e) {
+ return tc(e, 0);
}
-function ec(e, t) {
+function tc(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -6328,96 +6328,96 @@ function ec(e, t) {
n++;
}
}
-function tc(e, t, n) {
+function nc(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...nc(e, t), t], i = [...nc(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...rc(e, t), t], i = [...rc(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 nc(e, t) {
+function rc(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 rc = /* @__PURE__ */ new WeakMap();
-function ic(e) {
- let t = rc.get(e);
+var ic = /* @__PURE__ */ new WeakMap();
+function ac(e) {
+ let t = ic.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(Qs(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r($s(i, e)) : i.type === "item" && n++;
};
- return r(e), rc.set(e, n), n;
+ return r(e), ic.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var ac = /* @__PURE__ */ new Map();
-function oc(e) {
- let { locale: t } = Mi(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (ac.has(n)) return ac.get(n);
+var oc = /* @__PURE__ */ new Map();
+function sc(e) {
+ let { locale: t } = Ni(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (oc.has(n)) return oc.get(n);
let r = new Intl.Collator(t, e);
- return ac.set(n, r), r;
+ return oc.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-function sc({ children: e }) {
+function cc({ children: e }) {
let t = (0, x.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ x.createElement(oa.Provider, { value: t }, e);
+ return /*#__PURE__*/ x.createElement(sa.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var cc = /*#__PURE__*/ (0, x.createContext)({});
-function lc(e) {
- let { getContainer: t } = e, { getContainer: n } = uc();
- return /*#__PURE__*/ x.createElement(cc.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var lc = /*#__PURE__*/ (0, x.createContext)({});
+function uc(e) {
+ let { getContainer: t } = e, { getContainer: n } = dc();
+ return /*#__PURE__*/ x.createElement(lc.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function uc() {
- return (0, x.useContext)(cc) ?? {};
+function dc() {
+ return (0, x.useContext)(lc) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var dc = /*#__PURE__*/ x.createContext(null);
-function fc(e) {
- let t = An(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, x.useState)(!1), o = (0, x.useMemo)(() => ({
+var fc = /*#__PURE__*/ x.createContext(null);
+function pc(e) {
+ let t = jn(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, x.useState)(!1), o = (0, x.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = uc();
+ }), [i, a]), { getContainer: s } = dc();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ x.createElement(Ea, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ x.createElement(Da, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ x.createElement(dc.Provider, { value: o }, /*#__PURE__*/ x.createElement(sc, null, /*#__PURE__*/ x.createElement(Fr.Provider, { value: null }, c))), /*#__PURE__*/ Kr.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ x.createElement(fc.Provider, { value: o }, /*#__PURE__*/ x.createElement(cc, null, /*#__PURE__*/ x.createElement(Ir.Provider, { value: null }, c))), /*#__PURE__*/ qr.createPortal(c, n);
}
-function pc() {
- let e = (0, x.useContext)(dc)?.setContain;
- V(() => {
+function mc() {
+ let e = (0, x.useContext)(fc)?.setContain;
+ B(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function mc(e, t) {
- let { role: n = "dialog" } = e, r = pr();
+function hc(e, t) {
+ let { role: n = "dialog" } = e, r = mr();
r = e["aria-label"] ? void 0 : r;
- let i = pr();
+ let i = mr();
i = n === "alertdialog" && !e["aria-describedby"] ? i : void 0;
let a = (0, x.useRef)(!1);
(0, x.useEffect)(() => {
- if (t.current && !Lt(t.current)) {
- ir(t.current);
+ if (t.current && !Rt(t.current)) {
+ ar(t.current);
let e = setTimeout(() => {
- (Ft() === t.current || Ft() === document.body) && (a.current = !0, t.current && (t.current.blur(), ir(t.current)), a.current = !1);
+ (It() === t.current || It() === document.body) && (a.current = !0, t.current && (t.current.blur(), ar(t.current)), a.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t]), pc(), (0, x.useRef)(!1), (0, x.useEffect)(() => {});
+ }, [t]), mc(), (0, x.useRef)(!1), (0, x.useEffect)(() => {});
let o = e["aria-describedby"] ?? i;
return {
dialogProps: {
- ...U(e, { labelable: !0 }),
+ ...H(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? r,
@@ -6432,23 +6432,23 @@ function mc(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function hc(e = {}) {
+function gc(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, x.useRef)({
isFocused: !1,
- isFocusVisible: t || qn()
+ isFocusVisible: t || Jn()
}), [a, o] = (0, x.useState)(!1), [s, c] = (0, x.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, x.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, x.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = qn(), o(e), l();
+ i.current.isFocused = e, i.current.isFocusVisible = Jn(), o(e), l();
}, [l]);
- Qn((e) => {
+ $n((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = vr({
+ let { focusProps: d } = yr({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = No({
+ }), { focusWithinProps: f } = Po({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -6460,42 +6460,42 @@ function hc(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function gc(e = {}) {
- let { locale: t } = Mi();
+function _c(e = {}) {
+ let { locale: t } = Ni();
return (0, x.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var _c = !1, vc = 0;
-function yc() {
- _c = !0, setTimeout(() => {
- _c = !1;
+var vc = !1, yc = 0;
+function bc() {
+ vc = !0, setTimeout(() => {
+ vc = !1;
}, 500);
}
-function bc(e) {
- e.pointerType === "touch" && yc();
+function xc(e) {
+ e.pointerType === "touch" && bc();
}
-function xc() {
- let e = L(null);
- if (e !== void 0) return vc === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", bc), vc++, () => {
- vc--, !(vc > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", bc);
+function Sc() {
+ let e = I(null);
+ if (e !== void 0) return yc === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", xc), yc++, () => {
+ yc--, !(yc > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", xc);
};
}
-function Sc(e) {
+function Cc(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, x.useState)(!1), s = (0, x.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, x.useEffect)(xc, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = sa(), { hoverProps: u, triggerHoverEnd: d } = (0, x.useMemo)(() => {
+ (0, x.useEffect)(Sc, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = ca(), { hoverProps: u, triggerHoverEnd: d } = (0, x.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !R(e.currentTarget, z(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !L(e.currentTarget, R(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(L(z(e)), "pointerover", (e) => {
- s.isHovered && s.target && !R(s.target, z(e)) && a(e, e.pointerType);
+ s.target = l, c(I(R(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !L(s.target, R(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -6510,9 +6510,9 @@ function Sc(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- _c && t.pointerType === "mouse" || e(t, t.pointerType);
+ vc && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && R(e.currentTarget, z(e)) && a(e, e.pointerType);
+ !i && L(e.currentTarget, R(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -6535,22 +6535,22 @@ function Sc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function Cc(e) {
+function wc(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, x.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = yi((e) => {
- n && wc(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = yi((e) => {
+ }), o = bi((e) => {
+ n && Tc(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = bi((e) => {
n && n(e);
});
(0, x.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = L(n);
+ let n = t.current, i = I(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && wc(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && Tc(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);
@@ -6558,22 +6558,22 @@ function Cc(e) {
}
}, [t, r]);
}
-function wc(e, t) {
+function Tc(e, t) {
if (e.button > 0) return !1;
- let n = z(e);
+ let n = R(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !R(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !L(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
}
return t.current ? !e.composedPath().includes(t.current) : !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function Tc(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = oc({
+function Ec(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = sc({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, x.useMemo)(() => a || new rs({
+ }), l = t.disabledBehavior, u = (0, x.useMemo)(() => a || new is({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -6590,7 +6590,7 @@ function Tc(e) {
c,
l,
s
- ]), { collectionProps: d } = Zs({
+ ]), { collectionProps: d } = Qs({
...e,
ref: i,
selectionManager: t,
@@ -6600,11 +6600,11 @@ function Tc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function Ec(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 = mn();
- t = dr(t);
+function Dc(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 = hn();
+ t = fr(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && Zo(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && Qo(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -6615,11 +6615,11 @@ function Ec(e) {
}
if (d === "override" || d === "none") return;
}
- n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (hi(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
+ n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (gi(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
(0, x.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? di(i.current) : s ? s() : Ft() !== i.current && i.current && ir(i.current));
+ r === n.focusedKey && n.isFocused && (o ? fi(i.current) : s ? s() : It() !== i.current && i.current && ar(i.current));
}, [
i,
r,
@@ -6632,7 +6632,7 @@ function Ec(e) {
!o && !c ? m = {
tabIndex: r === n.focusedKey ? 0 : -1,
onFocus(e) {
- z(e) === i.current && n.setFocusedKey(r);
+ R(e) === i.current && n.setFocusedKey(r);
}
} : c && (m.onMouseDown = (e) => {
e.preventDefault();
@@ -6647,23 +6647,23 @@ function Ec(e) {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, O.href, O.routerOptions);
}, A = { ref: i };
a ? (A.onPressStart = (e) => {
- w.current = e.pointerType, E.current = T, e.pointerType === "keyboard" && (!C || Oc(e.key)) && p(e);
+ w.current = e.pointerType, E.current = T, e.pointerType === "keyboard" && (!C || kc(e.key)) && p(e);
}, u ? (A.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, A.onPress = b ? k : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : A.onPress = (e) => {
if (b || S && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !Dc(e.key)) return;
+ if (e.pointerType === "keyboard" && !Oc(e.key)) return;
k(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (A.onPressStart = (e) => {
- w.current = e.pointerType, E.current = T, D.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || Oc(e.key))) && p(e);
+ w.current = e.pointerType, E.current = T, D.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || kc(e.key))) && p(e);
}, A.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && C && Dc(e.key) || e.pointerType === "mouse" && D.current) && (C ? k(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && C && Oc(e.key) || e.pointerType === "mouse" && D.current) && (C ? k(e) : v && p(e));
});
- let ee = ts(n.collection);
- if (m["data-collection"] = ee, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = H(A, {
+ let ee = ns(n.collection);
+ if (m["data-collection"] = ee, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = V(A, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
},
@@ -6677,10 +6677,10 @@ function Ec(e) {
"onPress",
"onPressUp",
"onClick"
- ]) O[e] && (A[e] = ar(A[e], O[e]));
- let { pressProps: j, isPressed: te } = pa(A), M = S ? (e) => {
+ ]) O[e] && (A[e] = or(A[e], O[e]));
+ let { pressProps: j, isPressed: te } = ma(A), M = S ? (e) => {
w.current === "mouse" && (e.stopPropagation(), e.preventDefault(), k(e));
- } : void 0, { longPressProps: ne } = Bs({
+ } : void 0, { longPressProps: ne } = Vs({
isDisabled: !T,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -6688,39 +6688,39 @@ function Ec(e) {
}), N = (e) => {
w.current === "touch" && E.current && e.preventDefault();
}, re = d !== "none" && n.isLink(r) ? (e) => {
- hn.isOpening || e.preventDefault();
- } : void 0, P = H(m, v || b || o && !c ? j : {}, T ? ne : {}, {
+ gn.isOpening || e.preventDefault();
+ } : void 0, ie = V(m, v || b || o && !c ? j : {}, T ? ne : {}, {
onDoubleClick: M,
onDragStartCapture: N,
onClick: re,
id: t
- }, o ? { onMouseDown: (e) => e.preventDefault() } : void 0), ie = (e) => {
+ }, o ? { onMouseDown: (e) => e.preventDefault() } : void 0), ae = (e) => {
let t = e;
for (; t && t !== i.current;) {
let e = t.getAttribute("data-collection");
if (e != null) return e !== ee;
t = t.parentElement;
}
- return Gt(e);
- }, ae = P.onPointerDown;
- P.onPointerDown = (e) => {
- let t = z(e);
- if (t && t !== i.current && ie(t)) {
+ return Kt(e);
+ }, oe = ie.onPointerDown;
+ ie.onPointerDown = (e) => {
+ let t = R(e);
+ if (t && t !== i.current && ae(t)) {
e.stopPropagation();
return;
}
- ae?.(e);
+ oe?.(e);
};
- let oe = P.onMouseDown;
- return P.onMouseDown = (e) => {
- let t = z(e);
- if (t && t !== i.current && ie(t)) {
+ let se = ie.onMouseDown;
+ return ie.onMouseDown = (e) => {
+ let t = R(e);
+ if (t && t !== i.current && ae(t)) {
e.stopPropagation();
return;
}
- oe?.(e);
+ se?.(e);
}, {
- itemProps: P,
+ itemProps: ie,
isPressed: te,
isSelected: n.isSelected(r),
isFocused: n.isFocused && n.focusedKey === r,
@@ -6729,30 +6729,30 @@ function Ec(e) {
hasAction: C
};
}
-function Dc(e) {
+function Oc(e) {
return e === "Enter";
}
-function Oc(e) {
+function kc(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function kc(e, t, n) {
- let r = U(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function Ac(e, t, n) {
+ let r = H(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 } = Tc({
+ let { listProps: s } = Ec({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = No({
+ }), { focusWithinProps: c } = Po({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = dr(e.id);
- Jo.set(t, {
+ }), l = fr(e.id);
+ Yo.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -6762,24 +6762,24 @@ function kc(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = jo({
+ let { labelProps: u, fieldProps: d } = Mo({
...e,
id: l,
labelElementType: "span"
});
return {
labelProps: u,
- listBoxProps: H(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
+ listBoxProps: V(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
role: "listbox",
"aria-orientation": a,
- ...H(d, s)
+ ...V(d, s)
})
};
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Ac(e) {
- let { heading: t, "aria-label": n } = e, r = dr();
+function jc(e) {
+ let { heading: t, "aria-label": n } = e, r = fr();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -6798,8 +6798,8 @@ function Ac(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function jc(e, t, n) {
- let { key: r } = e, i = Jo.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 = pr(), f = pr(), p = {
+function Mc(e, t, n) {
+ let { key: r } = e, i = Yo.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 = mr(), f = mr(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -6809,9 +6809,9 @@ function jc(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"] = ic(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = ac(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Xo(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = Ec({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Zo(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = Dc({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -6820,28 +6820,28 @@ function jc(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? ar(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? or(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = Sc({
+ }), { hoverProps: S } = Cc({
isDisabled: a || !c,
onHoverStart() {
- qn() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ Jn() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = U(m?.props);
+ }), C = H(m?.props);
delete C.id;
- let w = vn(m?.props);
+ let w = yn(m?.props);
return {
optionProps: {
...p,
- ...H(C, _, S, w),
+ ...V(C, _, S, w),
id: g
},
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && qn(),
+ isFocusVisible: y && t.selectionManager.isFocused && Jn(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -6851,15 +6851,15 @@ function jc(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function Mc() {
+function Nc() {
return window.ResizeObserver !== void 0;
}
-function Nc(e) {
- let { ref: t, box: n, onResize: r } = e, i = yi(r);
+function Pc(e) {
+ let { ref: t, box: n, onResize: r } = e, i = bi(r);
(0, x.useEffect)(() => {
let e = t?.current;
if (e) {
- if (Mc()) {
+ if (Nc()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -6875,189 +6875,189 @@ function Nc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var Pc = {};
-Pc = { dismiss: "تجاهل" };
+var Fc = {};
+Fc = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var Fc = {};
-Fc = { dismiss: "Отхвърляне" };
+var Ic = {};
+Ic = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var Ic = {};
-Ic = { dismiss: "Odstranit" };
+var Lc = {};
+Lc = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var Lc = {};
-Lc = { dismiss: "Luk" };
+var Rc = {};
+Rc = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var Rc = {};
-Rc = { dismiss: "Schließen" };
+var zc = {};
+zc = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var zc = {};
-zc = { dismiss: "Απόρριψη" };
+var Bc = {};
+Bc = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var Bc = {};
-Bc = { dismiss: "Dismiss" };
+var Vc = {};
+Vc = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var Vc = {};
-Vc = { dismiss: "Descartar" };
+var Hc = {};
+Hc = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var Hc = {};
-Hc = { dismiss: "Lõpeta" };
+var Uc = {};
+Uc = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var Uc = {};
-Uc = { dismiss: "Hylkää" };
+var Wc = {};
+Wc = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var Wc = {};
-Wc = { dismiss: "Rejeter" };
+var Gc = {};
+Gc = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var Gc = {};
-Gc = { dismiss: "התעלם" };
+var Kc = {};
+Kc = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var Kc = {};
-Kc = { dismiss: "Odbaci" };
+var qc = {};
+qc = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var qc = {};
-qc = { dismiss: "Elutasítás" };
+var Jc = {};
+Jc = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var Jc = {};
-Jc = { dismiss: "Ignora" };
+var Yc = {};
+Yc = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var Yc = {};
-Yc = { dismiss: "閉じる" };
+var Xc = {};
+Xc = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var Xc = {};
-Xc = { dismiss: "무시" };
+var Zc = {};
+Zc = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var Zc = {};
-Zc = { dismiss: "Atmesti" };
+var Qc = {};
+Qc = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var Qc = {};
-Qc = { dismiss: "Nerādīt" };
+var $c = {};
+$c = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var $c = {};
-$c = { dismiss: "Lukk" };
+var el = {};
+el = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var el = {};
-el = { dismiss: "Negeren" };
+var tl = {};
+tl = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var tl = {};
-tl = { dismiss: "Zignoruj" };
+var nl = {};
+nl = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var nl = {};
-nl = { dismiss: "Descartar" };
+var rl = {};
+rl = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var rl = {};
-rl = { dismiss: "Dispensar" };
+var il = {};
+il = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var il = {};
-il = { dismiss: "Revocare" };
+var al = {};
+al = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var al = {};
-al = { dismiss: "Пропустить" };
+var ol = {};
+ol = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var ol = {};
-ol = { dismiss: "Zrušiť" };
+var sl = {};
+sl = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var sl = {};
-sl = { dismiss: "Opusti" };
+var cl = {};
+cl = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var cl = {};
-cl = { dismiss: "Odbaci" };
+var ll = {};
+ll = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var ll = {};
-ll = { dismiss: "Avvisa" };
+var ul = {};
+ul = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var ul = {};
-ul = { dismiss: "Kapat" };
+var dl = {};
+dl = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var dl = {};
-dl = { dismiss: "Скасувати" };
+var fl = {};
+fl = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var fl = {};
-fl = { dismiss: "取消" };
+var pl = {};
+pl = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var pl = {};
-pl = { dismiss: "關閉" };
+var ml = {};
+ml = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var ml = {};
-ml = {
- "ar-AE": Pc,
- "bg-BG": Fc,
- "cs-CZ": Ic,
- "da-DK": Lc,
- "de-DE": Rc,
- "el-GR": zc,
- "en-US": Bc,
- "es-ES": Vc,
- "et-EE": Hc,
- "fi-FI": Uc,
- "fr-FR": Wc,
- "he-IL": Gc,
- "hr-HR": Kc,
- "hu-HU": qc,
- "it-IT": Jc,
- "ja-JP": Yc,
- "ko-KR": Xc,
- "lt-LT": Zc,
- "lv-LV": Qc,
- "nb-NO": $c,
- "nl-NL": el,
- "pl-PL": tl,
- "pt-BR": nl,
- "pt-PT": rl,
- "ro-RO": il,
- "ru-RU": al,
- "sk-SK": ol,
- "sl-SI": sl,
- "sr-SP": cl,
- "sv-SE": ll,
- "tr-TR": ul,
- "uk-UA": dl,
- "zh-CN": fl,
- "zh-TW": pl
+var hl = {};
+hl = {
+ "ar-AE": Fc,
+ "bg-BG": Ic,
+ "cs-CZ": Lc,
+ "da-DK": Rc,
+ "de-DE": zc,
+ "el-GR": Bc,
+ "en-US": Vc,
+ "es-ES": Hc,
+ "et-EE": Uc,
+ "fi-FI": Wc,
+ "fr-FR": Gc,
+ "he-IL": Kc,
+ "hr-HR": qc,
+ "hu-HU": Jc,
+ "it-IT": Yc,
+ "ja-JP": Xc,
+ "ko-KR": Zc,
+ "lt-LT": Qc,
+ "lv-LV": $c,
+ "nb-NO": el,
+ "nl-NL": tl,
+ "pl-PL": nl,
+ "pt-BR": rl,
+ "pt-PT": il,
+ "ro-RO": al,
+ "ru-RU": ol,
+ "sk-SK": sl,
+ "sl-SI": cl,
+ "sr-SP": ll,
+ "sv-SE": ul,
+ "tr-TR": dl,
+ "uk-UA": fl,
+ "zh-CN": pl,
+ "zh-TW": ml
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function hl(e) {
+function gl(e) {
return e && e.__esModule ? e.default : e;
}
-function gl(e) {
- let { onDismiss: t, ...n } = e, r = xi(n, Ki(hl(ml), "@react-aria/overlays").format("dismiss")), i = () => {
+function _l(e) {
+ let { onDismiss: t, ...n } = e, r = Si(n, qi(gl(hl), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ x.createElement(Bo, null, /*#__PURE__*/ x.createElement("button", {
+ return /*#__PURE__*/ x.createElement(Vo, null, /*#__PURE__*/ x.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -7069,38 +7069,38 @@ function gl(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var _l = [];
-function vl(e, t) {
+var vl = [];
+function yl(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, x.useRef)(void 0);
(0, x.useEffect)(() => {
- if (i && !_l.includes(t)) return _l.push(t), () => {
- let e = _l.indexOf(t);
- e >= 0 && _l.splice(e, 1);
+ if (i && !vl.includes(t)) return vl.push(t), () => {
+ let e = vl.indexOf(t);
+ e >= 0 && vl.splice(e, 1);
};
}, [i, t]);
let l = () => {
- _l[_l.length - 1] === t && n && n();
+ vl[vl.length - 1] === t && n && n();
}, u = (e) => {
- let n = _l[_l.length - 1];
- c.current = n, (!s || s(z(e))) && n === t && e.stopPropagation();
+ let n = vl[vl.length - 1];
+ c.current = n, (!s || s(R(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(z(e))) && (_l[_l.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = Mr({ shortcuts: { Escape: () => {
+ (!s || s(R(e))) && (vl[vl.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = Nr({ shortcuts: { Escape: () => {
if (!o) {
l();
return;
}
return !1;
} } });
- Cc({
+ wc({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = No({
+ let { focusWithinProps: p } = Po({
isDisabled: !r,
onBlurWithin: (e) => {
- !e.relatedTarget || Ia(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
+ !e.relatedTarget || La(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -7113,26 +7113,26 @@ function vl(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var yl = typeof document < "u" && window.visualViewport, bl = 0, xl;
-function Sl(e = {}) {
+var bl = typeof document < "u" && window.visualViewport, xl = 0, Sl;
+function Cl(e = {}) {
let { isDisabled: t } = e;
- V(() => {
- if (!t) return bl++, bl === 1 && (xl = an() && sn() ? wl() : Cl()), () => {
- bl--, bl === 0 && xl();
+ B(() => {
+ if (!t) return xl++, xl === 1 && (Sl = on() && cn() ? Tl() : wl()), () => {
+ xl--, xl === 0 && Sl();
};
}, [t]);
}
-function Cl() {
+function wl() {
let e = window.innerWidth - document.documentElement.clientWidth;
- return ar(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Mt(document.documentElement, "scrollbar-gutter", "stable") : Mt(document.documentElement, "padding-right", `${e}px`)), Mt(document.documentElement, "overflow", "hidden"));
+ return or(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Nt(document.documentElement, "scrollbar-gutter", "stable") : Nt(document.documentElement, "padding-right", `${e}px`)), Nt(document.documentElement, "overflow", "hidden"));
}
-function wl() {
- let e = Mt(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
- let r = z(e);
- t = eo(r) ? r : to(r, !0), n = !1;
+function Tl() {
+ let e = Nt(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+ let r = R(e);
+ t = to(r) ? r : no(r, !0), n = !1;
let i = r.ownerDocument.defaultView.getSelection();
i && !i.isCollapsed && i.containsNode(r, !0) && (n = !0), e.composedPath().some((e) => e instanceof HTMLInputElement && e.type === "range") && (n = !0), "selectionStart" in r && "selectionEnd" in r && r.selectionStart < r.selectionEnd && r.ownerDocument.activeElement === r && (n = !0);
- }, i = document.createElement("style"), a = aa();
+ }, i = document.createElement("style"), a = oa();
a && (i.nonce = a), i.textContent = "@layer {\n * {\n overscroll-behavior: contain;\n }\n}", document.head.prepend(i);
let o = (e) => {
if (!(e.touches.length === 2 || n)) {
@@ -7143,27 +7143,27 @@ function wl() {
t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth && e.preventDefault();
}
}, s = (e) => {
- let t = z(e), n = e.relatedTarget;
- n && _i(n) ? (n.focus({ preventScroll: !0 }), Tl(n, _i(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ let t = R(e), n = e.relatedTarget;
+ n && vi(n) ? (n.focus({ preventScroll: !0 }), El(n, vi(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, c = HTMLElement.prototype.focus;
Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function(e) {
- let t = Ft(), n = t != null && _i(t);
+ let t = It(), n = t != null && vi(t);
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && Tl(this, n);
+ }), (!e || !e.preventScroll) && El(this, n);
}
});
- let l = ar(jt(document, "touchstart", r, {
+ let l = or(Mt(document, "touchstart", r, {
passive: !1,
capture: !0
- }), jt(document, "touchmove", o, {
+ }), Mt(document, "touchmove", o, {
passive: !1,
capture: !0
- }), jt(document, "blur", s, !0));
+ }), Mt(document, "blur", s, !0));
return () => {
e(), l(), i.remove(), Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -7172,18 +7172,18 @@ function wl() {
});
};
}
-function Tl(e, t) {
- t || !yl ? El(e) : yl.addEventListener("resize", () => El(e), { once: !0 });
+function El(e, t) {
+ t || !bl ? Dl(e) : bl.addEventListener("resize", () => Dl(e), { once: !0 });
}
-function El(e) {
+function Dl(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
- let e = to(n);
+ let e = no(n);
if (e !== document.documentElement && e !== document.body && e !== n) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- yl && (n = Math.min(n, yl.offsetTop + yl.height));
+ bl && (n = Math.min(n, bl.offsetTop + bl.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)),
@@ -7196,33 +7196,33 @@ function El(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var Dl = {
+var Ol = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, Ol = {
+}, kl = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, kl = {
+}, Al = {
top: "left",
left: "top"
-}, Al = {
+}, jl = {
top: "height",
left: "width"
-}, jl = {
+}, Ml = {
width: "totalWidth",
height: "totalHeight"
-}, Ml = {}, Nl = () => typeof document < "u" ? window.visualViewport : null;
-function Pl(e, t) {
+}, Nl = {}, Pl = () => typeof document < "u" ? window.visualViewport : null;
+function Fl(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} = Gl(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return sn() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
+ } else ({width: n, height: r, top: o, left: s} = Kl(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return cn() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
width: n,
height: r,
totalWidth: i,
@@ -7232,7 +7232,7 @@ function Pl(e, t) {
left: s
};
}
-function Fl(e) {
+function Il(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -7240,11 +7240,11 @@ function Fl(e) {
height: e.scrollHeight
};
}
-function Il(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[Al[e]], l = o[e] + r.scroll[Dl[e]] + a, u = o[e] + r.scroll[Dl[e]] + c - a, d = t - s + r.scroll[Dl[e]] + o[e] - r[Dl[e]], f = t - s + n + r.scroll[Dl[e]] + o[e] - r[Dl[e]];
+function Ll(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[jl[e]], l = o[e] + r.scroll[Ol[e]] + a, u = o[e] + r.scroll[Ol[e]] + c - a, d = t - s + r.scroll[Ol[e]] + o[e] - r[Ol[e]], f = t - s + n + r.scroll[Ol[e]] + o[e] - r[Ol[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function Ll(e) {
+function Rl(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -7253,55 +7253,55 @@ function Ll(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function Rl(e) {
- if (Ml[e]) return Ml[e];
- let [t, n] = e.split(" "), r = Dl[t] || "right", i = kl[r];
- Dl[n] || (n = "center");
- let a = Al[r], o = Al[i];
- return Ml[e] = {
+function zl(e) {
+ if (Nl[e]) return Nl[e];
+ let [t, n] = e.split(" "), r = Ol[t] || "right", i = Al[r];
+ Ol[n] || (n = "center");
+ let a = jl[r], o = jl[i];
+ return Nl[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, Ml[e];
+ }, Nl[e];
}
-function zl(e, t, n, r, i, a, o, s, c, l, u) {
+function Bl(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] = Lo(_[m], v, y), d === p) {
- let t = s ? u[h] : u[jl[h]];
- _[Ol[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = Ro(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[Ml[h]];
+ _[kl[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function Bl(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[jl.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function Vl(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[Ml.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 Vl(e, t, n, r, i, a, o, s) {
+function Hl(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[Ol[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[Ol[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[kl[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[kl[l]] - i);
}
-function Hl(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = Rl(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = zl(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Vl(s, l, t, i, a + u, v, c, g);
+function Ul(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = zl(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Bl(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Hl(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = Rl(`${Ol[S]} ${C}`), r = zl(t, s, n, e, u, d, l, f, m, h, c);
- Vl(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = zl(`${kl[S]} ${C}`), r = Bl(t, s, n, e, u, d, l, f, m, h, c);
+ Hl(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 = Il(b, w[b], n[x], s, c, a, l);
+ let O = Ll(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = Bl(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = zl(t, s, n, v, T, d, l, f, m, h, c), O = Il(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, ee = t[b] - w[b] - i[Dl[b]], j = ee + .5 * t[x], te = m / 2 + h, M = Dl[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ne = n[x] - M - m / 2 - h;
- A[b] = Lo(Lo(j, t[b] + m / 2 - (w[b] + i[Dl[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Dl[b]])), te, ne), {placement: S, crossPlacement: C} = v, m ? ee = A[b] : C === "right" ? ee += t[x] : C === "center" && (ee += t[x] / 2);
+ let k = Vl(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = Bl(t, s, n, v, T, d, l, f, m, h, c), O = Ll(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, ee = t[b] - w[b] - i[Ol[b]], j = ee + .5 * t[x], te = m / 2 + h, M = Ol[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ne = n[x] - M - m / 2 - h;
+ A[b] = Ro(Ro(j, t[b] + m / 2 - (w[b] + i[Ol[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Ol[b]])), te, ne), {placement: S, crossPlacement: C} = v, m ? ee = A[b] : C === "right" ? ee += t[x] : C === "center" && (ee += t[x] / 2);
let N = S === "left" || S === "top" ? n[y] : 0, re = {
x: S === "top" || S === "bottom" ? ee : N,
y: S === "left" || S === "right" ? ee : N
@@ -7315,17 +7315,17 @@ function Hl(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: re
};
}
-function Ul(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 = Nl(), h = r instanceof HTMLElement ? ql(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Gl(n, !1, p) : Kl(n, h, !1, p);
+function Wl(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 = Pl(), h = r instanceof HTMLElement ? Jl(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Kl(n, !1, p) : ql(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 = Gl(r, !0), x = Ll(r);
+ let b = Kl(r, !0), x = Rl(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = Fl(i), C = Pl(s, m), w = Pl(h, m), T;
+ let S = Il(i), C = Fl(s, m), w = Fl(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = Wl(h, !1);
+ let e = Gl(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -7337,11 +7337,11 @@ function Ul(e) {
left: 0,
width: 0,
height: 0
- } : Kl(s, h, !1);
- let E = R(s, h);
- return Hl(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ } : ql(s, h, !1);
+ let E = L(s, h);
+ return Ul(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function Wl(e, t) {
+function Gl(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,
@@ -7350,8 +7350,8 @@ function Wl(e, t) {
height: a
};
}
-function Gl(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || Wl(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function Kl(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || Gl(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -7359,30 +7359,30 @@ function Gl(e, t, n) {
height: o
};
}
-function Kl(e, t, n, r) {
+function ql(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || Wl(e, n);
+ if (i.position === "fixed") a = r || Gl(e, n);
else {
- a = Gl(e, n, r);
- let i = Gl(t, n), o = window.getComputedStyle(t);
+ a = Kl(e, n, r);
+ let i = Kl(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 ql(e) {
+function Jl(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Jl(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Jl(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Yl(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Yl(t);) t = t.parentElement;
return t || document.documentElement;
}
-function Jl(e) {
+function Yl(e) {
let t = window.getComputedStyle(e);
return t.transform !== "none" || /transform|perspective/.test(t.willChange) || t.filter !== "none" || t.contain === "paint" || "backdropFilter" in t && t.backdropFilter !== "none" || "WebkitBackdropFilter" in t && t.WebkitBackdropFilter !== "none";
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var Yl = typeof document < "u" ? window.visualViewport : null;
-function Xl(e) {
- let { direction: t } = Mi(), { 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, x.useState)(null), S = [
+var Xl = typeof document < "u" ? window.visualViewport : null;
+function Zl(e) {
+ let { direction: t } = Ni(), { 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, x.useState)(null), S = [
p,
s,
i.current,
@@ -7399,15 +7399,15 @@ function Xl(e) {
g,
_,
n
- ], C = (0, x.useRef)(Yl?.scale);
+ ], C = (0, x.useRef)(Xl?.scale);
(0, x.useEffect)(() => {
- m && (C.current = Yl?.scale);
+ m && (C.current = Xl?.scale);
}, [m]);
let w = (0, x.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || Yl?.scale !== C.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || Xl?.scale !== C.current) return;
let e = null;
- if (o.current && Lt(o.current)) {
- let t = Ft()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && Rt(o.current)) {
+ let t = It()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -7415,8 +7415,8 @@ function Xl(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 = Ul({
- placement: Ql(s, t),
+ let y = Wl({
+ placement: $l(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -7426,28 +7426,28 @@ function Xl(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? Wl(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? Gl(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
if (!y.position) return;
h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(y.position).forEach((e) => h.style[e] = y.position[e] + "px"), h.style.maxHeight = y.maxHeight == null ? "" : y.maxHeight + "px";
- let x = Ft();
+ let x = It();
if (e && x && o.current) {
let t = x.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
o.current.scrollTop += r - e.offset;
}
b(y);
}, S);
- V(w, S), Zl(w), Nc({
+ B(w, S), Ql(w), Pc({
ref: i,
onResize: w
- }), Nc({
+ }), Pc({
ref: r,
onResize: w
});
let T = (0, x.useRef)(!1);
- V(() => {
+ B(() => {
let e, t = () => {
T.current = !0, clearTimeout(e), e = setTimeout(() => {
T.current = !1;
@@ -7455,16 +7455,16 @@ function Xl(e) {
}, n = () => {
T.current && t();
};
- Yl?.addEventListener("resize", t), Yl?.addEventListener("scroll", n);
- let r = jt(It(window), "scroll", n);
+ Xl?.addEventListener("resize", t), Xl?.addEventListener("scroll", n);
+ let r = Mt(Lt(window), "scroll", n);
return () => {
- Yl?.removeEventListener("resize", t), Yl?.removeEventListener("scroll", n), r();
+ Xl?.removeEventListener("resize", t), Xl?.removeEventListener("scroll", n), r();
};
}, [w]);
let E = (0, x.useCallback)(() => {
T.current || h?.();
}, [h, T]);
- return Us({
+ return Ws({
triggerRef: r,
isOpen: m,
onClose: h && E
@@ -7490,25 +7490,25 @@ function Xl(e) {
updatePosition: w
};
}
-function Zl(e) {
- V(() => (window.addEventListener("resize", e, !1), () => {
+function Ql(e) {
+ B(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function Ql(e, t) {
+function $l(e, t) {
return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function $l(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 } = vl({
+function eu(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 } = yl({
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 } = Xl({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Zl({
...c,
targetRef: n,
overlayRef: r,
@@ -7516,17 +7516,17 @@ function $l(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)
});
- Sl({ isDisabled: a || !t.isOpen }), (0, x.useEffect)(() => {
- if (t.isOpen && r.current) return a ? qo(i?.current ?? r.current) : Ko([i?.current ?? r.current], { shouldUseInert: !0 });
+ Cl({ isDisabled: a || !t.isOpen }), (0, x.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? Jo(i?.current ?? r.current) : qo([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = No(e);
+ let { focusWithinProps: g } = Po(e);
return {
- popoverProps: H(u, f, g),
+ popoverProps: V(u, f, g),
arrowProps: p,
underlayProps: d,
placement: m,
@@ -7535,13 +7535,13 @@ function $l(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var eu = /* @__PURE__ */ new WeakMap();
+var tu = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function tu(e, t, n) {
+function nu(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: _ } = pa({
+ }, { pressProps: g, isPressed: _ } = ma({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -7549,7 +7549,7 @@ function tu(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = pa({
+ }), { pressProps: v, isPressed: y } = ma({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -7559,17 +7559,17 @@ function tu(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = Lr(H(e, { onFocus: () => t.setLastFocusedValue(r) }), n), S = H(g, b), C = U(e, { labelable: !0 }), w = -1;
+ }), { focusableProps: b } = Rr(V(e, { onFocus: () => t.setLastFocusedValue(r) }), n), S = V(g, b), C = H(e, { labelable: !0 }), w = -1;
t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (w = 0) : t.selectedValue === r && (w = 0), p && (w = void 0);
- let { name: T, form: E, descriptionId: D, errorMessageId: O, validationBehavior: k } = eu.get(t);
- lo(n, t.defaultSelectedValue, t.setSelectedValue), uo({ validationBehavior: k }, t, n);
- let A = go();
+ let { name: T, form: E, descriptionId: D, errorMessageId: O, validationBehavior: k } = tu.get(t);
+ uo(n, t.defaultSelectedValue, t.setSelectedValue), fo({ validationBehavior: k }, t, n);
+ let A = _o();
return {
- labelProps: H(v, (0, x.useMemo)(() => ({
+ labelProps: V(v, (0, x.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
onMouseDown: (e) => e.preventDefault()
}), [])),
- inputProps: H(C, {
+ inputProps: V(C, {
...S,
type: "radio",
name: T,
@@ -7595,13 +7595,13 @@ function tu(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function nu(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Mi(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = Mo({
+function ru(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Ni(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = No({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = U(e, { labelable: !0 }), { focusWithinProps: v } = No({
+ }), _ = H(e, { labelable: !0 }), { focusWithinProps: v } = Po({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -7609,13 +7609,13 @@ function nu(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = Ka(n.currentTarget, {
- from: z(n),
- accept: (e) => e instanceof Et(e).HTMLInputElement && e.type === "radio"
+ let r = qa(n.currentTarget, {
+ from: R(n),
+ accept: (e) => e instanceof Dt(e).HTMLInputElement && e.type === "radio"
}), i;
return e === "next" ? (i = r.nextNode(), i ||= (r.currentNode = n.currentTarget, r.firstChild())) : (i = r.previousNode(), i ||= (r.currentNode = n.currentTarget, r.lastChild())), i ? (i.focus(), t.setSelectedValue(i.value), !0) : !1;
}
- let { keyboardProps: b } = Mr({
+ let { keyboardProps: b } = Nr({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -7623,15 +7623,15 @@ function nu(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = dr(n);
- return eu.set(t, {
+ }), x = fr(n);
+ return tu.set(t, {
name: x,
form: r,
descriptionId: h.id,
errorMessageId: g.id,
validationBehavior: c
}), {
- radioGroupProps: H(_, {
+ radioGroupProps: V(_, {
role: "radiogroup",
...b,
"aria-invalid": t.isInvalid || void 0,
@@ -7653,21 +7653,21 @@ function nu(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var ru = /* @__PURE__ */ new WeakMap();
-function iu(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = oc({
+var iu = /* @__PURE__ */ new WeakMap();
+function au(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = sc({
usage: "search",
sensitivity: "base"
- }), u = (0, x.useMemo)(() => r || new rs(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, x.useMemo)(() => r || new is(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = Ks({
+ ]), { menuTriggerProps: d, menuProps: f } = qs({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = Mr({
+ }, t, n), { keyboardProps: p } = Nr({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -7683,21 +7683,21 @@ function iu(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = Js({
+ }), { typeSelectProps: m } = Ys({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: S } = Mo({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: S } = No({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let C = U(e, { labelable: !0 }), w = H(m, d, y), T = dr();
- return ru.set(t, {
+ let C = H(e, { labelable: !0 }), w = V(m, d, y), T = fr();
+ return iu.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -7707,13 +7707,13 @@ function iu(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), Yn("keyboard"));
+ e.isDisabled || (n.current?.focus(), Xn("keyboard"));
}
},
- triggerProps: H(C, {
+ triggerProps: V(C, {
...w,
isDisabled: i,
- onKeyDown: ar(w.onKeyDown, p.onKeyDown),
+ onKeyDown: or(w.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
T,
@@ -7737,7 +7737,7 @@ function iu(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- R(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ L(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
},
"aria-labelledby": [y["aria-labelledby"], w["aria-label"] && !y["aria-labelledby"] ? w.id : null].filter(Boolean).join(" ")
},
@@ -7758,18 +7758,18 @@ function iu(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function au(e, t, n) {
- let r = ru.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = zo({ style: {
+function ou(e, t, n) {
+ let r = iu.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = Bo({ style: {
position: "fixed",
top: 0,
left: 0
} });
- lo(e.selectRef, t.defaultValue, t.setValue), uo({
+ uo(e.selectRef, t.defaultValue, t.setValue), fo({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
let d = t.setValue, f = (0, x.useCallback)((e) => {
- let t = z(e);
+ let t = R(e);
t.multiple ? d(Array.from(t.selectedOptions, (e) => e.value)) : d(e.currentTarget.value);
}, [d]);
return {
@@ -7794,8 +7794,8 @@ function au(e, t, n) {
}
};
}
-function ou(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, x.useRef)(null), c = (0, x.useRef)(null), { containerProps: l, selectProps: u } = au({
+function su(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, x.useRef)(null), c = (0, x.useRef)(null), { containerProps: l, selectProps: u } = ou({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -7819,7 +7819,7 @@ function ou(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = ru.get(t) || {};
+ let { validationBehavior: e } = iu.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -7850,8 +7850,8 @@ function ou(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function su(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = Oo(e, t, n);
+function cu(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = ko(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -7865,7 +7865,7 @@ function su(e, t, n) {
}
//#endregion
//#region node_modules/scheduler/cjs/scheduler.production.js
-var cu = /* @__PURE__ */ m(((e) => {
+var lu = /* @__PURE__ */ m(((e) => {
function t(e, t) {
var n = e.length;
e.push(t);
@@ -8064,10 +8064,10 @@ var cu = /* @__PURE__ */ m(((e) => {
}
};
};
-})), lu = /* @__PURE__ */ m(((e, t) => {
- t.exports = cu();
-})), uu = /* @__PURE__ */ m(((e) => {
- var t = lu(), n = v(), r = Ur();
+})), uu = /* @__PURE__ */ m(((e, t) => {
+ t.exports = lu();
+})), du = /* @__PURE__ */ m(((e) => {
+ var t = uu(), n = v(), r = Wr();
function i(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -8237,14 +8237,14 @@ var cu = /* @__PURE__ */ m(((e) => {
}
return null;
}
- var T = Object.assign, E = Symbol.for("react.element"), D = Symbol.for("react.transitional.element"), O = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), ee = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), te = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), ne = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), re = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), ie = Symbol.for("react.activity"), ae = Symbol.for("react.legacy_hidden"), oe = Symbol.for("react.memo_cache_sentinel"), se = Symbol.for("react.view_transition"), ce = Symbol.for("react.recoverable"), le = Symbol.iterator;
- function ue(e) {
- return typeof e != "object" || !e ? null : (e = le && e[le] || e["@@iterator"], typeof e == "function" ? e : null);
+ var T = Object.assign, E = Symbol.for("react.element"), D = Symbol.for("react.transitional.element"), O = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), ee = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), te = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), ne = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), re = Symbol.for("react.memo"), ie = Symbol.for("react.lazy"), ae = Symbol.for("react.activity"), oe = Symbol.for("react.legacy_hidden"), se = Symbol.for("react.memo_cache_sentinel"), ce = Symbol.for("react.view_transition"), le = Symbol.for("react.recoverable"), ue = Symbol.iterator;
+ function de(e) {
+ return typeof e != "object" || !e ? null : (e = ue && e[ue] || e["@@iterator"], typeof e == "function" ? e : null);
}
- var de = Symbol.for("react.client.reference");
- function fe(e) {
+ var fe = Symbol.for("react.client.reference");
+ function pe(e) {
if (e == null) return null;
- if (typeof e == "function") return e.$$typeof === de ? null : e.displayName || e.name || null;
+ if (typeof e == "function") return e.$$typeof === fe ? null : e.displayName || e.name || null;
if (typeof e == "string") return e;
switch (e) {
case k: return "Fragment";
@@ -8252,8 +8252,8 @@ var cu = /* @__PURE__ */ m(((e) => {
case A: return "StrictMode";
case ne: return "Suspense";
case N: return "SuspenseList";
- case ie: return "Activity";
- case se: return "ViewTransition";
+ case ae: return "Activity";
+ case ce: return "ViewTransition";
}
if (typeof e == "object") switch (e.$$typeof) {
case O: return "Portal";
@@ -8262,33 +8262,33 @@ var cu = /* @__PURE__ */ m(((e) => {
case M:
var t = e.render;
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
- case re: return t = e.displayName || null, t === null ? fe(e.type) || "Memo" : t;
- case P:
+ case re: return t = e.displayName || null, t === null ? pe(e.type) || "Memo" : t;
+ case ie:
t = e._payload, e = e._init;
try {
- return fe(e(t));
+ return pe(e(t));
} catch {}
}
return null;
}
- var pe = Array.isArray, F = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, I = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, me = {
+ var me = Array.isArray, P = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, he = {
pending: !1,
data: null,
method: null,
action: null
- }, he = [], ge = -1;
- function _e(e) {
+ }, ge = [], _e = -1;
+ function ve(e) {
return { current: e };
}
- function ve(e) {
- 0 > ge || (e.current = he[ge], he[ge] = null, ge--);
+ function ye(e) {
+ 0 > _e || (e.current = ge[_e], ge[_e] = null, _e--);
}
- function ye(e, t) {
- ge++, he[ge] = e.current, e.current = t;
+ function be(e, t) {
+ _e++, ge[_e] = e.current, e.current = t;
}
- var be = _e(null), xe = _e(null), Se = _e(null), Ce = _e(null);
- function we(e, t) {
- switch (ye(Se, t), ye(xe, e), ye(be, null), t.nodeType) {
+ var xe = ve(null), Se = ve(null), Ce = ve(null), we = ve(null);
+ function Te(e, t) {
+ switch (be(Ce, t), be(Se, e), be(xe, null), t.nodeType) {
case 9:
case 11:
e = (e = t.documentElement) && (e = e.namespaceURI) ? up(e) : 0;
@@ -8304,34 +8304,34 @@ var cu = /* @__PURE__ */ m(((e) => {
default: e = 0;
}
}
- ve(be), ye(be, e);
+ ye(xe), be(xe, e);
}
- function Te() {
- ve(be), ve(xe), ve(Se);
+ function Ee() {
+ ye(xe), ye(Se), ye(Ce);
}
- function Ee(e) {
+ function De(e) {
var t = e.memoizedState;
- t !== null && (sh._currentValue = t.memoizedState, ye(Ce, e)), t = be.current;
+ t !== null && (sh._currentValue = t.memoizedState, be(we, e)), t = xe.current;
var n = dp(t, e.type);
- t !== n && (ye(xe, e), ye(be, n));
+ t !== n && (be(Se, e), be(xe, n));
}
- function De(e) {
- xe.current === e && (ve(be), ve(xe)), Ce.current === e && (ve(Ce), sh._currentValue = me);
+ function Oe(e) {
+ Se.current === e && (ye(xe), ye(Se)), we.current === e && (ye(we), sh._currentValue = he);
}
- var Oe, ke;
- function Ae(e) {
- if (Oe === void 0) try {
+ var ke, Ae;
+ function je(e) {
+ if (ke === void 0) try {
throw Error();
} catch (e) {
var t = e.stack.trim().match(/\n( *(at )?)/);
- Oe = t && t[1] || "", ke = -1 < e.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";
+ ke = t && t[1] || "", Ae = -1 < e.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";
}
- return "\n" + Oe + e + ke;
+ return "\n" + ke + e + Ae;
}
- var je = !1;
- function Me(e, t) {
- if (!e || je) return "";
- je = !0;
+ var Me = !1;
+ function Ne(e, t) {
+ if (!e || Me) return "";
+ Me = !0;
var n = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
try {
@@ -8402,50 +8402,50 @@ var cu = /* @__PURE__ */ m(((e) => {
}
}
} finally {
- je = !1, Error.prepareStackTrace = n;
+ Me = !1, Error.prepareStackTrace = n;
}
- return (n = e ? e.displayName || e.name : "") ? Ae(n) : "";
+ return (n = e ? e.displayName || e.name : "") ? je(n) : "";
}
- function Ne(e, t) {
+ function Pe(e, t) {
switch (e.tag) {
case 26:
case 27:
- case 5: return Ae(e.type);
- case 16: return Ae("Lazy");
- case 13: return e.child !== t && t !== null ? Ae("Suspense Fallback") : Ae("Suspense");
- case 19: return Ae("SuspenseList");
+ case 5: return je(e.type);
+ case 16: return je("Lazy");
+ case 13: return e.child !== t && t !== null ? je("Suspense Fallback") : je("Suspense");
+ case 19: return je("SuspenseList");
case 0:
- case 15: return Me(e.type, !1);
- case 11: return Me(e.type.render, !1);
- case 1: return Me(e.type, !0);
- case 31: return Ae("Activity");
- case 30: return Ae("ViewTransition");
+ case 15: return Ne(e.type, !1);
+ case 11: return Ne(e.type.render, !1);
+ case 1: return Ne(e.type, !0);
+ case 31: return je("Activity");
+ case 30: return je("ViewTransition");
default: return "";
}
}
- function Pe(e) {
+ function Fe(e) {
try {
var t = "", n = null;
do
- t += Ne(e, n), n = e, e = e.return;
+ t += Pe(e, n), n = e, e = e.return;
while (e);
return t;
} catch (e) {
return "\nError generating stack: " + e.message + "\n" + e.stack;
}
}
- var Fe = Object.prototype.hasOwnProperty, Ie = t.unstable_scheduleCallback, Le = t.unstable_cancelCallback, Re = t.unstable_shouldYield, ze = t.unstable_requestPaint, Be = t.unstable_now, Ve = t.unstable_getCurrentPriorityLevel, He = t.unstable_ImmediatePriority, Ue = t.unstable_UserBlockingPriority, We = t.unstable_NormalPriority, Ge = t.unstable_LowPriority, Ke = t.unstable_IdlePriority, qe = t.log, Je = t.unstable_setDisableYieldValue, Ye = null, Xe = null;
- function Ze(e) {
- if (typeof qe == "function" && Je(e), Xe && typeof Xe.setStrictMode == "function") try {
- Xe.setStrictMode(Ye, e);
+ var Ie = Object.prototype.hasOwnProperty, Le = t.unstable_scheduleCallback, Re = t.unstable_cancelCallback, ze = t.unstable_shouldYield, Be = t.unstable_requestPaint, Ve = t.unstable_now, He = t.unstable_getCurrentPriorityLevel, Ue = t.unstable_ImmediatePriority, We = t.unstable_UserBlockingPriority, Ge = t.unstable_NormalPriority, Ke = t.unstable_LowPriority, qe = t.unstable_IdlePriority, Je = t.log, Ye = t.unstable_setDisableYieldValue, Xe = null, Ze = null;
+ function Qe(e) {
+ if (typeof Je == "function" && Ye(e), Ze && typeof Ze.setStrictMode == "function") try {
+ Ze.setStrictMode(Xe, e);
} catch {}
}
- var Qe = Math.clz32 ? Math.clz32 : tt, $e = Math.log, et = Math.LN2;
- function tt(e) {
- return e >>>= 0, e === 0 ? 32 : 31 - ($e(e) / et | 0) | 0;
+ var $e = Math.clz32 ? Math.clz32 : nt, et = Math.log, tt = Math.LN2;
+ function nt(e) {
+ return e >>>= 0, e === 0 ? 32 : 31 - (et(e) / tt | 0) | 0;
}
- var nt = 256, rt = 262144, it = 4194304;
- function at(e) {
+ var rt = 256, it = 262144, at = 4194304;
+ function ot(e) {
var t = e & 42;
if (t !== 0) return t;
switch (e & -e) {
@@ -8483,27 +8483,27 @@ var cu = /* @__PURE__ */ m(((e) => {
default: return e;
}
}
- function ot(e, t, n) {
+ function st(e, t, n) {
var r = e.pendingLanes;
if (r === 0) return 0;
var i = 0, a = e.suspendedLanes, o = e.pingedLanes;
e = e.warmLanes;
var s = r & 134217727;
- return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = at(n))) : i = at(o) : i = at(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = at(n))) : i = at(o)) : i = at(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i;
+ return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = ot(n))) : i = ot(o) : i = ot(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = ot(n))) : i = ot(o)) : i = ot(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i;
}
- function st(e, t) {
+ function ct(e, t) {
return (e.pendingLanes & ~(e.suspendedLanes & ~e.pingedLanes) & t) === 0;
}
- function ct(e, t) {
+ function lt(e, t) {
t & 8 && (t |= t & 32);
var n = e.entangledLanes;
if (n !== 0) for (e = e.entanglements, n &= t; 0 < n;) {
- var r = 31 - Qe(n), i = 1 << r;
+ var r = 31 - $e(n), i = 1 << r;
t |= e[r], n &= ~i;
}
return t;
}
- function lt(e, t) {
+ function ut(e, t) {
switch (e) {
case 1:
case 2:
@@ -8539,23 +8539,23 @@ var cu = /* @__PURE__ */ m(((e) => {
default: return -1;
}
}
- function ut() {
- var e = it;
- return it <<= 1, !(it & 62914560) && (it = 4194304), e;
+ function dt() {
+ var e = at;
+ return at <<= 1, !(at & 62914560) && (at = 4194304), e;
}
- function dt(e) {
+ function ft(e) {
for (var t = [], n = 0; 31 > n; n++) t.push(e);
return t;
}
- function ft(e, t) {
+ function pt(e, t) {
e.pendingLanes |= t, t !== 268435456 && (e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0);
}
- function pt(e, t, n, r, i, a) {
+ function mt(e, t, n, r, i, a) {
var o = e.pendingLanes;
e.pendingLanes = n, e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0, e.expiredLanes &= n, e.entangledLanes &= n, e.errorRecoveryDisabledLanes &= n, e.shellSuspendCounter = 0;
var s = e.entanglements, c = e.expirationTimes, l = e.hiddenUpdates;
for (n = o & ~n; 0 < n;) {
- var u = 31 - Qe(n), d = 1 << u;
+ var u = 31 - $e(n), d = 1 << u;
s[u] = 0, c[u] = -1;
var f = l[u];
if (f !== null) for (l[u] = null, u = 0; u < f.length; u++) {
@@ -8564,25 +8564,25 @@ var cu = /* @__PURE__ */ m(((e) => {
}
n &= ~d;
}
- r !== 0 && mt(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
+ r !== 0 && ht(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
}
- function mt(e, t, n) {
+ function ht(e, t, n) {
e.pendingLanes |= t, e.suspendedLanes &= ~t;
- var r = 31 - Qe(t);
+ var r = 31 - $e(t);
e.entangledLanes |= t, e.entanglements[r] = e.entanglements[r] | 1073741824 | n & 261930;
}
- function ht(e, t) {
+ function gt(e, t) {
var n = e.entangledLanes |= t;
for (e = e.entanglements; n;) {
- var r = 31 - Qe(n), i = 1 << r;
+ var r = 31 - $e(n), i = 1 << r;
i & t | e[r] & t && (e[r] |= t), n &= ~i;
}
}
- function gt(e, t) {
+ function _t(e, t) {
var n = t & -t;
- return n = n & 42 ? 1 : _t(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;
+ return n = n & 42 ? 1 : vt(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;
}
- function _t(e) {
+ function vt(e) {
switch (e) {
case 2:
e = 1;
@@ -8620,32 +8620,32 @@ var cu = /* @__PURE__ */ m(((e) => {
}
return e;
}
- function vt(e) {
+ function yt(e) {
return e &= -e, 2 < e ? 8 < e ? e & 134217727 ? 32 : 268435456 : 8 : 2;
}
- function yt() {
- var e = I.p;
+ function bt() {
+ var e = F.p;
return e === 0 ? (e = window.event, e === void 0 ? 32 : Ch(e.type)) : e;
}
- function bt(e, t) {
- var n = I.p;
+ function xt(e, t) {
+ var n = F.p;
try {
- return I.p = e, t();
+ return F.p = e, t();
} finally {
- I.p = n;
+ F.p = n;
}
}
- var xt = Math.random().toString(36).slice(2), St = "__reactFiber$" + xt, Ct = "__reactProps$" + xt, wt = "__reactContainer$" + xt, Tt = "__reactEvents$" + xt, L = "__reactListeners$" + xt, Et = "__reactHandles$" + xt, Dt = "__reactResources$" + xt, Ot = "__reactMarker$" + xt, kt = "__reactLoad$" + xt;
- function At(e) {
- delete e[St], delete e[Ct], delete e[L], delete e[Et];
- }
+ var St = Math.random().toString(36).slice(2), Ct = "__reactFiber$" + St, wt = "__reactProps$" + St, Tt = "__reactContainer$" + St, Et = "__reactEvents$" + St, I = "__reactListeners$" + St, Dt = "__reactHandles$" + St, Ot = "__reactResources$" + St, kt = "__reactMarker$" + St, At = "__reactLoad$" + St;
function jt(e) {
+ delete e[Ct], delete e[wt], delete e[I], delete e[Dt];
+ }
+ function Mt(e) {
var t;
- if (t = e[St]) return t;
+ if (t = e[Ct]) return t;
for (var n = e.parentNode; n;) {
- if (t = n[wt] || n[St]) {
+ if (t = n[Tt] || n[Ct]) {
if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = fm(e); e !== null;) {
- if (n = e[St]) return n;
+ if (n = e[Ct]) return n;
e = fm(e);
}
return t;
@@ -8654,49 +8654,49 @@ var cu = /* @__PURE__ */ m(((e) => {
}
return null;
}
- function Mt(e) {
- if (e = e[St] || e[wt]) {
+ function Nt(e) {
+ if (e = e[Ct] || e[Tt]) {
var t = e.tag;
if (t === 5 || t === 6 || t === 13 || t === 31 || t === 26 || t === 27 || t === 3) return e;
}
return null;
}
- function Nt(e) {
+ function Pt(e) {
var t = e.tag;
if (t === 5 || t === 26 || t === 27 || t === 6) return e.stateNode;
throw Error(i(33));
}
- function Pt(e) {
- var t = e[Dt];
- return t ||= e[Dt] = {
+ function Ft(e) {
+ var t = e[Ot];
+ return t ||= e[Ot] = {
hoistableStyles: /* @__PURE__ */ new Map(),
hoistableScripts: /* @__PURE__ */ new Map()
}, t;
}
- function R(e) {
- e[Ot] = !0;
+ function L(e) {
+ e[kt] = !0;
}
- function Ft(e) {
- e[kt] = void 0;
- }
- var z = /* @__PURE__ */ new Set(), It = {};
- function Lt(e, t) {
- Rt(e, t), Rt(e + "Capture", t);
+ function It(e) {
+ e[At] = void 0;
}
+ var R = /* @__PURE__ */ new Set(), Lt = {};
function Rt(e, t) {
- for (It[e] = t, e = 0; e < t.length; e++) z.add(t[e]);
+ zt(e, t), zt(e + "Capture", t);
}
- var zt = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), Bt = {}, Vt = {};
- function Ht(e) {
- return Fe.call(Vt, e) ? !0 : Fe.call(Bt, e) ? !1 : zt.test(e) ? Vt[e] = !0 : (Bt[e] = !0, !1);
+ function zt(e, t) {
+ for (Lt[e] = t, e = 0; e < t.length; e++) R.add(t[e]);
}
- var B = !1;
- function Ut() {
- var e = B;
- return B = !1, e;
+ var Bt = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), Vt = {}, Ht = {};
+ function Ut(e) {
+ return Ie.call(Ht, e) ? !0 : Ie.call(Vt, e) ? !1 : Bt.test(e) ? Ht[e] = !0 : (Vt[e] = !0, !1);
}
- function Wt(e, t, n) {
- if (Ht(t)) {
+ var z = !1;
+ function Wt() {
+ var e = z;
+ return z = !1, e;
+ }
+ function Gt(e, t, n) {
+ if (Ut(t)) {
if (n === null) e.removeAttribute(t);
else {
switch (typeof n) {
@@ -8716,7 +8716,7 @@ var cu = /* @__PURE__ */ m(((e) => {
}
}
}
- function Gt(e, t, n) {
+ function Kt(e, t, n) {
if (n === null) e.removeAttribute(t);
else {
switch (typeof n) {
@@ -8730,7 +8730,7 @@ var cu = /* @__PURE__ */ m(((e) => {
e.setAttribute(t, n);
}
}
- function Kt(e, t, n, r) {
+ function qt(e, t, n, r) {
if (r === null) e.removeAttribute(n);
else {
switch (typeof r) {
@@ -8744,7 +8744,7 @@ var cu = /* @__PURE__ */ m(((e) => {
e.setAttributeNS(t, n, r);
}
}
- function V(e) {
+ function B(e) {
switch (typeof e) {
case "bigint":
case "boolean":
@@ -8755,11 +8755,11 @@ var cu = /* @__PURE__ */ m(((e) => {
default: return "";
}
}
- function qt(e) {
+ function Jt(e) {
var t = e.type;
return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio");
}
- function Jt(e, t, n) {
+ function Yt(e, t, n) {
var r = Object.getOwnPropertyDescriptor(e.constructor.prototype, t);
if (!e.hasOwnProperty(t) && r !== void 0 && typeof r.get == "function" && typeof r.set == "function") {
var i = r.get, a = r.set;
@@ -8784,48 +8784,48 @@ var cu = /* @__PURE__ */ m(((e) => {
};
}
}
- function Yt(e) {
+ function Xt(e) {
if (!e._valueTracker) {
- var t = qt(e) ? "checked" : "value";
- e._valueTracker = Jt(e, t, "" + e[t]);
+ var t = Jt(e) ? "checked" : "value";
+ e._valueTracker = Yt(e, t, "" + e[t]);
}
}
- function Xt(e) {
+ function Zt(e) {
if (!e) return !1;
var t = e._valueTracker;
if (!t) return !0;
var n = t.getValue(), r = "";
- return e && (r = qt(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);
+ return e && (r = Jt(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);
}
- var Zt = /[\n"\\]/g;
- function Qt(e) {
- return e.replace(Zt, function(e) {
+ var Qt = /[\n"\\]/g;
+ function $t(e) {
+ return e.replace(Qt, function(e) {
return "\\" + e.charCodeAt(0).toString(16) + " ";
});
}
- function $t(e, t, n, r, i, a, o, s) {
- e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.type = o : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + V(t)) : e.value !== "" + V(t) && (e.value = "" + V(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : tn(e, V(n)) : o === "number" && e.value == t ? tn(e, V(e.value)) : tn(e, V(t)), i == null && a != null && (e.defaultChecked = !!a), i != null && (e.checked = i && typeof i != "function" && typeof i != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? e.name = "" + V(s) : e.removeAttribute("name");
- }
function en(e, t, n, r, i, a, o, s) {
+ e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.type = o : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + B(t)) : e.value !== "" + B(t) && (e.value = "" + B(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : nn(e, B(n)) : o === "number" && e.value == t ? nn(e, B(e.value)) : nn(e, B(t)), i == null && a != null && (e.defaultChecked = !!a), i != null && (e.checked = i && typeof i != "function" && typeof i != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? e.name = "" + B(s) : e.removeAttribute("name");
+ }
+ function tn(e, t, n, r, i, a, o, s) {
if (a != null && typeof a != "function" && typeof a != "symbol" && typeof a != "boolean" && (e.type = a), t != null || n != null) {
if (!(a !== "submit" && a !== "reset" || t != null)) {
- Yt(e);
+ Xt(e);
return;
}
- n = n == null ? "" : "" + V(n), t = t == null ? n : "" + V(t), s || t === e.value || (e.value = t), e.defaultValue = t;
+ n = n == null ? "" : "" + B(n), t = t == null ? n : "" + B(t), s || t === e.value || (e.value = t), e.defaultValue = t;
}
- r ??= i, r = typeof r != "function" && typeof r != "symbol" && !!r, e.checked = s ? e.checked : !!r, e.defaultChecked = !!r, o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" && (e.name = o), Yt(e);
+ r ??= i, r = typeof r != "function" && typeof r != "symbol" && !!r, e.checked = s ? e.checked : !!r, e.defaultChecked = !!r, o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" && (e.name = o), Xt(e);
}
- function tn(e, t) {
+ function nn(e, t) {
e.defaultValue !== "" + t && (e.defaultValue = "" + t);
}
- function nn(e, t, n, r) {
+ function rn(e, t, n, r) {
if (e = e.options, t) {
t = {};
for (var i = 0; i < n.length; i++) t["$" + n[i]] = !0;
for (n = 0; n < e.length; n++) i = t.hasOwnProperty("$" + e[n].value), e[n].selected !== i && (e[n].selected = i), i && r && (e[n].defaultSelected = !0);
} else {
- for (n = "" + V(n), t = null, i = 0; i < e.length; i++) {
+ for (n = "" + B(n), t = null, i = 0; i < e.length; i++) {
if (e[i].value === n) {
e[i].selected = !0, r && (e[i].defaultSelected = !0);
return;
@@ -8835,18 +8835,18 @@ var cu = /* @__PURE__ */ m(((e) => {
t !== null && (t.selected = !0);
}
}
- function rn(e, t, n) {
- if (t != null && (t = "" + V(t), t !== e.value && (e.value = t), n == null)) {
+ function an(e, t, n) {
+ if (t != null && (t = "" + B(t), t !== e.value && (e.value = t), n == null)) {
e.defaultValue !== t && (e.defaultValue = t);
return;
}
- e.defaultValue = n == null ? "" : "" + V(n);
+ e.defaultValue = n == null ? "" : "" + B(n);
}
- function an(e, t, n, r) {
+ function on(e, t, n, r) {
if (t == null) {
if (r != null) {
if (n != null) throw Error(i(92));
- if (pe(r)) {
+ if (me(r)) {
if (1 < r.length) throw Error(i(93));
r = r[0];
}
@@ -8854,9 +8854,9 @@ var cu = /* @__PURE__ */ m(((e) => {
}
n ??= "", t = n;
}
- n = V(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), Yt(e);
+ n = B(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), Xt(e);
}
- function on(e, t) {
+ function sn(e, t) {
if (t) {
var n = e.firstChild;
if (n && n === e.lastChild && n.nodeType === 3) {
@@ -8866,19 +8866,19 @@ var cu = /* @__PURE__ */ m(((e) => {
}
e.textContent = t;
}
- var sn = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));
- function cn(e, t, n) {
+ var cn = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));
+ function ln(e, t, n) {
var r = t.indexOf("--") === 0;
- n == null || typeof n == "boolean" || n === "" ? r ? e.setProperty(t, "") : t === "float" ? e.cssFloat = "" : e[t] = "" : r ? e.setProperty(t, n) : typeof n != "number" || n === 0 || sn.has(t) ? t === "float" ? e.cssFloat = n : e[t] = ("" + n).trim() : e[t] = n + "px";
+ n == null || typeof n == "boolean" || n === "" ? r ? e.setProperty(t, "") : t === "float" ? e.cssFloat = "" : e[t] = "" : r ? e.setProperty(t, n) : typeof n != "number" || n === 0 || cn.has(t) ? t === "float" ? e.cssFloat = n : e[t] = ("" + n).trim() : e[t] = n + "px";
}
- function ln(e, t, n) {
+ function un(e, t, n) {
if (t != null && typeof t != "object") throw Error(i(62));
if (e = e.style, n != null) {
- for (var r in n) !n.hasOwnProperty(r) || t != null && t.hasOwnProperty(r) || (r.indexOf("--") === 0 ? e.setProperty(r, "") : r === "float" ? e.cssFloat = "" : e[r] = "", B = !0);
- for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && (cn(e, a, r), B = !0);
- } else for (var o in t) t.hasOwnProperty(o) && cn(e, o, t[o]);
+ for (var r in n) !n.hasOwnProperty(r) || t != null && t.hasOwnProperty(r) || (r.indexOf("--") === 0 ? e.setProperty(r, "") : r === "float" ? e.cssFloat = "" : e[r] = "", z = !0);
+ for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && (ln(e, a, r), z = !0);
+ } else for (var o in t) t.hasOwnProperty(o) && ln(e, o, t[o]);
}
- function un(e) {
+ function dn(e) {
if (e.indexOf("-") === -1) return !1;
switch (e) {
case "annotation-xml":
@@ -8892,7 +8892,7 @@ var cu = /* @__PURE__ */ m(((e) => {
default: return !0;
}
}
- var dn = /* @__PURE__ */ new Map([
+ var fn = /* @__PURE__ */ new Map([
["acceptCharset", "accept-charset"],
["htmlFor", "for"],
["httpEquiv", "http-equiv"],
@@ -8972,56 +8972,56 @@ var cu = /* @__PURE__ */ m(((e) => {
["writingMode", "writing-mode"],
["xmlnsXlink", "xmlns:xlink"],
["xHeight", "x-height"]
- ]), fn = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;
- function pn(e) {
- return fn.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;
+ ]), pn = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;
+ function mn(e) {
+ return pn.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;
}
- function mn() {}
- var hn = null;
- function gn(e) {
+ function hn() {}
+ var gn = null;
+ function _n(e) {
return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e;
}
- var _n = null, vn = null;
- function yn(e) {
- var t = Mt(e);
+ var vn = null, yn = null;
+ function bn(e) {
+ var t = Nt(e);
if (t && (e = t.stateNode)) {
- var n = e[Ct] || null;
+ var n = e[wt] || null;
a: switch (e = t.stateNode, t.type) {
case "input":
- if ($t(e, n.value, n.defaultValue, n.defaultValue, n.checked, n.defaultChecked, n.type, n.name), t = n.name, n.type === "radio" && t != null) {
+ if (en(e, n.value, n.defaultValue, n.defaultValue, n.checked, n.defaultChecked, n.type, n.name), t = n.name, n.type === "radio" && t != null) {
for (n = e; n.parentNode;) n = n.parentNode;
- for (n = n.querySelectorAll("input[name=\"" + Qt("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {
+ for (n = n.querySelectorAll("input[name=\"" + $t("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {
var r = n[t];
if (r !== e && r.form === e.form) {
- var a = r[Ct] || null;
+ var a = r[wt] || null;
if (!a) throw Error(i(90));
- $t(r, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name);
+ en(r, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name);
}
}
- for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && Xt(r);
+ for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && Zt(r);
}
break a;
case "textarea":
- rn(e, n.value, n.defaultValue);
+ an(e, n.value, n.defaultValue);
break a;
- case "select": t = n.value, t != null && nn(e, !!n.multiple, t, !1);
+ case "select": t = n.value, t != null && rn(e, !!n.multiple, t, !1);
}
}
}
- var bn = !1;
- function xn(e, t, n) {
- if (bn) return e(t, n);
- bn = !0;
+ var xn = !1;
+ function Sn(e, t, n) {
+ if (xn) return e(t, n);
+ xn = !0;
try {
return e(t);
} finally {
- if (bn = !1, (_n !== null || vn !== null) && (Ld(), _n && (t = _n, e = vn, vn = _n = null, yn(t), e))) for (t = 0; t < e.length; t++) yn(e[t]);
+ if (xn = !1, (vn !== null || yn !== null) && (zd(), vn && (t = vn, e = yn, yn = vn = null, bn(t), e))) for (t = 0; t < e.length; t++) bn(e[t]);
}
}
- function Sn(e, t) {
+ function Cn(e, t) {
var n = e.stateNode;
if (n === null) return null;
- var r = n[Ct] || null;
+ var r = n[wt] || null;
if (r === null) return null;
n = r[t];
a: switch (t) {
@@ -9044,54 +9044,54 @@ var cu = /* @__PURE__ */ m(((e) => {
if (n && typeof n != "function") throw Error(i(231, t, typeof n));
return n;
}
- var Cn = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), wn = !1;
- if (Cn) try {
- var Tn = {};
- Object.defineProperty(Tn, "passive", { get: function() {
- wn = !0;
- } }), window.addEventListener("test", Tn, Tn), window.removeEventListener("test", Tn, Tn);
+ var wn = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), Tn = !1;
+ if (wn) try {
+ var En = {};
+ Object.defineProperty(En, "passive", { get: function() {
+ Tn = !0;
+ } }), window.addEventListener("test", En, En), window.removeEventListener("test", En, En);
} catch {
- wn = !1;
+ Tn = !1;
}
- var En = null, Dn = null, On = null;
- function kn() {
- if (On) return On;
- var e, t = Dn, n = t.length, r, i = "value" in En ? En.value : En.textContent, a = i.length;
+ var Dn = null, On = null, kn = null;
+ function An() {
+ if (kn) return kn;
+ var e, t = On, n = t.length, r, i = "value" in Dn ? Dn.value : Dn.textContent, a = i.length;
for (e = 0; e < n && t[e] === i[e]; e++);
var o = n - e;
for (r = 1; r <= o && t[n - r] === i[a - r]; r++);
- return On = i.slice(e, 1 < r ? 1 - r : void 0);
+ return kn = i.slice(e, 1 < r ? 1 - r : void 0);
}
- function An(e) {
+ function jn(e) {
var t = e.keyCode;
return "charCode" in e ? (e = e.charCode, e === 0 && t === 13 && (e = 13)) : e = t, e === 10 && (e = 13), 32 <= e || e === 13 ? e : 0;
}
- function jn() {
+ function Mn() {
return !0;
}
- function Mn() {
+ function Nn() {
return !1;
}
- function Nn(e) {
+ function Pn(e) {
function t(t, n, r, i, a) {
for (var o in this._reactName = t, this._targetInst = r, this.type = n, this.nativeEvent = i, this.target = a, this.currentTarget = null, e) e.hasOwnProperty(o) && (t = e[o], this[o] = t ? t(i) : i[o]);
- return this.isDefaultPrevented = (i.defaultPrevented == null ? !1 === i.returnValue : i.defaultPrevented) ? jn : Mn, this.isPropagationStopped = Mn, this;
+ return this.isDefaultPrevented = (i.defaultPrevented == null ? !1 === i.returnValue : i.defaultPrevented) ? Mn : Nn, this.isPropagationStopped = Nn, this;
}
return T(t.prototype, {
preventDefault: function() {
this.defaultPrevented = !0;
var e = this.nativeEvent;
- e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = jn);
+ e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = Mn);
},
stopPropagation: function() {
var e = this.nativeEvent;
- e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = jn);
+ e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = Mn);
},
persist: function() {},
- isPersistent: jn
+ isPersistent: Mn
}), t;
}
- var Pn = {
+ var Fn = {
eventPhase: 0,
bubbles: 0,
cancelable: 0,
@@ -9100,10 +9100,10 @@ var cu = /* @__PURE__ */ m(((e) => {
},
defaultPrevented: 0,
isTrusted: 0
- }, Fn = Nn(Pn), In = T({}, Pn, {
+ }, In = Pn(Fn), Ln = T({}, Fn, {
view: 0,
detail: 0
- }), Ln = Nn(In), Rn, zn, Bn, Vn = T({}, In, {
+ }), Rn = Pn(Ln), zn, Bn, Vn, Hn = T({}, Ln, {
screenX: 0,
screenY: 0,
clientX: 0,
@@ -9114,25 +9114,25 @@ var cu = /* @__PURE__ */ m(((e) => {
shiftKey: 0,
altKey: 0,
metaKey: 0,
- getModifierState: Qn,
+ getModifierState: $n,
button: 0,
buttons: 0,
relatedTarget: function(e) {
return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget;
},
movementX: function(e) {
- return "movementX" in e ? e.movementX : (e !== Bn && (Bn && e.type === "mousemove" ? (Rn = e.screenX - Bn.screenX, zn = e.screenY - Bn.screenY) : zn = Rn = 0, Bn = e), Rn);
+ return "movementX" in e ? e.movementX : (e !== Vn && (Vn && e.type === "mousemove" ? (zn = e.screenX - Vn.screenX, Bn = e.screenY - Vn.screenY) : Bn = zn = 0, Vn = e), zn);
},
movementY: function(e) {
- return "movementY" in e ? e.movementY : zn;
+ return "movementY" in e ? e.movementY : Bn;
}
- }), Hn = Nn(Vn), Un = Nn(T({}, Vn, { dataTransfer: 0 })), Wn = Nn(T({}, In, { relatedTarget: 0 })), Gn = Nn(T({}, Pn, {
+ }), Un = Pn(Hn), Wn = Pn(T({}, Hn, { dataTransfer: 0 })), Gn = Pn(T({}, Ln, { relatedTarget: 0 })), Kn = Pn(T({}, Fn, {
animationName: 0,
elapsedTime: 0,
pseudoElement: 0
- })), Kn = Nn(T({}, Pn, { clipboardData: function(e) {
+ })), qn = Pn(T({}, Fn, { clipboardData: function(e) {
return "clipboardData" in e ? e.clipboardData : window.clipboardData;
- } })), qn = Nn(T({}, Pn, { data: 0 })), Jn = {
+ } })), Jn = Pn(T({}, Fn, { data: 0 })), Yn = {
Esc: "Escape",
Spacebar: " ",
Left: "ArrowLeft",
@@ -9145,7 +9145,7 @@ var cu = /* @__PURE__ */ m(((e) => {
Apps: "ContextMenu",
Scroll: "ScrollLock",
MozPrintableKey: "Unidentified"
- }, Yn = {
+ }, Xn = {
8: "Backspace",
9: "Tab",
12: "Clear",
@@ -9182,26 +9182,26 @@ var cu = /* @__PURE__ */ m(((e) => {
144: "NumLock",
145: "ScrollLock",
224: "Meta"
- }, Xn = {
+ }, Zn = {
Alt: "altKey",
Control: "ctrlKey",
Meta: "metaKey",
Shift: "shiftKey"
};
- function Zn(e) {
+ function Qn(e) {
var t = this.nativeEvent;
- return t.getModifierState ? t.getModifierState(e) : (e = Xn[e]) ? !!t[e] : !1;
+ return t.getModifierState ? t.getModifierState(e) : (e = Zn[e]) ? !!t[e] : !1;
}
- function Qn() {
- return Zn;
+ function $n() {
+ return Qn;
}
- var $n = Nn(T({}, In, {
+ var er = Pn(T({}, Ln, {
key: function(e) {
if (e.key) {
- var t = Jn[e.key] || e.key;
+ var t = Yn[e.key] || e.key;
if (t !== "Unidentified") return t;
}
- return e.type === "keypress" ? (e = An(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? Yn[e.keyCode] || "Unidentified" : "";
+ return e.type === "keypress" ? (e = jn(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? Xn[e.keyCode] || "Unidentified" : "";
},
code: 0,
location: 0,
@@ -9211,17 +9211,17 @@ var cu = /* @__PURE__ */ m(((e) => {
metaKey: 0,
repeat: 0,
locale: 0,
- getModifierState: Qn,
+ getModifierState: $n,
charCode: function(e) {
- return e.type === "keypress" ? An(e) : 0;
+ return e.type === "keypress" ? jn(e) : 0;
},
keyCode: function(e) {
return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
},
which: function(e) {
- return e.type === "keypress" ? An(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
+ return e.type === "keypress" ? jn(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
}
- })), er = Nn(T({}, Vn, {
+ })), tr = Pn(T({}, Hn, {
pointerId: 0,
width: 0,
height: 0,
@@ -9232,7 +9232,7 @@ var cu = /* @__PURE__ */ m(((e) => {
twist: 0,
pointerType: 0,
isPrimary: 0
- })), tr = Nn(T({}, Pn, { submitter: 0 })), nr = Nn(T({}, In, {
+ })), nr = Pn(T({}, Fn, { submitter: 0 })), rr = Pn(T({}, Ln, {
touches: 0,
targetTouches: 0,
changedTouches: 0,
@@ -9240,12 +9240,12 @@ var cu = /* @__PURE__ */ m(((e) => {
metaKey: 0,
ctrlKey: 0,
shiftKey: 0,
- getModifierState: Qn
- })), rr = Nn(T({}, Pn, {
+ getModifierState: $n
+ })), ir = Pn(T({}, Fn, {
propertyName: 0,
elapsedTime: 0,
pseudoElement: 0
- })), ir = Nn(T({}, Vn, {
+ })), ar = Pn(T({}, Hn, {
deltaX: function(e) {
return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0;
},
@@ -9254,21 +9254,21 @@ var cu = /* @__PURE__ */ m(((e) => {
},
deltaZ: 0,
deltaMode: 0
- })), ar = Nn(T({}, Pn, {
+ })), or = Pn(T({}, Fn, {
newState: 0,
oldState: 0,
source: 0
- })), or = [
+ })), sr = [
9,
13,
27,
32
- ], sr = Cn && "CompositionEvent" in window, cr = null;
- Cn && "documentMode" in document && (cr = document.documentMode);
- var lr = Cn && "TextEvent" in window && !cr, ur = Cn && (!sr || cr && 8 < cr && 11 >= cr), dr = " ", fr = !1;
- function pr(e, t) {
+ ], cr = wn && "CompositionEvent" in window, lr = null;
+ wn && "documentMode" in document && (lr = document.documentMode);
+ var ur = wn && "TextEvent" in window && !lr, dr = wn && (!cr || lr && 8 < lr && 11 >= lr), fr = " ", pr = !1;
+ function mr(e, t) {
switch (e) {
- case "keyup": return or.indexOf(t.keyCode) !== -1;
+ case "keyup": return sr.indexOf(t.keyCode) !== -1;
case "keydown": return t.keyCode !== 229;
case "keypress":
case "mousedown":
@@ -9276,20 +9276,20 @@ var cu = /* @__PURE__ */ m(((e) => {
default: return !1;
}
}
- function mr(e) {
+ function hr(e) {
return e = e.detail, typeof e == "object" && "data" in e ? e.data : null;
}
- var hr = !1;
- function gr(e, t) {
+ var gr = !1;
+ function _r(e, t) {
switch (e) {
- case "compositionend": return mr(t);
- case "keypress": return t.which === 32 ? (fr = !0, dr) : null;
- case "textInput": return e = t.data, e === dr && fr ? null : e;
+ case "compositionend": return hr(t);
+ case "keypress": return t.which === 32 ? (pr = !0, fr) : null;
+ case "textInput": return e = t.data, e === fr && pr ? null : e;
default: return null;
}
}
- function _r(e, t) {
- if (hr) return e === "compositionend" || !sr && pr(e, t) ? (e = kn(), On = Dn = En = null, hr = !1, e) : null;
+ function vr(e, t) {
+ if (gr) return e === "compositionend" || !cr && mr(e, t) ? (e = An(), kn = On = Dn = null, gr = !1, e) : null;
switch (e) {
case "paste": return null;
case "keypress":
@@ -9298,11 +9298,11 @@ var cu = /* @__PURE__ */ m(((e) => {
if (t.which) return String.fromCharCode(t.which);
}
return null;
- case "compositionend": return ur && t.locale !== "ko" ? null : t.data;
+ case "compositionend": return dr && t.locale !== "ko" ? null : t.data;
default: return null;
}
}
- var H = {
+ var V = {
color: !0,
date: !0,
datetime: !0,
@@ -9319,76 +9319,76 @@ var cu = /* @__PURE__ */ m(((e) => {
url: !0,
week: !0
};
- function vr(e) {
+ function yr(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
- return t === "input" ? !!H[e.type] : t === "textarea";
+ return t === "input" ? !!V[e.type] : t === "textarea";
}
- function yr(e, t, n, r) {
- _n ? vn ? vn.push(r) : vn = [r] : _n = r, t = qf(t, "onChange"), 0 < t.length && (n = new Fn("onChange", "change", null, n, r), e.push({
+ function br(e, t, n, r) {
+ vn ? yn ? yn.push(r) : yn = [r] : vn = r, t = Yf(t, "onChange"), 0 < t.length && (n = new In("onChange", "change", null, n, r), e.push({
event: n,
listeners: t
}));
}
- var br = null, xr = null;
- function Sr(e) {
- Bf(e, 0);
- }
+ var xr = null, Sr = null;
function Cr(e) {
- if (Xt(Nt(e))) return e;
+ Hf(e, 0);
}
- function wr(e, t) {
+ function wr(e) {
+ if (Zt(Pt(e))) return e;
+ }
+ function Tr(e, t) {
if (e === "change") return t;
}
- var Tr = !1;
- if (Cn) {
- var Er;
- if (Cn) {
- var Dr = "oninput" in document;
- if (!Dr) {
- var Or = document.createElement("div");
- Or.setAttribute("oninput", "return;"), Dr = typeof Or.oninput == "function";
+ var Er = !1;
+ if (wn) {
+ var Dr;
+ if (wn) {
+ var Or = "oninput" in document;
+ if (!Or) {
+ var kr = document.createElement("div");
+ kr.setAttribute("oninput", "return;"), Or = typeof kr.oninput == "function";
}
- Er = Dr;
- } else Er = !1;
- Tr = Er && (!document.documentMode || 9 < document.documentMode);
+ Dr = Or;
+ } else Dr = !1;
+ Er = Dr && (!document.documentMode || 9 < document.documentMode);
}
- function kr() {
- br && (br.detachEvent("onpropertychange", Ar), xr = br = null);
+ function Ar() {
+ xr && (xr.detachEvent("onpropertychange", jr), Sr = xr = null);
}
- function Ar(e) {
- if (e.propertyName === "value" && Cr(xr)) {
+ function jr(e) {
+ if (e.propertyName === "value" && wr(Sr)) {
var t = [];
- yr(t, xr, e, gn(e)), xn(Sr, t);
+ br(t, Sr, e, _n(e)), Sn(Cr, t);
}
}
- function jr(e, t, n) {
- e === "focusin" ? (kr(), br = t, xr = n, br.attachEvent("onpropertychange", Ar)) : e === "focusout" && kr();
- }
- function Mr(e) {
- if (e === "selectionchange" || e === "keyup" || e === "keydown") return Cr(xr);
+ function Mr(e, t, n) {
+ e === "focusin" ? (Ar(), xr = t, Sr = n, xr.attachEvent("onpropertychange", jr)) : e === "focusout" && Ar();
}
- function Nr(e, t) {
- if (e === "click") return Cr(t);
+ function Nr(e) {
+ if (e === "selectionchange" || e === "keyup" || e === "keydown") return wr(Sr);
}
function Pr(e, t) {
- if (e === "input" || e === "change") return Cr(t);
+ if (e === "click") return wr(t);
}
function Fr(e, t) {
+ if (e === "input" || e === "change") return wr(t);
+ }
+ function Ir(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
- var Ir = typeof Object.is == "function" ? Object.is : Fr;
- function Lr(e, t) {
- if (Ir(e, t)) return !0;
+ var Lr = typeof Object.is == "function" ? Object.is : Ir;
+ function Rr(e, t) {
+ if (Lr(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
var n = Object.keys(e), r = Object.keys(t);
if (n.length !== r.length) return !1;
for (r = 0; r < n.length; r++) {
var i = n[r];
- if (!Fe.call(t, i) || !Ir(e[i], t[i])) return !1;
+ if (!Ie.call(t, i) || !Lr(e[i], t[i])) return !1;
}
return !0;
}
- function Rr(e) {
+ function zr(e) {
if (e ||= typeof document < "u" ? document : void 0, e === void 0) return null;
try {
return e.activeElement || e.body;
@@ -9396,12 +9396,12 @@ var cu = /* @__PURE__ */ m(((e) => {
return e.body;
}
}
- function zr(e) {
+ function Br(e) {
for (; e && e.firstChild;) e = e.firstChild;
return e;
}
- function Br(e, t) {
- var n = zr(e);
+ function Vr(e, t) {
+ var n = Br(e);
e = 0;
for (var r; n;) {
if (n.nodeType === 3) {
@@ -9421,15 +9421,15 @@ var cu = /* @__PURE__ */ m(((e) => {
}
n = void 0;
}
- n = zr(n);
+ n = Br(n);
}
}
- function Vr(e, t) {
- return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? Vr(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1;
+ function Hr(e, t) {
+ return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? Hr(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1;
}
- function Hr(e) {
+ function Ur(e) {
e = e != null && e.ownerDocument != null && e.ownerDocument.defaultView != null ? e.ownerDocument.defaultView : window;
- for (var t = Rr(e.document); t instanceof e.HTMLIFrameElement;) {
+ for (var t = zr(e.document); t instanceof e.HTMLIFrameElement;) {
try {
var n = typeof t.contentWindow.location.href == "string";
} catch {
@@ -9437,18 +9437,18 @@ var cu = /* @__PURE__ */ m(((e) => {
}
if (n) e = t.contentWindow;
else break;
- t = Rr(e.document);
+ t = zr(e.document);
}
return t;
}
- function Wr(e) {
+ function Gr(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true");
}
- var Gr = Cn && "documentMode" in document && 11 >= document.documentMode, Kr = null, qr = null, Jr = null, Yr = !1;
- function Xr(e, t, n) {
+ var Kr = wn && "documentMode" in document && 11 >= document.documentMode, qr = null, Jr = null, Yr = null, Xr = !1;
+ function Zr(e, t, n) {
var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument;
- Yr || Kr == null || Kr !== Rr(r) || (r = Kr, "selectionStart" in r && Wr(r) ? r = {
+ Xr || qr == null || qr !== zr(r) || (r = qr, "selectionStart" in r && Gr(r) ? r = {
start: r.selectionStart,
end: r.selectionEnd
} : (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection(), r = {
@@ -9456,48 +9456,48 @@ var cu = /* @__PURE__ */ m(((e) => {
anchorOffset: r.anchorOffset,
focusNode: r.focusNode,
focusOffset: r.focusOffset
- }), Jr && Lr(Jr, r) || (Jr = r, r = qf(qr, "onSelect"), 0 < r.length && (t = new Fn("onSelect", "select", null, t, n), e.push({
+ }), Yr && Rr(Yr, r) || (Yr = r, r = Yf(Jr, "onSelect"), 0 < r.length && (t = new In("onSelect", "select", null, t, n), e.push({
event: t,
listeners: r
- }), t.target = Kr)));
+ }), t.target = qr)));
}
- function Zr(e, t) {
+ function Qr(e, t) {
var n = {};
return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + t, n;
}
- var Qr = {
- animationend: Zr("Animation", "AnimationEnd"),
- animationiteration: Zr("Animation", "AnimationIteration"),
- animationstart: Zr("Animation", "AnimationStart"),
- transitionrun: Zr("Transition", "TransitionRun"),
- transitionstart: Zr("Transition", "TransitionStart"),
- transitioncancel: Zr("Transition", "TransitionCancel"),
- transitionend: Zr("Transition", "TransitionEnd")
- }, $r = {}, ei = {};
- Cn && (ei = document.createElement("div").style, "AnimationEvent" in window || (delete Qr.animationend.animation, delete Qr.animationiteration.animation, delete Qr.animationstart.animation), "TransitionEvent" in window || delete Qr.transitionend.transition);
- function ti(e) {
- if ($r[e]) return $r[e];
- if (!Qr[e]) return e;
- var t = Qr[e], n;
- for (n in t) if (t.hasOwnProperty(n) && n in ei) return $r[e] = t[n];
+ var $r = {
+ animationend: Qr("Animation", "AnimationEnd"),
+ animationiteration: Qr("Animation", "AnimationIteration"),
+ animationstart: Qr("Animation", "AnimationStart"),
+ transitionrun: Qr("Transition", "TransitionRun"),
+ transitionstart: Qr("Transition", "TransitionStart"),
+ transitioncancel: Qr("Transition", "TransitionCancel"),
+ transitionend: Qr("Transition", "TransitionEnd")
+ }, ei = {}, ti = {};
+ wn && (ti = document.createElement("div").style, "AnimationEvent" in window || (delete $r.animationend.animation, delete $r.animationiteration.animation, delete $r.animationstart.animation), "TransitionEvent" in window || delete $r.transitionend.transition);
+ function ni(e) {
+ if (ei[e]) return ei[e];
+ if (!$r[e]) return e;
+ var t = $r[e], n;
+ for (n in t) if (t.hasOwnProperty(n) && n in ti) return ei[e] = t[n];
return e;
}
- var ni = ti("animationend"), ri = ti("animationiteration"), ii = ti("animationstart"), ai = ti("transitionrun"), oi = ti("transitionstart"), si = ti("transitioncancel"), ci = ti("transitionend"), li = /* @__PURE__ */ new Map(), ui = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
- ui.push("scrollEnd");
- function di(e, t) {
- li.set(e, t), Lt(t, [e]);
+ var ri = ni("animationend"), ii = ni("animationiteration"), ai = ni("animationstart"), oi = ni("transitionrun"), si = ni("transitionstart"), ci = ni("transitioncancel"), li = ni("transitionend"), ui = /* @__PURE__ */ new Map(), di = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
+ di.push("scrollEnd");
+ function fi(e, t) {
+ ui.set(e, t), Rt(t, [e]);
}
- var fi = 0;
- function pi(e, t) {
+ var pi = 0;
+ function mi(e, t) {
if (e.name != null && e.name !== "auto") return e.name;
if (t.autoName !== null) return t.autoName;
- e = yd.identifierPrefix;
- var n = fi++;
+ e = Sd.identifierPrefix;
+ var n = pi++;
return e = "_" + e + "t_" + n.toString(32) + "_", t.autoName = e;
}
- function mi(e) {
+ function hi(e) {
if (e == null || typeof e == "string") return e;
- var t = null, n = Ed;
+ var t = null, n = kd;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = e[n[r]];
if (i != null) {
@@ -9507,10 +9507,10 @@ var cu = /* @__PURE__ */ m(((e) => {
}
return t ?? e.default;
}
- function hi(e, t) {
- return e = mi(e), t = mi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;
+ function gi(e, t) {
+ return e = hi(e), t = hi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;
}
- var gi = typeof reportError == "function" ? reportError : function(e) {
+ var _i = typeof reportError == "function" ? reportError : function(e) {
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
var t = new window.ErrorEvent("error", {
bubbles: !0,
@@ -9524,62 +9524,62 @@ var cu = /* @__PURE__ */ m(((e) => {
return;
}
console.error(e);
- }, _i = [], vi = 0, yi = 0;
- function bi() {
- for (var e = vi, t = yi = vi = 0; t < e;) {
- var n = _i[t];
- _i[t++] = null;
- var r = _i[t];
- _i[t++] = null;
- var i = _i[t];
- _i[t++] = null;
- var a = _i[t];
- if (_i[t++] = null, r !== null && i !== null) {
+ }, vi = [], yi = 0, bi = 0;
+ function xi() {
+ for (var e = yi, t = bi = yi = 0; t < e;) {
+ var n = vi[t];
+ vi[t++] = null;
+ var r = vi[t];
+ vi[t++] = null;
+ var i = vi[t];
+ vi[t++] = null;
+ var a = vi[t];
+ if (vi[t++] = null, r !== null && i !== null) {
var o = r.pending;
o === null ? i.next = i : (i.next = o.next, o.next = i), r.pending = i;
}
- a !== 0 && wi(n, i, a);
+ a !== 0 && Ti(n, i, a);
}
}
- function xi(e, t, n, r) {
- _i[vi++] = e, _i[vi++] = t, _i[vi++] = n, _i[vi++] = r, yi |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);
- }
function Si(e, t, n, r) {
- return xi(e, t, n, r), Ti(e);
+ vi[yi++] = e, vi[yi++] = t, vi[yi++] = n, vi[yi++] = r, bi |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);
}
- function Ci(e, t) {
- return xi(e, null, null, t), Ti(e);
+ function Ci(e, t, n, r) {
+ return Si(e, t, n, r), Ei(e);
}
- function wi(e, t, n) {
+ function wi(e, t) {
+ return Si(e, null, null, t), Ei(e);
+ }
+ function Ti(e, t, n) {
e.lanes |= n;
var r = e.alternate;
r !== null && (r.lanes |= n);
for (var i = !1, a = e.return; a !== null;) a.childLanes |= n, r = a.alternate, r !== null && (r.childLanes |= n), a.tag === 22 && (e = a.stateNode, e === null || e._visibility & 1 || (i = !0)), e = a, a = a.return;
- return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - Qe(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
+ return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - $e(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
}
- function Ti(e) {
- if (50 < Dd) throw Dd = 0, Od = null, Error(i(185));
+ function Ei(e) {
+ if (50 < Ad) throw Ad = 0, X = null, Error(i(185));
for (var t = e.return; t !== null;) e = t, t = e.return;
return e.tag === 3 ? e.stateNode : null;
}
- var Ei = {};
- function Di(e, t, n, r) {
+ var Di = {};
+ function Oi(e, t, n, r) {
this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null;
}
- function Oi(e, t, n, r) {
- return new Di(e, t, n, r);
+ function ki(e, t, n, r) {
+ return new Oi(e, t, n, r);
}
- function ki(e) {
+ function Ai(e) {
return e = e.prototype, !(!e || !e.isReactComponent);
}
- function Ai(e, t) {
+ function ji(e, t) {
var n = e.alternate;
- return n === null ? (n = Oi(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 1206910976, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : {
+ return n === null ? (n = ki(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 1206910976, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : {
lanes: t.lanes,
firstContext: t.firstContext
}, n.sibling = e.sibling, n.index = e.index, n.ref = e.ref, n.refCleanup = e.refCleanup, n;
}
- function ji(e, t) {
+ function Mi(e, t) {
e.flags &= 1206910978;
var n = e.alternate;
return n === null ? (e.childLanes = 0, e.lanes = t, e.child = null, e.subtreeFlags = 0, e.memoizedProps = null, e.memoizedState = null, e.updateQueue = null, e.dependencies = null, e.stateNode = null) : (e.childLanes = n.childLanes, e.lanes = n.lanes, e.child = n.child, e.subtreeFlags = 0, e.deletions = null, e.memoizedProps = n.memoizedProps, e.memoizedState = n.memoizedState, e.updateQueue = n.updateQueue, e.type = n.type, t = n.dependencies, e.dependencies = t === null ? null : {
@@ -9587,21 +9587,21 @@ var cu = /* @__PURE__ */ m(((e) => {
firstContext: t.firstContext
}), e;
}
- function Mi(e, t, n, r, a, o) {
+ function Ni(e, t, n, r, a, o) {
var s = 0;
- if (r = e, typeof r == "function") ki(r) && (s = 1);
- else if (typeof r == "string") s = qm(e, n, be.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
+ if (r = e, typeof r == "function") Ai(r) && (s = 1);
+ else if (typeof r == "string") s = qm(e, n, xe.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
else a: switch (r) {
- case ie: return e = Oi(31, n, t, a), e.elementType = ie, e.lanes = o, e;
- case k: return Ni(n.children, a, o, t);
+ case ae: return e = ki(31, n, t, a), e.elementType = ae, e.lanes = o, e;
+ case k: return Pi(n.children, a, o, t);
case A:
s = 8, a |= 24;
break;
- case ee: return e = Oi(12, n, t, a | 2), e.elementType = ee, e.lanes = o, e;
- case ne: return e = Oi(13, n, t, a), e.elementType = ne, e.lanes = o, e;
- case N: return e = Oi(19, n, t, a), e.elementType = N, e.lanes = o, e;
- case ae:
- case se: return e = a | 32, e = Oi(30, n, t, e), e.elementType = se, e.lanes = o, e.stateNode = {
+ case ee: return e = ki(12, n, t, a | 2), e.elementType = ee, e.lanes = o, e;
+ case ne: return e = ki(13, n, t, a), e.elementType = ne, e.lanes = o, e;
+ case N: return e = ki(19, n, t, a), e.elementType = N, e.lanes = o, e;
+ case oe:
+ case ce: return e = a | 32, e = ki(30, n, t, e), e.elementType = ce, e.lanes = o, e.stateNode = {
autoName: null,
paired: null,
clones: null,
@@ -9621,165 +9621,165 @@ var cu = /* @__PURE__ */ m(((e) => {
case re:
s = 14;
break a;
- case P:
+ case ie:
s = 16, r = null;
break a;
}
s = 29, n = Error(i(130, e === null ? "null" : typeof e, "")), r = null;
}
- return t = Oi(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;
+ return t = ki(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;
}
- function Ni(e, t, n, r) {
- return e = Oi(7, e, r, t), e.lanes = n, e;
+ function Pi(e, t, n, r) {
+ return e = ki(7, e, r, t), e.lanes = n, e;
}
- function Pi(e, t, n) {
- return e = Oi(6, e, null, t), e.lanes = n, e;
+ function Fi(e, t, n) {
+ return e = ki(6, e, null, t), e.lanes = n, e;
}
- function Fi(e) {
- var t = Oi(18, null, null, 0);
+ function Ii(e) {
+ var t = ki(18, null, null, 0);
return t.stateNode = e, t;
}
- function Ii(e, t, n) {
- return t = Oi(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {
+ function Li(e, t, n) {
+ return t = ki(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {
containerInfo: e.containerInfo,
pendingChildren: null,
implementation: e.implementation
}, t;
}
- var Li = /* @__PURE__ */ new WeakMap();
- function Ri(e, t) {
+ var Ri = /* @__PURE__ */ new WeakMap();
+ function zi(e, t) {
if (typeof e == "object" && e) {
- var n = Li.get(e);
+ var n = Ri.get(e);
return n === void 0 ? (t = {
value: e,
source: t,
- stack: Pe(t)
- }, Li.set(e, t), t) : n;
+ stack: Fe(t)
+ }, Ri.set(e, t), t) : n;
}
return {
value: e,
source: t,
- stack: Pe(t)
+ stack: Fe(t)
};
}
- var zi = [], Bi = 0, Vi = null, Hi = 0, Ui = [], Wi = 0, Gi = null, Ki = 1, qi = "";
- function Ji(e, t) {
- zi[Bi++] = Hi, zi[Bi++] = Vi, Vi = e, Hi = t;
+ var Bi = [], Vi = 0, Hi = null, Ui = 0, Wi = [], Gi = 0, Ki = null, qi = 1, Ji = "";
+ function Yi(e, t) {
+ Bi[Vi++] = Ui, Bi[Vi++] = Hi, Hi = e, Ui = t;
}
- function Yi(e, t, n) {
- Ui[Wi++] = Ki, Ui[Wi++] = qi, Ui[Wi++] = Gi, Gi = e;
- var r = Ki;
- e = qi;
- var i = 32 - Qe(r) - 1;
+ function Xi(e, t, n) {
+ Wi[Gi++] = qi, Wi[Gi++] = Ji, Wi[Gi++] = Ki, Ki = e;
+ var r = qi;
+ e = Ji;
+ var i = 32 - $e(r) - 1;
r &= ~(1 << i), n += 1;
- var a = 32 - Qe(t) + i;
+ var a = 32 - $e(t) + i;
if (30 < a) {
var o = i - i % 5;
- a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Ki = 1 << 32 - Qe(t) + i | n << i | r, qi = a + e;
- } else Ki = 1 << a | n << i | r, qi = e;
- }
- function Xi(e) {
- e.return !== null && (Ji(e, 1), Yi(e, 1, 0));
+ a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, qi = 1 << 32 - $e(t) + i | n << i | r, Ji = a + e;
+ } else qi = 1 << a | n << i | r, Ji = e;
}
function Zi(e) {
- for (; e === Vi;) Vi = zi[--Bi], zi[Bi] = null, Hi = zi[--Bi], zi[Bi] = null;
- for (; e === Gi;) Gi = Ui[--Wi], Ui[Wi] = null, qi = Ui[--Wi], Ui[Wi] = null, Ki = Ui[--Wi], Ui[Wi] = null;
+ e.return !== null && (Yi(e, 1), Xi(e, 1, 0));
}
- function Qi(e, t) {
- Ui[Wi++] = Ki, Ui[Wi++] = qi, Ui[Wi++] = Gi, Ki = t.id, qi = t.overflow, Gi = e;
+ function Qi(e) {
+ for (; e === Hi;) Hi = Bi[--Vi], Bi[Vi] = null, Ui = Bi[--Vi], Bi[Vi] = null;
+ for (; e === Ki;) Ki = Wi[--Gi], Wi[Gi] = null, Ji = Wi[--Gi], Wi[Gi] = null, qi = Wi[--Gi], Wi[Gi] = null;
}
- var U = null, $i = null, W = !1, ea = null, ta = !1, na = Error(i(519));
- function ra(e) {
- throw la(Ri(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), na;
+ function $i(e, t) {
+ Wi[Gi++] = qi, Wi[Gi++] = Ji, Wi[Gi++] = Ki, qi = t.id, Ji = t.overflow, Ki = e;
}
+ var H = null, ea = null, U = !1, ta = null, na = !1, ra = Error(i(519));
function ia(e) {
+ throw ua(zi(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), ra;
+ }
+ function aa(e) {
var t = e.stateNode, n = e.type, r = e.memoizedProps;
- switch (t[St] = e, t[Ct] = r, n) {
+ switch (t[Ct] = e, t[wt] = r, n) {
case "dialog":
- $("cancel", t), $("close", t);
+ Z("cancel", t), Z("close", t);
break;
case "iframe":
case "object":
case "embed":
- $("load", t);
+ Z("load", t);
break;
case "video":
case "audio":
- for (n = 0; n < Rf.length; n++) $(Rf[n], t);
+ for (n = 0; n < Bf.length; n++) Z(Bf[n], t);
break;
case "source":
- $("error", t);
+ Z("error", t);
break;
case "img":
case "image":
case "link":
- $("error", t), $("load", t);
+ Z("error", t), Z("load", t);
break;
case "details":
- $("toggle", t);
+ Z("toggle", t);
break;
case "input":
- $("invalid", t), en(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
+ Z("invalid", t), tn(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
break;
case "select":
- $("invalid", t);
+ Z("invalid", t);
break;
- case "textarea": $("invalid", t), an(t, r.value, r.defaultValue, r.children);
+ case "textarea": Z("invalid", t), on(t, r.value, r.defaultValue, r.children);
}
- n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || $f(t.textContent, n) ? (r.popover != null && ($("beforetoggle", t), $("toggle", t)), r.onScroll != null && $("scroll", t), r.onScrollEnd != null && $("scrollend", t), r.onClick != null && (t.onclick = mn), t = !0) : t = !1, t || ra(e, !0);
+ n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || tp(t.textContent, n) ? (r.popover != null && (Z("beforetoggle", t), Z("toggle", t)), r.onScroll != null && Z("scroll", t), r.onScrollEnd != null && Z("scrollend", t), r.onClick != null && (t.onclick = hn), t = !0) : t = !1, t || ia(e, !0);
}
- function aa(e) {
- for (U = e.return; U;) switch (U.tag) {
+ function oa(e) {
+ for (H = e.return; H;) switch (H.tag) {
case 5:
case 31:
case 13:
- ta = !1;
+ na = !1;
return;
case 27:
case 3:
- ta = !0;
+ na = !0;
return;
- default: U = U.return;
+ default: H = H.return;
}
}
- function oa(e) {
- if (e !== U) return !1;
- if (!W) return aa(e), W = !0, !1;
+ function sa(e) {
+ if (e !== H) return !1;
+ if (!U) return oa(e), U = !0, !1;
var t = e.tag, n;
- if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || pp(e.type, e.memoizedProps)), n = !n), n && $i && ra(e), aa(e), t === 13) {
+ if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || pp(e.type, e.memoizedProps)), n = !n), n && ea && ia(e), oa(e), t === 13) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
- $i = dm(e);
+ ea = dm(e);
} else if (t === 31) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
- $i = dm(e);
- } else t === 27 ? (t = $i, Sp(e.type) ? (e = um, um = null, $i = e) : $i = t) : $i = U ? lm(e.stateNode.nextSibling) : null;
+ ea = dm(e);
+ } else t === 27 ? (t = ea, Sp(e.type) ? (e = um, um = null, ea = e) : ea = t) : ea = H ? lm(e.stateNode.nextSibling) : null;
return !0;
}
- function sa() {
- $i = U = null, W = !1;
- }
function ca() {
- var e = ea;
- return e !== null && (fd === null ? fd = e : fd.push.apply(fd, e), ea = null), e;
+ ea = H = null, U = !1;
}
- function la(e) {
- ea === null ? ea = [e] : ea.push(e);
+ function la() {
+ var e = ta;
+ return e !== null && (md === null ? md = e : md.push.apply(md, e), ta = null), e;
}
- var ua = _e(null), da = null, fa = null;
- function pa(e, t, n) {
- ye(ua, t._currentValue), t._currentValue = n;
+ function ua(e) {
+ ta === null ? ta = [e] : ta.push(e);
}
- function ma(e) {
- e._currentValue = ua.current, ve(ua);
+ var da = ve(null), fa = null, pa = null;
+ function ma(e, t, n) {
+ be(da, t._currentValue), t._currentValue = n;
}
- function ha(e, t, n) {
+ function ha(e) {
+ e._currentValue = da.current, ye(da);
+ }
+ function ga(e, t, n) {
for (; e !== null;) {
var r = e.alternate;
if ((e.childLanes & t) === t ? r !== null && (r.childLanes & t) !== t && (r.childLanes |= t) : (e.childLanes |= t, r !== null && (r.childLanes |= t)), e === n) break;
e = e.return;
}
}
- function ga(e, t, n, r) {
+ function _a(e, t, n, r) {
var a = e.child;
for (a !== null && (a.return = e); a !== null;) {
var o = a.dependencies;
@@ -9790,15 +9790,15 @@ var cu = /* @__PURE__ */ m(((e) => {
var c = o;
o = a;
for (var l = 0; l < t.length; l++) if (c.context === t[l]) {
- o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), ha(o.return, n, e), r || (s = null);
+ o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), ga(o.return, n, e), r || (s = null);
break a;
}
o = c.next;
}
} else if (a.tag === 18) {
if (s = a.return, s === null) throw Error(i(341));
- s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), ha(s, n, e), s = null;
- } else a.tag === 13 && a.memoizedState !== null && a.memoizedState.dehydrated === null ? (a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), ha(a.return, n, e), s = a.child, s = s === null ? null : s.sibling) : s = a.child;
+ s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), ga(s, n, e), s = null;
+ } else a.tag === 13 && a.memoizedState !== null && a.memoizedState.dehydrated === null ? (a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), ga(a.return, n, e), s = a.child, s = s === null ? null : s.sibling) : s = a.child;
if (s !== null) s.return = a;
else for (s = a; s !== null;) {
if (s === e) {
@@ -9814,7 +9814,7 @@ var cu = /* @__PURE__ */ m(((e) => {
a = s;
}
}
- function _a(e, t, n, r) {
+ function va(e, t, n, r) {
e = null;
for (var a = t, o = !1; a !== null;) {
if (!o) {
@@ -9826,48 +9826,48 @@ var cu = /* @__PURE__ */ m(((e) => {
if (s === null) throw Error(i(387));
if (s = s.memoizedProps, s !== null) {
var c = a.type;
- Ir(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));
+ Lr(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));
}
- } else if (a === Ce.current) {
+ } else if (a === we.current) {
if (s = a.alternate, s === null) throw Error(i(387));
s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [sh] : e.push(sh));
}
a = a.return;
}
- return e !== null && ga(t, e, n, r), t.flags |= 262144, e !== null;
+ return e !== null && _a(t, e, n, r), t.flags |= 262144, e !== null;
}
- function va(e) {
+ function ya(e) {
for (e = e.firstContext; e !== null;) {
- if (!Ir(e.context._currentValue, e.memoizedValue)) return !0;
+ if (!Lr(e.context._currentValue, e.memoizedValue)) return !0;
e = e.next;
}
return !1;
}
- function ya(e) {
- da = e, fa = null, e = e.dependencies, e !== null && (e.firstContext = null);
- }
function ba(e) {
- return Sa(da, e);
+ fa = e, pa = null, e = e.dependencies, e !== null && (e.firstContext = null);
}
- function xa(e, t) {
- return da === null && ya(e), Sa(e, t);
+ function xa(e) {
+ return Ca(fa, e);
}
function Sa(e, t) {
+ return fa === null && ba(e), Ca(e, t);
+ }
+ function Ca(e, t) {
var n = t._currentValue;
if (t = {
context: t,
memoizedValue: n,
next: null
- }, fa === null) {
+ }, pa === null) {
if (e === null) throw Error(i(308));
- fa = t, e.dependencies = {
+ pa = t, e.dependencies = {
lanes: 0,
firstContext: t
}, e.flags |= 524288;
- } else fa = fa.next = t;
+ } else pa = pa.next = t;
return n;
}
- var Ca = typeof AbortController < "u" ? AbortController : function() {
+ var wa = typeof AbortController < "u" ? AbortController : function() {
var e = [], t = this.signal = {
aborted: !1,
addEventListener: function(t, n) {
@@ -9879,7 +9879,7 @@ var cu = /* @__PURE__ */ m(((e) => {
return e();
});
};
- }, wa = t.unstable_scheduleCallback, Ta = t.unstable_NormalPriority, G = {
+ }, Ta = t.unstable_scheduleCallback, Ea = t.unstable_NormalPriority, W = {
$$typeof: te,
Consumer: null,
Provider: null,
@@ -9887,19 +9887,19 @@ var cu = /* @__PURE__ */ m(((e) => {
_currentValue2: null,
_threadCount: 0
};
- function Ea() {
+ function Da() {
return {
- controller: new Ca(),
+ controller: new wa(),
data: /* @__PURE__ */ new Map(),
refCount: 0
};
}
- function Da(e) {
- e.refCount--, e.refCount === 0 && wa(Ta, function() {
+ function Oa(e) {
+ e.refCount--, e.refCount === 0 && Ta(Ea, function() {
e.controller.abort();
});
}
- function Oa(e, t) {
+ function ka(e, t) {
if (e.pendingLanes & 4194048) {
var n = e.transitionTypes;
for (n === null && (n = e.transitionTypes = []), e = 0; e < t.length; e++) {
@@ -9908,16 +9908,16 @@ var cu = /* @__PURE__ */ m(((e) => {
}
}
}
- var ka = null;
- function Aa(e) {
+ var Aa = null;
+ function ja(e) {
var t = e.transitionTypes;
return e.transitionTypes = null, t;
}
- var ja = null, Ma = 0, Na = 0, Pa = null;
- function Fa(e, t) {
- if (ja === null) {
- var n = ja = [];
- Ma = 0, Na = Nf(), Pa = {
+ var Ma = null, Na = 0, Pa = 0, Fa = null;
+ function Ia(e, t) {
+ if (Ma === null) {
+ var n = Ma = [];
+ Na = 0, Pa = Ff(), Fa = {
status: "pending",
value: void 0,
then: function(e) {
@@ -9925,17 +9925,17 @@ var cu = /* @__PURE__ */ m(((e) => {
}
};
}
- return Ma++, t.then(Ia, Ia), t;
+ return Na++, t.then(La, La), t;
}
- function Ia() {
- if (--Ma === 0 && (ka = null, ja !== null)) {
- Pa !== null && (Pa.status = "fulfilled");
- var e = ja;
- ja = null, Na = 0, Pa = null;
+ function La() {
+ if (--Na === 0 && (Aa = null, Ma !== null)) {
+ Fa !== null && (Fa.status = "fulfilled");
+ var e = Ma;
+ Ma = null, Pa = 0, Fa = null;
for (var t = 0; t < e.length; t++) (0, e[t])();
}
}
- function La(e, t) {
+ function Ra(e, t) {
var n = [], r = {
status: "pending",
value: null,
@@ -9951,48 +9951,48 @@ var cu = /* @__PURE__ */ m(((e) => {
for (r.status = "rejected", r.reason = e, e = 0; e < n.length; e++) (0, n[e])(void 0);
}), r;
}
- var Ra = F.S;
- F.S = function(e, t) {
- if (hd = Be(), typeof t == "object" && t && typeof t.then == "function" && Fa(e, t), ka !== null) for (var n = yf; n !== null;) Oa(n, ka), n = n.next;
+ var za = P.S;
+ P.S = function(e, t) {
+ if (_d = Ve(), typeof t == "object" && t && typeof t.then == "function" && Ia(e, t), Aa !== null) for (var n = xf; n !== null;) ka(n, Aa), n = n.next;
if (n = e.types, n !== null) {
- for (var r = yf; r !== null;) Oa(r, n), r = r.next;
- if (Na !== 0) {
- r = ka, r === null && (r = ka = []);
+ for (var r = xf; r !== null;) ka(r, n), r = r.next;
+ if (Pa !== 0) {
+ r = Aa, r === null && (r = Aa = []);
for (var i = 0; i < n.length; i++) {
var a = n[i];
r.indexOf(a) === -1 && r.push(a);
}
}
}
- Ra !== null && Ra(e, t);
+ za !== null && za(e, t);
};
- var za = _e(null);
- function Ba() {
- var e = za.current;
- return e === null ? $u.pooledCache : e;
+ var Ba = ve(null);
+ function Va() {
+ var e = Ba.current;
+ return e === null ? td.pooledCache : e;
}
- function Va(e, t) {
- t === null ? ye(za, za.current) : ye(za, t.pool);
+ function Ha(e, t) {
+ t === null ? be(Ba, Ba.current) : be(Ba, t.pool);
}
- function Ha() {
- var e = Ba();
+ function Ua() {
+ var e = Va();
return e === null ? null : {
- parent: G._currentValue,
+ parent: W._currentValue,
pool: e
};
}
- var Ua = Error(i(460)), Wa = Error(i(474)), Ga = Error(i(542)), Ka = { then: function() {} };
- function qa(e) {
+ var Wa = Error(i(460)), Ga = Error(i(474)), Ka = Error(i(542)), qa = { then: function() {} };
+ function Ja(e) {
return e = e.status, e === "fulfilled" || e === "rejected";
}
- function Ja(e, t, n) {
- switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(mn, mn), t = n), t.status) {
+ function Ya(e, t, n) {
+ switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(hn, hn), t = n), t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, Qa(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
+ case "rejected": throw e = t.reason, $a(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
default:
- if (typeof t.status == "string") t.then(mn, mn);
+ if (typeof t.status == "string") t.then(hn, hn);
else {
- if (e = $u, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));
+ if (e = td, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));
e = t, e.status = "pending", e.then(function(e) {
if (t.status === "pending") {
var n = t;
@@ -10007,40 +10007,40 @@ var cu = /* @__PURE__ */ m(((e) => {
}
switch (t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, Qa(e), e;
+ case "rejected": throw e = t.reason, $a(e), e;
}
- throw Xa = t, Ua;
+ throw Za = t, Wa;
}
}
- function Ya(e) {
+ function Xa(e) {
try {
var t = e._init;
return t(e._payload);
} catch (e) {
- throw typeof e == "object" && e && typeof e.then == "function" ? (Xa = e, Ua) : e;
+ throw typeof e == "object" && e && typeof e.then == "function" ? (Za = e, Wa) : e;
}
}
- var Xa = null;
- function Za() {
- if (Xa === null) throw Error(i(459));
- var e = Xa;
- return Xa = null, e;
+ var Za = null;
+ function Qa() {
+ if (Za === null) throw Error(i(459));
+ var e = Za;
+ return Za = null, e;
}
- function Qa(e) {
- if (e === Ua || e === Ga) throw Error(i(483));
+ function $a(e) {
+ if (e === Wa || e === Ka) throw Error(i(483));
}
- var $a = null, eo = 0;
- function to(e) {
- var t = eo;
- return eo += 1, $a === null && ($a = []), Ja($a, e, t);
+ var eo = null, to = 0;
+ function no(e) {
+ var t = to;
+ return to += 1, eo === null && (eo = []), Ya(eo, e, t);
}
- function no(e, t) {
+ function ro(e, t) {
t = t.props.ref, e.ref = t === void 0 ? null : t;
}
- function ro(e, t) {
+ function io(e, t) {
throw t.$$typeof === E ? Error(i(525)) : (e = Object.prototype.toString.call(t), Error(i(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)));
}
- function io(e) {
+ function ao(e) {
function t(t, n) {
if (e) {
var r = t.deletions;
@@ -10057,7 +10057,7 @@ var cu = /* @__PURE__ */ m(((e) => {
return t;
}
function a(e, t) {
- return e = Ai(e, t), e.index = 0, e.sibling = null, e;
+ return e = ji(e, t), e.index = 0, e.sibling = null, e;
}
function o(t, n, r) {
return t.index = r, e ? (r = t.alternate, r === null ? (t.flags |= 134217730, n) : (r = r.index, r < n ? (t.flags |= 2, n) : r)) : (t.flags |= 1048576, n);
@@ -10066,30 +10066,30 @@ var cu = /* @__PURE__ */ m(((e) => {
return e && t.alternate === null && (t.flags |= 134217730), t;
}
function c(e, t, n, r) {
- return t === null || t.tag !== 6 ? (t = Pi(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);
+ return t === null || t.tag !== 6 ? (t = Fi(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);
}
function l(e, t, n, r) {
var i = n.type;
- return i === k ? (e = d(e, t, n.props.children, r, n.key), no(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === P && Ya(i) === t.type) ? (t = a(t, n.props), no(t, n), t.return = e, t) : (t = Mi(n.type, n.key, n.props, null, e.mode, r), no(t, n), t.return = e, t);
+ return i === k ? (e = d(e, t, n.props.children, r, n.key), ro(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === ie && Xa(i) === t.type) ? (t = a(t, n.props), ro(t, n), t.return = e, t) : (t = Ni(n.type, n.key, n.props, null, e.mode, r), ro(t, n), t.return = e, t);
}
function u(e, t, n, r) {
- return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = Ii(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);
+ return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = Li(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);
}
function d(e, t, n, r, i) {
- return t === null || t.tag !== 7 ? (t = Ni(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);
+ return t === null || t.tag !== 7 ? (t = Pi(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);
}
function f(e, t, n) {
- if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Pi("" + t, e.mode, n), t.return = e, t;
+ if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Fi("" + t, e.mode, n), t.return = e, t;
if (typeof t == "object" && t) {
switch (t.$$typeof) {
- case D: return n = Mi(t.type, t.key, t.props, null, e.mode, n), no(n, t), n.return = e, n;
- case O: return t = Ii(t, e.mode, n), t.return = e, t;
- case P: return t = Ya(t), f(e, t, n);
+ case D: return n = Ni(t.type, t.key, t.props, null, e.mode, n), ro(n, t), n.return = e, n;
+ case O: return t = Li(t, e.mode, n), t.return = e, t;
+ case ie: return t = Xa(t), f(e, t, n);
}
- if (pe(t) || ue(t)) return t = Ni(t, e.mode, n, null), t.return = e, t;
- if (typeof t.then == "function") return f(e, to(t), n);
- if (t.$$typeof === te) return f(e, xa(e, t), n);
- ro(e, t);
+ if (me(t) || de(t)) return t = Pi(t, e.mode, n, null), t.return = e, t;
+ if (typeof t.then == "function") return f(e, no(t), n);
+ if (t.$$typeof === te) return f(e, Sa(e, t), n);
+ io(e, t);
}
return null;
}
@@ -10100,12 +10100,12 @@ var cu = /* @__PURE__ */ m(((e) => {
switch (n.$$typeof) {
case D: return n.key === i ? l(e, t, n, r) : null;
case O: return n.key === i ? u(e, t, n, r) : null;
- case P: return n = Ya(n), p(e, t, n, r);
+ case ie: return n = Xa(n), p(e, t, n, r);
}
- if (pe(n) || ue(n)) return i === null ? d(e, t, n, r, null) : null;
- if (typeof n.then == "function") return p(e, t, to(n), r);
- if (n.$$typeof === te) return p(e, t, xa(e, n), r);
- ro(e, n);
+ if (me(n) || de(n)) return i === null ? d(e, t, n, r, null) : null;
+ if (typeof n.then == "function") return p(e, t, no(n), r);
+ if (n.$$typeof === te) return p(e, t, Sa(e, n), r);
+ io(e, n);
}
return null;
}
@@ -10115,12 +10115,12 @@ var cu = /* @__PURE__ */ m(((e) => {
switch (r.$$typeof) {
case D: return e = e.get(r.key === null ? n : r.key) || null, l(t, e, r, i);
case O: return e = e.get(r.key === null ? n : r.key) || null, u(t, e, r, i);
- case P: return r = Ya(r), m(e, t, n, r, i);
+ case ie: return r = Xa(r), m(e, t, n, r, i);
}
- if (pe(r) || ue(r)) return e = e.get(n) || null, d(t, e, r, i, null);
- if (typeof r.then == "function") return m(e, t, n, to(r), i);
- if (r.$$typeof === te) return m(e, t, n, xa(t, r), i);
- ro(t, r);
+ if (me(r) || de(r)) return e = e.get(n) || null, d(t, e, r, i, null);
+ if (typeof r.then == "function") return m(e, t, n, no(r), i);
+ if (r.$$typeof === te) return m(e, t, n, Sa(t, r), i);
+ io(t, r);
}
return null;
}
@@ -10134,15 +10134,15 @@ var cu = /* @__PURE__ */ m(((e) => {
}
e && d && _.alternate === null && t(i, d), a = o(_, a, h), u === null ? l = _ : u.sibling = _, u = _, d = g;
}
- if (h === s.length) return n(i, d), W && Ji(i, h), l;
+ if (h === s.length) return n(i, d), U && Yi(i, h), l;
if (d === null) {
for (; h < s.length; h++) d = f(i, s[h], c), d !== null && (a = o(d, a, h), u === null ? l = d : u.sibling = d, u = d);
- return W && Ji(i, h), l;
+ return U && Yi(i, h), l;
}
for (d = r(d); h < s.length; h++) g = m(d, i, h, s[h], c), g !== null && (e && (_ = g.alternate, _ !== null && d.delete(_.key === null ? h : _.key)), a = o(g, a, h), u === null ? l = g : u.sibling = g, u = g);
return e && d.forEach(function(e) {
return t(i, e);
- }), W && Ji(i, h), l;
+ }), U && Yi(i, h), l;
}
function g(a, s, c, l) {
if (c == null) throw Error(i(151));
@@ -10155,15 +10155,15 @@ var cu = /* @__PURE__ */ m(((e) => {
}
e && h && y.alternate === null && t(a, h), s = o(y, s, g), d === null ? u = y : d.sibling = y, d = y, h = _;
}
- if (v.done) return n(a, h), W && Ji(a, g), u;
+ if (v.done) return n(a, h), U && Yi(a, g), u;
if (h === null) {
for (; !v.done; g++, v = c.next()) v = f(a, v.value, l), v !== null && (s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);
- return W && Ji(a, g), u;
+ return U && Yi(a, g), u;
}
for (h = r(h); !v.done; g++, v = c.next()) v = m(h, a, g, v.value, l), v !== null && (e && (_ = v.alternate, _ !== null && h.delete(_.key === null ? g : _.key)), s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);
return e && h.forEach(function(e) {
return t(a, e);
- }), W && Ji(a, g), u;
+ }), U && Yi(a, g), u;
}
function _(e, r, o, c) {
if (typeof o == "object" && o && o.type === k && o.key === null && o.props.ref === void 0 && (o = o.props.children), typeof o == "object" && o) {
@@ -10174,11 +10174,11 @@ var cu = /* @__PURE__ */ m(((e) => {
if (r.key === l) {
if (l = o.type, l === k) {
if (r.tag === 7) {
- n(e, r.sibling), c = a(r, o.props.children), no(c, o), c.return = e, e = c;
+ n(e, r.sibling), c = a(r, o.props.children), ro(c, o), c.return = e, e = c;
break a;
}
- } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === P && Ya(l) === r.type) {
- n(e, r.sibling), c = a(r, o.props), no(c, o), c.return = e, e = c;
+ } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === ie && Xa(l) === r.type) {
+ n(e, r.sibling), c = a(r, o.props), ro(c, o), c.return = e, e = c;
break a;
}
n(e, r);
@@ -10186,7 +10186,7 @@ var cu = /* @__PURE__ */ m(((e) => {
}
t(e, r), r = r.sibling;
}
- o.type === k ? (c = Ni(o.props.children, e.mode, c, o.key), no(c, o), c.return = e, e = c) : (c = Mi(o.type, o.key, o.props, null, e.mode, c), no(c, o), c.return = e, e = c);
+ o.type === k ? (c = Pi(o.props.children, e.mode, c, o.key), ro(c, o), c.return = e, e = c) : (c = Ni(o.type, o.key, o.props, null, e.mode, c), ro(c, o), c.return = e, e = c);
}
return s(e);
case O:
@@ -10202,36 +10202,36 @@ var cu = /* @__PURE__ */ m(((e) => {
}
t(e, r), r = r.sibling;
}
- c = Ii(o, e.mode, c), c.return = e, e = c;
+ c = Li(o, e.mode, c), c.return = e, e = c;
}
return s(e);
- case P: return o = Ya(o), _(e, r, o, c);
+ case ie: return o = Xa(o), _(e, r, o, c);
}
- if (pe(o)) return h(e, r, o, c);
- if (ue(o)) {
- if (l = ue(o), typeof l != "function") throw Error(i(150));
+ if (me(o)) return h(e, r, o, c);
+ if (de(o)) {
+ if (l = de(o), typeof l != "function") throw Error(i(150));
return o = l.call(o), g(e, r, o, c);
}
- if (typeof o.then == "function") return _(e, r, to(o), c);
- if (o.$$typeof === te) return _(e, r, xa(e, o), c);
- ro(e, o);
+ if (typeof o.then == "function") return _(e, r, no(o), c);
+ if (o.$$typeof === te) return _(e, r, Sa(e, o), c);
+ io(e, o);
}
- return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = Pi(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);
+ return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = Fi(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);
}
return function(e, t, n, r) {
try {
- eo = 0;
+ to = 0;
var i = _(e, t, n, r);
- return $a = null, i;
+ return eo = null, i;
} catch (t) {
- if (t === Ua || t === Ga) throw t;
- var a = Oi(29, t, null, e.mode);
+ if (t === Wa || t === Ka) throw t;
+ var a = ki(29, t, null, e.mode);
return a.lanes = r, a.return = e, a;
}
};
}
- var ao = io(!0), oo = io(!1), so = !1;
- function co(e) {
+ var oo = ao(!0), so = ao(!1), co = !1;
+ function lo(e) {
e.updateQueue = {
baseState: e.memoizedState,
firstBaseUpdate: null,
@@ -10244,7 +10244,7 @@ var cu = /* @__PURE__ */ m(((e) => {
callbacks: null
};
}
- function lo(e, t) {
+ function uo(e, t) {
e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {
baseState: e.baseState,
firstBaseUpdate: e.firstBaseUpdate,
@@ -10253,7 +10253,7 @@ var cu = /* @__PURE__ */ m(((e) => {
callbacks: null
});
}
- function uo(e) {
+ function fo(e) {
return {
lane: e,
tag: 0,
@@ -10262,22 +10262,22 @@ var cu = /* @__PURE__ */ m(((e) => {
next: null
};
}
- function fo(e, t, n) {
+ function po(e, t, n) {
var r = e.updateQueue;
if (r === null) return null;
- if (r = r.shared, q & 2) {
+ if (r = r.shared, ed & 2) {
var i = r.pending;
- return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Ti(e), wi(e, null, n), t;
+ return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Ei(e), Ti(e, null, n), t;
}
- return xi(e, r, t, n), Ti(e);
+ return Si(e, r, t, n), Ei(e);
}
- function po(e, t, n) {
+ function mo(e, t, n) {
if (t = t.updateQueue, t !== null && (t = t.shared, n & 4194048)) {
var r = t.lanes;
- r &= e.pendingLanes, n |= r, t.lanes = n, ht(e, n);
+ r &= e.pendingLanes, n |= r, t.lanes = n, gt(e, n);
}
}
- function mo(e, t) {
+ function ho(e, t) {
var n = e.updateQueue, r = e.alternate;
if (r !== null && (r = r.updateQueue, n === r)) {
var i = null, a = null;
@@ -10305,17 +10305,17 @@ var cu = /* @__PURE__ */ m(((e) => {
}
e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t;
}
- var ho = !1;
- function go() {
- if (ho) {
- var e = Pa;
+ var go = !1;
+ function _o() {
+ if (go) {
+ var e = Fa;
if (e !== null) throw e;
}
}
- function _o(e, t, n, r) {
- ho = !1;
+ function vo(e, t, n, r) {
+ go = !1;
var i = e.updateQueue;
- so = !1;
+ co = !1;
var a = i.firstBaseUpdate, o = i.lastBaseUpdate, s = i.shared.pending;
if (s !== null) {
i.shared.pending = null;
@@ -10329,8 +10329,8 @@ var cu = /* @__PURE__ */ m(((e) => {
o = 0, u = l = c = null, s = a;
do {
var f = s.lane & -536870913, p = f !== s.lane;
- if (p ? (Y & f) === f : (r & f) === f) {
- f !== 0 && f === Na && (ho = !0), u !== null && (u = u.next = {
+ if (p ? (q & f) === f : (r & f) === f) {
+ f !== 0 && f === Pa && (go = !0), u !== null && (u = u.next = {
lane: 0,
tag: s.tag,
payload: s.payload,
@@ -10354,7 +10354,7 @@ var cu = /* @__PURE__ */ m(((e) => {
if (m = h.payload, f = typeof m == "function" ? m.call(g, d, f) : m, f == null) break a;
d = T({}, d, f);
break a;
- case 2: so = !0;
+ case 2: co = !0;
}
}
f = s.callback, f !== null && (e.flags |= 64, p && (e.flags |= 8192), p = i.callbacks, p === null ? i.callbacks = [f] : p.push(f));
@@ -10370,52 +10370,52 @@ var cu = /* @__PURE__ */ m(((e) => {
p = s, s = p.next, p.next = null, i.lastBaseUpdate = p, i.shared.pending = null;
}
} while (1);
- u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), od |= o, e.lanes = o, e.memoizedState = d;
+ u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), ld |= o, e.lanes = o, e.memoizedState = d;
}
}
- function vo(e, t) {
+ function yo(e, t) {
if (typeof e != "function") throw Error(i(191, e));
e.call(t);
}
- function yo(e, t) {
+ function bo(e, t) {
var n = e.callbacks;
- if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) vo(n[e], t);
+ if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) yo(n[e], t);
}
- var bo = _e(null), xo = _e(0);
- function So(e, t) {
- e = X, ye(xo, e), ye(bo, t), X = e | t.baseLanes;
- }
- function Co() {
- ye(xo, X), ye(bo, bo.current);
+ var xo = ve(null), So = ve(0);
+ function Co(e, t) {
+ e = sd, be(So, e), be(xo, t), sd = e | t.baseLanes;
}
function wo() {
- X = xo.current, ve(bo), ve(xo);
+ be(So, sd), be(xo, xo.current);
}
- var To = _e(null), Eo = null;
- function Do(e) {
- var t = e.alternate;
- ye(Mo, Mo.current & 1), ye(To, e), Eo === null && (t === null || bo.current !== null || t.memoizedState !== null) && (Eo = e);
+ function To() {
+ sd = So.current, ye(xo), ye(So);
}
+ var Eo = ve(null), Do = null;
function Oo(e) {
- ye(Mo, Mo.current), ye(To, e), Eo === null && (Eo = e);
+ var t = e.alternate;
+ be(No, No.current & 1), be(Eo, e), Do === null && (t === null || xo.current !== null || t.memoizedState !== null) && (Do = e);
}
function ko(e) {
- e.tag === 22 ? (ye(Mo, Mo.current), ye(To, e), Eo === null && (Eo = e)) : Ao();
+ be(No, No.current), be(Eo, e), Do === null && (Do = e);
}
- function Ao() {
- ye(Mo, Mo.current), ye(To, To.current);
+ function Ao(e) {
+ e.tag === 22 ? (be(No, No.current), be(Eo, e), Do === null && (Do = e)) : jo();
}
- function jo(e) {
- ve(To), Eo === e && (Eo = null), ve(Mo);
+ function jo() {
+ be(No, No.current), be(Eo, Eo.current);
}
- var Mo = _e(0);
- function No(e, t) {
- ye(To, To.current), ye(Mo, t);
+ function Mo(e) {
+ ye(Eo), Do === e && (Do = null), ye(No);
}
- function Po(e) {
- ve(Mo), ve(To), Eo === e && (Eo = null);
+ var No = ve(0);
+ function Po(e, t) {
+ be(Eo, Eo.current), be(No, t);
}
function Fo(e) {
+ ye(No), ye(Eo), Do === e && (Do = null);
+ }
+ function Io(e) {
for (var t = e; t !== null;) {
if (t.tag === 13) {
var n = t.memoizedState;
@@ -10435,59 +10435,59 @@ var cu = /* @__PURE__ */ m(((e) => {
}
return null;
}
- var Io = 0, K = null, Lo = null, Ro = null, zo = !1, Bo = !1, Vo = !1, Ho = 0, Uo = 0, Wo = null, Go = 0;
- function Ko() {
+ var Lo = 0, G = null, Ro = null, zo = null, Bo = !1, Vo = !1, Ho = !1, Uo = 0, Wo = 0, Go = null, Ko = 0;
+ function qo() {
throw Error(i(321));
}
- function qo(e, t) {
+ function Jo(e, t) {
if (t === null) return !1;
- for (var n = 0; n < t.length && n < e.length; n++) if (!Ir(e[n], t[n])) return !1;
+ for (var n = 0; n < t.length && n < e.length; n++) if (!Lr(e[n], t[n])) return !1;
return !0;
}
- function Jo(e, t, n, r, i, a) {
- return Io = a, K = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, F.H = e === null || e.memoizedState === null ? dc : fc, Vo = !1, a = n(r, i), Vo = !1, Bo && (a = Xo(t, n, r, i)), Yo(e), a;
+ function Yo(e, t, n, r, i, a) {
+ return Lo = a, G = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, P.H = e === null || e.memoizedState === null ? fc : pc, Ho = !1, a = n(r, i), Ho = !1, Vo && (a = Zo(t, n, r, i)), Xo(e), a;
}
- function Yo(e) {
- F.H = uc;
- var t = Lo !== null && Lo.next !== null;
- if (Io = 0, Ro = Lo = K = null, zo = !1, Uo = 0, Wo = null, t) throw Error(i(300));
- e === null || kc || (e = e.dependencies, e !== null && va(e) && (kc = !0));
+ function Xo(e) {
+ P.H = dc;
+ var t = Ro !== null && Ro.next !== null;
+ if (Lo = 0, zo = Ro = G = null, Bo = !1, Wo = 0, Go = null, t) throw Error(i(300));
+ e === null || Ac || (e = e.dependencies, e !== null && ya(e) && (Ac = !0));
}
- function Xo(e, t, n, r) {
- K = e;
+ function Zo(e, t, n, r) {
+ G = e;
var a = 0;
do {
- if (Bo && (Wo = null), Uo = 0, Bo = !1, 25 <= a) throw Error(i(301));
- if (a += 1, Ro = Lo = null, e.updateQueue != null) {
+ if (Vo && (Go = null), Wo = 0, Vo = !1, 25 <= a) throw Error(i(301));
+ if (a += 1, zo = Ro = null, e.updateQueue != null) {
var o = e.updateQueue;
o.lastEffect = null, o.events = null, o.stores = null, o.memoCache != null && (o.memoCache.index = 0);
}
- F.H = pc, o = t(n, r);
- } while (Bo);
+ P.H = mc, o = t(n, r);
+ } while (Vo);
return o;
}
- function Zo() {
- var e = F.H, t = e.useState()[0];
- return t = typeof t.then == "function" ? is(t) : t, e = e.useState()[0], (Lo === null ? null : Lo.memoizedState) !== e && (K.flags |= 1024), t;
- }
function Qo() {
- var e = Ho !== 0;
- return Ho = 0, e;
+ var e = P.H, t = e.useState()[0];
+ return t = typeof t.then == "function" ? as(t) : t, e = e.useState()[0], (Ro === null ? null : Ro.memoizedState) !== e && (G.flags |= 1024), t;
+ }
+ function $o() {
+ var e = Uo !== 0;
+ return Uo = 0, e;
}
- function $o(e, t, n) {
+ function es(e, t, n) {
t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~n;
}
- function es(e) {
- if (zo) {
+ function ts(e) {
+ if (Bo) {
for (e = e.memoizedState; e !== null;) {
var t = e.queue;
t !== null && (t.pending = null), e = e.next;
}
- zo = !1;
+ Bo = !1;
}
- Io = 0, Ro = Lo = K = null, Bo = !1, Uo = Ho = 0, Wo = null;
+ Lo = 0, zo = Ro = G = null, Vo = !1, Wo = Uo = 0, Go = null;
}
- function ts() {
+ function ns() {
var e = {
memoizedState: null,
baseState: null,
@@ -10495,28 +10495,28 @@ var cu = /* @__PURE__ */ m(((e) => {
queue: null,
next: null
};
- return Ro === null ? K.memoizedState = Ro = e : Ro = Ro.next = e, Ro;
+ return zo === null ? G.memoizedState = zo = e : zo = zo.next = e, zo;
}
- function ns() {
- if (Lo === null) {
- var e = K.alternate;
+ function rs() {
+ if (Ro === null) {
+ var e = G.alternate;
e = e === null ? null : e.memoizedState;
- } else e = Lo.next;
- var t = Ro === null ? K.memoizedState : Ro.next;
- if (t !== null) Ro = t, Lo = e;
+ } else e = Ro.next;
+ var t = zo === null ? G.memoizedState : zo.next;
+ if (t !== null) zo = t, Ro = e;
else {
- if (e === null) throw K.alternate === null ? Error(i(467)) : Error(i(310));
- Lo = e, e = {
- memoizedState: Lo.memoizedState,
- baseState: Lo.baseState,
- baseQueue: Lo.baseQueue,
- queue: Lo.queue,
+ if (e === null) throw G.alternate === null ? Error(i(467)) : Error(i(310));
+ Ro = e, e = {
+ memoizedState: Ro.memoizedState,
+ baseState: Ro.baseState,
+ baseQueue: Ro.baseQueue,
+ queue: Ro.queue,
next: null
- }, Ro === null ? K.memoizedState = Ro = e : Ro = Ro.next = e;
+ }, zo === null ? G.memoizedState = zo = e : zo = zo.next = e;
}
- return Ro;
+ return zo;
}
- function rs() {
+ function is() {
return {
lastEffect: null,
events: null,
@@ -10524,22 +10524,22 @@ var cu = /* @__PURE__ */ m(((e) => {
memoCache: null
};
}
- function is(e) {
- var t = Uo;
- return Uo += 1, Wo === null && (Wo = []), e = Ja(Wo, e, t), t = K, (Ro === null ? t.memoizedState : Ro.next) === null && (t = t.alternate, F.H = t === null || t.memoizedState === null ? dc : fc), e;
- }
function as(e) {
+ var t = Wo;
+ return Wo += 1, Go === null && (Go = []), e = Ya(Go, e, t), t = G, (zo === null ? t.memoizedState : zo.next) === null && (t = t.alternate, P.H = t === null || t.memoizedState === null ? fc : pc), e;
+ }
+ function os(e) {
if (typeof e == "object" && e) {
- if (typeof e.then == "function") return is(e);
- if (e.$$typeof === ce) return;
- if (e.$$typeof === te) return ba(e);
+ if (typeof e.then == "function") return as(e);
+ if (e.$$typeof === le) return;
+ if (e.$$typeof === te) return xa(e);
}
throw Error(i(438, String(e)));
}
- function os(e) {
- var t = null, n = K.updateQueue;
+ function ss(e) {
+ var t = null, n = G.updateQueue;
if (n !== null && (t = n.memoCache), t == null) {
- var r = K.alternate;
+ var r = G.alternate;
r !== null && (r = r.updateQueue, r !== null && (r = r.memoCache, r != null && (t = {
data: r.data.map(function(e) {
return e.slice();
@@ -10550,16 +10550,16 @@ var cu = /* @__PURE__ */ m(((e) => {
if (t ??= {
data: [],
index: 0
- }, n === null && (n = rs(), K.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = oe;
+ }, n === null && (n = is(), G.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = se;
return t.index++, n;
}
- function ss(e, t) {
+ function cs(e, t) {
return typeof t == "function" ? t(e) : t;
}
- function cs(e) {
- return ls(ns(), Lo, e);
+ function ls(e) {
+ return us(rs(), Ro, e);
}
- function ls(e, t, n) {
+ function us(e, t, n) {
var r = e.queue;
if (r === null) throw Error(i(311));
r.lastRenderedReducer = n;
@@ -10577,7 +10577,7 @@ var cu = /* @__PURE__ */ m(((e) => {
var c = s = null, l = null, u = t, d = !1;
do {
var f = u.lane & -536870913;
- if (f === u.lane ? (Io & f) === f : (Y & f) === f) {
+ if (f === u.lane ? (Lo & f) === f : (q & f) === f) {
var p = u.revertLane;
if (p === 0) l !== null && (l = l.next = {
lane: 0,
@@ -10587,9 +10587,9 @@ var cu = /* @__PURE__ */ m(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }), f === Na && (d = !0);
- else if ((Io & p) === p) {
- u = u.next, p === Na && (d = !0);
+ }), f === Pa && (d = !0);
+ else if ((Lo & p) === p) {
+ u = u.next, p === Pa && (d = !0);
continue;
} else f = {
lane: 0,
@@ -10599,8 +10599,8 @@ var cu = /* @__PURE__ */ m(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = f, s = o) : l = l.next = f, K.lanes |= p, od |= p;
- f = u.action, Vo && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
+ }, l === null ? (c = l = f, s = o) : l = l.next = f, G.lanes |= p, ld |= p;
+ f = u.action, Ho && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
} else p = {
lane: f,
revertLane: u.revertLane,
@@ -10609,16 +10609,16 @@ var cu = /* @__PURE__ */ m(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = p, s = o) : l = l.next = p, K.lanes |= f, od |= f;
+ }, l === null ? (c = l = p, s = o) : l = l.next = p, G.lanes |= f, ld |= f;
u = u.next;
} while (u !== null && u !== t);
- if (l === null ? s = o : l.next = c, !Ir(o, e.memoizedState) && (kc = !0, d && (n = Pa, n !== null))) throw n;
+ if (l === null ? s = o : l.next = c, !Lr(o, e.memoizedState) && (Ac = !0, d && (n = Fa, n !== null))) throw n;
e.memoizedState = o, e.baseState = s, e.baseQueue = l, r.lastRenderedState = o;
}
return a === null && (r.lanes = 0), [e.memoizedState, r.dispatch];
}
- function us(e) {
- var t = ns(), n = t.queue;
+ function ds(e) {
+ var t = rs(), n = t.queue;
if (n === null) throw Error(i(311));
n.lastRenderedReducer = e;
var r = n.dispatch, a = n.pending, o = t.memoizedState;
@@ -10628,61 +10628,61 @@ var cu = /* @__PURE__ */ m(((e) => {
do
o = e(o, s.action), s = s.next;
while (s !== a);
- Ir(o, t.memoizedState) || (kc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
+ Lr(o, t.memoizedState) || (Ac = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
}
return [o, r];
}
- function ds(e, t, n) {
- var r = K, a = ns(), o = W;
+ function fs(e, t, n) {
+ var r = G, a = rs(), o = U;
if (o) {
if (n === void 0) throw Error(i(407));
n = n();
} else n = t();
- var s = !Ir((Lo || a).memoizedState, n);
- if (s && (a.memoizedState = n, kc = !0), a = a.queue, Is(ms.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Ro !== null && !!(Ro.memoizedState.tag & 1), js(e ? 9 : 8, { destroy: void 0 }, ps.bind(null, r, a, n, t), null), e) {
- if (r.flags |= 2048, $u === null) throw Error(i(349));
- o || Io & 127 || fs(r, t, n);
+ var s = !Lr((Ro || a).memoizedState, n);
+ if (s && (a.memoizedState = n, Ac = !0), a = a.queue, Ls(hs.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || zo !== null && !!(zo.memoizedState.tag & 1), Ms(e ? 9 : 8, { destroy: void 0 }, ms.bind(null, r, a, n, t), null), e) {
+ if (r.flags |= 2048, td === null) throw Error(i(349));
+ o || Lo & 127 || ps(r, t, n);
}
return n;
}
- function fs(e, t, n) {
+ function ps(e, t, n) {
e.flags |= 16384, e = {
getSnapshot: t,
value: n
- }, t = K.updateQueue, t === null ? (t = rs(), K.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
+ }, t = G.updateQueue, t === null ? (t = is(), G.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
}
- function ps(e, t, n, r) {
- t.value = n, t.getSnapshot = r, hs(t) && gs(e);
+ function ms(e, t, n, r) {
+ t.value = n, t.getSnapshot = r, gs(t) && _s(e);
}
- function ms(e, t, n) {
+ function hs(e, t, n) {
return n(function() {
- hs(t) && gs(e);
+ gs(t) && _s(e);
});
}
- function hs(e) {
+ function gs(e) {
var t = e.getSnapshot;
e = e.value;
try {
var n = t();
- return !Ir(e, n);
+ return !Lr(e, n);
} catch {
return !0;
}
}
- function gs(e) {
- var t = Ci(e, 2);
- t !== null && Md(t, e, 2);
- }
function _s(e) {
- var t = ts();
+ var t = wi(e, 2);
+ t !== null && Pd(t, e, 2);
+ }
+ function vs(e) {
+ var t = ns();
if (typeof e == "function") {
var n = e;
- if (e = n(), Vo) {
- Ze(!0);
+ if (e = n(), Ho) {
+ Qe(!0);
try {
n();
} finally {
- Ze(!1);
+ Qe(!1);
}
}
}
@@ -10690,15 +10690,15 @@ var cu = /* @__PURE__ */ m(((e) => {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: ss,
+ lastRenderedReducer: cs,
lastRenderedState: e
}, t;
}
- function vs(e, t, n, r) {
- return e.baseState = n, ls(e, Lo, typeof r == "function" ? r : ss);
+ function ys(e, t, n, r) {
+ return e.baseState = n, us(e, Ro, typeof r == "function" ? r : cs);
}
- function ys(e, t, n, r, a) {
- if (sc(e)) throw Error(i(485));
+ function bs(e, t, n, r, a) {
+ if (cc(e)) throw Error(i(485));
if (e = t.action, e !== null) {
var o = {
payload: a,
@@ -10713,65 +10713,65 @@ var cu = /* @__PURE__ */ m(((e) => {
o.listeners.push(e);
}
};
- F.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, bs(t, o)) : (o.next = n.next, t.pending = n.next = o);
+ P.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, xs(t, o)) : (o.next = n.next, t.pending = n.next = o);
}
}
- function bs(e, t) {
+ function xs(e, t) {
var n = t.action, r = t.payload, i = e.state;
if (t.isTransition) {
- var a = F.T, o = {};
- o.types = a === null ? null : a.types, F.T = o;
+ var a = P.T, o = {};
+ o.types = a === null ? null : a.types, P.T = o;
try {
- var s = n(i, r), c = F.S;
- c !== null && c(o, s), xs(e, t, s);
+ var s = n(i, r), c = P.S;
+ c !== null && c(o, s), Ss(e, t, s);
} catch (n) {
- Cs(e, t, n);
+ ws(e, t, n);
} finally {
- a !== null && o.types !== null && (a.types = o.types), F.T = a;
+ a !== null && o.types !== null && (a.types = o.types), P.T = a;
}
} else try {
- a = n(i, r), xs(e, t, a);
+ a = n(i, r), Ss(e, t, a);
} catch (n) {
- Cs(e, t, n);
+ ws(e, t, n);
}
}
- function xs(e, t, n) {
+ function Ss(e, t, n) {
typeof n == "object" && n && typeof n.then == "function" ? n.then(function(n) {
- Ss(e, t, n);
+ Cs(e, t, n);
}, function(n) {
- return Cs(e, t, n);
- }) : Ss(e, t, n);
- }
- function Ss(e, t, n) {
- t.status = "fulfilled", t.value = n, ws(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, bs(e, n)));
+ return ws(e, t, n);
+ }) : Cs(e, t, n);
}
function Cs(e, t, n) {
+ t.status = "fulfilled", t.value = n, Ts(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, xs(e, n)));
+ }
+ function ws(e, t, n) {
var r = e.pending;
if (e.pending = null, r !== null) {
r = r.next;
do
- t.status = "rejected", t.reason = n, ws(t), t = t.next;
+ t.status = "rejected", t.reason = n, Ts(t), t = t.next;
while (t !== r);
}
e.action = null;
}
- function ws(e) {
+ function Ts(e) {
e = e.listeners;
for (var t = 0; t < e.length; t++) (0, e[t])();
}
- function Ts(e, t) {
+ function Es(e, t) {
return t;
}
- function Es(e, t) {
- if (W) {
- var n = $u.formState;
+ function Ds(e, t) {
+ if (U) {
+ var n = td.formState;
if (n !== null) {
a: {
- var r = K;
- if (W) {
- if ($i) {
+ var r = G;
+ if (U) {
+ if (ea) {
b: {
- for (var i = $i, a = ta; i.nodeType !== 8;) {
+ for (var i = ea, a = na; i.nodeType !== 8;) {
if (!a) {
i = null;
break b;
@@ -10784,59 +10784,59 @@ var cu = /* @__PURE__ */ m(((e) => {
a = i.data, i = a === "F!" || a === "F" ? i : null;
}
if (i) {
- $i = lm(i.nextSibling), r = i.data === "F!";
+ ea = lm(i.nextSibling), r = i.data === "F!";
break a;
}
}
- ra(r);
+ ia(r);
}
r = !1;
}
r && (t = n[0]);
}
}
- return n = ts(), n.memoizedState = n.baseState = t, r = {
+ return n = ns(), n.memoizedState = n.baseState = t, r = {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: Ts,
+ lastRenderedReducer: Es,
lastRenderedState: t
- }, n.queue = r, n = ic.bind(null, K, r), r.dispatch = n, r = _s(!1), a = oc.bind(null, K, !1, r.queue), r = ts(), i = {
+ }, n.queue = r, n = ac.bind(null, G, r), r.dispatch = n, r = vs(!1), a = sc.bind(null, G, !1, r.queue), r = ns(), i = {
state: t,
dispatch: null,
action: e,
pending: null
- }, r.queue = i, n = ys.bind(null, K, i, a, n), i.dispatch = n, r.memoizedState = e, [
+ }, r.queue = i, n = bs.bind(null, G, i, a, n), i.dispatch = n, r.memoizedState = e, [
t,
n,
!1
];
}
- function Ds(e) {
- return Os(ns(), Lo, e);
+ function Os(e) {
+ return ks(rs(), Ro, e);
}
- function Os(e, t, n) {
- if (t = ls(e, t, Ts)[0], e = cs(ss)[0], typeof t == "object" && t && typeof t.then == "function") try {
- var r = is(t);
+ function ks(e, t, n) {
+ if (t = us(e, t, Es)[0], e = ls(cs)[0], typeof t == "object" && t && typeof t.then == "function") try {
+ var r = as(t);
} catch (e) {
- throw e === Ua ? Ga : e;
+ throw e === Wa ? Ka : e;
}
else r = t;
- t = ns();
+ t = rs();
var i = t.queue, a = i.dispatch;
- return n !== t.memoizedState && (K.flags |= 2048, js(9, { destroy: void 0 }, ks.bind(null, i, n), null)), [
+ return n !== t.memoizedState && (G.flags |= 2048, Ms(9, { destroy: void 0 }, As.bind(null, i, n), null)), [
r,
a,
e
];
}
- function ks(e, t) {
+ function As(e, t) {
e.action = t;
}
- function As(e) {
- var t = ns(), n = Lo;
- if (n !== null) return Os(t, n, e);
- ns(), t = t.memoizedState, n = ns();
+ function js(e) {
+ var t = rs(), n = Ro;
+ if (n !== null) return ks(t, n, e);
+ rs(), t = t.memoizedState, n = rs();
var r = n.queue.dispatch;
return n.memoizedState = e, [
t,
@@ -10844,60 +10844,60 @@ var cu = /* @__PURE__ */ m(((e) => {
!1
];
}
- function js(e, t, n, r) {
+ function Ms(e, t, n, r) {
return e = {
tag: e,
create: n,
deps: r,
inst: t,
next: null
- }, t = K.updateQueue, t === null && (t = rs(), K.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;
+ }, t = G.updateQueue, t === null && (t = is(), G.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;
}
- function Ms() {
- return ns().memoizedState;
- }
- function Ns(e, t, n, r) {
- var i = ts();
- K.flags |= e, i.memoizedState = js(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
+ function Ns() {
+ return rs().memoizedState;
}
function Ps(e, t, n, r) {
var i = ns();
+ G.flags |= e, i.memoizedState = Ms(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
+ }
+ function Fs(e, t, n, r) {
+ var i = rs();
r = r === void 0 ? null : r;
var a = i.memoizedState.inst;
- Lo !== null && r !== null && qo(r, Lo.memoizedState.deps) ? i.memoizedState = js(t, a, n, r) : (K.flags |= e, i.memoizedState = js(1 | t, a, n, r));
- }
- function Fs(e, t) {
- Ns(8390656, 8, e, t);
+ Ro !== null && r !== null && Jo(r, Ro.memoizedState.deps) ? i.memoizedState = Ms(t, a, n, r) : (G.flags |= e, i.memoizedState = Ms(1 | t, a, n, r));
}
function Is(e, t) {
- Ps(2048, 8, e, t);
+ Ps(8390656, 8, e, t);
+ }
+ function Ls(e, t) {
+ Fs(2048, 8, e, t);
}
- function Ls(e) {
- K.flags |= 4;
- var t = K.updateQueue;
- if (t === null) t = rs(), K.updateQueue = t, t.events = [e];
+ function Rs(e) {
+ G.flags |= 4;
+ var t = G.updateQueue;
+ if (t === null) t = is(), G.updateQueue = t, t.events = [e];
else {
var n = t.events;
n === null ? t.events = [e] : n.push(e);
}
}
- function Rs(e) {
- var t = ns().memoizedState;
- return Ls({
+ function zs(e) {
+ var t = rs().memoizedState;
+ return Rs({
ref: t,
nextImpl: e
}), function() {
- if (q & 2) throw Error(i(440));
+ if (ed & 2) throw Error(i(440));
return t.impl.apply(void 0, arguments);
};
}
- function zs(e, t) {
- return Ps(4, 2, e, t);
- }
function Bs(e, t) {
- return Ps(4, 4, e, t);
+ return Fs(4, 2, e, t);
}
function Vs(e, t) {
+ return Fs(4, 4, e, t);
+ }
+ function Hs(e, t) {
if (typeof t == "function") {
e = e();
var n = t(e);
@@ -10909,76 +10909,76 @@ var cu = /* @__PURE__ */ m(((e) => {
t.current = null;
};
}
- function Hs(e, t, n) {
- n = n == null ? null : n.concat([e]), Ps(4, 4, Vs.bind(null, t, e), n);
+ function Us(e, t, n) {
+ n = n == null ? null : n.concat([e]), Fs(4, 4, Hs.bind(null, t, e), n);
}
- function Us() {}
- function Ws(e, t) {
- var n = ns();
+ function Ws() {}
+ function Gs(e, t) {
+ var n = rs();
t = t === void 0 ? null : t;
var r = n.memoizedState;
- return t !== null && qo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
+ return t !== null && Jo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
}
- function Gs(e, t) {
- var n = ns();
+ function Ks(e, t) {
+ var n = rs();
t = t === void 0 ? null : t;
var r = n.memoizedState;
- if (t !== null && qo(t, r[1])) return r[0];
- if (r = e(), Vo) {
- Ze(!0);
+ if (t !== null && Jo(t, r[1])) return r[0];
+ if (r = e(), Ho) {
+ Qe(!0);
try {
e();
} finally {
- Ze(!1);
+ Qe(!1);
}
}
return n.memoizedState = [r, t], r;
}
- function Ks(e, t, n) {
- return n === void 0 || Io & 1073741824 && !(Y & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Ad(), K.lanes |= e, od |= e, n);
+ function qs(e, t, n) {
+ return n === void 0 || Lo & 1073741824 && !(q & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Md(), G.lanes |= e, ld |= e, n);
}
- function qs(e, t, n, r) {
- return Ir(n, t) ? n : bo.current === null ? !(Io & 106) || Io & 1073741824 && !(Y & 261930) ? (kc = !0, e.memoizedState = n) : (e = Ad(), K.lanes |= e, od |= e, t) : (e = Ks(e, n, r), Ir(e, t) || (kc = !0), e);
+ function Js(e, t, n, r) {
+ return Lr(n, t) ? n : xo.current === null ? !(Lo & 106) || Lo & 1073741824 && !(q & 261930) ? (Ac = !0, e.memoizedState = n) : (e = Md(), G.lanes |= e, ld |= e, t) : (e = qs(e, n, r), Lr(e, t) || (Ac = !0), e);
}
- function Js(e, t, n, r, i) {
- var a = I.p;
- I.p = a !== 0 && 8 > a ? a : 8;
- var o = F.T, s = {};
- s.types = o === null ? null : o.types, F.T = s, oc(e, !1, t, n);
+ function Ys(e, t, n, r, i) {
+ var a = F.p;
+ F.p = a !== 0 && 8 > a ? a : 8;
+ var o = P.T, s = {};
+ s.types = o === null ? null : o.types, P.T = s, sc(e, !1, t, n);
try {
- var c = i(), l = F.S;
- l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? ac(e, t, La(c, r), kd(e)) : ac(e, t, r, kd(e));
+ var c = i(), l = P.S;
+ l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? oc(e, t, Ra(c, r), jd(e)) : oc(e, t, r, jd(e));
} catch (n) {
- ac(e, t, {
+ oc(e, t, {
then: function() {},
status: "rejected",
reason: n
- }, kd());
+ }, jd());
} finally {
- I.p = a, o !== null && s.types !== null && (o.types = s.types), F.T = o;
+ F.p = a, o !== null && s.types !== null && (o.types = s.types), P.T = o;
}
}
- function Ys() {}
- function Xs(e, t, n, r) {
+ function Xs() {}
+ function Zs(e, t, n, r) {
if (e.tag !== 5) throw Error(i(476));
- var a = Zs(e).queue;
- Js(e, a, t, me, n === null ? Ys : function() {
- return Qs(e), n(r);
+ var a = Qs(e).queue;
+ Ys(e, a, t, he, n === null ? Xs : function() {
+ return $s(e), n(r);
});
}
- function Zs(e) {
+ function Qs(e) {
var t = e.memoizedState;
if (t !== null) return t;
t = {
- memoizedState: me,
- baseState: me,
+ memoizedState: he,
+ baseState: he,
baseQueue: null,
queue: {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: ss,
- lastRenderedState: me
+ lastRenderedReducer: cs,
+ lastRenderedState: he
},
next: null
};
@@ -10991,41 +10991,41 @@ var cu = /* @__PURE__ */ m(((e) => {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: ss,
+ lastRenderedReducer: cs,
lastRenderedState: n
},
next: null
}, e.memoizedState = t, e = e.alternate, e !== null && (e.memoizedState = t), t;
}
- function Qs(e) {
- var t = Zs(e);
- t.next === null && (t = e.alternate.memoizedState), ac(e, t.next.queue, {}, kd());
- }
- function $s() {
- return ba(sh);
+ function $s(e) {
+ var t = Qs(e);
+ t.next === null && (t = e.alternate.memoizedState), oc(e, t.next.queue, {}, jd());
}
function ec() {
- return ns().memoizedState;
+ return xa(sh);
}
function tc() {
- return ns().memoizedState;
+ return rs().memoizedState;
+ }
+ function nc() {
+ return rs().memoizedState;
}
- function nc(e) {
+ function rc(e) {
for (var t = e.return; t !== null;) {
switch (t.tag) {
case 24:
case 3:
- var n = kd();
- e = uo(n);
- var r = fo(t, e, n);
- r !== null && (Md(r, t, n), po(r, t, n)), t = { cache: Ea() }, e.payload = t;
+ var n = jd();
+ e = fo(n);
+ var r = po(t, e, n);
+ r !== null && (Pd(r, t, n), mo(r, t, n)), t = { cache: Da() }, e.payload = t;
return;
}
t = t.return;
}
}
- function rc(e, t, n) {
- var r = kd();
+ function ic(e, t, n) {
+ var r = jd();
n = {
lane: r,
revertLane: 0,
@@ -11034,12 +11034,12 @@ var cu = /* @__PURE__ */ m(((e) => {
hasEagerState: !1,
eagerState: null,
next: null
- }, sc(e) ? cc(t, n) : (n = Si(e, t, n, r), n !== null && (Md(n, e, r), lc(n, t, r)));
+ }, cc(e) ? lc(t, n) : (n = Ci(e, t, n, r), n !== null && (Pd(n, e, r), uc(n, t, r)));
}
- function ic(e, t, n) {
- ac(e, t, n, kd());
+ function ac(e, t, n) {
+ oc(e, t, n, jd());
}
- function ac(e, t, n, r) {
+ function oc(e, t, n, r) {
var i = {
lane: r,
revertLane: 0,
@@ -11049,111 +11049,111 @@ var cu = /* @__PURE__ */ m(((e) => {
eagerState: null,
next: null
};
- if (sc(e)) cc(t, i);
+ if (cc(e)) lc(t, i);
else {
var a = e.alternate;
if (e.lanes === 0 && (a === null || a.lanes === 0) && (a = t.lastRenderedReducer, a !== null)) try {
var o = t.lastRenderedState, s = a(o, n);
- if (i.hasEagerState = !0, i.eagerState = s, Ir(s, o)) return xi(e, t, i, 0), $u === null && bi(), !1;
+ if (i.hasEagerState = !0, i.eagerState = s, Lr(s, o)) return Si(e, t, i, 0), td === null && xi(), !1;
} catch {}
- if (n = Si(e, t, i, r), n !== null) return Md(n, e, r), lc(n, t, r), !0;
+ if (n = Ci(e, t, i, r), n !== null) return Pd(n, e, r), uc(n, t, r), !0;
}
return !1;
}
- function oc(e, t, n, r) {
+ function sc(e, t, n, r) {
if (r = {
lane: 2,
- revertLane: Nf(),
+ revertLane: Ff(),
gesture: null,
action: r,
hasEagerState: !1,
eagerState: null,
next: null
- }, sc(e)) {
+ }, cc(e)) {
if (t) throw Error(i(479));
- } else t = Si(e, n, r, 2), t !== null && Md(t, e, 2);
+ } else t = Ci(e, n, r, 2), t !== null && Pd(t, e, 2);
}
- function sc(e) {
+ function cc(e) {
var t = e.alternate;
- return e === K || t !== null && t === K;
+ return e === G || t !== null && t === G;
}
- function cc(e, t) {
- Bo = zo = !0;
+ function lc(e, t) {
+ Vo = Bo = !0;
var n = e.pending;
n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t;
}
- function lc(e, t, n) {
+ function uc(e, t, n) {
if (n & 4194048) {
var r = t.lanes;
- r &= e.pendingLanes, n |= r, t.lanes = n, ht(e, n);
- }
- }
- var uc = {
- readContext: ba,
- use: as,
- useCallback: Ko,
- useContext: Ko,
- useEffect: Ko,
- useImperativeHandle: Ko,
- useLayoutEffect: Ko,
- useInsertionEffect: Ko,
- useMemo: Ko,
- useReducer: Ko,
- useRef: Ko,
- useState: Ko,
- useDebugValue: Ko,
- useDeferredValue: Ko,
- useTransition: Ko,
- useSyncExternalStore: Ko,
- useId: Ko,
- useHostTransitionStatus: Ko,
- useFormState: Ko,
- useActionState: Ko,
- useOptimistic: Ko,
- useMemoCache: Ko,
- useCacheRefresh: Ko,
- useEffectEvent: Ko
- }, dc = {
- readContext: ba,
- use: as,
+ r &= e.pendingLanes, n |= r, t.lanes = n, gt(e, n);
+ }
+ }
+ var dc = {
+ readContext: xa,
+ use: os,
+ useCallback: qo,
+ useContext: qo,
+ useEffect: qo,
+ useImperativeHandle: qo,
+ useLayoutEffect: qo,
+ useInsertionEffect: qo,
+ useMemo: qo,
+ useReducer: qo,
+ useRef: qo,
+ useState: qo,
+ useDebugValue: qo,
+ useDeferredValue: qo,
+ useTransition: qo,
+ useSyncExternalStore: qo,
+ useId: qo,
+ useHostTransitionStatus: qo,
+ useFormState: qo,
+ useActionState: qo,
+ useOptimistic: qo,
+ useMemoCache: qo,
+ useCacheRefresh: qo,
+ useEffectEvent: qo
+ }, fc = {
+ readContext: xa,
+ use: os,
useCallback: function(e, t) {
- return ts().memoizedState = [e, t === void 0 ? null : t], e;
+ return ns().memoizedState = [e, t === void 0 ? null : t], e;
},
- useContext: ba,
- useEffect: Fs,
+ useContext: xa,
+ useEffect: Is,
useImperativeHandle: function(e, t, n) {
- n = n == null ? null : n.concat([e]), Ns(4194308, 4, Vs.bind(null, t, e), n);
+ n = n == null ? null : n.concat([e]), Ps(4194308, 4, Hs.bind(null, t, e), n);
},
useLayoutEffect: function(e, t) {
- return Ns(4194308, 4, e, t);
+ return Ps(4194308, 4, e, t);
},
useInsertionEffect: function(e, t) {
- Ns(4, 2, e, t);
+ Ps(4, 2, e, t);
},
useMemo: function(e, t) {
- var n = ts();
+ var n = ns();
t = t === void 0 ? null : t;
var r = e();
- if (Vo) {
- Ze(!0);
+ if (Ho) {
+ Qe(!0);
try {
e();
} finally {
- Ze(!1);
+ Qe(!1);
}
}
return n.memoizedState = [r, t], r;
},
useReducer: function(e, t, n) {
- var r = ts();
+ var r = ns();
if (n !== void 0) {
var i = n(t);
- if (Vo) {
- Ze(!0);
+ if (Ho) {
+ Qe(!0);
try {
n(t);
} finally {
- Ze(!1);
+ Qe(!1);
}
}
} else i = t;
@@ -11163,54 +11163,54 @@ var cu = /* @__PURE__ */ m(((e) => {
dispatch: null,
lastRenderedReducer: e,
lastRenderedState: i
- }, r.queue = e, e = e.dispatch = rc.bind(null, K, e), [r.memoizedState, e];
+ }, r.queue = e, e = e.dispatch = ic.bind(null, G, e), [r.memoizedState, e];
},
useRef: function(e) {
- var t = ts();
+ var t = ns();
return e = { current: e }, t.memoizedState = e;
},
useState: function(e) {
- e = _s(e);
- var t = e.queue, n = ic.bind(null, K, t);
+ e = vs(e);
+ var t = e.queue, n = ac.bind(null, G, t);
return t.dispatch = n, [e.memoizedState, n];
},
- useDebugValue: Us,
+ useDebugValue: Ws,
useDeferredValue: function(e, t) {
- return Ks(ts(), e, t);
+ return qs(ns(), e, t);
},
useTransition: function() {
- var e = _s(!1);
- return e = Js.bind(null, K, e.queue, !0, !1), ts().memoizedState = e, [!1, e];
+ var e = vs(!1);
+ return e = Ys.bind(null, G, e.queue, !0, !1), ns().memoizedState = e, [!1, e];
},
useSyncExternalStore: function(e, t, n) {
- var r = K, a = ts();
- if (W) {
+ var r = G, a = ns();
+ if (U) {
if (n === void 0) throw Error(i(407));
n = n();
} else {
- if (n = t(), $u === null) throw Error(i(349));
- Y & 127 || fs(r, t, n);
+ if (n = t(), td === null) throw Error(i(349));
+ q & 127 || ps(r, t, n);
}
a.memoizedState = n;
var o = {
value: n,
getSnapshot: t
};
- return a.queue = o, Fs(ms.bind(null, r, o, e), [e]), r.flags |= 2048, js(9, { destroy: void 0 }, ps.bind(null, r, o, n, t), null), n;
+ return a.queue = o, Is(hs.bind(null, r, o, e), [e]), r.flags |= 2048, Ms(9, { destroy: void 0 }, ms.bind(null, r, o, n, t), null), n;
},
useId: function() {
- var e = ts(), t = $u.identifierPrefix;
- if (W) {
- var n = qi, r = Ki;
- n = (r & ~(1 << 32 - Qe(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Ho++, 0 < n && (t += "H" + n.toString(32)), t += "_";
- } else n = Go++, t = "_" + t + "r_" + n.toString(32) + "_";
+ var e = ns(), t = td.identifierPrefix;
+ if (U) {
+ var n = Ji, r = qi;
+ n = (r & ~(1 << 32 - $e(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Uo++, 0 < n && (t += "H" + n.toString(32)), t += "_";
+ } else n = Ko++, t = "_" + t + "r_" + n.toString(32) + "_";
return e.memoizedState = t;
},
- useHostTransitionStatus: $s,
- useFormState: Es,
- useActionState: Es,
+ useHostTransitionStatus: ec,
+ useFormState: Ds,
+ useActionState: Ds,
useOptimistic: function(e) {
- var t = ts();
+ var t = ns();
t.memoizedState = t.baseState = e;
var n = {
pending: null,
@@ -11219,132 +11219,132 @@ var cu = /* @__PURE__ */ m(((e) => {
lastRenderedReducer: null,
lastRenderedState: null
};
- return t.queue = n, t = oc.bind(null, K, !0, n), n.dispatch = t, [e, t];
+ return t.queue = n, t = sc.bind(null, G, !0, n), n.dispatch = t, [e, t];
},
- useMemoCache: os,
+ useMemoCache: ss,
useCacheRefresh: function() {
- return ts().memoizedState = nc.bind(null, K);
+ return ns().memoizedState = rc.bind(null, G);
},
useEffectEvent: function(e) {
- var t = ts(), n = { impl: e };
+ var t = ns(), n = { impl: e };
return t.memoizedState = n, function() {
- if (q & 2) throw Error(i(440));
+ if (ed & 2) throw Error(i(440));
return n.impl.apply(void 0, arguments);
};
}
- }, fc = {
- readContext: ba,
- use: as,
- useCallback: Ws,
- useContext: ba,
- useEffect: Is,
- useImperativeHandle: Hs,
- useInsertionEffect: zs,
- useLayoutEffect: Bs,
- useMemo: Gs,
- useReducer: cs,
- useRef: Ms,
+ }, pc = {
+ readContext: xa,
+ use: os,
+ useCallback: Gs,
+ useContext: xa,
+ useEffect: Ls,
+ useImperativeHandle: Us,
+ useInsertionEffect: Bs,
+ useLayoutEffect: Vs,
+ useMemo: Ks,
+ useReducer: ls,
+ useRef: Ns,
useState: function() {
- return cs(ss);
+ return ls(cs);
},
- useDebugValue: Us,
+ useDebugValue: Ws,
useDeferredValue: function(e, t) {
- return qs(ns(), Lo.memoizedState, e, t);
+ return Js(rs(), Ro.memoizedState, e, t);
},
useTransition: function() {
- var e = cs(ss)[0], t = ns().memoizedState;
- return [typeof e == "boolean" ? e : is(e), t];
+ var e = ls(cs)[0], t = rs().memoizedState;
+ return [typeof e == "boolean" ? e : as(e), t];
},
- useSyncExternalStore: ds,
- useId: ec,
- useHostTransitionStatus: $s,
- useFormState: Ds,
- useActionState: Ds,
+ useSyncExternalStore: fs,
+ useId: tc,
+ useHostTransitionStatus: ec,
+ useFormState: Os,
+ useActionState: Os,
useOptimistic: function(e, t) {
- return vs(ns(), Lo, e, t);
+ return ys(rs(), Ro, e, t);
},
- useMemoCache: os,
- useCacheRefresh: tc,
- useEffectEvent: Rs
- }, pc = {
- readContext: ba,
- use: as,
- useCallback: Ws,
- useContext: ba,
- useEffect: Is,
- useImperativeHandle: Hs,
- useInsertionEffect: zs,
- useLayoutEffect: Bs,
- useMemo: Gs,
- useReducer: us,
- useRef: Ms,
+ useMemoCache: ss,
+ useCacheRefresh: nc,
+ useEffectEvent: zs
+ }, mc = {
+ readContext: xa,
+ use: os,
+ useCallback: Gs,
+ useContext: xa,
+ useEffect: Ls,
+ useImperativeHandle: Us,
+ useInsertionEffect: Bs,
+ useLayoutEffect: Vs,
+ useMemo: Ks,
+ useReducer: ds,
+ useRef: Ns,
useState: function() {
- return us(ss);
+ return ds(cs);
},
- useDebugValue: Us,
+ useDebugValue: Ws,
useDeferredValue: function(e, t) {
- var n = ns();
- return Lo === null ? Ks(n, e, t) : qs(n, Lo.memoizedState, e, t);
+ var n = rs();
+ return Ro === null ? qs(n, e, t) : Js(n, Ro.memoizedState, e, t);
},
useTransition: function() {
- var e = us(ss)[0], t = ns().memoizedState;
- return [typeof e == "boolean" ? e : is(e), t];
+ var e = ds(cs)[0], t = rs().memoizedState;
+ return [typeof e == "boolean" ? e : as(e), t];
},
- useSyncExternalStore: ds,
- useId: ec,
- useHostTransitionStatus: $s,
- useFormState: As,
- useActionState: As,
+ useSyncExternalStore: fs,
+ useId: tc,
+ useHostTransitionStatus: ec,
+ useFormState: js,
+ useActionState: js,
useOptimistic: function(e, t) {
- var n = ns();
- return Lo === null ? (n.baseState = e, [e, n.queue.dispatch]) : vs(n, Lo, e, t);
+ var n = rs();
+ return Ro === null ? (n.baseState = e, [e, n.queue.dispatch]) : ys(n, Ro, e, t);
},
- useMemoCache: os,
- useCacheRefresh: tc,
- useEffectEvent: Rs
+ useMemoCache: ss,
+ useCacheRefresh: nc,
+ useEffectEvent: zs
};
- function mc(e, t, n, r) {
+ function hc(e, t, n, r) {
t = e.memoizedState, n = n(r, t), n = n == null ? t : T({}, t, n), e.memoizedState = n, e.lanes === 0 && (e.updateQueue.baseState = n);
}
- var hc = {
+ var gc = {
enqueueSetState: function(e, t, n) {
e = e._reactInternals;
- var r = kd(), i = uo(r);
- i.payload = t, n != null && (i.callback = n), t = fo(e, i, r), t !== null && (Md(t, e, r), po(t, e, r));
+ var r = jd(), i = fo(r);
+ i.payload = t, n != null && (i.callback = n), t = po(e, i, r), t !== null && (Pd(t, e, r), mo(t, e, r));
},
enqueueReplaceState: function(e, t, n) {
e = e._reactInternals;
- var r = kd(), i = uo(r);
- i.tag = 1, i.payload = t, n != null && (i.callback = n), t = fo(e, i, r), t !== null && (Md(t, e, r), po(t, e, r));
+ var r = jd(), i = fo(r);
+ i.tag = 1, i.payload = t, n != null && (i.callback = n), t = po(e, i, r), t !== null && (Pd(t, e, r), mo(t, e, r));
},
enqueueForceUpdate: function(e, t) {
e = e._reactInternals;
- var n = kd(), r = uo(n);
- r.tag = 2, t != null && (r.callback = t), t = fo(e, r, n), t !== null && (Md(t, e, n), po(t, e, n));
+ var n = jd(), r = fo(n);
+ r.tag = 2, t != null && (r.callback = t), t = po(e, r, n), t !== null && (Pd(t, e, n), mo(t, e, n));
}
};
- function gc(e, t, n, r, i, a, o) {
- return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !Lr(n, r) || !Lr(i, a) : !0;
+ function _c(e, t, n, r, i, a, o) {
+ return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !Rr(n, r) || !Rr(i, a) : !0;
}
- function _c(e, t, n, r) {
- e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && hc.enqueueReplaceState(t, t.state, null);
+ function vc(e, t, n, r) {
+ e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && gc.enqueueReplaceState(t, t.state, null);
}
- function vc(e, t) {
+ function yc(e, t) {
var n = t;
if ("ref" in t) for (var r in n = {}, t) r !== "ref" && (n[r] = t[r]);
if (e = e.defaultProps) for (var i in n === t && (n = T({}, n)), e) n[i] === void 0 && (n[i] = e[i]);
return n;
}
- function yc(e) {
- gi(e);
- }
function bc(e) {
- console.error(e);
+ _i(e);
}
function xc(e) {
- gi(e);
+ console.error(e);
+ }
+ function Sc(e) {
+ _i(e);
}
- function Sc(e, t) {
+ function Cc(e, t) {
try {
var n = e.onUncaughtError;
n(t.value, { componentStack: t.stack });
@@ -11354,7 +11354,7 @@ var cu = /* @__PURE__ */ m(((e) => {
});
}
}
- function Cc(e, t, n) {
+ function wc(e, t, n) {
try {
var r = e.onCaughtError;
r(n.value, {
@@ -11367,57 +11367,57 @@ var cu = /* @__PURE__ */ m(((e) => {
});
}
}
- function wc(e, t, n) {
- return n = uo(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
- Sc(e, t);
+ function Tc(e, t, n) {
+ return n = fo(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
+ Cc(e, t);
}, n;
}
- function Tc(e) {
- return e = uo(e), e.tag = 3, e;
+ function Ec(e) {
+ return e = fo(e), e.tag = 3, e;
}
- function Ec(e, t, n, r) {
+ function Dc(e, t, n, r) {
var i = n.type.getDerivedStateFromError;
if (typeof i == "function") {
var a = r.value;
e.payload = function() {
return i(a);
}, e.callback = function() {
- Cc(t, n, r);
+ wc(t, n, r);
};
}
var o = n.stateNode;
o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {
- Cc(t, n, r), typeof i != "function" && (_d === null ? _d = /* @__PURE__ */ new Set([this]) : _d.add(this));
+ wc(t, n, r), typeof i != "function" && (bd === null ? bd = /* @__PURE__ */ new Set([this]) : bd.add(this));
var e = r.stack;
this.componentDidCatch(r.value, { componentStack: e === null ? "" : e });
});
}
- function Dc(e, t, n, r, a) {
+ function Oc(e, t, n, r, a) {
if (n.flags |= 32768, typeof r == "object" && r && typeof r.then == "function") {
- if (t = n.alternate, t !== null && _a(t, n, a, !0), n = To.current, n !== null) {
+ if (t = n.alternate, t !== null && va(t, n, a, !0), n = Eo.current, n !== null) {
switch (n.tag) {
case 31:
case 13:
- case 19: return Eo === null ? Wd() : n.alternate === null && ad === 0 && (ad = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Ka ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), pf(e, r, a)), !1;
- case 22: return n.flags |= 65536, r === Ka ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
+ case 19: return Do === null ? Kd() : n.alternate === null && cd === 0 && (cd = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === qa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), hf(e, r, a)), !1;
+ case 22: return n.flags |= 65536, r === qa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
transitions: null,
markerInstances: null,
retryQueue: /* @__PURE__ */ new Set([r])
- }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), pf(e, r, a)), !1;
+ }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), hf(e, r, a)), !1;
}
throw Error(i(435, n.tag));
}
- return pf(e, r, a), Wd(), !1;
+ return hf(e, r, a), Kd(), !1;
}
- if (W) return t = To.current, t === null ? (r !== na && (t = Error(i(423), { cause: r }), la(Ri(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = Ri(r, n), a = wc(e.stateNode, r, a), mo(e, a), ad !== 4 && (ad = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== na && (e = Error(i(422), { cause: r }), la(Ri(e, n)))), !1;
+ if (U) return t = Eo.current, t === null ? (r !== ra && (t = Error(i(423), { cause: r }), ua(zi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = zi(r, n), a = Tc(e.stateNode, r, a), ho(e, a), cd !== 4 && (cd = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== ra && (e = Error(i(422), { cause: r }), ua(zi(e, n)))), !1;
var o = Error(i(520), { cause: r });
- if (o = Ri(o, n), dd === null ? dd = [o] : dd.push(o), ad !== 4 && (ad = 2), t === null) return !0;
- r = Ri(r, n), n = t;
+ if (o = zi(o, n), pd === null ? pd = [o] : pd.push(o), cd !== 4 && (cd = 2), t === null) return !0;
+ r = zi(r, n), n = t;
do {
switch (n.tag) {
- case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = wc(n.stateNode, r, e), mo(n, e), !1;
+ case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Tc(n.stateNode, r, e), ho(n, e), !1;
case 1:
- if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (_d === null || !_d.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Tc(a), Ec(a, e, n, r), mo(n, a), !1;
+ if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (bd === null || !bd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Ec(a), Dc(a, e, n, r), ho(n, a), !1;
break;
case 22: if (n.memoizedState !== null) return n.flags |= 65536, !1;
}
@@ -11425,41 +11425,41 @@ var cu = /* @__PURE__ */ m(((e) => {
} while (n !== null);
return !1;
}
- var Oc = Error(i(461)), kc = !1;
- function Ac(e, t, n, r) {
- t.child = e === null ? oo(t, null, n, r) : ao(t, e.child, n, r);
+ var kc = Error(i(461)), Ac = !1;
+ function jc(e, t, n, r) {
+ t.child = e === null ? so(t, null, n, r) : oo(t, e.child, n, r);
}
- function jc(e, t, n, r, i) {
+ function Mc(e, t, n, r, i) {
n = n.render;
var a = t.ref;
if ("ref" in r) {
var o = {};
for (var s in r) s !== "ref" && (o[s] = r[s]);
} else o = r;
- return ya(t), r = Jo(e, t, n, o, a, i), s = Qo(), e !== null && !kc ? ($o(e, t, i), al(e, t, i)) : (W && s && Xi(t), t.flags |= 1, Ac(e, t, r, i), t.child);
+ return ba(t), r = Yo(e, t, n, o, a, i), s = $o(), e !== null && !Ac ? (es(e, t, i), ol(e, t, i)) : (U && s && Zi(t), t.flags |= 1, jc(e, t, r, i), t.child);
}
- function Mc(e, t, n, r, i) {
+ function Nc(e, t, n, r, i) {
if (e === null) {
var a = n.type;
- return typeof a == "function" && !ki(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Nc(e, t, a, r, i)) : (e = Mi(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
+ return typeof a == "function" && !Ai(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Pc(e, t, a, r, i)) : (e = Ni(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
}
- if (a = e.child, !ol(e, i)) {
+ if (a = e.child, !sl(e, i)) {
var o = a.memoizedProps;
- if (n = n.compare, n = n === null ? Lr : n, n(o, r) && e.ref === t.ref) return al(e, t, i);
+ if (n = n.compare, n = n === null ? Rr : n, n(o, r) && e.ref === t.ref) return ol(e, t, i);
}
- return t.flags |= 1, e = Ai(a, r), e.ref = t.ref, e.return = t, t.child = e;
+ return t.flags |= 1, e = ji(a, r), e.ref = t.ref, e.return = t, t.child = e;
}
- function Nc(e, t, n, r, i) {
+ function Pc(e, t, n, r, i) {
if (e !== null) {
var a = e.memoizedProps;
- if (Lr(a, r) && e.ref === t.ref) {
- if (kc = !1, t.pendingProps = r = a, ol(e, i)) e.flags & 131072 && (kc = !0);
- else return t.lanes = e.lanes, al(e, t, i);
+ if (Rr(a, r) && e.ref === t.ref) {
+ if (Ac = !1, t.pendingProps = r = a, sl(e, i)) e.flags & 131072 && (Ac = !0);
+ else return t.lanes = e.lanes, ol(e, t, i);
}
}
- return Vc(e, t, n, r, i);
+ return Hc(e, t, n, r, i);
}
- function Pc(e, t, n, r) {
+ function Fc(e, t, n, r) {
var i = r.children, a = e === null ? null : e.memoizedState;
if (e === null && t.stateNode === null && (t.stateNode = {
_visibility: 1,
@@ -11472,17 +11472,17 @@ var cu = /* @__PURE__ */ m(((e) => {
for (r = t.child = e.child, i = 0; r !== null;) i = i | r.lanes | r.childLanes, r = r.sibling;
r = i & ~a;
} else r = 0, t.child = null;
- return Ic(e, t, a, n, r);
+ return Lc(e, t, a, n, r);
}
if (n & 536870912) t.memoizedState = {
baseLanes: 0,
cachePool: null
- }, e !== null && Va(t, a === null ? null : a.cachePool), a === null ? Co() : So(t, a), ko(t);
- else return r = t.lanes = 536870912, Ic(e, t, a === null ? n : a.baseLanes | n, n, r);
- } else a === null ? (e !== null && Va(t, null), Co(), Ao()) : (Va(t, a.cachePool), So(t, a), Ao(), t.memoizedState = null);
- return Ac(e, t, i, n), t.child;
+ }, e !== null && Ha(t, a === null ? null : a.cachePool), a === null ? wo() : Co(t, a), Ao(t);
+ else return r = t.lanes = 536870912, Lc(e, t, a === null ? n : a.baseLanes | n, n, r);
+ } else a === null ? (e !== null && Ha(t, null), wo(), jo()) : (Ha(t, a.cachePool), Co(t, a), jo(), t.memoizedState = null);
+ return jc(e, t, i, n), t.child;
}
- function Fc(e, t) {
+ function Ic(e, t) {
return e !== null && e.tag === 22 || t.stateNode !== null || (t.stateNode = {
_visibility: 1,
_pendingMarkers: null,
@@ -11490,68 +11490,68 @@ var cu = /* @__PURE__ */ m(((e) => {
_transitions: null
}), t.sibling;
}
- function Ic(e, t, n, r, i) {
- var a = Ba();
+ function Lc(e, t, n, r, i) {
+ var a = Va();
return a = a === null ? null : {
- parent: G._currentValue,
+ parent: W._currentValue,
pool: a
}, t.memoizedState = {
baseLanes: n,
cachePool: a
- }, e !== null && Va(t, null), Co(), ko(t), e !== null && _a(e, t, r, !0), t.childLanes = i, null;
+ }, e !== null && Ha(t, null), wo(), Ao(t), e !== null && va(e, t, r, !0), t.childLanes = i, null;
}
- function Lc(e, t) {
- return t = Xc({
+ function Rc(e, t) {
+ return t = Zc({
mode: t.mode,
children: t.children
}, e.mode), t.ref = e.ref, e.child = t, t.return = e, t;
}
- function Rc(e, t, n) {
- return ao(t, e.child, null, n), e = Lc(t, t.pendingProps), e.flags |= 2, jo(t), t.memoizedState = null, e;
- }
function zc(e, t, n) {
+ return oo(t, e.child, null, n), e = Rc(t, t.pendingProps), e.flags |= 2, Mo(t), t.memoizedState = null, e;
+ }
+ function Bc(e, t, n) {
var r = t.pendingProps, a = !!(t.flags & 128);
if (t.flags &= -129, e === null) {
- if (W) {
- if (r.mode === "hidden") return e = Lc(t, r), t.lanes = 536870912, e.memoizedState = {
+ if (U) {
+ if (r.mode === "hidden") return e = Rc(t, r), t.lanes = 536870912, e.memoizedState = {
baseLanes: 0,
cachePool: null
- }, Fc(null, e);
- if (Oo(t), (e = $i) ? (e = am(e, ta), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
+ }, Ic(null, e);
+ if (ko(t), (e = ea) ? (e = am(e, na), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
- treeContext: Gi === null ? null : {
- id: Ki,
- overflow: qi
+ treeContext: Ki === null ? null : {
+ id: qi,
+ overflow: Ji
},
retryLane: 536870912,
hydrationErrors: null
- }, n = Fi(e), n.return = t, t.child = n, U = t, $i = null)) : e = null, e === null) throw ra(t);
+ }, n = Ii(e), n.return = t, t.child = n, H = t, ea = null)) : e = null, e === null) throw ia(t);
return t.lanes = 536870912, null;
}
- return Lc(t, r);
+ return Rc(t, r);
}
var o = e.memoizedState;
if (o !== null) {
var s = o.dehydrated;
- if (Oo(t), a) {
- if (t.flags & 256) t.flags &= -257, t = Rc(e, t, n);
+ if (ko(t), a) {
+ if (t.flags & 256) t.flags &= -257, t = zc(e, t, n);
else if (t.memoizedState !== null) t.child = e.child, t.flags |= 128, t = null;
else throw Error(i(558));
- } else if (kc || _a(e, t, n, !1), a = (n & e.childLanes) !== 0, kc || a) {
- if (bo.current === null) {
- if (r = $u, r !== null && (s = gt(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Ci(e, s), Md(r, e, s), Oc;
- Wd();
+ } else if (Ac || va(e, t, n, !1), a = (n & e.childLanes) !== 0, Ac || a) {
+ if (xo.current === null) {
+ if (r = td, r !== null && (s = _t(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, wi(e, s), Pd(r, e, s), kc;
+ Kd();
}
- t = Rc(e, t, n);
- } else e = o.treeContext, $i = lm(s.nextSibling), U = t, W = !0, ea = null, ta = !1, e !== null && Qi(t, e), t = Lc(t, r), t.flags |= 134221824;
+ t = zc(e, t, n);
+ } else e = o.treeContext, ea = lm(s.nextSibling), H = t, U = !0, ta = null, na = !1, e !== null && $i(t, e), t = Rc(t, r), t.flags |= 134221824;
return t;
}
- return e = Ai(e.child, {
+ return e = ji(e.child, {
mode: r.mode,
children: r.children
}), e.ref = t.ref, t.child = e, e.return = t, e;
}
- function Bc(e, t) {
+ function Vc(e, t) {
var n = t.ref;
if (n === null) e !== null && e.ref !== null && (t.flags |= 4194816);
else {
@@ -11559,135 +11559,135 @@ var cu = /* @__PURE__ */ m(((e) => {
(e === null || e.ref !== n) && (t.flags |= 4194816);
}
}
- function Vc(e, t, n, r, i) {
- return ya(t), n = Jo(e, t, n, r, void 0, i), r = Qo(), e !== null && !kc ? ($o(e, t, i), al(e, t, i)) : (W && r && Xi(t), t.flags |= 1, Ac(e, t, n, i), t.child);
+ function Hc(e, t, n, r, i) {
+ return ba(t), n = Yo(e, t, n, r, void 0, i), r = $o(), e !== null && !Ac ? (es(e, t, i), ol(e, t, i)) : (U && r && Zi(t), t.flags |= 1, jc(e, t, n, i), t.child);
}
- function Hc(e, t, n, r, i, a) {
- return ya(t), t.updateQueue = null, n = Xo(t, r, n, i), Yo(e), r = Qo(), e !== null && !kc ? ($o(e, t, a), al(e, t, a)) : (W && r && Xi(t), t.flags |= 1, Ac(e, t, n, a), t.child);
+ function Uc(e, t, n, r, i, a) {
+ return ba(t), t.updateQueue = null, n = Zo(t, r, n, i), Xo(e), r = $o(), e !== null && !Ac ? (es(e, t, a), ol(e, t, a)) : (U && r && Zi(t), t.flags |= 1, jc(e, t, n, a), t.child);
}
- function Uc(e, t, n, r, i) {
- if (ya(t), t.stateNode === null) {
- var a = Ei, o = n.contextType;
- typeof o == "object" && o && (a = ba(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = hc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, co(t), o = n.contextType, a.context = typeof o == "object" && o ? ba(o) : Ei, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (mc(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && hc.enqueueReplaceState(a, a.state, null), _o(t, r, a, i), go(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;
+ function Wc(e, t, n, r, i) {
+ if (ba(t), t.stateNode === null) {
+ var a = Di, o = n.contextType;
+ typeof o == "object" && o && (a = xa(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = gc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, lo(t), o = n.contextType, a.context = typeof o == "object" && o ? xa(o) : Di, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (hc(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && gc.enqueueReplaceState(a, a.state, null), vo(t, r, a, i), _o(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;
} else if (e === null) {
a = t.stateNode;
- var s = t.memoizedProps, c = vc(n, s);
+ var s = t.memoizedProps, c = yc(n, s);
a.props = c;
var l = a.context, u = n.contextType;
- o = Ei, typeof u == "object" && u && (o = ba(u));
+ o = Di, typeof u == "object" && u && (o = xa(u));
var d = n.getDerivedStateFromProps;
- u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && _c(t, a, r, o), so = !1;
+ u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && vc(t, a, r, o), co = !1;
var f = t.memoizedState;
- a.state = f, _o(t, r, a, i), go(), l = t.memoizedState, s || f !== l || so ? (typeof d == "function" && (mc(t, n, d, r), l = t.memoizedState), (c = so || gc(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);
+ a.state = f, vo(t, r, a, i), _o(), l = t.memoizedState, s || f !== l || co ? (typeof d == "function" && (hc(t, n, d, r), l = t.memoizedState), (c = co || _c(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);
} else {
- a = t.stateNode, lo(e, t), o = t.memoizedProps, u = vc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Ei, typeof l == "object" && l && (c = ba(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && _c(t, a, r, c), so = !1, f = t.memoizedState, a.state = f, _o(t, r, a, i), go();
+ a = t.stateNode, uo(e, t), o = t.memoizedProps, u = yc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Di, typeof l == "object" && l && (c = xa(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && vc(t, a, r, c), co = !1, f = t.memoizedState, a.state = f, vo(t, r, a, i), _o();
var p = t.memoizedState;
- o !== d || f !== p || so || e !== null && e.dependencies !== null && va(e.dependencies) ? (typeof s == "function" && (mc(t, n, s, r), p = t.memoizedState), (u = so || gc(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && va(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);
+ o !== d || f !== p || co || e !== null && e.dependencies !== null && ya(e.dependencies) ? (typeof s == "function" && (hc(t, n, s, r), p = t.memoizedState), (u = co || _c(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && ya(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);
}
- return a = r, Bc(e, t), r = !!(t.flags & 128), a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = ao(t, e.child, null, i), t.child = ao(t, null, n, i)) : Ac(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = al(e, t, i), e;
+ return a = r, Vc(e, t), r = !!(t.flags & 128), a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = oo(t, e.child, null, i), t.child = oo(t, null, n, i)) : jc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = ol(e, t, i), e;
}
- function Wc(e, t, n, r) {
- return sa(), t.flags |= 256, Ac(e, t, n, r), t.child;
+ function Gc(e, t, n, r) {
+ return ca(), t.flags |= 256, jc(e, t, n, r), t.child;
}
- var Gc = {
+ var Kc = {
dehydrated: null,
treeContext: null,
retryLane: 0,
hydrationErrors: null
};
- function Kc(e) {
+ function qc(e) {
return {
baseLanes: e,
- cachePool: Ha()
+ cachePool: Ua()
};
}
- function qc(e, t, n) {
- return e = e === null ? 0 : e.childLanes & ~n, t && (e |= ld), e;
- }
function Jc(e, t, n) {
+ return e = e === null ? 0 : e.childLanes & ~n, t && (e |= fd), e;
+ }
+ function Yc(e, t, n) {
var r = t.pendingProps, i = !1, a = !!(t.flags & 128), o;
- if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Mo.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
- if (W) {
- if (i ? Do(t) : Ao(), (e = $i) ? (e = am(e, ta), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
+ if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(No.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
+ if (U) {
+ if (i ? Oo(t) : jo(), (e = ea) ? (e = am(e, na), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
- treeContext: Gi === null ? null : {
- id: Ki,
- overflow: qi
+ treeContext: Ki === null ? null : {
+ id: qi,
+ overflow: Ji
},
retryLane: 536870912,
hydrationErrors: null
- }, n = Fi(e), n.return = t, t.child = n, U = t, $i = null)) : e = null, e === null) throw ra(t);
+ }, n = Ii(e), n.return = t, t.child = n, H = t, ea = null)) : e = null, e === null) throw ia(t);
return t.lanes = sm(e) ? 32 : 536870912, null;
}
- return a = r.children, r = r.fallback, i ? (Ao(), i = t.mode, a = Xc({
+ return a = r.children, r = r.fallback, i ? (jo(), i = t.mode, a = Zc({
mode: "hidden",
children: a
- }, i), r = Ni(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Kc(n), r.childLanes = qc(e, o, n), t.memoizedState = Gc, Fc(null, r)) : (Do(t), Yc(t, a));
+ }, i), r = Pi(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = qc(n), r.childLanes = Jc(e, o, n), t.memoizedState = Kc, Ic(null, r)) : (Oo(t), Xc(t, a));
}
var s = e.memoizedState;
if (s !== null) {
var c = s.dehydrated;
- if (c !== null) return Qc(e, t, a, o, r, c, s, n);
+ if (c !== null) return $c(e, t, a, o, r, c, s, n);
}
- return i ? (Ao(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = Ai(s, {
+ return i ? (jo(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = ji(s, {
mode: "hidden",
children: r.children
- }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Ni(i, a, n, null), i.flags |= 2) : i = Ai(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Fc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Kc(n) : (a = i.cachePool, a === null ? a = Ha() : (s = G._currentValue, a = a.parent === s ? a : {
+ }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Pi(i, a, n, null), i.flags |= 2) : i = ji(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Ic(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = qc(n) : (a = i.cachePool, a === null ? a = Ua() : (s = W._currentValue, a = a.parent === s ? a : {
parent: s,
pool: s
}), i = {
baseLanes: i.baseLanes | n,
cachePool: a
- }), r.memoizedState = i, r.childLanes = qc(e, o, n), t.memoizedState = Gc, Fc(e.child, r)) : (Do(t), n = e.child, e = n.sibling, n = Ai(n, {
+ }), r.memoizedState = i, r.childLanes = Jc(e, o, n), t.memoizedState = Kc, Ic(e.child, r)) : (Oo(t), n = e.child, e = n.sibling, n = ji(n, {
mode: "visible",
children: r.children
}), n.return = t, n.sibling = null, e !== null && (o = t.deletions, o === null ? (t.deletions = [e], t.flags |= 16) : o.push(e)), t.child = n, t.memoizedState = null, n);
}
- function Yc(e, t) {
- return t = Xc({
+ function Xc(e, t) {
+ return t = Zc({
mode: "visible",
children: t
}, e.mode), t.return = e, e.child = t;
}
- function Xc(e, t) {
- return e = Oi(22, e, null, t), e.lanes = 0, e;
+ function Zc(e, t) {
+ return e = ki(22, e, null, t), e.lanes = 0, e;
}
- function Zc(e, t, n) {
- return ao(t, e.child, null, n), e = Yc(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
+ function Qc(e, t, n) {
+ return oo(t, e.child, null, n), e = Xc(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
}
- function Qc(e, t, n, r, a, o, s, c) {
- if (n) return t.flags & 256 ? (Do(t), t.flags &= -257, Zc(e, t, c)) : t.memoizedState === null ? (Ao(), o = a.fallback, s = t.mode, a = Xc({
+ function $c(e, t, n, r, a, o, s, c) {
+ if (n) return t.flags & 256 ? (Oo(t), t.flags &= -257, Qc(e, t, c)) : t.memoizedState === null ? (jo(), o = a.fallback, s = t.mode, a = Zc({
mode: "visible",
children: a.children
- }, s), o = Ni(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, ao(t, e.child, null, c), a = t.child, a.memoizedState = Kc(c), a.childLanes = qc(e, r, c), t.memoizedState = Gc, Fc(null, a)) : (Ao(), t.child = e.child, t.flags |= 128, null);
- if (Do(t), sm(o)) {
+ }, s), o = Pi(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, oo(t, e.child, null, c), a = t.child, a.memoizedState = qc(c), a.childLanes = Jc(e, r, c), t.memoizedState = Kc, Ic(null, a)) : (jo(), t.child = e.child, t.flags |= 128, null);
+ if (Oo(t), sm(o)) {
if (r = o.nextSibling && o.nextSibling.dataset, r) var l = r.dgst;
- return r = l, r !== "" && (a = Error(i(419)), a.stack = "", a.digest = r, la({
+ return r = l, r !== "" && (a = Error(i(419)), a.stack = "", a.digest = r, ua({
value: a,
source: null,
stack: null
- })), Zc(e, t, c);
+ })), Qc(e, t, c);
}
- if (kc || _a(e, t, c, !1), r = (c & e.childLanes) !== 0, kc || r) {
- if (bo.current !== null) return Zc(e, t, c);
- if (r = $u, r !== null && (a = gt(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Ci(e, a), Md(r, e, a), Oc;
- return om(o) || Wd(), Zc(e, t, c);
+ if (Ac || va(e, t, c, !1), r = (c & e.childLanes) !== 0, Ac || r) {
+ if (xo.current !== null) return Qc(e, t, c);
+ if (r = td, r !== null && (a = _t(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, wi(e, a), Pd(r, e, a), kc;
+ return om(o) || Kd(), Qc(e, t, c);
}
- return om(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, $i = lm(o.nextSibling), U = t, W = !0, ea = null, ta = !1, e !== null && Qi(t, e), t = Yc(t, a.children), t.flags |= 134221824, t);
+ return om(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, ea = lm(o.nextSibling), H = t, U = !0, ta = null, na = !1, e !== null && $i(t, e), t = Xc(t, a.children), t.flags |= 134221824, t);
}
- function $c(e, t, n) {
+ function el(e, t, n) {
e.lanes |= t;
var r = e.alternate;
- r !== null && (r.lanes |= t), ha(e.return, t, n);
+ r !== null && (r.lanes |= t), ga(e.return, t, n);
}
- function el(e) {
+ function tl(e) {
for (var t = null; e !== null;) {
var n = e.alternate;
- n !== null && Fo(n) === null && (t = e), e = e.sibling;
+ n !== null && Io(n) === null && (t = e), e = e.sibling;
}
return t;
}
- function tl(e, t, n, r, i, a) {
+ function nl(e, t, n, r, i, a) {
var o = e.memoizedState;
o === null ? e.memoizedState = {
isBackwards: t,
@@ -11699,22 +11699,22 @@ var cu = /* @__PURE__ */ m(((e) => {
treeForkCount: a
} : (o.isBackwards = t, o.rendering = null, o.renderingStartTime = 0, o.last = r, o.tail = n, o.tailMode = i, o.treeForkCount = a);
}
- function nl(e) {
+ function rl(e) {
var t = e.child;
for (e.child = null; t !== null;) {
var n = t.sibling;
t.sibling = e.child, e.child = t, t = n;
}
}
- function rl(e, t, n) {
+ function il(e, t, n) {
var r = t.pendingProps, i = r.revealOrder, a = r.tail;
r = r.children;
- var o = Mo.current;
- if (t.flags & 128) return No(t, o), null;
+ var o = No.current;
+ if (t.flags & 128) return Po(t, o), null;
var s = !!(o & 2);
- if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, No(t, o), i === "backwards" && e !== null ? (nl(e), Ac(e, t, r, n), nl(e)) : Ac(e, t, r, n), r = W ? Hi : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
- if (e.tag === 13) e.memoizedState !== null && $c(e, n, t);
- else if (e.tag === 19) $c(e, n, t);
+ if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, Po(t, o), i === "backwards" && e !== null ? (rl(e), jc(e, t, r, n), rl(e)) : jc(e, t, r, n), r = U ? Ui : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
+ if (e.tag === 13) e.memoizedState !== null && el(e, n, t);
+ else if (e.tag === 19) el(e, n, t);
else if (e.child !== null) {
e.child.return = e, e = e.child;
continue;
@@ -11728,142 +11728,142 @@ var cu = /* @__PURE__ */ m(((e) => {
}
switch (i) {
case "backwards":
- n = el(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, nl(t)), tl(t, !0, i, null, a, r);
+ n = tl(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, rl(t)), nl(t, !0, i, null, a, r);
break;
case "unstable_legacy-backwards":
for (n = null, i = t.child, t.child = null; i !== null;) {
- if (e = i.alternate, e !== null && Fo(e) === null) {
+ if (e = i.alternate, e !== null && Io(e) === null) {
t.child = i;
break;
}
e = i.sibling, i.sibling = n, n = i, i = e;
}
- tl(t, !0, n, null, a, r);
+ nl(t, !0, n, null, a, r);
break;
case "together":
- tl(t, !1, null, null, void 0, r);
+ nl(t, !1, null, null, void 0, r);
break;
case "independent":
t.memoizedState = null;
break;
- default: n = el(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), tl(t, !1, i, n, a, r);
+ default: n = tl(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), nl(t, !1, i, n, a, r);
}
return t.child;
}
- function il(e, t, n) {
+ function al(e, t, n) {
var r = t.pendingProps;
- return pa(t, t.type, r.value), Ac(e, t, r.children, n), t.child;
+ return ma(t, t.type, r.value), jc(e, t, r.children, n), t.child;
}
- function al(e, t, n) {
- if (e !== null && (t.dependencies = e.dependencies), od |= t.lanes, (n & t.childLanes) === 0) {
+ function ol(e, t, n) {
+ if (e !== null && (t.dependencies = e.dependencies), ld |= t.lanes, (n & t.childLanes) === 0) {
if (e !== null) {
- if (_a(e, t, n, !1), (n & t.childLanes) === 0) return null;
+ if (va(e, t, n, !1), (n & t.childLanes) === 0) return null;
} else return null;
}
if (e !== null && t.child !== e.child) throw Error(i(153));
if (t.child !== null) {
- for (e = t.child, n = Ai(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = Ai(e, e.pendingProps), n.return = t;
+ for (e = t.child, n = ji(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = ji(e, e.pendingProps), n.return = t;
n.sibling = null;
}
return t.child;
}
- function ol(e, t) {
- return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && va(e)));
+ function sl(e, t) {
+ return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && ya(e)));
}
- function sl(e, t, n) {
+ function cl(e, t, n) {
switch (t.tag) {
case 3:
- we(t, t.stateNode.containerInfo), pa(t, G, e.memoizedState.cache), sa();
+ Te(t, t.stateNode.containerInfo), ma(t, W, e.memoizedState.cache), ca();
break;
case 27:
case 5:
- Ee(t);
+ De(t);
break;
case 4:
- we(t, t.stateNode.containerInfo);
+ Te(t, t.stateNode.containerInfo);
break;
case 10:
- pa(t, t.type, t.memoizedProps.value);
+ ma(t, t.type, t.memoizedProps.value);
break;
case 31:
- if (t.memoizedState !== null) return t.flags |= 128, Oo(t), null;
+ if (t.memoizedState !== null) return t.flags |= 128, ko(t), null;
break;
case 13:
var r = t.memoizedState;
if (r !== null) {
- if (r.dehydrated !== null) return Do(t), t.flags |= 128, null;
- r = _a(e, t, n, !1);
+ if (r.dehydrated !== null) return Oo(t), t.flags |= 128, null;
+ r = va(e, t, n, !1);
var i = t.child.childLanes;
- return r || (n & i) !== 0 ? Jc(e, t, n) : (Do(t), e = al(e, t, n), e === null ? null : e.sibling);
+ return r || (n & i) !== 0 ? Yc(e, t, n) : (Oo(t), e = ol(e, t, n), e === null ? null : e.sibling);
}
- Do(t);
+ Oo(t);
break;
case 19:
- if (t.flags & 128) return rl(e, t, n);
- if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (_a(e, t, n, !1), (n & t.childLanes) !== 0), i) {
- if (r) return rl(e, t, n);
+ if (t.flags & 128) return il(e, t, n);
+ if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (va(e, t, n, !1), (n & t.childLanes) !== 0), i) {
+ if (r) return il(e, t, n);
t.flags |= 128;
}
- if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), No(t, Mo.current), r) break;
+ if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), Po(t, No.current), r) break;
return null;
- case 22: return t.lanes = 0, Pc(e, t, n, t.pendingProps);
- case 24: pa(t, G, e.memoizedState.cache);
+ case 22: return t.lanes = 0, Fc(e, t, n, t.pendingProps);
+ case 24: ma(t, W, e.memoizedState.cache);
}
- return al(e, t, n);
+ return ol(e, t, n);
}
- function cl(e, t, n) {
+ function ll(e, t, n) {
if (e !== null) {
- if (e.memoizedProps !== t.pendingProps) kc = !0;
+ if (e.memoizedProps !== t.pendingProps) Ac = !0;
else {
- if (!ol(e, n) && !(t.flags & 128)) return kc = !1, sl(e, t, n);
- kc = !!(e.flags & 131072);
+ if (!sl(e, n) && !(t.flags & 128)) return Ac = !1, cl(e, t, n);
+ Ac = !!(e.flags & 131072);
}
- } else kc = !1, W && t.flags & 1048576 && Yi(t, Hi, t.index);
+ } else Ac = !1, U && t.flags & 1048576 && Xi(t, Ui, t.index);
switch (t.lanes = 0, t.tag) {
case 16:
a: {
var r = t.pendingProps;
- if (e = Ya(t.elementType), t.type = e, typeof e == "function") ki(e) ? (r = vc(e, r), t.tag = 1, t = Uc(null, t, e, r, n)) : (t.tag = 0, t = Vc(null, t, e, r, n));
+ if (e = Xa(t.elementType), t.type = e, typeof e == "function") Ai(e) ? (r = yc(e, r), t.tag = 1, t = Wc(null, t, e, r, n)) : (t.tag = 0, t = Hc(null, t, e, r, n));
else {
if (e != null) {
var a = e.$$typeof;
if (a === M) {
- t.tag = 11, t = jc(null, t, e, r, n);
+ t.tag = 11, t = Mc(null, t, e, r, n);
break a;
}
if (a === re) {
- t.tag = 14, t = Mc(null, t, e, r, n);
+ t.tag = 14, t = Nc(null, t, e, r, n);
break a;
}
if (a === te) {
- t.tag = 10, t.type = e, t = il(null, t, n);
+ t.tag = 10, t.type = e, t = al(null, t, n);
break a;
}
}
- throw t = fe(e) || e, Error(i(306, t, ""));
+ throw t = pe(e) || e, Error(i(306, t, ""));
}
}
return t;
- case 0: return Vc(e, t, t.type, t.pendingProps, n);
- case 1: return r = t.type, a = vc(r, t.pendingProps), Uc(e, t, r, a, n);
+ case 0: return Hc(e, t, t.type, t.pendingProps, n);
+ case 1: return r = t.type, a = yc(r, t.pendingProps), Wc(e, t, r, a, n);
case 3:
a: {
- if (we(t, t.stateNode.containerInfo), e === null) throw Error(i(387));
+ if (Te(t, t.stateNode.containerInfo), e === null) throw Error(i(387));
r = t.pendingProps;
var o = t.memoizedState;
- a = o.element, lo(e, t), _o(t, r, null, n);
+ a = o.element, uo(e, t), vo(t, r, null, n);
var s = t.memoizedState;
- if (r = s.cache, pa(t, G, r), r !== o.cache && ga(t, [G], n, !0), go(), r = s.element, o.isDehydrated) {
+ if (r = s.cache, ma(t, W, r), r !== o.cache && _a(t, [W], n, !0), _o(), r = s.element, o.isDehydrated) {
if (o = {
element: r,
isDehydrated: !1,
cache: s.cache
}, t.updateQueue.baseState = o, t.memoizedState = o, t.flags & 256) {
- t = Wc(e, t, r, n);
+ t = Gc(e, t, r, n);
break a;
}
if (r !== a) {
- a = Ri(Error(i(424)), t), la(a), t = Wc(e, t, r, n);
+ a = zi(Error(i(424)), t), ua(a), t = Gc(e, t, r, n);
break a;
}
switch (e = t.stateNode.containerInfo, e.nodeType) {
@@ -11872,76 +11872,76 @@ var cu = /* @__PURE__ */ m(((e) => {
break;
default: e = e.nodeName === "HTML" ? e.ownerDocument.body : e;
}
- for ($i = lm(e.firstChild), U = t, W = !0, ea = null, ta = !0, n = oo(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
+ for (ea = lm(e.firstChild), H = t, U = !0, ta = null, na = !0, n = so(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
} else {
- if (sa(), r === a) {
- t = al(e, t, n);
+ if (ca(), r === a) {
+ t = ol(e, t, n);
break a;
}
- Ac(e, t, r, n);
+ jc(e, t, r, n);
}
t = t.child;
}
return t;
- case 26: return Bc(e, t), e === null ? (n = Nm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : W || (t.stateNode = fp(t.type, t.pendingProps, Se.current, t)) : t.memoizedState = Nm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
- case 27: return Ee(t), e === null && W && (r = t.stateNode = hm(t.type, t.pendingProps, Se.current), U = t, ta = !0, a = $i, Sp(t.type) ? (um = a, $i = lm(r.firstChild)) : $i = a), Ac(e, t, t.pendingProps.children, n), Bc(e, t), e === null && (t.flags |= 4194304), t.child;
- case 5: return e === null && W && ((a = r = $i) && (r = rm(r, t.type, t.pendingProps, ta), r === null ? a = !1 : (t.stateNode = r, U = t, $i = lm(r.firstChild), ta = !1, a = !0)), a || ra(t)), Ee(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, pp(a, o) ? r = null : s !== null && pp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = Jo(e, t, Zo, null, null, n), sh._currentValue = a), Bc(e, t), Ac(e, t, r, n), t.child;
- case 6: return e === null && W && ((e = n = $i) && (n = im(n, t.pendingProps, ta), n === null ? e = !1 : (t.stateNode = n, U = t, $i = null, e = !0)), e || ra(t)), null;
- case 13: return Jc(e, t, n);
- case 4: return we(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = ao(t, null, r, n) : Ac(e, t, r, n), t.child;
- case 11: return jc(e, t, t.type, t.pendingProps, n);
- case 7: return r = t.pendingProps, Bc(e, t), Ac(e, t, r, n), t.child;
- case 8: return Ac(e, t, t.pendingProps.children, n), t.child;
- case 12: return Ac(e, t, t.pendingProps.children, n), t.child;
- case 10: return il(e, t, n);
- case 9: return a = t.type._context, r = t.pendingProps.children, ya(t), a = ba(a), r = r(a), t.flags |= 1, Ac(e, t, r, n), t.child;
- case 14: return Mc(e, t, t.type, t.pendingProps, n);
- case 15: return Nc(e, t, t.type, t.pendingProps, n);
- case 19: return rl(e, t, n);
- case 31: return zc(e, t, n);
- case 22: return Pc(e, t, n, t.pendingProps);
- case 24: return ya(t), r = ba(G), e === null ? (a = Ba(), a === null && (a = $u, o = Ea(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
+ case 26: return Vc(e, t), e === null ? (n = Nm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : U || (t.stateNode = fp(t.type, t.pendingProps, Ce.current, t)) : t.memoizedState = Nm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
+ case 27: return De(t), e === null && U && (r = t.stateNode = hm(t.type, t.pendingProps, Ce.current), H = t, na = !0, a = ea, Sp(t.type) ? (um = a, ea = lm(r.firstChild)) : ea = a), jc(e, t, t.pendingProps.children, n), Vc(e, t), e === null && (t.flags |= 4194304), t.child;
+ case 5: return e === null && U && ((a = r = ea) && (r = rm(r, t.type, t.pendingProps, na), r === null ? a = !1 : (t.stateNode = r, H = t, ea = lm(r.firstChild), na = !1, a = !0)), a || ia(t)), De(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, pp(a, o) ? r = null : s !== null && pp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = Yo(e, t, Qo, null, null, n), sh._currentValue = a), Vc(e, t), jc(e, t, r, n), t.child;
+ case 6: return e === null && U && ((e = n = ea) && (n = im(n, t.pendingProps, na), n === null ? e = !1 : (t.stateNode = n, H = t, ea = null, e = !0)), e || ia(t)), null;
+ case 13: return Yc(e, t, n);
+ case 4: return Te(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = oo(t, null, r, n) : jc(e, t, r, n), t.child;
+ case 11: return Mc(e, t, t.type, t.pendingProps, n);
+ case 7: return r = t.pendingProps, Vc(e, t), jc(e, t, r, n), t.child;
+ case 8: return jc(e, t, t.pendingProps.children, n), t.child;
+ case 12: return jc(e, t, t.pendingProps.children, n), t.child;
+ case 10: return al(e, t, n);
+ case 9: return a = t.type._context, r = t.pendingProps.children, ba(t), a = xa(a), r = r(a), t.flags |= 1, jc(e, t, r, n), t.child;
+ case 14: return Nc(e, t, t.type, t.pendingProps, n);
+ case 15: return Pc(e, t, t.type, t.pendingProps, n);
+ case 19: return il(e, t, n);
+ case 31: return Bc(e, t, n);
+ case 22: return Fc(e, t, n, t.pendingProps);
+ case 24: return ba(t), r = xa(W), e === null ? (a = Va(), a === null && (a = td, o = Da(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
parent: r,
cache: a
- }, co(t), pa(t, G, a)) : ((e.lanes & n) !== 0 && (lo(e, t), _o(t, null, null, n), go()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, pa(t, G, r), r !== a.cache && ga(t, [G], n, !0)) : (a = {
+ }, lo(t), ma(t, W, a)) : ((e.lanes & n) !== 0 && (uo(e, t), vo(t, null, null, n), _o()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, ma(t, W, r), r !== a.cache && _a(t, [W], n, !0)) : (a = {
parent: r,
cache: r
- }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), pa(t, G, r))), Ac(e, t, t.pendingProps.children, n), t.child;
+ }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), ma(t, W, r))), jc(e, t, t.pendingProps.children, n), t.child;
case 30: return t.stateNode === null && (t.stateNode = {
autoName: null,
paired: null,
clones: null,
ref: null
- }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : W && Xi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Bc(e, t), Ac(e, t, r.children, n), t.child;
+ }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : U && Zi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Vc(e, t), jc(e, t, r.children, n), t.child;
case 29: throw t.pendingProps;
}
throw Error(i(156, t.tag));
}
- function ll(e) {
+ function ul(e) {
e.flags |= 4;
}
- function ul(e, t, n, r, i) {
+ function dl(e, t, n, r, i) {
var a;
if ((a = !!(e.mode & 32)) && (a = n === null ? Jm(t, r) : Jm(t, r) && (r.src !== n.src || r.srcSet !== n.srcSet)), a) {
if (e.flags |= 16777216, (i & 335544128) === i) {
if (e.stateNode.complete) e.flags |= 8192;
- else if (Vd()) e.flags |= 8192;
- else throw Xa = Ka, Wa;
+ else if (Ud()) e.flags |= 8192;
+ else throw Za = qa, Ga;
}
} else e.flags &= -16777217;
}
- function dl(e, t) {
+ function fl(e, t) {
if (t.type !== "stylesheet" || t.state.loading & 4) e.flags &= -16777217;
else if (e.flags |= 16777216, !Ym(t)) {
- if (Vd()) e.flags |= 8192;
- else throw Xa = Ka, Wa;
+ if (Ud()) e.flags |= 8192;
+ else throw Za = qa, Ga;
}
}
- function fl(e, t) {
- t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : ut(), e.lanes |= t, ud |= t);
- }
function pl(e, t) {
- if (!W) switch (e.tailMode) {
+ t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : dt(), e.lanes |= t, J |= t);
+ }
+ function ml(e, t) {
+ if (!U) switch (e.tailMode) {
case "visible": break;
case "collapsed":
for (var n = e.tail, r = null; n !== null;) n.alternate !== null && (r = n), n = n.sibling;
@@ -11952,15 +11952,15 @@ var cu = /* @__PURE__ */ m(((e) => {
n === null ? e.tail = null : n.sibling = null;
}
}
- function ml(e) {
+ function hl(e) {
var t = e.alternate !== null && e.alternate.child === e.child, n = 0, r = 0;
if (t) for (var i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags & 1206910976, r |= i.flags & 1206910976, i.return = e, i = i.sibling;
else for (i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags, r |= i.flags, i.return = e, i = i.sibling;
return e.subtreeFlags |= r, e.childLanes = n, t;
}
- function hl(e, t, n) {
+ function gl(e, t, n) {
var r = t.pendingProps;
- switch (Zi(t), t.tag) {
+ switch (Qi(t), t.tag) {
case 16:
case 15:
case 0:
@@ -11969,32 +11969,32 @@ var cu = /* @__PURE__ */ m(((e) => {
case 8:
case 12:
case 9:
- case 14: return ml(t), null;
- case 1: return ml(t), null;
- case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), ma(G), Te(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (oa(t) ? ll(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, ca())), ml(t), null;
+ case 14: return hl(t), null;
+ case 1: return hl(t), null;
+ case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), ha(W), Ee(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (sa(t) ? ul(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, la())), hl(t), null;
case 26:
var a = t.type, o = t.memoizedState;
- return e === null ? (ll(t), o === null ? (ml(t), ul(t, a, null, r, n)) : (ml(t), dl(t, o))) : o ? o === e.memoizedState ? (ml(t), t.flags &= -16777217) : (ll(t), ml(t), dl(t, o)) : (e = e.memoizedProps, e !== r && ll(t), ml(t), ul(t, a, e, r, n)), null;
+ return e === null ? (ul(t), o === null ? (hl(t), dl(t, a, null, r, n)) : (hl(t), fl(t, o))) : o ? o === e.memoizedState ? (hl(t), t.flags &= -16777217) : (ul(t), hl(t), fl(t, o)) : (e = e.memoizedProps, e !== r && ul(t), hl(t), dl(t, a, e, r, n)), null;
case 27:
- if (De(t), n = Se.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ll(t);
+ if (Oe(t), n = Ce.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ul(t);
else {
if (!r) {
if (t.stateNode === null) throw Error(i(166));
- return ml(t), t.subtreeFlags &= -33554433, null;
+ return hl(t), t.subtreeFlags &= -33554433, null;
}
- e = be.current, oa(t) ? ia(t, e) : (e = hm(a, r, n), t.stateNode = e, ll(t));
+ e = xe.current, sa(t) ? aa(t, e) : (e = hm(a, r, n), t.stateNode = e, ul(t));
}
- return ml(t), t.subtreeFlags &= -33554433, null;
+ return hl(t), t.subtreeFlags &= -33554433, null;
case 5:
- if (De(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ll(t);
+ if (Oe(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ul(t);
else {
if (!r) {
if (t.stateNode === null) throw Error(i(166));
- return ml(t), t.subtreeFlags &= -33554433, null;
+ return hl(t), t.subtreeFlags &= -33554433, null;
}
- if (o = be.current, oa(t)) ia(t, o);
+ if (o = xe.current, sa(t)) aa(t, o);
else {
- var s = lp(Se.current);
+ var s = lp(Ce.current);
switch (o) {
case 1:
o = s.createElementNS("http://www.w3.org/2000/svg", a);
@@ -12018,7 +12018,7 @@ var cu = /* @__PURE__ */ m(((e) => {
default: o = typeof r.is == "string" ? s.createElement(a, { is: r.is }) : s.createElement(a);
}
}
- o[St] = t, o[Ct] = r;
+ o[Ct] = t, o[wt] = r;
a: for (s = t.child; s !== null;) {
if (s.tag === 5 || s.tag === 6) o.appendChild(s.stateNode);
else if (s.tag !== 4 && s.tag !== 27 && s.child !== null) {
@@ -12033,7 +12033,7 @@ var cu = /* @__PURE__ */ m(((e) => {
s.sibling.return = s.return, s = s.sibling;
}
t.stateNode = o;
- a: switch (np(o, a, r), a) {
+ a: switch ($(o, a, r), a) {
case "button":
case "input":
case "select":
@@ -12045,71 +12045,71 @@ var cu = /* @__PURE__ */ m(((e) => {
break a;
default: r = !1;
}
- r && ll(t);
+ r && ul(t);
}
}
- return ml(t), t.subtreeFlags &= -33554433, ul(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
+ return hl(t), t.subtreeFlags &= -33554433, dl(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
case 6:
- if (e && t.stateNode != null) e.memoizedProps !== r && ll(t);
+ if (e && t.stateNode != null) e.memoizedProps !== r && ul(t);
else {
if (typeof r != "string" && t.stateNode === null) throw Error(i(166));
- if (e = Se.current, oa(t)) {
- if (e = t.stateNode, n = t.memoizedProps, r = null, a = U, a !== null) switch (a.tag) {
+ if (e = Ce.current, sa(t)) {
+ if (e = t.stateNode, n = t.memoizedProps, r = null, a = H, a !== null) switch (a.tag) {
case 27:
case 5: r = a.memoizedProps;
}
- e[St] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || $f(e.nodeValue, n)), e || ra(t, !0);
- } else e = lp(e).createTextNode(r), e[St] = t, t.stateNode = e;
+ e[Ct] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || tp(e.nodeValue, n)), e || ia(t, !0);
+ } else e = lp(e).createTextNode(r), e[Ct] = t, t.stateNode = e;
}
- return ml(t), null;
+ return hl(t), null;
case 31:
if (n = t.memoizedState, e === null || e.memoizedState !== null) {
- if (r = oa(t), n !== null) {
+ if (r = sa(t), n !== null) {
if (e === null) {
if (!r) throw Error(i(318));
if (e = t.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(557));
- e[St] = t;
- } else sa(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- ml(t), e = !1;
- } else n = ca(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
- if (!e) return t.flags & 256 ? (jo(t), t) : (jo(t), null);
+ e[Ct] = t;
+ } else ca(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
+ hl(t), e = !1;
+ } else n = la(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
+ if (!e) return t.flags & 256 ? (Mo(t), t) : (Mo(t), null);
if (t.flags & 128) throw Error(i(558));
}
- return ml(t), null;
+ return hl(t), null;
case 13:
if (r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
- if (a = oa(t), r !== null && r.dehydrated !== null) {
+ if (a = sa(t), r !== null && r.dehydrated !== null) {
if (e === null) {
if (!a) throw Error(i(318));
if (a = t.memoizedState, a = a === null ? null : a.dehydrated, !a) throw Error(i(317));
- a[St] = t;
- } else sa(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- ml(t), a = !1;
- } else a = ca(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;
- if (!a) return t.flags & 256 ? (jo(t), t) : (jo(t), null);
+ a[Ct] = t;
+ } else ca(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
+ hl(t), a = !1;
+ } else a = la(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;
+ if (!a) return t.flags & 256 ? (Mo(t), t) : (Mo(t), null);
}
- return jo(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), fl(t, t.updateQueue), ml(t), null);
- case 4: return Te(), e === null && Uf(t.stateNode.containerInfo), t.flags |= 67108864, ml(t), null;
- case 10: return ma(t.type), ml(t), null;
+ return Mo(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), pl(t, t.updateQueue), hl(t), null);
+ case 4: return Ee(), e === null && Gf(t.stateNode.containerInfo), t.flags |= 67108864, hl(t), null;
+ case 10: return ha(t.type), hl(t), null;
case 19:
- if (Po(t), r = t.memoizedState, r === null) return ml(t), null;
+ if (Fo(t), r = t.memoizedState, r === null) return hl(t), null;
if (a = !!(t.flags & 128), o = r.rendering, o === null) {
- if (a) pl(r, !1);
+ if (a) ml(r, !1);
else {
- if (ad !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
- if (o = Fo(e), o !== null) {
- for (t.flags |= 128, pl(r, !1), e = o.updateQueue, t.updateQueue = e, fl(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) ji(n, e), n = n.sibling;
- return No(t, Mo.current & 1 | 2), W && Ji(t, r.treeForkCount), t.child;
+ if (cd !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
+ if (o = Io(e), o !== null) {
+ for (t.flags |= 128, ml(r, !1), e = o.updateQueue, t.updateQueue = e, pl(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) Mi(n, e), n = n.sibling;
+ return Po(t, No.current & 1 | 2), U && Yi(t, r.treeForkCount), t.child;
}
e = e.sibling;
}
- r.tail !== null && Be() > Z && (t.flags |= 128, a = !0, pl(r, !1), t.lanes = 4194304);
+ r.tail !== null && Ve() > vd && (t.flags |= 128, a = !0, ml(r, !1), t.lanes = 4194304);
}
} else {
if (!a) {
- if (e = Fo(o), e !== null) {
- if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, fl(t, e), pl(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !W) return ml(t), null;
- } else 2 * Be() - r.renderingStartTime > Z && n !== 536870912 && (t.flags |= 128, a = !0, pl(r, !1), t.lanes = 4194304);
+ if (e = Io(o), e !== null) {
+ if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, pl(t, e), ml(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !U) return hl(t), null;
+ } else 2 * Ve() - r.renderingStartTime > vd && n !== 536870912 && (t.flags |= 128, a = !0, ml(r, !1), t.lanes = 4194304);
}
r.isBackwards ? (o.sibling = t.child, t.child = o) : (e = r.last, e === null ? t.child = o : e.sibling = o, r.last = o);
}
@@ -12125,79 +12125,79 @@ var cu = /* @__PURE__ */ m(((e) => {
}
n = !0;
}
- return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = Be(), e.sibling = null, o = Mo.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || W ? No(t, o) : (n = o, ye(To, t), ye(Mo, n), Eo === null && (Eo = t)), W && Ji(t, r.treeForkCount), e;
+ return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = Ve(), e.sibling = null, o = No.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || U ? Po(t, o) : (n = o, be(Eo, t), be(No, n), Do === null && (Do = t)), U && Yi(t, r.treeForkCount), e;
}
- return ml(t), null;
+ return hl(t), null;
case 22:
- case 23: return jo(t), wo(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (ml(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : ml(t), n = t.updateQueue, n !== null && fl(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && ve(za), null;
- case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), ma(G), ml(t), null;
+ case 23: return Mo(t), To(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (hl(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : hl(t), n = t.updateQueue, n !== null && pl(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && ye(Ba), null;
+ case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), ha(W), hl(t), null;
case 25: return null;
- case 30: return t.flags |= 33554432, ml(t), null;
+ case 30: return t.flags |= 33554432, hl(t), null;
}
throw Error(i(156, t.tag));
}
- function gl(e, t) {
- switch (Zi(t), t.tag) {
+ function _l(e, t) {
+ switch (Qi(t), t.tag) {
case 1: return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 3: return ma(G), Te(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
+ case 3: return ha(W), Ee(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
case 26:
case 27:
- case 5: return De(t), null;
+ case 5: return Oe(t), null;
case 31:
if (t.memoizedState !== null) {
- if (jo(t), t.alternate === null) throw Error(i(340));
- sa();
+ if (Mo(t), t.alternate === null) throw Error(i(340));
+ ca();
}
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
case 13:
- if (jo(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
+ if (Mo(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
if (t.alternate === null) throw Error(i(340));
- sa();
+ ca();
}
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 19: return Po(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;
- case 4: return Te(), null;
- case 10: return ma(t.type), null;
+ case 19: return Fo(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;
+ case 4: return Ee(), null;
+ case 10: return ha(t.type), null;
case 22:
- case 23: return jo(t), wo(), e !== null && ve(za), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 24: return ma(G), null;
+ case 23: return Mo(t), To(), e !== null && ye(Ba), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
+ case 24: return ha(W), null;
case 25: return null;
default: return null;
}
}
- function _l(e, t) {
- switch (Zi(t), t.tag) {
+ function vl(e, t) {
+ switch (Qi(t), t.tag) {
case 3:
- ma(G), Te();
+ ha(W), Ee();
break;
case 26:
case 27:
case 5:
- De(t);
+ Oe(t);
break;
case 4:
- Te();
+ Ee();
break;
case 31:
- t.memoizedState !== null && jo(t);
+ t.memoizedState !== null && Mo(t);
break;
case 13:
- jo(t);
+ Mo(t);
break;
case 19:
- Po(t);
+ Fo(t);
break;
case 10:
- ma(t.type);
+ ha(t.type);
break;
case 22:
case 23:
- jo(t), wo(), e !== null && ve(za);
+ Mo(t), To(), e !== null && ye(Ba);
break;
- case 24: ma(G);
+ case 24: ha(W);
}
}
- function vl(e, t) {
+ function yl(e, t) {
try {
var n = t.updateQueue, r = n === null ? null : n.lastEffect;
if (r !== null) {
@@ -12213,10 +12213,10 @@ var cu = /* @__PURE__ */ m(((e) => {
} while (n !== i);
}
} catch (e) {
- ff(t, t.return, e);
+ mf(t, t.return, e);
}
}
- function yl(e, t, n) {
+ function bl(e, t, n) {
try {
var r = t.updateQueue, i = r === null ? null : r.lastEffect;
if (i !== null) {
@@ -12231,7 +12231,7 @@ var cu = /* @__PURE__ */ m(((e) => {
try {
l();
} catch (e) {
- ff(i, c, e);
+ mf(i, c, e);
}
}
}
@@ -12239,29 +12239,29 @@ var cu = /* @__PURE__ */ m(((e) => {
} while (r !== a);
}
} catch (e) {
- ff(t, t.return, e);
+ mf(t, t.return, e);
}
}
- function bl(e) {
+ function xl(e) {
var t = e.updateQueue;
if (t !== null) {
var n = e.stateNode;
try {
- yo(t, n);
+ bo(t, n);
} catch (t) {
- ff(e, e.return, t);
+ mf(e, e.return, t);
}
}
}
- function xl(e, t, n) {
- n.props = vc(e.type, e.memoizedProps), n.state = e.memoizedState;
+ function Sl(e, t, n) {
+ n.props = yc(e.type, e.memoizedProps), n.state = e.memoizedState;
try {
n.componentWillUnmount();
} catch (n) {
- ff(e, t, n);
+ mf(e, t, n);
}
}
- function Sl(e, t) {
+ function Cl(e, t) {
try {
var n = e.ref;
if (n !== null) {
@@ -12272,7 +12272,7 @@ var cu = /* @__PURE__ */ m(((e) => {
var r = e.stateNode;
break;
case 30:
- var i = e.stateNode, a = pi(e.memoizedProps, i);
+ var i = e.stateNode, a = mi(e.memoizedProps, i);
(i.ref === null || i.ref.name !== a) && (i.ref = Pp(a)), r = i.ref;
break;
case 7:
@@ -12287,43 +12287,43 @@ var cu = /* @__PURE__ */ m(((e) => {
typeof n == "function" ? e.refCleanup = n(r) : n.current = r;
}
} catch (n) {
- ff(e, t, n);
+ mf(e, t, n);
}
}
- function Cl(e, t) {
+ function wl(e, t) {
var n = e.ref, r = e.refCleanup;
if (n !== null) {
if (typeof r == "function") try {
r();
} catch (n) {
- ff(e, t, n);
+ mf(e, t, n);
} finally {
e.refCleanup = null, e = e.alternate, e != null && (e.refCleanup = null);
}
else if (typeof n == "function") try {
n(null);
} catch (n) {
- ff(e, t, n);
+ mf(e, t, n);
}
else n.current = null;
}
}
- function wl(e, t) {
+ function Tl(e, t) {
if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && e.alternate === null && t !== null) for (var n = 0; n < t.length; n++) em(e.stateNode, t[n]);
}
- function Tl(e) {
- for (var t = e.return; t !== null && (Ol(t) && em(e.stateNode, t.stateNode), !Dl(t));) t = t.return;
- }
function El(e) {
- for (var t = e.return; t !== null && (Ol(t) && tm(e.stateNode, t.stateNode), !Dl(t));) t = t.return;
+ for (var t = e.return; t !== null && (kl(t) && em(e.stateNode, t.stateNode), !Ol(t));) t = t.return;
}
function Dl(e) {
- return e.tag === 5 || e.tag === 3 || e.tag === 27;
+ for (var t = e.return; t !== null && (kl(t) && tm(e.stateNode, t.stateNode), !Ol(t));) t = t.return;
}
function Ol(e) {
- return e && e.tag === 7 && e.stateNode !== null;
+ return e.tag === 5 || e.tag === 3 || e.tag === 27;
}
function kl(e) {
+ return e && e.tag === 7 && e.stateNode !== null;
+ }
+ function Al(e) {
var t = e.type, n = e.memoizedProps, r = e.stateNode;
try {
a: switch (t) {
@@ -12336,24 +12336,24 @@ var cu = /* @__PURE__ */ m(((e) => {
case "img": n.src ? r.src = n.src : n.srcSet && (r.srcset = n.srcSet);
}
} catch (t) {
- ff(e, e.return, t);
+ mf(e, e.return, t);
}
}
- function Al(e, t, n) {
+ function jl(e, t, n) {
try {
var r = e.stateNode;
- ip(r, e.type, n, t), r[Ct] = t;
+ ip(r, e.type, n, t), r[wt] = t;
} catch (t) {
- ff(e, e.return, t);
+ mf(e, e.return, t);
}
}
- function jl(e) {
+ function Ml(e) {
return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Sp(e.type) || e.tag === 4;
}
- function Ml(e) {
+ function Nl(e) {
a: for (;;) {
for (; e.sibling === null;) {
- if (e.return === null || jl(e.return)) return null;
+ if (e.return === null || Ml(e.return)) return null;
e = e.return;
}
for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18;) {
@@ -12363,39 +12363,39 @@ var cu = /* @__PURE__ */ m(((e) => {
if (!(e.flags & 2)) return e.stateNode;
}
}
- function Nl(e, t, n, r) {
+ function Pl(e, t, n, r) {
var i = e.tag;
- if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = mn)), wl(e, r), B = !0;
- else if (i !== 4 && (i === 27 && (wl(e, r), r = null, Sp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Nl(e, t, n, r), e = e.sibling; e !== null;) Nl(e, t, n, r), e = e.sibling;
+ if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = hn)), Tl(e, r), z = !0;
+ else if (i !== 4 && (i === 27 && (Tl(e, r), r = null, Sp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Pl(e, t, n, r), e = e.sibling; e !== null;) Pl(e, t, n, r), e = e.sibling;
}
- function Pl(e, t, n, r) {
+ function Fl(e, t, n, r) {
var i = e.tag;
- if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), wl(e, r), B = !0;
- else if (i !== 4 && (i === 27 && (wl(e, r), r = null, Sp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Pl(e, t, n, r), e = e.sibling; e !== null;) Pl(e, t, n, r), e = e.sibling;
+ if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), Tl(e, r), z = !0;
+ else if (i !== 4 && (i === 27 && (Tl(e, r), r = null, Sp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Fl(e, t, n, r), e = e.sibling; e !== null;) Fl(e, t, n, r), e = e.sibling;
}
- function Fl(e) {
+ function Il(e) {
var t = e.stateNode, n = e.memoizedProps;
try {
for (var r = e.type, i = t.attributes; i.length;) t.removeAttributeNode(i[0]);
- np(t, r, n), t[St] = e, t[Ct] = n;
+ $(t, r, n), t[Ct] = e, t[wt] = n;
} catch (t) {
- ff(e, e.return, t);
+ mf(e, e.return, t);
}
}
- var Il = !1, Ll = null;
- function Rl(e) {
- (e.tag === 30 || e.subtreeFlags & 33554432) && (Il = !0);
+ var Ll = !1, Rl = null;
+ function zl(e) {
+ (e.tag === 30 || e.subtreeFlags & 33554432) && (Ll = !0);
}
- var zl = null;
- function Bl() {
- var e = zl;
- return zl = null, e;
- }
- var Vl = 0;
- function Hl(e, t, n, r, i) {
- return Vl = 0, Ul(e.child, t, n, r, i);
+ var Bl = null;
+ function Vl() {
+ var e = Bl;
+ return Bl = null, e;
}
+ var Hl = 0;
function Ul(e, t, n, r, i) {
+ return Hl = 0, Wl(e.child, t, n, r, i);
+ }
+ function Wl(e, t, n, r, i) {
for (var a = !1; e !== null;) {
if (e.tag === 5) {
var o = e.stateNode;
@@ -12403,36 +12403,36 @@ var cu = /* @__PURE__ */ m(((e) => {
var s = Op(o);
r.push(s), s.view && (a = !0);
} else a || Op(o).view && (a = !0);
- Il = !0, Tp(o, Vl === 0 ? t : t + "_" + Vl, n), Vl++;
- } else (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && i || Ul(e.child, t, n, r, i) && (a = !0));
+ Ll = !0, Tp(o, Hl === 0 ? t : t + "_" + Hl, n), Hl++;
+ } else (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && i || Wl(e.child, t, n, r, i) && (a = !0));
e = e.sibling;
}
return a;
}
- function Wl(e, t) {
- for (; e !== null;) e.tag === 5 ? Ep(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || Wl(e.child, t)), e = e.sibling;
+ function Gl(e, t) {
+ for (; e !== null;) e.tag === 5 ? Ep(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || Gl(e.child, t)), e = e.sibling;
}
- function Gl(e) {
+ function Kl(e) {
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
- if ((e.tag !== 22 || e.memoizedState === null) && (Gl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {
+ if ((e.tag !== 22 || e.memoizedState === null) && (Kl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {
var t = e.memoizedProps;
if (t.name == null || t.name === "auto") throw Error(i(544));
var n = t.name;
- t = hi(t.default, t.share), t !== "none" && (Hl(e, n, t, null, !1) || Wl(e.child, !1));
+ t = gi(t.default, t.share), t !== "none" && (Ul(e, n, t, null, !1) || Gl(e.child, !1));
}
e = e.sibling;
}
}
- function Kl(e, t) {
+ function ql(e, t) {
if (e.tag === 30) {
- var n = e.stateNode, r = e.memoizedProps, i = pi(r, n), a = hi(r.default, n.paired ? r.share : r.enter);
- a === "none" ? Gl(e) : Hl(e, i, a, null, !1) ? (Gl(e), n.paired || t || jd(e, r.onEnter)) : Wl(e.child, !1);
- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Kl(e, t), e = e.sibling;
- else Gl(e);
- }
- function ql(e) {
- if (Ll !== null && Ll.size !== 0) {
- var t = Ll;
+ var n = e.stateNode, r = e.memoizedProps, i = mi(r, n), a = gi(r.default, n.paired ? r.share : r.enter);
+ a === "none" ? Kl(e) : Ul(e, i, a, null, !1) ? (Kl(e), n.paired || t || Nd(e, r.onEnter)) : Gl(e.child, !1);
+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) ql(e, t), e = e.sibling;
+ else Kl(e);
+ }
+ function Jl(e) {
+ if (Rl !== null && Rl.size !== 0) {
+ var t = Rl;
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
if (e.tag !== 22 || e.memoizedState === null) {
if (e.tag === 30 && e.flags & 18874368) {
@@ -12440,59 +12440,59 @@ var cu = /* @__PURE__ */ m(((e) => {
if (r != null && r !== "auto") {
var i = t.get(r);
if (i !== void 0) {
- var a = hi(n.default, n.share);
- if (a !== "none" && (Hl(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, jd(e, n.onShare)) : Wl(e.child, !1)), t.delete(r), t.size === 0) break;
+ var a = gi(n.default, n.share);
+ if (a !== "none" && (Ul(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, Nd(e, n.onShare)) : Gl(e.child, !1)), t.delete(r), t.size === 0) break;
}
}
}
- ql(e);
+ Jl(e);
}
e = e.sibling;
}
}
}
- function Jl(e) {
+ function Yl(e) {
if (e.tag === 30) {
- var t = e.memoizedProps, n = pi(t, e.stateNode), r = Ll === null ? void 0 : Ll.get(n), i = hi(t.default, r === void 0 ? t.exit : t.share);
- i !== "none" && (Hl(e, n, i, null, !1) ? r === void 0 ? jd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Ll.delete(n), jd(e, t.onShare)) : Wl(e.child, !1)), Ll !== null && ql(e);
- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Jl(e), e = e.sibling;
- else Ll !== null && ql(e);
+ var t = e.memoizedProps, n = mi(t, e.stateNode), r = Rl === null ? void 0 : Rl.get(n), i = gi(t.default, r === void 0 ? t.exit : t.share);
+ i !== "none" && (Ul(e, n, i, null, !1) ? r === void 0 ? Nd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Rl.delete(n), Nd(e, t.onShare)) : Gl(e.child, !1)), Rl !== null && Jl(e);
+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Yl(e), e = e.sibling;
+ else Rl !== null && Jl(e);
}
- function Yl(e) {
+ function Xl(e) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
- var t = e.memoizedProps, n = pi(t, e.stateNode);
- t = hi(t.default, t.update), e.flags &= -5, t !== "none" && Hl(e, n, t, e.memoizedState = [], !1);
- } else e.subtreeFlags & 33554432 && Yl(e);
+ var t = e.memoizedProps, n = mi(t, e.stateNode);
+ t = gi(t.default, t.update), e.flags &= -5, t !== "none" && Ul(e, n, t, e.memoizedState = [], !1);
+ } else e.subtreeFlags & 33554432 && Xl(e);
e = e.sibling;
}
}
- function Xl(e) {
+ function Zl(e) {
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
if (e.tag !== 22 || e.memoizedState === null) {
if (e.tag === 30 && e.flags & 18874368) {
var t = e.stateNode;
- t.paired !== null && (t.paired = null, Wl(e.child, !1));
+ t.paired !== null && (t.paired = null, Gl(e.child, !1));
}
- Xl(e);
+ Zl(e);
}
e = e.sibling;
}
}
- function Zl(e) {
- if (e.tag === 30) e.stateNode.paired = null, Wl(e.child, !1), Xl(e);
- else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Zl(e), e = e.sibling;
- else Xl(e);
- }
function Ql(e) {
- for (e = e.child; e !== null;) e.tag === 30 ? Wl(e.child, !1) : e.subtreeFlags & 33554432 && Ql(e), e = e.sibling;
+ if (e.tag === 30) e.stateNode.paired = null, Gl(e.child, !1), Zl(e);
+ else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Ql(e), e = e.sibling;
+ else Zl(e);
}
- function $l(e, t, n, r, i, a, o) {
+ function $l(e) {
+ for (e = e.child; e !== null;) e.tag === 30 ? Gl(e.child, !1) : e.subtreeFlags & 33554432 && $l(e), e = e.sibling;
+ }
+ function eu(e, t, n, r, i, a, o) {
for (var s = !1; t !== null;) {
if (t.tag === 5) {
var c = t.stateNode;
- if (a !== null && Vl < a.length) {
- var l = a[Vl], u = Op(c);
+ if (a !== null && Hl < a.length) {
+ var l = a[Hl], u = Op(c);
(l.view || u.view) && (s = !0);
var d;
if (d = !(e.flags & 4)) {
@@ -12505,30 +12505,30 @@ var cu = /* @__PURE__ */ m(((e) => {
}
d && (e.flags |= 4), u.abs ? u = !l.abs : (l = l.rect, u = u.rect, u = l.height !== u.height || l.width !== u.width), u && (e.flags |= 32);
} else e.flags |= 32;
- e.flags & 4 && Tp(c, Vl === 0 ? n : n + "_" + Vl, i), s && e.flags & 4 || (zl === null && (zl = []), zl.push(c, Vl === 0 ? r : r + "_" + Vl, t.memoizedProps)), Vl++;
- } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : $l(e, t.child, n, r, i, a, o) && (s = !0));
+ e.flags & 4 && Tp(c, Hl === 0 ? n : n + "_" + Hl, i), s && e.flags & 4 || (Bl === null && (Bl = []), Bl.push(c, Hl === 0 ? r : r + "_" + Hl, t.memoizedProps)), Hl++;
+ } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : eu(e, t.child, n, r, i, a, o) && (s = !0));
t = t.sibling;
}
return s;
}
- function eu(e, t) {
+ function tu(e, t) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
- var n = e.memoizedProps, r = e.stateNode, i = pi(n, r), a = hi(n.default, n.update);
+ var n = e.memoizedProps, r = e.stateNode, i = mi(n, r), a = gi(n.default, n.update);
if (t) {
r = r.clones;
var o = r === null ? null : r.map(kp);
} else o = e.memoizedState, e.memoizedState = null;
r = e;
var s = e.child;
- Vl = 0, i = $l(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || jd(e, n.onUpdate));
- } else e.subtreeFlags & 33554432 && eu(e, t);
+ Hl = 0, i = eu(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || Nd(e, n.onUpdate));
+ } else e.subtreeFlags & 33554432 && tu(e, t);
e = e.sibling;
}
}
- var tu = !1, nu = !1, ru = !1, iu = !1, au = typeof WeakSet == "function" ? WeakSet : Set, ou = null, su = !1, cu = !1, uu = !1, du = !1;
- function fu(e, t, n) {
- if (e = e.containerInfo, sp = gh, e = Hr(e), Wr(e)) {
+ var nu = !1, ru = !1, iu = !1, au = !1, ou = typeof WeakSet == "function" ? WeakSet : Set, su = null, cu = !1, lu = !1, du = !1, fu = !1;
+ function pu(e, t, n) {
+ if (e = e.containerInfo, sp = gh, e = Ur(e), Gr(e)) {
if ("selectionStart" in e) var r = {
start: e.selectionStart,
end: e.selectionEnd
@@ -12570,28 +12570,28 @@ var cu = /* @__PURE__ */ m(((e) => {
for (cp = {
focusedElem: e,
selectionRange: r
- }, gh = !1, n = (n & 335544064) === n, ou = t, t = n ? 9270 : 1024; ou !== null;) {
- if (e = ou, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && Jl(r[a]);
- if (e.alternate === null && e.flags & 2) n && Rl(e), pu(n);
+ }, gh = !1, n = (n & 335544064) === n, su = t, t = n ? 9270 : 1024; su !== null;) {
+ if (e = su, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && Yl(r[a]);
+ if (e.alternate === null && e.flags & 2) n && zl(e), mu(n);
else {
if (e.tag === 22) {
if (r = e.alternate, e.memoizedState !== null) {
- r !== null && r.memoizedState === null && n && Jl(r), pu(n);
+ r !== null && r.memoizedState === null && n && Yl(r), mu(n);
continue;
}
if (r !== null && r.memoizedState !== null) {
- n && Rl(e), pu(n);
+ n && zl(e), mu(n);
continue;
}
}
- r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, ou = r) : (n && Yl(e), pu(n));
+ r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, su = r) : (n && Xl(e), mu(n));
}
}
- Ll = null;
+ Rl = null;
}
- function pu(e) {
- for (; ou !== null;) {
- var t = ou, n = e, r = t.alternate, a = t.flags;
+ function mu(e) {
+ for (; su !== null;) {
+ var t = su, n = e, r = t.alternate, a = t.flags;
switch (t.tag) {
case 0:
case 11:
@@ -12601,10 +12601,10 @@ var cu = /* @__PURE__ */ m(((e) => {
n = void 0, a = r.memoizedProps, r = r.memoizedState;
var o = t.stateNode;
try {
- var s = vc(t.type, a);
+ var s = yc(t.type, a);
n = o.getSnapshotBeforeUpdate(s, r), o.__reactInternalSnapshotBeforeUpdate = n;
} catch (e) {
- ff(t, t.return, e);
+ mf(t, t.return, e);
}
}
break;
@@ -12628,46 +12628,46 @@ var cu = /* @__PURE__ */ m(((e) => {
case 4:
case 17: break;
case 30:
- n && r !== null && (n = pi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = hi(a.default, a.update), a !== "none" && Hl(r, n, a, r.memoizedState = [], !0));
+ n && r !== null && (n = mi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = gi(a.default, a.update), a !== "none" && Ul(r, n, a, r.memoizedState = [], !0));
break;
default: if (a & 1024) throw Error(i(163));
}
if (r = t.sibling, r !== null) {
- r.return = t.return, ou = r;
+ r.return = t.return, su = r;
break;
}
- ou = t.return;
+ su = t.return;
}
}
- function mu(e, t, n) {
+ function hu(e, t, n) {
var r = n.flags;
switch (n.tag) {
case 0:
case 11:
case 15:
- Pu(e, n), r & 4 && vl(5, n);
+ Fu(e, n), r & 4 && yl(5, n);
break;
case 1:
- if (Pu(e, n), r & 4) {
+ if (Fu(e, n), r & 4) {
if (e = n.stateNode, t === null) try {
e.componentDidMount();
} catch (e) {
- ff(n, n.return, e);
+ mf(n, n.return, e);
}
else {
- var i = vc(n.type, t.memoizedProps);
+ var i = yc(n.type, t.memoizedProps);
t = t.memoizedState;
try {
e.componentDidUpdate(i, t, e.__reactInternalSnapshotBeforeUpdate);
} catch (e) {
- ff(n, n.return, e);
+ mf(n, n.return, e);
}
}
}
- r & 64 && bl(n), r & 512 && Sl(n, n.return);
+ r & 64 && xl(n), r & 512 && Cl(n, n.return);
break;
case 3:
- if (Pu(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
+ if (Fu(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
if (t = null, n.child !== null) switch (n.child.tag) {
case 27:
case 5:
@@ -12676,43 +12676,43 @@ var cu = /* @__PURE__ */ m(((e) => {
case 1: t = n.child.stateNode;
}
try {
- yo(e, t);
+ bo(e, t);
} catch (e) {
- ff(n, n.return, e);
+ mf(n, n.return, e);
}
}
break;
- case 27: t === null && r & 4 && Fl(n);
+ case 27: t === null && r & 4 && Il(n);
case 26:
case 5:
- Pu(e, n), t === null && r & 4 && kl(n), r & 512 && Sl(n, n.return);
+ Fu(e, n), t === null && r & 4 && Al(n), r & 512 && Cl(n, n.return);
break;
case 12:
- Pu(e, n);
+ Fu(e, n);
break;
case 31:
- Pu(e, n), r & 4 && Cu(e, n);
+ Fu(e, n), r & 4 && wu(e, n);
break;
case 13:
- Pu(e, n), r & 4 && wu(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = gf.bind(null, n), cm(e, n))));
+ Fu(e, n), r & 4 && Tu(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = vf.bind(null, n), cm(e, n))));
break;
case 22:
- if (r = n.memoizedState !== null || tu, !r) {
- var a = t !== null && t.memoizedState !== null || nu;
- t = tu, i = nu, tu = r, (nu = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Iu(e, n, r)) : Pu(e, n), tu = t, nu = i;
+ if (r = n.memoizedState !== null || nu, !r) {
+ var a = t !== null && t.memoizedState !== null || ru;
+ t = nu, i = ru, nu = r, (ru = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Lu(e, n, r)) : Fu(e, n), nu = t, ru = i;
}
break;
case 30:
- Pu(e, n), r & 512 && Sl(n, n.return);
+ Fu(e, n), r & 512 && Cl(n, n.return);
break;
- case 7: r & 512 && Sl(n, n.return);
- default: Pu(e, n);
+ case 7: r & 512 && Cl(n, n.return);
+ default: Fu(e, n);
}
}
- function hu(e, t) {
- for (e = e.child; e !== null;) gu(e, t), e = e.sibling;
- }
function gu(e, t) {
+ for (e = e.child; e !== null;) _u(e, t), e = e.sibling;
+ }
+ function _u(e, t) {
switch (e.tag) {
case 5:
case 26:
@@ -12726,15 +12726,15 @@ var cu = /* @__PURE__ */ m(((e) => {
i.style.display = o == null || typeof o == "boolean" ? "" : ("" + o).trim();
}
} catch (t) {
- ff(e, e.return, t);
+ mf(e, e.return, t);
}
- _u(e, t);
+ vu(e, t);
break;
case 6:
try {
- e.stateNode.nodeValue = t ? "" : e.memoizedProps, B = !0;
+ e.stateNode.nodeValue = t ? "" : e.memoizedProps, z = !0;
} catch (t) {
- ff(e, e.return, t);
+ mf(e, e.return, t);
}
break;
case 18:
@@ -12742,138 +12742,138 @@ var cu = /* @__PURE__ */ m(((e) => {
var s = e.stateNode;
t ? wp(s, !0) : wp(e.stateNode, !1);
} catch (t) {
- ff(e, e.return, t);
+ mf(e, e.return, t);
}
break;
case 22:
case 23:
- e.memoizedState === null && hu(e, t);
+ e.memoizedState === null && gu(e, t);
break;
- default: hu(e, t);
+ default: gu(e, t);
}
}
- function _u(e, t) {
+ function vu(e, t) {
if (e.subtreeFlags & 67108864) for (e = e.child; e !== null;) {
a: {
var n = e, r = t;
switch (n.tag) {
case 4:
- gu(n, r);
+ _u(n, r);
break a;
case 22:
- n.memoizedState === null && _u(n, r);
+ n.memoizedState === null && vu(n, r);
break a;
- default: _u(n, r);
+ default: vu(n, r);
}
}
e = e.sibling;
}
}
- function vu(e) {
+ function yu(e) {
var t = e.alternate;
- t !== null && (e.alternate = null, vu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && At(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;
- }
- var yu = null, bu = !1;
- function xu(e, t, n) {
- for (n = n.child; n !== null;) Su(e, t, n), n = n.sibling;
+ t !== null && (e.alternate = null, yu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && jt(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;
}
+ var bu = null, xu = !1;
function Su(e, t, n) {
- if (Xe && typeof Xe.onCommitFiberUnmount == "function") try {
- Xe.onCommitFiberUnmount(Ye, n);
+ for (n = n.child; n !== null;) Cu(e, t, n), n = n.sibling;
+ }
+ function Cu(e, t, n) {
+ if (Ze && typeof Ze.onCommitFiberUnmount == "function") try {
+ Ze.onCommitFiberUnmount(Xe, n);
} catch {}
switch (n.tag) {
case 26:
- nu || Cl(n, t), xu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !nu && (n = n.stateNode, n.parentNode.removeChild(n));
+ ru || wl(n, t), Su(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !ru && (n = n.stateNode, n.parentNode.removeChild(n));
break;
case 27:
- nu || Cl(n, t), El(n);
- var r = yu, i = bu;
- Sp(n.type) && (yu = n.stateNode, bu = !1), xu(e, t, n), gm(n.stateNode, n.type, n.memoizedProps), yu = r, bu = i;
+ ru || wl(n, t), Dl(n);
+ var r = bu, i = xu;
+ Sp(n.type) && (bu = n.stateNode, xu = !1), Su(e, t, n), gm(n.stateNode, n.type, n.memoizedProps), bu = r, xu = i;
break;
- case 5: nu || Cl(n, t), El(n);
+ case 5: ru || wl(n, t), Dl(n);
case 6:
- if (n.tag === 6 && El(n), r = yu, i = bu, yu = null, xu(e, t, n), yu = r, bu = i, yu !== null) {
- if (bu) try {
- (yu.nodeType === 9 ? yu.body : yu.nodeName === "HTML" ? yu.ownerDocument.body : yu).removeChild(n.stateNode), B = !0;
+ if (n.tag === 6 && Dl(n), r = bu, i = xu, bu = null, Su(e, t, n), bu = r, xu = i, bu !== null) {
+ if (xu) try {
+ (bu.nodeType === 9 ? bu.body : bu.nodeName === "HTML" ? bu.ownerDocument.body : bu).removeChild(n.stateNode), z = !0;
} catch (e) {
- ff(n, t, e);
+ mf(n, t, e);
}
else try {
- yu.removeChild(n.stateNode), B = !0;
+ bu.removeChild(n.stateNode), z = !0;
} catch (e) {
- ff(n, t, e);
+ mf(n, t, e);
}
}
break;
case 18:
- yu !== null && (bu ? (e = yu, Cp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Hh(e)) : Cp(yu, n.stateNode));
+ bu !== null && (xu ? (e = bu, Cp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Hh(e)) : Cp(bu, n.stateNode));
break;
case 4:
- r = yu, i = bu, yu = n.stateNode.containerInfo, bu = !0, xu(e, t, n), yu = r, bu = i;
+ r = bu, i = xu, bu = n.stateNode.containerInfo, xu = !0, Su(e, t, n), bu = r, xu = i;
break;
case 0:
case 11:
case 14:
case 15:
- yl(2, n, t), nu || yl(4, n, t), xu(e, t, n);
+ bl(2, n, t), ru || bl(4, n, t), Su(e, t, n);
break;
case 1:
- nu || (Cl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && xl(n, t, r)), xu(e, t, n);
+ ru || (wl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && Sl(n, t, r)), Su(e, t, n);
break;
case 21:
- xu(e, t, n);
+ Su(e, t, n);
break;
case 22:
- nu = (r = nu) || n.memoizedState !== null, xu(e, t, n), nu = r;
+ ru = (r = ru) || n.memoizedState !== null, Su(e, t, n), ru = r;
break;
case 30:
- Cl(n, t), xu(e, t, n);
+ wl(n, t), Su(e, t, n);
break;
case 7:
- nu || Cl(n, t), xu(e, t, n);
+ ru || wl(n, t), Su(e, t, n);
break;
- default: xu(e, t, n);
+ default: Su(e, t, n);
}
}
- function Cu(e, t) {
+ function wu(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {
e = e.dehydrated;
try {
Hh(e);
} catch (e) {
- ff(t, t.return, e);
+ mf(t, t.return, e);
}
}
}
- function wu(e, t) {
+ function Tu(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {
Hh(e);
} catch (e) {
- ff(t, t.return, e);
+ mf(t, t.return, e);
}
}
- function Tu(e) {
+ function Eu(e) {
switch (e.tag) {
case 31:
case 13:
case 19:
var t = e.stateNode;
- return t === null && (t = e.stateNode = new au()), t;
- case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new au()), t;
+ return t === null && (t = e.stateNode = new ou()), t;
+ case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new ou()), t;
default: throw Error(i(435, e.tag));
}
}
- function Eu(e, t) {
- var n = Tu(e);
+ function Du(e, t) {
+ var n = Eu(e);
t.forEach(function(t) {
if (!n.has(t)) {
n.add(t);
- var r = _f.bind(null, e, t);
+ var r = yf.bind(null, e, t);
t.then(r, r);
}
});
}
- function Du(e, t, n) {
+ function Ou(e, t, n) {
var r = t.deletions;
if (r !== null) for (var a = 0; a < r.length; a++) {
var o = r[a], s = e, c = t, l = c;
@@ -12881,27 +12881,27 @@ var cu = /* @__PURE__ */ m(((e) => {
switch (l.tag) {
case 27:
if (Sp(l.type)) {
- yu = l.stateNode, bu = !1;
+ bu = l.stateNode, xu = !1;
break a;
}
break;
case 5:
- yu = l.stateNode, bu = !1;
+ bu = l.stateNode, xu = !1;
break a;
case 3:
case 4:
- yu = l.stateNode.containerInfo, bu = !0;
+ bu = l.stateNode.containerInfo, xu = !0;
break a;
}
l = l.return;
}
- if (yu === null) throw Error(i(160));
- Su(s, c, o), yu = null, bu = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
+ if (bu === null) throw Error(i(160));
+ Cu(s, c, o), bu = null, xu = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
}
- if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) ku(t, e, n), t = t.sibling;
+ if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Au(t, e, n), t = t.sibling;
}
- var Ou = null;
- function ku(e, t, n) {
+ var ku = null;
+ function Au(e, t, n) {
var r = e.alternate, a = e.flags;
switch (e.tag) {
case 0:
@@ -12912,23 +12912,23 @@ var cu = /* @__PURE__ */ m(((e) => {
var s = r[o];
s.ref.impl = s.nextImpl;
}
- Du(t, e, n), Au(e), a & 4 && (yl(3, e, e.return), vl(3, e), yl(5, e, e.return));
+ Ou(t, e, n), ju(e), a & 4 && (bl(3, e, e.return), yl(3, e), bl(5, e, e.return));
break;
case 1:
- Du(t, e, n), Au(e), a & 512 && (nu || r === null || Cl(r, r.return)), a & 64 && tu && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));
+ Ou(t, e, n), ju(e), a & 512 && (ru || r === null || wl(r, r.return)), a & 64 && nu && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));
break;
case 26:
- if (o = Ou, Du(t, e, n), Au(e), a & 512 && (nu || r === null || Cl(r, r.return)), a & 4) {
+ if (o = ku, Ou(t, e, n), ju(e), a & 512 && (ru || r === null || wl(r, r.return)), a & 4) {
if (a = r === null ? null : r.memoizedState, n = e.memoizedState, r === null) {
if (n === null) {
if (e.stateNode === null) {
- if (tu) e.stateNode = fp(e.type, e.memoizedProps, t.containerInfo, e);
+ if (nu) e.stateNode = fp(e.type, e.memoizedProps, t.containerInfo, e);
else {
a: {
t = e.type, n = e.memoizedProps, a = o.ownerDocument || o;
b: switch (t) {
case "title":
- r = a.getElementsByTagName("title")[0], (!r || r[Ot] || r[St] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), np(r, t, n), r[St] = e, R(r), t = r;
+ r = a.getElementsByTagName("title")[0], (!r || r[kt] || r[Ct] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), $(r, t, n), r[Ct] = e, L(r), t = r;
break a;
case "link":
if (o = Gm("link", "href", a).get(t + (n.href || ""))) {
@@ -12937,7 +12937,7 @@ var cu = /* @__PURE__ */ m(((e) => {
break b;
}
}
- r = a.createElement(t), np(r, t, n), a.head.appendChild(r);
+ r = a.createElement(t), $(r, t, n), a.head.appendChild(r);
break;
case "meta":
if (o = Gm("meta", "content", a).get(t + (n.content || ""))) {
@@ -12946,86 +12946,86 @@ var cu = /* @__PURE__ */ m(((e) => {
break b;
}
}
- r = a.createElement(t), np(r, t, n), a.head.appendChild(r);
+ r = a.createElement(t), $(r, t, n), a.head.appendChild(r);
break;
default: throw Error(i(468, t));
}
- r[St] = e, R(r), t = r;
+ r[Ct] = e, L(r), t = r;
}
e.stateNode = t;
}
- } else tu || Km(o, e.type, e.stateNode);
+ } else nu || Km(o, e.type, e.stateNode);
} else e.stateNode = Bm(o, n, e.memoizedProps);
- } else a === n ? n === null && e.stateNode !== null && Al(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || nu || t.parentNode.removeChild(t)) : a.count--, n === null ? tu || Km(o, e.type, e.stateNode) : Bm(o, n, e.memoizedProps));
+ } else a === n ? n === null && e.stateNode !== null && jl(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || ru || t.parentNode.removeChild(t)) : a.count--, n === null ? nu || Km(o, e.type, e.stateNode) : Bm(o, n, e.memoizedProps));
}
break;
case 27:
- Du(t, e, n), Au(e), a & 512 && (nu || r === null || Cl(r, r.return)), r !== null && a & 4 && Al(e, e.memoizedProps, r.memoizedProps);
+ Ou(t, e, n), ju(e), a & 512 && (ru || r === null || wl(r, r.return)), r !== null && a & 4 && jl(e, e.memoizedProps, r.memoizedProps);
break;
case 5:
- if (o = ru, ru = !1, Du(t, e, n), ru = o, Au(e), a & 512 && (nu || r === null || Cl(r, r.return)), e.flags & 32) {
+ if (o = iu, iu = !1, Ou(t, e, n), iu = o, ju(e), a & 512 && (ru || r === null || wl(r, r.return)), e.flags & 32) {
t = e.stateNode;
try {
- on(t, ""), B = !0;
+ sn(t, ""), z = !0;
} catch (t) {
- ff(e, e.return, t);
+ mf(e, e.return, t);
}
}
- a & 4 && e.stateNode != null && (t = e.memoizedProps, Al(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (iu = !0);
+ a & 4 && e.stateNode != null && (t = e.memoizedProps, jl(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (au = !0);
break;
case 6:
- if (Du(t, e, n), Au(e), a & 4) {
+ if (Ou(t, e, n), ju(e), a & 4) {
if (e.stateNode === null) throw Error(i(162));
t = e.memoizedProps, n = e.stateNode;
try {
- n.nodeValue = t, B = !0;
+ n.nodeValue = t, z = !0;
} catch (t) {
- ff(e, e.return, t);
+ mf(e, e.return, t);
}
}
break;
case 3:
- if (B = !1, Wm = null, o = Ou, Ou = bm(t.containerInfo), Du(t, e, n), Ou = o, Au(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
+ if (z = !1, Wm = null, o = ku, ku = bm(t.containerInfo), Ou(t, e, n), ku = o, ju(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
Hh(t.containerInfo);
} catch (t) {
- ff(e, e.return, t);
+ mf(e, e.return, t);
}
- iu && (iu = !1, ju(e)), B = !1;
+ au && (au = !1, Mu(e)), z = !1;
break;
case 4:
- a = ru, ru = tu, r = Ut(), o = Ou, Ou = bm(e.stateNode.containerInfo), Du(t, e, n), Au(e), Ou = o, B && cu && (uu = !0), B = r, ru = a;
+ a = iu, iu = nu, r = Wt(), o = ku, ku = bm(e.stateNode.containerInfo), Ou(t, e, n), ju(e), ku = o, z && lu && (du = !0), z = r, iu = a;
break;
case 12:
- Du(t, e, n), Au(e);
+ Ou(t, e, n), ju(e);
break;
case 31:
- Du(t, e, n), Au(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Eu(e, t)));
+ Ou(t, e, n), ju(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Du(e, t)));
break;
case 13:
- Du(t, e, n), Au(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (md = Be()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Eu(e, t)));
+ Ou(t, e, n), ju(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (gd = Ve()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Du(e, t)));
break;
case 22:
o = e.memoizedState !== null, s = r !== null && r.memoizedState !== null;
- var c = tu, l = nu, u = ru;
- tu = c || o, ru = u || o, nu = l || s, Du(t, e, n), nu = l, ru = u, tu = c, Au(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || tu || nu || (t = s || nu, n = tu, r = nu, tu = o || tu, nu = t, Fu(e, 2), tu = n, nu = r), !o && ru || hu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Eu(e, n))));
+ var c = nu, l = ru, u = iu;
+ nu = c || o, iu = u || o, ru = l || s, Ou(t, e, n), ru = l, iu = u, nu = c, ju(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || nu || ru || (t = s || ru, n = nu, r = ru, nu = o || nu, ru = t, Iu(e, 2), nu = n, ru = r), !o && iu || gu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Du(e, n))));
break;
case 19:
- Du(t, e, n), Au(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Eu(e, t)));
+ Ou(t, e, n), ju(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Du(e, t)));
break;
case 30:
- a & 512 && (nu || r === null || Cl(r, r.return)), a = Ut(), o = cu, s = (n & 335544064) === n, c = e.memoizedProps, cu = s && hi(c.default, c.update) !== "none", Du(t, e, n), Au(e), s && r !== null && B && (e.flags |= 4), cu = o, B = a;
+ a & 512 && (ru || r === null || wl(r, r.return)), a = Wt(), o = lu, s = (n & 335544064) === n, c = e.memoizedProps, lu = s && gi(c.default, c.update) !== "none", Ou(t, e, n), ju(e), s && r !== null && z && (e.flags |= 4), lu = o, z = a;
break;
case 21: break;
- case 7: a & 512 && (nu || r === null || Cl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
- default: Du(t, e, n), Au(e);
+ case 7: a & 512 && (ru || r === null || wl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
+ default: Ou(t, e, n), ju(e);
}
}
- function Au(e) {
+ function ju(e) {
var t = e.flags;
if (t & 2) {
try {
for (var n, r = e.return; r !== null;) {
- if (jl(r)) {
+ if (Ml(r)) {
n = r;
break;
}
@@ -13033,11 +13033,11 @@ var cu = /* @__PURE__ */ m(((e) => {
}
r = null;
for (var a = e.return; a !== null;) {
- if (Ol(a)) {
+ if (kl(a)) {
var o = a.stateNode;
r === null ? r = [o] : r.push(o);
}
- if (Dl(a)) break;
+ if (Ol(a)) break;
a = a.return;
}
var s = r;
@@ -13045,43 +13045,43 @@ var cu = /* @__PURE__ */ m(((e) => {
switch (n.tag) {
case 27:
var c = n.stateNode;
- Pl(e, Ml(e), c, s);
+ Fl(e, Nl(e), c, s);
break;
case 5:
var l = n.stateNode;
- n.flags & 32 && (on(l, ""), n.flags &= -33), Pl(e, Ml(e), l, s);
+ n.flags & 32 && (sn(l, ""), n.flags &= -33), Fl(e, Nl(e), l, s);
break;
case 3:
case 4:
var u = n.stateNode.containerInfo;
- Nl(e, Ml(e), u, s);
+ Pl(e, Nl(e), u, s);
break;
default: throw Error(i(161));
}
} catch (t) {
- ff(e, e.return, t);
+ mf(e, e.return, t);
}
e.flags &= -3;
}
t & 4096 && (e.flags &= -4097);
}
- function ju(e) {
+ function Mu(e) {
if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {
var t = e;
- ju(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, gh = !0, t.reset(), gh = !1), e = e.sibling;
+ Mu(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, gh = !0, t.reset(), gh = !1), e = e.sibling;
}
}
- function Mu(e, t) {
- if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Nu(t, e), t = t.sibling;
- else eu(t, !1);
- }
function Nu(e, t) {
+ if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Pu(t, e), t = t.sibling;
+ else tu(t, !1);
+ }
+ function Pu(e, t) {
var n = e.alternate;
- if (n === null) Kl(e, !1);
+ if (n === null) ql(e, !1);
else switch (e.tag) {
case 3:
- if (du = su = !1, Bl(), Mu(t, e), !su && !uu) {
- if (e = zl, e !== null) for (var r = 0; r < e.length; r += 3) {
+ if (fu = cu = !1, Vl(), Nu(t, e), !cu && !du) {
+ if (e = Bl, e !== null) for (var r = 0; r < e.length; r += 3) {
n = e[r];
var i = e[r + 1];
Ep(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({
@@ -13107,33 +13107,33 @@ var cu = /* @__PURE__ */ m(((e) => {
duration: 0,
fill: "forwards",
pseudoElement: "::view-transition"
- })), du = !0;
+ })), fu = !0;
}
- zl = null;
+ Bl = null;
break;
case 5:
- Mu(t, e);
+ Nu(t, e);
break;
case 4:
- r = su, su = !1, Mu(t, e), su && (uu = !0), su = r;
+ r = cu, cu = !1, Nu(t, e), cu && (du = !0), cu = r;
break;
case 22:
- e.memoizedState === null && (n.memoizedState === null ? Mu(t, e) : Kl(e, !1));
+ e.memoizedState === null && (n.memoizedState === null ? Nu(t, e) : ql(e, !1));
break;
case 30:
- r = su, i = Bl(), su = !1, Mu(t, e), su && (e.flags |= 4);
+ r = cu, i = Vl(), cu = !1, Nu(t, e), cu && (e.flags |= 4);
var a = e.memoizedProps, o = e.stateNode;
- t = pi(a, o), o = pi(n.memoizedProps, o);
- var s = hi(a.default, a.update);
- s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Vl = 0, t = $l(e, n, t, o, s, a, !0), Vl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (jd(e, e.memoizedProps.onUpdate), zl = i) : i !== null && (i.push.apply(i, zl), zl = i), su = e.flags & 32 ? !0 : r;
+ t = mi(a, o), o = mi(n.memoizedProps, o);
+ var s = gi(a.default, a.update);
+ s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Hl = 0, t = eu(e, n, t, o, s, a, !0), Hl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (Nd(e, e.memoizedProps.onUpdate), Bl = i) : i !== null && (i.push.apply(i, Bl), Bl = i), cu = e.flags & 32 ? !0 : r;
break;
- default: Mu(t, e);
+ default: Nu(t, e);
}
}
- function Pu(e, t) {
- if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) mu(e, t.alternate, t), t = t.sibling;
- }
function Fu(e, t) {
+ if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) hu(e, t.alternate, t), t = t.sibling;
+ }
+ function Iu(e, t) {
for (e = e.child; e !== null;) {
var n = e, r = t;
switch (n.tag) {
@@ -13141,218 +13141,218 @@ var cu = /* @__PURE__ */ m(((e) => {
case 11:
case 14:
case 15:
- yl(4, n, n.return), Fu(n, r);
+ bl(4, n, n.return), Iu(n, r);
break;
case 1:
- Cl(n, n.return);
+ wl(n, n.return);
var i = n.stateNode;
- typeof i.componentWillUnmount == "function" && xl(n, n.return, i), Fu(n, r);
+ typeof i.componentWillUnmount == "function" && Sl(n, n.return, i), Iu(n, r);
break;
case 27: r & 2 && gm(n.stateNode, n.type, n.memoizedProps);
case 5:
- Cl(n, n.return), n.tag !== 5 && n.tag !== 27 || El(n), Fu(n, r);
+ wl(n, n.return), n.tag !== 5 && n.tag !== 27 || Dl(n), Iu(n, r);
break;
case 6:
- El(n);
+ Dl(n);
break;
case 26:
- Cl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || nu || i.parentNode.removeChild(i), Fu(n, r);
+ wl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || ru || i.parentNode.removeChild(i), Iu(n, r);
break;
case 22:
- n.memoizedState === null && Fu(n, r);
+ n.memoizedState === null && Iu(n, r);
break;
case 30:
- Cl(n, n.return), Fu(n, r);
+ wl(n, n.return), Iu(n, r);
break;
- case 7: Cl(n, n.return);
- default: Fu(n, r);
+ case 7: wl(n, n.return);
+ default: Iu(n, r);
}
e = e.sibling;
}
}
- function Iu(e, t, n) {
+ function Lu(e, t, n) {
for (n = t.subtreeFlags & 8772 ? n : n & -2, t = t.child; t !== null;) {
var r = t.alternate, i = e, a = t, o = a.flags, s = !!(n & 1);
switch (a.tag) {
case 0:
case 11:
case 15:
- Iu(i, a, n), vl(4, a);
+ Lu(i, a, n), yl(4, a);
break;
case 1:
- if (Iu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
+ if (Lu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
i.componentDidMount();
} catch (e) {
- ff(r, r.return, e);
+ mf(r, r.return, e);
}
if (r = a, i = r.updateQueue, i !== null) {
var c = r.stateNode;
try {
var l = i.shared.hiddenCallbacks;
- if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) vo(l[i], c);
+ if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) yo(l[i], c);
} catch (e) {
- ff(r, r.return, e);
+ mf(r, r.return, e);
}
}
- s && o & 64 && bl(a), Sl(a, a.return);
+ s && o & 64 && xl(a), Cl(a, a.return);
break;
- case 27: n & 2 && Fl(a);
+ case 27: n & 2 && Il(a);
case 5:
- a.tag !== 5 && a.tag !== 27 || Tl(a), Iu(i, a, n), s && r === null && o & 4 && kl(a), Sl(a, a.return);
+ a.tag !== 5 && a.tag !== 27 || El(a), Lu(i, a, n), s && r === null && o & 4 && Al(a), Cl(a, a.return);
break;
case 6:
- Tl(a);
+ El(a);
break;
case 26:
- c = a.stateNode, a.memoizedState !== null || c === null || tu || Km(bm(c.ownerDocument), a.type, c), Iu(i, a, n), s && r === null && o & 4 && kl(a), Sl(a, a.return);
+ c = a.stateNode, a.memoizedState !== null || c === null || nu || Km(bm(c.ownerDocument), a.type, c), Lu(i, a, n), s && r === null && o & 4 && Al(a), Cl(a, a.return);
break;
case 12:
- Iu(i, a, n);
+ Lu(i, a, n);
break;
case 31:
- Iu(i, a, n), s && o & 4 && Cu(i, a);
+ Lu(i, a, n), s && o & 4 && wu(i, a);
break;
case 13:
- Iu(i, a, n), s && o & 4 && wu(i, a);
+ Lu(i, a, n), s && o & 4 && Tu(i, a);
break;
case 22:
- a.memoizedState === null && Iu(i, a, n), Sl(a, a.return);
+ a.memoizedState === null && Lu(i, a, n), Cl(a, a.return);
break;
case 30:
- Iu(i, a, n), Sl(a, a.return);
+ Lu(i, a, n), Cl(a, a.return);
break;
- case 7: Sl(a, a.return);
- default: Iu(i, a, n);
+ case 7: Cl(a, a.return);
+ default: Lu(i, a, n);
}
t = t.sibling;
}
}
- function Lu(e, t) {
+ function Ru(e, t) {
var n = null;
- e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && e.refCount++, n != null && Da(n));
+ e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && e.refCount++, n != null && Oa(n));
}
- function Ru(e, t) {
- e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Da(e));
+ function zu(e, t) {
+ e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Oa(e));
}
- function zu(e, t, n, r) {
+ function Bu(e, t, n, r) {
var i = (n & 335544064) === n;
- if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Bu(e, t, n, r), t = t.sibling;
- else i && Ql(t);
+ if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Vu(e, t, n, r), t = t.sibling;
+ else i && $l(t);
}
- function Bu(e, t, n, r) {
+ function Vu(e, t, n, r) {
var i = (n & 335544064) === n;
- i && t.alternate === null && t.return !== null && t.return.alternate !== null && Zl(t);
+ i && t.alternate === null && t.return !== null && t.return.alternate !== null && Ql(t);
var a = t.flags;
switch (t.tag) {
case 0:
case 11:
case 15:
- zu(e, t, n, r), a & 2048 && vl(9, t);
+ Bu(e, t, n, r), a & 2048 && yl(9, t);
break;
case 1:
- zu(e, t, n, r);
+ Bu(e, t, n, r);
break;
case 3:
- zu(e, t, n, r), i && du && (e = e.containerInfo, e = e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, e.style.viewTransitionName === "root" && (e.style.viewTransitionName = ""), e = e.ownerDocument.documentElement, e !== null && e.style.viewTransitionName === "none" && (e.style.viewTransitionName = "")), a & 2048 && (a = null, t.alternate !== null && (a = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== a && (t.refCount++, a != null && Da(a)));
+ Bu(e, t, n, r), i && fu && (e = e.containerInfo, e = e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, e.style.viewTransitionName === "root" && (e.style.viewTransitionName = ""), e = e.ownerDocument.documentElement, e !== null && e.style.viewTransitionName === "none" && (e.style.viewTransitionName = "")), a & 2048 && (a = null, t.alternate !== null && (a = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== a && (t.refCount++, a != null && Oa(a)));
break;
case 12:
if (a & 2048) {
- zu(e, t, n, r), a = t.stateNode;
+ Bu(e, t, n, r), a = t.stateNode;
try {
var o = t.memoizedProps, s = o.id, c = o.onPostCommit;
typeof c == "function" && c(s, t.alternate === null ? "mount" : "update", a.passiveEffectDuration, -0);
} catch (e) {
- ff(t, t.return, e);
+ mf(t, t.return, e);
}
- } else zu(e, t, n, r);
+ } else Bu(e, t, n, r);
break;
case 31:
- zu(e, t, n, r);
+ Bu(e, t, n, r);
break;
case 13:
- zu(e, t, n, r);
+ Bu(e, t, n, r);
break;
case 23: break;
case 22:
- o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && Zl(t), o._visibility & 2 ? zu(e, t, n, r) : (o._visibility |= 2, Vu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && Zl(s), o._visibility & 2 ? zu(e, t, n, r) : Hu(e, t)), a & 2048 && Lu(s, t);
+ o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && Ql(t), o._visibility & 2 ? Bu(e, t, n, r) : (o._visibility |= 2, Hu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && Ql(s), o._visibility & 2 ? Bu(e, t, n, r) : Uu(e, t)), a & 2048 && Ru(s, t);
break;
case 24:
- zu(e, t, n, r), a & 2048 && Ru(t.alternate, t);
+ Bu(e, t, n, r), a & 2048 && zu(t.alternate, t);
break;
case 30:
- i && (a = t.alternate, a !== null && (Wl(a.child, !0), Wl(t.child, !0))), zu(e, t, n, r);
+ i && (a = t.alternate, a !== null && (Gl(a.child, !0), Gl(t.child, !0))), Bu(e, t, n, r);
break;
- default: zu(e, t, n, r);
+ default: Bu(e, t, n, r);
}
}
- function Vu(e, t, n, r, i) {
+ function Hu(e, t, n, r, i) {
for (i &&= !!(t.subtreeFlags & 10256) || !1, t = t.child; t !== null;) {
var a = e, o = t, s = n, c = r, l = o.flags;
switch (o.tag) {
case 0:
case 11:
case 15:
- Vu(a, o, s, c, i), vl(8, o);
+ Hu(a, o, s, c, i), yl(8, o);
break;
case 23: break;
case 22:
var u = o.stateNode;
- o.memoizedState === null ? (u._visibility |= 2, Vu(a, o, s, c, i)) : u._visibility & 2 ? Vu(a, o, s, c, i) : Hu(a, o), i && l & 2048 && Lu(o.alternate, o);
+ o.memoizedState === null ? (u._visibility |= 2, Hu(a, o, s, c, i)) : u._visibility & 2 ? Hu(a, o, s, c, i) : Uu(a, o), i && l & 2048 && Ru(o.alternate, o);
break;
case 24:
- Vu(a, o, s, c, i), i && l & 2048 && Ru(o.alternate, o);
+ Hu(a, o, s, c, i), i && l & 2048 && zu(o.alternate, o);
break;
- default: Vu(a, o, s, c, i);
+ default: Hu(a, o, s, c, i);
}
t = t.sibling;
}
}
- function Hu(e, t) {
+ function Uu(e, t) {
if (t.subtreeFlags & 10256) for (t = t.child; t !== null;) {
var n = e, r = t, i = r.flags;
switch (r.tag) {
case 22:
- Hu(n, r), i & 2048 && Lu(r.alternate, r);
+ Uu(n, r), i & 2048 && Ru(r.alternate, r);
break;
case 24:
- Hu(n, r), i & 2048 && Ru(r.alternate, r);
+ Uu(n, r), i & 2048 && zu(r.alternate, r);
break;
- default: Hu(n, r);
+ default: Uu(n, r);
}
t = t.sibling;
}
}
- var Uu = 8192;
- function Wu(e, t, n) {
- if (e.subtreeFlags & Uu) for (e = e.child; e !== null;) Gu(e, t, n), e = e.sibling;
- }
+ var Wu = 8192;
function Gu(e, t, n) {
+ if (e.subtreeFlags & Wu) for (e = e.child; e !== null;) Ku(e, t, n), e = e.sibling;
+ }
+ function Ku(e, t, n) {
switch (e.tag) {
case 26:
- Wu(e, t, n), e.flags & Uu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && Zm(n, e)) : Qm(n, Ou, e.memoizedState, e.memoizedProps));
+ Gu(e, t, n), e.flags & Wu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && Zm(n, e)) : Qm(n, ku, e.memoizedState, e.memoizedProps));
break;
case 5:
- Wu(e, t, n), e.flags & Uu && (e = e.stateNode, (t & 335544128) === t && Zm(n, e));
+ Gu(e, t, n), e.flags & Wu && (e = e.stateNode, (t & 335544128) === t && Zm(n, e));
break;
case 3:
case 4:
- var r = Ou;
- Ou = bm(e.stateNode.containerInfo), Wu(e, t, n), Ou = r;
+ var r = ku;
+ ku = bm(e.stateNode.containerInfo), Gu(e, t, n), ku = r;
break;
case 22:
- e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Uu, Uu = 16777216, Wu(e, t, n), Uu = r) : Wu(e, t, n));
+ e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Wu, Wu = 16777216, Gu(e, t, n), Wu = r) : Gu(e, t, n));
break;
case 30:
- if ((e.flags & Uu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {
+ if ((e.flags & Wu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {
var i = e.stateNode;
- i.paired = null, Ll === null && (Ll = /* @__PURE__ */ new Map()), Ll.set(r, i);
+ i.paired = null, Rl === null && (Rl = /* @__PURE__ */ new Map()), Rl.set(r, i);
}
- Wu(e, t, n);
+ Gu(e, t, n);
break;
- default: Wu(e, t, n);
+ default: Gu(e, t, n);
}
}
- function Ku(e) {
+ function qu(e) {
var t = e.alternate;
if (t !== null && (e = t.child, e !== null)) {
t.child = null;
@@ -13361,69 +13361,69 @@ var cu = /* @__PURE__ */ m(((e) => {
while (e !== null);
}
}
- function qu(e) {
+ function Ju(e) {
var t = e.deletions;
if (e.flags & 16) {
if (t !== null) for (var n = 0; n < t.length; n++) {
var r = t[n];
- ou = r, Xu(r, e);
+ su = r, Zu(r, e);
}
- Ku(e);
+ qu(e);
}
- if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Ju(e), e = e.sibling;
+ if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Yu(e), e = e.sibling;
}
- function Ju(e) {
+ function Yu(e) {
switch (e.tag) {
case 0:
case 11:
case 15:
- qu(e), e.flags & 2048 && yl(9, e, e.return);
+ Ju(e), e.flags & 2048 && bl(9, e, e.return);
break;
case 3:
- qu(e);
+ Ju(e);
break;
case 12:
- qu(e);
+ Ju(e);
break;
case 22:
var t = e.stateNode;
- e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Yu(e)) : qu(e);
+ e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Xu(e)) : Ju(e);
break;
- default: qu(e);
+ default: Ju(e);
}
}
- function Yu(e) {
+ function Xu(e) {
var t = e.deletions;
if (e.flags & 16) {
if (t !== null) for (var n = 0; n < t.length; n++) {
var r = t[n];
- ou = r, Xu(r, e);
+ su = r, Zu(r, e);
}
- Ku(e);
+ qu(e);
}
for (e = e.child; e !== null;) {
switch (t = e, t.tag) {
case 0:
case 11:
case 15:
- yl(8, t, t.return), Yu(t);
+ bl(8, t, t.return), Xu(t);
break;
case 22:
- n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Yu(t));
+ n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Xu(t));
break;
- default: Yu(t);
+ default: Xu(t);
}
e = e.sibling;
}
}
- function Xu(e, t) {
- for (; ou !== null;) {
- var n = ou;
+ function Zu(e, t) {
+ for (; su !== null;) {
+ var n = su;
switch (n.tag) {
case 0:
case 11:
case 15:
- yl(8, n, t);
+ bl(8, n, t);
break;
case 23:
case 22:
@@ -13432,64 +13432,64 @@ var cu = /* @__PURE__ */ m(((e) => {
r != null && r.refCount++;
}
break;
- case 24: Da(n.memoizedState.cache);
+ case 24: Oa(n.memoizedState.cache);
}
- if (r = n.child, r !== null) r.return = n, ou = r;
- else a: for (n = e; ou !== null;) {
- r = ou;
+ if (r = n.child, r !== null) r.return = n, su = r;
+ else a: for (n = e; su !== null;) {
+ r = su;
var i = r.sibling, a = r.return;
- if (vu(r), r === n) {
- ou = null;
+ if (yu(r), r === n) {
+ su = null;
break a;
}
if (i !== null) {
- i.return = a, ou = i;
+ i.return = a, su = i;
break a;
}
- ou = a;
+ su = a;
}
}
}
- var Zu = {
+ var Qu = {
getCacheForType: function(e) {
- var t = ba(G), n = t.data.get(e);
+ var t = xa(W), n = t.data.get(e);
return n === void 0 && (n = e(), t.data.set(e, n)), n;
},
cacheSignal: function() {
- return ba(G).controller.signal;
+ return xa(W).controller.signal;
}
- }, Qu = typeof WeakMap == "function" ? WeakMap : Map, q = 0, $u = null, J = null, Y = 0, ed = 0, td = null, nd = !1, rd = !1, id = !1, X = 0, ad = 0, od = 0, sd = 0, cd = 0, ld = 0, ud = 0, dd = null, fd = null, pd = !1, md = 0, hd = 0, Z = Infinity, gd = null, _d = null, vd = 0, yd = null, bd = null, xd = 0, Sd = 0, Q = null, Cd = null, wd = null, Td = null, Ed = null, Dd = 0, Od = null;
- function kd() {
- return q & 2 && Y !== 0 ? Y & -Y : F.T === null ? yt() : Nf();
+ }, $u = typeof WeakMap == "function" ? WeakMap : Map, ed = 0, td = null, K = null, q = 0, nd = 0, rd = null, id = !1, ad = !1, od = !1, sd = 0, cd = 0, ld = 0, ud = 0, dd = 0, fd = 0, J = 0, pd = null, md = null, hd = !1, gd = 0, _d = 0, vd = Infinity, yd = null, bd = null, xd = 0, Sd = null, Cd = null, Y = 0, wd = 0, Td = null, Ed = null, Dd = null, Od = null, kd = null, Ad = 0, X = null;
+ function jd() {
+ return ed & 2 && q !== 0 ? q & -q : P.T === null ? bt() : Ff();
}
- function Ad() {
- if (ld === 0) {
- if (!(Y & 536870912) || W) {
- var e = rt;
- rt <<= 1, !(rt & 3932160) && (rt = 262144), ld = e;
- } else ld = 536870912;
+ function Md() {
+ if (fd === 0) {
+ if (!(q & 536870912) || U) {
+ var e = it;
+ it <<= 1, !(it & 3932160) && (it = 262144), fd = e;
+ } else fd = 536870912;
}
- return e = To.current, e !== null && (e.flags |= 32), ld;
+ return e = Eo.current, e !== null && (e.flags |= 32), fd;
}
- function jd(e, t) {
+ function Nd(e, t) {
if (t != null) {
var n = e.stateNode, r = n.ref;
- r === null && (r = n.ref = Pp(pi(e.memoizedProps, n))), Td === null && (Td = []), Td.push(t.bind(null, r));
+ r === null && (r = n.ref = Pp(mi(e.memoizedProps, n))), Od === null && (Od = []), Od.push(t.bind(null, r));
}
}
- function Md(e, t, n) {
- (e === $u && (ed === 2 || ed === 9) || e.cancelPendingCommit !== null) && (zd(e, 0), Id(e, Y, ld, !1)), ft(e, n), (!(q & 2) || e !== $u) && (e === $u && (!(q & 2) && (sd |= n), ad === 4 && Id(e, Y, ld, !1)), Tf(e));
+ function Pd(e, t, n) {
+ (e === td && (nd === 2 || nd === 9) || e.cancelPendingCommit !== null) && (Vd(e, 0), Rd(e, q, fd, !1)), pt(e, n), (!(ed & 2) || e !== td) && (e === td && (!(ed & 2) && (ud |= n), cd === 4 && Rd(e, q, fd, !1)), Df(e));
}
- function Nd(e, t, n) {
- if (q & 6) throw Error(i(327));
- var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || st(e, t), a = r ? qd(e, t) : Gd(e, t, !0), o = r;
+ function Fd(e, t, n) {
+ if (ed & 6) throw Error(i(327));
+ var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || ct(e, t), a = r ? Yd(e, t) : qd(e, t, !0), o = r;
do {
if (a === 0) {
- rd && !r && Id(e, t, 0, !1);
+ ad && !r && Rd(e, t, 0, !1);
break;
}
- if (n = e.current.alternate, o && !Fd(n)) {
- a = Gd(e, t, !1), o = !1;
+ if (n = e.current.alternate, o && !Ld(n)) {
+ a = qd(e, t, !1), o = !1;
continue;
}
if (a === 2) {
@@ -13499,14 +13499,14 @@ var cu = /* @__PURE__ */ m(((e) => {
t = s;
a: {
var c = e;
- a = dd;
+ a = pd;
var l = c.current.memoizedState.isDehydrated;
- if (l && (zd(c, s).flags |= 256), s = Gd(c, s, !1), s !== 2 && s !== 6) {
- if (id && !l) {
- c.errorRecoveryDisabledLanes |= o, sd |= o, a = 4;
+ if (l && (Vd(c, s).flags |= 256), s = qd(c, s, !1), s !== 2 && s !== 6) {
+ if (od && !l) {
+ c.errorRecoveryDisabledLanes |= o, ud |= o, a = 4;
break a;
}
- o = fd, fd = a, o !== null && (fd === null ? fd = o : fd.push.apply(fd, o));
+ o = md, md = a, o !== null && (md === null ? md = o : md.push.apply(md, o));
}
a = s;
}
@@ -13514,7 +13514,7 @@ var cu = /* @__PURE__ */ m(((e) => {
}
}
if (a === 1) {
- zd(e, 0), Id(e, t, 0, !0);
+ Vd(e, 0), Rd(e, t, 0, !0);
break;
}
a: {
@@ -13523,27 +13523,27 @@ var cu = /* @__PURE__ */ m(((e) => {
case 1: throw Error(i(345));
case 4: if ((t & 4194048) !== t && (t & 62914560) !== t) break;
case 6:
- Id(r, t, ld, !nd);
+ Rd(r, t, fd, !id);
break a;
case 2:
- fd = null;
+ md = null;
break;
case 3:
case 5: break;
default: throw Error(i(329));
}
- if ((t & 62914560) === t && (a = md + 300 - Be(), 10 < a)) {
- if (Id(r, t, ld, !nd), ot(r, 0, !0) !== 0) break a;
- xd = t, r.timeoutHandle = gp(Pd.bind(null, r, n, fd, gd, pd, t, ld, sd, ud, nd, o, "Throttled", -0, 0), a);
+ if ((t & 62914560) === t && (a = gd + 300 - Ve(), 10 < a)) {
+ if (Rd(r, t, fd, !id), st(r, 0, !0) !== 0) break a;
+ Y = t, r.timeoutHandle = gp(Id.bind(null, r, n, md, yd, hd, t, fd, ud, J, id, o, "Throttled", -0, 0), a);
break a;
}
- Pd(r, n, fd, gd, pd, t, ld, sd, ud, nd, o, null, -0, 0);
+ Id(r, n, md, yd, hd, t, fd, ud, J, id, o, null, -0, 0);
}
break;
} while (1);
- Tf(e);
+ Df(e);
}
- function Pd(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
+ function Id(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
e.timeoutHandle = -1;
var m = t.subtreeFlags, h = (a & 335544064) === a;
if (d = null, (h || m & 8192 || (m & 16785408) == 16785408) && (d = {
@@ -13554,21 +13554,21 @@ var cu = /* @__PURE__ */ m(((e) => {
suspenseyImages: [],
waitingForImages: !0,
waitingForViewTransition: !1,
- unsuspend: mn
- }, Ll = null, Gu(t, a, d), h && (m = d, h = e.containerInfo, h = (h.nodeType === 9 ? h : h.ownerDocument).__reactViewTransition, h != null && (m.count++, m.waitingForViewTransition = !0, m = nh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? md - Be() : (a & 4194048) === a ? hd - Be() : 0, m = eh(d, m), m !== null)) {
- xd = a, e.cancelPendingCommit = m(ef.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Id(e, a, o, !l);
+ unsuspend: hn
+ }, Rl = null, Ku(t, a, d), h && (m = d, h = e.containerInfo, h = (h.nodeType === 9 ? h : h.ownerDocument).__reactViewTransition, h != null && (m.count++, m.waitingForViewTransition = !0, m = nh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? gd - Ve() : (a & 4194048) === a ? _d - Ve() : 0, m = eh(d, m), m !== null)) {
+ Y = a, e.cancelPendingCommit = m(nf.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Rd(e, a, o, !l);
return;
}
- ef(e, t, a, n, r, i, o, s, c, l, u, d);
+ nf(e, t, a, n, r, i, o, s, c, l, u, d);
}
- function Fd(e) {
+ function Ld(e) {
for (var t = e;;) {
var n = t.tag;
if ((n === 0 || n === 11 || n === 15) && t.flags & 16384 && (n = t.updateQueue, n !== null && (n = n.stores, n !== null))) for (var r = 0; r < n.length; r++) {
var i = n[r], a = i.getSnapshot;
i = i.value;
try {
- if (!Ir(a(), i)) return !1;
+ if (!Lr(a(), i)) return !1;
} catch {
return !1;
}
@@ -13585,281 +13585,281 @@ var cu = /* @__PURE__ */ m(((e) => {
}
return !0;
}
- function Id(e, t, n, r) {
- t = ct(e, t), t &= ~cd, t &= ~sd, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
+ function Rd(e, t, n, r) {
+ t = lt(e, t), t &= ~dd, t &= ~ud, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
for (var i = t; 0 < i;) {
- var a = 31 - Qe(i), o = 1 << a;
+ var a = 31 - $e(i), o = 1 << a;
r[a] = -1, i &= ~o;
}
- n !== 0 && mt(e, n, t);
+ n !== 0 && ht(e, n, t);
}
- function Ld() {
- return q & 6 ? !0 : (Ef(0, !1), !1);
+ function zd() {
+ return ed & 6 ? !0 : (Of(0, !1), !1);
}
- function Rd() {
- if (J !== null) {
- if (ed === 0) var e = J.return;
- else e = J, fa = da = null, es(e), $a = null, eo = 0, e = J;
- for (; e !== null;) _l(e.alternate, e), e = e.return;
- J = null;
+ function Bd() {
+ if (K !== null) {
+ if (nd === 0) var e = K.return;
+ else e = K, pa = fa = null, ts(e), eo = null, to = 0, e = K;
+ for (; e !== null;) vl(e.alternate, e), e = e.return;
+ K = null;
}
}
- function zd(e, t) {
+ function Vd(e, t) {
var n = e.timeoutHandle;
- return n !== -1 && (e.timeoutHandle = -1, _p(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), xd = 0, Rd(), $u = e, J = n = Ai(e.current, null), Y = t, ed = 0, td = null, nd = !1, rd = st(e, t), id = !1, ud = ld = cd = sd = od = ad = 0, fd = dd = null, pd = !1, X = ct(e, t), bi(), n;
- }
- function Bd(e, t) {
- K = null, F.H = uc, t === Ua || t === Ga ? (t = Za(), ed = 3) : t === Wa ? (t = Za(), ed = 4) : ed = t === Oc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, td = t, J === null && (ad = 1, Sc(e, Ri(t, e.current)));
+ return n !== -1 && (e.timeoutHandle = -1, _p(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), Y = 0, Bd(), td = e, K = n = ji(e.current, null), q = t, nd = 0, rd = null, id = !1, ad = ct(e, t), od = !1, J = fd = dd = ud = ld = cd = 0, md = pd = null, hd = !1, sd = lt(e, t), xi(), n;
}
- function Vd() {
- var e = To.current;
- return e === null ? !0 : (Y & 4194048) === Y ? Eo === null : (Y & 62914560) === Y || Y & 536870912 ? e === Eo : !1;
- }
- function Hd() {
- var e = F.H;
- return F.H = uc, e === null ? uc : e;
+ function Hd(e, t) {
+ G = null, P.H = dc, t === Wa || t === Ka ? (t = Qa(), nd = 3) : t === Ga ? (t = Qa(), nd = 4) : nd = t === kc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, rd = t, K === null && (cd = 1, Cc(e, zi(t, e.current)));
}
function Ud() {
- var e = F.A;
- return F.A = Zu, e;
+ var e = Eo.current;
+ return e === null ? !0 : (q & 4194048) === q ? Do === null : (q & 62914560) === q || q & 536870912 ? e === Do : !1;
}
function Wd() {
- ad = 4, nd || (Y & 4194048) !== Y && To.current !== null || (rd = !0), !(od & 134217727) && !(sd & 134217727) || $u === null || Id($u, Y, ld, !1);
+ var e = P.H;
+ return P.H = dc, e === null ? dc : e;
}
- function Gd(e, t, n) {
- var r = q;
- q |= 2;
- var i = Hd(), a = Ud();
- ($u !== e || Y !== t) && (gd = null, zd(e, t)), t = !1;
- var o = ad;
+ function Gd() {
+ var e = P.A;
+ return P.A = Qu, e;
+ }
+ function Kd() {
+ cd = 4, id || (q & 4194048) !== q && Eo.current !== null || (ad = !0), !(ld & 134217727) && !(ud & 134217727) || td === null || Rd(td, q, fd, !1);
+ }
+ function qd(e, t, n) {
+ var r = ed;
+ ed |= 2;
+ var i = Wd(), a = Gd();
+ (td !== e || q !== t) && (yd = null, Vd(e, t)), t = !1;
+ var o = cd;
a: do
try {
- if (ed !== 0 && J !== null) {
- var s = J, c = td;
- switch (ed) {
+ if (nd !== 0 && K !== null) {
+ var s = K, c = rd;
+ switch (nd) {
case 8:
- Rd(), o = 6;
+ Bd(), o = 6;
break a;
case 3:
case 2:
case 9:
case 6:
- To.current === null && (t = !0);
- var l = ed;
- if (ed = 0, td = null, Zd(e, s, c, l), n && rd) {
+ Eo.current === null && (t = !0);
+ var l = nd;
+ if (nd = 0, rd = null, $d(e, s, c, l), n && ad) {
o = 0;
break a;
}
break;
- default: l = ed, ed = 0, td = null, Zd(e, s, c, l);
+ default: l = nd, nd = 0, rd = null, $d(e, s, c, l);
}
}
- Kd(), o = ad;
+ Jd(), o = cd;
break;
} catch (t) {
- Bd(e, t);
+ Hd(e, t);
}
while (1);
- return t && e.shellSuspendCounter++, fa = da = null, q = r, F.H = i, F.A = a, J === null && ($u = null, Y = 0, bi()), o;
+ return t && e.shellSuspendCounter++, pa = fa = null, ed = r, P.H = i, P.A = a, K === null && (td = null, q = 0, xi()), o;
}
- function Kd() {
- for (; J !== null;) Yd(J);
+ function Jd() {
+ for (; K !== null;) Zd(K);
}
- function qd(e, t) {
- var n = q;
- q |= 2;
- var r = Hd(), a = Ud();
- $u !== e || Y !== t ? (gd = null, Z = Be() + 500, zd(e, t)) : rd = st(e, t);
+ function Yd(e, t) {
+ var n = ed;
+ ed |= 2;
+ var r = Wd(), a = Gd();
+ td !== e || q !== t ? (yd = null, vd = Ve() + 500, Vd(e, t)) : ad = ct(e, t);
a: do
try {
- if (ed !== 0 && J !== null) {
- t = J;
- var o = td;
- b: switch (ed) {
+ if (nd !== 0 && K !== null) {
+ t = K;
+ var o = rd;
+ b: switch (nd) {
case 1:
- ed = 0, td = null, Zd(e, t, o, 1);
+ nd = 0, rd = null, $d(e, t, o, 1);
break;
case 2:
case 9:
- if (qa(o)) {
- ed = 0, td = null, Xd(t);
+ if (Ja(o)) {
+ nd = 0, rd = null, Qd(t);
break;
}
t = function() {
- ed !== 2 && ed !== 9 || $u !== e || (ed = 7), Tf(e);
+ nd !== 2 && nd !== 9 || td !== e || (nd = 7), Df(e);
}, o.then(t, t);
break a;
case 3:
- ed = 7;
+ nd = 7;
break a;
case 4:
- ed = 5;
+ nd = 5;
break a;
case 7:
- qa(o) ? (ed = 0, td = null, Xd(t)) : (ed = 0, td = null, Zd(e, t, o, 7));
+ Ja(o) ? (nd = 0, rd = null, Qd(t)) : (nd = 0, rd = null, $d(e, t, o, 7));
break;
case 5:
var s = null;
- switch (J.tag) {
- case 26: s = J.memoizedState;
+ switch (K.tag) {
+ case 26: s = K.memoizedState;
case 5:
case 27:
- var c = J;
+ var c = K;
if (s ? Ym(s) : c.stateNode.complete) {
- ed = 0, td = null;
+ nd = 0, rd = null;
var l = c.sibling;
- if (l !== null) J = l;
+ if (l !== null) K = l;
else {
var u = c.return;
- u === null ? J = null : (J = u, Qd(u));
+ u === null ? K = null : (K = u, ef(u));
}
break b;
}
}
- ed = 0, td = null, Zd(e, t, o, 5);
+ nd = 0, rd = null, $d(e, t, o, 5);
break;
case 6:
- ed = 0, td = null, Zd(e, t, o, 6);
+ nd = 0, rd = null, $d(e, t, o, 6);
break;
case 8:
- Rd(), ad = 6;
+ Bd(), cd = 6;
break a;
default: throw Error(i(462));
}
}
- Jd();
+ Xd();
break;
} catch (t) {
- Bd(e, t);
+ Hd(e, t);
}
while (1);
- return fa = da = null, F.H = r, F.A = a, q = n, J === null ? ($u = null, Y = 0, bi(), ad) : 0;
+ return pa = fa = null, P.H = r, P.A = a, ed = n, K === null ? (td = null, q = 0, xi(), cd) : 0;
}
- function Jd() {
- for (; J !== null && !Re();) Yd(J);
+ function Xd() {
+ for (; K !== null && !ze();) Zd(K);
}
- function Yd(e) {
- var t = cl(e.alternate, e, X);
- e.memoizedProps = e.pendingProps, t === null ? Qd(e) : J = t;
+ function Zd(e) {
+ var t = ll(e.alternate, e, sd);
+ e.memoizedProps = e.pendingProps, t === null ? ef(e) : K = t;
}
- function Xd(e) {
+ function Qd(e) {
var t = e, n = t.alternate;
switch (t.tag) {
case 15:
case 0:
- t = Hc(n, t, t.pendingProps, t.type, void 0, Y);
+ t = Uc(n, t, t.pendingProps, t.type, void 0, q);
break;
case 11:
- t = Hc(n, t, t.pendingProps, t.type.render, t.ref, Y);
+ t = Uc(n, t, t.pendingProps, t.type.render, t.ref, q);
break;
case 5:
- es(t);
+ ts(t);
var r = t;
- r === U && (W ? (aa(r), r.tag === 5 && r.stateNode != null && ($i = r.stateNode)) : (aa(r), W = !0));
- default: _l(n, t), t = J = ji(t, X), t = cl(n, t, X);
+ r === H && (U ? (oa(r), r.tag === 5 && r.stateNode != null && (ea = r.stateNode)) : (oa(r), U = !0));
+ default: vl(n, t), t = K = Mi(t, sd), t = ll(n, t, sd);
}
- e.memoizedProps = e.pendingProps, t === null ? Qd(e) : J = t;
+ e.memoizedProps = e.pendingProps, t === null ? ef(e) : K = t;
}
- function Zd(e, t, n, r) {
- fa = da = null, es(t), $a = null, eo = 0;
+ function $d(e, t, n, r) {
+ pa = fa = null, ts(t), eo = null, to = 0;
var i = t.return;
try {
- if (Dc(e, i, t, n, Y)) {
- ad = 1, Sc(e, Ri(n, e.current)), J = null;
+ if (Oc(e, i, t, n, q)) {
+ cd = 1, Cc(e, zi(n, e.current)), K = null;
return;
}
} catch (t) {
- if (i !== null) throw J = i, t;
- ad = 1, Sc(e, Ri(n, e.current)), J = null;
+ if (i !== null) throw K = i, t;
+ cd = 1, Cc(e, zi(n, e.current)), K = null;
return;
}
- t.flags & 32768 ? (W || r === 1 ? e = !0 : rd || Y & 536870912 ? e = !1 : (nd = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = To.current, r !== null && r.tag === 13 && (r.flags |= 16384))), $d(t, e)) : Qd(t);
+ t.flags & 32768 ? (U || r === 1 ? e = !0 : ad || q & 536870912 ? e = !1 : (id = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Eo.current, r !== null && r.tag === 13 && (r.flags |= 16384))), tf(t, e)) : ef(t);
}
- function Qd(e) {
+ function ef(e) {
var t = e;
do {
if (t.flags & 32768) {
- $d(t, nd);
+ tf(t, id);
return;
}
e = t.return;
- var n = hl(t.alternate, t, X);
+ var n = gl(t.alternate, t, sd);
if (n !== null) {
- J = n;
+ K = n;
return;
}
if (t = t.sibling, t !== null) {
- J = t;
+ K = t;
return;
}
- J = t = e;
+ K = t = e;
} while (t !== null);
- ad === 0 && (ad = 5);
+ cd === 0 && (cd = 5);
}
- function $d(e, t) {
+ function tf(e, t) {
do {
- var n = gl(e.alternate, e);
+ var n = _l(e.alternate, e);
if (n !== null) {
- n.flags &= 32767, J = n;
+ n.flags &= 32767, K = n;
return;
}
if (n = e.return, n !== null && (n.flags |= 32768, n.subtreeFlags = 0, n.deletions = null), !t && (e = e.sibling, e !== null)) {
- J = e;
+ K = e;
return;
}
- J = e = n;
+ K = e = n;
} while (e !== null);
- ad = 6, J = null;
+ cd = 6, K = null;
}
- function ef(e, t, n, r, a, o, s, c, l, u, d, f) {
+ function nf(e, t, n, r, a, o, s, c, l, u, d, f) {
e.cancelPendingCommit = null;
do
- lf();
- while (vd !== 0);
- if (q & 6) throw Error(i(327));
+ df();
+ while (xd !== 0);
+ if (ed & 6) throw Error(i(327));
if (t !== null) {
if (t === e.current) throw Error(i(177));
- e === $u && (J = $u = null, Y = 0), bd = t, yd = e, xd = n, Q = a, Cd = r, tf(e, t, n, s, c, l, f);
+ e === td && (K = td = null, q = 0), Cd = t, Sd = e, Y = n, Td = a, Ed = r, rf(e, t, n, s, c, l, f);
}
}
- function tf(e, t, n, r, i, a, o) {
+ function rf(e, t, n, r, i, a, o) {
var s = t.lanes | t.childLanes;
- if (Sd = s, s |= yi, pt(e, n, s, r, i, a), Td = null, (n & 335544064) === n ? (Ed = Aa(e), r = 10262) : (Ed = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, vf(We, function() {
- return uf(), null;
- })) : (e.callbackNode = null, e.callbackPriority = 0), Il = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
- r = F.T, F.T = null, i = I.p, I.p = 2, a = q, q |= 4;
+ if (wd = s, s |= bi, mt(e, n, s, r, i, a), Od = null, (n & 335544064) === n ? (kd = ja(e), r = 10262) : (kd = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, bf(Ge, function() {
+ return ff(), null;
+ })) : (e.callbackNode = null, e.callbackPriority = 0), Ll = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
+ r = P.T, P.T = null, i = F.p, F.p = 2, a = ed, ed |= 4;
try {
- fu(e, t, n);
+ pu(e, t, n);
} finally {
- q = a, I.p = i, F.T = r;
+ ed = a, F.p = i, P.T = r;
}
}
- vd = 1, Il ? wd = Mp(o, e.containerInfo, Ed, af, of, rf, sf, uf, nf, null, null) : (af(), of(), sf());
+ xd = 1, Ll ? Dd = Mp(o, e.containerInfo, kd, sf, cf, of, lf, ff, af, null, null) : (sf(), cf(), lf());
}
- function nf(e) {
- if (vd !== 0) {
- var t = yd.onRecoverableError;
+ function af(e) {
+ if (xd !== 0) {
+ var t = Sd.onRecoverableError;
t(e, { componentStack: null });
}
}
- function rf() {
- vd === 3 && (vd = 0, Nu(bd, yd), vd = 4);
+ function of() {
+ xd === 3 && (xd = 0, Pu(Cd, Sd), xd = 4);
}
- function af() {
- if (vd === 1) {
- vd = 0;
- var e = yd, t = bd, n = xd, r = !!(t.flags & 13878);
+ function sf() {
+ if (xd === 1) {
+ xd = 0;
+ var e = Sd, t = Cd, n = Y, r = !!(t.flags & 13878);
if (t.subtreeFlags & 13878 || r) {
- r = F.T, F.T = null;
- var i = I.p;
- I.p = 2;
- var a = q;
- q |= 4;
+ r = P.T, P.T = null;
+ var i = F.p;
+ F.p = 2;
+ var a = ed;
+ ed |= 4;
try {
- cu = uu = !1, ku(t, e, n), n = cp;
- var o = Hr(e.containerInfo), s = n.focusedElem, c = n.selectionRange;
- if (o !== s && s && s.ownerDocument && Vr(s.ownerDocument.documentElement, s)) {
- if (c !== null && Wr(s)) {
+ lu = du = !1, Au(t, e, n), n = cp;
+ var o = Ur(e.containerInfo), s = n.focusedElem, c = n.selectionRange;
+ if (o !== s && s && s.ownerDocument && Hr(s.ownerDocument.documentElement, s)) {
+ if (c !== null && Gr(s)) {
var l = c.start, u = c.end;
if (u === void 0 && (u = l), "selectionStart" in s) s.selectionStart = l, s.selectionEnd = Math.min(u, s.value.length);
else {
@@ -13867,7 +13867,7 @@ var cu = /* @__PURE__ */ m(((e) => {
if (f.getSelection) {
var p = f.getSelection(), m = s.textContent.length, h = Math.min(c.start, m), g = c.end === void 0 ? h : Math.min(c.end, m);
!p.extend && h > g && (o = g, g = h, h = o);
- var _ = Br(s, h), v = Br(s, g);
+ var _ = Vr(s, h), v = Vr(s, g);
if (_ && v && (p.rangeCount !== 1 || p.anchorNode !== _.node || p.anchorOffset !== _.offset || p.focusNode !== v.node || p.focusOffset !== v.offset)) {
var y = d.createRange();
y.setStart(_.node, _.offset), p.removeAllRanges(), h > g ? (p.addRange(y), p.extend(v.node, v.offset)) : (y.setEnd(v.node, v.offset), p.addRange(y));
@@ -13887,120 +13887,120 @@ var cu = /* @__PURE__ */ m(((e) => {
}
gh = !!sp, cp = sp = null;
} finally {
- q = a, I.p = i, F.T = r;
+ ed = a, F.p = i, P.T = r;
}
}
- e.current = t, vd = 2;
+ e.current = t, xd = 2;
}
}
- function of() {
- if (vd === 2) {
- vd = 0;
- var e = yd, t = bd, n = !!(t.flags & 8772);
+ function cf() {
+ if (xd === 2) {
+ xd = 0;
+ var e = Sd, t = Cd, n = !!(t.flags & 8772);
if (t.subtreeFlags & 8772 || n) {
- n = F.T, F.T = null;
- var r = I.p;
- I.p = 2;
- var i = q;
- q |= 4;
+ n = P.T, P.T = null;
+ var r = F.p;
+ F.p = 2;
+ var i = ed;
+ ed |= 4;
try {
- mu(e, t.alternate, t);
+ hu(e, t.alternate, t);
} finally {
- q = i, I.p = r, F.T = n;
+ ed = i, F.p = r, P.T = n;
}
}
- vd = 3;
+ xd = 3;
}
}
- function sf() {
- if (vd === 4 || vd === 3) {
- vd = 0;
- var e = wd;
- wd = null, ze();
- var t = yd, n = bd, r = xd, i = Cd, a = (r & 335544064) === r ? 10262 : 10256;
- if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? vd = 5 : (vd = 0, bd = yd = null, cf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (_d = null), vt(r), n = n.stateNode, Xe && typeof Xe.onCommitFiberRoot == "function") try {
- Xe.onCommitFiberRoot(Ye, n, void 0, (n.current.flags & 128) == 128);
+ function lf() {
+ if (xd === 4 || xd === 3) {
+ xd = 0;
+ var e = Dd;
+ Dd = null, Be();
+ var t = Sd, n = Cd, r = Y, i = Ed, a = (r & 335544064) === r ? 10262 : 10256;
+ if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? xd = 5 : (xd = 0, Cd = Sd = null, uf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (bd = null), yt(r), n = n.stateNode, Ze && typeof Ze.onCommitFiberRoot == "function") try {
+ Ze.onCommitFiberRoot(Xe, n, void 0, (n.current.flags & 128) == 128);
} catch {}
if (i !== null) {
- n = F.T, a = I.p, I.p = 2, F.T = null;
+ n = P.T, a = F.p, F.p = 2, P.T = null;
try {
for (var o = t.onRecoverableError, s = 0; s < i.length; s++) {
var c = i[s];
o(c.value, { componentStack: c.stack });
}
} finally {
- F.T = n, I.p = a;
+ P.T = n, F.p = a;
}
}
- if (i = Td, o = Ed, Ed = null, i !== null && (Td = null, o === null && (o = []), e !== null)) for (c = 0; c < i.length; c++) n = (0, i[c])(o), n !== void 0 && e.finished.finally(n);
- xd & 3 && lf(), Tf(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Od ? Dd++ : (Dd = 0, Od = t) : (Dd = 0, Od = null), Ef(0, !1);
+ if (i = Od, o = kd, kd = null, i !== null && (Od = null, o === null && (o = []), e !== null)) for (c = 0; c < i.length; c++) n = (0, i[c])(o), n !== void 0 && e.finished.finally(n);
+ Y & 3 && df(), Df(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === X ? Ad++ : (Ad = 0, X = t) : (Ad = 0, X = null), Of(0, !1);
}
}
- function cf(e, t) {
- (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Da(t)));
+ function uf(e, t) {
+ (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Oa(t)));
}
- function lf() {
- return wd !== null && (wd.skipTransition(), wd = null), af(), of(), sf(), uf();
+ function df() {
+ return Dd !== null && (Dd.skipTransition(), Dd = null), sf(), cf(), lf(), ff();
}
- function uf() {
- if (vd !== 5) return !1;
- var e = yd, t = Sd;
- Sd = 0;
- var n = vt(xd), r = F.T, a = I.p;
+ function ff() {
+ if (xd !== 5) return !1;
+ var e = Sd, t = wd;
+ wd = 0;
+ var n = yt(Y), r = P.T, a = F.p;
try {
- I.p = 32 > n ? 32 : n, F.T = null, n = Q, Q = null;
- var o = yd, s = xd;
- if (vd = 0, bd = yd = null, xd = 0, q & 6) throw Error(i(331));
- var c = q;
- if (q |= 4, Ju(o.current), Bu(o, o.current, s, n), q = c, Ef(0, !1), Xe && typeof Xe.onPostCommitFiberRoot == "function") try {
- Xe.onPostCommitFiberRoot(Ye, o);
+ F.p = 32 > n ? 32 : n, P.T = null, n = Td, Td = null;
+ var o = Sd, s = Y;
+ if (xd = 0, Cd = Sd = null, Y = 0, ed & 6) throw Error(i(331));
+ var c = ed;
+ if (ed |= 4, Yu(o.current), Vu(o, o.current, s, n), ed = c, Of(0, !1), Ze && typeof Ze.onPostCommitFiberRoot == "function") try {
+ Ze.onPostCommitFiberRoot(Xe, o);
} catch {}
return !0;
} finally {
- I.p = a, F.T = r, cf(e, t);
+ F.p = a, P.T = r, uf(e, t);
}
}
- function df(e, t, n) {
- t = Ri(n, t), t = wc(e.stateNode, t, 2), e = fo(e, t, 2), e !== null && (ft(e, 2), Tf(e));
+ function pf(e, t, n) {
+ t = zi(n, t), t = Tc(e.stateNode, t, 2), e = po(e, t, 2), e !== null && (pt(e, 2), Df(e));
}
- function ff(e, t, n) {
- if (e.tag === 3) df(e, e, n);
+ function mf(e, t, n) {
+ if (e.tag === 3) pf(e, e, n);
else for (; t !== null;) {
if (t.tag === 3) {
- df(t, e, n);
+ pf(t, e, n);
break;
}
if (t.tag === 1) {
var r = t.stateNode;
- if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (_d === null || !_d.has(r))) {
- e = Ri(n, e), n = Tc(2), r = fo(t, n, 2), r !== null && (Ec(n, r, t, e), ft(r, 2), Tf(r));
+ if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (bd === null || !bd.has(r))) {
+ e = zi(n, e), n = Ec(2), r = po(t, n, 2), r !== null && (Dc(n, r, t, e), pt(r, 2), Df(r));
break;
}
}
t = t.return;
}
}
- function pf(e, t, n) {
+ function hf(e, t, n) {
var r = e.pingCache;
if (r === null) {
- r = e.pingCache = new Qu();
+ r = e.pingCache = new $u();
var i = /* @__PURE__ */ new Set();
r.set(t, i);
} else i = r.get(t), i === void 0 && (i = /* @__PURE__ */ new Set(), r.set(t, i));
- i.has(n) || (id = !0, i.add(n), e = mf.bind(null, e, t, n), t.then(e, e));
+ i.has(n) || (od = !0, i.add(n), e = gf.bind(null, e, t, n), t.then(e, e));
}
- function mf(e, t, n) {
+ function gf(e, t, n) {
var r = e.pingCache;
- r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, $u === e && (Y & n) === n && (ad === 4 || ad === 3 && (Y & 62914560) === Y && 300 > Be() - md ? q & 2 ? cd |= n : zd(e, 0) : cd |= n, ud === Y && (ud = 0)), Tf(e);
+ r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, td === e && (q & n) === n && (cd === 4 || cd === 3 && (q & 62914560) === q && 300 > Ve() - gd ? ed & 2 ? dd |= n : Vd(e, 0) : dd |= n, J === q && (J = 0)), Df(e);
}
- function hf(e, t) {
- t === 0 && (t = ut()), e = Ci(e, t), e !== null && (ft(e, t), Tf(e));
+ function _f(e, t) {
+ t === 0 && (t = dt()), e = wi(e, t), e !== null && (pt(e, t), Df(e));
}
- function gf(e) {
+ function vf(e) {
var t = e.memoizedState, n = 0;
- t !== null && (n = t.retryLane), hf(e, n);
+ t !== null && (n = t.retryLane), _f(e, n);
}
- function _f(e, t) {
+ function yf(e, t) {
var n = 0;
switch (e.tag) {
case 31:
@@ -14016,122 +14016,122 @@ var cu = /* @__PURE__ */ m(((e) => {
break;
default: throw Error(i(314));
}
- r !== null && r.delete(t), hf(e, n);
+ r !== null && r.delete(t), _f(e, n);
}
- function vf(e, t) {
- return Ie(e, t);
+ function bf(e, t) {
+ return Le(e, t);
}
- var yf = null, bf = null, xf = !1, Sf = !1, Cf = !1, wf = 0;
- function Tf(e) {
- e !== bf && e.next === null && (bf === null ? yf = bf = e : bf = bf.next = e), Sf = !0, xf || (xf = !0, Mf());
+ var xf = null, Sf = null, Cf = !1, wf = !1, Tf = !1, Ef = 0;
+ function Df(e) {
+ e !== Sf && e.next === null && (Sf === null ? xf = Sf = e : Sf = Sf.next = e), wf = !0, Cf || (Cf = !0, Pf());
}
- function Ef(e, t) {
- if (!Cf && Sf) {
- Cf = !0;
+ function Of(e, t) {
+ if (!Tf && wf) {
+ Tf = !0;
do
- for (var n = !1, r = yf; r !== null;) {
+ for (var n = !1, r = xf; r !== null;) {
if (!t) {
if (e !== 0) {
var i = r.pendingLanes;
if (i === 0) var a = 0;
else {
var o = r.suspendedLanes, s = r.pingedLanes;
- a = (1 << 31 - Qe(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
+ a = (1 << 31 - $e(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
}
- a !== 0 && (n = !0, jf(r, a));
- } else a = Y, a = ot(r, r === $u ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || st(r, a) || (n = !0, jf(r, a));
+ a !== 0 && (n = !0, Nf(r, a));
+ } else a = q, a = st(r, r === td ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || ct(r, a) || (n = !0, Nf(r, a));
}
r = r.next;
}
while (n);
- Cf = !1;
+ Tf = !1;
}
}
- function Df() {
- Of();
+ function kf() {
+ Af();
}
- function Of() {
- Sf = xf = !1;
+ function Af() {
+ wf = Cf = !1;
var e = 0;
- wf !== 0 && hp() && (e = wf);
- for (var t = Be(), n = null, r = yf; r !== null;) {
- var i = r.next, a = kf(r, t);
- a === 0 ? (r.next = null, n === null ? yf = i : n.next = i, i === null && (bf = n)) : (n = r, (e !== 0 || a & 3) && (Sf = !0)), r = i;
+ Ef !== 0 && hp() && (e = Ef);
+ for (var t = Ve(), n = null, r = xf; r !== null;) {
+ var i = r.next, a = jf(r, t);
+ a === 0 ? (r.next = null, n === null ? xf = i : n.next = i, i === null && (Sf = n)) : (n = r, (e !== 0 || a & 3) && (wf = !0)), r = i;
}
- vd !== 0 && vd !== 5 || Ef(e, !1), wf !== 0 && (wf = 0);
+ xd !== 0 && xd !== 5 || Of(e, !1), Ef !== 0 && (Ef = 0);
}
- function kf(e, t) {
+ function jf(e, t) {
for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes & -62914561; 0 < a;) {
- var o = 31 - Qe(a), s = 1 << o, c = i[o];
- c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = lt(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
+ var o = 31 - $e(a), s = 1 << o, c = i[o];
+ c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = ut(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
}
- if (t = $u, n = Y, n = ot(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (ed === 2 || ed === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && Le(r), e.callbackNode = null, e.callbackPriority = 0;
- if (!(n & 3) || st(e, n)) {
+ if (t = td, n = q, n = st(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (nd === 2 || nd === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && Re(r), e.callbackNode = null, e.callbackPriority = 0;
+ if (!(n & 3) || ct(e, n)) {
if (t = n & -n, t === e.callbackPriority) return t;
- switch (r !== null && Le(r), vt(n)) {
+ switch (r !== null && Re(r), yt(n)) {
case 2:
case 8:
- n = Ue;
+ n = We;
break;
case 32:
- n = We;
+ n = Ge;
break;
case 268435456:
- n = Ke;
+ n = qe;
break;
- default: n = We;
+ default: n = Ge;
}
- return r = Af.bind(null, e), n = Ie(n, r), e.callbackPriority = t, e.callbackNode = n, t;
+ return r = Mf.bind(null, e), n = Le(n, r), e.callbackPriority = t, e.callbackNode = n, t;
}
- return r !== null && r !== null && Le(r), e.callbackPriority = 2, e.callbackNode = null, 2;
+ return r !== null && r !== null && Re(r), e.callbackPriority = 2, e.callbackNode = null, 2;
}
- function Af(e, t) {
- if (vd !== 0 && vd !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
+ function Mf(e, t) {
+ if (xd !== 0 && xd !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
var n = e.callbackNode;
- if (lf() && e.callbackNode !== n) return null;
- var r = Y;
- return r = ot(e, e === $u ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Nd(e, r, t), kf(e, Be()), e.callbackNode != null && e.callbackNode === n ? Af.bind(null, e) : null);
+ if (df() && e.callbackNode !== n) return null;
+ var r = q;
+ return r = st(e, e === td ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Fd(e, r, t), jf(e, Ve()), e.callbackNode != null && e.callbackNode === n ? Mf.bind(null, e) : null);
}
- function jf(e, t) {
- if (lf()) return null;
- Nd(e, t, !0);
+ function Nf(e, t) {
+ if (df()) return null;
+ Fd(e, t, !0);
}
- function Mf() {
+ function Pf() {
bp(function() {
- q & 6 ? Ie(He, Df) : Of();
+ ed & 6 ? Le(Ue, kf) : Af();
});
}
- function Nf() {
- if (wf === 0) {
- var e = Na;
- e === 0 && (e = nt, nt <<= 1, !(nt & 261888) && (nt = 256)), wf = e;
+ function Ff() {
+ if (Ef === 0) {
+ var e = Pa;
+ e === 0 && (e = rt, rt <<= 1, !(rt & 261888) && (rt = 256)), Ef = e;
}
- return wf;
+ return Ef;
}
- function Pf(e) {
- return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : pn(e);
+ function If(e) {
+ return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : mn(e);
}
- function Ff(e, t, n, r, i) {
+ function Lf(e, t, n, r, i) {
if (t === "submit" && n && n.stateNode === i) {
- var a = Pf((i[Ct] || null).action), o = r.submitter;
- o && (t = (t = o[Ct] || null) ? Pf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
- var s = new Fn("action", "action", null, r, i);
+ var a = If((i[wt] || null).action), o = r.submitter;
+ o && (t = (t = o[wt] || null) ? If(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
+ var s = new In("action", "action", null, r, i);
e.push({
event: s,
listeners: [{
instance: null,
listener: function() {
if (r.defaultPrevented) {
- if (wf !== 0) {
+ if (Ef !== 0) {
var e = new FormData(i, o);
- Xs(n, {
+ Zs(n, {
pending: !0,
data: e,
method: i.method,
action: a
}, null, e);
}
- } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), Xs(n, {
+ } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), Zs(n, {
pending: !0,
data: e,
method: i.method,
@@ -14143,18 +14143,18 @@ var cu = /* @__PURE__ */ m(((e) => {
});
}
}
- for (var If = 0; If < ui.length; If++) {
- var Lf = ui[If];
- di(Lf.toLowerCase(), "on" + (Lf[0].toUpperCase() + Lf.slice(1)));
+ for (var Rf = 0; Rf < di.length; Rf++) {
+ var zf = di[Rf];
+ fi(zf.toLowerCase(), "on" + (zf[0].toUpperCase() + zf.slice(1)));
}
- di(ni, "onAnimationEnd"), di(ri, "onAnimationIteration"), di(ii, "onAnimationStart"), di("dblclick", "onDoubleClick"), di("focusin", "onFocus"), di("focusout", "onBlur"), di(ai, "onTransitionRun"), di(oi, "onTransitionStart"), di(si, "onTransitionCancel"), di(ci, "onTransitionEnd"), Rt("onMouseEnter", ["mouseout", "mouseover"]), Rt("onMouseLeave", ["mouseout", "mouseover"]), Rt("onPointerEnter", ["pointerout", "pointerover"]), Rt("onPointerLeave", ["pointerout", "pointerover"]), Lt("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), Lt("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), Lt("onBeforeInput", [
+ fi(ri, "onAnimationEnd"), fi(ii, "onAnimationIteration"), fi(ai, "onAnimationStart"), fi("dblclick", "onDoubleClick"), fi("focusin", "onFocus"), fi("focusout", "onBlur"), fi(oi, "onTransitionRun"), fi(si, "onTransitionStart"), fi(ci, "onTransitionCancel"), fi(li, "onTransitionEnd"), zt("onMouseEnter", ["mouseout", "mouseover"]), zt("onMouseLeave", ["mouseout", "mouseover"]), zt("onPointerEnter", ["pointerout", "pointerover"]), zt("onPointerLeave", ["pointerout", "pointerover"]), Rt("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), Rt("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), Rt("onBeforeInput", [
"compositionend",
"keypress",
"textInput",
"paste"
- ]), Lt("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), Lt("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), Lt("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
- var Rf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), zf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Rf));
- function Bf(e, t) {
+ ]), Rt("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), Rt("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), Rt("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
+ var Bf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), Vf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bf));
+ function Hf(e, t) {
t = !!(t & 4);
for (var n = 0; n < e.length; n++) {
var r = e[n], i = r.event;
@@ -14168,7 +14168,7 @@ var cu = /* @__PURE__ */ m(((e) => {
try {
a(i);
} catch (e) {
- gi(e);
+ _i(e);
}
i.currentTarget = null, a = c;
}
@@ -14178,34 +14178,34 @@ var cu = /* @__PURE__ */ m(((e) => {
try {
a(i);
} catch (e) {
- gi(e);
+ _i(e);
}
i.currentTarget = null, a = c;
}
}
}
}
- function $(e, t) {
- var n = t[Tt];
- n === void 0 && (n = t[Tt] = /* @__PURE__ */ new Set());
+ function Z(e, t) {
+ var n = t[Et];
+ n === void 0 && (n = t[Et] = /* @__PURE__ */ new Set());
var r = e + "__bubble";
- n.has(r) || (Wf(t, e, 2, !1), n.add(r));
+ n.has(r) || (Kf(t, e, 2, !1), n.add(r));
}
- function Vf(e, t, n) {
+ function Uf(e, t, n) {
var r = 0;
- t && (r |= 4), Wf(n, e, r, t);
+ t && (r |= 4), Kf(n, e, r, t);
}
- var Hf = "_reactListening" + Math.random().toString(36).slice(2);
- function Uf(e) {
- if (!e[Hf]) {
- e[Hf] = !0, z.forEach(function(t) {
- t !== "selectionchange" && (zf.has(t) || Vf(t, !1, e), Vf(t, !0, e));
+ var Wf = "_reactListening" + Math.random().toString(36).slice(2);
+ function Gf(e) {
+ if (!e[Wf]) {
+ e[Wf] = !0, R.forEach(function(t) {
+ t !== "selectionchange" && (Vf.has(t) || Uf(t, !1, e), Uf(t, !0, e));
});
var t = e.nodeType === 9 ? e : e.ownerDocument;
- t === null || t[Hf] || (t[Hf] = !0, Vf("selectionchange", !1, t));
+ t === null || t[Wf] || (t[Wf] = !0, Uf("selectionchange", !1, t));
}
}
- function Wf(e, t, n, r) {
+ function Kf(e, t, n, r) {
switch (Ch(t)) {
case 2:
var i = _h;
@@ -14215,12 +14215,12 @@ var cu = /* @__PURE__ */ m(((e) => {
break;
default: i = yh;
}
- n = i.bind(null, t, n, e), i = void 0, !wn || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (i = !0), r ? i === void 0 ? e.addEventListener(t, n, !0) : e.addEventListener(t, n, {
+ n = i.bind(null, t, n, e), i = void 0, !Tn || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (i = !0), r ? i === void 0 ? e.addEventListener(t, n, !0) : e.addEventListener(t, n, {
capture: !0,
passive: i
}) : i === void 0 ? e.addEventListener(t, n, !1) : e.addEventListener(t, n, { passive: i });
}
- function Gf(e, t, n, r, i) {
+ function qf(e, t, n, r, i) {
var a = r;
if (!(t & 1) && !(t & 2) && r !== null) a: for (;;) {
if (r === null) return;
@@ -14234,7 +14234,7 @@ var cu = /* @__PURE__ */ m(((e) => {
s = s.return;
}
for (; c !== null;) {
- if (s = jt(c), s === null) return;
+ if (s = Mt(c), s === null) return;
if (l = s.tag, l === 5 || l === 6 || l === 26 || l === 27) {
r = a = s;
continue a;
@@ -14244,27 +14244,27 @@ var cu = /* @__PURE__ */ m(((e) => {
}
r = r.return;
}
- xn(function() {
- var r = a, i = gn(n), s = [];
+ Sn(function() {
+ var r = a, i = _n(n), s = [];
a: {
- var c = li.get(e);
+ var c = ui.get(e);
if (c !== void 0) {
- var l = Fn, u = e;
+ var l = In, u = e;
switch (e) {
- case "keypress": if (An(n) === 0) break a;
+ case "keypress": if (jn(n) === 0) break a;
case "keydown":
case "keyup":
- l = $n;
+ l = er;
break;
case "focusin":
- u = "focus", l = Wn;
+ u = "focus", l = Gn;
break;
case "focusout":
- u = "blur", l = Wn;
+ u = "blur", l = Gn;
break;
case "beforeblur":
case "afterblur":
- l = Wn;
+ l = Gn;
break;
case "click": if (n.button === 2) break a;
case "auxclick":
@@ -14275,7 +14275,7 @@ var cu = /* @__PURE__ */ m(((e) => {
case "mouseout":
case "mouseover":
case "contextmenu":
- l = Hn;
+ l = Un;
break;
case "drag":
case "dragend":
@@ -14285,33 +14285,33 @@ var cu = /* @__PURE__ */ m(((e) => {
case "dragover":
case "dragstart":
case "drop":
- l = Un;
+ l = Wn;
break;
case "touchcancel":
case "touchend":
case "touchmove":
case "touchstart":
- l = nr;
+ l = rr;
break;
- case ni:
case ri:
case ii:
- l = Gn;
+ case ai:
+ l = Kn;
break;
- case ci:
- l = rr;
+ case li:
+ l = ir;
break;
case "scroll":
case "scrollend":
- l = Ln;
+ l = Rn;
break;
case "wheel":
- l = ir;
+ l = ar;
break;
case "copy":
case "cut":
case "paste":
- l = Kn;
+ l = qn;
break;
case "gotpointercapture":
case "lostpointercapture":
@@ -14321,19 +14321,19 @@ var cu = /* @__PURE__ */ m(((e) => {
case "pointerout":
case "pointerover":
case "pointerup":
- l = er;
+ l = tr;
break;
case "submit":
- l = tr;
+ l = nr;
break;
case "toggle":
- case "beforetoggle": l = ar;
+ case "beforetoggle": l = or;
}
var d = !!(t & 4), f = !d && (e === "scroll" || e === "scrollend"), p = d ? c === null ? null : c + "Capture" : c;
d = [];
for (var m = r, h; m !== null;) {
var g = m;
- if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = Sn(m, p), g != null && d.push(Kf(m, g, h))), f) break;
+ if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = Cn(m, p), g != null && d.push(Jf(m, g, h))), f) break;
m = m.return;
}
0 < d.length && (c = new l(c, u, null, n, i), s.push({
@@ -14344,45 +14344,45 @@ var cu = /* @__PURE__ */ m(((e) => {
}
if (!(t & 7)) {
a: {
- if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== hn && (u = n.relatedTarget || n.fromElement) && (jt(u) || u[wt])) break a;
- (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? jt(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Hn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = er, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Nt(c), h = l == null ? u : Nt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, jt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? w(c, l, Jf) : null, c !== null && Yf(s, u, c, d, !1), l !== null && f !== null && Yf(s, f, l, d, !0)));
+ if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== gn && (u = n.relatedTarget || n.fromElement) && (Mt(u) || u[Tt])) break a;
+ (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? Mt(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Un, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = tr, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Pt(c), h = l == null ? u : Pt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, Mt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? w(c, l, Xf) : null, c !== null && Zf(s, u, c, d, !1), l !== null && f !== null && Zf(s, f, l, d, !0)));
}
a: {
- if (c = r ? Nt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = wr;
- else if (vr(c)) {
- if (Tr) _ = Pr;
+ if (c = r ? Pt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Tr;
+ else if (yr(c)) {
+ if (Er) _ = Fr;
else {
- _ = Mr;
- var v = jr;
+ _ = Nr;
+ var v = Mr;
}
- } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && un(r.elementType) && (_ = wr) : _ = Nr;
+ } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && dn(r.elementType) && (_ = Tr) : _ = Pr;
if (_ &&= _(e, r)) {
- yr(s, _, n, i);
+ br(s, _, n, i);
break a;
}
v && v(e, c, r);
}
- switch (v = r ? Nt(r) : window, e) {
+ switch (v = r ? Pt(r) : window, e) {
case "focusin":
- (vr(v) || v.contentEditable === "true") && (Kr = v, qr = r, Jr = null);
+ (yr(v) || v.contentEditable === "true") && (qr = v, Jr = r, Yr = null);
break;
case "focusout":
- Jr = qr = Kr = null;
+ Yr = Jr = qr = null;
break;
case "mousedown":
- Yr = !0;
+ Xr = !0;
break;
case "contextmenu":
case "mouseup":
case "dragend":
- Yr = !1, Xr(s, n, i);
+ Xr = !1, Zr(s, n, i);
break;
- case "selectionchange": if (Gr) break;
+ case "selectionchange": if (Kr) break;
case "keydown":
- case "keyup": Xr(s, n, i);
+ case "keyup": Zr(s, n, i);
}
var y;
- if (sr) b: {
+ if (cr) b: {
switch (e) {
case "compositionstart":
var b = "onCompositionStart";
@@ -14396,83 +14396,83 @@ var cu = /* @__PURE__ */ m(((e) => {
}
b = void 0;
}
- else hr ? pr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
- b && (ur && n.locale !== "ko" && (hr || b !== "onCompositionStart" ? b === "onCompositionEnd" && hr && (y = kn()) : (En = i, Dn = "value" in En ? En.value : En.textContent, hr = !0)), v = qf(r, b), 0 < v.length && (b = new qn(b, e, null, n, i), s.push({
+ else gr ? mr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
+ b && (dr && n.locale !== "ko" && (gr || b !== "onCompositionStart" ? b === "onCompositionEnd" && gr && (y = An()) : (Dn = i, On = "value" in Dn ? Dn.value : Dn.textContent, gr = !0)), v = Yf(r, b), 0 < v.length && (b = new Jn(b, e, null, n, i), s.push({
event: b,
listeners: v
- }), y ? b.data = y : (y = mr(n), y !== null && (b.data = y)))), (y = lr ? gr(e, n) : _r(e, n)) && (b = qf(r, "onBeforeInput"), 0 < b.length && (v = new qn("onBeforeInput", "beforeinput", null, n, i), s.push({
+ }), y ? b.data = y : (y = hr(n), y !== null && (b.data = y)))), (y = ur ? _r(e, n) : vr(e, n)) && (b = Yf(r, "onBeforeInput"), 0 < b.length && (v = new Jn("onBeforeInput", "beforeinput", null, n, i), s.push({
event: v,
listeners: b
- }), v.data = y)), Ff(s, e, r, n, i);
+ }), v.data = y)), Lf(s, e, r, n, i);
}
- Bf(s, t);
+ Hf(s, t);
});
}
- function Kf(e, t, n) {
+ function Jf(e, t, n) {
return {
instance: e,
listener: t,
currentTarget: n
};
}
- function qf(e, t) {
+ function Yf(e, t) {
for (var n = t + "Capture", r = []; e !== null;) {
var i = e, a = i.stateNode;
- if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = Sn(e, n), i != null && r.unshift(Kf(e, i, a)), i = Sn(e, t), i != null && r.push(Kf(e, i, a))), e.tag === 3) return r;
+ if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = Cn(e, n), i != null && r.unshift(Jf(e, i, a)), i = Cn(e, t), i != null && r.push(Jf(e, i, a))), e.tag === 3) return r;
e = e.return;
}
return [];
}
- function Jf(e) {
+ function Xf(e) {
if (e === null) return null;
do
e = e.return;
while (e && e.tag !== 5 && e.tag !== 27);
return e || null;
}
- function Yf(e, t, n, r, i) {
+ function Zf(e, t, n, r, i) {
for (var a = t._reactName, o = []; n !== null && n !== r;) {
var s = n, c = s.alternate, l = s.stateNode;
if (s = s.tag, c !== null && c === r) break;
- s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = Sn(n, a), l != null && o.unshift(Kf(n, l, c))) : i || (l = Sn(n, a), l != null && o.push(Kf(n, l, c)))), n = n.return;
+ s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = Cn(n, a), l != null && o.unshift(Jf(n, l, c))) : i || (l = Cn(n, a), l != null && o.push(Jf(n, l, c)))), n = n.return;
}
o.length !== 0 && e.push({
event: t,
listeners: o
});
}
- var Xf = /\r\n?/g, Zf = /\u0000|\uFFFD/g;
- function Qf(e) {
- return (typeof e == "string" ? e : "" + e).replace(Xf, "\n").replace(Zf, "");
+ var Qf = /\r\n?/g, $f = /\u0000|\uFFFD/g;
+ function ep(e) {
+ return (typeof e == "string" ? e : "" + e).replace(Qf, "\n").replace($f, "");
}
- function $f(e, t) {
- return t = Qf(t), Qf(e) === t;
+ function tp(e, t) {
+ return t = ep(t), ep(e) === t;
}
- function ep(e, t, n, r, a, o) {
+ function Q(e, t, n, r, a, o) {
switch (n) {
case "children":
- if (typeof r == "string") t === "body" || t === "textarea" && r === "" || on(e, r);
- else if (typeof r == "number" || typeof r == "bigint") t !== "body" && on(e, "" + r);
+ if (typeof r == "string") t === "body" || t === "textarea" && r === "" || sn(e, r);
+ else if (typeof r == "number" || typeof r == "bigint") t !== "body" && sn(e, "" + r);
else return;
break;
case "className":
- Gt(e, "class", r);
+ Kt(e, "class", r);
break;
case "tabIndex":
- Gt(e, "tabindex", r);
+ Kt(e, "tabindex", r);
break;
case "dir":
case "role":
case "viewBox":
case "width":
case "height":
- Gt(e, n, r);
+ Kt(e, n, r);
break;
case "style":
- ln(e, r, o);
+ un(e, r, o);
return;
case "data": if (t !== "object") {
- Gt(e, "data", r);
+ Kt(e, "data", r);
break;
}
case "src":
@@ -14485,7 +14485,7 @@ var cu = /* @__PURE__ */ m(((e) => {
e.removeAttribute(n);
break;
}
- r = pn(r), e.setAttribute(n, r);
+ r = mn(r), e.setAttribute(n, r);
break;
case "action":
case "formAction":
@@ -14493,20 +14493,20 @@ var cu = /* @__PURE__ */ m(((e) => {
e.setAttribute(n, "javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");
break;
}
- if (typeof o == "function" && (n === "formAction" ? (t !== "input" && ep(e, t, "name", a.name, a, null), ep(e, t, "formEncType", a.formEncType, a, null), ep(e, t, "formMethod", a.formMethod, a, null), ep(e, t, "formTarget", a.formTarget, a, null)) : (ep(e, t, "encType", a.encType, a, null), ep(e, t, "method", a.method, a, null), ep(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {
+ if (typeof o == "function" && (n === "formAction" ? (t !== "input" && Q(e, t, "name", a.name, a, null), Q(e, t, "formEncType", a.formEncType, a, null), Q(e, t, "formMethod", a.formMethod, a, null), Q(e, t, "formTarget", a.formTarget, a, null)) : (Q(e, t, "encType", a.encType, a, null), Q(e, t, "method", a.method, a, null), Q(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {
e.removeAttribute(n);
break;
}
- r = pn(r), e.setAttribute(n, r);
+ r = mn(r), e.setAttribute(n, r);
break;
case "onClick":
- r != null && (e.onclick = mn);
+ r != null && (e.onclick = hn);
return;
case "onScroll":
- r != null && $("scroll", e);
+ r != null && Z("scroll", e);
return;
case "onScrollEnd":
- r != null && $("scrollend", e);
+ r != null && Z("scrollend", e);
return;
case "dangerouslySetInnerHTML":
if (r != null) {
@@ -14535,7 +14535,7 @@ var cu = /* @__PURE__ */ m(((e) => {
e.removeAttribute("xlink:href");
break;
}
- n = pn(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);
+ n = mn(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);
break;
case "contentEditable":
case "spellCheck":
@@ -14588,49 +14588,49 @@ var cu = /* @__PURE__ */ m(((e) => {
r == null || typeof r == "function" || typeof r == "symbol" || isNaN(r) ? e.removeAttribute(n) : e.setAttribute(n, r);
break;
case "popover":
- $("beforetoggle", e), $("toggle", e), Wt(e, "popover", r);
+ Z("beforetoggle", e), Z("toggle", e), Gt(e, "popover", r);
break;
case "xlinkActuate":
- Kt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
+ qt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
break;
case "xlinkArcrole":
- Kt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);
+ qt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);
break;
case "xlinkRole":
- Kt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);
+ qt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);
break;
case "xlinkShow":
- Kt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);
+ qt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);
break;
case "xlinkTitle":
- Kt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);
+ qt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);
break;
case "xlinkType":
- Kt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);
+ qt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);
break;
case "xmlBase":
- Kt(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);
+ qt(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);
break;
case "xmlLang":
- Kt(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);
+ qt(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);
break;
case "xmlSpace":
- Kt(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);
+ qt(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);
break;
case "is":
- Wt(e, "is", r);
+ Gt(e, "is", r);
break;
case "innerText":
case "textContent": return;
- default: if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") n = dn.get(n) || n, Wt(e, n, r);
+ default: if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") n = fn.get(n) || n, Gt(e, n, r);
else return;
}
- B = !0;
+ z = !0;
}
- function tp(e, t, n, r, a, o) {
+ function np(e, t, n, r, a, o) {
switch (n) {
case "style":
- ln(e, r, o);
+ un(e, r, o);
return;
case "dangerouslySetInnerHTML":
if (r != null) {
@@ -14642,18 +14642,18 @@ var cu = /* @__PURE__ */ m(((e) => {
}
break;
case "children":
- if (typeof r == "string") on(e, r);
- else if (typeof r == "number" || typeof r == "bigint") on(e, "" + r);
+ if (typeof r == "string") sn(e, r);
+ else if (typeof r == "number" || typeof r == "bigint") sn(e, "" + r);
else return;
break;
case "onScroll":
- r != null && $("scroll", e);
+ r != null && Z("scroll", e);
return;
case "onScrollEnd":
- r != null && $("scrollend", e);
+ r != null && Z("scrollend", e);
return;
case "onClick":
- r != null && (e.onclick = mn);
+ r != null && (e.onclick = hn);
return;
case "suppressContentEditableWarning":
case "suppressHydrationWarning":
@@ -14662,18 +14662,18 @@ var cu = /* @__PURE__ */ m(((e) => {
case "innerText":
case "textContent": return;
default:
- if (!It.hasOwnProperty(n)) a: {
- if (n[0] === "o" && n[1] === "n" && (a = n.endsWith("Capture"), o = n.slice(2, a ? n.length - 7 : void 0), t = e[Ct] || null, t = t == null ? null : t[n], typeof t == "function" && e.removeEventListener(o, t, a), typeof r == "function")) {
+ if (!Lt.hasOwnProperty(n)) a: {
+ if (n[0] === "o" && n[1] === "n" && (a = n.endsWith("Capture"), o = n.slice(2, a ? n.length - 7 : void 0), t = e[wt] || null, t = t == null ? null : t[n], typeof t == "function" && e.removeEventListener(o, t, a), typeof r == "function")) {
typeof t != "function" && t !== null && (n in e ? e[n] = null : e.hasAttribute(n) && e.removeAttribute(n)), e.addEventListener(o, r, a);
break a;
}
- B = !0, n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : Wt(e, n, r);
+ z = !0, n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : Gt(e, n, r);
}
return;
}
- B = !0;
+ z = !0;
}
- function np(e, t, n) {
+ function $(e, t, n) {
switch (t) {
case "div":
case "span":
@@ -14684,7 +14684,7 @@ var cu = /* @__PURE__ */ m(((e) => {
case "p":
case "li": break;
case "img":
- $("error", e), $("load", e);
+ Z("error", e), Z("load", e);
var r = !1, a = !1, o;
for (o in n) if (n.hasOwnProperty(o)) {
var s = n[o];
@@ -14697,13 +14697,13 @@ var cu = /* @__PURE__ */ m(((e) => {
break;
case "children":
case "dangerouslySetInnerHTML": throw Error(i(137, t));
- default: ep(e, t, o, s, n, null);
+ default: Q(e, t, o, s, n, null);
}
}
- a && ep(e, t, "srcSet", n.srcSet, n, null), r && ep(e, t, "src", n.src, n, null);
+ a && Q(e, t, "srcSet", n.srcSet, n, null), r && Q(e, t, "src", n.src, n, null);
return;
case "input":
- $("invalid", e);
+ Z("invalid", e);
var c = o = s = a = null, l = null, u = null;
for (r in n) if (n.hasOwnProperty(r)) {
var d = n[r];
@@ -14730,13 +14730,13 @@ var cu = /* @__PURE__ */ m(((e) => {
case "dangerouslySetInnerHTML":
if (d != null) throw Error(i(137, t));
break;
- default: ep(e, t, r, d, n, null);
+ default: Q(e, t, r, d, n, null);
}
}
- en(e, o, c, l, u, s, a, !1);
+ tn(e, o, c, l, u, s, a, !1);
return;
case "select":
- for (a in $("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
+ for (a in Z("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
case "value":
o = c;
break;
@@ -14744,12 +14744,12 @@ var cu = /* @__PURE__ */ m(((e) => {
s = c;
break;
case "multiple": r = c;
- default: ep(e, t, a, c, n, null);
+ default: Q(e, t, a, c, n, null);
}
- t = o, n = s, e.multiple = !!r, t == null ? n != null && nn(e, !!r, n, !0) : nn(e, !!r, t, !1);
+ t = o, n = s, e.multiple = !!r, t == null ? n != null && rn(e, !!r, n, !0) : rn(e, !!r, t, !1);
return;
case "textarea":
- for (s in $("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
+ for (s in Z("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
case "value":
r = c;
break;
@@ -14762,38 +14762,38 @@ var cu = /* @__PURE__ */ m(((e) => {
case "dangerouslySetInnerHTML":
if (c != null) throw Error(i(91));
break;
- default: ep(e, t, s, c, n, null);
+ default: Q(e, t, s, c, n, null);
}
- an(e, r, a, o);
+ on(e, r, a, o);
return;
case "option":
for (l in n) if (n.hasOwnProperty(l) && (r = n[l], r != null)) switch (l) {
case "selected":
e.selected = r && typeof r != "function" && typeof r != "symbol";
break;
- default: ep(e, t, l, r, n, null);
+ default: Q(e, t, l, r, n, null);
}
return;
case "dialog":
- $("beforetoggle", e), $("toggle", e), $("cancel", e), $("close", e);
+ Z("beforetoggle", e), Z("toggle", e), Z("cancel", e), Z("close", e);
break;
case "iframe":
case "object":
- $("load", e);
+ Z("load", e);
break;
case "video":
case "audio":
- for (r = 0; r < Rf.length; r++) $(Rf[r], e);
+ for (r = 0; r < Bf.length; r++) Z(Bf[r], e);
break;
case "image":
- $("error", e), $("load", e);
+ Z("error", e), Z("load", e);
break;
case "details":
- $("toggle", e);
+ Z("toggle", e);
break;
case "embed":
case "source":
- case "link": $("error", e), $("load", e);
+ case "link": Z("error", e), Z("load", e);
case "area":
case "base":
case "br":
@@ -14808,15 +14808,15 @@ var cu = /* @__PURE__ */ m(((e) => {
for (u in n) if (n.hasOwnProperty(u) && (r = n[u], r != null)) switch (u) {
case "children":
case "dangerouslySetInnerHTML": throw Error(i(137, t));
- default: ep(e, t, u, r, n, null);
+ default: Q(e, t, u, r, n, null);
}
return;
- default: if (un(t)) {
- for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && tp(e, t, d, r, n, void 0));
+ default: if (dn(t)) {
+ for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && np(e, t, d, r, n, void 0));
return;
}
}
- for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && ep(e, t, c, r, n, null));
+ for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && Q(e, t, c, r, n, null));
}
var rp = {};
function ip(e, t, n, r) {
@@ -14837,90 +14837,90 @@ var cu = /* @__PURE__ */ m(((e) => {
case "checked": break;
case "value": break;
case "defaultValue": l = f;
- default: r.hasOwnProperty(m) || ep(e, t, m, null, r, f);
+ default: r.hasOwnProperty(m) || Q(e, t, m, null, r, f);
}
}
for (var p in r) {
var m = r[p];
if (f = n[p], r.hasOwnProperty(p) && (m != null || f != null)) switch (p) {
case "type":
- m !== f && (B = !0), o = m;
+ m !== f && (z = !0), o = m;
break;
case "name":
- m !== f && (B = !0), a = m;
+ m !== f && (z = !0), a = m;
break;
case "checked":
- m !== f && (B = !0), u = m;
+ m !== f && (z = !0), u = m;
break;
case "defaultChecked":
- m !== f && (B = !0), d = m;
+ m !== f && (z = !0), d = m;
break;
case "value":
- m !== f && (B = !0), s = m;
+ m !== f && (z = !0), s = m;
break;
case "defaultValue":
- m !== f && (B = !0), c = m;
+ m !== f && (z = !0), c = m;
break;
case "children":
case "dangerouslySetInnerHTML":
if (m != null) throw Error(i(137, t));
break;
- default: m !== f && ep(e, t, p, m, r, f);
+ default: m !== f && Q(e, t, p, m, r, f);
}
}
- $t(e, s, c, l, u, d, o, a);
+ en(e, s, c, l, u, d, o, a);
return;
case "select":
for (o in m = s = c = p = null, n) if (l = n[o], n.hasOwnProperty(o) && l != null) switch (o) {
case "value": break;
case "multiple": m = l;
- default: r.hasOwnProperty(o) || ep(e, t, o, null, r, l);
+ default: r.hasOwnProperty(o) || Q(e, t, o, null, r, l);
}
for (a in r) if (o = r[a], l = n[a], r.hasOwnProperty(a) && (o != null || l != null)) switch (a) {
case "value":
- o !== l && (B = !0), p = o;
+ o !== l && (z = !0), p = o;
break;
case "defaultValue":
- o !== l && (B = !0), c = o;
+ o !== l && (z = !0), c = o;
break;
- case "multiple": o !== l && (B = !0), s = o;
- default: o !== l && ep(e, t, a, o, r, l);
+ case "multiple": o !== l && (z = !0), s = o;
+ default: o !== l && Q(e, t, a, o, r, l);
}
- t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? nn(e, !!n, n ? [] : "", !1) : nn(e, !!n, t, !0)) : nn(e, !!n, p, !1);
+ t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? rn(e, !!n, n ? [] : "", !1) : rn(e, !!n, t, !0)) : rn(e, !!n, p, !1);
return;
case "textarea":
for (c in m = p = null, n) if (a = n[c], n.hasOwnProperty(c) && a != null && !r.hasOwnProperty(c)) switch (c) {
case "value": break;
case "children": break;
- default: ep(e, t, c, null, r, a);
+ default: Q(e, t, c, null, r, a);
}
for (s in r) if (a = r[s], o = n[s], r.hasOwnProperty(s) && (a != null || o != null)) switch (s) {
case "value":
- a !== o && (B = !0), p = a;
+ a !== o && (z = !0), p = a;
break;
case "defaultValue":
- a !== o && (B = !0), m = a;
+ a !== o && (z = !0), m = a;
break;
case "children": break;
case "dangerouslySetInnerHTML":
if (a != null) throw Error(i(91));
break;
- default: a !== o && ep(e, t, s, a, r, o);
+ default: a !== o && Q(e, t, s, a, r, o);
}
- rn(e, p, m);
+ an(e, p, m);
return;
case "option":
for (var h in n) if (p = n[h], n.hasOwnProperty(h) && p != null && !r.hasOwnProperty(h)) switch (h) {
case "selected":
e.selected = !1;
break;
- default: ep(e, t, h, null, r, p);
+ default: Q(e, t, h, null, r, p);
}
for (l in r) if (p = r[l], m = n[l], r.hasOwnProperty(l) && p !== m && (p != null || m != null)) switch (l) {
case "selected":
- p !== m && (B = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";
+ p !== m && (z = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";
break;
- default: ep(e, t, l, p, r, m);
+ default: Q(e, t, l, p, r, m);
}
return;
case "img":
@@ -14938,23 +14938,23 @@ var cu = /* @__PURE__ */ m(((e) => {
case "track":
case "wbr":
case "menuitem":
- for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && ep(e, t, g, null, r, p);
+ for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && Q(e, t, g, null, r, p);
for (u in r) if (p = r[u], m = n[u], r.hasOwnProperty(u) && p !== m && (p != null || m != null)) switch (u) {
case "children":
case "dangerouslySetInnerHTML":
if (p != null) throw Error(i(137, t));
break;
- default: ep(e, t, u, p, r, m);
+ default: Q(e, t, u, p, r, m);
}
return;
- default: if (un(t)) {
- for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && tp(e, t, _, void 0, r, p);
- for (d in r) p = r[d], m = n[d], !r.hasOwnProperty(d) || p === m || p === void 0 && m === void 0 || tp(e, t, d, p, r, m);
+ default: if (dn(t)) {
+ for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && np(e, t, _, void 0, r, p);
+ for (d in r) p = r[d], m = n[d], !r.hasOwnProperty(d) || p === m || p === void 0 && m === void 0 || np(e, t, d, p, r, m);
return;
}
}
- for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && ep(e, t, v, null, r, p);
- for (f in r) p = r[f], m = n[f], !r.hasOwnProperty(f) || p === m || p == null && m == null || ep(e, t, f, p, r, m);
+ for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && Q(e, t, v, null, r, p);
+ for (f in r) p = r[f], m = n[f], !r.hasOwnProperty(f) || p === m || p == null && m == null || Q(e, t, f, p, r, m);
}
function ap(e) {
switch (e) {
@@ -15006,7 +15006,7 @@ var cu = /* @__PURE__ */ m(((e) => {
return e === 1 && t === "foreignObject" ? 0 : e;
}
function fp(e, t, n, r) {
- return n = lp(n).createElement(e), n[St] = r, n[Ct] = t, np(n, e, t), R(n), n;
+ return n = lp(n).createElement(e), n[Ct] = r, n[wt] = t, $(n, e, t), L(n), n;
}
function pp(e, t) {
return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.children == "bigint" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null;
@@ -15044,7 +15044,7 @@ var cu = /* @__PURE__ */ m(((e) => {
n = e.ownerDocument.head, _m(n);
for (var a = n.firstChild; a;) {
var o = a.nextSibling, s = a.nodeName;
- a[Ot] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;
+ a[kt] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;
}
} else n === "body" && _m(e.ownerDocument.body);
}
@@ -15375,7 +15375,7 @@ var cu = /* @__PURE__ */ m(((e) => {
return s = r && a && o & Node.DOCUMENT_POSITION_FOLLOWING && s & Node.DOCUMENT_POSITION_PRECEDING, t = r && t === e || a && i === e || c || s ? Node.DOCUMENT_POSITION_CONTAINED_BY : !r && t === e || !a && i === e ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : o, t & Node.DOCUMENT_POSITION_DISCONNECTED || t & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC || Xp(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
};
function Xp(e, t, n, r, i) {
- var a = jt(i);
+ var a = Mt(i);
if (e & Node.DOCUMENT_POSITION_CONTAINED_BY) {
if (n = !!a) a: {
for (; a !== null;) {
@@ -15472,7 +15472,7 @@ var cu = /* @__PURE__ */ m(((e) => {
case "HTML":
case "HEAD":
case "BODY":
- nm(n), At(n);
+ nm(n), jt(n);
continue;
case "SCRIPT":
case "STYLE": continue;
@@ -15491,7 +15491,7 @@ var cu = /* @__PURE__ */ m(((e) => {
var a = i.name == null ? null : "" + i.name;
if (i.type === "hidden" && e.getAttribute("name") === a) return e;
} else return e;
- } else if (!e[Ot]) switch (t) {
+ } else if (!e[kt]) switch (t) {
case "meta":
if (!e.hasAttribute("itemprop")) break;
return e;
@@ -15613,13 +15613,13 @@ var cu = /* @__PURE__ */ m(((e) => {
function gm(e, t, n) {
for (var r in n) {
var i = n[r];
- n.hasOwnProperty(r) && i != null && ep(e, t, r, null, rp, i);
+ n.hasOwnProperty(r) && i != null && Q(e, t, r, null, rp, i);
}
- n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === mn && (e.onclick = null), At(e);
+ n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === hn && (e.onclick = null), jt(e);
}
function _m(e) {
for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);
- At(e);
+ jt(e);
}
var vm = /* @__PURE__ */ new Map(), ym = /* @__PURE__ */ new Set();
function bm(e) {
@@ -15629,8 +15629,8 @@ var cu = /* @__PURE__ */ m(((e) => {
}
return e.nodeType === 9 ? e : e.ownerDocument;
}
- var xm = I.d;
- I.d = {
+ var xm = F.d;
+ F.d = {
f: Sm,
r: Cm,
D: Em,
@@ -15642,23 +15642,23 @@ var cu = /* @__PURE__ */ m(((e) => {
M: Mm
};
function Sm() {
- var e = xm.f(), t = Ld();
+ var e = xm.f(), t = zd();
return e || t;
}
function Cm(e) {
- var t = Mt(e);
- t !== null && t.tag === 5 && t.type === "form" ? Qs(t) : xm.r(e);
+ var t = Nt(e);
+ t !== null && t.tag === 5 && t.type === "form" ? $s(t) : xm.r(e);
}
var wm = typeof document > "u" ? null : document;
function Tm(e, t, n) {
var r = wm;
if (r && typeof t == "string" && t) {
- var i = Qt(t);
+ var i = $t(t);
i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), ym.has(i) || (ym.add(i), e = {
rel: e,
crossOrigin: n,
href: t
- }, r.querySelector(i) === null && (t = r.createElement("link"), np(t, "link", e), R(t), r.head.appendChild(t)));
+ }, r.querySelector(i) === null && (t = r.createElement("link"), $(t, "link", e), L(t), r.head.appendChild(t)));
}
}
function Em(e) {
@@ -15671,8 +15671,8 @@ var cu = /* @__PURE__ */ m(((e) => {
xm.L(e, t, n);
var r = wm;
if (r && e && t) {
- var i = "link[rel=\"preload\"][as=\"" + Qt(t) + "\"]";
- t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + Qt(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + Qt(n.imageSizes) + "\"]")) : i += "[href=\"" + Qt(e) + "\"]";
+ var i = "link[rel=\"preload\"][as=\"" + $t(t) + "\"]";
+ t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + $t(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + $t(n.imageSizes) + "\"]")) : i += "[href=\"" + $t(e) + "\"]";
var a = i;
switch (t) {
case "style":
@@ -15686,9 +15686,9 @@ var cu = /* @__PURE__ */ m(((e) => {
as: t
}, n), vm.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Fm(a)) || t === "script" && r.querySelector(zm(a))))) {
var o = r.createElement("link");
- np(o, "link", e), t === "style" && (o[kt] = !0, o.onload = o.onerror = function() {
- Ft(o);
- }), R(o), r.head.appendChild(o);
+ $(o, "link", e), t === "style" && (o[At] = !0, o.onload = o.onerror = function() {
+ It(o);
+ }), L(o), r.head.appendChild(o);
}
}
}
@@ -15696,7 +15696,7 @@ var cu = /* @__PURE__ */ m(((e) => {
xm.m(e, t);
var n = wm;
if (n && e) {
- var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + Qt(r) + "\"][href=\"" + Qt(e) + "\"]", a = i;
+ var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + $t(r) + "\"][href=\"" + $t(e) + "\"]", a = i;
switch (r) {
case "audioworklet":
case "paintworklet":
@@ -15717,7 +15717,7 @@ var cu = /* @__PURE__ */ m(((e) => {
case "worker":
case "script": if (n.querySelector(zm(a))) return;
}
- r = n.createElement("link"), np(r, "link", e), R(r), n.head.appendChild(r);
+ r = n.createElement("link"), $(r, "link", e), L(r), n.head.appendChild(r);
}
}
}
@@ -15725,7 +15725,7 @@ var cu = /* @__PURE__ */ m(((e) => {
xm.S(e, t, n);
var r = wm;
if (r && e) {
- var i = Pt(r).hoistableStyles, a = Pm(e);
+ var i = Ft(r).hoistableStyles, a = Pm(e);
t ||= "default";
var o = i.get(a);
if (!o) {
@@ -15741,7 +15741,7 @@ var cu = /* @__PURE__ */ m(((e) => {
"data-precedence": t
}, n), (n = vm.get(a)) && Hm(e, n);
var c = o = r.createElement("link");
- R(c), np(c, "link", e), c._p = new Promise(function(e, t) {
+ L(c), $(c, "link", e), c._p = new Promise(function(e, t) {
c.onload = e, c.onerror = t;
}), c.addEventListener("load", function() {
s.loading |= 1;
@@ -15762,11 +15762,11 @@ var cu = /* @__PURE__ */ m(((e) => {
xm.X(e, t);
var n = wm;
if (n && e) {
- var r = Pt(n).hoistableScripts, i = Rm(e), a = r.get(i);
+ var r = Ft(n).hoistableScripts, i = Rm(e), a = r.get(i);
a || (a = n.querySelector(zm(i)), a || (e = T({
src: e,
async: !0
- }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), R(a), np(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), L(a), $(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -15778,12 +15778,12 @@ var cu = /* @__PURE__ */ m(((e) => {
xm.M(e, t);
var n = wm;
if (n && e) {
- var r = Pt(n).hoistableScripts, i = Rm(e), a = r.get(i);
+ var r = Ft(n).hoistableScripts, i = Rm(e), a = r.get(i);
a || (a = n.querySelector(zm(i)), a || (e = T({
src: e,
async: !0,
type: "module"
- }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), R(a), np(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), L(a), $(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -15792,12 +15792,12 @@ var cu = /* @__PURE__ */ m(((e) => {
}
}
function Nm(e, t, n, r) {
- var a = (a = Se.current) ? bm(a) : null;
+ var a = (a = Ce.current) ? bm(a) : null;
if (!a) throw Error(i(446));
switch (e) {
case "meta":
case "title": return null;
- case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Pm(n.href), t = Pt(a).hoistableStyles, r = t.get(n), r || (r = {
+ case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Pm(n.href), t = Ft(a).hoistableStyles, r = t.get(n), r || (r = {
type: "style",
instance: null,
count: 0,
@@ -15811,7 +15811,7 @@ var cu = /* @__PURE__ */ m(((e) => {
case "link":
if (n.rel === "stylesheet" && typeof n.href == "string" && typeof n.precedence == "string") {
e = Pm(n.href);
- var o = Pt(a).hoistableStyles, s = o.get(e);
+ var o = Ft(a).hoistableStyles, s = o.get(e);
if (s || (a = a.ownerDocument || a, s = {
type: "stylesheet",
instance: null,
@@ -15834,7 +15834,7 @@ var cu = /* @__PURE__ */ m(((e) => {
}
if (t && r !== null) throw Error(i(529, ""));
return null;
- case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (n = Rm(n), t = Pt(a).hoistableScripts, r = t.get(n), r || (r = {
+ case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (n = Rm(n), t = Ft(a).hoistableScripts, r = t.get(n), r || (r = {
type: "script",
instance: null,
count: 0,
@@ -15849,7 +15849,7 @@ var cu = /* @__PURE__ */ m(((e) => {
}
}
function Pm(e) {
- return "href=\"" + Qt(e) + "\"";
+ return "href=\"" + $t(e) + "\"";
}
function Fm(e) {
return "link[rel=\"stylesheet\"][" + e + "]";
@@ -15862,11 +15862,11 @@ var cu = /* @__PURE__ */ m(((e) => {
}
function Lm(e, t, n, r) {
if (t = e.querySelector("link[rel=\"preload\"][as=\"style\"][" + t + "]")) {
- if (!0 !== t[kt]) {
+ if (!0 !== t[At]) {
r.loading = 1;
return;
}
- } else t = e.createElement("link"), t[kt] = !0, t.onload = t.onerror = Ft.bind(null, t), np(t, "link", n), R(t), e.head.appendChild(t);
+ } else t = e.createElement("link"), t[At] = !0, t.onload = t.onerror = It.bind(null, t), $(t, "link", n), L(t), e.head.appendChild(t);
r.preload = t, t.addEventListener("load", function() {
return r.loading |= 1;
}), t.addEventListener("error", function() {
@@ -15874,7 +15874,7 @@ var cu = /* @__PURE__ */ m(((e) => {
});
}
function Rm(e) {
- return "[src=\"" + Qt(e) + "\"]";
+ return "[src=\"" + $t(e) + "\"]";
}
function zm(e) {
return "script[async]" + e;
@@ -15882,25 +15882,25 @@ var cu = /* @__PURE__ */ m(((e) => {
function Bm(e, t, n) {
if (t.count++, t.instance === null) switch (t.type) {
case "style":
- var r = e.querySelector("style[data-href~=\"" + Qt(n.href) + "\"]");
- if (r) return t.instance = r, R(r), r;
+ var r = e.querySelector("style[data-href~=\"" + $t(n.href) + "\"]");
+ if (r) return t.instance = r, L(r), r;
var a = T({}, n, {
"data-href": n.href,
"data-precedence": n.precedence,
href: null,
precedence: null
});
- return r = (e.ownerDocument || e).createElement("style"), R(r), np(r, "style", a), Vm(r, n.precedence, e), t.instance = r;
+ return r = (e.ownerDocument || e).createElement("style"), L(r), $(r, "style", a), Vm(r, n.precedence, e), t.instance = r;
case "stylesheet":
a = Pm(n.href);
var o = e.querySelector(Fm(a));
- if (o) return t.state.loading |= 4, t.instance = o, R(o), o;
- r = Im(n), (a = vm.get(a)) && Hm(r, a), o = (e.ownerDocument || e).createElement("link"), R(o);
+ if (o) return t.state.loading |= 4, t.instance = o, L(o), o;
+ r = Im(n), (a = vm.get(a)) && Hm(r, a), o = (e.ownerDocument || e).createElement("link"), L(o);
var s = o;
return s._p = new Promise(function(e, t) {
s.onload = e, s.onerror = t;
- }), np(o, "link", r), t.state.loading |= 4, Vm(o, n.precedence, e), t.instance = o;
- case "script": return o = Rm(n.src), (a = e.querySelector(zm(o))) ? (t.instance = a, R(a), a) : (r = n, (a = vm.get(o)) && (r = T({}, n), Um(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), R(a), np(a, "link", r), e.head.appendChild(a), t.instance = a);
+ }), $(o, "link", r), t.state.loading |= 4, Vm(o, n.precedence, e), t.instance = o;
+ case "script": return o = Rm(n.src), (a = e.querySelector(zm(o))) ? (t.instance = a, L(a), a) : (r = n, (a = vm.get(o)) && (r = T({}, n), Um(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), L(a), $(a, "link", r), e.head.appendChild(a), t.instance = a);
case "void": return null;
default: throw Error(i(443, t.type));
}
@@ -15930,7 +15930,7 @@ var cu = /* @__PURE__ */ m(((e) => {
if (r.has(e)) return r;
for (r.set(e, null), n = n.getElementsByTagName(e), i = 0; i < n.length; i++) {
var a = n[i];
- if (!(a[Ot] || a[St] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {
+ if (!(a[kt] || a[Ct] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {
var o = a.getAttribute(t) || "";
o = e + o;
var s = r.get(o);
@@ -15977,14 +15977,14 @@ var cu = /* @__PURE__ */ m(((e) => {
if (n.instance === null) {
var i = Pm(r.href), a = t.querySelector(Fm(i));
if (a) {
- t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = nh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, R(a);
+ t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = nh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, L(a);
return;
}
- a = t.ownerDocument || t, r = Im(r), (i = vm.get(i)) && Hm(r, i), a = a.createElement("link"), R(a);
+ a = t.ownerDocument || t, r = Im(r), (i = vm.get(i)) && Hm(r, i), a = a.createElement("link"), L(a);
var o = a;
o._p = new Promise(function(e, t) {
o.onload = e, o.onerror = t;
- }), np(a, "link", r), n.instance = a;
+ }), $(a, "link", r), n.instance = a;
}
e.stylesheets === null && (e.stylesheets = /* @__PURE__ */ new Map()), e.stylesheets.set(n, t), (t = n.state.preload) && !(n.state.loading & 3) && (e.count++, n = nh.bind(e), t.addEventListener("load", n), t.addEventListener("error", n));
}
@@ -16048,25 +16048,25 @@ var cu = /* @__PURE__ */ m(((e) => {
$$typeof: te,
Provider: null,
Consumer: null,
- _currentValue: me,
- _currentValue2: me,
+ _currentValue: he,
+ _currentValue2: he,
_threadCount: 0
};
function ch(e, t, n, r, i, a, o, s, c) {
- this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = dt(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = dt(0), this.hiddenUpdates = dt(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.transitionTypes = null, this.incompleteTransitions = /* @__PURE__ */ new Map();
+ this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = ft(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = ft(0), this.hiddenUpdates = ft(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.transitionTypes = null, this.incompleteTransitions = /* @__PURE__ */ new Map();
}
function lh(e, t, n, r, i, a, o, s, c, l, u, d) {
- return e = new ch(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = Oi(3, null, null, t), e.current = a, a.stateNode = e, t = Ea(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
+ return e = new ch(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = ki(3, null, null, t), e.current = a, a.stateNode = e, t = Da(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
element: r,
isDehydrated: n,
cache: t
- }, co(a), e;
+ }, lo(a), e;
}
function uh(e) {
- return e ? (e = Ei, e) : Ei;
+ return e ? (e = Di, e) : Di;
}
function dh(e, t, n, r, i, a) {
- i = uh(i), r.context === null ? r.context = i : r.pendingContext = i, r = uo(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = fo(e, r, t), n !== null && (Md(n, e, t), po(n, e, t));
+ i = uh(i), r.context === null ? r.context = i : r.pendingContext = i, r = fo(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = po(e, r, t), n !== null && (Pd(n, e, t), mo(n, e, t));
}
function fh(e, t) {
if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
@@ -16079,77 +16079,77 @@ var cu = /* @__PURE__ */ m(((e) => {
}
function mh(e) {
if (e.tag === 13 || e.tag === 31) {
- var t = Ci(e, 67108864);
- t !== null && Md(t, e, 67108864), ph(e, 67108864);
+ var t = wi(e, 67108864);
+ t !== null && Pd(t, e, 67108864), ph(e, 67108864);
}
}
function hh(e) {
if (e.tag === 13 || e.tag === 31) {
- var t = kd();
- t = _t(t);
- var n = Ci(e, t);
- n !== null && Md(n, e, t), ph(e, t);
+ var t = jd();
+ t = vt(t);
+ var n = wi(e, t);
+ n !== null && Pd(n, e, t), ph(e, t);
}
}
var gh = !0;
function _h(e, t, n, r) {
- var i = F.T;
- F.T = null;
- var a = I.p;
+ var i = P.T;
+ P.T = null;
+ var a = F.p;
try {
- I.p = 2, yh(e, t, n, r);
+ F.p = 2, yh(e, t, n, r);
} finally {
- I.p = a, F.T = i;
+ F.p = a, P.T = i;
}
}
function vh(e, t, n, r) {
- var i = F.T;
- F.T = null;
- var a = I.p;
+ var i = P.T;
+ P.T = null;
+ var a = F.p;
try {
- I.p = 8, yh(e, t, n, r);
+ F.p = 8, yh(e, t, n, r);
} finally {
- I.p = a, F.T = i;
+ F.p = a, P.T = i;
}
}
function yh(e, t, n, r) {
if (gh) {
var i = bh(r);
- if (i === null) Gf(e, t, r, xh, n), Mh(e, r);
+ if (i === null) qf(e, t, r, xh, n), Mh(e, r);
else if (Ph(i, e, t, n, r)) r.stopPropagation();
else if (Mh(e, r), t & 4 && -1 < jh.indexOf(e)) {
for (; i !== null;) {
- var a = Mt(i);
+ var a = Nt(i);
if (a !== null) switch (a.tag) {
case 3:
if (a = a.stateNode, a.current.memoizedState.isDehydrated) {
- var o = at(a.pendingLanes);
+ var o = ot(a.pendingLanes);
if (o !== 0) {
var s = a;
for (s.pendingLanes |= 2, s.entangledLanes |= 2; o;) {
- var c = 1 << 31 - Qe(o);
+ var c = 1 << 31 - $e(o);
s.entanglements[1] |= c, o &= ~c;
}
- Tf(a), !(q & 6) && (Z = Be() + 500, Ef(0, !1));
+ Df(a), !(ed & 6) && (vd = Ve() + 500, Of(0, !1));
}
}
break;
case 31:
- case 13: s = Ci(a, 2), s !== null && Md(s, a, 2), Ld(), ph(a, 2);
+ case 13: s = wi(a, 2), s !== null && Pd(s, a, 2), zd(), ph(a, 2);
}
- if (a = bh(r), a === null && Gf(e, t, r, xh, n), a === i) break;
+ if (a = bh(r), a === null && qf(e, t, r, xh, n), a === i) break;
i = a;
}
i !== null && r.stopPropagation();
- } else Gf(e, t, r, null, n);
+ } else qf(e, t, r, null, n);
}
}
function bh(e) {
- return e = gn(e), Sh(e);
+ return e = _n(e), Sh(e);
}
var xh = null;
function Sh(e) {
- if (xh = null, e = jt(e), e !== null) {
+ if (xh = null, e = Mt(e), e !== null) {
var t = o(e);
if (t === null) e = null;
else {
@@ -16242,12 +16242,12 @@ var cu = /* @__PURE__ */ m(((e) => {
case "mouseleave":
case "pointerenter":
case "pointerleave": return 8;
- case "message": switch (Ve()) {
- case He: return 2;
- case Ue: return 8;
- case We:
- case Ge: return 32;
- case Ke: return 268435456;
+ case "message": switch (He()) {
+ case Ue: return 2;
+ case We: return 8;
+ case Ge:
+ case Ke: return 32;
+ case qe: return 268435456;
default: return 32;
}
default: return 32;
@@ -16283,7 +16283,7 @@ var cu = /* @__PURE__ */ m(((e) => {
eventSystemFlags: r,
nativeEvent: a,
targetContainers: [i]
- }, t !== null && (t = Mt(t), t !== null && mh(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);
+ }, t !== null && (t = Nt(t), t !== null && mh(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);
}
function Ph(e, t, n, r, i) {
switch (t) {
@@ -16298,20 +16298,20 @@ var cu = /* @__PURE__ */ m(((e) => {
return !1;
}
function Fh(e) {
- var t = jt(e.target);
+ var t = Mt(e.target);
if (t !== null) {
var n = o(t);
if (n !== null) {
if (t = n.tag, t === 13) {
if (t = s(n), t !== null) {
- e.blockedOn = t, bt(e.priority, function() {
+ e.blockedOn = t, xt(e.priority, function() {
hh(n);
});
return;
}
} else if (t === 31) {
if (t = c(n), t !== null) {
- e.blockedOn = t, bt(e.priority, function() {
+ e.blockedOn = t, xt(e.priority, function() {
hh(n);
});
return;
@@ -16331,8 +16331,8 @@ var cu = /* @__PURE__ */ m(((e) => {
if (n === null) {
n = e.nativeEvent;
var r = new n.constructor(n.type, n);
- hn = r, n.target.dispatchEvent(r), hn = null;
- } else return t = Mt(n), t !== null && mh(t), e.blockedOn = n, !1;
+ gn = r, n.target.dispatchEvent(r), gn = null;
+ } else return t = Nt(n), t !== null && mh(t), e.blockedOn = n, !1;
t.shift();
}
return !0;
@@ -16356,8 +16356,8 @@ var cu = /* @__PURE__ */ m(((e) => {
if (Sh(r || n) === null) continue;
break;
}
- var a = Mt(n);
- a !== null && (e.splice(t, 3), t -= 3, Xs(a, {
+ var a = Nt(n);
+ a !== null && (e.splice(t, 3), t -= 3, Zs(a, {
pending: !0,
data: i,
method: n.method,
@@ -16377,12 +16377,12 @@ var cu = /* @__PURE__ */ m(((e) => {
}
for (; 0 < Ah.length && (n = Ah[0], n.blockedOn === null);) Fh(n), n.blockedOn === null && Ah.shift();
if (n = (e.ownerDocument || e).$$reactFormReplay, n != null) for (r = 0; r < n.length; r += 3) {
- var i = n[r], a = n[r + 1], o = i[Ct] || null;
+ var i = n[r], a = n[r + 1], o = i[wt] || null;
if (typeof a == "function") o || Vh(n);
else if (o) {
var s = null;
if (a && a.hasAttribute("formAction")) {
- if (i = a, o = a[Ct] || null) s = o.formAction;
+ if (i = a, o = a[wt] || null) s = o.formAction;
else if (Sh(i) !== null) continue;
} else s = o.action;
typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Vh(n);
@@ -16428,13 +16428,13 @@ var cu = /* @__PURE__ */ m(((e) => {
var t = this._internalRoot;
if (t === null) throw Error(i(409));
var n = t.current;
- dh(n, kd(), e, t, null, null);
+ dh(n, jd(), e, t, null, null);
}, Gh.prototype.unmount = Wh.prototype.unmount = function() {
var e = this._internalRoot;
if (e !== null) {
this._internalRoot = null;
var t = e.containerInfo;
- dh(e.current, 2, null, e, null, null), Ld(), t[wt] = null;
+ dh(e.current, 2, null, e, null, null), zd(), t[Tt] = null;
}
};
function Gh(e) {
@@ -16442,7 +16442,7 @@ var cu = /* @__PURE__ */ m(((e) => {
}
Gh.prototype.unstable_scheduleHydration = function(e) {
if (e) {
- var t = yt();
+ var t = bt();
e = {
blockedOn: null,
target: e,
@@ -16454,7 +16454,7 @@ var cu = /* @__PURE__ */ m(((e) => {
};
var Kh = n.version;
if (Kh !== "19.3.0") throw Error(i(527, Kh, "19.3.0"));
- I.findDOMNode = function(e) {
+ F.findDOMNode = function(e) {
var t = e._reactInternals;
if (t === void 0) throw typeof e.render == "function" ? Error(i(188)) : (e = Object.keys(e).join(","), Error(i(268, e)));
return e = u(t), e = e === null ? null : d(e), e = e === null ? null : e.stateNode, e;
@@ -16463,21 +16463,21 @@ var cu = /* @__PURE__ */ m(((e) => {
bundleType: 0,
version: "19.3.0",
rendererPackageName: "react-dom",
- currentDispatcherRef: F,
+ currentDispatcherRef: P,
reconcilerVersion: "19.3.0"
};
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
var Jh = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (!Jh.isDisabled && Jh.supportsFiber) try {
- Ye = Jh.inject(qh), Xe = Jh;
+ Xe = Jh.inject(qh), Ze = Jh;
} catch {}
}
e.createRoot = function(e, t) {
if (!a(e)) throw Error(i(299));
- var n = !1, r = "", o = yc, s = bc, c = xc;
- return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = lh(e, 1, !1, null, null, n, r, null, o, s, c, Uh), e[wt] = t.current, Uf(e), new Wh(t);
+ var n = !1, r = "", o = bc, s = xc, c = Sc;
+ return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = lh(e, 1, !1, null, null, n, r, null, o, s, c, Uh), e[Tt] = t.current, Gf(e), new Wh(t);
};
-})), du = (/* @__PURE__ */ m(((e, t) => {
+})), fu = (/* @__PURE__ */ m(((e, t) => {
function n() {
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);
@@ -16485,8 +16485,48 @@ var cu = /* @__PURE__ */ m(((e) => {
console.error(e);
}
}
- n(), t.exports = uu();
-})))(), fu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+ n(), t.exports = du();
+})))(), pu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, x.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), mu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, x.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), hu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, x.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), gu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, x.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), _u = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, x.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), vu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16494,7 +16534,7 @@ var cu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), pu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), yu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16502,7 +16542,7 @@ var cu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), mu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), bu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16510,7 +16550,7 @@ var cu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), hu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), xu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16518,7 +16558,7 @@ var cu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), gu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), Su = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16526,7 +16566,7 @@ var cu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), _u = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), Cu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16534,7 +16574,7 @@ var cu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), vu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), wu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16542,100 +16582,108 @@ var cu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), yu = (e, t) => {
+}, x.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), Tu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, x.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), Eu = (e, t) => {
let n = Array(e.length + t.length);
for (let t = 0; t < e.length; t++) n[t] = e[t];
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
return n;
-}, bu = (e, t) => ({
+}, Du = (e, t) => ({
classGroupId: e,
validator: t
-}), xu = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), Ou = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), Su = "-", Cu = [], wu = "arbitrary..", Tu = (e) => {
- let t = Ou(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), ku = "-", Au = [], ju = "arbitrary..", Mu = (e) => {
+ let t = Fu(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return Du(e);
- let n = e.split(Su);
- return Eu(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return Pu(e);
+ let n = e.split(ku);
+ return Nu(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? yu(i, t) : t : i || Cu;
+ return t ? i ? Eu(i, t) : t : i || Au;
}
- return n[e] || Cu;
+ return n[e] || Au;
}
};
-}, Eu = (e, t, n) => {
+}, Nu = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = Eu(e, t + 1, i);
+ let n = Nu(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(Su) : e.slice(t).join(Su), s = a.length;
+ let o = t === 0 ? e.join(ku) : e.slice(t).join(ku), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, Du = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, Pu = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
- return r ? wu + r : void 0;
-})(), Ou = (e) => {
+ return r ? ju + r : void 0;
+})(), Fu = (e) => {
let { theme: t, classGroups: n } = e;
- return ku(n, t);
-}, ku = (e, t) => {
- let n = xu();
+ return Iu(n, t);
+}, Iu = (e, t) => {
+ let n = Ou();
for (let r in e) {
let i = e[r];
- Au(i, n, r, t);
+ Lu(i, n, r, t);
}
return n;
-}, Au = (e, t, n, r) => {
+}, Lu = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- ju(i, t, n, r);
+ Ru(i, t, n, r);
}
-}, ju = (e, t, n, r) => {
+}, Ru = (e, t, n, r) => {
if (typeof e == "string") {
- Mu(e, t, n);
+ zu(e, t, n);
return;
}
if (typeof e == "function") {
- Nu(e, t, n, r);
+ Bu(e, t, n, r);
return;
}
- Pu(e, t, n, r);
-}, Mu = (e, t, n) => {
- let r = e === "" ? t : Fu(t, e);
+ Vu(e, t, n, r);
+}, zu = (e, t, n) => {
+ let r = e === "" ? t : Hu(t, e);
r.classGroupId = n;
-}, Nu = (e, t, n, r) => {
- if (Iu(e)) {
- Au(e(r), t, n, r);
+}, Bu = (e, t, n, r) => {
+ if (Uu(e)) {
+ Lu(e(r), t, n, r);
return;
}
- t.validators === null && (t.validators = []), t.validators.push(bu(n, e));
-}, Pu = (e, t, n, r) => {
+ t.validators === null && (t.validators = []), t.validators.push(Du(n, e));
+}, Vu = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- Au(o, Fu(t, a), n, r);
+ Lu(o, Hu(t, a), n, r);
}
-}, Fu = (e, t) => {
- let n = e, r = t.split(Su), i = r.length;
+}, Hu = (e, t) => {
+ let n = e, r = t.split(ku), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = xu(), n.nextPart.set(t, i)), n = i;
+ i || (i = Ou(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, Iu = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Lu = (e) => {
+}, Uu = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Wu = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -16653,19 +16701,19 @@ var cu = /* @__PURE__ */ m(((e) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, Ru = "!", zu = ":", Bu = [], Vu = (e, t, n, r, i) => ({
+}, Gu = "!", Ku = ":", qu = [], Ju = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), Hu = (e) => {
+}), Yu = (e) => {
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
for (let s = 0; s < o; s++) {
let o = e[s];
if (n === 0 && r === 0) {
- if (o === zu) {
+ if (o === Ku) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -16677,13 +16725,13 @@ var cu = /* @__PURE__ */ m(((e) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(Ru) ? (c = s.slice(0, -1), l = !0) : s.startsWith(Ru) && (c = s.slice(1), l = !0);
+ s.endsWith(Gu) ? (c = s.slice(0, -1), l = !0) : s.startsWith(Gu) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return Vu(t, l, c, u);
+ return Ju(t, l, c, u);
};
if (t) {
- let e = t + zu, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Vu(Bu, !1, t, void 0, !0);
+ let e = t + Ku, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Ju(qu, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -16693,7 +16741,7 @@ var cu = /* @__PURE__ */ m(((e) => {
});
}
return r;
-}, Uu = (e) => {
+}, Xu = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -16705,18 +16753,18 @@ var cu = /* @__PURE__ */ m(((e) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, Wu = (e) => ({
- cache: Lu(e.cacheSize),
- parseClassName: Hu(e),
- sortModifiers: Uu(e),
- postfixLookupClassGroupIds: Gu(e),
- ...Tu(e)
-}), Gu = (e) => {
+}, Zu = (e) => ({
+ cache: Wu(e.cacheSize),
+ parseClassName: Yu(e),
+ sortModifiers: Xu(e),
+ postfixLookupClassGroupIds: Qu(e),
+ ...Mu(e)
+}), Qu = (e) => {
let t = Object.create(null), n = e.postfixLookupClassGroups;
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
return t;
-}, Ku = /\s+/, qu = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Ku), l = "";
+}, $u = /\s+/, ed = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split($u), l = "";
for (let e = c.length - 1; e >= 0; --e) {
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
if (u) {
@@ -16740,7 +16788,7 @@ var cu = /* @__PURE__ */ m(((e) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + Ru : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + Gu : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -16751,34 +16799,34 @@ var cu = /* @__PURE__ */ m(((e) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, Ju = (...e) => {
+}, td = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = Yu(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = K(n)) && (i && (i += " "), i += r);
return i;
-}, Yu = (e) => {
+}, K = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = Yu(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = K(e[r])) && (n && (n += " "), n += t);
return n;
-}, Xu = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = Wu(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, q = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = Zu(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
let t = r(e);
if (t) return t;
- let a = qu(e, n);
+ let a = ed(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(Ju(...e));
-}, Zu = [], Qu = (e) => {
- let t = (t) => t[e] || Zu;
+ return a = o, (...e) => a(td(...e));
+}, nd = [], rd = (e) => {
+ let t = (t) => t[e] || nd;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, q = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, $u = /^\((?:(\w[\w-]*):)?(.+)\)$/i, J = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Y = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ed = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, td = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, nd = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, rd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, id = (e) => J.test(e), X = (e) => !!e && !Number.isNaN(Number(e)), ad = (e) => !!e && Number.isInteger(Number(e)), od = (e) => e.endsWith("%") && X(e.slice(0, -1)), sd = (e) => Y.test(e), cd = () => !0, ld = (e) => ed.test(e) && !td.test(e), ud = () => !1, dd = (e) => nd.test(e), fd = (e) => rd.test(e), pd = (e) => !Z(e) && !Q(e), md = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), hd = (e) => Ad(e, Pd, ud), Z = (e) => q.test(e), gd = (e) => Ad(e, Fd, ld), _d = (e) => Ad(e, Id, X), vd = (e) => Ad(e, Rd, cd), yd = (e) => Ad(e, Ld, ud), bd = (e) => Ad(e, Md, ud), xd = (e) => Ad(e, Nd, fd), Sd = (e) => Ad(e, zd, dd), Q = (e) => $u.test(e), Cd = (e) => jd(e, Fd), wd = (e) => jd(e, Ld), Td = (e) => jd(e, Md), Ed = (e) => jd(e, Pd), Dd = (e) => jd(e, Nd), Od = (e) => jd(e, zd, !0), kd = (e) => jd(e, Rd, !0), Ad = (e, t, n) => {
- let r = q.exec(e);
+}, id = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ad = /^\((?:(\w[\w-]*):)?(.+)\)$/i, od = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, sd = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, cd = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ld = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, ud = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, dd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, fd = (e) => od.test(e), J = (e) => !!e && !Number.isNaN(Number(e)), pd = (e) => !!e && Number.isInteger(Number(e)), md = (e) => e.endsWith("%") && J(e.slice(0, -1)), hd = (e) => sd.test(e), gd = () => !0, _d = (e) => cd.test(e) && !ld.test(e), vd = () => !1, yd = (e) => ud.test(e), bd = (e) => dd.test(e), xd = (e) => !Y(e) && !X(e), Sd = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Cd = (e) => Rd(e, Hd, vd), Y = (e) => id.test(e), wd = (e) => Rd(e, Ud, _d), Td = (e) => Rd(e, Wd, J), Ed = (e) => Rd(e, Kd, gd), Dd = (e) => Rd(e, Gd, vd), Od = (e) => Rd(e, Bd, vd), kd = (e) => Rd(e, Vd, bd), Ad = (e) => Rd(e, qd, yd), X = (e) => ad.test(e), jd = (e) => zd(e, Ud), Md = (e) => zd(e, Gd), Nd = (e) => zd(e, Bd), Pd = (e) => zd(e, Hd), Fd = (e) => zd(e, Vd), Id = (e) => zd(e, qd, !0), Ld = (e) => zd(e, Kd, !0), Rd = (e, t, n) => {
+ let r = id.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, jd = (e, t, n = !1) => {
- let r = $u.exec(e);
+}, zd = (e, t, n = !1) => {
+ let r = ad.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, Md = (e) => e === "position" || e === "percentage", Nd = (e) => e === "image" || e === "url", Pd = (e) => e === "length" || e === "size" || e === "bg-size", Fd = (e) => e === "length", Id = (e) => e === "number", Ld = (e) => e === "family-name", Rd = (e) => e === "number" || e === "weight", zd = (e) => e === "shadow", Bd = () => {
- let e = Qu("color"), t = Qu("font"), n = Qu("text"), r = Qu("font-weight"), i = Qu("tracking"), a = Qu("leading"), o = Qu("breakpoint"), s = Qu("container"), c = Qu("spacing"), l = Qu("radius"), u = Qu("shadow"), d = Qu("inset-shadow"), f = Qu("text-shadow"), p = Qu("drop-shadow"), m = Qu("blur"), h = Qu("perspective"), g = Qu("aspect"), _ = Qu("ease"), v = Qu("animate"), y = () => [
+}, Bd = (e) => e === "position" || e === "percentage", Vd = (e) => e === "image" || e === "url", Hd = (e) => e === "length" || e === "size" || e === "bg-size", Ud = (e) => e === "length", Wd = (e) => e === "number", Gd = (e) => e === "family-name", Kd = (e) => e === "number" || e === "weight", qd = (e) => e === "shadow", Jd = () => {
+ let e = rd("color"), t = rd("font"), n = rd("text"), r = rd("font-weight"), i = rd("tracking"), a = rd("leading"), o = rd("breakpoint"), s = rd("container"), c = rd("spacing"), l = rd("radius"), u = rd("shadow"), d = rd("inset-shadow"), f = rd("text-shadow"), p = rd("drop-shadow"), m = rd("blur"), h = rd("perspective"), g = rd("aspect"), _ = rd("ease"), v = rd("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -16803,8 +16851,8 @@ var cu = /* @__PURE__ */ m(((e) => {
"left-bottom"
], x = () => [
...b(),
- Q,
- Z
+ X,
+ Y
], S = () => [
"auto",
"hidden",
@@ -16816,43 +16864,43 @@ var cu = /* @__PURE__ */ m(((e) => {
"contain",
"none"
], w = () => [
- Q,
- Z,
+ X,
+ Y,
c
], T = () => [
- id,
+ fd,
"full",
"auto",
...w()
], E = () => [
- ad,
+ pd,
"none",
"subgrid",
- Q,
- Z
+ X,
+ Y
], D = () => [
"auto",
{ span: [
"full",
- ad,
- Q,
- Z
+ pd,
+ X,
+ Y
] },
- ad,
- Q,
- Z
+ pd,
+ X,
+ Y
], O = () => [
- ad,
+ pd,
"auto",
- Q,
- Z
+ X,
+ Y
], k = () => [
"auto",
"min",
"max",
"fr",
- Q,
- Z
+ X,
+ Y
], A = () => [
"start",
"end",
@@ -16872,7 +16920,7 @@ var cu = /* @__PURE__ */ m(((e) => {
"center-safe",
"end-safe"
], j = () => ["auto", ...w()], te = () => [
- id,
+ fd,
"auto",
"full",
"dvw",
@@ -16887,7 +16935,7 @@ var cu = /* @__PURE__ */ m(((e) => {
...w()
], M = () => [
s,
- id,
+ fd,
"screen",
"full",
"dvw",
@@ -16898,7 +16946,7 @@ var cu = /* @__PURE__ */ m(((e) => {
"fit",
...w()
], ne = () => [
- id,
+ fd,
"screen",
"full",
"lh",
@@ -16911,48 +16959,48 @@ var cu = /* @__PURE__ */ m(((e) => {
...w()
], N = () => [
e,
- Q,
- Z
+ X,
+ Y
], re = () => [
...b(),
- Td,
- bd,
- { position: [Q, Z] }
- ], P = () => ["no-repeat", { repeat: [
+ Nd,
+ Od,
+ { position: [X, Y] }
+ ], ie = () => ["no-repeat", { repeat: [
"",
"x",
"y",
"space",
"round"
- ] }], ie = () => [
+ ] }], ae = () => [
"auto",
"cover",
"contain",
- Ed,
- hd,
- { size: [Q, Z] }
- ], ae = () => [
- od,
+ Pd,
Cd,
- gd
+ { size: [X, Y] }
], oe = () => [
+ md,
+ jd,
+ wd
+ ], se = () => [
"",
"none",
"full",
l,
- Q,
- Z
- ], se = () => [
- "",
X,
- Cd,
- gd
+ Y
], ce = () => [
+ "",
+ J,
+ jd,
+ wd
+ ], le = () => [
"solid",
"dashed",
"dotted",
"double"
- ], le = () => [
+ ], ue = () => [
"normal",
"multiply",
"screen",
@@ -16969,33 +17017,33 @@ var cu = /* @__PURE__ */ m(((e) => {
"saturation",
"color",
"luminosity"
- ], ue = () => [
- X,
- od,
- Td,
- bd
], de = () => [
+ J,
+ md,
+ Nd,
+ Od
+ ], fe = () => [
"",
"none",
m,
- Q,
- Z
- ], fe = () => [
- "none",
X,
- Q,
- Z
+ Y
], pe = () => [
"none",
+ J,
X,
- Q,
- Z
- ], F = () => [
+ Y
+ ], me = () => [
+ "none",
+ J,
+ X,
+ Y
+ ], P = () => [
+ J,
X,
- Q,
- Z
- ], I = () => [
- id,
+ Y
+ ], F = () => [
+ fd,
"full",
...w()
];
@@ -17009,17 +17057,17 @@ var cu = /* @__PURE__ */ m(((e) => {
"bounce"
],
aspect: ["video"],
- blur: [sd],
- breakpoint: [sd],
- color: [cd],
- container: [sd],
- "drop-shadow": [sd],
+ blur: [hd],
+ breakpoint: [hd],
+ color: [gd],
+ container: [hd],
+ "drop-shadow": [hd],
ease: [
"in",
"out",
"in-out"
],
- font: [pd],
+ font: [xd],
"font-weight": [
"thin",
"extralight",
@@ -17031,7 +17079,7 @@ var cu = /* @__PURE__ */ m(((e) => {
"extrabold",
"black"
],
- "inset-shadow": [sd],
+ "inset-shadow": [hd],
leading: [
"none",
"tight",
@@ -17048,11 +17096,11 @@ var cu = /* @__PURE__ */ m(((e) => {
"distant",
"none"
],
- radius: [sd],
- shadow: [sd],
- spacing: ["px", X],
- text: [sd],
- "text-shadow": [sd],
+ radius: [hd],
+ shadow: [hd],
+ spacing: ["px", J],
+ text: [hd],
+ "text-shadow": [hd],
tracking: [
"tighter",
"tight",
@@ -17066,9 +17114,9 @@ var cu = /* @__PURE__ */ m(((e) => {
aspect: [{ aspect: [
"auto",
"square",
- id,
- Z,
- Q,
+ fd,
+ Y,
+ X,
g
] }],
container: ["container"],
@@ -17076,15 +17124,15 @@ var cu = /* @__PURE__ */ m(((e) => {
"",
"normal",
"size",
- Q,
- Z
+ X,
+ Y
] }],
- "container-named": [md],
+ "container-named": [Sd],
columns: [{ columns: [
- X,
+ J,
"auto",
- Z,
- Q,
+ Y,
+ X,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -17181,13 +17229,13 @@ var cu = /* @__PURE__ */ m(((e) => {
"collapse"
],
z: [{ z: [
- ad,
+ pd,
"auto",
- Q,
- Z
+ X,
+ Y
] }],
basis: [{ basis: [
- id,
+ fd,
"full",
"auto",
s,
@@ -17205,32 +17253,32 @@ var cu = /* @__PURE__ */ m(((e) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- X,
- id,
+ J,
+ fd,
"auto",
"initial",
"none",
- Z
+ Y
] }],
grow: [{ grow: [
"",
+ J,
X,
- Q,
- Z
+ Y
] }],
shrink: [{ shrink: [
"",
+ J,
X,
- Q,
- Z
+ Y
] }],
order: [{ order: [
- ad,
+ pd,
"first",
"last",
"none",
- Q,
- Z
+ X,
+ Y
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -17337,15 +17385,15 @@ var cu = /* @__PURE__ */ m(((e) => {
"font-size": [{ text: [
"base",
n,
- Cd,
- gd
+ jd,
+ wd
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- kd,
- vd
+ Ld,
+ Ed
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -17357,15 +17405,15 @@ var cu = /* @__PURE__ */ m(((e) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- od,
- Z
+ md,
+ Y
] }],
"font-family": [{ font: [
- wd,
- yd,
+ Md,
+ Dd,
t
] }],
- "font-features": [{ "font-features": [Z] }],
+ "font-features": [{ "font-features": [Y] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -17374,14 +17422,14 @@ var cu = /* @__PURE__ */ m(((e) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- Q,
- Z
+ X,
+ Y
] }],
"line-clamp": [{ "line-clamp": [
- X,
+ J,
"none",
- Q,
- _d
+ X,
+ Td
] }],
leading: [{ leading: [
"none",
@@ -17390,16 +17438,16 @@ var cu = /* @__PURE__ */ m(((e) => {
] }],
"list-image": [{ "list-image": [
"none",
- Q,
- Z
+ X,
+ Y
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- Q,
- Z
+ X,
+ Y
] }],
"text-alignment": [{ text: [
"left",
@@ -17417,20 +17465,20 @@ var cu = /* @__PURE__ */ m(((e) => {
"line-through",
"no-underline"
],
- "text-decoration-style": [{ decoration: [...ce(), "wavy"] }],
+ "text-decoration-style": [{ decoration: [...le(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- X,
+ J,
"from-font",
"auto",
- Q,
- gd
+ X,
+ wd
] }],
"text-decoration-color": [{ decoration: N() }],
"underline-offset": [{ "underline-offset": [
- X,
+ J,
"auto",
- Q,
- Z
+ X,
+ Y
] }],
"text-transform": [
"uppercase",
@@ -17451,9 +17499,9 @@ var cu = /* @__PURE__ */ m(((e) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- ad,
- Q,
- Z
+ pd,
+ X,
+ Y
] }],
"vertical-align": [{ align: [
"baseline",
@@ -17464,8 +17512,8 @@ var cu = /* @__PURE__ */ m(((e) => {
"text-bottom",
"sub",
"super",
- Q,
- Z
+ X,
+ Y
] }],
whitespace: [{ whitespace: [
"normal",
@@ -17493,8 +17541,8 @@ var cu = /* @__PURE__ */ m(((e) => {
] }],
content: [{ content: [
"none",
- Q,
- Z
+ X,
+ Y
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -17513,8 +17561,8 @@ var cu = /* @__PURE__ */ m(((e) => {
"content"
] }],
"bg-position": [{ bg: re() }],
- "bg-repeat": [{ bg: P() }],
- "bg-size": [{ bg: ie() }],
+ "bg-repeat": [{ bg: ie() }],
+ "bg-size": [{ bg: ae() }],
"bg-image": [{ bg: [
"none",
{
@@ -17529,69 +17577,69 @@ var cu = /* @__PURE__ */ m(((e) => {
"l",
"tl"
] },
- ad,
- Q,
- Z
+ pd,
+ X,
+ Y
],
radial: [
"",
- Q,
- Z
+ X,
+ Y
],
conic: [
"",
- ad,
- Q,
- Z
+ pd,
+ X,
+ Y
]
},
- Dd,
- xd
+ Fd,
+ kd
] }],
"bg-color": [{ bg: N() }],
- "gradient-from-pos": [{ from: ae() }],
- "gradient-via-pos": [{ via: ae() }],
- "gradient-to-pos": [{ to: ae() }],
+ "gradient-from-pos": [{ from: oe() }],
+ "gradient-via-pos": [{ via: oe() }],
+ "gradient-to-pos": [{ to: oe() }],
"gradient-from": [{ from: N() }],
"gradient-via": [{ via: N() }],
"gradient-to": [{ to: N() }],
- rounded: [{ rounded: oe() }],
- "rounded-s": [{ "rounded-s": oe() }],
- "rounded-e": [{ "rounded-e": oe() }],
- "rounded-t": [{ "rounded-t": oe() }],
- "rounded-r": [{ "rounded-r": oe() }],
- "rounded-b": [{ "rounded-b": oe() }],
- "rounded-l": [{ "rounded-l": oe() }],
- "rounded-ss": [{ "rounded-ss": oe() }],
- "rounded-se": [{ "rounded-se": oe() }],
- "rounded-ee": [{ "rounded-ee": oe() }],
- "rounded-es": [{ "rounded-es": oe() }],
- "rounded-tl": [{ "rounded-tl": oe() }],
- "rounded-tr": [{ "rounded-tr": oe() }],
- "rounded-br": [{ "rounded-br": oe() }],
- "rounded-bl": [{ "rounded-bl": oe() }],
- "border-w": [{ border: se() }],
- "border-w-x": [{ "border-x": se() }],
- "border-w-y": [{ "border-y": se() }],
- "border-w-s": [{ "border-s": se() }],
- "border-w-e": [{ "border-e": se() }],
- "border-w-bs": [{ "border-bs": se() }],
- "border-w-be": [{ "border-be": se() }],
- "border-w-t": [{ "border-t": se() }],
- "border-w-r": [{ "border-r": se() }],
- "border-w-b": [{ "border-b": se() }],
- "border-w-l": [{ "border-l": se() }],
- "divide-x": [{ "divide-x": se() }],
+ rounded: [{ rounded: se() }],
+ "rounded-s": [{ "rounded-s": se() }],
+ "rounded-e": [{ "rounded-e": se() }],
+ "rounded-t": [{ "rounded-t": se() }],
+ "rounded-r": [{ "rounded-r": se() }],
+ "rounded-b": [{ "rounded-b": se() }],
+ "rounded-l": [{ "rounded-l": se() }],
+ "rounded-ss": [{ "rounded-ss": se() }],
+ "rounded-se": [{ "rounded-se": se() }],
+ "rounded-ee": [{ "rounded-ee": se() }],
+ "rounded-es": [{ "rounded-es": se() }],
+ "rounded-tl": [{ "rounded-tl": se() }],
+ "rounded-tr": [{ "rounded-tr": se() }],
+ "rounded-br": [{ "rounded-br": se() }],
+ "rounded-bl": [{ "rounded-bl": se() }],
+ "border-w": [{ border: ce() }],
+ "border-w-x": [{ "border-x": ce() }],
+ "border-w-y": [{ "border-y": ce() }],
+ "border-w-s": [{ "border-s": ce() }],
+ "border-w-e": [{ "border-e": ce() }],
+ "border-w-bs": [{ "border-bs": ce() }],
+ "border-w-be": [{ "border-be": ce() }],
+ "border-w-t": [{ "border-t": ce() }],
+ "border-w-r": [{ "border-r": ce() }],
+ "border-w-b": [{ "border-b": ce() }],
+ "border-w-l": [{ "border-l": ce() }],
+ "divide-x": [{ "divide-x": ce() }],
"divide-x-reverse": ["divide-x-reverse"],
- "divide-y": [{ "divide-y": se() }],
+ "divide-y": [{ "divide-y": ce() }],
"divide-y-reverse": ["divide-y-reverse"],
"border-style": [{ border: [
- ...ce(),
+ ...le(),
"hidden",
"none"
] }],
"divide-style": [{ divide: [
- ...ce(),
+ ...le(),
"hidden",
"none"
] }],
@@ -17608,20 +17656,20 @@ var cu = /* @__PURE__ */ m(((e) => {
"border-color-l": [{ "border-l": N() }],
"divide-color": [{ divide: N() }],
"outline-style": [{ outline: [
- ...ce(),
+ ...le(),
"none",
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
+ J,
X,
- Q,
- Z
+ Y
] }],
"outline-w": [{ outline: [
"",
- X,
- Cd,
- gd
+ J,
+ jd,
+ wd
] }],
"outline-color": [{ outline: N() }],
shadow: [{ shadow: [
@@ -17629,42 +17677,42 @@ var cu = /* @__PURE__ */ m(((e) => {
"inner",
"none",
u,
- Od,
- Sd
+ Id,
+ Ad
] }],
"shadow-color": [{ shadow: N() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- Od,
- Sd
+ Id,
+ Ad
] }],
"inset-shadow-color": [{ "inset-shadow": N() }],
- "ring-w": [{ ring: se() }],
+ "ring-w": [{ ring: ce() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: N() }],
- "ring-offset-w": [{ "ring-offset": [X, gd] }],
+ "ring-offset-w": [{ "ring-offset": [J, wd] }],
"ring-offset-color": [{ "ring-offset": N() }],
- "inset-ring-w": [{ "inset-ring": se() }],
+ "inset-ring-w": [{ "inset-ring": ce() }],
"inset-ring-color": [{ "inset-ring": N() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- Od,
- Sd
+ Id,
+ Ad
] }],
"text-shadow-color": [{ "text-shadow": N() }],
opacity: [{ opacity: [
+ J,
X,
- Q,
- Z
+ Y
] }],
"mix-blend": [{ "mix-blend": [
- ...le(),
+ ...ue(),
"plus-darker",
"plus-lighter"
] }],
- "bg-blend": [{ "bg-blend": le() }],
+ "bg-blend": [{ "bg-blend": ue() }],
"mask-clip": [{ "mask-clip": [
"border",
"padding",
@@ -17679,38 +17727,38 @@ var cu = /* @__PURE__ */ m(((e) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [X] }],
- "mask-image-linear-from-pos": [{ "mask-linear-from": ue() }],
- "mask-image-linear-to-pos": [{ "mask-linear-to": ue() }],
+ "mask-image-linear-pos": [{ "mask-linear": [J] }],
+ "mask-image-linear-from-pos": [{ "mask-linear-from": de() }],
+ "mask-image-linear-to-pos": [{ "mask-linear-to": de() }],
"mask-image-linear-from-color": [{ "mask-linear-from": N() }],
"mask-image-linear-to-color": [{ "mask-linear-to": N() }],
- "mask-image-t-from-pos": [{ "mask-t-from": ue() }],
- "mask-image-t-to-pos": [{ "mask-t-to": ue() }],
+ "mask-image-t-from-pos": [{ "mask-t-from": de() }],
+ "mask-image-t-to-pos": [{ "mask-t-to": de() }],
"mask-image-t-from-color": [{ "mask-t-from": N() }],
"mask-image-t-to-color": [{ "mask-t-to": N() }],
- "mask-image-r-from-pos": [{ "mask-r-from": ue() }],
- "mask-image-r-to-pos": [{ "mask-r-to": ue() }],
+ "mask-image-r-from-pos": [{ "mask-r-from": de() }],
+ "mask-image-r-to-pos": [{ "mask-r-to": de() }],
"mask-image-r-from-color": [{ "mask-r-from": N() }],
"mask-image-r-to-color": [{ "mask-r-to": N() }],
- "mask-image-b-from-pos": [{ "mask-b-from": ue() }],
- "mask-image-b-to-pos": [{ "mask-b-to": ue() }],
+ "mask-image-b-from-pos": [{ "mask-b-from": de() }],
+ "mask-image-b-to-pos": [{ "mask-b-to": de() }],
"mask-image-b-from-color": [{ "mask-b-from": N() }],
"mask-image-b-to-color": [{ "mask-b-to": N() }],
- "mask-image-l-from-pos": [{ "mask-l-from": ue() }],
- "mask-image-l-to-pos": [{ "mask-l-to": ue() }],
+ "mask-image-l-from-pos": [{ "mask-l-from": de() }],
+ "mask-image-l-to-pos": [{ "mask-l-to": de() }],
"mask-image-l-from-color": [{ "mask-l-from": N() }],
"mask-image-l-to-color": [{ "mask-l-to": N() }],
- "mask-image-x-from-pos": [{ "mask-x-from": ue() }],
- "mask-image-x-to-pos": [{ "mask-x-to": ue() }],
+ "mask-image-x-from-pos": [{ "mask-x-from": de() }],
+ "mask-image-x-to-pos": [{ "mask-x-to": de() }],
"mask-image-x-from-color": [{ "mask-x-from": N() }],
"mask-image-x-to-color": [{ "mask-x-to": N() }],
- "mask-image-y-from-pos": [{ "mask-y-from": ue() }],
- "mask-image-y-to-pos": [{ "mask-y-to": ue() }],
+ "mask-image-y-from-pos": [{ "mask-y-from": de() }],
+ "mask-image-y-to-pos": [{ "mask-y-to": de() }],
"mask-image-y-from-color": [{ "mask-y-from": N() }],
"mask-image-y-to-color": [{ "mask-y-to": N() }],
- "mask-image-radial": [{ "mask-radial": [Q, Z] }],
- "mask-image-radial-from-pos": [{ "mask-radial-from": ue() }],
- "mask-image-radial-to-pos": [{ "mask-radial-to": ue() }],
+ "mask-image-radial": [{ "mask-radial": [X, Y] }],
+ "mask-image-radial-from-pos": [{ "mask-radial-from": de() }],
+ "mask-image-radial-to-pos": [{ "mask-radial-to": de() }],
"mask-image-radial-from-color": [{ "mask-radial-from": N() }],
"mask-image-radial-to-color": [{ "mask-radial-to": N() }],
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
@@ -17719,9 +17767,9 @@ var cu = /* @__PURE__ */ m(((e) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [X] }],
- "mask-image-conic-from-pos": [{ "mask-conic-from": ue() }],
- "mask-image-conic-to-pos": [{ "mask-conic-to": ue() }],
+ "mask-image-conic-pos": [{ "mask-conic": [J] }],
+ "mask-image-conic-from-pos": [{ "mask-conic-from": de() }],
+ "mask-image-conic-to-pos": [{ "mask-conic-to": de() }],
"mask-image-conic-from-color": [{ "mask-conic-from": N() }],
"mask-image-conic-to-color": [{ "mask-conic-to": N() }],
"mask-mode": [{ mask: [
@@ -17738,116 +17786,116 @@ var cu = /* @__PURE__ */ m(((e) => {
"view"
] }],
"mask-position": [{ mask: re() }],
- "mask-repeat": [{ mask: P() }],
- "mask-size": [{ mask: ie() }],
+ "mask-repeat": [{ mask: ie() }],
+ "mask-size": [{ mask: ae() }],
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- Q,
- Z
+ X,
+ Y
] }],
filter: [{ filter: [
"",
"none",
- Q,
- Z
+ X,
+ Y
] }],
- blur: [{ blur: de() }],
+ blur: [{ blur: fe() }],
brightness: [{ brightness: [
+ J,
X,
- Q,
- Z
+ Y
] }],
contrast: [{ contrast: [
+ J,
X,
- Q,
- Z
+ Y
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- Od,
- Sd
+ Id,
+ Ad
] }],
"drop-shadow-color": [{ "drop-shadow": N() }],
grayscale: [{ grayscale: [
"",
+ J,
X,
- Q,
- Z
+ Y
] }],
"hue-rotate": [{ "hue-rotate": [
+ J,
X,
- Q,
- Z
+ Y
] }],
invert: [{ invert: [
"",
+ J,
X,
- Q,
- Z
+ Y
] }],
saturate: [{ saturate: [
+ J,
X,
- Q,
- Z
+ Y
] }],
sepia: [{ sepia: [
"",
+ J,
X,
- Q,
- Z
+ Y
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- Q,
- Z
+ X,
+ Y
] }],
- "backdrop-blur": [{ "backdrop-blur": de() }],
+ "backdrop-blur": [{ "backdrop-blur": fe() }],
"backdrop-brightness": [{ "backdrop-brightness": [
+ J,
X,
- Q,
- Z
+ Y
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
+ J,
X,
- Q,
- Z
+ Y
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
+ J,
X,
- Q,
- Z
+ Y
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
+ J,
X,
- Q,
- Z
+ Y
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
+ J,
X,
- Q,
- Z
+ Y
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
+ J,
X,
- Q,
- Z
+ Y
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
+ J,
X,
- Q,
- Z
+ Y
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
+ J,
X,
- Q,
- Z
+ Y
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -17863,56 +17911,56 @@ var cu = /* @__PURE__ */ m(((e) => {
"shadow",
"transform",
"none",
- Q,
- Z
+ X,
+ Y
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- X,
+ J,
"initial",
- Q,
- Z
+ X,
+ Y
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- Q,
- Z
+ X,
+ Y
] }],
delay: [{ delay: [
+ J,
X,
- Q,
- Z
+ Y
] }],
animate: [{ animate: [
"none",
v,
- Q,
- Z
+ X,
+ Y
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- Q,
- Z
+ X,
+ Y
] }],
"perspective-origin": [{ "perspective-origin": x() }],
- rotate: [{ rotate: fe() }],
- "rotate-x": [{ "rotate-x": fe() }],
- "rotate-y": [{ "rotate-y": fe() }],
- "rotate-z": [{ "rotate-z": fe() }],
- scale: [{ scale: pe() }],
- "scale-x": [{ "scale-x": pe() }],
- "scale-y": [{ "scale-y": pe() }],
- "scale-z": [{ "scale-z": pe() }],
+ rotate: [{ rotate: pe() }],
+ "rotate-x": [{ "rotate-x": pe() }],
+ "rotate-y": [{ "rotate-y": pe() }],
+ "rotate-z": [{ "rotate-z": pe() }],
+ scale: [{ scale: me() }],
+ "scale-x": [{ "scale-x": me() }],
+ "scale-y": [{ "scale-y": me() }],
+ "scale-z": [{ "scale-z": me() }],
"scale-3d": ["scale-3d"],
- skew: [{ skew: F() }],
- "skew-x": [{ "skew-x": F() }],
- "skew-y": [{ "skew-y": F() }],
+ skew: [{ skew: P() }],
+ "skew-x": [{ "skew-x": P() }],
+ "skew-y": [{ "skew-y": P() }],
transform: [{ transform: [
- Q,
- Z,
+ X,
+ Y,
"",
"none",
"gpu",
@@ -17920,15 +17968,15 @@ var cu = /* @__PURE__ */ m(((e) => {
] }],
"transform-origin": [{ origin: x() }],
"transform-style": [{ transform: ["3d", "flat"] }],
- translate: [{ translate: I() }],
- "translate-x": [{ "translate-x": I() }],
- "translate-y": [{ "translate-y": I() }],
- "translate-z": [{ "translate-z": I() }],
+ translate: [{ translate: F() }],
+ "translate-x": [{ "translate-x": F() }],
+ "translate-y": [{ "translate-y": F() }],
+ "translate-z": [{ "translate-z": F() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- ad,
- Q,
- Z
+ pd,
+ X,
+ Y
] }],
accent: [{ accent: N() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -17978,8 +18026,8 @@ var cu = /* @__PURE__ */ m(((e) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- Q,
- Z
+ X,
+ Y
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -18065,15 +18113,15 @@ var cu = /* @__PURE__ */ m(((e) => {
"scroll",
"contents",
"transform",
- Q,
- Z
+ X,
+ Y
] }],
fill: [{ fill: ["none", ...N()] }],
"stroke-w": [{ stroke: [
- X,
- Cd,
- gd,
- _d
+ J,
+ jd,
+ wd,
+ Td
] }],
stroke: [{ stroke: ["none", ...N()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -18331,16 +18379,16 @@ var cu = /* @__PURE__ */ m(((e) => {
"selection"
]
};
-}, Vd = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (Hd(e, "cacheSize", t), Hd(e, "prefix", n), Hd(e, "experimentalParseClassName", r), Ud(e.theme, a.theme), Ud(e.classGroups, a.classGroups), Ud(e.conflictingClassGroups, a.conflictingClassGroups), Ud(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), Hd(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), Hd(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), Wd(e.theme, i.theme), Wd(e.classGroups, i.classGroups), Wd(e.conflictingClassGroups, i.conflictingClassGroups), Wd(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), Gd(e, i, "postfixLookupClassGroups"), Gd(e, i, "orderSensitiveModifiers"), e), Hd = (e, t, n) => {
+}, Yd = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (Xd(e, "cacheSize", t), Xd(e, "prefix", n), Xd(e, "experimentalParseClassName", r), Zd(e.theme, a.theme), Zd(e.classGroups, a.classGroups), Zd(e.conflictingClassGroups, a.conflictingClassGroups), Zd(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), Xd(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), Xd(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), Qd(e.theme, i.theme), Qd(e.classGroups, i.classGroups), Qd(e.conflictingClassGroups, i.conflictingClassGroups), Qd(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), $d(e, i, "postfixLookupClassGroups"), $d(e, i, "orderSensitiveModifiers"), e), Xd = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, Ud = (e, t) => {
- if (t) for (let n in t) Hd(e, n, t[n]);
-}, Wd = (e, t) => {
- if (t) for (let n in t) Gd(e, t, n);
-}, Gd = (e, t, n) => {
+}, Zd = (e, t) => {
+ if (t) for (let n in t) Xd(e, n, t[n]);
+}, Qd = (e, t) => {
+ if (t) for (let n in t) $d(e, t, n);
+}, $d = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, Kd = (e, ...t) => typeof e == "function" ? Xu(Bd, e, ...t) : Xu(() => Vd(Bd(), e), ...t), qd = [
+}, ef = (e, ...t) => typeof e == "function" ? q(Jd, e, ...t) : q(() => Yd(Jd(), e), ...t), tf = [
"large-title",
"display-1",
"display-2",
@@ -18354,18 +18402,18 @@ var cu = /* @__PURE__ */ m(((e) => {
"body-2",
"caption-1",
"caption-2"
-], Jd = [
+], nf = [
"regular",
"medium",
"semibold",
"bold"
-], Yd = Kd({ extend: { classGroups: { "font-size": [{ text: qd.flatMap((e) => Jd.map((t) => `${e}-${t}`)) }] } } });
-function Xd(e) {
+], rf = ef({ extend: { classGroups: { "font-size": [{ text: tf.flatMap((e) => nf.map((t) => `${e}-${t}`)) }] } } });
+function af(e) {
return e;
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var Zd = Xd({
+var of = af({
base: "inline-flex items-center justify-center rounded-md px-1.5 whitespace-nowrap transition-[padding,font-size] duration-200 ease",
variant: {
bold: "py-0.5 text-body-medium",
@@ -18384,22 +18432,22 @@ var Zd = Xd({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function Qd({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function sf({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, S.jsx)("span", {
ref: r,
- className: Yd(Zd.base, Zd.variant[e], Zd.color[t], n),
+ className: rf(of.base, of.variant[e], of.color[t], n),
...i
});
}
//#endregion
//#region src/api.ts
-var $d = class extends Error {
+var cf = class extends Error {
status;
body;
constructor(e, t, n = null) {
super(r(e, t)), this.name = "ApiError", this.status = t, this.body = n;
}
-}, ef = (e) => {
+}, lf = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -18411,8 +18459,8 @@ var $d = class extends Error {
if (typeof n == "string" && n) return n;
}
return "";
-}, tf = (e) => r(e);
-async function nf(e, t) {
+}, uf = (e) => r(e);
+async function df(e, t) {
let n = await fetch(e, {
headers: { Accept: "application/json" },
credentials: "same-origin",
@@ -18421,10 +18469,10 @@ async function nf(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new $d(ef(r) || `请求失败(${n.status})`, n.status);
+ if (!n.ok) throw new cf(lf(r) || `请求失败(${n.status})`, n.status);
return r;
}
-async function rf(e, t, n = "POST", r) {
+async function ff(e, t, n = "POST", r) {
let i = await fetch(e, {
method: n,
...r ? { signal: r } : {},
@@ -18438,12 +18486,12 @@ async function rf(e, t, n = "POST", r) {
try {
a = await i.json();
} catch {}
- if (!i.ok) throw new $d(ef(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new cf(lf(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/react/components/empty-state.tsx
-function af({ icon: e, title: t, children: n }) {
+function pf({ icon: e, title: t, children: n }) {
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col items-center gap-2 rounded-2xl border border-separator-border px-6 py-12 text-center",
children: [
@@ -18464,7 +18512,7 @@ function af({ icon: e, title: t, children: n }) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function of({ label: e }) {
+function mf({ label: e }) {
return /* @__PURE__ */ (0, S.jsxs)("p", {
role: "status",
className: "flex items-center gap-2 text-caption-1-regular text-text-secondary",
@@ -18481,45 +18529,49 @@ function of({ label: e }) {
}
//#endregion
//#region src/react/components/note.tsx
-function sf({ tone: e, title: t, children: n }) {
- let r = /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [t ? /* @__PURE__ */ (0, S.jsx)("p", {
- className: "text-body-medium",
- children: t
- }) : null, /* @__PURE__ */ (0, S.jsx)("p", {
- className: "text-body-2-regular",
- children: n
- })] });
+function hf({ tone: e, title: t, extra: n, children: r }) {
+ let i = /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
+ t ? /* @__PURE__ */ (0, S.jsx)("p", {
+ className: "text-body-medium",
+ children: t
+ }) : null,
+ /* @__PURE__ */ (0, S.jsx)("p", {
+ className: "text-body-2-regular",
+ children: r
+ }),
+ n
+ ] });
switch (e) {
case "info": return /* @__PURE__ */ (0, S.jsx)("div", {
role: "status",
className: "flex flex-col gap-0.5 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground",
- children: r
+ children: i
});
case "success": return /* @__PURE__ */ (0, S.jsx)("div", {
role: "status",
className: "flex flex-col gap-0.5 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground",
- children: r
+ children: i
});
case "warning": return /* @__PURE__ */ (0, S.jsx)("div", {
role: "note",
className: "flex flex-col gap-0.5 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text",
- children: r
+ children: i
});
case "error": return /* @__PURE__ */ (0, S.jsx)("div", {
role: "alert",
className: "flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary",
- children: r
+ children: i
});
default: return /* @__PURE__ */ (0, S.jsx)("div", {
role: "note",
className: "flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary",
- children: r
+ children: i
});
}
}
//#endregion
//#region src/react/components/page.tsx
-function cf({ children: e }) {
+function gf({ children: e }) {
return /* @__PURE__ */ (0, S.jsx)("div", {
className: "mx-auto flex w-full max-w-board flex-col gap-8",
children: e
@@ -18527,7 +18579,7 @@ function cf({ children: e }) {
}
//#endregion
//#region src/react/components/progress.tsx
-function lf({ label: e, value: t, max: n = 100, stops: r = [] }) {
+function _f({ label: e, value: t, max: n = 100, stops: r = [] }) {
let i = Math.min(Math.max(t, 0), n);
return /* @__PURE__ */ (0, S.jsxs)("svg", {
role: "progressbar",
@@ -18560,32 +18612,32 @@ function lf({ label: e, value: t, max: n = 100, stops: r = [] }) {
}
//#endregion
//#region src/react/query.ts
-var uf = new Ye({ defaultOptions: { queries: {
+var vf = new Xe({ defaultOptions: { queries: {
networkMode: "always",
retry: 0,
refetchOnWindowFocus: !1,
refetchOnMount: !1,
retryOnMount: !1
-} } }), df = "/api/tasks", ff = ["tasks"], pf = 2e3, mf = 1e4, hf = (e) => e?.running.length ? pf : mf, gf = (e) => nf(df, e);
-async function _f(e) {
- await uf.fetchQuery({
- queryKey: ff,
- queryFn: () => gf(e)
+} } }), yf = "/api/tasks", bf = ["tasks"], xf = 2e3, Sf = 1e4, Cf = (e) => e?.running.length ? xf : Sf, wf = (e) => df(yf, e);
+async function Tf(e) {
+ await vf.fetchQuery({
+ queryKey: bf,
+ queryFn: () => wf(e)
});
}
-var vf = {
+var Ef = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, yf = {
+}, Df = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "被打断"
-}, bf = (e) => yf[e] || e, xf = {
+}, Of = (e) => Df[e] || e, kf = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -18605,14 +18657,14 @@ var vf = {
exit_code: "退出码",
issue_count: "问题"
};
-function Sf(e) {
+function Af(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
let n = Math.floor(t / 60);
return n < 60 ? `${n} 分 ${t % 60} 秒` : `${Math.floor(n / 60)} 小时 ${n % 60} 分`;
}
-function Cf(e) {
+function jf(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -18622,24 +18674,24 @@ function Cf(e) {
minute: "2-digit"
});
}
-function wf(e) {
- return Object.entries(e || {}).filter(([e, t]) => e !== "blocked_by" && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${xf[e] || e} ${t}`).join(" · ");
+function Mf(e) {
+ return Object.entries(e || {}).filter(([e, t]) => e !== "blocked_by" && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${kf[e] || e} ${t}`).join(" · ");
}
//#endregion
//#region src/react/activity/activity-page.tsx
-var Tf = {
+var Nf = {
succeeded: "lime",
failed: "rose",
cancelled: "yellow",
interrupted: "yellow"
};
-function Ef({ status: e }) {
- return /* @__PURE__ */ (0, S.jsx)(Qd, {
- color: Tf[e] ?? "neutral",
- children: bf(e)
+function Pf({ status: e }) {
+ return /* @__PURE__ */ (0, S.jsx)(sf, {
+ color: Nf[e] ?? "neutral",
+ children: Of(e)
});
}
-function Df({ run: e, meta: t, children: n, footer: r }) {
+function Ff({ run: e, meta: t, children: n, footer: r }) {
return /* @__PURE__ */ (0, S.jsxs)("li", {
"data-status": e.status,
"data-task-key": e.task_key,
@@ -18652,7 +18704,7 @@ function Df({ run: e, meta: t, children: n, footer: r }) {
children: [/* @__PURE__ */ (0, S.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
children: e.task_label
- }), /* @__PURE__ */ (0, S.jsx)(Ef, { status: e.status })]
+ }), /* @__PURE__ */ (0, S.jsx)(Pf, { status: e.status })]
}),
/* @__PURE__ */ (0, S.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
@@ -18669,14 +18721,14 @@ function Df({ run: e, meta: t, children: n, footer: r }) {
}) : null]
});
}
-function Of({ run: e }) {
- let t = e.progress_total || 0, n = e.progress_current || 0, r = e.progress_label || "正在进行", i = Sf(e.elapsed_seconds), a = [vf[e.trigger] || e.trigger, i && `已跑 ${i}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, S.jsx)(Df, {
+function If({ run: e }) {
+ let t = e.progress_total || 0, n = e.progress_current || 0, r = e.progress_label || "正在进行", i = Af(e.elapsed_seconds), a = [Ef[e.trigger] || e.trigger, i && `已跑 ${i}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, S.jsx)(Ff, {
run: e,
meta: a,
children: t > 0 ? /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, S.jsx)(lf, {
+ children: [/* @__PURE__ */ (0, S.jsx)(_f, {
label: r,
value: n,
max: t
@@ -18691,16 +18743,16 @@ function Of({ run: e }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, S.jsx)(of, { label: r })
+ }) : /* @__PURE__ */ (0, S.jsx)(mf, { label: r })
});
}
-function kf({ run: e }) {
- let t = wf(e.result_summary), n = Sf(e.elapsed_seconds), r = [
- vf[e.trigger] || e.trigger,
- Cf(e.finished_at),
+function Lf({ run: e }) {
+ let t = Mf(e.result_summary), n = Af(e.elapsed_seconds), r = [
+ Ef[e.trigger] || e.trigger,
+ jf(e.finished_at),
n && `用时 ${n}`
].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, S.jsx)(Df, {
+ return /* @__PURE__ */ (0, S.jsx)(Ff, {
run: e,
meta: r,
footer: e.error,
@@ -18710,7 +18762,7 @@ function kf({ run: e }) {
}) : null
});
}
-function Af({ title: e, children: t }) {
+function Rf({ title: e, children: t }) {
let n = (0, x.useId)();
return /* @__PURE__ */ (0, S.jsxs)("section", {
"aria-labelledby": n,
@@ -18722,256 +18774,123 @@ function Af({ title: e, children: t }) {
}), t]
});
}
-function jf({ live: e = !1, children: t }) {
+function zf({ live: e = !1, children: t }) {
return /* @__PURE__ */ (0, S.jsx)("ul", {
"aria-live": e ? "polite" : void 0,
className: "flex min-w-0 flex-col gap-3",
children: t
});
}
-function Mf(e) {
- let t = ct({
- queryKey: ff,
- queryFn: ({ signal: e }) => gf(e),
- refetchInterval: (e) => hf(e.state.data)
- }), n = t.data, r = t.error ? tf(t.error) : "";
- if (!n) return /* @__PURE__ */ (0, S.jsx)(cf, { children: /* @__PURE__ */ (0, S.jsx)(sf, {
+function Bf(e) {
+ let t = lt({
+ queryKey: bf,
+ queryFn: ({ signal: e }) => wf(e),
+ refetchInterval: (e) => Cf(e.state.data)
+ }), n = t.data, r = t.error ? uf(t.error) : "";
+ if (!n) return /* @__PURE__ */ (0, S.jsx)(gf, { children: /* @__PURE__ */ (0, S.jsx)(hf, {
tone: "error",
children: r || "读取任务中心失败"
}) });
let i = n.running || [], a = n.skipped || [], o = (n.finished || []).filter((e) => !a.some((t) => t.id === e.id)), s = !i.length && !a.length && !o.length;
- return /* @__PURE__ */ (0, S.jsxs)(cf, { children: [
- r ? /* @__PURE__ */ (0, S.jsx)(sf, {
+ return /* @__PURE__ */ (0, S.jsxs)(gf, { children: [
+ r ? /* @__PURE__ */ (0, S.jsx)(hf, {
tone: "error",
children: r
}) : null,
- n.available === !1 ? /* @__PURE__ */ (0, S.jsx)(sf, {
+ n.available === !1 ? /* @__PURE__ */ (0, S.jsx)(hf, {
tone: "warning",
children: n.message || "账本上还没有任务中心的表"
}) : null,
- s ? /* @__PURE__ */ (0, S.jsx)(af, {
- icon: gu,
+ s ? /* @__PURE__ */ (0, S.jsx)(pf, {
+ icon: Su,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
}) : /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
- /* @__PURE__ */ (0, S.jsx)(Af, {
+ /* @__PURE__ */ (0, S.jsx)(Rf, {
title: "正在进行",
- children: i.length ? /* @__PURE__ */ (0, S.jsx)(jf, {
+ children: i.length ? /* @__PURE__ */ (0, S.jsx)(zf, {
live: !0,
- children: i.map((e) => /* @__PURE__ */ (0, S.jsx)(Of, { run: e }, e.id))
+ children: i.map((e) => /* @__PURE__ */ (0, S.jsx)(If, { run: e }, e.id))
}) : /* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "没有任务在跑。"
})
}),
- a.length ? /* @__PURE__ */ (0, S.jsx)(Af, {
+ a.length ? /* @__PURE__ */ (0, S.jsx)(Rf, {
title: "被挡下的",
- children: /* @__PURE__ */ (0, S.jsx)(jf, { children: a.map((e) => /* @__PURE__ */ (0, S.jsx)(kf, { run: e }, e.id)) })
+ children: /* @__PURE__ */ (0, S.jsx)(zf, { children: a.map((e) => /* @__PURE__ */ (0, S.jsx)(Lf, { run: e }, e.id)) })
}) : null,
- o.length ? /* @__PURE__ */ (0, S.jsx)(Af, {
+ o.length ? /* @__PURE__ */ (0, S.jsx)(Rf, {
title: "最近完成",
- children: /* @__PURE__ */ (0, S.jsx)(jf, { children: o.map((e) => /* @__PURE__ */ (0, S.jsx)(kf, { run: e }, e.id)) })
+ children: /* @__PURE__ */ (0, S.jsx)(zf, { children: o.map((e) => /* @__PURE__ */ (0, S.jsx)(Lf, { run: e }, e.id)) })
}) : null
] })
] });
}
//#endregion
-//#region src/react/boardui/components/base/buttons/button.tsx
-var Nf = Xd({
- base: [
- "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
- "font-sans select-none cursor-pointer",
- "button-press-motion",
- "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring",
- "disabled:cursor-not-allowed aria-disabled:cursor-not-allowed"
- ].join(" "),
- size: {
- medium: "h-9 rounded-2lg p-2 text-body-medium",
- small: "h-8 rounded-lg px-2 py-1.5 text-body-medium",
- xs: "h-6 rounded-sm px-2 text-caption-1-semibold"
- },
- iconOnlySize: {
- medium: "",
- small: "size-8 p-0",
- xs: "size-6 p-0"
- },
- icon: {
- medium: "size-5 shrink-0",
- small: "size-[18px] shrink-0",
- xs: "size-3.5 shrink-0"
- },
- label: {
- medium: "inline-flex items-center justify-center px-1 shrink-0",
- small: "inline-flex items-center justify-center px-0.5 shrink-0",
- xs: "inline-flex items-center justify-center px-0.5 shrink-0"
- },
- variant: {
- primary: [
- "bg-button-primary text-text-white shadow-xs",
- "disabled:text-button-primary-disabled-foreground disabled:shadow-none",
- "aria-disabled:text-button-primary-disabled-foreground aria-disabled:shadow-none"
- ].join(" "),
- danger: [
- "bg-button-danger text-text-white shadow-xs",
- "disabled:text-foreground-disabled-danger disabled:shadow-none",
- "aria-disabled:text-foreground-disabled-danger aria-disabled:shadow-none"
- ].join(" "),
- secondary: [
- "bg-background-primary-default text-text-primary",
- "border border-border-button-default shadow-xs",
- "hover:bg-background-primary-hover hover:border-border-button-hover",
- "active:bg-background-primary-active active:border-border-button-active",
- "disabled:bg-background-primary-disabled disabled:border-border-button-default disabled:text-text-tertiary disabled:shadow-none",
- "aria-disabled:bg-background-primary-disabled aria-disabled:border-border-button-default aria-disabled:text-text-tertiary aria-disabled:shadow-none"
- ].join(" "),
- ghost: [
- "bg-button-ghost-background text-button-ghost-foreground",
- "hover:bg-button-ghost-hover active:bg-button-ghost-active",
- "disabled:bg-button-ghost-disabled disabled:text-button-ghost-disabled-foreground disabled:shadow-none",
- "aria-disabled:bg-button-ghost-disabled aria-disabled:text-button-ghost-disabled-foreground aria-disabled:shadow-none"
- ].join(" ")
- }
-});
-function Pf({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, type: s = "button", ref: c, ...l }) {
- return /* @__PURE__ */ (0, S.jsxs)("button", {
- ref: c,
- type: s,
- className: Yd(Nf.base, Nf.size[t], Nf.variant[e], n && Nf.iconOnlySize[t], o),
- ...l,
- children: [
- r ? /* @__PURE__ */ (0, S.jsx)(r, {
- className: Nf.icon[t],
- "aria-hidden": !0
- }) : null,
- !n && a != null && /* @__PURE__ */ (0, S.jsx)("span", {
- className: Nf.label[t],
- children: a
- }),
- !n && i ? /* @__PURE__ */ (0, S.jsx)(i, {
- className: Nf.icon[t],
- "aria-hidden": !0
- }) : null
- ]
- });
-}
-//#endregion
-//#region src/react/quality-goals/quality-goals.ts
-var Ff = "/api/quality-goals?limit=200", If = ["quality-goals"], Lf = (e) => nf(Ff, e);
-async function Rf(e) {
- await uf.fetchQuery({
- queryKey: If,
- queryFn: () => Lf(e)
+//#region src/react/library-processing/library-processing.ts
+var Vf = "/api/library-processing", Hf = ["library-processing"], Z = (e) => df(Vf, e);
+async function Uf(e) {
+ await vf.fetchQuery({
+ queryKey: Hf,
+ queryFn: () => Z(e)
});
}
-var zf = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
-//#endregion
-//#region src/react/quality-goals/quality-goals-page.tsx
-function Bf({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge: s }) {
- let c = () => i(r.id);
- return /* @__PURE__ */ (0, S.jsxs)("li", {
- "data-goal-id": r.id,
- className: "flex min-w-0 flex-col gap-3 rounded-2xl border border-separator-border p-3",
- children: [/* @__PURE__ */ (0, S.jsxs)("div", {
- className: "flex min-w-0 gap-4",
- children: [/* @__PURE__ */ (0, S.jsxs)("button", {
- type: "button",
- onClick: c,
- "aria-label": `打开 ${o(r)}`,
- className: "relative inline-grid w-card-cover shrink-0 aspect-card-cover cursor-pointer place-items-center overflow-hidden rounded-lg bg-black",
- children: [/* @__PURE__ */ (0, S.jsx)("span", {
- className: "text-caption-1-regular text-text-tertiary",
- children: "暂无预览"
- }), /* @__PURE__ */ (0, S.jsx)("img", {
- src: zf(r),
- alt: "",
- loading: "lazy",
- onError: (e) => e.currentTarget.remove(),
- className: "absolute inset-0 size-full object-contain"
- })]
- }), /* @__PURE__ */ (0, S.jsxs)("div", {
- className: "flex min-w-0 flex-col gap-1.5",
- children: [
- /* @__PURE__ */ (0, S.jsx)("h3", {
- className: "text-title-1-medium text-text-primary",
- children: /* @__PURE__ */ (0, S.jsx)("button", {
- type: "button",
- "data-middle-truncate": !0,
- onClick: c,
- className: "block w-full cursor-pointer text-left",
- dangerouslySetInnerHTML: { __html: a(r) }
- })
- }),
- /* @__PURE__ */ (0, S.jsxs)("p", {
- className: "flex flex-wrap items-center gap-2 text-caption-1-regular text-text-secondary",
- children: [
- /* @__PURE__ */ (0, S.jsx)("span", {
- className: "contents",
- dangerouslySetInnerHTML: { __html: s(r.location, r.cost) }
- }),
- /* @__PURE__ */ (0, S.jsx)("span", { children: e[r.location] ?? r.location }),
- /* @__PURE__ */ (0, S.jsx)("span", { children: t(r.duration) }),
- /* @__PURE__ */ (0, S.jsx)("span", { children: n(r.size ?? 0) })
- ]
- }),
- r.reason ? /* @__PURE__ */ (0, S.jsx)("p", {
- className: "text-caption-1-regular text-text-secondary",
- children: r.reason
- }) : null
- ]
- })]
- }), /* @__PURE__ */ (0, S.jsx)("footer", {
- className: "flex justify-end",
- children: /* @__PURE__ */ (0, S.jsx)(Pf, {
- variant: "secondary",
- size: "small",
- onClick: c,
- children: "查看版本"
- })
- })]
- });
+var Wf = 2e3, Gf = 1e4, Kf = "连接中断,正在重新读取处理进度";
+function qf(e, t) {
+ return e?.status === "running" ? Wf : t ? Gf : !1;
+}
+var Jf = {
+ reading_local: "读取本地资料",
+ querying_metadata: "查询外部资料",
+ fetching_cover: "采集缺失封面",
+ writing_candidates: "保存资料候选"
+}, Yf = {
+ querying_metadata: "没有资料",
+ fetching_cover: "没有封面"
+};
+function Xf(e) {
+ let t = Object.entries(e).filter(([e, t]) => Yf[e] && t > 0).map(([e, t]) => `${Yf[e]} ${t} 部`);
+ return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
+}
+function Zf(e) {
+ let t = Jf[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
+ return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
+}
+function Qf(e) {
+ let t = e.issue_preview || [];
+ return t.length ? {
+ label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
+ items: t.map((e, t) => ({
+ key: `${e.asset_id ?? "source"}-${t}`,
+ label: e.title || (e.asset_id ? `视频 ${e.asset_id}` : "媒体来源"),
+ href: e.asset_id ? `/item/${e.asset_id}` : "",
+ note: e.message,
+ hint: e.path || ""
+ })),
+ footnote: e.issues_log ? `完整记录:${e.issues_log}` : ""
+ } : null;
}
-function $(e) {
- let t = ct({
- queryKey: If,
- queryFn: ({ signal: e }) => Lf(e)
- }), n = t.data;
- if (!n) return /* @__PURE__ */ (0, S.jsx)(cf, { children: /* @__PURE__ */ (0, S.jsx)(sf, {
- tone: "error",
- title: "读取失败",
- children: t.error ? tf(t.error) : "读取高清版目标失败"
- }) });
- let r = n.items || [];
- return r.length ? /* @__PURE__ */ (0, S.jsxs)(cf, { children: [/* @__PURE__ */ (0, S.jsxs)("p", {
- className: "text-body-2-regular text-text-secondary",
- children: [
- /* @__PURE__ */ (0, S.jsx)("strong", {
- className: "text-title-2-semibold text-text-primary",
- children: "待升级"
- }),
- " · ",
- n.total,
- " 部作品"
- ]
- }), /* @__PURE__ */ (0, S.jsx)("ul", {
- className: "card-grid gap-5",
- children: r.map((t) => /* @__PURE__ */ (0, S.jsx)(Bf, {
- item: t,
- ...e
- }, t.id))
- })] }) : /* @__PURE__ */ (0, S.jsx)(cf, { children: /* @__PURE__ */ (0, S.jsx)(af, {
- icon: vu,
- title: "没有标记中的高清版目标",
- children: "现有版本都已满足条件,或还没有加入追踪。"
- }) });
+var $f = "peach.library-processing.announced", ep = 120;
+function tp(e, t, n) {
+ if (e.status !== "complete") return;
+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < ep;
+ if (!(!n && !r)) {
+ try {
+ if (e.job_id && localStorage.getItem($f) === e.job_id) return;
+ e.job_id && localStorage.setItem($f, e.job_id);
+ } catch {}
+ t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选`);
+ }
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var Vf = Symbol("default");
-function Hf({ values: e, children: t }) {
+var Q = Symbol("default");
+function np({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ x.createElement(n.Provider, { value: r }, t);
return t;
}
-function Uf(e) {
+function $(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, x.useMemo)(() => {
let e, l, u;
@@ -19005,11 +18924,11 @@ function Uf(e) {
c
]);
}
-function Wf(e, t) {
+function rp(e, t) {
let n = (0, x.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || Vf;
+ let e = t || Q;
if (!n.slots[e]) {
let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";
throw Error(`${r} Valid slot names are ${e}.`);
@@ -19018,8 +18937,8 @@ function Wf(e, t) {
}
return n;
}
-function Gf(e, t, n) {
- let { ref: r, ...i } = Wf(n, e.slot) || {}, a = Nr((0, x.useMemo)(() => mr(t, r), [t, r])), o = H(i, e);
+function ip(e, t, n) {
+ let { ref: r, ...i } = rp(n, e.slot) || {}, a = Pr((0, x.useMemo)(() => hr(t, r), [t, r])), o = V(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -19037,42 +18956,42 @@ function Gf(e, t, n) {
...e.style
}), [o, a];
}
-function Kf(e = !0) {
+function ap(e = !0) {
let [t, n] = (0, x.useState)(e), r = (0, x.useRef)(!1), i = (0, x.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return V(() => {
+ return B(() => {
r.current || n(!1);
}, []), [i, t];
}
-function qf(e) {
+function op(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function Jf(e, t, n) {
- let { render: r, ...i } = t, a = (0, x.useRef)(null), o = (0, x.useMemo)(() => mr(n, a), [n, a]);
- V(() => {}, [e, r]);
+function sp(e, t, n) {
+ let { render: r, ...i } = t, a = (0, x.useRef)(null), o = (0, x.useMemo)(() => hr(n, a), [n, a]);
+ B(() => {}, [e, r]);
let s = {
...i,
ref: o
};
return r ? r(s, void 0) : /*#__PURE__*/ x.createElement(e, s);
}
-var Yf = {}, Xf = new Proxy({}, { get(e, t) {
+var cp = {}, lp = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = Yf[t];
- return n || (n = /*#__PURE__*/ (0, x.forwardRef)(Jf.bind(null, t)), Yf[t] = n), n;
-} }), Zf = /*#__PURE__*/ (0, x.createContext)(null), Qf = /*#__PURE__*/ (0, x.createContext)(null), $f = /*#__PURE__*/ (0, x.createContext)(null), ep = {
+ let n = cp[t];
+ return n || (n = /*#__PURE__*/ (0, x.forwardRef)(sp.bind(null, t)), cp[t] = n), n;
+} }), up = /*#__PURE__*/ (0, x.createContext)(null), dp = /*#__PURE__*/ (0, x.createContext)(null), fp = /*#__PURE__*/ (0, x.createContext)(null), pp = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return tp(e, null, t);
+ return mp(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return tp(e, t, n);
+ return mp(e, t, n);
}
};
-function tp(e, t, n) {
- return yt({
+function mp(e, t, n) {
+ return bt({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
@@ -19082,11 +19001,11 @@ function tp(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, np(e, t, n));
+ }), r, hp(e, t, n));
}
});
}
-function np(e, t, n) {
+function hp(e, t, n) {
let r = t.key, i = e.getKeyAfter(r), a = i == null ? null : e.getItem(i);
for (; a != null && a.type !== "item";) i = e.getKeyAfter(a.key), a = i == null ? null : e.getItem(i);
let o = t.nextKey == null ? null : e.getItem(t.nextKey);
@@ -19105,19 +19024,19 @@ function np(e, t, n) {
}
return s;
}
-var rp = /*#__PURE__*/ (0, x.createContext)(ep), ip = /*#__PURE__*/ (0, x.createContext)({}), ap = /*#__PURE__*/ Br(function(e, t) {
- [e, t] = Gf(e, t, ip);
- let { elementType: n = "label", ...r } = e, i = Xf[n];
+var gp = /*#__PURE__*/ (0, x.createContext)(pp), _p = /*#__PURE__*/ (0, x.createContext)({}), vp = /*#__PURE__*/ Vr(function(e, t) {
+ [e, t] = ip(e, t, _p);
+ let { elementType: n = "label", ...r } = e, i = lp[n];
return /*#__PURE__*/ x.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), op = /*#__PURE__*/ (0, x.createContext)(null), sp = /*#__PURE__*/ (0, x.createContext)({}), cp = /*#__PURE__*/ Br(function(e, t) {
- [e, t] = Gf(e, t, sp);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = xa(e, t);
- i = up(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = hc(e), { hoverProps: l, isHovered: u } = Sc({
+}), yp = /*#__PURE__*/ (0, x.createContext)(null), bp = /*#__PURE__*/ (0, x.createContext)({}), xp = /*#__PURE__*/ Vr(function(e, t) {
+ [e, t] = ip(e, t, bp);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Sa(e, t);
+ i = Cp(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = gc(e), { hoverProps: l, isHovered: u } = Cc({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -19127,25 +19046,25 @@ var rp = /*#__PURE__*/ (0, x.createContext)(ep), ip = /*#__PURE__*/ (0, x.create
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = Uf({
+ }, f = $({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = dr(i.id), m = dr(), h = i["aria-labelledby"];
+ }), p = fr(i.id), m = fr(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
let g = (0, x.useRef)(r);
(0, x.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && Qa(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && $a(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = U(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ x.createElement(Xf.button, {
- ...H(_, f, i, o, l),
+ let _ = H(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ x.createElement(lp.button, {
+ ...V(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
ref: t,
@@ -19158,62 +19077,62 @@ var rp = /*#__PURE__*/ (0, x.createContext)(ep), ip = /*#__PURE__*/ (0, x.create
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ x.createElement(op.Provider, { value: { id: m } }, f.children));
-}), lp = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function up(e, t) {
+ }, /*#__PURE__*/ x.createElement(yp.Provider, { value: { id: m } }, f.children));
+}), Sp = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function Cp(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !lp.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !Sp.test(t) && (e[t] = void 0);
e.href = void 0, e.target = void 0;
}
return e;
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Heading.mjs
-var dp = /*#__PURE__*/ (0, x.createContext)({}), fp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- [e, t] = Gf(e, t, dp);
- let { children: n, level: r = 3, className: i, ...a } = e, o = Xf[`h${r}`];
+var wp = /*#__PURE__*/ (0, x.createContext)({}), Tp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = ip(e, t, wp);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = lp[`h${r}`];
return /*#__PURE__*/ x.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), pp = /*#__PURE__*/ (0, x.createContext)({}), mp = /*#__PURE__*/ Br(function(e, t) {
- [e, t] = Gf(e, t, pp);
- let { elementType: n = "span", ...r } = e, i = Xf[n];
+}), Ep = /*#__PURE__*/ (0, x.createContext)({}), Dp = /*#__PURE__*/ Vr(function(e, t) {
+ [e, t] = ip(e, t, Ep);
+ let { elementType: n = "span", ...r } = e, i = lp[n];
return /*#__PURE__*/ x.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), hp = /*#__PURE__*/ (0, x.createContext)(null), gp = /*#__PURE__*/ (0, x.createContext)(null), _p = /*#__PURE__*/ (0, x.createContext)(null), vp = /*#__PURE__*/ (0, x.createContext)(null), yp = /*#__PURE__*/ (0, x.createContext)(null);
-function bp(e, t) {
- let { validationBehavior: n } = Wf(gp) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, x.useContext)(vp), a = Nr((0, x.useMemo)(() => mr(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...qf(e),
+}), Op = /*#__PURE__*/ (0, x.createContext)(null), kp = /*#__PURE__*/ (0, x.createContext)(null), Ap = /*#__PURE__*/ (0, x.createContext)(null), jp = /*#__PURE__*/ (0, x.createContext)(null), Mp = /*#__PURE__*/ (0, x.createContext)(null);
+function Np(e, t) {
+ let { validationBehavior: n } = rp(kp) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, x.useContext)(jp), a = Pr((0, x.useMemo)(() => hr(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...op(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? K(o, i, a) : ko(o, Io(e), a), a];
+ return [i ? G(o, i, a) : Ao(o, Lo(e), a), a];
}
-var xp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+var Pp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Gf(r, t, _p);
- let [i, a] = bp(e, n);
- return /*#__PURE__*/ x.createElement(yp.Provider, { value: {
+ [e, t] = ip(r, t, Ap);
+ let [i, a] = Np(e, n);
+ return /*#__PURE__*/ x.createElement(Mp.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ x.createElement(Sp, {
+ } }, /*#__PURE__*/ x.createElement(Fp, {
...e,
ref: t
}));
-}), Sp = /*#__PURE__*/ (0, x.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, x.useContext)(yp), { isFocused: p, isFocusVisible: m, focusProps: h } = hc(), g = a || o, { hoverProps: _, isHovered: v } = Sc({
+}), Fp = /*#__PURE__*/ (0, x.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, x.useContext)(Mp), { isFocused: p, isFocusVisible: m, focusProps: h } = gc(), g = a || o, { hoverProps: _, isHovered: v } = Cc({
...e,
isDisabled: g
- }), y = Uf({
+ }), y = $({
...e,
defaultClassName: u,
values: {
@@ -19228,9 +19147,9 @@ var xp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = U(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ x.createElement(Xf.label, {
- ...H(b, n, _, y),
+ }), b = H(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ x.createElement(lp.label, {
+ ...V(b, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@ -19243,20 +19162,20 @@ var xp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ x.createElement(Bo, { elementType: "span" }, /*#__PURE__*/ x.createElement("input", {
- ...H(r, h),
+ }, /*#__PURE__*/ x.createElement(Vo, { elementType: "span" }, /*#__PURE__*/ x.createElement("input", {
+ ...V(r, h),
ref: l
})), y.children);
-}), Cp = /*#__PURE__*/ (0, x.createContext)({}), wp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- [e, t] = Gf(e, t, Cp);
+}), Ip = /*#__PURE__*/ (0, x.createContext)({}), Lp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = ip(e, t, Ip);
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 } = Sc({
+ let { hoverProps: l, isHovered: u } = Cc({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = hc({ within: !0 }), m = Uf({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = gc({ within: !0 }), m = $({
...e,
values: {
isHovered: u,
@@ -19267,8 +19186,8 @@ var xp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ x.createElement(Xf.div, {
- ...H(c, p, l),
+ return /*#__PURE__*/ x.createElement(lp.div, {
+ ...V(c, p, l),
...m,
ref: t,
role: e.role ?? "group",
@@ -19280,18 +19199,18 @@ var xp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), Tp = /*#__PURE__*/ (0, x.createContext)({}), Ep = (e) => {
+}), Rp = /*#__PURE__*/ (0, x.createContext)({}), zp = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Dp = /*#__PURE__*/ Br(function(e, t) {
- [e, t] = Gf(e, t, Tp);
- let { hoverProps: n, isHovered: r } = Sc({
+}, Bp = /*#__PURE__*/ Vr(function(e, t) {
+ [e, t] = ip(e, t, Rp);
+ let { hoverProps: n, isHovered: r } = Cc({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = hc({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = gc({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Uf({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = $({
...e,
values: {
isHovered: r,
@@ -19302,8 +19221,8 @@ var xp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ x.createElement(Xf.input, {
- ...H(Ep(e), o, n),
+ return /*#__PURE__*/ x.createElement(lp.input, {
+ ...V(zp(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -19312,8 +19231,8 @@ var xp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), Op = {};
-Op = {
+}), Vp = {};
+Vp = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -19321,8 +19240,8 @@ Op = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var kp = {};
-kp = {
+var Hp = {};
+Hp = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -19330,8 +19249,8 @@ kp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var Ap = {};
-Ap = {
+var Up = {};
+Up = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -19339,8 +19258,8 @@ Ap = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var jp = {};
-jp = {
+var Wp = {};
+Wp = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -19348,8 +19267,8 @@ jp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var Mp = {};
-Mp = {
+var Gp = {};
+Gp = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -19357,8 +19276,8 @@ Mp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var Np = {};
-Np = {
+var Kp = {};
+Kp = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -19366,8 +19285,8 @@ Np = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var Pp = {};
-Pp = {
+var qp = {};
+qp = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -19375,8 +19294,8 @@ Pp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var Fp = {};
-Fp = {
+var Jp = {};
+Jp = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -19384,8 +19303,8 @@ Fp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var Ip = {};
-Ip = {
+var Yp = {};
+Yp = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -19393,8 +19312,8 @@ Ip = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var Lp = {};
-Lp = {
+var Xp = {};
+Xp = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -19402,8 +19321,8 @@ Lp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var Rp = {};
-Rp = {
+var Zp = {};
+Zp = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -19411,8 +19330,8 @@ Rp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var zp = {};
-zp = {
+var Qp = {};
+Qp = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -19420,8 +19339,8 @@ zp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var Bp = {};
-Bp = {
+var $p = {};
+$p = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -19429,8 +19348,8 @@ Bp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var Vp = {};
-Vp = {
+var em = {};
+em = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -19438,8 +19357,8 @@ Vp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var Hp = {};
-Hp = {
+var tm = {};
+tm = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -19447,8 +19366,8 @@ Hp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var Up = {};
-Up = {
+var nm = {};
+nm = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -19456,8 +19375,8 @@ Up = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var Wp = {};
-Wp = {
+var rm = {};
+rm = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -19465,8 +19384,8 @@ Wp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var Gp = {};
-Gp = {
+var im = {};
+im = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -19474,8 +19393,8 @@ Gp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var Kp = {};
-Kp = {
+var am = {};
+am = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -19483,8 +19402,8 @@ Kp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var qp = {};
-qp = {
+var om = {};
+om = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -19492,8 +19411,8 @@ qp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var Jp = {};
-Jp = {
+var sm = {};
+sm = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -19501,8 +19420,8 @@ Jp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var Yp = {};
-Yp = {
+var cm = {};
+cm = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -19510,8 +19429,8 @@ Yp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var Xp = {};
-Xp = {
+var lm = {};
+lm = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -19519,8 +19438,8 @@ Xp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var Zp = {};
-Zp = {
+var um = {};
+um = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -19528,8 +19447,8 @@ Zp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var Qp = {};
-Qp = {
+var dm = {};
+dm = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -19537,8 +19456,8 @@ Qp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var $p = {};
-$p = {
+var fm = {};
+fm = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -19546,8 +19465,8 @@ $p = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var em = {};
-em = {
+var pm = {};
+pm = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -19555,8 +19474,8 @@ em = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var tm = {};
-tm = {
+var mm = {};
+mm = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -19564,8 +19483,8 @@ tm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var nm = {};
-nm = {
+var hm = {};
+hm = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -19573,8 +19492,8 @@ nm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var rm = {};
-rm = {
+var gm = {};
+gm = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -19582,8 +19501,8 @@ rm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var im = {};
-im = {
+var _m = {};
+_m = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -19591,8 +19510,8 @@ im = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var am = {};
-am = {
+var vm = {};
+vm = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -19600,8 +19519,8 @@ am = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var om = {};
-om = {
+var ym = {};
+ym = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -19609,8 +19528,8 @@ om = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var sm = {};
-sm = {
+var bm = {};
+bm = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -19618,52 +19537,52 @@ sm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var cm = {};
-cm = {
- "ar-AE": Op,
- "bg-BG": kp,
- "cs-CZ": Ap,
- "da-DK": jp,
- "de-DE": Mp,
- "el-GR": Np,
- "en-US": Pp,
- "es-ES": Fp,
- "et-EE": Ip,
- "fi-FI": Lp,
- "fr-FR": Rp,
- "he-IL": zp,
- "hr-HR": Bp,
- "hu-HU": Vp,
- "it-IT": Hp,
- "ja-JP": Up,
- "ko-KR": Wp,
- "lt-LT": Gp,
- "lv-LV": Kp,
- "nb-NO": qp,
- "nl-NL": Jp,
- "pl-PL": Yp,
- "pt-BR": Xp,
- "pt-PT": Zp,
- "ro-RO": Qp,
- "ru-RU": $p,
- "sk-SK": em,
- "sl-SI": tm,
- "sr-SP": nm,
- "sv-SE": rm,
- "tr-TR": im,
- "uk-UA": am,
- "zh-CN": om,
- "zh-TW": sm
+var xm = {};
+xm = {
+ "ar-AE": Vp,
+ "bg-BG": Hp,
+ "cs-CZ": Up,
+ "da-DK": Wp,
+ "de-DE": Gp,
+ "el-GR": Kp,
+ "en-US": qp,
+ "es-ES": Jp,
+ "et-EE": Yp,
+ "fi-FI": Xp,
+ "fr-FR": Zp,
+ "he-IL": Qp,
+ "hr-HR": $p,
+ "hu-HU": em,
+ "it-IT": tm,
+ "ja-JP": nm,
+ "ko-KR": rm,
+ "lt-LT": im,
+ "lv-LV": am,
+ "nb-NO": om,
+ "nl-NL": sm,
+ "pl-PL": cm,
+ "pt-BR": lm,
+ "pt-PT": um,
+ "ro-RO": dm,
+ "ru-RU": fm,
+ "sk-SK": pm,
+ "sl-SI": mm,
+ "sr-SP": hm,
+ "sv-SE": gm,
+ "tr-TR": _m,
+ "uk-UA": vm,
+ "zh-CN": ym,
+ "zh-TW": bm
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var lm = /*#__PURE__*/ (0, x.createContext)({}), um = /*#__PURE__*/ (0, x.createContext)(null), dm = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- let { render: n } = (0, x.useContext)(um);
+var Sm = /*#__PURE__*/ (0, x.createContext)({}), Cm = /*#__PURE__*/ (0, x.createContext)(null), wm = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ let { render: n } = (0, x.useContext)(Cm);
return /*#__PURE__*/ x.createElement(x.Fragment, null, n(e, t));
});
-function fm(e, t) {
+function Tm(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, x.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ x.createElement(dm, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ x.createElement(wm, { target: e });
}, [
t?.target,
r,
@@ -19671,7 +19590,7 @@ function fm(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function pm(e, t, n) {
+function Em(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;
@@ -19694,15 +19613,15 @@ function pm(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var mm = /*#__PURE__*/ (0, x.createContext)({}), hm = /*#__PURE__*/ (0, x.createContext)(null);
-function gm(e) {
+var Dm = /*#__PURE__*/ (0, x.createContext)({}), Om = /*#__PURE__*/ (0, x.createContext)(null);
+function km(e) {
let t = (0, x.useRef)({});
- return /*#__PURE__*/ x.createElement(hm.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ x.createElement(Om.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var _m = /*#__PURE__*/ (0, x.createContext)({ isSelected: !1 }), vm = /*#__PURE__*/ (0, x.createContext)({});
-(class extends ut {
+var Am = /*#__PURE__*/ (0, x.createContext)({ isSelected: !1 }), jm = /*#__PURE__*/ (0, x.createContext)({});
+(class extends dt {
static {
this.type = "separator";
}
@@ -19717,13 +19636,13 @@ var _m = /*#__PURE__*/ (0, x.createContext)({ isSelected: !1 }), vm = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function ym(e) {
+function Mm(e) {
let t = x.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 bm = class {
+var Nm = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -19767,20 +19686,20 @@ var bm = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, xm = class e extends Set {
+}, Pm = 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 Sm(e, t) {
+function Fm(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function Cm(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, x.useRef)(!1), [, s] = (0, x.useState)(!1), c = (0, x.useRef)(null), l = (0, x.useRef)(null), [, u] = (0, x.useState)(null), [d, f] = Fo((0, x.useMemo)(() => wm(e.selectedKeys), [e.selectedKeys]), (0, x.useMemo)(() => wm(e.defaultSelectedKeys, new xm()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, x.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, x.useState)(i);
+function Im(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, x.useRef)(!1), [, s] = (0, x.useState)(!1), c = (0, x.useRef)(null), l = (0, x.useRef)(null), [, u] = (0, x.useState)(null), [d, f] = Io((0, x.useMemo)(() => Lm(e.selectedKeys), [e.selectedKeys]), (0, x.useMemo)(() => Lm(e.defaultSelectedKeys, new Pm()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, x.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, x.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, x.useRef)(i);
return (0, x.useEffect)(() => {
@@ -19807,18 +19726,18 @@ function Cm(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !Sm(e, d)) && f(e);
+ (r || !Fm(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function wm(e, t) {
- return e ? e === "all" ? "all" : new xm(e) : t;
+function Lm(e, t) {
+ return e ? e === "all" ? "all" : new Pm(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var Tm = class e {
+var Rm = 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;
}
@@ -19874,7 +19793,7 @@ var Tm = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && tc(this.collection, n, e) < 0) && (e = n);
+ (!e || n && nc(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -19882,7 +19801,7 @@ var Tm = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && tc(this.collection, n, e) > 0) && (e = n);
+ (!e || n && nc(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -19901,10 +19820,10 @@ var Tm = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new xm([t], t, t);
+ if (this.state.selectedKeys === "all") n = new Pm([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new xm(e, r, t);
+ n = new Pm(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);
}
@@ -19912,7 +19831,7 @@ var Tm = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? tc(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? nc(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);
@@ -19938,19 +19857,19 @@ var Tm = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new xm(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new Pm(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 xm([t], t, t) : new xm();
+ let n = this.canSelectItem(t) ? new Pm([t], t, t) : new Pm();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new xm();
+ let t = new Pm();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -19962,7 +19881,7 @@ var Tm = 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($s(Qs(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(ec($s(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -19973,7 +19892,7 @@ var Tm = 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 xm());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new Pm());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -20014,9 +19933,9 @@ var Tm = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, Em = class {
+}, zm = class {
build(e, t) {
- return this.context = t, Dm(() => this.iterateCollection(e));
+ return this.context = t, Bm(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -20098,10 +20017,10 @@ var Tm = class e {
...a,
key: l,
index: s,
- wrapper: Om(e.wrapper, a.wrapper)
+ wrapper: Vm(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 <${km(t.type)}> in <${km(r?.type ?? "unknown parent type")}>. Only <${km(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 <${Hm(t.type)}> in <${Hm(r?.type ?? "unknown parent type")}>. Only <${Hm(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -20123,7 +20042,7 @@ var Tm = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: Dm(function* () {
+ childNodes: Bm(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -20142,7 +20061,7 @@ var Tm = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function Dm(e) {
+function Bm(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -20150,18 +20069,18 @@ function Dm(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function Om(e, t) {
+function Vm(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function km(e) {
+function Hm(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function Am(e, t, n) {
- let r = (0, x.useMemo)(() => new Em(), []), { children: i, items: a, collection: o } = e;
+function Um(e, t, n) {
+ let r = (0, x.useMemo)(() => new zm(), []), { children: i, items: a, collection: o } = e;
return (0, x.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -20176,27 +20095,27 @@ function Am(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function jm(e) {
- let { filter: t, layoutDelegate: n } = e, r = Cm(e), i = (0, x.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = Am(e, (0, x.useCallback)((e) => t ? new bm(t(e)) : new bm(e), [t]), (0, x.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, x.useMemo)(() => new Tm(a, r, { layoutDelegate: n }), [
+function Wm(e) {
+ let { filter: t, layoutDelegate: n } = e, r = Im(e), i = (0, x.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = Um(e, (0, x.useCallback)((e) => t ? new Nm(t(e)) : new Nm(e), [t]), (0, x.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, x.useMemo)(() => new Rm(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return Nm(a, o), {
+ return Km(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function Mm(e, t) {
+function Gm(e, t) {
let n = (0, x.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return Nm(n, r), {
+ return Km(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function Nm(e, t) {
+function Km(e, t) {
let n = (0, x.useRef)(null);
(0, x.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -20224,15 +20143,15 @@ function Nm(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function Pm(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, x.useRef)(null), s = yi((e) => {
+function qm(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, x.useRef)(null), s = bi((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- V(() => {
+ B(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: to(t?.current),
+ root: no(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -20248,42 +20167,42 @@ function Pm(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var Fm = /*#__PURE__*/ (0, x.createContext)(null), Im = /*#__PURE__*/ (0, x.createContext)(null), Lm = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- [e, t] = Gf(e, t, Fm);
- let n = (0, x.useContext)(Im);
- return n ? /*#__PURE__*/ x.createElement(zm, {
+var Jm = /*#__PURE__*/ (0, x.createContext)(null), Ym = /*#__PURE__*/ (0, x.createContext)(null), Xm = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = ip(e, t, Jm);
+ let n = (0, x.useContext)(Ym);
+ return n ? /*#__PURE__*/ x.createElement(Qm, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ x.createElement(Xr, { content: /*#__PURE__*/ x.createElement(si, e) }, (n) => /*#__PURE__*/ x.createElement(Rm, {
+ }) : /*#__PURE__*/ x.createElement(Zr, { content: /*#__PURE__*/ x.createElement(ci, e) }, (n) => /*#__PURE__*/ x.createElement(Zm, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function Rm({ props: e, listBoxRef: t, collection: n }) {
+function Zm({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, x.useContext)(rp), i = jm({
+ let { layoutDelegate: r } = (0, x.useContext)(gp), i = Wm({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ x.createElement(zm, {
+ return /*#__PURE__*/ x.createElement(Qm, {
state: i,
props: e,
listBoxRef: t
});
}
-function zm({ state: e, props: t, listBoxRef: n }) {
- [t, n] = Gf(t, n, Zf);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Mm(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Mi(), { disabledBehavior: p, disabledKeys: m } = l, h = oc({
+function Qm({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = ip(t, n, up);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Gm(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Ni(), { disabledBehavior: p, disabledKeys: m } = l, h = sc({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, x.useContext)(rp), b = (0, x.useMemo)(() => t.keyboardDelegate || new rs({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, x.useContext)(gp), b = (0, x.useMemo)(() => t.keyboardDelegate || new is({
collection: c,
collator: h,
ref: n,
@@ -20304,7 +20223,7 @@ function zm({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: S } = kc({
+ ]), { listBoxProps: S } = Ac({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -20336,7 +20255,7 @@ function zm({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, w, n), E = w.isDropTarget({ type: "root" });
}
- let { focusProps: k, isFocused: A, isFocusVisible: ee } = hc(), j = s.collection.size === 0, te = {
+ let { focusProps: k, isFocused: A, isFocusVisible: ee } = gc(), j = s.collection.size === 0, te = {
isDropTarget: E,
isEmpty: j,
isFocused: A,
@@ -20344,7 +20263,7 @@ function zm({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, M = Uf({
+ }, M = $({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -20354,9 +20273,9 @@ function zm({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(te)));
- let N = U(t, { global: !0 });
- return /*#__PURE__*/ x.createElement(Ea, null, /*#__PURE__*/ x.createElement(Xf.div, {
- ...H(N, M, S, k, T?.collectionProps),
+ let N = H(t, { global: !0 });
+ return /*#__PURE__*/ x.createElement(Da, null, /*#__PURE__*/ x.createElement(lp.div, {
+ ...V(N, M, S, k, T?.collectionProps),
ref: n,
slot: t.slot || void 0,
onScroll: t.onScroll,
@@ -20366,60 +20285,60 @@ function zm({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": ee || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ x.createElement(Hf, { values: [
- [Fm, t],
- [Im, s],
- [lm, {
+ }, /*#__PURE__*/ x.createElement(np, { values: [
+ [Jm, t],
+ [Ym, s],
+ [Sm, {
dragAndDropHooks: r,
dragState: C,
dropState: w
}],
- [vm, { elementType: "div" }],
- [um, { render: Hm }],
- [$f, {
+ [jm, { elementType: "div" }],
+ [Cm, { render: th }],
+ [fp, {
name: "ListBoxSection",
- render: Bm
+ render: $m
}]
- ] }, /*#__PURE__*/ x.createElement(gm, null, /*#__PURE__*/ x.createElement(y, {
+ ] }, /*#__PURE__*/ x.createElement(km, null, /*#__PURE__*/ x.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: pm(l, r, w),
- renderDropIndicator: fm(r, w)
+ persistedKeys: Em(l, r, w),
+ renderDropIndicator: Tm(r, w)
}))), ne, D));
}
-function Bm(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, x.useContext)(Im), { dragAndDropHooks: a, dropState: o } = (0, x.useContext)(lm), { CollectionBranch: s } = (0, x.useContext)(rp), [c, l] = Kf(), { headingProps: u, groupProps: d } = Ac({
+function $m(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, x.useContext)(Ym), { dragAndDropHooks: a, dropState: o } = (0, x.useContext)(Sm), { CollectionBranch: s } = (0, x.useContext)(gp), [c, l] = ap(), { headingProps: u, groupProps: d } = jc({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = Uf({
+ }), f = $({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = U(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ x.createElement(Xf.section, {
- ...H(p, f, d),
+ }), p = H(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ x.createElement(lp.section, {
+ ...V(p, f, d),
ref: t
- }, /*#__PURE__*/ x.createElement(mm.Provider, { value: {
+ }, /*#__PURE__*/ x.createElement(Dm.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ x.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: fm(a, o)
+ renderDropIndicator: Tm(a, o)
})));
}
-var Vm = /*#__PURE__*/ ii(pt, function(e, t, n) {
- let r = Nr(t), i = (0, x.useContext)(Im), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, x.useContext)(lm), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = jc({
+var eh = /*#__PURE__*/ ai(mt, function(e, t, n) {
+ let r = Pr(t), i = (0, x.useContext)(Ym), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, x.useContext)(Sm), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Mc({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = Sc({
+ }, i, r), { hoverProps: p, isHovered: m } = Cc({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = Mr(e), { focusProps: g } = vr(e), _ = null;
+ }), { keyboardProps: h } = Nr(e), { focusProps: g } = yr(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -20430,7 +20349,7 @@ var Vm = /*#__PURE__*/ ii(pt, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = Uf({
+ let y = o && o.isDragging(n.key), b = $({
...e,
id: void 0,
children: e.children,
@@ -20448,9 +20367,9 @@ var Vm = /*#__PURE__*/ ii(pt, function(e, t, n) {
(0, x.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let S = e.href ? Xf.a : Xf.div, C = U(e, { global: !0 });
+ let S = e.href ? lp.a : lp.div, C = H(e, { global: !0 });
return delete C.id, delete C.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ x.createElement(S, {
- ...H(C, b, l, p, h, g, _?.dragProps, v?.dropProps),
+ ...V(C, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
"data-allows-dragging": !!o || void 0,
"data-selected": f.isSelected || void 0,
@@ -20462,29 +20381,29 @@ var Vm = /*#__PURE__*/ ii(pt, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ x.createElement(Hf, { values: [[pp, { slots: {
- [Vf]: u,
+ }, /*#__PURE__*/ x.createElement(np, { values: [[Ep, { slots: {
+ [Q]: u,
label: u,
description: d
- } }], [_m, { isSelected: f.isSelected }]] }, b.children));
+ } }], [Am, { isSelected: f.isSelected }]] }, b.children));
});
-function Hm(e, t) {
- t = Nr(t);
- let { dragAndDropHooks: n, dropState: r } = (0, x.useContext)(lm), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ x.createElement(Wm, {
+function th(e, t) {
+ t = Pr(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, x.useContext)(Sm), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ x.createElement(rh, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Um(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = Uf({
+function nh(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = $({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ x.createElement(x.Fragment, null, /*#__PURE__*/ x.createElement(Xf.div, {
+ return /*#__PURE__*/ x.createElement(x.Fragment, null, /*#__PURE__*/ x.createElement(lp.div, {
...n,
...a,
role: "option",
@@ -20492,10 +20411,10 @@ function Um(e, t) {
"data-drop-target": r || void 0
}));
}
-var Wm = /*#__PURE__*/ (0, x.forwardRef)(Um);
-ii(ft, function(e, t, n) {
- let r = (0, x.useContext)(Im), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, x.useRef)(null);
- Pm((0, x.useMemo)(() => ({
+var rh = /*#__PURE__*/ (0, x.forwardRef)(nh);
+ai(pt, function(e, t, n) {
+ let r = (0, x.useContext)(Ym), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, x.useRef)(null);
+ qm((0, x.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -20505,7 +20424,7 @@ ii(ft, function(e, t, n) {
o,
r?.collection
]), c);
- let l = Uf({
+ let l = $({
...s,
id: void 0,
children: n.rendered,
@@ -20518,7 +20437,7 @@ ii(ft, function(e, t, n) {
width: 0,
height: 0
},
- inert: ym(!0)
+ inert: Mm(!0)
}, /*#__PURE__*/ x.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -20527,8 +20446,8 @@ ii(ft, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ x.createElement(x.Fragment, null, /*#__PURE__*/ x.createElement(Xf.div, {
- ...H(U(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ x.createElement(x.Fragment, null, /*#__PURE__*/ x.createElement(lp.div, {
+ ...V(H(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -20536,11 +20455,11 @@ ii(ft, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Gm = /*#__PURE__*/ (0, x.createContext)({ placement: "bottom" });
+var ih = /*#__PURE__*/ (0, x.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function Km(e) {
- let [t, n] = Fo(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, x.useState)(null);
+function ah(e) {
+ let [t, n] = Io(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, x.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -20559,13 +20478,13 @@ function Km(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function qm(e, t = !0) {
+function oh(e, t = !0) {
let [n, r] = (0, x.useState)(!0), i = n && t;
- return V(() => {
+ return B(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), Ym(e, i, (0, x.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), ch(e, i, (0, x.useCallback)(() => r(!1), [])), i;
}
-function Jm(e, t) {
+function sh(e, t) {
let [n, r] = (0, x.useState)(t ? "open" : "closed");
switch (n) {
case "open":
@@ -20575,12 +20494,12 @@ function Jm(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return Ym(e, i, (0, x.useCallback)(() => {
+ return ch(e, i, (0, x.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function Ym(e, t, n) {
- V(() => {
+function ch(e, t, n) {
+ B(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
n();
@@ -20593,7 +20512,7 @@ function Ym(e, t, n) {
}
let r = !1;
return Promise.allSettled(t.map((e) => e.finished)).then(() => {
- r || (0, Kr.flushSync)(() => {
+ r || (0, qr.flushSync)(() => {
n();
});
}), () => {
@@ -20608,9 +20527,9 @@ function Ym(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var Xm = /*#__PURE__*/ (0, x.createContext)(null), Zm = /*#__PURE__*/ (0, x.createContext)(null), Qm = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- [e, t] = Gf(e, t, Xm);
- let n = (0, x.useContext)(th), r = Km(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Jm(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Vr(), { direction: c } = Mi();
+var lh = /*#__PURE__*/ (0, x.createContext)(null), uh = /*#__PURE__*/ (0, x.createContext)(null), dh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = ip(e, t, lh);
+ let n = (0, x.useContext)(mh), r = ah(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = sh(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Hr(), { direction: c } = Ni();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -20621,7 +20540,7 @@ var Xm = /*#__PURE__*/ (0, x.createContext)(null), Zm = /*#__PURE__*/ (0, x.crea
defaultChildren: null
})), /*#__PURE__*/ x.createElement(x.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ x.createElement($m, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ x.createElement(fh, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -20630,13 +20549,13 @@ var Xm = /*#__PURE__*/ (0, x.createContext)(null), Zm = /*#__PURE__*/ (0, x.crea
dir: c
});
});
-function $m({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, x.useRef)(null), o = (0, x.useRef)(null), s = (0, x.useContext)(Zm), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = $l({
+function fh({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, x.useRef)(null), o = (0, x.useRef)(null), s = (0, x.useContext)(uh), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = eu({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = qm(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = Uf({
+ }, e), m = i.popoverRef, h = oh(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = $({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -20646,10 +20565,10 @@ function $m({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
isExiting: t
}
}), v = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [y, b] = (0, x.useState)(i.trigger === "PreviewTrigger");
- V(() => {
+ B(() => {
m.current && b(v && !m.current.querySelector("[role=dialog]"));
}, [m, v]), (0, x.useEffect)(() => {
- y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || Jn() !== "pointer") && m.current && !Lt(m.current) && ir(m.current);
+ y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || Yn() !== "pointer") && m.current && !Rt(m.current) && ar(m.current);
}, [
y,
m,
@@ -20662,7 +20581,7 @@ function $m({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
}, [_.children, r]), [C, w] = (0, x.useState)(null), T = (0, x.useCallback)(() => {
i.triggerRef.current && w(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- V(T, [T]), Nc({
+ B(T, [T]), Pc({
ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: T
});
@@ -20671,8 +20590,8 @@ function $m({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
"--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,
..._.style,
"--trigger-width": _.style?.["--trigger-width"] || C
- }, D = /*#__PURE__*/ x.createElement(Xf.div, {
- ...H(U(i, { global: !0 }), l),
+ }, D = /*#__PURE__*/ x.createElement(lp.div, {
+ ...V(H(i, { global: !0 }), l),
..._,
id: y ? i.id : void 0,
role: y ? "dialog" : void 0,
@@ -20687,17 +20606,17 @@ function $m({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ x.createElement(gl, { onDismiss: e.close }), /*#__PURE__*/ x.createElement(Gm.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ x.createElement(_l, { onDismiss: e.close }), /*#__PURE__*/ x.createElement(ih.Provider, { value: {
...d,
placement: f,
ref: a
- } }, S), /*#__PURE__*/ x.createElement(gl, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ x.createElement(fc, {
+ } }, S), /*#__PURE__*/ x.createElement(_l, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ x.createElement(pc, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, D) : /*#__PURE__*/ x.createElement(fc, {
+ }, D) : /*#__PURE__*/ x.createElement(pc, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -20712,50 +20631,50 @@ function $m({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
}), /*#__PURE__*/ x.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ x.createElement(Zm.Provider, { value: o }, D)));
+ }, /*#__PURE__*/ x.createElement(uh.Provider, { value: o }, D)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var eh = /*#__PURE__*/ (0, x.createContext)(null), th = /*#__PURE__*/ (0, x.createContext)(null), nh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+var ph = /*#__PURE__*/ (0, x.createContext)(null), mh = /*#__PURE__*/ (0, x.createContext)(null), hh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = Gf(e, t, eh);
- let { dialogProps: r, titleProps: i, contentProps: a } = mc({
+ [e, t] = ip(e, t, ph);
+ let { dialogProps: r, titleProps: i, contentProps: a } = hc({
...e,
"aria-labelledby": n
- }, t), o = (0, x.useContext)(th);
+ }, t), o = (0, x.useContext)(mh);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = Uf({
+ let s = $({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = U(e, { global: !0 });
- return /*#__PURE__*/ x.createElement(Xf.section, {
- ...H(c, s, r),
+ }), c = H(e, { global: !0 });
+ return /*#__PURE__*/ x.createElement(lp.section, {
+ ...V(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ x.createElement(Hf, { values: [
- [dp, { slots: {
- [Vf]: {},
+ }, /*#__PURE__*/ x.createElement(np, { values: [
+ [wp, { slots: {
+ [Q]: {},
title: {
...i,
level: 2
}
} }],
- [pp, { slots: {
- [Vf]: {},
+ [Ep, { slots: {
+ [Q]: {},
description: a
} }],
- [sp, { slots: {
- [Vf]: {},
+ [bp, { slots: {
+ [Q]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), rh = Math.round(Math.random() * 1e10), ih = 0;
-function ah(e) {
- let t = (0, x.useMemo)(() => e.name || `radio-group-${rh}-${++ih}`, [e.name]), [n, r] = Fo(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, x.useState)(n), [a, o] = (0, x.useState)(null), s = So({
+}), gh = Math.round(Math.random() * 1e10), _h = 0;
+function vh(e) {
+ let t = (0, x.useMemo)(() => e.name || `radio-group-${gh}-${++_h}`, [e.name]), [n, r] = Io(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, x.useState)(n), [a, o] = (0, x.useState)(null), s = Co({
...e,
value: n
}), c = (t) => {
@@ -20778,16 +20697,16 @@ function ah(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var oh = /*#__PURE__*/ (0, x.createContext)(null), sh = /*#__PURE__*/ (0, x.createContext)(null), ch = /*#__PURE__*/ (0, x.createContext)(null), lh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- [e, t] = Gf(e, t, oh);
- let { validationBehavior: n } = Wf(gp) || {}, r = e.validationBehavior ?? n ?? "native", i = ah({
+var yh = /*#__PURE__*/ (0, x.createContext)(null), bh = /*#__PURE__*/ (0, x.createContext)(null), xh = /*#__PURE__*/ (0, x.createContext)(null), Sh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = ip(e, t, yh);
+ let { validationBehavior: n } = rp(kp) || {}, r = e.validationBehavior ?? n ?? "native", i = vh({
...e,
validationBehavior: r
- }), [a, o] = Kf(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = nu({
+ }), [a, o] = ap(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = ru({
...e,
label: o,
validationBehavior: r
- }, i), f = Uf({
+ }, i), f = $({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -20798,9 +20717,9 @@ var oh = /*#__PURE__*/ (0, x.createContext)(null), sh = /*#__PURE__*/ (0, x.crea
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = U(e, { global: !0 });
- return /*#__PURE__*/ x.createElement(Xf.div, {
- ...H(p, f, s),
+ }), p = H(e, { global: !0 });
+ return /*#__PURE__*/ x.createElement(lp.div, {
+ ...V(p, f, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": e.orientation || "vertical",
@@ -20808,39 +20727,39 @@ var oh = /*#__PURE__*/ (0, x.createContext)(null), sh = /*#__PURE__*/ (0, x.crea
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ x.createElement(Hf, { values: [
- [ch, i],
- [ip, {
+ }, /*#__PURE__*/ x.createElement(np, { values: [
+ [xh, i],
+ [_p, {
...c,
ref: a,
elementType: "span"
}],
- [pp, { slots: {
+ [Ep, { slots: {
description: l,
errorMessage: u
} }],
- [hp, d]
- ] }, /*#__PURE__*/ x.createElement(gm, null, f.children)));
-}), uh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [Op, d]
+ ] }, /*#__PURE__*/ x.createElement(km, null, f.children)));
+}), Ch = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Gf(r, t, sh);
- let i = x.useContext(ch), a = Nr((0, x.useMemo)(() => mr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = tu({
- ...qf(e),
+ [e, t] = ip(r, t, bh);
+ let i = x.useContext(xh), a = Pr((0, x.useMemo)(() => hr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = nu({
+ ...op(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ x.createElement(dh.Provider, { value: {
+ return /*#__PURE__*/ x.createElement(wh.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ x.createElement(fh, {
+ } }, /*#__PURE__*/ x.createElement(Th, {
...e,
ref: t
}));
-}), dh = /*#__PURE__*/ (0, x.createContext)(null), fh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, x.useContext)(dh), l = x.useContext(ch), { isFocused: u, isFocusVisible: d, focusProps: f } = hc(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = Sc({
+}), wh = /*#__PURE__*/ (0, x.createContext)(null), Th = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, x.useContext)(wh), l = x.useContext(xh), { isFocused: u, isFocusVisible: d, focusProps: f } = gc(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = Cc({
...e,
isDisabled: p
- }), g = Uf({
+ }), g = $({
...e,
defaultClassName: s,
values: {
@@ -20854,9 +20773,9 @@ var oh = /*#__PURE__*/ (0, x.createContext)(null), sh = /*#__PURE__*/ (0, x.crea
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = U(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ x.createElement(Xf.label, {
- ...H(_, n, m, g),
+ }), _ = H(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ x.createElement(lp.label, {
+ ...V(_, n, m, g),
ref: t,
"data-selected": i || void 0,
"data-pressed": o || void 0,
@@ -20867,19 +20786,19 @@ var oh = /*#__PURE__*/ (0, x.createContext)(null), sh = /*#__PURE__*/ (0, x.crea
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ x.createElement(Bo, { elementType: "span" }, /*#__PURE__*/ x.createElement("input", {
- ...H(r, f),
+ }, /*#__PURE__*/ x.createElement(Vo, { elementType: "span" }, /*#__PURE__*/ x.createElement("input", {
+ ...V(r, f),
ref: c
})), g.children);
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function ph(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = Km(e), [i, a] = (0, x.useState)(null), o = (0, x.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function Eh(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = ah(e), [i, a] = (0, x.useState)(null), o = (0, x.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = Fo((0, x.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = Io((0, x.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -20891,12 +20810,12 @@ function ph(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = jm({
+ }, d = Wm({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, x.useMemo)(() => mh(l), [l]),
+ selectedKeys: (0, x.useMemo)(() => Dh(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -20906,7 +20825,7 @@ function ph(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, x.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = So({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, x.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = Co({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, x.useState)(!1), [_] = (0, x.useState)(l);
@@ -20933,16 +20852,16 @@ function ph(e) {
setFocused: g
};
}
-function mh(e) {
+function Dh(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 hh(e) {
+function Oh(e) {
return e && e.__esModule ? e.default : e;
}
-var gh = /*#__PURE__*/ (0, x.createContext)(null), _h = /*#__PURE__*/ (0, x.createContext)(null), vh = /*#__PURE__*/ Br(function(e, t) {
- [e, t] = Gf(e, t, gh);
+var kh = /*#__PURE__*/ (0, x.createContext)(null), Ah = /*#__PURE__*/ (0, x.createContext)(null), jh = /*#__PURE__*/ Vr(function(e, t) {
+ [e, t] = ip(e, t, kh);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, x.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -20957,24 +20876,24 @@ var gh = /*#__PURE__*/ (0, x.createContext)(null), _h = /*#__PURE__*/ (0, x.crea
i,
a
]);
- return /*#__PURE__*/ x.createElement(Xr, { content: o }, (n) => /*#__PURE__*/ x.createElement(bh, {
+ return /*#__PURE__*/ x.createElement(Zr, { content: o }, (n) => /*#__PURE__*/ x.createElement(Nh, {
props: e,
collection: n,
selectRef: t
}));
-}), yh = [
- ip,
- sp,
- pp
+}), Mh = [
+ _p,
+ bp,
+ Ep
];
-function bh({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = Wf(gp) || {}, i = e.validationBehavior ?? r ?? "native", a = ph({
+function Nh({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = rp(kp) || {}, i = e.validationBehavior ?? r ?? "native", a = Eh({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = hc({ within: !0 }), c = (0, x.useRef)(null), [l, u] = Kf(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = iu({
- ...qf(e),
+ }), { isFocusVisible: o, focusProps: s } = gc({ within: !0 }), c = (0, x.useRef)(null), [l, u] = ap(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = au({
+ ...op(e),
label: u,
validationBehavior: i
}, a, c), y = (0, x.useMemo)(() => ({
@@ -20991,49 +20910,49 @@ function bh({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = Uf({
+ ]), b = $({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), S = U(e, { global: !0 });
+ }), S = H(e, { global: !0 });
delete S.id;
let C = (0, x.useRef)(null);
- return /*#__PURE__*/ x.createElement(Hf, { values: [
- [gh, e],
- [_h, a],
- [xh, p],
- [ip, {
+ return /*#__PURE__*/ x.createElement(np, { values: [
+ [kh, e],
+ [Ah, a],
+ [Ph, p],
+ [_p, {
...d,
ref: l,
elementType: "span"
}],
- [sp, {
+ [bp, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [th, a],
- [Xm, {
+ [mh, a],
+ [lh, {
trigger: "Select",
triggerRef: c,
scrollRef: C,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: yh
+ clearContexts: Mh
}],
- [Fm, {
+ [Jm, {
...m,
ref: C
}],
- [Im, a],
- [pp, { slots: {
+ [Ym, a],
+ [Ep, { slots: {
description: h,
errorMessage: g
} }],
- [hp, v]
- ] }, /*#__PURE__*/ x.createElement(Xf.div, {
- ...H(S, b, s),
+ [Op, v]
+ ] }, /*#__PURE__*/ x.createElement(lp.div, {
+ ...V(S, b, s),
ref: t,
slot: e.slot || void 0,
"data-focused": a.isFocused || void 0,
@@ -21042,14 +20961,14 @@ function bh({ 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__*/ x.createElement(ou, {
+ }, b.children, /*#__PURE__*/ x.createElement(su, {
..._,
autoComplete: e.autoComplete
})));
}
-var xh = /*#__PURE__*/ (0, x.createContext)(null), Sh = /*#__PURE__*/ Br(function(e, t) {
- [e, t] = Gf(e, t, xh);
- let n = (0, x.useContext)(_h), { placeholder: r } = Wf(gh), i = n.selectedItems.map((e) => {
+var Ph = /*#__PURE__*/ (0, x.createContext)(null), Fh = /*#__PURE__*/ Vr(function(e, t) {
+ [e, t] = ip(e, t, Ph);
+ let n = (0, x.useContext)(Ah), { placeholder: r } = rp(kh), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -21061,7 +20980,7 @@ var xh = /*#__PURE__*/ (0, x.createContext)(null), Sh = /*#__PURE__*/ Br(functio
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = gc(), o = (0, x.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, x.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = _c(), o = (0, x.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, x.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -21076,7 +20995,7 @@ var xh = /*#__PURE__*/ (0, x.createContext)(null), Sh = /*#__PURE__*/ Br(functio
a,
o,
i
- ]), u = Ki(hh(cm), "react-aria-components"), d = Uf({
+ ]), u = qi(Oh(xm), "react-aria-components"), d = $({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -21087,33 +21006,33 @@ var xh = /*#__PURE__*/ (0, x.createContext)(null), Sh = /*#__PURE__*/ Br(functio
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = U(e, { global: !0 });
- return /*#__PURE__*/ x.createElement(Xf.span, {
+ }), f = H(e, { global: !0 });
+ return /*#__PURE__*/ x.createElement(lp.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ x.createElement(pp.Provider, { value: void 0 }, d.children));
-}), Ch = /*#__PURE__*/ (0, x.createContext)(null), wh = /*#__PURE__*/ (0, x.createContext)(null), Th = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ x.createElement(Ep.Provider, { value: void 0 }, d.children));
+}), Ih = /*#__PURE__*/ (0, x.createContext)(null), Lh = /*#__PURE__*/ (0, x.createContext)(null), Rh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Gf(r, t, Ch);
- let i = Nr((0, x.useMemo)(() => mr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = Io(e), o = su({
- ...qf(e),
+ [e, t] = ip(r, t, Ih);
+ let i = Pr((0, x.useMemo)(() => hr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = Lo(e), o = cu({
+ ...op(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ x.createElement(Hf, { values: [[wh, a], [Eh, {
+ return /*#__PURE__*/ x.createElement(np, { values: [[Lh, a], [zh, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ x.createElement(Dh, {
+ }]] }, /*#__PURE__*/ x.createElement(Bh, {
...e,
ref: t
}));
-}), Eh = /*#__PURE__*/ (0, x.createContext)(null), Dh = /*#__PURE__*/ (0, x.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, x.useContext)(Eh), { isFocused: f, isFocusVisible: p, focusProps: m } = hc(), h = a || o, g = (0, x.useContext)(wh), { hoverProps: _, isHovered: v } = Sc({
+}), zh = /*#__PURE__*/ (0, x.createContext)(null), Bh = /*#__PURE__*/ (0, x.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, x.useContext)(zh), { isFocused: f, isFocusVisible: p, focusProps: m } = gc(), h = a || o, g = (0, x.useContext)(Lh), { hoverProps: _, isHovered: v } = Cc({
...e,
isDisabled: h
- }), y = Uf({
+ }), y = $({
...e,
defaultClassName: u,
values: {
@@ -21128,9 +21047,9 @@ var xh = /*#__PURE__*/ (0, x.createContext)(null), Sh = /*#__PURE__*/ Br(functio
isRequired: d || !1,
state: g
}
- }), b = U(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ x.createElement(Xf.label, {
- ...H(b, n, _, y),
+ }), b = H(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ x.createElement(lp.label, {
+ ...V(b, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@ -21142,22 +21061,22 @@ var xh = /*#__PURE__*/ (0, x.createContext)(null), Sh = /*#__PURE__*/ Br(functio
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ x.createElement(Bo, { elementType: "span" }, /*#__PURE__*/ x.createElement("input", {
- ...H(r, m),
+ }, /*#__PURE__*/ x.createElement(Vo, { elementType: "span" }, /*#__PURE__*/ x.createElement("input", {
+ ...V(r, m),
ref: l
})), y.children);
-}), Oh = /*#__PURE__*/ (0, x.createContext)({}), kh = /*#__PURE__*/ (0, x.createContext)(null), Ah = /*#__PURE__*/ Br(function(e, t) {
- [e, t] = Gf(e, t, kh);
- let { validationBehavior: n } = Wf(gp) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, x.useRef)(null);
- [e, i] = Gf(e, i, Qf);
- let [a, o] = Kf(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, x.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Vo({
- ...qf(e),
+}), Vh = /*#__PURE__*/ (0, x.createContext)({}), Hh = /*#__PURE__*/ (0, x.createContext)(null), Uh = /*#__PURE__*/ Vr(function(e, t) {
+ [e, t] = ip(e, t, Hh);
+ let { validationBehavior: n } = rp(kp) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, x.useRef)(null);
+ [e, i] = ip(e, i, dp);
+ let [a, o] = ap(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, x.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Ho({
+ ...op(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, x.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = Uf({
+ }, [i]), h = $({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -21166,8 +21085,8 @@ var xh = /*#__PURE__*/ (0, x.createContext)(null), Sh = /*#__PURE__*/ Br(functio
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = U(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ x.createElement(Xf.div, {
+ }), g = H(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ x.createElement(lp.div, {
...g,
...h,
ref: t,
@@ -21176,95 +21095,142 @@ var xh = /*#__PURE__*/ (0, x.createContext)(null), Sh = /*#__PURE__*/ Br(functio
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ x.createElement(Hf, { values: [
- [ip, {
+ }, /*#__PURE__*/ x.createElement(np, { values: [
+ [_p, {
...l,
ref: a
}],
- [Tp, {
+ [Rp, {
...u,
ref: m
}],
- [Oh, {
+ [Vh, {
...u,
ref: m
}],
- [Cp, {
+ [Ip, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [pp, { slots: {
+ [Ep, { slots: {
description: d,
errorMessage: f
} }],
- [hp, p]
+ [Op, p]
] }, h.children));
-});
-//#endregion
-//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function jh({ className: e, children: t }) {
- return /* @__PURE__ */ (0, S.jsx)("div", {
- className: Yd("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
- children: t
- });
-}
-function Mh({ className: e, children: t }) {
- return /* @__PURE__ */ (0, S.jsx)("p", {
- className: Yd("w-full px-3 text-body-2-medium text-text-secondary", e),
- children: t
- });
-}
-function Nh({ label: e, description: t, children: n }) {
- return /* @__PURE__ */ (0, S.jsxs)("div", {
- className: Yd("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, S.jsxs)("div", {
- className: "flex min-w-0 flex-col",
- children: [/* @__PURE__ */ (0, S.jsx)("p", {
- className: "text-body-regular text-text-primary",
- children: e
- }), t && /* @__PURE__ */ (0, S.jsx)("p", {
- className: "text-body-2-regular text-text-secondary",
- children: t
- })]
- }), n]
- });
-}
-//#endregion
-//#region src/react/boardui/components/base/buttons/link-button.tsx
-var Ph = Xd({
+}), Wh = af({
base: [
- "inline-flex items-center justify-center gap-1 whitespace-nowrap",
- "font-sans select-none cursor-pointer rounded-sm",
- "underline-offset-3 hover:underline",
- "transition-colors duration-150 ease",
+ "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
+ "font-sans select-none cursor-pointer",
+ "button-press-motion",
"outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring",
- "disabled:cursor-not-allowed disabled:no-underline aria-disabled:cursor-not-allowed aria-disabled:no-underline"
+ "disabled:cursor-not-allowed aria-disabled:cursor-not-allowed"
].join(" "),
size: {
- medium: "text-body-medium",
- small: "text-body-medium",
- xs: "text-caption-1-semibold"
+ medium: "h-9 rounded-2lg p-2 text-body-medium",
+ small: "h-8 rounded-lg px-2 py-1.5 text-body-medium",
+ xs: "h-6 rounded-sm px-2 text-caption-1-semibold"
+ },
+ iconOnlySize: {
+ medium: "",
+ small: "size-8 p-0",
+ xs: "size-6 p-0"
},
icon: {
medium: "size-5 shrink-0",
small: "size-[18px] shrink-0",
xs: "size-3.5 shrink-0"
},
- variant: {
- primary: ["text-accent-600 active:text-accent-800", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" "),
+ label: {
+ medium: "inline-flex items-center justify-center px-1 shrink-0",
+ small: "inline-flex items-center justify-center px-0.5 shrink-0",
+ xs: "inline-flex items-center justify-center px-0.5 shrink-0"
+ },
+ variant: {
+ primary: [
+ "bg-button-primary text-text-white shadow-xs",
+ "disabled:text-button-primary-disabled-foreground disabled:shadow-none",
+ "aria-disabled:text-button-primary-disabled-foreground aria-disabled:shadow-none"
+ ].join(" "),
+ danger: [
+ "bg-button-danger text-text-white shadow-xs",
+ "disabled:text-foreground-disabled-danger disabled:shadow-none",
+ "aria-disabled:text-foreground-disabled-danger aria-disabled:shadow-none"
+ ].join(" "),
+ secondary: [
+ "bg-background-primary-default text-text-primary",
+ "border border-border-button-default shadow-xs",
+ "hover:bg-background-primary-hover hover:border-border-button-hover",
+ "active:bg-background-primary-active active:border-border-button-active",
+ "disabled:bg-background-primary-disabled disabled:border-border-button-default disabled:text-text-tertiary disabled:shadow-none",
+ "aria-disabled:bg-background-primary-disabled aria-disabled:border-border-button-default aria-disabled:text-text-tertiary aria-disabled:shadow-none"
+ ].join(" "),
+ ghost: [
+ "bg-button-ghost-background text-button-ghost-foreground",
+ "hover:bg-button-ghost-hover active:bg-button-ghost-active",
+ "disabled:bg-button-ghost-disabled disabled:text-button-ghost-disabled-foreground disabled:shadow-none",
+ "aria-disabled:bg-button-ghost-disabled aria-disabled:text-button-ghost-disabled-foreground aria-disabled:shadow-none"
+ ].join(" ")
+ }
+});
+function Gh({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, type: s = "button", ref: c, ...l }) {
+ return /* @__PURE__ */ (0, S.jsxs)("button", {
+ ref: c,
+ type: s,
+ className: rf(Wh.base, Wh.size[t], Wh.variant[e], n && Wh.iconOnlySize[t], o),
+ ...l,
+ children: [
+ r ? /* @__PURE__ */ (0, S.jsx)(r, {
+ className: Wh.icon[t],
+ "aria-hidden": !0
+ }) : null,
+ !n && a != null && /* @__PURE__ */ (0, S.jsx)("span", {
+ className: Wh.label[t],
+ children: a
+ }),
+ !n && i ? /* @__PURE__ */ (0, S.jsx)(i, {
+ className: Wh.icon[t],
+ "aria-hidden": !0
+ }) : null
+ ]
+ });
+}
+//#endregion
+//#region src/react/boardui/components/base/buttons/link-button.tsx
+var Kh = af({
+ base: [
+ "inline-flex items-center justify-center gap-1 whitespace-nowrap",
+ "font-sans select-none cursor-pointer rounded-sm",
+ "underline-offset-3 hover:underline",
+ "transition-colors duration-150 ease",
+ "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring",
+ "disabled:cursor-not-allowed disabled:no-underline aria-disabled:cursor-not-allowed aria-disabled:no-underline"
+ ].join(" "),
+ size: {
+ medium: "text-body-medium",
+ small: "text-body-medium",
+ xs: "text-caption-1-semibold"
+ },
+ icon: {
+ medium: "size-5 shrink-0",
+ small: "size-[18px] shrink-0",
+ xs: "size-3.5 shrink-0"
+ },
+ variant: {
+ primary: ["text-accent-600 active:text-accent-800", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" "),
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function Fh({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = Yd(Ph.base, Ph.size[t], Ph.variant[e], a), l = /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
+function qh({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = rf(Kh.base, Kh.size[t], Kh.variant[e], a), l = /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
n ? /* @__PURE__ */ (0, S.jsx)(n, {
- className: Ph.icon[t],
+ className: Kh.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, S.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, S.jsx)(r, {
- className: Ph.icon[t],
+ className: Kh.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -21290,12 +21256,609 @@ function Fh({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
});
}
//#endregion
+//#region src/react/boardui/components/base/dropdown/menu-styles.ts
+var Jh = [
+ "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",
+ "data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:blur-[2px]",
+ "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(" "), Yh = "w-[266px]", Xh = "flex w-full flex-col gap-1 outline-none", Zh = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), Qh = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+//#endregion
+//#region src/react/boardui/components/application/settings/settings-rows.tsx
+function $h({ className: e, children: t }) {
+ return /* @__PURE__ */ (0, S.jsx)("div", {
+ className: rf("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ children: t
+ });
+}
+function eg({ className: e, children: t }) {
+ return /* @__PURE__ */ (0, S.jsx)("p", {
+ className: rf("w-full px-3 text-body-2-medium text-text-secondary", e),
+ children: t
+ });
+}
+function tg({ label: e, description: t, children: n }) {
+ return /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: rf("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, S.jsxs)("div", {
+ className: "flex min-w-0 flex-col",
+ children: [/* @__PURE__ */ (0, S.jsx)("p", {
+ className: "text-body-regular text-text-primary",
+ children: e
+ }), t && /* @__PURE__ */ (0, S.jsx)("p", {
+ className: "text-body-2-regular text-text-secondary",
+ children: t
+ })]
+ }), n]
+ });
+}
+//#endregion
+//#region src/react/settings/section.tsx
+function ng({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+ let a = /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [n ? /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex w-full flex-wrap items-center justify-between gap-2",
+ children: [/* @__PURE__ */ (0, S.jsx)("div", {
+ className: "min-w-0 flex-1",
+ children: /* @__PURE__ */ (0, S.jsx)(eg, { children: e })
+ }), n]
+ }) : /* @__PURE__ */ (0, S.jsx)(eg, { children: e }), /* @__PURE__ */ (0, S.jsx)($h, { children: i })] });
+ return r ? /* @__PURE__ */ (0, S.jsx)("form", {
+ id: t,
+ "aria-label": e,
+ noValidate: !0,
+ onSubmit: r,
+ className: "flex w-full flex-col gap-2",
+ children: a
+ }) : /* @__PURE__ */ (0, S.jsx)("section", {
+ id: t,
+ "aria-label": e,
+ className: "flex w-full flex-col gap-2",
+ children: a
+ });
+}
+function rg({ children: e }) {
+ return /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "flex flex-col",
+ children: e
+ });
+}
+function ig({ divided: e = !1, children: t }) {
+ return e ? /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
+ children: t
+ }) : /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "flex flex-col gap-4 py-4 pr-3",
+ children: t
+ });
+}
+function ag({ status: e, children: t }) {
+ return /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex flex-wrap items-center justify-end gap-3 border-t border-separator-border py-3 pr-3",
+ children: [e ? /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "mr-auto min-w-0 text-body-2-regular text-text-secondary",
+ children: e
+ }) : null, t]
+ });
+}
+function og({ role: e, children: t }) {
+ return /* @__PURE__ */ (0, S.jsx)("p", {
+ role: e,
+ className: "text-body-2-regular text-text-secondary",
+ children: t
+ });
+}
+function sg({ children: e }) {
+ return /* @__PURE__ */ (0, S.jsx)("p", {
+ role: "alert",
+ className: "text-body-2-regular text-text-error-primary",
+ children: e
+ });
+}
+function cg({ children: e }) {
+ return /* @__PURE__ */ (0, S.jsx)("p", {
+ className: "text-body-medium text-text-primary",
+ children: e
+ });
+}
+function lg({ href: e, children: t }) {
+ return /* @__PURE__ */ (0, S.jsx)(qh, {
+ href: e,
+ target: "_blank",
+ rel: "noopener noreferrer",
+ size: "small",
+ trailingIcon: yu,
+ children: t
+ });
+}
+function ug({ children: e }) {
+ return /* @__PURE__ */ (0, S.jsx)("dl", {
+ className: "flex flex-col",
+ children: e
+ });
+}
+function dg({ term: e, children: t }) {
+ return /* @__PURE__ */ (0, S.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, S.jsx)("dt", {
+ className: "flex shrink-0 items-center gap-2 text-body-regular text-text-secondary",
+ children: e
+ }), /* @__PURE__ */ (0, S.jsx)("dd", {
+ className: "flex min-w-0 flex-wrap items-center justify-end gap-2 text-right text-body-regular break-all text-text-primary",
+ children: t
+ })]
+ });
+}
+function fg({ summary: e, children: t }) {
+ let n = (0, x.useId)(), r = (0, x.useRef)(null), i = (0, x.useRef)(null), [a, o] = (0, x.useState)(!1);
+ return /* @__PURE__ */ (0, S.jsxs)("details", {
+ ref: r,
+ children: [/* @__PURE__ */ (0, S.jsxs)("summary", {
+ "aria-expanded": a,
+ "aria-controls": n,
+ onClick: (e) => {
+ e.preventDefault(), !(!r.current || !i.current) && (s(r.current, i.current, !a), o(!a));
+ },
+ className: "flex w-fit cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
+ children: [/* @__PURE__ */ (0, S.jsx)(hu, {
+ "aria-hidden": !0,
+ className: a ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
+ }), e]
+ }), /* @__PURE__ */ (0, S.jsx)("div", {
+ ref: i,
+ id: n,
+ inert: !a,
+ children: /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "flex flex-col gap-2 pt-3",
+ children: t
+ })
+ })]
+ });
+}
+function pg({ name: e }) {
+ return /* @__PURE__ */ (0, S.jsx)("svg", {
+ "aria-hidden": !0,
+ viewBox: "0 0 24 24",
+ fill: "none",
+ className: "size-4 shrink-0 stroke-current stroke-2",
+ children: /* @__PURE__ */ (0, S.jsx)("use", { href: `#i-${e}` })
+ });
+}
+function mg({ mark: e }) {
+ return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, S.jsx)("img", {
+ src: e,
+ alt: "",
+ width: 16,
+ height: 16,
+ className: "size-4 shrink-0"
+ }) : /* @__PURE__ */ (0, S.jsx)(pg, { name: e });
+}
+//#endregion
+//#region src/react/settings/use-action.ts
+function hg(e = "") {
+ let t = (0, x.useRef)(null), [n, r] = (0, x.useState)(""), [i, a] = (0, x.useState)(e);
+ (0, x.useEffect)(() => () => t.current?.abort(), []);
+ async function o(e, n, i, o) {
+ if (t.current) return;
+ let s = new AbortController();
+ t.current = s, r(e), a("");
+ try {
+ let e = await n(s.signal);
+ s.signal.aborted || i(e);
+ } catch (e) {
+ if (s.signal.aborted) return;
+ o ? o(e) : a(uf(e));
+ } finally {
+ t.current === s && (t.current = null), s.signal.aborted || r("");
+ }
+ }
+ return {
+ run: o,
+ busy: n,
+ error: i,
+ setError: a
+ };
+}
+function gg(e) {
+ return e ? {
+ "aria-busy": !0,
+ "aria-disabled": !0
+ } : {};
+}
+//#endregion
+//#region src/react/library-processing/use-library-processing.ts
+function _g({ toast: e, mode: t, monitor: n }) {
+ let r = t === "notice" || !!n, i = lt({
+ queryKey: Hf,
+ queryFn: ({ signal: e }) => Z(e),
+ refetchInterval: (e) => qf(e.state.data, r)
+ }), [a, o] = (0, x.useState)(null), s = (0, x.useRef)(void 0), c = i.data;
+ return (0, x.useEffect)(() => {
+ if (!c) return;
+ let n = s.current;
+ s.current = c.status;
+ let r = n === "running" && c.status !== "running";
+ r && o(c), (r || t === "notice") && tp(c, e, r);
+ }, [
+ c,
+ t,
+ e
+ ]), {
+ job: i,
+ settled: a,
+ forget: () => o(null)
+ };
+}
+//#endregion
+//#region src/react/library-processing/library-processing-card.tsx
+var vg = [{
+ label: "只扫描",
+ icon: xu,
+ command: { stage: "scan" }
+}, {
+ label: "只采集",
+ icon: bu,
+ command: { stage: "collect" }
+}], yg = rf(Zh, Qh, "text-body-2-medium"), bg = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", xg = "这个项目处理时间较长,暂时没有新进展。可以继续等待,或在任务结束后重试未完成项。", Sg = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选。`;
+function Cg({ busy: e, onRun: t }) {
+ let n = (0, x.useRef)(null), [r, i] = (0, x.useState)(!1), a = (n) => {
+ e || (i(!1), t(n));
+ };
+ return /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsxs)("span", {
+ className: "flex items-center gap-1",
+ children: [/* @__PURE__ */ (0, S.jsx)(Gh, {
+ leadingIcon: _u,
+ onClick: () => a({}),
+ ...gg(e),
+ children: "扫描并补全资料"
+ }), /* @__PURE__ */ (0, S.jsx)(Gh, {
+ ref: n,
+ iconOnly: !0,
+ leadingIcon: pu,
+ "aria-label": "更多扫描与采集方式",
+ "aria-haspopup": "dialog",
+ "aria-expanded": r,
+ ...gg(e),
+ onClick: () => {
+ e || i(!0);
+ }
+ })]
+ }), /* @__PURE__ */ (0, S.jsx)(dh, {
+ triggerRef: n,
+ isOpen: r,
+ onOpenChange: i,
+ placement: "bottom end",
+ offset: 4,
+ className: Jh,
+ children: /* @__PURE__ */ (0, S.jsx)(hh, {
+ "aria-label": "更多扫描与采集方式",
+ className: "flex w-52 flex-col gap-1 outline-none",
+ children: vg.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, S.jsxs)("button", {
+ type: "button",
+ className: yg,
+ onClick: () => a(n),
+ children: [/* @__PURE__ */ (0, S.jsx)(t, {
+ "aria-hidden": !0,
+ className: "size-4 shrink-0"
+ }), e]
+ }, e))
+ })
+ })] });
+}
+function wg({ state: e, problem: t, settled: n, onRetry: r }) {
+ let i = Qf(e), a = e.status === "failed" && !!e.retryable_asset_ids?.length, o = Xf(e.notes || {});
+ return /* @__PURE__ */ (0, S.jsxs)("div", {
+ "aria-live": "polite",
+ className: "flex flex-col gap-4 empty:hidden",
+ children: [
+ e.status === "running" && e.stalled ? /* @__PURE__ */ (0, S.jsx)(hf, {
+ tone: "warning",
+ title: "处理较慢",
+ children: xg
+ }) : null,
+ t || e.status === "failed" ? /* @__PURE__ */ (0, S.jsx)(hf, {
+ tone: "error",
+ extra: /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex flex-col items-start gap-3 pt-1",
+ children: [a ? /* @__PURE__ */ (0, S.jsx)(Gh, {
+ variant: "secondary",
+ size: "small",
+ onClick: r,
+ children: "重试未完成项"
+ }) : null, i ? /* @__PURE__ */ (0, S.jsxs)(fg, {
+ summary: i.label,
+ children: [/* @__PURE__ */ (0, S.jsx)("ul", {
+ className: "flex max-h-96 flex-col gap-2 overflow-y-auto",
+ children: i.items.map((e) => /* @__PURE__ */ (0, S.jsxs)("li", {
+ className: "flex flex-col gap-0.5",
+ children: [
+ e.href ? /* @__PURE__ */ (0, S.jsx)("a", {
+ href: e.href,
+ className: "text-body-2-medium underline-offset-4 hover:underline",
+ children: e.label
+ }) : /* @__PURE__ */ (0, S.jsx)("span", {
+ className: "text-body-2-medium",
+ children: e.label
+ }),
+ /* @__PURE__ */ (0, S.jsx)("span", {
+ className: "text-caption-1-regular",
+ children: e.note
+ }),
+ e.hint ? /* @__PURE__ */ (0, S.jsx)("code", {
+ className: "text-caption-1-regular break-all",
+ children: e.hint
+ }) : null
+ ]
+ }, e.key))
+ }), i.footnote ? /* @__PURE__ */ (0, S.jsx)("p", {
+ className: "text-caption-1-regular break-all",
+ children: i.footnote
+ }) : null]
+ }) : null]
+ }),
+ children: t || e.error || "处理未完成,请重试"
+ }) : null,
+ n?.status === "complete" ? /* @__PURE__ */ (0, S.jsx)(hf, {
+ tone: "success",
+ title: "处理完成",
+ children: Sg(n)
+ }) : null,
+ e.status !== "running" && o ? /* @__PURE__ */ (0, S.jsxs)(hf, {
+ tone: "neutral",
+ children: [o, e.issues_log ? ` 完整记录:${e.issues_log}` : ""]
+ }) : null
+ ]
+ });
+}
+function Tg(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = _g(e), o = ut({
+ mutationFn: (e) => ff(Vf, e),
+ onSuccess: (e) => {
+ a(), vf.setQueryData(Hf, e), vf.invalidateQueries({ queryKey: Hf });
+ }
+ });
+ (0, x.useEffect)(() => {
+ i && n?.();
+ }, [i, n]);
+ let s = r.data ?? { status: "idle" }, c = o.error ? uf(o.error) : r.isError ? r.data ? Kf : uf(r.error) : "", l = o.isPending || s.status === "running", u = s.status === "failed" && !!s.retryable_asset_ids?.length, d = Zf(s), f = (e) => {
+ l || (o.reset(), o.mutate(e));
+ };
+ return /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex flex-col gap-4",
+ children: [/* @__PURE__ */ (0, S.jsxs)(ng, {
+ title: "扫描与采集",
+ children: [/* @__PURE__ */ (0, S.jsxs)(ig, { children: [/* @__PURE__ */ (0, S.jsx)("p", {
+ className: "text-body-2-regular text-text-secondary",
+ children: bg
+ }), s.status === "running" ? /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "flex flex-col gap-1.5",
+ children: s.total ? /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(_f, {
+ label: d,
+ value: s.checked || 0,
+ max: s.total
+ }), /* @__PURE__ */ (0, S.jsxs)("p", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: [
+ d,
+ " · ",
+ s.checked || 0,
+ " / ",
+ s.total,
+ " 个视频"
+ ]
+ })] }) : /* @__PURE__ */ (0, S.jsx)(mf, { label: d })
+ }) : null] }), /* @__PURE__ */ (0, S.jsxs)(ag, { children: [
+ /* @__PURE__ */ (0, S.jsx)(qh, {
+ href: "/scraping",
+ size: "small",
+ trailingIcon: mu,
+ children: "来源和凭证"
+ }),
+ s.candidates ? /* @__PURE__ */ (0, S.jsx)(qh, {
+ href: "/review",
+ size: "small",
+ trailingIcon: mu,
+ children: "复核资料"
+ }) : null,
+ u ? null : /* @__PURE__ */ (0, S.jsx)(Cg, {
+ busy: l,
+ onRun: f
+ })
+ ] })]
+ }), /* @__PURE__ */ (0, S.jsx)(wg, {
+ state: s,
+ problem: c,
+ settled: i,
+ onRetry: () => {
+ !s.job_id || !s.retryable_asset_ids?.length || f({
+ job_id: s.job_id,
+ retry: s.retryable_asset_ids
+ });
+ }
+ })]
+ });
+}
+//#endregion
+//#region src/react/library-processing/library-processing-notice.tsx
+var Eg = {
+ gray: "flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-separator-border px-4 py-3 text-text-secondary",
+ warning: "flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-separator-border bg-status-yellow-background px-4 py-3 text-status-yellow-text",
+ error: "flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-separator-border bg-background-tertiary-error px-4 py-3 text-text-error-primary"
+};
+function Dg({ value: e, max: t }) {
+ let n = Math.max(0, Math.min(100, e / t * 100));
+ return /* @__PURE__ */ (0, S.jsxs)("svg", {
+ role: "progressbar",
+ "aria-label": "任务完成率",
+ "aria-valuemin": 0,
+ "aria-valuemax": 100,
+ "aria-valuenow": n,
+ viewBox: "0 0 32 32",
+ fill: "none",
+ className: "size-6 shrink-0 -rotate-90 stroke-current",
+ children: [/* @__PURE__ */ (0, S.jsx)("circle", {
+ cx: "16",
+ cy: "16",
+ r: "13",
+ strokeWidth: "4",
+ className: "opacity-25"
+ }), /* @__PURE__ */ (0, S.jsx)("circle", {
+ cx: "16",
+ cy: "16",
+ r: "13",
+ strokeWidth: "4",
+ pathLength: 100,
+ strokeDasharray: `${n} 100`,
+ strokeLinecap: "round"
+ })]
+ });
+}
+function Og(e) {
+ let { job: t } = _g(e), n = t.data, r = t.isError ? n ? Kf : uf(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 ? "扫描与资料采集未完成" : Zf(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? wu : vu;
+ return /* @__PURE__ */ (0, S.jsxs)("aside", {
+ role: a ? "alert" : "status",
+ className: Eg[s],
+ children: [/* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex min-w-0 items-center gap-3",
+ children: [o && l ? /* @__PURE__ */ (0, S.jsx)(Dg, {
+ value: c,
+ max: l
+ }) : /* @__PURE__ */ (0, S.jsx)(d, {
+ "aria-hidden": !0,
+ className: "size-5 shrink-0"
+ }), /* @__PURE__ */ (0, S.jsx)("p", {
+ className: "min-w-0 text-body-2-regular",
+ children: u
+ })]
+ }), /* @__PURE__ */ (0, S.jsx)(qh, {
+ href: "/data-cleanup#libraryProcessing",
+ size: "small",
+ trailingIcon: mu,
+ children: r || a ? "查看并处理" : "查看进度"
+ })]
+ });
+}
+//#endregion
+//#region src/react/quality-goals/quality-goals.ts
+var kg = "/api/quality-goals?limit=200", Ag = ["quality-goals"], jg = (e) => df(kg, e);
+async function Mg(e) {
+ await vf.fetchQuery({
+ queryKey: Ag,
+ queryFn: () => jg(e)
+ });
+}
+var Ng = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
+//#endregion
+//#region src/react/quality-goals/quality-goals-page.tsx
+function Pg({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge: s }) {
+ let c = () => i(r.id);
+ return /* @__PURE__ */ (0, S.jsxs)("li", {
+ "data-goal-id": r.id,
+ className: "flex min-w-0 flex-col gap-3 rounded-2xl border border-separator-border p-3",
+ children: [/* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex min-w-0 gap-4",
+ children: [/* @__PURE__ */ (0, S.jsxs)("button", {
+ type: "button",
+ onClick: c,
+ "aria-label": `打开 ${o(r)}`,
+ className: "relative inline-grid w-card-cover shrink-0 aspect-card-cover cursor-pointer place-items-center overflow-hidden rounded-lg bg-black",
+ children: [/* @__PURE__ */ (0, S.jsx)("span", {
+ className: "text-caption-1-regular text-text-tertiary",
+ children: "暂无预览"
+ }), /* @__PURE__ */ (0, S.jsx)("img", {
+ src: Ng(r),
+ alt: "",
+ loading: "lazy",
+ onError: (e) => e.currentTarget.remove(),
+ className: "absolute inset-0 size-full object-contain"
+ })]
+ }), /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex min-w-0 flex-col gap-1.5",
+ children: [
+ /* @__PURE__ */ (0, S.jsx)("h3", {
+ className: "text-title-1-medium text-text-primary",
+ children: /* @__PURE__ */ (0, S.jsx)("button", {
+ type: "button",
+ "data-middle-truncate": !0,
+ onClick: c,
+ className: "block w-full cursor-pointer text-left",
+ dangerouslySetInnerHTML: { __html: a(r) }
+ })
+ }),
+ /* @__PURE__ */ (0, S.jsxs)("p", {
+ className: "flex flex-wrap items-center gap-2 text-caption-1-regular text-text-secondary",
+ children: [
+ /* @__PURE__ */ (0, S.jsx)("span", {
+ className: "contents",
+ dangerouslySetInnerHTML: { __html: s(r.location, r.cost) }
+ }),
+ /* @__PURE__ */ (0, S.jsx)("span", { children: e[r.location] ?? r.location }),
+ /* @__PURE__ */ (0, S.jsx)("span", { children: t(r.duration) }),
+ /* @__PURE__ */ (0, S.jsx)("span", { children: n(r.size ?? 0) })
+ ]
+ }),
+ r.reason ? /* @__PURE__ */ (0, S.jsx)("p", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: r.reason
+ }) : null
+ ]
+ })]
+ }), /* @__PURE__ */ (0, S.jsx)("footer", {
+ className: "flex justify-end",
+ children: /* @__PURE__ */ (0, S.jsx)(Gh, {
+ variant: "secondary",
+ size: "small",
+ onClick: c,
+ children: "查看版本"
+ })
+ })]
+ });
+}
+function Fg(e) {
+ let t = lt({
+ queryKey: Ag,
+ queryFn: ({ signal: e }) => jg(e)
+ }), n = t.data;
+ if (!n) return /* @__PURE__ */ (0, S.jsx)(gf, { children: /* @__PURE__ */ (0, S.jsx)(hf, {
+ tone: "error",
+ title: "读取失败",
+ children: t.error ? uf(t.error) : "读取高清版目标失败"
+ }) });
+ let r = n.items || [];
+ return r.length ? /* @__PURE__ */ (0, S.jsxs)(gf, { children: [/* @__PURE__ */ (0, S.jsxs)("p", {
+ className: "text-body-2-regular text-text-secondary",
+ children: [
+ /* @__PURE__ */ (0, S.jsx)("strong", {
+ className: "text-title-2-semibold text-text-primary",
+ children: "待升级"
+ }),
+ " · ",
+ n.total,
+ " 部作品"
+ ]
+ }), /* @__PURE__ */ (0, S.jsx)("ul", {
+ className: "card-grid gap-5",
+ children: r.map((t) => /* @__PURE__ */ (0, S.jsx)(Pg, {
+ item: t,
+ ...e
+ }, t.id))
+ })] }) : /* @__PURE__ */ (0, S.jsx)(gf, { children: /* @__PURE__ */ (0, S.jsx)(pf, {
+ icon: Tu,
+ title: "没有标记中的高清版目标",
+ children: "现有版本都已满足条件,或还没有加入追踪。"
+ }) });
+}
+//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function Ih({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, S.jsxs)(ap, {
+function Ig({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, S.jsxs)(vp, {
"data-label": "true",
...a,
- className: Yd("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: rf("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
e && /* @__PURE__ */ (0, S.jsx)("span", {
@@ -21303,7 +21866,7 @@ function Ih({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, S.jsx)(_u, {
+ n && /* @__PURE__ */ (0, S.jsx)(Cu, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -21312,33 +21875,33 @@ function Ih({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function Lh({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, S.jsx)(mp, {
+function Lg({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, S.jsx)(Dp, {
slot: e ? "errorMessage" : "description",
...n,
- className: Yd("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: rf("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
//#endregion
//#region src/react/boardui/components/base/input/input.tsx
-var Rh = (0, x.createContext)({});
-function zh({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, S.jsx)(Rh.Provider, {
+var Rg = (0, x.createContext)({});
+function zg({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, S.jsx)(Rg.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, S.jsx)(Ah, {
+ children: /* @__PURE__ */ (0, S.jsx)(Uh, {
...a,
"data-input-size": e,
- className: Yd("group flex h-max w-full flex-col items-start gap-1", r),
+ className: rf("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-zh.displayName = "TextField";
-var Bh = Xd({
+zg.displayName = "TextField";
+var Bg = af({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -21367,44 +21930,44 @@ var Bh = Xd({
].join(" "),
icon: "size-5 shrink-0"
});
-function Vh({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, x.useContext)(Rh), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, S.jsx)(wp, {
+function Vg({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, x.useContext)(Rg), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, S.jsx)(Lp, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => Yd(Bh.field, d ? Bh.fieldWithAddonSize[u] : Bh.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 }) => rf(Bg.field, d ? Bg.fieldWithAddonSize[u] : Bg.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, S.jsxs)("div", {
- className: Bh.content,
+ className: Bg.content,
children: [/* @__PURE__ */ (0, S.jsxs)("div", {
- className: Bh.leftSection,
+ className: Bg.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, S.jsx)(t, {
- className: Bh.icon,
+ className: Bg.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, S.jsx)(Dp, {
+ }) : null, /* @__PURE__ */ (0, S.jsx)(Bp, {
ref: o,
...c,
- className: Yd(Bh.input, l.inputClassName, a)
+ className: rf(Bg.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, S.jsx)(n, {
- className: Bh.icon,
+ className: Bg.icon,
"aria-hidden": !0
}) : null]
})
});
}
-Vh.displayName = "InputBase";
-function Hh({ 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, S.jsx)(zh, {
+Vg.displayName = "InputBase";
+function Hg({ 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, S.jsx)(zg, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
- e && /* @__PURE__ */ (0, S.jsx)(Ih, {
+ e && /* @__PURE__ */ (0, S.jsx)(Ig, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, S.jsx)(Vh, {
+ /* @__PURE__ */ (0, S.jsx)(Vg, {
ref: c,
groupRef: l,
placeholder: r,
@@ -21413,28 +21976,17 @@ function Hh({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, S.jsx)(Lh, {
+ t && /* @__PURE__ */ (0, S.jsx)(Lg, {
isInvalid: d,
children: t
})
] })
});
}
-Hh.displayName = "Input";
-//#endregion
-//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var Uh = [
- "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",
- "data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:blur-[2px]",
- "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(" "), Wh = "w-[266px]", Gh = "flex w-full flex-col gap-1 outline-none", Kh = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" ");
+Hg.displayName = "Input";
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function qh(e) {
+function Ug(e) {
return /* @__PURE__ */ (0, S.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -21450,7 +22002,7 @@ function qh(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function Jh(e, t, n) {
+function Wg(e, t, n) {
(0, x.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -21464,7 +22016,7 @@ function Jh(e, t, n) {
n
]);
}
-function Yh(e, t) {
+function Gg(e, t) {
let n = (0, x.useRef)(!1);
return (0, x.useEffect)(() => {
if (!e) return;
@@ -21478,33 +22030,33 @@ function Yh(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var Xh = (0, x.createContext)("md");
-function Zh({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var Kg = (0, x.createContext)("md");
+function qg({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, x.useRef)(null), u = (0, x.useRef)(null), [d, f] = (0, x.useState)(!1);
- Jh(d, () => f(!1), [l, u]);
- let p = Yh(d, l);
- return /* @__PURE__ */ (0, S.jsx)(vh, {
+ Wg(d, () => f(!1), [l, u]);
+ let p = Gg(d, l);
+ return /* @__PURE__ */ (0, S.jsx)(jh, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: Yd("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsxs)(cp, {
+ className: rf("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsxs)(xp, {
ref: l,
- className: Yd("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, S.jsx)(Sh, {
- className: Yd("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: rf("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, S.jsx)(Fh, {
+ className: rf("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, S.jsx)(qh, { className: Yd("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, S.jsx)(Qm, {
+ }), /* @__PURE__ */ (0, S.jsx)(Ug, { className: rf("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, S.jsx)(dh, {
ref: u,
isNonModal: !0,
offset: 4,
- className: Yd(Wh, Uh, "p-2", n),
- children: /* @__PURE__ */ (0, S.jsx)(Lm, {
+ className: rf(Yh, Jh, "p-2", n),
+ children: /* @__PURE__ */ (0, S.jsx)(Xm, {
items: a,
- className: Yd(Gh, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, S.jsx)(Xh.Provider, {
+ className: rf(Xh, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, S.jsx)(Kg.Provider, {
value: r,
children: i
})
@@ -21512,205 +22064,33 @@ function Zh({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function Qh({ className: e, children: t, ...n }) {
- let r = (0, x.useContext)(Xh);
- return /* @__PURE__ */ (0, S.jsx)(Vm, {
+function Jg({ className: e, children: t, ...n }) {
+ let r = (0, x.useContext)(Kg);
+ return /* @__PURE__ */ (0, S.jsx)(eh, {
...n,
- className: (t) => Yd(Kh, 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/settings/section.tsx
-function $h({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
- let a = /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [n ? /* @__PURE__ */ (0, S.jsxs)("div", {
- className: "flex w-full flex-wrap items-center justify-between gap-2",
- children: [/* @__PURE__ */ (0, S.jsx)("div", {
- className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, S.jsx)(Mh, { children: e })
- }), n]
- }) : /* @__PURE__ */ (0, S.jsx)(Mh, { children: e }), /* @__PURE__ */ (0, S.jsx)(jh, { children: i })] });
- return r ? /* @__PURE__ */ (0, S.jsx)("form", {
- id: t,
- "aria-label": e,
- noValidate: !0,
- onSubmit: r,
- className: "flex w-full flex-col gap-2",
- children: a
- }) : /* @__PURE__ */ (0, S.jsx)("section", {
- id: t,
- "aria-label": e,
- className: "flex w-full flex-col gap-2",
- children: a
- });
-}
-function eg({ children: e }) {
- return /* @__PURE__ */ (0, S.jsx)("div", {
- className: "flex flex-col",
- children: e
- });
-}
-function tg({ divided: e = !1, children: t }) {
- return e ? /* @__PURE__ */ (0, S.jsx)("div", {
- className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
- children: t
- }) : /* @__PURE__ */ (0, S.jsx)("div", {
- className: "flex flex-col gap-4 py-4 pr-3",
- children: t
- });
-}
-function ng({ status: e, children: t }) {
- return /* @__PURE__ */ (0, S.jsxs)("div", {
- className: "flex flex-wrap items-center justify-end gap-3 border-t border-separator-border py-3 pr-3",
- children: [e ? /* @__PURE__ */ (0, S.jsx)("div", {
- className: "mr-auto min-w-0 text-body-2-regular text-text-secondary",
- children: e
- }) : null, t]
- });
-}
-function rg({ role: e, children: t }) {
- return /* @__PURE__ */ (0, S.jsx)("p", {
- role: e,
- className: "text-body-2-regular text-text-secondary",
- children: t
- });
-}
-function ig({ children: e }) {
- return /* @__PURE__ */ (0, S.jsx)("p", {
- role: "alert",
- className: "text-body-2-regular text-text-error-primary",
- children: e
- });
-}
-function ag({ children: e }) {
- return /* @__PURE__ */ (0, S.jsx)("p", {
- className: "text-body-medium text-text-primary",
- children: e
- });
-}
-function og({ href: e, children: t }) {
- return /* @__PURE__ */ (0, S.jsx)(Fh, {
- href: e,
- target: "_blank",
- rel: "noopener noreferrer",
- size: "small",
- trailingIcon: hu,
+ className: (t) => rf(Zh, 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
});
}
-function sg({ children: e }) {
- return /* @__PURE__ */ (0, S.jsx)("dl", {
- className: "flex flex-col",
- children: e
- });
-}
-function cg({ term: e, children: t }) {
- return /* @__PURE__ */ (0, S.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, S.jsx)("dt", {
- className: "flex shrink-0 items-center gap-2 text-body-regular text-text-secondary",
- children: e
- }), /* @__PURE__ */ (0, S.jsx)("dd", {
- className: "flex min-w-0 flex-wrap items-center justify-end gap-2 text-right text-body-regular break-all text-text-primary",
- children: t
- })]
- });
-}
-function lg({ summary: e, children: t }) {
- let n = (0, x.useId)(), r = (0, x.useRef)(null), i = (0, x.useRef)(null), [a, o] = (0, x.useState)(!1);
- return /* @__PURE__ */ (0, S.jsxs)("details", {
- ref: r,
- children: [/* @__PURE__ */ (0, S.jsxs)("summary", {
- "aria-expanded": a,
- "aria-controls": n,
- onClick: (e) => {
- e.preventDefault(), !(!r.current || !i.current) && (s(r.current, i.current, !a), o(!a));
- },
- className: "flex w-fit cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [/* @__PURE__ */ (0, S.jsx)(pu, {
- "aria-hidden": !0,
- className: a ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
- }), e]
- }), /* @__PURE__ */ (0, S.jsx)("div", {
- ref: i,
- id: n,
- inert: !a,
- children: /* @__PURE__ */ (0, S.jsx)("div", {
- className: "flex flex-col gap-2 pt-3",
- children: t
- })
- })]
- });
-}
-function ug({ name: e }) {
- return /* @__PURE__ */ (0, S.jsx)("svg", {
- "aria-hidden": !0,
- viewBox: "0 0 24 24",
- fill: "none",
- className: "size-4 shrink-0 stroke-current stroke-2",
- children: /* @__PURE__ */ (0, S.jsx)("use", { href: `#i-${e}` })
- });
-}
-function dg({ mark: e }) {
- return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, S.jsx)("img", {
- src: e,
- alt: "",
- width: 16,
- height: 16,
- className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, S.jsx)(ug, { name: e });
-}
-//#endregion
-//#region src/react/settings/use-action.ts
-function fg(e = "") {
- let t = (0, x.useRef)(null), [n, r] = (0, x.useState)(""), [i, a] = (0, x.useState)(e);
- (0, x.useEffect)(() => () => t.current?.abort(), []);
- async function o(e, n, i, o) {
- if (t.current) return;
- let s = new AbortController();
- t.current = s, r(e), a("");
- try {
- let e = await n(s.signal);
- s.signal.aborted || i(e);
- } catch (e) {
- if (s.signal.aborted) return;
- o ? o(e) : a(tf(e));
- } finally {
- t.current === s && (t.current = null), s.signal.aborted || r("");
- }
- }
- return {
- run: o,
- busy: n,
- error: i,
- setError: a
- };
-}
-function pg(e) {
- return e ? {
- "aria-busy": !0,
- "aria-disabled": !0
- } : {};
-}
//#endregion
//#region src/react/scraping/scraping.ts
-var mg = "/api/scraping", hg = "/api/scraping/settings", gg = "/api/scraping/check", _g = "/api/scraping/cover", vg = ["scraping"], yg = ["scraping", "cover"], bg = 2e3, xg = (e) => nf(mg, e), Sg = (e) => nf(_g, e);
-async function Cg(e) {
- await Promise.all([uf.fetchQuery({
- queryKey: vg,
- queryFn: () => xg(e)
- }), uf.fetchQuery({
- queryKey: yg,
- queryFn: () => Sg(e)
+var Yg = "/api/scraping", Xg = "/api/scraping/settings", Zg = "/api/scraping/check", Qg = "/api/scraping/cover", $g = ["scraping"], e_ = ["scraping", "cover"], t_ = 2e3, n_ = (e) => df(Yg, e), r_ = (e) => df(Qg, e);
+async function i_(e) {
+ await Promise.all([vf.fetchQuery({
+ queryKey: $g,
+ queryFn: () => n_(e)
+ }), vf.fetchQuery({
+ queryKey: e_,
+ queryFn: () => r_(e)
})]);
}
-function wg(e, t) {
+function a_(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 Tg = [["peach", "Peach 代理"], ["direct", "直接连接"]], Eg = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
-function Dg({ source: e }) {
+var o_ = [["peach", "Peach 代理"], ["direct", "直接连接"]], s_ = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+function c_({ source: e }) {
return /* @__PURE__ */ (0, S.jsx)("img", {
src: i({ source: e }),
alt: "",
@@ -21721,13 +22101,13 @@ function Dg({ source: e }) {
className: "size-4 shrink-0 rounded-sm object-contain"
});
}
-function Og({ source: e, toast: t }) {
- let [n, r] = (0, x.useState)(e.network), [i, a] = (0, x.useState)(""), [o, s] = (0, x.useState)(""), [c, l] = (0, x.useState)(Eg[0][0]), [u, d] = (0, x.useState)(""), [f, p] = (0, x.useState)(""), m = (0, x.useRef)(null);
+function l_({ source: e, toast: t }) {
+ let [n, r] = (0, x.useState)(e.network), [i, a] = (0, x.useState)(""), [o, s] = (0, x.useState)(""), [c, l] = (0, x.useState)(s_[0][0]), [u, d] = (0, x.useState)(""), [f, p] = (0, x.useState)(""), m = (0, x.useRef)(null);
function h() {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
- let g = lt({
- mutationFn: (t) => rf(hg, {
+ let g = ut({
+ mutationFn: (t) => ff(Xg, {
source: e.source,
network: n,
cookie: i,
@@ -21735,12 +22115,12 @@ function Og({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- uf.setQueryData(vg, (t) => t && {
+ vf.setQueryData($g, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), _ = lt({ mutationFn: () => rf(gg, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
+ }), _ = ut({ mutationFn: () => ff(Zg, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
e.preventDefault(), !v && (_.reset(), g.mutate(!1));
}, b = () => {
v || (_.reset(), g.mutate(!0));
@@ -21764,41 +22144,41 @@ function Og({ source: e, toast: t }) {
p("Cookie 文件未读取,请重新选择");
}
}
- let T = f || (g.error ? tf(g.error) : "") || (_.error ? tf(_.error) : ""), E = _.data?.results ?? [], D = n === "peach" || e.accepts_cookie || !!T || E.length > 0;
- return /* @__PURE__ */ (0, S.jsxs)($h, {
+ let T = f || (g.error ? uf(g.error) : "") || (_.error ? uf(_.error) : ""), E = _.data?.results ?? [], D = n === "peach" || e.accepts_cookie || !!T || E.length > 0;
+ return /* @__PURE__ */ (0, S.jsxs)(ng, {
title: e.label,
onSubmit: y,
aside: /* @__PURE__ */ (0, S.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, S.jsx)(Dg, { source: e.source }), /* @__PURE__ */ (0, S.jsx)(og, {
+ children: [/* @__PURE__ */ (0, S.jsx)(c_, { source: e.source }), /* @__PURE__ */ (0, S.jsx)(lg, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, S.jsx)(eg, { children: /* @__PURE__ */ (0, S.jsx)(Nh, {
+ /* @__PURE__ */ (0, S.jsx)(rg, { children: /* @__PURE__ */ (0, S.jsx)(tg, {
label: "连接方式",
- children: /* @__PURE__ */ (0, S.jsx)(Zh, {
+ children: /* @__PURE__ */ (0, S.jsx)(qg, {
"aria-label": "连接方式",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: Tg.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(Qh, {
+ children: o_.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(Jg, {
id: e,
children: t
}, e))
})
}) }),
- D ? /* @__PURE__ */ (0, S.jsxs)(tg, {
+ D ? /* @__PURE__ */ (0, S.jsxs)(ig, {
divided: !0,
children: [
n === "peach" ? /* @__PURE__ */ (0, S.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, S.jsx)(Fh, {
+ children: /* @__PURE__ */ (0, S.jsx)(qh, {
href: "/configuration#peachProxy",
size: "small",
- trailingIcon: fu,
+ trailingIcon: mu,
children: "配置 Peach 代理"
})
}) : null,
@@ -21807,20 +22187,20 @@ function Og({ source: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存,登录是否有效请在抓取时确认。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, S.jsx)(lh, {
+ /* @__PURE__ */ (0, S.jsx)(Sh, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), h();
},
className: "flex flex-wrap gap-1",
- children: Eg.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(uh, {
+ children: s_.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(Ch, {
value: e,
className: "flex h-8 cursor-pointer items-center rounded-lg px-3 text-body-2-medium text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-tertiary-default data-selected:text-text-primary",
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, S.jsx)(Hh, {
+ c === "paste" ? /* @__PURE__ */ (0, S.jsx)(Hg, {
type: "password",
label: "Cookie",
autoComplete: "off",
@@ -21829,10 +22209,10 @@ function Og({ source: e, toast: t }) {
}) : /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, S.jsx)(ag, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, S.jsx)(cg, { children: "Netscape Cookie 文件(.txt)" }),
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
- children: [/* @__PURE__ */ (0, S.jsx)(Pf, {
+ children: [/* @__PURE__ */ (0, S.jsx)(Gh, {
variant: "secondary",
onClick: () => m.current?.click(),
children: "选择文件"
@@ -21855,44 +22235,44 @@ function Og({ source: e, toast: t }) {
]
})
] }) : null,
- T ? /* @__PURE__ */ (0, S.jsx)(ig, { children: T }) : null,
- E.map((t) => /* @__PURE__ */ (0, S.jsx)(sf, {
+ T ? /* @__PURE__ */ (0, S.jsx)(sg, { children: T }) : null,
+ E.map((t) => /* @__PURE__ */ (0, S.jsx)(hf, {
tone: t.ok ? "success" : "error",
- children: wg(t, e.label)
+ children: a_(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, S.jsxs)(ng, { children: [
- e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, S.jsx)(Pf, {
+ /* @__PURE__ */ (0, S.jsxs)(ag, { children: [
+ e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, S.jsx)(Gh, {
variant: "secondary",
onClick: b,
- ...pg(v),
+ ...gg(v),
children: "撤销 Cookie"
}) : null,
- /* @__PURE__ */ (0, S.jsx)(Pf, {
+ /* @__PURE__ */ (0, S.jsx)(Gh, {
variant: "secondary",
onClick: C,
- ...pg(v),
+ ...gg(v),
children: "检查连接"
}),
- /* @__PURE__ */ (0, S.jsx)(Pf, {
+ /* @__PURE__ */ (0, S.jsx)(Gh, {
type: "submit",
- ...pg(v),
+ ...gg(v),
children: "保存"
})
] })
]
});
}
-function kg({ toast: e }) {
- let [t, n] = (0, x.useState)(""), [r, i] = (0, x.useState)(!1), [a, o] = (0, x.useState)(null), s = ct({
- queryKey: yg,
- queryFn: ({ signal: e }) => Sg(e),
- refetchInterval: (e) => e.state.data?.status === "running" && bg
- }), c = lt({
- mutationFn: () => rf(_g, { code: t }),
+function u_({ toast: e }) {
+ let [t, n] = (0, x.useState)(""), [r, i] = (0, x.useState)(!1), [a, o] = (0, x.useState)(null), s = lt({
+ queryKey: e_,
+ queryFn: ({ signal: e }) => r_(e),
+ refetchInterval: (e) => e.state.data?.status === "running" && t_
+ }), c = ut({
+ mutationFn: () => ff(Qg, { code: t }),
onSuccess: () => {
- i(!0), o(null), uf.invalidateQueries({ queryKey: yg });
+ i(!0), o(null), vf.invalidateQueries({ queryKey: e_ });
}
}), l = (s.data?.status ?? "idle") === "running";
(0, x.useEffect)(() => {
@@ -21911,16 +22291,16 @@ function kg({ toast: e }) {
]);
let u = (e) => {
e.preventDefault(), !(l || c.isPending || !t.trim()) && c.mutate();
- }, d = c.error ? tf(c.error) : a?.status === "failed" ? a.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, S.jsx)($h, {
+ }, d = c.error ? uf(c.error) : a?.status === "failed" ? a.error || "采集未取得" : "";
+ return /* @__PURE__ */ (0, S.jsx)(ng, {
title: "高清封面",
onSubmit: u,
- children: /* @__PURE__ */ (0, S.jsxs)(tg, { children: [
+ children: /* @__PURE__ */ (0, S.jsxs)(ig, { children: [
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, S.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, S.jsx)(Hh, {
+ children: /* @__PURE__ */ (0, S.jsx)(Hg, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: l,
@@ -21928,49 +22308,49 @@ function kg({ toast: e }) {
onChange: n,
placeholder: "输入馆藏番号,如 ABW-232"
})
- }), /* @__PURE__ */ (0, S.jsx)(Pf, {
+ }), /* @__PURE__ */ (0, S.jsx)(Gh, {
type: "submit",
disabled: !t.trim(),
- ...pg(l || c.isPending),
+ ...gg(l || c.isPending),
children: "抓取封面"
})]
}),
- l ? /* @__PURE__ */ (0, S.jsx)(of, { label: "正在抓取封面" }) : null,
- d ? /* @__PURE__ */ (0, S.jsx)(sf, {
+ l ? /* @__PURE__ */ (0, S.jsx)(mf, { label: "正在抓取封面" }) : null,
+ d ? /* @__PURE__ */ (0, S.jsx)(hf, {
tone: "error",
children: d
}) : null,
- a?.status === "complete" ? /* @__PURE__ */ (0, S.jsx)(sf, {
+ a?.status === "complete" ? /* @__PURE__ */ (0, S.jsx)(hf, {
tone: "success",
children: a.result || "封面采集完成"
}) : null
] })
});
}
-function Ag({ toast: e }) {
- let t = ct({
- queryKey: vg,
- queryFn: ({ signal: e }) => xg(e)
+function d_({ toast: e }) {
+ let t = lt({
+ queryKey: $g,
+ queryFn: ({ signal: e }) => n_(e)
}), n = t.data;
- return n ? /* @__PURE__ */ (0, S.jsxs)(cf, { children: [
+ return n ? /* @__PURE__ */ (0, S.jsxs)(gf, { children: [
/* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能需要代理才能下载,请先检查连接。"
}),
- /* @__PURE__ */ (0, S.jsx)(kg, { toast: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, S.jsx)(Og, {
+ /* @__PURE__ */ (0, S.jsx)(u_, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, S.jsx)(l_, {
source: t,
toast: e
}, t.source))
- ] }) : /* @__PURE__ */ (0, S.jsx)(cf, { children: /* @__PURE__ */ (0, S.jsx)(sf, {
+ ] }) : /* @__PURE__ */ (0, S.jsx)(gf, { children: /* @__PURE__ */ (0, S.jsx)(hf, {
tone: "error",
title: "读取失败",
- children: t.error ? tf(t.error) : "读取采集来源失败"
+ children: t.error ? uf(t.error) : "读取采集来源失败"
}) });
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var jg = Xd({
+var f_ = af({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -22032,23 +22412,23 @@ var jg = Xd({
}
}
});
-function Mg({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = jg[t];
+function p_({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = f_[t];
return /* @__PURE__ */ (0, S.jsx)("span", {
"aria-hidden": !0,
- className: Yd("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? Yd("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: rf("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? rf("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
children: /* @__PURE__ */ (0, S.jsx)("span", {
- className: Yd("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
- children: /* @__PURE__ */ (0, S.jsx)("span", { className: Yd("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
+ className: rf("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
+ children: /* @__PURE__ */ (0, S.jsx)("span", { className: rf("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
})
});
}
-function Ng({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, S.jsx)(Th, {
+function m_({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, S.jsx)(Rh, {
ref: i,
...a,
- className: (t) => Yd("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, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(Mg, {
+ className: (t) => rf("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, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(p_, {
state: e,
size: n,
shape: r
@@ -22060,48 +22440,48 @@ function Ng({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function Pg({ data: e, receipt: t }) {
- return e.startup ? /* @__PURE__ */ (0, S.jsx)(Fg, {
+function h_({ data: e, receipt: t }) {
+ return e.startup ? /* @__PURE__ */ (0, S.jsx)(g_, {
startup: e.startup,
receipt: t
}) : null;
}
-function Fg({ startup: e, receipt: t }) {
- let [n, r] = (0, x.useState)(e.enabled), [i, a] = (0, x.useState)(e.silent), [o, s] = (0, x.useState)(e.desktop), c = fg(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, S.jsxs)($h, {
+function g_({ startup: e, receipt: t }) {
+ let [n, r] = (0, x.useState)(e.enabled), [i, a] = (0, x.useState)(e.silent), [o, s] = (0, x.useState)(e.desktop), c = hg(), l = e.available && !e.desktop_message;
+ return /* @__PURE__ */ (0, S.jsxs)(ng, {
title: "开机自启",
onSubmit: (r) => {
- r.preventDefault(), e.available && c.run("save", (e) => rf("/api/configuration/startup", {
+ r.preventDefault(), e.available && c.run("save", (e) => ff("/api/configuration/startup", {
enabled: n,
silent: i,
desktop: o
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, S.jsxs)(eg, { children: [
- /* @__PURE__ */ (0, S.jsx)(Nh, {
+ /* @__PURE__ */ (0, S.jsxs)(rg, { children: [
+ /* @__PURE__ */ (0, S.jsx)(tg, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, S.jsx)(Ng, {
+ children: /* @__PURE__ */ (0, S.jsx)(m_, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, S.jsx)(Nh, {
+ /* @__PURE__ */ (0, S.jsx)(tg, {
label: "静默启动",
description: "静默启动仅显示托盘,开机后启动 Peach 打开时生效。",
- children: /* @__PURE__ */ (0, S.jsx)(Ng, {
+ children: /* @__PURE__ */ (0, S.jsx)(m_, {
"aria-label": "静默启动",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, S.jsx)(Nh, {
+ /* @__PURE__ */ (0, S.jsx)(tg, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
- children: /* @__PURE__ */ (0, S.jsx)(Ng, {
+ children: /* @__PURE__ */ (0, S.jsx)(m_, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -22109,14 +22489,14 @@ function Fg({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, S.jsxs)(tg, {
+ e.message || c.error ? /* @__PURE__ */ (0, S.jsxs)(ig, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, S.jsx)(rg, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, S.jsx)(ig, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, S.jsx)(og, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, S.jsx)(sg, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, S.jsx)(ng, { children: /* @__PURE__ */ (0, S.jsx)(Pf, {
+ /* @__PURE__ */ (0, S.jsx)(ag, { children: /* @__PURE__ */ (0, S.jsx)(Gh, {
type: "submit",
disabled: !e.available,
- ...pg(c.busy === "save"),
+ ...gg(c.busy === "save"),
children: "保存配置"
}) })
]
@@ -22124,7 +22504,7 @@ function Fg({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var Ig = {
+var __ = {
md: {
box: "size-4",
glyph: "size-4",
@@ -22138,11 +22518,11 @@ var Ig = {
gap: "gap-1.5"
}
};
-function Lg({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = Ig[t], c = n || r, l = o && !a;
+function v_({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = __[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, S.jsx)("span", {
"aria-hidden": !0,
- className: Yd("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? Yd("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : Yd("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: rf("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? rf("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : rf("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
children: /* @__PURE__ */ (0, S.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -22166,24 +22546,24 @@ function Lg({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function Rg({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = Ig[n];
- return /* @__PURE__ */ (0, S.jsx)(xp, {
+function y_({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = __[n];
+ return /* @__PURE__ */ (0, S.jsx)(Pp, {
ref: r,
...i,
- className: (t) => Yd("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, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(Lg, {
+ className: (t) => rf("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, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(v_, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, S.jsx)("span", {
- className: Yd(a.label, "text-text-primary"),
+ className: rf(a.label, "text-text-primary"),
children: t
})] })
});
}
//#endregion
//#region src/react/settings/media-repair.tsx
-var zg = {
+var b_ = {
status: "idle",
stage: "",
checked: 0,
@@ -22193,20 +22573,20 @@ var zg = {
failed: 0,
skipped: 0,
message: ""
-}, Bg = (e) => Number(e).toLocaleString();
-function Vg(e) {
+}, x_ = (e) => Number(e).toLocaleString();
+function S_(e) {
if (e.status === "running") {
- let t = e.total ? `${Bg(e.checked)} / ${Bg(e.total)}` : "准备中";
+ let t = e.total ? `${x_(e.checked)} / ${x_(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${Bg(e.repaired)} 部,${Bg(e.failed)} 部修不了` : `修好 ${Bg(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${x_(e.repaired)} 部,${x_(e.failed)} 部修不了` : `修好 ${x_(e.repaired)} 部` : "";
}
-function Hg({ initial: e }) {
- let [t, n] = (0, x.useState)(e || zg), [r, i] = (0, x.useState)(!1), a = fg(), o = t.status === "running";
+function C_({ initial: e }) {
+ let [t, n] = (0, x.useState)(e || b_), [r, i] = (0, x.useState)(!1), a = hg(), o = t.status === "running";
(0, x.useEffect)(() => {
let e = new AbortController(), t, r = async () => {
try {
- let i = await nf("/api/media-repair", e.signal);
+ let i = await df("/api/media-repair", e.signal);
if (e.signal.aborted) return;
n(i), i.status === "running" && (t = setTimeout(r, 2e3));
} catch {}
@@ -22215,42 +22595,42 @@ function Hg({ initial: e }) {
e.abort(), clearTimeout(t);
};
}, [o]);
- let s = () => void a.run("start", (e) => rf("/api/media-repair", {
+ let s = () => void a.run("start", (e) => ff("/api/media-repair", {
allow_metered: r,
restart: !0
- }, "POST", e), n), c = () => void a.run("stop", (e) => rf("/api/media-repair", { stop: !0 }, "POST", e), n), l = t.total ? Math.round(t.checked / t.total * 100) : 0;
- return /* @__PURE__ */ (0, S.jsxs)($h, {
+ }, "POST", e), n), c = () => void a.run("stop", (e) => ff("/api/media-repair", { stop: !0 }, "POST", e), n), l = t.total ? Math.round(t.checked / t.total * 100) : 0;
+ return /* @__PURE__ */ (0, S.jsxs)(ng, {
title: "播放兼容修复",
- children: [/* @__PURE__ */ (0, S.jsxs)(tg, { children: [
- /* @__PURE__ */ (0, S.jsx)(rg, { children: "有些 MP4 少了一张时间戳表,浏览器按容器给的时刻排帧,会把其中一部分丢掉,看着就是卡顿。 修好之后这类片子起播直接用原片,不再实时转码。原始文件不改动,修好的头另存在缓存里。" }),
- /* @__PURE__ */ (0, S.jsx)(Rg, {
+ children: [/* @__PURE__ */ (0, S.jsxs)(ig, { children: [
+ /* @__PURE__ */ (0, S.jsx)(og, { children: "有些 MP4 少了一张时间戳表,浏览器按容器给的时刻排帧,会把其中一部分丢掉,看着就是卡顿。 修好之后这类片子起播直接用原片,不再实时转码。原始文件不改动,修好的头另存在缓存里。" }),
+ /* @__PURE__ */ (0, S.jsx)(y_, {
isSelected: r,
isDisabled: o,
onChange: i,
children: "连 PikPak 上的一起修(要把片子完整拉一遍,走流量)"
}),
- o ? /* @__PURE__ */ (0, S.jsx)(lf, {
+ o ? /* @__PURE__ */ (0, S.jsx)(_f, {
label: "修复进度",
value: l
}) : null,
- t.status === "complete" && !t.repaired && !t.failed ? /* @__PURE__ */ (0, S.jsx)(sf, {
+ t.status === "complete" && !t.repaired && !t.failed ? /* @__PURE__ */ (0, S.jsx)(hf, {
tone: "info",
title: "没有要修的",
children: "库里的片子都能直接播,没找到缺时间戳表的。"
}) : null,
- a.error || t.error ? /* @__PURE__ */ (0, S.jsx)(ig, { children: a.error || t.error }) : null
- ] }), /* @__PURE__ */ (0, S.jsx)(ng, {
- status: Vg(t) ? /* @__PURE__ */ (0, S.jsx)("p", {
+ a.error || t.error ? /* @__PURE__ */ (0, S.jsx)(sg, { children: a.error || t.error }) : null
+ ] }), /* @__PURE__ */ (0, S.jsx)(ag, {
+ status: S_(t) ? /* @__PURE__ */ (0, S.jsx)("p", {
role: "status",
- children: Vg(t)
+ children: S_(t)
}) : null,
- children: o ? /* @__PURE__ */ (0, S.jsx)(Pf, {
+ children: o ? /* @__PURE__ */ (0, S.jsx)(Gh, {
onClick: c,
- ...pg(a.busy === "stop"),
+ ...gg(a.busy === "stop"),
children: "停止"
- }) : /* @__PURE__ */ (0, S.jsx)(Pf, {
+ }) : /* @__PURE__ */ (0, S.jsx)(Gh, {
onClick: s,
- ...pg(a.busy === "start"),
+ ...gg(a.busy === "start"),
children: "开始修复"
})
})]
@@ -22258,28 +22638,28 @@ function Hg({ initial: e }) {
}
//#endregion
//#region src/react/settings/release-updates.tsx
-var Ug = /* @__PURE__ */ new Set([
+var w_ = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), Wg = [
+]), T_ = [
65,
67,
90
-], Gg = 120;
-function Kg({ initial: e, initialJob: t }) {
+], E_ = 120;
+function D_({ initial: e, initialJob: t }) {
let [n, r] = (0, x.useState)(e), [i, a] = (0, x.useState)(t || {
state: "idle",
progress: 0
- }), [s, c] = (0, x.useState)(""), l = fg(), u = (0, x.useRef)(!1), d = (0, x.useRef)(!0), f = Ug.has(i.state);
+ }), [s, c] = (0, x.useState)(""), l = hg(), u = (0, x.useRef)(!1), d = (0, x.useRef)(!0), f = w_.has(i.state);
(0, x.useEffect)(() => (d.current = !0, () => {
d.current = !1;
}), []);
let p = async () => {
- let e = await rf("/api/configuration/update-restart", {});
+ let e = await ff("/api/configuration/update-restart", {});
d.current && a(e);
}, m = () => void o({
title: "更新已准备好",
@@ -22291,9 +22671,9 @@ function Kg({ initial: e, initialJob: t }) {
(0, x.useEffect)(() => {
i.state !== "ready" || u.current || (u.current = !0, m());
}, [i.state]), (0, x.useEffect)(() => {
- let e = new AbortController(), t = Ug.has(i.state) ? 1e3 : 3e4, n, o = 0, s = async () => {
+ let e = new AbortController(), t = w_.has(i.state) ? 1e3 : 3e4, n, o = 0, s = async () => {
try {
- let t = await nf("/api/configuration/update-status", e.signal);
+ let t = await df("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
a(t), o = 0, t.state === "complete" && r((e) => ({
...e,
@@ -22301,93 +22681,93 @@ function Kg({ initial: e, initialJob: t }) {
state: "current",
message: "已是最新测试版。"
}));
- let n = await nf("/api/configuration/automatic-updates", e.signal);
+ let n = await df("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- o += 1, o >= Gg && !e.signal.aborted && c("尚未连接到 Peach,请检查托盘后刷新页面。");
+ o += 1, o >= E_ && !e.signal.aborted && c("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && o < Gg && (n = setTimeout(s, t));
+ !e.signal.aborted && o < E_ && (n = setTimeout(s, t));
};
return n = setTimeout(s, t), () => {
e.abort(), clearTimeout(n);
};
}, [i.state]);
let h = () => {
- f || (u.current = !1, c(""), l.run("download", (e) => rf("/api/configuration/update", {}, "POST", e), a));
- }, g = () => void l.run("check", (e) => nf("/api/configuration/updates", e), r, (t) => {
+ f || (u.current = !1, c(""), l.run("download", (e) => ff("/api/configuration/update", {}, "POST", e), a));
+ }, g = () => void l.run("check", (e) => df("/api/configuration/updates", e), r, (t) => {
r({
...e,
state: "error"
- }), l.setError(tf(t));
+ }), l.setError(uf(t));
}), _ = l.error || s, v = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;
- return /* @__PURE__ */ (0, S.jsxs)($h, {
+ return /* @__PURE__ */ (0, S.jsxs)(ng, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, S.jsxs)(sg, { children: [
- /* @__PURE__ */ (0, S.jsx)(cg, {
+ /* @__PURE__ */ (0, S.jsxs)(ug, { children: [
+ /* @__PURE__ */ (0, S.jsx)(dg, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, S.jsx)(cg, {
+ /* @__PURE__ */ (0, S.jsx)(dg, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, S.jsx)(cg, {
+ /* @__PURE__ */ (0, S.jsx)(dg, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, S.jsx)(cg, {
+ /* @__PURE__ */ (0, S.jsx)(dg, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, S.jsxs)(tg, {
+ /* @__PURE__ */ (0, S.jsxs)(ig, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, S.jsxs)(rg, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
- n.state === "available" && !_ ? /* @__PURE__ */ (0, S.jsx)(sf, {
+ n.checked_at ? /* @__PURE__ */ (0, S.jsxs)(og, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.state === "available" && !_ ? /* @__PURE__ */ (0, S.jsx)(hf, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : _ || n.state === "error" ? /* @__PURE__ */ (0, S.jsx)(ig, { children: _ || n.message }) : /* @__PURE__ */ (0, S.jsx)(rg, {
+ }) : _ || n.state === "error" ? /* @__PURE__ */ (0, S.jsx)(sg, { children: _ || n.message }) : /* @__PURE__ */ (0, S.jsx)(og, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, S.jsx)(ig, { children: i.message }) : null,
+ i.state === "error" ? /* @__PURE__ */ (0, S.jsx)(sg, { children: i.message }) : null,
i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, S.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, S.jsx)(lf, {
+ /* @__PURE__ */ (0, S.jsx)(_f, {
label: "更新准备进度:下载、校验、解压、准备安装",
value: i.progress,
- stops: Wg
+ stops: T_
}),
- /* @__PURE__ */ (0, S.jsxs)(rg, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, S.jsx)(rg, { children: v })
+ /* @__PURE__ */ (0, S.jsxs)(og, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, S.jsx)(og, { children: v })
]
}) : null
]
}),
- /* @__PURE__ */ (0, S.jsxs)(ng, {
- status: /* @__PURE__ */ (0, S.jsx)(og, {
+ /* @__PURE__ */ (0, S.jsxs)(ag, {
+ status: /* @__PURE__ */ (0, S.jsx)(lg, {
href: n.release_url,
children: "查看发布页"
}),
children: [
- i.state === "ready" ? /* @__PURE__ */ (0, S.jsx)(Pf, {
+ i.state === "ready" ? /* @__PURE__ */ (0, S.jsx)(Gh, {
onClick: m,
children: "重启安装"
}) : null,
- n.state === "available" && n.installation === "独立测试包" && i.state !== "ready" ? /* @__PURE__ */ (0, S.jsx)(Pf, {
+ n.state === "available" && n.installation === "独立测试包" && i.state !== "ready" ? /* @__PURE__ */ (0, S.jsx)(Gh, {
onClick: h,
- ...pg(f || l.busy === "download"),
+ ...gg(f || l.busy === "download"),
children: "下载并安装"
}) : null,
- /* @__PURE__ */ (0, S.jsx)(Pf, {
+ /* @__PURE__ */ (0, S.jsx)(Gh, {
disabled: f,
onClick: g,
- ...pg(l.busy === "check"),
+ ...gg(l.busy === "check"),
children: "检查更新"
})
]
@@ -22397,139 +22777,139 @@ function Kg({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var qg = [
+var O_ = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function Jg({ data: e, receipt: t }) {
+function k_({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.automatic_updates ? /* @__PURE__ */ (0, S.jsx)(Yg, {
+ e.automatic_updates ? /* @__PURE__ */ (0, S.jsx)(A_, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, S.jsx)(Kg, {
+ e.updates ? /* @__PURE__ */ (0, S.jsx)(D_, {
initial: e.updates,
initialJob: e.update_job
}) : null,
- /* @__PURE__ */ (0, S.jsx)(Hg, {}),
- /* @__PURE__ */ (0, S.jsx)(Xg, { facts: e.facts }),
- e.uninstall ? /* @__PURE__ */ (0, S.jsx)(Zg, { uninstall: e.uninstall }) : null
+ /* @__PURE__ */ (0, S.jsx)(C_, {}),
+ /* @__PURE__ */ (0, S.jsx)(j_, { facts: e.facts }),
+ e.uninstall ? /* @__PURE__ */ (0, S.jsx)(M_, { uninstall: e.uninstall }) : null
]
});
}
-function Yg({ initial: e, receipt: t }) {
- let [n, r] = (0, x.useState)(e.mode), [i, a] = (0, x.useState)(e.interval_hours), o = fg(e.error), s = (r) => {
- r.preventDefault(), e.available && o.run("save", (e) => rf("/api/configuration/automatic-updates", {
+function A_({ initial: e, receipt: t }) {
+ let [n, r] = (0, x.useState)(e.mode), [i, a] = (0, x.useState)(e.interval_hours), o = hg(e.error), s = (r) => {
+ r.preventDefault(), e.available && o.run("save", (e) => ff("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行请前往发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, S.jsxs)($h, {
+ return /* @__PURE__ */ (0, S.jsxs)(ng, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, S.jsxs)(eg, { children: [
- /* @__PURE__ */ (0, S.jsx)(Nh, {
+ /* @__PURE__ */ (0, S.jsxs)(rg, { children: [
+ /* @__PURE__ */ (0, S.jsx)(tg, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, S.jsx)(Ng, {
+ children: /* @__PURE__ */ (0, S.jsx)(m_, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, S.jsx)(Nh, {
+ /* @__PURE__ */ (0, S.jsx)(tg, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, S.jsx)(Ng, {
+ children: /* @__PURE__ */ (0, S.jsx)(m_, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, S.jsx)(Nh, {
+ /* @__PURE__ */ (0, S.jsx)(tg, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, S.jsx)(Zh, {
+ children: /* @__PURE__ */ (0, S.jsx)(qg, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: qg.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(Qh, {
+ children: O_.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(Jg, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, S.jsx)(tg, {
+ o.error ? /* @__PURE__ */ (0, S.jsx)(ig, {
divided: !0,
- children: /* @__PURE__ */ (0, S.jsx)(ig, { children: o.error })
+ children: /* @__PURE__ */ (0, S.jsx)(sg, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, S.jsx)(ng, { children: /* @__PURE__ */ (0, S.jsx)(Pf, {
+ /* @__PURE__ */ (0, S.jsx)(ag, { children: /* @__PURE__ */ (0, S.jsx)(Gh, {
type: "submit",
disabled: !e.available,
- ...pg(o.busy === "save"),
+ ...gg(o.busy === "save"),
children: "保存配置"
}) })
]
});
}
-function Xg({ facts: e }) {
- return /* @__PURE__ */ (0, S.jsx)($h, {
+function j_({ facts: e }) {
+ return /* @__PURE__ */ (0, S.jsx)(ng, {
title: "运行信息",
- children: /* @__PURE__ */ (0, S.jsx)(sg, { children: e.map((e) => /* @__PURE__ */ (0, S.jsxs)(cg, {
+ children: /* @__PURE__ */ (0, S.jsx)(ug, { children: e.map((e) => /* @__PURE__ */ (0, S.jsxs)(dg, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, S.jsx)(og, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, S.jsx)(lg, {
href: e.download_url,
children: e.download_label
}) : null]
}, e.term)) })
});
}
-function Zg({ uninstall: e }) {
+function M_({ uninstall: e }) {
let [t, n] = (0, x.useState)(!1), [r, i] = (0, x.useState)(""), a = () => void o({
title: "卸载 Peach",
danger: !0,
body: t ? "将退出 Peach,移除程序、开机自启、桌面图标、设置、本地数据库、观看记录、凭据和缓存。原始媒体文件保留。" : "将退出 Peach 并移除程序、开机自启和桌面图标。设置、本地数据库、观看记录与缓存保留。",
confirmLabel: "卸载 Peach",
onConfirm: async () => {
- let e = await rf("/api/configuration/uninstall", {
+ let e = await ff("/api/configuration/uninstall", {
delete_data: t,
confirmation: "卸载 Peach"
});
i(e.message);
}
}), s = r || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, S.jsxs)($h, {
+ return /* @__PURE__ */ (0, S.jsxs)(ng, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, S.jsxs)(tg, { children: [
- e.available ? /* @__PURE__ */ (0, S.jsx)(rg, { children: "卸载会退出 Peach、移除程序、开机自启和桌面图标。原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, S.jsx)(Rg, {
+ children: [/* @__PURE__ */ (0, S.jsxs)(ig, { children: [
+ e.available ? /* @__PURE__ */ (0, S.jsx)(og, { children: "卸载会退出 Peach、移除程序、开机自启和桌面图标。原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, S.jsx)(y_, {
isSelected: t,
isDisabled: !e.full_available || !!r,
onChange: n,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, S.jsx)(lg, {
+ /* @__PURE__ */ (0, S.jsx)(fg, {
summary: "数据目录",
children: c.map((e) => /* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-2-regular break-all text-text-secondary",
children: e
}, e))
})
- ] }), /* @__PURE__ */ (0, S.jsx)(ng, {
+ ] }), /* @__PURE__ */ (0, S.jsx)(ag, {
status: s ? /* @__PURE__ */ (0, S.jsx)("p", {
role: r ? "status" : void 0,
children: s
}) : null,
- children: /* @__PURE__ */ (0, S.jsx)(Pf, {
+ children: /* @__PURE__ */ (0, S.jsx)(Gh, {
variant: "danger",
disabled: !e.available || !!r,
onClick: a,
@@ -22540,7 +22920,7 @@ function Zg({ uninstall: e }) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var Qg = Xd({
+var N_ = af({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -22561,21 +22941,21 @@ var Qg = Xd({
small: "size-4 shrink-0"
}
});
-function $g({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function P_({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, S.jsx)("button", {
ref: i,
type: r,
- className: Yd(Qg.base, Qg.size[t], n),
+ className: rf(N_.base, N_.size[t], n),
...a,
children: /* @__PURE__ */ (0, S.jsx)(e, {
- className: Qg.icon[t],
+ className: N_.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/configuration-endpoints.ts
-var e_ = "/api/configuration", t_ = "/api/pick-folder", n_ = [
+var F_ = "/api/configuration", I_ = "/api/pick-folder", L_ = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -22594,32 +22974,32 @@ var e_ = "/api/configuration", t_ = "/api/pick-folder", n_ = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], r_ = [
+], R_ = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function i_() {
+function z_() {
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, S.jsxs)(rg, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, S.jsx)(og, {
+ children: [/* @__PURE__ */ (0, S.jsxs)(og, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, S.jsx)(lg, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, S.jsxs)(lg, {
+ })] }), /* @__PURE__ */ (0, S.jsxs)(fg, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, S.jsx)(rg, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,填得越大不一定越快。" }),
+ /* @__PURE__ */ (0, S.jsx)(og, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,填得越大不一定越快。" }),
/* @__PURE__ */ (0, S.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: n_.map((e) => /* @__PURE__ */ (0, S.jsxs)("li", {
+ children: L_.map((e) => /* @__PURE__ */ (0, S.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
}), /* @__PURE__ */ (0, S.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: r_.map(([t, n]) => /* @__PURE__ */ (0, S.jsxs)("div", {
+ children: R_.map(([t, n]) => /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col",
children: [/* @__PURE__ */ (0, S.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
@@ -22640,9 +23020,9 @@ function i_() {
/* @__PURE__ */ (0, S.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, S.jsxs)(rg, { children: [
+ /* @__PURE__ */ (0, S.jsxs)(og, { children: [
"三处缓存分别管什么、这几个值怎么往上调、码率和速度怎么换算、线程上限与直链代理怎么取舍,以及这些起步值的来源,都在",
- /* @__PURE__ */ (0, S.jsx)(og, {
+ /* @__PURE__ */ (0, S.jsx)(lg, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -22654,7 +23034,7 @@ function i_() {
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var a_ = [
+var B_ = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -22698,14 +23078,14 @@ var a_ = [
["star", "收藏"],
["tags", "主题"]
];
-function o_(e) {
+function V_(e) {
let t = e === "local" ? "" : a[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var s_ = "auto";
-function c_({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, x.useRef)(null), [a, o] = (0, x.useState)(!1), [s, c] = (0, x.useState)(e), [l, u] = o_(n);
- return /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(Pf, {
+var H_ = "auto";
+function U_({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, x.useRef)(null), [a, o] = (0, x.useState)(!1), [s, c] = (0, x.useState)(e), [l, u] = V_(n);
+ return /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(Gh, {
ref: i,
variant: "secondary",
className: "self-start",
@@ -22718,43 +23098,43 @@ function c_({ value: e, label: t, kind: n = "local", onChange: r }) {
children: /* @__PURE__ */ (0, S.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, S.jsx)(dg, { mark: e || l }), ((e) => e && a_.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, S.jsx)(mg, { mark: e || l }), ((e) => e && B_.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, S.jsx)(Qm, {
+ }), /* @__PURE__ */ (0, S.jsx)(dh, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: Uh,
- children: /* @__PURE__ */ (0, S.jsxs)(nh, {
+ className: Jh,
+ children: /* @__PURE__ */ (0, S.jsxs)(hh, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, S.jsx)(fp, {
+ /* @__PURE__ */ (0, S.jsx)(Tp, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, S.jsx)(lh, {
+ /* @__PURE__ */ (0, S.jsx)(Sh, {
"aria-label": "候选图标",
- value: s || s_,
- onChange: (e) => c(e === s_ ? "" : e),
+ value: s || H_,
+ onChange: (e) => c(e === H_ ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: a_.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(uh, {
- value: e || s_,
+ children: B_.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(Ch, {
+ value: e || H_,
"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, S.jsx)(dg, { mark: e || l })
- }, e || s_))
+ children: /* @__PURE__ */ (0, S.jsx)(mg, { mark: e || l })
+ }, e || H_))
}),
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
- children: [/* @__PURE__ */ (0, S.jsx)(Pf, {
+ children: [/* @__PURE__ */ (0, S.jsx)(Gh, {
variant: "secondary",
onClick: () => o(!1),
children: "取消"
- }), /* @__PURE__ */ (0, S.jsx)(Pf, {
+ }), /* @__PURE__ */ (0, S.jsx)(Gh, {
disabled: s === e,
onClick: () => {
r(s), o(!1);
@@ -22768,8 +23148,8 @@ function c_({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var l_ = 8e3;
-function u_({ className: e }) {
+var W_ = 8e3;
+function G_({ className: e }) {
return /* @__PURE__ */ (0, S.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -22782,48 +23162,48 @@ function u_({ className: e }) {
children: /* @__PURE__ */ (0, S.jsx)("use", { href: "#i-folder-search" })
});
}
-var d_ = [
+var K_ = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], f_ = (e) => d_.find(([t]) => t === e)?.[1] ?? e, p_ = (e) => a[e] || "database", m_ = (e = "") => ({
+], q_ = (e) => K_.find(([t]) => t === e)?.[1] ?? e, J_ = (e) => a[e] || "database", Y_ = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function h_(e) {
- let t = e.media_sources?.filter((e) => d_.some(([t]) => t === e.location));
+function X_(e) {
+ let t = e.media_sources?.filter((e) => K_.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) => m_(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => Y_(e));
}
-var g_ = (e) => !(e instanceof $d) || e.status !== 400 ? null : e.body?.errors ?? null;
-function __({ data: e, receipt: t }) {
+var Z_ = (e) => !(e instanceof cf) || e.status !== 400 ? null : e.body?.errors ?? null;
+function Q_({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.editable ? /* @__PURE__ */ (0, S.jsx)(v_, {
+ children: [e.editable ? /* @__PURE__ */ (0, S.jsx)($_, {
data: e,
receipt: t
- }) : /* @__PURE__ */ (0, S.jsx)(sf, {
+ }) : /* @__PURE__ */ (0, S.jsx)(hf, {
tone: "neutral",
title: "只读",
children: e.notice
- }), /* @__PURE__ */ (0, S.jsx)(b_, { data: e })]
+ }), /* @__PURE__ */ (0, S.jsx)(tv, { data: e })]
});
}
-function v_({ data: e, receipt: t }) {
- let [n, r] = (0, x.useState)(() => h_(e)), [i, a] = (0, x.useState)(String(e.port)), [o, s] = (0, x.useState)(!1), [c, l] = (0, x.useState)([]), [u, d] = (0, x.useState)(""), [f, p] = (0, x.useState)(""), [m, h] = (0, x.useState)(null), [g, _] = (0, x.useState)(null), [v, y] = (0, x.useState)(null), b = (0, x.useRef)(!1), C = (0, x.useRef)(e.revision), w = (0, x.useRef)([]), T = fg();
+function $_({ data: e, receipt: t }) {
+ let [n, r] = (0, x.useState)(() => X_(e)), [i, a] = (0, x.useState)(String(e.port)), [o, s] = (0, x.useState)(!1), [c, l] = (0, x.useState)([]), [u, d] = (0, x.useState)(""), [f, p] = (0, x.useState)(""), [m, h] = (0, x.useState)(null), [g, _] = (0, x.useState)(null), [v, y] = (0, x.useState)(null), b = (0, x.useRef)(!1), C = (0, x.useRef)(e.revision), w = (0, x.useRef)([]), T = hg();
(0, x.useLayoutEffect)(() => {
g !== null && (w.current[g]?.focus(), _(null));
}, [g]), (0, x.useEffect)(() => {
if (!m) return;
- let e = setTimeout(() => location.assign(m.url), l_);
+ let e = setTimeout(() => location.assign(m.url), W_);
return () => clearTimeout(e);
}, [m]);
let E = (e, t) => r((n) => n.map((n, r) => r === e ? {
@@ -22834,23 +23214,23 @@ function v_({ data: e, receipt: t }) {
for (; r.length <= e;) r.push("");
return r[e] = t, r;
}), O = () => {
- _(n.length), r((e) => [...e, m_()]);
+ _(n.length), r((e) => [...e, Y_()]);
}, k = (e) => {
r((t) => t.filter((t, n) => n !== e)), l((t) => t.filter((t, n) => n !== e));
}, A = async (e) => {
if (!b.current) {
b.current = !0, y(e);
try {
- let { path: t } = await rf(t_, { initial: n[e]?.path ?? "" });
+ let { path: t } = await ff(I_, { initial: n[e]?.path ?? "" });
t && (E(e, { path: t }), D(e, ""));
} catch (t) {
- D(e, tf(t));
+ D(e, uf(t));
} finally {
b.current = !1, y(null);
}
}
}, ee = (r) => {
- r.preventDefault(), p(""), T.run("save", (t) => rf(e_, {
+ r.preventDefault(), p(""), T.run("save", (t) => ff(F_, {
revision: C.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -22859,18 +23239,18 @@ function v_({ data: e, receipt: t }) {
}, "POST", t), (e) => {
C.current = e.revision, l([]), d(""), t("已保存配置"), h(e);
}, (e) => {
- let t = g_(e);
- l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(tf(e));
+ let t = Z_(e);
+ l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(uf(e));
});
};
- if (m) return /* @__PURE__ */ (0, S.jsx)($h, {
+ if (m) return /* @__PURE__ */ (0, S.jsx)(ng, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, S.jsx)(tg, { children: /* @__PURE__ */ (0, S.jsxs)(sf, {
+ children: /* @__PURE__ */ (0, S.jsx)(ig, { children: /* @__PURE__ */ (0, S.jsxs)(hf, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, S.jsx)(Fh, {
+ /* @__PURE__ */ (0, S.jsx)(qh, {
href: m.url,
size: "small",
children: "进入馆藏"
@@ -22880,14 +23260,14 @@ function v_({ data: e, receipt: t }) {
}) })
});
let j = n.some((e) => e.location === "115" || e.location === "pikpak"), te = j ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, S.jsxs)($h, {
+ return /* @__PURE__ */ (0, S.jsxs)(ng, {
title: "这台电脑",
onSubmit: ee,
- children: [/* @__PURE__ */ (0, S.jsxs)(tg, { children: [
+ children: [/* @__PURE__ */ (0, S.jsxs)(ig, { children: [
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, S.jsx)(ag, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, S.jsx)(cg, { children: "媒体文件夹" }),
/* @__PURE__ */ (0, S.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
@@ -22898,7 +23278,7 @@ function v_({ data: e, receipt: t }) {
children: [/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, S.jsx)(Hh, {
+ /* @__PURE__ */ (0, S.jsx)(Hg, {
className: "min-w-0 flex-1",
"aria-label": `媒体文件夹 ${r + 1}`,
placeholder: "本机文件夹路径",
@@ -22911,14 +23291,14 @@ function v_({ data: e, receipt: t }) {
isInvalid: !!c[r],
hint: c[r] || void 0
}),
- /* @__PURE__ */ (0, S.jsx)($g, {
- icon: u_,
+ /* @__PURE__ */ (0, S.jsx)(P_, {
+ icon: G_,
"aria-label": "选择文件夹",
onClick: () => void A(r),
- ...pg(v === r)
+ ...gg(v === r)
}),
- n.length > 1 ? /* @__PURE__ */ (0, S.jsx)($g, {
- icon: mu,
+ n.length > 1 ? /* @__PURE__ */ (0, S.jsx)(P_, {
+ icon: gu,
"aria-label": "移除这个文件夹",
onClick: () => k(r)
}) : null
@@ -22926,7 +23306,7 @@ function v_({ data: e, receipt: t }) {
}), /* @__PURE__ */ (0, S.jsxs)("div", {
className: "inline-grid grid-cols-1 gap-3 @lg:grid-cols-2",
children: [
- /* @__PURE__ */ (0, S.jsx)(Hh, {
+ /* @__PURE__ */ (0, S.jsx)(Hg, {
label: "媒体库名称",
maxLength: 80,
placeholder: "同名文件夹归入同一个媒体库",
@@ -22935,7 +23315,7 @@ function v_({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, S.jsx)(ag, { children: "媒体库图标" }), /* @__PURE__ */ (0, S.jsx)(c_, {
+ children: [/* @__PURE__ */ (0, S.jsx)(cg, { children: "媒体库图标" }), /* @__PURE__ */ (0, S.jsx)(U_, {
label: `媒体库图标 ${r + 1}`,
value: t.library_icon,
kind: t.location,
@@ -22944,20 +23324,20 @@ function v_({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, S.jsx)(ag, { children: "媒体来源" }), /* @__PURE__ */ (0, S.jsx)(Zh, {
+ children: [/* @__PURE__ */ (0, S.jsx)(cg, { children: "媒体来源" }), /* @__PURE__ */ (0, S.jsx)(qg, {
"aria-label": `媒体来源 ${r + 1}`,
selectedKey: t.location,
onSelectionChange: (e) => {
e !== null && E(r, { location: String(e) });
},
- children: d_.map(([e, t]) => /* @__PURE__ */ (0, S.jsxs)(Qh, {
+ children: K_.map(([e, t]) => /* @__PURE__ */ (0, S.jsxs)(Jg, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, S.jsx)(dg, { mark: p_(e) }), t]
+ children: [/* @__PURE__ */ (0, S.jsx)(mg, { mark: J_(e) }), t]
}, e))
})]
}),
- e.windows === !1 ? /* @__PURE__ */ (0, S.jsx)(Hh, {
+ e.windows === !1 ? /* @__PURE__ */ (0, S.jsx)(Hg, {
label: "Windows 中的对应路径",
placeholder: "例如 B:\\",
value: t.root,
@@ -22967,25 +23347,25 @@ function v_({ data: e, receipt: t }) {
})]
}, r))
}),
- /* @__PURE__ */ (0, S.jsx)(Pf, {
+ /* @__PURE__ */ (0, S.jsx)(Gh, {
className: "self-start",
onClick: O,
children: "添加文件夹"
})
]
}),
- j ? /* @__PURE__ */ (0, S.jsx)(i_, {}) : null,
- te.map((e) => /* @__PURE__ */ (0, S.jsxs)(rg, { children: [
+ j ? /* @__PURE__ */ (0, S.jsx)(z_, {}) : null,
+ te.map((e) => /* @__PURE__ */ (0, S.jsxs)(og, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, S.jsxs)(og, {
+ /* @__PURE__ */ (0, S.jsxs)(lg, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, S.jsx)(rg, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, S.jsx)(Hh, {
+ e.windows === !1 ? /* @__PURE__ */ (0, S.jsx)(og, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, S.jsx)(Hg, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -22995,27 +23375,27 @@ function v_({ data: e, receipt: t }) {
isInvalid: !!u,
hint: u || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, S.jsx)(Rg, {
+ /* @__PURE__ */ (0, S.jsx)(y_, {
isSelected: o,
onChange: s,
children: "保存后扫描并补全资料"
}),
- f ? /* @__PURE__ */ (0, S.jsx)(sf, {
+ f ? /* @__PURE__ */ (0, S.jsx)(hf, {
tone: "error",
title: "没有保存",
children: f
}) : null
- ] }), /* @__PURE__ */ (0, S.jsx)(ng, {
+ ] }), /* @__PURE__ */ (0, S.jsx)(ag, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
- children: /* @__PURE__ */ (0, S.jsx)(Pf, {
+ children: /* @__PURE__ */ (0, S.jsx)(Gh, {
type: "submit",
- ...pg(T.busy === "save"),
+ ...gg(T.busy === "save"),
children: "保存配置"
})
})]
});
}
-function y_({ online: e }) {
+function ev({ online: e }) {
return e === !0 ? /* @__PURE__ */ (0, S.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
@@ -23039,22 +23419,22 @@ function y_({ online: e }) {
}), "未检测"]
});
}
-function b_({ data: e }) {
- let [t, n] = (0, x.useState)(e.media_sources), r = fg();
- return t ? /* @__PURE__ */ (0, S.jsxs)($h, {
+function tv({ data: e }) {
+ let [t, n] = (0, x.useState)(e.media_sources), r = hg();
+ return t ? /* @__PURE__ */ (0, S.jsxs)(ng, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, S.jsx)(sg, { children: t.map((e, t) => /* @__PURE__ */ (0, S.jsxs)(cg, {
- term: /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(dg, { mark: p_(e.location) }), f_(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, S.jsx)(y_, { online: e.online })]
+ /* @__PURE__ */ (0, S.jsx)(ug, { children: t.map((e, t) => /* @__PURE__ */ (0, S.jsxs)(dg, {
+ term: /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(mg, { mark: J_(e.location) }), q_(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, S.jsx)(ev, { online: e.online })]
}, t)) }),
- r.error ? /* @__PURE__ */ (0, S.jsx)(tg, {
+ r.error ? /* @__PURE__ */ (0, S.jsx)(ig, {
divided: !0,
- children: /* @__PURE__ */ (0, S.jsx)(ig, { children: r.error })
+ children: /* @__PURE__ */ (0, S.jsx)(sg, { children: r.error })
}) : null,
- /* @__PURE__ */ (0, S.jsx)(ng, { children: /* @__PURE__ */ (0, S.jsx)(Pf, {
- onClick: () => void r.run("refresh", (e) => nf(e_, e), (e) => n(e.media_sources)),
- ...pg(r.busy === "refresh"),
+ /* @__PURE__ */ (0, S.jsx)(ag, { children: /* @__PURE__ */ (0, S.jsx)(Gh, {
+ onClick: () => void r.run("refresh", (e) => df(F_, e), (e) => n(e.media_sources)),
+ ...gg(r.busy === "refresh"),
children: "刷新挂载状态"
}) })
]
@@ -23062,20 +23442,20 @@ function b_({ data: e }) {
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var x_ = {
+var nv = {
legacy: "当前使用系统生成的访问口令。你可以设置自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,保持登录时间在登录页选择。"
};
-function S_({ initial: e, receipt: t }) {
- let [n, r] = (0, x.useState)(e), [i, a] = (0, x.useState)(""), [o, s] = (0, x.useState)(""), [c, l] = (0, x.useState)(""), [u, d] = (0, x.useState)(!1), [f, p] = (0, x.useState)({}), m = (0, x.useRef)(null), h = fg(), g = (e) => {
+function rv({ initial: e, receipt: t }) {
+ let [n, r] = (0, x.useState)(e), [i, a] = (0, x.useState)(""), [o, s] = (0, x.useState)(""), [c, l] = (0, x.useState)(""), [u, d] = (0, x.useState)(!1), [f, p] = (0, x.useState)({}), m = (0, x.useRef)(null), h = hg(), g = (e) => {
e.preventDefault();
let f = {};
if (n.mode === "password" && !i && (f.current_password = "请输入当前访问密码"), u || ((o.length < 8 || o.length > 256) && (f.password = "访问密码需为 8–256 个字符"), o !== c && (f.confirmation = "两次输入的密码不一致")), p(f), Object.keys(f).length) {
requestAnimationFrame(() => m.current?.querySelector("input[aria-invalid=\"true\"]")?.focus());
return;
}
- h.run("save", (e) => rf("/api/configuration/access", {
+ h.run("save", (e) => ff("/api/configuration/access", {
revision: n.revision,
action: u ? "disable" : "set",
confirm_disable: u,
@@ -23085,28 +23465,28 @@ function S_({ initial: e, receipt: t }) {
}, "POST", e), (e) => {
r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");
}, (e) => {
- let t = e instanceof $d ? e.body : null, n = t?.errors || t?.detail?.errors;
- n ? p(n) : h.setError(tf(e));
+ let t = e instanceof cf ? e.body : null, n = t?.errors || t?.detail?.errors;
+ n ? p(n) : h.setError(uf(e));
});
- }, _ = x_[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, S.jsxs)($h, {
+ }, _ = nv[n.mode], v = n.mode !== "locked";
+ return /* @__PURE__ */ (0, S.jsxs)(ng, {
title: "访问密码",
onSubmit: g,
children: [/* @__PURE__ */ (0, S.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, S.jsxs)(tg, { children: [
- _ ? /* @__PURE__ */ (0, S.jsx)(rg, { children: _ }) : null,
- n.mode === "open" ? /* @__PURE__ */ (0, S.jsx)(sf, {
+ children: /* @__PURE__ */ (0, S.jsxs)(ig, { children: [
+ _ ? /* @__PURE__ */ (0, S.jsx)(og, { children: _ }) : null,
+ n.mode === "open" ? /* @__PURE__ */ (0, S.jsx)(hf, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, S.jsx)(Rg, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, S.jsx)(y_, {
isSelected: u,
onChange: d,
children: "关闭访问密码,允许能连接到 Peach 的设备直接访问"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, S.jsx)(Hh, {
+ n.mode === "password" ? /* @__PURE__ */ (0, S.jsx)(Hg, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -23119,7 +23499,7 @@ function S_({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(Hh, {
+ v ? /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(Hg, {
id: "access-password",
type: "password",
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
@@ -23132,7 +23512,7 @@ function S_({ initial: e, receipt: t }) {
validationBehavior: "aria",
isInvalid: !u && !!f.password,
hint: u ? "关闭访问密码时无需填写。" : f.password || "至少 8 个字符。保存后其他设备需要重新登录。"
- }), /* @__PURE__ */ (0, S.jsx)(Hh, {
+ }), /* @__PURE__ */ (0, S.jsx)(Hg, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -23146,18 +23526,18 @@ function S_({ initial: e, receipt: t }) {
isInvalid: !u && !!f.confirmation,
hint: u ? void 0 : f.confirmation
})] }) : null,
- u ? /* @__PURE__ */ (0, S.jsx)(sf, {
+ u ? /* @__PURE__ */ (0, S.jsx)(hf, {
tone: "warning",
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, S.jsx)(ig, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, S.jsx)(sg, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, S.jsx)(ng, {
+ }), v ? /* @__PURE__ */ (0, S.jsx)(ag, {
status: "保存后立即生效。",
- children: /* @__PURE__ */ (0, S.jsx)(Pf, {
+ children: /* @__PURE__ */ (0, S.jsx)(Gh, {
type: "submit",
- ...pg(h.busy === "save"),
+ ...gg(h.busy === "save"),
children: "保存配置"
})
}) : null]
@@ -23165,30 +23545,30 @@ function S_({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var C_ = [
+var iv = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function w_({ data: e, receipt: t }) {
+function av({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.peach_proxy ? /* @__PURE__ */ (0, S.jsx)(T_, {
+ children: [e.peach_proxy ? /* @__PURE__ */ (0, S.jsx)(ov, {
initial: e.peach_proxy,
receipt: t
- }) : null, e.access ? /* @__PURE__ */ (0, S.jsx)(S_, {
+ }) : null, e.access ? /* @__PURE__ */ (0, S.jsx)(rv, {
initial: e.access,
receipt: t
}) : null]
});
}
-function T_({ initial: e, receipt: t }) {
- let [n, r] = (0, x.useState)(e), [i, a] = (0, x.useState)(e.mode), [o, s] = (0, x.useState)(""), c = fg();
- return /* @__PURE__ */ (0, S.jsxs)($h, {
+function ov({ initial: e, receipt: t }) {
+ let [n, r] = (0, x.useState)(e), [i, a] = (0, x.useState)(e.mode), [o, s] = (0, x.useState)(""), c = hg();
+ return /* @__PURE__ */ (0, S.jsxs)(ng, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
- e.preventDefault(), c.run("save", (e) => rf("/api/configuration/peach-proxy", {
+ e.preventDefault(), c.run("save", (e) => ff("/api/configuration/peach-proxy", {
mode: i,
proxy: o
}, "POST", e), (e) => {
@@ -23196,25 +23576,25 @@ function T_({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, S.jsx)(eg, { children: /* @__PURE__ */ (0, S.jsx)(Nh, {
+ /* @__PURE__ */ (0, S.jsx)(rg, { children: /* @__PURE__ */ (0, S.jsx)(tg, {
label: "连接方式",
description: "采集来源选择“Peach 代理”时共用此设置。",
- children: /* @__PURE__ */ (0, S.jsx)(Zh, {
+ children: /* @__PURE__ */ (0, S.jsx)(qg, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: C_.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(Qh, {
+ children: iv.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(Jg, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, S.jsxs)(tg, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, S.jsxs)(ig, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, S.jsx)(Hh, {
+ i === "proxy" ? /* @__PURE__ */ (0, S.jsx)(Hg, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -23223,17 +23603,17 @@ function T_({ initial: e, receipt: t }) {
onChange: s,
placeholder: n.proxy_saved ? "已保存,留空保留" : "http://127.0.0.1:7890"
}) : null,
- n.needs_selection ? /* @__PURE__ */ (0, S.jsx)(sf, {
+ n.needs_selection ? /* @__PURE__ */ (0, S.jsx)(hf, {
tone: "warning",
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, S.jsx)(ig, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, S.jsx)(sg, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, S.jsx)(ng, { children: /* @__PURE__ */ (0, S.jsx)(Pf, {
+ /* @__PURE__ */ (0, S.jsx)(ag, { children: /* @__PURE__ */ (0, S.jsx)(Gh, {
type: "submit",
- ...pg(c.busy === "save"),
+ ...gg(c.busy === "save"),
children: "保存配置"
}) })
]
@@ -23241,16 +23621,16 @@ function T_({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/entry.tsx
-var E_ = null;
-function D_() {
- return E_?.isConnected || (E_ = document.createElement("div"), E_.className = "peach-react", E_.dataset.reactOverlays = "", document.body.append(E_)), E_;
+var sv = null;
+function cv() {
+ return sv?.isConnected || (sv = document.createElement("div"), sv.className = "peach-react", sv.dataset.reactOverlays = "", document.body.append(sv)), sv;
}
-function O_(e) {
+function lv(e) {
return (t, n) => {
- let r = (0, du.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, S.jsx)(T, {
- client: uf,
- children: /* @__PURE__ */ (0, S.jsx)(lc, {
- getContainer: D_,
+ let r = (0, fu.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, S.jsx)(T, {
+ client: vf,
+ children: /* @__PURE__ */ (0, S.jsx)(uc, {
+ getContainer: cv,
children: /* @__PURE__ */ (0, S.jsx)(e, { ...t })
})
}));
@@ -23260,19 +23640,23 @@ function O_(e) {
};
};
}
-var k_ = {
+var uv = {
activity: {
- prefetch: (e, t) => _f(t),
- mount: O_(Mf)
+ prefetch: (e, t) => Tf(t),
+ mount: lv(Bf)
+ },
+ "library-processing": {
+ prefetch: (e, t) => Uf(t),
+ mount: lv((e) => e.mode === "notice" ? /* @__PURE__ */ (0, S.jsx)(Og, { ...e }) : /* @__PURE__ */ (0, S.jsx)(Tg, { ...e }))
},
"quality-goals": {
- prefetch: (e, t) => Rf(t),
- mount: O_($)
+ prefetch: (e, t) => Mg(t),
+ mount: lv(Fg)
},
scraping: {
- prefetch: (e, t) => Cg(t),
- mount: O_(Ag)
+ prefetch: (e, t) => i_(t),
+ mount: lv(d_)
}
-}, A_ = O_(Pg), j_ = O_(__), M_ = O_(w_), N_ = O_(Jg);
+}, dv = lv(h_), fv = lv(Q_), pv = lv(av), mv = lv(k_);
//#endregion
-export { A_ as mountGeneralSettings, N_ as mountMaintenanceSettings, j_ as mountMediaSettings, M_ as mountNetworkSettings, k_ as pages };
+export { dv as mountGeneralSettings, mv as mountMaintenanceSettings, fv as mountMediaSettings, pv as mountNetworkSettings, uv as pages };
diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.js
index 2ddb0cabd..a9a1f8973 100644
--- a/web/dist/peach-ui.js
+++ b/web/dist/peach-ui.js
@@ -1,21 +1,21 @@
-import { esc as e, icon as t, requestErrorMessage as n } from "/js/core.js";
-import { MEDIA_SOURCE_ICONS as r, attachOverlayScrollbar as i, checkboxHtml as a, emptyStateHtml as o, fieldsetTitle as s, loadingDotsHtml as c, moveGlidePane as l, noteHtml as u, projectBannerHtml as d, selectFieldHtml as f, selectOptionIconHtml as p, setActionBusy as m, wireAnchoredMenu as h, wireCollapse as g, wireSelectField as _ } from "/js/ui-components.js";
+import { MEDIA_SOURCE_ICONS as e, attachOverlayScrollbar as t, checkboxHtml as n, emptyStateHtml as r, loadingDotsHtml as i, moveGlidePane as a, noteHtml as o, selectFieldHtml as s, selectOptionIconHtml as c, setActionBusy as l, wireCollapse as u, wireSelectField as d } from "/js/ui-components.js";
+import { esc as f, icon as p, requestErrorMessage as m } from "/js/core.js";
//#region node_modules/preact/dist/preact.module.js
-var v, y, b, x, S, C, w, T, E, D, O, k, A, j, M = {}, N = [], ee = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, P = Array.isArray;
-function F(e, t) {
+var h, g, _, v, y, b, x, S, C, w, T, E, D, O, k = {}, A = [], j = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, M = Array.isArray;
+function N(e, t) {
for (var n in t) e[n] = t[n];
return e;
}
-function I(e) {
+function P(e) {
e && e.parentNode && e.parentNode.removeChild(e);
}
-function L(e, t, n) {
+function F(e, t, n) {
var r, i, a, o = {};
for (a in t) a == "key" ? r = t[a] : a == "ref" ? i = t[a] : o[a] = t[a];
- if (arguments.length > 2 && (o.children = arguments.length > 3 ? v.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (a in e.defaultProps) o[a] === void 0 && (o[a] = e.defaultProps[a]);
- return te(e, o, r, i, null);
+ if (arguments.length > 2 && (o.children = arguments.length > 3 ? h.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (a in e.defaultProps) o[a] === void 0 && (o[a] = e.defaultProps[a]);
+ return I(e, o, r, i, null);
}
-function te(e, t, n, r, i) {
+function I(e, t, n, r, i) {
var a = {
type: e,
props: t,
@@ -27,68 +27,68 @@ function te(e, t, n, r, i) {
__e: null,
__c: null,
constructor: void 0,
- __v: i ?? ++b,
+ __v: i ?? ++_,
__i: -1,
__u: 0
};
- return i == null && y.vnode != null && y.vnode(a), a;
+ return i == null && g.vnode != null && g.vnode(a), a;
}
-function ne(e) {
+function L(e) {
return e.children;
}
-function re(e, t) {
+function R(e, t) {
this.props = e, this.context = t;
}
-function R(e, t) {
- if (t == null) return e.__ ? R(e.__, e.__i + 1) : null;
+function z(e, t) {
+ if (t == null) return e.__ ? z(e.__, e.__i + 1) : null;
for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
- return typeof e.type == "function" ? R(e) : null;
+ return typeof e.type == "function" ? z(e) : null;
}
-function ie(e) {
+function ee(e) {
if (e.__P && e.__d) {
- var t = e.__v, n = t.__e, r = [], i = [], a = F({}, t);
- a.__v = t.__v + 1, y.vnode && y.vnode(a), he(e.__P, a, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, r, n ?? R(t), !!(32 & t.__u), i), a.__v = t.__v, a.__.__k[a.__i] = a, _e(r, a, i), t.__e = t.__ = null, a.__e != n && ae(a);
+ var t = e.__v, n = t.__e, r = [], i = [], a = N({}, t);
+ a.__v = t.__v + 1, g.vnode && g.vnode(a), de(e.__P, a, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, r, n ?? z(t), !!(32 & t.__u), i), a.__v = t.__v, a.__.__k[a.__i] = a, pe(r, a, i), t.__e = t.__ = null, a.__e != n && te(a);
}
}
-function ae(e) {
+function te(e) {
if ((e = e.__) != null && e.__c != null) return e.__e = e.__c.base = null, e.__k.some(function(t) {
if (t != null && t.__e != null) return e.__e = e.__c.base = t.__e;
- }), ae(e);
+ }), te(e);
}
-function oe(e) {
- (!e.__d && (e.__d = !0) && x.push(e) && !se.__r++ || S != y.debounceRendering) && ((S = y.debounceRendering) || C)(se);
+function ne(e) {
+ (!e.__d && (e.__d = !0) && v.push(e) && !re.__r++ || y != g.debounceRendering) && ((y = g.debounceRendering) || b)(re);
}
-function se() {
+function re() {
try {
- for (var e, t = 1; x.length;) x.length > t && x.sort(w), e = x.shift(), t = x.length, ie(e);
+ for (var e, t = 1; v.length;) v.length > t && v.sort(x), e = v.shift(), t = v.length, ee(e);
} finally {
- x.length = se.__r = 0;
+ v.length = re.__r = 0;
}
}
-function ce(e, t, n, r, i, a, o, s, c, l, u) {
- var d, f, p, m, h, g, _ = r && r.__k || N, v = t.length;
- for (c = le(n, t, _, c, v), d = 0; d < v; d++) (p = n.__k[d]) != null && (f = p.__i != -1 && _[p.__i] || M, p.__i = d, g = he(e, p, f, i, a, o, s, c, l, u), m = p.__e, p.ref && f.ref != p.ref && (f.ref && be(f.ref, null, p), u.push(p.ref, p.__c || m, p)), h == null && m != null && (h = m), 4 & p.__u ? (c = ue(p, c, e), f.__e && (f.__e = null)) : typeof p.type == "function" && g !== void 0 ? c = g : m && (c = m.nextSibling), p.__u &= -7);
+function ie(e, t, n, r, i, a, o, s, c, l, u) {
+ var d, f, p, m, h, g, _ = r && r.__k || A, v = t.length;
+ for (c = ae(n, t, _, c, v), d = 0; d < v; d++) (p = n.__k[d]) != null && (f = p.__i != -1 && _[p.__i] || k, p.__i = d, g = de(e, p, f, i, a, o, s, c, l, u), m = p.__e, p.ref && f.ref != p.ref && (f.ref && ge(f.ref, null, p), u.push(p.ref, p.__c || m, p)), h == null && m != null && (h = m), 4 & p.__u ? (c = oe(p, c, e), f.__e && (f.__e = null)) : typeof p.type == "function" && g !== void 0 ? c = g : m && (c = m.nextSibling), p.__u &= -7);
return n.__e = h, c;
}
-function le(e, t, n, r, i) {
+function ae(e, t, n, r, i) {
var a, o, s, c, l, u = n.length, d = u, f = 0;
- for (e.__k = Array(i), a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = e.__k[a] = te(null, o, null, null, null) : P(o) ? o = e.__k[a] = te(ne, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = e.__k[a] = te(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : e.__k[a] = o, c = a + f, o.__ = e, o.__b = e.__b + 1, s = null, (l = o.__i = de(o, n, c, d)) != -1 && (d--, (s = n[l]) && (s.__u |= 2)), s == null || s.__v == null ? (l == -1 && (i > u ? f-- : i < u && f++), typeof o.type != "function" && (o.__u |= 4)) : l != c && (l == c - 1 ? f-- : l == c + 1 ? f++ : (l > c ? f-- : f++, o.__u |= 4))) : e.__k[a] = null;
- if (d) for (a = 0; a < u; a++) (s = n[a]) != null && !(2 & s.__u) && (s.__e == r && (r = R(s)), xe(s, s));
+ for (e.__k = Array(i), a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = e.__k[a] = I(null, o, null, null, null) : M(o) ? o = e.__k[a] = I(L, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = e.__k[a] = I(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : e.__k[a] = o, c = a + f, o.__ = e, o.__b = e.__b + 1, s = null, (l = o.__i = se(o, n, c, d)) != -1 && (d--, (s = n[l]) && (s.__u |= 2)), s == null || s.__v == null ? (l == -1 && (i > u ? f-- : i < u && f++), typeof o.type != "function" && (o.__u |= 4)) : l != c && (l == c - 1 ? f-- : l == c + 1 ? f++ : (l > c ? f-- : f++, o.__u |= 4))) : e.__k[a] = null;
+ if (d) for (a = 0; a < u; a++) (s = n[a]) != null && !(2 & s.__u) && (s.__e == r && (r = z(s)), _e(s, s));
return r;
}
-function ue(e, t, n) {
+function oe(e, t, n) {
var r, i;
if (typeof e.type == "function") {
- for (r = e.__k, i = 0; r && i < r.length; i++) r[i] && (r[i].__ = e, t = ue(r[i], t, n));
+ for (r = e.__k, i = 0; r && i < r.length; i++) r[i] && (r[i].__ = e, t = oe(r[i], t, n));
return t;
}
- e.__e != t && (t && e.type && !t.parentNode && (t = R(e)), t = n.insertBefore(e.__e, t || null));
+ e.__e != t && (t && e.type && !t.parentNode && (t = z(e)), t = n.insertBefore(e.__e, t || null));
do
t &&= t.nextSibling;
while (t != null && t.nodeType == 8);
return t;
}
-function de(e, t, n, r) {
+function se(e, t, n, r) {
var i, a, o, s = e.key, c = e.type, l = t[n], u = l != null && !(2 & l.__u);
if (l === null && s == null || u && s == l.key && c == l.type) return n;
if (r > +!!u) {
@@ -96,18 +96,18 @@ function de(e, t, n, r) {
}
return -1;
}
-function fe(e, t, n) {
- t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || ee.test(t) ? n : n + "px";
+function ce(e, t, n) {
+ t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || j.test(t) ? n : n + "px";
}
-function pe(e, t, n, r, i) {
+function le(e, t, n, r, i) {
var a, o;
n: if (t == "style") {
if (typeof n == "string") e.style.cssText = n;
else {
- if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || fe(e.style, t, "");
- if (n) for (t in n) r && n[t] == r[t] || fe(e.style, t, n[t]);
+ if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || ce(e.style, t, "");
+ if (n) for (t in n) r && n[t] == r[t] || ce(e.style, t, n[t]);
}
- } else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(O, "$1")), o = t.toLowerCase(), t = o in e || t == "onFocusOut" || t == "onFocusIn" ? o.slice(2) : t.slice(2), e.l ||= {}, e.l[t + a] = n, n ? r ? n[D] = r[D] : (n[D] = k, e.addEventListener(t, a ? j : A, a)) : e.removeEventListener(t, a ? j : A, a);
+ } else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(T, "$1")), o = t.toLowerCase(), t = o in e || t == "onFocusOut" || t == "onFocusIn" ? o.slice(2) : t.slice(2), e.l ||= {}, e.l[t + a] = n, n ? r ? n[w] = r[w] : (n[w] = E, e.addEventListener(t, a ? O : D, a)) : e.removeEventListener(t, a ? O : D, a);
else {
if (i == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
@@ -117,72 +117,72 @@ function pe(e, t, n, r, i) {
typeof n == "function" || (n == null || !1 === n && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
}
}
-function me(e) {
+function ue(e) {
return function(t) {
if (this.l) {
var n = this.l[t.type + e];
- if (t[E] == null) t[E] = k++;
- else if (t[E] < n[D]) return;
- return n(y.event ? y.event(t) : t);
+ if (t[C] == null) t[C] = E++;
+ else if (t[C] < n[w]) return;
+ return n(g.event ? g.event(t) : t);
}
};
}
-function he(e, t, n, r, i, a, o, s, c, l) {
- var u, d, f, p, m, h, g, _, v, b, x, S, C, w, T, E, D = t.type;
+function de(e, t, n, r, i, a, o, s, c, l) {
+ var u, d, f, p, m, h, _, v, y, b, x, S, C, w, T, E, D = t.type;
if (t.constructor !== void 0) return null;
- 128 & n.__u && (c = !!(32 & n.__u), a = [s = t.__e = n.__e]), (u = y.__b) && u(t);
+ 128 & n.__u && (c = !!(32 & n.__u), a = [s = t.__e = n.__e]), (u = g.__b) && u(t);
n: if (typeof D == "function") {
d = o.length;
try {
- if (v = t.props, b = D.prototype && D.prototype.render, x = (u = D.contextType) && r[u.__c], S = u ? x ? x.props.value : u.__ : r, n.__c ? _ = (f = t.__c = n.__c).__ = f.__E : (b ? t.__c = f = new D(v, S) : (t.__c = f = new re(v, S), f.constructor = D, f.render = Se), x && x.sub(f), f.state || (f.state = {}), f.__n = r, p = f.__d = !0, f.__h = [], f._sb = []), b && f.__s == null && (f.__s = f.state), b && D.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = F({}, f.__s)), F(f.__s, D.getDerivedStateFromProps(v, f.__s))), m = f.props, h = f.state, f.__v = t, p) b && D.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), b && f.componentDidMount != null && f.__h.push(f.componentDidMount);
+ if (y = t.props, b = D.prototype && D.prototype.render, x = (u = D.contextType) && r[u.__c], S = u ? x ? x.props.value : u.__ : r, n.__c ? v = (f = t.__c = n.__c).__ = f.__E : (b ? t.__c = f = new D(y, S) : (t.__c = f = new R(y, S), f.constructor = D, f.render = ve), x && x.sub(f), f.state || (f.state = {}), f.__n = r, p = f.__d = !0, f.__h = [], f._sb = []), b && f.__s == null && (f.__s = f.state), b && D.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = N({}, f.__s)), N(f.__s, D.getDerivedStateFromProps(y, f.__s))), m = f.props, h = f.state, f.__v = t, p) b && D.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), b && f.componentDidMount != null && f.__h.push(f.componentDidMount);
else {
- if (b && D.getDerivedStateFromProps == null && v !== m && f.componentWillReceiveProps != null && f.componentWillReceiveProps(v, S), t.__v == n.__v || !f.__e && f.shouldComponentUpdate != null && !1 === f.shouldComponentUpdate(v, f.__s, S)) {
- t.__v != n.__v && (f.props = v, f.state = f.__s, f.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(e) {
+ if (b && D.getDerivedStateFromProps == null && y !== m && f.componentWillReceiveProps != null && f.componentWillReceiveProps(y, S), t.__v == n.__v || !f.__e && f.shouldComponentUpdate != null && !1 === f.shouldComponentUpdate(y, f.__s, S)) {
+ t.__v != n.__v && (f.props = y, f.state = f.__s, f.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(e) {
e && (e.__ = t);
- }), N.push.apply(f.__h, f._sb), f._sb = [], f.__h.length && o.push(f), s = R(n);
+ }), A.push.apply(f.__h, f._sb), f._sb = [], f.__h.length && o.push(f), s = z(n);
break n;
}
- f.componentWillUpdate != null && f.componentWillUpdate(v, f.__s, S), b && f.componentDidUpdate != null && f.__h.push(function() {
- f.componentDidUpdate(m, h, g);
+ f.componentWillUpdate != null && f.componentWillUpdate(y, f.__s, S), b && f.componentDidUpdate != null && f.__h.push(function() {
+ f.componentDidUpdate(m, h, _);
});
}
- if (f.context = S, f.props = v, f.__P = e, f.__e = !1, C = y.__r, w = 0, b) f.state = f.__s, f.__d = !1, C && C(t), u = f.render(f.props, f.state, f.context), N.push.apply(f.__h, f._sb), f._sb = [];
+ if (f.context = S, f.props = y, f.__P = e, f.__e = !1, C = g.__r, w = 0, b) f.state = f.__s, f.__d = !1, C && C(t), u = f.render(f.props, f.state, f.context), A.push.apply(f.__h, f._sb), f._sb = [];
else do
f.__d = !1, C && C(t), u = f.render(f.props, f.state, f.context), f.state = f.__s;
while (f.__d && ++w < 25);
- f.state = f.__s, f.getChildContext != null && (r = F(F({}, r), f.getChildContext())), b && !p && f.getSnapshotBeforeUpdate != null && (g = f.getSnapshotBeforeUpdate(m, h)), T = u != null && u.type === ne && u.key == null ? ve(u.props.children) : u, s = ce(e, P(T) ? T : [T], t, n, r, i, a, o, s, c, l), f.base = t.__e, t.__u &= -161, f.__h.length && o.push(f), _ && (f.__E = f.__ = null);
+ f.state = f.__s, f.getChildContext != null && (r = N(N({}, r), f.getChildContext())), b && !p && f.getSnapshotBeforeUpdate != null && (_ = f.getSnapshotBeforeUpdate(m, h)), T = u != null && u.type === L && u.key == null ? me(u.props.children) : u, s = ie(e, M(T) ? T : [T], t, n, r, i, a, o, s, c, l), f.base = t.__e, t.__u &= -161, f.__h.length && o.push(f), v && (f.__E = f.__ = null);
} catch (e) {
if (o.length = d, t.__v = null, c || a != null) {
if (e.then) {
for (t.__u |= c ? 160 : 128; s && s.nodeType == 8 && s.nextSibling;) s = s.nextSibling;
a != null && (a[a.indexOf(s)] = null), t.__e = s;
- } else if (a != null) for (E = a.length; E--;) I(a[E]);
+ } else if (a != null) for (E = a.length; E--;) P(a[E]);
} else t.__e = n.__e;
- t.__k ??= n.__k || [], e.then || ge(t), y.__e(e, t, n);
+ t.__k ??= n.__k || [], e.then || fe(t), g.__e(e, t, n);
}
- } else a == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = ye(n.__e, t, n, r, i, a, o, c, l);
- return (u = y.diffed) && u(t), 128 & t.__u ? void 0 : s;
+ } else a == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = he(n.__e, t, n, r, i, a, o, c, l);
+ return (u = g.diffed) && u(t), 128 & t.__u ? void 0 : s;
}
-function ge(e) {
- e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(ge));
+function fe(e) {
+ e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(fe));
}
-function _e(e, t, n) {
- for (var r = 0; r < n.length; r++) be(n[r], n[++r], n[++r]);
- y.__c && y.__c(t, e), e.some(function(t) {
+function pe(e, t, n) {
+ for (var r = 0; r < n.length; r++) ge(n[r], n[++r], n[++r]);
+ g.__c && g.__c(t, e), e.some(function(t) {
try {
e = t.__h, t.__h = [], e.some(function(e) {
e.call(t);
});
} catch (e) {
- y.__e(e, t.__v);
+ g.__e(e, t.__v);
}
});
}
-function ve(e) {
- return typeof e != "object" || !e || e.__b > 0 ? e : P(e) ? e.map(ve) : e.constructor === void 0 ? F({}, e) : null;
+function me(e) {
+ return typeof e != "object" || !e || e.__b > 0 ? e : M(e) ? e.map(me) : e.constructor === void 0 ? N({}, e) : null;
}
-function ye(e, t, n, r, i, a, o, s, c) {
- var l, u, d, f, p, m, h, g = n.props || M, _ = t.props, b = t.type;
+function he(e, t, n, r, i, a, o, s, c) {
+ var l, u, d, f, p, m, _, v = n.props || k, y = t.props, b = t.type;
if (b == "svg" ? i = "http://www.w3.org/2000/svg" : b == "math" ? i = "http://www.w3.org/1998/Math/MathML" : i ||= "http://www.w3.org/1999/xhtml", a != null) {
for (l = 0; l < a.length; l++) if ((p = a[l]) && "setAttribute" in p == !!b && (b ? p.localName == b : p.nodeType == 3)) {
e = p, a[l] = null;
@@ -190,73 +190,73 @@ function ye(e, t, n, r, i, a, o, s, c) {
}
}
if (e == null) {
- if (b == null) return document.createTextNode(_);
- e = document.createElementNS(i, b, _.is && _), s &&= (y.__m && y.__m(t, a), !1), a = null;
+ if (b == null) return document.createTextNode(y);
+ e = document.createElementNS(i, b, y.is && y), s &&= (g.__m && g.__m(t, a), !1), a = null;
}
- if (b == null) g === _ || s && e.data == _ || (e.data = _);
+ if (b == null) v === y || s && e.data == y || (e.data = y);
else {
- if (a = b == "textarea" && _.defaultValue != null ? null : a && v.call(e.childNodes), !s && a != null) for (g = {}, l = 0; l < e.attributes.length; l++) g[(p = e.attributes[l]).name] = p.value;
- for (l in g) p = g[l], l == "dangerouslySetInnerHTML" ? d = p : l == "children" || l in _ || l == "value" && "defaultValue" in _ || l == "checked" && "defaultChecked" in _ || pe(e, l, null, p, i);
- for (l in _) p = _[l], l == "children" ? f = p : l == "dangerouslySetInnerHTML" ? u = p : l == "value" ? m = p : l == "checked" ? h = p : s && typeof p != "function" || g[l] === p || pe(e, l, p, g[l], i);
+ if (a = b == "textarea" && y.defaultValue != null ? null : a && h.call(e.childNodes), !s && a != null) for (v = {}, l = 0; l < e.attributes.length; l++) v[(p = e.attributes[l]).name] = p.value;
+ for (l in v) p = v[l], l == "dangerouslySetInnerHTML" ? d = p : l == "children" || l in y || l == "value" && "defaultValue" in y || l == "checked" && "defaultChecked" in y || le(e, l, null, p, i);
+ for (l in y) p = y[l], l == "children" ? f = p : l == "dangerouslySetInnerHTML" ? u = p : l == "value" ? m = p : l == "checked" ? _ = p : s && typeof p != "function" || v[l] === p || le(e, l, p, v[l], i);
if (u) s || d && (u.__html == d.__html || u.__html == e.innerHTML) || (e.innerHTML = u.__html), t.__k = [];
- else if (d && (e.innerHTML = ""), ce(t.type == "template" ? e.content : e, P(f) ? f : [f], t, n, r, b == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, a, o, a ? a[0] : n.__k && R(n, 0), s, c), a != null) for (l = a.length; l--;) I(a[l]);
- s && b != "textarea" || (l = "value", b == "progress" && m == null ? e.removeAttribute("value") : m != null && (m !== e[l] || b == "progress" && !m || b == "option" && m != g[l]) && pe(e, l, m, g[l], i), l = "checked", h != null && h != e[l] && pe(e, l, h, g[l], i));
+ else if (d && (e.innerHTML = ""), ie(t.type == "template" ? e.content : e, M(f) ? f : [f], t, n, r, b == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, a, o, a ? a[0] : n.__k && z(n, 0), s, c), a != null) for (l = a.length; l--;) P(a[l]);
+ s && b != "textarea" || (l = "value", b == "progress" && m == null ? e.removeAttribute("value") : m != null && (m !== e[l] || b == "progress" && !m || b == "option" && m != v[l]) && le(e, l, m, v[l], i), l = "checked", _ != null && _ != e[l] && le(e, l, _, v[l], i));
}
return e;
}
-function be(e, t, n) {
+function ge(e, t, n) {
try {
if (typeof e == "function") {
var r = typeof e.__u == "function";
r && e.__u(), r && t == null || (e.__u = e(t));
} else e.current = t;
} catch (e) {
- y.__e(e, n);
+ g.__e(e, n);
}
}
-function xe(e, t, n) {
+function _e(e, t, n) {
var r, i;
- if (y.unmount && y.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || be(r, null, t)), (r = e.__c) != null) {
+ if (g.unmount && g.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || ge(r, null, t)), (r = e.__c) != null) {
if (r.componentWillUnmount) try {
r.componentWillUnmount();
} catch (e) {
- y.__e(e, t);
+ g.__e(e, t);
}
r.base = r.__P = r.__n = null;
}
- if (r = e.__k) for (i = 0; i < r.length; i++) r[i] && xe(r[i], t, n || typeof e.type != "function");
- n || I(e.__e), e.__c = e.__ = e.__e = void 0;
+ if (r = e.__k) for (i = 0; i < r.length; i++) r[i] && _e(r[i], t, n || typeof e.type != "function");
+ n || P(e.__e), e.__c = e.__ = e.__e = void 0;
}
-function Se(e, t, n) {
+function ve(e, t, n) {
return this.constructor(e, n);
}
-function Ce(e, t, n) {
+function ye(e, t, n) {
var r, i, a, o;
- t == document && (t = document.documentElement), y.__ && y.__(e, t), i = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], o = [], he(t, e = (!r && n || t).__k = L(ne, null, [e]), i || M, M, t.namespaceURI, !r && n ? [n] : i ? null : t.firstChild ? v.call(t.childNodes) : null, a, !r && n ? n : i ? i.__e : t.firstChild, r, o), _e(a, e, o), e.props.children = null;
+ t == document && (t = document.documentElement), g.__ && g.__(e, t), i = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], o = [], de(t, e = (!r && n || t).__k = F(L, null, [e]), i || k, k, t.namespaceURI, !r && n ? [n] : i ? null : t.firstChild ? h.call(t.childNodes) : null, a, !r && n ? n : i ? i.__e : t.firstChild, r, o), pe(a, e, o), e.props.children = null;
}
-v = N.slice, y = { __e: function(e, t, n, r) {
+h = A.slice, g = { __e: function(e, t, n, r) {
for (var i, a, o; t = t.__;) if ((i = t.__c) && !i.__) try {
if ((a = i.constructor) && a.getDerivedStateFromError != null && (i.setState(a.getDerivedStateFromError(e)), o = i.__d), i.componentDidCatch != null && (i.componentDidCatch(e, r || {}), o = i.__d), o) return i.__E = i;
} catch (t) {
e = t;
}
throw e;
-} }, b = 0, re.prototype.setState = function(e, t) {
- var n = this.__s != null && this.__s != this.state ? this.__s : this.__s = F({}, this.state);
- typeof e == "function" && (e = e(F({}, n), this.props)), e && F(n, e), e != null && this.__v && (t && this._sb.push(t), oe(this));
-}, re.prototype.forceUpdate = function(e) {
- this.__v && (this.__e = !0, e && this.__h.push(e), oe(this));
-}, re.prototype.render = ne, x = [], C = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, w = function(e, t) {
+} }, _ = 0, R.prototype.setState = function(e, t) {
+ var n = this.__s != null && this.__s != this.state ? this.__s : this.__s = N({}, this.state);
+ typeof e == "function" && (e = e(N({}, n), this.props)), e && N(n, e), e != null && this.__v && (t && this._sb.push(t), ne(this));
+}, R.prototype.forceUpdate = function(e) {
+ this.__v && (this.__e = !0, e && this.__h.push(e), ne(this));
+}, R.prototype.render = L, v = [], b = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, x = function(e, t) {
return e.__v.__b - t.__v.__b;
-}, se.__r = 0, T = Math.random().toString(8), E = "__d" + T, D = "__a" + T, O = /(PointerCapture)$|Capture$/i, k = 0, A = me(!1), j = me(!0);
+}, re.__r = 0, S = Math.random().toString(8), C = "__d" + S, w = "__a" + S, T = /(PointerCapture)$|Capture$/i, E = 0, D = ue(!1), O = ue(!0);
//#endregion
//#region src/sort-preferences.ts
-function we(e, t, n) {
+function be(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
//#endregion
//#region src/number-setting.ts
-var Te = {
+var xe = {
loginDaysSetting: {
min: 1,
max: 365,
@@ -304,17 +304,17 @@ var Te = {
fallback: 60
}
};
-function Ee(e, t, n, r) {
+function Se(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
-function De(e, t, n) {
+function Ce(e, t, n) {
let r = e.querySelector("input[type=number]"), i = e.querySelector("[role=switch]"), a = e.querySelector(".board-number-fields");
r && (r.disabled = n, t !== null && t > 0 && (r.value = String(t))), i && (i.disabled = n, t !== null && (i.checked = t > 0)), a && t !== null && (a.hidden = t === 0);
}
-function Oe(e, t, n, r, i) {
- let a = Te[t];
+function we(e, t, n, r, i) {
+ let a = xe[t];
if (!a) return !1;
- let { min: o, max: s, unit: c, optional: l, fallback: u } = a, d = `peach.number.${t}`, f = Ee(Number(localStorage.getItem(d)), o, s, r > 0 ? r : u), p = document.createElement("div");
+ let { min: o, max: s, unit: c, optional: l, fallback: u } = a, d = `peach.number.${t}`, f = Se(Number(localStorage.getItem(d)), o, s, r > 0 ? r : u), p = document.createElement("div");
p.className = "board-optional-number";
let m = document.createElement("div");
m.className = "board-number-fields", m.hidden = !!l && r === 0;
@@ -349,37 +349,37 @@ function Oe(e, t, n, r, i) {
}
//#endregion
//#region src/board-metrics.ts
-var z = (e) => String(e ?? "").replace(/[&<>"']/g, (e) => ({
+var B = (e) => String(e ?? "").replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function ke(e, t, n, r = "chart-no-axes-combined") {
- return `<span class="board-stat-label"><span class="board-stat-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><use href="#i-${/^[a-z0-9-]+$/.test(r) ? r : "database"}"/></svg></span>${z(e)}</span><b class="board-stat-value">${z(t)}</b><small class="board-stat-footer">${z(n || "当前记录")}</small>`;
+function Te(e, t, n, r = "chart-no-axes-combined") {
+ return `<span class="board-stat-label"><span class="board-stat-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><use href="#i-${/^[a-z0-9-]+$/.test(r) ? r : "database"}"/></svg></span>${B(e)}</span><b class="board-stat-value">${B(t)}</b><small class="board-stat-footer">${B(n || "当前记录")}</small>`;
}
-function Ae(e, t, n) {
+function Ee(e, t, n) {
if (!Number.isFinite(n) || n <= 0) return "";
let r = Math.max(0, Math.min(n, Number.isFinite(t) ? t : 0)), i = r / n * 100;
- return `<div class="board-job-progress" role="progressbar" aria-label="${z(e)}" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="board-job-track" cx="18" cy="18" r="15"/><circle class="board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${z(e)}<small>${Math.round(i)}%</small></span></div>`;
+ return `<div class="board-job-progress" role="progressbar" aria-label="${B(e)}" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="board-job-track" cx="18" cy="18" r="15"/><circle class="board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${B(e)}<small>${Math.round(i)}%</small></span></div>`;
}
-function je(e, t) {
+function De(e, t) {
let n = e.filter((e) => Number.isFinite(e.score) && e.score > 0), r = n.reduce((e, t) => e + t.score, 0);
if (!r) return "";
let i = 0, a = n.map((e, t) => {
- let n = e.score / r * 100, a = `<circle cx="100" cy="100" r="72" pathLength="100" fill="none" stroke="var(--chart-${t % 4})" stroke-width="22" stroke-dasharray="${n} ${100 - n}" stroke-dashoffset="${-i}"><title>${z(e.name)}:${e.score.toLocaleString()}</title></circle>`;
+ let n = e.score / r * 100, a = `<circle cx="100" cy="100" r="72" pathLength="100" fill="none" stroke="var(--chart-${t % 4})" stroke-width="22" stroke-dasharray="${n} ${100 - n}" stroke-dashoffset="${-i}"><title>${B(e.name)}:${e.score.toLocaleString()}</title></circle>`;
return i += n, a;
}).join("");
- return `<svg class="board-distribution" viewBox="0 0 200 200" role="img" aria-label="${z(t)}"><g transform="rotate(-90 100 100)">${a}</g><text x="100" y="100" text-anchor="middle" dominant-baseline="middle">${z(t)}</text></svg>`;
+ return `<svg class="board-distribution" viewBox="0 0 200 200" role="img" aria-label="${B(t)}"><g transform="rotate(-90 100 100)">${a}</g><text x="100" y="100" text-anchor="middle" dominant-baseline="middle">${B(t)}</text></svg>`;
}
-function Me(e, t) {
+function Oe(e, t) {
let n = e.filter((e) => Number.isFinite(e.score) && e.score > 0).slice().sort((e, t) => t.score - e.score).slice(0, 8);
if (!n.length) return "";
- let r = n[0].score, i = n.map((e) => `<li><span class="board-rank-fill" style="width:${(e.score / r * 100).toFixed(2)}%"></span><span>${z(e.name)}</span><b>${e.score.toLocaleString()}</b></li>`).join("");
- return `<ol class="board-ranked-chart" aria-label="${z(t)}">${i}</ol>`;
+ let r = n[0].score, i = n.map((e) => `<li><span class="board-rank-fill" style="width:${(e.score / r * 100).toFixed(2)}%"></span><span>${B(e.name)}</span><b>${e.score.toLocaleString()}</b></li>`).join("");
+ return `<ol class="board-ranked-chart" aria-label="${B(t)}">${i}</ol>`;
}
-function Ne(e, t) {
+function ke(e, t) {
let n = e.filter((e) => Number.isFinite(e.score) && e.score > 0).slice().sort((e, t) => t.score - e.score).slice(0, 6);
if (n.length < 3) return "";
let r = Math.max(...n.map((e) => e.score)), i = n.length, a = (e, t) => {
@@ -389,766 +389,16 @@ function Ne(e, t) {
25,
50,
75,
- 100
- ].map((e) => `<polygon points="${o(() => e)}" class="board-radar-grid"/>`).join(""), c = n.map((e, t) => {
- let [n, r] = a(t, 116);
- return `<text x="${n}" y="${r}" text-anchor="${n < 145 ? "end" : n > 175 ? "start" : "middle"}">${z(e.name)}</text>`;
- }).join("");
- return `<svg class="board-radar" viewBox="0 0 320 280" role="img" aria-label="${z(t)}"><title>${z(n.map((e) => `${e.name} ${e.score}`).join(","))}</title>${s}<polygon points="${o((e) => n[e].score / r * 100)}" class="board-radar-value"/>${c}</svg>`;
-}
-//#endregion
-//#region node_modules/preact/hooks/dist/hooks.module.js
-var B, V, Pe, Fe, Ie = 0, Le = [], H = y, Re = H.__b, ze = H.__r, Be = H.diffed, Ve = H.__c, He = H.unmount, Ue = H.__;
-function We(e, t) {
- H.__h && H.__h(V, e, Ie || t), Ie = 0;
- var n = V.__H || (V.__H = {
- __: [],
- __h: []
- });
- return e >= n.__.length && n.__.push({}), n.__[e];
-}
-function U(e) {
- return Ie = 1, Ge(et, e);
-}
-function Ge(e, t, n) {
- var r = We(B++, 2);
- if (r.t = e, !r.__c && (r.__ = [n ? n(t) : et(void 0, t), function(e) {
- var t = r.__N ? r.__N[0] : r.__[0], n = r.t(t, e);
- t !== n && (r.__N = [n, r.__[1]], r.__c.setState({}));
- }], r.__c = V, !V.__f)) {
- var i = function(e, t, n) {
- if (!r.__c.__H) return !0;
- var i = !1, o = r.__c.props !== e;
- if (r.__c.__H.__.some(function(e) {
- if (e.__N) {
- i = !0;
- var t = e.__[0];
- e.__ = e.__N, e.__N = void 0, t !== e.__[0] && (o = !0);
- }
- }), a) {
- var s = a.call(this, e, t, n);
- return i ? s || o : s;
- }
- return !i || o;
- };
- V.__f = !0;
- var a = V.shouldComponentUpdate, o = V.componentWillUpdate;
- V.componentWillUpdate = function(e, t, n) {
- if (this.__e) {
- var r = a;
- a = void 0, i(e, t, n), a = r;
- }
- o && o.call(this, e, t, n);
- }, V.shouldComponentUpdate = i;
- }
- return r.__N || r.__;
-}
-function W(e, t) {
- var n = We(B++, 3);
- !H.__s && $e(n.__H, t) && (n.__ = e, n.u = t, V.__H.__h.push(n));
-}
-function Ke(e, t) {
- var n = We(B++, 4);
- !H.__s && $e(n.__H, t) && (n.__ = e, n.u = t, V.__h.push(n));
-}
-function G(e) {
- return Ie = 5, qe(function() {
- return { current: e };
- }, []);
-}
-function qe(e, t) {
- var n = We(B++, 7);
- return $e(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
-}
-function Je() {
- for (var e; e = Le.shift();) {
- var t = e.__H;
- if (e.__P && t) try {
- t.__h.some(Ze), t.__h.some(Qe), t.__h = [];
- } catch (n) {
- t.__h = [], H.__e(n, e.__v);
- }
- }
-}
-H.__b = function(e) {
- V = null, Re && Re(e);
-}, H.__ = function(e, t) {
- e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Ue && Ue(e, t);
-}, H.__r = function(e) {
- ze && ze(e), B = 0;
- var t = (V = e.__c).__H;
- t && (Pe === V ? (t.__h = [], V.__h = [], t.__.some(function(e) {
- e.__N && (e.__ = e.__N), e.u = e.__N = void 0;
- })) : (t.__h.some(Ze), t.__h.some(Qe), t.__h = [], B = 0)), Pe = V;
-}, H.diffed = function(e) {
- Be && Be(e);
- var t = e.__c;
- t && t.__H && (t.__H.__h.length && (Le.push(t) !== 1 && Fe === H.requestAnimationFrame || ((Fe = H.requestAnimationFrame) || Xe)(Je)), t.__H.__.some(function(e) {
- e.u &&= (e.__H = e.u, void 0);
- })), Pe = V = null;
-}, H.__c = function(e, t) {
- t.some(function(e) {
- try {
- e.__h.some(Ze), e.__h = e.__h.filter(function(e) {
- return !e.__ || Qe(e);
- });
- } catch (n) {
- t.some(function(e) {
- e.__h &&= [];
- }), t = [], H.__e(n, e.__v);
- }
- }), Ve && Ve(e, t);
-}, H.unmount = function(e) {
- He && He(e);
- var t, n = e.__c;
- n && n.__H && (n.__H.__.some(function(e) {
- try {
- Ze(e);
- } catch (e) {
- t = e;
- }
- }), n.__H = void 0, t && H.__e(t, n.__v));
-};
-var Ye = typeof requestAnimationFrame == "function";
-function Xe(e) {
- var t, n = function() {
- clearTimeout(r), Ye && cancelAnimationFrame(t), setTimeout(e);
- }, r = setTimeout(n, 35);
- Ye && (t = requestAnimationFrame(n));
-}
-function Ze(e) {
- var t = V, n = e.__c;
- typeof n == "function" && (e.__c = void 0, n()), V = t;
-}
-function Qe(e) {
- var t = V;
- e.__c = e.__(), V = t;
-}
-function $e(e, t) {
- return !e || e.length !== t.length || t.some(function(t, n) {
- return t !== e[n];
- });
-}
-function et(e, t) {
- return typeof t == "function" ? t(e) : t;
-}
-//#endregion
-//#region src/api.ts
-var tt = class extends Error {
- status;
- body;
- constructor(e, t, r = null) {
- super(n(e, t)), this.name = "ApiError", this.status = t, this.body = r;
- }
-}, nt = (e) => {
- if (!e || typeof e != "object") return "";
- let t = e;
- for (let e of [
- "message",
- "detail",
- "error"
- ]) {
- let n = t[e];
- if (typeof n == "string" && n) return n;
- }
- return "";
-}, rt = (e) => n(e);
-async function it(e, t) {
- let n = await fetch(e, {
- headers: { Accept: "application/json" },
- credentials: "same-origin",
- ...t ? { signal: t } : {}
- }), r = null;
- try {
- r = await n.json();
- } catch {}
- if (!n.ok) throw new tt(nt(r) || `请求失败(${n.status})`, n.status);
- return r;
-}
-async function at(e, t, n = "POST", r) {
- let i = await fetch(e, {
- method: n,
- ...r ? { signal: r } : {},
- headers: {
- Accept: "application/json",
- "Content-Type": "application/json"
- },
- credentials: "same-origin",
- body: JSON.stringify(t)
- }), a = null;
- try {
- a = await i.json();
- } catch {}
- if (!i.ok) throw new tt(nt(a) || `请求失败(${i.status})`, i.status, a);
- return a;
-}
-//#endregion
-//#region src/jobs.ts
-function ot(e, t = 0, n = 0) {
- return n > 0 ? Ae(e, t, n) : c(e);
-}
-async function st(e) {
- let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
- for (; e.active();) {
- let r;
- try {
- r = await e.read(AbortSignal.timeout(15e3));
- } catch (r) {
- if (!e.active()) return;
- n++, e.disconnected(r), await t(Math.min(2e3 * 2 ** Math.min(n, 4), 3e4));
- continue;
- }
- if (!e.active() || (n = 0, e.render(r), e.once) || !e.keepWatching && r.status !== "running") return;
- await t(2e3);
- }
-}
-function ct(e) {
- let t = e.note || ((e) => u(e, {
- label: "任务状态",
- variant: "error"
- })), n = e.loading || c, r = e.progress || ((e, t, n) => ot(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
- e.host.hidden = !0, a.dataset.followJob = "", a.setAttribute("aria-live", "polite"), e.host.prepend(a);
- let o = e.storageKey || "peach-follow-job", s = sessionStorage.getItem(o) || void 0, l = !1;
- st({
- read: e.read,
- active: () => !l && e.active() && a.isConnected,
- keepWatching: e.watchIdle !== !1,
- render: (c) => {
- let u = c.status === "running";
- if (e.host.hidden = !u, e.busy(u), u) {
- s = c.job_id, s && sessionStorage.setItem(o, s);
- let t = c.current, l = (t?.attempt || 1) > 1 ? ` · 第 ${t?.attempt}/${t?.max_attempts} 次尝试${t?.retry_in ? `,${t.retry_in} 秒后重试` : ""}` : "", u = (c.message || (e.title ? e.title + (c.total ? `:已完成 ${c.checked || 0}/${c.total}` : "") : "") || (c.total ? `${c.older ? "抓取历史" : "检查更新"}:已完成 ${c.checked || 0}/${c.total} 个来源` : "正在准备检查任务…")) + (t ? ` · ${t.label || t.provider || ""}${l}` : ""), d = (c.total || 0) > 0 ? r(c.checked || 0, c.total, u) : n(u);
- a.innerHTML = i(d);
- } else if (s && s === c.job_id) s = void 0, l = !0, e.host.hidden = c.status !== "failed", sessionStorage.removeItem(o), a.innerHTML = c.status === "failed" ? t(c.error || "检查失败") : "", e.complete(c);
- else {
- if (s && c.status === "idle") {
- e.host.hidden = !1, a.innerHTML = t("任务状态已失效,请重新发起任务"), sessionStorage.removeItem(o), l = !0;
- return;
- }
- a.innerHTML = "";
- }
- },
- disconnected: () => {
- e.host.hidden = !1, a.innerHTML = t("暂时无法读取进度,正在重新连接…");
- }
- });
-}
-//#endregion
-//#region node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
-var lt = 0;
-Array.isArray;
-function K(e, t, n, r, i, a) {
- t ||= {};
- var o, s, c = t;
- if ("ref" in c) for (s in c = {}, t) s == "ref" ? o = t[s] : c[s] = t[s];
- var l = {
- type: e,
- props: c,
- key: n,
- ref: o,
- __k: null,
- __: null,
- __b: 0,
- __e: null,
- __c: null,
- constructor: void 0,
- __v: --lt,
- __i: -1,
- __u: 0,
- __source: i,
- __self: a
- };
- if (typeof e == "function" && (o = e.defaultProps)) for (s in o) c[s] === void 0 && (c[s] = o[s]);
- return y.vnode && y.vnode(l), l;
-}
-//#endregion
-//#region src/link-button.tsx
-function ut({ href: e, children: t }) {
- return /* @__PURE__ */ K("a", {
- class: "board-link-button",
- href: e,
- children: [/* @__PURE__ */ K("span", { children: t }), /* @__PURE__ */ K("svg", {
- viewBox: "0 0 24 24",
- "aria-hidden": "true",
- children: /* @__PURE__ */ K("use", { href: "#i-arrow-up" })
- })]
- });
-}
-//#endregion
-//#region src/split-action.tsx
-function dt({ id: e, label: t, actions: n, busy: r }) {
- let i = G(null), a = G();
- Ke(() => {
- let e = i.current;
- return a.current = h(e, e.querySelector(".splittoggle"), e.querySelector("[role=menu]")), () => a.current?.setOpen(!1);
- }, []), Ke(() => {
- i.current?.querySelectorAll("button").forEach((e) => m(e, r)), r && a.current?.setOpen(!1);
- }, [r]);
- let o = (e) => /* @__PURE__ */ K("svg", {
- viewBox: "0 0 24 24",
- "aria-hidden": "true",
- children: /* @__PURE__ */ K("use", { href: `#i-${e}` })
- }), s = (e) => {
- r || (a.current?.setOpen(!1), e.run());
- };
- return /* @__PURE__ */ K("div", {
- ref: i,
- class: "splitbutton board-button-group primary",
- onClickCapture: (e) => {
- r && (e.preventDefault(), e.stopPropagation());
- },
- onKeyDown: (e) => {
- let t = Array.from(i.current.querySelectorAll("[role=menuitem]"));
- if (e.key === "ArrowDown" || e.key === "ArrowUp") {
- if (e.preventDefault(), r) return;
- a.current?.setOpen(!0);
- let n = t.indexOf(document.activeElement);
- t[n < 0 ? e.key === "ArrowDown" ? 0 : t.length - 1 : (n + (e.key === "ArrowDown" ? 1 : t.length - 1)) % t.length]?.focus();
- }
- e.key === "Tab" && a.current?.setOpen(!1);
- },
- children: [
- /* @__PURE__ */ K("button", {
- type: "button",
- class: "splitmain geist-button primary",
- onClick: () => s(n[0]),
- children: [o(n[0].icon), n[0].label]
- }),
- /* @__PURE__ */ K("button", {
- type: "button",
- class: "splittoggle geist-button primary",
- "aria-label": t,
- "aria-haspopup": "menu",
- "aria-expanded": "false",
- "aria-controls": e,
- children: o("chevron-down")
- }),
- /* @__PURE__ */ K("div", {
- class: "popmenu cardmenupanel",
- id: e,
- role: "menu",
- hidden: !0,
- children: n.map((e) => /* @__PURE__ */ K("button", {
- type: "button",
- role: "menuitem",
- onClick: () => s(e),
- children: [o(e.icon), /* @__PURE__ */ K("span", { children: e.label })]
- }, e.label))
- })
- ]
- });
-}
-//#endregion
-//#region src/islands/library-processing.tsx
-var ft = (e, t) => it("/api/library-processing", t), pt = {
- reading_local: "读取本地资料",
- querying_metadata: "查询外部资料",
- fetching_cover: "采集缺失封面",
- writing_candidates: "保存资料候选"
-}, mt = {
- querying_metadata: "没有资料",
- fetching_cover: "没有封面"
-};
-function ht(e) {
- let t = Object.entries(e).filter(([e, t]) => mt[e] && t > 0).map(([e, t]) => `${mt[e]} ${t} 部`);
- return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
-}
-function gt(e) {
- let t = pt[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
- return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
-}
-var _t = "peach.library-processing.announced", vt = 120;
-function yt(e, t, n) {
- if (e.status !== "complete") return;
- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < vt;
- if (!(!n && !r)) {
- try {
- if (e.job_id && localStorage.getItem(_t) === e.job_id) return;
- e.job_id && localStorage.setItem(_t, e.job_id);
- } catch {}
- t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选`);
- }
-}
-function bt({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, preview: o }) {
- let [c, l] = U(e || { status: "idle" }), [f, p] = U(t), [m, h] = U(!1), [_, v] = U(!1), y = G(new AbortController()), b = G(0), x = G(c.status), S = G(null);
- W(() => {
- S.current && g(S.current, ".geist-note-details", "library-issues");
- }, [c, f]);
- let C = m || c.status === "running";
- async function w() {
- let e = ++b.current;
- await st({
- read: (e) => it("/api/library-processing", e),
- active: () => !y.current.signal.aborted && b.current === e,
- keepWatching: i === "notice" || !!a,
- render: (e) => {
- l(e), p("");
- let t = e.status === "complete" && x.current === "running";
- t && i !== "notice" && v(!0), (t || i === "notice") && yt(e, n, t), x.current === "running" && (e.status === "complete" || e.status === "failed") && r?.(), x.current = e.status;
- },
- disconnected: () => p("连接中断,正在重新读取处理进度")
- });
- }
- W(() => (!o && (c.status === "running" || i === "notice" || a) && w(), () => y.current.abort()), []);
- async function T(e) {
- if (!(C || o)) {
- h(!0), p(""), v(!1);
- try {
- let t = await at("/api/library-processing", e, "POST", y.current.signal);
- if (y.current.signal.aborted) return;
- x.current = t.status, l(t), h(!1), await w();
- } catch (e) {
- y.current.signal.aborted || (p(rt(e)), h(!1));
- }
- }
- }
- let E = () => void T({}), D = () => {
- !c.job_id || !c.retryable_asset_ids?.length || T({
- job_id: c.job_id,
- retry: c.retryable_asset_ids
- });
- };
- if (i === "notice") {
- if (!f && c.status !== "running" && c.status !== "failed") return null;
- let e = f || (c.status === "failed" ? "扫描与资料采集未完成" : gt(c) + (c.total ? ` · ${c.checked || 0} / ${c.total}` : ""));
- return /* @__PURE__ */ K("div", { dangerouslySetInnerHTML: { __html: d(e, {
- variant: c.status === "failed" ? "error" : f || c.stalled ? "warning" : "gray",
- href: "/data-cleanup#libraryProcessing",
- label: f || c.status === "failed" ? "查看并处理" : "查看进度",
- value: c.checked || 0,
- ...c.status === "running" && c.total !== void 0 ? { max: c.total } : {}
- }) } });
- }
- let O = c.issue_preview || [], k = ht(c.notes || {}), A = c.status === "failed" && !!c.retryable_asset_ids?.length, j = O.length ? {
- label: c.issues_truncated ? `问题清单:共 ${c.issue_count || 0} 项,展开查看前 ${O.length} 项` : `问题清单:共 ${c.issue_count || 0} 项`,
- items: O.map((e) => ({
- label: e.title || (e.asset_id ? `视频 ${e.asset_id}` : "媒体来源"),
- href: e.asset_id ? `/item/${e.asset_id}` : "",
- note: e.message,
- hint: e.path || ""
- })),
- footnote: c.issues_log ? `完整记录:${c.issues_log}` : ""
- } : null;
- return /* @__PURE__ */ K(ne, { children: [/* @__PURE__ */ K("section", {
- class: "cleanupfieldset",
- "data-geist-fieldset": !0,
- "aria-labelledby": "cleanupScrapingTitle",
- children: [/* @__PURE__ */ K("div", {
- class: "geist-fieldset-content library-processing",
- children: [
- /* @__PURE__ */ K("div", { dangerouslySetInnerHTML: { __html: s("cleanupScrapingTitle", "扫描与采集") } }),
- /* @__PURE__ */ K("p", { children: "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。" }),
- c.status === "running" && /* @__PURE__ */ K("div", {
- "aria-live": "polite",
- dangerouslySetInnerHTML: { __html: ot(c.total ? `${gt(c)} · ${c.checked || 0} / ${c.total} 个视频` : gt(c), c.checked, c.total) }
- })
- ]
- }), /* @__PURE__ */ K("footer", {
- class: "geist-fieldset-footer",
- "data-geist-fieldset-footer": !0,
- children: [
- /* @__PURE__ */ K(ut, {
- href: "/scraping",
- children: "来源和凭证"
- }),
- !!c.candidates && /* @__PURE__ */ K(ut, {
- href: "/review",
- children: "复核资料"
- }),
- (c.status !== "failed" || !A) && /* @__PURE__ */ K(dt, {
- id: "libraryProcessingMenu",
- label: "更多扫描与采集方式",
- busy: C,
- actions: [
- {
- label: "扫描并补全资料",
- icon: "database",
- run: E
- },
- {
- label: "只扫描",
- icon: "hard-drive",
- run: () => void T({ stage: "scan" })
- },
- {
- label: "只采集",
- icon: "globe",
- run: () => void T({ stage: "collect" })
- }
- ]
- })
- ]
- })]
- }), /* @__PURE__ */ K("div", {
- class: "library-processing-outcome",
- "aria-live": "polite",
- ref: S,
- children: [
- c.status === "running" && c.stalled && /* @__PURE__ */ K("div", {
- class: "library-processing-stalled",
- dangerouslySetInnerHTML: { __html: u("这个项目处理时间较长,暂时没有新进展。可以继续等待,或在任务结束后重试未完成项。", {
- variant: "warning",
- label: "处理较慢",
- filled: !0
- }) }
- }),
- (f || c.status === "failed") && /* @__PURE__ */ K("div", {
- role: "alert",
- onClick: (e) => {
- e.target.closest("[data-note-action]") && D();
- },
- dangerouslySetInnerHTML: { __html: u(f || c.error || "处理未完成,请重试", {
- variant: "error",
- filled: !0,
- actionLabel: A ? "重试未完成项" : "",
- details: j
- }) }
- }),
- _ && /* @__PURE__ */ K("div", {
- class: "library-processing-result",
- dangerouslySetInnerHTML: { __html: u(`已扫描 ${c.scanned || 0} 个文件,识别 ${c.identified || 0} 个番号,整理 ${c.candidates || 0} 组资料候选。`, {
- variant: "success",
- label: "处理完成"
- }) }
- }),
- c.status !== "running" && !!k && /* @__PURE__ */ K("div", { dangerouslySetInnerHTML: { __html: u(k + (c.issues_log ? ` 完整记录:${c.issues_log}` : ""), { variant: "secondary" }) } })
- ]
- })] });
-}
-//#endregion
-//#region src/management.ts
-function xt(e) {
- return e.filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location);
-}
-function St(e, t) {
- return t.filter((t) => e.some((e) => e.location === t));
-}
-function Ct() {
- let e = [
- ["人工复核", "square-check-big"],
- ["高清版", "sparkles"],
- ["重复文件", "file-stack"],
- ["垃圾文件", "file-archive"],
- ["回收站", "trash"]
- ], t = "<span class=\"skeleton cleanup-count-skeleton\" aria-hidden=\"true\"></span>";
- return `<div class="cleanuppage" data-skeleton="cleanup" aria-busy="true" aria-label="正在读取数据管理状态">
- <div class="cleanupstats">${e.map(([e, n]) => `
- <button type="button" class="board-plain-stat" disabled>
- <span class="board-plain-stat-head"><span class="board-stat-tile"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${n}"></use></svg></span>${e}</span>
- <strong>${t}</strong><span class="cleanupmeta">${t}</span></button>`).join("")}</div>
- <div class="cleanupgrid">
- <section class="cleanupfieldset board-processing-skeleton" data-geist-fieldset aria-labelledby="cleanup-loading-scan">
- <div class="geist-fieldset-content"><h3 class="geist-fieldset-title" id="cleanup-loading-scan">扫描与采集</h3>
- <p>扫描媒体文件夹,导入已有资料,采集缺失信息。</p></div>
- <footer class="geist-fieldset-footer" data-geist-fieldset-footer><a class="board-link-button" href="/scraping"><span>来源和凭证</span><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-arrow-up"></use></svg></a><div class="splitbutton board-button-group primary"><button type="button" class="splitmain geist-button primary" disabled><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-database"></use></svg>扫描并补全资料</button><button type="button" class="splittoggle geist-button primary" disabled aria-label="更多扫描与采集方式"><svg aria-hidden="true"><use href="#i-chevron-down"></use></svg></button></div></footer>
- </section>
- <section class="cleanupfieldset cleanupemptyfolders" data-geist-fieldset aria-labelledby="cleanup-loading-empty">
- <div class="geist-fieldset-content"><h3 class="geist-fieldset-title" id="cleanup-loading-empty">空文件夹</h3>
- <strong>${t}</strong><p class="cleanupmeta">${t}</p></div>
- <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button type="button" disabled><svg aria-hidden="true"><use href="#i-scan-search"></use></svg><span>扫描空文件夹</span></button></footer>
- </section></div>
- <section class="resourcesync" aria-labelledby="cleanup-loading-links">
- <h2 id="cleanup-loading-links">链接管理</h2>
- <div class="resourcesyncbox" data-geist-fieldset>
- <div class="resourcesyncbody geist-fieldset-content"><h3 class="geist-fieldset-title">站外链接</h3>
- <div class="linksummary"><div class="linkstats">${[
- "链接总数",
- "官网/事务所",
- "社交账号",
- "作品资料站",
- "资料出处"
- ].map((e) => `<div><span>${e}</span><b>${t}</b></div>`).join("")}</div></div></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" type="button" disabled>检查死链</button></div>
- </div></section>
- <section class="resourcesync" aria-labelledby="cleanup-loading-sync">
- <h2 id="cleanup-loading-sync">资源同步</h2>
- <div class="resourcesyncbox" data-geist-fieldset>
- <div class="resourcesyncbody geist-fieldset-content"><h3 class="geist-fieldset-title">文件与记录核对</h3>
- <p>${t}</p></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" type="button" disabled>检查文件</button></div>
- </div></section></div>`;
-}
-function wt(e, t = !1, n = !1) {
- if (t || n) return "";
- let r = "<svg class=\"externalmark\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-external-link\"></use></svg>";
- return `<details class="taste-history-guide"${e ? " open" : ""}>
- <summary><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-right"></use></svg>浏览器历史记录导入指南</summary>
- <div class="taste-history-guide-content">
- <p>在运行 Peach 的电脑上使用浏览器:点击上方「读取 Peach 主机」。</p>
- <p>记录在其他设备上:导出文件后,点击上方「导入历史」。多台设备的文件分别导入。</p>
- <ul><li>Chrome:在 <a class="externallink" href="https://takeout.google.com/" target="_blank" rel="noreferrer">Google Takeout${r}</a> 选择 Chrome 历史记录,下载 ZIP 后直接导入。</li>
- <li>其他浏览器:使用 <a class="externallink" href="https://github.com/purarue/browserexport" target="_blank" rel="noreferrer">browserexport${r}</a> 导出历史记录,再导入导出文件。</li></ul>
- <p>需要刷新时再次读取或导入;数据源可在页面底部移除。</p>
- <button type="button" class="geist-button taste-guide-skip">跳过</button>
- </div></details>`;
-}
-var Tt = "peach-taste-guide-dismissed";
-function Et(e, t) {
- g(e, ".taste-history-guide", "taste-guide-collapse");
- let n = e.querySelector(".taste-history-guide");
- n?.querySelector(".taste-guide-skip")?.addEventListener("click", () => {
- t.setItem(Tt, "1"), n.remove();
- });
-}
-//#endregion
-//#region src/board-state-preview.tsx
-var Dt = [
- ["idle", "待开始"],
- ["loading", "页面加载"],
- ["preparing", "准备任务"],
- ["running", "任务进行中"],
- ["retrying", "等待重试"],
- ["disconnected", "失去连接"],
- ["reconnected", "恢复连接"],
- ["failed", "任务失败"],
- ["complete", "任务完成"],
- ["expired", "状态已失效"],
- ["paused", "来源已暂停"]
-], q = ({ html: e }) => /* @__PURE__ */ K("div", { dangerouslySetInnerHTML: { __html: e } });
-function Ot() {
- let [e, t] = U("running"), [n, r] = U(0), [i, a] = U(document.documentElement.dataset.theme === "dark"), [o, s] = U(38), l = {
- status: e === "failed" ? "failed" : [
- "running",
- "preparing",
- "disconnected",
- "retrying",
- "reconnected"
- ].includes(e) ? "running" : "idle",
- stage: e === "preparing" ? "正在准备扫描" : e === "retrying" ? "等待来源响应 · 8 秒后重试" : "正在整理资料",
- checked: o,
- ...e === "preparing" ? {} : { total: 100 },
- error: e === "failed" ? "来源暂时不可用,请重试未完成项" : "",
- issue_count: +(e === "failed"),
- issue_preview: e === "failed" ? [{
- asset_id: null,
- title: "本地磁盘",
- path: "R:\\Media",
- message: "来源连接超时"
- }] : [],
- issues_log: e === "failed" ? "peach-data\\state\\library-processing-preview.issues.jsonl" : "",
- retryable_asset_ids: e === "failed" ? [7] : []
- }, f = e === "disconnected" ? "连接中断,正在重新读取处理进度" : "";
- return /* @__PURE__ */ K("main", {
- class: "board-state-preview",
- children: [
- /* @__PURE__ */ K("header", { children: [/* @__PURE__ */ K("div", { children: [/* @__PURE__ */ K("h1", { children: "运行状态预览" }), /* @__PURE__ */ K("p", { children: "演示数据 · 不连接任务接口,不执行扫描或写入。" })] }), /* @__PURE__ */ K("button", {
- class: "geist-button",
- onClick: () => {
- document.documentElement.dataset.theme = i ? "light" : "dark", a(!i);
- },
- children: i ? "浅色" : "深色"
- })] }),
- /* @__PURE__ */ K("nav", {
- "aria-label": "演示状态",
- children: Dt.map(([i, a]) => /* @__PURE__ */ K("button", {
- class: "geist-button",
- "aria-pressed": e === i,
- onClick: () => {
- t(i), r(n + 1);
- },
- children: a
- }))
- }),
- /* @__PURE__ */ K("div", {
- class: "board-preview-tools",
- children: [/* @__PURE__ */ K("label", { children: [
- "任务进度 ",
- /* @__PURE__ */ K("input", {
- type: "range",
- min: "0",
- max: "100",
- value: o,
- onInput: (e) => s(Number(e.currentTarget.value))
- }),
- /* @__PURE__ */ K("output", { children: [o, "%"] })
- ] }), /* @__PURE__ */ K("button", {
- class: "geist-button",
- onClick: () => r(n + 1),
- children: "重播状态"
- })]
- }),
- /* @__PURE__ */ K("section", {
- "aria-label": "页面横幅",
- children: [
- /* @__PURE__ */ K("h2", { children: "全局任务横幅" }),
- /* @__PURE__ */ K(bt, {
- data: l,
- error: f,
- mode: "notice",
- preview: !0,
- toast: () => {}
- }, `banner-${e}-${n}-${o}`),
- ![
- "running",
- "preparing",
- "disconnected",
- "retrying",
- "reconnected",
- "failed"
- ].includes(e) && /* @__PURE__ */ K("p", { children: "此状态不常驻全局横幅。" })
- ]
- }),
- /* @__PURE__ */ K("section", { children: [
- /* @__PURE__ */ K("h2", { children: "数据管理 · 扫描与采集" }),
- e === "loading" ? /* @__PURE__ */ K(q, { html: Ct() }) : /* @__PURE__ */ K("div", {
- class: "cleanupgrid",
- children: /* @__PURE__ */ K("div", {
- id: "libraryProcessing",
- class: "cleanupscraping",
- children: /* @__PURE__ */ K(bt, {
- data: l,
- error: f,
- preview: !0,
- toast: () => {}
- }, `${e}-${n}-${o}`)
- })
- }),
- e === "complete" && /* @__PURE__ */ K(q, { html: u("已完成扫描与资料采集", {
- variant: "success",
- label: "任务完成"
- }) }),
- e === "expired" && /* @__PURE__ */ K(q, { html: u("任务状态已失效,请重新发起任务", { variant: "warning" }) }),
- e === "paused" && /* @__PURE__ */ K("span", {
- class: "sbadge paused",
- children: "已暂停"
- })
- ] }),
- /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ K("h2", { children: "关注检查与资源同步" }), /* @__PURE__ */ K("div", {
- class: "board-preview-grid",
- children: [/* @__PURE__ */ K("article", { children: [/* @__PURE__ */ K("h3", { children: "检查更新" }), /* @__PURE__ */ K(q, { html: e === "disconnected" ? u("暂时无法读取进度,正在重新连接…", { label: "任务状态" }) : e === "failed" ? u("检查失败:来源连接超时", {
- variant: "error",
- actionLabel: "重试"
- }) : e === "running" || e === "retrying" || e === "reconnected" ? Ae(`${e === "retrying" ? "第 2/3 次尝试,8 秒后重试 · " : ""}已完成 ${o}/100 个来源`, o, 100) : e === "preparing" ? c("正在准备检查任务…") : u(e === "complete" ? "已完成检查" : e === "paused" ? "已暂停自动检查" : e === "expired" ? "任务状态已失效,请重新发起任务" : "等待开始", { variant: e === "complete" ? "success" : "secondary" }) })] }), /* @__PURE__ */ K("article", { children: [
- /* @__PURE__ */ K("h3", { children: "连接与恢复" }),
- /* @__PURE__ */ K(q, { html: d(e === "disconnected" ? "暂时无法连接服务器,正在重连" : e === "reconnected" ? "连接已恢复,继续读取任务进度" : "连接正常", {
- variant: e === "disconnected" ? "warning" : "gray",
- href: "#",
- label: "查看状态"
- }) }),
- /* @__PURE__ */ K("p", { children: "失去连接只影响进度读取;恢复连接后继续展示任务状态。" })
- ] })]
- })] }),
- /* @__PURE__ */ K("section", { children: [/* @__PURE__ */ K("h2", { children: "错误与加载状态一览" }), /* @__PURE__ */ K("div", {
- class: "board-preview-grid",
- children: [
- /* @__PURE__ */ K("article", { children: [/* @__PURE__ */ K("h3", { children: "读取失败" }), /* @__PURE__ */ K(q, { html: u("无法读取状态,请重试", {
- variant: "error",
- actionLabel: "重试"
- }) })] }),
- /* @__PURE__ */ K("article", { children: [/* @__PURE__ */ K("h3", { children: "来源离线" }), /* @__PURE__ */ K(q, { html: u("媒体来源离线,请检查挂载状态", { variant: "warning" }) })] }),
- /* @__PURE__ */ K("article", { children: [/* @__PURE__ */ K("h3", { children: "没有待处理内容" }), /* @__PURE__ */ K(q, { html: u("没有待处理内容", { variant: "secondary" }) })] }),
- /* @__PURE__ */ K("article", { children: [/* @__PURE__ */ K("h3", { children: "等待响应" }), /* @__PURE__ */ K(q, { html: c("正在读取来源状态") })] })
- ]
- })] })
- ]
- });
-}
-function kt(e) {
- Ce(L(Ot, {}), e);
+ 100
+ ].map((e) => `<polygon points="${o(() => e)}" class="board-radar-grid"/>`).join(""), c = n.map((e, t) => {
+ let [n, r] = a(t, 116);
+ return `<text x="${n}" y="${r}" text-anchor="${n < 145 ? "end" : n > 175 ? "start" : "middle"}">${B(e.name)}</text>`;
+ }).join("");
+ return `<svg class="board-radar" viewBox="0 0 320 280" role="img" aria-label="${B(t)}"><title>${B(n.map((e) => `${e.name} ${e.score}`).join(","))}</title>${s}<polygon points="${o((e) => n[e].score / r * 100)}" class="board-radar-value"/>${c}</svg>`;
}
//#endregion
//#region src/board-controls.ts
-function At(e) {
+function Ae(e) {
let t = Number(e.min) || 0, n = Number(e.max) || 100, r = Number(e.value), i = n > t ? Math.max(0, Math.min(100, (r - t) / (n - t) * 100)) : 0;
e.style.setProperty("--board-range-value", `${i}%`);
let a = e.closest(".dual-range");
@@ -1158,17 +408,17 @@ function At(e) {
let c = a.getBoundingClientRect(), l = s.getBoundingClientRect(), u = l.right > c.right ? c.right - l.right : l.left < c.left ? c.left - l.left : 0;
u && s.style.setProperty("--range-tip-shift", `${Math.round(u)}px`), a.querySelectorAll(".board-range-tip").forEach((e) => e.toggleAttribute("data-range-active", e === s));
}
-function jt() {
+function je() {
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(At), Ft(e), Nt(e), It(e);
+ e.querySelectorAll("input[type=range]").forEach(Ae), Fe(e), Ne(e), Ie(e);
};
e(document), new MutationObserver((t) => {
- for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && At(t), e(t));
+ for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && Ae(t), e(t));
}).observe(document.body, {
subtree: !0,
childList: !0
}), document.addEventListener("input", (e) => {
- e.target instanceof HTMLInputElement && e.target.type === "range" && At(e.target);
+ e.target instanceof HTMLInputElement && e.target.type === "range" && Ae(e.target);
});
let t = document.createElement("div");
t.className = "board-tooltip", t.id = "board-control-tooltip", t.role = "tooltip", t.hidden = !0, document.body.append(t);
@@ -1189,8 +439,8 @@ function jt() {
e.key === "Escape" && o();
}), document.addEventListener("scroll", o, !0), window.addEventListener("resize", o);
}
-var Mt = /* @__PURE__ */ new Map();
-function Nt(e) {
+var Me = /* @__PURE__ */ new Map();
+function Ne(e) {
let t = ".managebar-menu,.board-local-nav:not(.settingscard>.board-local-nav)", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-tabs")) return;
@@ -1204,8 +454,8 @@ function Nt(e) {
left: r.offsetLeft,
width: r.offsetWidth
};
- n(i), Mt.set(t, i);
- }, i = Mt.get(t);
+ n(i), Me.set(t, i);
+ }, i = Me.get(t);
i ? n(i) : r(), requestAnimationFrame(() => {
e.classList.add("board-tabs-ready"), requestAnimationFrame(r);
});
@@ -1225,43 +475,43 @@ function Nt(e) {
o.observe(e);
});
}
-var Pt = /* @__PURE__ */ new Map();
-function Ft(e) {
+var Pe = /* @__PURE__ */ new Map();
+function Fe(e) {
let t = ".iconswitch,.insightswitch,.insighttabs,.follow-workspace-switch", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-segments") || e.closest("[data-skeleton]")) return;
e.dataset.boardSegments = "true";
let t = document.createElement("span");
t.className = "board-segment-thumb", t.setAttribute("aria-hidden", "true"), e.prepend(t);
- let n = e.className + (e.getAttribute("aria-label") ?? ""), r = Pt.get(n) ?? null, i = () => {
+ let n = e.className + (e.getAttribute("aria-label") ?? ""), r = Pe.get(n) ?? null, i = () => {
let i = e.querySelector("label:has(input:checked),button[aria-selected=true]");
if (!i || !i.offsetWidth) return;
- let a = {
+ let o = {
x: i.offsetLeft,
y: i.offsetTop,
w: i.offsetWidth,
h: i.offsetHeight
};
- l(t, r, a, "x"), r = a, Pt.set(n, a);
+ a(t, r, o, "x"), r = o, Pe.set(n, o);
};
e.addEventListener("change", i);
- let a = new MutationObserver(i);
- a.observe(e, {
+ let o = new MutationObserver(i);
+ o.observe(e, {
subtree: !0,
attributes: !0,
attributeFilter: ["aria-selected"]
});
- let o = new ResizeObserver(() => {
+ let s = new ResizeObserver(() => {
if (!e.isConnected) {
- o.disconnect(), a.disconnect();
+ s.disconnect(), o.disconnect();
return;
}
i();
});
- o.observe(e), i(), requestAnimationFrame(() => e.classList.add("board-segments-ready"));
+ s.observe(e), i(), requestAnimationFrame(() => e.classList.add("board-segments-ready"));
});
}
-function It(e) {
+function Ie(e) {
let t = ".board-ranked-chart,.board-radar,.tasteranks,.board-heat-card,.board-sankey-card", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-chart")) return;
@@ -1279,7 +529,7 @@ function It(e) {
n.observe(e);
});
}
-function Lt(e) {
+function Le(e) {
e.querySelectorAll(".tasteranks,.insightranking").forEach((e, t) => {
if (e.children.length <= 5 || e.parentElement?.hasAttribute("data-expandable-ranks")) return;
let n = document.createElement("div");
@@ -1311,7 +561,7 @@ function Lt(e) {
}
//#endregion
//#region node_modules/d3-array/src/max.js
-function Rt(e, t) {
+function Re(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
else {
@@ -1322,7 +572,7 @@ function Rt(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/min.js
-function zt(e, t) {
+function ze(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
else {
@@ -1333,7 +583,7 @@ function zt(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/sum.js
-function Bt(e, t) {
+function Be(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -1344,66 +594,66 @@ function Bt(e, t) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function Vt(e, t) {
+function Ve(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
//#region node_modules/d3-sankey/src/constant.js
-function Ht(e) {
+function He(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-sankey/src/sankey.js
-function Ut(e, t) {
- return Gt(e.source, t.source) || e.index - t.index;
+function Ue(e, t) {
+ return Ge(e.source, t.source) || e.index - t.index;
}
-function Wt(e, t) {
- return Gt(e.target, t.target) || e.index - t.index;
+function We(e, t) {
+ return Ge(e.target, t.target) || e.index - t.index;
}
-function Gt(e, t) {
+function Ge(e, t) {
return e.y0 - t.y0;
}
-function Kt(e) {
+function Ke(e) {
return e.value;
}
-function qt(e) {
+function qe(e) {
return e.index;
}
-function Jt(e) {
+function Je(e) {
return e.nodes;
}
-function Yt(e) {
+function Ye(e) {
return e.links;
}
-function Xt(e, t) {
+function Xe(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function Zt({ nodes: e }) {
+function Ze({ 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 Qt() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = qt, c = Vt, l, u, d = Jt, f = Yt, p = 6;
+function Qe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = qe, c = Ve, l, u, d = Je, f = Ye, 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), Zt(e), e;
+ return h(e), g(e), _(e), v(e), x(e), Ze(e), e;
}
m.update = function(e) {
- return Zt(e), e;
+ return Ze(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : Ht(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : He(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : Ht(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : He(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -1411,9 +661,9 @@ function Qt() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : Ht(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : He(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : Ht(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : He(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -1429,12 +679,12 @@ function Qt() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = Xt(n, t)), typeof i != "object" && (i = r.target = Xt(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = Xe(n, t)), typeof i != "object" && (i = r.target = Xe(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(Bt(t.sourceLinks, Kt), Bt(t.targetLinks, Kt)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(Be(t.sourceLinks, Ke), Be(t.targetLinks, Ke)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -1459,7 +709,7 @@ function Qt() {
}
}
function y({ nodes: t }) {
- let r = Rt(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = Re(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
for (let n of t) {
let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));
n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];
@@ -1468,7 +718,7 @@ function Qt() {
return o;
}
function b(e) {
- let n = zt(e, (e) => (r - t - (e.length - 1) * o) / Bt(e, Kt));
+ let n = ze(e, (e) => (r - t - (e.length - 1) * o) / Be(e, Ke));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -1485,7 +735,7 @@ function Qt() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (Rt(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (Re(n, (e) => e.length) - 1)), b(n);
for (let e = 0; e < p; ++e) {
let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);
C(n, t, r), S(n, t, r);
@@ -1504,7 +754,7 @@ function Qt() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(Gt), w(i, n);
+ l === void 0 && i.sort(Ge), w(i, n);
}
}
function C(e, t, n) {
@@ -1520,7 +770,7 @@ function Qt() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(Gt), w(i, n);
+ l === void 0 && i.sort(Ge), w(i, n);
}
}
function w(e, n) {
@@ -1541,12 +791,12 @@ function Qt() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(Wt);
- for (let { target: { targetLinks: t } } of e) t.sort(Ut);
+ for (let { source: { sourceLinks: e } } of t) e.sort(We);
+ for (let { target: { targetLinks: t } } of e) t.sort(Ue);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(Wt), n.sort(Ut);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(We), n.sort(Ue);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -1576,15 +826,15 @@ function Qt() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var $t = Math.PI, en = 2 * $t, J = 1e-6, tn = en - J;
-function nn() {
+var $e = Math.PI, et = 2 * $e, V = 1e-6, tt = et - V;
+function nt() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function rn() {
- return new nn();
+function rt() {
+ return new nt();
}
-nn.prototype = rn.prototype = {
- constructor: nn,
+nt.prototype = rt.prototype = {
+ constructor: nt,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -1605,11 +855,11 @@ nn.prototype = rn.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 > J) {
- if (!(Math.abs(u * s - c * l) > J) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > V) {
+ if (!(Math.abs(u * s - c * l) > V) || !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(($t - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > J && (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(($e - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > V && (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);
}
}
},
@@ -1617,7 +867,7 @@ nn.prototype = rn.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) > J || Math.abs(this._y1 - l) > J) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % en + en), d > tn ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > J && (this._ += "A" + n + "," + n + ",0," + +(d >= $t) + "," + 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) > V || Math.abs(this._y1 - l) > V) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % et + et), d > tt ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > V && (this._ += "A" + n + "," + n + ",0," + +(d >= $e) + "," + 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";
@@ -1628,92 +878,92 @@ nn.prototype = rn.prototype = {
};
//#endregion
//#region node_modules/d3-shape/src/constant.js
-function an(e) {
+function it(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function on(e) {
+function at(e) {
return e[0];
}
-function sn(e) {
+function ot(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var cn = Array.prototype.slice;
+var st = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function ln(e) {
+function ct(e) {
return e.source;
}
-function un(e) {
+function lt(e) {
return e.target;
}
-function dn(e) {
- var t = ln, n = un, r = on, i = sn, a = null;
+function ut(e) {
+ var t = ct, n = lt, r = at, i = ot, a = null;
function o() {
- var o, s = cn.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = rn(), 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 = st.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = rt(), 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 : an(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : it(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : an(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : it(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function fn(e, t, n, r, i) {
+function dt(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function pn() {
- return dn(fn);
+function ft() {
+ return ut(dt);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function mn(e) {
+function pt(e) {
return [e.source.x1, e.y0];
}
-function hn(e) {
+function mt(e) {
return [e.target.x0, e.y1];
}
-function gn() {
- return pn().source(mn).target(hn);
+function ht() {
+ return ft().source(pt).target(mt);
}
//#endregion
//#region src/board-sankey.ts
-function _n(t = []) {
- let n = t.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
- if (!n.length) return "";
- let r = [...new Set(n.map((e) => e.source))], i = [...new Set(n.map((e) => e.target))], a = Qt().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
- nodes: [...r.map((e) => ({
+function gt(e = []) {
+ let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
+ if (!t.length) return "";
+ let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = Qe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
+ nodes: [...n.map((e) => ({
id: `source:${e}`,
name: e,
side: "source"
- })), ...i.map((e) => ({
+ })), ...r.map((e) => ({
id: `target:${e}`,
name: e,
side: "target"
}))],
- links: n.map((e) => ({
+ links: t.map((e) => ({
source: `source:${e.source}`,
target: `target:${e.target}`,
value: e.value
}))
- }), o = n.reduce((e, t) => e + t.value, 0), s = gn(), c = a.links.map((t) => {
- let n = t.source, i = t.target;
- return `<path d="${s(t)}" stroke-width="${Math.max(.5, t.width || 0)}" style="--flow-color:var(--board-chart-${r.indexOf(n.name) % 6})" data-flow-source="${n.index}" data-flow-target="${i.index}" data-flow-value="${t.value}" data-flow-label="${e(n.name)} → ${e(i.name)}" tabindex="0" role="img" aria-label="${e(n.name)} → ${e(i.name)}:${t.value} 条线索"/>`;
- }).join(""), l = a.nodes.map((t) => `<g data-flow-node="${t.index}" data-flow-value="${t.value}" data-flow-label="${e(t.name)}" tabindex="0" role="img" aria-label="${e(t.name)}:${t.value} 条线索"><rect x="${t.x0}" y="${t.y0}" width="10" height="${Math.max(1, (t.y1 || 0) - (t.y0 || 0))}" rx="5" fill="${t.side === "source" ? `var(--board-chart-${r.indexOf(t.name) % 6})` : "var(--color-text-secondary)"}"/><text x="${t.side === "source" ? 145 : 545}" y="${((t.y0 || 0) + (t.y1 || 0)) / 2}" text-anchor="${t.side === "source" ? "end" : "start"}" dominant-baseline="middle">${e(t.name.length > 18 ? t.name.slice(0, 16) + "…" : t.name)}<tspan x="${t.side === "source" ? 145 : 545}" dy="15">${t.side === "source" ? t.value?.toLocaleString() : ((t.value || 0) / o * 100).toFixed(1) + "%"}</tspan></text></g>`).join("");
- return `<section class="board-sankey-card" data-sankey-card><header><h3>创作者线索来源</h3><b data-sankey-number>${o.toLocaleString()}</b><span data-sankey-label>条线索</span></header><div class="board-sankey-scroll"><svg viewBox="0 0 720 435" aria-label="来源网站与创作者线索"><g class="board-sankey-links">${c}</g><g class="board-sankey-nodes">${l}</g></svg></div><footer><span>来源网站</span><span>创作者 · 线索占比</span></footer></section>`;
+ }), a = t.reduce((e, t) => e + t.value, 0), o = ht(), s = i.links.map((e) => {
+ let t = e.source, r = e.target;
+ return `<path d="${o(e)}" stroke-width="${Math.max(.5, e.width || 0)}" style="--flow-color:var(--board-chart-${n.indexOf(t.name) % 6})" data-flow-source="${t.index}" data-flow-target="${r.index}" data-flow-value="${e.value}" data-flow-label="${f(t.name)} → ${f(r.name)}" tabindex="0" role="img" aria-label="${f(t.name)} → ${f(r.name)}:${e.value} 条线索"/>`;
+ }).join(""), c = i.nodes.map((e) => `<g data-flow-node="${e.index}" data-flow-value="${e.value}" data-flow-label="${f(e.name)}" tabindex="0" role="img" aria-label="${f(e.name)}:${e.value} 条线索"><rect x="${e.x0}" y="${e.y0}" width="10" height="${Math.max(1, (e.y1 || 0) - (e.y0 || 0))}" rx="5" fill="${e.side === "source" ? `var(--board-chart-${n.indexOf(e.name) % 6})` : "var(--color-text-secondary)"}"/><text x="${e.side === "source" ? 145 : 545}" y="${((e.y0 || 0) + (e.y1 || 0)) / 2}" text-anchor="${e.side === "source" ? "end" : "start"}" dominant-baseline="middle">${f(e.name.length > 18 ? e.name.slice(0, 16) + "…" : e.name)}<tspan x="${e.side === "source" ? 145 : 545}" dy="15">${e.side === "source" ? e.value?.toLocaleString() : ((e.value || 0) / a * 100).toFixed(1) + "%"}</tspan></text></g>`).join("");
+ return `<section class="board-sankey-card" data-sankey-card><header><h3>创作者线索来源</h3><b data-sankey-number>${a.toLocaleString()}</b><span data-sankey-label>条线索</span></header><div class="board-sankey-scroll"><svg viewBox="0 0 720 435" aria-label="来源网站与创作者线索"><g class="board-sankey-links">${s}</g><g class="board-sankey-nodes">${c}</g></svg></div><footer><span>来源网站</span><span>创作者 · 线索占比</span></footer></section>`;
}
-function vn(e) {
+function _t(e) {
e.querySelectorAll("[data-sankey-card]").forEach((e) => {
let t = [...e.querySelectorAll("[data-flow-source]")], n = [...e.querySelectorAll("[data-flow-node]")], r = e.querySelector("[data-sankey-number]"), i = e.querySelector("[data-sankey-label]"), a = r.textContent, o = () => {
t.forEach((e) => e.style.opacity = ""), n.forEach((e) => e.style.opacity = ""), r.textContent = a, i.textContent = "条线索";
@@ -1729,17 +979,17 @@ function vn(e) {
}
//#endregion
//#region src/board-analytics.ts
-var yn = (e) => Number.isFinite(e) && e >= 0;
-function bn(t, n, r = "个视频") {
- let i = t.filter((e) => yn(e.value));
- if (!i.length) return "";
- let a = i.reduce((e, t) => e + t.value, 0), o = Math.max(1, ...i.map((e) => e.value)) * 1.1, s = Math.min(22, 110 / Math.max(1, i.length)), c = Math.min(15, s * .68), l = i.map((t, n) => {
- let i = 32 + n * s, a = t.value / o * 100;
- return `<g style="--ring-color:var(--board-chart-${n % 6});--ring-delay:${n * 60}ms"><circle class="board-ring-track" cx="160" cy="160" r="${i}" stroke-width="${c}"/><circle class="board-ring-value" data-radial-ring="${n}" tabindex="0" role="button" aria-label="${e(t.name)}:${t.value.toLocaleString()} ${e(r)}" aria-pressed="false" cx="160" cy="160" r="${i}" stroke-width="${c}" pathLength="100" stroke-dasharray="${a} ${100 - a}" style="--ring-length:${a}" transform="rotate(-90 160 160)"/></g>`;
+var vt = (e) => Number.isFinite(e) && e >= 0;
+function yt(e, t, n = "个视频") {
+ let r = e.filter((e) => vt(e.value));
+ if (!r.length) return "";
+ let i = r.reduce((e, t) => e + t.value, 0), a = Math.max(1, ...r.map((e) => e.value)) * 1.1, o = Math.min(22, 110 / Math.max(1, r.length)), s = Math.min(15, o * .68), c = r.map((e, t) => {
+ let r = 32 + t * o, i = e.value / a * 100;
+ return `<g style="--ring-color:var(--board-chart-${t % 6});--ring-delay:${t * 60}ms"><circle class="board-ring-track" cx="160" cy="160" r="${r}" stroke-width="${s}"/><circle class="board-ring-value" data-radial-ring="${t}" tabindex="0" role="button" aria-label="${f(e.name)}:${e.value.toLocaleString()} ${f(n)}" aria-pressed="false" cx="160" cy="160" r="${r}" stroke-width="${s}" pathLength="100" stroke-dasharray="${i} ${100 - i}" style="--ring-length:${i}" transform="rotate(-90 160 160)"/></g>`;
}).join("");
- return `<section class="board-radial-card" data-radial-card data-radial-total="${a}" data-radial-title="${e(n)}"><header><span data-radial-label>${e(n)}</span><b data-radial-number>${a.toLocaleString()}</b><small>${e(r)}</small></header><svg class="board-rings" viewBox="0 0 320 320" aria-label="${e(n)}">${l}</svg><div class="board-radial-tiles">${i.map((t, n) => `<button type="button" data-radial-tile="${n}" data-radial-value="${t.value}" data-radial-name="${e(t.name)}" aria-pressed="false" style="--ring-color:var(--board-chart-${n % 6})"><span><i aria-hidden="true"></i>${e(t.name)}</span><b>${t.value.toLocaleString()}</b>${t.detail ? `<small>${e(t.detail)}</small>` : ""}</button>`).join("")}</div></section>`;
+ return `<section class="board-radial-card" data-radial-card data-radial-total="${i}" data-radial-title="${f(t)}"><header><span data-radial-label>${f(t)}</span><b data-radial-number>${i.toLocaleString()}</b><small>${f(n)}</small></header><svg class="board-rings" viewBox="0 0 320 320" aria-label="${f(t)}">${c}</svg><div class="board-radial-tiles">${r.map((e, t) => `<button type="button" data-radial-tile="${t}" data-radial-value="${e.value}" data-radial-name="${f(e.name)}" aria-pressed="false" style="--ring-color:var(--board-chart-${t % 6})"><span><i aria-hidden="true"></i>${f(e.name)}</span><b>${e.value.toLocaleString()}</b>${e.detail ? `<small>${f(e.detail)}</small>` : ""}</button>`).join("")}</div></section>`;
}
-function xn(e) {
+function bt(e) {
e.querySelectorAll("[data-radial-card]").forEach((e) => {
let t = [...e.querySelectorAll("[data-radial-tile]")], n = [...e.querySelectorAll("[data-radial-ring]")], r = e.querySelector("[data-radial-number]"), i = e.querySelector("[data-radial-label]"), a = -1, o = 0, s = 0, c = (c, l = 300) => {
e.dataset.radialFocus = String(c), t.forEach((e, t) => {
@@ -1776,7 +1026,7 @@ function xn(e) {
}
});
}
-var Sn = [
+var xt = [
"周一",
"周二",
"周三",
@@ -1785,23 +1035,23 @@ var Sn = [
"周六",
"周日"
];
-function Cn(t) {
- if (!t?.days?.length) return "<section class=\"board-activity-empty\"><h3>浏览活跃时间</h3><p>还没有可用于分析的口味网站访问记录。</p></section>";
- let n = Array.from({ length: 7 }, () => Array(24).fill(0));
- for (let e of t.hours || []) Number.isInteger(e.weekday) && e.weekday >= 0 && e.weekday < 7 && Number.isInteger(e.hour) && e.hour >= 0 && e.hour < 24 && yn(e.count) && (n[e.weekday][e.hour] = (n[e.weekday][e.hour] || 0) + e.count);
- let r = Math.max(1, ...n.flat()), i = n.flat().reduce((e, t) => e + t, 0), a = n.map((e, t) => `<span class="board-heat-axis">${Sn[t]}</span>${e.map((e, n) => `<button type="button" data-heat-value="${e}" data-heat-label="${Sn[t]} ${n}:00" aria-label="${Sn[t]} ${n}:00,${e} 次访问" style="--heat:${e ? Math.max(12, e / r * 100) : 0}%"></button>`).join("")}`).join(""), o = t.days.filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && yn(e.count)).sort((e, t) => e.date.localeCompare(t.date));
- if (!o.length) return "";
- let s = /* @__PURE__ */ new Date(`${o.at(-1).date}T00:00:00Z`), c = new Date(s);
- c.setUTCDate(c.getUTCDate() - 90);
- let l = new Map(o.map((e) => [e.date, e.count])), u = Math.max(1, ...o.map((e) => e.count)), d = Array.from({ length: 91 }, (e, t) => {
- let n = new Date(c);
- n.setUTCDate(c.getUTCDate() + t);
- let r = n.toISOString().slice(0, 10), i = l.get(r) || 0;
- return `<button type="button" data-heat-value="${i}" data-heat-label="${r}" aria-label="${r},${i} 次访问" style="--heat:${i ? Math.max(12, i / u * 100) : 0}%"></button>`;
+function St(e) {
+ if (!e?.days?.length) return "<section class=\"board-activity-empty\"><h3>浏览活跃时间</h3><p>还没有可用于分析的口味网站访问记录。</p></section>";
+ let t = Array.from({ length: 7 }, () => Array(24).fill(0));
+ for (let n of e.hours || []) Number.isInteger(n.weekday) && n.weekday >= 0 && n.weekday < 7 && Number.isInteger(n.hour) && n.hour >= 0 && n.hour < 24 && vt(n.count) && (t[n.weekday][n.hour] = (t[n.weekday][n.hour] || 0) + n.count);
+ let n = Math.max(1, ...t.flat()), r = t.flat().reduce((e, t) => e + t, 0), i = t.map((e, t) => `<span class="board-heat-axis">${xt[t]}</span>${e.map((e, r) => `<button type="button" data-heat-value="${e}" data-heat-label="${xt[t]} ${r}:00" aria-label="${xt[t]} ${r}:00,${e} 次访问" style="--heat:${e ? Math.max(12, e / n * 100) : 0}%"></button>`).join("")}`).join(""), a = e.days.filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && vt(e.count)).sort((e, t) => e.date.localeCompare(t.date));
+ if (!a.length) return "";
+ let o = /* @__PURE__ */ new Date(`${a.at(-1).date}T00:00:00Z`), s = new Date(o);
+ s.setUTCDate(s.getUTCDate() - 90);
+ let c = new Map(a.map((e) => [e.date, e.count])), l = Math.max(1, ...a.map((e) => e.count)), u = Array.from({ length: 91 }, (e, t) => {
+ let n = new Date(s);
+ n.setUTCDate(s.getUTCDate() + t);
+ let r = n.toISOString().slice(0, 10), i = c.get(r) || 0;
+ return `<button type="button" data-heat-value="${i}" data-heat-label="${r}" aria-label="${r},${i} 次访问" style="--heat:${i ? Math.max(12, i / l * 100) : 0}%"></button>`;
}).join("");
- return `<div class="board-activity-charts"><section class="board-heat-card" data-heat-card><header><h3>浏览活跃时间</h3><b data-heat-number>${i.toLocaleString()}</b><span data-heat-title data-heat-default="口味网站访问">口味网站访问</span></header><div class="board-heat-scroll"><div class="board-hour-grid"><span></span>${Array.from({ length: 24 }, (e, t) => `<span class="board-heat-axis">${t % 2 ? "" : t}</span>`).join("")}${a}</div></div><footer>星期 × 小时<span>${e(t.timezone || "UTC+08:00")}</span></footer></section><section class="board-heat-card" data-heat-card><header><h3>每日活跃</h3><b data-heat-number>${o.filter((e) => e.date >= c.toISOString().slice(0, 10)).reduce((e, t) => e + t.count, 0).toLocaleString()}</b><span data-heat-title data-heat-default="口味网站访问">口味网站访问</span></header><div class="board-day-grid">${d}</div><footer>${c.toISOString().slice(0, 10)}<span>${o.at(-1).date}</span></footer></section></div>`;
+ return `<div class="board-activity-charts"><section class="board-heat-card" data-heat-card><header><h3>浏览活跃时间</h3><b data-heat-number>${r.toLocaleString()}</b><span data-heat-title data-heat-default="口味网站访问">口味网站访问</span></header><div class="board-heat-scroll"><div class="board-hour-grid"><span></span>${Array.from({ length: 24 }, (e, t) => `<span class="board-heat-axis">${t % 2 ? "" : t}</span>`).join("")}${i}</div></div><footer>星期 × 小时<span>${f(e.timezone || "UTC+08:00")}</span></footer></section><section class="board-heat-card" data-heat-card><header><h3>每日活跃</h3><b data-heat-number>${a.filter((e) => e.date >= s.toISOString().slice(0, 10)).reduce((e, t) => e + t.count, 0).toLocaleString()}</b><span data-heat-title data-heat-default="口味网站访问">口味网站访问</span></header><div class="board-day-grid">${u}</div><footer>${s.toISOString().slice(0, 10)}<span>${a.at(-1).date}</span></footer></section></div>`;
}
-function wn(e) {
+function Ct(e) {
e.querySelectorAll("[data-heat-card]").forEach((e) => {
let t = e.querySelector("[data-heat-number]"), n = e.querySelector("[data-heat-title]"), r = t.textContent;
e.querySelectorAll("[data-heat-value]").forEach((e) => {
@@ -1816,19 +1066,19 @@ function wn(e) {
}
//#endregion
//#region src/sidebar-groups.ts
-var Tn = (e) => e.replace(/[&<>"']/g, (e) => ({
+var wt = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function En(e, t, n = "", r = "") {
+function Tt(e, t, n = "", r = "") {
if (!t) return "";
let i = `sidebar-group-${encodeURIComponent(e)}`;
- return `<details class="sec${r ? " cat-" + Tn(r) : ""}" data-sidebar-group="${Tn(e)}"><summary role="button" class="board-section-toggle"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-right"/></svg><span>${Tn(e)}</span></summary><div class="board-sidebar-body" id="${i}">${t}${n}</div></details>`;
+ return `<details class="sec${r ? " cat-" + wt(r) : ""}" data-sidebar-group="${wt(e)}"><summary role="button" class="board-section-toggle"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-right"/></svg><span>${wt(e)}</span></summary><div class="board-sidebar-body" id="${i}">${t}${n}</div></details>`;
}
-function Dn(e) {
+function Et(e) {
e.querySelectorAll("[data-sidebar-group]").forEach((e) => {
if (e.dataset.sidebarWired) return;
e.dataset.sidebarWired = "true";
@@ -1838,7 +1088,7 @@ function Dn(e) {
} catch {}
let i = !!t.querySelector("[aria-pressed=true]");
e.open = r === null ? i : r === "open";
- }), g(e, "details[data-sidebar-group]", "sidebar-collapse"), e.querySelectorAll(".board-section-toggle").forEach((e) => {
+ }), u(e, "details[data-sidebar-group]", "sidebar-collapse"), e.querySelectorAll(".board-section-toggle").forEach((e) => {
e.dataset.persistWired || (e.dataset.persistWired = "true", e.addEventListener("click", () => {
let t = `peach.sidebar.group.${e.closest("[data-sidebar-group]").dataset.sidebarGroup}`;
try {
@@ -1847,15 +1097,15 @@ function Dn(e) {
}));
});
}
-var On = !1;
-async function kn(e, t) {
- if (On) return;
+var Dt = !1;
+async function Ot(e, t) {
+ if (Dt) return;
if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
return;
}
let n = e.getBoundingClientRect(), r = n.left + n.width / 2, i = n.top + n.height / 2, a = Math.hypot(Math.max(r, innerWidth - r), Math.max(i, innerHeight - i)) * 2.5, o = document.createElement("style");
- o.textContent = `::view-transition-old(root){animation:none}::view-transition-new(root){mix-blend-mode:normal;mask-image:radial-gradient(circle closest-side,#000 78%,#0006 88%,transparent);mask-repeat:no-repeat;will-change:mask-position,mask-size;animation:peach-theme-reveal 560ms cubic-bezier(.16,1,.3,1) both}@keyframes peach-theme-reveal{from{mask-position:${r}px ${i}px;mask-size:0px 0px}to{mask-position:${r - a / 2}px ${i - a / 2}px;mask-size:${a}px ${a}px}}`, On = !0, document.head.append(o);
+ o.textContent = `::view-transition-old(root){animation:none}::view-transition-new(root){mix-blend-mode:normal;mask-image:radial-gradient(circle closest-side,#000 78%,#0006 88%,transparent);mask-repeat:no-repeat;will-change:mask-position,mask-size;animation:peach-theme-reveal 560ms cubic-bezier(.16,1,.3,1) both}@keyframes peach-theme-reveal{from{mask-position:${r}px ${i}px;mask-size:0px 0px}to{mask-position:${r - a / 2}px ${i - a / 2}px;mask-size:${a}px ${a}px}}`, Dt = !0, document.head.append(o);
let s = document.documentElement;
s.dataset.themeSnapshot = "true";
let c = !1, l = () => {
@@ -1866,19 +1116,226 @@ async function kn(e, t) {
} catch {
l();
} finally {
- delete s.dataset.themeSnapshot, o.remove(), On = !1;
+ delete s.dataset.themeSnapshot, o.remove(), Dt = !1;
+ }
+}
+//#endregion
+//#region src/api.ts
+var kt = class extends Error {
+ status;
+ body;
+ constructor(e, t, n = null) {
+ super(m(e, t)), this.name = "ApiError", this.status = t, this.body = n;
+ }
+}, At = (e) => {
+ if (!e || typeof e != "object") return "";
+ let t = e;
+ for (let e of [
+ "message",
+ "detail",
+ "error"
+ ]) {
+ let n = t[e];
+ if (typeof n == "string" && n) return n;
}
+ return "";
+}, jt = (e) => m(e);
+async function Mt(e, t) {
+ let n = await fetch(e, {
+ headers: { Accept: "application/json" },
+ credentials: "same-origin",
+ ...t ? { signal: t } : {}
+ }), r = null;
+ try {
+ r = await n.json();
+ } catch {}
+ if (!n.ok) throw new kt(At(r) || `请求失败(${n.status})`, n.status);
+ return r;
+}
+async function Nt(e, t, n = "POST", r) {
+ let i = await fetch(e, {
+ method: n,
+ ...r ? { signal: r } : {},
+ headers: {
+ Accept: "application/json",
+ "Content-Type": "application/json"
+ },
+ credentials: "same-origin",
+ body: JSON.stringify(t)
+ }), a = null;
+ try {
+ a = await i.json();
+ } catch {}
+ if (!i.ok) throw new kt(At(a) || `请求失败(${i.status})`, i.status, a);
+ return a;
}
//#endregion
//#region src/configuration-endpoints.ts
-var An = "/api/configuration";
+var Pt = "/api/configuration", H, U, Ft, It, Lt = 0, Rt = [], W = g, zt = W.__b, Bt = W.__r, Vt = W.diffed, Ht = W.__c, Ut = W.unmount, Wt = W.__;
+function Gt(e, t) {
+ W.__h && W.__h(U, e, Lt || t), Lt = 0;
+ var n = U.__H || (U.__H = {
+ __: [],
+ __h: []
+ });
+ return e >= n.__.length && n.__.push({}), n.__[e];
+}
+function G(e) {
+ return Lt = 1, Kt(tn, e);
+}
+function Kt(e, t, n) {
+ var r = Gt(H++, 2);
+ if (r.t = e, !r.__c && (r.__ = [n ? n(t) : tn(void 0, t), function(e) {
+ var t = r.__N ? r.__N[0] : r.__[0], n = r.t(t, e);
+ t !== n && (r.__N = [n, r.__[1]], r.__c.setState({}));
+ }], r.__c = U, !U.__f)) {
+ var i = function(e, t, n) {
+ if (!r.__c.__H) return !0;
+ var i = !1, o = r.__c.props !== e;
+ if (r.__c.__H.__.some(function(e) {
+ if (e.__N) {
+ i = !0;
+ var t = e.__[0];
+ e.__ = e.__N, e.__N = void 0, t !== e.__[0] && (o = !0);
+ }
+ }), a) {
+ var s = a.call(this, e, t, n);
+ return i ? s || o : s;
+ }
+ return !i || o;
+ };
+ U.__f = !0;
+ var a = U.shouldComponentUpdate, o = U.componentWillUpdate;
+ U.componentWillUpdate = function(e, t, n) {
+ if (this.__e) {
+ var r = a;
+ a = void 0, i(e, t, n), a = r;
+ }
+ o && o.call(this, e, t, n);
+ }, U.shouldComponentUpdate = i;
+ }
+ return r.__N || r.__;
+}
+function qt(e, t) {
+ var n = Gt(H++, 3);
+ !W.__s && en(n.__H, t) && (n.__ = e, n.u = t, U.__H.__h.push(n));
+}
+function K(e) {
+ return Lt = 5, Jt(function() {
+ return { current: e };
+ }, []);
+}
+function Jt(e, t) {
+ var n = Gt(H++, 7);
+ return en(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
+}
+function Yt() {
+ for (var e; e = Rt.shift();) {
+ var t = e.__H;
+ if (e.__P && t) try {
+ t.__h.some(Qt), t.__h.some($t), t.__h = [];
+ } catch (n) {
+ t.__h = [], W.__e(n, e.__v);
+ }
+ }
+}
+W.__b = function(e) {
+ U = null, zt && zt(e);
+}, W.__ = function(e, t) {
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Wt && Wt(e, t);
+}, W.__r = function(e) {
+ Bt && Bt(e), H = 0;
+ var t = (U = e.__c).__H;
+ t && (Ft === U ? (t.__h = [], U.__h = [], t.__.some(function(e) {
+ e.__N && (e.__ = e.__N), e.u = e.__N = void 0;
+ })) : (t.__h.some(Qt), t.__h.some($t), t.__h = [], H = 0)), Ft = U;
+}, W.diffed = function(e) {
+ Vt && Vt(e);
+ var t = e.__c;
+ t && t.__H && (t.__H.__h.length && (Rt.push(t) !== 1 && It === W.requestAnimationFrame || ((It = W.requestAnimationFrame) || Zt)(Yt)), t.__H.__.some(function(e) {
+ e.u &&= (e.__H = e.u, void 0);
+ })), Ft = U = null;
+}, W.__c = function(e, t) {
+ t.some(function(e) {
+ try {
+ e.__h.some(Qt), e.__h = e.__h.filter(function(e) {
+ return !e.__ || $t(e);
+ });
+ } catch (n) {
+ t.some(function(e) {
+ e.__h &&= [];
+ }), t = [], W.__e(n, e.__v);
+ }
+ }), Ht && Ht(e, t);
+}, W.unmount = function(e) {
+ Ut && Ut(e);
+ var t, n = e.__c;
+ n && n.__H && (n.__H.__.some(function(e) {
+ try {
+ Qt(e);
+ } catch (e) {
+ t = e;
+ }
+ }), n.__H = void 0, t && W.__e(t, n.__v));
+};
+var Xt = typeof requestAnimationFrame == "function";
+function Zt(e) {
+ var t, n = function() {
+ clearTimeout(r), Xt && cancelAnimationFrame(t), setTimeout(e);
+ }, r = setTimeout(n, 35);
+ Xt && (t = requestAnimationFrame(n));
+}
+function Qt(e) {
+ var t = U, n = e.__c;
+ typeof n == "function" && (e.__c = void 0, n()), U = t;
+}
+function $t(e) {
+ var t = U;
+ e.__c = e.__(), U = t;
+}
+function en(e, t) {
+ return !e || e.length !== t.length || t.some(function(t, n) {
+ return t !== e[n];
+ });
+}
+function tn(e, t) {
+ return typeof t == "function" ? t(e) : t;
+}
+//#endregion
+//#region node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
+var nn = 0;
+Array.isArray;
+function q(e, t, n, r, i, a) {
+ t ||= {};
+ var o, s, c = t;
+ if ("ref" in c) for (s in c = {}, t) s == "ref" ? o = t[s] : c[s] = t[s];
+ var l = {
+ type: e,
+ props: c,
+ key: n,
+ ref: o,
+ __k: null,
+ __: null,
+ __b: 0,
+ __e: null,
+ __c: null,
+ constructor: void 0,
+ __v: --nn,
+ __i: -1,
+ __u: 0,
+ __source: i,
+ __self: a
+ };
+ if (typeof e == "function" && (o = e.defaultProps)) for (s in o) c[s] === void 0 && (c[s] = o[s]);
+ return g.vnode && g.vnode(l), l;
+}
//#endregion
//#region src/react-slot.tsx
-function jn({ mount: e, props: t }) {
- let n = G(null), r = G(null), i = G(t);
+function rn({ mount: e, props: t }) {
+ let n = K(null), r = K(null), i = K(t);
i.current = t;
- let [a, o] = U("");
- return W(() => {
+ let [a, o] = G("");
+ return qt(() => {
let t = !1;
return import("/dist/peach-react.js").then((a) => {
if (t || !n.current) return;
@@ -1889,24 +1346,24 @@ function jn({ mount: e, props: t }) {
}), () => {
t = !0, r.current?.unmount(), r.current = null;
};
- }, [e]), W(() => {
+ }, [e]), qt(() => {
r.current?.update(t);
- }), a ? /* @__PURE__ */ K("p", {
+ }), a ? /* @__PURE__ */ q("p", {
class: "configbad",
role: "alert",
children: ["界面组件没有加载:", a]
- }) : /* @__PURE__ */ K("div", {
+ }) : /* @__PURE__ */ q("div", {
ref: n,
class: "peach-react"
});
}
//#endregion
//#region src/islands/configuration.tsx
-var Mn = (e, t) => it(An, t);
-function Nn({ receipt: e, data: t, error: n }) {
- if (n || !t) return /* @__PURE__ */ K("div", {
+var an = (e, t) => Mt(Pt, t);
+function on({ receipt: e, data: t, error: n }) {
+ if (n || !t) return /* @__PURE__ */ q("div", {
class: "configpage",
- dangerouslySetInnerHTML: { __html: u(n || "没有读到配置", {
+ dangerouslySetInnerHTML: { __html: o(n || "没有读到配置", {
variant: "error",
label: "打不开配置"
}) }
@@ -1915,38 +1372,38 @@ function Nn({ receipt: e, data: t, error: n }) {
data: t,
receipt: e
};
- return /* @__PURE__ */ K("div", {
+ return /* @__PURE__ */ q("div", {
class: "configpage",
children: [
- t.startup ? /* @__PURE__ */ K("h2", {
+ t.startup ? /* @__PURE__ */ q("h2", {
class: "configgroup",
children: "通用"
}) : null,
- t.startup ? /* @__PURE__ */ K(jn, {
+ t.startup ? /* @__PURE__ */ q(rn, {
mount: "mountGeneralSettings",
props: r
}) : null,
- /* @__PURE__ */ K("h2", {
+ /* @__PURE__ */ q("h2", {
class: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ K(jn, {
+ /* @__PURE__ */ q(rn, {
mount: "mountMediaSettings",
props: r
}),
- t.peach_proxy || t.access ? /* @__PURE__ */ K("h2", {
+ t.peach_proxy || t.access ? /* @__PURE__ */ q("h2", {
class: "configgroup",
children: "网络与访问"
}) : null,
- t.peach_proxy || t.access ? /* @__PURE__ */ K(jn, {
+ t.peach_proxy || t.access ? /* @__PURE__ */ q(rn, {
mount: "mountNetworkSettings",
props: r
}) : null,
- /* @__PURE__ */ K("h2", {
+ /* @__PURE__ */ q("h2", {
class: "configgroup",
children: "更新与维护"
}),
- /* @__PURE__ */ K(jn, {
+ /* @__PURE__ */ q(rn, {
mount: "mountMaintenanceSettings",
props: r
})
@@ -1954,25 +1411,76 @@ function Nn({ receipt: e, data: t, error: n }) {
});
}
//#endregion
+//#region src/jobs.ts
+function sn(e, t = 0, n = 0) {
+ return n > 0 ? Ee(e, t, n) : i(e);
+}
+async function cn(e) {
+ let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
+ for (; e.active();) {
+ let r;
+ try {
+ r = await e.read(AbortSignal.timeout(15e3));
+ } catch (r) {
+ if (!e.active()) return;
+ n++, e.disconnected(r), await t(Math.min(2e3 * 2 ** Math.min(n, 4), 3e4));
+ continue;
+ }
+ if (!e.active() || (n = 0, e.render(r), e.once) || !e.keepWatching && r.status !== "running") return;
+ await t(2e3);
+ }
+}
+function ln(e) {
+ let t = e.note || ((e) => o(e, {
+ label: "任务状态",
+ variant: "error"
+ })), n = e.loading || i, r = e.progress || ((e, t, n) => sn(n || `已处理 ${e} / ${t}`, e, t)), a = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), s = document.createElement("div");
+ e.host.hidden = !0, s.dataset.followJob = "", s.setAttribute("aria-live", "polite"), e.host.prepend(s);
+ let c = e.storageKey || "peach-follow-job", l = sessionStorage.getItem(c) || void 0, u = !1;
+ cn({
+ read: e.read,
+ active: () => !u && e.active() && s.isConnected,
+ keepWatching: e.watchIdle !== !1,
+ render: (i) => {
+ let o = i.status === "running";
+ if (e.host.hidden = !o, e.busy(o), o) {
+ l = i.job_id, l && sessionStorage.setItem(c, l);
+ let t = i.current, o = (t?.attempt || 1) > 1 ? ` · 第 ${t?.attempt}/${t?.max_attempts} 次尝试${t?.retry_in ? `,${t.retry_in} 秒后重试` : ""}` : "", u = (i.message || (e.title ? e.title + (i.total ? `:已完成 ${i.checked || 0}/${i.total}` : "") : "") || (i.total ? `${i.older ? "抓取历史" : "检查更新"}:已完成 ${i.checked || 0}/${i.total} 个来源` : "正在准备检查任务…")) + (t ? ` · ${t.label || t.provider || ""}${o}` : ""), d = (i.total || 0) > 0 ? r(i.checked || 0, i.total, u) : n(u);
+ s.innerHTML = a(d);
+ } else if (l && l === i.job_id) l = void 0, u = !0, e.host.hidden = i.status !== "failed", sessionStorage.removeItem(c), s.innerHTML = i.status === "failed" ? t(i.error || "检查失败") : "", e.complete(i);
+ else {
+ if (l && i.status === "idle") {
+ e.host.hidden = !1, s.innerHTML = t("任务状态已失效,请重新发起任务"), sessionStorage.removeItem(c), u = !0;
+ return;
+ }
+ s.innerHTML = "";
+ }
+ },
+ disconnected: () => {
+ e.host.hidden = !1, s.innerHTML = t("暂时无法读取进度,正在重新连接…");
+ }
+ });
+}
+//#endregion
//#region src/review-evidence.ts
-var Pn = (e = "") => /^https?:\/\//i.test(e) ? e : "";
-function Fn(t = "") {
- let n = Pn(t) || (t.startsWith("/") && !t.startsWith("//") ? t : "");
- return `<div class="reviewimage" data-review-picture><span class="reviewimageempty"${n ? " hidden" : ""}>未取得来源图片</span>${n ? `<img src="${e(n)}" alt="来源候选图片" loading="lazy">` : ""}</div>`;
-}
-function In(t) {
- let n = Pn(t.profile_url), r = (t.preview_assets || []).slice(0, 6), i = Math.max(0, Number(t.video_count || t.videos || 0));
- return `<section class="reviewidentityevidence"><h5>候选身份:${e(t.babepedia_name || "未标注")}</h5>
- <div class="reviewevidenceactions">${n ? `<a class="geist-button externallink" href="${e(n)}" target="_blank" rel="noopener noreferrer">来源资料<svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link" /></svg></a>` : ""}
- <button type="button" class="geist-button" data-entity-kind="creator" data-entity-name="${e(t.creator || "")}">查看全部 ${i.toLocaleString()} 部作品</button></div>
- ${Fn(t.preview_url)}
+var un = (e = "") => /^https?:\/\//i.test(e) ? e : "";
+function dn(e = "") {
+ let t = un(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+ return `<div class="reviewimage" data-review-picture><span class="reviewimageempty"${t ? " hidden" : ""}>未取得来源图片</span>${t ? `<img src="${f(t)}" alt="来源候选图片" loading="lazy">` : ""}</div>`;
+}
+function fn(e) {
+ let t = un(e.profile_url), n = (e.preview_assets || []).slice(0, 6), r = Math.max(0, Number(e.video_count || e.videos || 0));
+ return `<section class="reviewidentityevidence"><h5>候选身份:${f(e.babepedia_name || "未标注")}</h5>
+ <div class="reviewevidenceactions">${t ? `<a class="geist-button externallink" href="${f(t)}" target="_blank" rel="noopener noreferrer">来源资料<svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link" /></svg></a>` : ""}
+ <button type="button" class="geist-button" data-entity-kind="creator" data-entity-name="${f(e.creator || "")}">查看全部 ${r.toLocaleString()} 部作品</button></div>
+ ${dn(e.preview_url)}
<p>通过后记录身份判断。</p>
- ${r.length ? `<h5>本地作品样本</h5><div class="reviewevidencesamples">${r.map((t) => `<div class="reviewevidencesample">
- <button class="geist-button" type="button" data-review-open-item="${t.id}"><span data-middle-truncate title="${e(t.name)}">${e(t.name)}</span></button>
- <button class="geist-button" type="button" data-review-reveal="${t.id}" aria-label="打开 ${e(t.name)} 的文件位置">文件位置</button>
+ ${n.length ? `<h5>本地作品样本</h5><div class="reviewevidencesamples">${n.map((e) => `<div class="reviewevidencesample">
+ <button class="geist-button" type="button" data-review-open-item="${e.id}"><span data-middle-truncate title="${f(e.name)}">${f(e.name)}</span></button>
+ <button class="geist-button" type="button" data-review-reveal="${e.id}" aria-label="打开 ${f(e.name)} 的文件位置">文件位置</button>
</div>`).join("")}</div>` : "<p>暂无本地作品样本,打开全部作品核对。</p>"}</section>`;
}
-function Ln(e) {
+function pn(e) {
for (let t of e.querySelectorAll("[data-review-picture] img")) {
let e = () => {
t.hidden = !0;
@@ -1984,11 +1492,11 @@ function Ln(e) {
}
//#endregion
//#region src/selection.ts
-function Rn(e, t, n, r, i, a = i || !e.has(r)) {
+function mn(e, t, n, r, i, a = i || !e.has(r)) {
let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);
return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;
}
-function zn(e, t) {
+function hn(e, t) {
let n = t.filter((t) => e.has(t)).length;
return {
count: n,
@@ -1996,16 +1504,16 @@ function zn(e, t) {
mixed: n > 0 && n < t.length
};
}
-function Bn(e, t, n) {
+function gn(e, t, n) {
t.forEach((t) => n ? e.add(t) : e.delete(t));
}
-function Vn({ count: e, label: t, all: n, summary: r, actions: i, locked: a = !1 }) {
+function _n({ count: e, label: t, all: n, summary: r, actions: i, locked: a = !1 }) {
e && (e.textContent = t), n && (n.checked = r.all, n.indeterminate = r.mixed);
for (let e of i) e.disabled = !r.count || a;
}
//#endregion
//#region src/review-bulk.ts
-var Hn = () => ({
+var vn = () => ({
busy: !1,
category: "",
filter: "",
@@ -2016,7 +1524,7 @@ var Hn = () => ({
assets: /* @__PURE__ */ new Map(),
errors: /* @__PURE__ */ new Map()
});
-function Un(e) {
+function yn(e) {
let t = e?.querySelector(".reviewbulktoolbar");
if (!e || e.classList.contains("review-skeleton") || !t || t.offsetParent === null) return;
e.style.setProperty("--review-controls-height", `${t.getBoundingClientRect().height}px`);
@@ -2032,7 +1540,7 @@ function Un(e) {
let o = i.getBoundingClientRect(), s = a.getBoundingClientRect();
e.style.setProperty("--review-pane-top", `${o.top}px`), e.style.setProperty("--review-pane-left", `${o.left}px`), e.style.setProperty("--review-pane-width", `${o.width}px`), e.style.setProperty("--review-pane-height", `${s.bottom - o.top}px`);
}
-function Wn(e, t) {
+function bn(e, t) {
let n = [[
"candidates",
t ? "按候选数量" : "全部待复核",
@@ -2048,7 +1556,7 @@ function Wn(e, t) {
"list-filter"
]), n;
}
-function Gn(e, t) {
+function xn(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -2065,10 +1573,10 @@ function Gn(e, t) {
}
return [...n.values()];
}
-function Kn(e, t, n, r, i) {
- e.anchor = Rn(e.selected, t, e.anchor, n, r, i);
+function Sn(e, t, n, r, i) {
+ e.anchor = mn(e.selected, t, e.anchor, n, r, i);
}
-async function qn(e, t, n, r) {
+async function Cn(e, t, n, r) {
let i = [], a = 0;
for (let o of e) {
if (!r()) break;
@@ -2079,7 +1587,7 @@ async function qn(e, t, n, r) {
} catch (e) {
i.push({
key: o.key,
- message: rt(e)
+ message: jt(e)
});
}
}
@@ -2088,38 +1596,38 @@ async function qn(e, t, n, r) {
failures: i
};
}
-function Jn(e) {
+function wn(e) {
return e.length ? [...new Set(e.flatMap((e) => e.candidates?.map((e) => e.source || "") || []))].filter((t) => t && e.every((e) => e.candidates?.filter((e) => e.source === t).length === 1)) : [];
}
-function Yn(e, n) {
+function Tn(e, t) {
let r = e.querySelector(".reviewlist");
- if (!r || !n.rows.length || n.locked) return;
- let i = n.state, o = [...r.querySelectorAll("[data-review-key]")];
- n.category !== void 0 && i.category !== n.category && (i.category = n.category, i.filter = "", i.groupBy = "candidates", i.anchor = null);
- let s = n.catalog || n.rows, c = Wn(s, n.metadata);
+ if (!r || !t.rows.length || t.locked) return;
+ let i = t.state, a = [...r.querySelectorAll("[data-review-key]")];
+ t.category !== void 0 && i.category !== t.category && (i.category = t.category, i.filter = "", i.groupBy = "candidates", i.anchor = null);
+ let o = t.catalog || t.rows, c = bn(o, t.metadata);
c.some((e) => e[0] === i.groupBy) || (i.groupBy = "candidates", i.filter = "");
- let l = Gn(s, i.groupBy);
- l.some((e) => e.key === i.filter) || (i.filter = "");
- let u = () => [...r.querySelectorAll("[data-review-key]")].filter((e) => !e.closest("[hidden]")), d = () => u().filter((e) => i.selected.has(e.dataset.reviewKey)), p = () => n.rows.filter((e) => d().some((t) => t.dataset.reviewKey === e.item_key)), h = (e) => !e.querySelector("[data-review-status=\"approved\"]")?.disabled, g = (e, t = "") => {
+ let u = xn(o, i.groupBy);
+ u.some((e) => e.key === i.filter) || (i.filter = "");
+ let f = () => [...r.querySelectorAll("[data-review-key]")].filter((e) => !e.closest("[hidden]")), m = () => f().filter((e) => i.selected.has(e.dataset.reviewKey)), h = () => t.rows.filter((e) => m().some((t) => t.dataset.reviewKey === e.item_key)), g = (e) => !e.querySelector("[data-review-status=\"approved\"]")?.disabled, _ = (e, t = "") => {
let n = document.createElement("button");
return n.type = "button", n.className = `geist-button ${t}`.trim(), n.textContent = e, n;
}, v = document.createElement("div");
v.className = "reviewbulkbar reviewbulktoolbar", v.setAttribute("role", "group"), v.setAttribute("aria-label", "复核批量操作");
let y = document.createElement("div");
- y.className = "reviewgroupby", y.innerHTML = f(c, i.groupBy, { label: "筛选分组方式" });
- let b = _(y.firstElementChild);
+ y.className = "reviewgroupby", y.innerHTML = s(c, i.groupBy, { label: "筛选分组方式" });
+ let b = d(y.firstElementChild);
y.querySelectorAll("[data-select-option] .gselectmark").forEach((e) => e.remove()), b.addEventListener("change", () => {
if (i.busy || !c.some((e) => e[0] === b.value)) return;
i.groupBy = b.value, i.filter = "", i.anchor = null;
- let t = e.parentElement;
- n.refresh(), t?.querySelector(".reviewgroupby button")?.focus({ preventScroll: !0 });
+ let n = e.parentElement;
+ t.refresh(), n?.querySelector(".reviewgroupby button")?.focus({ preventScroll: !0 });
});
let x = document.createElement("div");
- x.className = "reviewcategoryfilter", x.hidden = l.length < 2, x.innerHTML = f([[
+ x.className = "reviewcategoryfilter", x.hidden = u.length < 2, x.innerHTML = s([[
"",
"全部分类",
"list-filter"
- ], ...l.map((e) => [
+ ], ...u.map((e) => [
e.key,
`${e.title} · ${e.rows.length}`,
"list-filter"
@@ -2131,73 +1639,73 @@ function Yn(e, n) {
let t = document.createElement("div");
t.className = "reviewfilterheading", t.textContent = e.getAttribute("aria-label"), t.setAttribute("aria-hidden", "true"), e.append(t, ...Array.from(S.children).slice(1)), S.append(e);
}
- let C = _(x.firstElementChild);
+ let C = d(x.firstElementChild);
x.querySelectorAll("[data-select-option] .gselectmark").forEach((e) => e.remove()), C.addEventListener("change", () => {
- if (i.busy || C.value && !l.some((e) => e.key === C.value)) return;
+ if (i.busy || C.value && !u.some((e) => e.key === C.value)) return;
i.filter = C.value, i.anchor = null;
- let t = e.parentElement;
- n.refresh(), t?.querySelector(".reviewcategoryfilter button")?.focus({ preventScroll: !0 });
+ let n = e.parentElement;
+ t.refresh(), n?.querySelector(".reviewcategoryfilter button")?.focus({ preventScroll: !0 });
});
- let w = g("全选本页"), T = g("通过所选", "primary"), E = g("拒绝所选", "error"), D = document.createElement("span");
+ let w = _("全选本页"), T = _("通过所选", "primary"), E = _("拒绝所选", "error"), D = document.createElement("span");
D.className = "reviewselectedcount selectiondockcount", D.setAttribute("role", "status");
let O = document.createElement("div");
- O.className = "reviewbulksource", O.hidden = !n.metadata;
+ O.className = "reviewbulksource", O.hidden = !t.metadata;
let k = document.createElement("p");
k.className = "reviewstate reviewbulkfeedback", k.setAttribute("role", "status");
let A = document.createElement("div");
A.className = "reviewbulkdecisions", A.append(T, E);
let j = document.createElement("div");
j.className = "selectiondock reviewdock", j.setAttribute("role", "group"), j.setAttribute("aria-label", "复核所选项目");
- let M = g("取消选择");
+ let M = _("取消选择");
j.append(D, O, A, M, k), v.append(y, x, w);
let N = e.querySelector(".reviewcontrols");
N ? N.after(v) : r.before(v), e.append(j), r.classList.add("reviewgroups");
- let ee = () => {
- i.selected.clear(), i.anchor = null, I();
+ let P = () => {
+ i.selected.clear(), i.anchor = null, L();
};
M.onclick = () => {
- i.busy || (ee(), w.focus({ preventScroll: !0 }));
+ i.busy || (P(), w.focus({ preventScroll: !0 }));
}, w.onclick = () => {
if (i.busy) return;
- let e = u(), t = d().length === e.length;
- e.forEach((e) => t ? i.selected.delete(e.dataset.reviewKey) : i.selected.add(e.dataset.reviewKey)), I();
- }, T.onclick = () => L("approved", T), E.onclick = () => L("rejected", E);
- let P = [];
- for (let e of l) {
- let n = e.rows.map((e) => o.find((t) => t.dataset.reviewKey === e.item_key)).filter((e) => !!e);
- if (!n.length) continue;
- let s = document.createElement("section");
- s.className = "reviewgroup", s.hidden = !!i.filter && e.key !== i.filter;
- let c = document.createElement("div");
- c.className = "reviewbulkbar reviewgroupbar";
- let l = document.createElement("h3");
- l.textContent = `${e.title} · ${n.length}`;
- let d = g("全选本组"), f = document.createElement("div");
- f.className = "reviewlist", c.append(l, d), s.append(c, f), r.append(s), d.onclick = () => {
+ let e = f(), t = m().length === e.length;
+ e.forEach((e) => t ? i.selected.delete(e.dataset.reviewKey) : i.selected.add(e.dataset.reviewKey)), L();
+ }, T.onclick = () => R("approved", T), E.onclick = () => R("rejected", E);
+ let F = [];
+ for (let e of u) {
+ let t = e.rows.map((e) => a.find((t) => t.dataset.reviewKey === e.item_key)).filter((e) => !!e);
+ if (!t.length) continue;
+ let o = document.createElement("section");
+ o.className = "reviewgroup", o.hidden = !!i.filter && e.key !== i.filter;
+ let s = document.createElement("div");
+ s.className = "reviewbulkbar reviewgroupbar";
+ let c = document.createElement("h3");
+ c.textContent = `${e.title} · ${t.length}`;
+ let l = _("全选本组"), u = document.createElement("div");
+ u.className = "reviewlist", s.append(c, l), o.append(s, u), r.append(o), l.onclick = () => {
if (i.busy) return;
- let e = n.map((e) => e.dataset.reviewKey);
- Bn(i.selected, e, !e.every((e) => i.selected.has(e))), I();
- }, P.push(() => {
- let e = n.every((e) => i.selected.has(e.dataset.reviewKey));
- d.innerHTML = t(e ? "check-check-outline" : "check-check") + (e ? "清空本组" : "全选本组"), d.setAttribute("aria-pressed", String(e));
+ let e = t.map((e) => e.dataset.reviewKey);
+ gn(i.selected, e, !e.every((e) => i.selected.has(e))), L();
+ }, F.push(() => {
+ let e = t.every((e) => i.selected.has(e.dataset.reviewKey));
+ l.innerHTML = p(e ? "check-check-outline" : "check-check") + (e ? "清空本组" : "全选本组"), l.setAttribute("aria-pressed", String(e));
});
- for (let e of n) {
- f.append(e);
+ for (let e of t) {
+ u.append(e);
let t = e.dataset.reviewKey;
i.errors.has(t) && (e.querySelector(".reviewstate").textContent = i.errors.get(t));
- let n = e.querySelector("h4,.reviewentity b") || e, r = document.createElement("label");
- r.className = "reviewpickitem", r.innerHTML = a();
- let o = r.querySelector("input");
- if (o.setAttribute("aria-label", `选择 ${e.querySelector("legend")?.textContent || n.textContent || t}`), n !== e) {
+ let r = e.querySelector("h4,.reviewentity b") || e, a = document.createElement("label");
+ a.className = "reviewpickitem", a.innerHTML = n();
+ let o = a.querySelector("input");
+ if (o.setAttribute("aria-label", `选择 ${e.querySelector("legend")?.textContent || r.textContent || t}`), r !== e) {
let e = document.createElement("span");
- e.className = "reviewpickname", e.append(...n.childNodes), n.classList.add("reviewpickheading"), n.append(r, e);
- } else e.prepend(r);
+ e.className = "reviewpickname", e.append(...r.childNodes), r.classList.add("reviewpickheading"), r.append(a, e);
+ } else e.prepend(a);
let s = (e, n) => {
- Kn(i, u().map((e) => e.dataset.reviewKey), t, e, n), I();
+ Sn(i, f().map((e) => e.dataset.reviewKey), t, e, n), L();
};
- if (r.addEventListener("mousedown", (e) => {
+ if (a.addEventListener("mousedown", (e) => {
e.shiftKey && e.preventDefault();
- }), r.addEventListener("click", (e) => {
+ }), a.addEventListener("click", (e) => {
e.target !== o && (e.preventDefault(), i.busy || (o.focus(), s(e.shiftKey, !o.checked)));
}), o.addEventListener("click", (e) => {
i.busy || s(e.shiftKey, o.checked);
@@ -2206,11 +1714,11 @@ function Yn(e, n) {
if (n.key === " ") n.preventDefault(), s(!0, !0);
else if (n.key === "ArrowDown" || n.key === "ArrowUp") {
n.preventDefault();
- let r = u(), a = r[r.indexOf(e) + (n.key === "ArrowDown" ? 1 : -1)];
- a && (i.anchor === null && (i.anchor = t), Kn(i, r.map((e) => e.dataset.reviewKey), a.dataset.reviewKey, !0, !0), I(), a.querySelector(".reviewpickitem input")?.focus());
+ let r = f(), a = r[r.indexOf(e) + (n.key === "ArrowDown" ? 1 : -1)];
+ a && (i.anchor === null && (i.anchor = t), Sn(i, r.map((e) => e.dataset.reviewKey), a.dataset.reviewKey, !0, !0), L(), a.querySelector(".reviewpickitem input")?.focus());
}
}
- }), P.push(() => {
+ }), F.push(() => {
o.checked = i.selected.has(t);
}), i.assets.has(t)) {
let n = i.assets.get(t), r = [...e.querySelectorAll("[data-review-asset]")];
@@ -2225,82 +1733,82 @@ function Yn(e, n) {
n.target.closest("[data-review-asset],[data-pick-all],[data-pick-none]") && i.assets.set(t, [...e.querySelectorAll("[data-review-asset][aria-pressed=\"true\"]")].map((e) => Number(e.dataset.reviewAsset)));
});
for (let n of e.querySelectorAll("input[type=\"radio\"]")) i.choices.has(t) && (n.checked = i.choices.get(t) === n.value), n.addEventListener("change", () => {
- n.checked && i.choices.set(t, n.value), I();
+ n.checked && i.choices.set(t, n.value), L();
});
}
}
e.addEventListener("keydown", (t) => {
- i.busy || !e.contains(r) || (t.key === "Escape" && i.selected.size && (t.preventDefault(), t.stopPropagation(), ee()), (t.ctrlKey || t.metaKey) && t.key.toLowerCase() === "a" && !t.target.matches("textarea,input:not([type=\"checkbox\"]):not([type=\"radio\"])") && (t.preventDefault(), t.stopPropagation(), u().forEach((e) => i.selected.add(e.dataset.reviewKey)), I()));
+ i.busy || !e.contains(r) || (t.key === "Escape" && i.selected.size && (t.preventDefault(), t.stopPropagation(), P()), (t.ctrlKey || t.metaKey) && t.key.toLowerCase() === "a" && !t.target.matches("textarea,input:not([type=\"checkbox\"]):not([type=\"radio\"])") && (t.preventDefault(), t.stopPropagation(), f().forEach((e) => i.selected.add(e.dataset.reviewKey)), L()));
});
- let F = "";
- function I() {
- let e = d(), r = e.length > 0 && e.length === u().length;
- w.innerHTML = t(r ? "check-check-outline" : "check-check") + (r ? "清空当前选择" : i.filter ? "全选当前分类" : "全选本页"), w.setAttribute("aria-pressed", String(r)), j.hidden = !e.length, Vn({
+ let I = "";
+ function L() {
+ let e = m(), n = e.length > 0 && e.length === f().length;
+ w.innerHTML = p(n ? "check-check-outline" : "check-check") + (n ? "清空当前选择" : i.filter ? "全选当前分类" : "全选本页"), w.setAttribute("aria-pressed", String(n)), j.hidden = !e.length, _n({
count: D,
label: `已选 ${e.length} 项`,
- summary: zn(i.selected, u().map((e) => e.dataset.reviewKey)),
+ summary: hn(i.selected, f().map((e) => e.dataset.reviewKey)),
actions: [T, E]
- }), T.disabled ||= e.some((e) => !h(e));
- let a = Jn(p());
- O.hidden = !n.metadata || !p().some((e) => (e.candidates?.length || 0) > 1);
- let o = e.length && !a.length ? "所选项目无共同来源" : "统一选择来源", s = JSON.stringify([o, a]);
- if (s !== F) {
- F = s, O.innerHTML = f([["", o], ...a.map((e) => [e, e])], "", { label: "统一选择来源" });
- let e = _(O.firstElementChild);
- e.disabled = !a.length, e.addEventListener("change", () => {
- if (!(i.busy || !Jn(p()).includes(e.value))) {
- for (let t of d()) {
- let r = n.rows.find((e) => e.item_key === t.dataset.reviewKey).candidates.find((t) => t.source === e.value);
- t.querySelectorAll("input[type=\"radio\"]").forEach((e) => {
+ }), T.disabled ||= e.some((e) => !g(e));
+ let r = wn(h());
+ O.hidden = !t.metadata || !h().some((e) => (e.candidates?.length || 0) > 1);
+ let a = e.length && !r.length ? "所选项目无共同来源" : "统一选择来源", o = JSON.stringify([a, r]);
+ if (o !== I) {
+ I = o, O.innerHTML = s([["", a], ...r.map((e) => [e, e])], "", { label: "统一选择来源" });
+ let e = d(O.firstElementChild);
+ e.disabled = !r.length, e.addEventListener("change", () => {
+ if (!(i.busy || !wn(h()).includes(e.value))) {
+ for (let n of m()) {
+ let r = t.rows.find((e) => e.item_key === n.dataset.reviewKey).candidates.find((t) => t.source === e.value);
+ n.querySelectorAll("input[type=\"radio\"]").forEach((e) => {
e.checked = e.value === r.candidate_key;
- }), i.choices.set(t.dataset.reviewKey, r.candidate_key);
+ }), i.choices.set(n.dataset.reviewKey, r.candidate_key);
}
k.textContent = `已选择 ${e.value},点击通过所选采用。`;
}
});
}
- P.forEach((e) => e());
+ F.forEach((e) => e());
}
- async function L(t, r) {
- if (i.busy || !d().length) return;
- let a = d().map((e) => ({
+ async function R(n, r) {
+ if (i.busy || !m().length) return;
+ let a = m().map((e) => ({
key: e.dataset.reviewKey,
payload: {
- ...n.payload(e),
- status: t
+ ...t.payload(e),
+ status: n
}
}));
- if (t === "approved" && n.metadata && a.some((e) => !e.payload.candidate_key)) {
- k.textContent = "请先为所选的多来源候选选择来源。", d().find((e) => !e.querySelector("input[type=\"radio\"]:checked"))?.querySelector("input[type=\"radio\"]")?.focus();
+ if (n === "approved" && t.metadata && a.some((e) => !e.payload.candidate_key)) {
+ k.textContent = "请先为所选的多来源候选选择来源。", m().find((e) => !e.querySelector("input[type=\"radio\"]:checked"))?.querySelector("input[type=\"radio\"]")?.focus();
return;
}
- i.busy = !0, k.textContent = `正在处理 0 / ${a.length}`, m(r, !0);
+ i.busy = !0, k.textContent = `正在处理 0 / ${a.length}`, l(r, !0);
let o = [...e.querySelectorAll("button,input")], s = o.map((e) => e.getAttribute("aria-disabled"));
o.forEach((e) => e.setAttribute("aria-disabled", "true"));
let c = (e) => {
e instanceof KeyboardEvent && e.key === "Tab" || (e.preventDefault(), e.stopImmediatePropagation());
};
e.addEventListener("click", c, !0), e.addEventListener("keydown", c, !0);
- let l = 0, u = await qn(a, async (e) => {
+ let u = 0, d = await Cn(a, async (e) => {
try {
- return await n.submit(e);
+ return await t.submit(e);
} finally {
- l++, n.active() && (k.textContent = `正在处理 ${l} / ${a.length}`);
+ u++, t.active() && (k.textContent = `正在处理 ${u} / ${a.length}`);
}
}, (e) => {
- i.selected.delete(e), i.errors.delete(e), n.applied(e);
- }, n.active);
+ i.selected.delete(e), i.errors.delete(e), t.applied(e);
+ }, t.active);
if (i.busy = !1, e.removeEventListener("click", c, !0), e.removeEventListener("keydown", c, !0), o.forEach((e, t) => {
let n = s[t];
n === null ? e.removeAttribute("aria-disabled") : e.setAttribute("aria-disabled", n);
- }), m(r, !1), !n.active()) return;
- n.notify(`已${t === "approved" ? "通过" : "拒绝"} ${u.completed} 项${u.failures.length ? `,${u.failures.length} 项未完成` : ""}`), u.failures.forEach((e) => i.errors.set(e.key, e.message));
+ }), l(r, !1), !t.active()) return;
+ t.notify(`已${n === "approved" ? "通过" : "拒绝"} ${d.completed} 项${d.failures.length ? `,${d.failures.length} 项未完成` : ""}`), d.failures.forEach((e) => i.errors.set(e.key, e.message));
let f = e.parentElement;
- n.refresh(), f?.querySelector(".reviewbulktoolbar button")?.focus({ preventScroll: !0 });
+ t.refresh(), f?.querySelector(".reviewbulktoolbar button")?.focus({ preventScroll: !0 });
}
- I(), Un(e);
+ L(), yn(e);
}
-function Xn(e, t, n = 1) {
+function En(e, t, n = 1) {
let r = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);
if (n * 2 + 5 >= t) return r(1, t);
let i = Math.max(e - n, 1), a = Math.min(e + n, t), o = i > 2, s = a < t - 2;
@@ -2320,15 +1828,15 @@ function Xn(e, t, n = 1) {
t
];
}
-function Zn(e, t) {
+function Dn(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function Qn(e, t) {
+function On(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
-function $n(e, t, n) {
+function kn(e, t, n) {
if (t <= 1) return "";
- let r = Xn(e, t).map((t) => t === "…" ? "<li class=\"board-page-dots\" aria-hidden=\"true\">…</li>" : `<li><button type="button" class="board-page" data-page="${t}" aria-label="第 ${t} 页"${t === e ? " aria-current=\"page\"" : ""}>${t}</button></li>`).join("");
+ let r = En(e, t).map((t) => t === "…" ? "<li class=\"board-page-dots\" aria-hidden=\"true\">…</li>" : `<li><button type="button" class="board-page" data-page="${t}" aria-label="第 ${t} 页"${t === e ? " aria-current=\"page\"" : ""}>${t}</button></li>`).join("");
return `<nav class="board-pagination" aria-label="${n}">
<button type="button" class="geist-button" data-page="${e - 1}"${e <= 1 ? " disabled" : ""}><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-left"></use></svg>上一页</button>
<ul>${r}</ul>
@@ -2337,10 +1845,10 @@ function $n(e, t, n) {
}
//#endregion
//#region src/native-image.ts
-function er(e, t, n, r) {
+function An(e, t, n, r) {
return e > 0 && t > 0 && e === n && t === r;
}
-function tr(e, t, n, r, i = 1) {
+function jn(e, t, n, r, i = 1) {
let a = Number.isFinite(i) && i > 0 ? i : 1;
e /= a, t /= a;
let o = [
@@ -2357,25 +1865,25 @@ function tr(e, t, n, r, i = 1) {
}
//#endregion
//#region src/avatar-picker.tsx
-var nr = {
+var Mn = {
gfriends: "图库",
history: "用过的"
};
-function rr({ kind: e, id: t, name: n, onPicked: r }) {
- let a = G(null), o = G(null), s = G(null), [c, l] = U(null), [u, d] = U(""), [f, p] = U(""), [m, h] = U(""), [g, _] = U(!1);
- W(() => {
+function Nn({ kind: e, id: n, name: r, onPicked: i }) {
+ let a = K(null), o = K(null), s = K(null), [c, l] = G(null), [u, d] = G(""), [f, p] = G(""), [m, h] = G(""), [g, _] = G(!1);
+ qt(() => {
if (!g || c) return;
- let n = new AbortController();
- return it(`/api/avatar-choices?kind=${e}&id=${t}`, n.signal).then(l).catch((e) => {
- n.signal.aborted || d(rt(e));
- }), () => n.abort();
+ let t = new AbortController();
+ return Mt(`/api/avatar-choices?kind=${e}&id=${n}`, t.signal).then(l).catch((e) => {
+ t.signal.aborted || d(jt(e));
+ }), () => t.abort();
}, [
g,
c,
e,
- t
- ]), W(() => {
- i(o.current);
+ n
+ ]), qt(() => {
+ t(o.current);
}, [g, c]);
let v = () => {
_(!0), a.current?.showModal();
@@ -2384,46 +1892,46 @@ function rr({ kind: e, id: t, name: n, onPicked: r }) {
}, b = async (e, t) => {
p(t), d("");
try {
- await e(), y(), l(null), r();
+ await e(), y(), l(null), i();
} catch (e) {
- d(rt(e));
+ d(jt(e));
} finally {
p("");
}
- }, x = (n) => b(() => at("/api/avatar-pick", {
+ }, x = (t) => b(() => Nt("/api/avatar-pick", {
kind: e,
- id: t,
- ref: n.ref
- }), n.ref), S = () => b(() => at("/api/avatar-pick", {
+ id: n,
+ ref: t.ref
+ }), t.ref), S = () => b(() => Nt("/api/avatar-pick", {
kind: e,
- id: t,
+ id: n,
url: m.trim()
- }), "url"), C = async (n) => b(async () => {
- let r = await fetch(`/api/avatar-pick?kind=${e}&id=${t}&name=${encodeURIComponent(n.name)}`, {
+ }), "url"), C = async (t) => b(async () => {
+ let r = await fetch(`/api/avatar-pick?kind=${e}&id=${n}&name=${encodeURIComponent(t.name)}`, {
method: "POST",
credentials: "same-origin",
- body: n
+ body: t
});
if (!r.ok) {
let e = await r.json().catch(() => null);
throw Error(e?.error || `请求失败(${r.status})`);
}
- }, "file"), w = c?.choices || [], T = (c?.matched_names || []).filter((e) => e !== n), E = c ? T.length ? `${n}:图库里按「${T.join("」「")}」找到的。` : w.length ? `${n}:换上的那张留在本机,随时能换回来。` : `${n}:图库里没有这个名字,用下面两种方式换。` : "正在找可用的图…", D = !!c && c.index_stale && !w.some((e) => e.source === "gfriends");
- return /* @__PURE__ */ K("div", {
+ }, "file"), w = c?.choices || [], T = (c?.matched_names || []).filter((e) => e !== r), E = c ? T.length ? `${r}:图库里按「${T.join("」「")}」找到的。` : w.length ? `${r}:换上的那张留在本机,随时能换回来。` : `${r}:图库里没有这个名字,用下面两种方式换。` : "正在找可用的图…", D = !!c && c.index_stale && !w.some((e) => e.source === "gfriends");
+ return /* @__PURE__ */ q("div", {
class: "avatarpick",
- children: [/* @__PURE__ */ K("button", {
+ children: [/* @__PURE__ */ q("button", {
type: "button",
class: "avatarpick-open",
onClick: v,
"aria-haspopup": "dialog",
- "aria-label": `更换${n}的头像`,
+ "aria-label": `更换${r}的头像`,
title: "更换头像",
- children: /* @__PURE__ */ K("svg", {
+ children: /* @__PURE__ */ q("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ K("use", { href: "#i-plus" })
+ children: /* @__PURE__ */ q("use", { href: "#i-plus" })
})
- }), /* @__PURE__ */ K("dialog", {
+ }), /* @__PURE__ */ q("dialog", {
ref: a,
class: "geist-modal avatarpick-popover",
"aria-label": "更换头像",
@@ -2431,90 +1939,90 @@ function rr({ kind: e, id: t, name: n, onPicked: r }) {
onClick: (e) => {
e.target === a.current && y();
},
- children: [/* @__PURE__ */ K("div", {
+ children: [/* @__PURE__ */ q("div", {
class: "avatarpick-head",
children: [
- /* @__PURE__ */ K("span", {
+ /* @__PURE__ */ q("span", {
class: "avatarpick-mark",
"aria-hidden": "true",
- children: /* @__PURE__ */ K("svg", {
+ children: /* @__PURE__ */ q("svg", {
viewBox: "0 0 24 24",
- children: /* @__PURE__ */ K("use", { href: "#i-user-round" })
+ children: /* @__PURE__ */ q("use", { href: "#i-user-round" })
})
}),
- /* @__PURE__ */ K("div", {
+ /* @__PURE__ */ q("div", {
class: "avatarpick-headtext",
children: [
- /* @__PURE__ */ K("div", {
+ /* @__PURE__ */ q("div", {
class: "avatarpick-title",
- children: [/* @__PURE__ */ K("h3", { children: "更换头像" }), !!w.length && /* @__PURE__ */ K("span", {
+ children: [/* @__PURE__ */ q("h3", { children: "更换头像" }), !!w.length && /* @__PURE__ */ q("span", {
class: "geist-badge",
children: [w.length, " 张可选"]
})]
}),
- /* @__PURE__ */ K("p", { children: E }),
- D && /* @__PURE__ */ K("p", {
+ /* @__PURE__ */ q("p", { children: E }),
+ D && /* @__PURE__ */ q("p", {
class: "avatarpick-note",
children: "图库索引还没取过,只能从用过的图里选。"
}),
- u && /* @__PURE__ */ K("p", {
+ u && /* @__PURE__ */ q("p", {
class: "avatarpick-error",
role: "alert",
children: u
})
]
}),
- /* @__PURE__ */ K("button", {
+ /* @__PURE__ */ q("button", {
type: "button",
class: "avatarpick-close",
onClick: y,
"aria-label": "关闭",
- children: /* @__PURE__ */ K("svg", {
+ children: /* @__PURE__ */ q("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ K("use", { href: "#i-x" })
+ children: /* @__PURE__ */ q("use", { href: "#i-x" })
})
})
]
- }), /* @__PURE__ */ K("div", {
+ }), /* @__PURE__ */ q("div", {
class: "avatarpick-panel",
- children: [/* @__PURE__ */ K("div", {
+ children: [/* @__PURE__ */ q("div", {
class: "avatarpick-gridwrap",
- children: /* @__PURE__ */ K("div", {
+ children: /* @__PURE__ */ q("div", {
class: "avatarpick-grid",
role: "listbox",
"aria-label": "候选头像",
ref: o,
- children: w.map((n) => /* @__PURE__ */ K("button", {
+ children: w.map((t) => /* @__PURE__ */ q("button", {
type: "button",
role: "option",
- "aria-selected": n.current,
+ "aria-selected": t.current,
disabled: !!f,
- class: `avatarpick-cell${n.current ? " current" : ""}`,
- title: `${nr[n.source] || n.source} · ${n.label}` + (n.width ? ` · ${n.width}×${n.height}` : "") + (n.found_by ? ` · 按「${n.found_by}」找到` : ""),
- onClick: () => x(n),
+ class: `avatarpick-cell${t.current ? " current" : ""}`,
+ title: `${Mn[t.source] || t.source} · ${t.label}` + (t.width ? ` · ${t.width}×${t.height}` : "") + (t.found_by ? ` · 按「${t.found_by}」找到` : ""),
+ onClick: () => x(t),
children: [
- /* @__PURE__ */ K("img", {
+ /* @__PURE__ */ q("img", {
loading: "lazy",
alt: "",
- src: `/avatar-choice?kind=${e}&id=${t}&ref=${encodeURIComponent(n.ref)}`
+ src: `/avatar-choice?kind=${e}&id=${n}&ref=${encodeURIComponent(t.ref)}`
}),
- /* @__PURE__ */ K("span", { children: n.label }),
- n.current && /* @__PURE__ */ K("b", { children: "在用" })
+ /* @__PURE__ */ q("span", { children: t.label }),
+ t.current && /* @__PURE__ */ q("b", { children: "在用" })
]
- }, n.ref))
+ }, t.ref))
})
- }), /* @__PURE__ */ K("div", {
+ }), /* @__PURE__ */ q("div", {
class: "avatarpick-actions",
children: [
- /* @__PURE__ */ K("button", {
+ /* @__PURE__ */ q("button", {
type: "button",
class: "geist-button",
disabled: !!f,
onClick: () => s.current?.click(),
children: "从本机选图片"
}),
- /* @__PURE__ */ K("input", {
+ /* @__PURE__ */ q("input", {
ref: s,
type: "file",
accept: "image/png,image/jpeg",
@@ -2524,16 +2032,16 @@ function rr({ kind: e, id: t, name: n, onPicked: r }) {
e.currentTarget.value = "", t && C(t);
}
}),
- /* @__PURE__ */ K("div", {
+ /* @__PURE__ */ q("div", {
class: "avatarpick-url",
- children: [/* @__PURE__ */ K("input", {
+ children: [/* @__PURE__ */ q("input", {
type: "url",
class: "geist-input",
value: m,
placeholder: "https://…",
"aria-label": "图片地址",
onInput: (e) => h(e.currentTarget.value)
- }), /* @__PURE__ */ K("button", {
+ }), /* @__PURE__ */ q("button", {
type: "button",
class: "geist-button",
disabled: !m.trim() || !!f,
@@ -2547,15 +2055,15 @@ function rr({ kind: e, id: t, name: n, onPicked: r }) {
})]
});
}
-function ir(e, t) {
- Ce(/* @__PURE__ */ K(rr, { ...t }), e);
+function Pn(e, t) {
+ ye(/* @__PURE__ */ q(Nn, { ...t }), e);
}
-function ar(e) {
- Ce(null, e);
+function Fn(e) {
+ ye(null, e);
}
//#endregion
//#region src/entity-skeleton.ts
-function or(e, t, n) {
+function In(e, t, n) {
return `<section data-skeleton="entity/${e}" role="status" aria-label="正在读取资料">
<span class="sr-only">正在读取资料</span><div aria-hidden="true">
<section class="entityhero"><div class="entityprofile"><div class="entityportrait ${e === "studio" || e === "agency" ? "square " : ""}skeleton"></div>
@@ -2569,29 +2077,29 @@ function or(e, t, n) {
}
//#endregion
//#region src/board-skeleton.ts
-var Y = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, X = () => `${Y("80%")}${Y("48%")}`, Z = (e, t) => e.repeat(t), sr = (e, t = "metricstrip") => `<div class="${t}">${e.map((e) => `<div class="tastesummary"><span class="board-stat-label">${e}</span><b class="board-stat-value">${Y("45%")}</b><small class="board-stat-footer">${Y("60%")}</small></div>`).join("")}</div>`, cr = (e, t = "skeleton-tabs") => `<div class="${t}">${e.map((e) => `<span>${e}</span>`).join("")}</div>`, lr = (e, t) => `<div class="${t} skeleton-segments" data-board-segments="true">${e.map((e, t) => `<span${t === 0 ? " class=\"skeleton-segment-selected\"" : ""}>${e}</span>`).join("")}</div>`, ur = (e) => `<section class="board-radial-card"><header><span>${e}</span><b>${Y()}</b></header><div class="board-rings skeleton-rings"><span class="skeleton skeleton-ring"></span></div><div class="skeleton-lines">${X()}</div></section>`, dr = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${Z(X(), 3)}</div></section>`, fr = (e) => `<button class="fbtn" type="button" disabled>${e}</button>`, pr = (e) => `<div class="fsechead" data-collapse-toolbar><h3>关注列表</h3><span class="fmeta">${Y("100px")}</span><div class="followtoolbaractions"><button class="fbtn primary followcheckall" disabled>${t("refresh-cw")}<span data-collapse-label>检查全部</span></button><div class="iconswitch" data-board-segments="true"><label>${t("layout-grid")}</label><label>${t("table")}</label></div><span class="fmanagesort" data-collapse-field>${t("sort")}${f([["checked", "检查时间"]], "checked", {
+var J = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, Y = () => `${J("80%")}${J("48%")}`, X = (e, t) => e.repeat(t), Ln = (e, t = "metricstrip") => `<div class="${t}">${e.map((e) => `<div class="tastesummary"><span class="board-stat-label">${e}</span><b class="board-stat-value">${J("45%")}</b><small class="board-stat-footer">${J("60%")}</small></div>`).join("")}</div>`, Rn = (e, t = "skeleton-tabs") => `<div class="${t}">${e.map((e) => `<span>${e}</span>`).join("")}</div>`, zn = (e, t) => `<div class="${t} skeleton-segments" data-board-segments="true">${e.map((e, t) => `<span${t === 0 ? " class=\"skeleton-segment-selected\"" : ""}>${e}</span>`).join("")}</div>`, Bn = (e) => `<section class="board-radial-card"><header><span>${e}</span><b>${J()}</b></header><div class="board-rings skeleton-rings"><span class="skeleton skeleton-ring"></span></div><div class="skeleton-lines">${Y()}</div></section>`, Z = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${X(Y(), 3)}</div></section>`, Vn = (e) => `<button class="fbtn" type="button" disabled>${e}</button>`, Hn = (e) => `<div class="fsechead" data-collapse-toolbar><h3>关注列表</h3><span class="fmeta">${J("100px")}</span><div class="followtoolbaractions"><button class="fbtn primary followcheckall" disabled>${p("refresh-cw")}<span data-collapse-label>检查全部</span></button><div class="iconswitch" data-board-segments="true"><label>${p("layout-grid")}</label><label>${p("table")}</label></div><span class="fmanagesort" data-collapse-field>${p("sort")}${s([["checked", "检查时间"]], "checked", {
label: "关注列表排序",
attr: "disabled"
-})}</span><button class="fbtn fmanagedir" disabled>${t("arrow-down")}</button>${e ? "" : fr(t("chevron-up") + "<span data-collapse-label>全部收起</span>")}</div></div>`, mr = () => `<div class="fsource frow"><span class="fchannelcheck">${Y("18px")}</span><b>${Y("85%")}</b><span class="fprovider">${Y("54px")}</span><span class="fmeta fchecked">${Y("40px")}</span><span class="fsourceactions"><span class="skeleton skeleton-icon"></span><span class="skeleton skeleton-icon"></span></span></div>`, hr = () => `<details class="fauthor" open><summary class="fauthorhead"><span class="favatar skeleton"></span><b>${Y("90px")}</b><span class="skeleton skeleton-icon"></span><span class="fmeta">${Y("40px")}</span><span class="board-author-actions"><button type="button" class="fbtn small" data-follow-author-select disabled>${t("check-check")}<span data-author-select-label>全选</span></button><span class="skeleton skeleton-icon"></span></span></summary><div class="fauthorsources">${Z(mr(), 3)}</div></details>`;
-function gr() {
- return `<div data-skeleton="detail" role="status" aria-label="正在读取作品详情"><div class="sgrid" aria-hidden="true"><div class="vwrap skeleton-detail-media skeleton"></div><aside class="side"><div class="sidecontent skeleton-lines">${Y("85%")}${Y("65%")}${Z(X(), 4)}</div></aside></div></div>`;
+})}</span><button class="fbtn fmanagedir" disabled>${p("arrow-down")}</button>${e ? "" : Vn(p("chevron-up") + "<span data-collapse-label>全部收起</span>")}</div></div>`, Un = () => `<div class="fsource frow"><span class="fchannelcheck">${J("18px")}</span><b>${J("85%")}</b><span class="fprovider">${J("54px")}</span><span class="fmeta fchecked">${J("40px")}</span><span class="fsourceactions"><span class="skeleton skeleton-icon"></span><span class="skeleton skeleton-icon"></span></span></div>`, Wn = () => `<details class="fauthor" open><summary class="fauthorhead"><span class="favatar skeleton"></span><b>${J("90px")}</b><span class="skeleton skeleton-icon"></span><span class="fmeta">${J("40px")}</span><span class="board-author-actions"><button type="button" class="fbtn small" data-follow-author-select disabled>${p("check-check")}<span data-author-select-label>全选</span></button><span class="skeleton skeleton-icon"></span></span></summary><div class="fauthorsources">${X(Un(), 3)}</div></details>`;
+function Gn() {
+ return `<div data-skeleton="detail" role="status" aria-label="正在读取作品详情"><div class="sgrid" aria-hidden="true"><div class="vwrap skeleton-detail-media skeleton"></div><aside class="side"><div class="sidecontent skeleton-lines">${J("85%")}${J("65%")}${X(Y(), 4)}</div></aside></div></div>`;
}
-function _r(e, t = {}) {
- let n = "";
- if (e === "/stats") n = `<div class="insightpage statsdashboard"><header class="insighttoolbar">${Y("38%")}</header>${sr([
+function Kn(e, t = {}) {
+ let r = "";
+ if (e === "/stats") r = `<div class="insightpage statsdashboard"><header class="insighttoolbar">${J("38%")}</header>${Ln([
"馆藏视频",
"看过",
"内容标签",
"使用空间"
- ])}<section class="insightdetail"><div class="insightdetailbody"><div class="board-inventory-charts">${ur("网盘与本地")}${ur("媒体库")}</div></div></section>${dr("内容标签")}</div>`;
- else if (e === "/taste") n = `<div class="tastepage"><header class="tastehead">${lr(["浏览器记录", "Peach 内部"], "insightswitch")}${Y("24%")}</header><div class="tastestate"></div>${sr([
+ ])}<section class="insightdetail"><div class="insightdetailbody"><div class="board-inventory-charts">${Bn("网盘与本地")}${Bn("媒体库")}</div></div></section>${Z("内容标签")}</div>`;
+ else if (e === "/taste") r = `<div class="tastepage"><header class="tastehead">${zn(["浏览器记录", "Peach 内部"], "insightswitch")}${J("24%")}</header><div class="tastestate"></div>${Ln([
"浏览记录",
"口味维度",
"浏览候选",
"私有导出"
- ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${Z(X(), 4)}</div></section>${dr("口味分析")}<div class="board-activity-charts">${dr("浏览活动")}${dr("时间分布")}</div>${dr("标签")}</div>`;
+ ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${X(Y(), 4)}</div></section>${Z("口味分析")}<div class="board-activity-charts">${Z("浏览活动")}${Z("时间分布")}</div>${Z("标签")}</div>`;
else if (e === "/follow-manage") {
- let e = t.followLayout === "table", r = e ? `<div class="ftableframe"><div class="ftablewrap"><table class="ftable"><thead><tr>${[
+ let e = t.followLayout === "table", i = e ? `<div class="ftableframe"><div class="ftablewrap"><table class="ftable"><thead><tr>${[
"选择",
"创作者",
"来源",
@@ -2599,7 +2107,7 @@ function _r(e, t = {}) {
"状态",
"上次检查",
"操作"
- ].map((e) => `<th>${e === "选择" ? "<label>" + a("disabled aria-label=\"全选本页来源\"") + "</label>" : e}</th>`).join("")}</tr></thead><tbody>${Z(`<tr>${[
+ ].map((e) => `<th>${e === "选择" ? "<label>" + n("disabled aria-label=\"全选本页来源\"") + "</label>" : e}</th>`).join("")}</tr></thead><tbody>${X(`<tr>${[
"20px",
"90px",
"120px",
@@ -2607,37 +2115,37 @@ function _r(e, t = {}) {
"40px",
"100px",
"60px"
- ].map((e) => `<td>${Y(e)}</td>`).join("")}</tr>`, 6)}</tbody></table></div></div>` : `<div class="board-follow-list">${Z(hr(), 4)}</div>`;
- n = `<div class="follow followmanage"><div class="fmanageoverview">${[
+ ].map((e) => `<td>${J(e)}</td>`).join("")}</tr>`, 6)}</tbody></table></div></div>` : `<div class="board-follow-list">${X(Wn(), 4)}</div>`;
+ r = `<div class="follow followmanage"><div class="fmanageoverview">${[
"关注创作者",
"启用来源",
"检查失败",
"未看更新"
- ].map((e) => `<div><span>${e}</span><b>${Y()}</b></div>`).join("")}</div>${lr([
+ ].map((e) => `<div><span>${e}</span><b>${J()}</b></div>`).join("")}</div>${zn([
"关注列表",
"添加关注",
"来源和凭证"
- ], "follow-workspace-switch")}<div class="fmain"><section class="fsec" data-follow-workspace-panel="list">${pr(e)}<div class="board-follow-selection"${e ? " hidden" : ""}><label>${a("disabled")}全选本页</label></div><div class="frows fsources" data-layout="${e ? "table" : "default"}">${r}<div class="followpagefooter"><div class="followpageinfo">${Y("120px")}${Y("100px")}</div></div></div></section></div></div>`;
- } else if (e === "/configuration") n = `<div class="configpage">${cr([
+ ], "follow-workspace-switch")}<div class="fmain"><section class="fsec" data-follow-workspace-panel="list">${Hn(e)}<div class="board-follow-selection"${e ? " hidden" : ""}><label>${n("disabled")}全选本页</label></div><div class="frows fsources" data-layout="${e ? "table" : "default"}">${i}<div class="followpagefooter"><div class="followpageinfo">${J("120px")}${J("100px")}</div></div></div></section></div></div>`;
+ } else if (e === "/configuration") r = `<div class="configpage">${Rn([
"通用",
"媒体",
"网络与访问",
"更新与维护"
- ])}<section class="configfieldset"><div class="geist-fieldset-content"><h3 class="geist-fieldset-title">开机自启</h3><div class="skeleton-lines">${Z(`<div class="skeleton-setting">${Y("35%")}<span class="skeleton skeleton-toggle"></span></div>`, 3)}</div></div><footer class="geist-fieldset-footer">${Y("100px")}</footer></section></div>`;
- else if (e === "/activity") n = `<div class="activitypage">${[
+ ])}<section class="configfieldset"><div class="geist-fieldset-content"><h3 class="geist-fieldset-title">开机自启</h3><div class="skeleton-lines">${X(`<div class="skeleton-setting">${J("35%")}<span class="skeleton skeleton-toggle"></span></div>`, 3)}</div></div><footer class="geist-fieldset-footer">${J("100px")}</footer></section></div>`;
+ else if (e === "/activity") r = `<div class="activitypage">${[
"正在进行",
"被挡下的",
"最近完成"
- ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content skeleton-lines">${Y("35%")}${X()}</div></article></div></section>`).join("")}</div>`;
- else if (e === "/duplicates") n = `<div class="review"><div class="collection-summary">${Y("38%")}</div><div class="fsechead dupactions"><h3>批量保留</h3>${Y("40%")}</div>${Z(`<section class="dupgroup"><div class="duphead">${Y("45%")}</div><div class="duplist">${Z(`<div class="duprow"><span class="dupcover skeleton"></span><span class="dupmarks">${Y()}</span><span class="dupname">${Y("90%")}</span>${Y()}${Y()}${Y()}<span class="duppath">${Y("70%")}</span></div>`, 2)}</div></section>`, 2)}</div>`;
- else if (e === "/quality-goals") n = `<div class="quality-workspace"><div class="collection-summary"><strong>待升级</strong>${Y("20%")}</div><div class="qualitylist">${Z(`<article class="qualityitem"><span class="qualitycover skeleton"></span><div class="qualitybody skeleton-lines">${X()}</div><footer class="qualityactions">${Y("80%")}</footer></article>`, 6)}</div></div>`;
- else if (e === "/playlists") n = `<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate skeleton-lines"><span>新播放列表</span>${Y("200px")}</div></header><div class="playlistcards">${Z(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy skeleton-lines">${X()}</div></div></article>`, 6)}</div></section>`;
+ ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content skeleton-lines">${J("35%")}${Y()}</div></article></div></section>`).join("")}</div>`;
+ else if (e === "/duplicates") r = `<div class="review"><div class="collection-summary">${J("38%")}</div><div class="fsechead dupactions"><h3>批量保留</h3>${J("40%")}</div>${X(`<section class="dupgroup"><div class="duphead">${J("45%")}</div><div class="duplist">${X(`<div class="duprow"><span class="dupcover skeleton"></span><span class="dupmarks">${J()}</span><span class="dupname">${J("90%")}</span>${J()}${J()}${J()}<span class="duppath">${J("70%")}</span></div>`, 2)}</div></section>`, 2)}</div>`;
+ else if (e === "/quality-goals") r = `<div class="quality-workspace"><div class="collection-summary"><strong>待升级</strong>${J("20%")}</div><div class="qualitylist">${X(`<article class="qualityitem"><span class="qualitycover skeleton"></span><div class="qualitybody skeleton-lines">${Y()}</div><footer class="qualityactions">${J("80%")}</footer></article>`, 6)}</div></div>`;
+ else if (e === "/playlists") r = `<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate skeleton-lines"><span>新播放列表</span>${J("200px")}</div></header><div class="playlistcards">${X(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy skeleton-lines">${Y()}</div></div></article>`, 6)}</div></section>`;
else return "";
- return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${n}</div></div>`;
+ return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${r}</div></div>`;
}
//#endregion
//#region src/catalog-onboarding.ts
-var vr = [
+var qn = [
"loc",
"creator",
"performer",
@@ -2655,16 +2163,16 @@ var vr = [
"jav",
"thumb"
];
-function yr() {
+function Jn() {
let e = (e) => Array(64).fill(e).join("");
return {
tiers: "<div class=\"tier catalog-placeholder\" aria-hidden=\"true\">" + e("<span class=\"av\"><span class=\"ring\"></span><span class=\"nm\">&nbsp;</span></span>") + "</div><div class=\"tier catalog-placeholder\" aria-hidden=\"true\">" + e("<span class=\"brandpill\"><span class=\"mk\"></span><span class=\"placeholder-name\">&nbsp;</span></span>") + "</div>",
tags: "<span class=\"catalog-placeholder placeholder-tags\" aria-hidden=\"true\">" + e("<span class=\"pill\">&nbsp;</span>") + "</span>"
};
}
-async function br(e, t) {
+async function Yn(e, t) {
let n = new URLSearchParams();
- for (let t of vr) e[t] && n.set(t, e[t]);
+ for (let t of qn) e[t] && n.set(t, e[t]);
let [r, i] = await Promise.all([t("/api/facets?" + n), t("/api/items?" + n + "&limit=5")]), a = [...new Set([
...r.creators || [],
...r.tagperformers || [],
@@ -2675,11 +2183,11 @@ async function br(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function xr({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
- let a = r ? "<button class=\"geist-button primary\" data-empty-settings>添加内容</button>" : "", s = "<a class=\"geist-button" + (!r || i ? " primary" : "") + "\" href=\"/follow-manage?tab=add\">添加关注</a>";
- if (t || n) return o("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a>" });
+function Xn({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: i = !1, online: a = !1 } = {}) {
+ let o = i ? "<button class=\"geist-button primary\" data-empty-settings>添加内容</button>" : "", s = "<a class=\"geist-button" + (!i || a ? " primary" : "") + "\" href=\"/follow-manage?tab=add\">添加关注</a>";
+ if (t || n) return r("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a>" });
if (e !== "catalog") {
- let t = (i ? {
+ let t = (a ? {
tags: "标签",
performers: "创作者"
}[e] : "") || {
@@ -2690,13 +2198,13 @@ function xr({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
agencies: "事务所",
series: "系列"
}[e] || "资料";
- return o(e === "tags" ? "tags" : "user-round", "还没有" + t, i ? "添加关注来源并获取内容后,这里会显示来源上的" + t + "。" : "添加内容并补充资料后,这里会显示对应信息。", { actions: i ? s : a + s });
+ return r(e === "tags" ? "tags" : "user-round", "还没有" + t, a ? "添加关注来源并获取内容后,这里会显示来源上的" + t + "。" : "添加内容并补充资料后,这里会显示对应信息。", { actions: a ? s : o + s });
}
- return o("play", "还没有视频", "添加媒体文件夹或关注来源,开始建立你的馆藏。", { actions: a + s });
+ return r("play", "还没有视频", "添加媒体文件夹或关注来源,开始建立你的馆藏。", { actions: o + s });
}
//#endregion
//#region src/sidebar.ts
-function Sr(e) {
+function Zn(e) {
return [
"/",
"/unseen",
@@ -2706,57 +2214,132 @@ function Sr(e) {
"/junk-files"
].includes(e) || /^\/(item|mix|parts|editions)\//.test(e) || /^\/playlists\/\d+\/\d+$/.test(e) || /^\/(performers|studios|creators|series|agencies)\/.+/.test(e);
}
-function Cr(e, t) {
+function Qn(e, t) {
return e.dataset.surface?.split("?")[0] === t.split("?")[0] && e.querySelector(".dnav") ? (e.dataset.surface = t, !1) : (e.dataset.surface = t, e.replaceChildren(), !0);
}
-function wr(e) {
+function $n(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of new Set(n.tags || [])) t.set(e, (t.get(e) || 0) + 1);
return [...t].sort((e, t) => t[1] - e[1]).slice(0, 30);
}
//#endregion
+//#region src/management.ts
+function er(e) {
+ return e.filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location);
+}
+function tr(e, t) {
+ return t.filter((t) => e.some((e) => e.location === t));
+}
+function nr() {
+ let e = [
+ ["人工复核", "square-check-big"],
+ ["高清版", "sparkles"],
+ ["重复文件", "file-stack"],
+ ["垃圾文件", "file-archive"],
+ ["回收站", "trash"]
+ ], t = "<span class=\"skeleton cleanup-count-skeleton\" aria-hidden=\"true\"></span>";
+ return `<div class="cleanuppage" data-skeleton="cleanup" aria-busy="true" aria-label="正在读取数据管理状态">
+ <div class="cleanupstats">${e.map(([e, n]) => `
+ <button type="button" class="board-plain-stat" disabled>
+ <span class="board-plain-stat-head"><span class="board-stat-tile"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${n}"></use></svg></span>${e}</span>
+ <strong>${t}</strong><span class="cleanupmeta">${t}</span></button>`).join("")}</div>
+ <div class="cleanupgrid">
+ <section class="cleanupfieldset board-processing-skeleton" data-geist-fieldset aria-labelledby="cleanup-loading-scan">
+ <div class="geist-fieldset-content"><h3 class="geist-fieldset-title" id="cleanup-loading-scan">扫描与采集</h3>
+ <p>扫描媒体文件夹,导入已有资料,采集缺失信息。</p></div>
+ <footer class="geist-fieldset-footer" data-geist-fieldset-footer><a class="board-link-button" href="/scraping"><span>来源和凭证</span><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-arrow-up"></use></svg></a><div class="splitbutton board-button-group primary"><button type="button" class="splitmain geist-button primary" disabled><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-database"></use></svg>扫描并补全资料</button><button type="button" class="splittoggle geist-button primary" disabled aria-label="更多扫描与采集方式"><svg aria-hidden="true"><use href="#i-chevron-down"></use></svg></button></div></footer>
+ </section>
+ <section class="cleanupfieldset cleanupemptyfolders" data-geist-fieldset aria-labelledby="cleanup-loading-empty">
+ <div class="geist-fieldset-content"><h3 class="geist-fieldset-title" id="cleanup-loading-empty">空文件夹</h3>
+ <strong>${t}</strong><p class="cleanupmeta">${t}</p></div>
+ <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button type="button" disabled><svg aria-hidden="true"><use href="#i-scan-search"></use></svg><span>扫描空文件夹</span></button></footer>
+ </section></div>
+ <section class="resourcesync" aria-labelledby="cleanup-loading-links">
+ <h2 id="cleanup-loading-links">链接管理</h2>
+ <div class="resourcesyncbox" data-geist-fieldset>
+ <div class="resourcesyncbody geist-fieldset-content"><h3 class="geist-fieldset-title">站外链接</h3>
+ <div class="linksummary"><div class="linkstats">${[
+ "链接总数",
+ "官网/事务所",
+ "社交账号",
+ "作品资料站",
+ "资料出处"
+ ].map((e) => `<div><span>${e}</span><b>${t}</b></div>`).join("")}</div></div></div>
+ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" type="button" disabled>检查死链</button></div>
+ </div></section>
+ <section class="resourcesync" aria-labelledby="cleanup-loading-sync">
+ <h2 id="cleanup-loading-sync">资源同步</h2>
+ <div class="resourcesyncbox" data-geist-fieldset>
+ <div class="resourcesyncbody geist-fieldset-content"><h3 class="geist-fieldset-title">文件与记录核对</h3>
+ <p>${t}</p></div>
+ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" type="button" disabled>检查文件</button></div>
+ </div></section></div>`;
+}
+function rr(e, t = !1, n = !1) {
+ if (t || n) return "";
+ let r = "<svg class=\"externalmark\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-external-link\"></use></svg>";
+ return `<details class="taste-history-guide"${e ? " open" : ""}>
+ <summary><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-right"></use></svg>浏览器历史记录导入指南</summary>
+ <div class="taste-history-guide-content">
+ <p>在运行 Peach 的电脑上使用浏览器:点击上方「读取 Peach 主机」。</p>
+ <p>记录在其他设备上:导出文件后,点击上方「导入历史」。多台设备的文件分别导入。</p>
+ <ul><li>Chrome:在 <a class="externallink" href="https://takeout.google.com/" target="_blank" rel="noreferrer">Google Takeout${r}</a> 选择 Chrome 历史记录,下载 ZIP 后直接导入。</li>
+ <li>其他浏览器:使用 <a class="externallink" href="https://github.com/purarue/browserexport" target="_blank" rel="noreferrer">browserexport${r}</a> 导出历史记录,再导入导出文件。</li></ul>
+ <p>需要刷新时再次读取或导入;数据源可在页面底部移除。</p>
+ <button type="button" class="geist-button taste-guide-skip">跳过</button>
+ </div></details>`;
+}
+var ir = "peach-taste-guide-dismissed";
+function ar(e, t) {
+ u(e, ".taste-history-guide", "taste-guide-collapse");
+ let n = e.querySelector(".taste-history-guide");
+ n?.querySelector(".taste-guide-skip")?.addEventListener("click", () => {
+ t.setItem(ir, "1"), n.remove();
+ });
+}
+//#endregion
//#region src/resource-sync.ts
-var Q = (e = 0) => Number(e).toLocaleString(), Tr = {
+var Q = (e = 0) => Number(e).toLocaleString(), or = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, Er = (e) => p(r[e] ?? "database"), Dr = (e, t, n) => `<article class="board-plain-stat resourcestat">
+}, sr = (t) => c(e[t] ?? "database"), cr = (e, t, n) => `<article class="board-plain-stat resourcestat">
<span class="board-plain-stat-head">${e}</span>
<strong>${t}</strong>
<span class="cleanupmeta">${n}</span></article>`;
-function Or(e, t) {
+function lr(e, t) {
let n = e.cache || {
files: 0,
bytes: 0
}, r = !!(e.missing || n.files);
- return `<div class="cleanupstats resourcestats">${(e.sources || []).map((e) => Dr(`<span class="board-stat-tile resourcestat-tile">${Er(e.location)}</span>${Tr[e.location] || "媒体来源"}<span class="resourcestat-state ${e.online ? "online" : "offline"}">${e.online ? "可访问" : "离线,已跳过"}</span>`, e.online ? `${Q(e.missing)} 项` : "—", [e.online ? `找不到文件 · 已检查 ${Q(e.checked)} 项` : `馆藏中有 ${Q(e.total)} 项`, e.unreadable ? `${Q(e.unreadable)} 项读取失败,已跳过` : ""].filter(Boolean).join(" · "))).join("")}
- ${Dr("待移入回收站", `${Q(e.missing)} 项`, "")}
- ${Dr("可清理的缓存", `${Q(n.files)} 个`, n.files ? t(n.bytes) : "")}</div>
- ${r ? u(`将把找不到文件的 ${Q(e.missing)} 项馆藏记录移入回收站,并清理 ${Q(n.files)} 个闲置缓存。`, { label: "清理内容" }) : ""}
+ return `<div class="cleanupstats resourcestats">${(e.sources || []).map((e) => cr(`<span class="board-stat-tile resourcestat-tile">${sr(e.location)}</span>${or[e.location] || "媒体来源"}<span class="resourcestat-state ${e.online ? "online" : "offline"}">${e.online ? "可访问" : "离线,已跳过"}</span>`, e.online ? `${Q(e.missing)} 项` : "—", [e.online ? `找不到文件 · 已检查 ${Q(e.checked)} 项` : `馆藏中有 ${Q(e.total)} 项`, e.unreadable ? `${Q(e.unreadable)} 项读取失败,已跳过` : ""].filter(Boolean).join(" · "))).join("")}
+ ${cr("待移入回收站", `${Q(e.missing)} 项`, "")}
+ ${cr("可清理的缓存", `${Q(n.files)} 个`, n.files ? t(n.bytes) : "")}</div>
+ ${r ? o(`将把找不到文件的 ${Q(e.missing)} 项馆藏记录移入回收站,并清理 ${Q(n.files)} 个闲置缓存。`, { label: "清理内容" }) : ""}
<div class="resourceapplyrow geist-fieldset-footer" data-geist-fieldset-footer>${r ? "<button class=\"geist-button primary\" type=\"button\" id=\"resourceApply\">清理失效记录与缓存</button>" : "<p class=\"resourcesyncok\">已检查可访问的来源,没有待清理的记录或缓存。</p>"}</div>`;
}
//#endregion
//#region src/jav-artwork.ts
-function kr(e) {
+function ur(e) {
return [
"small",
"sleeve",
"preview"
].includes(String(e)) ? "small" : "big";
}
-function Ar(e) {
+function dr(e) {
return {
- javLayout: kr(e.javLayout),
- javImage: jr(e.javLayout === "preview" ? "thumbnail" : e.javImage)
+ javLayout: ur(e.javLayout),
+ javImage: fr(e.javLayout === "preview" ? "thumbnail" : e.javImage)
};
}
-function jr(e) {
+function fr(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function Mr(e, t) {
- return e.is_jav && e.code && e.has_cover && (jr(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
+function pr(e, t) {
+ return e.is_jav && e.code && e.has_cover && (fr(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
}
-function Nr(e, t) {
+function mr(e, t) {
let n = Number(e?.px?.[0]), r = Number(e?.px?.[1]), i = Number(e?.x0);
if (!(n > 0 && r > 0 && t > 0) || !Number.isFinite(i)) return null;
let a = Math.min(1, Math.max(0, i / n)), o = n / r / t, s = (1 - a) * o;
@@ -2767,36 +2350,33 @@ function Nr(e, t) {
left: l(c)
};
}
-function Pr(e, t) {
+function hr(e, t) {
e.querySelectorAll("img[data-jav-image]").forEach((e) => {
- let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !!(n && (jr(t) === "cover" || !r)), a = i ? n : r;
+ let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !!(n && (fr(t) === "cover" || !r)), a = i ? n : r;
e.classList.toggle("cover", i), e.classList.toggle("whole", i && e.dataset.javImageLayout !== "big"), e.classList.toggle("front", i && e.dataset.javImageLayout === "big"), e.classList.remove("panel"), e.removeAttribute("style"), e.closest(".pic")?.style.removeProperty("--cover-blur"), a && e.getAttribute("src") !== a && (e.src = a);
});
}
//#endregion
//#region src/islands.ts
-var Fr = {
- "library-processing": {
- load: ft,
- component: bt
- },
+var gr = {
+ "library-processing": { react: "library-processing" },
scraping: { react: "scraping" },
"quality-goals": { react: "quality-goals" },
configuration: {
- load: Mn,
- component: Nn
+ load: an,
+ component: on
},
activity: { react: "activity" }
-}, Ir = () => Object.keys(Fr), $ = /* @__PURE__ */ new Map();
-async function Lr(e, t, n, r = {}) {
- let i = Fr[e];
+}, _r = () => Object.keys(gr), $ = /* @__PURE__ */ new Map();
+async function vr(e, t, n, r = {}) {
+ let i = gr[e];
if (!i) throw Error(`未注册的 island:${String(e)}`);
- Vr(t);
+ Sr(t);
let a = {
controller: new AbortController(),
painted: !1
};
- if ($.set(t, a), "react" in i) return zr(i, t, n, a, r);
+ if ($.set(t, a), "react" in i) return br(i, t, n, a, r);
let o;
try {
o = {
@@ -2807,27 +2387,27 @@ async function Lr(e, t, n, r = {}) {
if (a.controller.signal.aborted) return;
o = {
data: null,
- error: rt(e)
+ error: jt(e)
};
}
- if (!Rr(t, a, r)) return;
+ if (!yr(t, a, r)) return;
let s = {
...n,
...o
};
- Ce(L(i.component, s), t);
+ ye(F(i.component, s), t);
}
-function Rr(e, t, n) {
+function yr(e, t, n) {
return $.get(e) === t ? n.isCurrent && !n.isCurrent() ? ($.delete(e), !1) : (e.textContent = "", t.painted = !0, !0) : !1;
}
-async function zr(e, t, n, r, i) {
+async function br(e, t, n, r, i) {
let a = (await import("/dist/peach-react.js")).pages[e.react];
try {
await a.prefetch(n, r.controller.signal);
} catch {
if (r.controller.signal.aborted) return;
}
- if (!Rr(t, r, i)) return;
+ if (!yr(t, r, i)) return;
let o = t.ownerDocument.createElement("div");
o.className = "peach-react", t.append(o);
let s = a.mount(o, n);
@@ -2835,10 +2415,13 @@ async function zr(e, t, n, r, i) {
s.unmount(), o.remove();
};
}
-var Br = (e) => !!e && $.has(e);
-function Vr(e) {
+var xr = (e) => !!e && $.has(e);
+function Sr(e) {
+ for (let t of [...$.keys()]) (t === e || e.contains(t)) && Cr(t);
+}
+function Cr(e) {
let t = $.get(e);
- t && (t.controller.abort(), $.delete(e), t.dispose ? t.dispose() : t.painted && Ce(null, e));
+ t && (t.controller.abort(), $.delete(e), t.dispose ? t.dispose() : t.painted && ye(null, e));
}
//#endregion
-export { Tt as TASTE_GUIDE_KEY, Cn as activityChartsHtml, _r as boardPageSkeleton, Ee as boundedPreference, xr as catalogEmptyHtml, br as catalogSuggestions, Qn as clampPage, Ct as cleanupSkeletonHtml, xt as cloudLocations, St as cloudPreferenceLocations, Hn as createReviewSelection, _n as creatorSankeyHtml, gr as detailSkeletonHtml, je as distributionChart, yr as emptyCatalogLayout, or as entitySkeletonHtml, ct as followJobProgress, Gn as groupReviewRows, In as identityEvidenceHtml, jt as initBoardControls, Br as islandMounted, Ir as islandNames, Mr as javImageKind, ot as jobActivityHtml, Ae as jobProgressHtml, er as matchesFaceSource, ir as mountAvatarPicker, kt as mountBoardStatePreview, Lr as mountIsland, Oe as mountNumberSetting, tr as nativeImageFit, jr as normalizeJavImage, kr as normalizeJavLayout, Ar as normalizeJavPreferences, Zn as pageCount, $n as paginationHtml, Nr as panelFrame, we as preferredDirection, Ne as radarChart, bn as radialCardHtml, Me as rankedChart, Or as resourceScanHtml, Fn as reviewImageHtml, Bn as selectGroup, Rn as selectRange, zn as selectionSummary, Sr as sidebarHasCatalogContent, En as sidebarSectionHtml, wr as sidebarTagCounts, ke as statCardBody, At as syncBoardRange, Pr as syncJavImages, De as syncNumberSetting, Vn as syncSelectionToolbar, Cr as syncSidebarSurface, wt as tasteHistoryGuideHtml, kn as transitionTheme, ar as unmountAvatarPicker, Vr as unmountIsland, Un as updateReviewSticky, st as watchJob, wn as wireActivityCharts, vn as wireCreatorSankey, Lt as wireExpandableRanks, It as wireGrowingCharts, xn as wireRadialCards, Ln as wireReviewPictures, Yn as wireReviewSelection, Dn as wireSidebarGroups, Et as wireTasteHistoryGuide };
+export { ir as TASTE_GUIDE_KEY, St as activityChartsHtml, Kn as boardPageSkeleton, Se as boundedPreference, Xn as catalogEmptyHtml, Yn as catalogSuggestions, On as clampPage, nr as cleanupSkeletonHtml, er as cloudLocations, tr as cloudPreferenceLocations, vn as createReviewSelection, gt as creatorSankeyHtml, Gn as detailSkeletonHtml, De as distributionChart, Jn as emptyCatalogLayout, In as entitySkeletonHtml, ln as followJobProgress, xn as groupReviewRows, fn as identityEvidenceHtml, je as initBoardControls, xr as islandMounted, _r as islandNames, pr as javImageKind, sn as jobActivityHtml, Ee as jobProgressHtml, An as matchesFaceSource, Pn as mountAvatarPicker, vr as mountIsland, we as mountNumberSetting, jn as nativeImageFit, fr as normalizeJavImage, ur as normalizeJavLayout, dr as normalizeJavPreferences, Dn as pageCount, kn as paginationHtml, mr as panelFrame, be as preferredDirection, ke as radarChart, yt as radialCardHtml, Oe as rankedChart, lr as resourceScanHtml, dn as reviewImageHtml, gn as selectGroup, mn as selectRange, hn as selectionSummary, Zn as sidebarHasCatalogContent, Tt as sidebarSectionHtml, $n as sidebarTagCounts, Te as statCardBody, Ae as syncBoardRange, hr as syncJavImages, Ce as syncNumberSetting, _n as syncSelectionToolbar, Qn as syncSidebarSurface, rr as tasteHistoryGuideHtml, Ot as transitionTheme, Fn as unmountAvatarPicker, Sr as unmountIsland, yn as updateReviewSticky, cn as watchJob, Ct as wireActivityCharts, _t as wireCreatorSankey, Le as wireExpandableRanks, Ie as wireGrowingCharts, bt as wireRadialCards, pn as wireReviewPictures, Tn as wireReviewSelection, Et as wireSidebarGroups, ar as wireTasteHistoryGuide };