Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(web): 高清版目标页迁到 React 档,换页时卸下管理区正文上的 island

longmeidao88805119a1f9
diff --git a/docs/FRONTEND.md b/docs/FRONTEND.md
index c844d936f..1813abdcb 100644
--- a/docs/FRONTEND.md
+++ b/docs/FRONTEND.md
@@ -14,7 +14,6 @@ React + Tailwind v4 + BoardUI 源码,已迁出的 Preact island 是过渡层
| --- | --- |
| `frontend/src/islands.ts` | 挂载契约与注册表,构建入口 |
| `frontend/src/islands/*.tsx` | 每个 island 一个文件 |
-| `frontend/src/state/*.ts` | 跨岛共享状态,一份数据一个文件;`index.ts` 是登记处 |
| `frontend/src/api.ts` | 带 `AbortController` 的取数封装 |
| `frontend/src/management.ts` | 数据管理首屏 Fieldset、网盘能力显隐与浏览历史导入指南 |
| `frontend/src/legacy/*.d.ts` | `/js/core.js`、`/js/ui-components.js` 的手写类型 |
@@ -156,11 +155,11 @@ await ui.mountIsland('quality-goals', $('#stats'), props, {isCurrent: () => surf
`mountIsland` 动态取回 `@peach/react`,先 `pages.<page>.prefetch(props, signal)` 把首屏
写进共用的 Query 缓存,再换掉骨架、在一个 `.peach-react` 容器里创建 React 根。两档
对遗留层是同一个调用,`unmountIsland` 对 React 档卸根、撤容器。
-- 现状:遗留外壳**还没有**在换页时调 `unmountIsland`——它的离场路径是直接
- `innerHTML=`,没有统一的钩子。所以离场靠 `isCurrent` 保证不误画,在途请求要等自然
- 结束;已经画出来的那一屏离场后组件仍然活着,有轮询的页面照着原节律继续(实测离开
- `/activity` 之后仍是两秒一轮)。再进这一页时 `mountIsland` 先自我卸载,同时只有一份。
- 把 `unmountIsland` 接进壳的换页路径属于路由本体迁移那一步,不在单页迁移里做。
+- 离场有两道闸。第一道是壳:`claimSurface` 是所有页面共同经过的换页点,它在那里对
+ 管理区正文的容器(`#stats`)调 `unmountIsland`,React 档的根连同它的轮询一起停。
+ 多数管理页的离场路径是直接 `innerHTML=`,根被挤出文档却照样活着,所以卸载必须由这
+ 一个公共点负责,而不是逐页判断。第二道是 `isCurrent`:取数落地时用户可能已经走开,
+ 这时不画。再进这一页时 `mountIsland` 先自我卸载,同时只有一份。
遗留助手不打进产物:`LOC`、`fmtDur`、`fmtSize`、`emptyStateHtml`、`noteHtml` 在浏览器里
仍是 `/js/*.js`,源码用 `@peach/legacy/*` 引用,`output.paths` 在产物里改写回真实路径。
@@ -171,50 +170,25 @@ await ui.mountIsland('quality-goals', $('#stats'), props, {isCurrent: () => surf
判据只有一条:**这份数据有没有第二个读者**。
-没有就用 hooks。展开、悬停、翻到第几页这些东西只属于一个岛,搬进 store 只是把本来
-局部的东西变成全局的。第一份 store 之所以存在,是因为高清版目标确实有两个读者:
-`/quality-goals` 整页列表要 `items`,`/data-cleanup` 上的「高清版」卡片只要一个
-`total`,为此另发了一次 `/api/quality-goals?limit=1`——同一个真相取两次,显示的数
-就可能对不上。
-
-有第二个读者就在 `frontend/src/state/` 建一个文件,规矩三条:
-
-1. **一份数据一个文件**,文件名就是它的名字,再在 `state/index.ts` 里登记。
-2. **只导出 `computed` 视图,不导出可写的 signal。** 写入只能通过该文件导出的函数,
- 所以「谁改了它」在源码里数得出来;组件里直接赋值会抛 TypeError,不是靠约定。
-3. **取数归 store。** `ensureX()` 是「读一次就够」,已有数据直接给、并发调用合流成
- 一个请求;`refreshX(signal?)` 是「重新取」,页面刷新和写完数据之后走它。
-
-```ts
-// frontend/src/state/quality-goals.ts
-const state = signal<QualityGoalsState>(BLANK); // 不导出
-export const qualityGoals = computed(() => state.value);
-export const qualityGoalsTotal = computed(() => state.value.data?.total ?? null);
-export async function refreshQualityGoals(abort?: AbortSignal) { /* 写 state.value */ }
-export async function ensureQualityGoals() { /* 有就给,没有才 refresh */ }
-```
+没有就用 hooks。展开、悬停、翻到第几页这些东西只属于一页,提上去只是把本来局部的
+东西变成全局的。
-岛这边只是读:组件里读 `qualityGoals.value` 就自动订阅,数据之后再变这一屏自己重画,
-不需要重新 `mountIsland`。卸载时订阅跟着组件一起走(`test/islands.test.ts` 里有一条
-mount → unmount → 改 signal 的用例盯着这件事)。`mountIsland` 仍然会把 `{data, error}`
-作为 props 传进来——那是所有 island 共用的首屏契约——由 store 支撑的岛不看它们:
-同一份数据两个来源,刷新之后就会各说一套。
+有第二个读者就让两个读者读**同一个 `queryKey`**,不另建一份状态。整个 React 子树只有
+`src/react/query.ts` 那一个 `QueryClient`(`tests/test_frontend_build.py` 盯着),页面级
+`prefetch` 写进去的那一份,任何组件的 `useQuery` 都直接读得到,谁先谁后都是同一个数。
+现成的例子是高清版目标:`/quality-goals` 整页列表要 `items`,`/data-cleanup` 上的
+「高清版」卡片只要一个 `total`。卡片现在还在 `web/app.js` 里,自己发一次
+`/api/quality-goals?limit=1`;它随数据管理页迁移时改读 `QUALITY_GOALS_KEY`,那一刻这
+份数据才真的只剩一个来源。**遗留层里的读者等它所在的页面迁过来再接**,不为它在产物
+上另开一个通知入口。
-首屏该用哪个函数看路由表:`/quality-goals` 是 `refresh:'reopen'`,刷新就是重新进这一页,
-所以它的 `load` 走 `refreshQualityGoals`,不吃缓存。
+端点字符串在 `frontend/src` 里只许出现一次,就在这一页的数据模块里
+(`src/react/quality-goals/quality-goals.ts`)——要拦的是「两个地方各写一遍这条 URL」。
-**遗留层改完数据怎么通知岛**:产物上多导出一个 `refreshStore(name)`,用法和
-`mountIsland(name, ...)` 一样按名字来。
-
-```js
-const ui = await import('/dist/peach-ui.js');
-await ui.refreshStore('quality-goals'); // 挂着的那屏自己重画,不必重新挂载
-```
-
-它取数失败时不抛,只返回 `false`:失败已经落进 store 的错误态、显示在屏幕上了,而
-调用点在 `app.js` 里是 fire-and-forget,再抛一次只会变成没人接的 rejection。名字不在
-注册表里则立刻抛错——那是写错了,不是运行时状况。目前 `web/app.js` 还没有调用
-它——`/data-cleanup` 那张卡片接进来属于下一批迁移,本轮只把入口备好。
+首屏要不要吃缓存看路由表:`/quality-goals` 是 `refresh:'reopen'`,刷新就是重新进这一页,
+所以它的 `prefetch` 不给 `staleTime`,每次进来都重取。要按节律更新的页面写
+`refetchInterval`(活动页 2 秒/10 秒),不另起 `setInterval`:轮询跟着组件走,
+换页时壳在 `claimSurface` 卸根,它自己就停了。
## 迁移下一个页面
@@ -233,12 +207,18 @@ await ui.refreshStore('quality-goals'); // 挂着的那屏自己重画,不
4. 外观按 BoardUI:注册表里有的条目逐字复制进 `src/react/boardui/`,哈希记进
`ORIGIN.md` 与 `UPSTREAM.sha256`;注册表里没有的(分区标题、空态、进度、说明条)
用 `src/react/components/` 下 Peach 自己的组合件,第二个页面要用就搬进那里,不复制一份。
+ `auto-fill` 网格、固定像素的封面这类工具类里没有的档位,在 `styles.css` 里加
+ `@theme` 或 `@utility`,类名照常由 Tailwind 生成;lint 不收任意值。
5. `frontend/test/react/<page>.test.tsx`:假 fetch 加 `test/react/render.tsx` 的挂载助手,
断言结构、请求次数、轮询节律和失败时留下什么,用例之间 `queryClient.clear()`。
外观决定进 `frontend/e2e/design.test.ts`:`page.route` 造出真实数据里凑不齐的状态,
断言读 `getComputedStyle`。
-6. `web/app.js` 的挂载块不变;`web/css/` 里只服务这一页正文的规则删掉,遗留骨架还要用
- 的留着。
+6. `web/app.js` 的挂载块不变;`web/css/` 与 `web/board.css` 里只服务这一页正文的规则删掉,
+ 遗留骨架还要用的留着——骨架仍然用旧类名(`boardPageSkeleton`),它要的那几条不能一起删。
+ 遗留层只在 `app.js` 里有的助手(`javTitleHtml`、`srcBadge` 这类返回 HTML 的)继续由
+ props 递进来,用 `dangerouslySetInnerHTML` 插;它们是全站语义契约的唯一实现,在页面里
+ 重写一份就会漂。而 `emptyStateHtml`、`noteHtml`、`collectionSummaryHtml` 这类只是
+ 「画个通用块」的助手不跟过来:React 页用 `components/` 下的组合件。
7. `tests/test_web_ui.py` 里这一页的断言分三处:路由、菜单入口与骨架留在原地,CSS
字符串删掉(设计决定改由 `design.test.ts` 读计算值),行为搬进 vitest;搬到哪里写进
提交说明。
@@ -260,7 +240,6 @@ vendor 到 `web/vendor/` 的四个包(video.js、swiper、lucide-static、heal
| 依赖 | 为什么需要它 |
| --- | --- |
| `preact` | island 的渲染层。10 kB gzip 的运行时,配 `dangerouslySetInnerHTML` 能直接复用遗留层返回 HTML 的助手 |
-| `@preact/signals` | 跨岛共享状态的载体。组件读 `.value` 就订阅,数据变了只重画读它的那一屏,不用把状态提到某个共同祖先——岛之间没有共同祖先 |
| `vite` | 构建入口。库模式出单个 ES module,`external` + `output.paths` 把遗留模块留在外面 |
| `typescript` | 类型即契约:注册表、props 与端点响应都靠它在编译期拦住漂移 |
| `vitest` | 前端测试运行器。与 Vite 共用同一份配置解析,不必再维护第二套转译 |
@@ -276,16 +255,11 @@ vendor 到 `web/vendor/` 的四个包(video.js、swiper、lucide-static、heal
| `tailwindcss`、`@tailwindcss/vite` | 按 `src/react/` 里实际用到的类名生成 `peach-react.css` |
| `@types/react`、`@types/react-dom` | React 子树的类型检查 |
-React 子树单独构建(`vite.react.config.ts`)。`peach-react.js` 723 kB(gzip 187.8 kB),
-只在页面挂 React 子树时由 island 动态加载;`peach-react.css` 85 kB(gzip 13.2 kB),
+React 子树单独构建(`vite.react.config.ts`)。`peach-react.js` 728 kB(gzip 189.2 kB),
+只在页面挂 React 子树时由 island 动态加载;`peach-react.css` 85 kB(gzip 13.3 kB),
由 `index.html` 在旧样式表之前引入。它的 `build.cssTarget` 对齐 Tailwind v4 的浏览器基线
(Chrome 111、Firefox 128、Safari 16.4),oklch 颜色原样输出:目标再旧,lightningcss 会补
`lab()` 回退,末位小数随平台浮点不同,CI 在 Linux 上重建的产物就与提交的对不上。
-`@preact/signals` 钉在 2.11.1:它对 `preact` 的 peer 要求是 `>= 10.25.0`,和这里的
-10.29.8 对得上;运行时另外带一个 `@preact/signals-core`,是它自己的依赖,由 lockfile
-钉住,不进清单。产物因此从 17.7 kB 涨到 31.5 kB(gzip 6.6 → 10.6 kB):多出来的是
-`signals` + `signals-core` + `preact/hooks` 三份,第三份随第一个用 hooks 的岛进入。
-
没有引入 `@testing-library/preact`:`preact` 的 `render` 加 `querySelector` 已经够用,
断言的本来就是真实 DOM。
diff --git a/docs/PRODUCT_BACKLOG.md b/docs/PRODUCT_BACKLOG.md
index 184dc2137..0e1a32a11 100644
--- a/docs/PRODUCT_BACKLOG.md
+++ b/docs/PRODUCT_BACKLOG.md
@@ -4,7 +4,7 @@
## BoardUI 正式前端迁移
-Board 视觉层是唯一一套界面,没有切换开关;Board 风格的视觉层与控件映射已在生产。迁移按 [ADR-0031](adr/0031-frontend-react-boardui-tailwind.md) 逐页改写成 React + Tailwind v4 + BoardUI 原版源码,每次一到两个页面、独立分支集成,旧渲染函数、旧 CSS 与旧断言随页面删除。已迁到 React 的只有配置页四个分区;activity、library-processing、quality-goals、scraping 仍是 Preact island,其余页面仍在 `web/app.js`。布尔开关对应 Board Switch,互斥选择对应 Segmented Control;数值配置支持合法范围内自定义,可关闭功能用 Switch,开启才展示数字输入。
+Board 视觉层是唯一一套界面,没有切换开关;Board 风格的视觉层与控件映射已在生产。迁移按 [ADR-0031](adr/0031-frontend-react-boardui-tailwind.md) 逐页改写成 React + Tailwind v4 + BoardUI 原版源码,每次一到两个页面、独立分支集成,旧渲染函数、旧 CSS 与旧断言随页面删除。已迁到 React 的是配置页四个分区、活动页与高清版页;configuration 外壳、library-processing、scraping 仍是 Preact island,其余页面仍在 `web/app.js`。布尔开关对应 Board Switch,互斥选择对应 Segmented Control;数值配置支持合法范围内自定义,可关闭功能用 Switch,开启才展示数字输入。
前端基础库随页面引入,取舍与时机见 ADR-0031「前端基础库」一节:TanStack Query 随第一个有两个读者的数据域(`/quality-goals` 与数据管理卡片)进;TanStack Table 随关注管理表格与 BoardUI Data Table 进;React Router 在外壳与路由迁移那一步接管;TanStack Virtual 在馆藏网格迁到 React 时按实测决定。Remix Icon 候选审查在预览 `/icon-review.html`,现有已选图标保留至用户筛选。迁移不包含版本号或其他分支发布工作。
@@ -131,7 +131,7 @@ Board 视觉层是唯一一套界面,没有切换开关;Board 风格的视
- 领域层:`catalog_rules` 里站名交替串、TLD 列表各写两份;`transcodes.requires_conversion`/`browser_path` 是同一段缓存逻辑;`code_variants` 在 `jav_cover_fetch` 与 `catalog_rules` 各一份;`library_processing` 是第三条 r18 请求路径且跨模块拿私有 `_fetch`;`metadata_seesaa.RoutedMetadataProvider` 只有 `scrape_codes.py` 用,内联。
- scripts:`audit_creator_attributions.py`(查的 `legacy:asset` 已无写入者)、`apply_metadata_tags.py`(绕过 `/review`)、`creator_tags.py --apply-review`(与 `web_review` 判据不同的第二条写路,`--export-review` 要留)建议删;`backfill_rule34_tag_types.py` 2026-09-08 已跑完全部待补条目,连接器早已在入库时取类型,脚本可删;7 处绕开 `scripting.open_for_write`、5 处自拼只读 URI、5 处手写线性重试要接上共享实现;`audit_video_endcards.py`、`audit_fc2_similarity.py`、`localize_series_names.py`、`find_ads.py` 还会用但文档没登记,归到 `peach-batch-jobs` 或 `docs/SOURCING.md`。
- tests:约 3 700 条源码文本断言集中在 `test_web_ui.py`(近 90 天 20% 的提交都在改它)与 `test_follow_web.py`;页面断言设施两处各写一份;`test_fastapi_api.BASE_SCHEMA` 手写 22 张表,与 `migrations/*.sql` 的漂移未取得;31 个文件手写 `CREATE TABLE`,`tests/support/ledger.py` 有 22 个在用。方向是触碰时迁到 `test_web_js.py` 与 `fresh_ledger()`,不整体重写;`check_copy_final_state.py` 的词表不拦「过去/此前」。
- - 前端:11 处 `await import('/dist/peach-ui.js')` 与文件顶部静态 import 并存(`test_frontend_build.py` 与 `test_web_ui.py` 钉住了这种写法,要同改);`wireNavigationDrag` 与 `ui-components.wireDragReorder` 双实现;`refreshStore` 零消费;`.fnote` 在 21 与 22 号 CSS 互相覆盖。
+ - 前端:11 处 `await import('/dist/peach-ui.js')` 与文件顶部静态 import 并存(`test_frontend_build.py` 与 `test_web_ui.py` 钉住了这种写法,要同改);`wireNavigationDrag` 与 `ui-components.wireDragReorder` 双实现;`.fnote` 在 21 与 22 号 CSS 互相覆盖。
- 文档:同一条规则最多写在 19 个文件里(测试入口);`CLAUDE.md` 正文与 AGENTS、worktree 技能重复;本文件的操作 28 与 30 同题,另有一节评审记录;`docs/PIKPAK.md` 是按日期的 runbook,流程该归 `peach-batch-jobs`。
36. 归一后要用户判的 10 张厂牌标识:AttractiveLLC ×3、C-more_Entertainment ×3、Bambi_Promotion ×2、Deep_s、Tameike_Goro。补到内容外接圆这条规则在「设计上就出血到边」的标识上会把内容推离边缘,逐张判词在 `peach-data/review/refit-review-20260908.csv`,原图在 `peach-data/archive/logos-pre-refit-20260908/`,对比页 `build/logo_compare.html` 的第一节。占宽和圆外损失都分不开 C-more(0.98/0.97)与 MARRION(0.95/0.94),所以没加窄化条件——先由用户定还原哪几张,再按定下来的形状写判据和测试。
37. 补底到 64 的 7 张还没落盘:`normalize_studio_logos.py --apply` 要用户自己跑(DorcelClub.img、Flower 三张、LINX.img、HEYZO.icon、Prestige.icon,逐张前后见对比页第三节)。
diff --git a/frontend/e2e/design.test.ts b/frontend/e2e/design.test.ts
index bb32d1423..154dcb7d6 100644
--- a/frontend/e2e/design.test.ts
+++ b/frontend/e2e/design.test.ts
@@ -59,6 +59,34 @@ async function openActivity(browser: Browser, runs: unknown[]): Promise<Visit> {
return opened;
}
+/** 一条待升级的目标。字段以 `/api/quality-goals`(`src/peach/web_contract.py`)为准。 */
+const qualityGoal = (id: number, name: string) => ({
+ id, name, code: null, location: 'local', size: 2147483648, duration: 3725,
+ reason: '只有 720p', cost: 'free', has_thumb: true, has_cover: false,
+});
+
+/** 1×1 的透明 PNG,够让 `<img>` 走完一次加载。 */
+const PIXEL = 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==';
+
+/** 高清版目标页按给定的一份 `/api/quality-goals` 打开:演示库里凑不齐很长的标题。 */
+async function openQualityGoals(browser: Browser, items: unknown[]): Promise<Visit> {
+ const opened = await visit(browser, '/quality-goals', DESKTOP);
+ await opened.page.route('**/api/quality-goals?limit=200', (route) => route.fulfill({
+ status: 200,
+ contentType: 'application/json',
+ body: JSON.stringify({ total: items.length, items, offset: 0, has_more: false }),
+ }));
+ /* 这几条目标是造出来的,演示库里没有对应的抽帧,预览图会 404——而失败请求本身是另一
+ 条判据。这一条量的是封面那块的几何,给它一张能加载完的图就够。 */
+ await opened.page.route('**/poster**', (route) => route.fulfill({
+ status: 200, contentType: 'image/png', body: Buffer.from(PIXEL, 'base64'),
+ }));
+ await opened.page.reload({ waitUntil: 'load' });
+ await opened.page.locator('li[data-goal-id]').first().waitFor({ timeout: 15_000 });
+ await settle(opened.page);
+ return opened;
+}
+
describe('设计决定', () => {
let browser: Browser;
@@ -159,4 +187,30 @@ describe('设计决定', () => {
await opened.close();
}
});
+
+ it('高清版卡片的封面是 150px 宽的 16/10 方块,长标题从中间省略', { timeout: 60_000 }, async () => {
+ const long = '这是一个长到必须省略才放得下的文件名,用来盯住中间截断在 React 插进来的节点上也生效.mp4';
+ const opened = await openQualityGoals(browser, [
+ qualityGoal(1, long), qualityGoal(2, 'short.mp4'),
+ ]);
+ try {
+ const cover = opened.page.locator('li[data-goal-id="1"] button').first();
+ const box = await cover.evaluate((element) => ({
+ width: getComputedStyle(element).width,
+ ratio: getComputedStyle(element).aspectRatio,
+ }));
+ assert.equal(box.width, '150px');
+ assert.equal(box.ratio.replaceAll(' ', ''), '16/10');
+ // 中间截断由 `web/js/middle-truncate.js` 的 MutationObserver 接手:React 插进来的
+ // 节点不经过遗留层的渲染函数,观察器认不出它就只剩尾部省略。
+ const title = opened.page.locator('li[data-goal-id="1"] h3 button');
+ await title.waitFor({ timeout: 5_000 });
+ await opened.page.locator('li[data-goal-id="1"] h3 button.middle-truncated')
+ .waitFor({ timeout: 10_000 });
+ assert.ok((await title.textContent())!.includes('…'), '长标题没有被省略');
+ assert.deepEqual(opened.problems, []);
+ } finally {
+ await opened.close();
+ }
+ });
});
diff --git a/frontend/e2e/smoke.test.ts b/frontend/e2e/smoke.test.ts
index 658b8ead7..352f199f0 100644
--- a/frontend/e2e/smoke.test.ts
+++ b/frontend/e2e/smoke.test.ts
@@ -28,6 +28,8 @@ interface Route {
const heading = (page: Page, scope: string, name: string): Locator =>
page.locator(scope).getByRole('heading', { name, exact: true });
+const DESKTOP = VIEWPORTS.find((viewport) => !viewport.mobile)!;
+
/** 索引条目(`data-k`)或明确的空态,先出现哪个算哪个。选择器里就带 `:visible`:
* 不然 `.first()` 可能落在一个隐藏的匹配上,等它可见等到超时,主体其实早画好了。 */
const indexEntries = (page: Page): Locator =>
@@ -113,4 +115,49 @@ describe('路由冒烟', () => {
});
}
}
+
+ /* React 档的页面自己管取数:轮询跟着那棵根活,而不是跟着遗留层的「代」。遗留层换页时
+ 多数管理页直接 `innerHTML=`,根被挤出文档却照样活着——这一条盯的就是它有没有被卸掉。
+ 换页走 pushState + popstate:侧栏按钮、抽屉和浏览器后退最后走的都是这一条路。 */
+ it('离开活动页之后轮询停下,回到这一页又接上', { timeout: 120_000 }, async () => {
+ const opened = await visit(browser, '/activity', DESKTOP);
+ try {
+ const polls: string[] = [];
+ opened.page.on('request', (request) => {
+ if (request.url().includes('/api/tasks')) polls.push(request.url());
+ });
+ const waitForPolls = async (least: number, what: string) => {
+ for (let step = 0; step < 80; step += 1) {
+ if (polls.length >= least) return;
+ await opened.page.waitForTimeout(250);
+ }
+ assert.fail(`${what}:只看到 ${polls.length} 次 /api/tasks,要 ${least} 次`);
+ };
+ await expectBody(opened.page, '/activity',
+ [heading(opened.page, '#stats', '还没有任务记录')]);
+ // 先确认轮询真的在跑,否则下面「停下来了」在它从没开始时也成立。
+ await waitForPolls(2, '活动页的轮询没有跑起来');
+
+ await opened.page.evaluate(() => {
+ history.pushState({}, '', '/stats');
+ window.dispatchEvent(new PopStateEvent('popstate'));
+ });
+ await expectBody(opened.page, '/stats',
+ [opened.page.locator('#stats').getByText('馆藏视频', { exact: true })]);
+ await settle(opened.page);
+ const stopped = polls.length;
+ assert.equal(await opened.page.locator('#stats .peach-react').count(), 0,
+ '换页之后活动页的 React 根还留在管理区正文里');
+ await opened.page.waitForTimeout(3_000);
+ assert.equal(polls.length, stopped, '离开活动页之后 /api/tasks 还在轮询');
+
+ await opened.page.goBack();
+ await expectBody(opened.page, '/activity',
+ [heading(opened.page, '#stats', '还没有任务记录')]);
+ await waitForPolls(stopped + 2, '回到活动页之后轮询没有接上');
+ await assertHolds(opened.page, opened.problems, '/activity 换页往返');
+ } finally {
+ await opened.close();
+ }
+ });
});
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 69806e3f3..272587a58 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -6,7 +6,6 @@
"": {
"name": "peach-frontend",
"dependencies": {
- "@preact/signals": "2.11.2",
"@remixicon/react": "4.9.0",
"@tanstack/react-query": "5.102.8",
"d3-sankey": "0.12.3",
@@ -1081,32 +1080,6 @@
"node": "^20.19.0 || >=22.12.0"
}
},
- "node_modules/@preact/signals": {
- "version": "2.11.2",
- "resolved": "https://registry.npmjs.org/@preact/signals/-/signals-2.11.2.tgz",
- "integrity": "sha512-rVTRTt/T0HIRgbugwS5FigbfF/kfdEFYFtiqxa+lbpqTajepqnR0firuAS2iNdHyejWB7Yc9p9QePkVNBtTAwg==",
- "license": "MIT",
- "dependencies": {
- "@preact/signals-core": "^1.14.4"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/preact"
- },
- "peerDependencies": {
- "preact": ">= 10.25.0 || >=11.0.0-0"
- }
- },
- "node_modules/@preact/signals-core": {
- "version": "1.14.4",
- "resolved": "https://registry.npmjs.org/@preact/signals-core/-/signals-core-1.14.4.tgz",
- "integrity": "sha512-HNB6HYeYKhQbJ1aKl+YRjrS4+QWHLKX6qKoUsfS/m0vqzsVaEBiZiaKbG/e+NKk2ch5ALQr/ihWaMHxiCuuWHA==",
- "license": "MIT",
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/preact"
- }
- },
"node_modules/@react-types/shared": {
"version": "3.36.1",
"resolved": "https://registry.npmjs.org/@react-types/shared/-/shared-3.36.1.tgz",
diff --git a/frontend/package.json b/frontend/package.json
index 012cc366b..be8de0024 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -16,7 +16,6 @@
"e2e": "node --test --test-reporter=tap \"e2e/**/*.test.ts\""
},
"dependencies": {
- "@preact/signals": "2.11.2",
"@remixicon/react": "4.9.0",
"@tanstack/react-query": "5.102.8",
"d3-sankey": "0.12.3",
diff --git a/frontend/src/islands.ts b/frontend/src/islands.ts
index a7a4e8d3f..47802e89c 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('quality-goals', $('#stats'), props);
+ * await ui.mountIsland('scraping', $('#stats'), props);
*
* `mountIsland` 是 async 且**取完数才画**:遗留层已经铺了骨架,island 若先画一个空
* 容器再自己转圈,同一次进入就会出现两段等待态(`peach-web-ui` 明确禁止)。所以这里
@@ -26,19 +26,12 @@ import type { Attributes, ComponentType } from 'preact';
import { errorMessage } from './api';
import { Configuration, loadConfiguration } from './islands/configuration';
import type { ConfigurationData, ConfigurationProps } from './islands/configuration';
-import { QualityGoals, loadQualityGoals } from './islands/quality-goals';
-import type { QualityGoalsProps } from './islands/quality-goals';
-import type { QualityGoalsData } from './state/quality-goals';
import { Scraping, loadScraping } from './islands/scraping';
import type { ScrapingData, ScrapingProps } from './islands/scraping';
import { LibraryProcessing, loadLibraryProcessing } from './islands/library-processing';
import type { LibraryProcessingData, LibraryProcessingProps } from './islands/library-processing';
import type * as ReactBundle from '@peach/react';
-/* 跨岛共享状态的入口一起从这里出去。遗留层拿到的是一个 bundle,它有两种用法:
- * `mountIsland` 挂一屏,`refreshStore` 告诉已经挂着的那屏「数据变了」。
- * 怎么写一个 store 见 `./state/index.ts` 和 `docs/FRONTEND.md`。 */
-export { refreshStore, storeNames } from './state';
export { watchJob, followJobProgress, jobActivityHtml } from './jobs';
export { identityEvidenceHtml, reviewImageHtml, wireReviewPictures } from './review-evidence';
export { createReviewSelection, wireReviewSelection, updateReviewSticky, groupReviewRows } from './review-bulk';
@@ -52,7 +45,6 @@ export { catalogSuggestions, catalogEmptyHtml, emptyCatalogLayout } from './cata
export { syncSidebarSurface, sidebarTagCounts, sidebarHasCatalogContent } from './sidebar';
export { cleanupSkeletonHtml, cloudLocations, cloudPreferenceLocations, tasteHistoryGuideHtml, wireTasteHistoryGuide, TASTE_GUIDE_KEY } from './management';
export { resourceScanHtml } from './resource-sync';
-export type { StoreName } from './state';
/** 首屏取数的结果。`data` 与 `error` 恰有一个成立。 */
export interface IslandState<D> {
@@ -65,7 +57,7 @@ export interface IslandState<D> {
export interface IslandContracts {
'library-processing': { props: LibraryProcessingProps; data: LibraryProcessingData };
'scraping': { props: ScrapingProps; data: ScrapingData };
- 'quality-goals': { props: QualityGoalsProps; data: QualityGoalsData };
+ 'quality-goals': { props: ReactBundle.QualityGoalsProps; data: null };
configuration: { props: ConfigurationProps; data: ConfigurationData };
activity: { props: ReactBundle.ActivityProps; data: null };
}
@@ -93,7 +85,7 @@ type IslandDefinition<N extends IslandName> = PreactIsland<N> | ReactIsland;
const REGISTRY: { [N in IslandName]: IslandDefinition<N> } = {
'library-processing': { load: loadLibraryProcessing, component: LibraryProcessing },
'scraping': { load: loadScraping, component: Scraping },
- 'quality-goals': { load: loadQualityGoals, component: QualityGoals },
+ 'quality-goals': { react: 'quality-goals' },
configuration: { load: loadConfiguration, component: Configuration },
activity: { react: 'activity' },
};
diff --git a/frontend/src/islands/quality-goals.tsx b/frontend/src/islands/quality-goals.tsx
deleted file mode 100644
index 47b0f16bb..000000000
--- a/frontend/src/islands/quality-goals.tsx
+++ /dev/null
@@ -1,119 +0,0 @@
-/* 「高清版」管理页(`/quality-goals`)。第一个从 `web/app.js` 迁出来的页面。
- *
- * 选它是因为它的边界最干净:一个 GET(`/api/quality-goals`)、一个自己的容器、
- * 没有写入端点、没有轮询,样式在 `web/css/11-identity.css` 里已经是独立的 `.qualitylist`/
- * `.qualityitem`。迁移它不需要动别的页面,也不需要动样式。
- *
- * 列表数据不在这个文件里:它是共享状态,住在 `../state/quality-goals`,因为数据管理页
- * 的「高清版」卡片读的是同一个真相(原因见那个文件的开头)。这里只做两件
- * 事——首屏取数由 `loadQualityGoals` 发起(`mountIsland` 等它落地才画),画的时候读
- * `qualityGoals` 这个 signal,所以数据之后再变(遗留层写完通知、别处触发刷新)这一屏
- * 自己就更新了,不用重新挂载。
- *
- * 遗留层那几个返回 HTML 的助手(番号标题、来源徽标)由 props 传进来,不在这里重写:
- * 它们是全站语义契约的唯一实现,抄一份就会漂。等下一批页面迁移时再把它们提升成
- * TS 组件,那时 props 一起收窄。 */
-import { LOC, fmtDur, fmtSize } from '@peach/legacy/core';
-import { collectionSummaryHtml, emptyStateHtml, noteHtml } from '@peach/legacy/ui';
-
-import { qualityGoals, refreshQualityGoals } from '../state/quality-goals';
-import type { QualityGoal, QualityGoalsData } from '../state/quality-goals';
-
-/** 仍由遗留层提供的能力。全是纯函数或导航,island 不持有它们的状态。 */
-export interface QualityGoalsProps {
- /** 打开作品详情(遗留层的整页视图,含播放器与队列)。 */
- openItem(id: number): void;
- /** 番号 + 版次徽章 + 标题的 HTML。非 JAV 条目退化成转义后的文件名。 */
- javTitleHtml(item: QualityGoal): string;
- /** 同一条目的纯文本形态,用于无障碍名称。 */
- javDisplayName(item: QualityGoal): string;
- /** 来源徽标(含计费标记)的 HTML。 */
- srcBadge(location: string, cost: string): string;
-}
-
-/** 首屏取数。强制重取而不是吃缓存:`/quality-goals` 在路由表里是 `refresh:'reopen'`,
- * 刷新这一页要的就是新数据。结果写进共享 store,返回值只是给 `mountIsland` 的落地信号。 */
-export const loadQualityGoals = (
- _props: QualityGoalsProps,
- signal: AbortSignal,
-): Promise<QualityGoalsData> => refreshQualityGoals(signal);
-
-/** 封面优先用番号封面,没有就退回第 4 张海报,两者都取不到时把 img 摘掉。 */
-const previewUrl = (item: QualityGoal): string => item.has_cover
- ? `/cover?code=${encodeURIComponent(item.code ?? '')}`
- : `/poster?id=${item.id}&c=4`;
-
-/** 只接遗留助手,数据从 store 读。`mountIsland` 仍会把 `{data, error}` 传进来——那是所有
- * island 共用的首屏契约——由 store 支撑的这一个不看它们:同一份数据两个来源,刷新之后
- * 就会各说一套。 */
-export function QualityGoals(
- { openItem, javTitleHtml, javDisplayName, srcBadge }: QualityGoalsProps,
-) {
- const { data, error } = qualityGoals.value;
- if (error) {
- return (
- <div
- class="qualitylist"
- dangerouslySetInnerHTML={{ __html: noteHtml(error, { variant: 'error', label: '读取失败' }) }}
- />
- );
- }
- const items = data?.items ?? [];
- if (!items.length) {
- return (
- <div
- class="qualitylist"
- dangerouslySetInnerHTML={{
- __html: emptyStateHtml('sparkles', '没有标记中的高清版目标',
- '现有版本都已满足条件,或还没有加入追踪。'),
- }}
- />
- );
- }
- return (
- <div class="quality-workspace">
- <div dangerouslySetInnerHTML={{ __html: collectionSummaryHtml('待升级', `${data?.total ?? items.length} 部作品`) }} />
- <div class="qualitylist">
- {items.map(item => (
- <article class="qualityitem" key={item.id}>
- <button
- class="qualitycover"
- type="button"
- aria-label={`打开 ${javDisplayName(item)}`}
- onClick={() => openItem(item.id)}
- >
- <span class="qualityfallback">暂无预览</span>
- <img
- src={previewUrl(item)}
- alt=""
- loading="lazy"
- onError={event => event.currentTarget.remove()}
- />
- </button>
- <div class="qualitybody">
- <h3>
- <button
- type="button"
- data-middle-truncate
- onClick={() => openItem(item.id)}
- dangerouslySetInnerHTML={{ __html: javTitleHtml(item) }}
- />
- </h3>
- <p class="mono">
- {/* Preact 插原始 HTML 必须有个宿主元素,而 `.src` 在遗留版本里是这个
- flex 容器的直接子项(20×20 的 grid 盒)。`display:contents` 让宿主
- 从布局里消失,徽标的对齐与间距保持不变。 */}
- <span style="display:contents" dangerouslySetInnerHTML={{ __html: srcBadge(item.location, item.cost) }} />
- <span>{LOC[item.location] ?? item.location}</span>
- <span>{fmtDur(item.duration)}</span>
- <span>{fmtSize(item.size ?? 0)}</span>
- </p>
- {item.reason ? <p class="qualityreason">{item.reason}</p> : null}
- </div>
- <footer class="qualityactions"><button type="button" class="geist-button" onClick={() => openItem(item.id)}>查看版本</button></footer>
- </article>
- ))}
- </div>
- </div>
- );
-}
diff --git a/frontend/src/react/activity/activity-page.tsx b/frontend/src/react/activity/activity-page.tsx
index c1044248a..874e82b87 100644
--- a/frontend/src/react/activity/activity-page.tsx
+++ b/frontend/src/react/activity/activity-page.tsx
@@ -19,6 +19,7 @@ import type { ActivityProps } from '../bundle';
import { EmptyState } from '../components/empty-state';
import { LoadingDots } from '../components/loading-dots';
import { Note } from '../components/note';
+import { Page } from '../components/page';
import { Progress } from '../components/progress';
import {
elapsedText, fetchTasks, momentText, pollInterval, statusLabel, summaryText,
@@ -110,11 +111,6 @@ function RunList({ live = false, children }: { live?: boolean; children: ReactNo
);
}
-/** 页面正文的一条窄列,与管理区标题同一条中线(`--board-content`)。 */
-function Page({ children }: { children: ReactNode }) {
- return <div className="mx-auto flex w-full max-w-board flex-col gap-8">{children}</div>;
-}
-
export function ActivityPage(_props: ActivityProps) {
const tasks = useQuery({
queryKey: TASKS_KEY,
diff --git a/frontend/src/react/boardui/ORIGIN.md b/frontend/src/react/boardui/ORIGIN.md
index 1db033dc3..e62930622 100644
--- a/frontend/src/react/boardui/ORIGIN.md
+++ b/frontend/src/react/boardui/ORIGIN.md
@@ -44,5 +44,6 @@
| 空态 | `../components/empty-state.tsx` 用一圈 `separator-border` 框住图标、标题与说明 | 注册表里没有空态组件 |
| 等待点 | `../components/loading-dots.tsx` 三颗点,错相由 `../styles.css` 的 `dot-wave-*` 给 | 注册表里没有等待态组件,没有总量时也不画进度条 |
| 分区标题与任务卡 | `../activity/activity-page.tsx` 自己用 `title-*` 字阶和 `separator-border` 的圆角框排,失败那张换成 `border-error-default` | 注册表里没有分区标题;卡片条目都带自己的头尾结构与操作区 |
+| 汇总行与卡片网格 | `../quality-goals/quality-goals-page.tsx` 的汇总一行用 `title-2-semibold` 配正文字阶排;网格取 `../styles.css` 的 `card-grid`,封面取 `w-card-cover` 与 `aspect-card-cover` | 注册表里没有列表页的汇总行;`auto-fill` 网格与定宽封面在工具类里没有对应档位,写成 `@utility` 与 `@theme` 而不是任意值 |
| 折叠 | `../settings/section.tsx` 的 `Disclosure` 用原生 `details`,开合调 `/js/ui-components.js` 的 `setCollapseOpen`,高度按共用 Collapse 的 `.fcollapse` 过渡(`.2s ease-in-out`) | 注册表里没有折叠组件;原生 `details` 不过渡高度 |
| 图标选择 | `../settings/library-icon-picker.tsx` 用 React Aria 的 `Popover`、`RadioGroup` 组合,面板取 `menu-styles.ts` 的外观 | 注册表里没有网格单选的弹出面板 |
diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.ts
index 71048e1d2..ac3e8ef4f 100644
--- a/frontend/src/react/bundle.d.ts
+++ b/frontend/src/react/bundle.d.ts
@@ -3,6 +3,7 @@
* Preact 那一侧按 `@peach/react` 引用这份产物,构建时改写成 `/dist/peach-react.js`;
* `entry.tsx` 按这里的签名实现,两边的类型检查各自对照同一份声明。
* 配置数据的形状以 `/api/configuration`(`src/peach/routes_configuration.py`)为准。 */
+import type { QualityGoal } from './quality-goals/quality-goals';
export interface AccessState { mode: 'open' | 'password' | 'legacy' | 'locked'; revision: string }
@@ -99,8 +100,21 @@ export interface ReactPage<P> {
/** 活动页没有来自遗留层的助手:整页的数据都来自 `/api/tasks`。 */
export type ActivityProps = Record<string, never>;
+/** 高清版目标页仍由遗留层提供的能力。全是纯函数或导航,页面不持有它们的状态。 */
+export interface QualityGoalsProps {
+ /** 打开作品详情(遗留层的整页视图,含播放器与队列)。 */
+ openItem(id: number): void;
+ /** 番号 + 版次徽章 + 标题的 HTML。非 JAV 条目退化成转义后的文件名。 */
+ javTitleHtml(item: QualityGoal): string;
+ /** 同一条目的纯文本形态,用于无障碍名称。 */
+ javDisplayName(item: QualityGoal): string;
+ /** 来源徽标(含计费标记)的 HTML。 */
+ srcBadge(location: string, cost: string): string;
+}
+
export interface ReactPages {
activity: ReactPage<ActivityProps>;
+ 'quality-goals': ReactPage<QualityGoalsProps>;
}
export declare const pages: ReactPages;
diff --git a/frontend/src/react/components/page.tsx b/frontend/src/react/components/page.tsx
new file mode 100644
index 000000000..f1295440d
--- /dev/null
+++ b/frontend/src/react/components/page.tsx
@@ -0,0 +1,9 @@
+/* 管理区整页正文的那一条窄列。
+ *
+ * 宽度取 `max-w-board`(`../styles.css` 把它接到 `web/board.css` 的 `--board-content`),
+ * 页面标题 `#manageTitle` 钉的是同一个数:正文自己写一个像素值,标题与正文就会各走一条中线。 */
+import type { ReactNode } from 'react';
+
+export function Page({ children }: { children: ReactNode }) {
+ return <div className="mx-auto flex w-full max-w-board flex-col gap-8">{children}</div>;
+}
diff --git a/frontend/src/react/entry.tsx b/frontend/src/react/entry.tsx
index fa527d466..65cd038fc 100644
--- a/frontend/src/react/entry.tsx
+++ b/frontend/src/react/entry.tsx
@@ -9,6 +9,8 @@ import { createRoot } from 'react-dom/client';
import { ActivityPage } from './activity/activity-page';
import { prefetchTasks } from './activity/tasks';
import type * as Bundle from './bundle';
+import { QualityGoalsPage } from './quality-goals/quality-goals-page';
+import { prefetchQualityGoals } from './quality-goals/quality-goals';
import { queryClient } from './query';
import { GeneralSettings } from './settings/general-settings';
import { MaintenanceSettings } from './settings/maintenance-settings';
@@ -47,6 +49,9 @@ function mounter<P extends object>(Component: ComponentType<P>) {
/** 整页归 React 的那些页面,按名字给遗留层的 React 档用。 */
export const pages: Bundle.ReactPages = {
activity: { prefetch: (_props, signal) => prefetchTasks(signal), mount: mounter(ActivityPage) },
+ 'quality-goals': {
+ prefetch: (_props, signal) => prefetchQualityGoals(signal), mount: mounter(QualityGoalsPage),
+ },
};
export const mountGeneralSettings: typeof Bundle.mountGeneralSettings = mounter(GeneralSettings);
diff --git a/frontend/src/react/quality-goals/quality-goals-page.tsx b/frontend/src/react/quality-goals/quality-goals-page.tsx
new file mode 100644
index 000000000..b7570e5c9
--- /dev/null
+++ b/frontend/src/react/quality-goals/quality-goals-page.tsx
@@ -0,0 +1,101 @@
+/* 高清版目标页:账本里标记为「还该有更好一版」的那些作品。
+ *
+ * 一屏回答两件事:还欠多少部、每一部欠在哪里。所以卡片上除了标题就只有来源、时长、
+ * 体积和判定原因——决定要不要去找更好一版,看的就是这几项。
+ *
+ * 番号标题与来源徽标由遗留层以 HTML 字符串传进来:它们是全站语义契约的唯一实现,
+ * 在这里重写一份就会漂。时长、体积、来源名走 `/js/core.js` 同一套格式化口径,同理。 */
+import { RiSparklingLine } from '@remixicon/react';
+import { useQuery } from '@tanstack/react-query';
+
+import { LOC, fmtDur, fmtSize } from '@peach/legacy/core';
+
+import { Button } from '@/components/base/buttons/button';
+
+import { errorMessage } from '../../api';
+import type { QualityGoalsProps } from '../bundle';
+import { EmptyState } from '../components/empty-state';
+import { Note } from '../components/note';
+import { Page } from '../components/page';
+import {
+ fetchQualityGoals, previewUrl, QUALITY_GOALS_KEY, type QualityGoal,
+} from './quality-goals';
+
+/** 一部待升级的作品一张卡。 */
+function GoalCard(
+ { item, openItem, javTitleHtml, javDisplayName, srcBadge }: { item: QualityGoal } & QualityGoalsProps,
+) {
+ const open = () => openItem(item.id);
+ return (
+ <li data-goal-id={item.id} className="flex min-w-0 flex-col gap-3 rounded-2xl border border-separator-border p-3">
+ <div className="flex min-w-0 gap-4">
+ {/* 居中那句占位文字用 `inline-grid`:旧样式表里 `.grid` 是海报墙那条带列宽和
+ 间距的规则,排在 `peach-react.css` 后面会赢。这颗按钮是 flex 子项,行内格
+ 会被块级化,算出来仍是 `display:grid`。 */}
+ <button type="button" onClick={open} aria-label={`打开 ${javDisplayName(item)}`}
+ className="relative inline-grid w-card-cover shrink-0 aspect-card-cover cursor-pointer place-items-center overflow-hidden rounded-lg bg-black">
+ {/* 图片取不到时(onError 把 img 摘掉)露出来的就是这句:一块纯黑说不出是没封面
+ 还是还没加载完。 */}
+ <span className="text-caption-1-regular text-text-tertiary">暂无预览</span>
+ <img src={previewUrl(item)} alt="" loading="lazy"
+ onError={(event) => event.currentTarget.remove()}
+ className="absolute inset-0 size-full object-contain" />
+ </button>
+ <div className="flex min-w-0 flex-col gap-1.5">
+ <h3 className="text-title-1-medium text-text-primary">
+ <button type="button" data-middle-truncate onClick={open}
+ className="block w-full cursor-pointer text-left"
+ dangerouslySetInnerHTML={{ __html: javTitleHtml(item) }} />
+ </h3>
+ <p className="flex flex-wrap items-center gap-2 text-caption-1-regular text-text-secondary">
+ {/* 插原始 HTML 要有个宿主元素,而来源徽标在遗留版本里是这个 flex 容器的直接
+ 子项。`contents` 让宿主从布局里消失,徽标的对齐与间距保持不变。 */}
+ <span className="contents" dangerouslySetInnerHTML={{ __html: srcBadge(item.location, item.cost) }} />
+ <span>{LOC[item.location] ?? item.location}</span>
+ <span>{fmtDur(item.duration)}</span>
+ <span>{fmtSize(item.size ?? 0)}</span>
+ </p>
+ {item.reason ? <p className="text-caption-1-regular text-text-secondary">{item.reason}</p> : null}
+ </div>
+ </div>
+ <footer className="flex justify-end">
+ <Button variant="secondary" size="small" onClick={open}>查看版本</Button>
+ </footer>
+ </li>
+ );
+}
+
+export function QualityGoalsPage(props: QualityGoalsProps) {
+ const goals = useQuery({ queryKey: QUALITY_GOALS_KEY, queryFn: ({ signal }) => fetchQualityGoals(signal) });
+ const data = goals.data;
+ if (!data) {
+ return (
+ <Page>
+ <Note tone="error" title="读取失败">{goals.error ? errorMessage(goals.error) : '读取高清版目标失败'}</Note>
+ </Page>
+ );
+ }
+ const items = data.items || [];
+ if (!items.length) {
+ return (
+ <Page>
+ <EmptyState icon={RiSparklingLine} title="没有标记中的高清版目标">
+ 现有版本都已满足条件,或还没有加入追踪。
+ </EmptyState>
+ </Page>
+ );
+ }
+ return (
+ <Page>
+ {/* 总数取服务端的 `total` 而不是这一页的条数:`limit` 截断时两者不是一个数,
+ 而这一行要回答的是「一共还欠多少部」。 */}
+ <p className="text-body-2-regular text-text-secondary">
+ <strong className="text-title-2-semibold text-text-primary">待升级</strong>
+ {' · '}{data.total} 部作品
+ </p>
+ <ul className="card-grid gap-5">
+ {items.map((item) => <GoalCard key={item.id} item={item} {...props} />)}
+ </ul>
+ </Page>
+ );
+}
diff --git a/frontend/src/react/quality-goals/quality-goals.ts b/frontend/src/react/quality-goals/quality-goals.ts
new file mode 100644
index 000000000..bcd7ce25a
--- /dev/null
+++ b/frontend/src/react/quality-goals/quality-goals.ts
@@ -0,0 +1,54 @@
+/* 高清版目标的数据契约与折算:`/api/quality-goals` 一次请求供整页使用。
+ *
+ * 端点在 `frontend/src` 里只在这里声明一次(`tests/test_frontend_build.py` 盯着)。
+ * 数据管理页那张「高清版」卡片要的是同一个真相的 `total`,它随那一页迁到 React 时读
+ * 下面这个 `QUALITY_GOALS_KEY`,而不是另发一次请求——同一个真相取两次,两处显示的数
+ * 就可能对不上。 */
+import { apiGet } from '../../api';
+import { queryClient } from '../query';
+
+/** 上限沿用服务端的 200:`limit` 也钉在 200,再大只会被截。 */
+export const QUALITY_GOALS_URL = '/api/quality-goals?limit=200';
+/** 整页共用这一个键。 */
+export const QUALITY_GOALS_KEY = ['quality-goals'] as const;
+
+/** `/api/quality-goals` 的单条目。字段与 `web_contract.q_quality_goals` 对齐。 */
+export interface QualityGoal {
+ id: number;
+ name: string;
+ code: string | null;
+ location: string;
+ size: number | null;
+ duration: number | null;
+ reason: string | null;
+ cost: string;
+ has_thumb: boolean;
+ has_cover: boolean;
+}
+
+export interface QualityGoalsData {
+ total: number;
+ items: QualityGoal[];
+ offset: number;
+ has_more: boolean;
+}
+
+export const fetchQualityGoals = (signal?: AbortSignal) =>
+ apiGet<QualityGoalsData>(QUALITY_GOALS_URL, signal);
+
+/** 首屏:取完数才画。
+ *
+ * 不给 `staleTime`,所以每次进这一页都重新取。路由表里 `/quality-goals` 是
+ * `refresh:'reopen'`——刷新就是重新进来一次,那时要的是新数据,不是几分钟前的缓存。
+ * 中止时 `fetchQuery` 把 `AbortError` 抛回给挂载方,它据此放弃这一次。 */
+export async function prefetchQualityGoals(signal: AbortSignal): Promise<void> {
+ await queryClient.fetchQuery({
+ queryKey: QUALITY_GOALS_KEY,
+ queryFn: () => fetchQualityGoals(signal),
+ });
+}
+
+/** 封面优先用番号封面,没有就退回第 4 张海报。两者都取不到时由卡片把 img 摘掉。 */
+export const previewUrl = (item: QualityGoal): string => item.has_cover
+ ? `/cover?code=${encodeURIComponent(item.code ?? '')}`
+ : `/poster?id=${item.id}&c=4`;
diff --git a/frontend/src/react/styles.css b/frontend/src/react/styles.css
index 642a9bd83..1175ec303 100644
--- a/frontend/src/react/styles.css
+++ b/frontend/src/react/styles.css
@@ -7,8 +7,8 @@
* - 只扫描 `src/react/`。Preact 与遗留层里的 `hidden`、`flex` 这类类名不生成工具类,
* 页面上生成出来的全局类名只来自 React 子树。
* - 生成的类名避开旧样式表的类选择器。旧样式表排在后面,同名时旧规则胜出;网格容器放在 flex
- * 父元素里写 `inline-grid`(flex 子项块级化后按 `display:grid` 计算),注释里的 `ring` 不生成工具类
- * (`test/legacy-class-names.test.ts`)。
+ * 父元素里写 `inline-grid`(flex 子项块级化后按格布局计算),注释里扫到的 `ring` 与
+ * `grid` 不生成工具类(`test/legacy-class-names.test.ts`)。
* - Preflight 与根元素基线限定在 `.peach-react` 容器里。 */
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/utilities.css" source(none);
@@ -17,7 +17,10 @@
@import "./boardui/styles/typography.css";
@source "./";
+/* 扫描不分代码与注释:这两个词各在注释里出现过一次,生成出来就和旧样式表的 `.ring`、
+ * `.grid` 同名。React 子树两个类都不用,直接不生成。 */
@source not inline("ring");
+@source not inline("grid");
@custom-variant dark (&:where(.dark, .dark *));
@@ -25,6 +28,17 @@
* (`#manageTitle`) 也钉在同一个数上;这里只把它接成 `max-w-board`,不另写一个像素值。 */
@theme {
--container-board: var(--board-content, 1120px);
+ /* 列表卡片左侧那块封面:宽度与 16/10 的比例在高清版、重复项、复核对照上是同一套几何,
+ * 所以取一个共用的名字,而不是每页各写一次像素值。 */
+ --container-card-cover: 150px;
+ --aspect-card-cover: 16 / 10;
+}
+
+/* 卡片网格:按可用宽度自动折行,一列放不下 360px 时自己退成一列。工具类里没有
+ * `auto-fill` 这一档,写成 utility,类名照常由 Tailwind 生成,也就不必写任意值。 */
+@utility card-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
}
/* 后台任务仍在推进、又说不出总量时的 Loading Dots。工具类里没有 animation-delay 这一档,
diff --git a/frontend/src/state/index.ts b/frontend/src/state/index.ts
deleted file mode 100644
index bb5e262de..000000000
--- a/frontend/src/state/index.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-/* 跨岛共享状态的登记处(ADR-0022)。
- *
- * 约定只有三条,都是为了让「这份数据现在是什么」永远只有一个答案:
- *
- * 1. **一份共享数据一个文件**,文件名就是它的名字。岛自己的临时状态(展开、悬停、
- * 第几页)继续用 hooks,不进这里——那些东西没有第二个读者,搬进来只会让本来
- * 局部的东西变全局。
- * 2. **导出 `computed` 视图,不导出可写的 signal。** 写入只能通过该文件导出的函数,
- * 所以「谁改了它」在源码里数得出来。组件里直接赋值会抛 TypeError。
- * 3. **取数归 store。** `ensure` 是「读一次就够」,已有数据直接给;`refresh` 是
- * 「重新取」,页面刷新和遗留层写完数据之后走它。
- *
- * 遗留层(`web/app.js`)改完数据要通知岛时,用下面的 `refreshStore(name)`:它按名字
- * 拿 store,不需要知道函数名,和 `mountIsland(name, ...)` 同一种用法。挂载中的岛靠
- * signal 自己重画,不需要被重新挂载一遍。 */
-import { refreshQualityGoals, resetQualityGoals } from './quality-goals';
-
-const STORES = {
- 'quality-goals': { refresh: refreshQualityGoals, reset: resetQualityGoals },
-} as const;
-
-export type StoreName = keyof typeof STORES;
-
-/** 已登记的共享 store。遗留层与测试用它核对名字,不必知道注册表结构。 */
-export const storeNames = (): StoreName[] => Object.keys(STORES) as StoreName[];
-
-/** 让一份共享数据重新取一次。名字不认识时抛错,不静默什么都不做。
- *
- * 返回的 promise 在取数失败时**不**抛:失败已经落进 store 的错误态、显示在屏幕上了,
- * 而调用点在遗留层是 fire-and-forget,再抛一次只会变成没人接的 rejection。 */
-export async function refreshStore(name: StoreName): Promise<boolean> {
- const store = STORES[name] as { refresh(): Promise<unknown> } | undefined;
- if (!store) throw new Error(`未登记的共享 store:${String(name)}`);
- try {
- await store.refresh();
- return true;
- } catch {
- return false;
- }
-}
-
-/** 把所有共享 store 清回未读状态。只给测试之间做隔离用,所以不从 `islands.ts` 再导出
- * 一次——产物的对外接口只有遗留层真正要调的那几个。 */
-export function resetStores(): void {
- for (const store of Object.values(STORES)) store.reset();
-}
diff --git a/frontend/src/state/quality-goals.ts b/frontend/src/state/quality-goals.ts
deleted file mode 100644
index e594a2978..000000000
--- a/frontend/src/state/quality-goals.ts
+++ /dev/null
@@ -1,106 +0,0 @@
-/* 共享状态:高清版目标(`/api/quality-goals`)。
- *
- * 这份数据在界面上有两个读者,而且是两个不同的表面:
- *
- * - `/quality-goals` 整页列表(已迁成 island),要 `items`;
- * - `/data-cleanup` 数据管理页上的「高清版」卡片(`N 个待升级`),只要一个 `total`,
- * 为此单独发了 `/api/quality-goals?limit=1`。
- *
- * 同一个真相取两次,谁先谁后不定,两处显示的数就可能不一致。所以它归这里:一份
- * 数据只有一个家,读者订阅同一个 signal,取数由下面这几个函数发起。数据管理页还在
- * `web/app.js` 里,它接进来的方式是 `refreshStore()`(见 `./index.ts`),本轮不动它。
- *
- * 写入口只有 `refresh` / `ensure` / `reset` 三个。可写的 signal 不导出:组件拿到的是
- * `computed` 视图,直接赋值在运行期就抛 TypeError,不是靠约定。 */
-import { computed, signal } from '@preact/signals';
-import type { ReadonlySignal } from '@preact/signals';
-
-import { apiGet, errorMessage } from '../api';
-
-/** `/api/quality-goals` 的单条目。字段与 `web_contract.q_quality_goals` 对齐。 */
-export interface QualityGoal {
- id: number;
- name: string;
- code: string | null;
- location: string;
- size: number | null;
- duration: number | null;
- reason: string | null;
- cost: string;
- has_thumb: boolean;
- has_cover: boolean;
-}
-
-export interface QualityGoalsData {
- total: number;
- items: QualityGoal[];
- offset: number;
- has_more: boolean;
-}
-
-/** `data` 与 `error` 恰有一个成立,和 island 首屏状态同一口径。 */
-export interface QualityGoalsState {
- data: QualityGoalsData | null;
- error: string;
-}
-
-/** 上限沿用遗留层的 200:服务端 `limit` 也钉在 200,再大只会被截。 */
-export const QUALITY_GOALS_URL = '/api/quality-goals?limit=200';
-
-const BLANK: QualityGoalsState = { data: null, error: '' };
-
-const state = signal<QualityGoalsState>(BLANK);
-
-/** 每次写入带一个序号:迟到的响应不许盖住比它更新的那一次。 */
-let issued = 0;
-/** `ensure` 的合流点。多个岛同时挂载时只发一个请求,而不是各发一个。 */
-let shared: Promise<QualityGoalsData> | null = null;
-
-/** 当前的读取结果。组件读它就自动订阅,数据变了自己重画,不必重新挂载。 */
-export const qualityGoals: ReadonlySignal<QualityGoalsState> = computed(() => state.value);
-
-/** 待升级总数;还没读到过是 `null`——那和「读到 0 个」是两件事,不能都显示成 0。 */
-export const qualityGoalsTotal: ReadonlySignal<number | null> = computed(
- () => state.value.data?.total ?? null,
-);
-
-/** 丢掉已读到的一切,下一次 `ensure` 会重新取。测试之间用它隔离,遗留层不用。 */
-export function resetQualityGoals(): void {
- issued += 1;
- shared = null;
- state.value = BLANK;
-}
-
-/** 强制重取一次。
- *
- * island 的首屏走这里而不是 `ensure`:`/quality-goals` 在路由表里是 `refresh:'reopen'`,
- * 刷新就是重新进这一页,那时候要的是新数据,不是缓存。
- *
- * `abort` 归调用方所有(`mountIsland` 在卸载时中止它)。中止不写错误态:页面是被用户
- * 换掉的,屏幕上那份数据仍然有效,标成失败反而是谎报。 */
-export async function refreshQualityGoals(abort?: AbortSignal): Promise<QualityGoalsData> {
- const token = (issued += 1);
- try {
- const data = await apiGet<QualityGoalsData>(QUALITY_GOALS_URL, abort);
- if (token === issued) state.value = { data, error: '' };
- return data;
- } catch (cause) {
- if (!abort?.aborted && token === issued) {
- state.value = { data: null, error: errorMessage(cause) };
- }
- throw cause;
- }
-}
-
-/** 读一次就够的读者走这里:已经有数据就直接给,没有才取。
- *
- * 不收 `AbortSignal`:这个请求归 store,不归第一个碰上它的调用方。让 A 的离场中止掉
- * B 也在等的那个请求,是把「共用」变成「谁先来谁负责」。 */
-export async function ensureQualityGoals(): Promise<QualityGoalsData> {
- const cached = state.value.data;
- if (cached) return cached;
- if (!shared) {
- shared = refreshQualityGoals().finally(() => { shared = null; });
- }
- return shared;
-}
diff --git a/frontend/test/helpers.ts b/frontend/test/helpers.ts
index 23dad448a..2969cae9c 100644
--- a/frontend/test/helpers.ts
+++ b/frontend/test/helpers.ts
@@ -1,75 +1,14 @@
import { vi } from 'vitest';
-import type { QualityGoalsProps } from '../src/islands/quality-goals';
-import { refreshQualityGoals } from '../src/state/quality-goals';
-import type { QualityGoal, QualityGoalsData } from '../src/state/quality-goals';
+import type { LibraryProcessingData, LibraryProcessingProps } from '../src/islands/library-processing';
-export const goal = (overrides: Partial<QualityGoal> = {}): QualityGoal => ({
- id: 1,
- name: 'one.mp4',
- code: null,
- location: 'local',
- size: 2147483648,
- duration: 3725,
- reason: null,
- cost: 'free',
- has_thumb: true,
- has_cover: false,
- ...overrides,
-});
+/** 扫描与采集任务的一份状态。默认是闲置,用例按需要改成失败并带上可辨认的原因。 */
+export const processing = (
+ overrides: Partial<LibraryProcessingData> = {},
+): LibraryProcessingData => ({ status: 'idle', ...overrides });
-export const payload = (items: QualityGoal[]): QualityGoalsData => ({
- total: items.length,
- items,
- offset: 0,
- has_more: false,
-});
-
-/** 遗留层传进来的那几个助手。测试里换成可辨认的最小实现,断言只看 island 是否用了它们。
- *
- * `javTitleHtml` 是 spy:它只在渲染时被调用,所以「组件有没有重画」可以直接数它的调用
- * 次数,不必从 DOM 反推。 */
-export const legacyProps = () => {
- const openItem = vi.fn<(id: number) => void>();
- const javTitleHtml = vi.fn<(item: QualityGoal) => string>(
- item => `<strong class="javcode">${item.name}</strong>`,
- );
- const props: QualityGoalsProps = {
- openItem,
- javTitleHtml,
- javDisplayName: item => `名称 ${item.name}`,
- srcBadge: (location, cost) => `<span class="src ${cost}" data-location="${location}"></span>`,
- };
- return { ...props, openItem, javTitleHtml };
-};
-
-/** 一次就兑现的 fetch 替身。 */
-export const okFetch = (body: unknown) => vi.fn(async (_input: string, _init?: RequestInit) => (
- { ok: true, status: 200, json: async () => body }
-));
-
-/** 服务端明确回了非 2xx;`message` 就是界面上该出现的那句话。 */
-export const failFetch = (status: number, message: string) => vi.fn(
- async (_input: string, _init?: RequestInit) => (
- { ok: false, status, json: async () => ({ message }) }
- ),
-);
-
-/** 把共享 store 灌成「已经读到这些目标」。走 store 自己的写入口,不直接动 signal。 */
-export async function seedGoals(items: QualityGoal[]): Promise<void> {
- vi.stubGlobal('fetch', okFetch(payload(items)));
- await refreshQualityGoals();
-}
-
-/** 把共享 store 灌成失败态。`refresh` 会重新抛出,这里咽掉:调用点要的是那个状态。 */
-export async function seedGoalsError(message: string, status = 500): Promise<void> {
- vi.stubGlobal('fetch', failFetch(status, message));
- try {
- await refreshQualityGoals();
- } catch {
- // 失败已经落进 store,正是这里要的结果。
- }
-}
+/** 遗留层传给 Preact 档的助手。换成可辨认的最小实现,断言只看 island 是否用了它们。 */
+export const legacyProps = (): LibraryProcessingProps => ({ toast: 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 acb9d9475..3eeec1a92 100644
--- a/frontend/test/islands.test.ts
+++ b/frontend/test/islands.test.ts
@@ -3,9 +3,8 @@ import { afterEach, beforeAll, describe, expect, it, vi } from 'vitest';
import { islandMounted, islandNames, mountIsland, unmountIsland } from '../src/islands';
import { queryClient } from '../src/react/query';
-import { resetStores } from '../src/state';
-import { deferredFetch, goal, legacyProps, payload, seedGoals } from './helpers';
+import { deferredFetch, legacyProps, processing } from './helpers';
// React 档挂的是一棵真的 React 根,更新要在 `act` 里落地,否则断言读到的是上一帧。
(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
@@ -13,16 +12,14 @@ import { deferredFetch, goal, legacyProps, payload, seedGoals } from './helpers'
const container = () => {
const el = document.createElement('div');
// 遗留层进入页面时先铺骨架,island 接手的容器里已经有东西。
- el.innerHTML = '<div class="geist-skeleton" data-skeleton="cards">正在读取高清版目标</div>';
+ el.innerHTML = '<div class="geist-skeleton" data-skeleton="cards">正在读取处理进度</div>';
document.body.append(el);
return el;
};
afterEach(() => {
document.body.innerHTML = '';
- // 共享 store 是模块级的,会活过单个用例;不清就变成用例之间的隐藏耦合。
- resetStores();
- // React 档的首屏落在共用的 Query 缓存里,同样活过单个用例。
+ // React 档的首屏落在共用的 Query 缓存里,它是模块级的,会活过单个用例。
queryClient.clear();
vi.unstubAllGlobals();
});
@@ -51,16 +48,16 @@ describe('island 注册表', () => {
describe('mountIsland', () => {
it('取数期间保留遗留骨架,数据到位才一次性换掉', async () => {
- const fetch = deferredFetch(payload([goal()]));
+ const fetch = deferredFetch(processing());
fetch.install();
const el = container();
- const mounting = mountIsland('quality-goals', el, legacyProps());
+ const mounting = mountIsland('library-processing', 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('.qualityitem')).toHaveLength(1);
+ expect(el.querySelectorAll('.library-processing')).toHaveLength(1);
});
it('首屏取数失败时画出原因,不留在骨架上', async () => {
@@ -70,44 +67,44 @@ describe('mountIsland', () => {
json: async () => ({ message: '账本当前只能浏览' }),
})));
const el = container();
- await mountIsland('quality-goals', el, legacyProps());
+ await mountIsland('library-processing', el, legacyProps());
expect(el.querySelector('.geist-note-error')?.textContent).toContain('账本当前只能浏览');
});
it('取数期间用户走开就不画:遗留层换页的判据是代,不是信号', async () => {
- const fetch = deferredFetch(payload([goal()]));
+ const fetch = deferredFetch(processing());
fetch.install();
const el = container();
let current = true;
- const mounting = mountIsland('quality-goals', el, legacyProps(), {
+ const mounting = mountIsland('library-processing', el, legacyProps(), {
isCurrent: () => current,
});
await Promise.resolve();
current = false;
fetch.resolve();
await mounting;
- expect(el.querySelector('.qualityitem'), '页面已经换掉,数据不能盖上去').toBeNull();
+ expect(el.querySelector('.library-processing'), '页面已经换掉,数据不能盖上去').toBeNull();
expect(el.querySelector('[data-skeleton]')).not.toBeNull();
});
it('重新挂载时上一次的迟到响应不再写进容器', async () => {
- const stale = deferredFetch(payload([goal({ id: 7, name: 'stale.mp4' })]));
+ const stale = deferredFetch(processing({ status: 'failed', error: '上一趟的原因' }));
stale.install();
const el = container();
- const first = mountIsland('quality-goals', el, legacyProps());
+ const first = mountIsland('library-processing', el, legacyProps());
await Promise.resolve();
- const fresh = deferredFetch(payload([goal({ id: 9, name: 'fresh.mp4' })]));
+ const fresh = deferredFetch(processing({ status: 'failed', error: '这一趟的原因' }));
fresh.install();
- const second = mountIsland('quality-goals', el, legacyProps());
+ const second = mountIsland('library-processing', el, legacyProps());
fresh.resolve();
await second;
stale.resolve();
await first;
- expect(el.querySelectorAll('.qualityitem')).toHaveLength(1);
- expect(el.textContent).toContain('fresh.mp4');
- expect(el.textContent).not.toContain('stale.mp4');
+ expect(el.querySelectorAll('.library-processing')).toHaveLength(1);
+ expect(el.textContent).toContain('这一趟的原因');
+ expect(el.textContent).not.toContain('上一趟的原因');
});
});
@@ -181,15 +178,15 @@ describe('mountIsland 的 React 档', () => {
describe('unmountIsland', () => {
it('中止在途取数并清空容器', async () => {
- const fetch = deferredFetch(payload([goal()]));
+ const fetch = deferredFetch(processing());
fetch.install();
const el = container();
- const mounting = mountIsland('quality-goals', el, legacyProps());
+ const mounting = mountIsland('library-processing', el, legacyProps());
await Promise.resolve();
unmountIsland(el);
await mounting;
expect(fetch.signal()?.aborted, '离开页面必须真的中止请求').toBe(true);
- expect(el.querySelector('.qualityitem')).toBeNull();
+ expect(el.querySelector('.library-processing')).toBeNull();
expect(el.querySelector('[data-skeleton]'),
'还没画过就卸载时容器里是遗留骨架,island 不该清掉不属于它的东西').not.toBeNull();
});
@@ -202,12 +199,12 @@ describe('unmountIsland', () => {
it('容器上挂没挂着,遗留层问得出来', async () => {
vi.stubGlobal('fetch', vi.fn(async () => ({
- ok: true, status: 200, json: async () => payload([goal()]),
+ ok: true, status: 200, json: async () => processing(),
})));
const el = container();
expect(islandMounted(el)).toBe(false);
// 取数还没回来也算挂着:这段时间里再挂一次会把在途那次作废,白等一趟。
- const mounting = mountIsland('quality-goals', el, legacyProps());
+ const mounting = mountIsland('library-processing', el, legacyProps());
expect(islandMounted(el)).toBe(true);
await mounting;
expect(islandMounted(el)).toBe(true);
@@ -216,24 +213,4 @@ describe('unmountIsland', () => {
// 遗留层拿到的可能是个空引用——那时页面上根本没有这个容器。
expect(islandMounted(null)).toBe(false);
});
-
- it('卸载之后共享状态再变也不重画:订阅要跟着组件一起走', async () => {
- vi.stubGlobal('fetch', vi.fn(async () => ({
- ok: true, status: 200, json: async () => payload([goal({ id: 1, name: 'one.mp4' })]),
- })));
- const el = container();
- const props = legacyProps();
- await mountIsland('quality-goals', el, props);
- expect(el.querySelectorAll('.qualityitem')).toHaveLength(1);
- const painted = props.javTitleHtml.mock.calls.length;
- expect(painted).toBeGreaterThan(0);
-
- unmountIsland(el);
- // 换一份完全不同的数据。还留着订阅的话,组件会为一个已经卸载的容器再画一次。
- await seedGoals([goal({ id: 2, name: 'after.mp4' }), goal({ id: 3, name: 'more.mp4' })]);
- expect(props.javTitleHtml.mock.calls.length, '卸载后组件仍在响应 signal,订阅泄漏了')
- .toBe(painted);
- expect(el.querySelector('.qualityitem')).toBeNull();
- expect(el.textContent).not.toContain('after.mp4');
- });
});
diff --git a/frontend/test/quality-goals.test.tsx b/frontend/test/quality-goals.test.tsx
deleted file mode 100644
index 760289bcb..000000000
--- a/frontend/test/quality-goals.test.tsx
+++ /dev/null
@@ -1,133 +0,0 @@
-import { render } from 'preact';
-import { afterEach, describe, expect, it, vi } from 'vitest';
-
-import { QualityGoals, loadQualityGoals } from '../src/islands/quality-goals';
-import { QUALITY_GOALS_URL, resetQualityGoals } from '../src/state/quality-goals';
-import type { QualityGoal } from '../src/state/quality-goals';
-
-import { goal, legacyProps, payload, seedGoals, seedGoalsError } from './helpers';
-
-/** 画一遍当前的共享状态。数据不再由 props 传进来,所以先灌 store 再画。 */
-const show = () => {
- const el = document.createElement('div');
- document.body.append(el);
- const props = legacyProps();
- render(<QualityGoals {...props} />, el);
- return { el, props };
-};
-
-const mountGoals = async (items: QualityGoal[]) => {
- await seedGoals(items);
- return show();
-};
-
-afterEach(() => {
- document.body.innerHTML = '';
- resetQualityGoals();
- vi.unstubAllGlobals();
-});
-
-describe('高清版目标列表', () => {
- it('版本入口打开所属作品,汇总保留服务端总数', async () => {
- const { el, props } = await mountGoals([goal({ id: 42 })]);
- expect(el.querySelector('.collection-summary')?.textContent).toContain('1 部作品');
- el.querySelector<HTMLButtonElement>('.qualityactions button')!.click();
- expect(props.openItem).toHaveBeenCalledWith(42);
- });
- it('每条目标一张卡片,读数走遗留层同一套格式化口径', async () => {
- const { el } = await mountGoals([goal({
- id: 42, name: 'one.mp4', location: '115', cost: 'metered',
- duration: 3725, size: 2147483648, reason: '只有 720p',
- })]);
- const item = el.querySelector('.qualityitem');
- expect(item).not.toBeNull();
- const cells = [...item!.querySelectorAll('p.mono > span')].map(node => node.textContent);
- expect(cells).toEqual(['', '115', '1:02:05', '2.0 GB']);
- expect(item!.querySelector('.src')?.getAttribute('data-location')).toBe('115');
- expect(item!.querySelector('.src')?.classList.contains('metered')).toBe(true);
- expect(item!.querySelector('h3 .javcode')?.textContent).toBe('one.mp4');
- expect(item!.querySelector('h3 button')?.hasAttribute('data-middle-truncate')).toBe(true);
- expect([...item!.querySelectorAll('p')].at(-1)?.textContent).toBe('只有 720p');
- });
-
- it('探测失败的时长显示占位,不显示 0 也不显示负数', async () => {
- const { el } = await mountGoals([goal({ duration: -1, size: 0 })]);
- const cells = [...el.querySelectorAll('p.mono > span')].map(node => node.textContent);
- expect(cells).toEqual(['', '本地', '—', '0 MB']);
- });
-
- it('有番号封面就用番号封面,否则退回海报', async () => {
- const withCover = await mountGoals([goal({ has_cover: true, code: 'ABC-123' })]);
- expect(withCover.el.querySelector('img')?.getAttribute('src'))
- .toBe('/cover?code=ABC-123');
- const withoutCover = await mountGoals([goal({ id: 7, has_cover: false })]);
- expect(withoutCover.el.querySelectorAll('img')[0]?.getAttribute('src'))
- .toBe('/poster?id=7&c=4');
- });
-
- it('封面取不到就把图摘掉,卡片其余部分照常显示', async () => {
- const { el } = await mountGoals([goal()]);
- const image = el.querySelector('img')!;
- image.dispatchEvent(new Event('error'));
- expect(el.querySelector('img')).toBeNull();
- expect(el.querySelector('.qualitycover')).not.toBeNull();
- });
-
- it('封面和标题都能打开详情,无障碍名称用纯文本形态', async () => {
- const { el, props } = await mountGoals([goal({ id: 42 })]);
- const cover = el.querySelector<HTMLButtonElement>('.qualitycover')!;
- expect(cover.getAttribute('aria-label')).toBe('打开 名称 one.mp4');
- cover.click();
- el.querySelector<HTMLButtonElement>('h3 button')!.click();
- expect(props.openItem.mock.calls).toEqual([[42], [42]]);
- });
-
- it('没有目标时用共享空态,不是一行灰字', async () => {
- const { el } = await mountGoals([]);
- expect(el.querySelector('[data-geist-empty-state]')).not.toBeNull();
- expect(el.querySelector('.es-copy h3')?.textContent).toBe('没有标记中的高清版目标');
- expect(el.querySelector('.qualityitem')).toBeNull();
- });
-
- it('读取失败时把原因留在原位,用 error Note', async () => {
- await seedGoalsError('请求失败(500)');
- const { el } = show();
- expect(el.querySelector('.geist-note-error')?.textContent).toContain('Peach 服务处理失败');
- expect(el.querySelector('[data-geist-empty-state]')).toBeNull();
- });
-
- it('共享状态变了就自己重画,不用重新挂载一遍', async () => {
- const { el } = await mountGoals([goal({ id: 1, name: 'old.mp4' })]);
- expect(el.textContent).toContain('old.mp4');
- await seedGoals([goal({ id: 2, name: 'new.mp4' }), goal({ id: 3, name: 'also.mp4' })]);
- expect(el.querySelectorAll('.qualityitem')).toHaveLength(2);
- expect(el.textContent).toContain('new.mp4');
- expect(el.textContent).not.toContain('old.mp4');
- });
-});
-
-describe('loadQualityGoals', () => {
- it('取的是遗留层同一个契约端点,并把中止信号带下去', async () => {
- const fetched = vi.fn(async (_input: string, _init?: RequestInit) => (
- { ok: true, status: 200, json: async () => payload([]) }
- ));
- vi.stubGlobal('fetch', fetched);
- const controller = new AbortController();
- await loadQualityGoals(legacyProps(), controller.signal);
- expect(QUALITY_GOALS_URL).toBe('/api/quality-goals?limit=200');
- expect(fetched.mock.calls[0]?.[0]).toBe(QUALITY_GOALS_URL);
- expect((fetched.mock.calls[0]?.[1] as RequestInit).signal).toBe(controller.signal);
- expect((fetched.mock.calls[0]?.[1] as RequestInit).credentials).toBe('same-origin');
- });
-
- it('首屏一律重取:这一页的刷新就是重新进来一次,不能被缓存吃掉', async () => {
- await seedGoals([goal({ id: 1, name: 'cached.mp4' })]);
- const fetched = vi.fn(async (_input: string, _init?: RequestInit) => (
- { ok: true, status: 200, json: async () => payload([goal({ id: 2, name: 'fresh.mp4' })]) }
- ));
- vi.stubGlobal('fetch', fetched);
- const data = await loadQualityGoals(legacyProps(), new AbortController().signal);
- expect(fetched).toHaveBeenCalledTimes(1);
- expect(data.items[0]?.name).toBe('fresh.mp4');
- });
-});
diff --git a/frontend/test/react/quality-goals.test.tsx b/frontend/test/react/quality-goals.test.tsx
new file mode 100644
index 000000000..3657ce51f
--- /dev/null
+++ b/frontend/test/react/quality-goals.test.tsx
@@ -0,0 +1,172 @@
+/* 高清版目标页的行为:一张卡上有什么、点哪里打开作品、进出这一页各发几次请求。
+ *
+ * 外观(封面的宽度与比例、长标题的中间省略)是设计决定,由 `frontend/e2e/design.test.ts`
+ * 读 `getComputedStyle` 断言;这里只看结构、文字与请求。 */
+import { notifyManager, QueryClientProvider } from '@tanstack/react-query';
+import { afterEach, expect, it, vi } from 'vitest';
+
+import { queryClient } from '../../src/react/query';
+import { QualityGoalsPage } from '../../src/react/quality-goals/quality-goals-page';
+import {
+ prefetchQualityGoals, QUALITY_GOALS_URL,
+ type QualityGoal, type QualityGoalsData,
+} from '../../src/react/quality-goals/quality-goals';
+
+import { click, mount, mountRoot } from './render';
+
+// 客户端是模块级的单例(所有 React 根共用一个),用例之间不清就互相喂数据。
+afterEach(() => queryClient.clear());
+
+/* Query 派发更新用的是它自己抓住的那个真 `setTimeout(0)`,假时钟推不动它:推完时钟
+ 断言到的还是上一帧的 DOM。用例里改成当场派发。 */
+notifyManager.setScheduler((notify) => notify());
+
+const goal = (overrides: Partial<QualityGoal> = {}): QualityGoal => ({
+ id: 1,
+ name: 'one.mp4',
+ code: null,
+ location: 'local',
+ size: 2147483648,
+ duration: 3725,
+ reason: null,
+ cost: 'free',
+ has_thumb: true,
+ has_cover: false,
+ ...overrides,
+});
+
+const payload = (items: QualityGoal[], total = items.length): QualityGoalsData =>
+ ({ total, items, offset: 0, has_more: false });
+
+/** 遗留层交出来的那几个助手,换成可辨认的最小实现。 */
+const legacyProps = () => ({
+ openItem: vi.fn<(id: number) => void>(),
+ javTitleHtml: (item: QualityGoal) => `<strong class="javcode">${item.name}</strong>`,
+ javDisplayName: (item: QualityGoal) => `名称 ${item.name}`,
+ srcBadge: (location: string, cost: string) => `<span class="src ${cost}" data-location="${location}"></span>`,
+});
+
+/** 依次回这几份数据,最后一份之后一直回它。`null` 那一份回 500。 */
+function serve(...responses: (QualityGoalsData | null)[]) {
+ let at = 0;
+ const fetcher = vi.fn(async (_input: string, _init?: RequestInit) => {
+ const body = responses[Math.min(at, responses.length - 1)] ?? null;
+ at += 1;
+ return body
+ ? { ok: true, status: 200, json: async () => body }
+ : { ok: false, status: 500, json: async () => ({ message: '账本当前只能浏览' }) };
+ });
+ vi.stubGlobal('fetch', fetcher);
+ return fetcher;
+}
+
+/** 走完真实的首屏路径:先 prefetch 落进缓存,再挂载。 */
+async function open(...responses: (QualityGoalsData | null)[]) {
+ const fetcher = serve(...responses);
+ const props = legacyProps();
+ await prefetchQualityGoals(new AbortController().signal).catch(() => {});
+ const mounted = await mountRoot(
+ <QueryClientProvider client={queryClient}><QualityGoalsPage {...props} /></QueryClientProvider>);
+ return { fetcher, props, ...mounted };
+}
+
+it('首屏用 prefetch 落进缓存的那一份画出来,挂载时不再请求一次', async () => {
+ const { fetcher, host } = await open(payload([goal()]));
+ expect(fetcher).toHaveBeenCalledTimes(1);
+ expect(fetcher.mock.calls[0]?.[0]).toBe(QUALITY_GOALS_URL);
+ expect(host.querySelectorAll('li[data-goal-id]')).toHaveLength(1);
+});
+
+it('汇总说的是服务端的总数,不是这一页截到的条数', async () => {
+ const { host } = await open(payload([goal(), goal({ id: 2, name: 'two.mp4' })], 37));
+ expect(host.querySelector('p')?.textContent).toBe('待升级 · 37 部作品');
+ expect(host.querySelectorAll('li[data-goal-id]')).toHaveLength(2);
+});
+
+it('每条目标一张卡片,读数走遗留层同一套格式化口径', async () => {
+ const { host } = await open(payload([goal({
+ id: 42, name: 'one.mp4', location: '115', cost: 'metered',
+ duration: 3725, size: 2147483648, reason: '只有 720p',
+ })]));
+ const card = host.querySelector('li[data-goal-id="42"]')!;
+ // 第一格是来源徽标的宿主:它只放 HTML,不带文字。
+ expect([...card.querySelectorAll('h3 ~ p > span')].map((node) => node.textContent))
+ .toEqual(['', '115', '1:02:05', '2.0 GB']);
+ expect(card.querySelector('.src')?.getAttribute('data-location')).toBe('115');
+ expect(card.querySelector('.src')?.classList.contains('metered')).toBe(true);
+ expect(card.querySelector('h3 .javcode')?.textContent).toBe('one.mp4');
+ expect(card.querySelector('h3 button')?.hasAttribute('data-middle-truncate')).toBe(true);
+ expect([...card.querySelectorAll('p')].at(-1)?.textContent).toBe('只有 720p');
+});
+
+it('探测失败的时长显示占位,不显示 0 也不显示负数', async () => {
+ const { host } = await open(payload([goal({ duration: -1, size: 0 })]));
+ expect([...host.querySelectorAll('h3 ~ p > span')].map((node) => node.textContent))
+ .toEqual(['', '本地', '—', '0 MB']);
+});
+
+it('有番号封面就用番号封面,否则退回海报', async () => {
+ const withCover = await open(payload([goal({ has_cover: true, code: 'ABC-123' })]));
+ expect(withCover.host.querySelector('img')?.getAttribute('src')).toBe('/cover?code=ABC-123');
+ await withCover.unmount();
+ queryClient.clear();
+
+ const withoutCover = await open(payload([goal({ id: 7, has_cover: false })]));
+ expect(withoutCover.host.querySelector('img')?.getAttribute('src')).toBe('/poster?id=7&c=4');
+});
+
+it('封面取不到就把图摘掉,兜底文字还在,卡片其余部分照常显示', async () => {
+ const { host } = await open(payload([goal()]));
+ host.querySelector('img')!.dispatchEvent(new Event('error'));
+ expect(host.querySelector('img')).toBeNull();
+ expect(host.querySelector('li[data-goal-id] button')?.textContent).toBe('暂无预览');
+});
+
+it('封面、标题和页脚三处都打开同一部作品,无障碍名称用纯文本形态', async () => {
+ const { host, props } = await open(payload([goal({ id: 42 })]));
+ const cover = host.querySelector<HTMLButtonElement>('li[data-goal-id] button')!;
+ expect(cover.getAttribute('aria-label')).toBe('打开 名称 one.mp4');
+ await click(cover);
+ await click(host.querySelector('h3 button'));
+ await click([...host.querySelectorAll('button')].find((node) => node.textContent === '查看版本'));
+ expect(props.openItem.mock.calls).toEqual([[42], [42], [42]]);
+});
+
+it('一条目标都没有时给空态,不是一片白', async () => {
+ const { host } = await open(payload([]));
+ expect(host.querySelector('h3')?.textContent).toBe('没有标记中的高清版目标');
+ expect(host.querySelector('li[data-goal-id]')).toBeNull();
+});
+
+it('首屏取数就失败时只剩一条错误,不画空列表', async () => {
+ const { host } = await open(null);
+ const alert = host.querySelector('[role=alert]');
+ // 文案走遗留层的 `requestErrorMessage`:服务端给了中文原因就用它,页面不另说一遍。
+ expect(alert?.textContent).toContain('读取失败');
+ expect(alert?.textContent).toContain('账本当前只能浏览');
+ expect(host.querySelector('ul')).toBeNull();
+});
+
+it('重新进这一页会重取:这一页的刷新就是重新进来一次,不吃缓存', async () => {
+ const first = await open(payload([goal({ id: 1, name: 'cached.mp4' })]),
+ payload([goal({ id: 2, name: 'fresh.mp4' })]));
+ expect(first.fetcher).toHaveBeenCalledTimes(1);
+ await first.unmount();
+
+ // 遗留层再次进入这一页:`mountIsland` 先 prefetch 再挂载。
+ await prefetchQualityGoals(new AbortController().signal);
+ expect(first.fetcher).toHaveBeenCalledTimes(2);
+ const host = await mount(
+ <QueryClientProvider client={queryClient}><QualityGoalsPage {...legacyProps()} /></QueryClientProvider>);
+ expect(first.fetcher).toHaveBeenCalledTimes(2);
+ expect(host.textContent).toContain('fresh.mp4');
+});
+
+it('卸载之后不再敲库:这一页没有轮询,也不该留下别的定时器', async () => {
+ vi.useFakeTimers();
+ const { fetcher, unmount } = await open(payload([goal()]));
+ expect(fetcher).toHaveBeenCalledTimes(1);
+ await unmount();
+ await vi.advanceTimersByTimeAsync(60_000);
+ expect(fetcher, '卸载之后还在取数').toHaveBeenCalledTimes(1);
+});
diff --git a/frontend/test/state.test.ts b/frontend/test/state.test.ts
deleted file mode 100644
index 30fb69dc4..000000000
--- a/frontend/test/state.test.ts
+++ /dev/null
@@ -1,144 +0,0 @@
-import { afterEach, describe, expect, it, vi } from 'vitest';
-
-import { refreshStore, resetStores, storeNames } from '../src/state';
-import {
- QUALITY_GOALS_URL, ensureQualityGoals, qualityGoals, qualityGoalsTotal,
- refreshQualityGoals, resetQualityGoals,
-} from '../src/state/quality-goals';
-
-import { deferredFetch, failFetch, goal, okFetch, payload } from './helpers';
-
-afterEach(() => {
- resetStores();
- vi.unstubAllGlobals();
-});
-
-describe('共享 store 的写入口', () => {
- it('导出的是只读视图:直接赋值在运行期就失败,不是靠约定', () => {
- // @ts-expect-error 这条断言的目的就是「组件里写不了」既是类型错误也是运行期错误。
- expect(() => { qualityGoals.value = { data: null, error: '改我' }; }).toThrow(TypeError);
- expect(qualityGoals.value.error).toBe('');
- });
-
- it('登记的名字就是遗留层能刷新的名字', () => {
- expect(storeNames()).toEqual(['quality-goals']);
- });
-
- it('未登记的名字立刻失败,不是静默什么都不做', async () => {
- // @ts-expect-error 名字不在注册表里:运行期也要拦住。
- await expect(refreshStore('nope')).rejects.toThrow('未登记的共享 store:nope');
- });
-
- it('遗留层按名字刷新,拿到的是「成功了没有」而不是异常', async () => {
- vi.stubGlobal('fetch', okFetch(payload([goal({ id: 5 })])));
- expect(await refreshStore('quality-goals')).toBe(true);
- expect(qualityGoalsTotal.value).toBe(1);
-
- vi.stubGlobal('fetch', failFetch(503, '账本正在维护'));
- expect(await refreshStore('quality-goals'), '失败不抛:调用点在遗留层是 fire-and-forget')
- .toBe(false);
- expect(qualityGoals.value.error).toBe('账本正在维护');
- });
-});
-
-describe('高清版目标 store', () => {
- it('读到之前 total 是 null,不是 0:那和「一个都没有」是两件事', () => {
- expect(qualityGoalsTotal.value).toBeNull();
- expect(qualityGoals.value).toEqual({ data: null, error: '' });
- });
-
- it('取的是那个契约端点,结果落进 signal', async () => {
- const fetched = okFetch(payload([goal({ id: 1 }), goal({ id: 2 })]));
- vi.stubGlobal('fetch', fetched);
- const data = await refreshQualityGoals();
- expect(fetched.mock.calls[0]?.[0]).toBe(QUALITY_GOALS_URL);
- expect(data.items).toHaveLength(2);
- expect(qualityGoals.value.data?.items).toHaveLength(2);
- expect(qualityGoalsTotal.value).toBe(2);
- });
-
- it('ensure 只取一次:第二个读者读到的是同一份,不再发请求', async () => {
- const fetched = okFetch(payload([goal({ id: 3 })]));
- vi.stubGlobal('fetch', fetched);
- const first = await ensureQualityGoals();
- const second = await ensureQualityGoals();
- expect(fetched).toHaveBeenCalledTimes(1);
- expect(second).toBe(first);
- });
-
- it('两个读者同时开口也只发一个请求', async () => {
- const fetch = deferredFetch(payload([goal({ id: 4 })]));
- fetch.install();
- const both = Promise.all([ensureQualityGoals(), ensureQualityGoals()]);
- fetch.resolve();
- const [left, right] = await both;
- expect(fetch.fetched).toHaveBeenCalledTimes(1);
- expect(left).toBe(right);
- });
-
- it('refresh 无视缓存,ensure 之后仍然重取', async () => {
- vi.stubGlobal('fetch', okFetch(payload([goal({ id: 1, name: 'old.mp4' })])));
- await ensureQualityGoals();
- const fetched = okFetch(payload([goal({ id: 2, name: 'new.mp4' })]));
- vi.stubGlobal('fetch', fetched);
- await refreshQualityGoals();
- expect(fetched).toHaveBeenCalledTimes(1);
- expect(qualityGoals.value.data?.items[0]?.name).toBe('new.mp4');
- });
-
- it('失败态换掉旧数据:屏幕上不能既说读取失败又列着上一次的结果', async () => {
- vi.stubGlobal('fetch', okFetch(payload([goal({ id: 1 })])));
- await refreshQualityGoals();
- vi.stubGlobal('fetch', failFetch(409, '账本当前只能浏览'));
- await expect(refreshQualityGoals()).rejects.toThrow('账本当前只能浏览');
- expect(qualityGoals.value).toEqual({ data: null, error: '账本当前只能浏览' });
- expect(qualityGoalsTotal.value).toBeNull();
- });
-
- it('失败之后 ensure 会再试一次,不把错误态当成缓存', async () => {
- vi.stubGlobal('fetch', failFetch(500, '读取失败'));
- await expect(ensureQualityGoals()).rejects.toThrow('读取失败');
- const fetched = okFetch(payload([goal({ id: 9 })]));
- vi.stubGlobal('fetch', fetched);
- await ensureQualityGoals();
- expect(fetched).toHaveBeenCalledTimes(1);
- expect(qualityGoals.value.error).toBe('');
- });
-
- it('中止不写错误态:页面是被用户换掉的,不是读取失败', async () => {
- vi.stubGlobal('fetch', okFetch(payload([goal({ id: 1 })])));
- await refreshQualityGoals();
- const pending = deferredFetch(payload([goal({ id: 2 })]));
- pending.install();
- const controller = new AbortController();
- const refreshing = refreshQualityGoals(controller.signal);
- controller.abort();
- await expect(refreshing).rejects.toThrow();
- expect(qualityGoals.value.error, '中止被记成失败就是谎报').toBe('');
- expect(qualityGoals.value.data?.items[0]?.id).toBe(1);
- });
-
- it('迟到的响应盖不住比它更新的那一次', async () => {
- const slow = deferredFetch(payload([goal({ id: 1, name: 'slow.mp4' })]));
- slow.install();
- const first = refreshQualityGoals();
- const quick = deferredFetch(payload([goal({ id: 2, name: 'quick.mp4' })]));
- quick.install();
- const second = refreshQualityGoals();
- quick.resolve();
- await second;
- slow.resolve();
- await first;
- expect(qualityGoals.value.data?.items[0]?.name).toBe('quick.mp4');
- });
-
- it('reset 把状态清回未读,下一次 ensure 重新取', async () => {
- const fetched = okFetch(payload([goal({ id: 1 })]));
- vi.stubGlobal('fetch', fetched);
- await ensureQualityGoals();
- resetQualityGoals();
- expect(qualityGoals.value).toEqual({ data: null, error: '' });
- await ensureQualityGoals();
- expect(fetched).toHaveBeenCalledTimes(2);
- });
-});
diff --git a/tests/test_frontend_build.py b/tests/test_frontend_build.py
index 09cfde9f4..55b82a9a3 100644
--- a/tests/test_frontend_build.py
+++ b/tests/test_frontend_build.py
@@ -51,9 +51,8 @@ class IslandBundleTests(unittest.TestCase):
f"{name} 带了内容哈希,app.js 里写死的路径会指向不存在的文件")
def test_bundle_exports_the_mount_contract(self):
- # `refreshStore` 是遗留层通知岛「共享数据变了」的入口(ADR-0022 里 signals 的
- # 那一半)。它不在产物里,`web/app.js` 就只剩整屏重新挂载这一种刷新方式。
- for symbol in ("mountIsland", "unmountIsland", "islandNames", "refreshStore"):
+ # 遗留层只按这三个名字与 island 层打交道:挂一屏、卸一屏、核对路由表。
+ for symbol in ("mountIsland", "unmountIsland", "islandNames"):
self.assertIn(f"as {symbol}", self.bundle, f"产物没有导出 {symbol}")
def test_bundle_keeps_the_legacy_modules_external(self):
@@ -286,41 +285,44 @@ class FrontendManifestTests(unittest.TestCase):
class IslandSourceContractTests(unittest.TestCase):
"""从 `web/app.js` 搬过来时不能把语义契约丢在原地。
- `tests/test_web_ui.py` 对页面源断言这些标记,高清版目标页搬进 island 之后那份
+ `tests/test_web_ui.py` 对页面源断言这些标记,高清版目标页搬进 `frontend/` 之后那份
断言少了一处;缺口补在这里,而不是让它无声消失。
"""
+ QUALITY_GOALS = FRONTEND / "src" / "react" / "quality-goals"
+
def setUp(self):
- self.source = (FRONTEND / "src" / "islands" / "quality-goals.tsx").read_text(
- encoding="utf-8")
+ self.source = "\n".join(
+ (self.QUALITY_GOALS / name).read_text(encoding="utf-8")
+ for name in ("quality-goals.ts", "quality-goals-page.tsx"))
def test_titles_still_use_middle_truncation(self):
"""文件名和番号的差别常在尾部,末尾省略会把要看的东西切掉。"""
self.assertIn("data-middle-truncate", self.source)
def test_empty_and_error_states_reuse_the_shared_components(self):
- """空态与失败态走 `/js/ui-components.js`,不是一行灰字。"""
- self.assertIn("emptyStateHtml(", self.source)
- self.assertIn("noteHtml(", self.source)
+ """空态与失败态走 `src/react/components/` 的组合件,不是一行灰字。"""
+ self.assertIn("<EmptyState", self.source)
+ self.assertIn("<Note", self.source)
self.assertIn("没有标记中的高清版目标", self.source)
def test_readings_reuse_the_legacy_formatters(self):
- """时长、体积、来源名共用遗留口径,不在 island 里再写一套。"""
+ """时长、体积、来源名共用遗留口径,不在页面里再写一套。"""
self.assertIn("from '@peach/legacy/core'", self.source)
for helper in ("fmtDur(", "fmtSize(", "LOC["):
self.assertIn(helper, self.source)
def test_the_endpoint_is_declared_once(self):
- """端点在前端只能有一个声明处,现在是那份共享 store。
+ """端点在前端只能有一个声明处,就是这一页的数据模块。
- 取数已经从 island 搬进 `frontend/src/state/quality-goals.ts`:`/manage` 的
- 「高清版」卡片读的是同一个真相。所以这里扫整棵 `frontend/src`,而不是钉住
- 某个文件——要拦的是「两个地方各写一遍这条 URL」,不是它住在哪儿。
+ 数据管理页那张「高清版」卡片读的是同一个真相,它随那一页迁移时接同一个
+ `queryKey`。所以这里扫整棵 `frontend/src`——要拦的是「两个地方各写一遍这条 URL」。
"""
sources = sorted(path for path in (FRONTEND / "src").rglob("*.ts*"))
- declared = [path.name for path in sources
+ declared = [path for path in sources
if "/api/quality-goals?limit=200" in path.read_text(encoding="utf-8")]
- self.assertEqual(declared, ["quality-goals.ts"], f"端点声明在 {declared}")
+ self.assertEqual(declared, [self.QUALITY_GOALS / "quality-goals.ts"],
+ f"端点声明在 {[path.name for path in declared]}")
# 扫整个 web 层:路由表已经从 `web_contract.py` 搬到 `web_router.py`,
# 前者只剩再导出。island 关心的是这条路由存在且只声明一次,不是它在哪个文件。
routed = [path.name for path in sorted((ROOT / "src" / "peach").glob("web_*.py"))
@@ -339,32 +341,24 @@ class ConfigurationEndpointTests(unittest.TestCase):
class SharedStateContractTests(unittest.TestCase):
- """跨岛共享状态只有一个家(ADR-0022)。
+ """一份数据有第二个读者时,两个读者读同一个 `queryKey`(ADR-0031)。
- 这两条门槛拦的是同一件事:共享数据长出第二个来源。运行期那一半由 vitest 盯着
- (`test/state.test.ts` 断言直接赋值会抛 TypeError),这里盯的是源码布局——
- 等到跑起来才发现两个岛各存一份,已经晚了。
+ 共享数据的家是 `src/react/query.ts` 那一个 QueryClient。这条门槛盯的是源码布局:
+ 等到跑起来才发现两处各存一份,已经晚了。
"""
- def setUp(self):
- self.state = FRONTEND / "src" / "state"
- self.sources = sorted((FRONTEND / "src").rglob("*.ts*"))
-
- def test_stores_expose_read_only_views(self):
- """可写的 signal 不导出:写入只能走 store 自己的函数,「谁改了它」才数得出来。"""
- for path in sorted(self.state.glob("*.ts")):
- source = path.read_text(encoding="utf-8")
- self.assertNotRegex(
- source, r"export\s+(?:const|let)\s+\w+[^=\n]*=\s*signal\(",
- f"{path.name} 导出了可写 signal,组件可以绕过写入函数直接赋值")
-
- def test_signals_only_live_in_the_state_folder(self):
- """岛自己的临时状态用 hooks。在别处 import signal,就是共享数据有了第二个家。"""
- outside = [path.name for path in self.sources
- if self.state not in path.parents
- and "@preact/signals" in path.read_text(encoding="utf-8")]
+ def test_the_react_subtree_has_exactly_one_query_client(self):
+ sources = sorted(path for path in (FRONTEND / "src").rglob("*.ts*"))
+ declared = [path.name for path in sources
+ if "new QueryClient(" in path.read_text(encoding="utf-8")]
+ self.assertEqual(declared, ["query.ts"], f"QueryClient 建在 {declared}")
+
+ def test_pages_do_not_keep_a_second_copy_of_shared_data(self):
+ """跨页共享的数据不另起一套订阅:`@preact/signals` 已经没有读者。"""
+ outside = [path.name for path in sorted((FRONTEND / "src").rglob("*.ts*"))
+ if "@preact/signals" in path.read_text(encoding="utf-8")]
self.assertEqual(outside, [],
- f"{outside} 在 state/ 之外用了 signal:共享状态请建 store,局部状态用 hooks")
+ f"{outside} 用了 signal:跨页共享请读同一个 queryKey,局部状态用 hooks")
class VitestTests(unittest.TestCase):
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index 3983196b0..11b794f53 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -6950,6 +6950,16 @@ class WebUiSourceTests(unittest.TestCase):
self.assertIn("@media(prefers-reduced-motion:reduce){#libraryProcessingNotice{transition:none}}",
board)
+ def test_changing_pages_unmounts_whatever_owns_the_management_body(self):
+ """管理区正文那个容器上挂着的东西,换页时跟着页面一起走。
+
+ React 档的页面是一棵自己管取数的根:不卸掉它,离开之后那棵根还活着,有轮询的
+ 页面照着原节律继续敲库。`claimSurface` 是所有页面共同经过的换页点,卸载落在这里
+ 才不会漏掉新迁过来的那一页;没挂过东西的容器 `unmountIsland` 直接返回。
+ 离场之后还有第二道闸:取数落地时 island 按 `isCurrent` 决定不画。
+ """
+ self.assertPageContains(" unmountIsland($('#stats'));")
+
def test_the_top_discovery_bar_and_the_drawer_read_one_scope(self):
"""顶部发现栏按「换一批」的种子抽样,抽屉那一列读同一份 facets。
@@ -8235,18 +8245,28 @@ class WebUiSourceTests(unittest.TestCase):
"padding:11px 15px 12px;background:var(--detail-surface)}")
def test_better_version_targets_have_a_management_page(self):
+ """账本里标记为「还该有更好一版」的作品在管理区自成一页。
+
+ 它是 React 档(ADR-0031):遗留层只铺骨架、交容器,再把自己独有的助手(番号标题、
+ 来源徽标、打开作品)作为 props 递进去,整页在 `frontend/src/react/quality-goals/` 里。
+ 所以这里断言的是外壳——路由、菜单入口、骨架与挂载契约。卡片上有什么、点哪里打开
+ 作品、进出这一页各发几次请求由 `frontend/test/react/quality-goals.test.tsx` 守,
+ 封面的宽度与比例、长标题的中间省略由 `frontend/e2e/design.test.ts` 读计算值守,
+ 数据契约由 `/api/quality-goals` 的路由测试守。
+ """
self.assertPageContains("['quality','高清版','sparkles']")
self.assertRoute('/quality-goals', "section:'quality'", "openQualityGoals(push)")
self.assertPageContains("async function openQualityGoals(push=true)")
- # 这一页已经迁到 Preact island(ADR-0022):取数与渲染在 frontend/ 里,遗留层
- # 只剩外壳。所以这里断言的是挂载契约,而不是端点字符串——端点由
- # frontend/test/quality-goals.test.tsx 与 web_contract 的路由测试各自守着。
self.assertPageContains("const ui=await import('/dist/peach-ui.js')")
self.assertPageContains(
"await ui.mountIsland('quality-goals',$('#stats'),props,"
"{isCurrent:()=>surfaceCurrent(surface)})")
self.assertPageContains("const props={openItem,javTitleHtml,javDisplayName,srcBadge}")
self.assertPageLacks("data-quality-open")
+ # 正文归 React 子树:卡片、汇总行与按钮用 BoardUI 的源码加 Tailwind,
+ # 遗留样式表里只剩骨架要的那几条。
+ self.assertPageLacks(".qualityfallback{")
+ self.assertPageLacks(".qualityreason{")
def test_the_activity_page_is_the_one_place_that_shows_every_task(self):
"""任务中心的界面:谁在跑、谁被挡下了、刚跑完的怎么样,一屏三段。
@@ -8485,7 +8505,7 @@ class WebUiSourceTests(unittest.TestCase):
# 外链标才留得住:中缩靠改写 textContent 实现,同一节点里的图标会被抹掉。
'<span data-middle-truncate>${esc(item.url)}</span>'):
self.assertPageContains(consumer)
- # 高清版目标页由 island 测试覆盖;最近观看的文件名也保留首尾。
+ # 高清版目标页归 React 子树,由 frontend 的用例覆盖;最近观看的文件名也保留首尾。
self.assertEqual(self.app_js.count("data-middle-truncate"), 12)
self.assertEqual(self.app_js.count('class="mixitemtext"'), 3)
self.assertEqual(self.app_js.count("data-truncate-end"), 4)
@@ -8497,8 +8517,6 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("event.clipboardData.setData('text/plain',state.full)")
self.assertPageContains("export { initMiddleTruncate, middleTruncateText }")
self.assertPageContains("*[data-middle-truncate]{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:clip}")
- self.assertPageContains(".qualityitem h3 button{display:block;width:100%")
- self.assertPageLacks(".qualityitem h3 button{max-width:100%;border:0;background:transparent;padding:0;color:inherit;text-align:left;cursor:pointer;overflow-wrap:anywhere;display:-webkit-box")
def test_every_end_truncation_selector_is_explicitly_reviewed(self):
"""新增 CSS 省略必须先决定它是语义文本,还是应改用 MiddleTruncate。"""
diff --git a/web/app.js b/web/app.js
index 9e23f1d25..8f4511271 100644
--- a/web/app.js
+++ b/web/app.js
@@ -407,6 +407,10 @@ const claimSurface=path=>{
二十来毫秒后落回原处,比它要说的那句话显眼得多。目录页之间它一直挂着,自己在轮询
库那边的进度;离开目录页才收起,那些页面本来就不该有它。 */
if(!isCatalogPath(path))unmountIsland($('#libraryProcessingNotice'));
+ /* 管理区正文的容器每次换页都经过这里,所以卸载也落在这里。React 档的页面是一棵自己
+ 管取数的根:不卸掉它,离开之后那棵根还活着,有轮询的页面照着原节律继续敲库。
+ 没挂过东西的容器 unmountIsland 直接返回,逐页判断反而会漏掉新迁过来的那一页。 */
+ unmountIsland($('#stats'));
surfaceRequests?.abort();
surfaceRequests=new AbortController();
surfaceEpoch++;return surfaceToken(path)};
diff --git a/web/board.css b/web/board.css
index b5be8cd6d..065b1fc1b 100644
--- a/web/board.css
+++ b/web/board.css
@@ -1648,10 +1648,7 @@ body[data-surface="/duplicates"] .duppath{grid-column:2/-1}
body[data-surface="/quality-goals"] .qualitylist{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:20px}
body[data-surface="/quality-goals"] .qualityitem{display:grid;grid-template-columns:150px minmax(0,1fr);grid-template-rows:1fr auto;gap:0 16px;padding:12px;overflow:hidden;border:1px solid var(--line-soft);border-radius:var(--surface-radius)}
body[data-surface="/quality-goals"] .qualitycover{position:relative;display:grid;place-items:center;grid-row:1 / span 2;width:150px;aspect-ratio:16/10;border-radius:var(--control-radius);background:var(--color-background-tertiary-default)}
-.qualityfallback{color:var(--muted);font:var(--board-body)}
-body[data-surface="/quality-goals"] .qualitycover img{position:absolute;inset:0;background:var(--color-background-tertiary-default)}
.qualitybody{padding:4px 4px 0;min-width:0}
-.qualityreason{padding-top:12px;border-top:1px solid var(--line-soft)}
.qualityactions{display:flex;justify-content:flex-end;padding:8px 4px 0;background:transparent}
body[data-surface="/junk-files"] .junksummary{width:100%}
body[data-surface="/junk-files"] .collection-summary{margin:0}
diff --git a/web/css/11-identity.css b/web/css/11-identity.css
index 736bd8f9a..331b20289 100644
--- a/web/css/11-identity.css
+++ b/web/css/11-identity.css
@@ -77,14 +77,10 @@ button.serieslink.entitylink:hover{color:var(--tungsten);text-decoration:none}
.dupmarks i{font-style:normal;font-size:var(--fs-xs);padding:1px 6px;border-radius:var(--badge-radius)}
.dupmarks i.big{background:var(--hover);color:var(--ink-2)}
.dupmarks i.long{background:color-mix(in srgb,var(--keep) 22%,transparent);color:var(--keep)}
-.qualitylist{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:14px}
-.qualityitem{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px;min-width:0;padding:12px;
- border:1px solid var(--line-soft);border-radius:var(--floating-radius);background:var(--ground)}
-.qualitycover{width:150px;aspect-ratio:16/10;border:0;border-radius:var(--surface-radius);overflow:hidden;background:#000;padding:0;cursor:pointer}
-.qualitycover img{width:100%;height:100%;object-fit:contain;display:block}
-.qualityitem h3{margin:2px 0 8px;font-size:var(--fs-lg)}
-.qualityitem h3 button{display:block;width:100%;max-width:100%;border:0;background:transparent;padding:0;color:inherit;text-align:left;cursor:pointer;overflow:hidden;white-space:nowrap}
-.qualityitem h3 button:hover{color:var(--ink-2)}.qualityitem p{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0;color:var(--muted)}
+/* 高清版目标页的正文归 React 子树(ADR-0031)。这两条只服务遗留骨架的那几张空卡,
+ 列数、间距与卡片几何由 `board.css` 的 `body[data-surface="/quality-goals"]` 那组给。 */
+.qualitylist{display:grid}
+.qualityitem{min-width:0;background:var(--ground)}
.revieworigin{display:grid;grid-template-columns:132px minmax(0,1fr);gap:10px;align-items:center;margin:10px 0;padding:8px;
border-radius:var(--surface-radius);background:var(--overlay-5)}
.reviewcompare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0}
@@ -116,7 +112,7 @@ button.serieslink.entitylink:hover{color:var(--tungsten);text-decoration:none}
.revieworigin>div{min-width:0}.revieworigin b{display:block;overflow:hidden;white-space:nowrap;margin-bottom:8px}
.revieworigin>div button{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:var(--control-radius);background:var(--hover);padding:6px 9px;color:var(--ink-2);cursor:pointer}
.revieworigin>div button:hover{color:var(--ink)}.revieworigin>div button svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2}
-@media(max-width:640px){.qualitylist{grid-template-columns:1fr}.qualityitem{grid-template-columns:110px minmax(0,1fr)}.qualitycover{width:110px}.reviewcompare{grid-template-columns:1fr}.revieworigin{grid-template-columns:110px minmax(0,1fr)}.revieworigincover{width:110px}}
+@media(max-width:640px){.reviewcompare{grid-template-columns:1fr}.revieworigin{grid-template-columns:110px minmax(0,1fr)}.revieworigincover{width:110px}}
.indexmore[hidden],.entitymore[hidden]{display:none}
.indexmore,.entitymore{display:flex;align-items:center;justify-content:center;margin:20px auto 0;min-width:124px;
diff --git a/web/dist/peach-react.css b/web/dist/peach-react.css
index 749338352..8a50a34de 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{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}.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}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.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}.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-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}.items-center{align-items:center}.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-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-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}.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-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-\[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-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-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 7d0086eec..d7f6f336e 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -1,16 +1,16 @@
-import { requestErrorMessage as e } from "/js/core.js";
-import { MEDIA_SOURCE_ICONS as t, confirmModal as n, setCollapseOpen as r } from "/js/ui-components.js";
+import { LOC as e, fmtDur as t, fmtSize as n, requestErrorMessage as r } from "/js/core.js";
+import { MEDIA_SOURCE_ICONS as i, confirmModal as a, setCollapseOpen as o } from "/js/ui-components.js";
//#region \0rolldown/runtime.js
-var i = Object.create, a = Object.defineProperty, o = Object.getOwnPropertyDescriptor, s = Object.getOwnPropertyNames, c = Object.getPrototypeOf, l = Object.prototype.hasOwnProperty, u = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), d = (e, t, n, r) => {
- if (t && typeof t == "object" || typeof t == "function") for (var i = s(t), c = 0, u = i.length, d; c < u; c++) d = i[c], !l.call(e, d) && d !== n && a(e, d, {
- get: ((e) => t[e]).bind(null, d),
- enumerable: !(r = o(t, d)) || r.enumerable
+var s = Object.create, c = Object.defineProperty, l = Object.getOwnPropertyDescriptor, u = Object.getOwnPropertyNames, d = Object.getPrototypeOf, f = Object.prototype.hasOwnProperty, p = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), m = (e, t, n, r) => {
+ if (t && typeof t == "object" || typeof t == "function") for (var i = u(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !f.call(e, s) && s !== n && c(e, s, {
+ get: ((e) => t[e]).bind(null, s),
+ enumerable: !(r = l(t, s)) || r.enumerable
});
return e;
-}, f = (e, t, n) => (n = e == null ? {} : i(c(e)), d(t || !e || !e.__esModule || !l.call(e, "default") ? a(n, "default", {
+}, h = (e, t, n) => (n = e == null ? {} : s(d(e)), m(t || !e || !e.__esModule || !f.call(e, "default") ? c(n, "default", {
value: e,
enumerable: !0
-}) : n, e)), p = /* @__PURE__ */ u(((e) => {
+}) : n, e)), g = /* @__PURE__ */ p(((e) => {
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.activity"), p = Symbol.for("react.view_transition"), m = Symbol.iterator;
function h(e) {
return typeof e != "object" || !e ? null : (e = m && e[m] || e["@@iterator"], typeof e == "function" ? e : null);
@@ -72,11 +72,11 @@ var i = Object.create, a = Object.defineProperty, o = Object.getOwnPropertyDescr
return t[e];
});
}
- var ee = /\/+/g;
- function j(e, t) {
+ var j = /\/+/g;
+ function M(e, t) {
return typeof e == "object" && e && e.key != null ? A("" + e.key) : t.toString(36);
}
- function te(e) {
+ function N(e) {
switch (e.status) {
case "fulfilled": return e.value;
case "rejected": throw e.reason;
@@ -91,7 +91,7 @@ var i = Object.create, a = Object.defineProperty, o = Object.getOwnPropertyDescr
}
throw e;
}
- function ne(e, r, i, a, o) {
+ function ee(e, r, i, a, o) {
var s = typeof e;
(s === "undefined" || s === "boolean") && (e = null);
var c = !1;
@@ -107,30 +107,30 @@ var i = Object.create, a = Object.defineProperty, o = Object.getOwnPropertyDescr
case n:
c = !0;
break;
- case d: return c = e._init, ne(c(e._payload), r, i, a, o);
+ case d: return c = e._init, ee(c(e._payload), r, i, a, o);
}
}
- if (c) return o = o(e), c = a === "" ? "." + j(e, 0) : a, C(o) ? (i = "", c != null && (i = c.replace(ee, "$&/") + "/"), ne(o, r, i, "", function(e) {
+ if (c) return o = o(e), c = a === "" ? "." + M(e, 0) : a, C(o) ? (i = "", c != null && (i = c.replace(j, "$&/") + "/"), ee(o, r, i, "", function(e) {
return e;
- })) : o != null && (k(o) && (o = O(o, i + (o.key == null || e && e.key === o.key ? "" : ("" + o.key).replace(ee, "$&/") + "/") + c)), r.push(o)), 1;
+ })) : o != null && (k(o) && (o = O(o, i + (o.key == null || e && e.key === o.key ? "" : ("" + o.key).replace(j, "$&/") + "/") + c)), r.push(o)), 1;
c = 0;
var l = a === "" ? "." : a + ":";
- if (C(e)) for (var u = 0; u < e.length; u++) a = e[u], s = l + j(a, u), c += ne(a, r, i, s, o);
- else if (u = h(e), typeof u == "function") for (e = u.call(e), u = 0; !(a = e.next()).done;) a = a.value, s = l + j(a, u++), c += ne(a, r, i, s, o);
+ if (C(e)) for (var u = 0; u < e.length; u++) a = e[u], s = l + M(a, u), c += ee(a, r, i, s, o);
+ else if (u = h(e), typeof u == "function") for (e = u.call(e), u = 0; !(a = e.next()).done;) a = a.value, s = l + M(a, u++), c += ee(a, r, i, s, o);
else if (s === "object") {
- if (typeof e.then == "function") return ne(te(e), r, i, a, o);
+ if (typeof e.then == "function") return ee(N(e), r, i, a, o);
throw r = String(e), Error("Objects are not valid as a React child (found: " + (r === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : r) + "). If you meant to render a collection of children, use an array instead.");
}
return c;
}
- function re(e, t, n) {
+ function te(e, t, n) {
if (e == null) return e;
var r = [], i = 0;
- return ne(e, r, "", "", function(e) {
+ return ee(e, r, "", "", function(e) {
return t.call(n, e, i++);
}), r;
}
- function M(e) {
+ function P(e) {
if (e._status === -1) {
var t = e._result, n = t();
n.then(function(t) {
@@ -142,7 +142,7 @@ var i = Object.create, a = Object.defineProperty, o = Object.getOwnPropertyDescr
if (e._status === 1) return e._result.default;
throw e._result;
}
- var ie = typeof reportError == "function" ? reportError : function(e) {
+ var ne = typeof reportError == "function" ? reportError : function(e) {
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
var t = new window.ErrorEvent("error", {
bubbles: !0,
@@ -157,40 +157,40 @@ var i = Object.create, a = Object.defineProperty, o = Object.getOwnPropertyDescr
}
console.error(e);
};
- function ae(e) {
+ function re(e) {
var t = T.T, n = {};
n.types = t === null ? null : t.types, T.T = n;
try {
var r = e(), i = T.S;
- i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(w, ie);
+ i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(w, ne);
} catch (e) {
- ie(e);
+ ne(e);
} finally {
t !== null && n.types !== null && (t.types = n.types), T.T = t;
}
}
- function oe(e) {
+ function ie(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 ae(oe.bind(null, e));
+ } else re(ie.bind(null, e));
}
- var se = {
- map: re,
+ var ae = {
+ map: te,
forEach: function(e, t, n) {
- re(e, function() {
+ te(e, function() {
t.apply(this, arguments);
}, n);
},
count: function(e) {
var t = 0;
- return re(e, function() {
+ return te(e, function() {
t++;
}), t;
},
toArray: function(e) {
- return re(e, function(e) {
+ return te(e, function(e) {
return e;
}) || [];
},
@@ -199,12 +199,12 @@ var i = Object.create, a = Object.defineProperty, o = Object.getOwnPropertyDescr
return e;
}
};
- e.Activity = f, e.Children = se, 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 = 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 = {
__proto__: null,
c: function(e) {
return T.H.useMemoCache(e);
}
- }, e.addTransitionType = oe, e.cache = function(e) {
+ }, e.addTransitionType = ie, e.cache = function(e) {
return function() {
return e.apply(null, arguments);
};
@@ -258,7 +258,7 @@ var i = Object.create, a = Object.defineProperty, o = Object.getOwnPropertyDescr
_status: -1,
_result: e
},
- _init: M
+ _init: P
};
}, e.memo = function(e, t) {
return {
@@ -266,7 +266,7 @@ var i = Object.create, a = Object.defineProperty, o = Object.getOwnPropertyDescr
type: e,
compare: t === void 0 ? null : t
};
- }, e.startTransition = ae, e.unstable_useCacheRefresh = function() {
+ }, e.startTransition = re, e.unstable_useCacheRefresh = function() {
return T.H.useCacheRefresh();
}, e.use = function(e) {
return T.H.use(e);
@@ -305,9 +305,9 @@ var i = Object.create, a = Object.defineProperty, o = Object.getOwnPropertyDescr
}, e.useTransition = function() {
return T.H.useTransition();
}, e.version = "19.3.0";
-})), m = /* @__PURE__ */ u(((e, t) => {
- t.exports = p();
-})), h = /* @__PURE__ */ u(((e) => {
+})), _ = /* @__PURE__ */ p(((e, t) => {
+ t.exports = g();
+})), v = /* @__PURE__ */ p(((e) => {
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
function r(e, n, r) {
var i = null;
@@ -322,25 +322,25 @@ var i = Object.create, a = Object.defineProperty, o = Object.getOwnPropertyDescr
};
}
e.Fragment = n, e.jsx = r, e.jsxs = r;
-})), g = /* @__PURE__ */ u(((e, t) => {
- t.exports = h();
-})), _ = /* @__PURE__ */ f(m(), 1), v = g(), y = _.createContext(void 0), b = (e) => {
- let t = _.useContext(y);
+})), y = /* @__PURE__ */ p(((e, t) => {
+ t.exports = v();
+})), b = /* @__PURE__ */ h(_(), 1), x = y(), S = b.createContext(void 0), C = (e) => {
+ let t = b.useContext(S);
if (e) return e;
if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");
return t;
-}, x = ({ client: e, children: t }) => (_.useEffect(() => (e.mount(), () => {
+}, w = ({ client: e, children: t }) => (b.useEffect(() => (e.mount(), () => {
e.unmount();
-}), [e]), /* @__PURE__ */ (0, v.jsx)(y.Provider, {
+}), [e]), /* @__PURE__ */ (0, x.jsx)(S.Provider, {
value: e,
children: t
-})), S = {
+})), T = {
setTimeout: (e, t) => setTimeout(e, t),
clearTimeout: (e) => clearTimeout(e),
setInterval: (e, t) => setInterval(e, t),
clearInterval: (e) => clearInterval(e)
-}, C = new class {
- #e = S;
+}, E = new class {
+ #e = T;
setTimeoutProvider(e) {
this.#e = e;
}
@@ -357,30 +357,30 @@ var i = Object.create, a = Object.defineProperty, o = Object.getOwnPropertyDescr
this.#e.clearInterval(e);
}
}();
-function w(e) {
+function D(e) {
setTimeout(e, 0);
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/utils.js
-var T = typeof window > "u" || "Deno" in globalThis;
-function E() {}
-function D(e, t) {
+var O = typeof window > "u" || "Deno" in globalThis;
+function k() {}
+function A(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function O(e) {
+function j(e) {
return typeof e == "number" && e >= 0 && e !== Infinity;
}
-function k(e, t) {
+function M(e, t) {
return Math.max(e + (t || 0) - Date.now(), 0);
}
-function A(e, t) {
+function N(e, t) {
return typeof e == "function" ? e(t) : e;
}
function ee(e, t) {
let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
if (o) {
if (r) {
- if (t.queryHash !== te(o, t.options)) return !1;
+ if (t.queryHash !== P(o, t.options)) return !1;
} else if (!re(t.queryKey, o)) return !1;
}
if (n !== "all") {
@@ -389,7 +389,7 @@ function ee(e, t) {
}
return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
}
-function j(e, t) {
+function te(e, t) {
let { exact: n, status: r, predicate: i, mutationKey: a } = e;
if (a) {
if (!t.options.mutationKey) return !1;
@@ -399,11 +399,11 @@ function j(e, t) {
}
return !(r && t.state.status !== r || i && !i(t));
}
-function te(e, t) {
+function P(e, t) {
return (t?.queryKeyHashFn || ne)(e);
}
function ne(e) {
- return JSON.stringify(e, (e, t) => se(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
+ return JSON.stringify(e, (e, t) => ce(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
}
function re(e, t) {
if (e === t) return !0;
@@ -419,70 +419,70 @@ function re(e, t) {
}
return !1;
}
-var M = Object.prototype.hasOwnProperty;
-function ie(e, t, n = 0) {
+var ie = Object.prototype.hasOwnProperty;
+function ae(e, t, n = 0) {
if (e === t) return e;
if (n > 500) return t;
- let r = oe(e) && oe(t);
- if (!r && !(se(e) && se(t))) return t;
+ let r = se(e) && se(t);
+ if (!r && !(ce(e) && ce(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 : M.call(e, o)) && c++;
+ s[o] = u, (r ? l < i : ie.call(e, o)) && c++;
continue;
}
if (u === null || d === null || typeof u != "object" || typeof d != "object") {
s[o] = d;
continue;
}
- let f = ie(u, d, n + 1);
+ let f = ae(u, d, n + 1);
s[o] = f, f === u && c++;
}
return i === o && c === i ? e : s;
}
-function ae(e, t) {
+function oe(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 oe(e) {
+function se(e) {
return Array.isArray(e) && e.length === Object.keys(e).length;
}
-function se(e) {
- if (!ce(e)) return !1;
+function ce(e) {
+ if (!le(e)) return !1;
let t = e.constructor;
if (t === void 0) return !0;
let n = t.prototype;
- return !(!ce(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
+ return !(!le(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
}
-function ce(e) {
+function le(e) {
return Object.prototype.toString.call(e) === "[object Object]";
}
-function le(e) {
+function ue(e) {
return new Promise((t) => {
- C.setTimeout(t, e);
+ E.setTimeout(t, e);
});
}
-function ue(e, t, n) {
- return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : ie(e, t);
+function de(e, t, n) {
+ return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : ae(e, t);
}
-function de(e, t, n = 0) {
+function fe(e, t, n = 0) {
let r = [...e, t];
return n && r.length > n ? r.slice(1) : r;
}
-function fe(e, t, n = 0) {
+function pe(e, t, n = 0) {
let r = [t, ...e];
return n && r.length > n ? r.slice(0, -1) : r;
}
-var pe = Symbol();
-function me(e, t) {
- return !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === pe ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
+var F = Symbol();
+function I(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 he(e, t) {
+function me(e, t) {
return typeof e == "function" ? e(...t) : !!e;
}
-function N(e, t, n) {
+function he(e, t, n) {
let r = !1, i;
return Object.defineProperty(e, "signal", {
enumerable: !0,
@@ -491,7 +491,7 @@ function N(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
-var P = () => T, ge = () => P(), _e = class {
+var ge = () => O, _e = () => ge(), ve = class {
constructor() {
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
}
@@ -505,7 +505,7 @@ var P = () => T, ge = () => P(), _e = class {
}
onSubscribe() {}
onUnsubscribe() {}
-}, ve = new class extends _e {
+}, ye = new class extends ve {
#e;
#t;
#n;
@@ -542,13 +542,13 @@ var P = () => T, ge = () => P(), _e = class {
isFocused() {
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
}
-}(), ye = w;
-function be() {
+}(), be = D;
+function xe() {
let e = [], t = 0, n = (e) => {
e();
}, r = (e) => {
e();
- }, i = ye, a = (r) => {
+ }, i = be, a = (r) => {
t ? e.push(r) : i(() => {
n(r);
});
@@ -590,7 +590,7 @@ function be() {
}
};
}
-var F = be(), xe = new class extends _e {
+var Se = xe(), Ce = new class extends ve {
#e = !0;
#t;
#n;
@@ -624,32 +624,32 @@ var F = be(), xe = new class extends _e {
}();
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
-function Se(e) {
+function we(e) {
return Math.min(1e3 * 2 ** e, 3e4);
}
-function Ce(e) {
- return (e ?? "online") !== "online" || xe.isOnline();
+function Te(e) {
+ return (e ?? "online") !== "online" || Ce.isOnline();
}
-var we = class extends Error {
+var Ee = class extends Error {
constructor(e) {
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
}
};
-function Te(e) {
+function De(e) {
let t = !1, n = 0, r, i = "pending", a, o, s = new Promise((e, t) => {
a = e, o = t;
});
- s.catch(E);
+ s.catch(k);
let c = () => i !== "pending", l = (t) => {
if (!c()) {
- let n = new we(t);
+ let n = new Ee(t);
h(n), e.onCancel?.(n);
}
}, u = () => {
t = !0;
}, d = () => {
t = !1;
- }, f = () => ve.isFocused() && (e.networkMode === "always" || xe.isOnline()) && e.canRun(), p = () => Ce(e.networkMode) && e.canRun(), m = (e) => {
+ }, f = () => ye.isFocused() && (e.networkMode === "always" || Ce.isOnline()) && e.canRun(), p = () => Te(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 Te(e) {
}
Promise.resolve(r).then(m).catch((r) => {
if (c()) return;
- let i = e.retry ?? (ge() ? 0 : 3), a = e.retryDelay ?? Se, 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 ?? (_e() ? 0 : 3), a = e.retryDelay ?? we, 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), le(o).then(() => f() ? void 0 : g()).then(() => {
+ n++, e.onFail?.(n, r), ue(o).then(() => f() ? void 0 : g()).then(() => {
t ? h(r) : _();
});
});
@@ -692,34 +692,34 @@ function Te(e) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/removable.js
-var Ee = class {
+var Oe = class {
#e;
destroy() {
this.clearGcTimeout();
}
scheduleGc() {
- this.clearGcTimeout(), O(this.gcTime) && (this.#e = C.setTimeout(() => {
+ this.clearGcTimeout(), j(this.gcTime) && (this.#e = E.setTimeout(() => {
this.optionalRemove();
}, this.gcTime));
}
updateGcTime(e) {
- this.gcTime = Math.max(this.gcTime || 0, e ?? (ge() ? Infinity : 3e5));
+ this.gcTime = Math.max(this.gcTime || 0, e ?? (_e() ? Infinity : 3e5));
}
clearGcTimeout() {
- this.#e !== void 0 && (C.clearTimeout(this.#e), this.#e = void 0);
+ this.#e !== void 0 && (E.clearTimeout(this.#e), this.#e = void 0);
}
};
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
-function De(e) {
+function ke(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) => {
- N(e, () => t.signal, () => n = !0);
- }, u = me(t.options, t.fetchOptions), d = async (e, r, i) => {
+ he(e, () => t.signal, () => n = !0);
+ }, u = I(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 De(e) {
meta: t.options.meta
};
return l(e), e;
- })(), o = await u(a), { maxPages: s } = t.options, c = i ? fe : de;
+ })(), o = await u(a), { maxPages: s } = t.options, c = i ? pe : fe;
return {
pages: c(e.pages, o, s),
pageParams: c(e.pageParams, r, s)
};
};
if (i && a.length) {
- let e = i === "backward", t = e ? ke : Oe, n = {
+ let e = i === "backward", t = e ? je : Ae, n = {
pages: a,
pageParams: o
};
@@ -746,7 +746,7 @@ function De(e) {
} else {
let t = e ?? a.length;
do {
- let e = c === 0 ? o[0] ?? r.initialPageParam : Oe(r, s);
+ let e = c === 0 ? o[0] ?? r.initialPageParam : Ae(r, s);
if (c > 0 && e == null) break;
s = await d(s, e), c++;
} while (c < t);
@@ -761,16 +761,16 @@ function De(e) {
}, n) : l;
} };
}
-function Oe(e, { pages: t, pageParams: n }) {
+function Ae(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 ke(e, { pages: t, pageParams: n }) {
+function je(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 Ae = class extends Ee {
+var Me = class extends Oe {
#e;
#t;
#n;
@@ -780,7 +780,7 @@ var Ae = class extends Ee {
#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 = Ne(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 = Fe(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
}
get meta() {
return this.options.meta;
@@ -796,15 +796,15 @@ var Ae = class extends Ee {
...this.#o,
...e
}, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
- let e = Ne(this.options);
- e.data !== void 0 && (this.setState(Me(e.data, e.dataUpdatedAt)), this.#t = e);
+ let e = Fe(this.options);
+ e.data !== void 0 && (this.setState(Pe(e.data, e.dataUpdatedAt)), this.#t = e);
}
}
optionalRemove() {
!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
}
setData(e, t) {
- let n = ue(this.state.data, e, this.options);
+ let n = de(this.state.data, e, this.options);
return this.#c({
data: n,
type: "success",
@@ -820,7 +820,7 @@ var Ae = class extends Ee {
}
cancel(e) {
let t = this.#a?.promise;
- return this.#a?.cancel(e), t ? t.then(E).catch(E) : Promise.resolve();
+ return this.#a?.cancel(e), t ? t.then(k).catch(k) : Promise.resolve();
}
destroy() {
super.destroy(), this.cancel({ silent: !0 });
@@ -832,22 +832,22 @@ var Ae = class extends Ee {
this.destroy(), this.setState(this.resetState);
}
isActive() {
- return this.observers.some((e) => A(e.options.enabled, this) !== !1);
+ return this.observers.some((e) => N(e.options.enabled, this) !== !1);
}
isDisabled() {
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === pe || !this.isFetched();
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === F || !this.isFetched();
}
isFetched() {
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
}
isStatic() {
- return this.getObserversCount() > 0 && this.observers.some((e) => A(e.options.staleTime, this) === "static");
+ return this.getObserversCount() > 0 && this.observers.some((e) => N(e.options.staleTime, this) === "static");
}
isStale() {
return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
}
isStaleByTime(e = 0) {
- return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !k(this.state.dataUpdatedAt, e);
+ return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !M(this.state.dataUpdatedAt, e);
}
onFocus() {
this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
@@ -891,7 +891,7 @@ var Ae = class extends Ee {
get: () => (this.#s = !0, n.signal)
});
}, i = () => {
- let e = me(this.options, t), n = (() => {
+ let e = I(this.options, t), n = (() => {
let e = {
client: this.#i,
queryKey: this.queryKey,
@@ -911,15 +911,15 @@ var Ae = class extends Ee {
};
return r(e), e;
})();
- (this.#e === "infinite" ? De(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" ? ke(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 = Te({
+ let o = this.#a = De({
initialPromise: t?.initialPromise,
fn: a.fetchFn,
onCancel: (e) => {
- e instanceof we && e.revert && this.setState({
+ e instanceof Ee && e.revert && this.setState({
...this.#n,
fetchStatus: "idle"
}), n.abort();
@@ -947,7 +947,7 @@ var Ae = class extends Ee {
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 we) {
+ if (e instanceof Ee) {
if (e.silent) return this.#a.promise;
if (e.revert) {
if (this.state.data === void 0) throw e;
@@ -980,13 +980,13 @@ var Ae = class extends Ee {
};
case "fetch": return {
...t,
- ...je(t.data, this.options),
+ ...Ne(t.data, this.options),
fetchMeta: e.meta ?? null
};
case "success":
let n = {
...t,
- ...Me(e.data, e.dataUpdatedAt),
+ ...Pe(e.data, e.dataUpdatedAt),
dataUpdateCount: t.dataUpdateCount + 1,
...!e.manual && {
fetchStatus: "idle",
@@ -1018,7 +1018,7 @@ var Ae = class extends Ee {
};
}
};
- this.state = t(this.state), F.batch(() => {
+ this.state = t(this.state), Se.batch(() => {
this.observers.slice().forEach((e) => {
e.onQueryUpdate();
}), this.#r.notify({
@@ -1029,18 +1029,18 @@ var Ae = class extends Ee {
});
}
};
-function je(e, t) {
+function Ne(e, t) {
return {
fetchFailureCount: 0,
fetchFailureReason: null,
- fetchStatus: Ce(t.networkMode) ? "fetching" : "paused",
+ fetchStatus: Te(t.networkMode) ? "fetching" : "paused",
...e === void 0 && {
error: null,
status: "pending"
}
};
}
-function Me(e, t) {
+function Pe(e, t) {
return {
data: e,
dataUpdatedAt: t ?? Date.now(),
@@ -1049,7 +1049,7 @@ function Me(e, t) {
status: "success"
};
}
-function Ne(e) {
+function Fe(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 Ne(e) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/queryObserver.js
-var Pe = class extends _e {
+var Ie = class extends ve {
#e;
#t = void 0;
#n = void 0;
@@ -1090,36 +1090,36 @@ var Pe = class extends _e {
this.refetch = this.refetch.bind(this);
}
onSubscribe() {
- this.listeners.size === 1 && (this.#t.addObserver(this), Ie(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());
+ this.listeners.size === 1 && (this.#t.addObserver(this), Re(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());
}
onUnsubscribe() {
this.hasListeners() || this.destroy();
}
shouldFetchOnReconnect() {
- return Le(this.#t, this.options, this.options.refetchOnReconnect);
+ return ze(this.#t, this.options, this.options.refetchOnReconnect);
}
shouldFetchOnWindowFocus() {
- return Le(this.#t, this.options, this.options.refetchOnWindowFocus);
+ return ze(this.#t, this.options, this.options.refetchOnWindowFocus);
}
destroy() {
this.listeners = /* @__PURE__ */ new Set(), this.#b(), this.#x(), this.#t.removeObserver(this);
}
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 A(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 && !ae(this.options, t) && this.#e.getQueryCache().notify({
+ if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof N(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 && !oe(this.options, t) && this.#e.getQueryCache().notify({
type: "observerOptionsUpdated",
query: this.#t,
observer: this
});
let r = this.hasListeners();
- r && Re(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || A(this.options.enabled, this.#t) !== A(t.enabled, this.#t) || A(this.options.staleTime, this.#t) !== A(t.staleTime, this.#t)) && this.#g();
+ r && Be(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || N(this.options.enabled, this.#t) !== N(t.enabled, this.#t) || N(this.options.staleTime, this.#t) !== N(t.staleTime, this.#t)) && this.#g();
let i = this.#_();
- r && (this.#t !== n || A(this.options.enabled, this.#t) !== A(t.enabled, this.#t) || i !== this.#f) && this.#v(i);
+ r && (this.#t !== n || N(this.options.enabled, this.#t) !== N(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 ae(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
+ return oe(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
}
getCurrentResult() {
return this.#r;
@@ -1158,17 +1158,17 @@ var Pe = class extends _e {
#m(e) {
this.#S();
let t = this.#t.fetch(this.options, e);
- return e?.throwOnError || (t = t.catch(E)), t;
+ return e?.throwOnError || (t = t.catch(k)), t;
}
#h(e) {
- return !ge() && A(this.options.enabled, this.#t) !== !1 && O(e);
+ return !_e() && N(this.options.enabled, this.#t) !== !1 && j(e);
}
#g() {
this.#b();
- let e = A(this.options.staleTime, this.#t);
+ let e = N(this.options.staleTime, this.#t);
if (this.#r.isStale || !this.#h(e)) return;
- let t = k(this.#r.dataUpdatedAt, e) + 1;
- this.#u = C.setTimeout(() => {
+ let t = M(this.#r.dataUpdatedAt, e) + 1;
+ this.#u = E.setTimeout(() => {
this.#r.isStale || this.updateResult();
}, t);
}
@@ -1176,26 +1176,26 @@ var Pe = class extends _e {
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
}
#v(e) {
- this.#x(), this.#f = e, !(this.#f === 0 || !this.#h(this.#f)) && (this.#d = C.setInterval(() => {
- (this.options.refetchIntervalInBackground || ve.isFocused()) && this.#m();
+ this.#x(), this.#f = e, !(this.#f === 0 || !this.#h(this.#f)) && (this.#d = E.setInterval(() => {
+ (this.options.refetchIntervalInBackground || ye.isFocused()) && this.#m();
}, this.#f));
}
#y() {
this.#g(), this.#v(this.#_());
}
#b() {
- this.#u !== void 0 && (C.clearTimeout(this.#u), this.#u = void 0);
+ this.#u !== void 0 && (E.clearTimeout(this.#u), this.#u = void 0);
}
#x() {
- this.#d !== void 0 && (C.clearInterval(this.#d), this.#d = void 0);
+ this.#d !== void 0 && (E.clearInterval(this.#d), this.#d = void 0);
}
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 && Ie(e, t), o = i && Re(e, n, t, r);
+ let i = this.hasListeners(), a = !i && Re(e, t), o = i && Be(e, n, t, r);
(a || o) && (l = {
...l,
- ...je(c.data, e.options)
+ ...Ne(c.data, e.options)
}), t._optimisticResults === "isRestoring" && (l.fetchStatus = "idle");
}
let { error: f, errorUpdatedAt: p, status: m } = l;
@@ -1203,12 +1203,12 @@ var Pe = class extends _e {
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 = ue(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 = de(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 = ue(i?.data, d, t), this.#c = d, this.#o = null;
+ this.#s = t.select, d = t.select(d), d = de(i?.data, d, t), this.#c = d, this.#o = null;
} catch (e) {
this.#o = e;
}
@@ -1238,14 +1238,14 @@ var Pe = class extends _e {
isPaused: l.fetchStatus === "paused",
isPlaceholderData: u,
isRefetchError: v && b,
- isStale: ze(e, t),
+ isStale: Ve(e, t),
refetch: this.refetch,
- isEnabled: A(t.enabled, e) !== !1
+ isEnabled: N(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), ae(t, e)) return;
+ if (this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#l = this.#t), oe(t, e)) return;
this.#r = t;
let n = (() => {
if (!e) return !0;
@@ -1257,7 +1257,7 @@ var Pe = class extends _e {
return this.#r[n] !== e[n] && r.has(n);
});
})();
- F.batch(() => {
+ Se.batch(() => {
n && this.listeners.forEach((e) => {
e(this.#r);
}), this.#e.getQueryCache().notify({
@@ -1276,34 +1276,34 @@ var Pe = class extends _e {
this.updateResult(), this.hasListeners() && this.#y();
}
};
-function Fe(e, t) {
- return A(t.enabled, e) !== !1 && e.state.data === void 0 && (e.state.status !== "error" || A(t.retryOnMount, e) !== !1);
+function Le(e, t) {
+ return N(t.enabled, e) !== !1 && e.state.data === void 0 && (e.state.status !== "error" || N(t.retryOnMount, e) !== !1);
}
-function Ie(e, t) {
- return Fe(e, t) || e.state.data !== void 0 && Le(e, t, t.refetchOnMount);
+function Re(e, t) {
+ return Le(e, t) || e.state.data !== void 0 && ze(e, t, t.refetchOnMount);
}
-function Le(e, t, n) {
- if (A(t.enabled, e) !== !1 && A(t.staleTime, e) !== "static") {
+function ze(e, t, n) {
+ if (N(t.enabled, e) !== !1 && N(t.staleTime, e) !== "static") {
let r = typeof n == "function" ? n(e) : n;
- return r === "always" || r !== !1 && ze(e, t);
+ return r === "always" || r !== !1 && Ve(e, t);
}
return !1;
}
-function Re(e, t, n, r) {
- return (e !== t || A(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && ze(e, n);
+function Be(e, t, n, r) {
+ return (e !== t || N(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && Ve(e, n);
}
-function ze(e, t) {
- return A(t.enabled, e) !== !1 && e.isStaleByTime(A(t.staleTime, e));
+function Ve(e, t) {
+ return N(t.enabled, e) !== !1 && e.isStaleByTime(N(t.staleTime, e));
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/mutation.js
-var Be = class extends Ee {
+var He = class extends Oe {
#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 || Ve(), 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 || Ue(), this.setOptions(e.options), this.scheduleGc();
}
setOptions(e) {
this.options = e, this.updateGcTime(this.options.gcTime);
@@ -1338,7 +1338,7 @@ var Be = class extends Ee {
client: this.#e,
meta: this.options.meta,
mutationKey: this.options.mutationKey
- }, r = this.#r = Te({
+ }, r = this.#r = De({
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 Be = class extends Ee {
};
}
};
- this.state = t(this.state), F.batch(() => {
+ this.state = t(this.state), Se.batch(() => {
this.#t.forEach((t) => {
t.onMutationUpdate(e);
}), this.#n.notify({
@@ -1465,7 +1465,7 @@ var Be = class extends Ee {
});
}
};
-function Ve() {
+function Ue() {
return {
context: void 0,
data: void 0,
@@ -1480,7 +1480,7 @@ function Ve() {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
-var He = class extends _e {
+var We = class extends ve {
#e;
#t;
#n;
@@ -1488,7 +1488,7 @@ var He = class extends _e {
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
}
build(e, t, n) {
- let r = new Be({
+ let r = new He({
client: e,
mutationCache: this,
mutationId: ++this.#n,
@@ -1499,7 +1499,7 @@ var He = class extends _e {
}
add(e) {
this.#e.add(e);
- let t = Ue(e);
+ let t = Ge(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 He = class extends _e {
}
remove(e) {
if (this.#e.delete(e)) {
- let t = Ue(e);
+ let t = Ge(e);
if (typeof t == "string") {
let n = this.#t.get(t);
if (n) {
@@ -1528,7 +1528,7 @@ var He = class extends _e {
});
}
canRun(e) {
- let t = Ue(e);
+ let t = Ge(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 He = class extends _e {
return !0;
}
runNext(e) {
- let t = Ue(e);
+ let t = Ge(e);
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
}
clear() {
- F.batch(() => {
+ Se.batch(() => {
this.#e.forEach((e) => {
this.notify({
type: "removed",
@@ -1557,13 +1557,13 @@ var He = class extends _e {
exact: !0,
...e
};
- return this.getAll().find((e) => j(t, e));
+ return this.getAll().find((e) => te(t, e));
}
findAll(e = {}) {
- return this.getAll().filter((t) => j(e, t));
+ return this.getAll().filter((t) => te(e, t));
}
notify(e) {
- F.batch(() => {
+ Se.batch(() => {
this.listeners.forEach((t) => {
t(e);
});
@@ -1571,22 +1571,22 @@ var He = class extends _e {
}
resumePausedMutations() {
let e = this.getAll().filter((e) => e.state.isPaused);
- return F.batch(() => Promise.all(e.map((e) => e.continue().catch(E))));
+ return Se.batch(() => Promise.all(e.map((e) => e.continue().catch(k))));
}
};
-function Ue(e) {
+function Ge(e) {
return e.options.scope?.id;
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/queryCache.js
-var We = class extends _e {
+var Ke = class extends ve {
#e;
constructor(e = {}) {
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
}
build(e, t, n) {
- let r = t.queryKey, i = t.queryHash ?? te(r, t), a = this.get(i);
- return a || (a = new Ae({
+ let r = t.queryKey, i = t.queryHash ?? P(r, t), a = this.get(i);
+ return a || (a = new Me({
client: e,
queryKey: r,
queryHash: i,
@@ -1609,7 +1609,7 @@ var We = class extends _e {
}));
}
clear() {
- F.batch(() => {
+ Se.batch(() => {
this.getAll().forEach((e) => {
this.remove(e);
});
@@ -1633,27 +1633,27 @@ var We = class extends _e {
return Object.keys(e).length > 0 ? t.filter((t) => ee(e, t)) : t;
}
notify(e) {
- F.batch(() => {
+ Se.batch(() => {
this.listeners.forEach((t) => {
t(e);
});
});
}
onFocus() {
- F.batch(() => {
+ Se.batch(() => {
this.getAll().forEach((e) => {
e.onFocus();
});
});
}
onOnline() {
- F.batch(() => {
+ Se.batch(() => {
this.getAll().forEach((e) => {
e.onOnline();
});
});
}
-}, Ge = class {
+}, qe = class {
#e;
#t;
#n;
@@ -1663,12 +1663,12 @@ var We = class extends _e {
#o;
#s;
constructor(e = {}) {
- this.#e = e.queryCache || new We(), this.#t = e.mutationCache || new He(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
+ this.#e = e.queryCache || new Ke(), this.#t = e.mutationCache || new We(), 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 = ve.subscribe(async (e) => {
+ this.#a++, this.#a === 1 && (this.#o = ye.subscribe(async (e) => {
e && (await this.resumePausedMutations(), this.#e.onFocus());
- }), this.#s = xe.subscribe(async (e) => {
+ }), this.#s = Ce.subscribe(async (e) => {
e && (await this.resumePausedMutations(), this.#e.onOnline());
}));
}
@@ -1693,20 +1693,20 @@ var We = class extends _e {
}
ensureQueryData(e) {
let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
- return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(A(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
+ return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(N(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
}
getQueriesData(e) {
return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
}
setQueryData(e, t, n) {
- let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = D(t, i);
+ let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = A(t, i);
if (a !== void 0) return this.#e.build(this, r).setData(a, {
...n,
manual: !0
});
}
setQueriesData(e, t, n) {
- return F.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
+ return Se.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
}
getQueryState(e) {
let t = this.defaultQueryOptions({ queryKey: e });
@@ -1714,7 +1714,7 @@ var We = class extends _e {
}
removeQueries(e) {
let t = this.#e;
- F.batch(() => {
+ Se.batch(() => {
t.findAll(e).forEach((e) => {
t.remove(e);
});
@@ -1722,7 +1722,7 @@ var We = class extends _e {
}
resetQueries(e, t) {
let n = this.#e;
- return F.batch(() => {
+ return Se.batch(() => {
let r = n.findAll(e), i = new Set(r);
return r.forEach((e) => {
e.reset();
@@ -1736,11 +1736,11 @@ var We = class extends _e {
let n = {
revert: !0,
...t
- }, r = F.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
- return Promise.all(r).then(E).catch(E);
+ }, r = Se.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
+ return Promise.all(r).then(k).catch(k);
}
invalidateQueries(e, t = {}) {
- return F.batch(() => (this.#e.findAll(e).forEach((e) => {
+ return Se.batch(() => (this.#e.findAll(e).forEach((e) => {
e.invalidate();
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
...e,
@@ -1751,26 +1751,26 @@ var We = class extends _e {
let n = {
...t,
cancelRefetch: t.cancelRefetch ?? !0
- }, r = F.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
+ }, r = Se.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(E)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
+ return n.throwOnError || (t = t.catch(k)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
}));
- return Promise.all(r).then(E);
+ return Promise.all(r).then(k);
}
async query(e) {
let t = this.defaultQueryOptions(e);
t.retry === void 0 && (t.retry = !1);
- let n = this.#e.build(this, t), r = n.isStaleByTime(A(t.staleTime, n)) ? await n.fetch(t) : n.state.data, i = t.select;
+ let n = this.#e.build(this, t), r = n.isStaleByTime(N(t.staleTime, n)) ? await n.fetch(t) : n.state.data, i = t.select;
return i ? i(r) : r;
}
fetchQuery(e) {
let t = this.defaultQueryOptions(e);
t.retry === void 0 && (t.retry = !1);
let n = this.#e.build(this, t);
- return n.isStaleByTime(A(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
+ return n.isStaleByTime(N(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
}
prefetchQuery(e) {
- return this.fetchQuery(e).then(E).catch(E);
+ return this.fetchQuery(e).then(k).catch(k);
}
infiniteQuery(e) {
return e._type = "infinite", this.query(e);
@@ -1779,13 +1779,13 @@ var We = class extends _e {
return e._type = "infinite", this.fetchQuery(e);
}
prefetchInfiniteQuery(e) {
- return this.fetchInfiniteQuery(e).then(E).catch(E);
+ return this.fetchInfiniteQuery(e).then(k).catch(k);
}
ensureInfiniteQueryData(e) {
return e._type = "infinite", this.ensureQueryData(e);
}
resumePausedMutations() {
- return xe.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
+ return Ce.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
}
getQueryCache() {
return this.#e;
@@ -1831,7 +1831,7 @@ var We = class extends _e {
...e,
_defaulted: !0
};
- return t.queryHash ||= te(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 === pe && (t.enabled = !1), t;
+ return t.queryHash ||= P(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 : {
@@ -1844,11 +1844,11 @@ var We = class extends _e {
clear() {
this.#e.clear(), this.#t.clear();
}
-}, Ke = _.createContext(!1), qe = () => _.useContext(Ke);
-Ke.Provider;
+}, Je = b.createContext(!1), Ye = () => b.useContext(Je);
+Je.Provider;
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
-function Je() {
+function Xe() {
let e = !1;
return {
clearReset: () => {
@@ -1860,34 +1860,34 @@ function Je() {
isReset: () => e
};
}
-var Ye = _.createContext(Je()), Xe = () => _.useContext(Ye), Ze = (e, t, n) => {
- let r = n?.state.error && typeof e.throwOnError == "function" ? he(e.throwOnError, [n.state.error, n]) : e.throwOnError;
+var Ze = b.createContext(Xe()), Qe = () => b.useContext(Ze), $e = (e, t, n) => {
+ let r = n?.state.error && typeof e.throwOnError == "function" ? me(e.throwOnError, [n.state.error, n]) : e.throwOnError;
(e.suspense || r) && (t.isReset() || (e.retryOnMount = !1));
-}, Qe = (e) => {
- _.useEffect(() => {
+}, et = (e) => {
+ b.useEffect(() => {
e.clearReset();
}, [e]);
-}, $e = ({ 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])), et = (e) => {
+}, tt = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || me(n, [e.error, r])), nt = (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));
}
-}, tt = (e, t) => e?.suspense && t.isPending, nt = (e, t, n) => t.fetchOptimistic(e).catch(() => {
+}, rt = (e, t) => e?.suspense && t.isPending, it = (e, t, n) => t.fetchOptimistic(e).catch(() => {
n.clearReset();
});
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
-function rt(e, t, n) {
- let r = qe(), i = Xe(), a = b(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
- o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, et(o), Ze(o, i, s), Qe(i);
- let [l] = _.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;
- if (_.useSyncExternalStore(_.useCallback((e) => {
- let t = d ? l.subscribe(F.batchCalls(e)) : E;
+function at(e, t, n) {
+ let r = Ye(), i = Qe(), a = C(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
+ o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, nt(o), $e(o, i, s), et(i);
+ let [l] = b.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;
+ if (b.useSyncExternalStore(b.useCallback((e) => {
+ let t = d ? l.subscribe(Se.batchCalls(e)) : k;
return l.updateResult(), t;
- }, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), _.useEffect(() => {
+ }, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), b.useEffect(() => {
l.setOptions(o);
- }, [o, l]), tt(o, u)) throw nt(o, l, i);
- if ($e({
+ }, [o, l]), rt(o, u)) throw it(o, l, i);
+ if (tt({
result: u,
errorResetBoundary: i,
throwOnError: o.throwOnError,
@@ -1898,12 +1898,12 @@ function rt(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useQuery.js
-function it(e, t) {
- return rt(e, Pe, t);
+function ot(e, t) {
+ return at(e, Ie, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/BaseCollection.mjs
-var at = class {
+var st = 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;
}
@@ -1918,22 +1918,22 @@ var at = class {
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, ot = class extends at {
+}, ct = class extends st {
filter(e, t, n) {
- let [r, i] = ut(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = ft(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends at {
+(class extends st {
static {
this.type = "header";
}
});
-var st = class extends at {
+var lt = class extends st {
static {
this.type = "loader";
}
-}, ct = class extends ot {
+}, ut = class extends ct {
static {
this.type = "item";
}
@@ -1945,7 +1945,7 @@ var st = class extends at {
return null;
}
};
-(class extends ot {
+(class extends ct {
static {
this.type = "section";
}
@@ -1958,7 +1958,7 @@ var st = class extends at {
return null;
}
});
-var lt = class {
+var dt = class {
get size() {
return this.itemCount;
}
@@ -2033,14 +2033,14 @@ var lt = class {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = ut(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = ft(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 ut(e, t, n, r) {
+function ft(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -2055,7 +2055,7 @@ function ut(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/Document.mjs
-var dt = class {
+var pt = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -2136,7 +2136,7 @@ var dt = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, ft = class e extends dt {
+}, mt = class e extends pt {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -2187,7 +2187,7 @@ var dt = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, pt = class extends dt {
+}, ht = class extends pt {
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;
}
@@ -2195,7 +2195,7 @@ var dt = class {
return !0;
}
createElement(e) {
- return new ft(e, this);
+ return new mt(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -2217,8 +2217,8 @@ var dt = class {
return this.inSubscription ? this.collection : (this.queuedRender = !1, this.updateCollection(), this.collection);
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof ft && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof ft ? (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 mt && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof mt ? (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() {
@@ -2237,19 +2237,19 @@ var dt = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function mt(e) {
- let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, _.useMemo)(() => void 0, [t]), s = (0, _.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
- return (0, _.useMemo)(() => {
+function gt(e) {
+ let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, b.useMemo)(() => void 0, [t]), s = (0, b.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
+ return (0, b.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = ht(a) ? a : null, o = n ? s.get(n) : null;
+ let n = _t(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
r != null && o.props.id == null && c != null && (c = r + ":" + c);
let l = c ?? e.length;
- o = (0, _.cloneElement)(o, i ? {
+ o = (0, b.cloneElement)(o, i ? {
key: l,
id: c,
value: a
@@ -2268,7 +2268,7 @@ function mt(e) {
i
]);
}
-function ht(e) {
+function _t(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -2278,26 +2278,26 @@ function ht(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function gt(e) {
- if (vt()) e.focus({ preventScroll: !0 });
+function vt(e) {
+ if (bt()) e.focus({ preventScroll: !0 });
else {
- let t = yt(e);
- e.focus(), bt(t);
+ let t = xt(e);
+ e.focus(), St(t);
}
}
-var _t = null;
-function vt() {
- if (_t == null) {
- _t = !1;
+var yt = null;
+function bt() {
+ if (yt == null) {
+ yt = !1;
try {
document.createElement("div").focus({ get preventScroll() {
- return _t = !0, !0;
+ return yt = !0, !0;
} });
} catch {}
}
- return _t;
+ return yt;
}
-function yt(e) {
+function xt(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,
@@ -2310,25 +2310,25 @@ function yt(e) {
scrollLeft: r.scrollLeft
}), n;
}
-function bt(e) {
+function St(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 I = (e) => Ct(e) ? e.document : wt(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), xt = (e) => I(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function St(e) {
+var L = (e) => Tt(e) ? e.document : Et(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), Ct = (e) => L(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function wt(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function Ct(e) {
+function Tt(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function wt(e) {
- return St(e) && e.nodeType === 9;
+function Et(e) {
+ return wt(e) && e.nodeType === 9;
}
-function Tt(e) {
- return St(e) && e.nodeType === 11 && "host" in e;
+function Dt(e) {
+ return wt(e) && e.nodeType === 11 && "host" in e;
}
-function Et(e, t, n, r) {
+function Ot(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);
@@ -2336,7 +2336,7 @@ function Et(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function Dt(e, t, n, r) {
+function kt(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -2351,73 +2351,73 @@ function Dt(e, t, n, r) {
}
//#endregion
//#region node_modules/react-stately/dist/private/flags/flags.mjs
-var Ot = !1;
-function kt() {
- return Ot;
+var At = !1;
+function jt() {
+ return At;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function L(e, t) {
- if (!kt()) return t && e ? e.contains(t) : !1;
+function R(e, t) {
+ if (!jt()) 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 : Tt(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : Dt(n) ? n.host : n.parentNode;
}
return !1;
}
-var At = (e = document) => {
- if (!kt()) return e.activeElement;
+var Mt = (e = document) => {
+ if (!jt()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
-function R(e) {
- if (kt() && e.target instanceof Element && e.target.shadowRoot) {
+function z(e) {
+ if (jt() && 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 jt(e, t) {
+function Nt(e, t) {
if (t === null) return [];
- t ??= xt(e);
+ t ??= Ct(e);
let n = [t];
- if (!kt() || !e || e === t) return n;
+ if (!jt() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; Tt(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; Dt(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function Mt(e) {
+function Pt(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = xt(e);
+ let t = e.getRootNode(), n = Ct(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 Nt = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function Pt(e) {
- let t = xt(e);
+var Ft = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function It(e) {
+ let t = Ct(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 } = xt(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = Ct(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function Ft(e, t) {
+function Lt(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 It(e, t) {
- return Nt ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && Pt(e) && Ft(e, t) && (!e.parentElement || It(e.parentElement, e));
+function Rt(e, t) {
+ return Ft ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && It(e) && Lt(e, t) && (!e.parentElement || Rt(e.parentElement, e));
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var Lt = [
+var zt = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -2432,60 +2432,60 @@ var Lt = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], Rt = Lt.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-Lt.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var zt = Lt.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function Bt(e, t) {
- return e.matches(Rt) && !Ht(e) && (t?.skipVisibilityCheck || It(e));
+], Bt = zt.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+zt.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var Vt = zt.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function Ht(e, t) {
+ return e.matches(Bt) && !Ut(e) && (t?.skipVisibilityCheck || Rt(e));
}
-function Vt(e) {
- return e.matches(zt) && It(e) && !Ht(e);
+function B(e) {
+ return e.matches(Vt) && Rt(e) && !Ut(e);
}
-function Ht(e) {
+function Ut(e) {
let t = e;
for (; t != null;) {
- if (t instanceof xt(t).HTMLElement && t.inert) return !0;
+ if (t instanceof Ct(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var z = typeof document < "u" ? _.useLayoutEffect : () => {};
+var V = typeof document < "u" ? b.useLayoutEffect : () => {};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/utils.mjs
-function B(e) {
+function Wt(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function Ut(e, t) {
+function Gt(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function Wt(e) {
- let t = (0, _.useRef)({
+function Kt(e) {
+ let t = (0, b.useRef)({
isFocused: !1,
observer: null
});
- return z(() => {
+ return V(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
};
- }, []), (0, _.useCallback)((n) => {
- let r = R(n);
+ }, []), (0, b.useCallback)((n) => {
+ let r = z(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 = B(r);
+ let t = Wt(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 === At() ? null : At();
+ let e = n === Mt() ? null : Mt();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -2498,83 +2498,83 @@ function Wt(e) {
}
}, [e]);
}
-var Gt = !1;
-function Kt(e) {
- for (; e && !Bt(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = At(xt(e).document);
+var qt = !1;
+function Jt(e) {
+ for (; e && !Ht(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = Mt(Ct(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && Tt(n) ? n : xt(e), i = (t) => t === e || t != null && L(e, t), a = (e) => e === t || t != null && e != null && L(t, e);
- Gt = !0;
+ let n = e?.getRootNode(), r = n != null && Dt(n) ? n : Ct(e), i = (t) => t === e || t != null && R(e, t), a = (e) => e === t || t != null && e != null && R(t, e);
+ qt = !0;
let o = !1, s = (e) => {
- (a(R(e)) || o) && e.stopImmediatePropagation();
+ (a(z(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(R(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, gt(t), d()));
+ (a(z(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, vt(t), d()));
}, l = (e) => {
- (i(R(e)) || o) && e.stopImmediatePropagation();
+ (i(z(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(R(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, gt(t), d()));
+ (i(z(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, vt(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), Gt = !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), qt = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/platform.mjs
-function qt(e) {
+function Yt(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 Jt(e) {
+function Xt(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function Yt(e) {
+function Zt(e) {
let t = null;
return () => (t ??= e(), t);
}
-var Xt = Yt(function() {
- return Jt(/^Mac/i);
-}), Zt = Yt(function() {
- return Jt(/^iPhone/i);
-}), Qt = Yt(function() {
- return Jt(/^iPad/i) || Xt() && navigator.maxTouchPoints > 1;
-}), $t = Yt(function() {
- return Zt() || Qt();
-}), en = Yt(function() {
- return Xt() || $t();
-}), tn = Yt(function() {
- return qt(/AppleWebKit/i) && ($t() || !nn());
-}), nn = Yt(function() {
- return qt(/Chrome|CriOS|CrMo/i);
-}), rn = Yt(function() {
- return qt(/Android/i);
-}), an = Yt(function() {
- return qt(/(Firefox|FxiOS)/i);
+var Qt = Zt(function() {
+ return Xt(/^Mac/i);
+}), $t = Zt(function() {
+ return Xt(/^iPhone/i);
+}), en = Zt(function() {
+ return Xt(/^iPad/i) || Qt() && navigator.maxTouchPoints > 1;
+}), tn = Zt(function() {
+ return $t() || en();
+}), nn = Zt(function() {
+ return Qt() || tn();
+}), rn = Zt(function() {
+ return Yt(/AppleWebKit/i) && (tn() || !an());
+}), an = Zt(function() {
+ return Yt(/Chrome|CriOS|CrMo/i);
+}), on = Zt(function() {
+ return Yt(/Android/i);
+}), sn = Zt(function() {
+ return Yt(/(Firefox|FxiOS)/i);
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function on(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : rn() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+function cn(e) {
+ return e.pointerType === "" && e.isTrusted ? !0 : on() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function sn(e) {
- return !rn() && e.width === 0 && e.height === 0 || rn() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function ln(e) {
+ return !on() && e.width === 0 && e.height === 0 || on() && 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 cn = /*#__PURE__*/ (0, _.createContext)({
+var un = /*#__PURE__*/ (0, b.createContext)({
isNative: !0,
- open: fn,
+ open: mn,
useHref: (e) => e
});
-function ln() {
- return (0, _.useContext)(cn);
+function dn() {
+ return (0, b.useContext)(un);
}
-function un(e, t, n = !0) {
+function fn(e, t, n = !0) {
let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t;
- !tn() && an() && window.event?.type?.startsWith("key") && e.target === "_blank" && (Xt() ? r = !0 : i = !0);
- let s = tn() && Xt() && !Qt() ? new KeyboardEvent("keydown", {
+ !rn() && sn() && window.event?.type?.startsWith("key") && e.target === "_blank" && (Qt() ? r = !0 : i = !0);
+ let s = rn() && Qt() && !en() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -2589,21 +2589,21 @@ function un(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- un.isOpening = n, gt(e), e.dispatchEvent(s), un.isOpening = !1;
+ fn.isOpening = n, vt(e), e.dispatchEvent(s), fn.isOpening = !1;
}
-un.isOpening = !1;
-function dn(e, t) {
+fn.isOpening = !1;
+function pn(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 fn(e, t) {
- dn(e, (e) => un(e, t));
+function mn(e, t) {
+ pn(e, (e) => fn(e, t));
}
-function pn(e) {
- let t = ln().useHref(e?.href ?? ""), n = {};
+function hn(e) {
+ let t = dn().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -2616,121 +2616,121 @@ function pn(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var mn = {
+var gn = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, hn = /*#__PURE__*/ _.createContext(mn), gn = /*#__PURE__*/ _.createContext(!1);
+}, _n = /*#__PURE__*/ b.createContext(gn), vn = /*#__PURE__*/ b.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var _n = /* @__PURE__ */ new WeakMap();
-function vn(e = !1) {
- let t = (0, _.useContext)(hn), n = (0, _.useRef)(null);
+var yn = /* @__PURE__ */ new WeakMap();
+function bn(e = !1) {
+ let t = (0, b.useContext)(_n), n = (0, b.useRef)(null);
if (n.current === null && !e) {
- let e = _.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
+ let e = b.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = _n.get(e);
- n == null ? _n.set(e, {
+ let n = yn.get(e);
+ n == null ? yn.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, _n.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, yn.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function yn(e) {
- let t = (0, _.useContext)(hn), n = vn(!!e), r = `react-aria${t.prefix}`;
+function xn(e) {
+ let t = (0, b.useContext)(_n), n = bn(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function bn(e) {
- let t = _.useId(), [n] = (0, _.useState)(Tn()), r = n ? "react-aria" : `react-aria${mn.prefix}`;
+function Sn(e) {
+ let t = b.useId(), [n] = (0, b.useState)(Dn()), r = n ? "react-aria" : `react-aria${gn.prefix}`;
return e || `${r}-${t}`;
}
-var xn = typeof _.useId == "function" ? bn : yn;
-function Sn() {
+var Cn = typeof b.useId == "function" ? Sn : xn;
+function wn() {
return !1;
}
-function Cn() {
+function Tn() {
return !0;
}
-function wn(e) {
+function En(e) {
return () => {};
}
-function Tn() {
- return typeof _.useSyncExternalStore == "function" ? _.useSyncExternalStore(wn, Sn, Cn) : (0, _.useContext)(gn);
+function Dn() {
+ return typeof b.useSyncExternalStore == "function" ? b.useSyncExternalStore(En, wn, Tn) : (0, b.useContext)(vn);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var En = null, Dn = /* @__PURE__ */ new Set(), On = /* @__PURE__ */ new Map(), kn = !1, An = !1, jn = {
+var On = null, kn = /* @__PURE__ */ new Set(), An = /* @__PURE__ */ new Map(), jn = !1, Mn = !1, Nn = {
Tab: !0,
Escape: !0
};
-function Mn(e, t) {
- for (let n of Dn) n(e, t);
-}
-function Nn(e) {
- return !(e.metaKey || !Xt() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
-}
-function Pn(e) {
- kn = !0, !un.isOpening && Nn(e) && (En = "keyboard", Mn("keyboard", e));
+function Pn(e, t) {
+ for (let n of kn) n(e, t);
}
function Fn(e) {
- En = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (kn = !0, Mn("pointer", e));
+ return !(e.metaKey || !Qt() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
function In(e) {
- !un.isOpening && on(e) && (kn = !0, En = "virtual");
+ jn = !0, !fn.isOpening && Fn(e) && (On = "keyboard", Pn("keyboard", e));
}
function Ln(e) {
- if (Gt) return;
- let t = R(e), n = xt(t), r = I(t);
+ On = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (jn = !0, Pn("pointer", e));
+}
+function Rn(e) {
+ !fn.isOpening && cn(e) && (jn = !0, On = "virtual");
+}
+function zn(e) {
+ if (qt) return;
+ let t = z(e), n = Ct(t), r = L(t);
if (t === n) {
- An = !0;
+ Mn = !0;
return;
}
- t === r || !e.isTrusted || (!kn && !An && (En = "virtual", Mn("virtual", e)), kn = !1, An = !1);
+ t === r || !e.isTrusted || (!jn && !Mn && (On = "virtual", Pn("virtual", e)), jn = !1, Mn = !1);
}
-function Rn() {
- Gt || (kn = !1, An = !0);
+function Bn() {
+ qt || (jn = !1, Mn = !0);
}
-function zn(e) {
+function Vn(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = xt(e), n = I(e);
- if (On.get(t)) return;
+ let t = Ct(e), n = L(e);
+ if (An.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- kn = !0, r.apply(this, arguments);
+ jn = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", Pn, !0), n.addEventListener("keyup", Pn, !0), n.addEventListener("click", In, !0), t.addEventListener("focus", Ln, !0), t.addEventListener("blur", Rn, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Fn, !0), n.addEventListener("pointermove", Fn, !0), n.addEventListener("pointerup", Fn, !0)), t.addEventListener("beforeunload", () => {
- Bn(e);
- }, { once: !0 }), On.set(t, { focus: r });
+ }), n.addEventListener("keydown", In, !0), n.addEventListener("keyup", In, !0), n.addEventListener("click", Rn, !0), t.addEventListener("focus", zn, !0), t.addEventListener("blur", Bn, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Ln, !0), n.addEventListener("pointermove", Ln, !0), n.addEventListener("pointerup", Ln, !0)), t.addEventListener("beforeunload", () => {
+ Hn(e);
+ }, { once: !0 }), An.set(t, { focus: r });
}
-var Bn = (e, t) => {
- let n = xt(e), r = I(e);
- t && r.removeEventListener("DOMContentLoaded", t), On.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var Hn = (e, t) => {
+ let n = Ct(e), r = L(e);
+ t && r.removeEventListener("DOMContentLoaded", t), An.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: On.get(n).focus
- }), r.removeEventListener("keydown", Pn, !0), r.removeEventListener("keyup", Pn, !0), r.removeEventListener("click", In, !0), n.removeEventListener("focus", Ln, !0), n.removeEventListener("blur", Rn, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Fn, !0), r.removeEventListener("pointermove", Fn, !0), r.removeEventListener("pointerup", Fn, !0)), On.delete(n));
+ value: An.get(n).focus
+ }), r.removeEventListener("keydown", In, !0), r.removeEventListener("keyup", In, !0), r.removeEventListener("click", Rn, !0), n.removeEventListener("focus", zn, !0), n.removeEventListener("blur", Bn, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Ln, !0), r.removeEventListener("pointermove", Ln, !0), r.removeEventListener("pointerup", Ln, !0)), An.delete(n));
};
-function Vn(e) {
- let t = I(e), n;
+function Un(e) {
+ let t = L(e), n;
return t.readyState === "loading" ? (n = () => {
- zn(e);
- }, t.addEventListener("DOMContentLoaded", n)) : zn(e), () => Bn(e, n);
+ Vn(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : Vn(e), () => Hn(e, n);
}
-typeof document < "u" && Vn();
-function Hn() {
- return En !== "pointer";
+typeof document < "u" && Un();
+function Wn() {
+ return On !== "pointer";
}
-function Un() {
- return En;
+function Gn() {
+ return On;
}
-function Wn(e) {
- En = e, Mn(e, null);
+function Kn(e) {
+ On = e, Pn(e, null);
}
-var Gn = /* @__PURE__ */ new Set([
+var qn = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -2741,78 +2741,78 @@ var Gn = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Kn(e, t, n) {
- let r = n ? R(n) : void 0, i = I(r), a = xt(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 = At(i);
- return e = e || u instanceof o && !Gn.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !jn[n.key]);
+function Jn(e, t, n) {
+ let r = n ? z(n) : void 0, i = L(r), a = Ct(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 = Mt(i);
+ return e = e || u instanceof o && !qn.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Nn[n.key]);
}
-function qn(e, t, n) {
- zn(), (0, _.useEffect)(() => {
+function Yn(e, t, n) {
+ Vn(), (0, b.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- Kn(!!n?.isTextInput, t, r) && e(Hn());
+ Jn(!!n?.isTextInput, t, r) && e(Wn());
};
- return Dn.add(t), () => {
- Dn.delete(t);
+ return kn.add(t), () => {
+ kn.delete(t);
};
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var Jn = /* @__PURE__ */ new Map(), Yn = /* @__PURE__ */ new Set();
-function Xn() {
+var Xn = /* @__PURE__ */ new Map(), Zn = /* @__PURE__ */ new Set();
+function Qn() {
if (typeof window > "u") return;
function e(e) {
return "propertyName" in e;
}
let t = (t) => {
- let r = R(t);
+ let r = z(t);
if (!e(t) || !r) return;
- let i = Jn.get(r);
- i || (i = /* @__PURE__ */ new Set(), Jn.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
+ let i = Xn.get(r);
+ i || (i = /* @__PURE__ */ new Set(), Xn.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
}, n = (t) => {
- let r = R(t);
+ let r = z(t);
if (!e(t) || !r) return;
- let i = Jn.get(r);
- if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), Jn.delete(r)), Jn.size === 0)) {
- for (let e of Yn) e();
- Yn.clear();
+ let i = Xn.get(r);
+ if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), Xn.delete(r)), Xn.size === 0)) {
+ for (let e of Zn) e();
+ Zn.clear();
}
};
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
}
-typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", Xn) : Xn());
-function Zn() {
- for (let [e] of Jn) "isConnected" in e && !e.isConnected && Jn.delete(e);
+typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", Qn) : Qn());
+function $n() {
+ for (let [e] of Xn) "isConnected" in e && !e.isConnected && Xn.delete(e);
}
-function Qn(e) {
+function er(e) {
requestAnimationFrame(() => {
- Zn(), Jn.size === 0 ? e() : Yn.add(e);
+ $n(), Xn.size === 0 ? e() : Zn.add(e);
});
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function $n(e) {
+function tr(e) {
if (!e.isConnected) return;
- let t = I(e);
- if (Un() === "virtual") {
- let n = At(t);
- Qn(() => {
- let r = At(t);
- (r === n || r === t.body) && e.isConnected && gt(e);
+ let t = L(e);
+ if (Gn() === "virtual") {
+ let n = Mt(t);
+ er(() => {
+ let r = Mt(t);
+ (r === n || r === t.body) && e.isConnected && vt(e);
});
- } else gt(e);
+ } else vt(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/chain.mjs
-function er(...e) {
+function nr(...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 tr(e) {
- let [t, n] = (0, _.useState)(e), r = (0, _.useRef)(t), i = (0, _.useRef)(null), a = (0, _.useRef)(() => {
+function rr(e) {
+ let [t, n] = (0, b.useState)(e), r = (0, b.useRef)(t), i = (0, b.useRef)(null), a = (0, b.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
if (e.done) {
@@ -2821,51 +2821,51 @@ function tr(e) {
}
r.current === e.value ? a.current() : n(e.value);
});
- return z(() => {
+ return V(() => {
r.current = t, i.current && a.current();
- }), [t, (0, _.useCallback)((e) => {
+ }), [t, (0, b.useCallback)((e) => {
i.current = e(r.current), a.current();
}, [a])];
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useId.mjs
-var nr = !!(typeof window < "u" && window.document && window.document.createElement), rr = /* @__PURE__ */ new Map(), ir;
-typeof FinalizationRegistry < "u" && (ir = new FinalizationRegistry((e) => {
- rr.delete(e);
+var ir = !!(typeof window < "u" && window.document && window.document.createElement), ar = /* @__PURE__ */ new Map(), or;
+typeof FinalizationRegistry < "u" && (or = new FinalizationRegistry((e) => {
+ ar.delete(e);
}));
-var ar = /* @__PURE__ */ new WeakMap();
-function or(e) {
- let [t, n] = (0, _.useState)(e), r = (0, _.useRef)(null), i = xn(t), a = (0, _.useRef)(null), o = ar.get(a);
- if (ir && o !== i && (o != null && ir.unregister(a), ir.register(a, i, a), ar.set(a, i)), nr) {
- let e = rr.get(i);
- e && !e.includes(r) ? e.push(r) : rr.set(i, [r]);
- }
- return z(() => {
+var sr = /* @__PURE__ */ new WeakMap();
+function cr(e) {
+ let [t, n] = (0, b.useState)(e), r = (0, b.useRef)(null), i = Cn(t), a = (0, b.useRef)(null), o = sr.get(a);
+ if (or && o !== i && (o != null && or.unregister(a), or.register(a, i, a), sr.set(a, i)), ir) {
+ let e = ar.get(i);
+ e && !e.includes(r) ? e.push(r) : ar.set(i, [r]);
+ }
+ return V(() => {
let e = i;
return () => {
- ir && (ir.unregister(a), ar.delete(a)), rr.delete(e);
+ or && (or.unregister(a), sr.delete(a)), ar.delete(e);
};
- }, [i]), (0, _.useEffect)(() => {
+ }, [i]), (0, b.useEffect)(() => {
let e = r.current;
return e && n(e), () => {
e && (r.current = null);
};
}), i;
}
-function sr(e, t) {
+function lr(e, t) {
if (e === t) return e;
- let n = rr.get(e);
+ let n = ar.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = rr.get(t);
+ let r = ar.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function cr(e = []) {
- let t = or(), [n, r] = tr(t), i = (0, _.useCallback)(() => {
+function ur(e = []) {
+ let t = cr(), [n, r] = rr(t), i = (0, b.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return z(i, [
+ return V(i, [
t,
i,
...e
@@ -2873,60 +2873,60 @@ function cr(e = []) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function lr(...e) {
+function dr(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = ur(e, t);
+ let r = fr(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : ur(e[n], null);
+ typeof t == "function" ? t() : fr(e[n], null);
});
};
};
}
-function ur(e, t) {
+function fr(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
//#endregion
//#region node_modules/clsx/dist/clsx.mjs
-function dr(e) {
+function pr(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 = dr(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = pr(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function fr() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = dr(e)) && (r && (r += " "), r += t);
+function mr() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = pr(e)) && (r && (r += " "), r += t);
return r;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeProps.mjs
-function V(...e) {
+function H(...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] = er(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = fr(n, i) : e === "id" && n && i ? t.id = sr(n, i) : e === "ref" && n && i ? t.ref = lr(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] = nr(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = mr(n, i) : e === "id" && n && i ? t.id = lr(n, i) : e === "ref" && n && i ? t.ref = dr(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function pr(e) {
- let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, _.useCallback)((e) => {
- if (R(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = Wt(a), s = (0, _.useCallback)((e) => {
- let t = R(e), r = I(t), a = r ? At(r) : At();
+function hr(e) {
+ let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, b.useCallback)((e) => {
+ if (z(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
+ }, [r, i]), o = Kt(a), s = (0, b.useCallback)((e) => {
+ let t = z(e), r = L(t), a = r ? Mt(r) : Mt();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -2940,7 +2940,7 @@ function pr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function mr(e) {
+function gr(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -2965,33 +2965,33 @@ function mr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var hr = /* @__PURE__ */ new Set([
+var _r = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), gr = [
+]), vr = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function _r(e) {
+function yr(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(Xt() ? "Meta" : "Control"), t;
+ return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(Qt() ? "Meta" : "Control"), t;
}
-function vr(e) {
+function br(e) {
let t = /* @__PURE__ */ new Set();
return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
}
-function yr(e) {
- return gr.filter((t) => e.has(t));
+function xr(e) {
+ return vr.filter((t) => e.has(t));
}
-function br(e) {
+function Sr(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return hr.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 _r.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,
@@ -3003,10 +3003,10 @@ function br(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 xr(e) {
+function Cr(e) {
return e.toLowerCase();
}
-var Sr = {
+var wr = {
space: " ",
esc: "escape",
del: "delete",
@@ -3018,26 +3018,26 @@ var Sr = {
pageup: "pageup",
pagedown: "pagedown"
};
-function Cr(e) {
- let t = xr(e);
- return Sr[t] ?? t;
+function Tr(e) {
+ let t = Cr(e);
+ return wr[t] ?? t;
}
-function wr(e) {
- let t = yr(_r(e)), n = Cr(e.key);
+function Er(e) {
+ let t = xr(yr(e)), n = Tr(e.key);
return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
-function Tr(e) {
- let t = yr(vr(e)), n = xr(e.key);
+function Dr(e) {
+ let t = xr(br(e)), n = Cr(e.key);
return (t.length > 0 ? `${t.join("+")}+` : "") + n;
}
-function Er(e) {
+function Or(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = br(n);
- t.set(wr(e), r);
+ let e = Sr(n);
+ t.set(Er(e), r);
}
return (e) => {
- let n = Tr(e), r = t.get(n), i = r?.(e);
+ let n = Dr(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -3049,11 +3049,11 @@ function Er(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function Dr(e) {
+function kr(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = Er(t), s = mr((e) => {
- if (!L(e.currentTarget, R(e))) {
+ let o = Or(t), s = gr((e) => {
+ if (!R(e.currentTarget, z(e))) {
e.continuePropagation();
return;
}
@@ -3062,8 +3062,8 @@ function Dr(e) {
return;
}
o(e);
- }), c = mr((e) => {
- if (!L(e.currentTarget, R(e))) {
+ }), c = gr((e) => {
+ if (!R(e.currentTarget, z(e))) {
e.continuePropagation();
return;
}
@@ -3073,8 +3073,8 @@ function Dr(e) {
}
e.continuePropagation();
});
- i = e.onKeyDown ? er(e.onKeyDown, s) : s, a = e.onKeyUp ? er(e.onKeyUp, c) : c;
- } else i = mr(e.onKeyDown), a = mr(e.onKeyUp);
+ i = e.onKeyDown ? nr(e.onKeyDown, s) : s, a = e.onKeyUp ? nr(e.onKeyUp, c) : c;
+ } else i = gr(e.onKeyDown), a = gr(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
@@ -3082,8 +3082,8 @@ function Dr(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function Or(e) {
- let t = (0, _.useRef)(null), n = (0, _.useRef)(void 0), r = (0, _.useCallback)((t) => {
+function Ar(e) {
+ let t = (0, b.useRef)(null), n = (0, b.useRef)(void 0), r = (0, b.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
return () => {
@@ -3094,7 +3094,7 @@ function Or(e) {
e.current = null;
};
}, [e]);
- return (0, _.useMemo)(() => ({
+ return (0, b.useMemo)(() => ({
get current() {
return t.current;
},
@@ -3105,8 +3105,8 @@ function Or(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function kr(e, t) {
- z(() => {
+function jr(e, t) {
+ V(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
@@ -3114,20 +3114,20 @@ function kr(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var Ar = /*#__PURE__*/ _.createContext(null);
-function jr(e) {
- let t = (0, _.useContext)(Ar) || {};
- kr(t, e);
+var Mr = /*#__PURE__*/ b.createContext(null);
+function Nr(e) {
+ let t = (0, b.useContext)(Mr) || {};
+ jr(t, e);
let { ref: n, ...r } = t;
return r;
}
-function Mr(e, t) {
- let { focusProps: n } = pr(e), { keyboardProps: r } = Dr(e), i = V(n, r), a = jr(t), o = e.isDisabled ? {} : a, s = (0, _.useRef)(e.autoFocus);
- (0, _.useEffect)(() => {
- s.current && t.current && $n(t.current), s.current = !1;
+function Pr(e, t) {
+ let { focusProps: n } = hr(e), { keyboardProps: r } = kr(e), i = H(n, r), a = Nr(t), o = e.isDisabled ? {} : a, s = (0, b.useRef)(e.autoFocus);
+ (0, b.useEffect)(() => {
+ s.current && t.current && tr(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
- return e.isDisabled && (c = void 0), { focusableProps: V({
+ return e.isDisabled && (c = void 0), { focusableProps: H({
...i,
tabIndex: c
}, o) };
@@ -3159,23 +3159,23 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var Nr = /*#__PURE__*/ (0, _.createContext)(!1);
-function Pr(e) {
- if ((0, _.useContext)(Nr)) return /*#__PURE__*/ _.createElement(_.Fragment, null, e.children);
- let t = /*#__PURE__*/ _.createElement(Nr.Provider, { value: !0 }, e.children);
- return /*#__PURE__*/ _.createElement("template", null, t);
+var Fr = /*#__PURE__*/ (0, b.createContext)(!1);
+function Ir(e) {
+ if ((0, b.useContext)(Fr)) return /*#__PURE__*/ b.createElement(b.Fragment, null, e.children);
+ let t = /*#__PURE__*/ b.createElement(Fr.Provider, { value: !0 }, e.children);
+ return /*#__PURE__*/ b.createElement("template", null, t);
}
-function Fr(e) {
- let t = (t, n) => (0, _.useContext)(Nr) ? null : e(t, n);
- return t.displayName = e.displayName || e.name, (0, _.forwardRef)(t);
+function Lr(e) {
+ let t = (t, n) => (0, b.useContext)(Fr) ? null : e(t, n);
+ return t.displayName = e.displayName || e.name, (0, b.forwardRef)(t);
}
-function Ir() {
- return (0, _.useContext)(Nr);
+function Rr() {
+ return (0, b.useContext)(Fr);
}
//#endregion
//#region node_modules/react-dom/cjs/react-dom.production.js
-var Lr = /* @__PURE__ */ u(((e) => {
- var t = m();
+var zr = /* @__PURE__ */ p(((e) => {
+ var t = _();
function n(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -3302,7 +3302,7 @@ var Lr = /* @__PURE__ */ u(((e) => {
}, e.useFormStatus = function() {
return l.H.useHostTransitionStatus();
}, e.version = "19.3.0";
-})), Rr = /* @__PURE__ */ u(((e, t) => {
+})), Br = /* @__PURE__ */ p(((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);
@@ -3310,9 +3310,9 @@ var Lr = /* @__PURE__ */ u(((e) => {
console.error(e);
}
}
- n(), t.exports = Lr();
-})), zr = /* @__PURE__ */ u(((e) => {
- var t = m();
+ n(), t.exports = zr();
+})), Vr = /* @__PURE__ */ p(((e) => {
+ var t = _();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -3349,48 +3349,48 @@ var Lr = /* @__PURE__ */ u(((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;
-})), Br = /* @__PURE__ */ u(((e, t) => {
- t.exports = zr();
-})), Vr = /* @__PURE__ */ f(Rr(), 1), Hr = Br(), Ur = /*#__PURE__*/ (0, _.createContext)(!1), Wr = /*#__PURE__*/ (0, _.createContext)(null);
-function Gr(e) {
- if ((0, _.useContext)(Wr)) return e.content;
- let { collection: t, document: n } = Yr(e.createCollection);
- return /*#__PURE__*/ _.createElement(_.Fragment, null, /*#__PURE__*/ _.createElement(Pr, null, /*#__PURE__*/ _.createElement(Wr.Provider, { value: n }, e.content)), /*#__PURE__*/ _.createElement(Kr, {
+})), Hr = /* @__PURE__ */ p(((e, t) => {
+ t.exports = Vr();
+})), Ur = /* @__PURE__ */ h(Br(), 1), Wr = Hr(), Gr = /*#__PURE__*/ (0, b.createContext)(!1), Kr = /*#__PURE__*/ (0, b.createContext)(null);
+function qr(e) {
+ if ((0, b.useContext)(Kr)) return e.content;
+ let { collection: t, document: n } = Zr(e.createCollection);
+ return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(Ir, null, /*#__PURE__*/ b.createElement(Kr.Provider, { value: n }, e.content)), /*#__PURE__*/ b.createElement(Jr, {
render: e.children,
collection: t
}));
}
-function Kr({ collection: e, render: t }) {
+function Jr({ collection: e, render: t }) {
return t(e);
}
-function qr(e, t, n) {
- let r = Tn(), i = (0, _.useRef)(r);
+function Yr(e, t, n) {
+ let r = Dn(), i = (0, b.useRef)(r);
i.current = r;
- let a = (0, _.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, Hr.useSyncExternalStore)(e, a);
+ let a = (0, b.useCallback)(() => i.current ? n() : t(), [t, n]);
+ return (0, Wr.useSyncExternalStore)(e, a);
}
-var Jr = typeof _.useSyncExternalStore == "function" ? _.useSyncExternalStore : qr;
-function Yr(e) {
- let [t] = (0, _.useState)(() => new pt(e?.() || new lt()));
+var Xr = typeof b.useSyncExternalStore == "function" ? b.useSyncExternalStore : Yr;
+function Zr(e) {
+ let [t] = (0, b.useState)(() => new ht(e?.() || new dt()));
return {
- collection: Jr((0, _.useCallback)((e) => t.subscribe(e), [t]), (0, _.useCallback)(() => {
+ collection: Xr((0, b.useCallback)((e) => t.subscribe(e), [t]), (0, b.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
- }, [t]), (0, _.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
+ }, [t]), (0, b.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var Xr = /*#__PURE__*/ (0, _.createContext)(null);
-function Zr(e) {
- return class extends at {
+var Qr = /*#__PURE__*/ (0, b.createContext)(null);
+function $r(e) {
+ return class extends st {
static {
this.type = e;
}
};
}
-function Qr(e, t, n, r, i, a) {
- typeof e == "string" && (e = Zr(e));
- let o = (0, _.useCallback)((i) => {
+function ei(e, t, n, r, i, a) {
+ typeof e == "string" && (e = $r(e));
+ let o = (0, b.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
t,
@@ -3398,77 +3398,77 @@ function Qr(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, _.useContext)(Xr);
+ ]), s = (0, b.useContext)(Qr);
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__*/ _.createElement(Xr.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__*/ b.createElement(Qr.Provider, { value: o }, i) : null;
}
- return /*#__PURE__*/ _.createElement(e.type, { ref: o }, i);
+ return /*#__PURE__*/ b.createElement(e.type, { ref: o }, i);
}
-function $r(e, t) {
- let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, _.forwardRef)((r, i) => {
- let a = (0, _.useContext)(Ar);
- if (!(0, _.useContext)(Ur)) {
+function ti(e, t) {
+ let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, b.forwardRef)((r, i) => {
+ let a = (0, b.useContext)(Mr);
+ if (!(0, b.useContext)(Gr)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return Qr(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ _.createElement(Ar.Provider, { value: a }, /*#__PURE__*/ _.createElement(n, { node: e })));
+ return ei(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ b.createElement(Mr.Provider, { value: a }, /*#__PURE__*/ b.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function ei(e) {
- return mt({
+function ni(e) {
+ return gt({
...e,
addIdAndValue: !0
});
}
-var ti = /*#__PURE__*/ (0, _.createContext)(null);
-function ni(e) {
- let t = (0, _.useContext)(ti), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = ei({
+var ri = /*#__PURE__*/ (0, b.createContext)(null);
+function ii(e) {
+ let t = (0, b.useContext)(ri), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = ni({
...e,
idScope: r,
dependencies: n
});
- return (0, _.useContext)(Wr) && (i = /*#__PURE__*/ _.createElement(ri, null, i)), t = (0, _.useMemo)(() => ({
+ return (0, b.useContext)(Kr) && (i = /*#__PURE__*/ b.createElement(ai, null, i)), t = (0, b.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ _.createElement(ti.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ b.createElement(ri.Provider, { value: t }, i);
}
-function ri({ children: e }) {
- let t = (0, _.useContext)(Wr), n = (0, _.useMemo)(() => /*#__PURE__*/ _.createElement(Wr.Provider, { value: null }, /*#__PURE__*/ _.createElement(Ur.Provider, { value: !0 }, e)), [e]);
- return Tn() ? /*#__PURE__*/ _.createElement(Xr.Provider, { value: t }, n) : /*#__PURE__*/ (0, Vr.createPortal)(n, t);
+function ai({ children: e }) {
+ let t = (0, b.useContext)(Kr), n = (0, b.useMemo)(() => /*#__PURE__*/ b.createElement(Kr.Provider, { value: null }, /*#__PURE__*/ b.createElement(Gr.Provider, { value: !0 }, e)), [e]);
+ return Dn() ? /*#__PURE__*/ b.createElement(Qr.Provider, { value: t }, n) : /*#__PURE__*/ (0, Ur.createPortal)(n, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/constants.mjs
-var ii = "react-aria-clear-focus", ai = "react-aria-focus";
+var oi = "react-aria-clear-focus", si = "react-aria-focus";
//#endregion
//#region node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function oi(e) {
- let t = li(I(e));
- t !== e && (t && si(t, e), e && ci(e, t));
+function ci(e) {
+ let t = di(L(e));
+ t !== e && (t && li(t, e), e && ui(e, t));
}
-function si(e, t) {
+function li(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function ci(e, t) {
+function ui(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function li(e) {
- let t = At(e), n = t?.getAttribute("aria-activedescendant");
+function di(e) {
+ let t = Mt(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/keyboard.mjs
-function ui(e) {
- return Xt() ? e.metaKey : e.ctrlKey;
+function fi(e) {
+ return Qt() ? e.metaKey : e.ctrlKey;
}
-var di = /* @__PURE__ */ new Set([
+var pi = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -3479,27 +3479,27 @@ var di = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function fi(e) {
- return e instanceof HTMLInputElement && !di.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
+function mi(e) {
+ return e instanceof HTMLInputElement && !pi.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var pi = _.useInsertionEffect ?? z;
-function mi(e) {
- let t = (0, _.useRef)(null);
- return pi(() => {
+var hi = b.useInsertionEffect ?? V;
+function gi(e) {
+ let t = (0, b.useRef)(null);
+ return hi(() => {
t.current = e;
- }, [e]), (0, _.useCallback)((...e) => {
+ }, [e]), (0, b.useCallback)((...e) => {
let n = t.current;
return n?.(...e);
}, []);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEvent.mjs
-function hi(e, t, n, r) {
- let i = mi(n), a = n == null;
- (0, _.useEffect)(() => {
- if (!(a || e.current == null)) return Et(e.current, t, i, r);
+function _i(e, t, n, r) {
+ let i = gi(n), a = n == null;
+ (0, b.useEffect)(() => {
+ if (!(a || e.current == null)) return Ot(e.current, t, i, r);
}, [
e,
t,
@@ -3509,9 +3509,9 @@ function hi(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLabels.mjs
-function gi(e, t) {
+function vi(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = or(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 = cr(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
@@ -3519,7 +3519,7 @@ function gi(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/utils.mjs
-var _i = /* @__PURE__ */ new Set([
+var yi = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -3530,7 +3530,7 @@ var _i = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), vi = /* @__PURE__ */ new Set([
+]), bi = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -3551,20 +3551,20 @@ var _i = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function yi(e) {
+function xi(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 _i.has(t.script);
+ if (t.script) return yi.has(t.script);
}
let t = e.split("-")[0];
- return vi.has(t);
+ return bi.has(t);
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var bi = Symbol.for("react-aria.i18n.locale");
-function xi() {
- let e = typeof window < "u" && window[bi] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var Si = Symbol.for("react-aria.i18n.locale");
+function Ci() {
+ let e = typeof window < "u" && window[Si] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -3572,33 +3572,33 @@ function xi() {
}
return {
locale: e,
- direction: yi(e) ? "rtl" : "ltr"
+ direction: xi(e) ? "rtl" : "ltr"
};
}
-var Si = xi(), Ci = /* @__PURE__ */ new Set();
-function wi() {
- Si = xi();
- for (let e of Ci) e(Si);
+var wi = Ci(), Ti = /* @__PURE__ */ new Set();
+function Ei() {
+ wi = Ci();
+ for (let e of Ti) e(wi);
}
-function Ti() {
- let e = Tn(), [t, n] = (0, _.useState)(Si);
- return (0, _.useEffect)(() => (Ci.size === 0 && window.addEventListener("languagechange", wi), Ci.add(n), () => {
- Ci.delete(n), Ci.size === 0 && window.removeEventListener("languagechange", wi);
+function Di() {
+ let e = Dn(), [t, n] = (0, b.useState)(wi);
+ return (0, b.useEffect)(() => (Ti.size === 0 && window.addEventListener("languagechange", Ei), Ti.add(n), () => {
+ Ti.delete(n), Ti.size === 0 && window.removeEventListener("languagechange", Ei);
}), []), e ? {
- locale: typeof window < "u" && window[bi] || "en-US",
+ locale: typeof window < "u" && window[Si] || "en-US",
direction: "ltr"
} : t;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var Ei = /*#__PURE__*/ _.createContext(null);
-function Di() {
- let e = Ti();
- return (0, _.useContext)(Ei) || e;
+var Oi = /*#__PURE__*/ b.createContext(null);
+function ki() {
+ let e = Di();
+ return (0, b.useContext)(Oi) || e;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var Oi = Symbol.for("react-aria.i18n.locale"), ki = Symbol.for("react-aria.i18n.strings"), Ai = void 0, ji = class e {
+var Ai = Symbol.for("react-aria.i18n.locale"), ji = Symbol.for("react-aria.i18n.strings"), Mi = void 0, Ni = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -3609,39 +3609,39 @@ var Oi = Symbol.for("react-aria.i18n.locale"), ki = Symbol.for("react-aria.i18n.
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = Mi(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = Pi(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[Oi];
- if (Ai === void 0) {
- let t = window[ki];
+ let n = window[Ai];
+ if (Mi === void 0) {
+ let t = window[ji];
if (!t) return null;
- Ai = {};
- for (let r in t) Ai[r] = new e({ [n]: t[r] }, n);
+ Mi = {};
+ for (let r in t) Mi[r] = new e({ [n]: t[r] }, n);
}
- let r = Ai?.[t];
+ let r = Mi?.[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 Mi(e, t, n = "en-US") {
+function Pi(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = Ni(e), i = Pi(e);
+ let r = Fi(e), i = Ii(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 Ni(e) {
+function Fi(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function Pi(e) {
+function Ii(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var Fi = /* @__PURE__ */ new Map(), Ii = /* @__PURE__ */ new Map(), Li = class {
+var Li = /* @__PURE__ */ new Map(), Ri = /* @__PURE__ */ new Map(), zi = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -3652,37 +3652,37 @@ var Fi = /* @__PURE__ */ new Map(), Ii = /* @__PURE__ */ new Map(), Li = class {
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = Fi.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), Fi.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = Li.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), Li.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = Ii.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), Ii.set(this.locale, t)), t.format(e);
+ let t = Ri.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), Ri.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, Ri = /* @__PURE__ */ new WeakMap();
-function zi(e) {
- let t = Ri.get(e);
- return t || (t = new ji(e), Ri.set(e, t)), t;
+}, Bi = /* @__PURE__ */ new WeakMap();
+function Vi(e) {
+ let t = Bi.get(e);
+ return t || (t = new Ni(e), Bi.set(e, t)), t;
}
-function Bi(e, t) {
- return t && ji.getGlobalDictionaryForPackage(t) || zi(e);
+function Hi(e, t) {
+ return t && Ni.getGlobalDictionaryForPackage(t) || Vi(e);
}
-function Vi(e, t) {
- let { locale: n } = Di(), r = Bi(e, t);
- return (0, _.useMemo)(() => new Li(n, r), [n, r]);
+function Ui(e, t) {
+ let { locale: n } = ki(), r = Hi(e, t);
+ return (0, b.useMemo)(() => new zi(n, r), [n, r]);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var Hi = /* @__PURE__ */ new Set(["id"]), Ui = /* @__PURE__ */ new Set([
+var Wi = /* @__PURE__ */ new Set(["id"]), Gi = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), Wi = /* @__PURE__ */ new Set([
+]), Ki = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -3690,72 +3690,72 @@ var Hi = /* @__PURE__ */ new Set(["id"]), Ui = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), Gi = /* @__PURE__ */ new Set([
+]), qi = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate"
-]), Ki = /* @__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 H(e, t = {}) {
+]), Ji = /* @__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(".")), Yi = /^(data-.*)$/;
+function Xi(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) && (Hi.has(t) || n && Ui.has(t) || r && Wi.has(t) || i && Gi.has(t) || a && (Ki.has(t) || t.endsWith("Capture") && Ki.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) && (Wi.has(t) || n && Gi.has(t) || r && Ki.has(t) || i && qi.has(t) || a && (Ji.has(t) || t.endsWith("Capture") && Ji.has(t.slice(0, -7))) || o?.has(t) || Yi.test(t)) && (s[t] = e[t]);
return s;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var Ji = "default", Yi = "", Xi = /* @__PURE__ */ new WeakMap();
-function Zi(e) {
- if ($t() && tn()) {
- if (Ji === "default") {
- let t = I(e);
- Yi = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- Ji = "disabled";
+var Zi = "default", Qi = "", $i = /* @__PURE__ */ new WeakMap();
+function ea(e) {
+ if (tn() && rn()) {
+ if (Zi === "default") {
+ let t = L(e);
+ Qi = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ Zi = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- Xi.set(e, e.style[t]), e.style[t] = "none";
+ $i.set(e, e.style[t]), e.style[t] = "none";
}
}
-function Qi(e) {
- if ($t() && tn()) {
- if (Ji !== "disabled") return;
- Ji = "restoring", setTimeout(() => {
- Qn(() => {
- if (Ji === "restoring") {
- let t = I(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Yi || ""), Yi = "", Ji = "default";
+function U(e) {
+ if (tn() && rn()) {
+ if (Zi !== "disabled") return;
+ Zi = "restoring", setTimeout(() => {
+ er(() => {
+ if (Zi === "restoring") {
+ let t = L(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Qi || ""), Qi = "", Zi = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Xi.has(e)) {
- let t = Xi.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Xi.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && $i.has(e)) {
+ let t = $i.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), $i.delete(e);
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function $i(e, t) {
- let n = xt(t), r = I(t);
+function ta(e, t) {
+ let n = Ct(t), r = L(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 ea = /* @__PURE__ */ new WeakMap();
-function U(e) {
- let t = I(e), n = ea.get(t);
- return n ??= $i("csp-nonce", t), n !== void 0 && ea.set(t, n), n;
+var na = /* @__PURE__ */ new WeakMap();
+function ra(e) {
+ let t = L(e), n = na.get(t);
+ return n ??= ta("csp-nonce", t), n !== void 0 && na.set(t, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/context.mjs
-var ta = _.createContext({ register: () => {} });
-ta.displayName = "PressResponderContext";
+var ia = b.createContext({ register: () => {} });
+ia.displayName = "PressResponderContext";
//#endregion
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function na() {
- let e = (0, _.useRef)(/* @__PURE__ */ new Map()), t = (0, _.useCallback)((t, n, r, i) => {
+function aa() {
+ let e = (0, b.useRef)(/* @__PURE__ */ new Map()), t = (0, b.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
} : r;
@@ -3765,15 +3765,15 @@ function na() {
fn: a,
options: i
}), t.addEventListener(n, a, i);
- }, []), n = (0, _.useCallback)((t, n, r, i) => {
+ }, []), n = (0, b.useCallback)((t, n, r, i) => {
let a = e.current.get(r)?.fn || r;
t.removeEventListener(n, a, i), e.current.delete(r);
- }, []), r = (0, _.useCallback)(() => {
+ }, []), r = (0, b.useCallback)(() => {
e.current.forEach((e, t) => {
n(e.eventTarget, e.type, t, e.options);
});
}, [n]);
- return (0, _.useEffect)(() => r, [r]), {
+ return (0, b.useEffect)(() => r, [r]), {
addGlobalListener: t,
removeGlobalListener: n,
removeAllGlobalListeners: r
@@ -3781,15 +3781,15 @@ function na() {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
-function ra(e) {
- let t = (0, _.useContext)(ta);
+function oa(e) {
+ let t = (0, b.useContext)(ia);
if (t) {
let { register: n, ref: r, ...i } = t;
- e = V(i, e), n();
+ e = H(i, e), n();
}
- return kr(t, e.ref), e;
+ return jr(t, e.ref), e;
}
-var ia = class {
+var sa = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -3802,9 +3802,9 @@ var ia = class {
get shouldStopPropagation() {
return this.#e;
}
-}, aa = Symbol("linkClicked"), oa = "react-aria-pressable-style", sa = "data-react-aria-pressable";
-function ca(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 } = ra(e), [m, h] = (0, _.useState)(!1), g = (0, _.useRef)({
+}, ca = Symbol("linkClicked"), la = "react-aria-pressable-style", ua = "data-react-aria-pressable";
+function da(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 } = oa(e), [m, h] = (0, b.useState)(!1), g = (0, b.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -3814,12 +3814,12 @@ function ca(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: v, removeAllGlobalListeners: y } = na(), b = (0, _.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = aa(), y = (0, b.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new ia("pressstart", t, e);
+ let n = new sa("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -3827,17 +3827,17 @@ function ca(e) {
s,
r,
n
- ]), x = (0, _.useCallback)((e, r, a = !0) => {
+ ]), x = (0, b.useCallback)((e, r, a = !0) => {
let o = g.current;
if (!o.didFirePressStart) return !1;
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new ia("pressend", r, e);
+ let t = new sa("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new ia("press", r, e);
+ let n = new sa("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -3846,28 +3846,28 @@ function ca(e) {
i,
n,
t
- ]), S = mi(x), C = mi((0, _.useCallback)((e, t) => {
+ ]), S = gi(x), C = gi((0, b.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new ia("pressup", t, e);
+ let r = new sa("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
- }, [s, a])), w = (0, _.useCallback)((e) => {
+ }, [s, a])), w = (0, b.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && x(da(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, y(), d || Qi(t.target);
+ t.didFirePressStart && t.pointerType != null && x(ma(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || U(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
}, [
d,
- y,
+ v,
x
- ]), T = mi(w);
- (0, _.useEffect)(() => {
+ ]), T = gi(w);
+ (0, b.useEffect)(() => {
s && g.current.isPressed && T({
currentTarget: g.current.target,
shiftKey: !1,
@@ -3876,46 +3876,46 @@ function ca(e) {
altKey: !1
});
}, [s]);
- let E = (0, _.useCallback)((e) => {
+ let E = (0, b.useCallback)((e) => {
u && w(e);
- }, [u, w]), D = (0, _.useCallback)((e) => {
+ }, [u, w]), D = (0, b.useCallback)((e) => {
s || o?.(e);
- }, [s, o]), O = (0, _.useCallback)((e, t) => {
+ }, [s, o]), O = (0, b.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- Ut(n, t), o(B(n));
+ Gt(n, t), o(Wt(n));
}
- }, [s, o]), k = (0, _.useMemo)(() => {
+ }, [s, o]), k = (0, b.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (ua(t.nativeEvent, t.currentTarget) && L(t.currentTarget, R(t))) {
- pa(R(t), t.key) && t.preventDefault();
+ if (pa(t.nativeEvent, t.currentTarget) && R(t.currentTarget, z(t))) {
+ ga(z(t), t.key) && t.preventDefault();
let r = !0;
- !e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = b(t, "keyboard"));
+ !e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));
let i = t.currentTarget;
- v(I(t.currentTarget), "keyup", er((t) => {
- ua(t, i) && !t.repeat && L(i, R(t)) && e.target && C(da(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && Xt() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(L(t.currentTarget), "keyup", nr((t) => {
+ pa(t, i) && !t.repeat && R(i, z(t)) && e.target && C(ma(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && Qt() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if (!(t && !L(t.currentTarget, R(t))) && t && t.button === 0 && !e.isTriggeringEvent && !un.isOpening) {
+ if (!(t && !R(t.currentTarget, z(t))) && t && t.button === 0 && !e.isTriggeringEvent && !fn.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || on(t.nativeEvent))) {
- let e = b(t, "virtual"), r = C(t, "virtual"), i = S(t, "virtual");
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || cn(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(da(t.currentTarget, t), r), a = S(da(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = C(ma(t.currentTarget, t), r), a = S(ma(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 && ua(t, e.target)) {
- pa(R(t), t.key) && t.preventDefault();
- let n = R(t), r = L(e.target, n);
- S(da(e.target, t), "keyboard", r), r && O(t, e.target), y(), t.key !== "Enter" && la(e.target) && L(e.target, n) && !t[aa] && (t[aa] = !0, un(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && pa(t, e.target)) {
+ ga(z(t), t.key) && t.preventDefault();
+ let n = z(t), r = R(e.target, n);
+ S(ma(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && fa(e.target) && R(e.target, n) && !t[ca] && (t[ca] = !0, fn(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;
@@ -3924,41 +3924,41 @@ function ca(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !L(t.currentTarget, R(t))) return;
- if (sn(t.nativeEvent)) {
+ if (t.button !== 0 || !R(t.currentTarget, z(t))) return;
+ if (ln(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 || Zi(e.target), i = b(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)), v(I(t.currentTarget), "pointerup", n, !1), v(I(t.currentTarget), "pointercancel", r, !1);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || ea(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);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (L(t.currentTarget, R(t)) && t.button === 0) {
+ if (R(t.currentTarget, z(t)) && t.button === 0) {
if (l) {
- let n = Kt(t.target);
+ let n = Jt(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- !L(t.currentTarget, R(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && C(t, e.pointerType || t.pointerType);
+ !R(t.currentTarget, z(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, b(da(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(ma(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, S(da(e.target, t), e.pointerType, !1), E(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, S(ma(e.target, t), e.pointerType, !1), E(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (L(e.target, R(t)) && e.pointerType != null) {
+ if (R(e.target, z(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? T(t) : (gt(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? T(t) : (vt(e.target), e.target.click()));
}, 80);
- v(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
+ _(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else T(t);
e.isOverTarget = !1;
}
@@ -3966,55 +3966,55 @@ function ca(e) {
T(e);
};
t.onDragStart = (e) => {
- L(e.currentTarget, R(e)) && T(e);
+ R(e.currentTarget, z(e)) && T(e);
};
}
return t;
}, [
- v,
+ _,
s,
l,
- y,
+ v,
d,
E,
- b,
+ y,
D,
O
]);
- return (0, _.useEffect)(() => {
+ return (0, b.useEffect)(() => {
if (!f) return;
- let e = I(f.current);
- if (!e || !e.head || e.getElementById(oa)) return;
+ let e = L(f.current);
+ if (!e || !e.head || e.getElementById(la)) return;
let t = e.createElement("style");
- t.id = oa;
- let n = U(e);
+ t.id = la;
+ let n = ra(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${sa}] {
+ [${ua}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
`.trim(), e.head.prepend(t);
- }, [f]), (0, _.useEffect)(() => {
+ }, [f]), (0, b.useEffect)(() => {
let e = g.current;
return () => {
- d || Qi(e.target ?? void 0);
+ d || U(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: V(p, k, { [sa]: !0 })
+ pressProps: H(p, k, { [ua]: !0 })
};
}
-function la(e) {
+function fa(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function ua(e, t) {
+function pa(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof xt(i).HTMLInputElement && !ha(i, n) || i instanceof xt(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && la(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof Ct(i).HTMLInputElement && !va(i, n) || i instanceof Ct(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && fa(i)) && n !== "Enter");
}
-function da(e, t) {
+function ma(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -4027,13 +4027,13 @@ function da(e, t) {
key: t.key
};
}
-function fa(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !la(e);
+function ha(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !fa(e);
}
-function pa(e, t) {
- return Xt() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !ha(e, t) : fa(e);
+function ga(e, t) {
+ return Qt() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !va(e, t) : ha(e);
}
-var ma = /* @__PURE__ */ new Set([
+var _a = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -4044,12 +4044,12 @@ var ma = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function ha(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : ma.has(e.type);
+function va(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : _a.has(e.type);
}
//#endregion
//#region node_modules/react-aria/dist/private/button/useButton.mjs
-function ga(e, t) {
+function ya(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,
@@ -4071,7 +4071,7 @@ function ga(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = ca({
+ let { pressProps: _, isPressed: v } = da({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -4081,12 +4081,12 @@ function ga(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = Mr(e, t);
+ }), { focusableProps: y } = Pr(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = V(y, _, H(e, { labelable: !0 }));
+ let b = H(y, _, Xi(e, { labelable: !0 }));
return {
isPressed: v,
- buttonProps: V(g, b, {
+ buttonProps: H(g, b, {
"aria-haspopup": e["aria-haspopup"],
"aria-expanded": e["aria-expanded"],
"aria-controls": e["aria-controls"],
@@ -4098,7 +4098,7 @@ function ga(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var _a = class {
+var ba = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -4123,7 +4123,7 @@ var _a = class {
return this._currentNode;
}
set currentNode(e) {
- if (!L(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!R(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 });
@@ -4137,7 +4137,7 @@ var _a = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return L(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return R(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -4201,202 +4201,202 @@ var _a = class {
return null;
}
};
-function va(e, t, n, r) {
- return kt() ? new _a(e, t, n, r) : e.createTreeWalker(t, n, r);
+function xa(e, t, n, r) {
+ return jt() ? new ba(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var ya = /*#__PURE__*/ _.createContext(null), ba = "react-aria-focus-scope-restore", W = null;
-function xa(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, _.useRef)(null), o = (0, _.useRef)(null), s = (0, _.useRef)([]), { parentNode: c } = (0, _.useContext)(ya) || {}, l = (0, _.useMemo)(() => new Ua({ scopeRef: s }), [s]);
- z(() => {
- let e = c || Wa.root;
- if (Wa.getTreeNode(e.scopeRef) && W && !Ma(W, e.scopeRef)) {
- let t = Wa.getTreeNode(W);
+var Sa = /*#__PURE__*/ b.createContext(null), Ca = "react-aria-focus-scope-restore", wa = null;
+function Ta(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useRef)([]), { parentNode: c } = (0, b.useContext)(Sa) || {}, l = (0, b.useMemo)(() => new qa({ scopeRef: s }), [s]);
+ V(() => {
+ let e = c || Ja.root;
+ if (Ja.getTreeNode(e.scopeRef) && wa && !Ia(wa, e.scopeRef)) {
+ let t = Ja.getTreeNode(wa);
t && (e = t);
}
- e.addChild(l), Wa.addNode(l);
- }, [l, c]), z(() => {
- let e = Wa.getTreeNode(s);
+ e.addChild(l), Ja.addNode(l);
+ }, [l, c]), V(() => {
+ let e = Ja.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), z(() => {
+ }, [n]), V(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(ba, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(Ca, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(ba, n);
+ for (let e of t) e.removeEventListener(Ca, n);
};
- }, [t]), La(s, r, n), Da(s, n), za(s, r, n), Ia(s, i), (0, _.useEffect)(() => {
- let e = At(I(s.current ? s.current[0] : void 0)), t = null;
- if (ka(e, s.current)) {
- for (let n of Wa.traverse()) n.scopeRef && ka(e, n.scopeRef.current) && (t = n);
- t === Wa.getTreeNode(s) && (W = t.scopeRef);
- }
- }, [s]), z(() => () => {
- let e = Wa.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === W || Ma(s, W)) && (!e || Wa.getTreeNode(e)) && (W = e), Wa.removeTreeNode(s);
+ }, [t]), Va(s, r, n), ja(s, n), Ua(s, r, n), Ba(s, i), (0, b.useEffect)(() => {
+ let e = Mt(L(s.current ? s.current[0] : void 0)), t = null;
+ if (Na(e, s.current)) {
+ for (let n of Ja.traverse()) n.scopeRef && Na(e, n.scopeRef.current) && (t = n);
+ t === Ja.getTreeNode(s) && (wa = t.scopeRef);
+ }
+ }, [s]), V(() => () => {
+ let e = Ja.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === wa || Ia(s, wa)) && (!e || Ja.getTreeNode(e)) && (wa = e), Ja.removeTreeNode(s);
}, [s]);
- let u = (0, _.useMemo)(() => Sa(s), []), d = (0, _.useMemo)(() => ({
+ let u = (0, b.useMemo)(() => Ea(s), []), d = (0, b.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ _.createElement(ya.Provider, { value: d }, /*#__PURE__*/ _.createElement("span", {
+ return /*#__PURE__*/ b.createElement(Sa.Provider, { value: d }, /*#__PURE__*/ b.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
- }), t, /*#__PURE__*/ _.createElement("span", {
+ }), t, /*#__PURE__*/ b.createElement("span", {
"data-focus-scope-end": !0,
hidden: !0,
ref: o
}));
}
-function Sa(e) {
+function Ea(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || At(I(n[0] ?? void 0)), c = n[0].previousElementSibling, l = Va(Ca(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Mt(L(n[0] ?? void 0)), c = n[0].previousElementSibling, l = Ga(Da(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = ka(s, n) ? s : c;
+ l.currentNode = Na(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && Na(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && La(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || At(I(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = Va(Ca(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Mt(L(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = Ga(Da(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = ka(s, n) ? s : c;
+ l.currentNode = Na(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && Na(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && La(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = Va(Ca(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = Ga(Da(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && Na(o, !0), o;
+ return o && La(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = Va(Ca(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = Ga(Da(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && Na(o, !0), o;
+ return o && La(o, !0), o;
}
};
}
-function Ca(e) {
+function Da(e) {
return e[0].parentElement;
}
-function wa(e) {
- let t = Wa.getTreeNode(W);
+function Oa(e) {
+ let t = Ja.getTreeNode(wa);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function Ta(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 = xt(e);
+function ka(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 = Ct(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function Ea(e) {
+function Aa(e) {
if (e.checked) return !0;
- let t = Ta(e);
+ let t = ka(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function Da(e, t) {
- let n = (0, _.useRef)(void 0), r = (0, _.useRef)(void 0);
- z(() => {
+function ja(e, t) {
+ let n = (0, b.useRef)(void 0), r = (0, b.useRef)(void 0);
+ V(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = I(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !wa(e) || t.isComposing) return;
- let n = At(a), r = e.current;
- if (!r || !ka(n, r)) return;
- let i = Va(Ca(r), { tabbable: !0 }, r);
+ let a = L(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Oa(e) || t.isComposing) return;
+ let n = Mt(a), r = e.current;
+ if (!r || !Na(n, r)) return;
+ let i = Ga(Da(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 && (Na(o, !0), o instanceof xt(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 && (La(o, !0), o instanceof Ct(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!W || Ma(W, e)) && ka(R(t), e.current) ? (W = e, n.current = R(t)) : wa(e) && !Aa(R(t), e) ? n.current ? Na(n.current) : W && W.current && Fa(W.current) : wa(e) && (n.current = R(t));
+ (!wa || Ia(wa, e)) && Na(z(t), e.current) ? (wa = e, n.current = z(t)) : Oa(e) && !Pa(z(t), e) ? n.current ? La(n.current) : wa && wa.current && za(wa.current) : Oa(e) && (n.current = z(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = Un(), i = (r === "virtual" || r === null) && rn() && nn(), o = At(a);
- if (!i && o && wa(e) && !Aa(o, e)) {
- W = e;
- let r = R(t);
- r && r.isConnected ? (n.current = r, Na(n.current)) : W.current && Fa(W.current);
+ let r = Gn(), i = (r === "virtual" || r === null) && on() && an(), o = Mt(a);
+ if (!i && o && Oa(e) && !Pa(o, e)) {
+ wa = e;
+ let r = z(t);
+ r && r.isConnected ? (n.current = r, La(n.current)) : wa.current && za(wa.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]), z(() => () => {
+ }, [e, t]), V(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function Oa(e) {
- return Aa(e);
+function Ma(e) {
+ return Pa(e);
}
-function ka(e, t) {
- return !e || !t ? !1 : t.some((t) => L(t, e));
+function Na(e, t) {
+ return !e || !t ? !1 : t.some((t) => R(t, e));
}
-function Aa(e, t = null) {
+function Pa(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of Wa.traverse(Wa.getTreeNode(t))) if (n && ka(e, n.current)) return !0;
+ for (let { scopeRef: n } of Ja.traverse(Ja.getTreeNode(t))) if (n && Na(e, n.current)) return !0;
return !1;
}
-function ja(e) {
- return Aa(e, W);
+function Fa(e) {
+ return Pa(e, wa);
}
-function Ma(e, t) {
- let n = Wa.getTreeNode(t)?.parent;
+function Ia(e, t) {
+ let n = Ja.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function Na(e, t = !1) {
+function La(e, t = !1) {
if (e != null && !t) try {
- $n(e);
+ tr(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function Pa(e, t = !0) {
- let n = e[0].previousElementSibling, r = Ca(e), i = Va(r, { tabbable: t }, e);
+function Ra(e, t = !0) {
+ let n = e[0].previousElementSibling, r = Da(e), i = Ga(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = Ca(e), i = Va(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = Da(e), i = Ga(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function Fa(e, t = !0) {
- Na(Pa(e, t));
+function za(e, t = !0) {
+ La(Ra(e, t));
}
-function Ia(e, t) {
- let n = _.useRef(t);
- (0, _.useEffect)(() => {
- n.current && (W = e, !ka(At(I(e.current ? e.current[0] : void 0)), W.current) && e.current && Fa(e.current)), n.current = !1;
+function Ba(e, t) {
+ let n = b.useRef(t);
+ (0, b.useEffect)(() => {
+ n.current && (wa = e, !Na(Mt(L(e.current ? e.current[0] : void 0)), wa.current) && e.current && za(e.current)), n.current = !1;
}, [e]);
}
-function La(e, t, n) {
- z(() => {
+function Va(e, t, n) {
+ V(() => {
if (t || n) return;
- let r = e.current, i = I(r ? r[0] : void 0), a = (t) => {
- let n = R(t);
- ka(n, e.current) ? W = e : Oa(n) || (W = null);
+ let r = e.current, i = L(r ? r[0] : void 0), a = (t) => {
+ let n = z(t);
+ Na(n, e.current) ? wa = e : Ma(n) || (wa = 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));
@@ -4407,43 +4407,43 @@ function La(e, t, n) {
n
]);
}
-function Ra(e) {
- let t = Wa.getTreeNode(W);
+function Ha(e) {
+ let t = Ja.getTreeNode(wa);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function za(e, t, n) {
- let r = (0, _.useRef)(typeof document < "u" ? At(I(e.current ? e.current[0] : void 0)) : null);
- z(() => {
- let r = e.current, i = I(r ? r[0] : void 0);
+function Ua(e, t, n) {
+ let r = (0, b.useRef)(typeof document < "u" ? Mt(L(e.current ? e.current[0] : void 0)) : null);
+ V(() => {
+ let r = e.current, i = L(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!W || Ma(W, e)) && ka(At(i), e.current) && (W = e);
+ (!wa || Ia(wa, e)) && Na(Mt(i), e.current) && (wa = 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]), z(() => {
- let r = I(e.current ? e.current[0] : void 0);
+ }, [e, n]), V(() => {
+ let r = L(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !wa(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Oa(e) || t.isComposing) return;
let n = r.activeElement;
- if (!Aa(n, e) || !Ra(e)) return;
- let i = Wa.getTreeNode(e);
+ if (!Pa(n, e) || !Ha(e)) return;
+ let i = Ja.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = Va(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = Ga(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 || !Aa(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !Pa(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (Aa(s, e));
- t.preventDefault(), t.stopPropagation(), s ? Na(s, !0) : Oa(a) ? Na(a, !0) : n.blur();
+ while (Pa(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? La(s, !0) : Ma(a) ? La(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -4453,31 +4453,31 @@ function za(e, t, n) {
e,
t,
n
- ]), z(() => {
- let n = I(e.current ? e.current[0] : void 0);
+ ]), V(() => {
+ let n = L(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = Wa.getTreeNode(e);
+ let i = Ja.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = Wa.getTreeNode(e);
+ let r = Ja.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = At(n);
- if (t && i && (a && Aa(a, e) || a === n.body && Ra(e))) {
- let t = Wa.clone();
+ let i = r.nodeToRestore, a = Mt(n);
+ if (t && i && (a && Pa(a, e) || a === n.body && Ha(e))) {
+ let t = Ja.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- Ba(n.nodeToRestore);
+ Wa(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && Wa.getTreeNode(n.scopeRef)) {
- let e = Pa(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && Ja.getTreeNode(n.scopeRef)) {
+ let e = Ra(n.scopeRef.current, !0);
if (e) {
- Ba(e);
+ Wa(e);
return;
}
}
@@ -4489,21 +4489,21 @@ function za(e, t, n) {
};
}, [e, t]);
}
-function Ba(e) {
- e.dispatchEvent(new CustomEvent(ba, {
+function Wa(e) {
+ e.dispatchEvent(new CustomEvent(Ca, {
bubbles: !0,
cancelable: !0
- })) && Na(e);
+ })) && La(e);
}
-function Va(e, t, n) {
- let r = t?.tabbable ? Vt : Bt, i = I(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = va(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return L(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Ea(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || ka(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function Ga(e, t, n) {
+ let r = t?.tabbable ? B : Ht, i = L(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = xa(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return R(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Aa(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || Na(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var Ha = class e {
+var Ka = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new Ua({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new qa({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -4514,7 +4514,7 @@ var Ha = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new Ua({ scopeRef: e });
+ let i = new qa({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -4525,7 +4525,7 @@ var Ha = 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 && ka(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 && Na(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);
}
@@ -4537,7 +4537,7 @@ var Ha = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, Ua = class {
+}, qa = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -4547,13 +4547,13 @@ var Ha = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, Wa = new Ha(), Ga = 7e3, Ka = null;
-function qa(e, t = "assertive", n = Ga) {
- Ka ? Ka.announce(e, t, n) : (Ka = new Ja(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? Ka.announce(e, t, n) : setTimeout(() => {
- Ka?.isAttached() && Ka?.announce(e, t, n);
+}, Ja = new Ka(), Ya = 7e3, Xa = null;
+function Za(e, t = "assertive", n = Ya) {
+ Xa ? Xa.announce(e, t, n) : (Xa = new Qa(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? Xa.announce(e, t, n) : setTimeout(() => {
+ Xa?.isAttached() && Xa?.announce(e, t, n);
}, 100));
}
-var Ja = class {
+var Qa = 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,
@@ -4578,7 +4578,7 @@ var Ja = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = Ga) {
+ announce(e, t = "assertive", n = Ya) {
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(() => {
@@ -4591,46 +4591,46 @@ var Ja = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function Ya(e, t) {
+function $a(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 Xa(e, t) {
+function eo(e, t) {
let n = e;
- for (Ya(n, t) && (n = n.parentElement); n && !Ya(n, t);) n = n.parentElement;
+ for ($a(n, t) && (n = n.parentElement); n && !$a(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function Za(e, t) {
+function to(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (Ya(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && ($a(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function Qa(e, t, n = {}) {
- e !== t && $a(e, t, t.getBoundingClientRect(), n);
-}
-function $a(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, ne = e === d ? 0 : T + E, re = e === d ? 0 : e.offsetWidth - e.clientWidth - te, M = e === d ? 0 : e.offsetHeight - e.clientHeight - ne, ie = p + (f ? 0 : T) + x, ae = m - (f ? 0 : E) - S - M, oe = h + (f ? 0 : D) + C, se = g - (f ? 0 : O) - w;
- $t() && tn() || u.direction === "ltr" ? se -= re : u.direction === "rtl" && (oe += re);
- let ce = k < ie || A > ae, le = ee < oe || j > se;
- if (ce && i === "start") o += k - ie;
- else if (ce && i === "center") o += (k + A) / 2 - (ie + ae) / 2;
- else if (ce && i === "end") o += A - ae;
- else if (ce && i === "nearest") {
- let e = k - ie, t = A - ae;
+function no(e, t, n = {}) {
+ e !== t && ro(e, t, t.getBoundingClientRect(), n);
+}
+function ro(e, t, n, r = {}) {
+ let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, N = e === d ? 0 : D + O, ee = e === d ? 0 : T + E, te = e === d ? 0 : e.offsetWidth - e.clientWidth - N, P = e === d ? 0 : e.offsetHeight - e.clientHeight - ee, ne = p + (f ? 0 : T) + x, re = m - (f ? 0 : E) - S - P, ie = h + (f ? 0 : D) + C, ae = g - (f ? 0 : O) - w;
+ tn() && rn() || u.direction === "ltr" ? ae -= te : u.direction === "rtl" && (ie += te);
+ let oe = k < ne || A > re, se = j < ie || M > ae;
+ if (oe && i === "start") o += k - ne;
+ else if (oe && i === "center") o += (k + A) / 2 - (ne + re) / 2;
+ else if (oe && i === "end") o += A - re;
+ else if (oe && i === "nearest") {
+ let e = k - ne, t = A - re;
o += Math.abs(e) <= Math.abs(t) ? e : t;
}
- if (le && a === "start") s += ee - oe;
- else if (le && a === "center") s += (ee + j) / 2 - (oe + se) / 2;
- else if (le && a === "end") s += j - se;
- else if (le && a === "nearest") {
- let e = ee - oe, t = j - se;
+ if (se && a === "start") s += j - ie;
+ else if (se && a === "center") s += (j + M) / 2 - (ie + ae) / 2;
+ else if (se && a === "end") s += M - ae;
+ else if (se && a === "nearest") {
+ let e = j - ie, t = M - ae;
s += Math.abs(e) <= Math.abs(t) ? e : t;
}
e.scrollTo({
@@ -4638,7 +4638,7 @@ function $a(e, t, n, r = {}) {
top: o
});
}
-function eo(e, t = {}) {
+function io(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -4651,50 +4651,50 @@ function eo(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = Za(e, !0);
- for (let t of i) Qa(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = to(e, !0);
+ for (let t of i) no(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? Za(n, !0) : [];
- for (let e of i) Qa(e, n, {
+ i = n ? to(n, !0) : [];
+ for (let e of i) no(e, n, {
block: "center",
inline: "center"
});
- for (let t of Za(e, !0)) Qa(t, e);
+ for (let t of to(e, !0)) no(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var to = 0, no = /* @__PURE__ */ new Map();
-function ro(e) {
- let [t, n] = (0, _.useState)();
- return z(() => {
+var ao = 0, oo = /* @__PURE__ */ new Map();
+function so(e) {
+ let [t, n] = (0, b.useState)();
+ return V(() => {
if (!e) return;
- let t = no.get(e);
+ let t = oo.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${to++}`;
+ let r = `react-aria-description-${ao++}`;
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
- }, no.set(e, t);
+ }, oo.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), no.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), oo.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function io(e, t, n) {
- let r = mi((e) => {
+function co(e, t, n) {
+ let r = gi((e) => {
n && !e.defaultPrevented && n(t);
});
- (0, _.useEffect)(() => {
+ (0, b.useEffect)(() => {
let t = e?.current?.form;
return t?.addEventListener("reset", r), () => {
t?.removeEventListener("reset", r);
@@ -4703,35 +4703,35 @@ function io(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function ao(e, t, n) {
+function lo(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- z(() => {
+ V(() => {
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(so(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(fo(n.current));
}
});
- let a = (0, _.useRef)(!1), o = mi(() => {
+ let a = (0, b.useRef)(!1), o = gi(() => {
a.current || t.resetValidation();
- }), s = mi((e) => {
+ }), s = gi((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && co(r) === n.current && (i ? i() : n.current?.focus(), Wn("keyboard")), e.preventDefault();
- }), c = mi(() => {
+ !e.defaultPrevented && n && r && po(r) === n.current && (i ? i() : n.current?.focus(), Kn("keyboard")), e.preventDefault();
+ }), c = gi(() => {
t.commitValidation();
});
- (0, _.useEffect)(() => {
+ (0, b.useEffect)(() => {
let e = n?.current;
if (!e) return;
let t = e.form, r = t?.reset;
return t && (t.reset = () => {
- a.current = !window.event || window.event.type === "message" && R(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
+ a.current = !window.event || window.event.type === "message" && z(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 oo(e) {
+function uo(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -4747,14 +4747,14 @@ function oo(e) {
valid: t.valid
};
}
-function so(e) {
+function fo(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: oo(e),
+ validationDetails: uo(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function co(e) {
+function po(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -4763,16 +4763,16 @@ function co(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSlot.mjs
-function lo(e = !0) {
- let [t, n] = (0, _.useState)(e), r = (0, _.useRef)(!1), i = (0, _.useCallback)((e) => {
+function mo(e = !0) {
+ let [t, n] = (0, b.useState)(e), r = (0, b.useRef)(!1), i = (0, b.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return z(() => {
+ return V(() => {
r.current || n(!1);
}, []), [i, t];
}
-function uo(e = !0) {
- let t = or(), [n, r] = lo(e);
+function ho(e = !0) {
+ let t = cr(), [n, r] = mo(e);
return {
id: r ? t : void 0,
ref: n
@@ -4780,7 +4780,7 @@ function uo(e = !0) {
}
//#endregion
//#region node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var fo = {
+var go = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -4792,18 +4792,18 @@ var fo = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, po = {
- ...fo,
+}, _o = {
+ ...go,
customError: !0,
valid: !1
-}, mo = {
+}, vo = {
isInvalid: !1,
- validationDetails: fo,
+ validationDetails: go,
validationErrors: []
-}, ho = (0, _.createContext)({}), go = "__reactAriaFormValidationState";
-function _o(e) {
+}, yo = (0, b.createContext)({}), bo = "__reactAriaFormValidationState";
+function xo(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[go];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[bo];
return {
realtimeValidation: t,
displayValidation: n,
@@ -4812,79 +4812,79 @@ function _o(e) {
commitValidation: a
};
}
- return vo(e);
+ return So(e);
}
-function vo(e) {
+function So(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: po
- }, l = (0, _.useMemo)(() => !o || i == null ? null : xo(bo(o, i)), [o, i]);
+ validationDetails: _o
+ }, l = (0, b.useMemo)(() => !o || i == null ? null : To(wo(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, _.useContext)(ho), d = (0, _.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => yo(u[e])) : yo(u[r]) : [], [u, r]), [f, p] = (0, _.useState)(u), [m, h] = (0, _.useState)(!1);
+ let u = (0, b.useContext)(yo), d = (0, b.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => Co(u[e])) : Co(u[r]) : [], [u, r]), [f, p] = (0, b.useState)(u), [m, h] = (0, b.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, _.useMemo)(() => xo(m ? [] : d), [m, d]), v = (0, _.useRef)(mo), [y, b] = (0, _.useState)(mo), x = (0, _.useRef)(mo), S = () => {
+ let g = (0, b.useMemo)(() => To(m ? [] : d), [m, d]), _ = (0, b.useRef)(vo), [v, y] = (0, b.useState)(vo), x = (0, b.useRef)(vo), S = () => {
if (!C) return;
w(!1);
- let e = l || a || v.current;
- So(e, x.current) || (x.current = e, b(e));
- }, [C, w] = (0, _.useState)(!1);
- return (0, _.useEffect)(S), {
- realtimeValidation: c || g || l || a || mo,
- displayValidation: s === "native" ? c || g || y : c || g || l || a || y,
+ let e = l || a || _.current;
+ Eo(e, x.current) || (x.current = e, y(e));
+ }, [C, w] = (0, b.useState)(!1);
+ return (0, b.useEffect)(S), {
+ realtimeValidation: c || g || l || a || vo,
+ displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !So(y, e) ? b(e) : v.current = e;
+ s === "aria" && !Eo(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = mo;
- So(e, x.current) || (x.current = e, b(e)), s === "native" && w(!1), h(!0);
+ let e = vo;
+ Eo(e, x.current) || (x.current = e, y(e)), s === "native" && w(!1), h(!0);
},
commitValidation() {
s === "native" && w(!0), h(!0);
}
};
}
-function yo(e) {
+function Co(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function bo(e, t) {
+function wo(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return yo(n);
+ if (n && typeof n != "boolean") return Co(n);
}
return [];
}
-function xo(e) {
+function To(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: po
+ validationDetails: _o
} : null;
}
-function So(e, t) {
+function Eo(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 Co(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: v, onPressUp: y, onClick: b } = e, x = _o({
+function Do(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, x = xo({
...e,
value: t.isSelected
}), { isInvalid: S, validationErrors: C, validationDetails: w } = x.displayValidation;
- ao(e, x, n);
+ lo(e, x, n);
let T = (e) => {
- e.stopPropagation(), t.setSelected(R(e).checked);
- }, { pressProps: E, isPressed: D } = ca({
+ e.stopPropagation(), t.setSelected(z(e).checked);
+ }, { pressProps: E, isPressed: D } = da({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
- onPress: v,
- onPressUp: y,
- onClick: b,
+ onPress: _,
+ onPressUp: v,
+ onClick: y,
isDisabled: r
- }), [O, k] = (0, _.useState)(!1), { pressProps: A } = ca({
+ }), [O, k] = (0, b.useState)(!1), { pressProps: A } = da({
onPressStart(e) {
if (e.pointerType === "keyboard" || e.pointerType === "virtual") {
e.continuePropagation();
@@ -4904,25 +4904,25 @@ function Co(e, t, n) {
e.continuePropagation();
return;
}
- y?.(e);
+ v?.(e);
},
- onClick: b,
+ onClick: y,
onPress(r) {
if (r.pointerType === "keyboard" || r.pointerType === "virtual") {
r.continuePropagation();
return;
}
- v?.(r), t.toggle(), n.current?.focus();
- let { [go]: i } = e, { commitValidation: a } = i || x;
+ _?.(r), t.toggle(), n.current?.focus();
+ let { [bo]: i } = e, { commitValidation: a } = i || x;
a();
},
isDisabled: r || i
- }), { focusableProps: ee } = Mr(e, n), j = V(E, ee), te = H(e, { labelable: !0 });
- io(n, t.defaultSelected, t.setSelected);
- let ne = uo(), re = uo();
+ }), { focusableProps: j } = Pr(e, n), M = H(E, j), N = Xi(e, { labelable: !0 });
+ co(n, t.defaultSelected, t.setSelected);
+ let ee = ho(), te = ho();
return {
- labelProps: V(A, { onClick: (e) => e.preventDefault() }),
- inputProps: V(te, {
+ labelProps: H(A, { onClick: (e) => e.preventDefault() }),
+ inputProps: H(N, {
checked: t.isSelected,
"aria-required": l && u === "aria" || void 0,
required: l && u === "native",
@@ -4931,8 +4931,8 @@ function Co(e, t, n) {
"aria-controls": e["aria-controls"],
"aria-readonly": i || void 0,
"aria-describedby": [
- ne.id,
- re.id,
+ ee.id,
+ te.id,
p
].filter(Boolean).join(" ") || void 0,
onChange: T,
@@ -4941,10 +4941,10 @@ function Co(e, t, n) {
name: o,
form: s,
type: "checkbox",
- ...j
+ ...M
}),
- descriptionProps: ne,
- errorMessageProps: re,
+ descriptionProps: ee,
+ errorMessageProps: te,
isSelected: t.isSelected,
isPressed: D || O,
isDisabled: r,
@@ -4956,12 +4956,12 @@ function Co(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function wo(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 } = Co(e, t, n), { isIndeterminate: m } = e;
- return (0, _.useEffect)(() => {
+function Oo(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 } = Do(e, t, n), { isIndeterminate: m } = e;
+ return (0, b.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
- labelProps: V(r, (0, _.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
+ labelProps: H(r, (0, b.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
inputProps: i,
descriptionProps: a,
errorMessageProps: o,
@@ -4976,18 +4976,18 @@ function wo(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/utils.mjs
-var To = /* @__PURE__ */ new WeakMap();
+var ko = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function Eo(e) {
+function Ao(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = or(t);
- let o = or(), s = {};
+ t = cr(t);
+ let o = cr(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = gi({
+ let c = vi({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -4999,19 +4999,19 @@ function Eo(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function Do(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = Eo(e), s = cr([
+function jo(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = Ao(e), s = ur([
!!t,
!!n,
r,
i
- ]), c = cr([
+ ]), c = ur([
!!t,
!!n,
r,
i
]);
- return o = V(o, { "aria-describedby": [
+ return o = H(o, { "aria-describedby": [
s,
c,
e["aria-describedby"]
@@ -5024,26 +5024,26 @@ function Do(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function Oo(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, _.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = na(), c = (0, _.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));
+function Mo(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, b.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = aa(), c = (0, b.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));
}, [
n,
i,
a,
s
- ]), l = Wt(c), u = (0, _.useCallback)((e) => {
- if (!L(e.currentTarget, R(e))) return;
- let t = R(e), n = I(t), s = At(n);
+ ]), l = Kt(c), u = (0, b.useCallback)((e) => {
+ if (!R(e.currentTarget, z(e))) return;
+ let t = z(e), n = L(t), s = Mt(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 = R(e);
- if (a.current.isFocusWithin && !L(t, r)) {
+ let r = z(e);
+ if (a.current.isFocusWithin && !R(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- Ut(e, t);
- let i = B(e);
+ Gt(e, t);
+ let i = Wt(e);
c(i);
}
}, { capture: !0 });
@@ -5065,26 +5065,26 @@ function Oo(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var ko = typeof document < "u" ? _.useInsertionEffect ?? _.useLayoutEffect : () => {};
-function Ao(e, t, n) {
- let [r, i] = (0, _.useState)(e || t), a = (0, _.useRef)(r), o = (0, _.useRef)(e !== void 0), s = e !== void 0;
- (0, _.useEffect)(() => {
+var No = typeof document < "u" ? b.useInsertionEffect ?? b.useLayoutEffect : () => {};
+function Po(e, t, n) {
+ let [r, i] = (0, b.useState)(e || t), a = (0, b.useRef)(r), o = (0, b.useRef)(e !== void 0), s = e !== void 0;
+ (0, b.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- ko(() => {
+ No(() => {
a.current = c;
});
- let [, l] = (0, _.useReducer)(() => ({}), {});
- return [c, (0, _.useCallback)((e, ...t) => {
+ let [, l] = (0, b.useReducer)(() => ({}), {});
+ return [c, (0, b.useCallback)((e, ...t) => {
let r = typeof e == "function" ? e(a.current) : e;
Object.is(a.current, r) || (a.current = r, i(r), l(), n?.(r, ...t));
}, [n])];
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function jo(e = {}) {
- let { isReadOnly: t } = e, [n, r] = Ao(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, _.useState)(n);
+function Fo(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = Po(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, b.useState)(n);
function a(e) {
t || r(e);
}
@@ -5100,26 +5100,26 @@ function jo(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function Mo(e, t, n) {
- let r = jo({
+function Io(e, t, n) {
+ let r = Fo({
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 } = To.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = ko.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = _o({
+ let { realtimeValidation: l } = xo({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, _.useRef)(mo), d = () => {
+ }), u = (0, b.useRef)(vo), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
- (0, _.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = wo({
+ (0, b.useEffect)(d);
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = Oo({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -5127,7 +5127,7 @@ function Mo(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [go]: {
+ [bo]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -5151,12 +5151,12 @@ function Mo(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function No(e, t = -Infinity, n = Infinity) {
+function Lo(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 Po = {
+var Ro = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -5168,40 +5168,40 @@ var Po = {
width: "1px",
whiteSpace: "nowrap"
};
-function Fo(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, _.useState)(!1), { focusWithinProps: a } = Oo({
+function W(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, b.useState)(!1), { focusWithinProps: a } = Mo({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
- }), o = (0, _.useMemo)(() => r ? t : t ? {
- ...Po,
+ }), o = (0, b.useMemo)(() => r ? t : t ? {
+ ...Ro,
...t
- } : Po, [r]);
+ } : Ro, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function Io(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = Fo(e);
- return /*#__PURE__*/ _.createElement(n, V(a, o), t);
+function G(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = W(e);
+ return /*#__PURE__*/ b.createElement(n, H(a, o), t);
}
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function Lo(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = Ao(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Mr(e, t), d = _o({
+function zo(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = Po(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Pr(e, t), d = xo({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: v, errorMessageProps: y } = Do({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = jo({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), b = H(e, { labelable: !0 }), x = {
+ }), y = Xi(e, { labelable: !0 }), x = {
type: o,
pattern: e.pattern
- }, [S] = (0, _.useState)(c);
- return io(t, e.defaultValue ?? S, l), ao(e, d, t), {
+ }, [S] = (0, b.useState)(c);
+ return co(t, e.defaultValue ?? S, l), lo(e, d, t), {
labelProps: h,
- inputProps: V(b, n === "input" ? x : void 0, {
+ inputProps: H(y, n === "input" ? x : void 0, {
disabled: r,
readOnly: a,
required: i && s === "native",
@@ -5213,7 +5213,7 @@ function Lo(e, t) {
"aria-haspopup": e["aria-haspopup"],
"aria-controls": e["aria-controls"],
value: c,
- onChange: (e) => l(R(e).value),
+ onChange: (e) => l(z(e).value),
autoComplete: e.autoComplete,
autoCapitalize: e.autoCapitalize,
maxLength: e.maxLength,
@@ -5237,8 +5237,8 @@ function Lo(e, t) {
...u,
...g
}),
- descriptionProps: v,
- errorMessageProps: y,
+ descriptionProps: _,
+ errorMessageProps: v,
isInvalid: f,
validationErrors: p,
validationDetails: m
@@ -5246,42 +5246,42 @@ function Lo(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var G = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function Ro(e) {
+var Bo = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function Vo(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var zo = /* @__PURE__ */ new WeakMap(), Bo = [];
-function Vo(e, t) {
- let n = xt(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && G, 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 Ho = /* @__PURE__ */ new WeakMap(), Uo = [];
+function Wo(e, t) {
+ let n = Ct(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Bo, 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 (kt()) {
+ if (jt()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; Tt(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; Dt(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 (L(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (R(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = va(I(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = xa(L(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 = zo.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), zo.set(e, t + 1));
+ let t = Ho.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), Ho.set(e, t + 1));
};
- Bo.length && Bo[Bo.length - 1].disconnect(), d(i);
+ Uo.length && Uo[Uo.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) => L(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Ro(e) ? o.add(e) : e instanceof Element && d(e);
- if (kt()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => R(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Vo(e) ? o.add(e) : e instanceof Element && d(e);
+ if (jt()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -5294,11 +5294,11 @@ function Vo(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (kt()) for (let e of u) {
+ if (jt()) 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) => L(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Ro(e) ? o.add(e) : e instanceof Element && d(e);
- if (kt()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => R(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Vo(e) ? o.add(e) : e instanceof Element && d(e);
+ if (jt()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -5324,59 +5324,59 @@ function Vo(e, t) {
p.disconnect();
}
};
- return Bo.push(h), () => {
- if (p.disconnect(), kt()) for (let e of m) e.disconnect();
+ return Uo.push(h), () => {
+ if (p.disconnect(), jt()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = zo.get(e);
- t != null && (t === 1 ? (l(e, !1), zo.delete(e)) : zo.set(e, t - 1));
+ let t = Ho.get(e);
+ t != null && (t === 1 ? (l(e, !1), Ho.delete(e)) : Ho.set(e, t - 1));
}
- h === Bo[Bo.length - 1] ? (Bo.pop(), Bo.length && Bo[Bo.length - 1].observe()) : Bo.splice(Bo.indexOf(h), 1);
+ h === Uo[Uo.length - 1] ? (Uo.pop(), Uo.length && Uo[Uo.length - 1].observe()) : Uo.splice(Uo.indexOf(h), 1);
};
}
-function Ho(e) {
- let t = Bo[Bo.length - 1];
+function Go(e) {
+ let t = Uo[Uo.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 Uo = /* @__PURE__ */ new WeakMap();
-function Wo(e) {
+var Ko = /* @__PURE__ */ new WeakMap();
+function qo(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Go(e, t) {
- let n = Uo.get(e);
+function Jo(e, t) {
+ let n = Ko.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${Wo(t)}`;
+ return `${n.id}-option-${qo(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function Ko(e) {
- return en() ? e.altKey : e.ctrlKey;
+function Yo(e) {
+ return nn() ? e.altKey : e.ctrlKey;
}
-function qo(e, t) {
+function Xo(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 Jo = /* @__PURE__ */ new WeakMap();
-function Yo(e) {
- let t = or();
- return Jo.set(e, t), t;
+var Zo = /* @__PURE__ */ new WeakMap();
+function Qo(e) {
+ let t = cr();
+ return Zo.set(e, t), t;
}
-function Xo(e) {
- return Jo.get(e);
+function $o(e) {
+ return Zo.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var Zo = class {
+var es = 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 : Xo(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -5402,12 +5402,12 @@ var Zo = class {
height: e?.clientHeight ?? 0
};
}
-}, Qo = class {
+}, ts = 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 Zo(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 Zo(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 es(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 es(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -5447,14 +5447,14 @@ var Zo = 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 = Xo(this.ref, e);
if (t != null) {
- let e = qo(this.ref, t);
+ let e = Xo(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 = Xo(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -5488,7 +5488,7 @@ var Zo = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !Ya(t)) return this.getFirstKey();
+ if (t && !$a(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -5503,7 +5503,7 @@ var Zo = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !Ya(t)) return this.getLastKey();
+ if (t && !$a(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);
@@ -5526,184 +5526,184 @@ var Zo = class {
}
return null;
}
-}, $o = {};
-$o = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, ns = {};
+ns = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var es = {};
-es = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var rs = {};
+rs = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var ts = {};
-ts = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var is = {};
+is = { 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 ns = {};
-ns = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var as = {};
+as = { 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 rs = {};
-rs = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var os = {};
+os = { 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 is = {};
-is = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var ss = {};
+ss = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var as = {};
-as = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var cs = {};
+cs = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var os = {};
-os = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var ls = {};
+ls = { 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 ss = {};
-ss = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var us = {};
+us = { 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 cs = {};
-cs = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var ds = {};
+ds = { 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 ls = {};
-ls = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var fs = {};
+fs = { 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 us = {};
-us = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var ps = {};
+ps = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var ds = {};
-ds = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var ms = {};
+ms = { 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 fs = {};
-fs = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var hs = {};
+hs = { 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 ps = {};
-ps = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var gs = {};
+gs = { 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 ms = {};
-ms = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var _s = {};
+_s = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var hs = {};
-hs = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var vs = {};
+vs = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var gs = {};
-gs = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var ys = {};
+ys = { 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 _s = {};
-_s = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var bs = {};
+bs = { 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 vs = {};
-vs = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var xs = {};
+xs = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var ys = {};
-ys = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var Ss = {};
+Ss = { 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 bs = {};
-bs = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var Cs = {};
+Cs = { 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 xs = {};
-xs = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var ws = {};
+ws = { 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 Ss = {};
-Ss = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var Ts = {};
+Ts = { 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 Cs = {};
-Cs = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var Es = {};
+Es = { 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 ws = {};
-ws = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var Ds = {};
+Ds = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var Ts = {};
-Ts = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var Os = {};
+Os = { 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 Es = {};
-Es = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var ks = {};
+ks = { 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 Ds = {};
-Ds = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var As = {};
+As = { 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 Os = {};
-Os = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var js = {};
+js = { 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 ks = {};
-ks = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var Ms = {};
+Ms = { 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 As = {};
-As = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var Ns = {};
+Ns = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var js = {};
-js = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var Ps = {};
+Ps = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var Ms = {};
-Ms = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var Fs = {};
+Fs = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var Ns = {};
-Ns = {
- "ar-AE": $o,
- "bg-BG": es,
- "cs-CZ": ts,
- "da-DK": ns,
- "de-DE": rs,
- "el-GR": is,
- "en-US": as,
- "es-ES": os,
- "et-EE": ss,
- "fi-FI": cs,
- "fr-FR": ls,
- "he-IL": us,
- "hr-HR": ds,
- "hu-HU": fs,
- "it-IT": ps,
- "ja-JP": ms,
- "ko-KR": hs,
- "lt-LT": gs,
- "lv-LV": _s,
- "nb-NO": vs,
- "nl-NL": ys,
- "pl-PL": bs,
- "pt-BR": xs,
- "pt-PT": Ss,
- "ro-RO": Cs,
- "ru-RU": ws,
- "sk-SK": Ts,
- "sl-SI": Es,
- "sr-SP": Ds,
- "sv-SE": Os,
- "tr-TR": ks,
- "uk-UA": As,
- "zh-CN": js,
- "zh-TW": Ms
+var Is = {};
+Is = {
+ "ar-AE": ns,
+ "bg-BG": rs,
+ "cs-CZ": is,
+ "da-DK": as,
+ "de-DE": os,
+ "el-GR": ss,
+ "en-US": cs,
+ "es-ES": ls,
+ "et-EE": us,
+ "fi-FI": ds,
+ "fr-FR": fs,
+ "he-IL": ps,
+ "hr-HR": ms,
+ "hu-HU": hs,
+ "it-IT": gs,
+ "ja-JP": _s,
+ "ko-KR": vs,
+ "lt-LT": ys,
+ "lv-LV": bs,
+ "nb-NO": xs,
+ "nl-NL": Ss,
+ "pl-PL": Cs,
+ "pt-BR": ws,
+ "pt-PT": Ts,
+ "ro-RO": Es,
+ "ru-RU": Ds,
+ "sk-SK": Os,
+ "sl-SI": ks,
+ "sr-SP": As,
+ "sv-SE": js,
+ "tr-TR": Ms,
+ "uk-UA": Ns,
+ "zh-CN": Ps,
+ "zh-TW": Fs
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var Ps = 500;
-function Fs(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Ps, accessibilityDescription: s } = e, c = (0, _.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = na(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = ca({
+var Ls = 500;
+function Rs(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Ls, accessibilityDescription: s } = e, c = (0, b.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = aa(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = da({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -5711,12 +5711,12 @@ function Fs(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), I(e.target).activeElement !== e.target && gt(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), L(e.target).activeElement !== e.target && vt(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 = xt(e.target);
+ let t = Ct(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -5731,12 +5731,12 @@ function Fs(e) {
});
}
});
- return { longPressProps: V(f, ro(a && !t ? s : void 0)) };
+ return { longPressProps: H(f, so(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function Is(e) {
- let { onContextMenu: t } = e, n = (0, _.useRef)(!1), { longPressProps: r } = Fs({
+function zs(e) {
+ let { onContextMenu: t } = e, n = (0, b.useRef)(!1), { longPressProps: r } = Rs({
onLongPressStart() {
n.current = !1;
},
@@ -5748,7 +5748,7 @@ function Is(e) {
});
}
});
- return t ? { contextMenuProps: V($t() ? r : {}, {
+ return t ? { contextMenuProps: H(tn() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -5759,7 +5759,7 @@ function Is(e) {
});
},
onKeyDown(e) {
- if (Xt() && e.ctrlKey && e.key === "Enter") {
+ if (Qt() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -5779,13 +5779,13 @@ function Is(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var Ls = /* @__PURE__ */ new WeakMap();
-function Rs(e) {
+var Bs = /* @__PURE__ */ new WeakMap();
+function Vs(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, _.useEffect)(() => !n || r === null ? void 0 : Et(jt(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 || Ls.get(t.current);
+ (0, b.useEffect)(() => !n || r === null ? void 0 : Ot(Nt(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 || Bs.get(t.current);
i && i();
}, !0), [
n,
@@ -5795,14 +5795,14 @@ function Rs(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function zs(e, t, n) {
+function Hs(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
- (0, _.useEffect)(() => {
- n && n.current && Ls.set(n.current, t.close);
+ (0, b.useEffect)(() => {
+ n && n.current && Bs.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = or();
+ let o = cr();
return {
triggerProps: {
"aria-haspopup": a,
@@ -5815,14 +5815,14 @@ function zs(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function Bs(e) {
+function Us(e) {
return e && e.__esModule ? e.default : e;
}
-function Vs(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = or(), { triggerProps: s, overlayProps: c } = zs({ type: r }, t, n), l = (e, n, r = "first") => {
+function Ws(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = cr(), { triggerProps: s, overlayProps: c } = Hs({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = Dr({
+ }, { keyboardProps: u } = kr({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -5834,7 +5834,7 @@ function Vs(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = Vi(Bs(Ns), "@react-aria/menu"), { longPressProps: f } = Fs({
+ }), d = Ui(Us(Is), "@react-aria/menu"), { longPressProps: f } = Rs({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -5846,24 +5846,24 @@ function Vs(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (gt(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (vt(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (gt(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (vt(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = Is({ onContextMenu(e) {
+ let { contextMenuProps: m } = zs({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
y: n.y + e.y
}), t.open();
} });
- (0, _.useEffect)(() => {
+ (0, b.useEffect)(() => {
if (t.isOpen && a === "contextMenu") {
let e = (e) => {
- (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && R(e) === document.body && t.close();
+ (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && z(e) === document.body && t.close();
};
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
}
@@ -5898,13 +5898,13 @@ function Vs(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var Hs = 1e3;
-function Us(e) {
- let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, _.useRef)({
+var Gs = 1e3;
+function Ks(e) {
+ let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, b.useRef)({
search: "",
timeout: void 0
});
- return (0, _.useEffect)(() => {
+ return (0, b.useEffect)(() => {
let e = i.current.timeout;
return () => {
clearTimeout(e);
@@ -5918,12 +5918,12 @@ function Us(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, Hs);
+ }, Gs);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = Ws(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !L(e.currentTarget, R(e)) || i.current.search.length === 0 && a === " ")) {
+ let a = qs(e.key);
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !R(e.currentTarget, z(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();
@@ -5934,36 +5934,36 @@ function Us(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, Hs);
+ }, Gs);
}
} : void 0
} };
}
-function Ws(e) {
+function qs(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function Gs(e, t) {
- let n = (0, _.useRef)(!0), r = (0, _.useRef)(null);
- z(() => (n.current = !0, () => {
+function Js(e, t) {
+ let n = (0, b.useRef)(!0), r = (0, b.useRef)(null);
+ V(() => (n.current = !0, () => {
n.current = !1;
- }), []), z(() => {
+ }), []), V(() => {
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 Ks(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 } = Di(), v = ln(), y = (e, n, i) => {
+function Ys(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 } = ki(), _ = dn(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !Ko(e)) {
- (0, Vr.flushSync)(() => {
+ if (t.isLink(n) && m === "selection" && l && !Yo(e)) {
+ (0, Ur.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = qo(r, n), o = t.getItemProps(n);
+ let a = Xo(r, n), o = t.getItemProps(n);
if (a) {
- v.open(a, e, o.href, o.routerOptions);
+ _.open(a, e, o.href, o.routerOptions);
return;
}
return !1;
@@ -5973,17 +5973,17 @@ function Ks(e) {
t.extendSelection(n);
return;
}
- if (l && !Ko(e)) {
+ if (l && !Yo(e)) {
t.replaceSelection(n);
return;
}
}
return !1;
- }, b = (e) => {
+ }, y = (e) => {
if (n.getKeyBelow) {
let r = t.focusedKey == null ? n.getFirstKey?.() : n.getKeyBelow?.(t.focusedKey);
if (r == null && a && (r = n.getFirstKey?.(t.focusedKey)), r != null) {
- y(e, r);
+ v(e, r);
return;
}
}
@@ -5992,7 +5992,7 @@ function Ks(e) {
if (n.getKeyAbove) {
let r = t.focusedKey == null ? n.getLastKey?.() : n.getKeyAbove?.(t.focusedKey);
if (r == null && a && (r = n.getLastKey?.(t.focusedKey)), r != null) {
- y(e, r);
+ v(e, r);
return;
}
}
@@ -6000,9 +6000,9 @@ function Ks(e) {
}, S = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, ui(e));
+ let r = n.getFirstKey(t.focusedKey, fi(e));
if (t.setFocusedKey(r), r != null) {
- if (ui(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (fi(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -6017,7 +6017,7 @@ function Ks(e) {
if (n.getKeyLeftOf) {
let r = t.focusedKey == null ? n.getFirstKey?.() : n.getKeyLeftOf?.(t.focusedKey);
if (r == null && a && (r = g === "rtl" ? n.getFirstKey?.(t.focusedKey) : n.getLastKey?.(t.focusedKey)), r != null) {
- y(e, r, g === "rtl" ? "first" : "last");
+ v(e, r, g === "rtl" ? "first" : "last");
return;
}
}
@@ -6026,7 +6026,7 @@ function Ks(e) {
if (n.getKeyRightOf) {
let r = t.focusedKey == null ? n.getFirstKey?.() : n.getKeyRightOf?.(t.focusedKey);
if (r == null && a && (r = g === "rtl" ? n.getLastKey?.(t.focusedKey) : n.getFirstKey?.(t.focusedKey)), r != null) {
- y(e, r, g === "rtl" ? "last" : "first");
+ v(e, r, g === "rtl" ? "last" : "first");
return;
}
}
@@ -6034,9 +6034,9 @@ function Ks(e) {
}, T = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, ui(e));
+ let r = n.getLastKey(t.focusedKey, fi(e));
if (t.setFocusedKey(r), r != null) {
- if (ui(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (fi(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -6050,13 +6050,13 @@ function Ks(e) {
}, E = (e) => {
if (n.getKeyPageBelow && t.focusedKey != null) {
let r = n.getKeyPageBelow(t.focusedKey);
- if (r != null) return y(e, r);
+ if (r != null) return v(e, r);
}
return !1;
}, D = (e) => {
if (n.getKeyPageAbove && t.focusedKey != null) {
let r = n.getKeyPageAbove(t.focusedKey);
- if (r != null) return y(e, r);
+ if (r != null) return v(e, r);
}
return !1;
}, O = () => {
@@ -6073,59 +6073,59 @@ function Ks(e) {
return !1;
}, A = () => {
if (!f && r.current) {
- let e = Va(r.current, { tabbable: !0 }), t, n;
+ let e = Ga(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = At();
- t && (!Mt(t) || i && !Vt(i)) && gt(t);
+ let i = Mt();
+ t && (!Pt(t) || i && !B(i)) && vt(t);
}
return {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
};
- }, ee = () => (!f && r.current && r.current.focus(), {
+ }, j = () => (!f && r.current && r.current.focus(), {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
- }), j = (e, t) => ({
- [Xt() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ }), M = (e, t) => ({
+ [Qt() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [Xt() ? e + "+Alt" : e + "+Control"]: t,
+ [Qt() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: te } = Dr({
+ }), { keyboardProps: N } = kr({
shortcuts: {
- ...j("ArrowDown", b),
- ...j("ArrowUp", x),
- ...j("ArrowLeft", C),
- ...j("ArrowRight", w),
- ...j("PageDown", E),
- ...j("PageUp", D)
+ ...M("ArrowDown", y),
+ ...M("ArrowUp", x),
+ ...M("ArrowLeft", C),
+ ...M("ArrowRight", w),
+ ...M("PageDown", E),
+ ...M("PageUp", D)
},
allowRepeats: !0
- }), { keyboardProps: ne } = Dr({ shortcuts: {
- ...j("Home", S),
- ...j("End", T),
+ }), { keyboardProps: ee } = kr({ shortcuts: {
+ ...M("Home", S),
+ ...M("End", T),
"Mod+A": O,
Escape: k,
Tab: A,
- "Tab+Shift": ee
- } }), re = (0, _.useRef)({
+ "Tab+Shift": j
+ } }), te = (0, b.useRef)({
top: 0,
left: 0
});
- hi(p, "scroll", () => {
- re.current = {
+ _i(p, "scroll", () => {
+ te.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
};
});
- let M = (e) => {
+ let P = (e) => {
if (t.isFocused) {
- L(e.currentTarget, R(e)) || t.setFocused(!1);
+ R(e.currentTarget, z(e)) || t.setFocused(!1);
return;
}
- if (!L(e.currentTarget, R(e))) return;
- let i = Un();
+ if (!R(e.currentTarget, z(e))) return;
+ let i = Gn();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -6134,34 +6134,34 @@ function Ks(e) {
else if (t.focusedKey == null) {
let r = e.relatedTarget;
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 = re.current.top, p.current.scrollLeft = re.current.left);
+ } else p.current && (p.current.scrollTop = te.current.top, p.current.scrollLeft = te.current.left);
if (t.focusedKey != null && p.current) {
- let e = qo(r, t.focusedKey);
- e instanceof HTMLElement && (!Mt(e) && !d && gt(e), (i === "keyboard" || h && i === "virtual") && eo(e, { containingElement: r.current }));
+ let e = Xo(r, t.focusedKey);
+ e instanceof HTMLElement && (!Pt(e) && !d && vt(e), (i === "keyboard" || h && i === "virtual") && io(e, { containingElement: r.current }));
}
- }, ie = (e) => {
- L(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
- }, ae = (0, _.useRef)(!1);
- hi(r, ai, d ? (e) => {
+ }, ne = (e) => {
+ R(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ }, re = (0, b.useRef)(!1);
+ _i(r, si, d ? (e) => {
let { detail: n } = e;
- e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (ae.current = !0);
+ e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (re.current = !0);
} : void 0);
- let oe = n.getFirstKey?.() ?? null;
- Gs(() => {
- if (ae.current) {
- if (oe == null) {
- let e = At();
- oi(r.current), ci(e, null), t.collection.size > 0 && (ae.current = !1);
- } else t.setFocusedKey(oe), ae.current = !1;
- }
- }, [oe, t.collection.size]), Gs(() => {
- t.collection.size > 0 && (ae.current = !1);
- }, [t.focusedKey]), hi(r, ii, d ? (e) => {
+ let ie = n.getFirstKey?.() ?? null;
+ Js(() => {
+ if (re.current) {
+ if (ie == null) {
+ let e = Mt();
+ ci(r.current), ui(e, null), t.collection.size > 0 && (re.current = !1);
+ } else t.setFocusedKey(ie), re.current = !1;
+ }
+ }, [ie, t.collection.size]), Js(() => {
+ t.collection.size > 0 && (re.current = !1);
+ }, [t.focusedKey]), _i(r, oi, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
- let se = (0, _.useRef)(i), ce = (0, _.useRef)(!1);
- (0, _.useEffect)(() => {
- if (se.current) {
+ let ae = (0, b.useRef)(i), oe = (0, b.useRef)(!1);
+ (0, b.useEffect)(() => {
+ if (ae.current) {
let e = null;
i === "first" && (e = n.getFirstKey?.() ?? null), i === "last" && (e = n.getLastKey?.() ?? null);
let a = t.selectedKeys;
@@ -6171,53 +6171,53 @@ function Ks(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && $n(r.current), t.collection.size > 0 && (se.current = !1, ce.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && tr(r.current), t.collection.size > 0 && (ae.current = !1, oe.current = !0);
}
});
- let le = (0, _.useRef)(t.focusedKey), ue = (0, _.useRef)(null);
- (0, _.useEffect)(() => {
- if (t.isFocused && t.focusedKey != null && (t.focusedKey !== le.current || ce.current) && p.current && r.current) {
- let e = Un(), n = qo(r, t.focusedKey);
+ let se = (0, b.useRef)(t.focusedKey), ce = (0, b.useRef)(null);
+ (0, b.useEffect)(() => {
+ if (t.isFocused && t.focusedKey != null && (t.focusedKey !== se.current || oe.current) && p.current && r.current) {
+ let e = Gn(), n = Xo(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
- (e === "keyboard" || ce.current) && (ue.current && cancelAnimationFrame(ue.current), ue.current = requestAnimationFrame(() => {
- p.current && (Qa(p.current, n), e !== "virtual" && eo(n, { containingElement: r.current }));
+ (e === "keyboard" || oe.current) && (ce.current && cancelAnimationFrame(ce.current), ce.current = requestAnimationFrame(() => {
+ p.current && (no(p.current, n), e !== "virtual" && io(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && le.current != null && r.current && $n(r.current), le.current = t.focusedKey, ce.current = !1;
- }), (0, _.useEffect)(() => () => {
- ue.current && cancelAnimationFrame(ue.current);
- }, []), hi(r, "react-aria-focus-scope-restore", (e) => {
+ !d && t.isFocused && t.focusedKey == null && se.current != null && r.current && tr(r.current), se.current = t.focusedKey, oe.current = !1;
+ }), (0, b.useEffect)(() => () => {
+ ce.current && cancelAnimationFrame(ce.current);
+ }, []), _i(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
- let de = {
- ...V(ne, te),
- onFocus: M,
- onBlur: ie,
+ let le = {
+ ...H(ee, N),
+ onFocus: P,
+ onBlur: ne,
onMouseDown(e) {
- p.current === R(e) && e.preventDefault();
+ p.current === z(e) && e.preventDefault();
}
- }, { typeSelectProps: fe } = Us({
+ }, { typeSelectProps: ue } = Ks({
keyboardDelegate: n,
selectionManager: t
});
- u || (de = V(fe, de));
- let pe;
- d || (pe = t.focusedKey == null ? 0 : -1);
- let me = Yo(t.collection);
- return { collectionProps: V(de, {
- tabIndex: pe,
- "data-collection": me
+ u || (le = H(ue, le));
+ let de;
+ d || (de = t.focusedKey == null ? 0 : -1);
+ let fe = Qo(t.collection);
+ return { collectionProps: H(le, {
+ tabIndex: de,
+ "data-collection": fe
}) };
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function qs(e, t) {
+function Xs(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function Js(e) {
- return Ys(e, 0);
+function Zs(e) {
+ return Qs(e, 0);
}
-function Ys(e, t) {
+function Qs(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -6225,96 +6225,96 @@ function Ys(e, t) {
n++;
}
}
-function Xs(e, t, n) {
+function $s(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...Zs(e, t), t], i = [...Zs(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...ec(e, t), t], i = [...ec(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 Zs(e, t) {
+function ec(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 Qs = /* @__PURE__ */ new WeakMap();
-function $s(e) {
- let t = Qs.get(e);
+var tc = /* @__PURE__ */ new WeakMap();
+function nc(e) {
+ let t = tc.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(Xs(i, e)) : i.type === "item" && n++;
};
- return r(e), Qs.set(e, n), n;
+ return r(e), tc.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var ec = /* @__PURE__ */ new Map();
-function tc(e) {
- let { locale: t } = Di(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (ec.has(n)) return ec.get(n);
+var rc = /* @__PURE__ */ new Map();
+function ic(e) {
+ let { locale: t } = ki(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (rc.has(n)) return rc.get(n);
let r = new Intl.Collator(t, e);
- return ec.set(n, r), r;
+ return rc.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-function nc({ children: e }) {
- let t = (0, _.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ _.createElement(ta.Provider, { value: t }, e);
+function ac({ children: e }) {
+ let t = (0, b.useMemo)(() => ({ register: () => {} }), []);
+ return /*#__PURE__*/ b.createElement(ia.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var rc = /*#__PURE__*/ (0, _.createContext)({});
-function ic(e) {
- let { getContainer: t } = e, { getContainer: n } = ac();
- return /*#__PURE__*/ _.createElement(rc.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var oc = /*#__PURE__*/ (0, b.createContext)({});
+function sc(e) {
+ let { getContainer: t } = e, { getContainer: n } = cc();
+ return /*#__PURE__*/ b.createElement(oc.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function ac() {
- return (0, _.useContext)(rc) ?? {};
+function cc() {
+ return (0, b.useContext)(oc) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var oc = /*#__PURE__*/ _.createContext(null);
-function sc(e) {
- let t = Tn(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, _.useState)(!1), o = (0, _.useMemo)(() => ({
+var lc = /*#__PURE__*/ b.createContext(null);
+function uc(e) {
+ let t = Dn(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, b.useState)(!1), o = (0, b.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = ac();
+ }), [i, a]), { getContainer: s } = cc();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ _.createElement(xa, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ b.createElement(Ta, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ _.createElement(oc.Provider, { value: o }, /*#__PURE__*/ _.createElement(nc, null, /*#__PURE__*/ _.createElement(Ar.Provider, { value: null }, c))), /*#__PURE__*/ Vr.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ b.createElement(lc.Provider, { value: o }, /*#__PURE__*/ b.createElement(ac, null, /*#__PURE__*/ b.createElement(Mr.Provider, { value: null }, c))), /*#__PURE__*/ Ur.createPortal(c, n);
}
-function cc() {
- let e = (0, _.useContext)(oc)?.setContain;
- z(() => {
+function dc() {
+ let e = (0, b.useContext)(lc)?.setContain;
+ V(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function lc(e, t) {
- let { role: n = "dialog" } = e, r = cr();
+function fc(e, t) {
+ let { role: n = "dialog" } = e, r = ur();
r = e["aria-label"] ? void 0 : r;
- let i = cr();
+ let i = ur();
i = n === "alertdialog" && !e["aria-describedby"] ? i : void 0;
- let a = (0, _.useRef)(!1);
- (0, _.useEffect)(() => {
- if (t.current && !Mt(t.current)) {
- $n(t.current);
+ let a = (0, b.useRef)(!1);
+ (0, b.useEffect)(() => {
+ if (t.current && !Pt(t.current)) {
+ tr(t.current);
let e = setTimeout(() => {
- (At() === t.current || At() === document.body) && (a.current = !0, t.current && (t.current.blur(), $n(t.current)), a.current = !1);
+ (Mt() === t.current || Mt() === document.body) && (a.current = !0, t.current && (t.current.blur(), tr(t.current)), a.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t]), cc(), (0, _.useRef)(!1), (0, _.useEffect)(() => {});
+ }, [t]), dc(), (0, b.useRef)(!1), (0, b.useEffect)(() => {});
let o = e["aria-describedby"] ?? i;
return {
dialogProps: {
- ...H(e, { labelable: !0 }),
+ ...Xi(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? r,
@@ -6329,23 +6329,23 @@ function lc(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function uc(e = {}) {
- let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, _.useRef)({
+function pc(e = {}) {
+ let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, b.useRef)({
isFocused: !1,
- isFocusVisible: t || Hn()
- }), [a, o] = (0, _.useState)(!1), [s, c] = (0, _.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, _.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, _.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = Hn(), o(e), l();
+ isFocusVisible: t || Wn()
+ }), [a, o] = (0, b.useState)(!1), [s, c] = (0, b.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, b.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, b.useCallback)((e) => {
+ i.current.isFocused = e, i.current.isFocusVisible = Wn(), o(e), l();
}, [l]);
- qn((e) => {
+ Yn((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = pr({
+ let { focusProps: d } = hr({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = Oo({
+ }), { focusWithinProps: f } = Mo({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -6357,42 +6357,42 @@ function uc(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function dc(e = {}) {
- let { locale: t } = Di();
- return (0, _.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
+function mc(e = {}) {
+ let { locale: t } = ki();
+ return (0, b.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var fc = !1, pc = 0;
-function mc() {
- fc = !0, setTimeout(() => {
- fc = !1;
+var hc = !1, gc = 0;
+function _c() {
+ hc = !0, setTimeout(() => {
+ hc = !1;
}, 500);
}
-function hc(e) {
- e.pointerType === "touch" && mc();
+function vc(e) {
+ e.pointerType === "touch" && _c();
}
-function gc() {
- let e = I(null);
- if (e !== void 0) return pc === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", hc), pc++, () => {
- pc--, !(pc > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", hc);
+function yc() {
+ let e = L(null);
+ if (e !== void 0) return gc === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", vc), gc++, () => {
+ gc--, !(gc > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", vc);
};
}
-function _c(e) {
- let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, _.useState)(!1), s = (0, _.useRef)({
+function bc(e) {
+ let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, b.useState)(!1), s = (0, b.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, _.useEffect)(gc, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = na(), { hoverProps: u, triggerHoverEnd: d } = (0, _.useMemo)(() => {
+ (0, b.useEffect)(yc, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = aa(), { hoverProps: u, triggerHoverEnd: d } = (0, b.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !L(e.currentTarget, R(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !R(e.currentTarget, z(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(I(R(e)), "pointerover", (e) => {
- s.isHovered && s.target && !L(s.target, R(e)) && a(e, e.pointerType);
+ s.target = l, c(L(z(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !R(s.target, z(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -6407,9 +6407,9 @@ function _c(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- fc && t.pointerType === "mouse" || e(t, t.pointerType);
+ hc && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && L(e.currentTarget, R(e)) && a(e, e.pointerType);
+ !i && R(e.currentTarget, z(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -6423,7 +6423,7 @@ function _c(e) {
c,
l
]);
- return (0, _.useEffect)(() => {
+ return (0, b.useEffect)(() => {
i && d({ currentTarget: s.target }, s.pointerType);
}, [i]), {
hoverProps: u,
@@ -6432,22 +6432,22 @@ function _c(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function vc(e) {
- let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, _.useRef)({
+function xc(e) {
+ let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, b.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = mi((e) => {
- n && yc(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = mi((e) => {
+ }), o = gi((e) => {
+ n && Sc(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = gi((e) => {
n && n(e);
});
- (0, _.useEffect)(() => {
+ (0, b.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = I(n);
+ let n = t.current, i = L(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && yc(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && Sc(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);
@@ -6455,22 +6455,22 @@ function vc(e) {
}
}, [t, r]);
}
-function yc(e, t) {
+function Sc(e, t) {
if (e.button > 0) return !1;
- let n = R(e);
+ let n = z(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !L(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !R(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 bc(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = tc({
+function Cc(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = ic({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, _.useMemo)(() => a || new Qo({
+ }), l = t.disabledBehavior, u = (0, b.useMemo)(() => a || new ts({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -6487,7 +6487,7 @@ function bc(e) {
c,
l,
s
- ]), { collectionProps: d } = Ks({
+ ]), { collectionProps: d } = Ys({
...e,
ref: i,
selectionManager: t,
@@ -6497,11 +6497,11 @@ function bc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function xc(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 = ln();
- t = or(t);
+function wc(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 = dn();
+ t = cr(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && Ko(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && Yo(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -6512,11 +6512,11 @@ function xc(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 && (ui(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 && (fi(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
- (0, _.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? oi(i.current) : s ? s() : At() !== i.current && i.current && $n(i.current));
+ (0, b.useEffect)(() => {
+ r === n.focusedKey && n.isFocused && (o ? ci(i.current) : s ? s() : Mt() !== i.current && i.current && tr(i.current));
}, [
i,
r,
@@ -6529,38 +6529,38 @@ function xc(e) {
!o && !c ? m = {
tabIndex: r === n.focusedKey ? 0 : -1,
onFocus(e) {
- R(e) === i.current && n.setFocusedKey(r);
+ z(e) === i.current && n.setFocusedKey(r);
}
} : c && (m.onMouseDown = (e) => {
e.preventDefault();
- }), (0, _.useEffect)(() => {
+ }), (0, b.useEffect)(() => {
c && n.focusedKey === r && n.setFocusedKey(null);
}, [
n,
c,
r
]);
- let h = n.isLink(r) && d === "override", g = l && e.UNSTABLE_itemBehavior === "action", v = n.isLink(r) && d !== "selection" && d !== "none", y = !c && n.canSelectItem(r) && !h && !g, b = (l || v) && !c, x = b && (n.selectionBehavior === "replace" ? !y : !y || n.isEmpty), S = b && y && n.selectionBehavior === "replace", C = x || S, w = (0, _.useRef)(null), T = C && y, E = (0, _.useRef)(!1), D = (0, _.useRef)(!1), O = n.getItemProps(r), k = (e) => {
- l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), v && i.current && f.open(i.current, e, O.href, O.routerOptions);
+ let h = n.isLink(r) && d === "override", g = l && e.UNSTABLE_itemBehavior === "action", _ = n.isLink(r) && d !== "selection" && d !== "none", v = !c && n.canSelectItem(r) && !h && !g, y = (l || _) && !c, x = y && (n.selectionBehavior === "replace" ? !v : !v || n.isEmpty), S = y && v && n.selectionBehavior === "replace", C = x || S, w = (0, b.useRef)(null), T = C && v, E = (0, b.useRef)(!1), D = (0, b.useRef)(!1), O = n.getItemProps(r), k = (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 || Cc(e.key)) && p(e);
+ w.current = e.pointerType, E.current = T, e.pointerType === "keyboard" && (!C || Ec(e.key)) && p(e);
}, u ? (A.onPressUp = x ? void 0 : (e) => {
- e.pointerType === "mouse" && y && p(e);
+ e.pointerType === "mouse" && v && p(e);
}, A.onPress = x ? k : (e) => {
- e.pointerType !== "keyboard" && e.pointerType !== "mouse" && y && p(e);
+ e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : A.onPress = (e) => {
if (x || S && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !Sc(e.key)) return;
+ if (e.pointerType === "keyboard" && !Tc(e.key)) return;
k(e);
- } else e.pointerType !== "keyboard" && y && p(e);
+ } else e.pointerType !== "keyboard" && v && p(e);
}) : (A.onPressStart = (e) => {
- w.current = e.pointerType, E.current = T, D.current = x, y && (e.pointerType === "mouse" && !x || e.pointerType === "keyboard" && (!b || Cc(e.key))) && p(e);
+ w.current = e.pointerType, E.current = T, D.current = x, v && (e.pointerType === "mouse" && !x || e.pointerType === "keyboard" && (!y || Ec(e.key))) && p(e);
}, A.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && C && Sc(e.key) || e.pointerType === "mouse" && D.current) && (C ? k(e) : y && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && C && Tc(e.key) || e.pointerType === "mouse" && D.current) && (C ? k(e) : v && p(e));
});
- let ee = Xo(n.collection);
- if (m["data-collection"] = ee, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = V(A, {
+ let j = $o(n.collection);
+ if (m["data-collection"] = j, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = H(A, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
},
@@ -6574,82 +6574,82 @@ function xc(e) {
"onPress",
"onPressUp",
"onClick"
- ]) O[e] && (A[e] = er(A[e], O[e]));
- let { pressProps: j, isPressed: te } = ca(A), ne = S ? (e) => {
+ ]) O[e] && (A[e] = nr(A[e], O[e]));
+ let { pressProps: M, isPressed: N } = da(A), ee = S ? (e) => {
w.current === "mouse" && (e.stopPropagation(), e.preventDefault(), k(e));
- } : void 0, { longPressProps: re } = Fs({
+ } : void 0, { longPressProps: te } = Rs({
isDisabled: !T,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
}
- }), M = (e) => {
+ }), P = (e) => {
w.current === "touch" && E.current && e.preventDefault();
- }, ie = d !== "none" && n.isLink(r) ? (e) => {
- un.isOpening || e.preventDefault();
- } : void 0, ae = V(m, y || x || o && !c ? j : {}, T ? re : {}, {
- onDoubleClick: ne,
- onDragStartCapture: M,
- onClick: ie,
+ }, ne = d !== "none" && n.isLink(r) ? (e) => {
+ fn.isOpening || e.preventDefault();
+ } : void 0, re = H(m, v || x || o && !c ? M : {}, T ? te : {}, {
+ onDoubleClick: ee,
+ onDragStartCapture: P,
+ onClick: ne,
id: t
- }, o ? { onMouseDown: (e) => e.preventDefault() } : void 0), oe = (e) => {
+ }, o ? { onMouseDown: (e) => e.preventDefault() } : void 0), ie = (e) => {
let t = e;
for (; t && t !== i.current;) {
let e = t.getAttribute("data-collection");
- if (e != null) return e !== ee;
+ if (e != null) return e !== j;
t = t.parentElement;
}
- return Vt(e);
- }, se = ae.onPointerDown;
- ae.onPointerDown = (e) => {
- let t = R(e);
- if (t && t !== i.current && oe(t)) {
+ return B(e);
+ }, ae = re.onPointerDown;
+ re.onPointerDown = (e) => {
+ let t = z(e);
+ if (t && t !== i.current && ie(t)) {
e.stopPropagation();
return;
}
- se?.(e);
+ ae?.(e);
};
- let ce = ae.onMouseDown;
- return ae.onMouseDown = (e) => {
- let t = R(e);
- if (t && t !== i.current && oe(t)) {
+ let oe = re.onMouseDown;
+ return re.onMouseDown = (e) => {
+ let t = z(e);
+ if (t && t !== i.current && ie(t)) {
e.stopPropagation();
return;
}
- ce?.(e);
+ oe?.(e);
}, {
- itemProps: ae,
- isPressed: te,
+ itemProps: re,
+ isPressed: N,
isSelected: n.isSelected(r),
isFocused: n.isFocused && n.focusedKey === r,
isDisabled: c,
- allowsSelection: y,
+ allowsSelection: v,
hasAction: C
};
}
-function Sc(e) {
+function Tc(e) {
return e === "Enter";
}
-function Cc(e) {
+function Ec(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function wc(e, t, n) {
- let r = H(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function Dc(e, t, n) {
+ let r = Xi(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 } = bc({
+ let { listProps: s } = Cc({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = Oo({
+ }), { focusWithinProps: c } = Mo({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = or(e.id);
- Uo.set(t, {
+ }), l = cr(e.id);
+ Ko.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -6659,24 +6659,24 @@ function wc(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = Eo({
+ let { labelProps: u, fieldProps: d } = Ao({
...e,
id: l,
labelElementType: "span"
});
return {
labelProps: u,
- listBoxProps: V(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
+ listBoxProps: H(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
role: "listbox",
"aria-orientation": a,
- ...V(d, s)
+ ...H(d, s)
})
};
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Tc(e) {
- let { heading: t, "aria-label": n } = e, r = or();
+function Oc(e) {
+ let { heading: t, "aria-label": n } = e, r = cr();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -6695,8 +6695,8 @@ function Tc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function Ec(e, t, n) {
- let { key: r } = e, i = Uo.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 = cr(), f = cr(), p = {
+function kc(e, t, n) {
+ let { key: r } = e, i = Ko.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 = ur(), f = ur(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -6706,9 +6706,9 @@ function Ec(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"] = $s(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = nc(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Go(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = xc({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Jo(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = wc({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -6717,28 +6717,28 @@ function Ec(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? er(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? nr(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = _c({
+ }), { hoverProps: S } = bc({
isDisabled: a || !c,
onHoverStart() {
- Hn() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ Wn() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = H(m?.props);
+ }), C = Xi(m?.props);
delete C.id;
- let w = pn(m?.props);
+ let w = hn(m?.props);
return {
optionProps: {
...p,
- ...V(C, _, S, w),
+ ...H(C, _, S, w),
id: g
},
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && Hn(),
+ isFocusVisible: y && t.selectionManager.isFocused && Wn(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -6748,15 +6748,15 @@ function Ec(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function Dc() {
+function Ac() {
return window.ResizeObserver !== void 0;
}
-function Oc(e) {
- let { ref: t, box: n, onResize: r } = e, i = mi(r);
- (0, _.useEffect)(() => {
+function jc(e) {
+ let { ref: t, box: n, onResize: r } = e, i = gi(r);
+ (0, b.useEffect)(() => {
let e = t?.current;
if (e) {
- if (Dc()) {
+ if (Ac()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -6772,189 +6772,189 @@ function Oc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var kc = {};
-kc = { dismiss: "تجاهل" };
+var Mc = {};
+Mc = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var Ac = {};
-Ac = { dismiss: "Отхвърляне" };
+var Nc = {};
+Nc = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var jc = {};
-jc = { dismiss: "Odstranit" };
+var Pc = {};
+Pc = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var Mc = {};
-Mc = { dismiss: "Luk" };
+var Fc = {};
+Fc = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var Nc = {};
-Nc = { dismiss: "Schließen" };
+var Ic = {};
+Ic = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var Pc = {};
-Pc = { dismiss: "Απόρριψη" };
+var Lc = {};
+Lc = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var Fc = {};
-Fc = { dismiss: "Dismiss" };
+var Rc = {};
+Rc = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var Ic = {};
-Ic = { dismiss: "Descartar" };
+var zc = {};
+zc = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var Lc = {};
-Lc = { dismiss: "Lõpeta" };
+var Bc = {};
+Bc = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var Rc = {};
-Rc = { dismiss: "Hylkää" };
+var Vc = {};
+Vc = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var zc = {};
-zc = { dismiss: "Rejeter" };
+var Hc = {};
+Hc = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var Bc = {};
-Bc = { dismiss: "התעלם" };
+var Uc = {};
+Uc = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var Vc = {};
-Vc = { dismiss: "Odbaci" };
+var Wc = {};
+Wc = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var Hc = {};
-Hc = { dismiss: "Elutasítás" };
+var Gc = {};
+Gc = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var Uc = {};
-Uc = { dismiss: "Ignora" };
+var Kc = {};
+Kc = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var Wc = {};
-Wc = { dismiss: "閉じる" };
+var qc = {};
+qc = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var Gc = {};
-Gc = { dismiss: "무시" };
+var Jc = {};
+Jc = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var Kc = {};
-Kc = { dismiss: "Atmesti" };
+var Yc = {};
+Yc = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var qc = {};
-qc = { dismiss: "Nerādīt" };
+var Xc = {};
+Xc = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var Jc = {};
-Jc = { dismiss: "Lukk" };
+var Zc = {};
+Zc = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var Yc = {};
-Yc = { dismiss: "Negeren" };
+var Qc = {};
+Qc = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var Xc = {};
-Xc = { dismiss: "Zignoruj" };
+var $c = {};
+$c = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var Zc = {};
-Zc = { dismiss: "Descartar" };
+var el = {};
+el = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var Qc = {};
-Qc = { dismiss: "Dispensar" };
+var tl = {};
+tl = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var $c = {};
-$c = { dismiss: "Revocare" };
+var nl = {};
+nl = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var el = {};
-el = { dismiss: "Пропустить" };
+var rl = {};
+rl = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var tl = {};
-tl = { dismiss: "Zrušiť" };
+var il = {};
+il = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var nl = {};
-nl = { dismiss: "Opusti" };
+var al = {};
+al = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var rl = {};
-rl = { dismiss: "Odbaci" };
+var ol = {};
+ol = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var il = {};
-il = { dismiss: "Avvisa" };
+var sl = {};
+sl = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var al = {};
-al = { dismiss: "Kapat" };
+var cl = {};
+cl = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var ol = {};
-ol = { dismiss: "Скасувати" };
+var ll = {};
+ll = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var sl = {};
-sl = { dismiss: "取消" };
+var ul = {};
+ul = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var cl = {};
-cl = { dismiss: "關閉" };
+var dl = {};
+dl = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var ll = {};
-ll = {
- "ar-AE": kc,
- "bg-BG": Ac,
- "cs-CZ": jc,
- "da-DK": Mc,
- "de-DE": Nc,
- "el-GR": Pc,
- "en-US": Fc,
- "es-ES": Ic,
- "et-EE": Lc,
- "fi-FI": Rc,
- "fr-FR": zc,
- "he-IL": Bc,
- "hr-HR": Vc,
- "hu-HU": Hc,
- "it-IT": Uc,
- "ja-JP": Wc,
- "ko-KR": Gc,
- "lt-LT": Kc,
- "lv-LV": qc,
- "nb-NO": Jc,
- "nl-NL": Yc,
- "pl-PL": Xc,
- "pt-BR": Zc,
- "pt-PT": Qc,
- "ro-RO": $c,
- "ru-RU": el,
- "sk-SK": tl,
- "sl-SI": nl,
- "sr-SP": rl,
- "sv-SE": il,
- "tr-TR": al,
- "uk-UA": ol,
- "zh-CN": sl,
- "zh-TW": cl
+var fl = {};
+fl = {
+ "ar-AE": Mc,
+ "bg-BG": Nc,
+ "cs-CZ": Pc,
+ "da-DK": Fc,
+ "de-DE": Ic,
+ "el-GR": Lc,
+ "en-US": Rc,
+ "es-ES": zc,
+ "et-EE": Bc,
+ "fi-FI": Vc,
+ "fr-FR": Hc,
+ "he-IL": Uc,
+ "hr-HR": Wc,
+ "hu-HU": Gc,
+ "it-IT": Kc,
+ "ja-JP": qc,
+ "ko-KR": Jc,
+ "lt-LT": Yc,
+ "lv-LV": Xc,
+ "nb-NO": Zc,
+ "nl-NL": Qc,
+ "pl-PL": $c,
+ "pt-BR": el,
+ "pt-PT": tl,
+ "ro-RO": nl,
+ "ru-RU": rl,
+ "sk-SK": il,
+ "sl-SI": al,
+ "sr-SP": ol,
+ "sv-SE": sl,
+ "tr-TR": cl,
+ "uk-UA": ll,
+ "zh-CN": ul,
+ "zh-TW": dl
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function ul(e) {
+function pl(e) {
return e && e.__esModule ? e.default : e;
}
-function dl(e) {
- let { onDismiss: t, ...n } = e, r = gi(n, Vi(ul(ll), "@react-aria/overlays").format("dismiss")), i = () => {
+function ml(e) {
+ let { onDismiss: t, ...n } = e, r = vi(n, Ui(pl(fl), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ _.createElement(Io, null, /*#__PURE__*/ _.createElement("button", {
+ return /*#__PURE__*/ b.createElement(G, null, /*#__PURE__*/ b.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -6966,38 +6966,38 @@ function dl(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var fl = [];
-function pl(e, t) {
- let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, _.useRef)(void 0);
- (0, _.useEffect)(() => {
- if (i && !fl.includes(t)) return fl.push(t), () => {
- let e = fl.indexOf(t);
- e >= 0 && fl.splice(e, 1);
+var K = [];
+function hl(e, t) {
+ let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, b.useRef)(void 0);
+ (0, b.useEffect)(() => {
+ if (i && !K.includes(t)) return K.push(t), () => {
+ let e = K.indexOf(t);
+ e >= 0 && K.splice(e, 1);
};
}, [i, t]);
let l = () => {
- fl[fl.length - 1] === t && n && n();
+ K[K.length - 1] === t && n && n();
}, u = (e) => {
- let n = fl[fl.length - 1];
- c.current = n, (!s || s(R(e))) && n === t && e.stopPropagation();
+ let n = K[K.length - 1];
+ c.current = n, (!s || s(z(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(R(e))) && (fl[fl.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = Dr({ shortcuts: { Escape: () => {
+ (!s || s(z(e))) && (K[K.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = kr({ shortcuts: { Escape: () => {
if (!o) {
l();
return;
}
return !1;
} } });
- vc({
+ xc({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = Oo({
+ let { focusWithinProps: p } = Mo({
isDisabled: !r,
onBlurWithin: (e) => {
- !e.relatedTarget || ja(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
+ !e.relatedTarget || Fa(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -7010,26 +7010,26 @@ function pl(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var ml = typeof document < "u" && window.visualViewport, hl = 0, gl;
-function _l(e = {}) {
+var gl = typeof document < "u" && window.visualViewport, _l = 0, vl;
+function yl(e = {}) {
let { isDisabled: t } = e;
- z(() => {
- if (!t) return hl++, hl === 1 && (gl = $t() && tn() ? yl() : vl()), () => {
- hl--, hl === 0 && gl();
+ V(() => {
+ if (!t) return _l++, _l === 1 && (vl = tn() && rn() ? xl() : bl()), () => {
+ _l--, _l === 0 && vl();
};
}, [t]);
}
-function vl() {
+function bl() {
let e = window.innerWidth - document.documentElement.clientWidth;
- return er(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Dt(document.documentElement, "scrollbar-gutter", "stable") : Dt(document.documentElement, "padding-right", `${e}px`)), Dt(document.documentElement, "overflow", "hidden"));
+ return nr(e > 0 && ("scrollbarGutter" in document.documentElement.style ? kt(document.documentElement, "scrollbar-gutter", "stable") : kt(document.documentElement, "padding-right", `${e}px`)), kt(document.documentElement, "overflow", "hidden"));
}
-function yl() {
- let e = Dt(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
- let r = R(e);
- t = Ya(r) ? r : Xa(r, !0), n = !1;
+function xl() {
+ let e = kt(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+ let r = z(e);
+ t = $a(r) ? r : eo(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 = U();
+ }, i = document.createElement("style"), a = ra();
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)) {
@@ -7040,27 +7040,27 @@ function yl() {
t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth && e.preventDefault();
}
}, s = (e) => {
- let t = R(e), n = e.relatedTarget;
- n && fi(n) ? (n.focus({ preventScroll: !0 }), bl(n, fi(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ let t = z(e), n = e.relatedTarget;
+ n && mi(n) ? (n.focus({ preventScroll: !0 }), Sl(n, mi(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 = At(), n = t != null && fi(t);
+ let t = Mt(), n = t != null && mi(t);
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && bl(this, n);
+ }), (!e || !e.preventScroll) && Sl(this, n);
}
});
- let l = er(Et(document, "touchstart", r, {
+ let l = nr(Ot(document, "touchstart", r, {
passive: !1,
capture: !0
- }), Et(document, "touchmove", o, {
+ }), Ot(document, "touchmove", o, {
passive: !1,
capture: !0
- }), Et(document, "blur", s, !0));
+ }), Ot(document, "blur", s, !0));
return () => {
e(), l(), i.remove(), Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -7069,18 +7069,18 @@ function yl() {
});
};
}
-function bl(e, t) {
- t || !ml ? xl(e) : ml.addEventListener("resize", () => xl(e), { once: !0 });
+function Sl(e, t) {
+ t || !gl ? Cl(e) : gl.addEventListener("resize", () => Cl(e), { once: !0 });
}
-function xl(e) {
+function Cl(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
- let e = Xa(n);
+ let e = eo(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;
- ml && (n = Math.min(n, ml.offsetTop + ml.height));
+ gl && (n = Math.min(n, gl.offsetTop + gl.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)),
@@ -7093,33 +7093,33 @@ function xl(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var Sl = {
+var wl = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, Cl = {
+}, Tl = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, wl = {
+}, El = {
top: "left",
left: "top"
-}, Tl = {
+}, Dl = {
top: "height",
left: "width"
-}, El = {
+}, Ol = {
width: "totalWidth",
height: "totalHeight"
-}, Dl = {}, Ol = () => typeof document < "u" ? window.visualViewport : null;
-function kl(e, t) {
+}, kl = {}, Al = () => typeof document < "u" ? window.visualViewport : null;
+function jl(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} = Bl(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return tn() && (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} = Hl(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return rn() && (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,
@@ -7129,7 +7129,7 @@ function kl(e, t) {
left: s
};
}
-function Al(e) {
+function Ml(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -7137,11 +7137,11 @@ function Al(e) {
height: e.scrollHeight
};
}
-function jl(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[Tl[e]], l = o[e] + r.scroll[Sl[e]] + a, u = o[e] + r.scroll[Sl[e]] + c - a, d = t - s + r.scroll[Sl[e]] + o[e] - r[Sl[e]], f = t - s + n + r.scroll[Sl[e]] + o[e] - r[Sl[e]];
+function Nl(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[Dl[e]], l = o[e] + r.scroll[wl[e]] + a, u = o[e] + r.scroll[wl[e]] + c - a, d = t - s + r.scroll[wl[e]] + o[e] - r[wl[e]], f = t - s + n + r.scroll[wl[e]] + o[e] - r[wl[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function Ml(e) {
+function Pl(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -7150,58 +7150,58 @@ function Ml(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function Nl(e) {
- if (Dl[e]) return Dl[e];
- let [t, n] = e.split(" "), r = Sl[t] || "right", i = wl[r];
- Sl[n] || (n = "center");
- let a = Tl[r], o = Tl[i];
- return Dl[e] = {
+function Fl(e) {
+ if (kl[e]) return kl[e];
+ let [t, n] = e.split(" "), r = wl[t] || "right", i = El[r];
+ wl[n] || (n = "center");
+ let a = Dl[r], o = Dl[i];
+ return kl[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, Dl[e];
+ }, kl[e];
}
-function Pl(e, t, n, r, i, a, o, s, c, l, u) {
+function Il(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] = No(_[m], v, y), d === p) {
- let t = s ? u[h] : u[El[h]];
- _[Cl[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = Lo(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[Ol[h]];
+ _[Tl[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function Fl(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[El.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function Ll(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[Ol.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 Il(e, t, n, r, i, a, o, s) {
+function Rl(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[Cl[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[Cl[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Tl[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[Tl[l]] - i);
}
-function Ll(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = Nl(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Pl(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Il(s, l, t, i, a + u, v, c, g);
+function zl(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = Fl(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Il(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Rl(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = Nl(`${Cl[S]} ${C}`), r = Pl(t, s, n, e, u, d, l, f, m, h, c);
- Il(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = Fl(`${Tl[S]} ${C}`), r = Il(t, s, n, e, u, d, l, f, m, h, c);
+ Rl(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 = jl(b, w[b], n[x], s, c, a, l);
+ let O = Nl(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = Fl(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = Pl(t, s, n, v, T, d, l, f, m, h, c), O = jl(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, ee = t[b] - w[b] - i[Sl[b]], j = ee + .5 * t[x], te = m / 2 + h, ne = Sl[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), re = n[x] - ne - m / 2 - h;
- A[b] = No(No(j, t[b] + m / 2 - (w[b] + i[Sl[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Sl[b]])), te, re), {placement: S, crossPlacement: C} = v, m ? ee = A[b] : C === "right" ? ee += t[x] : C === "center" && (ee += t[x] / 2);
- let M = S === "left" || S === "top" ? n[y] : 0, ie = {
- x: S === "top" || S === "bottom" ? ee : M,
- y: S === "left" || S === "right" ? ee : M
+ let k = Ll(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = Il(t, s, n, v, T, d, l, f, m, h, c), O = Nl(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[wl[b]], M = j + .5 * t[x], N = m / 2 + h, ee = wl[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - ee - m / 2 - h;
+ A[b] = Lo(Lo(M, t[b] + m / 2 - (w[b] + i[wl[b]]), t[b] + t[x] - m / 2 - (w[b] + i[wl[b]])), N, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let P = S === "left" || S === "top" ? n[y] : 0, ne = {
+ x: S === "top" || S === "bottom" ? j : P,
+ y: S === "left" || S === "right" ? j : P
};
return {
position: w,
@@ -7209,20 +7209,20 @@ function Ll(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
arrowOffsetLeft: A.left,
arrowOffsetTop: A.top,
placement: S,
- triggerAnchorPoint: ie
+ triggerAnchorPoint: ne
};
}
-function Rl(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 = Ol(), h = r instanceof HTMLElement ? Hl(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Bl(n, !1, p) : Vl(n, h, !1, p);
+function Bl(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 = Al(), h = r instanceof HTMLElement ? Wl(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Hl(n, !1, p) : Ul(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 = Bl(r, !0), x = Ml(r);
+ let b = Hl(r, !0), x = Pl(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = Al(i), C = kl(s, m), w = kl(h, m), T;
+ let S = Ml(i), C = jl(s, m), w = jl(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = zl(h, !1);
+ let e = Vl(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -7234,11 +7234,11 @@ function Rl(e) {
left: 0,
width: 0,
height: 0
- } : Vl(s, h, !1);
- let E = L(s, h);
- return Ll(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ } : Ul(s, h, !1);
+ let E = R(s, h);
+ return zl(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function zl(e, t) {
+function Vl(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,
@@ -7247,8 +7247,8 @@ function zl(e, t) {
height: a
};
}
-function Bl(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || zl(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function Hl(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || Vl(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -7256,30 +7256,30 @@ function Bl(e, t, n) {
height: o
};
}
-function Vl(e, t, n, r) {
+function Ul(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || zl(e, n);
+ if (i.position === "fixed") a = r || Vl(e, n);
else {
- a = Bl(e, n, r);
- let i = Bl(t, n), o = window.getComputedStyle(t);
+ a = Hl(e, n, r);
+ let i = Hl(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 Hl(e) {
+function Wl(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Ul(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Ul(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Gl(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Gl(t);) t = t.parentElement;
return t || document.documentElement;
}
-function Ul(e) {
+function Gl(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 Wl = typeof document < "u" ? window.visualViewport : null;
-function Gl(e) {
- let { direction: t } = Di(), { 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: v = 0, getTargetRect: y } = e, [b, x] = (0, _.useState)(null), S = [
+var Kl = typeof document < "u" ? window.visualViewport : null;
+function ql(e) {
+ let { direction: t } = ki(), { 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, x] = (0, b.useState)(null), S = [
p,
s,
i.current,
@@ -7294,17 +7294,17 @@ function Gl(e) {
m,
t,
g,
- v,
+ _,
n
- ], C = (0, _.useRef)(Wl?.scale);
- (0, _.useEffect)(() => {
- m && (C.current = Wl?.scale);
+ ], C = (0, b.useRef)(Kl?.scale);
+ (0, b.useEffect)(() => {
+ m && (C.current = Kl?.scale);
}, [m]);
- let w = (0, _.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || Wl?.scale !== C.current) return;
+ let w = (0, b.useCallback)(() => {
+ if (p === !1 || !m || !i.current || !r.current || !u || Kl?.scale !== C.current) return;
let e = null;
- if (o.current && Mt(o.current)) {
- let t = At()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && Pt(o.current)) {
+ let t = Mt()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -7312,8 +7312,8 @@ function Gl(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 _ = Rl({
- placement: ql(s, t),
+ let y = Bl({
+ placement: Yl(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -7323,28 +7323,28 @@ function Gl(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? zl(a.current, !0).width : 0),
- arrowBoundaryOffset: v,
- targetRect: y?.(r.current)
+ arrowSize: n ?? (a?.current ? Vl(a.current, !0).width : 0),
+ arrowBoundaryOffset: _,
+ targetRect: v?.(r.current)
});
- if (!_.position) return;
- h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(_.position).forEach((e) => h.style[e] = _.position[e] + "px"), h.style.maxHeight = _.maxHeight == null ? "" : _.maxHeight + "px";
- let b = At();
+ 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 b = Mt();
if (e && b && o.current) {
let t = b.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
o.current.scrollTop += r - e.offset;
}
- x(_);
+ x(y);
}, S);
- z(w, S), Kl(w), Oc({
+ V(w, S), Jl(w), jc({
ref: i,
onResize: w
- }), Oc({
+ }), jc({
ref: r,
onResize: w
});
- let T = (0, _.useRef)(!1);
- z(() => {
+ let T = (0, b.useRef)(!1);
+ V(() => {
let e, t = () => {
T.current = !0, clearTimeout(e), e = setTimeout(() => {
T.current = !1;
@@ -7352,60 +7352,60 @@ function Gl(e) {
}, n = () => {
T.current && t();
};
- Wl?.addEventListener("resize", t), Wl?.addEventListener("scroll", n);
- let r = Et(jt(window), "scroll", n);
+ Kl?.addEventListener("resize", t), Kl?.addEventListener("scroll", n);
+ let r = Ot(Nt(window), "scroll", n);
return () => {
- Wl?.removeEventListener("resize", t), Wl?.removeEventListener("scroll", n), r();
+ Kl?.removeEventListener("resize", t), Kl?.removeEventListener("scroll", n), r();
};
}, [w]);
- let E = (0, _.useCallback)(() => {
+ let E = (0, b.useCallback)(() => {
T.current || h?.();
}, [h, T]);
- return Rs({
+ return Vs({
triggerRef: r,
isOpen: m,
onClose: h && E
}), {
overlayProps: { style: {
- position: b ? "absolute" : "fixed",
- top: b ? void 0 : 0,
- left: b ? void 0 : 0,
+ position: y ? "absolute" : "fixed",
+ top: y ? void 0 : 0,
+ left: y ? void 0 : 0,
zIndex: 1e5,
- ...b?.position,
- maxHeight: b?.maxHeight ?? "100vh"
+ ...y?.position,
+ maxHeight: y?.maxHeight ?? "100vh"
} },
- placement: b?.placement ?? null,
- triggerAnchorPoint: b?.triggerAnchorPoint ?? null,
+ placement: y?.placement ?? null,
+ triggerAnchorPoint: y?.triggerAnchorPoint ?? null,
arrowProps: {
"aria-hidden": "true",
role: "presentation",
style: {
- left: b?.arrowOffsetLeft,
- top: b?.arrowOffsetTop
+ left: y?.arrowOffsetLeft,
+ top: y?.arrowOffsetTop
}
},
updatePosition: w
};
}
-function Kl(e) {
- z(() => (window.addEventListener("resize", e, !1), () => {
+function Jl(e) {
+ V(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function ql(e, t) {
+function Yl(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 Jl(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 } = pl({
+function Xl(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 } = hl({
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 } = Gl({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = ql({
...c,
targetRef: n,
overlayRef: r,
@@ -7413,17 +7413,17 @@ function Jl(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)
});
- _l({ isDisabled: a || !t.isOpen }), (0, _.useEffect)(() => {
- if (t.isOpen && r.current) return a ? Ho(i?.current ?? r.current) : Vo([i?.current ?? r.current], { shouldUseInert: !0 });
+ yl({ isDisabled: a || !t.isOpen }), (0, b.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? Go(i?.current ?? r.current) : Wo([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = Oo(e);
+ let { focusWithinProps: g } = Mo(e);
return {
- popoverProps: V(u, f, g),
+ popoverProps: H(u, f, g),
arrowProps: p,
underlayProps: d,
placement: m,
@@ -7432,13 +7432,13 @@ function Jl(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var Yl = /* @__PURE__ */ new WeakMap();
+var Zl = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function Xl(e, t, n) {
+function Ql(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: v } = ca({
+ }, { pressProps: g, isPressed: _ } = da({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -7446,7 +7446,7 @@ function Xl(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: y, isPressed: b } = ca({
+ }), { pressProps: v, isPressed: y } = da({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -7456,17 +7456,17 @@ function Xl(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: x } = Mr(V(e, { onFocus: () => t.setLastFocusedValue(r) }), n), S = V(g, x), C = H(e, { labelable: !0 }), w = -1;
+ }), { focusableProps: x } = Pr(H(e, { onFocus: () => t.setLastFocusedValue(r) }), n), S = H(g, x), C = Xi(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 } = Yl.get(t);
- io(n, t.defaultSelectedValue, t.setSelectedValue), ao({ validationBehavior: k }, t, n);
- let A = uo();
+ let { name: T, form: E, descriptionId: D, errorMessageId: O, validationBehavior: k } = Zl.get(t);
+ co(n, t.defaultSelectedValue, t.setSelectedValue), lo({ validationBehavior: k }, t, n);
+ let A = ho();
return {
- labelProps: V(y, (0, _.useMemo)(() => ({
+ labelProps: H(v, (0, b.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
onMouseDown: (e) => e.preventDefault()
}), [])),
- inputProps: V(C, {
+ inputProps: H(C, {
...S,
type: "radio",
name: T,
@@ -7487,18 +7487,18 @@ function Xl(e, t, n) {
descriptionProps: A,
isDisabled: p,
isSelected: m,
- isPressed: v || b
+ isPressed: _ || y
};
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function Zl(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Di(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = Do({
+function $l(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = ki(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = jo({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = H(e, { labelable: !0 }), { focusWithinProps: v } = Oo({
+ }), _ = Xi(e, { labelable: !0 }), { focusWithinProps: v } = Mo({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -7506,13 +7506,13 @@ function Zl(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = Va(n.currentTarget, {
- from: R(n),
- accept: (e) => e instanceof xt(e).HTMLInputElement && e.type === "radio"
+ let r = Ga(n.currentTarget, {
+ from: z(n),
+ accept: (e) => e instanceof Ct(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 } = Dr({
+ let { keyboardProps: b } = kr({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -7520,15 +7520,15 @@ function Zl(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = or(n);
- return Yl.set(t, {
+ }), x = cr(n);
+ return Zl.set(t, {
name: x,
form: r,
descriptionId: h.id,
errorMessageId: g.id,
validationBehavior: c
}), {
- radioGroupProps: V(_, {
+ radioGroupProps: H(_, {
role: "radiogroup",
...b,
"aria-invalid": t.isInvalid || void 0,
@@ -7550,21 +7550,21 @@ function Zl(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var Ql = /* @__PURE__ */ new WeakMap();
-function $l(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = tc({
+var eu = /* @__PURE__ */ new WeakMap();
+function tu(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = ic({
usage: "search",
sensitivity: "base"
- }), u = (0, _.useMemo)(() => r || new Qo(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, b.useMemo)(() => r || new ts(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = Vs({
+ ]), { menuTriggerProps: d, menuProps: f } = Ws({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = Dr({
+ }, t, n), { keyboardProps: p } = kr({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -7580,21 +7580,21 @@ function $l(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = Us({
+ }), { typeSelectProps: m } = Ks({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: v } = t.displayValidation, { labelProps: y, fieldProps: b, descriptionProps: x, errorMessageProps: S } = Do({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: x, errorMessageProps: S } = jo({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let C = H(e, { labelable: !0 }), w = V(m, d, b), T = or();
- return Ql.set(t, {
+ let C = Xi(e, { labelable: !0 }), w = H(m, d, y), T = cr();
+ return eu.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -7602,15 +7602,15 @@ function $l(e, t, n) {
validationBehavior: c
}), {
labelProps: {
- ...y,
+ ...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), Wn("keyboard"));
+ e.isDisabled || (n.current?.focus(), Kn("keyboard"));
}
},
- triggerProps: V(C, {
+ triggerProps: H(C, {
...w,
isDisabled: i,
- onKeyDown: er(w.onKeyDown, p.onKeyDown),
+ onKeyDown: nr(w.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
T,
@@ -7634,15 +7634,15 @@ function $l(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- L(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ R(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
},
- "aria-labelledby": [b["aria-labelledby"], w["aria-label"] && !b["aria-labelledby"] ? w.id : null].filter(Boolean).join(" ")
+ "aria-labelledby": [y["aria-labelledby"], w["aria-label"] && !y["aria-labelledby"] ? w.id : null].filter(Boolean).join(" ")
},
descriptionProps: x,
errorMessageProps: S,
isInvalid: h,
validationErrors: g,
- validationDetails: v,
+ validationDetails: _,
hiddenSelectProps: {
isDisabled: i,
name: o,
@@ -7655,18 +7655,18 @@ function $l(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function eu(e, t, n) {
- let r = Ql.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = Fo({ style: {
+function nu(e, t, n) {
+ let r = eu.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = W({ style: {
position: "fixed",
top: 0,
left: 0
} });
- io(e.selectRef, t.defaultValue, t.setValue), ao({
+ co(e.selectRef, t.defaultValue, t.setValue), lo({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
- let d = t.setValue, f = (0, _.useCallback)((e) => {
- let t = R(e);
+ let d = t.setValue, f = (0, b.useCallback)((e) => {
+ let t = z(e);
t.multiple ? d(Array.from(t.selectedOptions, (e) => e.value)) : d(e.currentTarget.value);
}, [d]);
return {
@@ -7691,32 +7691,32 @@ function eu(e, t, n) {
}
};
}
-function tu(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, _.useRef)(null), c = (0, _.useRef)(null), { containerProps: l, selectProps: u } = eu({
+function ru(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, b.useRef)(null), c = (0, b.useRef)(null), { containerProps: l, selectProps: u } = nu({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
- if (t.collection.size <= 300) return /*#__PURE__*/ _.createElement("div", {
+ if (t.collection.size <= 300) return /*#__PURE__*/ b.createElement("div", {
...l,
"data-testid": "hidden-select-container"
- }, /*#__PURE__*/ _.createElement("label", null, r, /*#__PURE__*/ _.createElement("select", {
+ }, /*#__PURE__*/ b.createElement("label", null, r, /*#__PURE__*/ b.createElement("select", {
...u,
ref: s
- }, /*#__PURE__*/ _.createElement("option", {
+ }, /*#__PURE__*/ b.createElement("option", {
value: "",
label: "\xA0"
}, "\xA0"), [...t.collection.getKeys()].map((e) => {
let n = t.collection.getItem(e);
- if (n && n.type === "item") return /*#__PURE__*/ _.createElement("option", {
+ if (n && n.type === "item") return /*#__PURE__*/ b.createElement("option", {
key: n.key,
value: n.key
}, n.textValue);
- }), t.collection.size === 0 && i && d.map((e, t) => /*#__PURE__*/ _.createElement("option", {
+ }), t.collection.size === 0 && i && d.map((e, t) => /*#__PURE__*/ b.createElement("option", {
key: t,
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = Ql.get(t) || {};
+ let { validationBehavior: e } = eu.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -7727,7 +7727,7 @@ function tu(e) {
disabled: o,
value: t ?? ""
};
- return e === "native" ? /*#__PURE__*/ _.createElement("input", {
+ return e === "native" ? /*#__PURE__*/ b.createElement("input", {
key: n,
...r,
ref: n === 0 ? c : null,
@@ -7735,20 +7735,20 @@ function tu(e) {
type: "text",
required: n === 0 && u.required,
onChange: () => {}
- }) : /*#__PURE__*/ _.createElement("input", {
+ }) : /*#__PURE__*/ b.createElement("input", {
key: n,
...r,
ref: n === 0 ? c : null
});
});
- return /*#__PURE__*/ _.createElement(_.Fragment, null, n);
+ return /*#__PURE__*/ b.createElement(b.Fragment, null, n);
}
return null;
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function nu(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = Co(e, t, n);
+function iu(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = Do(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -7762,7 +7762,7 @@ function nu(e, t, n) {
}
//#endregion
//#region node_modules/scheduler/cjs/scheduler.production.js
-var ru = /* @__PURE__ */ u(((e) => {
+var au = /* @__PURE__ */ p(((e) => {
function t(e, t) {
var n = e.length;
e.push(t);
@@ -7818,7 +7818,7 @@ var ru = /* @__PURE__ */ u(((e) => {
if (n(c) !== null) m = !0, S || (S = !0, O());
else {
var t = n(l);
- t !== null && ee(x, t.startTime - e);
+ t !== null && j(x, t.startTime - e);
}
}
}
@@ -7853,7 +7853,7 @@ var ru = /* @__PURE__ */ u(((e) => {
if (d !== null) i = !0;
else {
var u = n(l);
- u !== null && ee(x, u.startTime - t), i = !1;
+ u !== null && j(x, u.startTime - t), i = !1;
}
}
break a;
@@ -7879,7 +7879,7 @@ var ru = /* @__PURE__ */ u(((e) => {
} else O = function() {
_(D, 0);
};
- function ee(t, n) {
+ function j(t, n) {
C = _(function() {
t(e.unstable_now());
}, n);
@@ -7948,7 +7948,7 @@ var ru = /* @__PURE__ */ u(((e) => {
startTime: a,
expirationTime: s,
sortIndex: -1
- }, a > o ? (r.sortIndex = a, t(l, r), n(c) === null && r === n(l) && (h ? (v(C), C = -1) : h = !0, ee(x, a - o))) : (r.sortIndex = s, t(c, r), m || p || (m = !0, S || (S = !0, O()))), r;
+ }, a > o ? (r.sortIndex = a, t(l, r), n(c) === null && r === n(l) && (h ? (v(C), C = -1) : h = !0, j(x, a - o))) : (r.sortIndex = s, t(c, r), m || p || (m = !0, S || (S = !0, O()))), r;
}, e.unstable_shouldYield = E, e.unstable_wrapCallback = function(e) {
var t = f;
return function() {
@@ -7961,10 +7961,10 @@ var ru = /* @__PURE__ */ u(((e) => {
}
};
};
-})), iu = /* @__PURE__ */ u(((e, t) => {
- t.exports = ru();
-})), au = /* @__PURE__ */ u(((e) => {
- var t = iu(), n = m(), r = Rr();
+})), ou = /* @__PURE__ */ p(((e, t) => {
+ t.exports = au();
+})), su = /* @__PURE__ */ p(((e) => {
+ var t = ou(), n = _(), r = Br();
function i(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -8079,22 +8079,22 @@ var ru = /* @__PURE__ */ u(((e) => {
}
return null;
}
- function h(e) {
+ function m(e) {
var t = !1;
for (e = e.return; e !== null && (e.tag === 4 && (t = !0), e.tag !== 3 && e.tag !== 5 && e.tag !== 27);) e = e.return;
return t;
}
- function g(e) {
+ function h(e) {
var t = [null, null], n = p(e);
- return n === null || _(t, e, n.child, { foundSelf: !1 }), t;
+ return n === null || g(t, e, n.child, { foundSelf: !1 }), t;
}
- function _(e, t, n, r) {
+ function g(e, t, n, r) {
for (; n !== null;) {
if (n === t) r.foundSelf = !0;
else if (n.tag === 5 || n.tag === 27 || n.tag === 6) {
if (r.foundSelf) return e[1] = n, !0;
e[0] = n;
- } else if ((n.tag !== 22 || n.memoizedState === null) && _(e, t, n.child, r)) return !0;
+ } else if ((n.tag !== 22 || n.memoizedState === null) && g(e, t, n.child, r)) return !0;
n = n.sibling;
}
return !1;
@@ -8134,58 +8134,58 @@ var ru = /* @__PURE__ */ u(((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"), ne = Symbol.for("react.forward_ref"), re = Symbol.for("react.suspense"), M = Symbol.for("react.suspense_list"), ie = Symbol.for("react.memo"), ae = Symbol.for("react.lazy"), oe = Symbol.for("react.activity"), se = Symbol.for("react.legacy_hidden"), ce = Symbol.for("react.memo_cache_sentinel"), le = Symbol.for("react.view_transition"), ue = Symbol.for("react.recoverable"), de = Symbol.iterator;
- function fe(e) {
- return typeof e != "object" || !e ? null : (e = de && e[de] || 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"), j = Symbol.for("react.profiler"), M = Symbol.for("react.consumer"), N = Symbol.for("react.context"), ee = Symbol.for("react.forward_ref"), te = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), ne = Symbol.for("react.memo"), re = 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 pe = Symbol.for("react.client.reference");
- function me(e) {
+ var de = Symbol.for("react.client.reference");
+ function fe(e) {
if (e == null) return null;
- if (typeof e == "function") return e.$$typeof === pe ? null : e.displayName || e.name || null;
+ if (typeof e == "function") return e.$$typeof === de ? null : e.displayName || e.name || null;
if (typeof e == "string") return e;
switch (e) {
case k: return "Fragment";
- case ee: return "Profiler";
+ case j: return "Profiler";
case A: return "StrictMode";
- case re: return "Suspense";
- case M: return "SuspenseList";
- case oe: return "Activity";
- case le: return "ViewTransition";
+ case te: return "Suspense";
+ case P: return "SuspenseList";
+ case ie: return "Activity";
+ case se: return "ViewTransition";
}
if (typeof e == "object") switch (e.$$typeof) {
case O: return "Portal";
- case te: return e.displayName || "Context";
- case j: return (e._context.displayName || "Context") + ".Consumer";
- case ne:
+ case N: return e.displayName || "Context";
+ case M: return (e._context.displayName || "Context") + ".Consumer";
+ case ee:
var t = e.render;
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
- case ie: return t = e.displayName || null, t === null ? me(e.type) || "Memo" : t;
- case ae:
+ case ne: return t = e.displayName || null, t === null ? fe(e.type) || "Memo" : t;
+ case re:
t = e._payload, e = e._init;
try {
- return me(e(t));
+ return fe(e(t));
} catch {}
}
return null;
}
- var he = Array.isArray, N = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, P = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ge = {
+ 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 = {
pending: !1,
data: null,
method: null,
action: null
- }, _e = [], ve = -1;
- function ye(e) {
+ }, he = [], ge = -1;
+ function _e(e) {
return { current: e };
}
- function be(e) {
- 0 > ve || (e.current = _e[ve], _e[ve] = null, ve--);
+ function ve(e) {
+ 0 > ge || (e.current = he[ge], he[ge] = null, ge--);
}
- function F(e, t) {
- ve++, _e[ve] = e.current, e.current = t;
+ function ye(e, t) {
+ ge++, he[ge] = e.current, e.current = t;
}
- var xe = ye(null), Se = ye(null), Ce = ye(null), we = ye(null);
- function Te(e, t) {
- switch (F(Ce, t), F(Se, e), F(xe, null), t.nodeType) {
+ 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) {
case 9:
case 11:
e = (e = t.documentElement) && (e = e.namespaceURI) ? up(e) : 0;
@@ -8201,34 +8201,34 @@ var ru = /* @__PURE__ */ u(((e) => {
default: e = 0;
}
}
- be(xe), F(xe, e);
+ ve(be), ye(be, e);
}
- function Ee() {
- be(xe), be(Se), be(Ce);
+ function Te() {
+ ve(be), ve(xe), ve(Se);
}
- function De(e) {
+ function Ee(e) {
var t = e.memoizedState;
- t !== null && (sh._currentValue = t.memoizedState, F(we, e)), t = xe.current;
+ t !== null && (sh._currentValue = t.memoizedState, ye(Ce, e)), t = be.current;
var n = dp(t, e.type);
- t !== n && (F(Se, e), F(xe, n));
+ t !== n && (ye(xe, e), ye(be, n));
}
- function Oe(e) {
- Se.current === e && (be(xe), be(Se)), we.current === e && (be(we), sh._currentValue = ge);
+ function De(e) {
+ xe.current === e && (ve(be), ve(xe)), Ce.current === e && (ve(Ce), sh._currentValue = me);
}
- var ke, Ae;
- function je(e) {
- if (ke === void 0) try {
+ var Oe, ke;
+ function Ae(e) {
+ if (Oe === void 0) try {
throw Error();
} catch (e) {
var t = e.stack.trim().match(/\n( *(at )?)/);
- ke = t && t[1] || "", Ae = -1 < e.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";
+ Oe = t && t[1] || "", ke = -1 < e.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";
}
- return "\n" + ke + e + Ae;
+ return "\n" + Oe + e + ke;
}
- var Me = !1;
- function Ne(e, t) {
- if (!e || Me) return "";
- Me = !0;
+ var je = !1;
+ function Me(e, t) {
+ if (!e || je) return "";
+ je = !0;
var n = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
try {
@@ -8299,50 +8299,50 @@ var ru = /* @__PURE__ */ u(((e) => {
}
}
} finally {
- Me = !1, Error.prepareStackTrace = n;
+ je = !1, Error.prepareStackTrace = n;
}
- return (n = e ? e.displayName || e.name : "") ? je(n) : "";
+ return (n = e ? e.displayName || e.name : "") ? Ae(n) : "";
}
- function Pe(e, t) {
+ function Ne(e, t) {
switch (e.tag) {
case 26:
case 27:
- 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 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 0:
- 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");
+ 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");
default: return "";
}
}
- function Fe(e) {
+ function Pe(e) {
try {
var t = "", n = null;
do
- t += Pe(e, n), n = e, e = e.return;
+ t += Ne(e, n), n = e, e = e.return;
while (e);
return t;
} catch (e) {
return "\nError generating stack: " + e.message + "\n" + e.stack;
}
}
- 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);
+ 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);
} catch {}
}
- 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 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 rt = 256, it = 262144, at = 4194304;
- function ot(e) {
+ var nt = 256, rt = 262144, it = 4194304;
+ function at(e) {
var t = e & 42;
if (t !== 0) return t;
switch (e & -e) {
@@ -8380,27 +8380,27 @@ var ru = /* @__PURE__ */ u(((e) => {
default: return e;
}
}
- function st(e, t, n) {
+ function ot(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 = 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;
+ 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;
}
- function ct(e, t) {
+ function st(e, t) {
return (e.pendingLanes & ~(e.suspendedLanes & ~e.pingedLanes) & t) === 0;
}
- function lt(e, t) {
+ function ct(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 - $e(n), i = 1 << r;
+ var r = 31 - Qe(n), i = 1 << r;
t |= e[r], n &= ~i;
}
return t;
}
- function ut(e, t) {
+ function lt(e, t) {
switch (e) {
case 1:
case 2:
@@ -8436,23 +8436,23 @@ var ru = /* @__PURE__ */ u(((e) => {
default: return -1;
}
}
- function dt() {
- var e = at;
- return at <<= 1, !(at & 62914560) && (at = 4194304), e;
+ function ut() {
+ var e = it;
+ return it <<= 1, !(it & 62914560) && (it = 4194304), e;
}
- function ft(e) {
+ function dt(e) {
for (var t = [], n = 0; 31 > n; n++) t.push(e);
return t;
}
- function pt(e, t) {
+ function ft(e, t) {
e.pendingLanes |= t, t !== 268435456 && (e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0);
}
- function mt(e, t, n, r, i, a) {
+ function pt(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 - $e(n), d = 1 << u;
+ var u = 31 - Qe(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++) {
@@ -8461,25 +8461,25 @@ var ru = /* @__PURE__ */ u(((e) => {
}
n &= ~d;
}
- r !== 0 && ht(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
+ r !== 0 && mt(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
}
- function ht(e, t, n) {
+ function mt(e, t, n) {
e.pendingLanes |= t, e.suspendedLanes &= ~t;
- var r = 31 - $e(t);
+ var r = 31 - Qe(t);
e.entangledLanes |= t, e.entanglements[r] = e.entanglements[r] | 1073741824 | n & 261930;
}
- function gt(e, t) {
+ function ht(e, t) {
var n = e.entangledLanes |= t;
for (e = e.entanglements; n;) {
- var r = 31 - $e(n), i = 1 << r;
+ var r = 31 - Qe(n), i = 1 << r;
i & t | e[r] & t && (e[r] |= t), n &= ~i;
}
}
- function _t(e, t) {
+ function gt(e, t) {
var n = t & -t;
- return n = n & 42 ? 1 : vt(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;
+ return n = n & 42 ? 1 : _t(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;
}
- function vt(e) {
+ function _t(e) {
switch (e) {
case 2:
e = 1;
@@ -8517,30 +8517,30 @@ var ru = /* @__PURE__ */ u(((e) => {
}
return e;
}
- function yt(e) {
+ function vt(e) {
return e &= -e, 2 < e ? 8 < e ? e & 134217727 ? 32 : 268435456 : 8 : 2;
}
- function bt() {
- var e = P.p;
+ function yt() {
+ var e = I.p;
return e === 0 ? (e = window.event, e === void 0 ? 32 : Ch(e.type)) : e;
}
- function I(e, t) {
- var n = P.p;
+ function bt(e, t) {
+ var n = I.p;
try {
- return P.p = e, t();
+ return I.p = e, t();
} finally {
- P.p = n;
+ I.p = n;
}
}
- var xt = Math.random().toString(36).slice(2), St = "__reactFiber$" + xt, Ct = "__reactProps$" + xt, wt = "__reactContainer$" + xt, Tt = "__reactEvents$" + xt, Et = "__reactListeners$" + xt, Dt = "__reactHandles$" + xt, Ot = "__reactResources$" + xt, kt = "__reactMarker$" + xt, L = "__reactLoad$" + xt;
+ var xt = Math.random().toString(36).slice(2), St = "__reactFiber$" + xt, L = "__reactProps$" + xt, Ct = "__reactContainer$" + xt, wt = "__reactEvents$" + xt, Tt = "__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[Et], delete e[Dt];
+ delete e[St], delete e[L], delete e[Tt], delete e[Et];
}
- function R(e) {
+ function jt(e) {
var t;
if (t = e[St]) return t;
for (var n = e.parentNode; n;) {
- if (t = n[wt] || n[St]) {
+ if (t = n[Ct] || n[St]) {
if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = fm(e); e !== null;) {
if (n = e[St]) return n;
e = fm(e);
@@ -8551,8 +8551,8 @@ var ru = /* @__PURE__ */ u(((e) => {
}
return null;
}
- function jt(e) {
- if (e = e[St] || e[wt]) {
+ function R(e) {
+ if (e = e[St] || e[Ct]) {
var t = e.tag;
if (t === 5 || t === 6 || t === 13 || t === 31 || t === 26 || t === 27 || t === 3) return e;
}
@@ -8563,37 +8563,37 @@ var ru = /* @__PURE__ */ u(((e) => {
if (t === 5 || t === 26 || t === 27 || t === 6) return e.stateNode;
throw Error(i(33));
}
- function Nt(e) {
- var t = e[Ot];
- return t ||= e[Ot] = {
+ function z(e) {
+ var t = e[Dt];
+ return t ||= e[Dt] = {
hoistableStyles: /* @__PURE__ */ new Map(),
hoistableScripts: /* @__PURE__ */ new Map()
}, t;
}
+ function Nt(e) {
+ e[Ot] = !0;
+ }
function Pt(e) {
- e[kt] = !0;
+ e[kt] = void 0;
}
- function Ft(e) {
- e[L] = void 0;
+ var Ft = /* @__PURE__ */ new Set(), It = {};
+ function Lt(e, t) {
+ Rt(e, t), Rt(e + "Capture", t);
}
- var It = /* @__PURE__ */ new Set(), Lt = {};
function Rt(e, t) {
- zt(e, t), zt(e + "Capture", t);
+ for (It[e] = t, e = 0; e < t.length; e++) Ft.add(t[e]);
}
- function zt(e, t) {
- for (Lt[e] = t, e = 0; e < t.length; e++) It.add(t[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 z(e) {
- return Ie.call(Ht, e) ? !0 : Ie.call(Vt, e) ? !1 : Bt.test(e) ? Ht[e] = !0 : (Vt[e] = !0, !1);
+ 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);
}
var B = !1;
function Ut() {
var e = B;
return B = !1, e;
}
- function Wt(e, t, n) {
- if (z(t)) {
+ function V(e, t, n) {
+ if (Ht(t)) {
if (n === null) e.removeAttribute(t);
else {
switch (typeof n) {
@@ -8613,7 +8613,7 @@ var ru = /* @__PURE__ */ u(((e) => {
}
}
}
- function Gt(e, t, n) {
+ function Wt(e, t, n) {
if (n === null) e.removeAttribute(t);
else {
switch (typeof n) {
@@ -8627,7 +8627,7 @@ var ru = /* @__PURE__ */ u(((e) => {
e.setAttribute(t, n);
}
}
- function Kt(e, t, n, r) {
+ function Gt(e, t, n, r) {
if (r === null) e.removeAttribute(n);
else {
switch (typeof r) {
@@ -8641,7 +8641,7 @@ var ru = /* @__PURE__ */ u(((e) => {
e.setAttributeNS(t, n, r);
}
}
- function qt(e) {
+ function Kt(e) {
switch (typeof e) {
case "bigint":
case "boolean":
@@ -8652,11 +8652,11 @@ var ru = /* @__PURE__ */ u(((e) => {
default: return "";
}
}
- function Jt(e) {
+ function qt(e) {
var t = e.type;
return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio");
}
- function Yt(e, t, n) {
+ function Jt(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;
@@ -8681,48 +8681,48 @@ var ru = /* @__PURE__ */ u(((e) => {
};
}
}
- function Xt(e) {
+ function Yt(e) {
if (!e._valueTracker) {
- var t = Jt(e) ? "checked" : "value";
- e._valueTracker = Yt(e, t, "" + e[t]);
+ var t = qt(e) ? "checked" : "value";
+ e._valueTracker = Jt(e, t, "" + e[t]);
}
}
- function Zt(e) {
+ function Xt(e) {
if (!e) return !1;
var t = e._valueTracker;
if (!t) return !0;
var n = t.getValue(), r = "";
- return e && (r = Jt(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);
+ return e && (r = qt(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);
}
- var Qt = /[\n"\\]/g;
- function $t(e) {
- return e.replace(Qt, function(e) {
+ var Zt = /[\n"\\]/g;
+ function Qt(e) {
+ return e.replace(Zt, function(e) {
return "\\" + e.charCodeAt(0).toString(16) + " ";
});
}
- 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 = "" + qt(t)) : e.value !== "" + qt(t) && (e.value = "" + qt(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : nn(e, qt(n)) : o === "number" && e.value == t ? nn(e, qt(e.value)) : nn(e, qt(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 = "" + qt(s) : e.removeAttribute("name");
+ 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 = "" + Kt(t)) : e.value !== "" + Kt(t) && (e.value = "" + Kt(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : tn(e, Kt(n)) : o === "number" && e.value == t ? tn(e, Kt(e.value)) : tn(e, Kt(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 = "" + Kt(s) : e.removeAttribute("name");
}
- function tn(e, t, n, r, i, a, o, s) {
+ function en(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)) {
- Xt(e);
+ Yt(e);
return;
}
- n = n == null ? "" : "" + qt(n), t = t == null ? n : "" + qt(t), s || t === e.value || (e.value = t), e.defaultValue = t;
+ n = n == null ? "" : "" + Kt(n), t = t == null ? n : "" + Kt(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), Xt(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), Yt(e);
}
- function nn(e, t) {
+ function tn(e, t) {
e.defaultValue !== "" + t && (e.defaultValue = "" + t);
}
- function rn(e, t, n, r) {
+ function nn(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 = "" + qt(n), t = null, i = 0; i < e.length; i++) {
+ for (n = "" + Kt(n), t = null, i = 0; i < e.length; i++) {
if (e[i].value === n) {
e[i].selected = !0, r && (e[i].defaultSelected = !0);
return;
@@ -8732,18 +8732,18 @@ var ru = /* @__PURE__ */ u(((e) => {
t !== null && (t.selected = !0);
}
}
- function an(e, t, n) {
- if (t != null && (t = "" + qt(t), t !== e.value && (e.value = t), n == null)) {
+ function rn(e, t, n) {
+ if (t != null && (t = "" + Kt(t), t !== e.value && (e.value = t), n == null)) {
e.defaultValue !== t && (e.defaultValue = t);
return;
}
- e.defaultValue = n == null ? "" : "" + qt(n);
+ e.defaultValue = n == null ? "" : "" + Kt(n);
}
- function on(e, t, n, r) {
+ function an(e, t, n, r) {
if (t == null) {
if (r != null) {
if (n != null) throw Error(i(92));
- if (he(r)) {
+ if (pe(r)) {
if (1 < r.length) throw Error(i(93));
r = r[0];
}
@@ -8751,9 +8751,9 @@ var ru = /* @__PURE__ */ u(((e) => {
}
n ??= "", t = n;
}
- n = qt(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), Xt(e);
+ n = Kt(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), Yt(e);
}
- function sn(e, t) {
+ function on(e, t) {
if (t) {
var n = e.firstChild;
if (n && n === e.lastChild && n.nodeType === 3) {
@@ -8763,19 +8763,19 @@ var ru = /* @__PURE__ */ u(((e) => {
}
e.textContent = t;
}
- 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 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 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 || cn.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 || sn.has(t) ? t === "float" ? e.cssFloat = n : e[t] = ("" + n).trim() : e[t] = n + "px";
}
- function un(e, t, n) {
+ function ln(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 && (ln(e, a, r), B = !0);
- } else for (var o in t) t.hasOwnProperty(o) && ln(e, o, t[o]);
+ 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]);
}
- function dn(e) {
+ function un(e) {
if (e.indexOf("-") === -1) return !1;
switch (e) {
case "annotation-xml":
@@ -8789,7 +8789,7 @@ var ru = /* @__PURE__ */ u(((e) => {
default: return !0;
}
}
- var fn = /* @__PURE__ */ new Map([
+ var dn = /* @__PURE__ */ new Map([
["acceptCharset", "accept-charset"],
["htmlFor", "for"],
["httpEquiv", "http-equiv"],
@@ -8869,56 +8869,56 @@ var ru = /* @__PURE__ */ u(((e) => {
["writingMode", "writing-mode"],
["xmlnsXlink", "xmlns:xlink"],
["xHeight", "x-height"]
- ]), 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;
+ ]), 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;
}
- function hn() {}
- var gn = null;
- function _n(e) {
+ function mn() {}
+ var hn = null;
+ function gn(e) {
return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e;
}
- var vn = null, yn = null;
- function bn(e) {
- var t = jt(e);
+ var _n = null, vn = null;
+ function yn(e) {
+ var t = R(e);
if (t && (e = t.stateNode)) {
- var n = e[Ct] || null;
+ var n = e[L] || null;
a: switch (e = t.stateNode, t.type) {
case "input":
- 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) {
+ 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) {
for (n = e; n.parentNode;) n = n.parentNode;
- for (n = n.querySelectorAll("input[name=\"" + $t("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {
+ for (n = n.querySelectorAll("input[name=\"" + Qt("" + 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[L] || null;
if (!a) throw Error(i(90));
- en(r, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name);
+ $t(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 && Zt(r);
+ for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && Xt(r);
}
break a;
case "textarea":
- an(e, n.value, n.defaultValue);
+ rn(e, n.value, n.defaultValue);
break a;
- case "select": t = n.value, t != null && rn(e, !!n.multiple, t, !1);
+ case "select": t = n.value, t != null && nn(e, !!n.multiple, t, !1);
}
}
}
- var xn = !1;
- function Sn(e, t, n) {
- if (xn) return e(t, n);
- xn = !0;
+ var bn = !1;
+ function xn(e, t, n) {
+ if (bn) return e(t, n);
+ bn = !0;
try {
return e(t);
} finally {
- if (xn = !1, (vn !== null || yn !== null) && (Ld(), vn && (t = vn, e = yn, yn = vn = null, bn(t), e))) for (t = 0; t < e.length; t++) bn(e[t]);
+ 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]);
}
}
- function Cn(e, t) {
+ function Sn(e, t) {
var n = e.stateNode;
if (n === null) return null;
- var r = n[Ct] || null;
+ var r = n[L] || null;
if (r === null) return null;
n = r[t];
a: switch (t) {
@@ -8941,54 +8941,54 @@ var ru = /* @__PURE__ */ u(((e) => {
if (n && typeof n != "function") throw Error(i(231, t, typeof n));
return n;
}
- 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);
+ 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);
} catch {
- Tn = !1;
+ wn = !1;
}
- 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;
+ 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;
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 kn = i.slice(e, 1 < r ? 1 - r : void 0);
+ return On = i.slice(e, 1 < r ? 1 - r : void 0);
}
- function jn(e) {
+ function An(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 Mn() {
+ function jn() {
return !0;
}
- function Nn() {
+ function Mn() {
return !1;
}
- function Pn(e) {
+ function Nn(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) ? Mn : Nn, this.isPropagationStopped = Nn, this;
+ return this.isDefaultPrevented = (i.defaultPrevented == null ? !1 === i.returnValue : i.defaultPrevented) ? jn : Mn, this.isPropagationStopped = Mn, 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 = Mn);
+ e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = jn);
},
stopPropagation: function() {
var e = this.nativeEvent;
- e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = Mn);
+ e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = jn);
},
persist: function() {},
- isPersistent: Mn
+ isPersistent: jn
}), t;
}
- var Fn = {
+ var Pn = {
eventPhase: 0,
bubbles: 0,
cancelable: 0,
@@ -8997,10 +8997,10 @@ var ru = /* @__PURE__ */ u(((e) => {
},
defaultPrevented: 0,
isTrusted: 0
- }, In = Pn(Fn), Ln = T({}, Fn, {
+ }, Fn = Nn(Pn), In = T({}, Pn, {
view: 0,
detail: 0
- }), Rn = Pn(Ln), zn, Bn, Vn, Hn = T({}, Ln, {
+ }), Ln = Nn(In), Rn, zn, Bn, Vn = T({}, In, {
screenX: 0,
screenY: 0,
clientX: 0,
@@ -9011,25 +9011,25 @@ var ru = /* @__PURE__ */ u(((e) => {
shiftKey: 0,
altKey: 0,
metaKey: 0,
- getModifierState: $n,
+ getModifierState: Qn,
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 !== Vn && (Vn && e.type === "mousemove" ? (zn = e.screenX - Vn.screenX, Bn = e.screenY - Vn.screenY) : Bn = zn = 0, Vn = e), zn);
+ 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);
},
movementY: function(e) {
- return "movementY" in e ? e.movementY : Bn;
+ return "movementY" in e ? e.movementY : zn;
}
- }), Un = Pn(Hn), Wn = Pn(T({}, Hn, { dataTransfer: 0 })), Gn = Pn(T({}, Ln, { relatedTarget: 0 })), Kn = Pn(T({}, Fn, {
+ }), Hn = Nn(Vn), Un = Nn(T({}, Vn, { dataTransfer: 0 })), Wn = Nn(T({}, In, { relatedTarget: 0 })), Gn = Nn(T({}, Pn, {
animationName: 0,
elapsedTime: 0,
pseudoElement: 0
- })), qn = Pn(T({}, Fn, { clipboardData: function(e) {
+ })), Kn = Nn(T({}, Pn, { clipboardData: function(e) {
return "clipboardData" in e ? e.clipboardData : window.clipboardData;
- } })), Jn = Pn(T({}, Fn, { data: 0 })), Yn = {
+ } })), qn = Nn(T({}, Pn, { data: 0 })), Jn = {
Esc: "Escape",
Spacebar: " ",
Left: "ArrowLeft",
@@ -9042,7 +9042,7 @@ var ru = /* @__PURE__ */ u(((e) => {
Apps: "ContextMenu",
Scroll: "ScrollLock",
MozPrintableKey: "Unidentified"
- }, Xn = {
+ }, Yn = {
8: "Backspace",
9: "Tab",
12: "Clear",
@@ -9079,26 +9079,26 @@ var ru = /* @__PURE__ */ u(((e) => {
144: "NumLock",
145: "ScrollLock",
224: "Meta"
- }, Zn = {
+ }, Xn = {
Alt: "altKey",
Control: "ctrlKey",
Meta: "metaKey",
Shift: "shiftKey"
};
- function Qn(e) {
+ function Zn(e) {
var t = this.nativeEvent;
- return t.getModifierState ? t.getModifierState(e) : (e = Zn[e]) ? !!t[e] : !1;
+ return t.getModifierState ? t.getModifierState(e) : (e = Xn[e]) ? !!t[e] : !1;
}
- function $n() {
- return Qn;
+ function Qn() {
+ return Zn;
}
- var er = Pn(T({}, Ln, {
+ var $n = Nn(T({}, In, {
key: function(e) {
if (e.key) {
- var t = Yn[e.key] || e.key;
+ var t = Jn[e.key] || e.key;
if (t !== "Unidentified") return t;
}
- return e.type === "keypress" ? (e = jn(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? Xn[e.keyCode] || "Unidentified" : "";
+ return e.type === "keypress" ? (e = An(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? Yn[e.keyCode] || "Unidentified" : "";
},
code: 0,
location: 0,
@@ -9108,17 +9108,17 @@ var ru = /* @__PURE__ */ u(((e) => {
metaKey: 0,
repeat: 0,
locale: 0,
- getModifierState: $n,
+ getModifierState: Qn,
charCode: function(e) {
- return e.type === "keypress" ? jn(e) : 0;
+ return e.type === "keypress" ? An(e) : 0;
},
keyCode: function(e) {
return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
},
which: function(e) {
- return e.type === "keypress" ? jn(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
+ return e.type === "keypress" ? An(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
}
- })), tr = Pn(T({}, Hn, {
+ })), er = Nn(T({}, Vn, {
pointerId: 0,
width: 0,
height: 0,
@@ -9129,7 +9129,7 @@ var ru = /* @__PURE__ */ u(((e) => {
twist: 0,
pointerType: 0,
isPrimary: 0
- })), nr = Pn(T({}, Fn, { submitter: 0 })), rr = Pn(T({}, Ln, {
+ })), tr = Nn(T({}, Pn, { submitter: 0 })), nr = Nn(T({}, In, {
touches: 0,
targetTouches: 0,
changedTouches: 0,
@@ -9137,12 +9137,12 @@ var ru = /* @__PURE__ */ u(((e) => {
metaKey: 0,
ctrlKey: 0,
shiftKey: 0,
- getModifierState: $n
- })), ir = Pn(T({}, Fn, {
+ getModifierState: Qn
+ })), rr = Nn(T({}, Pn, {
propertyName: 0,
elapsedTime: 0,
pseudoElement: 0
- })), ar = Pn(T({}, Hn, {
+ })), ir = Nn(T({}, Vn, {
deltaX: function(e) {
return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0;
},
@@ -9151,21 +9151,21 @@ var ru = /* @__PURE__ */ u(((e) => {
},
deltaZ: 0,
deltaMode: 0
- })), or = Pn(T({}, Fn, {
+ })), ar = Nn(T({}, Pn, {
newState: 0,
oldState: 0,
source: 0
- })), sr = [
+ })), or = [
9,
13,
27,
32
- ], 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 = " ", V = !1;
+ ], 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) {
switch (e) {
- case "keyup": return sr.indexOf(t.keyCode) !== -1;
+ case "keyup": return or.indexOf(t.keyCode) !== -1;
case "keydown": return t.keyCode !== 229;
case "keypress":
case "mousedown":
@@ -9176,17 +9176,17 @@ var ru = /* @__PURE__ */ u(((e) => {
function mr(e) {
return e = e.detail, typeof e == "object" && "data" in e ? e.data : null;
}
- var hr = !1;
- function gr(e, t) {
+ var H = !1;
+ function hr(e, t) {
switch (e) {
case "compositionend": return mr(t);
- case "keypress": return t.which === 32 ? (V = !0, fr) : null;
- case "textInput": return e = t.data, e === fr && V ? null : e;
+ case "keypress": return t.which === 32 ? (fr = !0, dr) : null;
+ case "textInput": return e = t.data, e === dr && fr ? null : e;
default: return null;
}
}
- function _r(e, t) {
- if (hr) return e === "compositionend" || !cr && pr(e, t) ? (e = An(), kn = On = Dn = null, hr = !1, e) : null;
+ function gr(e, t) {
+ if (H) return e === "compositionend" || !sr && pr(e, t) ? (e = kn(), On = Dn = En = null, H = !1, e) : null;
switch (e) {
case "paste": return null;
case "keypress":
@@ -9195,11 +9195,11 @@ var ru = /* @__PURE__ */ u(((e) => {
if (t.which) return String.fromCharCode(t.which);
}
return null;
- case "compositionend": return dr && t.locale !== "ko" ? null : t.data;
+ case "compositionend": return ur && t.locale !== "ko" ? null : t.data;
default: return null;
}
}
- var vr = {
+ var _r = {
color: !0,
date: !0,
datetime: !0,
@@ -9216,76 +9216,76 @@ var ru = /* @__PURE__ */ u(((e) => {
url: !0,
week: !0
};
- function yr(e) {
+ function vr(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
- return t === "input" ? !!vr[e.type] : t === "textarea";
+ return t === "input" ? !!_r[e.type] : t === "textarea";
}
- function br(e, t, n, r) {
- vn ? yn ? yn.push(r) : yn = [r] : vn = r, t = qf(t, "onChange"), 0 < t.length && (n = new In("onChange", "change", null, n, r), e.push({
+ 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({
event: n,
listeners: t
}));
}
- var xr = null, Sr = null;
- function Cr(e) {
+ var br = null, xr = null;
+ function Sr(e) {
Bf(e, 0);
}
- function wr(e) {
- if (Zt(Mt(e))) return e;
+ function Cr(e) {
+ if (Xt(Mt(e))) return e;
}
- function Tr(e, t) {
+ function wr(e, t) {
if (e === "change") return t;
}
- 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";
+ 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";
}
- Dr = Or;
- } else Dr = !1;
- Er = Dr && (!document.documentMode || 9 < document.documentMode);
+ Er = Dr;
+ } else Er = !1;
+ Tr = Er && (!document.documentMode || 9 < document.documentMode);
}
- function Ar() {
- xr && (xr.detachEvent("onpropertychange", jr), Sr = xr = null);
+ function kr() {
+ br && (br.detachEvent("onpropertychange", Ar), xr = br = null);
}
- function jr(e) {
- if (e.propertyName === "value" && wr(Sr)) {
+ function Ar(e) {
+ if (e.propertyName === "value" && Cr(xr)) {
var t = [];
- br(t, Sr, e, _n(e)), Sn(Cr, t);
+ yr(t, xr, e, gn(e)), xn(Sr, t);
}
}
- function Mr(e, t, n) {
- e === "focusin" ? (Ar(), xr = t, Sr = n, xr.attachEvent("onpropertychange", jr)) : e === "focusout" && Ar();
+ function jr(e, t, n) {
+ e === "focusin" ? (kr(), br = t, xr = n, br.attachEvent("onpropertychange", Ar)) : e === "focusout" && kr();
}
- function Nr(e) {
- if (e === "selectionchange" || e === "keyup" || e === "keydown") return wr(Sr);
+ function Mr(e) {
+ if (e === "selectionchange" || e === "keyup" || e === "keydown") return Cr(xr);
+ }
+ function Nr(e, t) {
+ if (e === "click") return Cr(t);
}
function Pr(e, t) {
- if (e === "click") return wr(t);
+ if (e === "input" || e === "change") return Cr(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 Lr = typeof Object.is == "function" ? Object.is : Ir;
- function zr(e, t) {
- if (Lr(e, t)) return !0;
+ var Ir = typeof Object.is == "function" ? Object.is : Fr;
+ function Lr(e, t) {
+ if (Ir(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 (!Ie.call(t, i) || !Lr(e[i], t[i])) return !1;
+ if (!Fe.call(t, i) || !Ir(e[i], t[i])) return !1;
}
return !0;
}
- function Br(e) {
+ function Rr(e) {
if (e ||= typeof document < "u" ? document : void 0, e === void 0) return null;
try {
return e.activeElement || e.body;
@@ -9293,12 +9293,12 @@ var ru = /* @__PURE__ */ u(((e) => {
return e.body;
}
}
- function Vr(e) {
+ function zr(e) {
for (; e && e.firstChild;) e = e.firstChild;
return e;
}
- function Hr(e, t) {
- var n = Vr(e);
+ function Vr(e, t) {
+ var n = zr(e);
e = 0;
for (var r; n;) {
if (n.nodeType === 3) {
@@ -9318,15 +9318,15 @@ var ru = /* @__PURE__ */ u(((e) => {
}
n = void 0;
}
- n = Vr(n);
+ n = zr(n);
}
}
- function Ur(e, t) {
- return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? Ur(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 Wr(e) {
+ function Ur(e) {
e = e != null && e.ownerDocument != null && e.ownerDocument.defaultView != null ? e.ownerDocument.defaultView : window;
- for (var t = Br(e.document); t instanceof e.HTMLIFrameElement;) {
+ for (var t = Rr(e.document); t instanceof e.HTMLIFrameElement;) {
try {
var n = typeof t.contentWindow.location.href == "string";
} catch {
@@ -9334,18 +9334,18 @@ var ru = /* @__PURE__ */ u(((e) => {
}
if (n) e = t.contentWindow;
else break;
- t = Br(e.document);
+ t = Rr(e.document);
}
return t;
}
- function Gr(e) {
+ function Wr(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 Kr = wn && "documentMode" in document && 11 >= document.documentMode, qr = null, Jr = null, Yr = null, Xr = !1;
- function Zr(e, t, n) {
+ var Gr = Cn && "documentMode" in document && 11 >= document.documentMode, Kr = null, qr = null, Jr = null, Yr = !1;
+ function Xr(e, t, n) {
var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument;
- Xr || qr == null || qr !== Br(r) || (r = qr, "selectionStart" in r && Gr(r) ? r = {
+ Yr || Kr == null || Kr !== Rr(r) || (r = Kr, "selectionStart" in r && Wr(r) ? r = {
start: r.selectionStart,
end: r.selectionEnd
} : (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection(), r = {
@@ -9353,46 +9353,46 @@ var ru = /* @__PURE__ */ u(((e) => {
anchorOffset: r.anchorOffset,
focusNode: r.focusNode,
focusOffset: r.focusOffset
- }), Yr && zr(Yr, r) || (Yr = r, r = qf(Jr, "onSelect"), 0 < r.length && (t = new In("onSelect", "select", null, t, n), e.push({
+ }), Jr && Lr(Jr, r) || (Jr = r, r = qf(qr, "onSelect"), 0 < r.length && (t = new Fn("onSelect", "select", null, t, n), e.push({
event: t,
listeners: r
- }), t.target = qr)));
+ }), t.target = Kr)));
}
- function Qr(e, t) {
+ function Zr(e, t) {
var n = {};
return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + 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];
+ 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];
return 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 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 pi = 0;
- function mi(e, t) {
+ var fi = 0;
+ function pi(e, t) {
if (e.name != null && e.name !== "auto") return e.name;
if (t.autoName !== null) return t.autoName;
- e = vd.identifierPrefix;
- var n = pi++;
+ e = Q.identifierPrefix;
+ var n = fi++;
return e = "_" + e + "t_" + n.toString(32) + "_", t.autoName = e;
}
- function hi(e) {
+ function mi(e) {
if (e == null || typeof e == "string") return e;
var t = null, n = Ed;
if (n !== null) for (var r = 0; r < n.length; r++) {
@@ -9404,10 +9404,10 @@ var ru = /* @__PURE__ */ u(((e) => {
}
return t ?? e.default;
}
- function gi(e, t) {
- return e = hi(e), t = hi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;
+ function hi(e, t) {
+ return e = mi(e), t = mi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;
}
- var _i = typeof reportError == "function" ? reportError : function(e) {
+ var gi = typeof reportError == "function" ? reportError : function(e) {
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
var t = new window.ErrorEvent("error", {
bubbles: !0,
@@ -9421,62 +9421,62 @@ var ru = /* @__PURE__ */ u(((e) => {
return;
}
console.error(e);
- }, 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) {
+ }, _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) {
var o = r.pending;
o === null ? i.next = i : (i.next = o.next, o.next = i), r.pending = i;
}
- a !== 0 && Ti(n, i, a);
+ a !== 0 && wi(n, i, a);
}
}
- function Si(e, t, n, r) {
- 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 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 Ci(e, t, n, r) {
- return Si(e, t, n, r), Ei(e);
+ function Si(e, t, n, r) {
+ return xi(e, t, n, r), Ti(e);
}
- function wi(e, t) {
- return Si(e, null, null, t), Ei(e);
+ function Ci(e, t) {
+ return xi(e, null, null, t), Ti(e);
}
- function Ti(e, t, n) {
+ function wi(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 - $e(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 - Qe(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
}
- function Ei(e) {
+ function Ti(e) {
if (50 < Dd) throw Dd = 0, Od = null, Error(i(185));
for (var t = e.return; t !== null;) e = t, t = e.return;
return e.tag === 3 ? e.stateNode : null;
}
- var Di = {};
- function Oi(e, t, n, r) {
+ var Ei = {};
+ function Di(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 ki(e, t, n, r) {
- return new Oi(e, t, n, r);
+ function Oi(e, t, n, r) {
+ return new Di(e, t, n, r);
}
- function Ai(e) {
+ function ki(e) {
return e = e.prototype, !(!e || !e.isReactComponent);
}
- function ji(e, t) {
+ function Ai(e, t) {
var n = e.alternate;
- 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 : {
+ 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 : {
lanes: t.lanes,
firstContext: t.firstContext
}, n.sibling = e.sibling, n.index = e.index, n.ref = e.ref, n.refCleanup = e.refCleanup, n;
}
- function Mi(e, t) {
+ function ji(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 : {
@@ -9484,21 +9484,21 @@ var ru = /* @__PURE__ */ u(((e) => {
firstContext: t.firstContext
}), e;
}
- function Ni(e, t, n, r, a, o) {
+ function Mi(e, t, n, r, a, o) {
var s = 0;
- 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;
+ 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;
else a: switch (r) {
- case oe: return e = ki(31, n, t, a), e.elementType = oe, e.lanes = o, e;
- case k: return Pi(n.children, a, o, t);
+ 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 A:
s = 8, a |= 24;
break;
- case ee: return e = ki(12, n, t, a | 2), e.elementType = ee, e.lanes = o, e;
- case re: return e = ki(13, n, t, a), e.elementType = re, e.lanes = o, e;
- case M: return e = ki(19, n, t, a), e.elementType = M, e.lanes = o, e;
- case se:
- case le: return e = a | 32, e = ki(30, n, t, e), e.elementType = le, e.lanes = o, e.stateNode = {
+ case j: return e = Oi(12, n, t, a | 2), e.elementType = j, e.lanes = o, e;
+ case te: return e = Oi(13, n, t, a), e.elementType = te, e.lanes = o, e;
+ case P: return e = Oi(19, n, t, a), e.elementType = P, 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 = {
autoName: null,
paired: null,
clones: null,
@@ -9506,92 +9506,92 @@ var ru = /* @__PURE__ */ u(((e) => {
}, e;
default:
if (typeof r == "object" && r) switch (r.$$typeof) {
- case te:
+ case N:
s = 10;
break a;
- case j:
+ case M:
s = 9;
break a;
- case ne:
+ case ee:
s = 11;
break a;
- case ie:
+ case ne:
s = 14;
break a;
- case ae:
+ case re:
s = 16, r = null;
break a;
}
s = 29, n = Error(i(130, e === null ? "null" : typeof e, "")), r = null;
}
- return t = ki(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;
+ return t = Oi(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;
}
- function Pi(e, t, n, r) {
- return e = ki(7, e, r, t), e.lanes = n, e;
+ function Ni(e, t, n, r) {
+ return e = Oi(7, e, r, t), e.lanes = n, e;
}
- function Fi(e, t, n) {
- return e = ki(6, e, null, t), e.lanes = n, e;
+ function Pi(e, t, n) {
+ return e = Oi(6, e, null, t), e.lanes = n, e;
}
- function Ii(e) {
- var t = ki(18, null, null, 0);
+ function Fi(e) {
+ var t = Oi(18, null, null, 0);
return t.stateNode = e, t;
}
- function Li(e, t, n) {
- return t = ki(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {
+ function Ii(e, t, n) {
+ return t = Oi(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {
containerInfo: e.containerInfo,
pendingChildren: null,
implementation: e.implementation
}, t;
}
- var Ri = /* @__PURE__ */ new WeakMap();
- function zi(e, t) {
+ var Li = /* @__PURE__ */ new WeakMap();
+ function Ri(e, t) {
if (typeof e == "object" && e) {
- var n = Ri.get(e);
+ var n = Li.get(e);
return n === void 0 ? (t = {
value: e,
source: t,
- stack: Fe(t)
- }, Ri.set(e, t), t) : n;
+ stack: Pe(t)
+ }, Li.set(e, t), t) : n;
}
return {
value: e,
source: t,
- stack: Fe(t)
+ stack: Pe(t)
};
}
- var Bi = [], Vi = 0, Hi = null, Ui = 0, Wi = [], Gi = 0, Ki = null, qi = 1, H = "";
+ var zi = [], Bi = 0, Vi = null, Hi = 0, Ui = [], Wi = 0, Gi = null, Ki = 1, qi = "";
function Ji(e, t) {
- Bi[Vi++] = Ui, Bi[Vi++] = Hi, Hi = e, Ui = t;
+ zi[Bi++] = Hi, zi[Bi++] = Vi, Vi = e, Hi = t;
}
function Yi(e, t, n) {
- Wi[Gi++] = qi, Wi[Gi++] = H, Wi[Gi++] = Ki, Ki = e;
- var r = qi;
- e = H;
- var i = 32 - $e(r) - 1;
+ Ui[Wi++] = Ki, Ui[Wi++] = qi, Ui[Wi++] = Gi, Gi = e;
+ var r = Ki;
+ e = qi;
+ var i = 32 - Qe(r) - 1;
r &= ~(1 << i), n += 1;
- var a = 32 - $e(t) + i;
+ var a = 32 - Qe(t) + i;
if (30 < a) {
var o = i - i % 5;
- a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, qi = 1 << 32 - $e(t) + i | n << i | r, H = a + e;
- } else qi = 1 << a | n << i | r, H = e;
+ 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));
}
function Zi(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, H = Wi[--Gi], Wi[Gi] = null, qi = Wi[--Gi], Wi[Gi] = null;
+ 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;
}
function Qi(e, t) {
- Wi[Gi++] = qi, Wi[Gi++] = H, Wi[Gi++] = Ki, qi = t.id, H = t.overflow, Ki = e;
+ Ui[Wi++] = Ki, Ui[Wi++] = qi, Ui[Wi++] = Gi, Ki = t.id, qi = t.overflow, Gi = e;
}
var $i = 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;
+ throw ua(Ri(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[St] = e, t[L] = r, n) {
case "dialog":
$("cancel", t), $("close", t);
break;
@@ -9616,14 +9616,14 @@ var ru = /* @__PURE__ */ u(((e) => {
$("toggle", t);
break;
case "input":
- $("invalid", t), tn(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
+ $("invalid", t), en(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
break;
case "select":
$("invalid", t);
break;
- case "textarea": $("invalid", t), on(t, r.value, r.defaultValue, r.children);
+ case "textarea": $("invalid", t), an(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 = hn), t = !0) : t = !1, t || ia(e, !0);
+ 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 || ia(e, !0);
}
function oa(e) {
for ($i = e.return; $i;) switch ($i.tag) {
@@ -9657,17 +9657,17 @@ var ru = /* @__PURE__ */ u(((e) => {
}
function la() {
var e = ta;
- return e !== null && (dd === null ? dd = e : dd.push.apply(dd, e), ta = null), e;
+ return e !== null && (Z === null ? Z = e : Z.push.apply(Z, e), ta = null), e;
}
function ua(e) {
ta === null ? ta = [e] : ta.push(e);
}
- var da = ye(null), fa = null, pa = null;
+ var da = _e(null), fa = null, pa = null;
function ma(e, t, n) {
- F(da, t._currentValue), t._currentValue = n;
+ ye(da, t._currentValue), t._currentValue = n;
}
function ha(e) {
- e._currentValue = da.current, be(da);
+ e._currentValue = da.current, ve(da);
}
function ga(e, t, n) {
for (; e !== null;) {
@@ -9723,9 +9723,9 @@ var ru = /* @__PURE__ */ u(((e) => {
if (s === null) throw Error(i(387));
if (s = s.memoizedProps, s !== null) {
var c = a.type;
- Lr(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));
+ Ir(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));
}
- } else if (a === we.current) {
+ } else if (a === Ce.current) {
if (s = a.alternate, s === null) throw Error(i(387));
s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [sh] : e.push(sh));
}
@@ -9735,7 +9735,7 @@ var ru = /* @__PURE__ */ u(((e) => {
}
function ya(e) {
for (e = e.firstContext; e !== null;) {
- if (!Lr(e.context._currentValue, e.memoizedValue)) return !0;
+ if (!Ir(e.context._currentValue, e.memoizedValue)) return !0;
e = e.next;
}
return !1;
@@ -9743,13 +9743,13 @@ var ru = /* @__PURE__ */ u(((e) => {
function ba(e) {
fa = e, pa = null, e = e.dependencies, e !== null && (e.firstContext = null);
}
- function W(e) {
- return Sa(fa, e);
- }
- function xa(e, t) {
- return fa === null && ba(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,
@@ -9764,7 +9764,7 @@ var ru = /* @__PURE__ */ u(((e) => {
} 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) {
@@ -9776,27 +9776,27 @@ var ru = /* @__PURE__ */ u(((e) => {
return e();
});
};
- }, wa = t.unstable_scheduleCallback, Ta = t.unstable_NormalPriority, Ea = {
- $$typeof: te,
+ }, Ta = t.unstable_scheduleCallback, Ea = t.unstable_NormalPriority, Da = {
+ $$typeof: N,
Consumer: null,
Provider: null,
_currentValue: null,
_currentValue2: null,
_threadCount: 0
};
- function Da() {
+ function Oa() {
return {
- controller: new Ca(),
+ controller: new wa(),
data: /* @__PURE__ */ new Map(),
refCount: 0
};
}
- function Oa(e) {
- e.refCount--, e.refCount === 0 && wa(Ta, function() {
+ function ka(e) {
+ e.refCount--, e.refCount === 0 && Ta(Ea, function() {
e.controller.abort();
});
}
- function ka(e, t) {
+ function Aa(e, t) {
if (e.pendingLanes & 4194048) {
var n = e.transitionTypes;
for (n === null && (n = e.transitionTypes = []), e = 0; e < t.length; e++) {
@@ -9805,16 +9805,16 @@ var ru = /* @__PURE__ */ u(((e) => {
}
}
}
- var Aa = null;
- function ja(e) {
+ var ja = null;
+ function Ma(e) {
var t = e.transitionTypes;
return e.transitionTypes = null, t;
}
- var Ma = null, Na = 0, Pa = 0, Fa = null;
- function Ia(e, t) {
- if (Ma === null) {
- var n = Ma = [];
- Na = 0, Pa = Nf(), Fa = {
+ var Na = null, Pa = 0, Fa = 0, Ia = null;
+ function La(e, t) {
+ if (Na === null) {
+ var n = Na = [];
+ Pa = 0, Fa = Nf(), Ia = {
status: "pending",
value: void 0,
then: function(e) {
@@ -9822,17 +9822,17 @@ var ru = /* @__PURE__ */ u(((e) => {
}
};
}
- return Na++, t.then(La, La), t;
+ return Pa++, t.then(Ra, Ra), t;
}
- function La() {
- if (--Na === 0 && (Aa = null, Ma !== null)) {
- Fa !== null && (Fa.status = "fulfilled");
- var e = Ma;
- Ma = null, Pa = 0, Fa = null;
+ function Ra() {
+ if (--Pa === 0 && (ja = null, Na !== null)) {
+ Ia !== null && (Ia.status = "fulfilled");
+ var e = Na;
+ Na = null, Fa = 0, Ia = null;
for (var t = 0; t < e.length; t++) (0, e[t])();
}
}
- function Ra(e, t) {
+ function za(e, t) {
var n = [], r = {
status: "pending",
value: null,
@@ -9848,48 +9848,48 @@ var ru = /* @__PURE__ */ u(((e) => {
for (r.status = "rejected", r.reason = e, e = 0; e < n.length; e++) (0, n[e])(void 0);
}), r;
}
- var za = N.S;
- N.S = function(e, t) {
- if (md = Ve(), typeof t == "object" && t && typeof t.then == "function" && Ia(e, t), Aa !== null) for (var n = yf; n !== null;) ka(n, Aa), n = n.next;
+ var Ba = F.S;
+ F.S = function(e, t) {
+ if (md = Be(), typeof t == "object" && t && typeof t.then == "function" && La(e, t), ja !== null) for (var n = yf; n !== null;) Aa(n, ja), n = n.next;
if (n = e.types, n !== null) {
- for (var r = yf; r !== null;) ka(r, n), r = r.next;
- if (Pa !== 0) {
- r = Aa, r === null && (r = Aa = []);
+ for (var r = yf; r !== null;) Aa(r, n), r = r.next;
+ if (Fa !== 0) {
+ r = ja, r === null && (r = ja = []);
for (var i = 0; i < n.length; i++) {
var a = n[i];
r.indexOf(a) === -1 && r.push(a);
}
}
}
- za !== null && za(e, t);
+ Ba !== null && Ba(e, t);
};
- var Ba = ye(null);
- function Va() {
- var e = Ba.current;
- return e === null ? q.pooledCache : e;
+ var Va = _e(null);
+ function Ha() {
+ var e = Va.current;
+ return e === null ? ed.pooledCache : e;
}
- function Ha(e, t) {
- t === null ? F(Ba, Ba.current) : F(Ba, t.pool);
+ function Ua(e, t) {
+ t === null ? ye(Va, Va.current) : ye(Va, t.pool);
}
- function Ua() {
- var e = Va();
+ function Wa() {
+ var e = Ha();
return e === null ? null : {
- parent: Ea._currentValue,
+ parent: Da._currentValue,
pool: e
};
}
- var Wa = Error(i(460)), Ga = Error(i(474)), Ka = Error(i(542)), qa = { then: function() {} };
- function Ja(e) {
+ var Ga = Error(i(460)), Ka = Error(i(474)), qa = Error(i(542)), Ja = { then: function() {} };
+ function Ya(e) {
return e = e.status, e === "fulfilled" || e === "rejected";
}
- 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) {
+ function Xa(e, t, n) {
+ switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(mn, mn), t = n), t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, $a(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
+ case "rejected": throw e = t.reason, eo(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
default:
- if (typeof t.status == "string") t.then(hn, hn);
+ if (typeof t.status == "string") t.then(mn, mn);
else {
- if (e = q, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));
+ if (e = ed, 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;
@@ -9904,40 +9904,40 @@ var ru = /* @__PURE__ */ u(((e) => {
}
switch (t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, $a(e), e;
+ case "rejected": throw e = t.reason, eo(e), e;
}
- throw Za = t, Wa;
+ throw Qa = t, Ga;
}
}
- function Xa(e) {
+ function Za(e) {
try {
var t = e._init;
return t(e._payload);
} catch (e) {
- throw typeof e == "object" && e && typeof e.then == "function" ? (Za = e, Wa) : e;
+ throw typeof e == "object" && e && typeof e.then == "function" ? (Qa = e, Ga) : e;
}
}
- var Za = null;
- function Qa() {
- if (Za === null) throw Error(i(459));
- var e = Za;
- return Za = null, e;
+ var Qa = null;
+ function $a() {
+ if (Qa === null) throw Error(i(459));
+ var e = Qa;
+ return Qa = null, e;
}
- function $a(e) {
- if (e === Wa || e === Ka) throw Error(i(483));
+ function eo(e) {
+ if (e === Ga || e === qa) throw Error(i(483));
}
- var eo = null, to = 0;
- function no(e) {
- var t = to;
- return to += 1, eo === null && (eo = []), Ya(eo, e, t);
+ var to = null, no = 0;
+ function ro(e) {
+ var t = no;
+ return no += 1, to === null && (to = []), Xa(to, e, t);
}
- function ro(e, t) {
+ function io(e, t) {
t = t.props.ref, e.ref = t === void 0 ? null : t;
}
- function io(e, t) {
+ function ao(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 ao(e) {
+ function oo(e) {
function t(t, n) {
if (e) {
var r = t.deletions;
@@ -9954,7 +9954,7 @@ var ru = /* @__PURE__ */ u(((e) => {
return t;
}
function a(e, t) {
- return e = ji(e, t), e.index = 0, e.sibling = null, e;
+ return e = Ai(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);
@@ -9963,30 +9963,30 @@ var ru = /* @__PURE__ */ u(((e) => {
return e && t.alternate === null && (t.flags |= 134217730), t;
}
function c(e, t, n, r) {
- return t === null || t.tag !== 6 ? (t = Fi(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);
+ return t === null || t.tag !== 6 ? (t = Pi(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), ro(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === ae && 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);
+ return i === k ? (e = d(e, t, n.props.children, r, n.key), io(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === re && Za(i) === t.type) ? (t = a(t, n.props), io(t, n), t.return = e, t) : (t = Mi(n.type, n.key, n.props, null, e.mode, r), io(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 = Li(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 = Ii(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 = Pi(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);
+ 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);
}
function f(e, t, n) {
- 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 == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Pi("" + t, e.mode, n), t.return = e, t;
if (typeof t == "object" && t) {
switch (t.$$typeof) {
- 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 ae: return t = Xa(t), f(e, t, n);
+ case D: return n = Mi(t.type, t.key, t.props, null, e.mode, n), io(n, t), n.return = e, n;
+ case O: return t = Ii(t, e.mode, n), t.return = e, t;
+ case re: return t = Za(t), f(e, t, n);
}
- if (he(t) || fe(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, xa(e, t), n);
- io(e, t);
+ 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, ro(t), n);
+ if (t.$$typeof === N) return f(e, Sa(e, t), n);
+ ao(e, t);
}
return null;
}
@@ -9997,12 +9997,12 @@ var ru = /* @__PURE__ */ u(((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 ae: return n = Xa(n), p(e, t, n, r);
+ case re: return n = Za(n), p(e, t, n, r);
}
- if (he(n) || fe(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, xa(e, n), r);
- io(e, n);
+ if (pe(n) || ue(n)) return i === null ? d(e, t, n, r, null) : null;
+ if (typeof n.then == "function") return p(e, t, ro(n), r);
+ if (n.$$typeof === N) return p(e, t, Sa(e, n), r);
+ ao(e, n);
}
return null;
}
@@ -10012,12 +10012,12 @@ var ru = /* @__PURE__ */ u(((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 ae: return r = Xa(r), m(e, t, n, r, i);
+ case re: return r = Za(r), m(e, t, n, r, i);
}
- if (he(r) || fe(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, xa(t, r), i);
- io(t, r);
+ 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, ro(r), i);
+ if (r.$$typeof === N) return m(e, t, n, Sa(t, r), i);
+ ao(t, r);
}
return null;
}
@@ -10071,11 +10071,11 @@ var ru = /* @__PURE__ */ u(((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), ro(c, o), c.return = e, e = c;
+ n(e, r.sibling), c = a(r, o.props.children), io(c, o), c.return = e, e = c;
break a;
}
- } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === ae && Xa(l) === r.type) {
- n(e, r.sibling), c = a(r, o.props), ro(c, o), c.return = e, e = c;
+ } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === re && Za(l) === r.type) {
+ n(e, r.sibling), c = a(r, o.props), io(c, o), c.return = e, e = c;
break a;
}
n(e, r);
@@ -10083,7 +10083,7 @@ var ru = /* @__PURE__ */ u(((e) => {
}
t(e, r), r = r.sibling;
}
- 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);
+ o.type === k ? (c = Ni(o.props.children, e.mode, c, o.key), io(c, o), c.return = e, e = c) : (c = Mi(o.type, o.key, o.props, null, e.mode, c), io(c, o), c.return = e, e = c);
}
return s(e);
case O:
@@ -10099,36 +10099,36 @@ var ru = /* @__PURE__ */ u(((e) => {
}
t(e, r), r = r.sibling;
}
- c = Li(o, e.mode, c), c.return = e, e = c;
+ c = Ii(o, e.mode, c), c.return = e, e = c;
}
return s(e);
- case ae: return o = Xa(o), _(e, r, o, c);
+ case re: return o = Za(o), _(e, r, o, c);
}
- if (he(o)) return h(e, r, o, c);
- if (fe(o)) {
- if (l = fe(o), typeof l != "function") throw Error(i(150));
+ if (pe(o)) return h(e, r, o, c);
+ if (ue(o)) {
+ if (l = ue(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, no(o), c);
- if (o.$$typeof === te) return _(e, r, xa(e, o), c);
- io(e, o);
+ if (typeof o.then == "function") return _(e, r, ro(o), c);
+ if (o.$$typeof === N) return _(e, r, Sa(e, o), c);
+ ao(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 = Fi(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 = Pi(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);
}
return function(e, t, n, r) {
try {
- to = 0;
+ no = 0;
var i = _(e, t, n, r);
- return eo = null, i;
+ return to = null, i;
} catch (t) {
- if (t === Wa || t === Ka) throw t;
- var a = ki(29, t, null, e.mode);
+ if (t === Ga || t === qa) throw t;
+ var a = Oi(29, t, null, e.mode);
return a.lanes = r, a.return = e, a;
}
};
}
- var oo = ao(!0), so = ao(!1), co = !1;
- function lo(e) {
+ var so = oo(!0), co = oo(!1), lo = !1;
+ function uo(e) {
e.updateQueue = {
baseState: e.memoizedState,
firstBaseUpdate: null,
@@ -10141,7 +10141,7 @@ var ru = /* @__PURE__ */ u(((e) => {
callbacks: null
};
}
- function uo(e, t) {
+ function fo(e, t) {
e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {
baseState: e.baseState,
firstBaseUpdate: e.firstBaseUpdate,
@@ -10150,7 +10150,7 @@ var ru = /* @__PURE__ */ u(((e) => {
callbacks: null
});
}
- function fo(e) {
+ function po(e) {
return {
lane: e,
tag: 0,
@@ -10159,22 +10159,22 @@ var ru = /* @__PURE__ */ u(((e) => {
next: null
};
}
- function po(e, t, n) {
+ function mo(e, t, n) {
var r = e.updateQueue;
if (r === null) return null;
- if (r = r.shared, K & 2) {
+ if (r = r.shared, $u & 2) {
var i = r.pending;
- 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 i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Ti(e), wi(e, null, n), t;
}
- return Si(e, r, t, n), Ei(e);
+ return xi(e, r, t, n), Ti(e);
}
- function mo(e, t, n) {
+ function ho(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, gt(e, n);
+ r &= e.pendingLanes, n |= r, t.lanes = n, ht(e, n);
}
}
- function ho(e, t) {
+ function go(e, t) {
var n = e.updateQueue, r = e.alternate;
if (r !== null && (r = r.updateQueue, n === r)) {
var i = null, a = null;
@@ -10202,17 +10202,17 @@ var ru = /* @__PURE__ */ u(((e) => {
}
e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t;
}
- var go = !1;
- function _o() {
- if (go) {
- var e = Fa;
+ var _o = !1;
+ function vo() {
+ if (_o) {
+ var e = Ia;
if (e !== null) throw e;
}
}
- function vo(e, t, n, r) {
- go = !1;
+ function yo(e, t, n, r) {
+ _o = !1;
var i = e.updateQueue;
- co = !1;
+ lo = !1;
var a = i.firstBaseUpdate, o = i.lastBaseUpdate, s = i.shared.pending;
if (s !== null) {
i.shared.pending = null;
@@ -10226,8 +10226,8 @@ var ru = /* @__PURE__ */ u(((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 === Pa && (go = !0), u !== null && (u = u.next = {
+ if (p ? (J & f) === f : (r & f) === f) {
+ f !== 0 && f === Fa && (_o = !0), u !== null && (u = u.next = {
lane: 0,
tag: s.tag,
payload: s.payload,
@@ -10251,7 +10251,7 @@ var ru = /* @__PURE__ */ u(((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: co = !0;
+ case 2: lo = !0;
}
}
f = s.callback, f !== null && (e.flags |= 64, p && (e.flags |= 8192), p = i.callbacks, p === null ? i.callbacks = [f] : p.push(f));
@@ -10270,49 +10270,49 @@ var ru = /* @__PURE__ */ u(((e) => {
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;
}
}
- function yo(e, t) {
+ function bo(e, t) {
if (typeof e != "function") throw Error(i(191, e));
e.call(t);
}
- function bo(e, t) {
+ function xo(e, t) {
var n = e.callbacks;
- if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) yo(n[e], t);
- }
- var xo = ye(null), So = ye(0);
- function Co(e, t) {
- e = id, F(So, e), F(xo, t), id = e | t.baseLanes;
+ if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) bo(n[e], t);
}
- function wo() {
- F(So, id), F(xo, xo.current);
+ var So = _e(null), Co = _e(0);
+ function wo(e, t) {
+ e = id, ye(Co, e), ye(So, t), id = e | t.baseLanes;
}
function To() {
- id = So.current, be(xo), be(So);
+ ye(Co, id), ye(So, So.current);
}
- var Eo = ye(null), Do = null;
- function Oo(e) {
- var t = e.alternate;
- F(No, No.current & 1), F(Eo, e), Do === null && (t === null || xo.current !== null || t.memoizedState !== null) && (Do = e);
+ function Eo() {
+ id = Co.current, ve(So), ve(Co);
}
+ var Do = _e(null), Oo = null;
function ko(e) {
- F(No, No.current), F(Eo, e), Do === null && (Do = e);
+ var t = e.alternate;
+ ye(Po, Po.current & 1), ye(Do, e), Oo === null && (t === null || So.current !== null || t.memoizedState !== null) && (Oo = e);
}
function Ao(e) {
- e.tag === 22 ? (F(No, No.current), F(Eo, e), Do === null && (Do = e)) : jo();
+ ye(Po, Po.current), ye(Do, e), Oo === null && (Oo = e);
}
- function jo() {
- F(No, No.current), F(Eo, Eo.current);
+ function jo(e) {
+ e.tag === 22 ? (ye(Po, Po.current), ye(Do, e), Oo === null && (Oo = e)) : Mo();
}
- function Mo(e) {
- be(Eo), Do === e && (Do = null), be(No);
+ function Mo() {
+ ye(Po, Po.current), ye(Do, Do.current);
}
- var No = ye(0);
- function Po(e, t) {
- F(Eo, Eo.current), F(No, t);
+ function No(e) {
+ ve(Do), Oo === e && (Oo = null), ve(Po);
}
- function Fo(e) {
- be(No), be(Eo), Do === e && (Do = null);
+ var Po = _e(0);
+ function Fo(e, t) {
+ ye(Do, Do.current), ye(Po, t);
}
function Io(e) {
+ ve(Po), ve(Do), Oo === e && (Oo = null);
+ }
+ function Lo(e) {
for (var t = e; t !== null;) {
if (t.tag === 13) {
var n = t.memoizedState;
@@ -10332,40 +10332,40 @@ var ru = /* @__PURE__ */ u(((e) => {
}
return null;
}
- var Lo = 0, G = null, Ro = null, zo = null, Bo = !1, Vo = !1, Ho = !1, Uo = 0, Wo = 0, Go = null, Ko = 0;
+ var Ro = 0, W = null, G = null, zo = null, Bo = !1, Vo = !1, Ho = !1, Uo = 0, Wo = 0, Go = null, Ko = 0;
function qo() {
throw Error(i(321));
}
function Jo(e, t) {
if (t === null) return !1;
- for (var n = 0; n < t.length && n < e.length; n++) if (!Lr(e[n], t[n])) return !1;
+ for (var n = 0; n < t.length && n < e.length; n++) if (!Ir(e[n], t[n])) return !1;
return !0;
}
function Yo(e, t, n, r, i, a) {
- return Lo = a, G = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, N.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;
+ return Ro = a, W = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, F.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 Xo(e) {
- N.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));
+ F.H = dc;
+ var t = G !== null && G.next !== null;
+ if (Ro = 0, zo = G = W = 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 Zo(e, t, n, r) {
- G = e;
+ W = e;
var a = 0;
do {
if (Vo && (Go = null), Wo = 0, Vo = !1, 25 <= a) throw Error(i(301));
- if (a += 1, zo = Ro = null, e.updateQueue != null) {
+ if (a += 1, zo = G = null, e.updateQueue != null) {
var o = e.updateQueue;
o.lastEffect = null, o.events = null, o.stores = null, o.memoCache != null && (o.memoCache.index = 0);
}
- N.H = mc, o = t(n, r);
+ F.H = mc, o = t(n, r);
} while (Vo);
return o;
}
function Qo() {
- var e = N.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;
+ var e = F.H, t = e.useState()[0];
+ return t = typeof t.then == "function" ? as(t) : t, e = e.useState()[0], (G === null ? null : G.memoizedState) !== e && (W.flags |= 1024), t;
}
function $o() {
var e = Uo !== 0;
@@ -10382,7 +10382,7 @@ var ru = /* @__PURE__ */ u(((e) => {
}
Bo = !1;
}
- Lo = 0, zo = Ro = G = null, Vo = !1, Wo = Uo = 0, Go = null;
+ Ro = 0, zo = G = W = null, Vo = !1, Wo = Uo = 0, Go = null;
}
function ns() {
var e = {
@@ -10392,24 +10392,24 @@ var ru = /* @__PURE__ */ u(((e) => {
queue: null,
next: null
};
- return zo === null ? G.memoizedState = zo = e : zo = zo.next = e, zo;
+ return zo === null ? W.memoizedState = zo = e : zo = zo.next = e, zo;
}
function rs() {
- if (Ro === null) {
- var e = G.alternate;
+ if (G === null) {
+ var e = W.alternate;
e = e === null ? null : e.memoizedState;
- } else e = Ro.next;
- var t = zo === null ? G.memoizedState : zo.next;
- if (t !== null) zo = t, Ro = e;
+ } else e = G.next;
+ var t = zo === null ? W.memoizedState : zo.next;
+ if (t !== null) zo = t, G = e;
else {
- 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,
+ if (e === null) throw W.alternate === null ? Error(i(467)) : Error(i(310));
+ G = e, e = {
+ memoizedState: G.memoizedState,
+ baseState: G.baseState,
+ baseQueue: G.baseQueue,
+ queue: G.queue,
next: null
- }, zo === null ? G.memoizedState = zo = e : zo = zo.next = e;
+ }, zo === null ? W.memoizedState = zo = e : zo = zo.next = e;
}
return zo;
}
@@ -10423,20 +10423,20 @@ var ru = /* @__PURE__ */ u(((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, N.H = t === null || t.memoizedState === null ? fc : pc), e;
+ return Wo += 1, Go === null && (Go = []), e = Xa(Go, e, t), t = W, (zo === null ? t.memoizedState : zo.next) === null && (t = t.alternate, F.H = t === null || t.memoizedState === null ? fc : pc), e;
}
function os(e) {
if (typeof e == "object" && e) {
if (typeof e.then == "function") return as(e);
- if (e.$$typeof === ue) return;
- if (e.$$typeof === te) return W(e);
+ if (e.$$typeof === ce) return;
+ if (e.$$typeof === N) return xa(e);
}
throw Error(i(438, String(e)));
}
function ss(e) {
- var t = null, n = G.updateQueue;
+ var t = null, n = W.updateQueue;
if (n !== null && (t = n.memoCache), t == null) {
- var r = G.alternate;
+ var r = W.alternate;
r !== null && (r = r.updateQueue, r !== null && (r = r.memoCache, r != null && (t = {
data: r.data.map(function(e) {
return e.slice();
@@ -10447,14 +10447,14 @@ var ru = /* @__PURE__ */ u(((e) => {
if (t ??= {
data: [],
index: 0
- }, 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] = ce;
+ }, n === null && (n = is(), W.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;
return t.index++, n;
}
function cs(e, t) {
return typeof t == "function" ? t(e) : t;
}
function ls(e) {
- return us(rs(), Ro, e);
+ return us(rs(), G, e);
}
function us(e, t, n) {
var r = e.queue;
@@ -10474,7 +10474,7 @@ var ru = /* @__PURE__ */ u(((e) => {
var c = s = null, l = null, u = t, d = !1;
do {
var f = u.lane & -536870913;
- if (f === u.lane ? (Lo & f) === f : (Y & f) === f) {
+ if (f === u.lane ? (Ro & f) === f : (J & f) === f) {
var p = u.revertLane;
if (p === 0) l !== null && (l = l.next = {
lane: 0,
@@ -10484,9 +10484,9 @@ var ru = /* @__PURE__ */ u(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }), f === Pa && (d = !0);
- else if ((Lo & p) === p) {
- u = u.next, p === Pa && (d = !0);
+ }), f === Fa && (d = !0);
+ else if ((Ro & p) === p) {
+ u = u.next, p === Fa && (d = !0);
continue;
} else f = {
lane: 0,
@@ -10496,7 +10496,7 @@ var ru = /* @__PURE__ */ u(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = f, s = o) : l = l.next = f, G.lanes |= p, od |= p;
+ }, l === null ? (c = l = f, s = o) : l = l.next = f, W.lanes |= p, od |= p;
f = u.action, Ho && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
} else p = {
lane: f,
@@ -10506,10 +10506,10 @@ var ru = /* @__PURE__ */ u(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = p, s = o) : l = l.next = p, G.lanes |= f, od |= f;
+ }, l === null ? (c = l = p, s = o) : l = l.next = p, W.lanes |= f, od |= f;
u = u.next;
} while (u !== null && u !== t);
- if (l === null ? s = o : l.next = c, !Lr(o, e.memoizedState) && (Ac = !0, d && (n = Fa, n !== null))) throw n;
+ if (l === null ? s = o : l.next = c, !Ir(o, e.memoizedState) && (Ac = !0, d && (n = Ia, 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];
@@ -10525,20 +10525,20 @@ var ru = /* @__PURE__ */ u(((e) => {
do
o = e(o, s.action), s = s.next;
while (s !== a);
- Lr(o, t.memoizedState) || (Ac = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
+ Ir(o, t.memoizedState) || (Ac = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
}
return [o, r];
}
function fs(e, t, n) {
- var r = G, a = rs(), o = U;
+ var r = W, a = rs(), o = U;
if (o) {
if (n === void 0) throw Error(i(407));
n = n();
} else n = t();
- var s = !Lr((Ro || a).memoizedState, n);
+ var s = !Ir((G || 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, q === null) throw Error(i(349));
- o || Lo & 127 || ps(r, t, n);
+ if (r.flags |= 2048, ed === null) throw Error(i(349));
+ o || Ro & 127 || ps(r, t, n);
}
return n;
}
@@ -10546,7 +10546,7 @@ var ru = /* @__PURE__ */ u(((e) => {
e.flags |= 16384, e = {
getSnapshot: t,
value: n
- }, t = G.updateQueue, t === null ? (t = is(), G.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
+ }, t = W.updateQueue, t === null ? (t = is(), W.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
}
function ms(e, t, n, r) {
t.value = n, t.getSnapshot = r, gs(t) && _s(e);
@@ -10561,13 +10561,13 @@ var ru = /* @__PURE__ */ u(((e) => {
e = e.value;
try {
var n = t();
- return !Lr(e, n);
+ return !Ir(e, n);
} catch {
return !0;
}
}
function _s(e) {
- var t = wi(e, 2);
+ var t = Ci(e, 2);
t !== null && Md(t, e, 2);
}
function vs(e) {
@@ -10575,11 +10575,11 @@ var ru = /* @__PURE__ */ u(((e) => {
if (typeof e == "function") {
var n = e;
if (e = n(), Ho) {
- Qe(!0);
+ Ze(!0);
try {
n();
} finally {
- Qe(!1);
+ Ze(!1);
}
}
}
@@ -10592,7 +10592,7 @@ var ru = /* @__PURE__ */ u(((e) => {
}, t;
}
function ys(e, t, n, r) {
- return e.baseState = n, us(e, Ro, typeof r == "function" ? r : cs);
+ return e.baseState = n, us(e, G, typeof r == "function" ? r : cs);
}
function bs(e, t, n, r, a) {
if (cc(e)) throw Error(i(485));
@@ -10610,21 +10610,21 @@ var ru = /* @__PURE__ */ u(((e) => {
o.listeners.push(e);
}
};
- N.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);
+ F.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 xs(e, t) {
var n = t.action, r = t.payload, i = e.state;
if (t.isTransition) {
- var a = N.T, o = {};
- o.types = a === null ? null : a.types, N.T = o;
+ var a = F.T, o = {};
+ o.types = a === null ? null : a.types, F.T = o;
try {
- var s = n(i, r), c = N.S;
+ var s = n(i, r), c = F.S;
c !== null && c(o, s), Ss(e, t, s);
} catch (n) {
ws(e, t, n);
} finally {
- a !== null && o.types !== null && (a.types = o.types), N.T = a;
+ a !== null && o.types !== null && (a.types = o.types), F.T = a;
}
} else try {
a = n(i, r), Ss(e, t, a);
@@ -10661,10 +10661,10 @@ var ru = /* @__PURE__ */ u(((e) => {
}
function Ds(e, t) {
if (U) {
- var n = q.formState;
+ var n = ed.formState;
if (n !== null) {
a: {
- var r = G;
+ var r = W;
if (U) {
if (ea) {
b: {
@@ -10698,30 +10698,30 @@ var ru = /* @__PURE__ */ u(((e) => {
dispatch: null,
lastRenderedReducer: Es,
lastRenderedState: t
- }, 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 = {
+ }, n.queue = r, n = ac.bind(null, W, r), r.dispatch = n, r = vs(!1), a = sc.bind(null, W, !1, r.queue), r = ns(), i = {
state: t,
dispatch: null,
action: e,
pending: null
- }, r.queue = i, n = bs.bind(null, G, i, a, n), i.dispatch = n, r.memoizedState = e, [
+ }, r.queue = i, n = bs.bind(null, W, i, a, n), i.dispatch = n, r.memoizedState = e, [
t,
n,
!1
];
}
function Os(e) {
- return ks(rs(), Ro, e);
+ return ks(rs(), G, e);
}
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 === Wa ? Ka : e;
+ throw e === Ga ? qa : e;
}
else r = t;
t = rs();
var i = t.queue, a = i.dispatch;
- return n !== t.memoizedState && (G.flags |= 2048, Ms(9, { destroy: void 0 }, As.bind(null, i, n), null)), [
+ return n !== t.memoizedState && (W.flags |= 2048, Ms(9, { destroy: void 0 }, As.bind(null, i, n), null)), [
r,
a,
e
@@ -10731,7 +10731,7 @@ var ru = /* @__PURE__ */ u(((e) => {
e.action = t;
}
function js(e) {
- var t = rs(), n = Ro;
+ var t = rs(), n = G;
if (n !== null) return ks(t, n, e);
rs(), t = t.memoizedState, n = rs();
var r = n.queue.dispatch;
@@ -10748,20 +10748,20 @@ var ru = /* @__PURE__ */ u(((e) => {
deps: r,
inst: t,
next: null
- }, 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;
+ }, t = W.updateQueue, t === null && (t = is(), W.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 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);
+ W.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;
- 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));
+ G !== null && r !== null && Jo(r, G.memoizedState.deps) ? i.memoizedState = Ms(t, a, n, r) : (W.flags |= e, i.memoizedState = Ms(1 | t, a, n, r));
}
function Is(e, t) {
Ps(8390656, 8, e, t);
@@ -10770,9 +10770,9 @@ var ru = /* @__PURE__ */ u(((e) => {
Fs(2048, 8, e, t);
}
function Rs(e) {
- G.flags |= 4;
- var t = G.updateQueue;
- if (t === null) t = is(), G.updateQueue = t, t.events = [e];
+ W.flags |= 4;
+ var t = W.updateQueue;
+ if (t === null) t = is(), W.updateQueue = t, t.events = [e];
else {
var n = t.events;
n === null ? t.events = [e] : n.push(e);
@@ -10784,7 +10784,7 @@ var ru = /* @__PURE__ */ u(((e) => {
ref: t,
nextImpl: e
}), function() {
- if (K & 2) throw Error(i(440));
+ if ($u & 2) throw Error(i(440));
return t.impl.apply(void 0, arguments);
};
}
@@ -10822,29 +10822,29 @@ var ru = /* @__PURE__ */ u(((e) => {
var r = n.memoizedState;
if (t !== null && Jo(t, r[1])) return r[0];
if (r = e(), Ho) {
- Qe(!0);
+ Ze(!0);
try {
e();
} finally {
- Qe(!1);
+ Ze(!1);
}
}
return n.memoizedState = [r, t], r;
}
function qs(e, t, n) {
- return n === void 0 || Lo & 1073741824 && !(Y & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Ad(), G.lanes |= e, od |= e, n);
+ return n === void 0 || Ro & 1073741824 && !(J & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Ad(), W.lanes |= e, od |= e, n);
}
function Js(e, t, n, r) {
- return Lr(n, t) ? n : xo.current === null ? !(Lo & 106) || Lo & 1073741824 && !(Y & 261930) ? (Ac = !0, e.memoizedState = n) : (e = Ad(), G.lanes |= e, od |= e, t) : (e = qs(e, n, r), Lr(e, t) || (Ac = !0), e);
+ return Ir(n, t) ? n : So.current === null ? !(Ro & 106) || Ro & 1073741824 && !(J & 261930) ? (Ac = !0, e.memoizedState = n) : (e = Ad(), W.lanes |= e, od |= e, t) : (e = qs(e, n, r), Ir(e, t) || (Ac = !0), e);
}
function Ys(e, t, n, r, i) {
- var a = P.p;
- P.p = a !== 0 && 8 > a ? a : 8;
- var o = N.T, s = {};
- s.types = o === null ? null : o.types, N.T = s, sc(e, !1, t, n);
+ 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, sc(e, !1, t, n);
try {
- var c = i(), l = N.S;
- l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? oc(e, t, Ra(c, r), kd(e)) : oc(e, t, r, kd(e));
+ var c = i(), l = F.S;
+ l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? oc(e, t, za(c, r), kd(e)) : oc(e, t, r, kd(e));
} catch (n) {
oc(e, t, {
then: function() {},
@@ -10852,14 +10852,14 @@ var ru = /* @__PURE__ */ u(((e) => {
reason: n
}, kd());
} finally {
- P.p = a, o !== null && s.types !== null && (o.types = s.types), N.T = o;
+ I.p = a, o !== null && s.types !== null && (o.types = s.types), F.T = o;
}
}
function Xs() {}
function Zs(e, t, n, r) {
if (e.tag !== 5) throw Error(i(476));
var a = Qs(e).queue;
- Ys(e, a, t, ge, n === null ? Xs : function() {
+ Ys(e, a, t, me, n === null ? Xs : function() {
return $s(e), n(r);
});
}
@@ -10867,15 +10867,15 @@ var ru = /* @__PURE__ */ u(((e) => {
var t = e.memoizedState;
if (t !== null) return t;
t = {
- memoizedState: ge,
- baseState: ge,
+ memoizedState: me,
+ baseState: me,
baseQueue: null,
queue: {
pending: null,
lanes: 0,
dispatch: null,
lastRenderedReducer: cs,
- lastRenderedState: ge
+ lastRenderedState: me
},
next: null
};
@@ -10899,7 +10899,7 @@ var ru = /* @__PURE__ */ u(((e) => {
t.next === null && (t = e.alternate.memoizedState), oc(e, t.next.queue, {}, kd());
}
function ec() {
- return W(sh);
+ return xa(sh);
}
function tc() {
return rs().memoizedState;
@@ -10913,9 +10913,9 @@ var ru = /* @__PURE__ */ u(((e) => {
case 24:
case 3:
var n = kd();
- e = fo(n);
- var r = po(t, e, n);
- r !== null && (Md(r, t, n), mo(r, t, n)), t = { cache: Da() }, e.payload = t;
+ e = po(n);
+ var r = mo(t, e, n);
+ r !== null && (Md(r, t, n), ho(r, t, n)), t = { cache: Oa() }, e.payload = t;
return;
}
t = t.return;
@@ -10931,7 +10931,7 @@ var ru = /* @__PURE__ */ u(((e) => {
hasEagerState: !1,
eagerState: null,
next: null
- }, cc(e) ? lc(t, n) : (n = Ci(e, t, n, r), n !== null && (Md(n, e, r), uc(n, t, r)));
+ }, cc(e) ? lc(t, n) : (n = Si(e, t, n, r), n !== null && (Md(n, e, r), uc(n, t, r)));
}
function ac(e, t, n) {
oc(e, t, n, kd());
@@ -10951,9 +10951,9 @@ var ru = /* @__PURE__ */ u(((e) => {
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, Lr(s, o)) return Si(e, t, i, 0), q === null && xi(), !1;
+ if (i.hasEagerState = !0, i.eagerState = s, Ir(s, o)) return xi(e, t, i, 0), ed === null && bi(), !1;
} catch {}
- if (n = Ci(e, t, i, r), n !== null) return Md(n, e, r), uc(n, t, r), !0;
+ if (n = Si(e, t, i, r), n !== null) return Md(n, e, r), uc(n, t, r), !0;
}
return !1;
}
@@ -10968,11 +10968,11 @@ var ru = /* @__PURE__ */ u(((e) => {
next: null
}, cc(e)) {
if (t) throw Error(i(479));
- } else t = Ci(e, n, r, 2), t !== null && Md(t, e, 2);
+ } else t = Si(e, n, r, 2), t !== null && Md(t, e, 2);
}
function cc(e) {
var t = e.alternate;
- return e === G || t !== null && t === G;
+ return e === W || t !== null && t === W;
}
function lc(e, t) {
Vo = Bo = !0;
@@ -10982,11 +10982,11 @@ var ru = /* @__PURE__ */ u(((e) => {
function uc(e, t, n) {
if (n & 4194048) {
var r = t.lanes;
- r &= e.pendingLanes, n |= r, t.lanes = n, gt(e, n);
+ r &= e.pendingLanes, n |= r, t.lanes = n, ht(e, n);
}
}
var dc = {
- readContext: W,
+ readContext: xa,
use: os,
useCallback: qo,
useContext: qo,
@@ -11011,12 +11011,12 @@ var ru = /* @__PURE__ */ u(((e) => {
useCacheRefresh: qo,
useEffectEvent: qo
}, fc = {
- readContext: W,
+ readContext: xa,
use: os,
useCallback: function(e, t) {
return ns().memoizedState = [e, t === void 0 ? null : t], e;
},
- useContext: W,
+ useContext: xa,
useEffect: Is,
useImperativeHandle: function(e, t, n) {
n = n == null ? null : n.concat([e]), Ps(4194308, 4, Hs.bind(null, t, e), n);
@@ -11032,11 +11032,11 @@ var ru = /* @__PURE__ */ u(((e) => {
t = t === void 0 ? null : t;
var r = e();
if (Ho) {
- Qe(!0);
+ Ze(!0);
try {
e();
} finally {
- Qe(!1);
+ Ze(!1);
}
}
return n.memoizedState = [r, t], r;
@@ -11046,11 +11046,11 @@ var ru = /* @__PURE__ */ u(((e) => {
if (n !== void 0) {
var i = n(t);
if (Ho) {
- Qe(!0);
+ Ze(!0);
try {
n(t);
} finally {
- Qe(!1);
+ Ze(!1);
}
}
} else i = t;
@@ -11060,7 +11060,7 @@ var ru = /* @__PURE__ */ u(((e) => {
dispatch: null,
lastRenderedReducer: e,
lastRenderedState: i
- }, r.queue = e, e = e.dispatch = ic.bind(null, G, e), [r.memoizedState, e];
+ }, r.queue = e, e = e.dispatch = ic.bind(null, W, e), [r.memoizedState, e];
},
useRef: function(e) {
var t = ns();
@@ -11068,7 +11068,7 @@ var ru = /* @__PURE__ */ u(((e) => {
},
useState: function(e) {
e = vs(e);
- var t = e.queue, n = ac.bind(null, G, t);
+ var t = e.queue, n = ac.bind(null, W, t);
return t.dispatch = n, [e.memoizedState, n];
},
useDebugValue: Ws,
@@ -11077,16 +11077,16 @@ var ru = /* @__PURE__ */ u(((e) => {
},
useTransition: function() {
var e = vs(!1);
- return e = Ys.bind(null, G, e.queue, !0, !1), ns().memoizedState = e, [!1, e];
+ return e = Ys.bind(null, W, e.queue, !0, !1), ns().memoizedState = e, [!1, e];
},
useSyncExternalStore: function(e, t, n) {
- var r = G, a = ns();
+ var r = W, a = ns();
if (U) {
if (n === void 0) throw Error(i(407));
n = n();
} else {
- if (n = t(), q === null) throw Error(i(349));
- Y & 127 || ps(r, t, n);
+ if (n = t(), ed === null) throw Error(i(349));
+ J & 127 || ps(r, t, n);
}
a.memoizedState = n;
var o = {
@@ -11096,10 +11096,10 @@ var ru = /* @__PURE__ */ u(((e) => {
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 = ns(), t = q.identifierPrefix;
+ var e = ns(), t = ed.identifierPrefix;
if (U) {
- var n = H, 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 += "_";
+ var n = qi, r = Ki;
+ n = (r & ~(1 << 32 - Qe(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;
},
@@ -11116,24 +11116,24 @@ var ru = /* @__PURE__ */ u(((e) => {
lastRenderedReducer: null,
lastRenderedState: null
};
- return t.queue = n, t = sc.bind(null, G, !0, n), n.dispatch = t, [e, t];
+ return t.queue = n, t = sc.bind(null, W, !0, n), n.dispatch = t, [e, t];
},
useMemoCache: ss,
useCacheRefresh: function() {
- return ns().memoizedState = rc.bind(null, G);
+ return ns().memoizedState = rc.bind(null, W);
},
useEffectEvent: function(e) {
var t = ns(), n = { impl: e };
return t.memoizedState = n, function() {
- if (K & 2) throw Error(i(440));
+ if ($u & 2) throw Error(i(440));
return n.impl.apply(void 0, arguments);
};
}
}, pc = {
- readContext: W,
+ readContext: xa,
use: os,
useCallback: Gs,
- useContext: W,
+ useContext: xa,
useEffect: Ls,
useImperativeHandle: Us,
useInsertionEffect: Bs,
@@ -11146,7 +11146,7 @@ var ru = /* @__PURE__ */ u(((e) => {
},
useDebugValue: Ws,
useDeferredValue: function(e, t) {
- return Js(rs(), Ro.memoizedState, e, t);
+ return Js(rs(), G.memoizedState, e, t);
},
useTransition: function() {
var e = ls(cs)[0], t = rs().memoizedState;
@@ -11158,16 +11158,16 @@ var ru = /* @__PURE__ */ u(((e) => {
useFormState: Os,
useActionState: Os,
useOptimistic: function(e, t) {
- return ys(rs(), Ro, e, t);
+ return ys(rs(), G, e, t);
},
useMemoCache: ss,
useCacheRefresh: nc,
useEffectEvent: zs
}, mc = {
- readContext: W,
+ readContext: xa,
use: os,
useCallback: Gs,
- useContext: W,
+ useContext: xa,
useEffect: Ls,
useImperativeHandle: Us,
useInsertionEffect: Bs,
@@ -11181,7 +11181,7 @@ var ru = /* @__PURE__ */ u(((e) => {
useDebugValue: Ws,
useDeferredValue: function(e, t) {
var n = rs();
- return Ro === null ? qs(n, e, t) : Js(n, Ro.memoizedState, e, t);
+ return G === null ? qs(n, e, t) : Js(n, G.memoizedState, e, t);
},
useTransition: function() {
var e = ds(cs)[0], t = rs().memoizedState;
@@ -11194,7 +11194,7 @@ var ru = /* @__PURE__ */ u(((e) => {
useActionState: js,
useOptimistic: function(e, t) {
var n = rs();
- return Ro === null ? (n.baseState = e, [e, n.queue.dispatch]) : ys(n, Ro, e, t);
+ return G === null ? (n.baseState = e, [e, n.queue.dispatch]) : ys(n, G, e, t);
},
useMemoCache: ss,
useCacheRefresh: nc,
@@ -11206,22 +11206,22 @@ var ru = /* @__PURE__ */ u(((e) => {
var gc = {
enqueueSetState: function(e, t, n) {
e = e._reactInternals;
- var r = kd(), i = fo(r);
- i.payload = t, n != null && (i.callback = n), t = po(e, i, r), t !== null && (Md(t, e, r), mo(t, e, r));
+ var r = kd(), i = po(r);
+ i.payload = t, n != null && (i.callback = n), t = mo(e, i, r), t !== null && (Md(t, e, r), ho(t, e, r));
},
enqueueReplaceState: function(e, t, n) {
e = e._reactInternals;
- var r = kd(), i = fo(r);
- i.tag = 1, i.payload = t, n != null && (i.callback = n), t = po(e, i, r), t !== null && (Md(t, e, r), mo(t, e, r));
+ var r = kd(), i = po(r);
+ i.tag = 1, i.payload = t, n != null && (i.callback = n), t = mo(e, i, r), t !== null && (Md(t, e, r), ho(t, e, r));
},
enqueueForceUpdate: function(e, t) {
e = e._reactInternals;
- var n = kd(), r = fo(n);
- r.tag = 2, t != null && (r.callback = t), t = po(e, r, n), t !== null && (Md(t, e, n), mo(t, e, n));
+ var n = kd(), r = po(n);
+ r.tag = 2, t != null && (r.callback = t), t = mo(e, r, n), t !== null && (Md(t, e, n), ho(t, e, n));
}
};
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 ? !zr(n, r) || !zr(i, a) : !0;
+ 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 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);
@@ -11233,13 +11233,13 @@ var ru = /* @__PURE__ */ u(((e) => {
return n;
}
function bc(e) {
- _i(e);
+ gi(e);
}
function xc(e) {
console.error(e);
}
function Sc(e) {
- _i(e);
+ gi(e);
}
function Cc(e, t) {
try {
@@ -11265,12 +11265,12 @@ var ru = /* @__PURE__ */ u(((e) => {
}
}
function Tc(e, t, n) {
- return n = fo(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
+ return n = po(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
Cc(e, t);
}, n;
}
function Ec(e) {
- return e = fo(e), e.tag = 3, e;
+ return e = po(e), e.tag = 3, e;
}
function Dc(e, t, n, r) {
var i = n.type.getDerivedStateFromError;
@@ -11284,19 +11284,19 @@ var ru = /* @__PURE__ */ u(((e) => {
}
var o = n.stateNode;
o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {
- wc(t, n, r), typeof i != "function" && (gd === null ? gd = /* @__PURE__ */ new Set([this]) : gd.add(this));
+ wc(t, n, r), typeof i != "function" && (_d === null ? _d = /* @__PURE__ */ new Set([this]) : _d.add(this));
var e = r.stack;
this.componentDidCatch(r.value, { componentStack: e === null ? "" : e });
});
}
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 && va(t, n, a, !0), n = Eo.current, n !== null) {
+ if (t = n.alternate, t !== null && va(t, n, a, !0), n = Do.current, n !== null) {
switch (n.tag) {
case 31:
case 13:
- case 19: return Do === null ? Wd() : n.alternate === null && ad === 0 && (ad = 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), pf(e, r, a)), !1;
- case 22: return n.flags |= 65536, r === qa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
+ case 19: return Oo === null ? Wd() : n.alternate === null && ad === 0 && (ad = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Ja ? 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 === Ja ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
transitions: null,
markerInstances: null,
retryQueue: /* @__PURE__ */ new Set([r])
@@ -11306,15 +11306,15 @@ var ru = /* @__PURE__ */ u(((e) => {
}
return pf(e, r, a), Wd(), !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), ad !== 4 && (ad = 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;
+ if (U) return t = Do.current, t === null ? (r !== ra && (t = Error(i(423), { cause: r }), ua(Ri(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = Ri(r, n), a = Tc(e.stateNode, r, a), go(e, a), ad !== 4 && (ad = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== ra && (e = Error(i(422), { cause: r }), ua(Ri(e, n)))), !1;
var o = Error(i(520), { cause: r });
- if (o = zi(o, n), ud === null ? ud = [o] : ud.push(o), ad !== 4 && (ad = 2), t === null) return !0;
- r = zi(r, n), n = t;
+ 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;
do {
switch (n.tag) {
- case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Tc(n.stateNode, r, e), ho(n, e), !1;
+ case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Tc(n.stateNode, r, e), go(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" && (gd === null || !gd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Ec(a), Dc(a, e, n, r), ho(n, a), !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 = Ec(a), Dc(a, e, n, r), go(n, a), !1;
break;
case 22: if (n.memoizedState !== null) return n.flags |= 65536, !1;
}
@@ -11324,7 +11324,7 @@ var ru = /* @__PURE__ */ u(((e) => {
}
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);
+ t.child = e === null ? co(t, null, n, r) : so(t, e.child, n, r);
}
function Mc(e, t, n, r, i) {
n = n.render;
@@ -11338,18 +11338,18 @@ var ru = /* @__PURE__ */ u(((e) => {
function Nc(e, t, n, r, i) {
if (e === null) {
var a = n.type;
- 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);
+ return typeof a == "function" && !ki(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Pc(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);
}
if (a = e.child, !sl(e, i)) {
var o = a.memoizedProps;
- if (n = n.compare, n = n === null ? zr : n, n(o, r) && e.ref === t.ref) return ol(e, t, i);
+ if (n = n.compare, n = n === null ? Lr : n, n(o, r) && e.ref === t.ref) return ol(e, t, i);
}
- return t.flags |= 1, e = ji(a, r), e.ref = t.ref, e.return = t, t.child = e;
+ return t.flags |= 1, e = Ai(a, r), e.ref = t.ref, e.return = t, t.child = e;
}
function Pc(e, t, n, r, i) {
if (e !== null) {
var a = e.memoizedProps;
- if (zr(a, r) && e.ref === t.ref) {
+ if (Lr(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);
}
@@ -11374,9 +11374,9 @@ var ru = /* @__PURE__ */ u(((e) => {
if (n & 536870912) t.memoizedState = {
baseLanes: 0,
cachePool: null
- }, e !== null && Ha(t, a === null ? null : a.cachePool), a === null ? wo() : Co(t, a), Ao(t);
+ }, e !== null && Ua(t, a === null ? null : a.cachePool), a === null ? To() : wo(t, a), jo(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);
+ } else a === null ? (e !== null && Ua(t, null), To(), Mo()) : (Ua(t, a.cachePool), wo(t, a), Mo(), t.memoizedState = null);
return jc(e, t, i, n), t.child;
}
function Ic(e, t) {
@@ -11388,14 +11388,14 @@ var ru = /* @__PURE__ */ u(((e) => {
}), t.sibling;
}
function Lc(e, t, n, r, i) {
- var a = Va();
+ var a = Ha();
return a = a === null ? null : {
- parent: Ea._currentValue,
+ parent: Da._currentValue,
pool: a
}, t.memoizedState = {
baseLanes: n,
cachePool: a
- }, e !== null && Ha(t, null), wo(), Ao(t), e !== null && va(e, t, r, !0), t.childLanes = i, null;
+ }, e !== null && Ua(t, null), To(), jo(t), e !== null && va(e, t, r, !0), t.childLanes = i, null;
}
function Rc(e, t) {
return t = Zc({
@@ -11404,7 +11404,7 @@ var ru = /* @__PURE__ */ u(((e) => {
}, e.mode), t.ref = e.ref, e.child = t, t.return = e, t;
}
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;
+ return so(t, e.child, null, n), e = Rc(t, t.pendingProps), e.flags |= 2, No(t), t.memoizedState = null, e;
}
function Bc(e, t, n) {
var r = t.pendingProps, a = !!(t.flags & 128);
@@ -11414,15 +11414,15 @@ var ru = /* @__PURE__ */ u(((e) => {
baseLanes: 0,
cachePool: null
}, Ic(null, e);
- if (ko(t), (e = ea) ? (e = am(e, na), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
+ if (Ao(t), (e = ea) ? (e = am(e, na), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
- treeContext: Ki === null ? null : {
- id: qi,
- overflow: H
+ treeContext: Gi === null ? null : {
+ id: Ki,
+ overflow: qi
},
retryLane: 536870912,
hydrationErrors: null
- }, n = Ii(e), n.return = t, t.child = n, $i = t, ea = null)) : e = null, e === null) throw ia(t);
+ }, n = Fi(e), n.return = t, t.child = n, $i = t, ea = null)) : e = null, e === null) throw ia(t);
return t.lanes = 536870912, null;
}
return Rc(t, r);
@@ -11430,20 +11430,20 @@ var ru = /* @__PURE__ */ u(((e) => {
var o = e.memoizedState;
if (o !== null) {
var s = o.dehydrated;
- if (ko(t), a) {
+ if (Ao(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 (Ac || va(e, t, n, !1), a = (n & e.childLanes) !== 0, Ac || a) {
- if (xo.current === null) {
- if (r = q, r !== null && (s = _t(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, wi(e, s), Md(r, e, s), kc;
+ if (So.current === null) {
+ if (r = ed, r !== null && (s = gt(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Ci(e, s), Md(r, e, s), kc;
Wd();
}
t = zc(e, t, n);
} else e = o.treeContext, ea = lm(s.nextSibling), $i = t, U = !0, ta = null, na = !1, e !== null && Qi(t, e), t = Rc(t, r), t.flags |= 134221824;
return t;
}
- return e = ji(e.child, {
+ return e = Ai(e.child, {
mode: r.mode,
children: r.children
}), e.ref = t.ref, t.child = e, e.return = t, e;
@@ -11464,24 +11464,24 @@ var ru = /* @__PURE__ */ u(((e) => {
}
function Wc(e, t, n, r, i) {
if (ba(t), t.stateNode === null) {
- var a = Di, o = n.contextType;
- typeof o == "object" && o && (a = W(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 ? W(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;
+ var a = Ei, 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 = {}, uo(t), o = n.contextType, a.context = typeof o == "object" && o ? xa(o) : Ei, 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), yo(t, r, a, i), vo(), 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 = yc(n, s);
a.props = c;
var l = a.context, u = n.contextType;
- o = Di, typeof u == "object" && u && (o = W(u));
+ o = Ei, 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) && vc(t, a, r, o), co = !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), lo = !1;
var f = t.memoizedState;
- 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);
+ a.state = f, yo(t, r, a, i), vo(), l = t.memoizedState, s || f !== l || lo ? (typeof d == "function" && (hc(t, n, d, r), l = t.memoizedState), (c = lo || _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, 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 = W(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();
+ a = t.stateNode, fo(e, t), o = t.memoizedProps, u = yc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Ei, 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), lo = !1, f = t.memoizedState, a.state = f, yo(t, r, a, i), vo();
var p = t.memoizedState;
- 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);
+ o !== d || f !== p || lo || e !== null && e.dependencies !== null && ya(e.dependencies) ? (typeof s == "function" && (hc(t, n, s, r), p = t.memoizedState), (u = lo || _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, 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;
+ 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 = so(t, e.child, null, i), t.child = so(t, null, n, i)) : jc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = ol(e, t, i), e;
}
function Gc(e, t, n, r) {
return ca(), t.flags |= 256, jc(e, t, n, r), t.child;
@@ -11495,47 +11495,47 @@ var ru = /* @__PURE__ */ u(((e) => {
function qc(e) {
return {
baseLanes: e,
- cachePool: Ua()
+ cachePool: Wa()
};
}
function Jc(e, t, n) {
- return e = e === null ? 0 : e.childLanes & ~n, t && (e |= cd), e;
+ return e = e === null ? 0 : e.childLanes & ~n, t && (e |= ld), 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 : !!(No.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
+ if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Po.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 = {
+ if (i ? ko(t) : Mo(), (e = ea) ? (e = am(e, na), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
- treeContext: Ki === null ? null : {
- id: qi,
- overflow: H
+ treeContext: Gi === null ? null : {
+ id: Ki,
+ overflow: qi
},
retryLane: 536870912,
hydrationErrors: null
- }, n = Ii(e), n.return = t, t.child = n, $i = t, ea = null)) : e = null, e === null) throw ia(t);
+ }, n = Fi(e), n.return = t, t.child = n, $i = 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 ? (jo(), i = t.mode, a = Zc({
+ return a = r.children, r = r.fallback, i ? (Mo(), i = t.mode, a = Zc({
mode: "hidden",
children: 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));
+ }, i), r = Ni(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)) : (ko(t), Xc(t, a));
}
var s = e.memoizedState;
if (s !== null) {
var c = s.dehydrated;
if (c !== null) return $c(e, t, a, o, r, c, s, n);
}
- return i ? (jo(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = ji(s, {
+ return i ? (Mo(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = Ai(s, {
mode: "hidden",
children: r.children
- }), 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 = Ea._currentValue, a = a.parent === s ? a : {
+ }), 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, Ic(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = qc(n) : (a = i.cachePool, a === null ? a = Wa() : (s = Da._currentValue, a = a.parent === s ? a : {
parent: s,
pool: s
}), i = {
baseLanes: i.baseLanes | n,
cachePool: a
- }), 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, {
+ }), r.memoizedState = i, r.childLanes = Jc(e, o, n), t.memoizedState = Kc, Ic(e.child, r)) : (ko(t), n = e.child, e = n.sibling, n = Ai(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);
@@ -11547,17 +11547,17 @@ var ru = /* @__PURE__ */ u(((e) => {
}, e.mode), t.return = e, e.child = t;
}
function Zc(e, t) {
- return e = ki(22, e, null, t), e.lanes = 0, e;
+ return e = Oi(22, e, null, t), e.lanes = 0, 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;
+ return so(t, e.child, null, n), e = Xc(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
}
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({
+ if (n) return t.flags & 256 ? (ko(t), t.flags &= -257, Qc(e, t, c)) : t.memoizedState === null ? (Mo(), o = a.fallback, s = t.mode, a = Zc({
mode: "visible",
children: a.children
- }, 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)) {
+ }, s), o = Ni(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, so(t, e.child, null, c), a = t.child, a.memoizedState = qc(c), a.childLanes = Jc(e, r, c), t.memoizedState = Kc, Ic(null, a)) : (Mo(), t.child = e.child, t.flags |= 128, null);
+ if (ko(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, ua({
value: a,
@@ -11566,8 +11566,8 @@ var ru = /* @__PURE__ */ u(((e) => {
})), Qc(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 = q, r !== null && (a = _t(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, wi(e, a), Md(r, e, a), kc;
+ if (So.current !== null) return Qc(e, t, c);
+ if (r = ed, r !== null && (a = gt(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Ci(e, a), Md(r, e, a), kc;
return om(o) || Wd(), Qc(e, t, c);
}
return om(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, ea = lm(o.nextSibling), $i = t, U = !0, ta = null, na = !1, e !== null && Qi(t, e), t = Xc(t, a.children), t.flags |= 134221824, t);
@@ -11580,7 +11580,7 @@ var ru = /* @__PURE__ */ u(((e) => {
function tl(e) {
for (var t = null; e !== null;) {
var n = e.alternate;
- n !== null && Io(n) === null && (t = e), e = e.sibling;
+ n !== null && Lo(n) === null && (t = e), e = e.sibling;
}
return t;
}
@@ -11606,10 +11606,10 @@ var ru = /* @__PURE__ */ u(((e) => {
function il(e, t, n) {
var r = t.pendingProps, i = r.revealOrder, a = r.tail;
r = r.children;
- var o = No.current;
- if (t.flags & 128) return Po(t, o), null;
+ var o = Po.current;
+ if (t.flags & 128) return Fo(t, o), null;
var s = !!(o & 2);
- 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 (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, Fo(t, o), i === "backwards" && e !== null ? (rl(e), jc(e, t, r, n), rl(e)) : jc(e, t, r, n), r = U ? Hi : 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) {
@@ -11629,7 +11629,7 @@ var ru = /* @__PURE__ */ u(((e) => {
break;
case "unstable_legacy-backwards":
for (n = null, i = t.child, t.child = null; i !== null;) {
- if (e = i.alternate, e !== null && Io(e) === null) {
+ if (e = i.alternate, e !== null && Lo(e) === null) {
t.child = i;
break;
}
@@ -11659,7 +11659,7 @@ var ru = /* @__PURE__ */ u(((e) => {
}
if (e !== null && t.child !== e.child) throw Error(i(153));
if (t.child !== null) {
- 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;
+ 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;
n.sibling = null;
}
return t.child;
@@ -11670,30 +11670,30 @@ var ru = /* @__PURE__ */ u(((e) => {
function cl(e, t, n) {
switch (t.tag) {
case 3:
- Te(t, t.stateNode.containerInfo), ma(t, Ea, e.memoizedState.cache), ca();
+ we(t, t.stateNode.containerInfo), ma(t, Da, e.memoizedState.cache), ca();
break;
case 27:
case 5:
- De(t);
+ Ee(t);
break;
case 4:
- Te(t, t.stateNode.containerInfo);
+ we(t, t.stateNode.containerInfo);
break;
case 10:
ma(t, t.type, t.memoizedProps.value);
break;
case 31:
- if (t.memoizedState !== null) return t.flags |= 128, ko(t), null;
+ if (t.memoizedState !== null) return t.flags |= 128, Ao(t), null;
break;
case 13:
var r = t.memoizedState;
if (r !== null) {
- if (r.dehydrated !== null) return Oo(t), t.flags |= 128, null;
+ if (r.dehydrated !== null) return ko(t), t.flags |= 128, null;
r = va(e, t, n, !1);
var i = t.child.childLanes;
- return r || (n & i) !== 0 ? Yc(e, t, n) : (Oo(t), e = ol(e, t, n), e === null ? null : e.sibling);
+ return r || (n & i) !== 0 ? Yc(e, t, n) : (ko(t), e = ol(e, t, n), e === null ? null : e.sibling);
}
- Oo(t);
+ ko(t);
break;
case 19:
if (t.flags & 128) return il(e, t, n);
@@ -11701,10 +11701,10 @@ var ru = /* @__PURE__ */ u(((e) => {
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), Po(t, No.current), r) break;
+ if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), Fo(t, Po.current), r) break;
return null;
case 22: return t.lanes = 0, Fc(e, t, n, t.pendingProps);
- case 24: ma(t, Ea, e.memoizedState.cache);
+ case 24: ma(t, Da, e.memoizedState.cache);
}
return ol(e, t, n);
}
@@ -11715,29 +11715,29 @@ var ru = /* @__PURE__ */ u(((e) => {
if (!sl(e, n) && !(t.flags & 128)) return Ac = !1, cl(e, t, n);
Ac = !!(e.flags & 131072);
}
- } else Ac = !1, U && t.flags & 1048576 && Yi(t, Ui, t.index);
+ } else Ac = !1, U && t.flags & 1048576 && Yi(t, Hi, t.index);
switch (t.lanes = 0, t.tag) {
case 16:
a: {
var r = t.pendingProps;
- 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));
+ if (e = Za(t.elementType), t.type = e, typeof e == "function") ki(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 === ne) {
+ if (a === ee) {
t.tag = 11, t = Mc(null, t, e, r, n);
break a;
}
- if (a === ie) {
+ if (a === ne) {
t.tag = 14, t = Nc(null, t, e, r, n);
break a;
}
- if (a === te) {
+ if (a === N) {
t.tag = 10, t.type = e, t = al(null, t, n);
break a;
}
}
- throw t = me(e) || e, Error(i(306, t, ""));
+ throw t = fe(e) || e, Error(i(306, t, ""));
}
}
return t;
@@ -11745,12 +11745,12 @@ var ru = /* @__PURE__ */ u(((e) => {
case 1: return r = t.type, a = yc(r, t.pendingProps), Wc(e, t, r, a, n);
case 3:
a: {
- if (Te(t, t.stateNode.containerInfo), e === null) throw Error(i(387));
+ if (we(t, t.stateNode.containerInfo), e === null) throw Error(i(387));
r = t.pendingProps;
var o = t.memoizedState;
- a = o.element, uo(e, t), vo(t, r, null, n);
+ a = o.element, fo(e, t), yo(t, r, null, n);
var s = t.memoizedState;
- if (r = s.cache, ma(t, Ea, r), r !== o.cache && _a(t, [Ea], n, !0), _o(), r = s.element, o.isDehydrated) {
+ if (r = s.cache, ma(t, Da, r), r !== o.cache && _a(t, [Da], n, !0), vo(), r = s.element, o.isDehydrated) {
if (o = {
element: r,
isDehydrated: !1,
@@ -11760,7 +11760,7 @@ var ru = /* @__PURE__ */ u(((e) => {
break a;
}
if (r !== a) {
- a = zi(Error(i(424)), t), ua(a), t = Gc(e, t, r, n);
+ a = Ri(Error(i(424)), t), ua(a), t = Gc(e, t, r, n);
break a;
}
switch (e = t.stateNode.containerInfo, e.nodeType) {
@@ -11769,7 +11769,7 @@ var ru = /* @__PURE__ */ u(((e) => {
break;
default: e = e.nodeName === "HTML" ? e.ownerDocument.body : e;
}
- for (ea = lm(e.firstChild), $i = 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;
+ for (ea = lm(e.firstChild), $i = t, U = !0, ta = null, na = !0, n = co(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
} else {
if (ca(), r === a) {
t = ol(e, t, n);
@@ -11780,30 +11780,30 @@ var ru = /* @__PURE__ */ u(((e) => {
t = t.child;
}
return t;
- 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), $i = 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, $i = 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 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, Se.current, t)) : t.memoizedState = Nm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
+ case 27: return Ee(t), e === null && U && (r = t.stateNode = hm(t.type, t.pendingProps, Se.current), $i = 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, $i = t, ea = lm(r.firstChild), na = !1, a = !0)), a || ia(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 = 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, $i = 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 4: return we(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = so(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 = W(a), r = r(a), t.flags |= 1, jc(e, t, r, n), t.child;
+ 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 = W(Ea), e === null ? (a = Va(), a === null && (a = q, o = Da(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
+ case 24: return ba(t), r = xa(Da), e === null ? (a = Ha(), a === null && (a = ed, o = Oa(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
parent: r,
cache: a
- }, lo(t), ma(t, Ea, 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, Ea, r), r !== a.cache && _a(t, [Ea], n, !0)) : (a = {
+ }, uo(t), ma(t, Da, a)) : ((e.lanes & n) !== 0 && (fo(e, t), yo(t, null, null, n), vo()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, ma(t, Da, r), r !== a.cache && _a(t, [Da], n, !0)) : (a = {
parent: r,
cache: r
- }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), ma(t, Ea, r))), jc(e, t, t.pendingProps.children, n), t.child;
+ }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), ma(t, Da, r))), jc(e, t, t.pendingProps.children, n), t.child;
case 30: return t.stateNode === null && (t.stateNode = {
autoName: null,
paired: null,
@@ -11823,7 +11823,7 @@ var ru = /* @__PURE__ */ u(((e) => {
if (e.flags |= 16777216, (i & 335544128) === i) {
if (e.stateNode.complete) e.flags |= 8192;
else if (Vd()) e.flags |= 8192;
- else throw Za = qa, Ga;
+ else throw Qa = Ja, Ka;
}
} else e.flags &= -16777217;
}
@@ -11831,11 +11831,11 @@ var ru = /* @__PURE__ */ u(((e) => {
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 Za = qa, Ga;
+ else throw Qa = Ja, Ka;
}
}
function pl(e, t) {
- t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : dt(), e.lanes |= t, ld |= t);
+ t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : ut(), e.lanes |= t, ud |= t);
}
function ml(e, t) {
if (!U) switch (e.tailMode) {
@@ -11849,13 +11849,13 @@ var ru = /* @__PURE__ */ u(((e) => {
n === null ? e.tail = null : n.sibling = null;
}
}
- function hl(e) {
+ function K(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 gl(e, t, n) {
+ function hl(e, t, n) {
var r = t.pendingProps;
switch (Zi(t), t.tag) {
case 16:
@@ -11866,32 +11866,32 @@ var ru = /* @__PURE__ */ u(((e) => {
case 8:
case 12:
case 9:
- 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(Ea), 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 14: return K(t), null;
+ case 1: return K(t), null;
+ case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), ha(Da), Te(), 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())), K(t), null;
case 26:
var a = t.type, o = t.memoizedState;
- 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;
+ return e === null ? (ul(t), o === null ? (K(t), dl(t, a, null, r, n)) : (K(t), fl(t, o))) : o ? o === e.memoizedState ? (K(t), t.flags &= -16777217) : (ul(t), K(t), fl(t, o)) : (e = e.memoizedProps, e !== r && ul(t), K(t), dl(t, a, e, r, n)), null;
case 27:
- if (Oe(t), n = Ce.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ul(t);
+ if (De(t), n = Se.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 hl(t), t.subtreeFlags &= -33554433, null;
+ return K(t), t.subtreeFlags &= -33554433, null;
}
- e = xe.current, sa(t) ? aa(t, e) : (e = hm(a, r, n), t.stateNode = e, ul(t));
+ e = be.current, sa(t) ? aa(t, e) : (e = hm(a, r, n), t.stateNode = e, ul(t));
}
- return hl(t), t.subtreeFlags &= -33554433, null;
+ return K(t), t.subtreeFlags &= -33554433, null;
case 5:
- if (Oe(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ul(t);
+ if (De(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 hl(t), t.subtreeFlags &= -33554433, null;
+ return K(t), t.subtreeFlags &= -33554433, null;
}
- if (o = xe.current, sa(t)) aa(t, o);
+ if (o = be.current, sa(t)) aa(t, o);
else {
- var s = lp(Ce.current);
+ var s = lp(Se.current);
switch (o) {
case 1:
o = s.createElementNS("http://www.w3.org/2000/svg", a);
@@ -11915,7 +11915,7 @@ var ru = /* @__PURE__ */ u(((e) => {
default: o = typeof r.is == "string" ? s.createElement(a, { is: r.is }) : s.createElement(a);
}
}
- o[St] = t, o[Ct] = r;
+ o[St] = t, o[L] = 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) {
@@ -11945,12 +11945,12 @@ var ru = /* @__PURE__ */ u(((e) => {
r && ul(t);
}
}
- return hl(t), t.subtreeFlags &= -33554433, dl(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
+ return K(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 && ul(t);
else {
if (typeof r != "string" && t.stateNode === null) throw Error(i(166));
- if (e = Ce.current, sa(t)) {
+ if (e = Se.current, sa(t)) {
if (e = t.stateNode, n = t.memoizedProps, r = null, a = $i, a !== null) switch (a.tag) {
case 27:
case 5: r = a.memoizedProps;
@@ -11958,7 +11958,7 @@ var ru = /* @__PURE__ */ u(((e) => {
e[St] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || $f(e.nodeValue, n)), e || ia(t, !0);
} else e = lp(e).createTextNode(r), e[St] = t, t.stateNode = e;
}
- return hl(t), null;
+ return K(t), null;
case 31:
if (n = t.memoizedState, e === null || e.memoizedState !== null) {
if (r = sa(t), n !== null) {
@@ -11967,12 +11967,12 @@ var ru = /* @__PURE__ */ u(((e) => {
if (e = t.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(557));
e[St] = t;
} else ca(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- hl(t), e = !1;
+ K(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 (!e) return t.flags & 256 ? (No(t), t) : (No(t), null);
if (t.flags & 128) throw Error(i(558));
}
- return hl(t), null;
+ return K(t), null;
case 13:
if (r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
if (a = sa(t), r !== null && r.dehydrated !== null) {
@@ -11981,32 +11981,32 @@ var ru = /* @__PURE__ */ u(((e) => {
if (a = t.memoizedState, a = a === null ? null : a.dehydrated, !a) throw Error(i(317));
a[St] = t;
} else ca(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- hl(t), a = !1;
+ K(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);
+ if (!a) return t.flags & 256 ? (No(t), t) : (No(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 && Uf(t.stateNode.containerInfo), t.flags |= 67108864, hl(t), null;
- case 10: return ha(t.type), hl(t), null;
+ return No(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), K(t), null);
+ case 4: return Te(), e === null && Uf(t.stateNode.containerInfo), t.flags |= 67108864, K(t), null;
+ case 10: return ha(t.type), K(t), null;
case 19:
- if (Fo(t), r = t.memoizedState, r === null) return hl(t), null;
+ if (Io(t), r = t.memoizedState, r === null) return K(t), null;
if (a = !!(t.flags & 128), o = r.rendering, o === null) {
if (a) ml(r, !1);
else {
if (ad !== 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 && Ji(t, r.treeForkCount), t.child;
+ if (o = Lo(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;) ji(n, e), n = n.sibling;
+ return Fo(t, Po.current & 1 | 2), U && Ji(t, r.treeForkCount), t.child;
}
e = e.sibling;
}
- r.tail !== null && Ve() > Q && (t.flags |= 128, a = !0, ml(r, !1), t.lanes = 4194304);
+ r.tail !== null && Be() > hd && (t.flags |= 128, a = !0, ml(r, !1), t.lanes = 4194304);
}
} else {
if (!a) {
- 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 > Q && n !== 536870912 && (t.flags |= 128, a = !0, ml(r, !1), t.lanes = 4194304);
+ if (e = Lo(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 K(t), null;
+ } else 2 * Be() - r.renderingStartTime > hd && 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);
}
@@ -12022,79 +12022,79 @@ var ru = /* @__PURE__ */ u(((e) => {
}
n = !0;
}
- 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, F(Eo, t), F(No, n), Do === null && (Do = t)), U && Ji(t, r.treeForkCount), e;
+ return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = Be(), e.sibling = null, o = Po.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || U ? Fo(t, o) : (n = o, ye(Do, t), ye(Po, n), Oo === null && (Oo = t)), U && Ji(t, r.treeForkCount), e;
}
- return hl(t), null;
+ return K(t), null;
case 22:
- 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 && be(Ba), null;
- case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), ha(Ea), hl(t), null;
+ case 23: return No(t), Eo(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (K(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : K(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 && ve(Va), null;
+ case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), ha(Da), K(t), null;
case 25: return null;
- case 30: return t.flags |= 33554432, hl(t), null;
+ case 30: return t.flags |= 33554432, K(t), null;
}
throw Error(i(156, t.tag));
}
- function _l(e, t) {
+ function gl(e, t) {
switch (Zi(t), t.tag) {
case 1: return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 3: return ha(Ea), Ee(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
+ case 3: return ha(Da), Te(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
case 26:
case 27:
- case 5: return Oe(t), null;
+ case 5: return De(t), null;
case 31:
if (t.memoizedState !== null) {
- if (Mo(t), t.alternate === null) throw Error(i(340));
+ if (No(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 (Mo(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
+ if (No(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
if (t.alternate === null) throw Error(i(340));
ca();
}
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : 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 19: return Io(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 ha(t.type), null;
case 22:
- case 23: return Mo(t), To(), e !== null && be(Ba), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 24: return ha(Ea), null;
+ case 23: return No(t), Eo(), e !== null && ve(Va), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
+ case 24: return ha(Da), null;
case 25: return null;
default: return null;
}
}
- function vl(e, t) {
+ function _l(e, t) {
switch (Zi(t), t.tag) {
case 3:
- ha(Ea), Ee();
+ ha(Da), Te();
break;
case 26:
case 27:
case 5:
- Oe(t);
+ De(t);
break;
case 4:
- Ee();
+ Te();
break;
case 31:
- t.memoizedState !== null && Mo(t);
+ t.memoizedState !== null && No(t);
break;
case 13:
- Mo(t);
+ No(t);
break;
case 19:
- Fo(t);
+ Io(t);
break;
case 10:
ha(t.type);
break;
case 22:
case 23:
- Mo(t), To(), e !== null && be(Ba);
+ No(t), Eo(), e !== null && ve(Va);
break;
- case 24: ha(Ea);
+ case 24: ha(Da);
}
}
- function yl(e, t) {
+ function vl(e, t) {
try {
var n = t.updateQueue, r = n === null ? null : n.lastEffect;
if (r !== null) {
@@ -12113,7 +12113,7 @@ var ru = /* @__PURE__ */ u(((e) => {
ff(t, t.return, e);
}
}
- function bl(e, t, n) {
+ function yl(e, t, n) {
try {
var r = t.updateQueue, i = r === null ? null : r.lastEffect;
if (i !== null) {
@@ -12139,18 +12139,18 @@ var ru = /* @__PURE__ */ u(((e) => {
ff(t, t.return, e);
}
}
- function xl(e) {
+ function bl(e) {
var t = e.updateQueue;
if (t !== null) {
var n = e.stateNode;
try {
- bo(t, n);
+ xo(t, n);
} catch (t) {
ff(e, e.return, t);
}
}
}
- function Sl(e, t, n) {
+ function xl(e, t, n) {
n.props = yc(e.type, e.memoizedProps), n.state = e.memoizedState;
try {
n.componentWillUnmount();
@@ -12158,7 +12158,7 @@ var ru = /* @__PURE__ */ u(((e) => {
ff(e, t, n);
}
}
- function Cl(e, t) {
+ function Sl(e, t) {
try {
var n = e.ref;
if (n !== null) {
@@ -12169,7 +12169,7 @@ var ru = /* @__PURE__ */ u(((e) => {
var r = e.stateNode;
break;
case 30:
- var i = e.stateNode, a = mi(e.memoizedProps, i);
+ var i = e.stateNode, a = pi(e.memoizedProps, i);
(i.ref === null || i.ref.name !== a) && (i.ref = Pp(a)), r = i.ref;
break;
case 7:
@@ -12187,7 +12187,7 @@ var ru = /* @__PURE__ */ u(((e) => {
ff(e, t, n);
}
}
- function wl(e, t) {
+ function Cl(e, t) {
var n = e.ref, r = e.refCleanup;
if (n !== null) {
if (typeof r == "function") try {
@@ -12205,22 +12205,22 @@ var ru = /* @__PURE__ */ u(((e) => {
else n.current = null;
}
}
- function Tl(e, t) {
+ function wl(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 && (kl(t) && em(e.stateNode, t.stateNode), !Ol(t));) t = t.return;
+ for (var t = e.return; t !== null && (Ol(t) && tm(e.stateNode, t.stateNode), !Dl(t));) t = t.return;
}
function Dl(e) {
- for (var t = e.return; t !== null && (kl(t) && tm(e.stateNode, t.stateNode), !Ol(t));) t = t.return;
- }
- function Ol(e) {
return e.tag === 5 || e.tag === 3 || e.tag === 27;
}
- function kl(e) {
+ function Ol(e) {
return e && e.tag === 7 && e.stateNode !== null;
}
- function Al(e) {
+ function kl(e) {
var t = e.type, n = e.memoizedProps, r = e.stateNode;
try {
a: switch (t) {
@@ -12236,21 +12236,21 @@ var ru = /* @__PURE__ */ u(((e) => {
ff(e, e.return, t);
}
}
- function jl(e, t, n) {
+ function Al(e, t, n) {
try {
var r = e.stateNode;
- ip(r, e.type, n, t), r[Ct] = t;
+ ip(r, e.type, n, t), r[L] = t;
} catch (t) {
ff(e, e.return, t);
}
}
- function Ml(e) {
+ function jl(e) {
return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Sp(e.type) || e.tag === 4;
}
- function Nl(e) {
+ function Ml(e) {
a: for (;;) {
for (; e.sibling === null;) {
- if (e.return === null || Ml(e.return)) return null;
+ if (e.return === null || jl(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;) {
@@ -12260,39 +12260,39 @@ var ru = /* @__PURE__ */ u(((e) => {
if (!(e.flags & 2)) return e.stateNode;
}
}
- function Pl(e, t, n, r) {
+ function Nl(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 = hn)), Tl(e, r), B = !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;
+ 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;
}
- function Fl(e, t, n, r) {
+ function Pl(e, t, n, r) {
var i = e.tag;
- if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), Tl(e, r), B = !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;
+ 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;
}
- function Il(e) {
+ function Fl(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;
+ np(t, r, n), t[St] = e, t[L] = n;
} catch (t) {
ff(e, e.return, t);
}
}
- var Ll = !1, Rl = null;
- function zl(e) {
- (e.tag === 30 || e.subtreeFlags & 33554432) && (Ll = !0);
+ var Il = !1, Ll = null;
+ function Rl(e) {
+ (e.tag === 30 || e.subtreeFlags & 33554432) && (Il = !0);
}
- var Bl = null;
- function Vl() {
- var e = Bl;
- return Bl = null, e;
+ var zl = null;
+ function Bl() {
+ var e = zl;
+ return zl = null, e;
}
- var Hl = 0;
- function Ul(e, t, n, r, i) {
- return Hl = 0, Wl(e.child, t, n, r, i);
+ var Vl = 0;
+ function Hl(e, t, n, r, i) {
+ return Vl = 0, Ul(e.child, t, n, r, i);
}
- function Wl(e, t, n, r, i) {
+ function Ul(e, t, n, r, i) {
for (var a = !1; e !== null;) {
if (e.tag === 5) {
var o = e.stateNode;
@@ -12300,36 +12300,36 @@ var ru = /* @__PURE__ */ u(((e) => {
var s = Op(o);
r.push(s), s.view && (a = !0);
} else a || Op(o).view && (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));
+ 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));
e = e.sibling;
}
return a;
}
- 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 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 Kl(e) {
+ function Gl(e) {
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
- if ((e.tag !== 22 || e.memoizedState === null) && (Kl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {
+ if ((e.tag !== 22 || e.memoizedState === null) && (Gl(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 = gi(t.default, t.share), t !== "none" && (Ul(e, n, t, null, !1) || Gl(e.child, !1));
+ t = hi(t.default, t.share), t !== "none" && (Hl(e, n, t, null, !1) || Wl(e.child, !1));
}
e = e.sibling;
}
}
- function ql(e, t) {
+ function Kl(e, t) {
if (e.tag === 30) {
- 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 || jd(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;
+ 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;
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
if (e.tag !== 22 || e.memoizedState === null) {
if (e.tag === 30 && e.flags & 18874368) {
@@ -12337,59 +12337,59 @@ var ru = /* @__PURE__ */ u(((e) => {
if (r != null && r !== "auto") {
var i = t.get(r);
if (i !== void 0) {
- 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, jd(e, n.onShare)) : Gl(e.child, !1)), t.delete(r), t.size === 0) break;
+ 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;
}
}
}
- Jl(e);
+ ql(e);
}
e = e.sibling;
}
}
}
- function Yl(e) {
+ function Jl(e) {
if (e.tag === 30) {
- 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 ? jd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Rl.delete(n), jd(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);
+ 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);
}
- function Xl(e) {
+ function Yl(e) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
- 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);
+ 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);
e = e.sibling;
}
}
- function Zl(e) {
+ function Xl(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, Gl(e.child, !1));
+ t.paired !== null && (t.paired = null, Wl(e.child, !1));
}
- Zl(e);
+ Xl(e);
}
e = e.sibling;
}
}
- function Ql(e) {
- 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 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 $l(e) {
- for (e = e.child; e !== null;) e.tag === 30 ? Gl(e.child, !1) : e.subtreeFlags & 33554432 && $l(e), e = e.sibling;
+ function Ql(e) {
+ for (e = e.child; e !== null;) e.tag === 30 ? Wl(e.child, !1) : e.subtreeFlags & 33554432 && Ql(e), e = e.sibling;
}
- function eu(e, t, n, r, i, a, o) {
+ function $l(e, t, n, r, i, a, o) {
for (var s = !1; t !== null;) {
if (t.tag === 5) {
var c = t.stateNode;
- if (a !== null && Hl < a.length) {
- var l = a[Hl], u = Op(c);
+ if (a !== null && Vl < a.length) {
+ var l = a[Vl], u = Op(c);
(l.view || u.view) && (s = !0);
var d;
if (d = !(e.flags & 4)) {
@@ -12402,30 +12402,30 @@ var ru = /* @__PURE__ */ u(((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, 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));
+ 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));
t = t.sibling;
}
return s;
}
- function tu(e, t) {
+ function eu(e, t) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
- var n = e.memoizedProps, r = e.stateNode, i = mi(n, r), a = gi(n.default, n.update);
+ var n = e.memoizedProps, r = e.stateNode, i = pi(n, r), a = hi(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;
- Hl = 0, i = eu(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || jd(e, n.onUpdate));
- } else e.subtreeFlags & 33554432 && tu(e, t);
+ 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);
e = e.sibling;
}
}
- var nu = !1, ru = !1, au = !1, ou = !1, su = typeof WeakSet == "function" ? WeakSet : Set, cu = null, lu = !1, uu = !1, du = !1, fu = !1;
- function pu(e, t, n) {
- if (e = e.containerInfo, sp = gh, e = Wr(e), Gr(e)) {
+ var tu = !1, nu = !1, ru = !1, iu = !1, au = typeof WeakSet == "function" ? WeakSet : Set, su = null, cu = !1, lu = !1, uu = !1, du = !1;
+ function fu(e, t, n) {
+ if (e = e.containerInfo, sp = gh, e = Ur(e), Wr(e)) {
if ("selectionStart" in e) var r = {
start: e.selectionStart,
end: e.selectionEnd
@@ -12467,28 +12467,28 @@ var ru = /* @__PURE__ */ u(((e) => {
for (cp = {
focusedElem: e,
selectionRange: r
- }, gh = !1, n = (n & 335544064) === n, cu = t, t = n ? 9270 : 1024; cu !== null;) {
- if (e = cu, 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);
+ }, 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 && Jl(r[a]);
+ if (e.alternate === null && e.flags & 2) n && Rl(e), pu(n);
else {
if (e.tag === 22) {
if (r = e.alternate, e.memoizedState !== null) {
- r !== null && r.memoizedState === null && n && Yl(r), mu(n);
+ r !== null && r.memoizedState === null && n && Jl(r), pu(n);
continue;
}
if (r !== null && r.memoizedState !== null) {
- n && zl(e), mu(n);
+ n && Rl(e), pu(n);
continue;
}
}
- r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, cu = r) : (n && Xl(e), mu(n));
+ r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, su = r) : (n && Yl(e), pu(n));
}
}
- Rl = null;
+ Ll = null;
}
- function mu(e) {
- for (; cu !== null;) {
- var t = cu, n = e, r = t.alternate, a = t.flags;
+ function pu(e) {
+ for (; su !== null;) {
+ var t = su, n = e, r = t.alternate, a = t.flags;
switch (t.tag) {
case 0:
case 11:
@@ -12525,27 +12525,27 @@ var ru = /* @__PURE__ */ u(((e) => {
case 4:
case 17: break;
case 30:
- 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));
+ 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));
break;
default: if (a & 1024) throw Error(i(163));
}
if (r = t.sibling, r !== null) {
- r.return = t.return, cu = r;
+ r.return = t.return, su = r;
break;
}
- cu = t.return;
+ su = t.return;
}
}
- function hu(e, t, n) {
+ function mu(e, t, n) {
var r = n.flags;
switch (n.tag) {
case 0:
case 11:
case 15:
- Fu(e, n), r & 4 && yl(5, n);
+ Pu(e, n), r & 4 && vl(5, n);
break;
case 1:
- if (Fu(e, n), r & 4) {
+ if (Pu(e, n), r & 4) {
if (e = n.stateNode, t === null) try {
e.componentDidMount();
} catch (e) {
@@ -12561,10 +12561,10 @@ var ru = /* @__PURE__ */ u(((e) => {
}
}
}
- r & 64 && xl(n), r & 512 && Cl(n, n.return);
+ r & 64 && bl(n), r & 512 && Sl(n, n.return);
break;
case 3:
- if (Fu(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
+ if (Pu(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
if (t = null, n.child !== null) switch (n.child.tag) {
case 27:
case 5:
@@ -12573,43 +12573,43 @@ var ru = /* @__PURE__ */ u(((e) => {
case 1: t = n.child.stateNode;
}
try {
- bo(e, t);
+ xo(e, t);
} catch (e) {
ff(n, n.return, e);
}
}
break;
- case 27: t === null && r & 4 && Il(n);
+ case 27: t === null && r & 4 && Fl(n);
case 26:
case 5:
- Fu(e, n), t === null && r & 4 && Al(n), r & 512 && Cl(n, n.return);
+ Pu(e, n), t === null && r & 4 && kl(n), r & 512 && Sl(n, n.return);
break;
case 12:
- Fu(e, n);
+ Pu(e, n);
break;
case 31:
- Fu(e, n), r & 4 && wu(e, n);
+ Pu(e, n), r & 4 && Cu(e, n);
break;
case 13:
- Fu(e, n), r & 4 && Tu(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = gf.bind(null, n), cm(e, n))));
+ 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))));
break;
case 22:
- 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;
+ 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;
}
break;
case 30:
- Fu(e, n), r & 512 && Cl(n, n.return);
+ Pu(e, n), r & 512 && Sl(n, n.return);
break;
- case 7: r & 512 && Cl(n, n.return);
- default: Fu(e, n);
+ case 7: r & 512 && Sl(n, n.return);
+ default: Pu(e, n);
}
}
- function gu(e, t) {
- for (e = e.child; e !== null;) _u(e, t), e = e.sibling;
+ function hu(e, t) {
+ for (e = e.child; e !== null;) gu(e, t), e = e.sibling;
}
- function _u(e, t) {
+ function gu(e, t) {
switch (e.tag) {
case 5:
case 26:
@@ -12625,7 +12625,7 @@ var ru = /* @__PURE__ */ u(((e) => {
} catch (t) {
ff(e, e.return, t);
}
- vu(e, t);
+ _u(e, t);
break;
case 6:
try {
@@ -12644,95 +12644,95 @@ var ru = /* @__PURE__ */ u(((e) => {
break;
case 22:
case 23:
- e.memoizedState === null && gu(e, t);
+ e.memoizedState === null && hu(e, t);
break;
- default: gu(e, t);
+ default: hu(e, t);
}
}
- function vu(e, t) {
+ function _u(e, t) {
if (e.subtreeFlags & 67108864) for (e = e.child; e !== null;) {
a: {
var n = e, r = t;
switch (n.tag) {
case 4:
- _u(n, r);
+ gu(n, r);
break a;
case 22:
- n.memoizedState === null && vu(n, r);
+ n.memoizedState === null && _u(n, r);
break a;
- default: vu(n, r);
+ default: _u(n, r);
}
}
e = e.sibling;
}
}
- function yu(e) {
+ function vu(e) {
var t = e.alternate;
- t !== null && (e.alternate = null, yu(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;
+ 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 bu = null, xu = !1;
- function Su(e, t, n) {
- for (n = n.child; n !== null;) Cu(e, t, n), n = n.sibling;
+ var yu = null, bu = !1;
+ function xu(e, t, n) {
+ for (n = n.child; n !== null;) Su(e, t, n), n = n.sibling;
}
- function Cu(e, t, n) {
- if (Ze && typeof Ze.onCommitFiberUnmount == "function") try {
- Ze.onCommitFiberUnmount(Xe, n);
+ function Su(e, t, n) {
+ if (Xe && typeof Xe.onCommitFiberUnmount == "function") try {
+ Xe.onCommitFiberUnmount(Ye, n);
} catch {}
switch (n.tag) {
case 26:
- ru || wl(n, t), Su(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !ru && (n = n.stateNode, n.parentNode.removeChild(n));
+ nu || Cl(n, t), xu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !nu && (n = n.stateNode, n.parentNode.removeChild(n));
break;
case 27:
- 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;
+ 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;
break;
- case 5: ru || wl(n, t), Dl(n);
+ case 5: nu || Cl(n, t), El(n);
case 6:
- 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), B = !0;
+ 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;
} catch (e) {
ff(n, t, e);
}
else try {
- bu.removeChild(n.stateNode), B = !0;
+ yu.removeChild(n.stateNode), B = !0;
} catch (e) {
ff(n, t, e);
}
}
break;
case 18:
- 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));
+ 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));
break;
case 4:
- r = bu, i = xu, bu = n.stateNode.containerInfo, xu = !0, Su(e, t, n), bu = r, xu = i;
+ r = yu, i = bu, yu = n.stateNode.containerInfo, bu = !0, xu(e, t, n), yu = r, bu = i;
break;
case 0:
case 11:
case 14:
case 15:
- bl(2, n, t), ru || bl(4, n, t), Su(e, t, n);
+ yl(2, n, t), nu || yl(4, n, t), xu(e, t, n);
break;
case 1:
- ru || (wl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && Sl(n, t, r)), Su(e, t, n);
+ nu || (Cl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && xl(n, t, r)), xu(e, t, n);
break;
case 21:
- Su(e, t, n);
+ xu(e, t, n);
break;
case 22:
- ru = (r = ru) || n.memoizedState !== null, Su(e, t, n), ru = r;
+ nu = (r = nu) || n.memoizedState !== null, xu(e, t, n), nu = r;
break;
case 30:
- wl(n, t), Su(e, t, n);
+ Cl(n, t), xu(e, t, n);
break;
case 7:
- ru || wl(n, t), Su(e, t, n);
+ nu || Cl(n, t), xu(e, t, n);
break;
- default: Su(e, t, n);
+ default: xu(e, t, n);
}
}
- function wu(e, t) {
+ function Cu(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {
e = e.dehydrated;
try {
@@ -12742,26 +12742,26 @@ var ru = /* @__PURE__ */ u(((e) => {
}
}
}
- function Tu(e, t) {
+ function wu(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);
}
}
- function Eu(e) {
+ function Tu(e) {
switch (e.tag) {
case 31:
case 13:
case 19:
var t = e.stateNode;
- return t === null && (t = e.stateNode = new su()), t;
- case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new su()), t;
+ 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;
default: throw Error(i(435, e.tag));
}
}
- function Du(e, t) {
- var n = Eu(e);
+ function Eu(e, t) {
+ var n = Tu(e);
t.forEach(function(t) {
if (!n.has(t)) {
n.add(t);
@@ -12770,7 +12770,7 @@ var ru = /* @__PURE__ */ u(((e) => {
}
});
}
- function Ou(e, t, n) {
+ function Du(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;
@@ -12778,27 +12778,27 @@ var ru = /* @__PURE__ */ u(((e) => {
switch (l.tag) {
case 27:
if (Sp(l.type)) {
- bu = l.stateNode, xu = !1;
+ yu = l.stateNode, bu = !1;
break a;
}
break;
case 5:
- bu = l.stateNode, xu = !1;
+ yu = l.stateNode, bu = !1;
break a;
case 3:
case 4:
- bu = l.stateNode.containerInfo, xu = !0;
+ yu = l.stateNode.containerInfo, bu = !0;
break a;
}
l = l.return;
}
- 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 (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 (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Au(t, e, n), t = t.sibling;
+ if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) ku(t, e, n), t = t.sibling;
}
- var ku = null;
- function Au(e, t, n) {
+ var Ou = null;
+ function ku(e, t, n) {
var r = e.alternate, a = e.flags;
switch (e.tag) {
case 0:
@@ -12809,23 +12809,23 @@ var ru = /* @__PURE__ */ u(((e) => {
var s = r[o];
s.ref.impl = s.nextImpl;
}
- Ou(t, e, n), ju(e), a & 4 && (bl(3, e, e.return), yl(3, e), bl(5, e, e.return));
+ Du(t, e, n), Au(e), a & 4 && (yl(3, e, e.return), vl(3, e), yl(5, e, e.return));
break;
case 1:
- 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))));
+ 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))));
break;
case 26:
- if (o = ku, Ou(t, e, n), ju(e), a & 512 && (ru || r === null || wl(r, r.return)), a & 4) {
+ if (o = Ou, Du(t, e, n), Au(e), a & 512 && (nu || r === null || Cl(r, r.return)), a & 4) {
if (a = r === null ? null : r.memoizedState, n = e.memoizedState, r === null) {
if (n === null) {
if (e.stateNode === null) {
- if (nu) e.stateNode = fp(e.type, e.memoizedProps, t.containerInfo, e);
+ if (tu) 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[kt] || 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, Pt(r), t = r;
+ 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, Nt(r), t = r;
break a;
case "link":
if (o = Gm("link", "href", a).get(t + (n.href || ""))) {
@@ -12847,31 +12847,31 @@ var ru = /* @__PURE__ */ u(((e) => {
break;
default: throw Error(i(468, t));
}
- r[St] = e, Pt(r), t = r;
+ r[St] = e, Nt(r), t = r;
}
e.stateNode = t;
}
- } else nu || Km(o, e.type, e.stateNode);
+ } else tu || Km(o, e.type, e.stateNode);
} else 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));
+ } 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));
}
break;
case 27:
- 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);
+ 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);
break;
case 5:
- if (o = au, au = !1, Ou(t, e, n), au = o, ju(e), a & 512 && (ru || r === null || wl(r, r.return)), e.flags & 32) {
+ 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) {
t = e.stateNode;
try {
- sn(t, ""), B = !0;
+ on(t, ""), B = !0;
} catch (t) {
ff(e, e.return, t);
}
}
- a & 4 && e.stateNode != null && (t = e.memoizedProps, jl(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (ou = !0);
+ a & 4 && e.stateNode != null && (t = e.memoizedProps, Al(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (iu = !0);
break;
case 6:
- if (Ou(t, e, n), ju(e), a & 4) {
+ if (Du(t, e, n), Au(e), a & 4) {
if (e.stateNode === null) throw Error(i(162));
t = e.memoizedProps, n = e.stateNode;
try {
@@ -12882,47 +12882,47 @@ var ru = /* @__PURE__ */ u(((e) => {
}
break;
case 3:
- if (B = !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 {
+ 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 {
Hh(t.containerInfo);
} catch (t) {
ff(e, e.return, t);
}
- ou && (ou = !1, Mu(e)), B = !1;
+ iu && (iu = !1, ju(e)), B = !1;
break;
case 4:
- a = au, au = nu, r = Ut(), o = ku, ku = bm(e.stateNode.containerInfo), Ou(t, e, n), ju(e), ku = o, B && uu && (du = !0), B = r, au = a;
+ a = ru, ru = tu, r = Ut(), o = Ou, Ou = bm(e.stateNode.containerInfo), Du(t, e, n), Au(e), Ou = o, B && lu && (uu = !0), B = r, ru = a;
break;
case 12:
- Ou(t, e, n), ju(e);
+ Du(t, e, n), Au(e);
break;
case 31:
- Ou(t, e, n), ju(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Du(e, t)));
+ Du(t, e, n), Au(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Eu(e, t)));
break;
case 13:
- Ou(t, e, n), ju(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (pd = Ve()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Du(e, t)));
+ Du(t, e, n), Au(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (pd = Be()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Eu(e, t)));
break;
case 22:
o = e.memoizedState !== null, s = r !== null && r.memoizedState !== null;
- var c = nu, l = ru, u = au;
- nu = c || o, au = u || o, ru = l || s, Ou(t, e, n), ru = l, au = 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 && au || gu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Du(e, n))));
+ 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))));
break;
case 19:
- Ou(t, e, n), ju(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Du(e, t)));
+ Du(t, e, n), Au(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Eu(e, t)));
break;
case 30:
- a & 512 && (ru || r === null || wl(r, r.return)), a = Ut(), o = uu, s = (n & 335544064) === n, c = e.memoizedProps, uu = s && gi(c.default, c.update) !== "none", Ou(t, e, n), ju(e), s && r !== null && B && (e.flags |= 4), uu = o, B = a;
+ a & 512 && (nu || r === null || Cl(r, r.return)), a = Ut(), o = lu, s = (n & 335544064) === n, c = e.memoizedProps, lu = s && hi(c.default, c.update) !== "none", Du(t, e, n), Au(e), s && r !== null && B && (e.flags |= 4), lu = o, B = a;
break;
case 21: break;
- 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);
+ 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);
}
}
- function ju(e) {
+ function Au(e) {
var t = e.flags;
if (t & 2) {
try {
for (var n, r = e.return; r !== null;) {
- if (Ml(r)) {
+ if (jl(r)) {
n = r;
break;
}
@@ -12930,11 +12930,11 @@ var ru = /* @__PURE__ */ u(((e) => {
}
r = null;
for (var a = e.return; a !== null;) {
- if (kl(a)) {
+ if (Ol(a)) {
var o = a.stateNode;
r === null ? r = [o] : r.push(o);
}
- if (Ol(a)) break;
+ if (Dl(a)) break;
a = a.return;
}
var s = r;
@@ -12942,16 +12942,16 @@ var ru = /* @__PURE__ */ u(((e) => {
switch (n.tag) {
case 27:
var c = n.stateNode;
- Fl(e, Nl(e), c, s);
+ Pl(e, Ml(e), c, s);
break;
case 5:
var l = n.stateNode;
- n.flags & 32 && (sn(l, ""), n.flags &= -33), Fl(e, Nl(e), l, s);
+ n.flags & 32 && (on(l, ""), n.flags &= -33), Pl(e, Ml(e), l, s);
break;
case 3:
case 4:
var u = n.stateNode.containerInfo;
- Pl(e, Nl(e), u, s);
+ Nl(e, Ml(e), u, s);
break;
default: throw Error(i(161));
}
@@ -12962,23 +12962,23 @@ var ru = /* @__PURE__ */ u(((e) => {
}
t & 4096 && (e.flags &= -4097);
}
- function Mu(e) {
+ function ju(e) {
if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {
var t = e;
- Mu(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, gh = !0, t.reset(), gh = !1), e = e.sibling;
+ ju(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, gh = !0, t.reset(), gh = !1), e = e.sibling;
}
}
- 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 Mu(e, t) {
+ if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Nu(t, e), t = t.sibling;
+ else eu(t, !1);
}
- function Pu(e, t) {
+ function Nu(e, t) {
var n = e.alternate;
- if (n === null) ql(e, !1);
+ if (n === null) Kl(e, !1);
else switch (e.tag) {
case 3:
- if (fu = lu = !1, Vl(), Nu(t, e), !lu && !du) {
- if (e = Bl, e !== null) for (var r = 0; r < e.length; r += 3) {
+ if (du = cu = !1, Bl(), Mu(t, e), !cu && !uu) {
+ if (e = zl, 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({
@@ -13004,33 +13004,33 @@ var ru = /* @__PURE__ */ u(((e) => {
duration: 0,
fill: "forwards",
pseudoElement: "::view-transition"
- })), fu = !0;
+ })), du = !0;
}
- Bl = null;
+ zl = null;
break;
case 5:
- Nu(t, e);
+ Mu(t, e);
break;
case 4:
- r = lu, lu = !1, Nu(t, e), lu && (du = !0), lu = r;
+ r = cu, cu = !1, Mu(t, e), cu && (uu = !0), cu = r;
break;
case 22:
- e.memoizedState === null && (n.memoizedState === null ? Nu(t, e) : ql(e, !1));
+ e.memoizedState === null && (n.memoizedState === null ? Mu(t, e) : Kl(e, !1));
break;
case 30:
- r = lu, i = Vl(), lu = !1, Nu(t, e), lu && (e.flags |= 4);
+ r = cu, i = Bl(), cu = !1, Mu(t, e), cu && (e.flags |= 4);
var a = e.memoizedProps, o = e.stateNode;
- 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 ? (jd(e, e.memoizedProps.onUpdate), Bl = i) : i !== null && (i.push.apply(i, Bl), Bl = i), lu = e.flags & 32 ? !0 : r;
+ 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), cu = e.flags & 32 ? !0 : r;
break;
- default: Nu(t, e);
+ default: Mu(t, e);
}
}
- function Fu(e, t) {
- if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) hu(e, t.alternate, t), t = t.sibling;
+ function Pu(e, t) {
+ if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) mu(e, t.alternate, t), t = t.sibling;
}
- function Iu(e, t) {
+ function Fu(e, t) {
for (e = e.child; e !== null;) {
var n = e, r = t;
switch (n.tag) {
@@ -13038,46 +13038,46 @@ var ru = /* @__PURE__ */ u(((e) => {
case 11:
case 14:
case 15:
- bl(4, n, n.return), Iu(n, r);
+ yl(4, n, n.return), Fu(n, r);
break;
case 1:
- wl(n, n.return);
+ Cl(n, n.return);
var i = n.stateNode;
- typeof i.componentWillUnmount == "function" && Sl(n, n.return, i), Iu(n, r);
+ typeof i.componentWillUnmount == "function" && xl(n, n.return, i), Fu(n, r);
break;
case 27: r & 2 && gm(n.stateNode, n.type, n.memoizedProps);
case 5:
- wl(n, n.return), n.tag !== 5 && n.tag !== 27 || Dl(n), Iu(n, r);
+ Cl(n, n.return), n.tag !== 5 && n.tag !== 27 || El(n), Fu(n, r);
break;
case 6:
- Dl(n);
+ El(n);
break;
case 26:
- wl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || ru || i.parentNode.removeChild(i), Iu(n, r);
+ Cl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || nu || i.parentNode.removeChild(i), Fu(n, r);
break;
case 22:
- n.memoizedState === null && Iu(n, r);
+ n.memoizedState === null && Fu(n, r);
break;
case 30:
- wl(n, n.return), Iu(n, r);
+ Cl(n, n.return), Fu(n, r);
break;
- case 7: wl(n, n.return);
- default: Iu(n, r);
+ case 7: Cl(n, n.return);
+ default: Fu(n, r);
}
e = e.sibling;
}
}
- function Lu(e, t, n) {
+ function Iu(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:
- Lu(i, a, n), yl(4, a);
+ Iu(i, a, n), vl(4, a);
break;
case 1:
- if (Lu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
+ if (Iu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
i.componentDidMount();
} catch (e) {
ff(r, r.return, e);
@@ -13086,170 +13086,170 @@ var ru = /* @__PURE__ */ u(((e) => {
var c = r.stateNode;
try {
var l = i.shared.hiddenCallbacks;
- if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) yo(l[i], c);
+ if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) bo(l[i], c);
} catch (e) {
ff(r, r.return, e);
}
}
- s && o & 64 && xl(a), Cl(a, a.return);
+ s && o & 64 && bl(a), Sl(a, a.return);
break;
- case 27: n & 2 && Il(a);
+ case 27: n & 2 && Fl(a);
case 5:
- a.tag !== 5 && a.tag !== 27 || El(a), Lu(i, a, n), s && r === null && o & 4 && Al(a), Cl(a, a.return);
+ a.tag !== 5 && a.tag !== 27 || Tl(a), Iu(i, a, n), s && r === null && o & 4 && kl(a), Sl(a, a.return);
break;
case 6:
- El(a);
+ Tl(a);
break;
case 26:
- 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);
+ 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);
break;
case 12:
- Lu(i, a, n);
+ Iu(i, a, n);
break;
case 31:
- Lu(i, a, n), s && o & 4 && wu(i, a);
+ Iu(i, a, n), s && o & 4 && Cu(i, a);
break;
case 13:
- Lu(i, a, n), s && o & 4 && Tu(i, a);
+ Iu(i, a, n), s && o & 4 && wu(i, a);
break;
case 22:
- a.memoizedState === null && Lu(i, a, n), Cl(a, a.return);
+ a.memoizedState === null && Iu(i, a, n), Sl(a, a.return);
break;
case 30:
- Lu(i, a, n), Cl(a, a.return);
+ Iu(i, a, n), Sl(a, a.return);
break;
- case 7: Cl(a, a.return);
- default: Lu(i, a, n);
+ case 7: Sl(a, a.return);
+ default: Iu(i, a, n);
}
t = t.sibling;
}
}
- function Ru(e, t) {
+ function Lu(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 && Oa(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 && ka(n));
}
- 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 Ru(e, t) {
+ e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && ka(e));
}
- function Bu(e, t, n, r) {
+ function zu(e, t, n, r) {
var i = (n & 335544064) === n;
- if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Vu(e, t, n, r), t = t.sibling;
- else i && $l(t);
+ if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Bu(e, t, n, r), t = t.sibling;
+ else i && Ql(t);
}
- function Vu(e, t, n, r) {
+ function Bu(e, t, n, r) {
var i = (n & 335544064) === n;
- i && t.alternate === null && t.return !== null && t.return.alternate !== null && Ql(t);
+ i && t.alternate === null && t.return !== null && t.return.alternate !== null && Zl(t);
var a = t.flags;
switch (t.tag) {
case 0:
case 11:
case 15:
- Bu(e, t, n, r), a & 2048 && yl(9, t);
+ zu(e, t, n, r), a & 2048 && vl(9, t);
break;
case 1:
- Bu(e, t, n, r);
+ zu(e, t, n, r);
break;
case 3:
- 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)));
+ 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 && ka(a)));
break;
case 12:
if (a & 2048) {
- Bu(e, t, n, r), a = t.stateNode;
+ zu(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);
}
- } else Bu(e, t, n, r);
+ } else zu(e, t, n, r);
break;
case 31:
- Bu(e, t, n, r);
+ zu(e, t, n, r);
break;
case 13:
- Bu(e, t, n, r);
+ zu(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 && 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);
+ 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);
break;
case 24:
- Bu(e, t, n, r), a & 2048 && zu(t.alternate, t);
+ zu(e, t, n, r), a & 2048 && Ru(t.alternate, t);
break;
case 30:
- i && (a = t.alternate, a !== null && (Gl(a.child, !0), Gl(t.child, !0))), Bu(e, t, n, r);
+ i && (a = t.alternate, a !== null && (Wl(a.child, !0), Wl(t.child, !0))), zu(e, t, n, r);
break;
- default: Bu(e, t, n, r);
+ default: zu(e, t, n, r);
}
}
- function Hu(e, t, n, r, i) {
+ function Vu(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:
- Hu(a, o, s, c, i), yl(8, o);
+ Vu(a, o, s, c, i), vl(8, o);
break;
case 23: break;
case 22:
var u = o.stateNode;
- 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);
+ 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);
break;
case 24:
- Hu(a, o, s, c, i), i && l & 2048 && zu(o.alternate, o);
+ Vu(a, o, s, c, i), i && l & 2048 && Ru(o.alternate, o);
break;
- default: Hu(a, o, s, c, i);
+ default: Vu(a, o, s, c, i);
}
t = t.sibling;
}
}
- function Uu(e, t) {
+ function Hu(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:
- Uu(n, r), i & 2048 && Ru(r.alternate, r);
+ Hu(n, r), i & 2048 && Lu(r.alternate, r);
break;
case 24:
- Uu(n, r), i & 2048 && zu(r.alternate, r);
+ Hu(n, r), i & 2048 && Ru(r.alternate, r);
break;
- default: Uu(n, r);
+ default: Hu(n, r);
}
t = t.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;
+ 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;
}
- function Ku(e, t, n) {
+ function Gu(e, t, n) {
switch (e.tag) {
case 26:
- 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));
+ 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));
break;
case 5:
- Gu(e, t, n), e.flags & Wu && (e = e.stateNode, (t & 335544128) === t && Zm(n, e));
+ Wu(e, t, n), e.flags & Uu && (e = e.stateNode, (t & 335544128) === t && Zm(n, e));
break;
case 3:
case 4:
- var r = ku;
- ku = bm(e.stateNode.containerInfo), Gu(e, t, n), ku = r;
+ var r = Ou;
+ Ou = bm(e.stateNode.containerInfo), Wu(e, t, n), Ou = r;
break;
case 22:
- 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));
+ 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));
break;
case 30:
- if ((e.flags & Wu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {
+ if ((e.flags & Uu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {
var i = e.stateNode;
- i.paired = null, Rl === null && (Rl = /* @__PURE__ */ new Map()), Rl.set(r, i);
+ i.paired = null, Ll === null && (Ll = /* @__PURE__ */ new Map()), Ll.set(r, i);
}
- Gu(e, t, n);
+ Wu(e, t, n);
break;
- default: Gu(e, t, n);
+ default: Wu(e, t, n);
}
}
- function qu(e) {
+ function Ku(e) {
var t = e.alternate;
if (t !== null && (e = t.child, e !== null)) {
t.child = null;
@@ -13258,69 +13258,69 @@ var ru = /* @__PURE__ */ u(((e) => {
while (e !== null);
}
}
- function Ju(e) {
+ function qu(e) {
var t = e.deletions;
if (e.flags & 16) {
if (t !== null) for (var n = 0; n < t.length; n++) {
var r = t[n];
- cu = r, Zu(r, e);
+ su = r, Xu(r, e);
}
- qu(e);
+ Ku(e);
}
- if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Yu(e), e = e.sibling;
+ if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Ju(e), e = e.sibling;
}
- function Yu(e) {
+ function Ju(e) {
switch (e.tag) {
case 0:
case 11:
case 15:
- Ju(e), e.flags & 2048 && bl(9, e, e.return);
+ qu(e), e.flags & 2048 && yl(9, e, e.return);
break;
case 3:
- Ju(e);
+ qu(e);
break;
case 12:
- Ju(e);
+ qu(e);
break;
case 22:
var t = e.stateNode;
- e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Xu(e)) : Ju(e);
+ e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Yu(e)) : qu(e);
break;
- default: Ju(e);
+ default: qu(e);
}
}
- function Xu(e) {
+ function Yu(e) {
var t = e.deletions;
if (e.flags & 16) {
if (t !== null) for (var n = 0; n < t.length; n++) {
var r = t[n];
- cu = r, Zu(r, e);
+ su = r, Xu(r, e);
}
- qu(e);
+ Ku(e);
}
for (e = e.child; e !== null;) {
switch (t = e, t.tag) {
case 0:
case 11:
case 15:
- bl(8, t, t.return), Xu(t);
+ yl(8, t, t.return), Yu(t);
break;
case 22:
- n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Xu(t));
+ n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Yu(t));
break;
- default: Xu(t);
+ default: Yu(t);
}
e = e.sibling;
}
}
- function Zu(e, t) {
- for (; cu !== null;) {
- var n = cu;
+ function Xu(e, t) {
+ for (; su !== null;) {
+ var n = su;
switch (n.tag) {
case 0:
case 11:
case 15:
- bl(8, n, t);
+ yl(8, n, t);
break;
case 23:
case 22:
@@ -13329,57 +13329,57 @@ var ru = /* @__PURE__ */ u(((e) => {
r != null && r.refCount++;
}
break;
- case 24: Oa(n.memoizedState.cache);
+ case 24: ka(n.memoizedState.cache);
}
- if (r = n.child, r !== null) r.return = n, cu = r;
- else a: for (n = e; cu !== null;) {
- r = cu;
+ 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 (yu(r), r === n) {
- cu = null;
+ if (vu(r), r === n) {
+ su = null;
break a;
}
if (i !== null) {
- i.return = a, cu = i;
+ i.return = a, su = i;
break a;
}
- cu = a;
+ su = a;
}
}
}
- var Qu = {
+ var Zu = {
getCacheForType: function(e) {
- var t = W(Ea), n = t.data.get(e);
+ var t = xa(Da), n = t.data.get(e);
return n === void 0 && (n = e(), t.data.set(e, n)), n;
},
cacheSignal: function() {
- return W(Ea).controller.signal;
+ return xa(Da).controller.signal;
}
- }, $u = typeof WeakMap == "function" ? WeakMap : Map, K = 0, q = null, J = null, Y = 0, X = 0, ed = null, td = !1, nd = !1, rd = !1, id = 0, ad = 0, od = 0, sd = 0, Z = 0, cd = 0, ld = 0, ud = null, dd = null, fd = !1, pd = 0, md = 0, Q = Infinity, hd = null, gd = null, _d = 0, vd = null, yd = null, bd = 0, xd = 0, Sd = null, Cd = null, wd = null, Td = null, Ed = null, Dd = 0, Od = null;
+ }, Qu = typeof WeakMap == "function" ? WeakMap : Map, $u = 0, ed = null, q = null, J = 0, Y = 0, X = null, td = !1, nd = !1, rd = !1, id = 0, ad = 0, od = 0, sd = 0, cd = 0, ld = 0, ud = 0, dd = null, Z = null, fd = !1, pd = 0, md = 0, hd = Infinity, gd = null, _d = null, vd = 0, Q = null, yd = null, bd = 0, xd = 0, Sd = null, Cd = null, wd = null, Td = null, Ed = null, Dd = 0, Od = null;
function kd() {
- return K & 2 && Y !== 0 ? Y & -Y : N.T === null ? bt() : Nf();
+ return $u & 2 && J !== 0 ? J & -J : F.T === null ? yt() : Nf();
}
function Ad() {
- if (cd === 0) {
- if (!(Y & 536870912) || U) {
- var e = it;
- it <<= 1, !(it & 3932160) && (it = 262144), cd = e;
- } else cd = 536870912;
+ if (ld === 0) {
+ if (!(J & 536870912) || U) {
+ var e = rt;
+ rt <<= 1, !(rt & 3932160) && (rt = 262144), ld = e;
+ } else ld = 536870912;
}
- return e = Eo.current, e !== null && (e.flags |= 32), cd;
+ return e = Do.current, e !== null && (e.flags |= 32), ld;
}
function jd(e, t) {
if (t != null) {
var n = e.stateNode, r = n.ref;
- r === null && (r = n.ref = Pp(mi(e.memoizedProps, n))), Td === null && (Td = []), Td.push(t.bind(null, r));
+ r === null && (r = n.ref = Pp(pi(e.memoizedProps, n))), Td === null && (Td = []), Td.push(t.bind(null, r));
}
}
function Md(e, t, n) {
- (e === q && (X === 2 || X === 9) || e.cancelPendingCommit !== null) && (zd(e, 0), Id(e, Y, cd, !1)), pt(e, n), (!(K & 2) || e !== q) && (e === q && (!(K & 2) && (sd |= n), ad === 4 && Id(e, Y, cd, !1)), Tf(e));
+ (e === ed && (Y === 2 || Y === 9) || e.cancelPendingCommit !== null) && (zd(e, 0), Id(e, J, ld, !1)), ft(e, n), (!($u & 2) || e !== ed) && (e === ed && (!($u & 2) && (sd |= n), ad === 4 && Id(e, J, ld, !1)), Tf(e));
}
function Nd(e, t, n) {
- if (K & 6) throw Error(i(327));
- var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || ct(e, t), a = r ? qd(e, t) : Gd(e, t, !0), o = r;
+ if ($u & 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;
do {
if (a === 0) {
nd && !r && Id(e, t, 0, !1);
@@ -13396,14 +13396,14 @@ var ru = /* @__PURE__ */ u(((e) => {
t = s;
a: {
var c = e;
- a = ud;
+ a = dd;
var l = c.current.memoizedState.isDehydrated;
if (l && (zd(c, s).flags |= 256), s = Gd(c, s, !1), s !== 2 && s !== 6) {
if (rd && !l) {
c.errorRecoveryDisabledLanes |= o, sd |= o, a = 4;
break a;
}
- o = dd, dd = a, o !== null && (dd === null ? dd = o : dd.push.apply(dd, o));
+ o = Z, Z = a, o !== null && (Z === null ? Z = o : Z.push.apply(Z, o));
}
a = s;
}
@@ -13420,21 +13420,21 @@ var ru = /* @__PURE__ */ u(((e) => {
case 1: throw Error(i(345));
case 4: if ((t & 4194048) !== t && (t & 62914560) !== t) break;
case 6:
- Id(r, t, cd, !td);
+ Id(r, t, ld, !td);
break a;
case 2:
- dd = null;
+ Z = null;
break;
case 3:
case 5: break;
default: throw Error(i(329));
}
- if ((t & 62914560) === t && (a = pd + 300 - Ve(), 10 < a)) {
- if (Id(r, t, cd, !td), st(r, 0, !0) !== 0) break a;
- bd = t, r.timeoutHandle = gp(Pd.bind(null, r, n, dd, hd, fd, t, cd, sd, ld, td, o, "Throttled", -0, 0), a);
+ if ((t & 62914560) === t && (a = pd + 300 - Be(), 10 < a)) {
+ if (Id(r, t, ld, !td), ot(r, 0, !0) !== 0) break a;
+ bd = t, r.timeoutHandle = gp(Pd.bind(null, r, n, Z, gd, fd, t, ld, sd, ud, td, o, "Throttled", -0, 0), a);
break a;
}
- Pd(r, n, dd, hd, fd, t, cd, sd, ld, td, o, null, -0, 0);
+ Pd(r, n, Z, gd, fd, t, ld, sd, ud, td, o, null, -0, 0);
}
break;
} while (1);
@@ -13451,8 +13451,8 @@ var ru = /* @__PURE__ */ u(((e) => {
suspenseyImages: [],
waitingForImages: !0,
waitingForViewTransition: !1,
- 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 ? pd - Ve() : (a & 4194048) === a ? md - Ve() : 0, m = eh(d, m), m !== null)) {
+ 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 ? pd - Be() : (a & 4194048) === a ? md - Be() : 0, m = eh(d, m), m !== null)) {
bd = 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);
return;
}
@@ -13465,7 +13465,7 @@ var ru = /* @__PURE__ */ u(((e) => {
var i = n[r], a = i.getSnapshot;
i = i.value;
try {
- if (!Lr(a(), i)) return !1;
+ if (!Ir(a(), i)) return !1;
} catch {
return !1;
}
@@ -13483,57 +13483,57 @@ var ru = /* @__PURE__ */ u(((e) => {
return !0;
}
function Id(e, t, n, r) {
- t = lt(e, t), t &= ~Z, t &= ~sd, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
+ t = ct(e, t), t &= ~cd, t &= ~sd, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
for (var i = t; 0 < i;) {
- var a = 31 - $e(i), o = 1 << a;
+ var a = 31 - Qe(i), o = 1 << a;
r[a] = -1, i &= ~o;
}
- n !== 0 && ht(e, n, t);
+ n !== 0 && mt(e, n, t);
}
function Ld() {
- return K & 6 ? !0 : (Ef(0, !1), !1);
+ return $u & 6 ? !0 : (Ef(0, !1), !1);
}
function Rd() {
- if (J !== null) {
- if (X === 0) var e = J.return;
- else e = J, pa = fa = null, ts(e), eo = null, to = 0, e = J;
- for (; e !== null;) vl(e.alternate, e), e = e.return;
- J = null;
+ if (q !== null) {
+ if (Y === 0) var e = q.return;
+ else e = q, pa = fa = null, ts(e), to = null, no = 0, e = q;
+ for (; e !== null;) _l(e.alternate, e), e = e.return;
+ q = null;
}
}
function zd(e, t) {
var n = e.timeoutHandle;
- return n !== -1 && (e.timeoutHandle = -1, _p(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), bd = 0, Rd(), q = e, J = n = ji(e.current, null), Y = t, X = 0, ed = null, td = !1, nd = ct(e, t), rd = !1, ld = cd = Z = sd = od = ad = 0, dd = ud = null, fd = !1, id = lt(e, t), xi(), n;
+ return n !== -1 && (e.timeoutHandle = -1, _p(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), bd = 0, Rd(), ed = e, q = n = Ai(e.current, null), J = t, Y = 0, X = null, td = !1, nd = st(e, t), rd = !1, ud = ld = cd = sd = od = ad = 0, Z = dd = null, fd = !1, id = ct(e, t), bi(), n;
}
function Bd(e, t) {
- G = null, N.H = dc, t === Wa || t === Ka ? (t = Qa(), X = 3) : t === Ga ? (t = Qa(), X = 4) : X = t === kc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, ed = t, J === null && (ad = 1, Cc(e, zi(t, e.current)));
+ W = null, F.H = dc, t === Ga || t === qa ? (t = $a(), Y = 3) : t === Ka ? (t = $a(), Y = 4) : Y = t === kc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, X = t, q === null && (ad = 1, Cc(e, Ri(t, e.current)));
}
function Vd() {
- var e = Eo.current;
- return e === null ? !0 : (Y & 4194048) === Y ? Do === null : (Y & 62914560) === Y || Y & 536870912 ? e === Do : !1;
+ var e = Do.current;
+ return e === null ? !0 : (J & 4194048) === J ? Oo === null : (J & 62914560) === J || J & 536870912 ? e === Oo : !1;
}
function Hd() {
- var e = N.H;
- return N.H = dc, e === null ? dc : e;
+ var e = F.H;
+ return F.H = dc, e === null ? dc : e;
}
function Ud() {
- var e = N.A;
- return N.A = Qu, e;
+ var e = F.A;
+ return F.A = Zu, e;
}
function Wd() {
- ad = 4, td || (Y & 4194048) !== Y && Eo.current !== null || (nd = !0), !(od & 134217727) && !(sd & 134217727) || q === null || Id(q, Y, cd, !1);
+ ad = 4, td || (J & 4194048) !== J && Do.current !== null || (nd = !0), !(od & 134217727) && !(sd & 134217727) || ed === null || Id(ed, J, ld, !1);
}
function Gd(e, t, n) {
- var r = K;
- K |= 2;
+ var r = $u;
+ $u |= 2;
var i = Hd(), a = Ud();
- (q !== e || Y !== t) && (hd = null, zd(e, t)), t = !1;
+ (ed !== e || J !== t) && (gd = null, zd(e, t)), t = !1;
var o = ad;
a: do
try {
- if (X !== 0 && J !== null) {
- var s = J, c = ed;
- switch (X) {
+ if (Y !== 0 && q !== null) {
+ var s = q, c = X;
+ switch (Y) {
case 8:
Rd(), o = 6;
break a;
@@ -13541,14 +13541,14 @@ var ru = /* @__PURE__ */ u(((e) => {
case 2:
case 9:
case 6:
- Eo.current === null && (t = !0);
- var l = X;
- if (X = 0, ed = null, Zd(e, s, c, l), n && nd) {
+ Do.current === null && (t = !0);
+ var l = Y;
+ if (Y = 0, X = null, Zd(e, s, c, l), n && nd) {
o = 0;
break a;
}
break;
- default: l = X, X = 0, ed = null, Zd(e, s, c, l);
+ default: l = Y, Y = 0, X = null, Zd(e, s, c, l);
}
}
Kd(), o = ad;
@@ -13557,66 +13557,66 @@ var ru = /* @__PURE__ */ u(((e) => {
Bd(e, t);
}
while (1);
- return t && e.shellSuspendCounter++, pa = fa = null, K = r, N.H = i, N.A = a, J === null && (q = null, Y = 0, xi()), o;
+ return t && e.shellSuspendCounter++, pa = fa = null, $u = r, F.H = i, F.A = a, q === null && (ed = null, J = 0, bi()), o;
}
function Kd() {
- for (; J !== null;) Yd(J);
+ for (; q !== null;) Yd(q);
}
function qd(e, t) {
- var n = K;
- K |= 2;
+ var n = $u;
+ $u |= 2;
var r = Hd(), a = Ud();
- q !== e || Y !== t ? (hd = null, Q = Ve() + 500, zd(e, t)) : nd = ct(e, t);
+ ed !== e || J !== t ? (gd = null, hd = Be() + 500, zd(e, t)) : nd = st(e, t);
a: do
try {
- if (X !== 0 && J !== null) {
- t = J;
- var o = ed;
- b: switch (X) {
+ if (Y !== 0 && q !== null) {
+ t = q;
+ var o = X;
+ b: switch (Y) {
case 1:
- X = 0, ed = null, Zd(e, t, o, 1);
+ Y = 0, X = null, Zd(e, t, o, 1);
break;
case 2:
case 9:
- if (Ja(o)) {
- X = 0, ed = null, Xd(t);
+ if (Ya(o)) {
+ Y = 0, X = null, Xd(t);
break;
}
t = function() {
- X !== 2 && X !== 9 || q !== e || (X = 7), Tf(e);
+ Y !== 2 && Y !== 9 || ed !== e || (Y = 7), Tf(e);
}, o.then(t, t);
break a;
case 3:
- X = 7;
+ Y = 7;
break a;
case 4:
- X = 5;
+ Y = 5;
break a;
case 7:
- Ja(o) ? (X = 0, ed = null, Xd(t)) : (X = 0, ed = null, Zd(e, t, o, 7));
+ Ya(o) ? (Y = 0, X = null, Xd(t)) : (Y = 0, X = null, Zd(e, t, o, 7));
break;
case 5:
var s = null;
- switch (J.tag) {
- case 26: s = J.memoizedState;
+ switch (q.tag) {
+ case 26: s = q.memoizedState;
case 5:
case 27:
- var c = J;
+ var c = q;
if (s ? Ym(s) : c.stateNode.complete) {
- X = 0, ed = null;
+ Y = 0, X = null;
var l = c.sibling;
- if (l !== null) J = l;
+ if (l !== null) q = l;
else {
var u = c.return;
- u === null ? J = null : (J = u, Qd(u));
+ u === null ? q = null : (q = u, Qd(u));
}
break b;
}
}
- X = 0, ed = null, Zd(e, t, o, 5);
+ Y = 0, X = null, Zd(e, t, o, 5);
break;
case 6:
- X = 0, ed = null, Zd(e, t, o, 6);
+ Y = 0, X = null, Zd(e, t, o, 6);
break;
case 8:
Rd(), ad = 6;
@@ -13630,47 +13630,47 @@ var ru = /* @__PURE__ */ u(((e) => {
Bd(e, t);
}
while (1);
- return pa = fa = null, N.H = r, N.A = a, K = n, J === null ? (q = null, Y = 0, xi(), ad) : 0;
+ return pa = fa = null, F.H = r, F.A = a, $u = n, q === null ? (ed = null, J = 0, bi(), ad) : 0;
}
function Jd() {
- for (; J !== null && !ze();) Yd(J);
+ for (; q !== null && !Re();) Yd(q);
}
function Yd(e) {
var t = ll(e.alternate, e, id);
- e.memoizedProps = e.pendingProps, t === null ? Qd(e) : J = t;
+ e.memoizedProps = e.pendingProps, t === null ? Qd(e) : q = t;
}
function Xd(e) {
var t = e, n = t.alternate;
switch (t.tag) {
case 15:
case 0:
- t = Uc(n, t, t.pendingProps, t.type, void 0, Y);
+ t = Uc(n, t, t.pendingProps, t.type, void 0, J);
break;
case 11:
- t = Uc(n, t, t.pendingProps, t.type.render, t.ref, Y);
+ t = Uc(n, t, t.pendingProps, t.type.render, t.ref, J);
break;
case 5:
ts(t);
var r = t;
r === $i && (U ? (oa(r), r.tag === 5 && r.stateNode != null && (ea = r.stateNode)) : (oa(r), U = !0));
- default: vl(n, t), t = J = Mi(t, id), t = ll(n, t, id);
+ default: _l(n, t), t = q = ji(t, id), t = ll(n, t, id);
}
- e.memoizedProps = e.pendingProps, t === null ? Qd(e) : J = t;
+ e.memoizedProps = e.pendingProps, t === null ? Qd(e) : q = t;
}
function Zd(e, t, n, r) {
- pa = fa = null, ts(t), eo = null, to = 0;
+ pa = fa = null, ts(t), to = null, no = 0;
var i = t.return;
try {
- if (Oc(e, i, t, n, Y)) {
- ad = 1, Cc(e, zi(n, e.current)), J = null;
+ if (Oc(e, i, t, n, J)) {
+ ad = 1, Cc(e, Ri(n, e.current)), q = null;
return;
}
} catch (t) {
- if (i !== null) throw J = i, t;
- ad = 1, Cc(e, zi(n, e.current)), J = null;
+ if (i !== null) throw q = i, t;
+ ad = 1, Cc(e, Ri(n, e.current)), q = null;
return;
}
- t.flags & 32768 ? (U || r === 1 ? e = !0 : nd || Y & 536870912 ? e = !1 : (td = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Eo.current, r !== null && r.tag === 13 && (r.flags |= 16384))), $d(t, e)) : Qd(t);
+ t.flags & 32768 ? (U || r === 1 ? e = !0 : nd || J & 536870912 ? e = !1 : (td = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Do.current, r !== null && r.tag === 13 && (r.flags |= 16384))), $d(t, e)) : Qd(t);
}
function Qd(e) {
var t = e;
@@ -13680,83 +13680,83 @@ var ru = /* @__PURE__ */ u(((e) => {
return;
}
e = t.return;
- var n = gl(t.alternate, t, id);
+ var n = hl(t.alternate, t, id);
if (n !== null) {
- J = n;
+ q = n;
return;
}
if (t = t.sibling, t !== null) {
- J = t;
+ q = t;
return;
}
- J = t = e;
+ q = t = e;
} while (t !== null);
ad === 0 && (ad = 5);
}
function $d(e, t) {
do {
- var n = _l(e.alternate, e);
+ var n = gl(e.alternate, e);
if (n !== null) {
- n.flags &= 32767, J = n;
+ n.flags &= 32767, q = 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;
+ q = e;
return;
}
- J = e = n;
+ q = e = n;
} while (e !== null);
- ad = 6, J = null;
+ ad = 6, q = null;
}
function ef(e, t, n, r, a, o, s, c, l, u, d, f) {
e.cancelPendingCommit = null;
do
lf();
- while (_d !== 0);
- if (K & 6) throw Error(i(327));
+ while (vd !== 0);
+ if ($u & 6) throw Error(i(327));
if (t !== null) {
if (t === e.current) throw Error(i(177));
- e === q && (J = q = null, Y = 0), yd = t, vd = e, bd = n, Sd = a, Cd = r, tf(e, t, n, s, c, l, f);
+ e === ed && (q = ed = null, J = 0), yd = t, Q = e, bd = n, Sd = a, Cd = r, tf(e, t, n, s, c, l, f);
}
}
function tf(e, t, n, r, i, a, o) {
var s = t.lanes | t.childLanes;
- if (xd = s, s |= bi, mt(e, n, s, r, i, a), Td = null, (n & 335544064) === n ? (Ed = ja(e), r = 10262) : (Ed = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, vf(Ge, function() {
+ if (xd = s, s |= yi, pt(e, n, s, r, i, a), Td = null, (n & 335544064) === n ? (Ed = Ma(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), Ll = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
- r = N.T, N.T = null, i = P.p, P.p = 2, a = K, K |= 4;
+ })) : (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 = $u, $u |= 4;
try {
- pu(e, t, n);
+ fu(e, t, n);
} finally {
- K = a, P.p = i, N.T = r;
+ $u = a, I.p = i, F.T = r;
}
}
- _d = 1, Ll ? wd = Mp(o, e.containerInfo, Ed, af, of, rf, sf, uf, nf, null, null) : (af(), of(), sf());
+ vd = 1, Il ? wd = Mp(o, e.containerInfo, Ed, af, of, rf, sf, uf, nf, null, null) : (af(), of(), sf());
}
function nf(e) {
- if (_d !== 0) {
- var t = vd.onRecoverableError;
+ if (vd !== 0) {
+ var t = Q.onRecoverableError;
t(e, { componentStack: null });
}
}
function rf() {
- _d === 3 && (_d = 0, Pu(yd, vd), _d = 4);
+ vd === 3 && (vd = 0, Nu(yd, Q), vd = 4);
}
function af() {
- if (_d === 1) {
- _d = 0;
- var e = vd, t = yd, n = bd, r = !!(t.flags & 13878);
+ if (vd === 1) {
+ vd = 0;
+ var e = Q, t = yd, n = bd, r = !!(t.flags & 13878);
if (t.subtreeFlags & 13878 || r) {
- r = N.T, N.T = null;
- var i = P.p;
- P.p = 2;
- var a = K;
- K |= 4;
+ r = F.T, F.T = null;
+ var i = I.p;
+ I.p = 2;
+ var a = $u;
+ $u |= 4;
try {
- uu = du = !1, Au(t, e, n), n = cp;
- var o = Wr(e.containerInfo), s = n.focusedElem, c = n.selectionRange;
- if (o !== s && s && s.ownerDocument && Ur(s.ownerDocument.documentElement, s)) {
- if (c !== null && Gr(s)) {
+ lu = uu = !1, ku(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 && Wr(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 {
@@ -13764,7 +13764,7 @@ var ru = /* @__PURE__ */ u(((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 _ = Hr(s, h), v = Hr(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));
@@ -13784,49 +13784,49 @@ var ru = /* @__PURE__ */ u(((e) => {
}
gh = !!sp, cp = sp = null;
} finally {
- K = a, P.p = i, N.T = r;
+ $u = a, I.p = i, F.T = r;
}
}
- e.current = t, _d = 2;
+ e.current = t, vd = 2;
}
}
function of() {
- if (_d === 2) {
- _d = 0;
- var e = vd, t = yd, n = !!(t.flags & 8772);
+ if (vd === 2) {
+ vd = 0;
+ var e = Q, t = yd, n = !!(t.flags & 8772);
if (t.subtreeFlags & 8772 || n) {
- n = N.T, N.T = null;
- var r = P.p;
- P.p = 2;
- var i = K;
- K |= 4;
+ n = F.T, F.T = null;
+ var r = I.p;
+ I.p = 2;
+ var i = $u;
+ $u |= 4;
try {
- hu(e, t.alternate, t);
+ mu(e, t.alternate, t);
} finally {
- K = i, P.p = r, N.T = n;
+ $u = i, I.p = r, F.T = n;
}
}
- _d = 3;
+ vd = 3;
}
}
function sf() {
- if (_d === 4 || _d === 3) {
- _d = 0;
+ if (vd === 4 || vd === 3) {
+ vd = 0;
var e = wd;
- wd = null, Be();
- var t = vd, n = yd, r = bd, i = Cd, a = (r & 335544064) === r ? 10262 : 10256;
- if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? _d = 5 : (_d = 0, yd = vd = null, cf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (gd = null), yt(r), n = n.stateNode, Ze && typeof Ze.onCommitFiberRoot == "function") try {
- Ze.onCommitFiberRoot(Xe, n, void 0, (n.current.flags & 128) == 128);
+ wd = null, ze();
+ var t = Q, n = yd, r = bd, i = Cd, a = (r & 335544064) === r ? 10262 : 10256;
+ if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? vd = 5 : (vd = 0, yd = Q = 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);
} catch {}
if (i !== null) {
- n = N.T, a = P.p, P.p = 2, N.T = null;
+ n = F.T, a = I.p, I.p = 2, F.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 {
- N.T = n, P.p = a;
+ F.T = n, I.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);
@@ -13834,31 +13834,31 @@ var ru = /* @__PURE__ */ u(((e) => {
}
}
function cf(e, t) {
- (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Oa(t)));
+ (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, ka(t)));
}
function lf() {
return wd !== null && (wd.skipTransition(), wd = null), af(), of(), sf(), uf();
}
function uf() {
- if (_d !== 5) return !1;
- var e = vd, t = xd;
+ if (vd !== 5) return !1;
+ var e = Q, t = xd;
xd = 0;
- var n = yt(bd), r = N.T, a = P.p;
+ var n = vt(bd), r = F.T, a = I.p;
try {
- P.p = 32 > n ? 32 : n, N.T = null, n = Sd, Sd = null;
- var o = vd, s = bd;
- if (_d = 0, yd = vd = null, bd = 0, K & 6) throw Error(i(331));
- var c = K;
- if (K |= 4, Yu(o.current), Vu(o, o.current, s, n), K = c, Ef(0, !1), Ze && typeof Ze.onPostCommitFiberRoot == "function") try {
- Ze.onPostCommitFiberRoot(Xe, o);
+ I.p = 32 > n ? 32 : n, F.T = null, n = Sd, Sd = null;
+ var o = Q, s = bd;
+ if (vd = 0, yd = Q = null, bd = 0, $u & 6) throw Error(i(331));
+ var c = $u;
+ if ($u |= 4, Ju(o.current), Bu(o, o.current, s, n), $u = c, Ef(0, !1), Xe && typeof Xe.onPostCommitFiberRoot == "function") try {
+ Xe.onPostCommitFiberRoot(Ye, o);
} catch {}
return !0;
} finally {
- P.p = a, N.T = r, cf(e, t);
+ I.p = a, F.T = r, cf(e, t);
}
}
function df(e, t, n) {
- t = zi(n, t), t = Tc(e.stateNode, t, 2), e = po(e, t, 2), e !== null && (pt(e, 2), Tf(e));
+ t = Ri(n, t), t = Tc(e.stateNode, t, 2), e = mo(e, t, 2), e !== null && (ft(e, 2), Tf(e));
}
function ff(e, t, n) {
if (e.tag === 3) df(e, e, n);
@@ -13869,8 +13869,8 @@ var ru = /* @__PURE__ */ u(((e) => {
}
if (t.tag === 1) {
var r = t.stateNode;
- if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (gd === null || !gd.has(r))) {
- e = zi(n, e), n = Ec(2), r = po(t, n, 2), r !== null && (Dc(n, r, t, e), pt(r, 2), Tf(r));
+ if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (_d === null || !_d.has(r))) {
+ e = Ri(n, e), n = Ec(2), r = mo(t, n, 2), r !== null && (Dc(n, r, t, e), ft(r, 2), Tf(r));
break;
}
}
@@ -13880,7 +13880,7 @@ var ru = /* @__PURE__ */ u(((e) => {
function pf(e, t, n) {
var r = e.pingCache;
if (r === null) {
- r = e.pingCache = new $u();
+ r = e.pingCache = new Qu();
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));
@@ -13888,10 +13888,10 @@ var ru = /* @__PURE__ */ u(((e) => {
}
function mf(e, t, n) {
var r = e.pingCache;
- r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, q === e && (Y & n) === n && (ad === 4 || ad === 3 && (Y & 62914560) === Y && 300 > Ve() - pd ? K & 2 ? Z |= n : zd(e, 0) : Z |= n, ld === Y && (ld = 0)), Tf(e);
+ r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, ed === e && (J & n) === n && (ad === 4 || ad === 3 && (J & 62914560) === J && 300 > Be() - pd ? $u & 2 ? cd |= n : zd(e, 0) : cd |= n, ud === J && (ud = 0)), Tf(e);
}
function hf(e, t) {
- t === 0 && (t = dt()), e = wi(e, t), e !== null && (pt(e, t), Tf(e));
+ t === 0 && (t = ut()), e = Ci(e, t), e !== null && (ft(e, t), Tf(e));
}
function gf(e) {
var t = e.memoizedState, n = 0;
@@ -13916,7 +13916,7 @@ var ru = /* @__PURE__ */ u(((e) => {
r !== null && r.delete(t), hf(e, n);
}
function vf(e, t) {
- return Le(e, t);
+ return Ie(e, t);
}
var yf = null, bf = null, xf = !1, Sf = !1, Cf = !1, wf = 0;
function Tf(e) {
@@ -13933,10 +13933,10 @@ var ru = /* @__PURE__ */ u(((e) => {
if (i === 0) var a = 0;
else {
var o = r.suspendedLanes, s = r.pingedLanes;
- a = (1 << 31 - $e(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
+ a = (1 << 31 - Qe(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 = st(r, r === q ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || ct(r, a) || (n = !0, jf(r, a));
+ } else a = J, a = ot(r, r === ed ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || st(r, a) || (n = !0, jf(r, a));
}
r = r.next;
}
@@ -13951,43 +13951,43 @@ var ru = /* @__PURE__ */ u(((e) => {
Sf = xf = !1;
var e = 0;
wf !== 0 && hp() && (e = wf);
- for (var t = Ve(), n = null, r = yf; r !== null;) {
+ 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;
}
- _d !== 0 && _d !== 5 || Ef(e, !1), wf !== 0 && (wf = 0);
+ vd !== 0 && vd !== 5 || Ef(e, !1), wf !== 0 && (wf = 0);
}
function kf(e, t) {
for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes & -62914561; 0 < a;) {
- 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;
+ 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;
}
- if (t = q, n = Y, n = st(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (X === 2 || X === 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 = ed, n = J, n = ot(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (Y === 2 || Y === 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 = n & -n, t === e.callbackPriority) return t;
- switch (r !== null && Re(r), yt(n)) {
+ switch (r !== null && Le(r), vt(n)) {
case 2:
case 8:
- n = We;
+ n = Ue;
break;
case 32:
- n = Ge;
+ n = We;
break;
case 268435456:
- n = qe;
+ n = Ke;
break;
- default: n = Ge;
+ default: n = We;
}
- return r = Af.bind(null, e), n = Le(n, r), e.callbackPriority = t, e.callbackNode = n, t;
+ return r = Af.bind(null, e), n = Ie(n, r), e.callbackPriority = t, e.callbackNode = n, t;
}
- return r !== null && r !== null && Re(r), e.callbackPriority = 2, e.callbackNode = null, 2;
+ return r !== null && r !== null && Le(r), e.callbackPriority = 2, e.callbackNode = null, 2;
}
function Af(e, t) {
- if (_d !== 0 && _d !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
+ if (vd !== 0 && vd !== 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 = st(e, e === q ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Nd(e, r, t), kf(e, Ve()), e.callbackNode != null && e.callbackNode === n ? Af.bind(null, e) : null);
+ var r = J;
+ return r = ot(e, e === ed ? 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);
}
function jf(e, t) {
if (lf()) return null;
@@ -13995,24 +13995,24 @@ var ru = /* @__PURE__ */ u(((e) => {
}
function Mf() {
bp(function() {
- K & 6 ? Le(Ue, Df) : Of();
+ $u & 6 ? Ie(He, Df) : Of();
});
}
function Nf() {
if (wf === 0) {
- var e = Pa;
- e === 0 && (e = rt, rt <<= 1, !(rt & 261888) && (rt = 256)), wf = e;
+ var e = Fa;
+ e === 0 && (e = nt, nt <<= 1, !(nt & 261888) && (nt = 256)), wf = e;
}
return wf;
}
function Pf(e) {
- return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : mn(e);
+ return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : pn(e);
}
function Ff(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 In("action", "action", null, r, i);
+ var a = Pf((i[L] || null).action), o = r.submitter;
+ o && (t = (t = o[L] || null) ? Pf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
+ var s = new Fn("action", "action", null, r, i);
e.push({
event: s,
listeners: [{
@@ -14040,16 +14040,16 @@ var ru = /* @__PURE__ */ u(((e) => {
});
}
}
- for (var If = 0; If < di.length; If++) {
- var Lf = di[If];
- fi(Lf.toLowerCase(), "on" + (Lf[0].toUpperCase() + Lf.slice(1)));
+ for (var If = 0; If < ui.length; If++) {
+ var Lf = ui[If];
+ di(Lf.toLowerCase(), "on" + (Lf[0].toUpperCase() + Lf.slice(1)));
}
- 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", [
+ 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", [
"compositionend",
"keypress",
"textInput",
"paste"
- ]), 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(" "));
+ ]), 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) {
t = !!(t & 4);
@@ -14065,7 +14065,7 @@ var ru = /* @__PURE__ */ u(((e) => {
try {
a(i);
} catch (e) {
- _i(e);
+ gi(e);
}
i.currentTarget = null, a = c;
}
@@ -14075,7 +14075,7 @@ var ru = /* @__PURE__ */ u(((e) => {
try {
a(i);
} catch (e) {
- _i(e);
+ gi(e);
}
i.currentTarget = null, a = c;
}
@@ -14083,8 +14083,8 @@ var ru = /* @__PURE__ */ u(((e) => {
}
}
function $(e, t) {
- var n = t[Tt];
- n === void 0 && (n = t[Tt] = /* @__PURE__ */ new Set());
+ var n = t[wt];
+ n === void 0 && (n = t[wt] = /* @__PURE__ */ new Set());
var r = e + "__bubble";
n.has(r) || (Wf(t, e, 2, !1), n.add(r));
}
@@ -14095,7 +14095,7 @@ var ru = /* @__PURE__ */ u(((e) => {
var Hf = "_reactListening" + Math.random().toString(36).slice(2);
function Uf(e) {
if (!e[Hf]) {
- e[Hf] = !0, It.forEach(function(t) {
+ e[Hf] = !0, Ft.forEach(function(t) {
t !== "selectionchange" && (zf.has(t) || Vf(t, !1, e), Vf(t, !0, e));
});
var t = e.nodeType === 9 ? e : e.ownerDocument;
@@ -14112,7 +14112,7 @@ var ru = /* @__PURE__ */ u(((e) => {
break;
default: i = yh;
}
- 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, {
+ 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, {
capture: !0,
passive: i
}) : i === void 0 ? e.addEventListener(t, n, !1) : e.addEventListener(t, n, { passive: i });
@@ -14131,7 +14131,7 @@ var ru = /* @__PURE__ */ u(((e) => {
s = s.return;
}
for (; c !== null;) {
- if (s = R(c), s === null) return;
+ if (s = jt(c), s === null) return;
if (l = s.tag, l === 5 || l === 6 || l === 26 || l === 27) {
r = a = s;
continue a;
@@ -14141,27 +14141,27 @@ var ru = /* @__PURE__ */ u(((e) => {
}
r = r.return;
}
- Sn(function() {
- var r = a, i = _n(n), s = [];
+ xn(function() {
+ var r = a, i = gn(n), s = [];
a: {
- var c = ui.get(e);
+ var c = li.get(e);
if (c !== void 0) {
- var l = In, u = e;
+ var l = Fn, u = e;
switch (e) {
- case "keypress": if (jn(n) === 0) break a;
+ case "keypress": if (An(n) === 0) break a;
case "keydown":
case "keyup":
- l = er;
+ l = $n;
break;
case "focusin":
- u = "focus", l = Gn;
+ u = "focus", l = Wn;
break;
case "focusout":
- u = "blur", l = Gn;
+ u = "blur", l = Wn;
break;
case "beforeblur":
case "afterblur":
- l = Gn;
+ l = Wn;
break;
case "click": if (n.button === 2) break a;
case "auxclick":
@@ -14172,7 +14172,7 @@ var ru = /* @__PURE__ */ u(((e) => {
case "mouseout":
case "mouseover":
case "contextmenu":
- l = Un;
+ l = Hn;
break;
case "drag":
case "dragend":
@@ -14182,33 +14182,33 @@ var ru = /* @__PURE__ */ u(((e) => {
case "dragover":
case "dragstart":
case "drop":
- l = Wn;
+ l = Un;
break;
case "touchcancel":
case "touchend":
case "touchmove":
case "touchstart":
- l = rr;
+ l = nr;
break;
+ case ni:
case ri:
case ii:
- case ai:
- l = Kn;
+ l = Gn;
break;
- case li:
- l = ir;
+ case ci:
+ l = rr;
break;
case "scroll":
case "scrollend":
- l = Rn;
+ l = Ln;
break;
case "wheel":
- l = ar;
+ l = ir;
break;
case "copy":
case "cut":
case "paste":
- l = qn;
+ l = Kn;
break;
case "gotpointercapture":
case "lostpointercapture":
@@ -14218,19 +14218,19 @@ var ru = /* @__PURE__ */ u(((e) => {
case "pointerout":
case "pointerover":
case "pointerup":
- l = tr;
+ l = er;
break;
case "submit":
- l = nr;
+ l = tr;
break;
case "toggle":
- case "beforetoggle": l = or;
+ case "beforetoggle": l = ar;
}
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 = Cn(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 = Sn(m, p), g != null && d.push(Kf(m, g, h))), f) break;
m = m.return;
}
0 < d.length && (c = new l(c, u, null, n, i), s.push({
@@ -14241,45 +14241,45 @@ var ru = /* @__PURE__ */ u(((e) => {
}
if (!(t & 7)) {
a: {
- if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== gn && (u = n.relatedTarget || n.fromElement) && (R(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 ? R(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 : Mt(c), h = l == null ? u : Mt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, R(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 !== hn && (u = n.relatedTarget || n.fromElement) && (jt(u) || u[Ct])) 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 : Mt(c), h = l == null ? u : Mt(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)));
}
a: {
- if (c = r ? Mt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Tr;
- else if (yr(c)) {
- if (Er) _ = Fr;
+ if (c = r ? Mt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = wr;
+ else if (vr(c)) {
+ if (Tr) _ = Pr;
else {
- _ = Nr;
- var v = Mr;
+ _ = Mr;
+ var v = jr;
}
- } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && dn(r.elementType) && (_ = Tr) : _ = Pr;
+ } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && un(r.elementType) && (_ = wr) : _ = Nr;
if (_ &&= _(e, r)) {
- br(s, _, n, i);
+ yr(s, _, n, i);
break a;
}
v && v(e, c, r);
}
switch (v = r ? Mt(r) : window, e) {
case "focusin":
- (yr(v) || v.contentEditable === "true") && (qr = v, Jr = r, Yr = null);
+ (vr(v) || v.contentEditable === "true") && (Kr = v, qr = r, Jr = null);
break;
case "focusout":
- Yr = Jr = qr = null;
+ Jr = qr = Kr = null;
break;
case "mousedown":
- Xr = !0;
+ Yr = !0;
break;
case "contextmenu":
case "mouseup":
case "dragend":
- Xr = !1, Zr(s, n, i);
+ Yr = !1, Xr(s, n, i);
break;
- case "selectionchange": if (Kr) break;
+ case "selectionchange": if (Gr) break;
case "keydown":
- case "keyup": Zr(s, n, i);
+ case "keyup": Xr(s, n, i);
}
var y;
- if (cr) b: {
+ if (sr) b: {
switch (e) {
case "compositionstart":
var b = "onCompositionStart";
@@ -14293,11 +14293,11 @@ var ru = /* @__PURE__ */ u(((e) => {
}
b = void 0;
}
- else hr ? pr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
- b && (dr && n.locale !== "ko" && (hr || b !== "onCompositionStart" ? b === "onCompositionEnd" && hr && (y = An()) : (Dn = i, On = "value" in Dn ? Dn.value : Dn.textContent, hr = !0)), v = qf(r, b), 0 < v.length && (b = new Jn(b, e, null, n, i), s.push({
+ else H ? pr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
+ b && (ur && n.locale !== "ko" && (H || b !== "onCompositionStart" ? b === "onCompositionEnd" && H && (y = kn()) : (En = i, Dn = "value" in En ? En.value : En.textContent, H = !0)), v = qf(r, b), 0 < v.length && (b = new qn(b, e, null, n, i), s.push({
event: b,
listeners: v
- }), y ? b.data = y : (y = mr(n), y !== null && (b.data = y)))), (y = ur ? gr(e, n) : _r(e, n)) && (b = qf(r, "onBeforeInput"), 0 < b.length && (v = new Jn("onBeforeInput", "beforeinput", null, n, i), s.push({
+ }), y ? b.data = y : (y = mr(n), y !== null && (b.data = y)))), (y = lr ? hr(e, n) : gr(e, n)) && (b = qf(r, "onBeforeInput"), 0 < b.length && (v = new qn("onBeforeInput", "beforeinput", null, n, i), s.push({
event: v,
listeners: b
}), v.data = y)), Ff(s, e, r, n, i);
@@ -14315,7 +14315,7 @@ var ru = /* @__PURE__ */ u(((e) => {
function qf(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 = Cn(e, n), i != null && r.unshift(Kf(e, i, a)), i = Cn(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 = 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;
e = e.return;
}
return [];
@@ -14331,7 +14331,7 @@ var ru = /* @__PURE__ */ u(((e) => {
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 = Cn(n, a), l != null && o.unshift(Kf(n, l, c))) : i || (l = Cn(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 = 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;
}
o.length !== 0 && e.push({
event: t,
@@ -14348,28 +14348,28 @@ var ru = /* @__PURE__ */ u(((e) => {
function ep(e, t, n, r, a, o) {
switch (n) {
case "children":
- 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);
+ 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);
else return;
break;
case "className":
- Gt(e, "class", r);
+ Wt(e, "class", r);
break;
case "tabIndex":
- Gt(e, "tabindex", r);
+ Wt(e, "tabindex", r);
break;
case "dir":
case "role":
case "viewBox":
case "width":
case "height":
- Gt(e, n, r);
+ Wt(e, n, r);
break;
case "style":
- un(e, r, o);
+ ln(e, r, o);
return;
case "data": if (t !== "object") {
- Gt(e, "data", r);
+ Wt(e, "data", r);
break;
}
case "src":
@@ -14382,7 +14382,7 @@ var ru = /* @__PURE__ */ u(((e) => {
e.removeAttribute(n);
break;
}
- r = mn(r), e.setAttribute(n, r);
+ r = pn(r), e.setAttribute(n, r);
break;
case "action":
case "formAction":
@@ -14394,10 +14394,10 @@ var ru = /* @__PURE__ */ u(((e) => {
e.removeAttribute(n);
break;
}
- r = mn(r), e.setAttribute(n, r);
+ r = pn(r), e.setAttribute(n, r);
break;
case "onClick":
- r != null && (e.onclick = hn);
+ r != null && (e.onclick = mn);
return;
case "onScroll":
r != null && $("scroll", e);
@@ -14432,7 +14432,7 @@ var ru = /* @__PURE__ */ u(((e) => {
e.removeAttribute("xlink:href");
break;
}
- n = mn(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);
+ n = pn(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);
break;
case "contentEditable":
case "spellCheck":
@@ -14485,41 +14485,41 @@ var ru = /* @__PURE__ */ u(((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);
+ $("beforetoggle", e), $("toggle", e), V(e, "popover", r);
break;
case "xlinkActuate":
- Kt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
+ Gt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
break;
case "xlinkArcrole":
- Kt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);
+ Gt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);
break;
case "xlinkRole":
- Kt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);
+ Gt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);
break;
case "xlinkShow":
- Kt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);
+ Gt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);
break;
case "xlinkTitle":
- Kt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);
+ Gt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);
break;
case "xlinkType":
- Kt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);
+ Gt(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);
+ Gt(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);
+ Gt(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);
+ Gt(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);
break;
case "is":
- Wt(e, "is", r);
+ V(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 = fn.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 = dn.get(n) || n, V(e, n, r);
else return;
}
B = !0;
@@ -14527,7 +14527,7 @@ var ru = /* @__PURE__ */ u(((e) => {
function tp(e, t, n, r, a, o) {
switch (n) {
case "style":
- un(e, r, o);
+ ln(e, r, o);
return;
case "dangerouslySetInnerHTML":
if (r != null) {
@@ -14539,8 +14539,8 @@ var ru = /* @__PURE__ */ u(((e) => {
}
break;
case "children":
- if (typeof r == "string") sn(e, r);
- else if (typeof r == "number" || typeof r == "bigint") sn(e, "" + r);
+ if (typeof r == "string") on(e, r);
+ else if (typeof r == "number" || typeof r == "bigint") on(e, "" + r);
else return;
break;
case "onScroll":
@@ -14550,7 +14550,7 @@ var ru = /* @__PURE__ */ u(((e) => {
r != null && $("scrollend", e);
return;
case "onClick":
- r != null && (e.onclick = hn);
+ r != null && (e.onclick = mn);
return;
case "suppressContentEditableWarning":
case "suppressHydrationWarning":
@@ -14559,12 +14559,12 @@ var ru = /* @__PURE__ */ u(((e) => {
case "innerText":
case "textContent": return;
default:
- 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[Ct] || null, t = t == null ? null : t[n], typeof t == "function" && e.removeEventListener(o, t, a), typeof r == "function")) {
+ 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[L] || 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);
+ B = !0, n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : V(e, n, r);
}
return;
}
@@ -14630,7 +14630,7 @@ var ru = /* @__PURE__ */ u(((e) => {
default: ep(e, t, r, d, n, null);
}
}
- tn(e, o, c, l, u, s, a, !1);
+ en(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) {
@@ -14643,7 +14643,7 @@ var ru = /* @__PURE__ */ u(((e) => {
case "multiple": r = c;
default: ep(e, t, a, c, n, null);
}
- t = o, n = s, e.multiple = !!r, t == null ? n != null && rn(e, !!r, n, !0) : rn(e, !!r, t, !1);
+ t = o, n = s, e.multiple = !!r, t == null ? n != null && nn(e, !!r, n, !0) : nn(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) {
@@ -14661,7 +14661,7 @@ var ru = /* @__PURE__ */ u(((e) => {
break;
default: ep(e, t, s, c, n, null);
}
- on(e, r, a, o);
+ an(e, r, a, o);
return;
case "option":
for (l in n) if (n.hasOwnProperty(l) && (r = n[l], r != null)) switch (l) {
@@ -14708,7 +14708,7 @@ var ru = /* @__PURE__ */ u(((e) => {
default: ep(e, t, u, r, n, null);
}
return;
- default: if (dn(t)) {
+ 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));
return;
}
@@ -14765,7 +14765,7 @@ var ru = /* @__PURE__ */ u(((e) => {
default: m !== f && ep(e, t, p, m, r, f);
}
}
- en(e, s, c, l, u, d, o, a);
+ $t(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) {
@@ -14783,7 +14783,7 @@ var ru = /* @__PURE__ */ u(((e) => {
case "multiple": o !== l && (B = !0), s = o;
default: o !== l && ep(e, t, a, o, r, l);
}
- 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);
+ 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);
return;
case "textarea":
for (c in m = p = null, n) if (a = n[c], n.hasOwnProperty(c) && a != null && !r.hasOwnProperty(c)) switch (c) {
@@ -14804,7 +14804,7 @@ var ru = /* @__PURE__ */ u(((e) => {
break;
default: a !== o && ep(e, t, s, a, r, o);
}
- an(e, p, m);
+ rn(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) {
@@ -14844,7 +14844,7 @@ var ru = /* @__PURE__ */ u(((e) => {
default: ep(e, t, u, p, r, m);
}
return;
- default: if (dn(t)) {
+ 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);
return;
@@ -14903,7 +14903,7 @@ var ru = /* @__PURE__ */ u(((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), Pt(n), n;
+ return n = lp(n).createElement(e), n[St] = r, n[L] = t, np(n, e, t), Nt(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;
@@ -14941,7 +14941,7 @@ var ru = /* @__PURE__ */ u(((e) => {
n = e.ownerDocument.head, _m(n);
for (var a = n.firstChild; a;) {
var o = a.nextSibling, s = a.nodeName;
- a[kt] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;
+ a[Ot] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;
}
} else n === "body" && _m(e.ownerDocument.body);
}
@@ -15246,7 +15246,7 @@ var ru = /* @__PURE__ */ u(((e) => {
f(this._fragmentFiber.child, !1, Hp, n, void 0, void 0);
var r = v(t);
if (n.length === 0) {
- if (n = r, h(this._fragmentFiber)) {
+ if (n = r, m(this._fragmentFiber)) {
a: {
for (t = this._fragmentFiber.return; t !== null;) {
if (t.tag === 4) {
@@ -15262,17 +15262,17 @@ var ru = /* @__PURE__ */ u(((e) => {
}
t = this._fragmentFiber;
var i = r = n.compareDocumentPosition(e);
- return n === e ? i = Node.DOCUMENT_POSITION_CONTAINS : r & Node.DOCUMENT_POSITION_CONTAINED_BY && (n = g(t)[1], n === null ? i = Node.DOCUMENT_POSITION_PRECEDING : (e = v(n).compareDocumentPosition(e), i = e === 0 || e & Node.DOCUMENT_POSITION_FOLLOWING ? Node.DOCUMENT_POSITION_FOLLOWING : Node.DOCUMENT_POSITION_PRECEDING)), i |= Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
+ return n === e ? i = Node.DOCUMENT_POSITION_CONTAINS : r & Node.DOCUMENT_POSITION_CONTAINED_BY && (n = h(t)[1], n === null ? i = Node.DOCUMENT_POSITION_PRECEDING : (e = v(n).compareDocumentPosition(e), i = e === 0 || e & Node.DOCUMENT_POSITION_FOLLOWING ? Node.DOCUMENT_POSITION_FOLLOWING : Node.DOCUMENT_POSITION_PRECEDING)), i |= Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
}
t = v(n[0]), i = v(n[n.length - 1]);
- var a = h(this._fragmentFiber) ? t.parentElement : r;
+ var a = m(this._fragmentFiber) ? t.parentElement : r;
if (a == null) return Node.DOCUMENT_POSITION_DISCONNECTED;
r = a.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_CONTAINED_BY, a = a.compareDocumentPosition(i) & Node.DOCUMENT_POSITION_CONTAINED_BY;
var o = t.compareDocumentPosition(e), s = i.compareDocumentPosition(e), c = o & Node.DOCUMENT_POSITION_CONTAINED_BY || s & Node.DOCUMENT_POSITION_CONTAINED_BY;
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 = R(i);
+ var a = jt(i);
if (e & Node.DOCUMENT_POSITION_CONTAINED_BY) {
if (n = !!a) a: {
for (; a !== null;) {
@@ -15312,7 +15312,7 @@ var ru = /* @__PURE__ */ u(((e) => {
f(this._fragmentFiber.child, !1, Hp, t, void 0, void 0);
var n = !1 !== e;
if (t.length === 0) {
- var r = g(this._fragmentFiber);
+ var r = h(this._fragmentFiber);
if (r = n ? r[1] || r[0] || p(this._fragmentFiber) : r[0] || r[1], r === null) return;
if (r.tag === 6) {
e = v(r), Zp(e, n);
@@ -15388,7 +15388,7 @@ var ru = /* @__PURE__ */ u(((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[kt]) switch (t) {
+ } else if (!e[Ot]) switch (t) {
case "meta":
if (!e.hasAttribute("itemprop")) break;
return e;
@@ -15512,7 +15512,7 @@ var ru = /* @__PURE__ */ u(((e) => {
var i = n[r];
n.hasOwnProperty(r) && i != null && ep(e, t, r, null, rp, i);
}
- n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === hn && (e.onclick = null), At(e);
+ n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === mn && (e.onclick = null), At(e);
}
function _m(e) {
for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);
@@ -15526,8 +15526,8 @@ var ru = /* @__PURE__ */ u(((e) => {
}
return e.nodeType === 9 ? e : e.ownerDocument;
}
- var xm = P.d;
- P.d = {
+ var xm = I.d;
+ I.d = {
f: Sm,
r: Cm,
D: Em,
@@ -15543,19 +15543,19 @@ var ru = /* @__PURE__ */ u(((e) => {
return e || t;
}
function Cm(e) {
- var t = jt(e);
+ var t = R(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 = $t(t);
+ var i = Qt(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), Pt(t), r.head.appendChild(t)));
+ }, r.querySelector(i) === null && (t = r.createElement("link"), np(t, "link", e), Nt(t), r.head.appendChild(t)));
}
}
function Em(e) {
@@ -15568,8 +15568,8 @@ var ru = /* @__PURE__ */ u(((e) => {
xm.L(e, t, n);
var r = wm;
if (r && e && t) {
- 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 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 a = i;
switch (t) {
case "style":
@@ -15583,9 +15583,9 @@ var ru = /* @__PURE__ */ u(((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[L] = !0, o.onload = o.onerror = function() {
- Ft(o);
- }), Pt(o), r.head.appendChild(o);
+ np(o, "link", e), t === "style" && (o[kt] = !0, o.onload = o.onerror = function() {
+ Pt(o);
+ }), Nt(o), r.head.appendChild(o);
}
}
}
@@ -15593,7 +15593,7 @@ var ru = /* @__PURE__ */ u(((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=\"" + $t(r) + "\"][href=\"" + $t(e) + "\"]", a = i;
+ var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + Qt(r) + "\"][href=\"" + Qt(e) + "\"]", a = i;
switch (r) {
case "audioworklet":
case "paintworklet":
@@ -15614,7 +15614,7 @@ var ru = /* @__PURE__ */ u(((e) => {
case "worker":
case "script": if (n.querySelector(zm(a))) return;
}
- r = n.createElement("link"), np(r, "link", e), Pt(r), n.head.appendChild(r);
+ r = n.createElement("link"), np(r, "link", e), Nt(r), n.head.appendChild(r);
}
}
}
@@ -15622,7 +15622,7 @@ var ru = /* @__PURE__ */ u(((e) => {
xm.S(e, t, n);
var r = wm;
if (r && e) {
- var i = Nt(r).hoistableStyles, a = Pm(e);
+ var i = z(r).hoistableStyles, a = Pm(e);
t ||= "default";
var o = i.get(a);
if (!o) {
@@ -15638,7 +15638,7 @@ var ru = /* @__PURE__ */ u(((e) => {
"data-precedence": t
}, n), (n = vm.get(a)) && Hm(e, n);
var c = o = r.createElement("link");
- Pt(c), np(c, "link", e), c._p = new Promise(function(e, t) {
+ Nt(c), np(c, "link", e), c._p = new Promise(function(e, t) {
c.onload = e, c.onerror = t;
}), c.addEventListener("load", function() {
s.loading |= 1;
@@ -15659,11 +15659,11 @@ var ru = /* @__PURE__ */ u(((e) => {
xm.X(e, t);
var n = wm;
if (n && e) {
- var r = Nt(n).hoistableScripts, i = Rm(e), a = r.get(i);
+ var r = z(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"), Pt(a), np(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), Nt(a), np(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -15675,12 +15675,12 @@ var ru = /* @__PURE__ */ u(((e) => {
xm.M(e, t);
var n = wm;
if (n && e) {
- var r = Nt(n).hoistableScripts, i = Rm(e), a = r.get(i);
+ var r = z(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"), Pt(a), np(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), Nt(a), np(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -15689,12 +15689,12 @@ var ru = /* @__PURE__ */ u(((e) => {
}
}
function Nm(e, t, n, r) {
- var a = (a = Ce.current) ? bm(a) : null;
+ var a = (a = Se.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 = Nt(a).hoistableStyles, r = t.get(n), r || (r = {
+ case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Pm(n.href), t = z(a).hoistableStyles, r = t.get(n), r || (r = {
type: "style",
instance: null,
count: 0,
@@ -15708,7 +15708,7 @@ var ru = /* @__PURE__ */ u(((e) => {
case "link":
if (n.rel === "stylesheet" && typeof n.href == "string" && typeof n.precedence == "string") {
e = Pm(n.href);
- var o = Nt(a).hoistableStyles, s = o.get(e);
+ var o = z(a).hoistableStyles, s = o.get(e);
if (s || (a = a.ownerDocument || a, s = {
type: "stylesheet",
instance: null,
@@ -15731,7 +15731,7 @@ var ru = /* @__PURE__ */ u(((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 = Nt(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 = z(a).hoistableScripts, r = t.get(n), r || (r = {
type: "script",
instance: null,
count: 0,
@@ -15746,7 +15746,7 @@ var ru = /* @__PURE__ */ u(((e) => {
}
}
function Pm(e) {
- return "href=\"" + $t(e) + "\"";
+ return "href=\"" + Qt(e) + "\"";
}
function Fm(e) {
return "link[rel=\"stylesheet\"][" + e + "]";
@@ -15759,11 +15759,11 @@ var ru = /* @__PURE__ */ u(((e) => {
}
function Lm(e, t, n, r) {
if (t = e.querySelector("link[rel=\"preload\"][as=\"style\"][" + t + "]")) {
- if (!0 !== t[L]) {
+ if (!0 !== t[kt]) {
r.loading = 1;
return;
}
- } else t = e.createElement("link"), t[L] = !0, t.onload = t.onerror = Ft.bind(null, t), np(t, "link", n), Pt(t), e.head.appendChild(t);
+ } else t = e.createElement("link"), t[kt] = !0, t.onload = t.onerror = Pt.bind(null, t), np(t, "link", n), Nt(t), e.head.appendChild(t);
r.preload = t, t.addEventListener("load", function() {
return r.loading |= 1;
}), t.addEventListener("error", function() {
@@ -15771,7 +15771,7 @@ var ru = /* @__PURE__ */ u(((e) => {
});
}
function Rm(e) {
- return "[src=\"" + $t(e) + "\"]";
+ return "[src=\"" + Qt(e) + "\"]";
}
function zm(e) {
return "script[async]" + e;
@@ -15779,25 +15779,25 @@ var ru = /* @__PURE__ */ u(((e) => {
function Bm(e, t, n) {
if (t.count++, t.instance === null) switch (t.type) {
case "style":
- var r = e.querySelector("style[data-href~=\"" + $t(n.href) + "\"]");
- if (r) return t.instance = r, Pt(r), r;
+ var r = e.querySelector("style[data-href~=\"" + Qt(n.href) + "\"]");
+ if (r) return t.instance = r, Nt(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"), Pt(r), np(r, "style", a), Vm(r, n.precedence, e), t.instance = r;
+ return r = (e.ownerDocument || e).createElement("style"), Nt(r), np(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, Pt(o), o;
- r = Im(n), (a = vm.get(a)) && Hm(r, a), o = (e.ownerDocument || e).createElement("link"), Pt(o);
+ if (o) return t.state.loading |= 4, t.instance = o, Nt(o), o;
+ r = Im(n), (a = vm.get(a)) && Hm(r, a), o = (e.ownerDocument || e).createElement("link"), Nt(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, Pt(a), a) : (r = n, (a = vm.get(o)) && (r = T({}, n), Um(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Pt(a), np(a, "link", r), e.head.appendChild(a), t.instance = a);
+ case "script": return o = Rm(n.src), (a = e.querySelector(zm(o))) ? (t.instance = a, Nt(a), a) : (r = n, (a = vm.get(o)) && (r = T({}, n), Um(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Nt(a), np(a, "link", r), e.head.appendChild(a), t.instance = a);
case "void": return null;
default: throw Error(i(443, t.type));
}
@@ -15827,7 +15827,7 @@ var ru = /* @__PURE__ */ u(((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[kt] || a[St] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {
+ if (!(a[Ot] || a[St] || 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);
@@ -15874,10 +15874,10 @@ var ru = /* @__PURE__ */ u(((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, Pt(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, Nt(a);
return;
}
- a = t.ownerDocument || t, r = Im(r), (i = vm.get(i)) && Hm(r, i), a = a.createElement("link"), Pt(a);
+ a = t.ownerDocument || t, r = Im(r), (i = vm.get(i)) && Hm(r, i), a = a.createElement("link"), Nt(a);
var o = a;
o._p = new Promise(function(e, t) {
o.onload = e, o.onerror = t;
@@ -15942,28 +15942,28 @@ var ru = /* @__PURE__ */ u(((e) => {
}
}
var sh = {
- $$typeof: te,
+ $$typeof: N,
Provider: null,
Consumer: null,
- _currentValue: ge,
- _currentValue2: ge,
+ _currentValue: me,
+ _currentValue2: me,
_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 = 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();
+ 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();
}
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 = ki(3, null, null, t), e.current = a, a.stateNode = e, t = Da(), 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 = Oi(3, null, null, t), e.current = a, a.stateNode = e, t = Oa(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
element: r,
isDehydrated: n,
cache: t
- }, lo(a), e;
+ }, uo(a), e;
}
function uh(e) {
- return e ? (e = Di, e) : Di;
+ return e ? (e = Ei, e) : Ei;
}
function dh(e, t, n, r, i, a) {
- 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 && (Md(n, e, t), mo(n, e, t));
+ i = uh(i), r.context === null ? r.context = i : r.pendingContext = i, r = po(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = mo(e, r, t), n !== null && (Md(n, e, t), ho(n, e, t));
}
function fh(e, t) {
if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
@@ -15976,37 +15976,37 @@ var ru = /* @__PURE__ */ u(((e) => {
}
function mh(e) {
if (e.tag === 13 || e.tag === 31) {
- var t = wi(e, 67108864);
+ var t = Ci(e, 67108864);
t !== null && Md(t, e, 67108864), ph(e, 67108864);
}
}
function hh(e) {
if (e.tag === 13 || e.tag === 31) {
var t = kd();
- t = vt(t);
- var n = wi(e, t);
+ t = _t(t);
+ var n = Ci(e, t);
n !== null && Md(n, e, t), ph(e, t);
}
}
var gh = !0;
function _h(e, t, n, r) {
- var i = N.T;
- N.T = null;
- var a = P.p;
+ var i = F.T;
+ F.T = null;
+ var a = I.p;
try {
- P.p = 2, yh(e, t, n, r);
+ I.p = 2, yh(e, t, n, r);
} finally {
- P.p = a, N.T = i;
+ I.p = a, F.T = i;
}
}
function vh(e, t, n, r) {
- var i = N.T;
- N.T = null;
- var a = P.p;
+ var i = F.T;
+ F.T = null;
+ var a = I.p;
try {
- P.p = 8, yh(e, t, n, r);
+ I.p = 8, yh(e, t, n, r);
} finally {
- P.p = a, N.T = i;
+ I.p = a, F.T = i;
}
}
function yh(e, t, n, r) {
@@ -16016,23 +16016,23 @@ var ru = /* @__PURE__ */ u(((e) => {
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 = jt(i);
+ var a = R(i);
if (a !== null) switch (a.tag) {
case 3:
if (a = a.stateNode, a.current.memoizedState.isDehydrated) {
- var o = ot(a.pendingLanes);
+ var o = at(a.pendingLanes);
if (o !== 0) {
var s = a;
for (s.pendingLanes |= 2, s.entangledLanes |= 2; o;) {
- var c = 1 << 31 - $e(o);
+ var c = 1 << 31 - Qe(o);
s.entanglements[1] |= c, o &= ~c;
}
- Tf(a), !(K & 6) && (Q = Ve() + 500, Ef(0, !1));
+ Tf(a), !($u & 6) && (hd = Be() + 500, Ef(0, !1));
}
}
break;
case 31:
- case 13: s = wi(a, 2), s !== null && Md(s, a, 2), Ld(), ph(a, 2);
+ case 13: s = Ci(a, 2), s !== null && Md(s, a, 2), Ld(), ph(a, 2);
}
if (a = bh(r), a === null && Gf(e, t, r, xh, n), a === i) break;
i = a;
@@ -16042,11 +16042,11 @@ var ru = /* @__PURE__ */ u(((e) => {
}
}
function bh(e) {
- return e = _n(e), Sh(e);
+ return e = gn(e), Sh(e);
}
var xh = null;
function Sh(e) {
- if (xh = null, e = R(e), e !== null) {
+ if (xh = null, e = jt(e), e !== null) {
var t = o(e);
if (t === null) e = null;
else {
@@ -16139,12 +16139,12 @@ var ru = /* @__PURE__ */ u(((e) => {
case "mouseleave":
case "pointerenter":
case "pointerleave": return 8;
- case "message": switch (He()) {
- case Ue: return 2;
- case We: return 8;
- case Ge:
- case Ke: return 32;
- case qe: return 268435456;
+ case "message": switch (Ve()) {
+ case He: return 2;
+ case Ue: return 8;
+ case We:
+ case Ge: return 32;
+ case Ke: return 268435456;
default: return 32;
}
default: return 32;
@@ -16180,7 +16180,7 @@ var ru = /* @__PURE__ */ u(((e) => {
eventSystemFlags: r,
nativeEvent: a,
targetContainers: [i]
- }, t !== null && (t = jt(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 = R(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) {
@@ -16195,20 +16195,20 @@ var ru = /* @__PURE__ */ u(((e) => {
return !1;
}
function Fh(e) {
- var t = R(e.target);
+ var t = jt(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, I(e.priority, function() {
+ e.blockedOn = t, bt(e.priority, function() {
hh(n);
});
return;
}
} else if (t === 31) {
if (t = c(n), t !== null) {
- e.blockedOn = t, I(e.priority, function() {
+ e.blockedOn = t, bt(e.priority, function() {
hh(n);
});
return;
@@ -16228,8 +16228,8 @@ var ru = /* @__PURE__ */ u(((e) => {
if (n === null) {
n = e.nativeEvent;
var r = new n.constructor(n.type, n);
- gn = r, n.target.dispatchEvent(r), gn = null;
- } else return t = jt(n), t !== null && mh(t), e.blockedOn = n, !1;
+ hn = r, n.target.dispatchEvent(r), hn = null;
+ } else return t = R(n), t !== null && mh(t), e.blockedOn = n, !1;
t.shift();
}
return !0;
@@ -16253,7 +16253,7 @@ var ru = /* @__PURE__ */ u(((e) => {
if (Sh(r || n) === null) continue;
break;
}
- var a = jt(n);
+ var a = R(n);
a !== null && (e.splice(t, 3), t -= 3, Zs(a, {
pending: !0,
data: i,
@@ -16274,12 +16274,12 @@ var ru = /* @__PURE__ */ u(((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[L] || 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[L] || 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);
@@ -16331,7 +16331,7 @@ var ru = /* @__PURE__ */ u(((e) => {
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), Ld(), t[Ct] = null;
}
};
function Gh(e) {
@@ -16339,7 +16339,7 @@ var ru = /* @__PURE__ */ u(((e) => {
}
Gh.prototype.unstable_scheduleHydration = function(e) {
if (e) {
- var t = bt();
+ var t = yt();
e = {
blockedOn: null,
target: e,
@@ -16351,7 +16351,7 @@ var ru = /* @__PURE__ */ u(((e) => {
};
var Kh = n.version;
if (Kh !== "19.3.0") throw Error(i(527, Kh, "19.3.0"));
- P.findDOMNode = function(e) {
+ I.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;
@@ -16360,21 +16360,21 @@ var ru = /* @__PURE__ */ u(((e) => {
bundleType: 0,
version: "19.3.0",
rendererPackageName: "react-dom",
- currentDispatcherRef: N,
+ currentDispatcherRef: F,
reconcilerVersion: "19.3.0"
};
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
var Jh = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (!Jh.isDisabled && Jh.supportsFiber) try {
- Xe = Jh.inject(qh), Ze = Jh;
+ Ye = Jh.inject(qh), Xe = Jh;
} catch {}
}
e.createRoot = function(e, t) {
if (!a(e)) throw Error(i(299));
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[wt] = t.current, Uf(e), new Wh(t);
+ 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[Ct] = t.current, Uf(e), new Wh(t);
};
-})), ou = (/* @__PURE__ */ u(((e, t) => {
+})), cu = (/* @__PURE__ */ p(((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);
@@ -16382,8 +16382,16 @@ var ru = /* @__PURE__ */ u(((e) => {
console.error(e);
}
}
- n(), t.exports = au();
-})))(), su = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => _.createElement("svg", {
+ n(), t.exports = su();
+})))(), lu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, b.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" })), uu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16391,7 +16399,7 @@ var ru = /* @__PURE__ */ u(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, _.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" })), cu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => _.createElement("svg", {
+}, b.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" })), du = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16399,7 +16407,7 @@ var ru = /* @__PURE__ */ u(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, _.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" })), lu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => _.createElement("svg", {
+}, b.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" })), fu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16407,7 +16415,7 @@ var ru = /* @__PURE__ */ u(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, _.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" })), uu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => _.createElement("svg", {
+}, b.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" })), pu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16415,7 +16423,7 @@ var ru = /* @__PURE__ */ u(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, _.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" })), du = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => _.createElement("svg", {
+}, b.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" })), mu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => b.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16423,100 +16431,100 @@ var ru = /* @__PURE__ */ u(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, _.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" })), fu = (e, t) => {
+}, b.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" })), hu = (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;
-}, pu = (e, t) => ({
+}, gu = (e, t) => ({
classGroupId: e,
validator: t
-}), mu = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), _u = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), hu = "-", gu = [], _u = "arbitrary..", vu = (e) => {
- let t = xu(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), vu = "-", yu = [], bu = "arbitrary..", xu = (e) => {
+ let t = wu(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return bu(e);
- let n = e.split(hu);
- return yu(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return Cu(e);
+ let n = e.split(vu);
+ return Su(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? fu(i, t) : t : i || gu;
+ return t ? i ? hu(i, t) : t : i || yu;
}
- return n[e] || gu;
+ return n[e] || yu;
}
};
-}, yu = (e, t, n) => {
+}, Su = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = yu(e, t + 1, i);
+ let n = Su(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(hu) : e.slice(t).join(hu), s = a.length;
+ let o = t === 0 ? e.join(vu) : e.slice(t).join(vu), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, bu = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, Cu = (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 ? _u + r : void 0;
-})(), xu = (e) => {
+ return r ? bu + r : void 0;
+})(), wu = (e) => {
let { theme: t, classGroups: n } = e;
- return Su(n, t);
-}, Su = (e, t) => {
- let n = mu();
+ return Tu(n, t);
+}, Tu = (e, t) => {
+ let n = _u();
for (let r in e) {
let i = e[r];
- Cu(i, n, r, t);
+ Eu(i, n, r, t);
}
return n;
-}, Cu = (e, t, n, r) => {
+}, Eu = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- wu(i, t, n, r);
+ Du(i, t, n, r);
}
-}, wu = (e, t, n, r) => {
+}, Du = (e, t, n, r) => {
if (typeof e == "string") {
- Tu(e, t, n);
+ Ou(e, t, n);
return;
}
if (typeof e == "function") {
- Eu(e, t, n, r);
+ ku(e, t, n, r);
return;
}
- Du(e, t, n, r);
-}, Tu = (e, t, n) => {
- let r = e === "" ? t : Ou(t, e);
+ Au(e, t, n, r);
+}, Ou = (e, t, n) => {
+ let r = e === "" ? t : ju(t, e);
r.classGroupId = n;
-}, Eu = (e, t, n, r) => {
- if (ku(e)) {
- Cu(e(r), t, n, r);
+}, ku = (e, t, n, r) => {
+ if (Mu(e)) {
+ Eu(e(r), t, n, r);
return;
}
- t.validators === null && (t.validators = []), t.validators.push(pu(n, e));
-}, Du = (e, t, n, r) => {
+ t.validators === null && (t.validators = []), t.validators.push(gu(n, e));
+}, Au = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- Cu(o, Ou(t, a), n, r);
+ Eu(o, ju(t, a), n, r);
}
-}, Ou = (e, t) => {
- let n = e, r = t.split(hu), i = r.length;
+}, ju = (e, t) => {
+ let n = e, r = t.split(vu), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = mu(), n.nextPart.set(t, i)), n = i;
+ i || (i = _u(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, ku = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Au = (e) => {
+}, Mu = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Nu = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -16534,19 +16542,19 @@ var ru = /* @__PURE__ */ u(((e) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, ju = "!", Mu = ":", Nu = [], Pu = (e, t, n, r, i) => ({
+}, Pu = "!", Fu = ":", Iu = [], Lu = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), Fu = (e) => {
+}), Ru = (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 === Mu) {
+ if (o === Fu) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -16558,13 +16566,13 @@ var ru = /* @__PURE__ */ u(((e) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(ju) ? (c = s.slice(0, -1), l = !0) : s.startsWith(ju) && (c = s.slice(1), l = !0);
+ s.endsWith(Pu) ? (c = s.slice(0, -1), l = !0) : s.startsWith(Pu) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return Pu(t, l, c, u);
+ return Lu(t, l, c, u);
};
if (t) {
- let e = t + Mu, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Pu(Nu, !1, t, void 0, !0);
+ let e = t + Fu, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Lu(Iu, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -16574,7 +16582,7 @@ var ru = /* @__PURE__ */ u(((e) => {
});
}
return r;
-}, Iu = (e) => {
+}, zu = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -16586,18 +16594,18 @@ var ru = /* @__PURE__ */ u(((e) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, Lu = (e) => ({
- cache: Au(e.cacheSize),
- parseClassName: Fu(e),
- sortModifiers: Iu(e),
- postfixLookupClassGroupIds: Ru(e),
- ...vu(e)
-}), Ru = (e) => {
+}, Bu = (e) => ({
+ cache: Nu(e.cacheSize),
+ parseClassName: Ru(e),
+ sortModifiers: zu(e),
+ postfixLookupClassGroupIds: Vu(e),
+ ...xu(e)
+}), Vu = (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;
-}, zu = /\s+/, Bu = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(zu), l = "";
+}, Hu = /\s+/, Uu = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Hu), 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) {
@@ -16621,7 +16629,7 @@ var ru = /* @__PURE__ */ u(((e) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + ju : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + Pu : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -16632,34 +16640,34 @@ var ru = /* @__PURE__ */ u(((e) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, Vu = (...e) => {
+}, Wu = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = Hu(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = Gu(n)) && (i && (i += " "), i += r);
return i;
-}, Hu = (e) => {
+}, Gu = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = Hu(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = Gu(e[r])) && (n && (n += " "), n += t);
return n;
-}, Uu = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = Lu(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, Ku = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = Bu(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 = Bu(e, n);
+ let a = Uu(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(Vu(...e));
-}, Wu = [], Gu = (e) => {
- let t = (t) => t[e] || Wu;
+ return a = o, (...e) => a(Wu(...e));
+}, qu = [], Ju = (e) => {
+ let t = (t) => t[e] || qu;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, Ku = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, qu = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ju = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Yu = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Xu = /\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$/, Zu = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Qu = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, $u = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, K = (e) => Ju.test(e), q = (e) => !!e && !Number.isNaN(Number(e)), J = (e) => !!e && Number.isInteger(Number(e)), Y = (e) => e.endsWith("%") && q(e.slice(0, -1)), X = (e) => Yu.test(e), ed = () => !0, td = (e) => Xu.test(e) && !Zu.test(e), nd = () => !1, rd = (e) => Qu.test(e), id = (e) => $u.test(e), ad = (e) => !Z(e) && !Q(e), od = (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)), sd = (e) => Sd(e, Ed, nd), Z = (e) => Ku.test(e), cd = (e) => Sd(e, Dd, td), ld = (e) => Sd(e, Od, q), ud = (e) => Sd(e, Ad, ed), dd = (e) => Sd(e, kd, nd), fd = (e) => Sd(e, wd, nd), pd = (e) => Sd(e, Td, id), md = (e) => Sd(e, jd, rd), Q = (e) => qu.test(e), hd = (e) => Cd(e, Dd), gd = (e) => Cd(e, kd), _d = (e) => Cd(e, wd), vd = (e) => Cd(e, Ed), yd = (e) => Cd(e, Td), bd = (e) => Cd(e, jd, !0), xd = (e) => Cd(e, Ad, !0), Sd = (e, t, n) => {
- let r = Ku.exec(e);
+}, Yu = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Xu = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Zu = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Qu = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, $u = /\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$/, ed = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, q = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, J = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Y = (e) => Zu.test(e), X = (e) => !!e && !Number.isNaN(Number(e)), td = (e) => !!e && Number.isInteger(Number(e)), nd = (e) => e.endsWith("%") && X(e.slice(0, -1)), rd = (e) => Qu.test(e), id = () => !0, ad = (e) => $u.test(e) && !ed.test(e), od = () => !1, sd = (e) => q.test(e), cd = (e) => J.test(e), ld = (e) => !Z(e) && !Q(e), ud = (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)), dd = (e) => Ed(e, Ad, od), Z = (e) => Yu.test(e), fd = (e) => Ed(e, jd, ad), pd = (e) => Ed(e, Md, X), md = (e) => Ed(e, Pd, id), hd = (e) => Ed(e, Nd, od), gd = (e) => Ed(e, Od, od), _d = (e) => Ed(e, kd, cd), vd = (e) => Ed(e, Fd, sd), Q = (e) => Xu.test(e), yd = (e) => Dd(e, jd), bd = (e) => Dd(e, Nd), xd = (e) => Dd(e, Od), Sd = (e) => Dd(e, Ad), Cd = (e) => Dd(e, kd), wd = (e) => Dd(e, Fd, !0), Td = (e) => Dd(e, Pd, !0), Ed = (e, t, n) => {
+ let r = Yu.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, Cd = (e, t, n = !1) => {
- let r = qu.exec(e);
+}, Dd = (e, t, n = !1) => {
+ let r = Xu.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, wd = (e) => e === "position" || e === "percentage", Td = (e) => e === "image" || e === "url", Ed = (e) => e === "length" || e === "size" || e === "bg-size", Dd = (e) => e === "length", Od = (e) => e === "number", kd = (e) => e === "family-name", Ad = (e) => e === "number" || e === "weight", jd = (e) => e === "shadow", Md = () => {
- let e = Gu("color"), t = Gu("font"), n = Gu("text"), r = Gu("font-weight"), i = Gu("tracking"), a = Gu("leading"), o = Gu("breakpoint"), s = Gu("container"), c = Gu("spacing"), l = Gu("radius"), u = Gu("shadow"), d = Gu("inset-shadow"), f = Gu("text-shadow"), p = Gu("drop-shadow"), m = Gu("blur"), h = Gu("perspective"), g = Gu("aspect"), _ = Gu("ease"), v = Gu("animate"), y = () => [
+}, Od = (e) => e === "position" || e === "percentage", kd = (e) => e === "image" || e === "url", Ad = (e) => e === "length" || e === "size" || e === "bg-size", jd = (e) => e === "length", Md = (e) => e === "number", Nd = (e) => e === "family-name", Pd = (e) => e === "number" || e === "weight", Fd = (e) => e === "shadow", Id = () => {
+ let e = Ju("color"), t = Ju("font"), n = Ju("text"), r = Ju("font-weight"), i = Ju("tracking"), a = Ju("leading"), o = Ju("breakpoint"), s = Ju("container"), c = Ju("spacing"), l = Ju("radius"), u = Ju("shadow"), d = Ju("inset-shadow"), f = Ju("text-shadow"), p = Ju("drop-shadow"), m = Ju("blur"), h = Ju("perspective"), g = Ju("aspect"), _ = Ju("ease"), v = Ju("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -16701,12 +16709,12 @@ var ru = /* @__PURE__ */ u(((e) => {
Z,
c
], T = () => [
- K,
+ Y,
"full",
"auto",
...w()
], E = () => [
- J,
+ td,
"none",
"subgrid",
Q,
@@ -16715,15 +16723,15 @@ var ru = /* @__PURE__ */ u(((e) => {
"auto",
{ span: [
"full",
- J,
+ td,
Q,
Z
] },
- J,
+ td,
Q,
Z
], O = () => [
- J,
+ td,
"auto",
Q,
Z
@@ -16745,15 +16753,15 @@ var ru = /* @__PURE__ */ u(((e) => {
"baseline",
"center-safe",
"end-safe"
- ], ee = () => [
+ ], j = () => [
"start",
"end",
"center",
"stretch",
"center-safe",
"end-safe"
- ], j = () => ["auto", ...w()], te = () => [
- K,
+ ], M = () => ["auto", ...w()], N = () => [
+ Y,
"auto",
"full",
"dvw",
@@ -16766,9 +16774,9 @@ var ru = /* @__PURE__ */ u(((e) => {
"max",
"fit",
...w()
- ], ne = () => [
+ ], ee = () => [
s,
- K,
+ Y,
"screen",
"full",
"dvw",
@@ -16778,8 +16786,8 @@ var ru = /* @__PURE__ */ u(((e) => {
"max",
"fit",
...w()
- ], re = () => [
- K,
+ ], te = () => [
+ Y,
"screen",
"full",
"lh",
@@ -16790,50 +16798,50 @@ var ru = /* @__PURE__ */ u(((e) => {
"max",
"fit",
...w()
- ], M = () => [
+ ], P = () => [
e,
Q,
Z
- ], ie = () => [
+ ], ne = () => [
...b(),
- _d,
- fd,
+ xd,
+ gd,
{ position: [Q, Z] }
- ], ae = () => ["no-repeat", { repeat: [
+ ], re = () => ["no-repeat", { repeat: [
"",
"x",
"y",
"space",
"round"
- ] }], oe = () => [
+ ] }], ie = () => [
"auto",
"cover",
"contain",
- vd,
- sd,
+ Sd,
+ dd,
{ size: [Q, Z] }
- ], se = () => [
- Y,
- hd,
- cd
- ], ce = () => [
+ ], ae = () => [
+ nd,
+ yd,
+ fd
+ ], oe = () => [
"",
"none",
"full",
l,
Q,
Z
- ], le = () => [
+ ], se = () => [
"",
- q,
- hd,
- cd
- ], ue = () => [
+ X,
+ yd,
+ fd
+ ], ce = () => [
"solid",
"dashed",
"dotted",
"double"
- ], de = () => [
+ ], le = () => [
"normal",
"multiply",
"screen",
@@ -16850,33 +16858,33 @@ var ru = /* @__PURE__ */ u(((e) => {
"saturation",
"color",
"luminosity"
- ], fe = () => [
- q,
- Y,
- _d,
- fd
- ], pe = () => [
+ ], ue = () => [
+ X,
+ nd,
+ xd,
+ gd
+ ], de = () => [
"",
"none",
m,
Q,
Z
- ], me = () => [
+ ], fe = () => [
"none",
- q,
+ X,
Q,
Z
- ], he = () => [
+ ], pe = () => [
"none",
- q,
+ X,
Q,
Z
- ], N = () => [
- q,
+ ], F = () => [
+ X,
Q,
Z
- ], P = () => [
- K,
+ ], I = () => [
+ Y,
"full",
...w()
];
@@ -16890,17 +16898,17 @@ var ru = /* @__PURE__ */ u(((e) => {
"bounce"
],
aspect: ["video"],
- blur: [X],
- breakpoint: [X],
- color: [ed],
- container: [X],
- "drop-shadow": [X],
+ blur: [rd],
+ breakpoint: [rd],
+ color: [id],
+ container: [rd],
+ "drop-shadow": [rd],
ease: [
"in",
"out",
"in-out"
],
- font: [ad],
+ font: [ld],
"font-weight": [
"thin",
"extralight",
@@ -16912,7 +16920,7 @@ var ru = /* @__PURE__ */ u(((e) => {
"extrabold",
"black"
],
- "inset-shadow": [X],
+ "inset-shadow": [rd],
leading: [
"none",
"tight",
@@ -16929,11 +16937,11 @@ var ru = /* @__PURE__ */ u(((e) => {
"distant",
"none"
],
- radius: [X],
- shadow: [X],
- spacing: ["px", q],
- text: [X],
- "text-shadow": [X],
+ radius: [rd],
+ shadow: [rd],
+ spacing: ["px", X],
+ text: [rd],
+ "text-shadow": [rd],
tracking: [
"tighter",
"tight",
@@ -16947,7 +16955,7 @@ var ru = /* @__PURE__ */ u(((e) => {
aspect: [{ aspect: [
"auto",
"square",
- K,
+ Y,
Z,
Q,
g
@@ -16960,9 +16968,9 @@ var ru = /* @__PURE__ */ u(((e) => {
Q,
Z
] }],
- "container-named": [od],
+ "container-named": [ud],
columns: [{ columns: [
- q,
+ X,
"auto",
Z,
Q,
@@ -17062,13 +17070,13 @@ var ru = /* @__PURE__ */ u(((e) => {
"collapse"
],
z: [{ z: [
- J,
+ td,
"auto",
Q,
Z
] }],
basis: [{ basis: [
- K,
+ Y,
"full",
"auto",
s,
@@ -17086,8 +17094,8 @@ var ru = /* @__PURE__ */ u(((e) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- q,
- K,
+ X,
+ Y,
"auto",
"initial",
"none",
@@ -17095,18 +17103,18 @@ var ru = /* @__PURE__ */ u(((e) => {
] }],
grow: [{ grow: [
"",
- q,
+ X,
Q,
Z
] }],
shrink: [{ shrink: [
"",
- q,
+ X,
Q,
Z
] }],
order: [{ order: [
- J,
+ td,
"first",
"last",
"none",
@@ -17134,18 +17142,18 @@ var ru = /* @__PURE__ */ u(((e) => {
"gap-x": [{ "gap-x": w() }],
"gap-y": [{ "gap-y": w() }],
"justify-content": [{ justify: [...A(), "normal"] }],
- "justify-items": [{ "justify-items": [...ee(), "normal"] }],
- "justify-self": [{ "justify-self": ["auto", ...ee()] }],
+ "justify-items": [{ "justify-items": [...j(), "normal"] }],
+ "justify-self": [{ "justify-self": ["auto", ...j()] }],
"align-content": [{ content: ["normal", ...A()] }],
- "align-items": [{ items: [...ee(), { baseline: ["", "last"] }] }],
+ "align-items": [{ items: [...j(), { baseline: ["", "last"] }] }],
"align-self": [{ self: [
"auto",
- ...ee(),
+ ...j(),
{ baseline: ["", "last"] }
] }],
"place-content": [{ "place-content": A() }],
- "place-items": [{ "place-items": [...ee(), "baseline"] }],
- "place-self": [{ "place-self": ["auto", ...ee()] }],
+ "place-items": [{ "place-items": [...j(), "baseline"] }],
+ "place-self": [{ "place-self": ["auto", ...j()] }],
p: [{ p: w() }],
px: [{ px: w() }],
py: [{ py: w() }],
@@ -17157,38 +17165,38 @@ var ru = /* @__PURE__ */ u(((e) => {
pr: [{ pr: w() }],
pb: [{ pb: w() }],
pl: [{ pl: w() }],
- m: [{ m: j() }],
- mx: [{ mx: j() }],
- my: [{ my: j() }],
- ms: [{ ms: j() }],
- me: [{ me: j() }],
- mbs: [{ mbs: j() }],
- mbe: [{ mbe: j() }],
- mt: [{ mt: j() }],
- mr: [{ mr: j() }],
- mb: [{ mb: j() }],
- ml: [{ ml: j() }],
+ m: [{ m: M() }],
+ mx: [{ mx: M() }],
+ my: [{ my: M() }],
+ ms: [{ ms: M() }],
+ me: [{ me: M() }],
+ mbs: [{ mbs: M() }],
+ mbe: [{ mbe: M() }],
+ mt: [{ mt: M() }],
+ mr: [{ mr: M() }],
+ mb: [{ mb: M() }],
+ ml: [{ ml: M() }],
"space-x": [{ "space-x": w() }],
"space-x-reverse": ["space-x-reverse"],
"space-y": [{ "space-y": w() }],
"space-y-reverse": ["space-y-reverse"],
- size: [{ size: te() }],
- "inline-size": [{ inline: ["auto", ...ne()] }],
- "min-inline-size": [{ "min-inline": ["auto", ...ne()] }],
- "max-inline-size": [{ "max-inline": ["none", ...ne()] }],
- "block-size": [{ block: ["auto", ...re()] }],
- "min-block-size": [{ "min-block": ["auto", ...re()] }],
- "max-block-size": [{ "max-block": ["none", ...re()] }],
+ size: [{ size: N() }],
+ "inline-size": [{ inline: ["auto", ...ee()] }],
+ "min-inline-size": [{ "min-inline": ["auto", ...ee()] }],
+ "max-inline-size": [{ "max-inline": ["none", ...ee()] }],
+ "block-size": [{ block: ["auto", ...te()] }],
+ "min-block-size": [{ "min-block": ["auto", ...te()] }],
+ "max-block-size": [{ "max-block": ["none", ...te()] }],
w: [{ w: [
s,
"screen",
- ...te()
+ ...N()
] }],
"min-w": [{ "min-w": [
s,
"screen",
"none",
- ...te()
+ ...N()
] }],
"max-w": [{ "max-w": [
s,
@@ -17196,37 +17204,37 @@ var ru = /* @__PURE__ */ u(((e) => {
"none",
"prose",
{ screen: [o] },
- ...te()
+ ...N()
] }],
h: [{ h: [
"screen",
"lh",
- ...te()
+ ...N()
] }],
"min-h": [{ "min-h": [
"screen",
"lh",
"none",
- ...te()
+ ...N()
] }],
"max-h": [{ "max-h": [
"screen",
"lh",
"none",
- ...te()
+ ...N()
] }],
"font-size": [{ text: [
"base",
n,
- hd,
- cd
+ yd,
+ fd
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- xd,
- ud
+ Td,
+ md
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -17238,12 +17246,12 @@ var ru = /* @__PURE__ */ u(((e) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- Y,
+ nd,
Z
] }],
"font-family": [{ font: [
- gd,
- dd,
+ bd,
+ hd,
t
] }],
"font-features": [{ "font-features": [Z] }],
@@ -17259,10 +17267,10 @@ var ru = /* @__PURE__ */ u(((e) => {
Z
] }],
"line-clamp": [{ "line-clamp": [
- q,
+ X,
"none",
Q,
- ld
+ pd
] }],
leading: [{ leading: [
"none",
@@ -17290,25 +17298,25 @@ var ru = /* @__PURE__ */ u(((e) => {
"start",
"end"
] }],
- "placeholder-color": [{ placeholder: M() }],
- "text-color": [{ text: M() }],
+ "placeholder-color": [{ placeholder: P() }],
+ "text-color": [{ text: P() }],
"text-decoration": [
"underline",
"overline",
"line-through",
"no-underline"
],
- "text-decoration-style": [{ decoration: [...ue(), "wavy"] }],
+ "text-decoration-style": [{ decoration: [...ce(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- q,
+ X,
"from-font",
"auto",
Q,
- cd
+ fd
] }],
- "text-decoration-color": [{ decoration: M() }],
+ "text-decoration-color": [{ decoration: P() }],
"underline-offset": [{ "underline-offset": [
- q,
+ X,
"auto",
Q,
Z
@@ -17332,7 +17340,7 @@ var ru = /* @__PURE__ */ u(((e) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- J,
+ td,
Q,
Z
] }],
@@ -17393,9 +17401,9 @@ var ru = /* @__PURE__ */ u(((e) => {
"padding",
"content"
] }],
- "bg-position": [{ bg: ie() }],
- "bg-repeat": [{ bg: ae() }],
- "bg-size": [{ bg: oe() }],
+ "bg-position": [{ bg: ne() }],
+ "bg-repeat": [{ bg: re() }],
+ "bg-size": [{ bg: ie() }],
"bg-image": [{ bg: [
"none",
{
@@ -17410,7 +17418,7 @@ var ru = /* @__PURE__ */ u(((e) => {
"l",
"tl"
] },
- J,
+ td,
Q,
Z
],
@@ -17421,131 +17429,131 @@ var ru = /* @__PURE__ */ u(((e) => {
],
conic: [
"",
- J,
+ td,
Q,
Z
]
},
- yd,
- pd
+ Cd,
+ _d
] }],
- "bg-color": [{ bg: M() }],
- "gradient-from-pos": [{ from: se() }],
- "gradient-via-pos": [{ via: se() }],
- "gradient-to-pos": [{ to: se() }],
- "gradient-from": [{ from: M() }],
- "gradient-via": [{ via: M() }],
- "gradient-to": [{ to: M() }],
- rounded: [{ rounded: ce() }],
- "rounded-s": [{ "rounded-s": ce() }],
- "rounded-e": [{ "rounded-e": ce() }],
- "rounded-t": [{ "rounded-t": ce() }],
- "rounded-r": [{ "rounded-r": ce() }],
- "rounded-b": [{ "rounded-b": ce() }],
- "rounded-l": [{ "rounded-l": ce() }],
- "rounded-ss": [{ "rounded-ss": ce() }],
- "rounded-se": [{ "rounded-se": ce() }],
- "rounded-ee": [{ "rounded-ee": ce() }],
- "rounded-es": [{ "rounded-es": ce() }],
- "rounded-tl": [{ "rounded-tl": ce() }],
- "rounded-tr": [{ "rounded-tr": ce() }],
- "rounded-br": [{ "rounded-br": ce() }],
- "rounded-bl": [{ "rounded-bl": ce() }],
- "border-w": [{ border: le() }],
- "border-w-x": [{ "border-x": le() }],
- "border-w-y": [{ "border-y": le() }],
- "border-w-s": [{ "border-s": le() }],
- "border-w-e": [{ "border-e": le() }],
- "border-w-bs": [{ "border-bs": le() }],
- "border-w-be": [{ "border-be": le() }],
- "border-w-t": [{ "border-t": le() }],
- "border-w-r": [{ "border-r": le() }],
- "border-w-b": [{ "border-b": le() }],
- "border-w-l": [{ "border-l": le() }],
- "divide-x": [{ "divide-x": le() }],
+ "bg-color": [{ bg: P() }],
+ "gradient-from-pos": [{ from: ae() }],
+ "gradient-via-pos": [{ via: ae() }],
+ "gradient-to-pos": [{ to: ae() }],
+ "gradient-from": [{ from: P() }],
+ "gradient-via": [{ via: P() }],
+ "gradient-to": [{ to: P() }],
+ 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() }],
"divide-x-reverse": ["divide-x-reverse"],
- "divide-y": [{ "divide-y": le() }],
+ "divide-y": [{ "divide-y": se() }],
"divide-y-reverse": ["divide-y-reverse"],
"border-style": [{ border: [
- ...ue(),
+ ...ce(),
"hidden",
"none"
] }],
"divide-style": [{ divide: [
- ...ue(),
+ ...ce(),
"hidden",
"none"
] }],
- "border-color": [{ border: M() }],
- "border-color-x": [{ "border-x": M() }],
- "border-color-y": [{ "border-y": M() }],
- "border-color-s": [{ "border-s": M() }],
- "border-color-e": [{ "border-e": M() }],
- "border-color-bs": [{ "border-bs": M() }],
- "border-color-be": [{ "border-be": M() }],
- "border-color-t": [{ "border-t": M() }],
- "border-color-r": [{ "border-r": M() }],
- "border-color-b": [{ "border-b": M() }],
- "border-color-l": [{ "border-l": M() }],
- "divide-color": [{ divide: M() }],
+ "border-color": [{ border: P() }],
+ "border-color-x": [{ "border-x": P() }],
+ "border-color-y": [{ "border-y": P() }],
+ "border-color-s": [{ "border-s": P() }],
+ "border-color-e": [{ "border-e": P() }],
+ "border-color-bs": [{ "border-bs": P() }],
+ "border-color-be": [{ "border-be": P() }],
+ "border-color-t": [{ "border-t": P() }],
+ "border-color-r": [{ "border-r": P() }],
+ "border-color-b": [{ "border-b": P() }],
+ "border-color-l": [{ "border-l": P() }],
+ "divide-color": [{ divide: P() }],
"outline-style": [{ outline: [
- ...ue(),
+ ...ce(),
"none",
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- q,
+ X,
Q,
Z
] }],
"outline-w": [{ outline: [
"",
- q,
- hd,
- cd
+ X,
+ yd,
+ fd
] }],
- "outline-color": [{ outline: M() }],
+ "outline-color": [{ outline: P() }],
shadow: [{ shadow: [
"",
"inner",
"none",
u,
- bd,
- md
+ wd,
+ vd
] }],
- "shadow-color": [{ shadow: M() }],
+ "shadow-color": [{ shadow: P() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- bd,
- md
+ wd,
+ vd
] }],
- "inset-shadow-color": [{ "inset-shadow": M() }],
- "ring-w": [{ ring: le() }],
+ "inset-shadow-color": [{ "inset-shadow": P() }],
+ "ring-w": [{ ring: se() }],
"ring-w-inset": ["ring-inset"],
- "ring-color": [{ ring: M() }],
- "ring-offset-w": [{ "ring-offset": [q, cd] }],
- "ring-offset-color": [{ "ring-offset": M() }],
- "inset-ring-w": [{ "inset-ring": le() }],
- "inset-ring-color": [{ "inset-ring": M() }],
+ "ring-color": [{ ring: P() }],
+ "ring-offset-w": [{ "ring-offset": [X, fd] }],
+ "ring-offset-color": [{ "ring-offset": P() }],
+ "inset-ring-w": [{ "inset-ring": se() }],
+ "inset-ring-color": [{ "inset-ring": P() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- bd,
- md
+ wd,
+ vd
] }],
- "text-shadow-color": [{ "text-shadow": M() }],
+ "text-shadow-color": [{ "text-shadow": P() }],
opacity: [{ opacity: [
- q,
+ X,
Q,
Z
] }],
"mix-blend": [{ "mix-blend": [
- ...de(),
+ ...le(),
"plus-darker",
"plus-lighter"
] }],
- "bg-blend": [{ "bg-blend": de() }],
+ "bg-blend": [{ "bg-blend": le() }],
"mask-clip": [{ "mask-clip": [
"border",
"padding",
@@ -17560,51 +17568,51 @@ var ru = /* @__PURE__ */ u(((e) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [q] }],
- "mask-image-linear-from-pos": [{ "mask-linear-from": fe() }],
- "mask-image-linear-to-pos": [{ "mask-linear-to": fe() }],
- "mask-image-linear-from-color": [{ "mask-linear-from": M() }],
- "mask-image-linear-to-color": [{ "mask-linear-to": M() }],
- "mask-image-t-from-pos": [{ "mask-t-from": fe() }],
- "mask-image-t-to-pos": [{ "mask-t-to": fe() }],
- "mask-image-t-from-color": [{ "mask-t-from": M() }],
- "mask-image-t-to-color": [{ "mask-t-to": M() }],
- "mask-image-r-from-pos": [{ "mask-r-from": fe() }],
- "mask-image-r-to-pos": [{ "mask-r-to": fe() }],
- "mask-image-r-from-color": [{ "mask-r-from": M() }],
- "mask-image-r-to-color": [{ "mask-r-to": M() }],
- "mask-image-b-from-pos": [{ "mask-b-from": fe() }],
- "mask-image-b-to-pos": [{ "mask-b-to": fe() }],
- "mask-image-b-from-color": [{ "mask-b-from": M() }],
- "mask-image-b-to-color": [{ "mask-b-to": M() }],
- "mask-image-l-from-pos": [{ "mask-l-from": fe() }],
- "mask-image-l-to-pos": [{ "mask-l-to": fe() }],
- "mask-image-l-from-color": [{ "mask-l-from": M() }],
- "mask-image-l-to-color": [{ "mask-l-to": M() }],
- "mask-image-x-from-pos": [{ "mask-x-from": fe() }],
- "mask-image-x-to-pos": [{ "mask-x-to": fe() }],
- "mask-image-x-from-color": [{ "mask-x-from": M() }],
- "mask-image-x-to-color": [{ "mask-x-to": M() }],
- "mask-image-y-from-pos": [{ "mask-y-from": fe() }],
- "mask-image-y-to-pos": [{ "mask-y-to": fe() }],
- "mask-image-y-from-color": [{ "mask-y-from": M() }],
- "mask-image-y-to-color": [{ "mask-y-to": M() }],
+ "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-from-color": [{ "mask-linear-from": P() }],
+ "mask-image-linear-to-color": [{ "mask-linear-to": P() }],
+ "mask-image-t-from-pos": [{ "mask-t-from": ue() }],
+ "mask-image-t-to-pos": [{ "mask-t-to": ue() }],
+ "mask-image-t-from-color": [{ "mask-t-from": P() }],
+ "mask-image-t-to-color": [{ "mask-t-to": P() }],
+ "mask-image-r-from-pos": [{ "mask-r-from": ue() }],
+ "mask-image-r-to-pos": [{ "mask-r-to": ue() }],
+ "mask-image-r-from-color": [{ "mask-r-from": P() }],
+ "mask-image-r-to-color": [{ "mask-r-to": P() }],
+ "mask-image-b-from-pos": [{ "mask-b-from": ue() }],
+ "mask-image-b-to-pos": [{ "mask-b-to": ue() }],
+ "mask-image-b-from-color": [{ "mask-b-from": P() }],
+ "mask-image-b-to-color": [{ "mask-b-to": P() }],
+ "mask-image-l-from-pos": [{ "mask-l-from": ue() }],
+ "mask-image-l-to-pos": [{ "mask-l-to": ue() }],
+ "mask-image-l-from-color": [{ "mask-l-from": P() }],
+ "mask-image-l-to-color": [{ "mask-l-to": P() }],
+ "mask-image-x-from-pos": [{ "mask-x-from": ue() }],
+ "mask-image-x-to-pos": [{ "mask-x-to": ue() }],
+ "mask-image-x-from-color": [{ "mask-x-from": P() }],
+ "mask-image-x-to-color": [{ "mask-x-to": P() }],
+ "mask-image-y-from-pos": [{ "mask-y-from": ue() }],
+ "mask-image-y-to-pos": [{ "mask-y-to": ue() }],
+ "mask-image-y-from-color": [{ "mask-y-from": P() }],
+ "mask-image-y-to-color": [{ "mask-y-to": P() }],
"mask-image-radial": [{ "mask-radial": [Q, Z] }],
- "mask-image-radial-from-pos": [{ "mask-radial-from": fe() }],
- "mask-image-radial-to-pos": [{ "mask-radial-to": fe() }],
- "mask-image-radial-from-color": [{ "mask-radial-from": M() }],
- "mask-image-radial-to-color": [{ "mask-radial-to": M() }],
+ "mask-image-radial-from-pos": [{ "mask-radial-from": ue() }],
+ "mask-image-radial-to-pos": [{ "mask-radial-to": ue() }],
+ "mask-image-radial-from-color": [{ "mask-radial-from": P() }],
+ "mask-image-radial-to-color": [{ "mask-radial-to": P() }],
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
"mask-image-radial-size": [{ "mask-radial": [{
closest: ["side", "corner"],
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [q] }],
- "mask-image-conic-from-pos": [{ "mask-conic-from": fe() }],
- "mask-image-conic-to-pos": [{ "mask-conic-to": fe() }],
- "mask-image-conic-from-color": [{ "mask-conic-from": M() }],
- "mask-image-conic-to-color": [{ "mask-conic-to": M() }],
+ "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-from-color": [{ "mask-conic-from": P() }],
+ "mask-image-conic-to-color": [{ "mask-conic-to": P() }],
"mask-mode": [{ mask: [
"alpha",
"luminance",
@@ -17618,9 +17626,9 @@ var ru = /* @__PURE__ */ u(((e) => {
"stroke",
"view"
] }],
- "mask-position": [{ mask: ie() }],
- "mask-repeat": [{ mask: ae() }],
- "mask-size": [{ mask: oe() }],
+ "mask-position": [{ mask: ne() }],
+ "mask-repeat": [{ mask: re() }],
+ "mask-size": [{ mask: ie() }],
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
@@ -17633,14 +17641,14 @@ var ru = /* @__PURE__ */ u(((e) => {
Q,
Z
] }],
- blur: [{ blur: pe() }],
+ blur: [{ blur: de() }],
brightness: [{ brightness: [
- q,
+ X,
Q,
Z
] }],
contrast: [{ contrast: [
- q,
+ X,
Q,
Z
] }],
@@ -17648,35 +17656,35 @@ var ru = /* @__PURE__ */ u(((e) => {
"",
"none",
p,
- bd,
- md
+ wd,
+ vd
] }],
- "drop-shadow-color": [{ "drop-shadow": M() }],
+ "drop-shadow-color": [{ "drop-shadow": P() }],
grayscale: [{ grayscale: [
"",
- q,
+ X,
Q,
Z
] }],
"hue-rotate": [{ "hue-rotate": [
- q,
+ X,
Q,
Z
] }],
invert: [{ invert: [
"",
- q,
+ X,
Q,
Z
] }],
saturate: [{ saturate: [
- q,
+ X,
Q,
Z
] }],
sepia: [{ sepia: [
"",
- q,
+ X,
Q,
Z
] }],
@@ -17686,47 +17694,47 @@ var ru = /* @__PURE__ */ u(((e) => {
Q,
Z
] }],
- "backdrop-blur": [{ "backdrop-blur": pe() }],
+ "backdrop-blur": [{ "backdrop-blur": de() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- q,
+ X,
Q,
Z
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- q,
+ X,
Q,
Z
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- q,
+ X,
Q,
Z
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- q,
+ X,
Q,
Z
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- q,
+ X,
Q,
Z
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- q,
+ X,
Q,
Z
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- q,
+ X,
Q,
Z
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- q,
+ X,
Q,
Z
] }],
@@ -17749,7 +17757,7 @@ var ru = /* @__PURE__ */ u(((e) => {
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- q,
+ X,
"initial",
Q,
Z
@@ -17762,7 +17770,7 @@ var ru = /* @__PURE__ */ u(((e) => {
Z
] }],
delay: [{ delay: [
- q,
+ X,
Q,
Z
] }],
@@ -17779,18 +17787,18 @@ var ru = /* @__PURE__ */ u(((e) => {
Z
] }],
"perspective-origin": [{ "perspective-origin": x() }],
- rotate: [{ rotate: me() }],
- "rotate-x": [{ "rotate-x": me() }],
- "rotate-y": [{ "rotate-y": me() }],
- "rotate-z": [{ "rotate-z": me() }],
- scale: [{ scale: he() }],
- "scale-x": [{ "scale-x": he() }],
- "scale-y": [{ "scale-y": he() }],
- "scale-z": [{ "scale-z": he() }],
+ 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() }],
"scale-3d": ["scale-3d"],
- skew: [{ skew: N() }],
- "skew-x": [{ "skew-x": N() }],
- "skew-y": [{ "skew-y": N() }],
+ skew: [{ skew: F() }],
+ "skew-x": [{ "skew-x": F() }],
+ "skew-y": [{ "skew-y": F() }],
transform: [{ transform: [
Q,
Z,
@@ -17801,19 +17809,19 @@ var ru = /* @__PURE__ */ u(((e) => {
] }],
"transform-origin": [{ origin: x() }],
"transform-style": [{ transform: ["3d", "flat"] }],
- translate: [{ translate: P() }],
- "translate-x": [{ "translate-x": P() }],
- "translate-y": [{ "translate-y": P() }],
- "translate-z": [{ "translate-z": P() }],
+ translate: [{ translate: I() }],
+ "translate-x": [{ "translate-x": I() }],
+ "translate-y": [{ "translate-y": I() }],
+ "translate-z": [{ "translate-z": I() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- J,
+ td,
Q,
Z
] }],
- accent: [{ accent: M() }],
+ accent: [{ accent: P() }],
appearance: [{ appearance: ["none", "auto"] }],
- "caret-color": [{ caret: M() }],
+ "caret-color": [{ caret: P() }],
"color-scheme": [{ scheme: [
"normal",
"dark",
@@ -17871,8 +17879,8 @@ var ru = /* @__PURE__ */ u(((e) => {
"x"
] }],
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
- "scrollbar-thumb-color": [{ "scrollbar-thumb": M() }],
- "scrollbar-track-color": [{ "scrollbar-track": M() }],
+ "scrollbar-thumb-color": [{ "scrollbar-thumb": P() }],
+ "scrollbar-track-color": [{ "scrollbar-track": P() }],
"scrollbar-gutter": [{ "scrollbar-gutter": [
"auto",
"stable",
@@ -17949,14 +17957,14 @@ var ru = /* @__PURE__ */ u(((e) => {
Q,
Z
] }],
- fill: [{ fill: ["none", ...M()] }],
+ fill: [{ fill: ["none", ...P()] }],
"stroke-w": [{ stroke: [
- q,
- hd,
- cd,
- ld
+ X,
+ yd,
+ fd,
+ pd
] }],
- stroke: [{ stroke: ["none", ...M()] }],
+ stroke: [{ stroke: ["none", ...P()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
},
conflictingClassGroups: {
@@ -18212,16 +18220,16 @@ var ru = /* @__PURE__ */ u(((e) => {
"selection"
]
};
-}, Nd = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (Pd(e, "cacheSize", t), Pd(e, "prefix", n), Pd(e, "experimentalParseClassName", r), Fd(e.theme, a.theme), Fd(e.classGroups, a.classGroups), Fd(e.conflictingClassGroups, a.conflictingClassGroups), Fd(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), Pd(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), Pd(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), Id(e.theme, i.theme), Id(e.classGroups, i.classGroups), Id(e.conflictingClassGroups, i.conflictingClassGroups), Id(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), Ld(e, i, "postfixLookupClassGroups"), Ld(e, i, "orderSensitiveModifiers"), e), Pd = (e, t, n) => {
+}, Ld = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (Rd(e, "cacheSize", t), Rd(e, "prefix", n), Rd(e, "experimentalParseClassName", r), zd(e.theme, a.theme), zd(e.classGroups, a.classGroups), zd(e.conflictingClassGroups, a.conflictingClassGroups), zd(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), Rd(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), Rd(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), Bd(e.theme, i.theme), Bd(e.classGroups, i.classGroups), Bd(e.conflictingClassGroups, i.conflictingClassGroups), Bd(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), Vd(e, i, "postfixLookupClassGroups"), Vd(e, i, "orderSensitiveModifiers"), e), Rd = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, Fd = (e, t) => {
- if (t) for (let n in t) Pd(e, n, t[n]);
-}, Id = (e, t) => {
- if (t) for (let n in t) Ld(e, t, n);
-}, Ld = (e, t, n) => {
+}, zd = (e, t) => {
+ if (t) for (let n in t) Rd(e, n, t[n]);
+}, Bd = (e, t) => {
+ if (t) for (let n in t) Vd(e, t, n);
+}, Vd = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, Rd = (e, ...t) => typeof e == "function" ? Uu(Md, e, ...t) : Uu(() => Nd(Md(), e), ...t), zd = [
+}, Hd = (e, ...t) => typeof e == "function" ? Ku(Id, e, ...t) : Ku(() => Ld(Id(), e), ...t), Ud = [
"large-title",
"display-1",
"display-2",
@@ -18235,18 +18243,18 @@ var ru = /* @__PURE__ */ u(((e) => {
"body-2",
"caption-1",
"caption-2"
-], Bd = [
+], Wd = [
"regular",
"medium",
"semibold",
"bold"
-], Vd = Rd({ extend: { classGroups: { "font-size": [{ text: zd.flatMap((e) => Bd.map((t) => `${e}-${t}`)) }] } } });
-function Hd(e) {
+], Gd = Hd({ extend: { classGroups: { "font-size": [{ text: Ud.flatMap((e) => Wd.map((t) => `${e}-${t}`)) }] } } });
+function Kd(e) {
return e;
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var Ud = Hd({
+var qd = Kd({
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",
@@ -18265,22 +18273,22 @@ var Ud = Hd({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function Wd({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
- return /* @__PURE__ */ (0, v.jsx)("span", {
+function Jd({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+ return /* @__PURE__ */ (0, x.jsx)("span", {
ref: r,
- className: Vd(Ud.base, Ud.variant[e], Ud.color[t], n),
+ className: Gd(qd.base, qd.variant[e], qd.color[t], n),
...i
});
}
//#endregion
//#region src/api.ts
-var Gd = class extends Error {
+var Yd = class extends Error {
status;
body;
- constructor(t, n, r = null) {
- super(e(t, n)), this.name = "ApiError", this.status = n, this.body = r;
+ constructor(e, t, n = null) {
+ super(r(e, t)), this.name = "ApiError", this.status = t, this.body = n;
}
-}, Kd = (e) => {
+}, Xd = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -18292,8 +18300,8 @@ var Gd = class extends Error {
if (typeof n == "string" && n) return n;
}
return "";
-}, qd = (t) => e(t);
-async function Jd(e, t) {
+}, Zd = (e) => r(e);
+async function Qd(e, t) {
let n = await fetch(e, {
headers: { Accept: "application/json" },
credentials: "same-origin",
@@ -18302,10 +18310,10 @@ async function Jd(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new Gd(Kd(r) || `请求失败(${n.status})`, n.status);
+ if (!n.ok) throw new Yd(Xd(r) || `请求失败(${n.status})`, n.status);
return r;
}
-async function Yd(e, t, n = "POST", r) {
+async function $d(e, t, n = "POST", r) {
let i = await fetch(e, {
method: n,
...r ? { signal: r } : {},
@@ -18319,24 +18327,24 @@ async function Yd(e, t, n = "POST", r) {
try {
a = await i.json();
} catch {}
- if (!i.ok) throw new Gd(Kd(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new Yd(Xd(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/react/components/empty-state.tsx
-function Xd({ icon: e, title: t, children: n }) {
- return /* @__PURE__ */ (0, v.jsxs)("div", {
+function ef({ icon: e, title: t, children: n }) {
+ return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col items-center gap-2 rounded-2xl border border-separator-border px-6 py-12 text-center",
children: [
- /* @__PURE__ */ (0, v.jsx)(e, {
+ /* @__PURE__ */ (0, x.jsx)(e, {
"aria-hidden": !0,
className: "size-6 text-text-tertiary"
}),
- /* @__PURE__ */ (0, v.jsx)("h3", {
+ /* @__PURE__ */ (0, x.jsx)("h3", {
className: "text-headline-medium text-text-primary",
children: t
}),
- /* @__PURE__ */ (0, v.jsx)("p", {
+ /* @__PURE__ */ (0, x.jsx)("p", {
className: "max-w-prose text-body-2-regular text-text-secondary",
children: n
})
@@ -18345,53 +18353,53 @@ function Xd({ icon: e, title: t, children: n }) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function Zd({ label: e }) {
- return /* @__PURE__ */ (0, v.jsxs)("p", {
+function tf({ label: e }) {
+ return /* @__PURE__ */ (0, x.jsxs)("p", {
role: "status",
className: "flex items-center gap-2 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, v.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, x.jsxs)("span", {
"aria-hidden": !0,
className: "inline-flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, v.jsx)("i", { className: "dot-wave-0 size-1 rounded-full bg-current" }),
- /* @__PURE__ */ (0, v.jsx)("i", { className: "dot-wave-1 size-1 rounded-full bg-current" }),
- /* @__PURE__ */ (0, v.jsx)("i", { className: "dot-wave-2 size-1 rounded-full bg-current" })
+ /* @__PURE__ */ (0, x.jsx)("i", { className: "dot-wave-0 size-1 rounded-full bg-current" }),
+ /* @__PURE__ */ (0, x.jsx)("i", { className: "dot-wave-1 size-1 rounded-full bg-current" }),
+ /* @__PURE__ */ (0, x.jsx)("i", { className: "dot-wave-2 size-1 rounded-full bg-current" })
]
}), e]
});
}
//#endregion
//#region src/react/components/note.tsx
-function Qd({ tone: e, title: t, children: n }) {
- let r = /* @__PURE__ */ (0, v.jsxs)(v.Fragment, { children: [t ? /* @__PURE__ */ (0, v.jsx)("p", {
+function nf({ tone: e, title: t, children: n }) {
+ let r = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [t ? /* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-medium",
children: t
- }) : null, /* @__PURE__ */ (0, v.jsx)("p", {
+ }) : null, /* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-2-regular",
children: n
})] });
switch (e) {
- case "info": return /* @__PURE__ */ (0, v.jsx)("div", {
+ case "info": return /* @__PURE__ */ (0, x.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
});
- case "success": return /* @__PURE__ */ (0, v.jsx)("div", {
+ case "success": return /* @__PURE__ */ (0, x.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
});
- case "warning": return /* @__PURE__ */ (0, v.jsx)("div", {
+ case "warning": return /* @__PURE__ */ (0, x.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
});
- case "error": return /* @__PURE__ */ (0, v.jsx)("div", {
+ case "error": return /* @__PURE__ */ (0, x.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
});
- default: return /* @__PURE__ */ (0, v.jsx)("div", {
+ default: return /* @__PURE__ */ (0, x.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
@@ -18399,10 +18407,18 @@ function Qd({ tone: e, title: t, children: n }) {
}
}
//#endregion
+//#region src/react/components/page.tsx
+function rf({ children: e }) {
+ return /* @__PURE__ */ (0, x.jsx)("div", {
+ className: "mx-auto flex w-full max-w-board flex-col gap-8",
+ children: e
+ });
+}
+//#endregion
//#region src/react/components/progress.tsx
-function $d({ label: e, value: t, max: n = 100, stops: r = [] }) {
+function af({ label: e, value: t, max: n = 100, stops: r = [] }) {
let i = Math.min(Math.max(t, 0), n);
- return /* @__PURE__ */ (0, v.jsxs)("svg", {
+ return /* @__PURE__ */ (0, x.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
@@ -18412,17 +18428,17 @@ function $d({ label: e, value: t, max: n = 100, stops: r = [] }) {
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
- /* @__PURE__ */ (0, v.jsx)("rect", {
+ /* @__PURE__ */ (0, x.jsx)("rect", {
width: n,
height: 1,
className: "fill-background-tertiary-default"
}),
- /* @__PURE__ */ (0, v.jsx)("rect", {
+ /* @__PURE__ */ (0, x.jsx)("rect", {
width: i,
height: 1,
className: "fill-border-focus-ring"
}),
- r.map((e) => /* @__PURE__ */ (0, v.jsx)("rect", {
+ r.map((e) => /* @__PURE__ */ (0, x.jsx)("rect", {
x: e,
width: .4,
height: 1,
@@ -18433,32 +18449,32 @@ function $d({ label: e, value: t, max: n = 100, stops: r = [] }) {
}
//#endregion
//#region src/react/query.ts
-var ef = new Ge({ defaultOptions: { queries: {
+var of = new qe({ defaultOptions: { queries: {
networkMode: "always",
retry: 0,
refetchOnWindowFocus: !1,
refetchOnMount: !1,
retryOnMount: !1
-} } }), tf = "/api/tasks", nf = ["tasks"], rf = 2e3, af = 1e4, of = (e) => e?.running.length ? rf : af, sf = (e) => Jd(tf, e);
-async function cf(e) {
- await ef.fetchQuery({
- queryKey: nf,
- queryFn: () => sf(e)
+} } }), sf = "/api/tasks", cf = ["tasks"], lf = 2e3, uf = 1e4, df = (e) => e?.running.length ? lf : uf, ff = (e) => Qd(sf, e);
+async function pf(e) {
+ await of.fetchQuery({
+ queryKey: cf,
+ queryFn: () => ff(e)
});
}
-var lf = {
+var mf = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, uf = {
+}, hf = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "被打断"
-}, df = (e) => uf[e] || e, ff = {
+}, gf = (e) => hf[e] || e, _f = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -18478,14 +18494,14 @@ var lf = {
exit_code: "退出码",
issue_count: "问题"
};
-function pf(e) {
+function vf(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 mf(e) {
+function yf(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -18495,65 +18511,65 @@ function mf(e) {
minute: "2-digit"
});
}
-function hf(e) {
- return Object.entries(e || {}).filter(([e, t]) => e !== "blocked_by" && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${ff[e] || e} ${t}`).join(" · ");
+function bf(e) {
+ return Object.entries(e || {}).filter(([e, t]) => e !== "blocked_by" && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${_f[e] || e} ${t}`).join(" · ");
}
//#endregion
//#region src/react/activity/activity-page.tsx
-var gf = {
+var xf = {
succeeded: "lime",
failed: "rose",
cancelled: "yellow",
interrupted: "yellow"
};
-function _f({ status: e }) {
- return /* @__PURE__ */ (0, v.jsx)(Wd, {
- color: gf[e] ?? "neutral",
- children: df(e)
+function Sf({ status: e }) {
+ return /* @__PURE__ */ (0, x.jsx)(Jd, {
+ color: xf[e] ?? "neutral",
+ children: gf(e)
});
}
-function vf({ run: e, meta: t, children: n, footer: r }) {
- return /* @__PURE__ */ (0, v.jsxs)("li", {
+function Cf({ run: e, meta: t, children: n, footer: r }) {
+ return /* @__PURE__ */ (0, x.jsxs)("li", {
"data-status": e.status,
"data-task-key": e.task_key,
className: e.status === "failed" ? "flex flex-col rounded-2xl border border-border-error-default" : "flex flex-col rounded-2xl border border-separator-border",
- children: [/* @__PURE__ */ (0, v.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-1.5 px-5 pt-5 pb-4",
children: [
- /* @__PURE__ */ (0, v.jsxs)("div", {
+ /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, v.jsx)("strong", {
+ children: [/* @__PURE__ */ (0, x.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
children: e.task_label
- }), /* @__PURE__ */ (0, v.jsx)(_f, { status: e.status })]
+ }), /* @__PURE__ */ (0, x.jsx)(Sf, { status: e.status })]
}),
- /* @__PURE__ */ (0, v.jsx)("p", {
+ /* @__PURE__ */ (0, x.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: t
}),
n
]
- }), r ? /* @__PURE__ */ (0, v.jsx)("div", {
+ }), r ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "border-t border-separator-border px-5 py-3",
- children: /* @__PURE__ */ (0, v.jsx)("p", {
+ children: /* @__PURE__ */ (0, x.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: r
})
}) : null]
});
}
-function yf({ run: e }) {
- let t = e.progress_total || 0, n = e.progress_current || 0, r = e.progress_label || "正在进行", i = pf(e.elapsed_seconds), a = [lf[e.trigger] || e.trigger, i && `已跑 ${i}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, v.jsx)(vf, {
+function wf({ run: e }) {
+ let t = e.progress_total || 0, n = e.progress_current || 0, r = e.progress_label || "正在进行", i = vf(e.elapsed_seconds), a = [mf[e.trigger] || e.trigger, i && `已跑 ${i}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, x.jsx)(Cf, {
run: e,
meta: a,
- children: t > 0 ? /* @__PURE__ */ (0, v.jsxs)("div", {
+ children: t > 0 ? /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, v.jsx)($d, {
+ children: [/* @__PURE__ */ (0, x.jsx)(af, {
label: r,
value: n,
max: t
- }), /* @__PURE__ */ (0, v.jsxs)("p", {
+ }), /* @__PURE__ */ (0, x.jsxs)("p", {
className: "text-caption-1-regular text-text-secondary",
children: [
r,
@@ -18564,128 +18580,93 @@ function yf({ run: e }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, v.jsx)(Zd, { label: r })
+ }) : /* @__PURE__ */ (0, x.jsx)(tf, { label: r })
});
}
-function bf({ run: e }) {
- let t = hf(e.result_summary), n = pf(e.elapsed_seconds), r = [
- lf[e.trigger] || e.trigger,
- mf(e.finished_at),
+function Tf({ run: e }) {
+ let t = bf(e.result_summary), n = vf(e.elapsed_seconds), r = [
+ mf[e.trigger] || e.trigger,
+ yf(e.finished_at),
n && `用时 ${n}`
].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, v.jsx)(vf, {
+ return /* @__PURE__ */ (0, x.jsx)(Cf, {
run: e,
meta: r,
footer: e.error,
- children: t ? /* @__PURE__ */ (0, v.jsx)("p", {
+ children: t ? /* @__PURE__ */ (0, x.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: t
}) : null
});
}
-function xf({ title: e, children: t }) {
- let n = (0, _.useId)();
- return /* @__PURE__ */ (0, v.jsxs)("section", {
+function Ef({ title: e, children: t }) {
+ let n = (0, b.useId)();
+ return /* @__PURE__ */ (0, x.jsxs)("section", {
"aria-labelledby": n,
className: "flex min-w-0 flex-col gap-3",
- children: [/* @__PURE__ */ (0, v.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, x.jsx)("h3", {
id: n,
className: "text-title-2-semibold text-text-primary",
children: e
}), t]
});
}
-function Sf({ live: e = !1, children: t }) {
- return /* @__PURE__ */ (0, v.jsx)("ul", {
+function Df({ live: e = !1, children: t }) {
+ return /* @__PURE__ */ (0, x.jsx)("ul", {
"aria-live": e ? "polite" : void 0,
className: "flex min-w-0 flex-col gap-3",
children: t
});
}
-function Cf({ children: e }) {
- return /* @__PURE__ */ (0, v.jsx)("div", {
- className: "mx-auto flex w-full max-w-board flex-col gap-8",
- children: e
- });
-}
-function wf(e) {
- let t = it({
- queryKey: nf,
- queryFn: ({ signal: e }) => sf(e),
- refetchInterval: (e) => of(e.state.data)
- }), n = t.data, r = t.error ? qd(t.error) : "";
- if (!n) return /* @__PURE__ */ (0, v.jsx)(Cf, { children: /* @__PURE__ */ (0, v.jsx)(Qd, {
+function Of(e) {
+ let t = ot({
+ queryKey: cf,
+ queryFn: ({ signal: e }) => ff(e),
+ refetchInterval: (e) => df(e.state.data)
+ }), n = t.data, r = t.error ? Zd(t.error) : "";
+ if (!n) return /* @__PURE__ */ (0, x.jsx)(rf, { children: /* @__PURE__ */ (0, x.jsx)(nf, {
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, v.jsxs)(Cf, { children: [
- r ? /* @__PURE__ */ (0, v.jsx)(Qd, {
+ return /* @__PURE__ */ (0, x.jsxs)(rf, { children: [
+ r ? /* @__PURE__ */ (0, x.jsx)(nf, {
tone: "error",
children: r
}) : null,
- n.available === !1 ? /* @__PURE__ */ (0, v.jsx)(Qd, {
+ n.available === !1 ? /* @__PURE__ */ (0, x.jsx)(nf, {
tone: "warning",
children: n.message || "账本上还没有任务中心的表"
}) : null,
- s ? /* @__PURE__ */ (0, v.jsx)(Xd, {
- icon: uu,
+ s ? /* @__PURE__ */ (0, x.jsx)(ef, {
+ icon: fu,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
- }) : /* @__PURE__ */ (0, v.jsxs)(v.Fragment, { children: [
- /* @__PURE__ */ (0, v.jsx)(xf, {
+ }) : /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
+ /* @__PURE__ */ (0, x.jsx)(Ef, {
title: "正在进行",
- children: i.length ? /* @__PURE__ */ (0, v.jsx)(Sf, {
+ children: i.length ? /* @__PURE__ */ (0, x.jsx)(Df, {
live: !0,
- children: i.map((e) => /* @__PURE__ */ (0, v.jsx)(yf, { run: e }, e.id))
- }) : /* @__PURE__ */ (0, v.jsx)("p", {
+ children: i.map((e) => /* @__PURE__ */ (0, x.jsx)(wf, { run: e }, e.id))
+ }) : /* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "没有任务在跑。"
})
}),
- a.length ? /* @__PURE__ */ (0, v.jsx)(xf, {
+ a.length ? /* @__PURE__ */ (0, x.jsx)(Ef, {
title: "被挡下的",
- children: /* @__PURE__ */ (0, v.jsx)(Sf, { children: a.map((e) => /* @__PURE__ */ (0, v.jsx)(bf, { run: e }, e.id)) })
+ children: /* @__PURE__ */ (0, x.jsx)(Df, { children: a.map((e) => /* @__PURE__ */ (0, x.jsx)(Tf, { run: e }, e.id)) })
}) : null,
- o.length ? /* @__PURE__ */ (0, v.jsx)(xf, {
+ o.length ? /* @__PURE__ */ (0, x.jsx)(Ef, {
title: "最近完成",
- children: /* @__PURE__ */ (0, v.jsx)(Sf, { children: o.map((e) => /* @__PURE__ */ (0, v.jsx)(bf, { run: e }, e.id)) })
+ children: /* @__PURE__ */ (0, x.jsx)(Df, { children: o.map((e) => /* @__PURE__ */ (0, x.jsx)(Tf, { run: e }, e.id)) })
}) : null
] })
] });
}
//#endregion
-//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function Tf({ className: e, children: t }) {
- return /* @__PURE__ */ (0, v.jsx)("div", {
- className: Vd("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
- children: t
- });
-}
-function Ef({ className: e, children: t }) {
- return /* @__PURE__ */ (0, v.jsx)("p", {
- className: Vd("w-full px-3 text-body-2-medium text-text-secondary", e),
- children: t
- });
-}
-function Df({ label: e, description: t, children: n }) {
- return /* @__PURE__ */ (0, v.jsxs)("div", {
- className: Vd("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, v.jsxs)("div", {
- className: "flex min-w-0 flex-col",
- children: [/* @__PURE__ */ (0, v.jsx)("p", {
- className: "text-body-regular text-text-primary",
- children: e
- }), t && /* @__PURE__ */ (0, v.jsx)("p", {
- className: "text-body-2-regular text-text-secondary",
- children: t
- })]
- }), n]
- });
-}
-//#endregion
//#region src/react/boardui/components/base/buttons/button.tsx
-var Of = Hd({
+var kf = Kd({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -18740,38 +18721,177 @@ var Of = Hd({
].join(" ")
}
});
-function kf({ 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, v.jsxs)("button", {
+function Af({ 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, x.jsxs)("button", {
ref: c,
type: s,
- className: Vd(Of.base, Of.size[t], Of.variant[e], n && Of.iconOnlySize[t], o),
+ className: Gd(kf.base, kf.size[t], kf.variant[e], n && kf.iconOnlySize[t], o),
...l,
children: [
- r ? /* @__PURE__ */ (0, v.jsx)(r, {
- className: Of.icon[t],
+ r ? /* @__PURE__ */ (0, x.jsx)(r, {
+ className: kf.icon[t],
"aria-hidden": !0
}) : null,
- !n && a != null && /* @__PURE__ */ (0, v.jsx)("span", {
- className: Of.label[t],
+ !n && a != null && /* @__PURE__ */ (0, x.jsx)("span", {
+ className: kf.label[t],
children: a
}),
- !n && i ? /* @__PURE__ */ (0, v.jsx)(i, {
- className: Of.icon[t],
+ !n && i ? /* @__PURE__ */ (0, x.jsx)(i, {
+ className: kf.icon[t],
"aria-hidden": !0
}) : null
]
});
}
//#endregion
+//#region src/react/quality-goals/quality-goals.ts
+var jf = "/api/quality-goals?limit=200", Mf = ["quality-goals"], Nf = (e) => Qd(jf, e);
+async function Pf(e) {
+ await of.fetchQuery({
+ queryKey: Mf,
+ queryFn: () => Nf(e)
+ });
+}
+var Ff = (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 If({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge: s }) {
+ let c = () => i(r.id);
+ return /* @__PURE__ */ (0, x.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, x.jsxs)("div", {
+ className: "flex min-w-0 gap-4",
+ children: [/* @__PURE__ */ (0, x.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, x.jsx)("span", {
+ className: "text-caption-1-regular text-text-tertiary",
+ children: "暂无预览"
+ }), /* @__PURE__ */ (0, x.jsx)("img", {
+ src: Ff(r),
+ alt: "",
+ loading: "lazy",
+ onError: (e) => e.currentTarget.remove(),
+ className: "absolute inset-0 size-full object-contain"
+ })]
+ }), /* @__PURE__ */ (0, x.jsxs)("div", {
+ className: "flex min-w-0 flex-col gap-1.5",
+ children: [
+ /* @__PURE__ */ (0, x.jsx)("h3", {
+ className: "text-title-1-medium text-text-primary",
+ children: /* @__PURE__ */ (0, x.jsx)("button", {
+ type: "button",
+ "data-middle-truncate": !0,
+ onClick: c,
+ className: "block w-full cursor-pointer text-left",
+ dangerouslySetInnerHTML: { __html: a(r) }
+ })
+ }),
+ /* @__PURE__ */ (0, x.jsxs)("p", {
+ className: "flex flex-wrap items-center gap-2 text-caption-1-regular text-text-secondary",
+ children: [
+ /* @__PURE__ */ (0, x.jsx)("span", {
+ className: "contents",
+ dangerouslySetInnerHTML: { __html: s(r.location, r.cost) }
+ }),
+ /* @__PURE__ */ (0, x.jsx)("span", { children: e[r.location] ?? r.location }),
+ /* @__PURE__ */ (0, x.jsx)("span", { children: t(r.duration) }),
+ /* @__PURE__ */ (0, x.jsx)("span", { children: n(r.size ?? 0) })
+ ]
+ }),
+ r.reason ? /* @__PURE__ */ (0, x.jsx)("p", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: r.reason
+ }) : null
+ ]
+ })]
+ }), /* @__PURE__ */ (0, x.jsx)("footer", {
+ className: "flex justify-end",
+ children: /* @__PURE__ */ (0, x.jsx)(Af, {
+ variant: "secondary",
+ size: "small",
+ onClick: c,
+ children: "查看版本"
+ })
+ })]
+ });
+}
+function Lf(e) {
+ let t = ot({
+ queryKey: Mf,
+ queryFn: ({ signal: e }) => Nf(e)
+ }), n = t.data;
+ if (!n) return /* @__PURE__ */ (0, x.jsx)(rf, { children: /* @__PURE__ */ (0, x.jsx)(nf, {
+ tone: "error",
+ title: "读取失败",
+ children: t.error ? Zd(t.error) : "读取高清版目标失败"
+ }) });
+ let r = n.items || [];
+ return r.length ? /* @__PURE__ */ (0, x.jsxs)(rf, { children: [/* @__PURE__ */ (0, x.jsxs)("p", {
+ className: "text-body-2-regular text-text-secondary",
+ children: [
+ /* @__PURE__ */ (0, x.jsx)("strong", {
+ className: "text-title-2-semibold text-text-primary",
+ children: "待升级"
+ }),
+ " · ",
+ n.total,
+ " 部作品"
+ ]
+ }), /* @__PURE__ */ (0, x.jsx)("ul", {
+ className: "card-grid gap-5",
+ children: r.map((t) => /* @__PURE__ */ (0, x.jsx)(If, {
+ item: t,
+ ...e
+ }, t.id))
+ })] }) : /* @__PURE__ */ (0, x.jsx)(rf, { children: /* @__PURE__ */ (0, x.jsx)(ef, {
+ icon: mu,
+ title: "没有标记中的高清版目标",
+ children: "现有版本都已满足条件,或还没有加入追踪。"
+ }) });
+}
+//#endregion
+//#region src/react/boardui/components/application/settings/settings-rows.tsx
+function Rf({ className: e, children: t }) {
+ return /* @__PURE__ */ (0, x.jsx)("div", {
+ className: Gd("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ children: t
+ });
+}
+function zf({ className: e, children: t }) {
+ return /* @__PURE__ */ (0, x.jsx)("p", {
+ className: Gd("w-full px-3 text-body-2-medium text-text-secondary", e),
+ children: t
+ });
+}
+function Bf({ label: e, description: t, children: n }) {
+ return /* @__PURE__ */ (0, x.jsxs)("div", {
+ className: Gd("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, x.jsxs)("div", {
+ className: "flex min-w-0 flex-col",
+ children: [/* @__PURE__ */ (0, x.jsx)("p", {
+ className: "text-body-regular text-text-primary",
+ children: e
+ }), t && /* @__PURE__ */ (0, x.jsx)("p", {
+ className: "text-body-2-regular text-text-secondary",
+ children: t
+ })]
+ }), n]
+ });
+}
+//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var Af = Symbol("default");
-function jf({ values: e, children: t }) {
- for (let [n, r] of e) t = /*#__PURE__*/ _.createElement(n.Provider, { value: r }, t);
+var $ = Symbol("default");
+function Vf({ values: e, children: t }) {
+ for (let [n, r] of e) t = /*#__PURE__*/ b.createElement(n.Provider, { value: r }, t);
return t;
}
-function Mf(e) {
+function Hf(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
- return (0, _.useMemo)(() => {
+ return (0, b.useMemo)(() => {
let e, l, u;
return e = typeof t == "function" ? t({
...s,
@@ -18803,11 +18923,11 @@ function Mf(e) {
c
]);
}
-function Nf(e, t) {
- let n = (0, _.useContext)(e);
+function Uf(e, t) {
+ let n = (0, b.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || Af;
+ let e = t || $;
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}.`);
@@ -18816,8 +18936,8 @@ function Nf(e, t) {
}
return n;
}
-function Pf(e, t, n) {
- let { ref: r, ...i } = Nf(n, e.slot) || {}, a = Or((0, _.useMemo)(() => lr(t, r), [t, r])), o = V(i, e);
+function Wf(e, t, n) {
+ let { ref: r, ...i } = Uf(n, e.slot) || {}, a = Ar((0, b.useMemo)(() => dr(t, r), [t, r])), o = H(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -18835,56 +18955,56 @@ function Pf(e, t, n) {
...e.style
}), [o, a];
}
-function Ff(e = !0) {
- let [t, n] = (0, _.useState)(e), r = (0, _.useRef)(!1), i = (0, _.useCallback)((e) => {
+function Gf(e = !0) {
+ let [t, n] = (0, b.useState)(e), r = (0, b.useRef)(!1), i = (0, b.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return z(() => {
+ return V(() => {
r.current || n(!1);
}, []), [i, t];
}
-function If(e) {
+function Kf(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function Lf(e, t, n) {
- let { render: r, ...i } = t, a = (0, _.useRef)(null), o = (0, _.useMemo)(() => lr(n, a), [n, a]);
- z(() => {}, [e, r]);
+function qf(e, t, n) {
+ let { render: r, ...i } = t, a = (0, b.useRef)(null), o = (0, b.useMemo)(() => dr(n, a), [n, a]);
+ V(() => {}, [e, r]);
let s = {
...i,
ref: o
};
- return r ? r(s, void 0) : /*#__PURE__*/ _.createElement(e, s);
+ return r ? r(s, void 0) : /*#__PURE__*/ b.createElement(e, s);
}
-var Rf = {}, zf = new Proxy({}, { get(e, t) {
+var Jf = {}, Yf = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = Rf[t];
- return n || (n = /*#__PURE__*/ (0, _.forwardRef)(Lf.bind(null, t)), Rf[t] = n), n;
-} }), Bf = /*#__PURE__*/ (0, _.createContext)(null), $ = /*#__PURE__*/ (0, _.createContext)(null), Vf = /*#__PURE__*/ (0, _.createContext)(null), Hf = {
+ let n = Jf[t];
+ return n || (n = /*#__PURE__*/ (0, b.forwardRef)(qf.bind(null, t)), Jf[t] = n), n;
+} }), Xf = /*#__PURE__*/ (0, b.createContext)(null), Zf = /*#__PURE__*/ (0, b.createContext)(null), Qf = /*#__PURE__*/ (0, b.createContext)(null), $f = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return Uf(e, null, t);
+ return ep(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return Uf(e, t, n);
+ return ep(e, t, n);
}
};
-function Uf(e, t, n) {
- return mt({
+function ep(e, t, n) {
+ return gt({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
- if (t.type === "content") return /*#__PURE__*/ _.createElement(_.Fragment, null);
+ if (t.type === "content") return /*#__PURE__*/ b.createElement(b.Fragment, null);
let r = t.render(t);
- return !n || t.type !== "item" ? r : /*#__PURE__*/ _.createElement(_.Fragment, null, n({
+ return !n || t.type !== "item" ? r : /*#__PURE__*/ b.createElement(b.Fragment, null, n({
type: "item",
key: t.key,
dropPosition: "before"
- }), r, Wf(e, t, n));
+ }), r, tp(e, t, n));
}
});
}
-function Wf(e, t, n) {
+function tp(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);
@@ -18898,24 +19018,24 @@ function Wf(e, t, n) {
key: r.key,
dropPosition: "after"
});
- /*#__PURE__*/ (0, _.isValidElement)(t) && s.push(/*#__PURE__*/ (0, _.cloneElement)(t, { key: `${r.key}-after` })), r = r.parentKey == null ? null : e.getItem(r.parentKey);
+ /*#__PURE__*/ (0, b.isValidElement)(t) && s.push(/*#__PURE__*/ (0, b.cloneElement)(t, { key: `${r.key}-after` })), r = r.parentKey == null ? null : e.getItem(r.parentKey);
}
}
return s;
}
-var Gf = /*#__PURE__*/ (0, _.createContext)(Hf), Kf = /*#__PURE__*/ (0, _.createContext)({}), qf = /*#__PURE__*/ Fr(function(e, t) {
- [e, t] = Pf(e, t, Kf);
- let { elementType: n = "label", ...r } = e, i = zf[n];
- return /*#__PURE__*/ _.createElement(i, {
+var np = /*#__PURE__*/ (0, b.createContext)($f), rp = /*#__PURE__*/ (0, b.createContext)({}), ip = /*#__PURE__*/ Lr(function(e, t) {
+ [e, t] = Wf(e, t, rp);
+ let { elementType: n = "label", ...r } = e, i = Yf[n];
+ return /*#__PURE__*/ b.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), Jf = /*#__PURE__*/ (0, _.createContext)(null), Yf = /*#__PURE__*/ (0, _.createContext)({}), Xf = /*#__PURE__*/ Fr(function(e, t) {
- [e, t] = Pf(e, t, Yf);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = ga(e, t);
- i = Qf(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = uc(e), { hoverProps: l, isHovered: u } = _c({
+}), ap = /*#__PURE__*/ (0, b.createContext)(null), op = /*#__PURE__*/ (0, b.createContext)({}), sp = /*#__PURE__*/ Lr(function(e, t) {
+ [e, t] = Wf(e, t, op);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = ya(e, t);
+ i = lp(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = pc(e), { hoverProps: l, isHovered: u } = bc({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -18925,25 +19045,25 @@ var Gf = /*#__PURE__*/ (0, _.createContext)(Hf), Kf = /*#__PURE__*/ (0, _.create
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = Mf({
+ }, f = Hf({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = or(i.id), m = or(), h = i["aria-labelledby"];
+ }), p = cr(i.id), m = cr(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
- let g = (0, _.useRef)(r);
- (0, _.useEffect)(() => {
+ let g = (0, b.useRef)(r);
+ (0, b.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) && Za(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let v = H(e, { global: !0 });
- return delete v.onClick, /*#__PURE__*/ _.createElement(zf.button, {
- ...V(v, f, i, o, l),
+ let _ = Xi(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ b.createElement(Yf.button, {
+ ...H(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
ref: t,
@@ -18956,69 +19076,69 @@ var Gf = /*#__PURE__*/ (0, _.createContext)(Hf), Kf = /*#__PURE__*/ (0, _.create
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ _.createElement(Jf.Provider, { value: { id: m } }, f.children));
-}), Zf = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function Qf(e, t) {
+ }, /*#__PURE__*/ b.createElement(ap.Provider, { value: { id: m } }, f.children));
+}), cp = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function lp(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !Zf.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !cp.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 $f = /*#__PURE__*/ (0, _.createContext)({}), ep = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
- [e, t] = Pf(e, t, $f);
- let { children: n, level: r = 3, className: i, ...a } = e, o = zf[`h${r}`];
- return /*#__PURE__*/ _.createElement(o, {
+var up = /*#__PURE__*/ (0, b.createContext)({}), dp = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ [e, t] = Wf(e, t, up);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = Yf[`h${r}`];
+ return /*#__PURE__*/ b.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), tp = /*#__PURE__*/ (0, _.createContext)({}), np = /*#__PURE__*/ Fr(function(e, t) {
- [e, t] = Pf(e, t, tp);
- let { elementType: n = "span", ...r } = e, i = zf[n];
- return /*#__PURE__*/ _.createElement(i, {
+}), fp = /*#__PURE__*/ (0, b.createContext)({}), pp = /*#__PURE__*/ Lr(function(e, t) {
+ [e, t] = Wf(e, t, fp);
+ let { elementType: n = "span", ...r } = e, i = Yf[n];
+ return /*#__PURE__*/ b.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), rp = /*#__PURE__*/ (0, _.createContext)(null), ip = /*#__PURE__*/ (0, _.createContext)(null), ap = /*#__PURE__*/ (0, _.createContext)(null), op = /*#__PURE__*/ (0, _.createContext)(null), sp = /*#__PURE__*/ (0, _.createContext)(null);
-function cp(e, t) {
- let { validationBehavior: n } = Nf(ip) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, _.useContext)(op), a = Or((0, _.useMemo)(() => lr(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...If(e),
+}), mp = /*#__PURE__*/ (0, b.createContext)(null), hp = /*#__PURE__*/ (0, b.createContext)(null), gp = /*#__PURE__*/ (0, b.createContext)(null), _p = /*#__PURE__*/ (0, b.createContext)(null), vp = /*#__PURE__*/ (0, b.createContext)(null);
+function yp(e, t) {
+ let { validationBehavior: n } = Uf(hp) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, b.useContext)(_p), a = Ar((0, b.useMemo)(() => dr(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...Kf(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? Mo(o, i, a) : wo(o, jo(e), a), a];
+ return [i ? Io(o, i, a) : Oo(o, Fo(e), a), a];
}
-var lp = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
+var bp = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Pf(r, t, ap);
- let [i, a] = cp(e, n);
- return /*#__PURE__*/ _.createElement(sp.Provider, { value: {
+ [e, t] = Wf(r, t, gp);
+ let [i, a] = yp(e, n);
+ return /*#__PURE__*/ b.createElement(vp.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ _.createElement(up, {
+ } }, /*#__PURE__*/ b.createElement(xp, {
...e,
ref: t
}));
-}), up = /*#__PURE__*/ (0, _.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, _.useContext)(sp), { isFocused: p, isFocusVisible: m, focusProps: h } = uc(), g = a || o, { hoverProps: v, isHovered: y } = _c({
+}), xp = /*#__PURE__*/ (0, b.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, b.useContext)(vp), { isFocused: p, isFocusVisible: m, focusProps: h } = pc(), g = a || o, { hoverProps: _, isHovered: v } = bc({
...e,
isDisabled: g
- }), b = Mf({
+ }), y = Hf({
...e,
defaultClassName: u,
values: {
isSelected: i,
isIndeterminate: d || !1,
isPressed: s,
- isHovered: y,
+ isHovered: v,
isFocused: p,
isFocusVisible: m,
isDisabled: a,
@@ -19026,35 +19146,35 @@ var lp = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), x = H(e, { global: !0 });
- return delete x.id, delete x.onClick, /*#__PURE__*/ _.createElement(zf.label, {
- ...V(x, n, v, b),
+ }), x = Xi(e, { global: !0 });
+ return delete x.id, delete x.onClick, /*#__PURE__*/ b.createElement(Yf.label, {
+ ...H(x, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
"data-indeterminate": d || void 0,
"data-pressed": s || void 0,
- "data-hovered": y || void 0,
+ "data-hovered": v || void 0,
"data-focused": p || void 0,
"data-focus-visible": m || void 0,
"data-disabled": a || void 0,
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ _.createElement(Io, { elementType: "span" }, /*#__PURE__*/ _.createElement("input", {
- ...V(r, h),
+ }, /*#__PURE__*/ b.createElement(G, { elementType: "span" }, /*#__PURE__*/ b.createElement("input", {
+ ...H(r, h),
ref: l
- })), b.children);
-}), dp = /*#__PURE__*/ (0, _.createContext)({}), fp = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
- [e, t] = Pf(e, t, dp);
+ })), y.children);
+}), Sp = /*#__PURE__*/ (0, b.createContext)({}), Cp = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ [e, t] = Wf(e, t, Sp);
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 } = _c({
+ let { hoverProps: l, isHovered: u } = bc({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = uc({ within: !0 }), m = Mf({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = pc({ within: !0 }), m = Hf({
...e,
values: {
isHovered: u,
@@ -19065,8 +19185,8 @@ var lp = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ _.createElement(zf.div, {
- ...V(c, p, l),
+ return /*#__PURE__*/ b.createElement(Yf.div, {
+ ...H(c, p, l),
...m,
ref: t,
role: e.role ?? "group",
@@ -19078,18 +19198,18 @@ var lp = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), pp = /*#__PURE__*/ (0, _.createContext)({}), mp = (e) => {
+}), wp = /*#__PURE__*/ (0, b.createContext)({}), Tp = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, hp = /*#__PURE__*/ Fr(function(e, t) {
- [e, t] = Pf(e, t, pp);
- let { hoverProps: n, isHovered: r } = _c({
+}, Ep = /*#__PURE__*/ Lr(function(e, t) {
+ [e, t] = Wf(e, t, wp);
+ let { hoverProps: n, isHovered: r } = bc({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = uc({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = pc({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Mf({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Hf({
...e,
values: {
isHovered: r,
@@ -19100,8 +19220,8 @@ var lp = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ _.createElement(zf.input, {
- ...V(mp(e), o, n),
+ return /*#__PURE__*/ b.createElement(Yf.input, {
+ ...H(Tp(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -19110,8 +19230,8 @@ var lp = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), gp = {};
-gp = {
+}), Dp = {};
+Dp = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -19119,8 +19239,8 @@ gp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var _p = {};
-_p = {
+var Op = {};
+Op = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -19128,8 +19248,8 @@ _p = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var vp = {};
-vp = {
+var kp = {};
+kp = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -19137,8 +19257,8 @@ vp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var yp = {};
-yp = {
+var Ap = {};
+Ap = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -19146,8 +19266,8 @@ yp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var bp = {};
-bp = {
+var jp = {};
+jp = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -19155,8 +19275,8 @@ bp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var xp = {};
-xp = {
+var Mp = {};
+Mp = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -19164,8 +19284,8 @@ xp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var Sp = {};
-Sp = {
+var Np = {};
+Np = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -19173,8 +19293,8 @@ Sp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var Cp = {};
-Cp = {
+var Pp = {};
+Pp = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -19182,8 +19302,8 @@ Cp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var wp = {};
-wp = {
+var Fp = {};
+Fp = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -19191,8 +19311,8 @@ wp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var Tp = {};
-Tp = {
+var Ip = {};
+Ip = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -19200,8 +19320,8 @@ Tp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var Ep = {};
-Ep = {
+var Lp = {};
+Lp = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -19209,8 +19329,8 @@ Ep = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var Dp = {};
-Dp = {
+var Rp = {};
+Rp = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -19218,8 +19338,8 @@ Dp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var Op = {};
-Op = {
+var zp = {};
+zp = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -19227,8 +19347,8 @@ Op = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var kp = {};
-kp = {
+var Bp = {};
+Bp = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -19236,8 +19356,8 @@ kp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var Ap = {};
-Ap = {
+var Vp = {};
+Vp = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -19245,8 +19365,8 @@ Ap = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var jp = {};
-jp = {
+var Hp = {};
+Hp = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -19254,8 +19374,8 @@ jp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var Mp = {};
-Mp = {
+var Up = {};
+Up = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -19263,8 +19383,8 @@ Mp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var Np = {};
-Np = {
+var Wp = {};
+Wp = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -19272,8 +19392,8 @@ Np = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var Pp = {};
-Pp = {
+var Gp = {};
+Gp = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -19281,8 +19401,8 @@ Pp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var Fp = {};
-Fp = {
+var Kp = {};
+Kp = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -19290,8 +19410,8 @@ Fp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var Ip = {};
-Ip = {
+var qp = {};
+qp = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -19299,8 +19419,8 @@ Ip = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var Lp = {};
-Lp = {
+var Jp = {};
+Jp = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -19308,8 +19428,8 @@ Lp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var Rp = {};
-Rp = {
+var Yp = {};
+Yp = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -19317,8 +19437,8 @@ Rp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var zp = {};
-zp = {
+var Xp = {};
+Xp = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -19326,8 +19446,8 @@ zp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var Bp = {};
-Bp = {
+var Zp = {};
+Zp = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -19335,8 +19455,8 @@ Bp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var Vp = {};
-Vp = {
+var Qp = {};
+Qp = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -19344,8 +19464,8 @@ Vp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var Hp = {};
-Hp = {
+var $p = {};
+$p = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -19353,8 +19473,8 @@ Hp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var Up = {};
-Up = {
+var em = {};
+em = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -19362,8 +19482,8 @@ Up = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var Wp = {};
-Wp = {
+var tm = {};
+tm = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -19371,8 +19491,8 @@ Wp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var Gp = {};
-Gp = {
+var nm = {};
+nm = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -19380,8 +19500,8 @@ Gp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var Kp = {};
-Kp = {
+var rm = {};
+rm = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -19389,8 +19509,8 @@ Kp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var qp = {};
-qp = {
+var im = {};
+im = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -19398,8 +19518,8 @@ qp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var Jp = {};
-Jp = {
+var am = {};
+am = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -19407,8 +19527,8 @@ Jp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var Yp = {};
-Yp = {
+var om = {};
+om = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -19416,52 +19536,52 @@ Yp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var Xp = {};
-Xp = {
- "ar-AE": gp,
- "bg-BG": _p,
- "cs-CZ": vp,
- "da-DK": yp,
- "de-DE": bp,
- "el-GR": xp,
- "en-US": Sp,
- "es-ES": Cp,
- "et-EE": wp,
- "fi-FI": Tp,
- "fr-FR": Ep,
- "he-IL": Dp,
- "hr-HR": Op,
- "hu-HU": kp,
- "it-IT": Ap,
- "ja-JP": jp,
- "ko-KR": Mp,
- "lt-LT": Np,
- "lv-LV": Pp,
- "nb-NO": Fp,
- "nl-NL": Ip,
- "pl-PL": Lp,
- "pt-BR": Rp,
- "pt-PT": zp,
- "ro-RO": Bp,
- "ru-RU": Vp,
- "sk-SK": Hp,
- "sl-SI": Up,
- "sr-SP": Wp,
- "sv-SE": Gp,
- "tr-TR": Kp,
- "uk-UA": qp,
- "zh-CN": Jp,
- "zh-TW": Yp
+var sm = {};
+sm = {
+ "ar-AE": Dp,
+ "bg-BG": Op,
+ "cs-CZ": kp,
+ "da-DK": Ap,
+ "de-DE": jp,
+ "el-GR": Mp,
+ "en-US": Np,
+ "es-ES": Pp,
+ "et-EE": Fp,
+ "fi-FI": Ip,
+ "fr-FR": Lp,
+ "he-IL": Rp,
+ "hr-HR": zp,
+ "hu-HU": Bp,
+ "it-IT": Vp,
+ "ja-JP": Hp,
+ "ko-KR": Up,
+ "lt-LT": Wp,
+ "lv-LV": Gp,
+ "nb-NO": Kp,
+ "nl-NL": qp,
+ "pl-PL": Jp,
+ "pt-BR": Yp,
+ "pt-PT": Xp,
+ "ro-RO": Zp,
+ "ru-RU": Qp,
+ "sk-SK": $p,
+ "sl-SI": em,
+ "sr-SP": tm,
+ "sv-SE": nm,
+ "tr-TR": rm,
+ "uk-UA": im,
+ "zh-CN": am,
+ "zh-TW": om
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var Zp = /*#__PURE__*/ (0, _.createContext)({}), Qp = /*#__PURE__*/ (0, _.createContext)(null), $p = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
- let { render: n } = (0, _.useContext)(Qp);
- return /*#__PURE__*/ _.createElement(_.Fragment, null, n(e, t));
+var cm = /*#__PURE__*/ (0, b.createContext)({}), lm = /*#__PURE__*/ (0, b.createContext)(null), um = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ let { render: n } = (0, b.useContext)(lm);
+ return /*#__PURE__*/ b.createElement(b.Fragment, null, n(e, t));
});
-function em(e, t) {
- let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, _.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ _.createElement($p, { target: e });
+function dm(e, t) {
+ let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, b.useCallback)((e) => {
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ b.createElement(um, { target: e });
}, [
t?.target,
r,
@@ -19469,7 +19589,7 @@ function em(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function tm(e, t, n) {
+function fm(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;
@@ -19488,19 +19608,19 @@ function tm(e, t, n) {
}
i = e ?? t ?? i;
}
- return (0, _.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
+ return (0, b.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var nm = /*#__PURE__*/ (0, _.createContext)({}), rm = /*#__PURE__*/ (0, _.createContext)(null);
-function im(e) {
- let t = (0, _.useRef)({});
- return /*#__PURE__*/ _.createElement(rm.Provider, { value: t }, e.children);
+var pm = /*#__PURE__*/ (0, b.createContext)({}), mm = /*#__PURE__*/ (0, b.createContext)(null);
+function hm(e) {
+ let t = (0, b.useRef)({});
+ return /*#__PURE__*/ b.createElement(mm.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var am = /*#__PURE__*/ (0, _.createContext)({ isSelected: !1 }), om = /*#__PURE__*/ (0, _.createContext)({});
-(class extends at {
+var gm = /*#__PURE__*/ (0, b.createContext)({ isSelected: !1 }), _m = /*#__PURE__*/ (0, b.createContext)({});
+(class extends st {
static {
this.type = "separator";
}
@@ -19515,13 +19635,13 @@ var am = /*#__PURE__*/ (0, _.createContext)({ isSelected: !1 }), om = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function sm(e) {
- let t = _.version.split(".");
+function vm(e) {
+ let t = b.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 cm = class {
+var ym = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -19565,23 +19685,23 @@ var cm = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, lm = class e extends Set {
+}, bm = 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 um(e, t) {
+function xm(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function dm(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, _.useRef)(!1), [, s] = (0, _.useState)(!1), c = (0, _.useRef)(null), l = (0, _.useRef)(null), [, u] = (0, _.useState)(null), [d, f] = Ao((0, _.useMemo)(() => fm(e.selectedKeys), [e.selectedKeys]), (0, _.useMemo)(() => fm(e.defaultSelectedKeys, new lm()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, _.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, _.useState)(i);
+function Sm(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, b.useRef)(!1), [, s] = (0, b.useState)(!1), c = (0, b.useRef)(null), l = (0, b.useRef)(null), [, u] = (0, b.useState)(null), [d, f] = Po((0, b.useMemo)(() => Cm(e.selectedKeys), [e.selectedKeys]), (0, b.useMemo)(() => Cm(e.defaultSelectedKeys, new bm()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, b.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, b.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
- let g = (0, _.useRef)(i);
- return (0, _.useEffect)(() => {
+ let g = (0, b.useRef)(i);
+ return (0, b.useEffect)(() => {
i !== g.current && (h(i), g.current = i);
}, [i]), {
selectionMode: t,
@@ -19605,18 +19725,18 @@ function dm(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !um(e, d)) && f(e);
+ (r || !xm(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function fm(e, t) {
- return e ? e === "all" ? "all" : new lm(e) : t;
+function Cm(e, t) {
+ return e ? e === "all" ? "all" : new bm(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var pm = class e {
+var wm = 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;
}
@@ -19672,7 +19792,7 @@ var pm = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && Xs(this.collection, n, e) < 0) && (e = n);
+ (!e || n && $s(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -19680,7 +19800,7 @@ var pm = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && Xs(this.collection, n, e) > 0) && (e = n);
+ (!e || n && $s(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -19699,10 +19819,10 @@ var pm = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new lm([t], t, t);
+ if (this.state.selectedKeys === "all") n = new bm([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new lm(e, r, t);
+ n = new bm(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);
}
@@ -19710,7 +19830,7 @@ var pm = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? Xs(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? $s(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);
@@ -19736,19 +19856,19 @@ var pm = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new lm(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new bm(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 lm([t], t, t) : new lm();
+ let n = this.canSelectItem(t) ? new bm([t], t, t) : new bm();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new lm();
+ let t = new bm();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -19760,7 +19880,7 @@ var pm = 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(Js(qs(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(Zs(Xs(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -19771,7 +19891,7 @@ var pm = 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 lm());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new bm());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -19812,13 +19932,13 @@ var pm = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, mm = class {
+}, Tm = class {
build(e, t) {
- return this.context = t, hm(() => this.iterateCollection(e));
+ return this.context = t, Em(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
- if (_.isValidElement(t) && t.type === _.Fragment) yield* this.iterateCollection({
+ if (b.isValidElement(t) && t.type === b.Fragment) yield* this.iterateCollection({
children: t.props.children,
items: n
});
@@ -19831,7 +19951,7 @@ var pm = class e {
}, { renderer: t }), e++;
} else {
let e = [];
- _.Children.forEach(t, (t) => {
+ b.Children.forEach(t, (t) => {
t && e.push(t);
});
let n = 0;
@@ -19859,9 +19979,9 @@ var pm = class e {
return { renderer: t.renderer || e.renderer };
}
*getFullNode(e, t, n, r) {
- if (_.isValidElement(e.element) && e.element.type === _.Fragment) {
+ if (b.isValidElement(e.element) && e.element.type === b.Fragment) {
let i = [];
- _.Children.forEach(e.element.props.children, (e) => {
+ b.Children.forEach(e.element.props.children, (e) => {
i.push(e);
});
let a = e.index ?? 0;
@@ -19880,7 +20000,7 @@ var pm = class e {
}
i = t.renderer(e.value);
}
- if (_.isValidElement(i)) {
+ if (b.isValidElement(i)) {
let a = i.type;
if (typeof a != "function" && typeof a.getCollectionNode != "function") {
let e = i.type;
@@ -19896,10 +20016,10 @@ var pm = class e {
...a,
key: l,
index: s,
- wrapper: gm(e.wrapper, a.wrapper)
+ wrapper: Dm(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 <${_m(t.type)}> in <${_m(r?.type ?? "unknown parent type")}>. Only <${_m(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 <${Om(t.type)}> in <${Om(r?.type ?? "unknown parent type")}>. Only <${Om(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -19921,7 +20041,7 @@ var pm = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: hm(function* () {
+ childNodes: Em(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -19940,7 +20060,7 @@ var pm = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function hm(e) {
+function Em(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -19948,19 +20068,19 @@ function hm(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function gm(e, t) {
+function Dm(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function _m(e) {
+function Om(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function vm(e, t, n) {
- let r = (0, _.useMemo)(() => new mm(), []), { children: i, items: a, collection: o } = e;
- return (0, _.useMemo)(() => o || t(r.build({
+function km(e, t, n) {
+ let r = (0, b.useMemo)(() => new Tm(), []), { children: i, items: a, collection: o } = e;
+ return (0, b.useMemo)(() => o || t(r.build({
children: i,
items: a
}, n)), [
@@ -19974,29 +20094,29 @@ function vm(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function ym(e) {
- let { filter: t, layoutDelegate: n } = e, r = dm(e), i = (0, _.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = vm(e, (0, _.useCallback)((e) => t ? new cm(t(e)) : new cm(e), [t]), (0, _.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, _.useMemo)(() => new pm(a, r, { layoutDelegate: n }), [
+function Am(e) {
+ let { filter: t, layoutDelegate: n } = e, r = Sm(e), i = (0, b.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = km(e, (0, b.useCallback)((e) => t ? new ym(t(e)) : new ym(e), [t]), (0, b.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, b.useMemo)(() => new wm(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return xm(a, o), {
+ return Mm(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function bm(e, t) {
- let n = (0, _.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return xm(n, r), {
+function jm(e, t) {
+ let n = (0, b.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
+ return Mm(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function xm(e, t) {
- let n = (0, _.useRef)(null);
- (0, _.useEffect)(() => {
+function Mm(e, t) {
+ let n = (0, b.useRef)(null);
+ (0, b.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
let r = n.current.getKeyAfter(t.focusedKey), i = null;
for (; r != null;) {
@@ -20022,15 +20142,15 @@ function xm(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function Sm(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, _.useRef)(null), s = mi((e) => {
+function Nm(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, b.useRef)(null), s = gi((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- z(() => {
+ V(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: Xa(t?.current),
+ root: eo(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -20046,42 +20166,42 @@ function Sm(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var Cm = /*#__PURE__*/ (0, _.createContext)(null), wm = /*#__PURE__*/ (0, _.createContext)(null), Tm = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
- [e, t] = Pf(e, t, Cm);
- let n = (0, _.useContext)(wm);
- return n ? /*#__PURE__*/ _.createElement(Dm, {
+var Pm = /*#__PURE__*/ (0, b.createContext)(null), Fm = /*#__PURE__*/ (0, b.createContext)(null), Im = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ [e, t] = Wf(e, t, Pm);
+ let n = (0, b.useContext)(Fm);
+ return n ? /*#__PURE__*/ b.createElement(Rm, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ _.createElement(Gr, { content: /*#__PURE__*/ _.createElement(ni, e) }, (n) => /*#__PURE__*/ _.createElement(Em, {
+ }) : /*#__PURE__*/ b.createElement(qr, { content: /*#__PURE__*/ b.createElement(ii, e) }, (n) => /*#__PURE__*/ b.createElement(Lm, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function Em({ props: e, listBoxRef: t, collection: n }) {
+function Lm({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, _.useContext)(Gf), i = ym({
+ let { layoutDelegate: r } = (0, b.useContext)(np), i = Am({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ _.createElement(Dm, {
+ return /*#__PURE__*/ b.createElement(Rm, {
state: i,
props: e,
listBoxRef: t
});
}
-function Dm({ state: e, props: t, listBoxRef: n }) {
- [t, n] = Pf(t, n, Bf);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = bm(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Di(), { disabledBehavior: p, disabledKeys: m } = l, h = tc({
+function Rm({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = Wf(t, n, Xf);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = jm(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = ki(), { disabledBehavior: p, disabledKeys: m } = l, h = ic({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: v, dropTargetDelegate: y, CollectionRoot: b } = (0, _.useContext)(Gf), x = (0, _.useMemo)(() => t.keyboardDelegate || new Qo({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, b.useContext)(np), x = (0, b.useMemo)(() => t.keyboardDelegate || new ts({
collection: c,
collator: h,
ref: n,
@@ -20090,7 +20210,7 @@ function Dm({ state: e, props: t, listBoxRef: n }) {
layout: i,
orientation: a,
direction: f,
- layoutDelegate: v
+ layoutDelegate: _
}), [
c,
h,
@@ -20101,15 +20221,15 @@ function Dm({ state: e, props: t, listBoxRef: n }) {
f,
t.keyboardDelegate,
i,
- v
- ]), { listBoxProps: S } = wc({
+ _
+ ]), { listBoxProps: S } = Dc({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: x,
isVirtualized: g
}, s, n);
- (0, _.useRef)(u), (0, _.useRef)(d), (0, _.useEffect)(() => {}, [u, d]);
- let C, w, T, E = !1, D = null, O = (0, _.useRef)(null);
+ (0, b.useRef)(u), (0, b.useRef)(d), (0, b.useEffect)(() => {}, [u, d]);
+ let C, w, T, E = !1, D = null, O = (0, b.useRef)(null);
if (u && r) {
C = r.useDraggableCollectionState({
collection: c,
@@ -20117,14 +20237,14 @@ function Dm({ state: e, props: t, listBoxRef: n }) {
preview: r.renderDragPreview ? O : void 0
}), r.useDraggableCollection({}, C, n);
let e = r.DragPreview;
- D = r.renderDragPreview ? /*#__PURE__*/ _.createElement(e, { ref: O }, r.renderDragPreview) : null;
+ D = r.renderDragPreview ? /*#__PURE__*/ b.createElement(e, { ref: O }, r.renderDragPreview) : null;
}
if (d && r) {
w = r.useDroppableCollectionState({
collection: c,
selectionManager: l
});
- let e = r.dropTargetDelegate || y || new r.ListDropTargetDelegate(c, n, {
+ let e = r.dropTargetDelegate || v || new r.ListDropTargetDelegate(c, n, {
orientation: a,
layout: i,
direction: f
@@ -20134,101 +20254,101 @@ function Dm({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, w, n), E = w.isDropTarget({ type: "root" });
}
- let { focusProps: k, isFocused: A, isFocusVisible: ee } = uc(), j = s.collection.size === 0, te = {
+ let { focusProps: k, isFocused: A, isFocusVisible: j } = pc(), M = s.collection.size === 0, N = {
isDropTarget: E,
- isEmpty: j,
+ isEmpty: M,
isFocused: A,
- isFocusVisible: ee,
+ isFocusVisible: j,
layout: t.layout || "stack",
orientation: a,
state: s
- }, ne = Mf({
+ }, ee = Hf({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
- values: te
- }), re = null;
- j && t.renderEmptyState && (re = /*#__PURE__*/ _.createElement("div", {
+ values: N
+ }), te = null;
+ M && t.renderEmptyState && (te = /*#__PURE__*/ b.createElement("div", {
role: "option",
style: { display: "contents" }
- }, t.renderEmptyState(te)));
- let M = H(t, { global: !0 });
- return /*#__PURE__*/ _.createElement(xa, null, /*#__PURE__*/ _.createElement(zf.div, {
- ...V(M, ne, S, k, T?.collectionProps),
+ }, t.renderEmptyState(N)));
+ let P = Xi(t, { global: !0 });
+ return /*#__PURE__*/ b.createElement(Ta, null, /*#__PURE__*/ b.createElement(Yf.div, {
+ ...H(P, ee, S, k, T?.collectionProps),
ref: n,
slot: t.slot || void 0,
onScroll: t.onScroll,
"data-drop-target": E || void 0,
- "data-empty": j || void 0,
+ "data-empty": M || void 0,
"data-focused": A || void 0,
- "data-focus-visible": ee || void 0,
+ "data-focus-visible": j || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ _.createElement(jf, { values: [
- [Cm, t],
- [wm, s],
- [Zp, {
+ }, /*#__PURE__*/ b.createElement(Vf, { values: [
+ [Pm, t],
+ [Fm, s],
+ [cm, {
dragAndDropHooks: r,
dragState: C,
dropState: w
}],
- [om, { elementType: "div" }],
- [Qp, { render: Am }],
- [Vf, {
+ [_m, { elementType: "div" }],
+ [lm, { render: Vm }],
+ [Qf, {
name: "ListBoxSection",
- render: Om
+ render: zm
}]
- ] }, /*#__PURE__*/ _.createElement(im, null, /*#__PURE__*/ _.createElement(b, {
+ ] }, /*#__PURE__*/ b.createElement(hm, null, /*#__PURE__*/ b.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: tm(l, r, w),
- renderDropIndicator: em(r, w)
- }))), re, D));
+ persistedKeys: fm(l, r, w),
+ renderDropIndicator: dm(r, w)
+ }))), te, D));
}
-function Om(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, _.useContext)(wm), { dragAndDropHooks: a, dropState: o } = (0, _.useContext)(Zp), { CollectionBranch: s } = (0, _.useContext)(Gf), [c, l] = Ff(), { headingProps: u, groupProps: d } = Tc({
+function zm(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, b.useContext)(Fm), { dragAndDropHooks: a, dropState: o } = (0, b.useContext)(cm), { CollectionBranch: s } = (0, b.useContext)(np), [c, l] = Gf(), { headingProps: u, groupProps: d } = Oc({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = Mf({
+ }), f = Hf({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = H(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ _.createElement(zf.section, {
- ...V(p, f, d),
+ }), p = Xi(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ b.createElement(Yf.section, {
+ ...H(p, f, d),
ref: t
- }, /*#__PURE__*/ _.createElement(nm.Provider, { value: {
+ }, /*#__PURE__*/ b.createElement(pm.Provider, { value: {
...u,
ref: c
- } }, /*#__PURE__*/ _.createElement(s, {
+ } }, /*#__PURE__*/ b.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: em(a, o)
+ renderDropIndicator: dm(a, o)
})));
}
-var km = /*#__PURE__*/ $r(ct, function(e, t, n) {
- let r = Or(t), i = (0, _.useContext)(wm), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, _.useContext)(Zp), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Ec({
+var Bm = /*#__PURE__*/ ti(ut, function(e, t, n) {
+ let r = Ar(t), i = (0, b.useContext)(Fm), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, b.useContext)(cm), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = kc({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = _c({
+ }, i, r), { hoverProps: p, isHovered: m } = bc({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = Dr(e), { focusProps: g } = pr(e), v = null;
- o && a && (v = a.useDraggableItem({
+ }), { keyboardProps: h } = kr(e), { focusProps: g } = hr(e), _ = null;
+ o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
}, o));
- let y = null;
- s && a && (y = a.useDroppableItem({ target: {
+ let v = null;
+ s && a && (v = a.useDroppableItem({ target: {
type: "item",
key: n.key,
dropPosition: "on"
} }, s, r));
- let b = o && o.isDragging(n.key), x = Mf({
+ let y = o && o.isDragging(n.key), x = Hf({
...e,
id: void 0,
children: e.children,
@@ -20239,16 +20359,16 @@ var km = /*#__PURE__*/ $r(ct, function(e, t, n) {
selectionMode: i.selectionManager.selectionMode,
selectionBehavior: i.selectionManager.selectionBehavior,
allowsDragging: !!o,
- isDragging: b,
- isDropTarget: y?.isDropTarget
+ isDragging: y,
+ isDropTarget: v?.isDropTarget
}
});
- (0, _.useEffect)(() => {
+ (0, b.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let S = e.href ? zf.a : zf.div, C = H(e, { global: !0 });
- return delete C.id, delete C.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ _.createElement(S, {
- ...V(C, x, l, p, h, g, v?.dragProps, y?.dropProps),
+ let S = e.href ? Yf.a : Yf.div, C = Xi(e, { global: !0 });
+ return delete C.id, delete C.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ b.createElement(S, {
+ ...H(C, x, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
"data-allows-dragging": !!o || void 0,
"data-selected": f.isSelected || void 0,
@@ -20257,32 +20377,32 @@ var km = /*#__PURE__*/ $r(ct, function(e, t, n) {
"data-focused": f.isFocused || void 0,
"data-focus-visible": f.isFocusVisible || void 0,
"data-pressed": f.isPressed || void 0,
- "data-dragging": b || void 0,
- "data-drop-target": y?.isDropTarget || void 0,
+ "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__*/ _.createElement(jf, { values: [[tp, { slots: {
- [Af]: u,
+ }, /*#__PURE__*/ b.createElement(Vf, { values: [[fp, { slots: {
+ [$]: u,
label: u,
description: d
- } }], [am, { isSelected: f.isSelected }]] }, x.children));
+ } }], [gm, { isSelected: f.isSelected }]] }, x.children));
});
-function Am(e, t) {
- t = Or(t);
- let { dragAndDropHooks: n, dropState: r } = (0, _.useContext)(Zp), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ _.createElement(Mm, {
+function Vm(e, t) {
+ t = Ar(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, b.useContext)(cm), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ b.createElement(Um, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function jm(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = Mf({
+function Hm(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = Hf({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ _.createElement(_.Fragment, null, /*#__PURE__*/ _.createElement(zf.div, {
+ return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(Yf.div, {
...n,
...a,
role: "option",
@@ -20290,10 +20410,10 @@ function jm(e, t) {
"data-drop-target": r || void 0
}));
}
-var Mm = /*#__PURE__*/ (0, _.forwardRef)(jm);
-$r(st, function(e, t, n) {
- let r = (0, _.useContext)(wm), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, _.useRef)(null);
- Sm((0, _.useMemo)(() => ({
+var Um = /*#__PURE__*/ (0, b.forwardRef)(Hm);
+ti(lt, function(e, t, n) {
+ let r = (0, b.useContext)(Fm), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, b.useRef)(null);
+ Nm((0, b.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -20303,21 +20423,21 @@ $r(st, function(e, t, n) {
o,
r?.collection
]), c);
- let l = Mf({
+ let l = Hf({
...s,
id: void 0,
children: n.rendered,
defaultClassName: "react-aria-ListBoxLoadingIndicator",
values: void 0
});
- return /*#__PURE__*/ _.createElement(_.Fragment, null, /*#__PURE__*/ _.createElement("div", {
+ return /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement("div", {
style: {
position: "relative",
width: 0,
height: 0
},
- inert: sm(!0)
- }, /*#__PURE__*/ _.createElement("div", {
+ inert: vm(!0)
+ }, /*#__PURE__*/ b.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
style: {
@@ -20325,8 +20445,8 @@ $r(st, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ _.createElement(_.Fragment, null, /*#__PURE__*/ _.createElement(zf.div, {
- ...V(H(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(Yf.div, {
+ ...H(Xi(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -20334,21 +20454,21 @@ $r(st, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Nm = /*#__PURE__*/ (0, _.createContext)({ placement: "bottom" });
+var Wm = /*#__PURE__*/ (0, b.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function Pm(e) {
- let [t, n] = Ao(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, _.useState)(null);
+function Gm(e) {
+ let [t, n] = Po(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, b.useState)(null);
return {
isOpen: t,
setOpen: n,
- open: (0, _.useCallback)(() => {
+ open: (0, b.useCallback)(() => {
n(!0);
}, [n]),
- close: (0, _.useCallback)(() => {
+ close: (0, b.useCallback)(() => {
n(!1);
}, [n]),
- toggle: (0, _.useCallback)(() => {
+ toggle: (0, b.useCallback)(() => {
n(!t);
}, [n, t]),
point: r,
@@ -20357,14 +20477,14 @@ function Pm(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function Fm(e, t = !0) {
- let [n, r] = (0, _.useState)(!0), i = n && t;
- return z(() => {
+function Km(e, t = !0) {
+ let [n, r] = (0, b.useState)(!0), i = n && t;
+ return V(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), Lm(e, i, (0, _.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), Jm(e, i, (0, b.useCallback)(() => r(!1), [])), i;
}
-function Im(e, t) {
- let [n, r] = (0, _.useState)(t ? "open" : "closed");
+function qm(e, t) {
+ let [n, r] = (0, b.useState)(t ? "open" : "closed");
switch (n) {
case "open":
t || r("exiting");
@@ -20373,12 +20493,12 @@ function Im(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return Lm(e, i, (0, _.useCallback)(() => {
+ return Jm(e, i, (0, b.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function Lm(e, t, n) {
- z(() => {
+function Jm(e, t, n) {
+ V(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
n();
@@ -20391,7 +20511,7 @@ function Lm(e, t, n) {
}
let r = !1;
return Promise.allSettled(t.map((e) => e.finished)).then(() => {
- r || (0, Vr.flushSync)(() => {
+ r || (0, Ur.flushSync)(() => {
n();
});
}), () => {
@@ -20406,9 +20526,9 @@ function Lm(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var Rm = /*#__PURE__*/ (0, _.createContext)(null), zm = /*#__PURE__*/ (0, _.createContext)(null), Bm = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
- [e, t] = Pf(e, t, Rm);
- let n = (0, _.useContext)(Um), r = Pm(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Im(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Ir(), { direction: c } = Di();
+var Ym = /*#__PURE__*/ (0, b.createContext)(null), Xm = /*#__PURE__*/ (0, b.createContext)(null), Zm = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ [e, t] = Wf(e, t, Ym);
+ let n = (0, b.useContext)(eh), r = Gm(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = qm(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Rr(), { direction: c } = ki();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -20417,9 +20537,9 @@ var Rm = /*#__PURE__*/ (0, _.createContext)(null), zm = /*#__PURE__*/ (0, _.crea
isEntering: !1,
isExiting: !1,
defaultChildren: null
- })), /*#__PURE__*/ _.createElement(_.Fragment, null, t);
+ })), /*#__PURE__*/ b.createElement(b.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ _.createElement(Vm, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ b.createElement(Qm, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -20428,13 +20548,13 @@ var Rm = /*#__PURE__*/ (0, _.createContext)(null), zm = /*#__PURE__*/ (0, _.crea
dir: c
});
});
-function Vm({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, _.useRef)(null), o = (0, _.useRef)(null), s = (0, _.useContext)(zm), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Jl({
+function Qm({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, b.useRef)(null), o = (0, b.useRef)(null), s = (0, b.useContext)(Xm), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Xl({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = Fm(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, v = Mf({
+ }, e), m = i.popoverRef, h = Km(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = Hf({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -20443,38 +20563,38 @@ function Vm({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
isEntering: g,
isExiting: t
}
- }), y = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [b, x] = (0, _.useState)(i.trigger === "PreviewTrigger");
- z(() => {
- m.current && x(y && !m.current.querySelector("[role=dialog]"));
- }, [m, y]), (0, _.useEffect)(() => {
- b && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || Un() !== "pointer") && m.current && !Mt(m.current) && $n(m.current);
+ }), v = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [y, x] = (0, b.useState)(i.trigger === "PreviewTrigger");
+ V(() => {
+ m.current && x(v && !m.current.querySelector("[role=dialog]"));
+ }, [m, v]), (0, b.useEffect)(() => {
+ y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || Gn() !== "pointer") && m.current && !Pt(m.current) && tr(m.current);
}, [
- b,
+ y,
m,
i.trigger
]);
- let S = (0, _.useMemo)(() => {
- let e = v.children;
- if (r) for (let t of r) e = /*#__PURE__*/ _.createElement(t.Provider, { value: null }, e);
+ let S = (0, b.useMemo)(() => {
+ let e = _.children;
+ if (r) for (let t of r) e = /*#__PURE__*/ b.createElement(t.Provider, { value: null }, e);
return e;
- }, [v.children, r]), [C, w] = (0, _.useState)(null), T = (0, _.useCallback)(() => {
+ }, [_.children, r]), [C, w] = (0, b.useState)(null), T = (0, b.useCallback)(() => {
i.triggerRef.current && w(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- z(T, [T]), Oc({
- ref: v.style?.["--trigger-width"] ? void 0 : i.triggerRef,
+ V(T, [T]), jc({
+ ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: T
});
let E = {
...l.style,
"--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,
- ...v.style,
- "--trigger-width": v.style?.["--trigger-width"] || C
- }, D = /*#__PURE__*/ _.createElement(zf.div, {
- ...V(H(i, { global: !0 }), l),
- ...v,
- id: b ? i.id : void 0,
- role: b ? "dialog" : void 0,
- tabIndex: b ? -1 : void 0,
+ ..._.style,
+ "--trigger-width": _.style?.["--trigger-width"] || C
+ }, D = /*#__PURE__*/ b.createElement(Yf.div, {
+ ...H(Xi(i, { global: !0 }), l),
+ ..._,
+ id: y ? i.id : void 0,
+ role: y ? "dialog" : void 0,
+ tabIndex: y ? -1 : void 0,
"aria-label": i["aria-label"],
"aria-labelledby": i["aria-labelledby"],
ref: m,
@@ -20485,75 +20605,75 @@ function Vm({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ _.createElement(dl, { onDismiss: e.close }), /*#__PURE__*/ _.createElement(Nm.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ b.createElement(ml, { onDismiss: e.close }), /*#__PURE__*/ b.createElement(Wm.Provider, { value: {
...d,
placement: f,
ref: a
- } }, S), /*#__PURE__*/ _.createElement(dl, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ _.createElement(sc, {
+ } }, S), /*#__PURE__*/ b.createElement(ml, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ b.createElement(uc, {
...i,
- shouldContainFocus: b && i.trigger !== "PreviewTrigger",
+ shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, D) : /*#__PURE__*/ _.createElement(sc, {
+ }, D) : /*#__PURE__*/ b.createElement(uc, {
...i,
- shouldContainFocus: b && i.trigger !== "PreviewTrigger",
+ shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n
- }, !i.isNonModal && e.isOpen && /*#__PURE__*/ _.createElement("div", {
+ }, !i.isNonModal && e.isOpen && /*#__PURE__*/ b.createElement("div", {
"data-testid": "underlay",
...u,
style: {
position: "fixed",
inset: 0
}
- }), /*#__PURE__*/ _.createElement("div", {
+ }), /*#__PURE__*/ b.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ _.createElement(zm.Provider, { value: o }, D)));
+ }, /*#__PURE__*/ b.createElement(Xm.Provider, { value: o }, D)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var Hm = /*#__PURE__*/ (0, _.createContext)(null), Um = /*#__PURE__*/ (0, _.createContext)(null), Wm = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
+var $m = /*#__PURE__*/ (0, b.createContext)(null), eh = /*#__PURE__*/ (0, b.createContext)(null), th = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = Pf(e, t, Hm);
- let { dialogProps: r, titleProps: i, contentProps: a } = lc({
+ [e, t] = Wf(e, t, $m);
+ let { dialogProps: r, titleProps: i, contentProps: a } = fc({
...e,
"aria-labelledby": n
- }, t), o = (0, _.useContext)(Um);
+ }, t), o = (0, b.useContext)(eh);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = Mf({
+ let s = Hf({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = H(e, { global: !0 });
- return /*#__PURE__*/ _.createElement(zf.section, {
- ...V(c, s, r),
+ }), c = Xi(e, { global: !0 });
+ return /*#__PURE__*/ b.createElement(Yf.section, {
+ ...H(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ _.createElement(jf, { values: [
- [$f, { slots: {
- [Af]: {},
+ }, /*#__PURE__*/ b.createElement(Vf, { values: [
+ [up, { slots: {
+ [$]: {},
title: {
...i,
level: 2
}
} }],
- [tp, { slots: {
- [Af]: {},
+ [fp, { slots: {
+ [$]: {},
description: a
} }],
- [Yf, { slots: {
- [Af]: {},
+ [op, { slots: {
+ [$]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), Gm = Math.round(Math.random() * 1e10), Km = 0;
-function qm(e) {
- let t = (0, _.useMemo)(() => e.name || `radio-group-${Gm}-${++Km}`, [e.name]), [n, r] = Ao(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, _.useState)(n), [a, o] = (0, _.useState)(null), s = _o({
+}), nh = Math.round(Math.random() * 1e10), rh = 0;
+function ih(e) {
+ let t = (0, b.useMemo)(() => e.name || `radio-group-${nh}-${++rh}`, [e.name]), [n, r] = Po(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, b.useState)(n), [a, o] = (0, b.useState)(null), s = xo({
...e,
value: n
}), c = (t) => {
@@ -20576,16 +20696,16 @@ function qm(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Jm = /*#__PURE__*/ (0, _.createContext)(null), Ym = /*#__PURE__*/ (0, _.createContext)(null), Xm = /*#__PURE__*/ (0, _.createContext)(null), Zm = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
- [e, t] = Pf(e, t, Jm);
- let { validationBehavior: n } = Nf(ip) || {}, r = e.validationBehavior ?? n ?? "native", i = qm({
+var ah = /*#__PURE__*/ (0, b.createContext)(null), oh = /*#__PURE__*/ (0, b.createContext)(null), sh = /*#__PURE__*/ (0, b.createContext)(null), ch = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ [e, t] = Wf(e, t, ah);
+ let { validationBehavior: n } = Uf(hp) || {}, r = e.validationBehavior ?? n ?? "native", i = ih({
...e,
validationBehavior: r
- }), [a, o] = Ff(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Zl({
+ }), [a, o] = Gf(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = $l({
...e,
label: o,
validationBehavior: r
- }, i), f = Mf({
+ }, i), f = Hf({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -20596,9 +20716,9 @@ var Jm = /*#__PURE__*/ (0, _.createContext)(null), Ym = /*#__PURE__*/ (0, _.crea
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = H(e, { global: !0 });
- return /*#__PURE__*/ _.createElement(zf.div, {
- ...V(p, f, s),
+ }), p = Xi(e, { global: !0 });
+ return /*#__PURE__*/ b.createElement(Yf.div, {
+ ...H(p, f, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": e.orientation || "vertical",
@@ -20606,39 +20726,39 @@ var Jm = /*#__PURE__*/ (0, _.createContext)(null), Ym = /*#__PURE__*/ (0, _.crea
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ _.createElement(jf, { values: [
- [Xm, i],
- [Kf, {
+ }, /*#__PURE__*/ b.createElement(Vf, { values: [
+ [sh, i],
+ [rp, {
...c,
ref: a,
elementType: "span"
}],
- [tp, { slots: {
+ [fp, { slots: {
description: l,
errorMessage: u
} }],
- [rp, d]
- ] }, /*#__PURE__*/ _.createElement(im, null, f.children)));
-}), Qm = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
+ [mp, d]
+ ] }, /*#__PURE__*/ b.createElement(hm, null, f.children)));
+}), lh = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Pf(r, t, Ym);
- let i = _.useContext(Xm), a = Or((0, _.useMemo)(() => lr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Xl({
- ...If(e),
+ [e, t] = Wf(r, t, oh);
+ let i = b.useContext(sh), a = Ar((0, b.useMemo)(() => dr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Ql({
+ ...Kf(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ _.createElement($m.Provider, { value: {
+ return /*#__PURE__*/ b.createElement(uh.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ _.createElement(eh, {
+ } }, /*#__PURE__*/ b.createElement(dh, {
...e,
ref: t
}));
-}), $m = /*#__PURE__*/ (0, _.createContext)(null), eh = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, _.useContext)($m), l = _.useContext(Xm), { isFocused: u, isFocusVisible: d, focusProps: f } = uc(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = _c({
+}), uh = /*#__PURE__*/ (0, b.createContext)(null), dh = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, b.useContext)(uh), l = b.useContext(sh), { isFocused: u, isFocusVisible: d, focusProps: f } = pc(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = bc({
...e,
isDisabled: p
- }), g = Mf({
+ }), g = Hf({
...e,
defaultClassName: s,
values: {
@@ -20652,9 +20772,9 @@ var Jm = /*#__PURE__*/ (0, _.createContext)(null), Ym = /*#__PURE__*/ (0, _.crea
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), v = H(e, { global: !0 });
- return delete v.id, delete v.onClick, /*#__PURE__*/ _.createElement(zf.label, {
- ...V(v, n, m, g),
+ }), _ = Xi(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ b.createElement(Yf.label, {
+ ...H(_, n, m, g),
ref: t,
"data-selected": i || void 0,
"data-pressed": o || void 0,
@@ -20665,19 +20785,19 @@ var Jm = /*#__PURE__*/ (0, _.createContext)(null), Ym = /*#__PURE__*/ (0, _.crea
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ _.createElement(Io, { elementType: "span" }, /*#__PURE__*/ _.createElement("input", {
- ...V(r, f),
+ }, /*#__PURE__*/ b.createElement(G, { elementType: "span" }, /*#__PURE__*/ b.createElement("input", {
+ ...H(r, f),
ref: c
})), g.children);
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function th(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = Pm(e), [i, a] = (0, _.useState)(null), o = (0, _.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function fh(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = Gm(e), [i, a] = (0, b.useState)(null), o = (0, b.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = Ao((0, _.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = Po((0, b.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -20689,12 +20809,12 @@ function th(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = ym({
+ }, d = Am({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, _.useMemo)(() => nh(l), [l]),
+ selectedKeys: (0, b.useMemo)(() => ph(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -20704,22 +20824,22 @@ function th(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, _.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = _o({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, b.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = xo({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
- }), [h, g] = (0, _.useState)(!1), [v] = (0, _.useState)(l);
+ }), [h, g] = (0, b.useState)(!1), [_] = (0, b.useState)(l);
return {
...m,
...d,
...r,
value: l,
- defaultValue: o ?? v,
+ defaultValue: o ?? _,
setValue: u,
selectedKey: f,
setSelectedKey: u,
selectedItem: p[0] ?? null,
selectedItems: p,
- defaultSelectedKey: e.defaultSelectedKey ?? (e.selectionMode === "single" ? v : null),
+ defaultSelectedKey: e.defaultSelectedKey ?? (e.selectionMode === "single" ? _ : null),
focusStrategy: i,
open(t = null) {
(d.collection.size !== 0 || e.allowsEmptyCollection) && (a(t), r.open());
@@ -20731,17 +20851,17 @@ function th(e) {
setFocused: g
};
}
-function nh(e) {
+function ph(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 rh(e) {
+function mh(e) {
return e && e.__esModule ? e.default : e;
}
-var ih = /*#__PURE__*/ (0, _.createContext)(null), ah = /*#__PURE__*/ (0, _.createContext)(null), oh = /*#__PURE__*/ Fr(function(e, t) {
- [e, t] = Pf(e, t, ih);
- let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, _.useMemo)(() => typeof n == "function" ? n({
+var hh = /*#__PURE__*/ (0, b.createContext)(null), gh = /*#__PURE__*/ (0, b.createContext)(null), _h = /*#__PURE__*/ Lr(function(e, t) {
+ [e, t] = Wf(e, t, hh);
+ let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, b.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
isInvalid: i,
@@ -20755,99 +20875,99 @@ var ih = /*#__PURE__*/ (0, _.createContext)(null), ah = /*#__PURE__*/ (0, _.crea
i,
a
]);
- return /*#__PURE__*/ _.createElement(Gr, { content: o }, (n) => /*#__PURE__*/ _.createElement(ch, {
+ return /*#__PURE__*/ b.createElement(qr, { content: o }, (n) => /*#__PURE__*/ b.createElement(yh, {
props: e,
collection: n,
selectRef: t
}));
-}), sh = [
- Kf,
- Yf,
- tp
+}), vh = [
+ rp,
+ op,
+ fp
];
-function ch({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = Nf(ip) || {}, i = e.validationBehavior ?? r ?? "native", a = th({
+function yh({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = Uf(hp) || {}, i = e.validationBehavior ?? r ?? "native", a = fh({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = uc({ within: !0 }), c = (0, _.useRef)(null), [l, u] = Ff(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: v, ...y } = $l({
- ...If(e),
+ }), { isFocusVisible: o, focusProps: s } = pc({ within: !0 }), c = (0, b.useRef)(null), [l, u] = Gf(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = tu({
+ ...Kf(e),
label: u,
validationBehavior: i
- }, a, c), b = (0, _.useMemo)(() => ({
+ }, a, c), y = (0, b.useMemo)(() => ({
isOpen: a.isOpen,
isFocused: a.isFocused,
isFocusVisible: o,
isDisabled: e.isDisabled || !1,
- isInvalid: y.isInvalid || !1,
+ isInvalid: v.isInvalid || !1,
isRequired: e.isRequired || !1
}), [
a.isOpen,
a.isFocused,
o,
e.isDisabled,
- y.isInvalid,
+ v.isInvalid,
e.isRequired
- ]), x = Mf({
+ ]), x = Hf({
...e,
- values: b,
+ values: y,
defaultClassName: "react-aria-Select"
- }), S = H(e, { global: !0 });
+ }), S = Xi(e, { global: !0 });
delete S.id;
- let C = (0, _.useRef)(null);
- return /*#__PURE__*/ _.createElement(jf, { values: [
- [ih, e],
- [ah, a],
- [lh, p],
- [Kf, {
+ let C = (0, b.useRef)(null);
+ return /*#__PURE__*/ b.createElement(Vf, { values: [
+ [hh, e],
+ [gh, a],
+ [bh, p],
+ [rp, {
...d,
ref: l,
elementType: "span"
}],
- [Yf, {
+ [op, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [Um, a],
- [Rm, {
+ [eh, a],
+ [Ym, {
trigger: "Select",
triggerRef: c,
scrollRef: C,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: sh
+ clearContexts: vh
}],
- [Cm, {
+ [Pm, {
...m,
ref: C
}],
- [wm, a],
- [tp, { slots: {
+ [Fm, a],
+ [fp, { slots: {
description: h,
errorMessage: g
} }],
- [rp, y]
- ] }, /*#__PURE__*/ _.createElement(zf.div, {
- ...V(S, x, s),
+ [mp, v]
+ ] }, /*#__PURE__*/ b.createElement(Yf.div, {
+ ...H(S, x, s),
ref: t,
slot: e.slot || void 0,
"data-focused": a.isFocused || void 0,
"data-focus-visible": o || void 0,
"data-open": a.isOpen || void 0,
"data-disabled": e.isDisabled || void 0,
- "data-invalid": y.isInvalid || void 0,
+ "data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, x.children, /*#__PURE__*/ _.createElement(tu, {
- ...v,
+ }, x.children, /*#__PURE__*/ b.createElement(ru, {
+ ..._,
autoComplete: e.autoComplete
})));
}
-var lh = /*#__PURE__*/ (0, _.createContext)(null), uh = /*#__PURE__*/ Fr(function(e, t) {
- [e, t] = Pf(e, t, lh);
- let n = (0, _.useContext)(ah), { placeholder: r } = Nf(ih), i = n.selectedItems.map((e) => {
+var bh = /*#__PURE__*/ (0, b.createContext)(null), xh = /*#__PURE__*/ Lr(function(e, t) {
+ [e, t] = Wf(e, t, bh);
+ let n = (0, b.useContext)(gh), { placeholder: r } = Uf(hh), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -20859,65 +20979,65 @@ var lh = /*#__PURE__*/ (0, _.createContext)(null), uh = /*#__PURE__*/ Fr(functio
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = dc(), o = (0, _.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, _.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = mc(), o = (0, b.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, b.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
- ]), l = (0, _.useMemo)(() => {
+ ]), l = (0, b.useMemo)(() => {
if (s === "single") return i[0];
let e = a.formatToParts(o);
if (e.length === 0) return null;
let t = 0;
- return e.map((e) => e.type === "element" ? /*#__PURE__*/ _.createElement(_.Fragment, { key: t }, i[t++]) : e.value);
+ return e.map((e) => e.type === "element" ? /*#__PURE__*/ b.createElement(b.Fragment, { key: t }, i[t++]) : e.value);
}, [
s,
a,
o,
i
- ]), u = Vi(rh(Xp), "react-aria-components"), d = Mf({
+ ]), u = Ui(mh(sm), "react-aria-components"), d = Hf({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
values: {
selectedItem: n.selectedItems[0]?.value ?? null,
- selectedItems: (0, _.useMemo)(() => n.selectedItems.map((e) => e.value ?? null), [n.selectedItems]),
+ selectedItems: (0, b.useMemo)(() => n.selectedItems.map((e) => e.value ?? null), [n.selectedItems]),
selectedText: c,
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = H(e, { global: !0 });
- return /*#__PURE__*/ _.createElement(zf.span, {
+ }), f = Xi(e, { global: !0 });
+ return /*#__PURE__*/ b.createElement(Yf.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ _.createElement(tp.Provider, { value: void 0 }, d.children));
-}), dh = /*#__PURE__*/ (0, _.createContext)(null), fh = /*#__PURE__*/ (0, _.createContext)(null), ph = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ b.createElement(fp.Provider, { value: void 0 }, d.children));
+}), Sh = /*#__PURE__*/ (0, b.createContext)(null), Ch = /*#__PURE__*/ (0, b.createContext)(null), wh = /*#__PURE__*/ (0, b.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Pf(r, t, dh);
- let i = Or((0, _.useMemo)(() => lr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = jo(e), o = nu({
- ...If(e),
+ [e, t] = Wf(r, t, Sh);
+ let i = Ar((0, b.useMemo)(() => dr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = Fo(e), o = iu({
+ ...Kf(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ _.createElement(jf, { values: [[fh, a], [mh, {
+ return /*#__PURE__*/ b.createElement(Vf, { values: [[Ch, a], [Th, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ _.createElement(hh, {
+ }]] }, /*#__PURE__*/ b.createElement(Eh, {
...e,
ref: t
}));
-}), mh = /*#__PURE__*/ (0, _.createContext)(null), hh = /*#__PURE__*/ (0, _.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, _.useContext)(mh), { isFocused: f, isFocusVisible: p, focusProps: m } = uc(), h = a || o, g = (0, _.useContext)(fh), { hoverProps: v, isHovered: y } = _c({
+}), Th = /*#__PURE__*/ (0, b.createContext)(null), Eh = /*#__PURE__*/ (0, b.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, b.useContext)(Th), { isFocused: f, isFocusVisible: p, focusProps: m } = pc(), h = a || o, g = (0, b.useContext)(Ch), { hoverProps: _, isHovered: v } = bc({
...e,
isDisabled: h
- }), b = Mf({
+ }), y = Hf({
...e,
defaultClassName: u,
values: {
isSelected: i,
isPressed: s,
- isHovered: y,
+ isHovered: v,
isFocused: f,
isFocusVisible: p,
isDisabled: a,
@@ -20926,36 +21046,36 @@ var lh = /*#__PURE__*/ (0, _.createContext)(null), uh = /*#__PURE__*/ Fr(functio
isRequired: d || !1,
state: g
}
- }), x = H(e, { global: !0 });
- return delete x.id, delete x.onClick, /*#__PURE__*/ _.createElement(zf.label, {
- ...V(x, n, v, b),
+ }), x = Xi(e, { global: !0 });
+ return delete x.id, delete x.onClick, /*#__PURE__*/ b.createElement(Yf.label, {
+ ...H(x, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
"data-pressed": s || void 0,
- "data-hovered": y || void 0,
+ "data-hovered": v || void 0,
"data-focused": f || void 0,
"data-focus-visible": p || void 0,
"data-disabled": a || void 0,
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ _.createElement(Io, { elementType: "span" }, /*#__PURE__*/ _.createElement("input", {
- ...V(r, m),
+ }, /*#__PURE__*/ b.createElement(G, { elementType: "span" }, /*#__PURE__*/ b.createElement("input", {
+ ...H(r, m),
ref: l
- })), b.children);
-}), gh = /*#__PURE__*/ (0, _.createContext)({}), _h = /*#__PURE__*/ (0, _.createContext)(null), vh = /*#__PURE__*/ Fr(function(e, t) {
- [e, t] = Pf(e, t, _h);
- let { validationBehavior: n } = Nf(ip) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, _.useRef)(null);
- [e, i] = Pf(e, i, $);
- let [a, o] = Ff(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, _.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Lo({
- ...If(e),
+ })), y.children);
+}), Dh = /*#__PURE__*/ (0, b.createContext)({}), Oh = /*#__PURE__*/ (0, b.createContext)(null), kh = /*#__PURE__*/ Lr(function(e, t) {
+ [e, t] = Wf(e, t, Oh);
+ let { validationBehavior: n } = Uf(hp) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, b.useRef)(null);
+ [e, i] = Wf(e, i, Zf);
+ let [a, o] = Gf(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, b.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = zo({
+ ...Kf(e),
inputElementType: s,
label: o,
validationBehavior: r
- }, i), m = (0, _.useCallback)((e) => {
+ }, i), m = (0, b.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = Mf({
+ }, [i]), h = Hf({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -20964,8 +21084,8 @@ var lh = /*#__PURE__*/ (0, _.createContext)(null), uh = /*#__PURE__*/ Fr(functio
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = H(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ _.createElement(zf.div, {
+ }), g = Xi(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ b.createElement(Yf.div, {
...g,
...h,
ref: t,
@@ -20974,31 +21094,31 @@ var lh = /*#__PURE__*/ (0, _.createContext)(null), uh = /*#__PURE__*/ Fr(functio
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ _.createElement(jf, { values: [
- [Kf, {
+ }, /*#__PURE__*/ b.createElement(Vf, { values: [
+ [rp, {
...l,
ref: a
}],
- [pp, {
+ [wp, {
...u,
ref: m
}],
- [gh, {
+ [Dh, {
...u,
ref: m
}],
- [dp, {
+ [Sp, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [tp, { slots: {
+ [fp, { slots: {
description: d,
errorMessage: f
} }],
- [rp, p]
+ [mp, p]
] }, h.children));
-}), yh = Hd({
+}), Ah = Kd({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -21060,27 +21180,27 @@ var lh = /*#__PURE__*/ (0, _.createContext)(null), uh = /*#__PURE__*/ Fr(functio
}
}
});
-function bh({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = yh[t];
- return /* @__PURE__ */ (0, v.jsx)("span", {
+function jh({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = Ah[t];
+ return /* @__PURE__ */ (0, x.jsx)("span", {
"aria-hidden": !0,
- className: Vd("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? Vd("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, v.jsx)("span", {
- className: Vd("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, v.jsx)("span", { className: Vd("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: Gd("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? Gd("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, x.jsx)("span", {
+ className: Gd("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, x.jsx)("span", { className: Gd("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 xh({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, v.jsx)(ph, {
+function Mh({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, x.jsx)(wh, {
ref: i,
...a,
- className: (t) => Vd("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, v.jsxs)(v.Fragment, { children: [/* @__PURE__ */ (0, v.jsx)(bh, {
+ className: (t) => Gd("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, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(jh, {
state: e,
size: n,
shape: r
- }), t != null && t !== !1 && /* @__PURE__ */ (0, v.jsx)("span", {
+ }), t != null && t !== !1 && /* @__PURE__ */ (0, x.jsx)("span", {
className: "text-body-medium text-text-primary",
children: t
})] })
@@ -21088,7 +21208,7 @@ function xh({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var Sh = Hd({
+var Nh = Kd({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -21112,21 +21232,21 @@ var Sh = Hd({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function Ch({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = Vd(Sh.base, Sh.size[t], Sh.variant[e], a), l = /* @__PURE__ */ (0, v.jsxs)(v.Fragment, { children: [
- n ? /* @__PURE__ */ (0, v.jsx)(n, {
- className: Sh.icon[t],
+function Ph({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = Gd(Nh.base, Nh.size[t], Nh.variant[e], a), l = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
+ n ? /* @__PURE__ */ (0, x.jsx)(n, {
+ className: Nh.icon[t],
"aria-hidden": !0
}) : null,
- i != null && /* @__PURE__ */ (0, v.jsx)("span", { children: i }),
- r ? /* @__PURE__ */ (0, v.jsx)(r, {
- className: Sh.icon[t],
+ i != null && /* @__PURE__ */ (0, x.jsx)("span", { children: i }),
+ r ? /* @__PURE__ */ (0, x.jsx)(r, {
+ className: Nh.icon[t],
"aria-hidden": !0
}) : null
] });
if (s.href !== void 0) {
let { ref: e, href: t, ...n } = s;
- return /* @__PURE__ */ (0, v.jsx)("a", {
+ return /* @__PURE__ */ (0, x.jsx)("a", {
ref: e,
href: o ? void 0 : t,
"aria-disabled": o || void 0,
@@ -21136,7 +21256,7 @@ function Ch({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
});
}
let { ref: u, type: d = "button", ...f } = s;
- return /* @__PURE__ */ (0, v.jsx)("button", {
+ return /* @__PURE__ */ (0, x.jsx)("button", {
ref: u,
type: d,
disabled: o,
@@ -21147,143 +21267,143 @@ function Ch({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/settings/section.tsx
-function wh({ title: e, id: t, onSubmit: n, children: r }) {
- let i = /* @__PURE__ */ (0, v.jsxs)(v.Fragment, { children: [/* @__PURE__ */ (0, v.jsx)(Ef, { children: e }), /* @__PURE__ */ (0, v.jsx)(Tf, { children: r })] });
- return n ? /* @__PURE__ */ (0, v.jsx)("form", {
+function Fh({ title: e, id: t, onSubmit: n, children: r }) {
+ let i = /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(zf, { children: e }), /* @__PURE__ */ (0, x.jsx)(Rf, { children: r })] });
+ return n ? /* @__PURE__ */ (0, x.jsx)("form", {
id: t,
"aria-label": e,
noValidate: !0,
onSubmit: n,
className: "flex w-full flex-col gap-2",
children: i
- }) : /* @__PURE__ */ (0, v.jsx)("section", {
+ }) : /* @__PURE__ */ (0, x.jsx)("section", {
id: t,
"aria-label": e,
className: "flex w-full flex-col gap-2",
children: i
});
}
-function Th({ children: e }) {
- return /* @__PURE__ */ (0, v.jsx)("div", {
+function Ih({ children: e }) {
+ return /* @__PURE__ */ (0, x.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function Eh({ divided: e = !1, children: t }) {
- return e ? /* @__PURE__ */ (0, v.jsx)("div", {
+function Lh({ divided: e = !1, children: t }) {
+ return e ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
- }) : /* @__PURE__ */ (0, v.jsx)("div", {
+ }) : /* @__PURE__ */ (0, x.jsx)("div", {
className: "flex flex-col gap-4 py-4 pr-3",
children: t
});
}
-function Dh({ status: e, children: t }) {
- return /* @__PURE__ */ (0, v.jsxs)("div", {
+function Rh({ status: e, children: t }) {
+ return /* @__PURE__ */ (0, x.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, v.jsx)("div", {
+ children: [e ? /* @__PURE__ */ (0, x.jsx)("div", {
className: "mr-auto min-w-0 text-body-2-regular text-text-secondary",
children: e
}) : null, t]
});
}
-function Oh({ role: e, children: t }) {
- return /* @__PURE__ */ (0, v.jsx)("p", {
+function zh({ role: e, children: t }) {
+ return /* @__PURE__ */ (0, x.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function kh({ children: e }) {
- return /* @__PURE__ */ (0, v.jsx)("p", {
+function Bh({ children: e }) {
+ return /* @__PURE__ */ (0, x.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function Ah({ children: e }) {
- return /* @__PURE__ */ (0, v.jsx)("p", {
+function Vh({ children: e }) {
+ return /* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function jh({ href: e, children: t }) {
- return /* @__PURE__ */ (0, v.jsx)(Ch, {
+function Hh({ href: e, children: t }) {
+ return /* @__PURE__ */ (0, x.jsx)(Ph, {
href: e,
target: "_blank",
rel: "noreferrer",
size: "small",
- trailingIcon: lu,
+ trailingIcon: du,
children: t
});
}
-function Mh({ children: e }) {
- return /* @__PURE__ */ (0, v.jsx)("dl", {
+function Uh({ children: e }) {
+ return /* @__PURE__ */ (0, x.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function Nh({ term: e, children: t }) {
- return /* @__PURE__ */ (0, v.jsxs)("div", {
+function Wh({ term: e, children: t }) {
+ return /* @__PURE__ */ (0, x.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, v.jsx)("dt", {
+ children: [/* @__PURE__ */ (0, x.jsx)("dt", {
className: "flex shrink-0 items-center gap-2 text-body-regular text-text-secondary",
children: e
- }), /* @__PURE__ */ (0, v.jsx)("dd", {
+ }), /* @__PURE__ */ (0, x.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 Ph({ summary: e, children: t }) {
- let n = (0, _.useId)(), i = (0, _.useRef)(null), a = (0, _.useRef)(null), [o, s] = (0, _.useState)(!1);
- return /* @__PURE__ */ (0, v.jsxs)("details", {
- ref: i,
- children: [/* @__PURE__ */ (0, v.jsxs)("summary", {
- "aria-expanded": o,
+function Gh({ summary: e, children: t }) {
+ let n = (0, b.useId)(), r = (0, b.useRef)(null), i = (0, b.useRef)(null), [a, s] = (0, b.useState)(!1);
+ return /* @__PURE__ */ (0, x.jsxs)("details", {
+ ref: r,
+ children: [/* @__PURE__ */ (0, x.jsxs)("summary", {
+ "aria-expanded": a,
"aria-controls": n,
onClick: (e) => {
- e.preventDefault(), !(!i.current || !a.current) && (r(i.current, a.current, !o), s(!o));
+ e.preventDefault(), !(!r.current || !i.current) && (o(r.current, i.current, !a), s(!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, v.jsx)(su, {
+ children: [/* @__PURE__ */ (0, x.jsx)(lu, {
"aria-hidden": !0,
- className: o ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
+ className: a ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
}), e]
- }), /* @__PURE__ */ (0, v.jsx)("div", {
- ref: a,
+ }), /* @__PURE__ */ (0, x.jsx)("div", {
+ ref: i,
id: n,
- inert: !o,
- children: /* @__PURE__ */ (0, v.jsx)("div", {
+ inert: !a,
+ children: /* @__PURE__ */ (0, x.jsx)("div", {
className: "flex flex-col gap-2 pt-3",
children: t
})
})]
});
}
-function Fh({ name: e }) {
- return /* @__PURE__ */ (0, v.jsx)("svg", {
+function Kh({ name: e }) {
+ return /* @__PURE__ */ (0, x.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
fill: "none",
className: "size-4 shrink-0 stroke-current stroke-2",
- children: /* @__PURE__ */ (0, v.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, x.jsx)("use", { href: `#i-${e}` })
});
}
-function Ih({ mark: e }) {
- return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, v.jsx)("img", {
+function qh({ mark: e }) {
+ return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, x.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, v.jsx)(Fh, { name: e });
+ }) : /* @__PURE__ */ (0, x.jsx)(Kh, { name: e });
}
//#endregion
//#region src/react/settings/use-action.ts
-function Lh(e = "") {
- let t = (0, _.useRef)(null), [n, r] = (0, _.useState)(""), [i, a] = (0, _.useState)(e);
- (0, _.useEffect)(() => () => t.current?.abort(), []);
+function Jh(e = "") {
+ let t = (0, b.useRef)(null), [n, r] = (0, b.useState)(""), [i, a] = (0, b.useState)(e);
+ (0, b.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
if (t.current) return;
let s = new AbortController();
@@ -21293,7 +21413,7 @@ function Lh(e = "") {
s.signal.aborted || i(e);
} catch (e) {
if (s.signal.aborted) return;
- o ? o(e) : a(qd(e));
+ o ? o(e) : a(Zd(e));
} finally {
t.current === s && (t.current = null), s.signal.aborted || r("");
}
@@ -21305,7 +21425,7 @@ function Lh(e = "") {
setError: a
};
}
-function Rh(e) {
+function Yh(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
@@ -21313,48 +21433,48 @@ function Rh(e) {
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function zh({ data: e, receipt: t }) {
- return e.startup ? /* @__PURE__ */ (0, v.jsx)(Bh, {
+function Xh({ data: e, receipt: t }) {
+ return e.startup ? /* @__PURE__ */ (0, x.jsx)(Zh, {
startup: e.startup,
receipt: t
}) : null;
}
-function Bh({ startup: e, receipt: t }) {
- let [n, r] = (0, _.useState)(e.enabled), [i, a] = (0, _.useState)(e.silent), [o, s] = (0, _.useState)(e.desktop), c = Lh(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, v.jsxs)(wh, {
+function Zh({ startup: e, receipt: t }) {
+ let [n, r] = (0, b.useState)(e.enabled), [i, a] = (0, b.useState)(e.silent), [o, s] = (0, b.useState)(e.desktop), c = Jh(), l = e.available && !e.desktop_message;
+ return /* @__PURE__ */ (0, x.jsxs)(Fh, {
title: "开机自启",
onSubmit: (r) => {
- r.preventDefault(), e.available && c.run("save", (e) => Yd("/api/configuration/startup", {
+ r.preventDefault(), e.available && c.run("save", (e) => $d("/api/configuration/startup", {
enabled: n,
silent: i,
desktop: o
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, v.jsxs)(Th, { children: [
- /* @__PURE__ */ (0, v.jsx)(Df, {
+ /* @__PURE__ */ (0, x.jsxs)(Ih, { children: [
+ /* @__PURE__ */ (0, x.jsx)(Bf, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, v.jsx)(xh, {
+ children: /* @__PURE__ */ (0, x.jsx)(Mh, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, v.jsx)(Df, {
+ /* @__PURE__ */ (0, x.jsx)(Bf, {
label: "静默启动",
description: "静默启动仅显示托盘,开机后启动 Peach 打开时生效。",
- children: /* @__PURE__ */ (0, v.jsx)(xh, {
+ children: /* @__PURE__ */ (0, x.jsx)(Mh, {
"aria-label": "静默启动",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, v.jsx)(Df, {
+ /* @__PURE__ */ (0, x.jsx)(Bf, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
- children: /* @__PURE__ */ (0, v.jsx)(xh, {
+ children: /* @__PURE__ */ (0, x.jsx)(Mh, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -21362,14 +21482,14 @@ function Bh({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, v.jsxs)(Eh, {
+ e.message || c.error ? /* @__PURE__ */ (0, x.jsxs)(Lh, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, v.jsx)(Oh, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, v.jsx)(kh, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, x.jsx)(zh, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, x.jsx)(Bh, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, v.jsx)(Dh, { children: /* @__PURE__ */ (0, v.jsx)(kf, {
+ /* @__PURE__ */ (0, x.jsx)(Rh, { children: /* @__PURE__ */ (0, x.jsx)(Af, {
type: "submit",
disabled: !e.available,
- ...Rh(c.busy === "save"),
+ ...Yh(c.busy === "save"),
children: "保存配置"
}) })
]
@@ -21377,7 +21497,7 @@ function Bh({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var Vh = {
+var Qh = {
md: {
box: "size-4",
glyph: "size-4",
@@ -21391,21 +21511,21 @@ var Vh = {
gap: "gap-1.5"
}
};
-function Hh({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = Vh[t], c = n || r, l = o && !a;
- return /* @__PURE__ */ (0, v.jsx)("span", {
+function $h({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = Qh[t], c = n || r, l = o && !a;
+ return /* @__PURE__ */ (0, x.jsx)("span", {
"aria-hidden": !0,
- className: Vd("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? Vd("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : Vd("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, v.jsx)("svg", {
+ className: Gd("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? Gd("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : Gd("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, x.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
className: s.glyph,
- children: r ? /* @__PURE__ */ (0, v.jsx)("path", {
+ children: r ? /* @__PURE__ */ (0, x.jsx)("path", {
d: "M4.5 8H8H11.5",
stroke: "white",
strokeWidth: "2",
strokeLinecap: "round"
- }) : n ? /* @__PURE__ */ (0, v.jsx)("path", {
+ }) : n ? /* @__PURE__ */ (0, x.jsx)("path", {
d: "M4 7.7002L6.64645 10.3466C6.84171 10.5419 7.15829 10.5419 7.35355 10.3466L12 5.7002",
stroke: "white",
strokeWidth: "2",
@@ -21419,24 +21539,24 @@ function Hh({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function Uh({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = Vh[n];
- return /* @__PURE__ */ (0, v.jsx)(lp, {
+function eg({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = Qh[n];
+ return /* @__PURE__ */ (0, x.jsx)(bp, {
ref: r,
...i,
- className: (t) => Vd("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, v.jsxs)(v.Fragment, { children: [/* @__PURE__ */ (0, v.jsx)(Hh, {
+ className: (t) => Gd("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, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)($h, {
state: e,
size: n
- }), t != null && /* @__PURE__ */ (0, v.jsx)("span", {
- className: Vd(a.label, "text-text-primary"),
+ }), t != null && /* @__PURE__ */ (0, x.jsx)("span", {
+ className: Gd(a.label, "text-text-primary"),
children: t
})] })
});
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var Wh = [
+var tg = [
"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",
@@ -21444,16 +21564,16 @@ var Wh = [
"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(" "), Gh = "w-[266px]", Kh = "flex w-full flex-col gap-1 outline-none", qh = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" ");
+].join(" "), ng = "w-[266px]", rg = "flex w-full flex-col gap-1 outline-none", ig = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" ");
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function Jh(e) {
- return /* @__PURE__ */ (0, v.jsx)("svg", {
+function ag(e) {
+ return /* @__PURE__ */ (0, x.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
"aria-hidden": !0,
...e,
- children: /* @__PURE__ */ (0, v.jsx)("path", {
+ children: /* @__PURE__ */ (0, x.jsx)("path", {
d: "M4 7L7.29289 10.2929C7.68342 10.6834 8.31658 10.6834 8.70711 10.2929L12 7",
stroke: "currentColor",
strokeWidth: "2",
@@ -21463,8 +21583,8 @@ function Jh(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function Yh(e, t, n) {
- (0, _.useEffect)(() => {
+function og(e, t, n) {
+ (0, b.useEffect)(() => {
if (!e) return;
let r = (e) => {
let r = e.target;
@@ -21477,9 +21597,9 @@ function Yh(e, t, n) {
n
]);
}
-function Xh(e, t) {
- let n = (0, _.useRef)(!1);
- return (0, _.useEffect)(() => {
+function sg(e, t) {
+ let n = (0, b.useRef)(!1);
+ return (0, b.useEffect)(() => {
if (!e) return;
let r = (e) => {
t.current?.contains(e.target) && (n.current = !0, setTimeout(() => {
@@ -21491,33 +21611,33 @@ function Xh(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var Zh = (0, _.createContext)("md");
-function Qh({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
- let l = (0, _.useRef)(null), u = (0, _.useRef)(null), [d, f] = (0, _.useState)(!1);
- Yh(d, () => f(!1), [l, u]);
- let p = Xh(d, l);
- return /* @__PURE__ */ (0, v.jsx)(oh, {
+var cg = (0, b.createContext)("md");
+function lg({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+ let l = (0, b.useRef)(null), u = (0, b.useRef)(null), [d, f] = (0, b.useState)(!1);
+ og(d, () => f(!1), [l, u]);
+ let p = sg(d, l);
+ return /* @__PURE__ */ (0, x.jsx)(_h, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: Vd("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, v.jsxs)(v.Fragment, { children: [/* @__PURE__ */ (0, v.jsxs)(Xf, {
+ className: Gd("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsxs)(sp, {
ref: l,
- className: Vd("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, v.jsx)(uh, {
- className: Vd("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: Gd("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, x.jsx)(xh, {
+ className: Gd("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, v.jsx)(Jh, { className: Vd("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, v.jsx)(Bm, {
+ }), /* @__PURE__ */ (0, x.jsx)(ag, { className: Gd("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, x.jsx)(Zm, {
ref: u,
isNonModal: !0,
offset: 4,
- className: Vd(Gh, Wh, "p-2", n),
- children: /* @__PURE__ */ (0, v.jsx)(Tm, {
+ className: Gd(ng, tg, "p-2", n),
+ children: /* @__PURE__ */ (0, x.jsx)(Im, {
items: a,
- className: Vd(Kh, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, v.jsx)(Zh.Provider, {
+ className: Gd(rg, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, x.jsx)(cg.Provider, {
value: r,
children: i
})
@@ -21525,146 +21645,146 @@ function Qh({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function $h({ className: e, children: t, ...n }) {
- let r = (0, _.useContext)(Zh);
- return /* @__PURE__ */ (0, v.jsx)(km, {
+function ug({ className: e, children: t, ...n }) {
+ let r = (0, b.useContext)(cg);
+ return /* @__PURE__ */ (0, x.jsx)(Bm, {
...n,
- className: (t) => Vd(qh, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
+ className: (t) => Gd(ig, 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/release-updates.tsx
-var eg = /* @__PURE__ */ new Set([
+var dg = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), tg = [
+]), fg = [
65,
67,
90
-], ng = 120;
-function rg({ initial: e, initialJob: t }) {
- let [r, i] = (0, _.useState)(e), [a, o] = (0, _.useState)(t || {
+], pg = 120;
+function mg({ initial: e, initialJob: t }) {
+ let [n, r] = (0, b.useState)(e), [i, o] = (0, b.useState)(t || {
state: "idle",
progress: 0
- }), [s, c] = (0, _.useState)(""), l = Lh(), u = (0, _.useRef)(!1), d = (0, _.useRef)(!0), f = eg.has(a.state);
- (0, _.useEffect)(() => (d.current = !0, () => {
+ }), [s, c] = (0, b.useState)(""), l = Jh(), u = (0, b.useRef)(!1), d = (0, b.useRef)(!0), f = dg.has(i.state);
+ (0, b.useEffect)(() => (d.current = !0, () => {
d.current = !1;
}), []);
let p = async () => {
- let e = await Yd("/api/configuration/update-restart", {});
+ let e = await $d("/api/configuration/update-restart", {});
d.current && o(e);
- }, m = () => void n({
+ }, m = () => void a({
title: "更新已准备好",
- body: `Peach ${a.version || ""} 将在重启后安装。`,
+ body: `Peach ${i.version || ""} 将在重启后安装。`,
confirmLabel: "立即重启",
cancelLabel: "稍后",
onConfirm: p
});
- (0, _.useEffect)(() => {
- a.state !== "ready" || u.current || (u.current = !0, m());
- }, [a.state]), (0, _.useEffect)(() => {
- let e = new AbortController(), t = eg.has(a.state) ? 1e3 : 3e4, n, r = 0, s = async () => {
+ (0, b.useEffect)(() => {
+ i.state !== "ready" || u.current || (u.current = !0, m());
+ }, [i.state]), (0, b.useEffect)(() => {
+ let e = new AbortController(), t = dg.has(i.state) ? 1e3 : 3e4, n, a = 0, s = async () => {
try {
- let t = await Jd("/api/configuration/update-status", e.signal);
+ let t = await Qd("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
- o(t), r = 0, t.state === "complete" && i((e) => ({
+ o(t), a = 0, t.state === "complete" && r((e) => ({
...e,
current_version: t.version || e.current_version,
state: "current",
message: "已是最新测试版。"
}));
- let n = await Jd("/api/configuration/automatic-updates", e.signal);
- !e.signal.aborted && n.result && i(n.result);
+ let n = await Qd("/api/configuration/automatic-updates", e.signal);
+ !e.signal.aborted && n.result && r(n.result);
} catch {
- r += 1, r >= ng && !e.signal.aborted && c("尚未连接到 Peach,请检查托盘后刷新页面。");
+ a += 1, a >= pg && !e.signal.aborted && c("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && r < ng && (n = setTimeout(s, t));
+ !e.signal.aborted && a < pg && (n = setTimeout(s, t));
};
return n = setTimeout(s, t), () => {
e.abort(), clearTimeout(n);
};
- }, [a.state]);
+ }, [i.state]);
let h = () => {
- f || (u.current = !1, c(""), l.run("download", (e) => Yd("/api/configuration/update", {}, "POST", e), o));
- }, g = () => void l.run("check", (e) => Jd("/api/configuration/updates", e), i, (t) => {
- i({
+ f || (u.current = !1, c(""), l.run("download", (e) => $d("/api/configuration/update", {}, "POST", e), o));
+ }, g = () => void l.run("check", (e) => Qd("/api/configuration/updates", e), r, (t) => {
+ r({
...e,
state: "error"
- }), l.setError(qd(t));
- }), y = l.error || s, b = a.state === "downloading" && a.total ? `${((a.downloaded || 0) / 1048576).toFixed(1)} / ${(a.total / 1048576).toFixed(1)} MB` : `${a.progress}%`;
- return /* @__PURE__ */ (0, v.jsxs)(wh, {
+ }), l.setError(Zd(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, x.jsxs)(Fh, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, v.jsxs)(Mh, { children: [
- /* @__PURE__ */ (0, v.jsx)(Nh, {
+ /* @__PURE__ */ (0, x.jsxs)(Uh, { children: [
+ /* @__PURE__ */ (0, x.jsx)(Wh, {
term: "当前版本",
- children: r.current_version
+ children: n.current_version
}),
- /* @__PURE__ */ (0, v.jsx)(Nh, {
+ /* @__PURE__ */ (0, x.jsx)(Wh, {
term: "安装方式",
- children: r.installation
+ children: n.installation
}),
- /* @__PURE__ */ (0, v.jsx)(Nh, {
+ /* @__PURE__ */ (0, x.jsx)(Wh, {
term: "更新通道",
- children: r.channel
+ children: n.channel
}),
- /* @__PURE__ */ (0, v.jsx)(Nh, {
+ /* @__PURE__ */ (0, x.jsx)(Wh, {
term: "最新版本",
- children: r.latest_version || (r.state === "unchecked" ? "尚未检查" : "未取得")
+ children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, v.jsxs)(Eh, {
+ /* @__PURE__ */ (0, x.jsxs)(Lh, {
divided: !0,
children: [
- r.checked_at ? /* @__PURE__ */ (0, v.jsxs)(Oh, { children: ["检查于 ", (/* @__PURE__ */ new Date(r.checked_at * 1e3)).toLocaleString()] }) : null,
- r.state === "available" && !y ? /* @__PURE__ */ (0, v.jsx)(Qd, {
+ n.checked_at ? /* @__PURE__ */ (0, x.jsxs)(zh, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.state === "available" && !_ ? /* @__PURE__ */ (0, x.jsx)(nf, {
tone: "info",
title: "有可用更新",
- children: r.message
- }) : y || r.state === "error" ? /* @__PURE__ */ (0, v.jsx)(kh, { children: y || r.message }) : /* @__PURE__ */ (0, v.jsx)(Oh, {
+ children: n.message
+ }) : _ || n.state === "error" ? /* @__PURE__ */ (0, x.jsx)(Bh, { children: _ || n.message }) : /* @__PURE__ */ (0, x.jsx)(zh, {
role: "status",
- children: r.message
+ children: n.message
}),
- a.state === "error" ? /* @__PURE__ */ (0, v.jsx)(kh, { children: a.message }) : null,
- a.state !== "idle" && a.state !== "error" ? /* @__PURE__ */ (0, v.jsxs)("div", {
+ i.state === "error" ? /* @__PURE__ */ (0, x.jsx)(Bh, { children: i.message }) : null,
+ i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, x.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, v.jsx)($d, {
+ /* @__PURE__ */ (0, x.jsx)(af, {
label: "更新准备进度:下载、校验、解压、准备安装",
- value: a.progress,
- stops: tg
+ value: i.progress,
+ stops: fg
}),
- /* @__PURE__ */ (0, v.jsxs)(Oh, { children: ["下载 → 校验 → 解压 → 准备安装 · ", a.message] }),
- /* @__PURE__ */ (0, v.jsx)(Oh, { children: b })
+ /* @__PURE__ */ (0, x.jsxs)(zh, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, x.jsx)(zh, { children: v })
]
}) : null
]
}),
- /* @__PURE__ */ (0, v.jsxs)(Dh, {
- status: /* @__PURE__ */ (0, v.jsx)(jh, {
- href: r.release_url,
+ /* @__PURE__ */ (0, x.jsxs)(Rh, {
+ status: /* @__PURE__ */ (0, x.jsx)(Hh, {
+ href: n.release_url,
children: "查看发布页"
}),
children: [
- a.state === "ready" ? /* @__PURE__ */ (0, v.jsx)(kf, {
+ i.state === "ready" ? /* @__PURE__ */ (0, x.jsx)(Af, {
onClick: m,
children: "重启安装"
}) : null,
- r.state === "available" && r.installation === "独立测试包" && a.state !== "ready" ? /* @__PURE__ */ (0, v.jsx)(kf, {
+ n.state === "available" && n.installation === "独立测试包" && i.state !== "ready" ? /* @__PURE__ */ (0, x.jsx)(Af, {
onClick: h,
- ...Rh(f || l.busy === "download"),
+ ...Yh(f || l.busy === "download"),
children: "下载并安装"
}) : null,
- /* @__PURE__ */ (0, v.jsx)(kf, {
+ /* @__PURE__ */ (0, x.jsx)(Af, {
disabled: f,
onClick: g,
- ...Rh(l.busy === "check"),
+ ...Yh(l.busy === "check"),
children: "检查更新"
})
]
@@ -21674,140 +21794,140 @@ function rg({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var ig = [
+var hg = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function ag({ data: e, receipt: t }) {
- return /* @__PURE__ */ (0, v.jsxs)("div", {
+function gg({ data: e, receipt: t }) {
+ return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.automatic_updates ? /* @__PURE__ */ (0, v.jsx)(og, {
+ e.automatic_updates ? /* @__PURE__ */ (0, x.jsx)(_g, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, v.jsx)(rg, {
+ e.updates ? /* @__PURE__ */ (0, x.jsx)(mg, {
initial: e.updates,
initialJob: e.update_job
}) : null,
- /* @__PURE__ */ (0, v.jsx)(sg, { facts: e.facts }),
- e.uninstall ? /* @__PURE__ */ (0, v.jsx)(cg, { uninstall: e.uninstall }) : null
+ /* @__PURE__ */ (0, x.jsx)(vg, { facts: e.facts }),
+ e.uninstall ? /* @__PURE__ */ (0, x.jsx)(yg, { uninstall: e.uninstall }) : null
]
});
}
-function og({ initial: e, receipt: t }) {
- let [n, r] = (0, _.useState)(e.mode), [i, a] = (0, _.useState)(e.interval_hours), o = Lh(e.error), s = (r) => {
- r.preventDefault(), e.available && o.run("save", (e) => Yd("/api/configuration/automatic-updates", {
+function _g({ initial: e, receipt: t }) {
+ let [n, r] = (0, b.useState)(e.mode), [i, a] = (0, b.useState)(e.interval_hours), o = Jh(e.error), s = (r) => {
+ r.preventDefault(), e.available && o.run("save", (e) => $d("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行请前往发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, v.jsxs)(wh, {
+ return /* @__PURE__ */ (0, x.jsxs)(Fh, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, v.jsxs)(Th, { children: [
- /* @__PURE__ */ (0, v.jsx)(Df, {
+ /* @__PURE__ */ (0, x.jsxs)(Ih, { children: [
+ /* @__PURE__ */ (0, x.jsx)(Bf, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, v.jsx)(xh, {
+ children: /* @__PURE__ */ (0, x.jsx)(Mh, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, v.jsx)(Df, {
+ /* @__PURE__ */ (0, x.jsx)(Bf, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, v.jsx)(xh, {
+ children: /* @__PURE__ */ (0, x.jsx)(Mh, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, v.jsx)(Df, {
+ /* @__PURE__ */ (0, x.jsx)(Bf, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, v.jsx)(Qh, {
+ children: /* @__PURE__ */ (0, x.jsx)(lg, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: ig.map(([e, t]) => /* @__PURE__ */ (0, v.jsx)($h, {
+ children: hg.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(ug, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, v.jsx)(Eh, {
+ o.error ? /* @__PURE__ */ (0, x.jsx)(Lh, {
divided: !0,
- children: /* @__PURE__ */ (0, v.jsx)(kh, { children: o.error })
+ children: /* @__PURE__ */ (0, x.jsx)(Bh, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, v.jsx)(Dh, { children: /* @__PURE__ */ (0, v.jsx)(kf, {
+ /* @__PURE__ */ (0, x.jsx)(Rh, { children: /* @__PURE__ */ (0, x.jsx)(Af, {
type: "submit",
disabled: !e.available,
- ...Rh(o.busy === "save"),
+ ...Yh(o.busy === "save"),
children: "保存配置"
}) })
]
});
}
-function sg({ facts: e }) {
- return /* @__PURE__ */ (0, v.jsx)(wh, {
+function vg({ facts: e }) {
+ return /* @__PURE__ */ (0, x.jsx)(Fh, {
title: "运行信息",
- children: /* @__PURE__ */ (0, v.jsx)(Mh, { children: e.map((e) => /* @__PURE__ */ (0, v.jsxs)(Nh, {
+ children: /* @__PURE__ */ (0, x.jsx)(Uh, { children: e.map((e) => /* @__PURE__ */ (0, x.jsxs)(Wh, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, v.jsx)(jh, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, x.jsx)(Hh, {
href: e.download_url,
children: e.download_label
}) : null]
}, e.term)) })
});
}
-function cg({ uninstall: e }) {
- let [t, r] = (0, _.useState)(!1), [i, a] = (0, _.useState)(""), o = () => void n({
+function yg({ uninstall: e }) {
+ let [t, n] = (0, b.useState)(!1), [r, i] = (0, b.useState)(""), o = () => void a({
title: "卸载 Peach",
danger: !0,
body: t ? "将退出 Peach,移除程序、开机自启、桌面图标、设置、本地数据库、观看记录、凭据和缓存。原始媒体文件保留。" : "将退出 Peach 并移除程序、开机自启和桌面图标。设置、本地数据库、观看记录与缓存保留。",
confirmLabel: "卸载 Peach",
onConfirm: async () => {
- let e = await Yd("/api/configuration/uninstall", {
+ let e = await $d("/api/configuration/uninstall", {
delete_data: t,
confirmation: "卸载 Peach"
});
- a(e.message);
+ i(e.message);
}
- }), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, v.jsxs)(wh, {
+ }), s = r || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
+ return /* @__PURE__ */ (0, x.jsxs)(Fh, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, v.jsxs)(Eh, { children: [
- e.available ? /* @__PURE__ */ (0, v.jsx)(Oh, { children: "卸载会退出 Peach、移除程序、开机自启和桌面图标。原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, v.jsx)(Uh, {
+ children: [/* @__PURE__ */ (0, x.jsxs)(Lh, { children: [
+ e.available ? /* @__PURE__ */ (0, x.jsx)(zh, { children: "卸载会退出 Peach、移除程序、开机自启和桌面图标。原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, x.jsx)(eg, {
isSelected: t,
- isDisabled: !e.full_available || !!i,
- onChange: r,
+ isDisabled: !e.full_available || !!r,
+ onChange: n,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, v.jsx)(Ph, {
+ /* @__PURE__ */ (0, x.jsx)(Gh, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, v.jsx)("p", {
+ children: c.map((e) => /* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-2-regular break-all text-text-secondary",
children: e
}, e))
})
- ] }), /* @__PURE__ */ (0, v.jsx)(Dh, {
- status: s ? /* @__PURE__ */ (0, v.jsx)("p", {
- role: i ? "status" : void 0,
+ ] }), /* @__PURE__ */ (0, x.jsx)(Rh, {
+ status: s ? /* @__PURE__ */ (0, x.jsx)("p", {
+ role: r ? "status" : void 0,
children: s
}) : null,
- children: /* @__PURE__ */ (0, v.jsx)(kf, {
+ children: /* @__PURE__ */ (0, x.jsx)(Af, {
variant: "danger",
- disabled: !e.available || !!i,
+ disabled: !e.available || !!r,
onClick: o,
children: "卸载 Peach"
})
@@ -21816,7 +21936,7 @@ function cg({ uninstall: e }) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var lg = Hd({
+var bg = Kd({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -21837,33 +21957,33 @@ var lg = Hd({
small: "size-4 shrink-0"
}
});
-function ug({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
- return /* @__PURE__ */ (0, v.jsx)("button", {
+function xg({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, x.jsx)("button", {
ref: i,
type: r,
- className: Vd(lg.base, lg.size[t], n),
+ className: Gd(bg.base, bg.size[t], n),
...a,
- children: /* @__PURE__ */ (0, v.jsx)(e, {
- className: lg.icon[t],
+ children: /* @__PURE__ */ (0, x.jsx)(e, {
+ className: bg.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function dg({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, v.jsxs)(qf, {
+function Sg({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, x.jsxs)(ip, {
"data-label": "true",
...a,
- className: Vd("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: Gd("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
- e && /* @__PURE__ */ (0, v.jsx)("span", {
+ e && /* @__PURE__ */ (0, x.jsx)("span", {
"aria-hidden": "true",
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, v.jsx)(du, {
+ n && /* @__PURE__ */ (0, x.jsx)(pu, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -21872,33 +21992,33 @@ function dg({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function fg({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, v.jsx)(np, {
+function Cg({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, x.jsx)(pp, {
slot: e ? "errorMessage" : "description",
...n,
- className: Vd("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: Gd("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 pg = (0, _.createContext)({});
-function mg({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, v.jsx)(pg.Provider, {
+var wg = (0, b.createContext)({});
+function Tg({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, x.jsx)(wg.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, v.jsx)(vh, {
+ children: /* @__PURE__ */ (0, x.jsx)(kh, {
...a,
"data-input-size": e,
- className: Vd("group flex h-max w-full flex-col items-start gap-1", r),
+ className: Gd("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-mg.displayName = "TextField";
-var hg = Hd({
+Tg.displayName = "TextField";
+var Eg = Kd({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -21927,44 +22047,44 @@ var hg = Hd({
].join(" "),
icon: "size-5 shrink-0"
});
-function gg({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, _.useContext)(pg), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, v.jsx)(fp, {
+function Dg({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, b.useContext)(wg), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, x.jsx)(Cp, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => Vd(hg.field, d ? hg.fieldWithAddonSize[u] : hg.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, v.jsxs)("div", {
- className: hg.content,
- children: [/* @__PURE__ */ (0, v.jsxs)("div", {
- className: hg.leftSection,
- children: [d ? r : t ? /* @__PURE__ */ (0, v.jsx)(t, {
- className: hg.icon,
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => Gd(Eg.field, d ? Eg.fieldWithAddonSize[u] : Eg.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, x.jsxs)("div", {
+ className: Eg.content,
+ children: [/* @__PURE__ */ (0, x.jsxs)("div", {
+ className: Eg.leftSection,
+ children: [d ? r : t ? /* @__PURE__ */ (0, x.jsx)(t, {
+ className: Eg.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, v.jsx)(hp, {
+ }) : null, /* @__PURE__ */ (0, x.jsx)(Ep, {
ref: o,
...c,
- className: Vd(hg.input, l.inputClassName, a)
+ className: Gd(Eg.input, l.inputClassName, a)
})]
- }), n ? /* @__PURE__ */ (0, v.jsx)(n, {
- className: hg.icon,
+ }), n ? /* @__PURE__ */ (0, x.jsx)(n, {
+ className: Eg.icon,
"aria-hidden": !0
}) : null]
})
});
}
-gg.displayName = "InputBase";
-function _g({ 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, v.jsx)(mg, {
+Dg.displayName = "InputBase";
+function Og({ 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, x.jsx)(Tg, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
- children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, v.jsxs)(v.Fragment, { children: [
- e && /* @__PURE__ */ (0, v.jsx)(dg, {
+ children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [
+ e && /* @__PURE__ */ (0, x.jsx)(Sg, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, v.jsx)(gg, {
+ /* @__PURE__ */ (0, x.jsx)(Dg, {
ref: c,
groupRef: l,
placeholder: r,
@@ -21973,17 +22093,17 @@ function _g({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, v.jsx)(fg, {
+ t && /* @__PURE__ */ (0, x.jsx)(Cg, {
isInvalid: d,
children: t
})
] })
});
}
-_g.displayName = "Input";
+Og.displayName = "Input";
//#endregion
//#region src/configuration-endpoints.ts
-var vg = "/api/configuration", yg = "/api/pick-folder", bg = [
+var kg = "/api/configuration", Ag = "/api/pick-folder", jg = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -22002,37 +22122,37 @@ var vg = "/api/configuration", yg = "/api/pick-folder", bg = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], xg = [
+], Mg = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function Sg() {
- return /* @__PURE__ */ (0, v.jsxs)("div", {
+function Ng() {
+ return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, v.jsxs)(Oh, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, v.jsx)(jh, {
+ children: [/* @__PURE__ */ (0, x.jsxs)(zh, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, x.jsx)(Hh, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, v.jsxs)(Ph, {
+ })] }), /* @__PURE__ */ (0, x.jsxs)(Gh, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, v.jsx)(Oh, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,填得越大不一定越快。" }),
- /* @__PURE__ */ (0, v.jsx)("ul", {
+ /* @__PURE__ */ (0, x.jsx)(zh, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,填得越大不一定越快。" }),
+ /* @__PURE__ */ (0, x.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: bg.map((e) => /* @__PURE__ */ (0, v.jsxs)("li", {
+ children: jg.map((e) => /* @__PURE__ */ (0, x.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
- children: [/* @__PURE__ */ (0, v.jsx)("p", {
+ children: [/* @__PURE__ */ (0, x.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
- }), /* @__PURE__ */ (0, v.jsx)("dl", {
+ }), /* @__PURE__ */ (0, x.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: xg.map(([t, n]) => /* @__PURE__ */ (0, v.jsxs)("div", {
+ children: Mg.map(([t, n]) => /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col",
- children: [/* @__PURE__ */ (0, v.jsx)("dt", {
+ children: [/* @__PURE__ */ (0, x.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
children: n
- }), /* @__PURE__ */ (0, v.jsx)("dd", {
+ }), /* @__PURE__ */ (0, x.jsx)("dd", {
className: "text-body-regular text-text-primary",
children: e[t]
})]
@@ -22040,17 +22160,17 @@ function Sg() {
})]
}, e.name))
}),
- /* @__PURE__ */ (0, v.jsxs)("ul", {
+ /* @__PURE__ */ (0, x.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, v.jsx)("li", { children: "缓存上限和清理方式填在 CloudDrive「设置」里,清理方式选 LRU。上限不要填 0,系统盘至少留 40 GiB;填完重开设置页确认存住了。" }),
- /* @__PURE__ */ (0, v.jsx)("li", { children: "读取长度和下载线程填在每个网盘各自的下载设置里,线程都从 2 开始。" }),
- /* @__PURE__ */ (0, v.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
+ /* @__PURE__ */ (0, x.jsx)("li", { children: "缓存上限和清理方式填在 CloudDrive「设置」里,清理方式选 LRU。上限不要填 0,系统盘至少留 40 GiB;填完重开设置页确认存住了。" }),
+ /* @__PURE__ */ (0, x.jsx)("li", { children: "读取长度和下载线程填在每个网盘各自的下载设置里,线程都从 2 开始。" }),
+ /* @__PURE__ */ (0, x.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, v.jsxs)(Oh, { children: [
+ /* @__PURE__ */ (0, x.jsxs)(zh, { children: [
"三处缓存分别管什么、这几个值怎么往上调、码率和速度怎么换算、线程上限与直链代理怎么取舍,以及这些起步值的来源,都在",
- /* @__PURE__ */ (0, v.jsx)(jh, {
+ /* @__PURE__ */ (0, x.jsx)(Hh, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -22062,7 +22182,7 @@ function Sg() {
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var Cg = [
+var Pg = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -22106,14 +22226,14 @@ var Cg = [
["star", "收藏"],
["tags", "主题"]
];
-function wg(e) {
- let n = e === "local" ? "" : t[e];
- return n ? [n, "自动识别"] : ["hard-drive", "默认"];
-}
-var Tg = "auto";
-function Eg({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, _.useRef)(null), [a, o] = (0, _.useState)(!1), [s, c] = (0, _.useState)(e), [l, u] = wg(n);
- return /* @__PURE__ */ (0, v.jsxs)(v.Fragment, { children: [/* @__PURE__ */ (0, v.jsx)(kf, {
+function Fg(e) {
+ let t = e === "local" ? "" : i[e];
+ return t ? [t, "自动识别"] : ["hard-drive", "默认"];
+}
+var Ig = "auto";
+function Lg({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, b.useRef)(null), [a, o] = (0, b.useState)(!1), [s, c] = (0, b.useState)(e), [l, u] = Fg(n);
+ return /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(Af, {
ref: i,
variant: "secondary",
className: "self-start",
@@ -22123,46 +22243,46 @@ function Eg({ value: e, label: t, kind: n = "local", onChange: r }) {
onClick: () => {
c(e), o(!0);
},
- children: /* @__PURE__ */ (0, v.jsxs)("span", {
+ children: /* @__PURE__ */ (0, x.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, v.jsx)(Ih, { mark: e || l }), ((e) => e && Cg.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, x.jsx)(qh, { mark: e || l }), ((e) => e && Pg.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, v.jsx)(Bm, {
+ }), /* @__PURE__ */ (0, x.jsx)(Zm, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: Wh,
- children: /* @__PURE__ */ (0, v.jsxs)(Wm, {
+ className: tg,
+ children: /* @__PURE__ */ (0, x.jsxs)(th, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, v.jsx)(ep, {
+ /* @__PURE__ */ (0, x.jsx)(dp, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, v.jsx)(Zm, {
+ /* @__PURE__ */ (0, x.jsx)(ch, {
"aria-label": "候选图标",
- value: s || Tg,
- onChange: (e) => c(e === Tg ? "" : e),
+ value: s || Ig,
+ onChange: (e) => c(e === Ig ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: Cg.map(([e, t]) => /* @__PURE__ */ (0, v.jsx)(Qm, {
- value: e || Tg,
+ children: Pg.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(lh, {
+ value: e || Ig,
"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, v.jsx)(Ih, { mark: e || l })
- }, e || Tg))
+ children: /* @__PURE__ */ (0, x.jsx)(qh, { mark: e || l })
+ }, e || Ig))
}),
- /* @__PURE__ */ (0, v.jsxs)("div", {
+ /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
- children: [/* @__PURE__ */ (0, v.jsx)(kf, {
+ children: [/* @__PURE__ */ (0, x.jsx)(Af, {
variant: "secondary",
onClick: () => o(!1),
children: "取消"
- }), /* @__PURE__ */ (0, v.jsx)(kf, {
+ }), /* @__PURE__ */ (0, x.jsx)(Af, {
disabled: s === e,
onClick: () => {
r(s), o(!1);
@@ -22176,9 +22296,9 @@ function Eg({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var Dg = 8e3;
-function Og({ className: e }) {
- return /* @__PURE__ */ (0, v.jsx)("svg", {
+var Rg = 8e3;
+function zg({ className: e }) {
+ return /* @__PURE__ */ (0, x.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
fill: "none",
@@ -22187,51 +22307,51 @@ function Og({ className: e }) {
strokeLinecap: "round",
strokeLinejoin: "round",
className: e,
- children: /* @__PURE__ */ (0, v.jsx)("use", { href: "#i-folder-search" })
+ children: /* @__PURE__ */ (0, x.jsx)("use", { href: "#i-folder-search" })
});
}
-var kg = [
+var Bg = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], Ag = (e) => kg.find(([t]) => t === e)?.[1] ?? e, jg = (e) => t[e] || "database", Mg = (e = "") => ({
+], Vg = (e) => Bg.find(([t]) => t === e)?.[1] ?? e, Hg = (e) => i[e] || "database", Ug = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function Ng(e) {
- let t = e.media_sources?.filter((e) => kg.some(([t]) => t === e.location));
+function Wg(e) {
+ let t = e.media_sources?.filter((e) => Bg.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) => Mg(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => Ug(e));
}
-var Pg = (e) => !(e instanceof Gd) || e.status !== 400 ? null : e.body?.errors ?? null;
-function Fg({ data: e, receipt: t }) {
- return /* @__PURE__ */ (0, v.jsxs)("div", {
+var Gg = (e) => !(e instanceof Yd) || e.status !== 400 ? null : e.body?.errors ?? null;
+function Kg({ data: e, receipt: t }) {
+ return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.editable ? /* @__PURE__ */ (0, v.jsx)(Ig, {
+ children: [e.editable ? /* @__PURE__ */ (0, x.jsx)(qg, {
data: e,
receipt: t
- }) : /* @__PURE__ */ (0, v.jsx)(Qd, {
+ }) : /* @__PURE__ */ (0, x.jsx)(nf, {
tone: "neutral",
title: "只读",
children: e.notice
- }), /* @__PURE__ */ (0, v.jsx)(Rg, { data: e })]
+ }), /* @__PURE__ */ (0, x.jsx)(Yg, { data: e })]
});
}
-function Ig({ data: e, receipt: t }) {
- let [n, r] = (0, _.useState)(() => Ng(e)), [i, a] = (0, _.useState)(String(e.port)), [o, s] = (0, _.useState)(!1), [c, l] = (0, _.useState)([]), [u, d] = (0, _.useState)(""), [f, p] = (0, _.useState)(""), [m, h] = (0, _.useState)(null), [g, y] = (0, _.useState)(null), [b, x] = (0, _.useState)(null), S = (0, _.useRef)(!1), C = (0, _.useRef)(e.revision), w = (0, _.useRef)([]), T = Lh();
- (0, _.useLayoutEffect)(() => {
- g !== null && (w.current[g]?.focus(), y(null));
- }, [g]), (0, _.useEffect)(() => {
+function qg({ data: e, receipt: t }) {
+ let [n, r] = (0, b.useState)(() => Wg(e)), [i, a] = (0, b.useState)(String(e.port)), [o, s] = (0, b.useState)(!1), [c, l] = (0, b.useState)([]), [u, d] = (0, b.useState)(""), [f, p] = (0, b.useState)(""), [m, h] = (0, b.useState)(null), [g, _] = (0, b.useState)(null), [v, y] = (0, b.useState)(null), S = (0, b.useRef)(!1), C = (0, b.useRef)(e.revision), w = (0, b.useRef)([]), T = Jh();
+ (0, b.useLayoutEffect)(() => {
+ g !== null && (w.current[g]?.focus(), _(null));
+ }, [g]), (0, b.useEffect)(() => {
if (!m) return;
- let e = setTimeout(() => location.assign(m.url), Dg);
+ let e = setTimeout(() => location.assign(m.url), Rg);
return () => clearTimeout(e);
}, [m]);
let E = (e, t) => r((n) => n.map((n, r) => r === e ? {
@@ -22242,23 +22362,23 @@ function Ig({ data: e, receipt: t }) {
for (; r.length <= e;) r.push("");
return r[e] = t, r;
}), O = () => {
- y(n.length), r((e) => [...e, Mg()]);
+ _(n.length), r((e) => [...e, Ug()]);
}, k = (e) => {
r((t) => t.filter((t, n) => n !== e)), l((t) => t.filter((t, n) => n !== e));
}, A = async (e) => {
if (!S.current) {
- S.current = !0, x(e);
+ S.current = !0, y(e);
try {
- let { path: t } = await Yd(yg, { initial: n[e]?.path ?? "" });
+ let { path: t } = await $d(Ag, { initial: n[e]?.path ?? "" });
t && (E(e, { path: t }), D(e, ""));
} catch (t) {
- D(e, qd(t));
+ D(e, Zd(t));
} finally {
- S.current = !1, x(null);
+ S.current = !1, y(null);
}
}
- }, ee = (r) => {
- r.preventDefault(), p(""), T.run("save", (t) => Yd(vg, {
+ }, j = (r) => {
+ r.preventDefault(), p(""), T.run("save", (t) => $d(kg, {
revision: C.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -22267,18 +22387,18 @@ function Ig({ data: e, receipt: t }) {
}, "POST", t), (e) => {
C.current = e.revision, l([]), d(""), t("已保存配置"), h(e);
}, (e) => {
- let t = Pg(e);
- l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(qd(e));
+ let t = Gg(e);
+ l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(Zd(e));
});
};
- if (m) return /* @__PURE__ */ (0, v.jsx)(wh, {
+ if (m) return /* @__PURE__ */ (0, x.jsx)(Fh, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, v.jsx)(Eh, { children: /* @__PURE__ */ (0, v.jsxs)(Qd, {
+ children: /* @__PURE__ */ (0, x.jsx)(Lh, { children: /* @__PURE__ */ (0, x.jsxs)(nf, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, v.jsx)(Ch, {
+ /* @__PURE__ */ (0, x.jsx)(Ph, {
href: m.url,
size: "small",
children: "进入馆藏"
@@ -22287,26 +22407,26 @@ function Ig({ 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, v.jsxs)(wh, {
+ let M = n.some((e) => e.location === "115" || e.location === "pikpak"), N = M ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
+ return /* @__PURE__ */ (0, x.jsxs)(Fh, {
title: "这台电脑",
- onSubmit: ee,
- children: [/* @__PURE__ */ (0, v.jsxs)(Eh, { children: [
- /* @__PURE__ */ (0, v.jsxs)("div", {
+ onSubmit: j,
+ children: [/* @__PURE__ */ (0, x.jsxs)(Lh, { children: [
+ /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, v.jsx)(Ah, { children: "媒体文件夹" }),
- /* @__PURE__ */ (0, v.jsx)("div", {
+ /* @__PURE__ */ (0, x.jsx)(Vh, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, x.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
className: "flex flex-col gap-3",
- children: n.map((t, r) => /* @__PURE__ */ (0, v.jsxs)("div", {
+ children: n.map((t, r) => /* @__PURE__ */ (0, x.jsxs)("div", {
"data-folder-row": !0,
className: "@container flex flex-col gap-3 rounded-2lg border border-separator-border bg-background-primary-default p-3",
- children: [/* @__PURE__ */ (0, v.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, v.jsx)(_g, {
+ /* @__PURE__ */ (0, x.jsx)(Og, {
className: "min-w-0 flex-1",
"aria-label": `媒体文件夹 ${r + 1}`,
placeholder: "本机文件夹路径",
@@ -22319,53 +22439,53 @@ function Ig({ data: e, receipt: t }) {
isInvalid: !!c[r],
hint: c[r] || void 0
}),
- /* @__PURE__ */ (0, v.jsx)(ug, {
- icon: Og,
+ /* @__PURE__ */ (0, x.jsx)(xg, {
+ icon: zg,
"aria-label": "选择文件夹",
onClick: () => void A(r),
- ...Rh(b === r)
+ ...Yh(v === r)
}),
- n.length > 1 ? /* @__PURE__ */ (0, v.jsx)(ug, {
- icon: cu,
+ n.length > 1 ? /* @__PURE__ */ (0, x.jsx)(xg, {
+ icon: uu,
"aria-label": "移除这个文件夹",
onClick: () => k(r)
}) : null
]
- }), /* @__PURE__ */ (0, v.jsxs)("div", {
+ }), /* @__PURE__ */ (0, x.jsxs)("div", {
className: "inline-grid grid-cols-1 gap-3 @lg:grid-cols-2",
children: [
- /* @__PURE__ */ (0, v.jsx)(_g, {
+ /* @__PURE__ */ (0, x.jsx)(Og, {
label: "媒体库名称",
maxLength: 80,
placeholder: "同名文件夹归入同一个媒体库",
value: t.library,
onChange: (e) => E(r, { library: e })
}),
- /* @__PURE__ */ (0, v.jsxs)("div", {
+ /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, v.jsx)(Ah, { children: "媒体库图标" }), /* @__PURE__ */ (0, v.jsx)(Eg, {
+ children: [/* @__PURE__ */ (0, x.jsx)(Vh, { children: "媒体库图标" }), /* @__PURE__ */ (0, x.jsx)(Lg, {
label: `媒体库图标 ${r + 1}`,
value: t.library_icon,
kind: t.location,
onChange: (e) => E(r, { library_icon: e })
})]
}),
- /* @__PURE__ */ (0, v.jsxs)("div", {
+ /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, v.jsx)(Ah, { children: "媒体来源" }), /* @__PURE__ */ (0, v.jsx)(Qh, {
+ children: [/* @__PURE__ */ (0, x.jsx)(Vh, { children: "媒体来源" }), /* @__PURE__ */ (0, x.jsx)(lg, {
"aria-label": `媒体来源 ${r + 1}`,
selectedKey: t.location,
onSelectionChange: (e) => {
e !== null && E(r, { location: String(e) });
},
- children: kg.map(([e, t]) => /* @__PURE__ */ (0, v.jsxs)($h, {
+ children: Bg.map(([e, t]) => /* @__PURE__ */ (0, x.jsxs)(ug, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, v.jsx)(Ih, { mark: jg(e) }), t]
+ children: [/* @__PURE__ */ (0, x.jsx)(qh, { mark: Hg(e) }), t]
}, e))
})]
}),
- e.windows === !1 ? /* @__PURE__ */ (0, v.jsx)(_g, {
+ e.windows === !1 ? /* @__PURE__ */ (0, x.jsx)(Og, {
label: "Windows 中的对应路径",
placeholder: "例如 B:\\",
value: t.root,
@@ -22375,25 +22495,25 @@ function Ig({ data: e, receipt: t }) {
})]
}, r))
}),
- /* @__PURE__ */ (0, v.jsx)(kf, {
+ /* @__PURE__ */ (0, x.jsx)(Af, {
className: "self-start",
onClick: O,
children: "添加文件夹"
})
]
}),
- j ? /* @__PURE__ */ (0, v.jsx)(Sg, {}) : null,
- te.map((e) => /* @__PURE__ */ (0, v.jsxs)(Oh, { children: [
+ M ? /* @__PURE__ */ (0, x.jsx)(Ng, {}) : null,
+ N.map((e) => /* @__PURE__ */ (0, x.jsxs)(zh, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, v.jsxs)(jh, {
+ /* @__PURE__ */ (0, x.jsxs)(Hh, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, v.jsx)(Oh, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, v.jsx)(_g, {
+ e.windows === !1 ? /* @__PURE__ */ (0, x.jsx)(zh, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, x.jsx)(Og, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -22403,66 +22523,66 @@ function Ig({ data: e, receipt: t }) {
isInvalid: !!u,
hint: u || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, v.jsx)(Uh, {
+ /* @__PURE__ */ (0, x.jsx)(eg, {
isSelected: o,
onChange: s,
children: "保存后扫描并补全资料"
}),
- f ? /* @__PURE__ */ (0, v.jsx)(Qd, {
+ f ? /* @__PURE__ */ (0, x.jsx)(nf, {
tone: "error",
title: "没有保存",
children: f
}) : null
- ] }), /* @__PURE__ */ (0, v.jsx)(Dh, {
+ ] }), /* @__PURE__ */ (0, x.jsx)(Rh, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
- children: /* @__PURE__ */ (0, v.jsx)(kf, {
+ children: /* @__PURE__ */ (0, x.jsx)(Af, {
type: "submit",
- ...Rh(T.busy === "save"),
+ ...Yh(T.busy === "save"),
children: "保存配置"
})
})]
});
}
-function Lg({ online: e }) {
- return e === !0 ? /* @__PURE__ */ (0, v.jsxs)("span", {
+function Jg({ online: e }) {
+ return e === !0 ? /* @__PURE__ */ (0, x.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
- children: [/* @__PURE__ */ (0, v.jsx)("span", {
+ children: [/* @__PURE__ */ (0, x.jsx)("span", {
"aria-hidden": !0,
className: "size-1.5 rounded-full bg-current"
}), "在线"]
- }) : e === !1 ? /* @__PURE__ */ (0, v.jsxs)("span", {
+ }) : e === !1 ? /* @__PURE__ */ (0, x.jsxs)("span", {
"data-mount": "offline",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-text-error-primary",
- children: [/* @__PURE__ */ (0, v.jsx)("span", {
+ children: [/* @__PURE__ */ (0, x.jsx)("span", {
"aria-hidden": !0,
className: "size-1.5 rounded-full bg-current"
}), "离线"]
- }) : /* @__PURE__ */ (0, v.jsxs)("span", {
+ }) : /* @__PURE__ */ (0, x.jsxs)("span", {
"data-mount": "unknown",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-text-secondary",
- children: [/* @__PURE__ */ (0, v.jsx)("span", {
+ children: [/* @__PURE__ */ (0, x.jsx)("span", {
"aria-hidden": !0,
className: "size-1.5 rounded-full bg-current"
}), "未检测"]
});
}
-function Rg({ data: e }) {
- let [t, n] = (0, _.useState)(e.media_sources), r = Lh();
- return t ? /* @__PURE__ */ (0, v.jsxs)(wh, {
+function Yg({ data: e }) {
+ let [t, n] = (0, b.useState)(e.media_sources), r = Jh();
+ return t ? /* @__PURE__ */ (0, x.jsxs)(Fh, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, v.jsx)(Mh, { children: t.map((e, t) => /* @__PURE__ */ (0, v.jsxs)(Nh, {
- term: /* @__PURE__ */ (0, v.jsxs)(v.Fragment, { children: [/* @__PURE__ */ (0, v.jsx)(Ih, { mark: jg(e.location) }), Ag(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, v.jsx)(Lg, { online: e.online })]
+ /* @__PURE__ */ (0, x.jsx)(Uh, { children: t.map((e, t) => /* @__PURE__ */ (0, x.jsxs)(Wh, {
+ term: /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(qh, { mark: Hg(e.location) }), Vg(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, x.jsx)(Jg, { online: e.online })]
}, t)) }),
- r.error ? /* @__PURE__ */ (0, v.jsx)(Eh, {
+ r.error ? /* @__PURE__ */ (0, x.jsx)(Lh, {
divided: !0,
- children: /* @__PURE__ */ (0, v.jsx)(kh, { children: r.error })
+ children: /* @__PURE__ */ (0, x.jsx)(Bh, { children: r.error })
}) : null,
- /* @__PURE__ */ (0, v.jsx)(Dh, { children: /* @__PURE__ */ (0, v.jsx)(kf, {
- onClick: () => void r.run("refresh", (e) => Jd(vg, e), (e) => n(e.media_sources)),
- ...Rh(r.busy === "refresh"),
+ /* @__PURE__ */ (0, x.jsx)(Rh, { children: /* @__PURE__ */ (0, x.jsx)(Af, {
+ onClick: () => void r.run("refresh", (e) => Qd(kg, e), (e) => n(e.media_sources)),
+ ...Yh(r.busy === "refresh"),
children: "刷新挂载状态"
}) })
]
@@ -22470,20 +22590,20 @@ function Rg({ data: e }) {
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var zg = {
+var Xg = {
legacy: "当前使用系统生成的访问口令。你可以设置自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,保持登录时间在登录页选择。"
};
-function Bg({ initial: e, receipt: t }) {
- let [n, r] = (0, _.useState)(e), [i, a] = (0, _.useState)(""), [o, s] = (0, _.useState)(""), [c, l] = (0, _.useState)(""), [u, d] = (0, _.useState)(!1), [f, p] = (0, _.useState)({}), m = (0, _.useRef)(null), h = Lh(), g = (e) => {
+function Zg({ initial: e, receipt: t }) {
+ let [n, r] = (0, b.useState)(e), [i, a] = (0, b.useState)(""), [o, s] = (0, b.useState)(""), [c, l] = (0, b.useState)(""), [u, d] = (0, b.useState)(!1), [f, p] = (0, b.useState)({}), m = (0, b.useRef)(null), h = Jh(), 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) => Yd("/api/configuration/access", {
+ h.run("save", (e) => $d("/api/configuration/access", {
revision: n.revision,
action: u ? "disable" : "set",
confirm_disable: u,
@@ -22493,28 +22613,28 @@ function Bg({ initial: e, receipt: t }) {
}, "POST", e), (e) => {
r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");
}, (e) => {
- let t = e instanceof Gd ? e.body : null, n = t?.errors || t?.detail?.errors;
- n ? p(n) : h.setError(qd(e));
+ let t = e instanceof Yd ? e.body : null, n = t?.errors || t?.detail?.errors;
+ n ? p(n) : h.setError(Zd(e));
});
- }, y = zg[n.mode], b = n.mode !== "locked";
- return /* @__PURE__ */ (0, v.jsxs)(wh, {
+ }, _ = Xg[n.mode], v = n.mode !== "locked";
+ return /* @__PURE__ */ (0, x.jsxs)(Fh, {
title: "访问密码",
onSubmit: g,
- children: [/* @__PURE__ */ (0, v.jsx)("div", {
+ children: [/* @__PURE__ */ (0, x.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, v.jsxs)(Eh, { children: [
- y ? /* @__PURE__ */ (0, v.jsx)(Oh, { children: y }) : null,
- n.mode === "open" ? /* @__PURE__ */ (0, v.jsx)(Qd, {
+ children: /* @__PURE__ */ (0, x.jsxs)(Lh, { children: [
+ _ ? /* @__PURE__ */ (0, x.jsx)(zh, { children: _ }) : null,
+ n.mode === "open" ? /* @__PURE__ */ (0, x.jsx)(nf, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, v.jsx)(Uh, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, x.jsx)(eg, {
isSelected: u,
onChange: d,
children: "关闭访问密码,允许能连接到 Peach 的设备直接访问"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, v.jsx)(_g, {
+ n.mode === "password" ? /* @__PURE__ */ (0, x.jsx)(Og, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -22527,7 +22647,7 @@ function Bg({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- b ? /* @__PURE__ */ (0, v.jsxs)(v.Fragment, { children: [/* @__PURE__ */ (0, v.jsx)(_g, {
+ v ? /* @__PURE__ */ (0, x.jsxs)(x.Fragment, { children: [/* @__PURE__ */ (0, x.jsx)(Og, {
id: "access-password",
type: "password",
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
@@ -22540,7 +22660,7 @@ function Bg({ initial: e, receipt: t }) {
validationBehavior: "aria",
isInvalid: !u && !!f.password,
hint: u ? "关闭访问密码时无需填写。" : f.password || "至少 8 个字符。保存后其他设备需要重新登录。"
- }), /* @__PURE__ */ (0, v.jsx)(_g, {
+ }), /* @__PURE__ */ (0, x.jsx)(Og, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -22554,18 +22674,18 @@ function Bg({ initial: e, receipt: t }) {
isInvalid: !u && !!f.confirmation,
hint: u ? void 0 : f.confirmation
})] }) : null,
- u ? /* @__PURE__ */ (0, v.jsx)(Qd, {
+ u ? /* @__PURE__ */ (0, x.jsx)(nf, {
tone: "warning",
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, v.jsx)(kh, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, x.jsx)(Bh, { children: h.error }) : null
] })
- }), b ? /* @__PURE__ */ (0, v.jsx)(Dh, {
+ }), v ? /* @__PURE__ */ (0, x.jsx)(Rh, {
status: "保存后立即生效。",
- children: /* @__PURE__ */ (0, v.jsx)(kf, {
+ children: /* @__PURE__ */ (0, x.jsx)(Af, {
type: "submit",
- ...Rh(h.busy === "save"),
+ ...Yh(h.busy === "save"),
children: "保存配置"
})
}) : null]
@@ -22573,30 +22693,30 @@ function Bg({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var Vg = [
+var Qg = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function Hg({ data: e, receipt: t }) {
- return /* @__PURE__ */ (0, v.jsxs)("div", {
+function $g({ data: e, receipt: t }) {
+ return /* @__PURE__ */ (0, x.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.peach_proxy ? /* @__PURE__ */ (0, v.jsx)(Ug, {
+ children: [e.peach_proxy ? /* @__PURE__ */ (0, x.jsx)(e_, {
initial: e.peach_proxy,
receipt: t
- }) : null, e.access ? /* @__PURE__ */ (0, v.jsx)(Bg, {
+ }) : null, e.access ? /* @__PURE__ */ (0, x.jsx)(Zg, {
initial: e.access,
receipt: t
}) : null]
});
}
-function Ug({ initial: e, receipt: t }) {
- let [n, r] = (0, _.useState)(e), [i, a] = (0, _.useState)(e.mode), [o, s] = (0, _.useState)(""), c = Lh();
- return /* @__PURE__ */ (0, v.jsxs)(wh, {
+function e_({ initial: e, receipt: t }) {
+ let [n, r] = (0, b.useState)(e), [i, a] = (0, b.useState)(e.mode), [o, s] = (0, b.useState)(""), c = Jh();
+ return /* @__PURE__ */ (0, x.jsxs)(Fh, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
- e.preventDefault(), c.run("save", (e) => Yd("/api/configuration/peach-proxy", {
+ e.preventDefault(), c.run("save", (e) => $d("/api/configuration/peach-proxy", {
mode: i,
proxy: o
}, "POST", e), (e) => {
@@ -22604,25 +22724,25 @@ function Ug({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, v.jsx)(Th, { children: /* @__PURE__ */ (0, v.jsx)(Df, {
+ /* @__PURE__ */ (0, x.jsx)(Ih, { children: /* @__PURE__ */ (0, x.jsx)(Bf, {
label: "连接方式",
description: "采集来源选择“Peach 代理”时共用此设置。",
- children: /* @__PURE__ */ (0, v.jsx)(Qh, {
+ children: /* @__PURE__ */ (0, x.jsx)(lg, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: Vg.map(([e, t]) => /* @__PURE__ */ (0, v.jsx)($h, {
+ children: Qg.map(([e, t]) => /* @__PURE__ */ (0, x.jsx)(ug, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, v.jsxs)(Eh, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, x.jsxs)(Lh, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, v.jsx)(_g, {
+ i === "proxy" ? /* @__PURE__ */ (0, x.jsx)(Og, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -22631,17 +22751,17 @@ function Ug({ initial: e, receipt: t }) {
onChange: s,
placeholder: n.proxy_saved ? "已保存,留空保留" : "http://127.0.0.1:7890"
}) : null,
- n.needs_selection ? /* @__PURE__ */ (0, v.jsx)(Qd, {
+ n.needs_selection ? /* @__PURE__ */ (0, x.jsx)(nf, {
tone: "warning",
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, v.jsx)(kh, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, x.jsx)(Bh, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, v.jsx)(Dh, { children: /* @__PURE__ */ (0, v.jsx)(kf, {
+ /* @__PURE__ */ (0, x.jsx)(Rh, { children: /* @__PURE__ */ (0, x.jsx)(Af, {
type: "submit",
- ...Rh(c.busy === "save"),
+ ...Yh(c.busy === "save"),
children: "保存配置"
}) })
]
@@ -22649,17 +22769,17 @@ function Ug({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/entry.tsx
-var Wg = null;
-function Gg() {
- return Wg?.isConnected || (Wg = document.createElement("div"), Wg.className = "peach-react", Wg.dataset.reactOverlays = "", document.body.append(Wg)), Wg;
+var t_ = null;
+function n_() {
+ return t_?.isConnected || (t_ = document.createElement("div"), t_.className = "peach-react", t_.dataset.reactOverlays = "", document.body.append(t_)), t_;
}
-function Kg(e) {
+function r_(e) {
return (t, n) => {
- let r = (0, ou.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, v.jsx)(x, {
- client: ef,
- children: /* @__PURE__ */ (0, v.jsx)(ic, {
- getContainer: Gg,
- children: /* @__PURE__ */ (0, v.jsx)(e, { ...t })
+ let r = (0, cu.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, x.jsx)(w, {
+ client: of,
+ children: /* @__PURE__ */ (0, x.jsx)(sc, {
+ getContainer: n_,
+ children: /* @__PURE__ */ (0, x.jsx)(e, { ...t })
})
}));
return i(n), {
@@ -22668,9 +22788,15 @@ function Kg(e) {
};
};
}
-var qg = { activity: {
- prefetch: (e, t) => cf(t),
- mount: Kg(wf)
-} }, Jg = Kg(zh), Yg = Kg(Fg), Xg = Kg(Hg), Zg = Kg(ag);
+var i_ = {
+ activity: {
+ prefetch: (e, t) => pf(t),
+ mount: r_(Of)
+ },
+ "quality-goals": {
+ prefetch: (e, t) => Pf(t),
+ mount: r_(Lf)
+ }
+}, a_ = r_(Xh), o_ = r_(Kg), s_ = r_($g), c_ = r_(gg);
//#endregion
-export { Jg as mountGeneralSettings, Zg as mountMaintenanceSettings, Yg as mountMediaSettings, Xg as mountNetworkSettings, qg as pages };
+export { a_ as mountGeneralSettings, c_ as mountMaintenanceSettings, o_ as mountMediaSettings, s_ as mountNetworkSettings, i_ as pages };
diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.js
index 456856554..467da5f2b 100644
--- a/web/dist/peach-ui.js
+++ b/web/dist/peach-ui.js
@@ -1,21 +1,21 @@
-import { LOC as e, esc as t, fmtDur as n, fmtSize as r, icon as i, requestErrorMessage as a, siteMarkUrl as o } from "/js/core.js";
-import { MEDIA_SOURCE_ICONS as s, attachOverlayScrollbar as c, checkboxHtml as l, collectionSummaryHtml as u, emptyStateHtml as d, fieldsetTitle as f, loadingDotsHtml as p, moveGlidePane as m, noteHtml as h, projectBannerHtml as g, selectFieldHtml as _, selectOptionIconHtml as v, setActionBusy as y, wireAnchoredMenu as b, wireCollapse as x, wireSelectField as S } from "/js/ui-components.js";
+import { esc as e, icon as t, requestErrorMessage as n, siteMarkUrl as r } from "/js/core.js";
+import { MEDIA_SOURCE_ICONS as i, attachOverlayScrollbar as a, checkboxHtml as o, emptyStateHtml as s, fieldsetTitle as c, loadingDotsHtml as l, moveGlidePane as u, noteHtml as d, projectBannerHtml as f, selectFieldHtml as p, selectOptionIconHtml as m, setActionBusy as h, wireAnchoredMenu as g, wireCollapse as _, wireSelectField as v } from "/js/ui-components.js";
//#region node_modules/preact/dist/preact.module.js
-var C, w, T, E, D, O, k, A, j, ee, M, te, ne, re, N, ie = {}, ae = [], oe = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, se = Array.isArray;
+var y, b, x, S, C, w, T, E, D, O, k, A, j, ee, te = {}, M = [], ne = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, N = Array.isArray;
function P(e, t) {
for (var n in t) e[n] = t[n];
return e;
}
-function ce(e) {
+function re(e) {
e && e.parentNode && e.parentNode.removeChild(e);
}
-function le(e, t, n) {
+function ie(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 ? C.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 ue(e, o, r, i, null);
+ if (arguments.length > 2 && (o.children = arguments.length > 3 ? y.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 ae(e, o, r, i, null);
}
-function ue(e, t, n, r, i) {
+function ae(e, t, n, r, i) {
var a = {
type: e,
props: t,
@@ -27,68 +27,68 @@ function ue(e, t, n, r, i) {
__e: null,
__c: null,
constructor: void 0,
- __v: i ?? ++T,
+ __v: i ?? ++x,
__i: -1,
__u: 0
};
- return i == null && w.vnode != null && w.vnode(a), a;
+ return i == null && b.vnode != null && b.vnode(a), a;
}
function F(e) {
return e.children;
}
-function de(e, t) {
+function oe(e, t) {
this.props = e, this.context = t;
}
-function fe(e, t) {
- if (t == null) return e.__ ? fe(e.__, e.__i + 1) : null;
+function I(e, t) {
+ if (t == null) return e.__ ? I(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" ? fe(e) : null;
+ return typeof e.type == "function" ? I(e) : null;
}
-function pe(e) {
+function se(e) {
if (e.__P && e.__d) {
var t = e.__v, n = t.__e, r = [], i = [], a = P({}, t);
- a.__v = t.__v + 1, w.vnode && w.vnode(a), we(e.__P, a, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, r, n ?? fe(t), !!(32 & t.__u), i), a.__v = t.__v, a.__.__k[a.__i] = a, Ee(r, a, i), t.__e = t.__ = null, a.__e != n && me(a);
+ a.__v = t.__v + 1, b.vnode && b.vnode(a), ve(e.__P, a, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, r, n ?? I(t), !!(32 & t.__u), i), a.__v = t.__v, a.__.__k[a.__i] = a, be(r, a, i), t.__e = t.__ = null, a.__e != n && ce(a);
}
}
-function me(e) {
+function ce(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;
- }), me(e);
+ }), ce(e);
}
-function he(e) {
- (!e.__d && (e.__d = !0) && D.push(e) && !ge.__r++ || O != w.debounceRendering) && ((O = w.debounceRendering) || k)(ge);
+function le(e) {
+ (!e.__d && (e.__d = !0) && S.push(e) && !ue.__r++ || C != b.debounceRendering) && ((C = b.debounceRendering) || w)(ue);
}
-function ge() {
+function ue() {
try {
- for (var e, t = 1; D.length;) D.length > t && D.sort(A), e = D.shift(), t = D.length, pe(e);
+ for (var e, t = 1; S.length;) S.length > t && S.sort(T), e = S.shift(), t = S.length, se(e);
} finally {
- D.length = ge.__r = 0;
+ S.length = ue.__r = 0;
}
}
-function _e(e, t, n, r, i, a, o, s, c, l, u) {
- var d, f, p, m, h, g, _ = r && r.__k || ae, v = t.length;
- for (c = ve(n, t, _, c, v), d = 0; d < v; d++) (p = n.__k[d]) != null && (f = p.__i != -1 && _[p.__i] || ie, p.__i = d, g = we(e, p, f, i, a, o, s, c, l, u), m = p.__e, p.ref && f.ref != p.ref && (f.ref && ke(f.ref, null, p), u.push(p.ref, p.__c || m, p)), h == null && m != null && (h = m), 4 & p.__u ? (c = ye(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 de(e, t, n, r, i, a, o, s, c, l, u) {
+ var d, f, p, m, h, g, _ = r && r.__k || M, v = t.length;
+ for (c = fe(n, t, _, c, v), d = 0; d < v; d++) (p = n.__k[d]) != null && (f = p.__i != -1 && _[p.__i] || te, p.__i = d, g = ve(e, p, f, i, a, o, s, c, l, u), m = p.__e, p.ref && f.ref != p.ref && (f.ref && Ce(f.ref, null, p), u.push(p.ref, p.__c || m, p)), h == null && m != null && (h = m), 4 & p.__u ? (c = pe(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 ve(e, t, n, r, i) {
+function fe(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] = ue(null, o, null, null, null) : se(o) ? o = e.__k[a] = ue(F, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = e.__k[a] = ue(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 = be(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 = fe(s)), Ae(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] = ae(null, o, null, null, null) : N(o) ? o = e.__k[a] = ae(F, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = e.__k[a] = ae(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 = me(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 = I(s)), we(s, s));
return r;
}
-function ye(e, t, n) {
+function pe(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 = ye(r[i], t, n));
+ for (r = e.__k, i = 0; r && i < r.length; i++) r[i] && (r[i].__ = e, t = pe(r[i], t, n));
return t;
}
- e.__e != t && (t && e.type && !t.parentNode && (t = fe(e)), t = n.insertBefore(e.__e, t || null));
+ e.__e != t && (t && e.type && !t.parentNode && (t = I(e)), t = n.insertBefore(e.__e, t || null));
do
t &&= t.nextSibling;
while (t != null && t.nodeType == 8);
return t;
}
-function be(e, t, n, r) {
+function me(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 be(e, t, n, r) {
}
return -1;
}
-function xe(e, t, n) {
- t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || oe.test(t) ? n : n + "px";
+function he(e, t, n) {
+ t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || ne.test(t) ? n : n + "px";
}
-function Se(e, t, n, r, i) {
+function ge(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 || xe(e.style, t, "");
- if (n) for (t in n) r && n[t] == r[t] || xe(e.style, t, n[t]);
+ if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || he(e.style, t, "");
+ if (n) for (t in n) r && n[t] == r[t] || he(e.style, t, n[t]);
}
- } else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(te, "$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[M] = r[M] : (n[M] = ne, e.addEventListener(t, a ? N : re, a)) : e.removeEventListener(t, a ? N : re, a);
+ } else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(k, "$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[O] = r[O] : (n[O] = A, e.addEventListener(t, a ? ee : j, a)) : e.removeEventListener(t, a ? ee : j, 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 Se(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 Ce(e) {
+function _e(e) {
return function(t) {
if (this.l) {
var n = this.l[t.type + e];
- if (t[ee] == null) t[ee] = ne++;
- else if (t[ee] < n[M]) return;
- return n(w.event ? w.event(t) : t);
+ if (t[D] == null) t[D] = A++;
+ else if (t[D] < n[O]) return;
+ return n(b.event ? b.event(t) : t);
}
};
}
-function we(e, t, n, r, i, a, o, s, c, l) {
- var u, d, f, p, m, h, g, _, v, y, b, x, S, C, T, E, D = t.type;
+function ve(e, t, n, r, i, a, o, s, c, l) {
+ var u, d, f, p, m, h, g, _, v, y, 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 = w.__b) && u(t);
+ 128 & n.__u && (c = !!(32 & n.__u), a = [s = t.__e = n.__e]), (u = b.__b) && u(t);
n: if (typeof D == "function") {
d = o.length;
try {
- if (v = t.props, y = D.prototype && D.prototype.render, b = (u = D.contextType) && r[u.__c], x = u ? b ? b.props.value : u.__ : r, n.__c ? _ = (f = t.__c = n.__c).__ = f.__E : (y ? t.__c = f = new D(v, x) : (t.__c = f = new de(v, x), f.constructor = D, f.render = je), b && b.sub(f), f.state || (f.state = {}), f.__n = r, p = f.__d = !0, f.__h = [], f._sb = []), y && f.__s == null && (f.__s = f.state), y && D.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = P({}, f.__s)), P(f.__s, D.getDerivedStateFromProps(v, f.__s))), m = f.props, h = f.state, f.__v = t, p) y && D.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), y && f.componentDidMount != null && f.__h.push(f.componentDidMount);
+ if (v = t.props, y = 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 : (y ? t.__c = f = new D(v, S) : (t.__c = f = new oe(v, S), f.constructor = D, f.render = Te), x && x.sub(f), f.state || (f.state = {}), f.__n = r, p = f.__d = !0, f.__h = [], f._sb = []), y && f.__s == null && (f.__s = f.state), y && D.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = P({}, f.__s)), P(f.__s, D.getDerivedStateFromProps(v, f.__s))), m = f.props, h = f.state, f.__v = t, p) y && D.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), y && f.componentDidMount != null && f.__h.push(f.componentDidMount);
else {
- if (y && D.getDerivedStateFromProps == null && v !== m && f.componentWillReceiveProps != null && f.componentWillReceiveProps(v, x), t.__v == n.__v || !f.__e && f.shouldComponentUpdate != null && !1 === f.shouldComponentUpdate(v, f.__s, x)) {
+ if (y && 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) {
e && (e.__ = t);
- }), ae.push.apply(f.__h, f._sb), f._sb = [], f.__h.length && o.push(f), s = fe(n);
+ }), M.push.apply(f.__h, f._sb), f._sb = [], f.__h.length && o.push(f), s = I(n);
break n;
}
- f.componentWillUpdate != null && f.componentWillUpdate(v, f.__s, x), y && f.componentDidUpdate != null && f.__h.push(function() {
+ f.componentWillUpdate != null && f.componentWillUpdate(v, f.__s, S), y && f.componentDidUpdate != null && f.__h.push(function() {
f.componentDidUpdate(m, h, g);
});
}
- if (f.context = x, f.props = v, f.__P = e, f.__e = !1, S = w.__r, C = 0, y) f.state = f.__s, f.__d = !1, S && S(t), u = f.render(f.props, f.state, f.context), ae.push.apply(f.__h, f._sb), f._sb = [];
+ if (f.context = S, f.props = v, f.__P = e, f.__e = !1, C = b.__r, w = 0, y) f.state = f.__s, f.__d = !1, C && C(t), u = f.render(f.props, f.state, f.context), M.push.apply(f.__h, f._sb), f._sb = [];
else do
- f.__d = !1, S && S(t), u = f.render(f.props, f.state, f.context), f.state = f.__s;
- while (f.__d && ++C < 25);
- f.state = f.__s, f.getChildContext != null && (r = P(P({}, r), f.getChildContext())), y && !p && f.getSnapshotBeforeUpdate != null && (g = f.getSnapshotBeforeUpdate(m, h)), T = u != null && u.type === F && u.key == null ? De(u.props.children) : u, s = _e(e, se(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.__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 = P(P({}, r), f.getChildContext())), y && !p && f.getSnapshotBeforeUpdate != null && (g = f.getSnapshotBeforeUpdate(m, h)), T = u != null && u.type === F && u.key == null ? xe(u.props.children) : u, s = de(e, N(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);
} 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--;) ce(a[E]);
+ } else if (a != null) for (E = a.length; E--;) re(a[E]);
} else t.__e = n.__e;
- t.__k ??= n.__k || [], e.then || Te(t), w.__e(e, t, n);
+ t.__k ??= n.__k || [], e.then || ye(t), b.__e(e, t, n);
}
- } else a == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = Oe(n.__e, t, n, r, i, a, o, c, l);
- return (u = w.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 = Se(n.__e, t, n, r, i, a, o, c, l);
+ return (u = b.diffed) && u(t), 128 & t.__u ? void 0 : s;
}
-function Te(e) {
- e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(Te));
+function ye(e) {
+ e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(ye));
}
-function Ee(e, t, n) {
- for (var r = 0; r < n.length; r++) ke(n[r], n[++r], n[++r]);
- w.__c && w.__c(t, e), e.some(function(t) {
+function be(e, t, n) {
+ for (var r = 0; r < n.length; r++) Ce(n[r], n[++r], n[++r]);
+ b.__c && b.__c(t, e), e.some(function(t) {
try {
e = t.__h, t.__h = [], e.some(function(e) {
e.call(t);
});
} catch (e) {
- w.__e(e, t.__v);
+ b.__e(e, t.__v);
}
});
}
-function De(e) {
- return typeof e != "object" || !e || e.__b > 0 ? e : se(e) ? e.map(De) : e.constructor === void 0 ? P({}, e) : null;
+function xe(e) {
+ return typeof e != "object" || !e || e.__b > 0 ? e : N(e) ? e.map(xe) : e.constructor === void 0 ? P({}, e) : null;
}
-function Oe(e, t, n, r, i, a, o, s, c) {
- var l, u, d, f, p, m, h, g = n.props || ie, _ = t.props, v = t.type;
+function Se(e, t, n, r, i, a, o, s, c) {
+ var l, u, d, f, p, m, h, g = n.props || te, _ = t.props, v = t.type;
if (v == "svg" ? i = "http://www.w3.org/2000/svg" : v == "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 == !!v && (v ? p.localName == v : p.nodeType == 3)) {
e = p, a[l] = null;
@@ -191,74 +191,72 @@ function Oe(e, t, n, r, i, a, o, s, c) {
}
if (e == null) {
if (v == null) return document.createTextNode(_);
- e = document.createElementNS(i, v, _.is && _), s &&= (w.__m && w.__m(t, a), !1), a = null;
+ e = document.createElementNS(i, v, _.is && _), s &&= (b.__m && b.__m(t, a), !1), a = null;
}
if (v == null) g === _ || s && e.data == _ || (e.data = _);
else {
- if (a = v == "textarea" && _.defaultValue != null ? null : a && C.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 _ || Se(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 || Se(e, l, p, g[l], i);
+ if (a = v == "textarea" && _.defaultValue != null ? null : a && y.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 _ || ge(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 || ge(e, l, p, g[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 = ""), _e(t.type == "template" ? e.content : e, se(f) ? f : [f], t, n, r, v == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, a, o, a ? a[0] : n.__k && fe(n, 0), s, c), a != null) for (l = a.length; l--;) ce(a[l]);
- s && v != "textarea" || (l = "value", v == "progress" && m == null ? e.removeAttribute("value") : m != null && (m !== e[l] || v == "progress" && !m || v == "option" && m != g[l]) && Se(e, l, m, g[l], i), l = "checked", h != null && h != e[l] && Se(e, l, h, g[l], i));
+ else if (d && (e.innerHTML = ""), de(t.type == "template" ? e.content : e, N(f) ? f : [f], t, n, r, v == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, a, o, a ? a[0] : n.__k && I(n, 0), s, c), a != null) for (l = a.length; l--;) re(a[l]);
+ s && v != "textarea" || (l = "value", v == "progress" && m == null ? e.removeAttribute("value") : m != null && (m !== e[l] || v == "progress" && !m || v == "option" && m != g[l]) && ge(e, l, m, g[l], i), l = "checked", h != null && h != e[l] && ge(e, l, h, g[l], i));
}
return e;
}
-function ke(e, t, n) {
+function Ce(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) {
- w.__e(e, n);
+ b.__e(e, n);
}
}
-function Ae(e, t, n) {
+function we(e, t, n) {
var r, i;
- if (w.unmount && w.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || ke(r, null, t)), (r = e.__c) != null) {
+ if (b.unmount && b.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || Ce(r, null, t)), (r = e.__c) != null) {
if (r.componentWillUnmount) try {
r.componentWillUnmount();
} catch (e) {
- w.__e(e, t);
+ b.__e(e, t);
}
r.base = r.__P = r.__n = null;
}
- if (r = e.__k) for (i = 0; i < r.length; i++) r[i] && Ae(r[i], t, n || typeof e.type != "function");
- n || ce(e.__e), e.__c = e.__ = e.__e = void 0;
+ if (r = e.__k) for (i = 0; i < r.length; i++) r[i] && we(r[i], t, n || typeof e.type != "function");
+ n || re(e.__e), e.__c = e.__ = e.__e = void 0;
}
-function je(e, t, n) {
+function Te(e, t, n) {
return this.constructor(e, n);
}
-function Me(e, t, n) {
+function Ee(e, t, n) {
var r, i, a, o;
- t == document && (t = document.documentElement), w.__ && w.__(e, t), i = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], o = [], we(t, e = (!r && n || t).__k = le(F, null, [e]), i || ie, ie, t.namespaceURI, !r && n ? [n] : i ? null : t.firstChild ? C.call(t.childNodes) : null, a, !r && n ? n : i ? i.__e : t.firstChild, r, o), Ee(a, e, o), e.props.children = null;
+ t == document && (t = document.documentElement), b.__ && b.__(e, t), i = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], o = [], ve(t, e = (!r && n || t).__k = ie(F, null, [e]), i || te, te, t.namespaceURI, !r && n ? [n] : i ? null : t.firstChild ? y.call(t.childNodes) : null, a, !r && n ? n : i ? i.__e : t.firstChild, r, o), be(a, e, o), e.props.children = null;
}
-C = ae.slice, w = { __e: function(e, t, n, r) {
+y = M.slice, b = { __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;
-} }, T = 0, E = function(e) {
- return e != null && e.constructor === void 0;
-}, de.prototype.setState = function(e, t) {
+} }, x = 0, oe.prototype.setState = function(e, t) {
var n = this.__s != null && this.__s != this.state ? this.__s : this.__s = P({}, this.state);
- typeof e == "function" && (e = e(P({}, n), this.props)), e && P(n, e), e != null && this.__v && (t && this._sb.push(t), he(this));
-}, de.prototype.forceUpdate = function(e) {
- this.__v && (this.__e = !0, e && this.__h.push(e), he(this));
-}, de.prototype.render = F, D = [], k = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, A = function(e, t) {
+ typeof e == "function" && (e = e(P({}, n), this.props)), e && P(n, e), e != null && this.__v && (t && this._sb.push(t), le(this));
+}, oe.prototype.forceUpdate = function(e) {
+ this.__v && (this.__e = !0, e && this.__h.push(e), le(this));
+}, oe.prototype.render = F, S = [], w = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, T = function(e, t) {
return e.__v.__b - t.__v.__b;
-}, ge.__r = 0, j = Math.random().toString(8), ee = "__d" + j, M = "__a" + j, te = /(PointerCapture)$|Capture$/i, ne = 0, re = Ce(!1), N = Ce(!0);
+}, ue.__r = 0, E = Math.random().toString(8), D = "__d" + E, O = "__a" + E, k = /(PointerCapture)$|Capture$/i, A = 0, j = _e(!1), ee = _e(!0);
//#endregion
//#region src/sort-preferences.ts
-function Ne(e, t, n) {
+function De(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
//#endregion
//#region src/number-setting.ts
-var Pe = {
+var Oe = {
loginDaysSetting: {
min: 1,
max: 365,
@@ -306,17 +304,17 @@ var Pe = {
fallback: 60
}
};
-function Fe(e, t, n, r) {
+function ke(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
-function Ie(e, t, n) {
+function Ae(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 Le(e, t, n, r, i) {
- let a = Pe[t];
+function je(e, t, n, r, i) {
+ let a = Oe[t];
if (!a) return !1;
- let { min: o, max: s, unit: c, optional: l, fallback: u } = a, d = `peach.number.${t}`, f = Fe(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 = ke(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;
@@ -351,37 +349,37 @@ function Le(e, t, n, r, i) {
}
//#endregion
//#region src/board-metrics.ts
-var I = (e) => String(e ?? "").replace(/[&<>"']/g, (e) => ({
+var L = (e) => String(e ?? "").replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function Re(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>${I(e)}</span><b class="board-stat-value">${I(t)}</b><small class="board-stat-footer">${I(n || "当前记录")}</small>`;
+function Me(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>${L(e)}</span><b class="board-stat-value">${L(t)}</b><small class="board-stat-footer">${L(n || "当前记录")}</small>`;
}
-function ze(e, t, n) {
+function Ne(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="${I(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>${I(e)}<small>${Math.round(i)}%</small></span></div>`;
+ return `<div class="board-job-progress" role="progressbar" aria-label="${L(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>${L(e)}<small>${Math.round(i)}%</small></span></div>`;
}
-function Be(e, t) {
+function Pe(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>${I(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>${L(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="${I(t)}"><g transform="rotate(-90 100 100)">${a}</g><text x="100" y="100" text-anchor="middle" dominant-baseline="middle">${I(t)}</text></svg>`;
+ return `<svg class="board-distribution" viewBox="0 0 200 200" role="img" aria-label="${L(t)}"><g transform="rotate(-90 100 100)">${a}</g><text x="100" y="100" text-anchor="middle" dominant-baseline="middle">${L(t)}</text></svg>`;
}
-function Ve(e, t) {
+function Fe(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>${I(e.name)}</span><b>${e.score.toLocaleString()}</b></li>`).join("");
- return `<ol class="board-ranked-chart" aria-label="${I(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>${L(e.name)}</span><b>${e.score.toLocaleString()}</b></li>`).join("");
+ return `<ol class="board-ranked-chart" aria-label="${L(t)}">${i}</ol>`;
}
-function He(e, t) {
+function Ie(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) => {
@@ -394,30 +392,30 @@ function He(e, t) {
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"}">${I(e.name)}</text>`;
+ return `<text x="${n}" y="${r}" text-anchor="${n < 145 ? "end" : n > 175 ? "start" : "middle"}">${L(e.name)}</text>`;
}).join("");
- return `<svg class="board-radar" viewBox="0 0 320 280" role="img" aria-label="${I(t)}"><title>${I(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>`;
+ return `<svg class="board-radar" viewBox="0 0 320 280" role="img" aria-label="${L(t)}"><title>${L(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 Ue, L, We, Ge, Ke = 0, qe = [], R = w, Je = R.__b, Ye = R.__r, Xe = R.diffed, Ze = R.__c, Qe = R.unmount, $e = R.__;
-function et(e, t) {
- R.__h && R.__h(L, e, Ke || t), Ke = 0;
- var n = L.__H || (L.__H = {
+var R, z, Le, Re, ze = 0, Be = [], B = b, Ve = B.__b, He = B.__r, Ue = B.diffed, We = B.__c, Ge = B.unmount, Ke = B.__;
+function qe(e, t) {
+ B.__h && B.__h(z, e, ze || t), ze = 0;
+ var n = z.__H || (z.__H = {
__: [],
__h: []
});
return e >= n.__.length && n.__.push({}), n.__[e];
}
-function z(e) {
- return Ke = 1, tt(ut, e);
+function V(e) {
+ return ze = 1, Je(rt, e);
}
-function tt(e, t, n) {
- var r = et(Ue++, 2);
- if (r.t = e, !r.__c && (r.__ = [n ? n(t) : ut(void 0, t), function(e) {
+function Je(e, t, n) {
+ var r = qe(R++, 2);
+ if (r.t = e, !r.__c && (r.__ = [n ? n(t) : rt(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 = L, !L.__f)) {
+ }], r.__c = z, !z.__f)) {
var i = function(e, t, n) {
if (!r.__c.__H) return !0;
var i = !1, o = r.__c.props !== e;
@@ -433,116 +431,116 @@ function tt(e, t, n) {
}
return !i || o;
};
- L.__f = !0;
- var a = L.shouldComponentUpdate, o = L.componentWillUpdate;
- L.componentWillUpdate = function(e, t, n) {
+ z.__f = !0;
+ var a = z.shouldComponentUpdate, o = z.componentWillUpdate;
+ z.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);
- }, L.shouldComponentUpdate = i;
+ }, z.shouldComponentUpdate = i;
}
return r.__N || r.__;
}
-function B(e, t) {
- var n = et(Ue++, 3);
- !R.__s && lt(n.__H, t) && (n.__ = e, n.u = t, L.__H.__h.push(n));
+function H(e, t) {
+ var n = qe(R++, 3);
+ !B.__s && nt(n.__H, t) && (n.__ = e, n.u = t, z.__H.__h.push(n));
}
-function nt(e, t) {
- var n = et(Ue++, 4);
- !R.__s && lt(n.__H, t) && (n.__ = e, n.u = t, L.__h.push(n));
+function Ye(e, t) {
+ var n = qe(R++, 4);
+ !B.__s && nt(n.__H, t) && (n.__ = e, n.u = t, z.__h.push(n));
}
-function V(e) {
- return Ke = 5, rt(function() {
+function U(e) {
+ return ze = 5, Xe(function() {
return { current: e };
}, []);
}
-function rt(e, t) {
- var n = et(Ue++, 7);
- return lt(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
+function Xe(e, t) {
+ var n = qe(R++, 7);
+ return nt(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
}
-function it() {
- for (var e; e = qe.shift();) {
+function Ze() {
+ for (var e; e = Be.shift();) {
var t = e.__H;
if (e.__P && t) try {
- t.__h.some(st), t.__h.some(ct), t.__h = [];
+ t.__h.some(et), t.__h.some(tt), t.__h = [];
} catch (n) {
- t.__h = [], R.__e(n, e.__v);
+ t.__h = [], B.__e(n, e.__v);
}
}
}
-R.__b = function(e) {
- L = null, Je && Je(e);
-}, R.__ = function(e, t) {
- e && t.__k && t.__k.__m && (e.__m = t.__k.__m), $e && $e(e, t);
-}, R.__r = function(e) {
- Ye && Ye(e), Ue = 0;
- var t = (L = e.__c).__H;
- t && (We === L ? (t.__h = [], L.__h = [], t.__.some(function(e) {
+B.__b = function(e) {
+ z = null, Ve && Ve(e);
+}, B.__ = function(e, t) {
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Ke && Ke(e, t);
+}, B.__r = function(e) {
+ He && He(e), R = 0;
+ var t = (z = e.__c).__H;
+ t && (Le === z ? (t.__h = [], z.__h = [], t.__.some(function(e) {
e.__N && (e.__ = e.__N), e.u = e.__N = void 0;
- })) : (t.__h.some(st), t.__h.some(ct), t.__h = [], Ue = 0)), We = L;
-}, R.diffed = function(e) {
- Xe && Xe(e);
+ })) : (t.__h.some(et), t.__h.some(tt), t.__h = [], R = 0)), Le = z;
+}, B.diffed = function(e) {
+ Ue && Ue(e);
var t = e.__c;
- t && t.__H && (t.__H.__h.length && (qe.push(t) !== 1 && Ge === R.requestAnimationFrame || ((Ge = R.requestAnimationFrame) || ot)(it)), t.__H.__.some(function(e) {
+ t && t.__H && (t.__H.__h.length && (Be.push(t) !== 1 && Re === B.requestAnimationFrame || ((Re = B.requestAnimationFrame) || $e)(Ze)), t.__H.__.some(function(e) {
e.u &&= (e.__H = e.u, void 0);
- })), We = L = null;
-}, R.__c = function(e, t) {
+ })), Le = z = null;
+}, B.__c = function(e, t) {
t.some(function(e) {
try {
- e.__h.some(st), e.__h = e.__h.filter(function(e) {
- return !e.__ || ct(e);
+ e.__h.some(et), e.__h = e.__h.filter(function(e) {
+ return !e.__ || tt(e);
});
} catch (n) {
t.some(function(e) {
e.__h &&= [];
- }), t = [], R.__e(n, e.__v);
+ }), t = [], B.__e(n, e.__v);
}
- }), Ze && Ze(e, t);
-}, R.unmount = function(e) {
- Qe && Qe(e);
+ }), We && We(e, t);
+}, B.unmount = function(e) {
+ Ge && Ge(e);
var t, n = e.__c;
n && n.__H && (n.__H.__.some(function(e) {
try {
- st(e);
+ et(e);
} catch (e) {
t = e;
}
- }), n.__H = void 0, t && R.__e(t, n.__v));
+ }), n.__H = void 0, t && B.__e(t, n.__v));
};
-var at = typeof requestAnimationFrame == "function";
-function ot(e) {
+var Qe = typeof requestAnimationFrame == "function";
+function $e(e) {
var t, n = function() {
- clearTimeout(r), at && cancelAnimationFrame(t), setTimeout(e);
+ clearTimeout(r), Qe && cancelAnimationFrame(t), setTimeout(e);
}, r = setTimeout(n, 35);
- at && (t = requestAnimationFrame(n));
+ Qe && (t = requestAnimationFrame(n));
}
-function st(e) {
- var t = L, n = e.__c;
- typeof n == "function" && (e.__c = void 0, n()), L = t;
+function et(e) {
+ var t = z, n = e.__c;
+ typeof n == "function" && (e.__c = void 0, n()), z = t;
}
-function ct(e) {
- var t = L;
- e.__c = e.__(), L = t;
+function tt(e) {
+ var t = z;
+ e.__c = e.__(), z = t;
}
-function lt(e, t) {
+function nt(e, t) {
return !e || e.length !== t.length || t.some(function(t, n) {
return t !== e[n];
});
}
-function ut(e, t) {
+function rt(e, t) {
return typeof t == "function" ? t(e) : t;
}
//#endregion
//#region src/api.ts
-var dt = class extends Error {
+var it = class extends Error {
status;
body;
- constructor(e, t, n = null) {
- super(a(e, t)), this.name = "ApiError", this.status = t, this.body = n;
+ constructor(e, t, r = null) {
+ super(n(e, t)), this.name = "ApiError", this.status = t, this.body = r;
}
-}, ft = (e) => {
+}, at = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -554,8 +552,8 @@ var dt = class extends Error {
if (typeof n == "string" && n) return n;
}
return "";
-}, H = (e) => a(e);
-async function U(e, t) {
+}, W = (e) => n(e);
+async function G(e, t) {
let n = await fetch(e, {
headers: { Accept: "application/json" },
credentials: "same-origin",
@@ -564,10 +562,10 @@ async function U(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new dt(ft(r) || `请求失败(${n.status})`, n.status);
+ if (!n.ok) throw new it(at(r) || `请求失败(${n.status})`, n.status);
return r;
}
-async function pt(e, t, n = "POST", r) {
+async function K(e, t, n = "POST", r) {
let i = await fetch(e, {
method: n,
...r ? { signal: r } : {},
@@ -581,15 +579,15 @@ async function pt(e, t, n = "POST", r) {
try {
a = await i.json();
} catch {}
- if (!i.ok) throw new dt(ft(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new it(at(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/jobs.ts
-function mt(e, t = 0, n = 0) {
- return n > 0 ? ze(e, t, n) : p(e);
+function ot(e, t = 0, n = 0) {
+ return n > 0 ? Ne(e, t, n) : l(e);
}
-async function ht(e) {
+async function st(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -604,14 +602,14 @@ async function ht(e) {
await t(2e3);
}
}
-function gt(e) {
- let t = e.note || ((e) => h(e, {
+function ct(e) {
+ let t = e.note || ((e) => d(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || p, r = e.progress || ((e, t, n) => mt(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");
+ })), n = e.loading || l, 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, c = !1;
- ht({
+ st({
read: e.read,
active: () => !c && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -637,9 +635,9 @@ function gt(e) {
}
//#endregion
//#region node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
-var _t = 0;
+var lt = 0;
Array.isArray;
-function W(e, t, n, r, i, a) {
+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];
@@ -654,46 +652,46 @@ function W(e, t, n, r, i, a) {
__e: null,
__c: null,
constructor: void 0,
- __v: --_t,
+ __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 w.vnode && w.vnode(l), l;
+ return b.vnode && b.vnode(l), l;
}
//#endregion
//#region src/link-button.tsx
-function vt({ href: e, children: t }) {
- return /* @__PURE__ */ W("a", {
+function ut({ href: e, children: t }) {
+ return /* @__PURE__ */ q("a", {
class: "board-link-button",
href: e,
- children: [/* @__PURE__ */ W("span", { children: t }), /* @__PURE__ */ W("svg", {
+ children: [/* @__PURE__ */ q("span", { children: t }), /* @__PURE__ */ q("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ W("use", { href: "#i-arrow-up" })
+ children: /* @__PURE__ */ q("use", { href: "#i-arrow-up" })
})]
});
}
//#endregion
//#region src/split-action.tsx
-function yt({ id: e, label: t, actions: n, busy: r }) {
- let i = V(null), a = V();
- nt(() => {
+function dt({ id: e, label: t, actions: n, busy: r }) {
+ let i = U(null), a = U();
+ Ye(() => {
let e = i.current;
- return a.current = b(e, e.querySelector(".splittoggle"), e.querySelector("[role=menu]")), () => a.current?.setOpen(!1);
- }, []), nt(() => {
- i.current?.querySelectorAll("button").forEach((e) => y(e, r)), r && a.current?.setOpen(!1);
+ return a.current = g(e, e.querySelector(".splittoggle"), e.querySelector("[role=menu]")), () => a.current?.setOpen(!1);
+ }, []), Ye(() => {
+ i.current?.querySelectorAll("button").forEach((e) => h(e, r)), r && a.current?.setOpen(!1);
}, [r]);
- let o = (e) => /* @__PURE__ */ W("svg", {
+ let o = (e) => /* @__PURE__ */ q("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ W("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ q("use", { href: `#i-${e}` })
}), s = (e) => {
r || (a.current?.setOpen(!1), e.run());
};
- return /* @__PURE__ */ W("div", {
+ return /* @__PURE__ */ q("div", {
ref: i,
class: "splitbutton board-button-group primary",
onClickCapture: (e) => {
@@ -710,13 +708,13 @@ function yt({ id: e, label: t, actions: n, busy: r }) {
e.key === "Tab" && a.current?.setOpen(!1);
},
children: [
- /* @__PURE__ */ W("button", {
+ /* @__PURE__ */ q("button", {
type: "button",
class: "splitmain geist-button primary",
onClick: () => s(n[0]),
children: [o(n[0].icon), n[0].label]
}),
- /* @__PURE__ */ W("button", {
+ /* @__PURE__ */ q("button", {
type: "button",
class: "splittoggle geist-button primary",
"aria-label": t,
@@ -725,16 +723,16 @@ function yt({ id: e, label: t, actions: n, busy: r }) {
"aria-controls": e,
children: o("chevron-down")
}),
- /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ q("div", {
class: "popmenu cardmenupanel",
id: e,
role: "menu",
hidden: !0,
- children: n.map((e) => /* @__PURE__ */ W("button", {
+ children: n.map((e) => /* @__PURE__ */ q("button", {
type: "button",
role: "menuitem",
onClick: () => s(e),
- children: [o(e.icon), /* @__PURE__ */ W("span", { children: e.label })]
+ children: [o(e.icon), /* @__PURE__ */ q("span", { children: e.label })]
}, e.label))
})
]
@@ -742,65 +740,65 @@ function yt({ id: e, label: t, actions: n, busy: r }) {
}
//#endregion
//#region src/islands/library-processing.tsx
-var bt = (e, t) => U("/api/library-processing", t), xt = {
+var ft = (e, t) => G("/api/library-processing", t), pt = {
reading_local: "读取本地资料",
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
writing_candidates: "保存资料候选"
-}, St = {
+}, mt = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function Ct(e) {
- let t = Object.entries(e).filter(([e, t]) => St[e] && t > 0).map(([e, t]) => `${St[e]} ${t} 部`);
+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 wt(e) {
- let t = xt[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
+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 Tt = "peach.library-processing.announced", Et = 120;
-function Dt(e, 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 < Et;
+ 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(Tt) === e.job_id) return;
- e.job_id && localStorage.setItem(Tt, e.job_id);
+ 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 Ot({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, preview: o }) {
- let [s, c] = z(e || { status: "idle" }), [l, u] = z(t), [d, p] = z(!1), [m, _] = z(!1), v = V(new AbortController()), y = V(0), b = V(s.status), S = V(null);
- B(() => {
- S.current && x(S.current, ".geist-note-details", "library-issues");
- }, [s, l]);
- let C = d || s.status === "running";
+function bt({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, preview: o }) {
+ let [s, l] = V(e || { status: "idle" }), [u, p] = V(t), [m, h] = V(!1), [g, v] = V(!1), y = U(new AbortController()), b = U(0), x = U(s.status), S = U(null);
+ H(() => {
+ S.current && _(S.current, ".geist-note-details", "library-issues");
+ }, [s, u]);
+ let C = m || s.status === "running";
async function w() {
- let e = ++y.current;
- await ht({
- read: (e) => U("/api/library-processing", e),
- active: () => !v.current.signal.aborted && y.current === e,
+ let e = ++b.current;
+ await st({
+ read: (e) => G("/api/library-processing", e),
+ active: () => !y.current.signal.aborted && b.current === e,
keepWatching: i === "notice" || !!a,
render: (e) => {
- c(e), u("");
- let t = e.status === "complete" && b.current === "running";
- t && i !== "notice" && _(!0), (t || i === "notice") && Dt(e, n, t), b.current === "running" && (e.status === "complete" || e.status === "failed") && r?.(), b.current = e.status;
+ 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: () => u("连接中断,正在重新读取处理进度")
+ disconnected: () => p("连接中断,正在重新读取处理进度")
});
}
- B(() => (!o && (s.status === "running" || i === "notice" || a) && w(), () => v.current.abort()), []);
+ H(() => (!o && (s.status === "running" || i === "notice" || a) && w(), () => y.current.abort()), []);
async function T(e) {
if (!(C || o)) {
- p(!0), u(""), _(!1);
+ h(!0), p(""), v(!1);
try {
- let t = await pt("/api/library-processing", e, "POST", v.current.signal);
- if (v.current.signal.aborted) return;
- b.current = t.status, c(t), p(!1), await w();
+ let t = await K("/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) {
- v.current.signal.aborted || (u(H(e)), p(!1));
+ y.current.signal.aborted || (p(W(e)), h(!1));
}
}
}
@@ -811,17 +809,17 @@ function Ot({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, p
});
};
if (i === "notice") {
- if (!l && s.status !== "running" && s.status !== "failed") return null;
- let e = l || (s.status === "failed" ? "扫描与资料采集未完成" : wt(s) + (s.total ? ` · ${s.checked || 0} / ${s.total}` : ""));
- return /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: g(e, {
- variant: s.status === "failed" ? "error" : l || s.stalled ? "warning" : "gray",
+ if (!u && s.status !== "running" && s.status !== "failed") return null;
+ let e = u || (s.status === "failed" ? "扫描与资料采集未完成" : gt(s) + (s.total ? ` · ${s.checked || 0} / ${s.total}` : ""));
+ return /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: f(e, {
+ variant: s.status === "failed" ? "error" : u || s.stalled ? "warning" : "gray",
href: "/data-cleanup#libraryProcessing",
- label: l || s.status === "failed" ? "查看并处理" : "查看进度",
+ label: u || s.status === "failed" ? "查看并处理" : "查看进度",
value: s.checked || 0,
...s.status === "running" && s.total !== void 0 ? { max: s.total } : {}
}) } });
}
- let O = s.issue_preview || [], k = Ct(s.notes || {}), A = s.status === "failed" && !!s.retryable_asset_ids?.length, j = O.length ? {
+ let O = s.issue_preview || [], k = ht(s.notes || {}), A = s.status === "failed" && !!s.retryable_asset_ids?.length, j = O.length ? {
label: s.issues_truncated ? `问题清单:共 ${s.issue_count || 0} 项,展开查看前 ${O.length} 项` : `问题清单:共 ${s.issue_count || 0} 项`,
items: O.map((e) => ({
label: e.title || (e.asset_id ? `视频 ${e.asset_id}` : "媒体来源"),
@@ -831,33 +829,33 @@ function Ot({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, p
})),
footnote: s.issues_log ? `完整记录:${s.issues_log}` : ""
} : null;
- return /* @__PURE__ */ W(F, { children: [/* @__PURE__ */ W("section", {
+ return /* @__PURE__ */ q(F, { children: [/* @__PURE__ */ q("section", {
class: "cleanupfieldset",
"data-geist-fieldset": !0,
"aria-labelledby": "cleanupScrapingTitle",
- children: [/* @__PURE__ */ W("div", {
+ children: [/* @__PURE__ */ q("div", {
class: "geist-fieldset-content library-processing",
children: [
- /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: f("cleanupScrapingTitle", "扫描与采集") } }),
- /* @__PURE__ */ W("p", { children: "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。" }),
- s.status === "running" && /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: c("cleanupScrapingTitle", "扫描与采集") } }),
+ /* @__PURE__ */ q("p", { children: "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。" }),
+ s.status === "running" && /* @__PURE__ */ q("div", {
"aria-live": "polite",
- dangerouslySetInnerHTML: { __html: mt(s.total ? `${wt(s)} · ${s.checked || 0} / ${s.total} 个视频` : wt(s), s.checked, s.total) }
+ dangerouslySetInnerHTML: { __html: ot(s.total ? `${gt(s)} · ${s.checked || 0} / ${s.total} 个视频` : gt(s), s.checked, s.total) }
})
]
- }), /* @__PURE__ */ W("footer", {
+ }), /* @__PURE__ */ q("footer", {
class: "geist-fieldset-footer",
"data-geist-fieldset-footer": !0,
children: [
- /* @__PURE__ */ W(vt, {
+ /* @__PURE__ */ q(ut, {
href: "/scraping",
children: "来源和凭证"
}),
- !!s.candidates && /* @__PURE__ */ W(vt, {
+ !!s.candidates && /* @__PURE__ */ q(ut, {
href: "/review",
children: "复核资料"
}),
- (s.status !== "failed" || !A) && /* @__PURE__ */ W(yt, {
+ (s.status !== "failed" || !A) && /* @__PURE__ */ q(dt, {
id: "libraryProcessingMenu",
label: "更多扫描与采集方式",
busy: C,
@@ -881,51 +879,51 @@ function Ot({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, p
})
]
})]
- }), /* @__PURE__ */ W("div", {
+ }), /* @__PURE__ */ q("div", {
class: "library-processing-outcome",
"aria-live": "polite",
ref: S,
children: [
- s.status === "running" && s.stalled && /* @__PURE__ */ W("div", {
+ s.status === "running" && s.stalled && /* @__PURE__ */ q("div", {
class: "library-processing-stalled",
- dangerouslySetInnerHTML: { __html: h("这个项目处理时间较长,暂时没有新进展。可以继续等待,或在任务结束后重试未完成项。", {
+ dangerouslySetInnerHTML: { __html: d("这个项目处理时间较长,暂时没有新进展。可以继续等待,或在任务结束后重试未完成项。", {
variant: "warning",
label: "处理较慢",
filled: !0
}) }
}),
- (l || s.status === "failed") && /* @__PURE__ */ W("div", {
+ (u || s.status === "failed") && /* @__PURE__ */ q("div", {
role: "alert",
onClick: (e) => {
e.target.closest("[data-note-action]") && D();
},
- dangerouslySetInnerHTML: { __html: h(l || s.error || "处理未完成,请重试", {
+ dangerouslySetInnerHTML: { __html: d(u || s.error || "处理未完成,请重试", {
variant: "error",
filled: !0,
actionLabel: A ? "重试未完成项" : "",
details: j
}) }
}),
- m && /* @__PURE__ */ W("div", {
+ g && /* @__PURE__ */ q("div", {
class: "library-processing-result",
- dangerouslySetInnerHTML: { __html: h(`已扫描 ${s.scanned || 0} 个文件,识别 ${s.identified || 0} 个番号,整理 ${s.candidates || 0} 组资料候选。`, {
+ dangerouslySetInnerHTML: { __html: d(`已扫描 ${s.scanned || 0} 个文件,识别 ${s.identified || 0} 个番号,整理 ${s.candidates || 0} 组资料候选。`, {
variant: "success",
label: "处理完成"
}) }
}),
- s.status !== "running" && !!k && /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: h(k + (s.issues_log ? ` 完整记录:${s.issues_log}` : ""), { variant: "secondary" }) } })
+ s.status !== "running" && !!k && /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: d(k + (s.issues_log ? ` 完整记录:${s.issues_log}` : ""), { variant: "secondary" }) } })
]
})] });
}
//#endregion
//#region src/management.ts
-function kt(e) {
+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 At(e, t) {
+function St(e, t) {
return t.filter((t) => e.some((e) => e.location === t));
}
-function jt() {
+function Ct() {
let e = [
["人工复核", "square-check-big"],
["高清版", "sparkles"],
@@ -970,7 +968,7 @@ function jt() {
<div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" type="button" disabled>检查文件</button></div>
</div></section></div>`;
}
-function Mt(e, t = !1, n = !1) {
+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" : ""}>
@@ -984,17 +982,17 @@ function Mt(e, t = !1, n = !1) {
<button type="button" class="geist-button taste-guide-skip">跳过</button>
</div></details>`;
}
-var Nt = "peach-taste-guide-dismissed";
-function Pt(e, t) {
- x(e, ".taste-history-guide", "taste-guide-collapse");
+var Tt = "peach-taste-guide-dismissed";
+function Et(e, t) {
+ _(e, ".taste-history-guide", "taste-guide-collapse");
let n = e.querySelector(".taste-history-guide");
n?.querySelector(".taste-guide-skip")?.addEventListener("click", () => {
- t.setItem(Nt, "1"), n.remove();
+ t.setItem(Tt, "1"), n.remove();
});
}
//#endregion
//#region src/board-state-preview.tsx
-var Ft = [
+var Dt = [
["idle", "待开始"],
["loading", "页面加载"],
["preparing", "准备任务"],
@@ -1006,9 +1004,9 @@ var Ft = [
["complete", "任务完成"],
["expired", "状态已失效"],
["paused", "来源已暂停"]
-], G = ({ html: e }) => /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: e } });
-function It() {
- let [e, t] = z("running"), [n, r] = z(0), [i, a] = z(document.documentElement.dataset.theme === "dark"), [o, s] = z(38), c = {
+], J = ({ html: e }) => /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: e } });
+function Ot() {
+ let [e, t] = V("running"), [n, r] = V(0), [i, a] = V(document.documentElement.dataset.theme === "dark"), [o, s] = V(38), c = {
status: e === "failed" ? "failed" : [
"running",
"preparing",
@@ -1029,20 +1027,20 @@ function It() {
}] : [],
issues_log: e === "failed" ? "peach-data\\state\\library-processing-preview.issues.jsonl" : "",
retryable_asset_ids: e === "failed" ? [7] : []
- }, l = e === "disconnected" ? "连接中断,正在重新读取处理进度" : "";
- return /* @__PURE__ */ W("main", {
+ }, u = e === "disconnected" ? "连接中断,正在重新读取处理进度" : "";
+ return /* @__PURE__ */ q("main", {
class: "board-state-preview",
children: [
- /* @__PURE__ */ W("header", { children: [/* @__PURE__ */ W("div", { children: [/* @__PURE__ */ W("h1", { children: "运行状态预览" }), /* @__PURE__ */ W("p", { children: "演示数据 · 不连接任务接口,不执行扫描或写入。" })] }), /* @__PURE__ */ W("button", {
+ /* @__PURE__ */ q("header", { children: [/* @__PURE__ */ q("div", { children: [/* @__PURE__ */ q("h1", { children: "运行状态预览" }), /* @__PURE__ */ q("p", { children: "演示数据 · 不连接任务接口,不执行扫描或写入。" })] }), /* @__PURE__ */ q("button", {
class: "geist-button",
onClick: () => {
document.documentElement.dataset.theme = i ? "light" : "dark", a(!i);
},
children: i ? "浅色" : "深色"
})] }),
- /* @__PURE__ */ W("nav", {
+ /* @__PURE__ */ q("nav", {
"aria-label": "演示状态",
- children: Ft.map(([i, a]) => /* @__PURE__ */ W("button", {
+ children: Dt.map(([i, a]) => /* @__PURE__ */ q("button", {
class: "geist-button",
"aria-pressed": e === i,
onClick: () => {
@@ -1051,31 +1049,31 @@ function It() {
children: a
}))
}),
- /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ q("div", {
class: "board-preview-tools",
- children: [/* @__PURE__ */ W("label", { children: [
+ children: [/* @__PURE__ */ q("label", { children: [
"任务进度 ",
- /* @__PURE__ */ W("input", {
+ /* @__PURE__ */ q("input", {
type: "range",
min: "0",
max: "100",
value: o,
onInput: (e) => s(Number(e.currentTarget.value))
}),
- /* @__PURE__ */ W("output", { children: [o, "%"] })
- ] }), /* @__PURE__ */ W("button", {
+ /* @__PURE__ */ q("output", { children: [o, "%"] })
+ ] }), /* @__PURE__ */ q("button", {
class: "geist-button",
onClick: () => r(n + 1),
children: "重播状态"
})]
}),
- /* @__PURE__ */ W("section", {
+ /* @__PURE__ */ q("section", {
"aria-label": "页面横幅",
children: [
- /* @__PURE__ */ W("h2", { children: "全局任务横幅" }),
- /* @__PURE__ */ W(Ot, {
+ /* @__PURE__ */ q("h2", { children: "全局任务横幅" }),
+ /* @__PURE__ */ q(bt, {
data: c,
- error: l,
+ error: u,
mode: "notice",
preview: !0,
toast: () => {}
@@ -1087,70 +1085,70 @@ function It() {
"retrying",
"reconnected",
"failed"
- ].includes(e) && /* @__PURE__ */ W("p", { children: "此状态不常驻全局横幅。" })
+ ].includes(e) && /* @__PURE__ */ q("p", { children: "此状态不常驻全局横幅。" })
]
}),
- /* @__PURE__ */ W("section", { children: [
- /* @__PURE__ */ W("h2", { children: "数据管理 · 扫描与采集" }),
- e === "loading" ? /* @__PURE__ */ W(G, { html: jt() }) : /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ q("section", { children: [
+ /* @__PURE__ */ q("h2", { children: "数据管理 · 扫描与采集" }),
+ e === "loading" ? /* @__PURE__ */ q(J, { html: Ct() }) : /* @__PURE__ */ q("div", {
class: "cleanupgrid",
- children: /* @__PURE__ */ W("div", {
+ children: /* @__PURE__ */ q("div", {
id: "libraryProcessing",
class: "cleanupscraping",
- children: /* @__PURE__ */ W(Ot, {
+ children: /* @__PURE__ */ q(bt, {
data: c,
- error: l,
+ error: u,
preview: !0,
toast: () => {}
}, `${e}-${n}-${o}`)
})
}),
- e === "complete" && /* @__PURE__ */ W(G, { html: h("已完成扫描与资料采集", {
+ e === "complete" && /* @__PURE__ */ q(J, { html: d("已完成扫描与资料采集", {
variant: "success",
label: "任务完成"
}) }),
- e === "expired" && /* @__PURE__ */ W(G, { html: h("任务状态已失效,请重新发起任务", { variant: "warning" }) }),
- e === "paused" && /* @__PURE__ */ W("span", {
+ e === "expired" && /* @__PURE__ */ q(J, { html: d("任务状态已失效,请重新发起任务", { variant: "warning" }) }),
+ e === "paused" && /* @__PURE__ */ q("span", {
class: "sbadge paused",
children: "已暂停"
})
] }),
- /* @__PURE__ */ W("section", { children: [/* @__PURE__ */ W("h2", { children: "关注检查与资源同步" }), /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ q("section", { children: [/* @__PURE__ */ q("h2", { children: "关注检查与资源同步" }), /* @__PURE__ */ q("div", {
class: "board-preview-grid",
- children: [/* @__PURE__ */ W("article", { children: [/* @__PURE__ */ W("h3", { children: "检查更新" }), /* @__PURE__ */ W(G, { html: e === "disconnected" ? h("暂时无法读取进度,正在重新连接…", { label: "任务状态" }) : e === "failed" ? h("检查失败:来源连接超时", {
+ children: [/* @__PURE__ */ q("article", { children: [/* @__PURE__ */ q("h3", { children: "检查更新" }), /* @__PURE__ */ q(J, { html: e === "disconnected" ? d("暂时无法读取进度,正在重新连接…", { label: "任务状态" }) : e === "failed" ? d("检查失败:来源连接超时", {
variant: "error",
actionLabel: "重试"
- }) : e === "running" || e === "retrying" || e === "reconnected" ? ze(`${e === "retrying" ? "第 2/3 次尝试,8 秒后重试 · " : ""}已完成 ${o}/100 个来源`, o, 100) : e === "preparing" ? p("正在准备检查任务…") : h(e === "complete" ? "已完成检查" : e === "paused" ? "已暂停自动检查" : e === "expired" ? "任务状态已失效,请重新发起任务" : "等待开始", { variant: e === "complete" ? "success" : "secondary" }) })] }), /* @__PURE__ */ W("article", { children: [
- /* @__PURE__ */ W("h3", { children: "连接与恢复" }),
- /* @__PURE__ */ W(G, { html: g(e === "disconnected" ? "暂时无法连接服务器,正在重连" : e === "reconnected" ? "连接已恢复,继续读取任务进度" : "连接正常", {
+ }) : e === "running" || e === "retrying" || e === "reconnected" ? Ne(`${e === "retrying" ? "第 2/3 次尝试,8 秒后重试 · " : ""}已完成 ${o}/100 个来源`, o, 100) : e === "preparing" ? l("正在准备检查任务…") : d(e === "complete" ? "已完成检查" : e === "paused" ? "已暂停自动检查" : e === "expired" ? "任务状态已失效,请重新发起任务" : "等待开始", { variant: e === "complete" ? "success" : "secondary" }) })] }), /* @__PURE__ */ q("article", { children: [
+ /* @__PURE__ */ q("h3", { children: "连接与恢复" }),
+ /* @__PURE__ */ q(J, { html: f(e === "disconnected" ? "暂时无法连接服务器,正在重连" : e === "reconnected" ? "连接已恢复,继续读取任务进度" : "连接正常", {
variant: e === "disconnected" ? "warning" : "gray",
href: "#",
label: "查看状态"
}) }),
- /* @__PURE__ */ W("p", { children: "失去连接只影响进度读取;恢复连接后继续展示任务状态。" })
+ /* @__PURE__ */ q("p", { children: "失去连接只影响进度读取;恢复连接后继续展示任务状态。" })
] })]
})] }),
- /* @__PURE__ */ W("section", { children: [/* @__PURE__ */ W("h2", { children: "错误与加载状态一览" }), /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ q("section", { children: [/* @__PURE__ */ q("h2", { children: "错误与加载状态一览" }), /* @__PURE__ */ q("div", {
class: "board-preview-grid",
children: [
- /* @__PURE__ */ W("article", { children: [/* @__PURE__ */ W("h3", { children: "读取失败" }), /* @__PURE__ */ W(G, { html: h("无法读取状态,请重试", {
+ /* @__PURE__ */ q("article", { children: [/* @__PURE__ */ q("h3", { children: "读取失败" }), /* @__PURE__ */ q(J, { html: d("无法读取状态,请重试", {
variant: "error",
actionLabel: "重试"
}) })] }),
- /* @__PURE__ */ W("article", { children: [/* @__PURE__ */ W("h3", { children: "来源离线" }), /* @__PURE__ */ W(G, { html: h("媒体来源离线,请检查挂载状态", { variant: "warning" }) })] }),
- /* @__PURE__ */ W("article", { children: [/* @__PURE__ */ W("h3", { children: "没有待处理内容" }), /* @__PURE__ */ W(G, { html: h("没有待处理内容", { variant: "secondary" }) })] }),
- /* @__PURE__ */ W("article", { children: [/* @__PURE__ */ W("h3", { children: "等待响应" }), /* @__PURE__ */ W(G, { html: p("正在读取来源状态") })] })
+ /* @__PURE__ */ q("article", { children: [/* @__PURE__ */ q("h3", { children: "来源离线" }), /* @__PURE__ */ q(J, { html: d("媒体来源离线,请检查挂载状态", { variant: "warning" }) })] }),
+ /* @__PURE__ */ q("article", { children: [/* @__PURE__ */ q("h3", { children: "没有待处理内容" }), /* @__PURE__ */ q(J, { html: d("没有待处理内容", { variant: "secondary" }) })] }),
+ /* @__PURE__ */ q("article", { children: [/* @__PURE__ */ q("h3", { children: "等待响应" }), /* @__PURE__ */ q(J, { html: l("正在读取来源状态") })] })
]
})] })
]
});
}
-function Lt(e) {
- Me(le(It, {}), e);
+function kt(e) {
+ Ee(ie(Ot, {}), e);
}
//#endregion
//#region src/board-controls.ts
-function Rt(e) {
+function At(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");
@@ -1160,17 +1158,17 @@ function Rt(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 zt() {
+function jt() {
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(Rt), Ut(e), Vt(e), Wt(e);
+ e.querySelectorAll("input[type=range]").forEach(At), Ft(e), Nt(e), It(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]") && Rt(t), e(t));
+ for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && At(t), e(t));
}).observe(document.body, {
subtree: !0,
childList: !0
}), document.addEventListener("input", (e) => {
- e.target instanceof HTMLInputElement && e.target.type === "range" && Rt(e.target);
+ e.target instanceof HTMLInputElement && e.target.type === "range" && At(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);
@@ -1191,8 +1189,8 @@ function zt() {
e.key === "Escape" && o();
}), document.addEventListener("scroll", o, !0), window.addEventListener("resize", o);
}
-var Bt = /* @__PURE__ */ new Map();
-function Vt(e) {
+var Mt = /* @__PURE__ */ new Map();
+function Nt(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;
@@ -1206,8 +1204,8 @@ function Vt(e) {
left: r.offsetLeft,
width: r.offsetWidth
};
- n(i), Bt.set(t, i);
- }, i = Bt.get(t);
+ n(i), Mt.set(t, i);
+ }, i = Mt.get(t);
i ? n(i) : r(), requestAnimationFrame(() => {
e.classList.add("board-tabs-ready"), requestAnimationFrame(r);
});
@@ -1227,15 +1225,15 @@ function Vt(e) {
o.observe(e);
});
}
-var Ht = /* @__PURE__ */ new Map();
-function Ut(e) {
+var Pt = /* @__PURE__ */ new Map();
+function Ft(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 = Ht.get(n) ?? null, i = () => {
+ let n = e.className + (e.getAttribute("aria-label") ?? ""), r = Pt.get(n) ?? null, i = () => {
let i = e.querySelector("label:has(input:checked),button[aria-selected=true]");
if (!i || !i.offsetWidth) return;
let a = {
@@ -1244,7 +1242,7 @@ function Ut(e) {
w: i.offsetWidth,
h: i.offsetHeight
};
- m(t, r, a, "x"), r = a, Ht.set(n, a);
+ u(t, r, a, "x"), r = a, Pt.set(n, a);
};
e.addEventListener("change", i);
let a = new MutationObserver(i);
@@ -1263,7 +1261,7 @@ function Ut(e) {
o.observe(e), i(), requestAnimationFrame(() => e.classList.add("board-segments-ready"));
});
}
-function Wt(e) {
+function It(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;
@@ -1281,7 +1279,7 @@ function Wt(e) {
n.observe(e);
});
}
-function Gt(e) {
+function Lt(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");
@@ -1313,7 +1311,7 @@ function Gt(e) {
}
//#endregion
//#region node_modules/d3-array/src/max.js
-function Kt(e, t) {
+function Rt(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 {
@@ -1324,7 +1322,7 @@ function Kt(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/min.js
-function qt(e, t) {
+function zt(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 {
@@ -1335,7 +1333,7 @@ function qt(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/sum.js
-function Jt(e, t) {
+function Bt(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -1346,66 +1344,66 @@ function Jt(e, t) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function Yt(e, t) {
+function Vt(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
//#region node_modules/d3-sankey/src/constant.js
-function Xt(e) {
+function Ht(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-sankey/src/sankey.js
-function Zt(e, t) {
- return $t(e.source, t.source) || e.index - t.index;
+function Ut(e, t) {
+ return Gt(e.source, t.source) || e.index - t.index;
}
-function Qt(e, t) {
- return $t(e.target, t.target) || e.index - t.index;
+function Wt(e, t) {
+ return Gt(e.target, t.target) || e.index - t.index;
}
-function $t(e, t) {
+function Gt(e, t) {
return e.y0 - t.y0;
}
-function en(e) {
+function Kt(e) {
return e.value;
}
-function tn(e) {
+function qt(e) {
return e.index;
}
-function nn(e) {
+function Jt(e) {
return e.nodes;
}
-function rn(e) {
+function Yt(e) {
return e.links;
}
-function an(e, t) {
+function Xt(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function on({ nodes: e }) {
+function Zt({ 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 sn() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = tn, c = Yt, l, u, d = nn, f = rn, p = 6;
+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 m() {
let e = {
nodes: d.apply(null, arguments),
links: f.apply(null, arguments)
};
- return h(e), g(e), _(e), v(e), x(e), on(e), e;
+ return h(e), g(e), _(e), v(e), x(e), Zt(e), e;
}
m.update = function(e) {
- return on(e), e;
+ return Zt(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : Xt(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : Ht(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : Xt(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : Ht(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -1413,9 +1411,9 @@ function sn() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : Xt(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : Ht(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : Xt(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : Ht(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -1431,12 +1429,12 @@ function sn() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = an(n, t)), typeof i != "object" && (i = r.target = an(n, i)), t.sourceLinks.push(r), i.targetLinks.push(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);
}
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(Jt(t.sourceLinks, en), Jt(t.targetLinks, en)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(Bt(t.sourceLinks, Kt), Bt(t.targetLinks, Kt)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -1461,7 +1459,7 @@ function sn() {
}
}
function y({ nodes: t }) {
- let r = Kt(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = Rt(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];
@@ -1470,7 +1468,7 @@ function sn() {
return o;
}
function b(e) {
- let n = qt(e, (e) => (r - t - (e.length - 1) * o) / Jt(e, en));
+ let n = zt(e, (e) => (r - t - (e.length - 1) * o) / Bt(e, Kt));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -1487,7 +1485,7 @@ function sn() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (Kt(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (Rt(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);
@@ -1506,7 +1504,7 @@ function sn() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort($t), w(i, n);
+ l === void 0 && i.sort(Gt), w(i, n);
}
}
function C(e, t, n) {
@@ -1522,7 +1520,7 @@ function sn() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort($t), w(i, n);
+ l === void 0 && i.sort(Gt), w(i, n);
}
}
function w(e, n) {
@@ -1543,12 +1541,12 @@ function sn() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(Qt);
- for (let { target: { targetLinks: t } } of e) t.sort(Zt);
+ for (let { source: { sourceLinks: e } } of t) e.sort(Wt);
+ for (let { target: { targetLinks: t } } of e) t.sort(Ut);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(Qt), n.sort(Zt);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(Wt), n.sort(Ut);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -1578,15 +1576,15 @@ function sn() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var cn = Math.PI, ln = 2 * cn, K = 1e-6, un = ln - K;
-function dn() {
+var $t = Math.PI, en = 2 * $t, Y = 1e-6, tn = en - Y;
+function nn() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function fn() {
- return new dn();
+function rn() {
+ return new nn();
}
-dn.prototype = fn.prototype = {
- constructor: dn,
+nn.prototype = rn.prototype = {
+ constructor: nn,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -1607,11 +1605,11 @@ dn.prototype = fn.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 > K) {
- if (!(Math.abs(u * s - c * l) > K) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > Y) {
+ if (!(Math.abs(u * s - c * l) > Y) || !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((cn - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > K && (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(($t - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > Y && (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);
}
}
},
@@ -1619,7 +1617,7 @@ dn.prototype = fn.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) > K || Math.abs(this._y1 - l) > K) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % ln + ln), d > un ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > K && (this._ += "A" + n + "," + n + ",0," + +(d >= cn) + "," + 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) > Y || Math.abs(this._y1 - l) > Y) && (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 > Y && (this._ += "A" + n + "," + n + ",0," + +(d >= $t) + "," + 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";
@@ -1630,71 +1628,71 @@ dn.prototype = fn.prototype = {
};
//#endregion
//#region node_modules/d3-shape/src/constant.js
-function pn(e) {
+function an(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function mn(e) {
+function on(e) {
return e[0];
}
-function hn(e) {
+function sn(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var gn = Array.prototype.slice;
+var cn = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function _n(e) {
+function ln(e) {
return e.source;
}
-function vn(e) {
+function un(e) {
return e.target;
}
-function yn(e) {
- var t = _n, n = vn, r = mn, i = hn, a = null;
+function dn(e) {
+ var t = ln, n = un, r = on, i = sn, a = null;
function o() {
- var o, s = gn.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = fn(), 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 = 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;
}
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 : pn(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : an(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : pn(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : an(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function bn(e, t, n, r, i) {
+function fn(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function xn() {
- return yn(bn);
+function pn() {
+ return dn(fn);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function Sn(e) {
+function mn(e) {
return [e.source.x1, e.y0];
}
-function Cn(e) {
+function hn(e) {
return [e.target.x0, e.y1];
}
-function wn() {
- return xn().source(Sn).target(Cn);
+function gn() {
+ return pn().source(mn).target(hn);
}
//#endregion
//#region src/board-sankey.ts
-function Tn(e = []) {
- let n = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
+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 = sn().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
+ 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) => ({
id: `source:${e}`,
name: e,
@@ -1709,13 +1707,13 @@ function Tn(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), o = n.reduce((e, t) => e + t.value, 0), s = wn(), c = a.links.map((e) => {
- let n = e.source, i = e.target;
- return `<path d="${s(e)}" stroke-width="${Math.max(.5, e.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="${e.value}" data-flow-label="${t(n.name)} → ${t(i.name)}" tabindex="0" role="img" aria-label="${t(n.name)} → ${t(i.name)}:${e.value} 条线索"/>`;
- }).join(""), l = a.nodes.map((e) => `<g data-flow-node="${e.index}" data-flow-value="${e.value}" data-flow-label="${t(e.name)}" tabindex="0" role="img" aria-label="${t(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-${r.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">${t(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) / o * 100).toFixed(1) + "%"}</tspan></text></g>`).join("");
+ }), 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>`;
}
-function En(e) {
+function vn(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 = "条线索";
@@ -1731,17 +1729,17 @@ function En(e) {
}
//#endregion
//#region src/board-analytics.ts
-var Dn = (e) => Number.isFinite(e) && e >= 0;
-function On(e, n, r = "个视频") {
- let i = e.filter((e) => Dn(e.value));
+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((e, n) => {
- let i = 32 + n * s, a = e.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="${t(e.name)}:${e.value.toLocaleString()} ${t(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>`;
+ 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>`;
}).join("");
- return `<section class="board-radial-card" data-radial-card data-radial-total="${a}" data-radial-title="${t(n)}"><header><span data-radial-label>${t(n)}</span><b data-radial-number>${a.toLocaleString()}</b><small>${t(r)}</small></header><svg class="board-rings" viewBox="0 0 320 320" aria-label="${t(n)}">${l}</svg><div class="board-radial-tiles">${i.map((e, n) => `<button type="button" data-radial-tile="${n}" data-radial-value="${e.value}" data-radial-name="${t(e.name)}" aria-pressed="false" style="--ring-color:var(--board-chart-${n % 6})"><span><i aria-hidden="true"></i>${t(e.name)}</span><b>${e.value.toLocaleString()}</b>${e.detail ? `<small>${t(e.detail)}</small>` : ""}</button>`).join("")}</div></section>`;
+ 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>`;
}
-function kn(e) {
+function xn(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) => {
@@ -1778,7 +1776,7 @@ function kn(e) {
}
});
}
-var An = [
+var Sn = [
"周一",
"周二",
"周三",
@@ -1787,11 +1785,11 @@ var An = [
"周六",
"周日"
];
-function jn(e) {
- if (!e?.days?.length) return "<section class=\"board-activity-empty\"><h3>浏览活跃时间</h3><p>还没有可用于分析的口味网站访问记录。</p></section>";
+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 t of e.hours || []) Number.isInteger(t.weekday) && t.weekday >= 0 && t.weekday < 7 && Number.isInteger(t.hour) && t.hour >= 0 && t.hour < 24 && Dn(t.count) && (n[t.weekday][t.hour] = (n[t.weekday][t.hour] || 0) + t.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">${An[t]}</span>${e.map((e, n) => `<button type="button" data-heat-value="${e}" data-heat-label="${An[t]} ${n}:00" aria-label="${An[t]} ${n}:00,${e} 次访问" style="--heat:${e ? Math.max(12, e / r * 100) : 0}%"></button>`).join("")}`).join(""), o = e.days.filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && Dn(e.count)).sort((e, t) => e.date.localeCompare(t.date));
+ 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);
@@ -1801,9 +1799,9 @@ function jn(e) {
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>`;
}).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>${t(e.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>${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>`;
}
-function Mn(e) {
+function wn(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) => {
@@ -1818,19 +1816,19 @@ function Mn(e) {
}
//#endregion
//#region src/sidebar-groups.ts
-var Nn = (e) => e.replace(/[&<>"']/g, (e) => ({
+var Tn = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function Pn(e, t, n = "", r = "") {
+function En(e, t, n = "", r = "") {
if (!t) return "";
let i = `sidebar-group-${encodeURIComponent(e)}`;
- return `<details class="sec${r ? " cat-" + Nn(r) : ""}" data-sidebar-group="${Nn(e)}"><summary role="button" class="board-section-toggle"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-right"/></svg><span>${Nn(e)}</span></summary><div class="board-sidebar-body" id="${i}">${t}${n}</div></details>`;
+ 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>`;
}
-function Fn(e) {
+function Dn(e) {
e.querySelectorAll("[data-sidebar-group]").forEach((e) => {
if (e.dataset.sidebarWired) return;
e.dataset.sidebarWired = "true";
@@ -1840,7 +1838,7 @@ function Fn(e) {
} catch {}
let i = !!t.querySelector("[aria-pressed=true]");
e.open = r === null ? i : r === "open";
- }), x(e, "details[data-sidebar-group]", "sidebar-collapse"), e.querySelectorAll(".board-section-toggle").forEach((e) => {
+ }), _(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 {
@@ -1849,15 +1847,15 @@ function Fn(e) {
}));
});
}
-var In = !1;
-async function Ln(e, t) {
- if (In) return;
+var On = !1;
+async function kn(e, t) {
+ if (On) 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}}`, In = !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}}`, On = !0, document.head.append(o);
let s = document.documentElement;
s.dataset.themeSnapshot = "true";
let c = !1, l = () => {
@@ -1868,19 +1866,19 @@ async function Ln(e, t) {
} catch {
l();
} finally {
- delete s.dataset.themeSnapshot, o.remove(), In = !1;
+ delete s.dataset.themeSnapshot, o.remove(), On = !1;
}
}
//#endregion
//#region src/configuration-endpoints.ts
-var Rn = "/api/configuration";
+var An = "/api/configuration";
//#endregion
//#region src/react-slot.tsx
-function zn({ mount: e, props: t }) {
- let n = V(null), r = V(null), i = V(t);
+function jn({ mount: e, props: t }) {
+ let n = U(null), r = U(null), i = U(t);
i.current = t;
- let [a, o] = z("");
- return B(() => {
+ let [a, o] = V("");
+ return H(() => {
let t = !1;
return import("/dist/peach-react.js").then((a) => {
if (t || !n.current) return;
@@ -1891,24 +1889,24 @@ function zn({ mount: e, props: t }) {
}), () => {
t = !0, r.current?.unmount(), r.current = null;
};
- }, [e]), B(() => {
+ }, [e]), H(() => {
r.current?.update(t);
- }), a ? /* @__PURE__ */ W("p", {
+ }), a ? /* @__PURE__ */ q("p", {
class: "configbad",
role: "alert",
children: ["界面组件没有加载:", a]
- }) : /* @__PURE__ */ W("div", {
+ }) : /* @__PURE__ */ q("div", {
ref: n,
class: "peach-react"
});
}
//#endregion
//#region src/islands/configuration.tsx
-var Bn = (e, t) => U(Rn, t);
-function Vn({ receipt: e, data: t, error: n }) {
- if (n || !t) return /* @__PURE__ */ W("div", {
+var Mn = (e, t) => G(An, t);
+function Nn({ receipt: e, data: t, error: n }) {
+ if (n || !t) return /* @__PURE__ */ q("div", {
class: "configpage",
- dangerouslySetInnerHTML: { __html: h(n || "没有读到配置", {
+ dangerouslySetInnerHTML: { __html: d(n || "没有读到配置", {
variant: "error",
label: "打不开配置"
}) }
@@ -1917,38 +1915,38 @@ function Vn({ receipt: e, data: t, error: n }) {
data: t,
receipt: e
};
- return /* @__PURE__ */ W("div", {
+ return /* @__PURE__ */ q("div", {
class: "configpage",
children: [
- t.startup ? /* @__PURE__ */ W("h2", {
+ t.startup ? /* @__PURE__ */ q("h2", {
class: "configgroup",
children: "通用"
}) : null,
- t.startup ? /* @__PURE__ */ W(zn, {
+ t.startup ? /* @__PURE__ */ q(jn, {
mount: "mountGeneralSettings",
props: r
}) : null,
- /* @__PURE__ */ W("h2", {
+ /* @__PURE__ */ q("h2", {
class: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ W(zn, {
+ /* @__PURE__ */ q(jn, {
mount: "mountMediaSettings",
props: r
}),
- t.peach_proxy || t.access ? /* @__PURE__ */ W("h2", {
+ t.peach_proxy || t.access ? /* @__PURE__ */ q("h2", {
class: "configgroup",
children: "网络与访问"
}) : null,
- t.peach_proxy || t.access ? /* @__PURE__ */ W(zn, {
+ t.peach_proxy || t.access ? /* @__PURE__ */ q(jn, {
mount: "mountNetworkSettings",
props: r
}) : null,
- /* @__PURE__ */ W("h2", {
+ /* @__PURE__ */ q("h2", {
class: "configgroup",
children: "更新与维护"
}),
- /* @__PURE__ */ W(zn, {
+ /* @__PURE__ */ q(jn, {
mount: "mountMaintenanceSettings",
props: r
})
@@ -1956,689 +1954,161 @@ function Vn({ receipt: e, data: t, error: n }) {
});
}
//#endregion
-//#region node_modules/@preact/signals-core/dist/signals-core.module.js
-var Hn = Symbol.for("preact-signals");
-function Un() {
- if (J > 1) J--;
- else {
- var e, t = !1;
- for ((function() {
- var e = Zn;
- for (Zn = void 0; e !== void 0;) {
- var t = e.S;
- if (t.v === e.v) for (var n = t.t; n !== void 0; n = n.x) n.i === e.i && (n.i = t.i);
- e = e.o;
- }
- })(); qn !== void 0;) {
- var n = qn;
- for (qn = void 0, Jn++; n !== void 0;) {
- var r = n.u;
- if (n.u = void 0, n.f &= -3, !(8 & n.f) && tr(n)) try {
- n.c();
- } catch (n) {
- t ||= (e = n, !0);
- }
- n = r;
- }
- }
- if (Jn = 0, J--, t) throw e;
- }
-}
-function Wn(e) {
- if (J > 0) return e();
- Xn = ++Yn, J++;
- try {
- return e();
- } finally {
- Un();
- }
-}
-var Gn, q = void 0;
-function Kn(e) {
- var t = q, n = Gn;
- q = void 0, Gn = void 0;
- try {
- return e();
- } finally {
- q = t, Gn = n;
- }
-}
-var qn = void 0, J = 0, Jn = 0, Yn = 0, Xn = 0, Zn = void 0, Qn = 0;
-function $n(e) {
- if (q !== void 0) {
- var t = e.n;
- if (t === void 0 || t.t !== q) return t = {
- i: 0,
- S: e,
- p: q.s,
- n: void 0,
- t: q,
- e: void 0,
- x: void 0,
- r: t
- }, q.s !== void 0 && (q.s.n = t), q.s = t, e.n = t, 32 & q.f && e.S(t), t;
- if (t.i === -1) return t.i = 0, t.n !== void 0 && (t.n.p = t.p, t.p !== void 0 && (t.p.n = t.n), t.p = q.s, t.n = void 0, q.s.n = t, q.s = t), t;
- }
-}
-function Y(e, t) {
- this.v = e, this.i = 0, this.n = void 0, this.t = void 0, this.l = 0, this.W = t?.watched, this.Z = t?.unwatched, this.name = t?.name;
-}
-Y.prototype.brand = Hn, Y.prototype.h = function() {
- return !0;
-}, Y.prototype.S = function(e) {
- var t = this, n = this.t;
- n !== e && e.e === void 0 && (e.x = n, this.t = e, n === void 0 ? Kn(function() {
- var e;
- (e = t.W) == null || e.call(t);
- }) : n.e = e);
-}, Y.prototype.U = function(e) {
- var t = this;
- if (this.t !== void 0) {
- var n = e.e, r = e.x;
- n !== void 0 && (n.x = r, e.e = void 0), r !== void 0 && (r.e = n, e.x = void 0), e === this.t && (this.t = r, r === void 0 && Kn(function() {
- var e;
- (e = t.Z) == null || e.call(t);
- }));
- }
-}, Y.prototype.subscribe = function(e) {
- var t = this;
- return lr(function() {
- var n = t.value;
- Kn(function() {
- return e(n);
- });
- }, { name: "sub" });
-}, Y.prototype.valueOf = function() {
- return this.value;
-}, Y.prototype.toString = function() {
- return this.value + "";
-}, Y.prototype.toJSON = function() {
- return this.value;
-}, Y.prototype.peek = function() {
- var e = this;
- return Kn(function() {
- return e.value;
- });
-}, Object.defineProperty(Y.prototype, "value", {
- get: function() {
- var e = $n(this);
- return e !== void 0 && (e.i = this.i), this.v;
- },
- set: function(e) {
- if (e !== this.v) {
- if (Jn > 100) throw Error("Cycle detected");
- (function(e) {
- J !== 0 && Jn === 0 && e.l !== Xn && (e.l = Xn, Zn = {
- S: e,
- v: e.v,
- i: e.i,
- o: Zn
- });
- })(this), this.v = e, this.i++, Qn++, J++;
- try {
- for (var t = this.t; t !== void 0; t = t.x) t.t.N();
- } finally {
- Un();
- }
- }
- }
-});
-function er(e, t) {
- return new Y(e, t);
-}
-function tr(e) {
- for (var t = e.s; t !== void 0; t = t.n) if (t.S.i !== t.i || !t.S.h() || t.S.i !== t.i) return !0;
- return !1;
-}
-function nr(e) {
- for (var t = e.s; t !== void 0; t = t.n) {
- var n = t.S.n;
- if (n !== void 0 && (t.r = n), t.S.n = t, t.i = -1, t.n === void 0) {
- e.s = t;
- break;
- }
- }
-}
-function rr(e) {
- for (var t = e.s, n = void 0; t !== void 0;) {
- var r = t.p;
- t.i === -1 ? (t.S.U(t), r !== void 0 && (r.n = t.n), t.n !== void 0 && (t.n.p = r)) : n = t, t.S.n = t.r, t.r !== void 0 && (t.r = void 0), t = r;
- }
- e.s = n;
-}
-function X(e, t) {
- Y.call(this, void 0, t), this.x = e, this.s = void 0, this.g = Qn - 1, this.f = 4;
-}
-X.prototype = new Y(), X.prototype.h = function() {
- if (this.f &= -3, 1 & this.f) return !1;
- if ((36 & this.f) == 32 || (this.f &= -5, this.g === Qn)) return !0;
- if (this.g = Qn, this.f |= 1, this.i > 0 && !tr(this)) return this.f &= -2, !0;
- var e = q;
- try {
- nr(this), q = this;
- var t = this.x();
- (16 & this.f || this.v !== t || this.i === 0) && (this.v = t, this.f &= -17, this.i++);
- } catch (e) {
- this.v = e, this.f |= 16, this.i++;
- }
- return q = e, rr(this), this.f &= -2, !0;
-}, X.prototype.S = function(e) {
- if (this.t === void 0) {
- this.f |= 36;
- for (var t = this.s; t !== void 0; t = t.n) t.S.S(t);
- }
- Y.prototype.S.call(this, e);
-}, X.prototype.U = function(e) {
- if (this.t !== void 0 && (Y.prototype.U.call(this, e), this.t === void 0)) {
- this.f &= -33;
- for (var t = this.s; t !== void 0; t = t.n) t.S.U(t);
- }
-}, X.prototype.N = function() {
- if (!(2 & this.f)) {
- this.f |= 6;
- for (var e = this.t; e !== void 0; e = e.x) e.t.N();
- }
-}, Object.defineProperty(X.prototype, "value", { get: function() {
- if (1 & this.f) throw Error("Cycle detected");
- var e = $n(this);
- if (this.h(), e !== void 0 && (e.i = this.i), 16 & this.f) throw this.v;
- return this.v;
-} });
-function ir(e, t) {
- return new X(e, t);
-}
-function ar(e) {
- var t = e.m;
- if (e.m = void 0, typeof t == "function") {
- J++;
- var n = q;
- q = void 0;
- try {
- t();
- } catch (t) {
- throw e.f &= -2, e.f |= 8, or(e), t;
- } finally {
- q = n, Un();
- }
- }
-}
-function or(e) {
- for (var t = e.s; t !== void 0; t = t.n) t.S.U(t);
- e.x = void 0, e.s = void 0, ar(e);
-}
-function sr(e) {
- if (q !== this) throw Error("Out-of-order effect");
- rr(this), q = e, this.f &= -2, 8 & this.f && or(this), Un();
-}
-function cr(e, t) {
- this.x = e, this.m = void 0, this.s = void 0, this.u = void 0, this.f = 32, this.name = t?.name, Gn && Gn.push(this);
-}
-cr.prototype.c = function() {
- var e = this.S();
- try {
- if (8 & this.f || this.x === void 0) return;
- var t = this.x();
- typeof t == "function" && (this.m = t);
- } finally {
- e();
- }
-}, cr.prototype.S = function() {
- if (1 & this.f) throw Error("Cycle detected");
- this.f |= 1, this.f &= -9, ar(this), nr(this), J++;
- var e = q;
- return q = this, sr.bind(this, e);
-}, cr.prototype.N = function() {
- 2 & this.f || (this.f |= 2, this.u = qn, qn = this);
-}, cr.prototype.d = function() {
- this.f |= 8, 1 & this.f || or(this);
-}, cr.prototype.dispose = function() {
- this.d();
-};
-function lr(e, t) {
- var n = new cr(e, t);
- try {
- n.c();
- } catch (e) {
- throw n.d(), e;
- }
- var r = n.d.bind(n);
- return r[Symbol.dispose] = r, r;
-}
-//#endregion
-//#region node_modules/@preact/signals/dist/signals.module.js
-var ur, dr, fr = typeof window < "u" && !!window.__PREACT_SIGNALS_DEVTOOLS__, pr = [];
-lr(function() {
- ur = this.N;
-})();
-function mr(e, t) {
- w[e] = t.bind(null, w[e] || function() {});
-}
-function hr(e) {
- if (dr) {
- var t = dr;
- dr = void 0, t();
- }
- dr = e && e.S();
-}
-function gr(e) {
- var t = this, n = e.data, r = vr(n);
- r.name = "ReactiveDom", r.value = n;
- var i = rt(function() {
- for (var e = t, n = t.__v; n = n.__;) if (n.__c) {
- n.__c.__$f |= 4;
- break;
- }
- var i = ir(function() {
- var e = r.value.value;
- return e === 0 ? 0 : !0 === e ? "" : e || "";
- }), a = ir(function() {
- return !Array.isArray(i.value) && !E(i.value);
- }), o = lr(function() {
- if (this.N = xr, a.value) {
- var t = i.value;
- e.__v && e.__v.__e && e.__v.__e.nodeType === 3 && (e.__v.__e.data = t);
- }
- }), s = t.__$u.d;
- return t.__$u.d = function() {
- o(), s.call(this);
- }, [a, i];
- }, []), a = i[0], o = i[1];
- return a.value ? o.peek() : o.value;
-}
-gr.displayName = "ReactiveTextNode", Object.defineProperties(Y.prototype, {
- constructor: {
- configurable: !0,
- value: void 0
- },
- type: {
- configurable: !0,
- value: gr
- },
- props: {
- configurable: !0,
- get: function() {
- var e = this;
- return { data: { get value() {
- return e.value;
- } } };
- }
- },
- __b: {
- configurable: !0,
- value: 1
- }
-}), mr("__b", function(e, t) {
- if (hr(), typeof t.type == "string") {
- var n, r = t.props;
- for (var i in r) if (i !== "children") {
- var a = r[i];
- a instanceof Y && (n || (t.__np = n = {}), n[i] = a, r[i] = a.peek());
- }
- }
- e(t);
-}), mr("__r", function(e, t) {
- if (e(t), t.type !== F) {
- hr();
- var n, r = t.__c;
- r && (r.__$f &= -2, (n = r.__$u) === void 0 && (r.__$u = n = function(e, t) {
- var n;
- return lr(function() {
- n = this;
- }, { name: t }), n.c = e, n;
- }(function(e) {
- return function() {
- var t;
- fr && ((t = this.y) == null || t.call(this)), e.__$f |= 1, e.setState({});
- };
- }(r), typeof t.type == "function" ? t.type.displayName || t.type.name : ""))), hr(n);
- }
-}), mr("__e", function(e, t, n, r) {
- hr(), e(t, n, r);
-}), mr("diffed", function(e, t) {
- hr();
- var n;
- if (typeof t.type == "string" && (n = t.__e)) {
- var r = t.__np, i = t.props, a = n.U;
- if (a) for (var o in a) {
- var s = a[o];
- s === void 0 || r && o in r || (s.d(), a[o] = void 0);
- }
- if (r) for (var c in a || (a = {}, n.U = a), r) {
- var l = a[c], u = r[c];
- l === void 0 ? (l = _r(n, c, u, i), a[c] = l) : l.o(u, i);
- }
- }
- e(t);
-});
-function _r(e, t, n, r) {
- var i = t in e && e.ownerSVGElement === void 0, a = er(n);
- return {
- o: function(e, t) {
- a.value = e, r = t;
- },
- d: lr(function() {
- this.N = xr;
- var n = a.value.value;
- r[t] !== n && (r[t] = n, i ? e[t] = n : n != null && (!1 !== n || t[4] === "-") ? e.setAttribute(t, n) : e.removeAttribute(t));
- })
- };
-}
-mr("unmount", function(e, t) {
- if (typeof t.type == "string") {
- var n = t.__e;
- if (n) {
- var r = n.U;
- if (r) for (var i in n.U = void 0, r) {
- var a = r[i];
- a && a.d();
- }
- }
- var o = t.__np;
- if (o) {
- var s = t.props;
- for (var c in o) s[c] = o[c];
- }
- t.__np = void 0;
- } else {
- var l = t.__c;
- if (l) {
- var u = l.__$u;
- u && (l.__$u = void 0, u.d());
- }
- }
- e(t);
-}), mr("__h", function(e, t, n, r) {
- r < 3 && (t.__$f |= 2), e(t, n, r);
-}), de.prototype.shouldComponentUpdate = function(e, t) {
- if (this.__R) return !0;
- var n = this.__$u, r = n && n.s !== void 0;
- for (var i in t) return !0;
- if (this.__f || typeof this.u == "boolean" && !0 === this.u) {
- var a = 2 & this.__$f;
- if (!(r || a || 4 & this.__$f) || 1 & this.__$f) return !0;
- } else if (!(r || 4 & this.__$f) || 3 & this.__$f) return !0;
- for (var o in e) if (o !== "__source" && e[o] !== this.props[o]) return !0;
- for (var s in this.props) if (!(s in e)) return !0;
- return !1;
-};
-function vr(e, t) {
- return rt(function() {
- return er(e, t);
- }, []);
-}
-var yr = function(e) {
- queueMicrotask(function() {
- queueMicrotask(e);
- });
-};
-function br() {
- Wn(function() {
- for (var e; e = pr.shift();) ur.call(e);
- });
-}
-function xr() {
- pr.push(this) === 1 && (w.requestAnimationFrame || yr)(br);
-}
-//#endregion
-//#region src/state/quality-goals.ts
-var Sr = "/api/quality-goals?limit=200", Cr = {
- data: null,
- error: ""
-}, wr = er(Cr), Tr = 0, Er = ir(() => wr.value);
-ir(() => wr.value.data?.total ?? null);
-function Dr() {
- Tr += 1, wr.value = Cr;
-}
-async function Or(e) {
- let t = Tr += 1;
- try {
- let n = await U(Sr, e);
- return t === Tr && (wr.value = {
- data: n,
- error: ""
- }), n;
- } catch (n) {
- throw !e?.aborted && t === Tr && (wr.value = {
- data: null,
- error: H(n)
- }), n;
- }
-}
-//#endregion
-//#region src/islands/quality-goals.tsx
-var kr = (e, t) => Or(t), Ar = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
-function jr({ openItem: t, javTitleHtml: i, javDisplayName: a, srcBadge: o }) {
- let { data: s, error: c } = Er.value;
- if (c) return /* @__PURE__ */ W("div", {
- class: "qualitylist",
- dangerouslySetInnerHTML: { __html: h(c, {
- variant: "error",
- label: "读取失败"
- }) }
- });
- let l = s?.items ?? [];
- return l.length ? /* @__PURE__ */ W("div", {
- class: "quality-workspace",
- children: [/* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: u("待升级", `${s?.total ?? l.length} 部作品`) } }), /* @__PURE__ */ W("div", {
- class: "qualitylist",
- children: l.map((s) => /* @__PURE__ */ W("article", {
- class: "qualityitem",
- children: [
- /* @__PURE__ */ W("button", {
- class: "qualitycover",
- type: "button",
- "aria-label": `打开 ${a(s)}`,
- onClick: () => t(s.id),
- children: [/* @__PURE__ */ W("span", {
- class: "qualityfallback",
- children: "暂无预览"
- }), /* @__PURE__ */ W("img", {
- src: Ar(s),
- alt: "",
- loading: "lazy",
- onError: (e) => e.currentTarget.remove()
- })]
- }),
- /* @__PURE__ */ W("div", {
- class: "qualitybody",
- children: [
- /* @__PURE__ */ W("h3", { children: /* @__PURE__ */ W("button", {
- type: "button",
- "data-middle-truncate": !0,
- onClick: () => t(s.id),
- dangerouslySetInnerHTML: { __html: i(s) }
- }) }),
- /* @__PURE__ */ W("p", {
- class: "mono",
- children: [
- /* @__PURE__ */ W("span", {
- style: "display:contents",
- dangerouslySetInnerHTML: { __html: o(s.location, s.cost) }
- }),
- /* @__PURE__ */ W("span", { children: e[s.location] ?? s.location }),
- /* @__PURE__ */ W("span", { children: n(s.duration) }),
- /* @__PURE__ */ W("span", { children: r(s.size ?? 0) })
- ]
- }),
- s.reason ? /* @__PURE__ */ W("p", {
- class: "qualityreason",
- children: s.reason
- }) : null
- ]
- }),
- /* @__PURE__ */ W("footer", {
- class: "qualityactions",
- children: /* @__PURE__ */ W("button", {
- type: "button",
- class: "geist-button",
- onClick: () => t(s.id),
- children: "查看版本"
- })
- })
- ]
- }, s.id))
- })]
- }) : /* @__PURE__ */ W("div", {
- class: "qualitylist",
- dangerouslySetInnerHTML: { __html: d("sparkles", "没有标记中的高清版目标", "现有版本都已满足条件,或还没有加入追踪。") }
- });
-}
-//#endregion
//#region src/islands/scraping.tsx
-var Mr = (e, t) => U("/api/scraping", t);
-function Nr({ value: e, onChange: t }) {
- let n = V(null), r = V(t);
- return r.current = t, nt(() => {
+var Pn = (e, t) => G("/api/scraping", t);
+function Fn({ value: e, onChange: t }) {
+ let n = U(null), r = U(t);
+ return r.current = t, Ye(() => {
let t = n.current;
- t.innerHTML = _([["peach", "Peach 代理"], ["direct", "直接连接"]], e, { label: "连接方式" });
- let i = S(t.firstElementChild), a = () => r.current(i.value);
+ t.innerHTML = p([["peach", "Peach 代理"], ["direct", "直接连接"]], e, { label: "连接方式" });
+ let i = v(t.firstElementChild), a = () => r.current(i.value);
return i.addEventListener("change", a), () => {
i.disabled = !0, i.removeEventListener("change", a), t.replaceChildren();
};
- }, []), /* @__PURE__ */ W("div", {
+ }, []), /* @__PURE__ */ q("div", {
ref: n,
class: "scraping-network"
});
}
-function Pr({ source: e, toast: t }) {
- let [n, r] = z(e), [i, a] = z(e.network), [s, c] = z(""), [l, u] = z(""), [d, p] = z("paste"), [m, g] = z(""), [_, v] = z(!1), [b, x] = z(""), [S, C] = z([]), w = V(null), T = V(null);
- nt(() => {
- T.current?.querySelectorAll("footer button").forEach((e) => y(e, _));
- }, [_]);
- let E = V(new AbortController());
- B(() => () => E.current.abort(), []);
+function In({ source: e, toast: t }) {
+ let [n, i] = V(e), [a, o] = V(e.network), [s, l] = V(""), [u, f] = V(""), [p, m] = V("paste"), [g, _] = V(""), [v, y] = V(!1), [b, x] = V(""), [S, C] = V([]), w = U(null), T = U(null);
+ Ye(() => {
+ T.current?.querySelectorAll("footer button").forEach((e) => h(e, v));
+ }, [v]);
+ let E = U(new AbortController());
+ H(() => () => E.current.abort(), []);
async function D(n) {
- if (!_) {
- v(!0), x(""), C([]);
+ if (!v) {
+ y(!0), x(""), C([]);
try {
if (n === "check") {
- let t = await pt("/api/scraping/check", { source: e.source }, "POST", E.current.signal);
+ let t = await K("/api/scraping/check", { source: e.source }, "POST", E.current.signal);
E.current.signal.aborted || C(t.results);
} else {
- let a = await pt("/api/scraping/settings", {
+ let r = await K("/api/scraping/settings", {
source: e.source,
- network: i,
+ network: a,
cookie: s,
- cookies_text: l,
+ cookies_text: u,
revoke: n === "revoke"
}, "POST", E.current.signal);
- E.current.signal.aborted || (r(a.saved), c(""), u(""), g(""), w.current && (w.current.value = ""), t(n === "revoke" ? "Cookie 已撤销" : "来源设置已保存"));
+ E.current.signal.aborted || (i(r.saved), l(""), f(""), _(""), w.current && (w.current.value = ""), t(n === "revoke" ? "Cookie 已撤销" : "来源设置已保存"));
}
} catch (e) {
- E.current.signal.aborted || x(H(e));
+ E.current.signal.aborted || x(W(e));
} finally {
- E.current.signal.aborted || v(!1);
+ E.current.signal.aborted || y(!1);
}
}
}
- return /* @__PURE__ */ W("section", {
+ return /* @__PURE__ */ q("section", {
class: "scraping-source",
- children: /* @__PURE__ */ W("form", {
+ children: /* @__PURE__ */ q("form", {
ref: T,
class: "cleanupfieldset",
"data-geist-fieldset": !0,
onSubmit: (e) => {
e.preventDefault(), D("save");
},
- children: [/* @__PURE__ */ W("div", {
+ children: [/* @__PURE__ */ q("div", {
class: "geist-fieldset-content scraping-fields",
children: [
- /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ q("div", {
class: "geist-fieldset-heading",
- children: [/* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: f(`scraping-${e.source}`, e.label) } }), /* @__PURE__ */ W("a", {
+ children: [/* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: c(`scraping-${e.source}`, e.label) } }), /* @__PURE__ */ q("a", {
class: "scraping-url externallink",
href: e.login,
target: "_blank",
rel: "noopener noreferrer",
children: [
- /* @__PURE__ */ W("img", {
- src: o({ source: e.source }),
+ /* @__PURE__ */ q("img", {
+ src: r({ source: e.source }),
alt: "",
width: "16",
height: "16",
loading: "lazy",
onError: (e) => e.currentTarget.remove()
}),
- /* @__PURE__ */ W("span", { children: e.login }),
- /* @__PURE__ */ W("svg", {
+ /* @__PURE__ */ q("span", { children: e.login }),
+ /* @__PURE__ */ q("svg", {
class: "externalmark",
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ W("use", { href: "#i-external-link" })
+ children: /* @__PURE__ */ q("use", { href: "#i-external-link" })
})
]
})]
}),
- /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ q("div", {
class: "scraping-label",
- children: ["连接方式", /* @__PURE__ */ W(Nr, {
- value: i,
- onChange: a
+ children: ["连接方式", /* @__PURE__ */ q(Fn, {
+ value: a,
+ onChange: o
})]
}),
- i === "peach" && /* @__PURE__ */ W(vt, {
+ a === "peach" && /* @__PURE__ */ q(ut, {
href: "/configuration#peachProxy",
children: "配置 Peach 代理"
}),
- e.accepts_cookie && /* @__PURE__ */ W(F, { children: [
- /* @__PURE__ */ W("p", { children: n.cookie_saved ? "Cookie 已保存,登录是否有效请在抓取时确认。" : "需要登录时,任选一种方式提供 Cookie。" }),
- /* @__PURE__ */ W("div", {
+ e.accepts_cookie && /* @__PURE__ */ q(F, { children: [
+ /* @__PURE__ */ q("p", { children: n.cookie_saved ? "Cookie 已保存,登录是否有效请在抓取时确认。" : "需要登录时,任选一种方式提供 Cookie。" }),
+ /* @__PURE__ */ q("div", {
class: "insightswitch scraping-cookie-method",
role: "radiogroup",
"aria-label": "提供 Cookie 的方式(二选一)",
- children: [["paste", "粘贴 Cookie"], ["file", "导入文件"]].map(([t, n]) => /* @__PURE__ */ W("label", { children: [/* @__PURE__ */ W("input", {
+ children: [["paste", "粘贴 Cookie"], ["file", "导入文件"]].map(([t, n]) => /* @__PURE__ */ q("label", { children: [/* @__PURE__ */ q("input", {
type: "radio",
name: `cookie-method-${e.source}`,
value: t,
- checked: d === t,
+ checked: p === t,
onChange: () => {
- p(t), c(""), u(""), g("");
+ m(t), l(""), f(""), _("");
}
- }), /* @__PURE__ */ W("span", { children: n })] }, t))
+ }), /* @__PURE__ */ q("span", { children: n })] }, t))
}),
- d === "paste" ? /* @__PURE__ */ W("label", { children: ["Cookie", /* @__PURE__ */ W("input", {
+ p === "paste" ? /* @__PURE__ */ q("label", { children: ["Cookie", /* @__PURE__ */ q("input", {
class: "geist-input",
type: "password",
autoComplete: "off",
value: s,
- disabled: _,
- onInput: (e) => c(e.currentTarget.value)
- })] }) : /* @__PURE__ */ W("label", {
+ disabled: v,
+ onInput: (e) => l(e.currentTarget.value)
+ })] }) : /* @__PURE__ */ q("label", {
class: "scraping-file",
- children: ["Netscape Cookie 文件(.txt)", /* @__PURE__ */ W("span", {
+ children: ["Netscape Cookie 文件(.txt)", /* @__PURE__ */ q("span", {
class: "scraping-file-control",
children: [
- /* @__PURE__ */ W("span", {
+ /* @__PURE__ */ q("span", {
class: "geist-button",
children: "选择文件"
}),
- /* @__PURE__ */ W("span", {
+ /* @__PURE__ */ q("span", {
class: "scraping-file-name",
- children: m || "未选择文件"
+ children: g || "未选择文件"
}),
- /* @__PURE__ */ W("input", {
+ /* @__PURE__ */ q("input", {
ref: w,
type: "file",
accept: ".txt",
- disabled: _,
+ disabled: v,
onChange: async (e) => {
let t = e.currentTarget.files?.[0];
if (!t) {
- u(""), g("");
+ f(""), _("");
return;
}
- if (u(""), t.size > 262144) {
+ if (f(""), t.size > 262144) {
x("Cookie 文本超过 256 KiB"), e.currentTarget.value = "";
return;
}
- v(!0);
+ y(!0);
try {
let e = await t.text();
- E.current.signal.aborted || (u(e), g(t.name));
+ E.current.signal.aborted || (f(e), _(t.name));
} catch {
E.current.signal.aborted || x("Cookie 文件未读取,请重新选择");
} finally {
- E.current.signal.aborted || v(!1);
+ E.current.signal.aborted || y(!1);
}
}
})
@@ -2646,32 +2116,32 @@ function Pr({ source: e, toast: t }) {
})]
})
] }),
- b && /* @__PURE__ */ W("div", {
+ b && /* @__PURE__ */ q("div", {
role: "alert",
- dangerouslySetInnerHTML: { __html: h(b, { variant: "error" }) }
+ dangerouslySetInnerHTML: { __html: d(b, { variant: "error" }) }
}),
- S.map((t) => /* @__PURE__ */ W("div", {
+ S.map((t) => /* @__PURE__ */ q("div", {
role: "status",
- dangerouslySetInnerHTML: { __html: h(`${e.label}${t.label === "来源页面" ? "" : " 高清图片"}:${t.ok ? "可连接" : "不能连接"}` + (t.width ? ` · ${t.width} × ${t.height}` : "") + (t.message ? `。${t.message}` : ""), { variant: t.ok ? "success" : "error" }) }
+ dangerouslySetInnerHTML: { __html: d(`${e.label}${t.label === "来源页面" ? "" : " 高清图片"}:${t.ok ? "可连接" : "不能连接"}` + (t.width ? ` · ${t.width} × ${t.height}` : "") + (t.message ? `。${t.message}` : ""), { variant: t.ok ? "success" : "error" }) }
}, t.label))
]
- }), /* @__PURE__ */ W("footer", {
+ }), /* @__PURE__ */ q("footer", {
class: "geist-fieldset-footer",
"data-geist-fieldset-footer": !0,
children: [
- e.accepts_cookie && n.cookie_saved && /* @__PURE__ */ W("button", {
+ e.accepts_cookie && n.cookie_saved && /* @__PURE__ */ q("button", {
class: "geist-button",
type: "button",
onClick: () => void D("revoke"),
children: "撤销 Cookie"
}),
- /* @__PURE__ */ W("button", {
+ /* @__PURE__ */ q("button", {
class: "geist-button",
type: "button",
onClick: () => void D("check"),
children: "检查连接"
}),
- /* @__PURE__ */ W("button", {
+ /* @__PURE__ */ q("button", {
class: "geist-button primary",
type: "submit",
children: "保存"
@@ -2681,52 +2151,52 @@ function Pr({ source: e, toast: t }) {
})
});
}
-function Fr({ data: e, error: t, toast: n }) {
- let [r, i] = z(""), [a, o] = z(!1), [s, c] = z(""), [l, u] = z(""), d = V(null);
- nt(() => y(d.current, a), [a]);
- let m = V(new AbortController()), g = V(0);
- async function _(e = !1) {
- let t = ++g.current;
- await ht({
- read: (e) => U("/api/scraping/cover", e),
- active: () => !m.current.signal.aborted && t === g.current,
+function Ln({ data: e, error: t, toast: n }) {
+ let [r, i] = V(""), [a, o] = V(!1), [s, u] = V(""), [f, p] = V(""), m = U(null);
+ Ye(() => h(m.current, a), [a]);
+ let g = U(new AbortController()), _ = U(0);
+ async function v(e = !1) {
+ let t = ++_.current;
+ await st({
+ read: (e) => G("/api/scraping/cover", e),
+ active: () => !g.current.signal.aborted && t === _.current,
render: (t) => {
- o(t.status === "running"), t.status === "running" && (e = !1), t.status === "failed" && !e && c(t.error || "采集未取得"), t.status === "complete" && !e && (u(t.result || "封面采集完成"), n(t.result || "封面采集完成"));
+ o(t.status === "running"), t.status === "running" && (e = !1), t.status === "failed" && !e && u(t.error || "采集未取得"), t.status === "complete" && !e && (p(t.result || "封面采集完成"), n(t.result || "封面采集完成"));
},
- disconnected: () => c("连接中断,正在重新读取后台进度")
+ disconnected: () => u("连接中断,正在重新读取后台进度")
});
}
- B(() => (_(!0), () => m.current.abort()), []);
- async function v() {
+ H(() => (v(!0), () => g.current.abort()), []);
+ async function y() {
if (!a) {
- g.current++, o(!0), c(""), u("");
+ _.current++, o(!0), u(""), p("");
try {
- await pt("/api/scraping/cover", { code: r }, "POST", m.current.signal), await _();
+ await K("/api/scraping/cover", { code: r }, "POST", g.current.signal), await v();
} catch (e) {
- m.current.signal.aborted || (o(!1), c(H(e)));
+ g.current.signal.aborted || (o(!1), u(W(e)));
}
}
}
- return t ? /* @__PURE__ */ W("div", {
+ return t ? /* @__PURE__ */ q("div", {
role: "alert",
- dangerouslySetInnerHTML: { __html: h(t, { variant: "error" }) }
- }) : /* @__PURE__ */ W("div", {
+ dangerouslySetInnerHTML: { __html: d(t, { variant: "error" }) }
+ }) : /* @__PURE__ */ q("div", {
class: "scraping-page",
children: [
- /* @__PURE__ */ W("p", { children: "高清图片可能需要代理才能下载,请先检查连接。" }),
- /* @__PURE__ */ W("section", {
+ /* @__PURE__ */ q("p", { children: "高清图片可能需要代理才能下载,请先检查连接。" }),
+ /* @__PURE__ */ q("section", {
class: "cleanupfieldset scraping-source",
"data-geist-fieldset": !0,
- children: /* @__PURE__ */ W("div", {
+ children: /* @__PURE__ */ q("div", {
class: "geist-fieldset-content scraping-fields",
children: [
- /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: f("scraping-cover", "高清封面") } }),
- /* @__PURE__ */ W("form", {
+ /* @__PURE__ */ q("div", { dangerouslySetInnerHTML: { __html: c("scraping-cover", "高清封面") } }),
+ /* @__PURE__ */ q("form", {
class: "scraping-cover-form",
onSubmit: (e) => {
- e.preventDefault(), v();
+ e.preventDefault(), y();
},
- children: [/* @__PURE__ */ W("input", {
+ children: [/* @__PURE__ */ q("input", {
class: "geist-input",
"aria-label": "馆藏番号",
required: !0,
@@ -2734,29 +2204,29 @@ function Fr({ data: e, error: t, toast: n }) {
disabled: a,
placeholder: "输入馆藏番号,如 ABW-232",
onInput: (e) => i(e.currentTarget.value)
- }), /* @__PURE__ */ W("button", {
- ref: d,
+ }), /* @__PURE__ */ q("button", {
+ ref: m,
class: "geist-button primary",
type: "submit",
children: "抓取封面"
})]
}),
- a && /* @__PURE__ */ W("div", {
+ a && /* @__PURE__ */ q("div", {
"aria-live": "polite",
- dangerouslySetInnerHTML: { __html: p("正在抓取封面") }
+ dangerouslySetInnerHTML: { __html: l("正在抓取封面") }
}),
- s && /* @__PURE__ */ W("div", {
+ s && /* @__PURE__ */ q("div", {
role: "alert",
- dangerouslySetInnerHTML: { __html: h(s, { variant: "error" }) }
+ dangerouslySetInnerHTML: { __html: d(s, { variant: "error" }) }
}),
- l && /* @__PURE__ */ W("div", {
+ f && /* @__PURE__ */ q("div", {
role: "status",
- dangerouslySetInnerHTML: { __html: h(l) }
+ dangerouslySetInnerHTML: { __html: d(f) }
})
]
})
}),
- e?.sources.map((e) => /* @__PURE__ */ W(Pr, {
+ e?.sources.map((e) => /* @__PURE__ */ q(In, {
source: e,
toast: n
}, e.source))
@@ -2764,40 +2234,25 @@ function Fr({ data: e, error: t, toast: n }) {
});
}
//#endregion
-//#region src/state/index.ts
-var Ir = { "quality-goals": {
- refresh: Or,
- reset: Dr
-} }, Lr = () => Object.keys(Ir);
-async function Rr(e) {
- let t = Ir[e];
- if (!t) throw Error(`未登记的共享 store:${String(e)}`);
- try {
- return await t.refresh(), !0;
- } catch {
- return !1;
- }
-}
-//#endregion
//#region src/review-evidence.ts
-var zr = (e = "") => /^https?:\/\//i.test(e) ? e : "";
-function Br(e = "") {
- let n = zr(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
- return `<div class="reviewimage" data-review-picture><span class="reviewimageempty"${n ? " hidden" : ""}>未取得来源图片</span>${n ? `<img src="${t(n)}" alt="来源候选图片" loading="lazy">` : ""}</div>`;
-}
-function Vr(e) {
- let n = zr(e.profile_url), r = (e.preview_assets || []).slice(0, 6), i = Math.max(0, Number(e.video_count || e.videos || 0));
- return `<section class="reviewidentityevidence"><h5>候选身份:${t(e.babepedia_name || "未标注")}</h5>
- <div class="reviewevidenceactions">${n ? `<a class="geist-button externallink" href="${t(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="${t(e.creator || "")}">查看全部 ${i.toLocaleString()} 部作品</button></div>
- ${Br(e.preview_url)}
+var Rn = (e = "") => /^https?:\/\//i.test(e) ? e : "";
+function zn(t = "") {
+ let n = Rn(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 Bn(t) {
+ let n = Rn(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>
+ ${zn(t.preview_url)}
<p>通过后记录身份判断。</p>
- ${r.length ? `<h5>本地作品样本</h5><div class="reviewevidencesamples">${r.map((e) => `<div class="reviewevidencesample">
- <button class="geist-button" type="button" data-review-open-item="${e.id}"><span data-middle-truncate title="${t(e.name)}">${t(e.name)}</span></button>
- <button class="geist-button" type="button" data-review-reveal="${e.id}" aria-label="打开 ${t(e.name)} 的文件位置">文件位置</button>
+ ${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>
</div>`).join("")}</div>` : "<p>暂无本地作品样本,打开全部作品核对。</p>"}</section>`;
}
-function Hr(e) {
+function Vn(e) {
for (let t of e.querySelectorAll("[data-review-picture] img")) {
let e = () => {
t.hidden = !0;
@@ -2809,11 +2264,11 @@ function Hr(e) {
}
//#endregion
//#region src/selection.ts
-function Ur(e, t, n, r, i, a = i || !e.has(r)) {
+function Hn(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 Wr(e, t) {
+function Un(e, t) {
let n = t.filter((t) => e.has(t)).length;
return {
count: n,
@@ -2821,16 +2276,16 @@ function Wr(e, t) {
mixed: n > 0 && n < t.length
};
}
-function Gr(e, t, n) {
+function Wn(e, t, n) {
t.forEach((t) => n ? e.add(t) : e.delete(t));
}
-function Kr({ count: e, label: t, all: n, summary: r, actions: i, locked: a = !1 }) {
+function Gn({ 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 qr = () => ({
+var Kn = () => ({
busy: !1,
category: "",
filter: "",
@@ -2841,7 +2296,7 @@ var qr = () => ({
assets: /* @__PURE__ */ new Map(),
errors: /* @__PURE__ */ new Map()
});
-function Jr(e) {
+function qn(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`);
@@ -2857,7 +2312,7 @@ function Jr(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 Yr(e, t) {
+function Jn(e, t) {
let n = [[
"candidates",
t ? "按候选数量" : "全部待复核",
@@ -2873,7 +2328,7 @@ function Yr(e, t) {
"list-filter"
]), n;
}
-function Xr(e, t) {
+function Yn(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -2890,10 +2345,10 @@ function Xr(e, t) {
}
return [...n.values()];
}
-function Zr(e, t, n, r, i) {
- e.anchor = Ur(e.selected, t, e.anchor, n, r, i);
+function Xn(e, t, n, r, i) {
+ e.anchor = Hn(e.selected, t, e.anchor, n, r, i);
}
-async function Qr(e, t, n, r) {
+async function Zn(e, t, n, r) {
let i = [], a = 0;
for (let o of e) {
if (!r()) break;
@@ -2904,7 +2359,7 @@ async function Qr(e, t, n, r) {
} catch (e) {
i.push({
key: o.key,
- message: H(e)
+ message: W(e)
});
}
}
@@ -2913,172 +2368,172 @@ async function Qr(e, t, n, r) {
failures: i
};
}
-function $r(e) {
+function Qn(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 ei(e, t) {
- let n = e.querySelector(".reviewlist");
- if (!n || !t.rows.length || t.locked) return;
- let r = t.state, a = [...n.querySelectorAll("[data-review-key]")];
- t.category !== void 0 && r.category !== t.category && (r.category = t.category, r.filter = "", r.groupBy = "candidates", r.anchor = null);
- let o = t.catalog || t.rows, s = Yr(o, t.metadata);
- s.some((e) => e[0] === r.groupBy) || (r.groupBy = "candidates", r.filter = "");
- let c = Xr(o, r.groupBy);
- c.some((e) => e.key === r.filter) || (r.filter = "");
- let u = () => [...n.querySelectorAll("[data-review-key]")].filter((e) => !e.closest("[hidden]")), d = () => u().filter((e) => r.selected.has(e.dataset.reviewKey)), f = () => t.rows.filter((e) => d().some((t) => t.dataset.reviewKey === e.item_key)), p = (e) => !e.querySelector("[data-review-status=\"approved\"]")?.disabled, m = (e, t = "") => {
+function $n(e, n) {
+ let r = e.querySelector(".reviewlist");
+ if (!r || !n.rows.length || n.locked) return;
+ let i = n.state, a = [...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 = Jn(s, n.metadata);
+ c.some((e) => e[0] === i.groupBy) || (i.groupBy = "candidates", i.filter = "");
+ let l = Yn(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)), f = () => n.rows.filter((e) => d().some((t) => t.dataset.reviewKey === e.item_key)), m = (e) => !e.querySelector("[data-review-status=\"approved\"]")?.disabled, g = (e, t = "") => {
let n = document.createElement("button");
return n.type = "button", n.className = `geist-button ${t}`.trim(), n.textContent = e, n;
- }, h = document.createElement("div");
- h.className = "reviewbulkbar reviewbulktoolbar", h.setAttribute("role", "group"), h.setAttribute("aria-label", "复核批量操作");
- let g = document.createElement("div");
- g.className = "reviewgroupby", g.innerHTML = _(s, r.groupBy, { label: "筛选分组方式" });
- let v = S(g.firstElementChild);
- g.querySelectorAll("[data-select-option] .gselectmark").forEach((e) => e.remove()), v.addEventListener("change", () => {
- if (r.busy || !s.some((e) => e[0] === v.value)) return;
- r.groupBy = v.value, r.filter = "", r.anchor = null;
- let n = e.parentElement;
- t.refresh(), n?.querySelector(".reviewgroupby button")?.focus({ preventScroll: !0 });
+ }, _ = document.createElement("div");
+ _.className = "reviewbulkbar reviewbulktoolbar", _.setAttribute("role", "group"), _.setAttribute("aria-label", "复核批量操作");
+ let y = document.createElement("div");
+ y.className = "reviewgroupby", y.innerHTML = p(c, i.groupBy, { label: "筛选分组方式" });
+ let b = v(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 b = document.createElement("div");
- b.className = "reviewcategoryfilter", b.hidden = c.length < 2, b.innerHTML = _([[
+ let x = document.createElement("div");
+ x.className = "reviewcategoryfilter", x.hidden = l.length < 2, x.innerHTML = p([[
"",
"全部分类",
"list-filter"
- ], ...c.map((e) => [
+ ], ...l.map((e) => [
e.key,
`${e.title} · ${e.rows.length}`,
"list-filter"
- ])], r.filter, { label: r.groupBy === "field" ? "筛选字段分类" : "筛选当前分类" });
- let x = b.querySelector("[data-select-menu]");
- if (x) {
+ ])], i.filter, { label: i.groupBy === "field" ? "筛选字段分类" : "筛选当前分类" });
+ let S = x.querySelector("[data-select-menu]");
+ if (S) {
let e = document.createElement("div");
- e.setAttribute("role", "group"), e.setAttribute("aria-label", r.groupBy === "field" ? "字段分类" : "当前分类");
+ e.setAttribute("role", "group"), e.setAttribute("aria-label", i.groupBy === "field" ? "字段分类" : "当前分类");
let t = document.createElement("div");
- t.className = "reviewfilterheading", t.textContent = e.getAttribute("aria-label"), t.setAttribute("aria-hidden", "true"), e.append(t, ...Array.from(x.children).slice(1)), x.append(e);
- }
- let C = S(b.firstElementChild);
- b.querySelectorAll("[data-select-option] .gselectmark").forEach((e) => e.remove()), C.addEventListener("change", () => {
- if (r.busy || C.value && !c.some((e) => e.key === C.value)) return;
- r.filter = C.value, r.anchor = null;
- let n = e.parentElement;
- t.refresh(), n?.querySelector(".reviewcategoryfilter button")?.focus({ preventScroll: !0 });
+ 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 = v(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;
+ i.filter = C.value, i.anchor = null;
+ let t = e.parentElement;
+ n.refresh(), t?.querySelector(".reviewcategoryfilter button")?.focus({ preventScroll: !0 });
});
- let w = m("全选本页"), T = m("通过所选", "primary"), E = m("拒绝所选", "error"), D = document.createElement("span");
+ let w = g("全选本页"), T = g("通过所选", "primary"), E = g("拒绝所选", "error"), D = document.createElement("span");
D.className = "reviewselectedcount selectiondockcount", D.setAttribute("role", "status");
let O = document.createElement("div");
- O.className = "reviewbulksource", O.hidden = !t.metadata;
+ O.className = "reviewbulksource", O.hidden = !n.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 ee = m("取消选择");
- j.append(D, O, A, ee, k), h.append(g, b, w);
- let M = e.querySelector(".reviewcontrols");
- M ? M.after(h) : n.before(h), e.append(j), n.classList.add("reviewgroups");
- let te = () => {
- r.selected.clear(), r.anchor = null, N();
+ let ee = g("取消选择");
+ j.append(D, O, A, ee, k), _.append(y, x, w);
+ let te = e.querySelector(".reviewcontrols");
+ te ? te.after(_) : r.before(_), e.append(j), r.classList.add("reviewgroups");
+ let M = () => {
+ i.selected.clear(), i.anchor = null, P();
};
ee.onclick = () => {
- r.busy || (te(), w.focus({ preventScroll: !0 }));
+ i.busy || (M(), w.focus({ preventScroll: !0 }));
}, w.onclick = () => {
- if (r.busy) return;
+ if (i.busy) return;
let e = u(), t = d().length === e.length;
- e.forEach((e) => t ? r.selected.delete(e.dataset.reviewKey) : r.selected.add(e.dataset.reviewKey)), N();
- }, T.onclick = () => ie("approved", T), E.onclick = () => ie("rejected", E);
+ e.forEach((e) => t ? i.selected.delete(e.dataset.reviewKey) : i.selected.add(e.dataset.reviewKey)), P();
+ }, T.onclick = () => re("approved", T), E.onclick = () => re("rejected", E);
let ne = [];
- for (let e of c) {
- 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 = !!r.filter && e.key !== r.filter;
- let s = document.createElement("div");
- s.className = "reviewbulkbar reviewgroupbar";
- let c = document.createElement("h3");
- c.textContent = `${e.title} · ${t.length}`;
- let d = m("全选本组"), f = document.createElement("div");
- f.className = "reviewlist", s.append(c, d), o.append(s, f), n.append(o), d.onclick = () => {
- if (r.busy) return;
- let e = t.map((e) => e.dataset.reviewKey);
- Gr(r.selected, e, !e.every((e) => r.selected.has(e))), N();
+ for (let e of l) {
+ let n = e.rows.map((e) => a.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 = () => {
+ if (i.busy) return;
+ let e = n.map((e) => e.dataset.reviewKey);
+ Wn(i.selected, e, !e.every((e) => i.selected.has(e))), P();
}, ne.push(() => {
- let e = t.every((e) => r.selected.has(e.dataset.reviewKey));
- d.innerHTML = i(e ? "check-check-outline" : "check-check") + (e ? "清空本组" : "全选本组"), d.setAttribute("aria-pressed", String(e));
+ 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));
});
- for (let e of t) {
+ for (let e of n) {
f.append(e);
let t = e.dataset.reviewKey;
- r.errors.has(t) && (e.querySelector(".reviewstate").textContent = r.errors.get(t));
- let n = e.querySelector("h4,.reviewentity b") || e, i = document.createElement("label");
- i.className = "reviewpickitem", i.innerHTML = l();
- let a = i.querySelector("input");
+ 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 = o();
+ let a = r.querySelector("input");
if (a.setAttribute("aria-label", `选择 ${e.querySelector("legend")?.textContent || n.textContent || t}`), n !== e) {
let e = document.createElement("span");
- e.className = "reviewpickname", e.append(...n.childNodes), n.classList.add("reviewpickheading"), n.append(i, e);
- } else e.prepend(i);
- let o = (e, n) => {
- Zr(r, u().map((e) => e.dataset.reviewKey), t, e, n), N();
+ e.className = "reviewpickname", e.append(...n.childNodes), n.classList.add("reviewpickheading"), n.append(r, e);
+ } else e.prepend(r);
+ let s = (e, n) => {
+ Xn(i, u().map((e) => e.dataset.reviewKey), t, e, n), P();
};
- if (i.addEventListener("mousedown", (e) => {
+ if (r.addEventListener("mousedown", (e) => {
e.shiftKey && e.preventDefault();
- }), i.addEventListener("click", (e) => {
- e.target !== a && (e.preventDefault(), r.busy || (a.focus(), o(e.shiftKey, !a.checked)));
+ }), r.addEventListener("click", (e) => {
+ e.target !== a && (e.preventDefault(), i.busy || (a.focus(), s(e.shiftKey, !a.checked)));
}), a.addEventListener("click", (e) => {
- r.busy || o(e.shiftKey, a.checked);
+ i.busy || s(e.shiftKey, a.checked);
}), a.addEventListener("keydown", (n) => {
- if (!(r.busy || !n.shiftKey)) {
- if (n.key === " ") n.preventDefault(), o(!0, !0);
+ if (!(i.busy || !n.shiftKey)) {
+ if (n.key === " ") n.preventDefault(), s(!0, !0);
else if (n.key === "ArrowDown" || n.key === "ArrowUp") {
n.preventDefault();
- let i = u(), a = i[i.indexOf(e) + (n.key === "ArrowDown" ? 1 : -1)];
- a && (r.anchor === null && (r.anchor = t), Zr(r, i.map((e) => e.dataset.reviewKey), a.dataset.reviewKey, !0, !0), N(), a.querySelector(".reviewpickitem input")?.focus());
+ let r = u(), a = r[r.indexOf(e) + (n.key === "ArrowDown" ? 1 : -1)];
+ a && (i.anchor === null && (i.anchor = t), Xn(i, r.map((e) => e.dataset.reviewKey), a.dataset.reviewKey, !0, !0), P(), a.querySelector(".reviewpickitem input")?.focus());
}
}
}), ne.push(() => {
- a.checked = r.selected.has(t);
- }), r.assets.has(t)) {
- let n = r.assets.get(t), i = [...e.querySelectorAll("[data-review-asset]")];
- i.forEach((e) => {
+ a.checked = i.selected.has(t);
+ }), i.assets.has(t)) {
+ let n = i.assets.get(t), r = [...e.querySelectorAll("[data-review-asset]")];
+ r.forEach((e) => {
let t = n.includes(Number(e.dataset.reviewAsset));
e.setAttribute("aria-pressed", String(t)), e.classList.toggle("picked", t);
});
let a = e.querySelector("[data-picked-count]");
- a && (a.textContent = `已选 ${n.length} / ${i.length}`);
+ a && (a.textContent = `已选 ${n.length} / ${r.length}`);
}
e.addEventListener("click", (n) => {
- n.target.closest("[data-review-asset],[data-pick-all],[data-pick-none]") && r.assets.set(t, [...e.querySelectorAll("[data-review-asset][aria-pressed=\"true\"]")].map((e) => Number(e.dataset.reviewAsset)));
+ 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\"]")) r.choices.has(t) && (n.checked = r.choices.get(t) === n.value), n.addEventListener("change", () => {
- n.checked && r.choices.set(t, n.value), N();
+ 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), P();
});
}
}
e.addEventListener("keydown", (t) => {
- r.busy || !e.contains(n) || (t.key === "Escape" && r.selected.size && (t.preventDefault(), t.stopPropagation(), te()), (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) => r.selected.add(e.dataset.reviewKey)), N()));
+ i.busy || !e.contains(r) || (t.key === "Escape" && i.selected.size && (t.preventDefault(), t.stopPropagation(), M()), (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)), P()));
});
- let re = "";
- function N() {
- let e = d(), n = e.length > 0 && e.length === u().length;
- w.innerHTML = i(n ? "check-check-outline" : "check-check") + (n ? "清空当前选择" : r.filter ? "全选当前分类" : "全选本页"), w.setAttribute("aria-pressed", String(n)), j.hidden = !e.length, Kr({
+ let N = "";
+ function P() {
+ 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, Gn({
count: D,
label: `已选 ${e.length} 项`,
- summary: Wr(r.selected, u().map((e) => e.dataset.reviewKey)),
+ summary: Un(i.selected, u().map((e) => e.dataset.reviewKey)),
actions: [T, E]
- }), T.disabled ||= e.some((e) => !p(e));
- let a = $r(f());
- O.hidden = !t.metadata || !f().some((e) => (e.candidates?.length || 0) > 1);
+ }), T.disabled ||= e.some((e) => !m(e));
+ let a = Qn(f());
+ O.hidden = !n.metadata || !f().some((e) => (e.candidates?.length || 0) > 1);
let o = e.length && !a.length ? "所选项目无共同来源" : "统一选择来源", s = JSON.stringify([o, a]);
- if (s !== re) {
- re = s, O.innerHTML = _([["", o], ...a.map((e) => [e, e])], "", { label: "统一选择来源" });
- let e = S(O.firstElementChild);
+ if (s !== N) {
+ N = s, O.innerHTML = p([["", o], ...a.map((e) => [e, e])], "", { label: "统一选择来源" });
+ let e = v(O.firstElementChild);
e.disabled = !a.length, e.addEventListener("change", () => {
- if (!(r.busy || !$r(f()).includes(e.value))) {
- for (let n of d()) {
- let i = 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 === i.candidate_key;
- }), r.choices.set(n.dataset.reviewKey, i.candidate_key);
+ if (!(i.busy || !Qn(f()).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) => {
+ e.checked = e.value === r.candidate_key;
+ }), i.choices.set(t.dataset.reviewKey, r.candidate_key);
}
k.textContent = `已选择 ${e.value},点击通过所选采用。`;
}
@@ -3086,46 +2541,46 @@ function ei(e, t) {
}
ne.forEach((e) => e());
}
- async function ie(n, i) {
- if (r.busy || !d().length) return;
+ async function re(t, r) {
+ if (i.busy || !d().length) return;
let a = d().map((e) => ({
key: e.dataset.reviewKey,
payload: {
- ...t.payload(e),
- status: n
+ ...n.payload(e),
+ status: t
}
}));
- if (n === "approved" && t.metadata && a.some((e) => !e.payload.candidate_key)) {
+ 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();
return;
}
- r.busy = !0, k.textContent = `正在处理 0 / ${a.length}`, y(i, !0);
+ i.busy = !0, k.textContent = `正在处理 0 / ${a.length}`, h(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 Qr(a, async (e) => {
+ let l = 0, u = await Zn(a, async (e) => {
try {
- return await t.submit(e);
+ return await n.submit(e);
} finally {
- l++, t.active() && (k.textContent = `正在处理 ${l} / ${a.length}`);
+ l++, n.active() && (k.textContent = `正在处理 ${l} / ${a.length}`);
}
}, (e) => {
- r.selected.delete(e), r.errors.delete(e), t.applied(e);
- }, t.active);
- if (r.busy = !1, e.removeEventListener("click", c, !0), e.removeEventListener("keydown", c, !0), o.forEach((e, t) => {
+ i.selected.delete(e), i.errors.delete(e), n.applied(e);
+ }, n.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);
- }), y(i, !1), !t.active()) return;
- t.notify(`已${n === "approved" ? "通过" : "拒绝"} ${u.completed} 项${u.failures.length ? `,${u.failures.length} 项未完成` : ""}`), u.failures.forEach((e) => r.errors.set(e.key, e.message));
+ }), h(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));
let f = e.parentElement;
- t.refresh(), f?.querySelector(".reviewbulktoolbar button")?.focus({ preventScroll: !0 });
+ n.refresh(), f?.querySelector(".reviewbulktoolbar button")?.focus({ preventScroll: !0 });
}
- N(), Jr(e);
+ P(), qn(e);
}
-function ti(e, t, n = 1) {
+function er(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;
@@ -3145,15 +2600,15 @@ function ti(e, t, n = 1) {
t
];
}
-function ni(e, t) {
+function tr(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function ri(e, t) {
+function nr(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
-function ii(e, t, n) {
+function rr(e, t, n) {
if (t <= 1) return "";
- let r = ti(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 = er(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>
@@ -3162,10 +2617,10 @@ function ii(e, t, n) {
}
//#endregion
//#region src/native-image.ts
-function ai(e, t, n, r) {
+function ir(e, t, n, r) {
return e > 0 && t > 0 && e === n && t === r;
}
-function oi(e, t, n, r, i = 1) {
+function ar(e, t, n, r, i = 1) {
let a = Number.isFinite(i) && i > 0 ? i : 1;
e /= a, t /= a;
let o = [
@@ -3182,26 +2637,26 @@ function oi(e, t, n, r, i = 1) {
}
//#endregion
//#region src/avatar-picker.tsx
-var si = {
+var or = {
gfriends: "图库",
history: "用过的"
};
-function ci({ kind: e, id: t, name: n, onPicked: r }) {
- let i = V(null), a = V(null), o = V(null), [s, l] = z(null), [u, d] = z(""), [f, p] = z(""), [m, h] = z(""), [g, _] = z(!1);
- B(() => {
- if (!g || s) return;
+function sr({ kind: e, id: t, name: n, onPicked: r }) {
+ let i = U(null), o = U(null), s = U(null), [c, l] = V(null), [u, d] = V(""), [f, p] = V(""), [m, h] = V(""), [g, _] = V(!1);
+ H(() => {
+ if (!g || c) return;
let n = new AbortController();
- return U(`/api/avatar-choices?kind=${e}&id=${t}`, n.signal).then(l).catch((e) => {
- n.signal.aborted || d(H(e));
+ return G(`/api/avatar-choices?kind=${e}&id=${t}`, n.signal).then(l).catch((e) => {
+ n.signal.aborted || d(W(e));
}), () => n.abort();
}, [
g,
- s,
+ c,
e,
t
- ]), B(() => {
- c(a.current);
- }, [g, s]);
+ ]), H(() => {
+ a(o.current);
+ }, [g, c]);
let v = () => {
_(!0), i.current?.showModal();
}, y = () => {
@@ -3211,15 +2666,15 @@ function ci({ kind: e, id: t, name: n, onPicked: r }) {
try {
await e(), y(), l(null), r();
} catch (e) {
- d(H(e));
+ d(W(e));
} finally {
p("");
}
- }, x = (n) => b(() => pt("/api/avatar-pick", {
+ }, x = (n) => b(() => K("/api/avatar-pick", {
kind: e,
id: t,
ref: n.ref
- }), n.ref), S = () => b(() => pt("/api/avatar-pick", {
+ }), n.ref), S = () => b(() => K("/api/avatar-pick", {
kind: e,
id: t,
url: m.trim()
@@ -3233,22 +2688,22 @@ function ci({ kind: e, id: t, name: n, onPicked: r }) {
let e = await r.json().catch(() => null);
throw Error(e?.error || `请求失败(${r.status})`);
}
- }, "file"), w = s?.choices || [], T = (s?.matched_names || []).filter((e) => e !== n), E = s ? T.length ? `${n}:图库里按「${T.join("」「")}」找到的。` : w.length ? `${n}:换上的那张留在本机,随时能换回来。` : `${n}:图库里没有这个名字,用下面两种方式换。` : "正在找可用的图…", D = !!s && s.index_stale && !w.some((e) => e.source === "gfriends");
- return /* @__PURE__ */ W("div", {
+ }, "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__ */ q("div", {
class: "avatarpick",
- children: [/* @__PURE__ */ W("button", {
+ children: [/* @__PURE__ */ q("button", {
type: "button",
class: "avatarpick-open",
onClick: v,
"aria-haspopup": "dialog",
"aria-label": `更换${n}的头像`,
title: "更换头像",
- children: /* @__PURE__ */ W("svg", {
+ children: /* @__PURE__ */ q("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ W("use", { href: "#i-plus" })
+ children: /* @__PURE__ */ q("use", { href: "#i-plus" })
})
- }), /* @__PURE__ */ W("dialog", {
+ }), /* @__PURE__ */ q("dialog", {
ref: i,
class: "geist-modal avatarpick-popover",
"aria-label": "更换头像",
@@ -3256,91 +2711,91 @@ function ci({ kind: e, id: t, name: n, onPicked: r }) {
onClick: (e) => {
e.target === i.current && y();
},
- children: [/* @__PURE__ */ W("div", {
+ children: [/* @__PURE__ */ q("div", {
class: "avatarpick-head",
children: [
- /* @__PURE__ */ W("span", {
+ /* @__PURE__ */ q("span", {
class: "avatarpick-mark",
"aria-hidden": "true",
- children: /* @__PURE__ */ W("svg", {
+ children: /* @__PURE__ */ q("svg", {
viewBox: "0 0 24 24",
- children: /* @__PURE__ */ W("use", { href: "#i-user-round" })
+ children: /* @__PURE__ */ q("use", { href: "#i-user-round" })
})
}),
- /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ q("div", {
class: "avatarpick-headtext",
children: [
- /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ q("div", {
class: "avatarpick-title",
- children: [/* @__PURE__ */ W("h3", { children: "更换头像" }), !!w.length && /* @__PURE__ */ W("span", {
+ children: [/* @__PURE__ */ q("h3", { children: "更换头像" }), !!w.length && /* @__PURE__ */ q("span", {
class: "geist-badge",
children: [w.length, " 张可选"]
})]
}),
- /* @__PURE__ */ W("p", { children: E }),
- D && /* @__PURE__ */ W("p", {
+ /* @__PURE__ */ q("p", { children: E }),
+ D && /* @__PURE__ */ q("p", {
class: "avatarpick-note",
children: "图库索引还没取过,只能从用过的图里选。"
}),
- u && /* @__PURE__ */ W("p", {
+ u && /* @__PURE__ */ q("p", {
class: "avatarpick-error",
role: "alert",
children: u
})
]
}),
- /* @__PURE__ */ W("button", {
+ /* @__PURE__ */ q("button", {
type: "button",
class: "avatarpick-close",
onClick: y,
"aria-label": "关闭",
- children: /* @__PURE__ */ W("svg", {
+ children: /* @__PURE__ */ q("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ W("use", { href: "#i-x" })
+ children: /* @__PURE__ */ q("use", { href: "#i-x" })
})
})
]
- }), /* @__PURE__ */ W("div", {
+ }), /* @__PURE__ */ q("div", {
class: "avatarpick-panel",
- children: [/* @__PURE__ */ W("div", {
+ children: [/* @__PURE__ */ q("div", {
class: "avatarpick-gridwrap",
- children: /* @__PURE__ */ W("div", {
+ children: /* @__PURE__ */ q("div", {
class: "avatarpick-grid",
role: "listbox",
"aria-label": "候选头像",
- ref: a,
- children: w.map((n) => /* @__PURE__ */ W("button", {
+ ref: o,
+ children: w.map((n) => /* @__PURE__ */ q("button", {
type: "button",
role: "option",
"aria-selected": n.current,
disabled: !!f,
class: `avatarpick-cell${n.current ? " current" : ""}`,
- title: `${si[n.source] || n.source} · ${n.label}` + (n.width ? ` · ${n.width}×${n.height}` : "") + (n.found_by ? ` · 按「${n.found_by}」找到` : ""),
+ title: `${or[n.source] || n.source} · ${n.label}` + (n.width ? ` · ${n.width}×${n.height}` : "") + (n.found_by ? ` · 按「${n.found_by}」找到` : ""),
onClick: () => x(n),
children: [
- /* @__PURE__ */ W("img", {
+ /* @__PURE__ */ q("img", {
loading: "lazy",
alt: "",
src: `/avatar-choice?kind=${e}&id=${t}&ref=${encodeURIComponent(n.ref)}`
}),
- /* @__PURE__ */ W("span", { children: n.label }),
- n.current && /* @__PURE__ */ W("b", { children: "在用" })
+ /* @__PURE__ */ q("span", { children: n.label }),
+ n.current && /* @__PURE__ */ q("b", { children: "在用" })
]
}, n.ref))
})
- }), /* @__PURE__ */ W("div", {
+ }), /* @__PURE__ */ q("div", {
class: "avatarpick-actions",
children: [
- /* @__PURE__ */ W("button", {
+ /* @__PURE__ */ q("button", {
type: "button",
class: "geist-button",
disabled: !!f,
- onClick: () => o.current?.click(),
+ onClick: () => s.current?.click(),
children: "从本机选图片"
}),
- /* @__PURE__ */ W("input", {
- ref: o,
+ /* @__PURE__ */ q("input", {
+ ref: s,
type: "file",
accept: "image/png,image/jpeg",
hidden: !0,
@@ -3349,16 +2804,16 @@ function ci({ kind: e, id: t, name: n, onPicked: r }) {
e.currentTarget.value = "", t && C(t);
}
}),
- /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ q("div", {
class: "avatarpick-url",
- children: [/* @__PURE__ */ W("input", {
+ children: [/* @__PURE__ */ q("input", {
type: "url",
class: "geist-input",
value: m,
placeholder: "https://…",
"aria-label": "图片地址",
onInput: (e) => h(e.currentTarget.value)
- }), /* @__PURE__ */ W("button", {
+ }), /* @__PURE__ */ q("button", {
type: "button",
class: "geist-button",
disabled: !m.trim() || !!f,
@@ -3372,15 +2827,15 @@ function ci({ kind: e, id: t, name: n, onPicked: r }) {
})]
});
}
-function li(e, t) {
- Me(/* @__PURE__ */ W(ci, { ...t }), e);
+function cr(e, t) {
+ Ee(/* @__PURE__ */ q(sr, { ...t }), e);
}
-function ui(e) {
- Me(null, e);
+function lr(e) {
+ Ee(null, e);
}
//#endregion
//#region src/entity-skeleton.ts
-function di(e, t, n) {
+function ur(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>
@@ -3394,27 +2849,27 @@ function di(e, t, n) {
}
//#endregion
//#region src/board-skeleton.ts
-var Z = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, fi = () => `${Z("80%")}${Z("48%")}`, Q = (e, t) => e.repeat(t), pi = (e, t = "metricstrip") => `<div class="${t}">${e.map((e) => `<div class="tastesummary"><span class="board-stat-label">${e}</span><b class="board-stat-value">${Z("45%")}</b><small class="board-stat-footer">${Z("60%")}</small></div>`).join("")}</div>`, mi = (e, t = "skeleton-tabs") => `<div class="${t}">${e.map((e) => `<span>${e}</span>`).join("")}</div>`, hi = (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>`, gi = (e) => `<section class="board-radial-card"><header><span>${e}</span><b>${Z()}</b></header><div class="board-rings skeleton-rings"><span class="skeleton skeleton-ring"></span></div><div class="skeleton-lines">${fi()}</div></section>`, _i = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${Q(fi(), 3)}</div></section>`, vi = (e) => `<button class="fbtn" type="button" disabled>${e}</button>`, yi = (e) => `<div class="fsechead" data-collapse-toolbar><h3>关注列表</h3><span class="fmeta">${Z("100px")}</span><div class="followtoolbaractions"><button class="fbtn primary followcheckall" disabled>${i("refresh-cw")}<span data-collapse-label>检查全部</span></button><div class="iconswitch" data-board-segments="true"><label>${i("layout-grid")}</label><label>${i("table")}</label></div><span class="fmanagesort" data-collapse-field>${i("sort")}${_([["checked", "检查时间"]], "checked", {
+var X = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, Z = () => `${X("80%")}${X("48%")}`, Q = (e, t) => e.repeat(t), dr = (e, t = "metricstrip") => `<div class="${t}">${e.map((e) => `<div class="tastesummary"><span class="board-stat-label">${e}</span><b class="board-stat-value">${X("45%")}</b><small class="board-stat-footer">${X("60%")}</small></div>`).join("")}</div>`, fr = (e, t = "skeleton-tabs") => `<div class="${t}">${e.map((e) => `<span>${e}</span>`).join("")}</div>`, pr = (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>`, mr = (e) => `<section class="board-radial-card"><header><span>${e}</span><b>${X()}</b></header><div class="board-rings skeleton-rings"><span class="skeleton skeleton-ring"></span></div><div class="skeleton-lines">${Z()}</div></section>`, hr = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${Q(Z(), 3)}</div></section>`, gr = (e) => `<button class="fbtn" type="button" disabled>${e}</button>`, _r = (e) => `<div class="fsechead" data-collapse-toolbar><h3>关注列表</h3><span class="fmeta">${X("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")}${p([["checked", "检查时间"]], "checked", {
label: "关注列表排序",
attr: "disabled"
-})}</span><button class="fbtn fmanagedir" disabled>${i("arrow-down")}</button>${e ? "" : vi(i("chevron-up") + "<span data-collapse-label>全部收起</span>")}</div></div>`, bi = () => `<div class="fsource frow"><span class="fchannelcheck">${Z("18px")}</span><b>${Z("85%")}</b><span class="fprovider">${Z("54px")}</span><span class="fmeta fchecked">${Z("40px")}</span><span class="fsourceactions"><span class="skeleton skeleton-icon"></span><span class="skeleton skeleton-icon"></span></span></div>`, xi = () => `<details class="fauthor" open><summary class="fauthorhead"><span class="favatar skeleton"></span><b>${Z("90px")}</b><span class="skeleton skeleton-icon"></span><span class="fmeta">${Z("40px")}</span><span class="board-author-actions"><button type="button" class="fbtn small" data-follow-author-select disabled>${i("check-check")}<span data-author-select-label>全选</span></button><span class="skeleton skeleton-icon"></span></span></summary><div class="fauthorsources">${Q(bi(), 3)}</div></details>`;
-function Si() {
- 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">${Z("85%")}${Z("65%")}${Q(fi(), 4)}</div></aside></div></div>`;
+})}</span><button class="fbtn fmanagedir" disabled>${t("arrow-down")}</button>${e ? "" : gr(t("chevron-up") + "<span data-collapse-label>全部收起</span>")}</div></div>`, vr = () => `<div class="fsource frow"><span class="fchannelcheck">${X("18px")}</span><b>${X("85%")}</b><span class="fprovider">${X("54px")}</span><span class="fmeta fchecked">${X("40px")}</span><span class="fsourceactions"><span class="skeleton skeleton-icon"></span><span class="skeleton skeleton-icon"></span></span></div>`, yr = () => `<details class="fauthor" open><summary class="fauthorhead"><span class="favatar skeleton"></span><b>${X("90px")}</b><span class="skeleton skeleton-icon"></span><span class="fmeta">${X("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">${Q(vr(), 3)}</div></details>`;
+function br() {
+ 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">${X("85%")}${X("65%")}${Q(Z(), 4)}</div></aside></div></div>`;
}
-function Ci(e, t = {}) {
+function xr(e, t = {}) {
let n = "";
- if (e === "/stats") n = `<div class="insightpage statsdashboard"><header class="insighttoolbar">${Z("38%")}</header>${pi([
+ if (e === "/stats") n = `<div class="insightpage statsdashboard"><header class="insighttoolbar">${X("38%")}</header>${dr([
"馆藏视频",
"看过",
"内容标签",
"使用空间"
- ])}<section class="insightdetail"><div class="insightdetailbody"><div class="board-inventory-charts">${gi("网盘与本地")}${gi("媒体库")}</div></div></section>${_i("内容标签")}</div>`;
- else if (e === "/taste") n = `<div class="tastepage"><header class="tastehead">${hi(["浏览器记录", "Peach 内部"], "insightswitch")}${Z("24%")}</header><div class="tastestate"></div>${pi([
+ ])}<section class="insightdetail"><div class="insightdetailbody"><div class="board-inventory-charts">${mr("网盘与本地")}${mr("媒体库")}</div></div></section>${hr("内容标签")}</div>`;
+ else if (e === "/taste") n = `<div class="tastepage"><header class="tastehead">${pr(["浏览器记录", "Peach 内部"], "insightswitch")}${X("24%")}</header><div class="tastestate"></div>${dr([
"浏览记录",
"口味维度",
"浏览候选",
"私有导出"
- ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${Q(fi(), 4)}</div></section>${_i("口味分析")}<div class="board-activity-charts">${_i("浏览活动")}${_i("时间分布")}</div>${_i("标签")}</div>`;
+ ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${Q(Z(), 4)}</div></section>${hr("口味分析")}<div class="board-activity-charts">${hr("浏览活动")}${hr("时间分布")}</div>${hr("标签")}</div>`;
else if (e === "/follow-manage") {
let e = t.followLayout === "table", r = e ? `<div class="ftableframe"><div class="ftablewrap"><table class="ftable"><thead><tr>${[
"选择",
@@ -3424,7 +2879,7 @@ function Ci(e, t = {}) {
"状态",
"上次检查",
"操作"
- ].map((e) => `<th>${e === "选择" ? "<label>" + l("disabled aria-label=\"全选本页来源\"") + "</label>" : e}</th>`).join("")}</tr></thead><tbody>${Q(`<tr>${[
+ ].map((e) => `<th>${e === "选择" ? "<label>" + o("disabled aria-label=\"全选本页来源\"") + "</label>" : e}</th>`).join("")}</tr></thead><tbody>${Q(`<tr>${[
"20px",
"90px",
"120px",
@@ -3432,37 +2887,37 @@ function Ci(e, t = {}) {
"40px",
"100px",
"60px"
- ].map((e) => `<td>${Z(e)}</td>`).join("")}</tr>`, 6)}</tbody></table></div></div>` : `<div class="board-follow-list">${Q(xi(), 4)}</div>`;
+ ].map((e) => `<td>${X(e)}</td>`).join("")}</tr>`, 6)}</tbody></table></div></div>` : `<div class="board-follow-list">${Q(yr(), 4)}</div>`;
n = `<div class="follow followmanage"><div class="fmanageoverview">${[
"关注创作者",
"启用来源",
"检查失败",
"未看更新"
- ].map((e) => `<div><span>${e}</span><b>${Z()}</b></div>`).join("")}</div>${hi([
+ ].map((e) => `<div><span>${e}</span><b>${X()}</b></div>`).join("")}</div>${pr([
"关注列表",
"添加关注",
"来源和凭证"
- ], "follow-workspace-switch")}<div class="fmain"><section class="fsec" data-follow-workspace-panel="list">${yi(e)}<div class="board-follow-selection"${e ? " hidden" : ""}><label>${l("disabled")}全选本页</label></div><div class="frows fsources" data-layout="${e ? "table" : "default"}">${r}<div class="followpagefooter"><div class="followpageinfo">${Z("120px")}${Z("100px")}</div></div></div></section></div></div>`;
- } else if (e === "/configuration") n = `<div class="configpage">${mi([
+ ], "follow-workspace-switch")}<div class="fmain"><section class="fsec" data-follow-workspace-panel="list">${_r(e)}<div class="board-follow-selection"${e ? " hidden" : ""}><label>${o("disabled")}全选本页</label></div><div class="frows fsources" data-layout="${e ? "table" : "default"}">${r}<div class="followpagefooter"><div class="followpageinfo">${X("120px")}${X("100px")}</div></div></div></section></div></div>`;
+ } else if (e === "/configuration") n = `<div class="configpage">${fr([
"通用",
"媒体",
"网络与访问",
"更新与维护"
- ])}<section class="configfieldset"><div class="geist-fieldset-content"><h3 class="geist-fieldset-title">开机自启</h3><div class="skeleton-lines">${Q(`<div class="skeleton-setting">${Z("35%")}<span class="skeleton skeleton-toggle"></span></div>`, 3)}</div></div><footer class="geist-fieldset-footer">${Z("100px")}</footer></section></div>`;
+ ])}<section class="configfieldset"><div class="geist-fieldset-content"><h3 class="geist-fieldset-title">开机自启</h3><div class="skeleton-lines">${Q(`<div class="skeleton-setting">${X("35%")}<span class="skeleton skeleton-toggle"></span></div>`, 3)}</div></div><footer class="geist-fieldset-footer">${X("100px")}</footer></section></div>`;
else if (e === "/activity") n = `<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">${Z("35%")}${fi()}</div></article></div></section>`).join("")}</div>`;
- else if (e === "/duplicates") n = `<div class="review"><div class="collection-summary">${Z("38%")}</div><div class="fsechead dupactions"><h3>批量保留</h3>${Z("40%")}</div>${Q(`<section class="dupgroup"><div class="duphead">${Z("45%")}</div><div class="duplist">${Q(`<div class="duprow"><span class="dupcover skeleton"></span><span class="dupmarks">${Z()}</span><span class="dupname">${Z("90%")}</span>${Z()}${Z()}${Z()}<span class="duppath">${Z("70%")}</span></div>`, 2)}</div></section>`, 2)}</div>`;
- else if (e === "/quality-goals") n = `<div class="quality-workspace"><div class="collection-summary"><strong>待升级</strong>${Z("20%")}</div><div class="qualitylist">${Q(`<article class="qualityitem"><span class="qualitycover skeleton"></span><div class="qualitybody skeleton-lines">${fi()}</div><footer class="qualityactions">${Z("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>${Z("200px")}</div></header><div class="playlistcards">${Q(`<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">${fi()}</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">${X("35%")}${Z()}</div></article></div></section>`).join("")}</div>`;
+ else if (e === "/duplicates") n = `<div class="review"><div class="collection-summary">${X("38%")}</div><div class="fsechead dupactions"><h3>批量保留</h3>${X("40%")}</div>${Q(`<section class="dupgroup"><div class="duphead">${X("45%")}</div><div class="duplist">${Q(`<div class="duprow"><span class="dupcover skeleton"></span><span class="dupmarks">${X()}</span><span class="dupname">${X("90%")}</span>${X()}${X()}${X()}<span class="duppath">${X("70%")}</span></div>`, 2)}</div></section>`, 2)}</div>`;
+ else if (e === "/quality-goals") n = `<div class="quality-workspace"><div class="collection-summary"><strong>待升级</strong>${X("20%")}</div><div class="qualitylist">${Q(`<article class="qualityitem"><span class="qualitycover skeleton"></span><div class="qualitybody skeleton-lines">${Z()}</div><footer class="qualityactions">${X("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>${X("200px")}</div></header><div class="playlistcards">${Q(`<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">${Z()}</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>`;
}
//#endregion
//#region src/catalog-onboarding.ts
-var wi = [
+var Sr = [
"loc",
"creator",
"performer",
@@ -3480,16 +2935,16 @@ var wi = [
"jav",
"thumb"
];
-function Ti() {
+function Cr() {
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 Ei(e, t) {
+async function wr(e, t) {
let n = new URLSearchParams();
- for (let t of wi) e[t] && n.set(t, e[t]);
+ for (let t of Sr) 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 || [],
@@ -3500,9 +2955,9 @@ async function Ei(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function Di({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
+function Tr({ 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>" : "", o = "<a class=\"geist-button" + (!r || i ? " primary" : "") + "\" href=\"/follow-manage?tab=add\">添加关注</a>";
- if (t || n) return d("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a>" });
+ if (t || n) return s("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a>" });
if (e !== "catalog") {
let t = (i ? {
tags: "标签",
@@ -3515,13 +2970,13 @@ function Di({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
agencies: "事务所",
series: "系列"
}[e] || "资料";
- return d(e === "tags" ? "tags" : "user-round", "还没有" + t, i ? "添加关注来源并获取内容后,这里会显示来源上的" + t + "。" : "添加内容并补充资料后,这里会显示对应信息。", { actions: i ? o : a + o });
+ return s(e === "tags" ? "tags" : "user-round", "还没有" + t, i ? "添加关注来源并获取内容后,这里会显示来源上的" + t + "。" : "添加内容并补充资料后,这里会显示对应信息。", { actions: i ? o : a + o });
}
- return d("play", "还没有视频", "添加媒体文件夹或关注来源,开始建立你的馆藏。", { actions: a + o });
+ return s("play", "还没有视频", "添加媒体文件夹或关注来源,开始建立你的馆藏。", { actions: a + o });
}
//#endregion
//#region src/sidebar.ts
-function Oi(e) {
+function Er(e) {
return [
"/",
"/unseen",
@@ -3531,57 +2986,57 @@ function Oi(e) {
"/junk-files"
].includes(e) || /^\/(item|mix|parts|editions)\//.test(e) || /^\/playlists\/\d+\/\d+$/.test(e) || /^\/(performers|studios|creators|series|agencies)\/.+/.test(e);
}
-function ki(e, t) {
+function Dr(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 Ai(e) {
+function Or(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/resource-sync.ts
-var $ = (e = 0) => Number(e).toLocaleString(), ji = {
+var $ = (e = 0) => Number(e).toLocaleString(), kr = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, Mi = (e) => v(s[e] ?? "database"), Ni = (e, t, n) => `<article class="board-plain-stat resourcestat">
+}, Ar = (e) => m(i[e] ?? "database"), jr = (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 Pi(e, t) {
+function Mr(e, t) {
let n = e.cache || {
files: 0,
bytes: 0
}, r = !!(e.missing || n.files);
- return `<div class="cleanupstats resourcestats">${(e.sources || []).map((e) => Ni(`<span class="board-stat-tile resourcestat-tile">${Mi(e.location)}</span>${ji[e.location] || "媒体来源"}<span class="resourcestat-state ${e.online ? "online" : "offline"}">${e.online ? "可访问" : "离线,已跳过"}</span>`, e.online ? `${$(e.missing)} 项` : "—", [e.online ? `找不到文件 · 已检查 ${$(e.checked)} 项` : `馆藏中有 ${$(e.total)} 项`, e.unreadable ? `${$(e.unreadable)} 项读取失败,已跳过` : ""].filter(Boolean).join(" · "))).join("")}
- ${Ni("待移入回收站", `${$(e.missing)} 项`, "")}
- ${Ni("可清理的缓存", `${$(n.files)} 个`, n.files ? t(n.bytes) : "")}</div>
- ${r ? h(`将把找不到文件的 ${$(e.missing)} 项馆藏记录移入回收站,并清理 ${$(n.files)} 个闲置缓存。`, { label: "清理内容" }) : ""}
+ return `<div class="cleanupstats resourcestats">${(e.sources || []).map((e) => jr(`<span class="board-stat-tile resourcestat-tile">${Ar(e.location)}</span>${kr[e.location] || "媒体来源"}<span class="resourcestat-state ${e.online ? "online" : "offline"}">${e.online ? "可访问" : "离线,已跳过"}</span>`, e.online ? `${$(e.missing)} 项` : "—", [e.online ? `找不到文件 · 已检查 ${$(e.checked)} 项` : `馆藏中有 ${$(e.total)} 项`, e.unreadable ? `${$(e.unreadable)} 项读取失败,已跳过` : ""].filter(Boolean).join(" · "))).join("")}
+ ${jr("待移入回收站", `${$(e.missing)} 项`, "")}
+ ${jr("可清理的缓存", `${$(n.files)} 个`, n.files ? t(n.bytes) : "")}</div>
+ ${r ? d(`将把找不到文件的 ${$(e.missing)} 项馆藏记录移入回收站,并清理 ${$(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 Fi(e) {
+function Nr(e) {
return [
"small",
"sleeve",
"preview"
].includes(String(e)) ? "small" : "big";
}
-function Ii(e) {
+function Pr(e) {
return {
- javLayout: Fi(e.javLayout),
- javImage: Li(e.javLayout === "preview" ? "thumbnail" : e.javImage)
+ javLayout: Nr(e.javLayout),
+ javImage: Fr(e.javLayout === "preview" ? "thumbnail" : e.javImage)
};
}
-function Li(e) {
+function Fr(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function Ri(e, t) {
- return e.is_jav && e.code && e.has_cover && (Li(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
+function Ir(e, t) {
+ return e.is_jav && e.code && e.has_cover && (Fr(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
}
-function zi(e, t) {
+function Lr(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;
@@ -3592,42 +3047,39 @@ function zi(e, t) {
left: l(c)
};
}
-function Bi(e, t) {
+function Rr(e, t) {
e.querySelectorAll("img[data-jav-image]").forEach((e) => {
- let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !!(n && (Li(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 Vi = {
+var zr = {
"library-processing": {
- load: bt,
- component: Ot
+ load: ft,
+ component: bt
},
scraping: {
- load: Mr,
- component: Fr
- },
- "quality-goals": {
- load: kr,
- component: jr
+ load: Pn,
+ component: Ln
},
+ "quality-goals": { react: "quality-goals" },
configuration: {
- load: Bn,
- component: Vn
+ load: Mn,
+ component: Nn
},
activity: { react: "activity" }
-}, Hi = () => Object.keys(Vi), Ui = /* @__PURE__ */ new Map();
-async function Wi(e, t, n, r = {}) {
- let i = Vi[e];
+}, Br = () => Object.keys(zr), Vr = /* @__PURE__ */ new Map();
+async function Hr(e, t, n, r = {}) {
+ let i = zr[e];
if (!i) throw Error(`未注册的 island:${String(e)}`);
- Ji(t);
+ Kr(t);
let a = {
controller: new AbortController(),
painted: !1
};
- if (Ui.set(t, a), "react" in i) return Ki(i, t, n, a, r);
+ if (Vr.set(t, a), "react" in i) return Wr(i, t, n, a, r);
let o;
try {
o = {
@@ -3638,27 +3090,27 @@ async function Wi(e, t, n, r = {}) {
if (a.controller.signal.aborted) return;
o = {
data: null,
- error: H(e)
+ error: W(e)
};
}
- if (!Gi(t, a, r)) return;
+ if (!Ur(t, a, r)) return;
let s = {
...n,
...o
};
- Me(le(i.component, s), t);
+ Ee(ie(i.component, s), t);
}
-function Gi(e, t, n) {
- return Ui.get(e) === t ? n.isCurrent && !n.isCurrent() ? (Ui.delete(e), !1) : (e.textContent = "", t.painted = !0, !0) : !1;
+function Ur(e, t, n) {
+ return Vr.get(e) === t ? n.isCurrent && !n.isCurrent() ? (Vr.delete(e), !1) : (e.textContent = "", t.painted = !0, !0) : !1;
}
-async function Ki(e, t, n, r, i) {
+async function Wr(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 (!Gi(t, r, i)) return;
+ if (!Ur(t, r, i)) return;
let o = t.ownerDocument.createElement("div");
o.className = "peach-react", t.append(o);
let s = a.mount(o, n);
@@ -3666,10 +3118,10 @@ async function Ki(e, t, n, r, i) {
s.unmount(), o.remove();
};
}
-var qi = (e) => !!e && Ui.has(e);
-function Ji(e) {
- let t = Ui.get(e);
- t && (t.controller.abort(), Ui.delete(e), t.dispose ? t.dispose() : t.painted && Me(null, e));
+var Gr = (e) => !!e && Vr.has(e);
+function Kr(e) {
+ let t = Vr.get(e);
+ t && (t.controller.abort(), Vr.delete(e), t.dispose ? t.dispose() : t.painted && Ee(null, e));
}
//#endregion
-export { Nt as TASTE_GUIDE_KEY, jn as activityChartsHtml, Ci as boardPageSkeleton, Fe as boundedPreference, Di as catalogEmptyHtml, Ei as catalogSuggestions, ri as clampPage, jt as cleanupSkeletonHtml, kt as cloudLocations, At as cloudPreferenceLocations, qr as createReviewSelection, Tn as creatorSankeyHtml, Si as detailSkeletonHtml, Be as distributionChart, Ti as emptyCatalogLayout, di as entitySkeletonHtml, gt as followJobProgress, Xr as groupReviewRows, Vr as identityEvidenceHtml, zt as initBoardControls, qi as islandMounted, Hi as islandNames, Ri as javImageKind, mt as jobActivityHtml, ze as jobProgressHtml, ai as matchesFaceSource, li as mountAvatarPicker, Lt as mountBoardStatePreview, Wi as mountIsland, Le as mountNumberSetting, oi as nativeImageFit, Li as normalizeJavImage, Fi as normalizeJavLayout, Ii as normalizeJavPreferences, ni as pageCount, ii as paginationHtml, zi as panelFrame, Ne as preferredDirection, He as radarChart, On as radialCardHtml, Ve as rankedChart, Rr as refreshStore, Pi as resourceScanHtml, Br as reviewImageHtml, Gr as selectGroup, Ur as selectRange, Wr as selectionSummary, Oi as sidebarHasCatalogContent, Pn as sidebarSectionHtml, Ai as sidebarTagCounts, Re as statCardBody, Lr as storeNames, Rt as syncBoardRange, Bi as syncJavImages, Ie as syncNumberSetting, Kr as syncSelectionToolbar, ki as syncSidebarSurface, Mt as tasteHistoryGuideHtml, Ln as transitionTheme, ui as unmountAvatarPicker, Ji as unmountIsland, Jr as updateReviewSticky, ht as watchJob, Mn as wireActivityCharts, En as wireCreatorSankey, Gt as wireExpandableRanks, Wt as wireGrowingCharts, kn as wireRadialCards, Hr as wireReviewPictures, ei as wireReviewSelection, Fn as wireSidebarGroups, Pt as wireTasteHistoryGuide };
+export { Tt as TASTE_GUIDE_KEY, Cn as activityChartsHtml, xr as boardPageSkeleton, ke as boundedPreference, Tr as catalogEmptyHtml, wr as catalogSuggestions, nr as clampPage, Ct as cleanupSkeletonHtml, xt as cloudLocations, St as cloudPreferenceLocations, Kn as createReviewSelection, _n as creatorSankeyHtml, br as detailSkeletonHtml, Pe as distributionChart, Cr as emptyCatalogLayout, ur as entitySkeletonHtml, ct as followJobProgress, Yn as groupReviewRows, Bn as identityEvidenceHtml, jt as initBoardControls, Gr as islandMounted, Br as islandNames, Ir as javImageKind, ot as jobActivityHtml, Ne as jobProgressHtml, ir as matchesFaceSource, cr as mountAvatarPicker, kt as mountBoardStatePreview, Hr as mountIsland, je as mountNumberSetting, ar as nativeImageFit, Fr as normalizeJavImage, Nr as normalizeJavLayout, Pr as normalizeJavPreferences, tr as pageCount, rr as paginationHtml, Lr as panelFrame, De as preferredDirection, Ie as radarChart, bn as radialCardHtml, Fe as rankedChart, Mr as resourceScanHtml, zn as reviewImageHtml, Wn as selectGroup, Hn as selectRange, Un as selectionSummary, Er as sidebarHasCatalogContent, En as sidebarSectionHtml, Or as sidebarTagCounts, Me as statCardBody, At as syncBoardRange, Rr as syncJavImages, Ae as syncNumberSetting, Gn as syncSelectionToolbar, Dr as syncSidebarSurface, wt as tasteHistoryGuideHtml, kn as transitionTheme, lr as unmountAvatarPicker, Kr as unmountIsland, qn as updateReviewSticky, st as watchJob, wn as wireActivityCharts, vn as wireCreatorSankey, Lt as wireExpandableRanks, It as wireGrowingCharts, xn as wireRadialCards, Vn as wireReviewPictures, $n as wireReviewSelection, Dn as wireSidebarGroups, Et as wireTasteHistoryGuide };